mis-crystal-design-system 18.0.24 → 18.1.0-signal-test
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.
- package/action-list/action-list.component.d.ts +17 -15
- package/async-search-dropdown/async-dropdown.component.d.ts +43 -61
- package/button/button.component.d.ts +35 -13
- package/button/button.directive.d.ts +10 -8
- package/checkbox/checkbox.component.d.ts +15 -12
- package/chip/chip.component.d.ts +9 -11
- package/datepicker_v2/models/dp-config.model.d.ts +1 -0
- package/datepicker_v2/tz-datepicker.directive.d.ts +15 -18
- package/datepicker_v2/tz-dp-container/tz-dp-container.component.d.ts +42 -21
- package/daterangepicker_v2/tz-daterangepicker.directive.d.ts +12 -14
- package/daterangepicker_v2/tz-drp-container/tz-drp-container.component.d.ts +46 -23
- package/drawer/drawer-body/drawer-body.component.d.ts +2 -2
- package/dropdown/calculate-container-height.directive.d.ts +7 -8
- package/dropdown/dropdown.component.d.ts +41 -49
- package/dynamic-form/dynamic-form.component.d.ts +20 -16
- package/esm2022/action-list/action-list.component.mjs +112 -89
- package/esm2022/async-search-dropdown/async-dropdown.component.mjs +256 -326
- package/esm2022/button/button.component.mjs +55 -48
- package/esm2022/button/button.directive.mjs +36 -40
- package/esm2022/checkbox/checkbox.component.mjs +75 -70
- package/esm2022/chip/chip.component.mjs +20 -33
- package/esm2022/datepicker_v2/models/dp-config.model.mjs +1 -1
- package/esm2022/datepicker_v2/tz-datepicker.directive.mjs +42 -71
- package/esm2022/datepicker_v2/tz-dp-container/tz-dp-container.component.mjs +202 -172
- package/esm2022/datepicker_v2/utils/index.mjs +2 -1
- package/esm2022/daterangepicker_v2/tz-daterangepicker.directive.mjs +26 -51
- package/esm2022/daterangepicker_v2/tz-drp-container/tz-drp-container.component.mjs +282 -235
- package/esm2022/drawer/drawer-body/drawer-body.component.mjs +8 -7
- package/esm2022/dropdown/calculate-container-height.directive.mjs +25 -22
- package/esm2022/dropdown/dropdown.component.mjs +162 -186
- package/esm2022/dynamic-form/dynamic-form.component.mjs +118 -72
- package/esm2022/fab/fab.component.mjs +29 -33
- package/esm2022/filter/filter-panel/filter-panel.component.mjs +60 -58
- package/esm2022/input/directives/input/input.directive.mjs +22 -26
- package/esm2022/input/mis-input.component.mjs +41 -45
- package/esm2022/input-stepper/input-stepper/input-stepper.component.mjs +40 -50
- package/esm2022/loader/loader.component.mjs +8 -11
- package/esm2022/mobile-filter/mobile-filter.component.mjs +61 -61
- package/esm2022/modal/module-wrapper/module-wrapper.component.mjs +11 -9
- package/esm2022/multi-select-dropdown/multi-select-dropdown.component.mjs +235 -281
- package/esm2022/nested-multi-select-dropdown/nested-multi-select-dropdown.component.mjs +250 -287
- package/esm2022/phone-input/phone-input.component.mjs +21 -43
- package/esm2022/radio-button/radio-button.component.mjs +15 -27
- package/esm2022/ske-loader/ske-loader.component.mjs +15 -29
- package/esm2022/slider/slider.component.mjs +23 -33
- package/esm2022/slider/slider.module.mjs +4 -11
- package/esm2022/snackbar/snackbar/snackbar.component.mjs +21 -15
- package/esm2022/snackbar/snackbar.service.mjs +3 -2
- package/esm2022/specificdatepicker/tz-sdp-container/tz-sdp-container.component.mjs +230 -343
- package/esm2022/specificdatepicker/tz-specificdatepicker.directive.mjs +77 -105
- package/esm2022/star-rating/star-rating.component.mjs +57 -71
- package/esm2022/switch/switch.component.mjs +34 -36
- package/esm2022/table/actions-cell/actions-cell.component.mjs +55 -54
- package/esm2022/table/custom-table-cell.directive.mjs +22 -18
- package/esm2022/table/filter/filter.component.mjs +60 -42
- package/esm2022/table/sort-icons.directive.mjs +16 -8
- package/esm2022/table/sub-table/sub-table.component.mjs +41 -44
- package/esm2022/table/table.component.mjs +181 -165
- package/esm2022/timepicker/timepicker.component.mjs +244 -159
- package/esm2022/timepicker/timepicker.directive.mjs +3 -2
- package/esm2022/timerangepicker/timerangepicker.component.mjs +200 -159
- package/esm2022/toast/toast.component.mjs +6 -7
- package/esm2022/toast/toast.data.service.mjs +15 -9
- package/esm2022/tooltip/tooltip-container/tooltip.component.mjs +12 -12
- package/esm2022/tooltip/tooltip.directive.mjs +4 -4
- package/esm2022/virtual-scroll/virtual-scroll.component.mjs +57 -59
- package/fab/fab.component.d.ts +12 -8
- package/fesm2022/mis-crystal-design-system-action-list.mjs +111 -88
- package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs +253 -324
- package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-button.mjs +88 -85
- package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-checkbox.mjs +74 -69
- package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-chip.mjs +19 -32
- package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs +242 -240
- package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs +305 -283
- package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-drawer.mjs +7 -6
- package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dropdown.mjs +183 -204
- package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs +118 -72
- package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-fab.mjs +28 -32
- package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-filter.mjs +59 -57
- package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs +39 -49
- package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-input.mjs +62 -71
- package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-loader.mjs +7 -10
- package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs +60 -60
- package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-modal.mjs +10 -8
- package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs +233 -279
- package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs +249 -286
- package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-phone-input.mjs +20 -42
- package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-radio-button.mjs +14 -26
- package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs +14 -28
- package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-slider.mjs +25 -42
- package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-snackbar.mjs +22 -15
- package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs +304 -445
- package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-star-rating.mjs +56 -70
- package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-switch.mjs +33 -35
- package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-table.mjs +365 -321
- package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timepicker.mjs +245 -159
- package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs +199 -158
- package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-toast.mjs +18 -13
- package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-tooltip.mjs +14 -14
- package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs +57 -59
- package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
- package/filter/filter-panel/filter-panel.component.d.ts +14 -14
- package/input/directives/input/input.directive.d.ts +6 -10
- package/input/mis-input.component.d.ts +12 -13
- package/input-stepper/input-stepper/input-stepper.component.d.ts +8 -7
- package/loader/loader.component.d.ts +3 -6
- package/mobile-filter/mobile-filter.component.d.ts +15 -15
- package/modal/module-wrapper/module-wrapper.component.d.ts +2 -3
- package/multi-select-dropdown/multi-select-dropdown.component.d.ts +89 -51
- package/nested-multi-select-dropdown/nested-multi-select-dropdown.component.d.ts +99 -56
- package/package.json +17 -17
- package/phone-input/phone-input.component.d.ts +16 -18
- package/radio-button/radio-button.component.d.ts +9 -11
- package/ske-loader/ske-loader.component.d.ts +8 -11
- package/slider/slider.component.d.ts +8 -11
- package/slider/slider.module.d.ts +1 -2
- package/snackbar/snackbar/snackbar.component.d.ts +3 -3
- package/specificdatepicker/tz-sdp-container/tz-sdp-container.component.d.ts +35 -35
- package/specificdatepicker/tz-specificdatepicker.directive.d.ts +24 -28
- package/star-rating/star-rating.component.d.ts +18 -18
- package/switch/switch.component.d.ts +8 -10
- package/table/actions-cell/actions-cell.component.d.ts +14 -14
- package/table/custom-table-cell.directive.d.ts +3 -3
- package/table/filter/filter.component.d.ts +9 -9
- package/table/sub-table/sub-table.component.d.ts +5 -5
- package/table/table.component.d.ts +38 -35
- package/timepicker/timepicker.component.d.ts +29 -28
- package/timerangepicker/timerangepicker.component.d.ts +36 -33
- package/toast/toast.data.service.d.ts +1 -1
- package/tooltip/tooltip-container/tooltip.component.d.ts +4 -4
- package/virtual-scroll/virtual-scroll.component.d.ts +8 -9
|
@@ -8,29 +8,52 @@ export declare class TzDrpContainerComponent implements OnInit {
|
|
|
8
8
|
data: IDatePickerData;
|
|
9
9
|
private dayjsInstance;
|
|
10
10
|
private rawWeekDays;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
11
|
+
private readonly weekDaysSignal;
|
|
12
|
+
private readonly currentMonthNumberSignal;
|
|
13
|
+
private readonly currentMonthSignal;
|
|
14
|
+
private readonly currentYearNumberSignal;
|
|
15
|
+
private readonly currentMonthDatesSignal;
|
|
16
|
+
private readonly nextMonthNumberSignal;
|
|
17
|
+
private readonly nextMonthSignal;
|
|
18
|
+
private readonly nextYearNumberSignal;
|
|
19
|
+
private readonly nextMonthDatesSignal;
|
|
20
|
+
private readonly isPreviousMonthDisabledSignal;
|
|
21
|
+
private readonly isNextMonthDisabledSignal;
|
|
22
|
+
private readonly selectionStartedSignal;
|
|
23
|
+
private readonly localSelectedDatesSignal;
|
|
24
|
+
private readonly isDatesValidSignal;
|
|
25
|
+
private readonly selectedItemLabelSignal;
|
|
26
|
+
readonly startHourSignal: import("@angular/core").WritableSignal<number>;
|
|
27
|
+
readonly startMinuteSignal: import("@angular/core").WritableSignal<number>;
|
|
28
|
+
readonly startAmPmSignal: import("@angular/core").WritableSignal<string>;
|
|
29
|
+
readonly endHourSignal: import("@angular/core").WritableSignal<number>;
|
|
30
|
+
readonly endMinuteSignal: import("@angular/core").WritableSignal<number>;
|
|
31
|
+
readonly endAmPmSignal: import("@angular/core").WritableSignal<string>;
|
|
32
|
+
readonly startHour24Signal: import("@angular/core").WritableSignal<number>;
|
|
33
|
+
readonly endHour24Signal: import("@angular/core").WritableSignal<number>;
|
|
34
|
+
weekDays: import("@angular/core").Signal<IWeekDay[]>;
|
|
35
|
+
currentMonthNumber: import("@angular/core").Signal<number>;
|
|
36
|
+
currentMonth: import("@angular/core").Signal<ICurrentMonth>;
|
|
37
|
+
currentYearNumber: import("@angular/core").Signal<number>;
|
|
38
|
+
currentMonthDates: import("@angular/core").Signal<ICurrentMonthDates[]>;
|
|
39
|
+
nextMonthNumber: import("@angular/core").Signal<number>;
|
|
40
|
+
nextMonth: import("@angular/core").Signal<ICurrentMonth>;
|
|
41
|
+
nextYearNumber: import("@angular/core").Signal<number>;
|
|
42
|
+
nextMonthDates: import("@angular/core").Signal<ICurrentMonthDates[]>;
|
|
43
|
+
isPreviousMonthDisabled: import("@angular/core").Signal<boolean>;
|
|
44
|
+
isNextMonthDisabled: import("@angular/core").Signal<boolean>;
|
|
45
|
+
selectionStarted: import("@angular/core").Signal<boolean>;
|
|
46
|
+
localSelectedDates: import("@angular/core").Signal<ISelectedDatesConfig>;
|
|
47
|
+
isDatesValid: import("@angular/core").Signal<boolean>;
|
|
48
|
+
selectedItemLabel: import("@angular/core").Signal<string>;
|
|
49
|
+
startHour: import("@angular/core").Signal<number>;
|
|
50
|
+
startMinute: import("@angular/core").Signal<number>;
|
|
51
|
+
startAmPm: import("@angular/core").Signal<string>;
|
|
52
|
+
endHour: import("@angular/core").Signal<number>;
|
|
53
|
+
endMinute: import("@angular/core").Signal<number>;
|
|
54
|
+
endAmPm: import("@angular/core").Signal<string>;
|
|
55
|
+
startHour24: import("@angular/core").Signal<number>;
|
|
56
|
+
endHour24: import("@angular/core").Signal<number>;
|
|
34
57
|
constructor(data: IDatePickerData, toast: ToastService);
|
|
35
58
|
ngOnInit(): void;
|
|
36
59
|
retractDayMonth(day: any, month: any, year: any): any;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ComponentPortal, PortalInjector } from "@angular/cdk/portal";
|
|
2
|
-
import { ComponentFactoryResolver, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { ComponentFactoryResolver, ViewContainerRef, WritableSignal } from "@angular/core";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class DrawerBodyComponent {
|
|
5
5
|
private cfr;
|
|
6
|
-
drawerPortal: ComponentPortal<any>;
|
|
6
|
+
drawerPortal: WritableSignal<ComponentPortal<any> | null>;
|
|
7
7
|
constructor(cfr: ComponentFactoryResolver);
|
|
8
8
|
place: ViewContainerRef;
|
|
9
9
|
bindComponent(type: any, injector: PortalInjector): void;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class CalculateContainerHeightDirective
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
2
|
+
export declare class CalculateContainerHeightDirective {
|
|
3
|
+
items: import("@angular/core").InputSignal<any[]>;
|
|
4
|
+
visibleItems: import("@angular/core").InputSignal<number>;
|
|
5
|
+
private readonly el;
|
|
6
|
+
private itemHeight;
|
|
7
|
+
private heightEffect;
|
|
9
8
|
private setContainerHeight;
|
|
10
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<CalculateContainerHeightDirective, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CalculateContainerHeightDirective, "[calculateContainerHeight]", never, { "items": { "alias": "items"; "required": false; }; "visibleItems": { "alias": "visibleItems"; "required": false; }; }, {}, never, never, false, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CalculateContainerHeightDirective, "[calculateContainerHeight]", never, { "items": { "alias": "items"; "required": false; "isSignal": true; }; "visibleItems": { "alias": "visibleItems"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
12
11
|
}
|
|
@@ -1,73 +1,69 @@
|
|
|
1
|
+
import { ElementRef, TemplateRef, ViewContainerRef, ChangeDetectorRef } from "@angular/core";
|
|
1
2
|
import { Overlay } from "@angular/cdk/overlay";
|
|
2
|
-
import {
|
|
3
|
-
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
3
|
+
import { CdkVirtualScrollViewport } from "@angular/cdk/scrolling";
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class DropdownComponent
|
|
5
|
+
export declare class DropdownComponent {
|
|
6
6
|
private eRef;
|
|
7
7
|
private overlay;
|
|
8
8
|
private viewContainerRef;
|
|
9
9
|
private cdr;
|
|
10
|
-
isOpen: boolean
|
|
11
|
-
loading: boolean
|
|
12
|
-
isSearchInputFocused: boolean
|
|
13
|
-
searchInput: string
|
|
14
|
-
searchData: DropdownItem[]
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
data: DropdownItem[]
|
|
18
|
-
height: string
|
|
19
|
-
ariaLabel: string
|
|
20
|
-
width: string
|
|
21
|
-
label: string
|
|
22
|
-
itemSizeForCdk: number
|
|
23
|
-
showOnlyIcon: boolean
|
|
24
|
-
higlightSelectedValue: boolean
|
|
25
|
-
dropdownListHeight: string
|
|
26
|
-
dropdownListWidth: string
|
|
27
|
-
dropdownListPosition: "Left" | "Right"
|
|
28
|
-
config: any
|
|
29
|
-
searchEnabled: boolean
|
|
30
|
-
selectedItem: DropdownItem
|
|
31
|
-
noDataMessage: string
|
|
32
|
-
multiLine: boolean
|
|
33
|
-
additionalInfoMessage: string
|
|
34
|
-
scrollIntoView: boolean
|
|
35
|
-
searchLabel: string
|
|
36
|
-
customStyles: {
|
|
10
|
+
readonly isOpen: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
readonly loading: import("@angular/core").WritableSignal<boolean>;
|
|
12
|
+
readonly isSearchInputFocused: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
+
readonly searchInput: import("@angular/core").WritableSignal<string>;
|
|
14
|
+
readonly searchData: import("@angular/core").WritableSignal<DropdownItem[]>;
|
|
15
|
+
readonly dynamicHeight: import("@angular/core").WritableSignal<string>;
|
|
16
|
+
readonly internalData: import("@angular/core").WritableSignal<DropdownItem[]>;
|
|
17
|
+
readonly data: import("@angular/core").InputSignal<DropdownItem[]>;
|
|
18
|
+
readonly height: import("@angular/core").InputSignal<string>;
|
|
19
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
20
|
+
readonly width: import("@angular/core").InputSignal<string>;
|
|
21
|
+
readonly label: import("@angular/core").InputSignal<string>;
|
|
22
|
+
readonly itemSizeForCdk: import("@angular/core").InputSignal<number>;
|
|
23
|
+
readonly showOnlyIcon: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
readonly higlightSelectedValue: import("@angular/core").InputSignal<boolean>;
|
|
25
|
+
readonly dropdownListHeight: import("@angular/core").InputSignal<string>;
|
|
26
|
+
readonly dropdownListWidth: import("@angular/core").InputSignal<string>;
|
|
27
|
+
readonly dropdownListPosition: import("@angular/core").InputSignal<"Left" | "Right">;
|
|
28
|
+
readonly config: import("@angular/core").InputSignal<any>;
|
|
29
|
+
readonly searchEnabled: import("@angular/core").InputSignal<boolean>;
|
|
30
|
+
readonly selectedItem: import("@angular/core").InputSignal<DropdownItem>;
|
|
31
|
+
readonly noDataMessage: import("@angular/core").InputSignal<string>;
|
|
32
|
+
readonly multiLine: import("@angular/core").InputSignal<boolean>;
|
|
33
|
+
readonly additionalInfoMessage: import("@angular/core").InputSignal<string>;
|
|
34
|
+
readonly scrollIntoView: import("@angular/core").InputSignal<boolean>;
|
|
35
|
+
readonly searchLabel: import("@angular/core").InputSignal<string>;
|
|
36
|
+
readonly customStyles: import("@angular/core").InputSignal<{
|
|
37
37
|
[key: string]: string;
|
|
38
|
-
}
|
|
39
|
-
activeItem: boolean
|
|
40
|
-
onChange:
|
|
38
|
+
}>;
|
|
39
|
+
readonly activeItem: import("@angular/core").InputSignal<boolean>;
|
|
40
|
+
readonly onChange: import("@angular/core").OutputEmitterRef<DropdownItem>;
|
|
41
41
|
selectElement: ElementRef;
|
|
42
42
|
popupContainer: TemplateRef<Element>;
|
|
43
|
-
private _itemsContainer;
|
|
44
|
-
set itemsContainer(container: ElementRef | null);
|
|
45
43
|
viewPort: CdkVirtualScrollViewport;
|
|
46
44
|
customItem: TemplateRef<Element>;
|
|
45
|
+
private _itemsContainer;
|
|
46
|
+
set itemsContainer(container: ElementRef | null);
|
|
47
47
|
private overlayRef;
|
|
48
48
|
constructor(eRef: ElementRef, overlay: Overlay, viewContainerRef: ViewContainerRef, cdr: ChangeDetectorRef);
|
|
49
|
-
ngOnInit(): void;
|
|
50
49
|
measureAndUpdateHeight(): void;
|
|
51
50
|
get currentData(): DropdownItem[];
|
|
52
51
|
get itemsContainerStyle(): {
|
|
53
52
|
[key: string]: string;
|
|
54
53
|
};
|
|
55
|
-
getIconStyles(item: any, activeItem: boolean): {
|
|
56
|
-
[key: string]: string;
|
|
57
|
-
};
|
|
58
54
|
setUpAsyncDataSearch(): void;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
55
|
+
searchInputOnChange(newValue: string): void;
|
|
56
|
+
filterByValue(array: DropdownItem[], string: string): DropdownItem[];
|
|
57
|
+
filterByPrimaryText(array: DropdownItem[], string: string): DropdownItem[];
|
|
62
58
|
searchInputFocused(isFocused: boolean): void;
|
|
63
|
-
searchInputCanceled(event:
|
|
59
|
+
searchInputCanceled(event: Event): void;
|
|
64
60
|
toggleDropdown(): void;
|
|
65
61
|
private openDropdown;
|
|
66
|
-
selectItem(item:
|
|
62
|
+
selectItem(item: DropdownItem): void;
|
|
67
63
|
onCancel(): void;
|
|
68
64
|
closeOnEsc(event: KeyboardEvent): void;
|
|
69
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "mis-dropdown", never, { "data": { "alias": "data"; "required": false; }; "height": { "alias": "height"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "width": { "alias": "width"; "required": false; }; "label": { "alias": "label"; "required": false; }; "itemSizeForCdk": { "alias": "itemSizeForCdk"; "required": false; }; "showOnlyIcon": { "alias": "showOnlyIcon"; "required": false; }; "higlightSelectedValue": { "alias": "higlightSelectedValue"; "required": false; }; "dropdownListHeight": { "alias": "dropdownListHeight"; "required": false; }; "dropdownListWidth": { "alias": "dropdownListWidth"; "required": false; }; "dropdownListPosition": { "alias": "dropdownListPosition"; "required": false; }; "config": { "alias": "config"; "required": false; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; }; "selectedItem": { "alias": "selectedItem"; "required": false; }; "noDataMessage": { "alias": "noDataMessage"; "required": false; }; "multiLine": { "alias": "multiLine"; "required": false; }; "additionalInfoMessage": { "alias": "additionalInfoMessage"; "required": false; }; "scrollIntoView": { "alias": "scrollIntoView"; "required": false; }; "searchLabel": { "alias": "searchLabel"; "required": false; }; "customStyles": { "alias": "customStyles"; "required": false; }; "activeItem": { "alias": "activeItem"; "required": false; }; }, { "onChange": "onChange"; }, ["customItem"], never, false, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownComponent, "mis-dropdown", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "itemSizeForCdk": { "alias": "itemSizeForCdk"; "required": false; "isSignal": true; }; "showOnlyIcon": { "alias": "showOnlyIcon"; "required": false; "isSignal": true; }; "higlightSelectedValue": { "alias": "higlightSelectedValue"; "required": false; "isSignal": true; }; "dropdownListHeight": { "alias": "dropdownListHeight"; "required": false; "isSignal": true; }; "dropdownListWidth": { "alias": "dropdownListWidth"; "required": false; "isSignal": true; }; "dropdownListPosition": { "alias": "dropdownListPosition"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "searchEnabled": { "alias": "searchEnabled"; "required": false; "isSignal": true; }; "selectedItem": { "alias": "selectedItem"; "required": false; "isSignal": true; }; "noDataMessage": { "alias": "noDataMessage"; "required": false; "isSignal": true; }; "multiLine": { "alias": "multiLine"; "required": false; "isSignal": true; }; "additionalInfoMessage": { "alias": "additionalInfoMessage"; "required": false; "isSignal": true; }; "scrollIntoView": { "alias": "scrollIntoView"; "required": false; "isSignal": true; }; "searchLabel": { "alias": "searchLabel"; "required": false; "isSignal": true; }; "customStyles": { "alias": "customStyles"; "required": false; "isSignal": true; }; "activeItem": { "alias": "activeItem"; "required": false; "isSignal": true; }; }, { "onChange": "onChange"; }, ["customItem"], never, false, never>;
|
|
71
67
|
}
|
|
72
68
|
export interface DropdownItem {
|
|
73
69
|
label: any;
|
|
@@ -76,7 +72,3 @@ export interface DropdownItem {
|
|
|
76
72
|
disabled?: boolean;
|
|
77
73
|
customIcon?: string;
|
|
78
74
|
}
|
|
79
|
-
export interface ActionItemLabel {
|
|
80
|
-
primaryText?: string;
|
|
81
|
-
secondaryText?: string;
|
|
82
|
-
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit, TemplateRef } from "@angular/core";
|
|
2
2
|
import { NsDynamicForm } from "./dynamic-form.namespace";
|
|
3
3
|
import { UntypedFormArray, UntypedFormControl, UntypedFormGroup, ValidatorFn } from "@angular/forms";
|
|
4
4
|
import { Subscription } from "rxjs";
|
|
@@ -9,33 +9,32 @@ export declare class DynamicFormComponent implements OnInit, OnDestroy {
|
|
|
9
9
|
* formValues: Holds the value of the dynamic form with "key" being dynamic field "title"
|
|
10
10
|
* and value being the user input.
|
|
11
11
|
*/
|
|
12
|
-
formFields:
|
|
13
|
-
formValues: {
|
|
12
|
+
formFields: import("@angular/core").InputSignal<NsDynamicForm.IDynamicField[]>;
|
|
13
|
+
formValues: import("@angular/core").InputSignal<{
|
|
14
14
|
[key: string]: any;
|
|
15
|
-
}
|
|
16
|
-
activeBtnIconUrl: string
|
|
17
|
-
calendarIconUrl: string
|
|
18
|
-
removeIconUrl: string
|
|
19
|
-
removeSepratorForSubFields: boolean
|
|
15
|
+
}>;
|
|
16
|
+
activeBtnIconUrl: import("@angular/core").InputSignal<string>;
|
|
17
|
+
calendarIconUrl: import("@angular/core").InputSignal<string>;
|
|
18
|
+
removeIconUrl: import("@angular/core").InputSignal<string>;
|
|
19
|
+
removeSepratorForSubFields: import("@angular/core").InputSignal<boolean>;
|
|
20
20
|
/**
|
|
21
21
|
* dynamicForm: Constructed using formFields and formValues(in case of edit)
|
|
22
22
|
*/
|
|
23
|
-
dynamicForm: UntypedFormGroup;
|
|
24
23
|
/**
|
|
25
24
|
* formUpdated: Emits formValues Object whenever there is a change in the dynamic form.
|
|
26
25
|
*/
|
|
27
|
-
formUpdated:
|
|
26
|
+
formUpdated: import("@angular/core").OutputEmitterRef<{
|
|
28
27
|
[key: string]: any;
|
|
29
28
|
}>;
|
|
30
29
|
/**
|
|
31
30
|
* formValid: Emits boolean depending on validity of the form
|
|
32
31
|
*/
|
|
33
|
-
formValid:
|
|
32
|
+
formValid: import("@angular/core").OutputEmitterRef<boolean>;
|
|
34
33
|
/**
|
|
35
34
|
* formInitialized: Emits dynamic form API on form initilization
|
|
36
35
|
*/
|
|
37
|
-
formInitialized:
|
|
38
|
-
fieldRemoved:
|
|
36
|
+
formInitialized: import("@angular/core").OutputEmitterRef<any>;
|
|
37
|
+
fieldRemoved: import("@angular/core").OutputEmitterRef<NsDynamicForm.IDynamicField>;
|
|
39
38
|
customInputTextNumber: TemplateRef<Element>;
|
|
40
39
|
customInputTextarea: TemplateRef<Element>;
|
|
41
40
|
customInputDate: TemplateRef<Element>;
|
|
@@ -44,8 +43,13 @@ export declare class DynamicFormComponent implements OnInit, OnDestroy {
|
|
|
44
43
|
customSingleSelectRadio: TemplateRef<Element>;
|
|
45
44
|
customMultiSelectCheckbox: TemplateRef<Element>;
|
|
46
45
|
customMultiSelectDropdown: TemplateRef<Element>;
|
|
47
|
-
|
|
48
|
-
|
|
46
|
+
private readonly dynamicFormSignal;
|
|
47
|
+
private readonly dynamicFormAPISignal;
|
|
48
|
+
private readonly valueChangesSubscriptionSignal;
|
|
49
|
+
dynamicForm: import("@angular/core").Signal<UntypedFormGroup>;
|
|
50
|
+
dynamicFormAPI: import("@angular/core").Signal<NsDynamicForm.IDynamicFormAPI>;
|
|
51
|
+
valueChangesSubscription$: import("@angular/core").Signal<Subscription>;
|
|
52
|
+
get formFieldsArray(): NsDynamicForm.IDynamicField[];
|
|
49
53
|
constructor();
|
|
50
54
|
ngOnInit(): void;
|
|
51
55
|
ngOnDestroy(): void;
|
|
@@ -76,6 +80,6 @@ export declare class DynamicFormComponent implements OnInit, OnDestroy {
|
|
|
76
80
|
mapFormValueToFormField(formField: NsDynamicForm.IDynamicField, formValue: any): any;
|
|
77
81
|
mapFormFieldToFormValue(formField: NsDynamicForm.IDynamicField, formValue: any): any;
|
|
78
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "mis-dynamic-form", never, { "formFields": { "alias": "formFields"; "required": false; }; "formValues": { "alias": "formValues"; "required": false; }; "activeBtnIconUrl": { "alias": "activeBtnIconUrl"; "required": false; }; "calendarIconUrl": { "alias": "calendarIconUrl"; "required": false; }; "removeIconUrl": { "alias": "removeIconUrl"; "required": false; }; "removeSepratorForSubFields": { "alias": "removeSepratorForSubFields"; "required": false; }; }, { "formUpdated": "formUpdated"; "formValid": "formValid"; "formInitialized": "formInitialized"; "fieldRemoved": "fieldRemoved"; }, ["customInputTextNumber", "customInputTextarea", "customInputDate", "customBooleanToggle", "customSingleSelectDropdown", "customSingleSelectRadio", "customMultiSelectCheckbox", "customMultiSelectDropdown"], never, false, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "mis-dynamic-form", never, { "formFields": { "alias": "formFields"; "required": false; "isSignal": true; }; "formValues": { "alias": "formValues"; "required": false; "isSignal": true; }; "activeBtnIconUrl": { "alias": "activeBtnIconUrl"; "required": false; "isSignal": true; }; "calendarIconUrl": { "alias": "calendarIconUrl"; "required": false; "isSignal": true; }; "removeIconUrl": { "alias": "removeIconUrl"; "required": false; "isSignal": true; }; "removeSepratorForSubFields": { "alias": "removeSepratorForSubFields"; "required": false; "isSignal": true; }; }, { "formUpdated": "formUpdated"; "formValid": "formValid"; "formInitialized": "formInitialized"; "fieldRemoved": "fieldRemoved"; }, ["customInputTextNumber", "customInputTextarea", "customInputDate", "customBooleanToggle", "customSingleSelectDropdown", "customSingleSelectRadio", "customMultiSelectCheckbox", "customMultiSelectDropdown"], never, false, never>;
|
|
80
84
|
}
|
|
81
85
|
export declare const dynamicFieldValidator: (validators: Array<NsDynamicForm.IDynamicFieldValidator>) => ValidatorFn;
|