forked from fastenhealth/fasten-onprem
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding UI for manually creating conditions (and associated resources) (…
- Loading branch information
Showing
30 changed files
with
3,151 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
frontend/src/app/components/nlm-typeahead/nlm-typeahead.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<ng-template #rt let-r="result" let-t="term"> | ||
<span>{{r.text}}</span> <span *ngIf="r.subtext"> ({{r.subtext}})</span> | ||
</ng-template> | ||
|
||
<input | ||
type="text" | ||
class="form-control" | ||
[class.is-invalid]="showError" | ||
[(ngModel)]="searchResult" | ||
[ngbTypeahead]="search" | ||
[inputFormatter]="formatter" | ||
[resultTemplate]="rt" | ||
(ngModelChange)="typeAheadChangeEvent($event)" | ||
(click)="typeAheadClickEvent($event)" | ||
(focus)="typeAheadFocusEvent($event)" | ||
placeholder="Search" | ||
#instance="ngbTypeahead" | ||
/> | ||
<small *ngIf="searching" class="form-text text-muted">searching...</small> | ||
<div class="invalid-feedback" *ngIf="searchFailed">Sorry, suggestions could not be loaded.</div> | ||
|
||
<div *ngIf="debugMode" class="alert alert-warning"> | ||
<pre><code [highlight]="searchResult | json"></code></pre> | ||
</div> |
Empty file.
23 changes: 23 additions & 0 deletions
23
frontend/src/app/components/nlm-typeahead/nlm-typeahead.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { NlmTypeaheadComponent } from './nlm-typeahead.component'; | ||
|
||
describe('NlmTypeaheadComponent', () => { | ||
let component: NlmTypeaheadComponent; | ||
let fixture: ComponentFixture<NlmTypeaheadComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ NlmTypeaheadComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(NlmTypeaheadComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
Oops, something went wrong.