@huntsman-cancer-institute/input 16.0.1 → 17.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/date/date-base.d.ts +65 -65
  2. package/date/date-date-range.component.d.ts +32 -32
  3. package/date/date-date.component.d.ts +53 -53
  4. package/date/date-validator.d.ts +17 -17
  5. package/date/date.module.d.ts +16 -16
  6. package/dropdown/dropdown-index.d.ts +6 -6
  7. package/dropdown/dropdown-select-result.component.d.ts +23 -23
  8. package/dropdown/dropdown-select.component.d.ts +76 -76
  9. package/dropdown/dropdown.component.d.ts +40 -40
  10. package/dropdown/dropdown.module.d.ts +13 -13
  11. package/dropdown/dropdown.service.d.ts +51 -51
  12. package/dropdown/messages.d.ts +11 -11
  13. package/dropdown/select-item.d.ts +16 -16
  14. package/dropdown/template-dropdown.directive.d.ts +12 -12
  15. package/esm2022/date/date-base.mjs +114 -114
  16. package/esm2022/date/date-date-range.component.mjs +92 -92
  17. package/esm2022/date/date-date.component.mjs +189 -189
  18. package/esm2022/date/date-validator.mjs +40 -40
  19. package/esm2022/date/date.module.mjs +60 -60
  20. package/esm2022/dropdown/dropdown-index.mjs +5 -5
  21. package/esm2022/dropdown/dropdown-select-result.component.mjs +85 -85
  22. package/esm2022/dropdown/dropdown-select.component.mjs +360 -360
  23. package/esm2022/dropdown/dropdown.component.mjs +170 -170
  24. package/esm2022/dropdown/dropdown.module.mjs +50 -50
  25. package/esm2022/dropdown/dropdown.service.mjs +133 -133
  26. package/esm2022/dropdown/messages.mjs +9 -9
  27. package/esm2022/dropdown/select-item.mjs +11 -11
  28. package/esm2022/dropdown/template-dropdown.directive.mjs +26 -26
  29. package/esm2022/huntsman-cancer-institute-input.mjs +4 -4
  30. package/esm2022/index.mjs +19 -19
  31. package/esm2022/inline/inline.component.mjs +179 -179
  32. package/esm2022/inline/inline.module.mjs +28 -28
  33. package/esm2022/search/search.component.mjs +157 -157
  34. package/esm2022/search/search.module.mjs +32 -32
  35. package/esm2022/select/custom-combobox.component.mjs +531 -531
  36. package/esm2022/select/custom-multi-combobox.component.mjs +232 -232
  37. package/esm2022/select/md-multi-select.component.mjs +127 -127
  38. package/esm2022/select/md-select.component.mjs +107 -107
  39. package/esm2022/select/native-select.component.mjs +188 -188
  40. package/esm2022/select/select.module.mjs +83 -83
  41. package/fesm2022/huntsman-cancer-institute-input.mjs +2797 -2797
  42. package/fesm2022/huntsman-cancer-institute-input.mjs.map +1 -1
  43. package/index.d.ts +20 -20
  44. package/inline/inline.component.d.ts +66 -66
  45. package/inline/inline.module.d.ts +9 -9
  46. package/package.json +15 -7
  47. package/search/search.component.d.ts +42 -42
  48. package/search/search.module.d.ts +10 -10
  49. package/select/custom-combobox.component.d.ts +98 -98
  50. package/select/custom-multi-combobox.component.d.ts +50 -50
  51. package/select/md-multi-select.component.d.ts +32 -32
  52. package/select/md-select.component.d.ts +30 -30
  53. package/select/native-select.component.d.ts +37 -37
  54. package/select/select.module.d.ts +21 -21
@@ -1,65 +1,65 @@
1
- /**
2
- * Copyright (c) 2016 Huntsman Cancer Institute at the University of Utah, Confidential and Proprietary
3
- *
4
- * Extending class works like in Java except that decorators are only scanned in the child class. In this case,
5
- * we want variables like inputData to be available to all inline components that extend this class; however, we want
6
- * this variable to be an @Input.
7
- * What we can do here is define "inputData: Object" here and in the extending class, define "@Input inputData: Object".
8
- *
9
- * The two way binding to the component is inputData. To allow non-saving modification to this data, we copy
10
- * it to modifiedData. The wrapped component such as input/select/... then use modifiedData as their ngModel.
11
- * When we cancel out of editing, modifiedData is ignored and replaced with inputData. When editing is saved, inputData
12
- * is replaced with modifiedData.
13
- *
14
- * @since 1.0.0
15
- */
16
- import { ElementRef } from "@angular/core";
17
- import * as i0 from "@angular/core";
18
- export declare abstract class DateBase {
19
- inputData: Object;
20
- modifiedData: Object;
21
- state: number;
22
- _el: HTMLElement;
23
- constructor(elementRef: ElementRef);
24
- /**
25
- * Listen to clicks on the document. If the state is in edit mode and there is a click outside the element,
26
- * then save it.
27
- *
28
- * @param event
29
- */
30
- handleOutsideEvent(event: Event): void;
31
- /**
32
- * Updates the modifiedData (working data) to the bound data.
33
- */
34
- updateInternalDataFromModel(): void;
35
- /**
36
- * Updates the bound data with the working data.
37
- */
38
- updateModelFromInternalData(): void;
39
- /**
40
- * When user chooses to edit, change state to show edit dialog.
41
- */
42
- startEdit(): void;
43
- /**
44
- * Generic actions to change state based on key input. Escape will cancel out of the edit
45
- * without saving, enter will save and exit.
46
- *
47
- * @param event
48
- */
49
- onKeyDown(event: KeyboardEvent): void;
50
- /**
51
- *
52
- * @param newValue
53
- */
54
- onChange(newValue: Object): void;
55
- /**
56
- * Replace the bound data with the working data and exit editing mode.
57
- */
58
- save(): void;
59
- /**
60
- * Don't update the bound data and exit the editing mode.
61
- */
62
- cancel(): void;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<DateBase, never>;
64
- static ɵprov: i0.ɵɵInjectableDeclaration<DateBase>;
65
- }
1
+ /**
2
+ * Copyright (c) 2016 Huntsman Cancer Institute at the University of Utah, Confidential and Proprietary
3
+ *
4
+ * Extending class works like in Java except that decorators are only scanned in the child class. In this case,
5
+ * we want variables like inputData to be available to all inline components that extend this class; however, we want
6
+ * this variable to be an @Input.
7
+ * What we can do here is define "inputData: Object" here and in the extending class, define "@Input inputData: Object".
8
+ *
9
+ * The two way binding to the component is inputData. To allow non-saving modification to this data, we copy
10
+ * it to modifiedData. The wrapped component such as input/select/... then use modifiedData as their ngModel.
11
+ * When we cancel out of editing, modifiedData is ignored and replaced with inputData. When editing is saved, inputData
12
+ * is replaced with modifiedData.
13
+ *
14
+ * @since 1.0.0
15
+ */
16
+ import { ElementRef } from "@angular/core";
17
+ import * as i0 from "@angular/core";
18
+ export declare abstract class DateBase {
19
+ inputData: Object;
20
+ modifiedData: Object;
21
+ state: number;
22
+ _el: HTMLElement;
23
+ constructor(elementRef: ElementRef);
24
+ /**
25
+ * Listen to clicks on the document. If the state is in edit mode and there is a click outside the element,
26
+ * then save it.
27
+ *
28
+ * @param event
29
+ */
30
+ handleOutsideEvent(event: Event): void;
31
+ /**
32
+ * Updates the modifiedData (working data) to the bound data.
33
+ */
34
+ updateInternalDataFromModel(): void;
35
+ /**
36
+ * Updates the bound data with the working data.
37
+ */
38
+ updateModelFromInternalData(): void;
39
+ /**
40
+ * When user chooses to edit, change state to show edit dialog.
41
+ */
42
+ startEdit(): void;
43
+ /**
44
+ * Generic actions to change state based on key input. Escape will cancel out of the edit
45
+ * without saving, enter will save and exit.
46
+ *
47
+ * @param event
48
+ */
49
+ onKeyDown(event: KeyboardEvent): void;
50
+ /**
51
+ *
52
+ * @param newValue
53
+ */
54
+ onChange(newValue: Object): void;
55
+ /**
56
+ * Replace the bound data with the working data and exit editing mode.
57
+ */
58
+ save(): void;
59
+ /**
60
+ * Don't update the bound data and exit the editing mode.
61
+ */
62
+ cancel(): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateBase, never>;
64
+ static ɵprov: i0.ɵɵInjectableDeclaration<DateBase>;
65
+ }
@@ -1,32 +1,32 @@
1
- import { EventEmitter, AfterViewInit } from "@angular/core";
2
- import { DateComponent } from "./date-date.component";
3
- import * as i0 from "@angular/core";
4
- /**
5
- * TODO: Confirm timezone behavior.
6
- *
7
- * @since 4.0.0
8
- */
9
- export declare class DateRangeComponent implements AfterViewInit {
10
- sp: DateComponent;
11
- ep: DateComponent;
12
- dateFormat: string;
13
- inputStartData: Object;
14
- inputEndData: Object;
15
- startLabel: string;
16
- endLabel: string;
17
- inputDataChange: EventEmitter<any[]>;
18
- minStartDate: any;
19
- maxStartDate: any;
20
- minEndDate: any;
21
- maxEndDate: any;
22
- ngOnInit(): void;
23
- /**
24
- *
25
- */
26
- ngAfterViewInit(): void;
27
- onClickSubmitStartDate(startData: any): void;
28
- onClickSubmitEndDate(endData: any): void;
29
- private setRange;
30
- static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "hci-date-range", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "inputStartData": { "alias": "inputStartData"; "required": false; }; "inputEndData": { "alias": "inputEndData"; "required": false; }; "startLabel": { "alias": "startLabel"; "required": false; }; "endLabel": { "alias": "endLabel"; "required": false; }; "minStartDate": { "alias": "minStartDate"; "required": false; }; }, { "inputDataChange": "inputDataChange"; }, never, never, false, never>;
32
- }
1
+ import { EventEmitter, AfterViewInit } from "@angular/core";
2
+ import { DateComponent } from "./date-date.component";
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * TODO: Confirm timezone behavior.
6
+ *
7
+ * @since 4.0.0
8
+ */
9
+ export declare class DateRangeComponent implements AfterViewInit {
10
+ sp: DateComponent;
11
+ ep: DateComponent;
12
+ dateFormat: string;
13
+ inputStartData: Object;
14
+ inputEndData: Object;
15
+ startLabel: string;
16
+ endLabel: string;
17
+ inputDataChange: EventEmitter<any[]>;
18
+ minStartDate: any;
19
+ maxStartDate: any;
20
+ minEndDate: any;
21
+ maxEndDate: any;
22
+ ngOnInit(): void;
23
+ /**
24
+ *
25
+ */
26
+ ngAfterViewInit(): void;
27
+ onClickSubmitStartDate(startData: any): void;
28
+ onClickSubmitEndDate(endData: any): void;
29
+ private setRange;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateRangeComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateRangeComponent, "hci-date-range", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "inputStartData": { "alias": "inputStartData"; "required": false; }; "inputEndData": { "alias": "inputEndData"; "required": false; }; "startLabel": { "alias": "startLabel"; "required": false; }; "endLabel": { "alias": "endLabel"; "required": false; }; "minStartDate": { "alias": "minStartDate"; "required": false; }; }, { "inputDataChange": "inputDataChange"; }, never, never, false, never>;
32
+ }
@@ -1,53 +1,53 @@
1
- import { ElementRef, EventEmitter, OnInit, DoCheck, AfterViewInit, ChangeDetectorRef } from "@angular/core";
2
- import { DatePipe } from "@angular/common";
3
- import { UntypedFormBuilder, UntypedFormGroup, UntypedFormControl } from "@angular/forms";
4
- import { DateBase } from "./date-base";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * TODO: Confirm timezone behavior.
8
- *
9
- * @since 4.0.0
10
- */
11
- export declare class DateComponent extends DateBase implements OnInit, DoCheck, AfterViewInit {
12
- private formBuilder;
13
- private datePipe;
14
- private changeDetectorRef;
15
- dp: any;
16
- dateFormat: string;
17
- startDate: any;
18
- minDate: any;
19
- maxDate: any;
20
- label: string;
21
- labelDate: string;
22
- inputData: Object;
23
- modifiedData: Object;
24
- inputDataChange: EventEmitter<any>;
25
- dateForm: UntypedFormGroup;
26
- dateInput: UntypedFormControl;
27
- validate: boolean;
28
- private focused;
29
- constructor(elementRef: ElementRef, formBuilder: UntypedFormBuilder, datePipe: DatePipe, changeDetectorRef: ChangeDetectorRef);
30
- /**
31
- *
32
- */
33
- ngOnInit(): void;
34
- ngAfterViewInit(): void;
35
- onChanges(): void;
36
- ngDoCheck(): void;
37
- updateInternalDataFromModel(): void;
38
- /**
39
- * Updates the bound data with the working data.
40
- */
41
- updateModelFromInternalData(): void;
42
- clear(): void;
43
- onKeyUpInput(event: KeyboardEvent): void;
44
- /**
45
- * NgbDateStruct stores day, month and year. Convert this to ISO8601.
46
- *
47
- * @param date
48
- * @returns {any}
49
- */
50
- private ngbDateToString;
51
- static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "hci-date", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "label": { "alias": "label"; "required": false; }; "inputData": { "alias": "inputData"; "required": false; }; "modifiedData": { "alias": "modifiedData"; "required": false; }; }, { "inputDataChange": "inputDataChange"; }, never, never, false, never>;
53
- }
1
+ import { ElementRef, EventEmitter, OnInit, DoCheck, AfterViewInit, ChangeDetectorRef } from "@angular/core";
2
+ import { DatePipe } from "@angular/common";
3
+ import { UntypedFormBuilder, UntypedFormGroup, UntypedFormControl } from "@angular/forms";
4
+ import { DateBase } from "./date-base";
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * TODO: Confirm timezone behavior.
8
+ *
9
+ * @since 4.0.0
10
+ */
11
+ export declare class DateComponent extends DateBase implements OnInit, DoCheck, AfterViewInit {
12
+ private formBuilder;
13
+ private datePipe;
14
+ private changeDetectorRef;
15
+ dp: any;
16
+ dateFormat: string;
17
+ startDate: any;
18
+ minDate: any;
19
+ maxDate: any;
20
+ label: string;
21
+ labelDate: string;
22
+ inputData: Object;
23
+ modifiedData: Object;
24
+ inputDataChange: EventEmitter<any>;
25
+ dateForm: UntypedFormGroup;
26
+ dateInput: UntypedFormControl;
27
+ validate: boolean;
28
+ private focused;
29
+ constructor(elementRef: ElementRef, formBuilder: UntypedFormBuilder, datePipe: DatePipe, changeDetectorRef: ChangeDetectorRef);
30
+ /**
31
+ *
32
+ */
33
+ ngOnInit(): void;
34
+ ngAfterViewInit(): void;
35
+ onChanges(): void;
36
+ ngDoCheck(): void;
37
+ updateInternalDataFromModel(): void;
38
+ /**
39
+ * Updates the bound data with the working data.
40
+ */
41
+ updateModelFromInternalData(): void;
42
+ clear(): void;
43
+ onKeyUpInput(event: KeyboardEvent): void;
44
+ /**
45
+ * NgbDateStruct stores day, month and year. Convert this to ISO8601.
46
+ *
47
+ * @param date
48
+ * @returns {any}
49
+ */
50
+ private ngbDateToString;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<DateComponent, "hci-date", never, { "dateFormat": { "alias": "dateFormat"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "label": { "alias": "label"; "required": false; }; "inputData": { "alias": "inputData"; "required": false; }; "modifiedData": { "alias": "modifiedData"; "required": false; }; }, { "inputDataChange": "inputDataChange"; }, never, never, false, never>;
53
+ }
@@ -1,17 +1,17 @@
1
- import { AbstractControl } from "@angular/forms";
2
- export declare class DateValidator {
3
- static minValue: any;
4
- static maxValue: any;
5
- static dateFormatValidator(ac: AbstractControl): {
6
- dateFormatValidator: boolean;
7
- };
8
- static dateRangeValidator(ac: AbstractControl): {
9
- dateRangeValidator: boolean;
10
- };
11
- static convertNgbStructToDate(struct: any): {
12
- year: any;
13
- month: number;
14
- day: any;
15
- };
16
- static inRange(ac: AbstractControl): boolean;
17
- }
1
+ import { AbstractControl } from "@angular/forms";
2
+ export declare class DateValidator {
3
+ static minValue: any;
4
+ static maxValue: any;
5
+ static dateFormatValidator(ac: AbstractControl): {
6
+ dateFormatValidator: boolean;
7
+ };
8
+ static dateRangeValidator(ac: AbstractControl): {
9
+ dateRangeValidator: boolean;
10
+ };
11
+ static convertNgbStructToDate(struct: any): {
12
+ year: any;
13
+ month: number;
14
+ day: any;
15
+ };
16
+ static inRange(ac: AbstractControl): boolean;
17
+ }
@@ -1,16 +1,16 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./date-date.component";
3
- import * as i2 from "./date-date-range.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@ng-bootstrap/ng-bootstrap";
7
- import * as i6 from "@angular/material/legacy-tabs";
8
- import * as i7 from "@angular/material/legacy-form-field";
9
- import * as i8 from "@angular/material/datepicker";
10
- import * as i9 from "@angular/material/core";
11
- import * as i10 from "@angular/material/legacy-input";
12
- export declare class DateModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<DateModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<DateModule, [typeof i1.DateComponent, typeof i2.DateRangeComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.NgbModule, typeof i6.MatLegacyTabsModule, typeof i7.MatLegacyFormFieldModule, typeof i8.MatDatepickerModule, typeof i9.MatNativeDateModule, typeof i10.MatLegacyInputModule], [typeof i1.DateComponent, typeof i2.DateRangeComponent]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<DateModule>;
16
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./date-date.component";
3
+ import * as i2 from "./date-date-range.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "@ng-bootstrap/ng-bootstrap";
7
+ import * as i6 from "@angular/material/legacy-tabs";
8
+ import * as i7 from "@angular/material/legacy-form-field";
9
+ import * as i8 from "@angular/material/datepicker";
10
+ import * as i9 from "@angular/material/core";
11
+ import * as i10 from "@angular/material/legacy-input";
12
+ export declare class DateModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DateModule, [typeof i1.DateComponent, typeof i2.DateRangeComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.NgbModule, typeof i6.MatLegacyTabsModule, typeof i7.MatLegacyFormFieldModule, typeof i8.MatDatepickerModule, typeof i9.MatNativeDateModule, typeof i10.MatLegacyInputModule], [typeof i1.DateComponent, typeof i2.DateRangeComponent]>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<DateModule>;
16
+ }
@@ -1,6 +1,6 @@
1
- export { DropdownSelectComponent } from "./dropdown-select.component";
2
- export { DropdownSelectResultComponent } from "./dropdown-select-result.component";
3
- export { TemplateDropdownDirective } from "./template-dropdown.directive";
4
- export { DropdownModule } from "./dropdown.module";
5
- export { SelectItem } from "./select-item";
6
- export { DROPDOWN_TYPE } from "./dropdown.service";
1
+ export { DropdownSelectComponent } from "./dropdown-select.component";
2
+ export { DropdownSelectResultComponent } from "./dropdown-select-result.component";
3
+ export { TemplateDropdownDirective } from "./template-dropdown.directive";
4
+ export { DropdownModule } from "./dropdown.module";
5
+ export { SelectItem } from "./select-item";
6
+ export { DROPDOWN_TYPE } from "./dropdown.service";
@@ -1,23 +1,23 @@
1
- import { EventEmitter, OnInit, TemplateRef } from "@angular/core";
2
- import { SelectItem } from "./select-item";
3
- import * as i0 from "@angular/core";
4
- export declare class DropdownSelectResultComponent implements OnInit {
5
- items: SelectItem[];
6
- searchFocused: boolean;
7
- selectedItems: SelectItem[];
8
- templateRef: TemplateRef<any>;
9
- itemSelectedEvent: EventEmitter<any>;
10
- activeIndex: number;
11
- private usingKeys;
12
- ngOnInit(): void;
13
- onSelected(item: SelectItem): void;
14
- onMouseOver(index: number): void;
15
- onHovering(event: any): void;
16
- isSelected(currentItem: any): boolean;
17
- activeNext(): void;
18
- activePrevious(): void;
19
- scrollToElement(): void;
20
- selectCurrentItem(): void;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectResultComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectResultComponent, "hci-dropdown-select-result", never, { "items": { "alias": "items"; "required": false; }; "searchFocused": { "alias": "searchFocused"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; }, { "itemSelectedEvent": "itemSelectedEvent"; }, never, never, false, never>;
23
- }
1
+ import { EventEmitter, OnInit, TemplateRef } from "@angular/core";
2
+ import { SelectItem } from "./select-item";
3
+ import * as i0 from "@angular/core";
4
+ export declare class DropdownSelectResultComponent implements OnInit {
5
+ items: SelectItem[];
6
+ searchFocused: boolean;
7
+ selectedItems: SelectItem[];
8
+ templateRef: TemplateRef<any>;
9
+ itemSelectedEvent: EventEmitter<any>;
10
+ activeIndex: number;
11
+ private usingKeys;
12
+ ngOnInit(): void;
13
+ onSelected(item: SelectItem): void;
14
+ onMouseOver(index: number): void;
15
+ onHovering(event: any): void;
16
+ isSelected(currentItem: any): boolean;
17
+ activeNext(): void;
18
+ activePrevious(): void;
19
+ scrollToElement(): void;
20
+ selectCurrentItem(): void;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectResultComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectResultComponent, "hci-dropdown-select-result", never, { "items": { "alias": "items"; "required": false; }; "searchFocused": { "alias": "searchFocused"; "required": false; }; "selectedItems": { "alias": "selectedItems"; "required": false; }; "templateRef": { "alias": "templateRef"; "required": false; }; }, { "itemSelectedEvent": "itemSelectedEvent"; }, never, never, false, never>;
23
+ }
@@ -1,76 +1,76 @@
1
- import { AfterViewInit, TemplateRef, EventEmitter } from "@angular/core";
2
- import { ControlValueAccessor, UntypedFormControl } from "@angular/forms";
3
- import { Observable } from "rxjs";
4
- import { DropdownSelectResultComponent } from "./dropdown-select-result.component";
5
- import { SelectItem } from "./select-item";
6
- import { Messages } from "./messages";
7
- import * as i0 from "@angular/core";
8
- export declare class DropdownSelectComponent implements AfterViewInit, ControlValueAccessor {
9
- MORE_RESULTS_MSG: string;
10
- NO_RESULTS_MSG: string;
11
- messages: Messages;
12
- dataProvider: (item: string, selected?: any[]) => Observable<any[]>;
13
- selectedProvider: (ids: any[]) => Observable<any[]>;
14
- selectItemAdapter: (entity: any) => SelectItem;
15
- referenceMode: "id" | "entity";
16
- placeholder: string;
17
- disabled: boolean;
18
- multiple: boolean;
19
- clientMode: boolean;
20
- deleteIcon: string;
21
- inputState: number;
22
- resultsCount: any;
23
- searchDelay: number;
24
- select: EventEmitter<SelectItem>;
25
- remove: EventEmitter<SelectItem>;
26
- results: DropdownSelectResultComponent;
27
- onTouchedCallback: () => void;
28
- onChangeCallback: (_: any) => void;
29
- templateRef: TemplateRef<any>;
30
- term: UntypedFormControl;
31
- searchFocused: boolean;
32
- resultsVisible: boolean;
33
- listedData: SelectItem[];
34
- modifiedData: SelectItem[];
35
- selectedItems: SelectItem[];
36
- private termInput;
37
- private placeholderSelected;
38
- ngAfterViewInit(): void;
39
- onItemSelected(item: SelectItem): void;
40
- focusInput(): void;
41
- writeValue(selectedValues: any): void;
42
- getCountMessage(): string;
43
- setDisabledState(isDisabled: boolean): void;
44
- registerOnChange(fn: any): void;
45
- registerOnTouched(fn: any): void;
46
- removeItem(item: SelectItem): void;
47
- getPlaceholder(): string;
48
- getInputWidth(): string;
49
- isHideable(): boolean;
50
- onFocus(): void;
51
- onBlur(): void;
52
- onKeyUp(ev: KeyboardEvent): void;
53
- onKeyDown(ev: KeyboardEvent): void;
54
- onKeyPress(ev: KeyboardEvent): void;
55
- showResults(): void;
56
- focus(): void;
57
- private subscribeToChangesAndLoadDataFromObservable;
58
- private subscribeToResults;
59
- private loadDataFromObservable;
60
- private alreadySelected;
61
- private fetchAndfilterLocalData;
62
- private fetchData;
63
- private filterLocalData;
64
- private containsText;
65
- private adaptItems;
66
- private buildValue;
67
- private getSelectedIds;
68
- private getEntities;
69
- private populateItemsFromEntities;
70
- private handleMultipleWithEntities;
71
- private populateItemsFromIds;
72
- private handleMultipleWithIds;
73
- private handleSingleWithId;
74
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectComponent, "hci-dropdown-select", never, { "messages": { "alias": "messages"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "selectedProvider": { "alias": "selectedProvider"; "required": false; }; "selectItemAdapter": { "alias": "selectItemAdapter"; "required": false; }; "referenceMode": { "alias": "referenceMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "clientMode": { "alias": "clientMode"; "required": false; }; "deleteIcon": { "alias": "deleteIcon"; "required": false; }; "inputState": { "alias": "inputState"; "required": false; }; "resultsCount": { "alias": "resultsCount"; "required": false; }; "searchDelay": { "alias": "searchDelay"; "required": false; }; }, { "select": "select"; "remove": "remove"; }, never, never, false, never>;
76
- }
1
+ import { AfterViewInit, TemplateRef, EventEmitter } from "@angular/core";
2
+ import { ControlValueAccessor, UntypedFormControl } from "@angular/forms";
3
+ import { Observable } from "rxjs";
4
+ import { DropdownSelectResultComponent } from "./dropdown-select-result.component";
5
+ import { SelectItem } from "./select-item";
6
+ import { Messages } from "./messages";
7
+ import * as i0 from "@angular/core";
8
+ export declare class DropdownSelectComponent implements AfterViewInit, ControlValueAccessor {
9
+ MORE_RESULTS_MSG: string;
10
+ NO_RESULTS_MSG: string;
11
+ messages: Messages;
12
+ dataProvider: (item: string, selected?: any[]) => Observable<any[]>;
13
+ selectedProvider: (ids: any[]) => Observable<any[]>;
14
+ selectItemAdapter: (entity: any) => SelectItem;
15
+ referenceMode: "id" | "entity";
16
+ placeholder: string;
17
+ disabled: boolean;
18
+ multiple: boolean;
19
+ clientMode: boolean;
20
+ deleteIcon: string;
21
+ inputState: number;
22
+ resultsCount: any;
23
+ searchDelay: number;
24
+ select: EventEmitter<SelectItem>;
25
+ remove: EventEmitter<SelectItem>;
26
+ results: DropdownSelectResultComponent;
27
+ onTouchedCallback: () => void;
28
+ onChangeCallback: (_: any) => void;
29
+ templateRef: TemplateRef<any>;
30
+ term: UntypedFormControl;
31
+ searchFocused: boolean;
32
+ resultsVisible: boolean;
33
+ listedData: SelectItem[];
34
+ modifiedData: SelectItem[];
35
+ selectedItems: SelectItem[];
36
+ private termInput;
37
+ private placeholderSelected;
38
+ ngAfterViewInit(): void;
39
+ onItemSelected(item: SelectItem): void;
40
+ focusInput(): void;
41
+ writeValue(selectedValues: any): void;
42
+ getCountMessage(): string;
43
+ setDisabledState(isDisabled: boolean): void;
44
+ registerOnChange(fn: any): void;
45
+ registerOnTouched(fn: any): void;
46
+ removeItem(item: SelectItem): void;
47
+ getPlaceholder(): string;
48
+ getInputWidth(): string;
49
+ isHideable(): boolean;
50
+ onFocus(): void;
51
+ onBlur(): void;
52
+ onKeyUp(ev: KeyboardEvent): void;
53
+ onKeyDown(ev: KeyboardEvent): void;
54
+ onKeyPress(ev: KeyboardEvent): void;
55
+ showResults(): void;
56
+ focus(): void;
57
+ private subscribeToChangesAndLoadDataFromObservable;
58
+ private subscribeToResults;
59
+ private loadDataFromObservable;
60
+ private alreadySelected;
61
+ private fetchAndfilterLocalData;
62
+ private fetchData;
63
+ private filterLocalData;
64
+ private containsText;
65
+ private adaptItems;
66
+ private buildValue;
67
+ private getSelectedIds;
68
+ private getEntities;
69
+ private populateItemsFromEntities;
70
+ private handleMultipleWithEntities;
71
+ private populateItemsFromIds;
72
+ private handleMultipleWithIds;
73
+ private handleSingleWithId;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<DropdownSelectComponent, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<DropdownSelectComponent, "hci-dropdown-select", never, { "messages": { "alias": "messages"; "required": false; }; "dataProvider": { "alias": "dataProvider"; "required": false; }; "selectedProvider": { "alias": "selectedProvider"; "required": false; }; "selectItemAdapter": { "alias": "selectItemAdapter"; "required": false; }; "referenceMode": { "alias": "referenceMode"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "clientMode": { "alias": "clientMode"; "required": false; }; "deleteIcon": { "alias": "deleteIcon"; "required": false; }; "inputState": { "alias": "inputState"; "required": false; }; "resultsCount": { "alias": "resultsCount"; "required": false; }; "searchDelay": { "alias": "searchDelay"; "required": false; }; }, { "select": "select"; "remove": "remove"; }, never, never, false, never>;
76
+ }