@shival99/z-ui 1.4.1 → 1.4.3
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/fesm2022/shival99-z-ui-components-z-accordion.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-accordion.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs +3 -3
- package/fesm2022/shival99-z-ui-components-z-breadcrumb.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-button.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +31 -18
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-card.mjs +5 -5
- package/fesm2022/shival99-z-ui-components-z-card.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs +16 -10
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-code.mjs +7 -7
- package/fesm2022/shival99-z-ui-components-z-code.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +4 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +4 -4
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-editor.mjs +4 -4
- package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-filter.mjs +8 -8
- package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-input.mjs +192 -182
- package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-menu.mjs +5 -5
- package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +5 -5
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +12 -12
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-radio.mjs +4 -4
- package/fesm2022/shival99-z-ui-components-z-radio.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +179 -168
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-steps.mjs +5 -5
- package/fesm2022/shival99-z-ui-components-z-steps.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-switch.mjs +4 -4
- package/fesm2022/shival99-z-ui-components-z-switch.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +343 -36
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tags.mjs +12 -11
- package/fesm2022/shival99-z-ui-components-z-tags.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +0 -2
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-toast.mjs +3 -3
- package/fesm2022/shival99-z-ui-components-z-toast.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +12 -12
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +9 -9
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-accordion.d.ts +1 -1
- package/types/shival99-z-ui-components-z-breadcrumb.d.ts +1 -1
- package/types/shival99-z-ui-components-z-button.d.ts +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +18 -4
- package/types/shival99-z-ui-components-z-card.d.ts +3 -3
- package/types/shival99-z-ui-components-z-checkbox.d.ts +8 -5
- package/types/shival99-z-ui-components-z-code.d.ts +5 -5
- package/types/shival99-z-ui-components-z-dropdown-menu.d.ts +2 -2
- package/types/shival99-z-ui-components-z-editor.d.ts +4 -4
- package/types/shival99-z-ui-components-z-filter.d.ts +8 -8
- package/types/shival99-z-ui-components-z-input.d.ts +47 -35
- package/types/shival99-z-ui-components-z-menu.d.ts +3 -3
- package/types/shival99-z-ui-components-z-modal.d.ts +1 -1
- package/types/shival99-z-ui-components-z-pagination.d.ts +3 -3
- package/types/shival99-z-ui-components-z-popover.d.ts +10 -10
- package/types/shival99-z-ui-components-z-radio.d.ts +2 -2
- package/types/shival99-z-ui-components-z-select.d.ts +58 -45
- package/types/shival99-z-ui-components-z-skeleton.d.ts +1 -1
- package/types/shival99-z-ui-components-z-steps.d.ts +3 -3
- package/types/shival99-z-ui-components-z-switch.d.ts +2 -2
- package/types/shival99-z-ui-components-z-table.d.ts +76 -8
- package/types/shival99-z-ui-components-z-tags.d.ts +4 -2
- package/types/shival99-z-ui-components-z-timeline.d.ts +6 -6
- package/types/shival99-z-ui-components-z-toast.d.ts +2 -2
- package/types/shival99-z-ui-components-z-upload.d.ts +13 -13
|
@@ -14,6 +14,7 @@ interface ZRadioOption {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
declare class ZRadioComponent implements ControlValueAccessor {
|
|
17
|
+
readonly zChange: _angular_core.OutputEmitterRef<string | number | null>;
|
|
17
18
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
18
19
|
readonly zType: _angular_core.InputSignal<ZRadioType>;
|
|
19
20
|
readonly zSize: _angular_core.InputSignal<ZRadioSize>;
|
|
@@ -24,7 +25,6 @@ declare class ZRadioComponent implements ControlValueAccessor {
|
|
|
24
25
|
readonly zOptions: _angular_core.InputSignal<ZRadioOption[]>;
|
|
25
26
|
readonly zOrientation: _angular_core.InputSignal<ZRadioOrientation>;
|
|
26
27
|
readonly zSelectedValue: _angular_core.ModelSignal<string | number | null>;
|
|
27
|
-
readonly zChange: _angular_core.OutputEmitterRef<string | number | null>;
|
|
28
28
|
private readonly _disabled;
|
|
29
29
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
30
30
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -45,7 +45,7 @@ declare class ZRadioComponent implements ControlValueAccessor {
|
|
|
45
45
|
protected getRadioState(): string;
|
|
46
46
|
protected getOptionState(option: ZRadioOption): string;
|
|
47
47
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZRadioComponent, never>;
|
|
48
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZRadioComponent, "z-radio", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zType": { "alias": "zType"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zValue": { "alias": "zValue"; "required": false; "isSignal": true; }; "zOptions": { "alias": "zOptions"; "required": false; "isSignal": true; }; "zOrientation": { "alias": "zOrientation"; "required": false; "isSignal": true; }; "zSelectedValue": { "alias": "zSelectedValue"; "required": false; "isSignal": true; }; }, { "
|
|
48
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZRadioComponent, "z-radio", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zType": { "alias": "zType"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zValue": { "alias": "zValue"; "required": false; "isSignal": true; }; "zOptions": { "alias": "zOptions"; "required": false; "isSignal": true; }; "zOrientation": { "alias": "zOrientation"; "required": false; "isSignal": true; }; "zSelectedValue": { "alias": "zSelectedValue"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; "zSelectedValue": "zSelectedValueChange"; }, never, never, true, never>;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
declare const zRadioVariants: (props?: ({
|
|
@@ -19,6 +19,15 @@ declare class ZSelectSelectedDirective<T = unknown> {
|
|
|
19
19
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZSelectSelectedDirective<any>, "[z-select-selected], [zSelectSelected]", never, {}, {}, never, never, true, never>;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
interface ZSelectState {
|
|
23
|
+
focused: boolean;
|
|
24
|
+
touched: boolean;
|
|
25
|
+
blurred: boolean;
|
|
26
|
+
dirty: boolean;
|
|
27
|
+
disabled: boolean;
|
|
28
|
+
readonly: boolean;
|
|
29
|
+
open: boolean;
|
|
30
|
+
}
|
|
22
31
|
interface ZSelectControl<T = unknown> {
|
|
23
32
|
validate: () => void;
|
|
24
33
|
reset: () => void;
|
|
@@ -35,6 +44,7 @@ interface ZSelectControl<T = unknown> {
|
|
|
35
44
|
selectedOption: Signal<ZSelectOption<T> | null>;
|
|
36
45
|
selectedOptions: Signal<ZSelectOption<T>[]>;
|
|
37
46
|
errorMessage: Signal<string>;
|
|
47
|
+
state: Signal<ZSelectState>;
|
|
38
48
|
}
|
|
39
49
|
type ZSelectMode = 'single' | 'multiple' | 'tags';
|
|
40
50
|
type ZSelectSize = 'sm' | 'default' | 'lg';
|
|
@@ -79,6 +89,17 @@ interface ZSelectTagColor {
|
|
|
79
89
|
declare const TAG_COLORS: ZSelectTagColor[];
|
|
80
90
|
|
|
81
91
|
declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAccessor {
|
|
92
|
+
private readonly _injector;
|
|
93
|
+
private readonly _destroyRef;
|
|
94
|
+
private readonly _zTranslate;
|
|
95
|
+
protected readonly triggerRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
96
|
+
protected readonly searchInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
97
|
+
protected readonly dropdownTpl: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
98
|
+
protected readonly optionsContainerRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
99
|
+
protected readonly virtualScrollRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
100
|
+
protected readonly loadMoreSentinelRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
101
|
+
protected readonly customSelectedDirective: _angular_core.Signal<ZSelectSelectedDirective<any> | undefined>;
|
|
102
|
+
protected readonly customOptionDirective: _angular_core.Signal<ZSelectOptionDirective<any> | undefined>;
|
|
82
103
|
readonly zOnSearch: _angular_core.OutputEmitterRef<string>;
|
|
83
104
|
readonly zOnLoadMore: _angular_core.OutputEmitterRef<ZSelectLoadMoreEvent>;
|
|
84
105
|
readonly zControl: _angular_core.OutputEmitterRef<ZSelectControl<T>>;
|
|
@@ -118,49 +139,31 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
118
139
|
readonly zSelectedTemplate: _angular_core.InputSignal<ZSelectLabelTemplate<T> | null>;
|
|
119
140
|
readonly zOptionTemplate: _angular_core.InputSignal<ZSelectOptionTemplate<T> | null>;
|
|
120
141
|
readonly zActionTemplate: _angular_core.InputSignal<TemplateRef<unknown> | null>;
|
|
121
|
-
protected readonly customSelectedDirective: _angular_core.Signal<ZSelectSelectedDirective<any> | undefined>;
|
|
122
|
-
protected readonly customOptionDirective: _angular_core.Signal<ZSelectOptionDirective<any> | undefined>;
|
|
123
142
|
readonly zAsyncValidators: _angular_core.InputSignal<ZSelectAsyncValidator<T>[]>;
|
|
124
143
|
readonly zAsyncDebounce: _angular_core.InputSignal<number>;
|
|
125
144
|
readonly zAsyncValidateOn: _angular_core.InputSignal<ZSelectAsyncValidateOn>;
|
|
126
145
|
readonly zValidators: _angular_core.InputSignal<ZSelectValidator<T>[]>;
|
|
127
|
-
protected readonly triggerRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
128
|
-
protected readonly searchInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
129
|
-
protected readonly dropdownTpl: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
130
|
-
protected readonly optionsContainerRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
131
|
-
protected readonly virtualScrollRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
132
|
-
protected readonly loadMoreSentinelRef: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
133
|
-
protected readonly selectId: string;
|
|
134
|
-
protected readonly dropdownId: string;
|
|
135
|
-
protected readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
136
|
-
protected readonly searchText: _angular_core.WritableSignal<string>;
|
|
137
|
-
protected readonly dropdownWidth: _angular_core.WritableSignal<number>;
|
|
138
|
-
protected readonly hasScrollShadow: _angular_core.WritableSignal<boolean>;
|
|
139
|
-
private readonly _popoverControl;
|
|
140
|
-
private readonly _searchSubject;
|
|
141
|
-
private _loadMoreObserver;
|
|
142
|
-
private readonly _allKnownOptions;
|
|
143
|
-
private _virtualScrollListener;
|
|
144
|
-
private readonly _optionGap;
|
|
145
|
-
protected readonly virtualizer: _shival99_angular_virtual.AngularVirtualizer<HTMLDivElement, Element>;
|
|
146
146
|
private readonly _value;
|
|
147
|
-
protected readonly currentValue: _angular_core.Signal<T | T[] | null>;
|
|
148
147
|
private readonly _disabled;
|
|
149
148
|
private readonly _touched;
|
|
150
149
|
private readonly _dirty;
|
|
151
150
|
private readonly _formControl;
|
|
152
151
|
private readonly _formStateVersion;
|
|
153
|
-
private readonly
|
|
154
|
-
private readonly
|
|
155
|
-
private readonly _zTranslate;
|
|
156
|
-
private _onChange;
|
|
157
|
-
private _onTouched;
|
|
158
|
-
private _ngControl;
|
|
159
|
-
protected readonly isValidating: _angular_core.WritableSignal<boolean>;
|
|
152
|
+
private readonly _popoverControl;
|
|
153
|
+
private readonly _allKnownOptions;
|
|
160
154
|
private readonly _asyncErrors;
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
155
|
+
protected readonly uiState: _angular_core.WritableSignal<{
|
|
156
|
+
isOpen: boolean;
|
|
157
|
+
hasScrollShadow: boolean;
|
|
158
|
+
isFocused: boolean;
|
|
159
|
+
isValidating: boolean;
|
|
160
|
+
}>;
|
|
161
|
+
protected readonly selectId: string;
|
|
162
|
+
protected readonly dropdownId: string;
|
|
163
|
+
protected readonly searchText: _angular_core.WritableSignal<string>;
|
|
164
|
+
protected readonly dropdownWidth: _angular_core.WritableSignal<number>;
|
|
165
|
+
protected readonly currentValue: _angular_core.Signal<T | T[] | null>;
|
|
166
|
+
protected readonly virtualizer: _shival99_angular_virtual.AngularVirtualizer<HTMLDivElement, Element>;
|
|
164
167
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
165
168
|
protected readonly isReadonly: _angular_core.Signal<boolean>;
|
|
166
169
|
protected readonly isInteractionDisabled: _angular_core.Signal<boolean>;
|
|
@@ -196,12 +199,30 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
196
199
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
197
200
|
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
198
201
|
protected readonly selectClasses: _angular_core.Signal<string>;
|
|
202
|
+
readonly state: _angular_core.Signal<ZSelectState>;
|
|
203
|
+
private readonly _searchSubject;
|
|
204
|
+
private readonly _asyncCancelSubject;
|
|
205
|
+
private readonly _asyncValidationSubject;
|
|
206
|
+
private _loadMoreObserver;
|
|
207
|
+
private _virtualScrollListener;
|
|
208
|
+
private _asyncValidationAbortController;
|
|
209
|
+
private _onChange;
|
|
210
|
+
private _onTouched;
|
|
211
|
+
private _ngControl;
|
|
199
212
|
constructor();
|
|
200
213
|
ngOnInit(): void;
|
|
201
214
|
writeValue(value: T | T[] | null): void;
|
|
202
215
|
registerOnChange(fn: (value: T | T[] | null) => void): void;
|
|
203
216
|
registerOnTouched(fn: () => void): void;
|
|
204
217
|
setDisabledState(isDisabled: boolean): void;
|
|
218
|
+
reset(): void;
|
|
219
|
+
focus(): void;
|
|
220
|
+
blur(): void;
|
|
221
|
+
markAsTouched(): void;
|
|
222
|
+
markAsUntouched(): void;
|
|
223
|
+
markAsDirty(): void;
|
|
224
|
+
markAsPristine(): void;
|
|
225
|
+
validate(): void;
|
|
205
226
|
protected onTriggerKeydown(event: KeyboardEvent): void;
|
|
206
227
|
protected onTriggerMousedown(): void;
|
|
207
228
|
protected toggleDropdown(): void;
|
|
@@ -211,25 +232,17 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
211
232
|
protected onPopoverHideEnd(): void;
|
|
212
233
|
protected onSearchChange(value: string): void;
|
|
213
234
|
protected checkScrollShadow(): void;
|
|
214
|
-
private _setupLoadMoreObserver;
|
|
215
|
-
private _cleanupLoadMoreObserver;
|
|
216
|
-
private _setupVirtualScrollLoadMore;
|
|
217
|
-
private _cleanupVirtualScrollListener;
|
|
218
235
|
protected selectOption(option: ZSelectOption<T>, closeFn?: () => void): void;
|
|
219
236
|
protected removeOption(event: MouseEvent, option: ZSelectOption<T>): void;
|
|
220
237
|
protected clearAll(event: MouseEvent): void;
|
|
221
238
|
protected selectAll(): void;
|
|
222
239
|
protected removeAll(): void;
|
|
223
|
-
reset(): void;
|
|
224
|
-
focus(): void;
|
|
225
|
-
blur(): void;
|
|
226
|
-
markAsTouched(): void;
|
|
227
|
-
markAsUntouched(): void;
|
|
228
|
-
markAsDirty(): void;
|
|
229
|
-
markAsPristine(): void;
|
|
230
|
-
validate(): void;
|
|
231
|
-
private _emitControl;
|
|
232
240
|
protected trackByValue: (_index: number, option: ZSelectOption<T>) => unknown;
|
|
241
|
+
private _emitControl;
|
|
242
|
+
private _setupLoadMoreObserver;
|
|
243
|
+
private _cleanupLoadMoreObserver;
|
|
244
|
+
private _setupVirtualScrollLoadMore;
|
|
245
|
+
private _cleanupVirtualScrollListener;
|
|
233
246
|
private _getValidationErrors;
|
|
234
247
|
private _runAsyncValidation;
|
|
235
248
|
private _cancelAsyncValidation;
|
|
@@ -12,6 +12,7 @@ interface ZSkeletonRowItem {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
declare class ZSkeletonComponent implements AfterViewInit, OnDestroy {
|
|
15
|
+
private readonly _elementRef;
|
|
15
16
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
16
17
|
readonly zType: _angular_core.InputSignal<ZSkeletonType>;
|
|
17
18
|
readonly zSize: _angular_core.InputSignal<ZSkeletonSize>;
|
|
@@ -21,7 +22,6 @@ declare class ZSkeletonComponent implements AfterViewInit, OnDestroy {
|
|
|
21
22
|
readonly zGap: _angular_core.InputSignal<number>;
|
|
22
23
|
readonly zAnimated: _angular_core.InputSignal<boolean>;
|
|
23
24
|
readonly zRadius: _angular_core.InputSignal<string>;
|
|
24
|
-
private readonly _elementRef;
|
|
25
25
|
private readonly _calculatedRows;
|
|
26
26
|
private _parentElement;
|
|
27
27
|
private _originalOverflow;
|
|
@@ -32,7 +32,8 @@ interface ZStepsControl {
|
|
|
32
32
|
declare class ZStepsComponent implements AfterViewInit {
|
|
33
33
|
private readonly _elementRef;
|
|
34
34
|
private readonly _destroyRef;
|
|
35
|
-
|
|
35
|
+
readonly zOnStepClick: _angular_core.OutputEmitterRef<number>;
|
|
36
|
+
readonly zControl: _angular_core.OutputEmitterRef<ZStepsControl>;
|
|
36
37
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
37
38
|
readonly zSteps: _angular_core.InputSignal<ZStepItem[]>;
|
|
38
39
|
readonly zCurrent: _angular_core.InputSignal<number>;
|
|
@@ -43,10 +44,9 @@ declare class ZStepsComponent implements AfterViewInit {
|
|
|
43
44
|
readonly zShowNumber: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
44
45
|
readonly zResponsive: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
45
46
|
readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
46
|
-
readonly zOnStepClick: _angular_core.OutputEmitterRef<number>;
|
|
47
|
-
readonly zControl: _angular_core.OutputEmitterRef<ZStepsControl>;
|
|
48
47
|
private readonly _internalCurrent;
|
|
49
48
|
private readonly _stepOverrides;
|
|
49
|
+
private _resizeObserver;
|
|
50
50
|
protected readonly isResponsiveVertical: _angular_core.WritableSignal<boolean>;
|
|
51
51
|
protected readonly currentStep: _angular_core.Signal<number>;
|
|
52
52
|
protected readonly mergedSteps: _angular_core.Signal<ZStepItem[]>;
|
|
@@ -7,6 +7,7 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
7
7
|
type ZSwitchSize = 'sm' | 'default' | 'lg';
|
|
8
8
|
|
|
9
9
|
declare class ZSwitchComponent implements ControlValueAccessor {
|
|
10
|
+
readonly zChange: _angular_core.OutputEmitterRef<boolean>;
|
|
10
11
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
11
12
|
readonly zSize: _angular_core.InputSignal<ZSwitchSize>;
|
|
12
13
|
readonly zLabel: _angular_core.InputSignal<string>;
|
|
@@ -15,7 +16,6 @@ declare class ZSwitchComponent implements ControlValueAccessor {
|
|
|
15
16
|
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
16
17
|
readonly zTextPosition: _angular_core.InputSignal<"left" | "right">;
|
|
17
18
|
readonly zChecked: _angular_core.ModelSignal<boolean>;
|
|
18
|
-
readonly zChange: _angular_core.OutputEmitterRef<boolean>;
|
|
19
19
|
private readonly _disabled;
|
|
20
20
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
21
21
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -32,7 +32,7 @@ declare class ZSwitchComponent implements ControlValueAccessor {
|
|
|
32
32
|
setDisabledState(isDisabled: boolean): void;
|
|
33
33
|
protected onSwitchClick(): void;
|
|
34
34
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZSwitchComponent, never>;
|
|
35
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZSwitchComponent, "z-switch", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zTextPosition": { "alias": "zTextPosition"; "required": false; "isSignal": true; }; "zChecked": { "alias": "zChecked"; "required": false; "isSignal": true; }; }, { "
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZSwitchComponent, "z-switch", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zTextPosition": { "alias": "zTextPosition"; "required": false; "isSignal": true; }; "zChecked": { "alias": "zChecked"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; "zChecked": "zCheckedChange"; }, never, never, true, never>;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
declare const zSwitchVariants: (props?: ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _shival99_angular_virtual from '@shival99/angular-virtual';
|
|
2
2
|
import * as _tanstack_angular_table from '@tanstack/angular-table';
|
|
3
|
-
import { RowData,
|
|
3
|
+
import { RowData, SortingState, ColumnFiltersState, PaginationState, RowSelectionState, ExpandedState, HeaderContext, CellContext, FlexRenderComponent, Row, ColumnPinningState, RowPinningState, VisibilityState, ColumnOrderState, createAngularTable, Column, Table, ColumnDef } from '@tanstack/angular-table';
|
|
4
4
|
import * as _shival99_z_ui_components_z_input from '@shival99/z-ui/components/z-input';
|
|
5
5
|
import { ZInputSize } from '@shival99/z-ui/components/z-input';
|
|
6
6
|
import * as _angular_core from '@angular/core';
|
|
@@ -33,10 +33,11 @@ interface ZTableIconPart {
|
|
|
33
33
|
type ZTableAlign = 'left' | 'center' | 'right';
|
|
34
34
|
type ZTableCellContent<T> = string | number | TemplateRef<{
|
|
35
35
|
$implicit: CellContext<T, unknown>;
|
|
36
|
-
}> | Type<unknown> | ((info: CellContext<T, unknown>) => string | number | TemplateRef<unknown>);
|
|
36
|
+
}> | Type<unknown> | FlexRenderComponent<unknown> | ((info: CellContext<T, unknown>) => string | number | TemplateRef<unknown> | FlexRenderComponent<unknown>);
|
|
37
37
|
type ZTableHeaderContent<T> = string | TemplateRef<unknown> | Type<unknown> | (() => string) | ((info: HeaderContext<T, unknown>) => string);
|
|
38
38
|
type ZTableColumn<T = unknown> = ZTableColumnConfig<T>;
|
|
39
39
|
type ZTableFilterType = 'text' | 'number' | 'select' | 'multi-select' | 'date' | 'date-range' | 'range' | 'tags';
|
|
40
|
+
type ZTableEditType = 'text' | 'number' | 'select' | 'date' | 'checkbox' | 'textarea';
|
|
40
41
|
type ZTableMode = 'local' | 'server';
|
|
41
42
|
interface ZTableSortConfig<T> {
|
|
42
43
|
enabled?: boolean;
|
|
@@ -55,6 +56,21 @@ interface ZTableFilterConfig<T = unknown> {
|
|
|
55
56
|
placeholder?: string;
|
|
56
57
|
filterFn?: ZTableBuiltInFilterFn | ZTableCustomFilterFn<T>;
|
|
57
58
|
}
|
|
59
|
+
type ZTableEditSize = 'sm' | 'default' | 'lg';
|
|
60
|
+
interface ZTableEditConfig<T = unknown> {
|
|
61
|
+
enabled?: boolean;
|
|
62
|
+
type?: ZTableEditType;
|
|
63
|
+
options?: ZSelectOption[];
|
|
64
|
+
placeholder?: string;
|
|
65
|
+
min?: number;
|
|
66
|
+
max?: number;
|
|
67
|
+
step?: number;
|
|
68
|
+
rows?: number;
|
|
69
|
+
disabled?: boolean | ((row: T) => boolean);
|
|
70
|
+
onChange?: (value: unknown, row: T, columnId: string) => void;
|
|
71
|
+
/** Size of the edit input. Default: 'sm' */
|
|
72
|
+
size?: ZTableEditSize;
|
|
73
|
+
}
|
|
58
74
|
interface ZTableSavedColumnInfo {
|
|
59
75
|
id: string;
|
|
60
76
|
accessorKey?: string;
|
|
@@ -105,6 +121,7 @@ interface ZTableBodyColumnConfig<T> {
|
|
|
105
121
|
tooltip?: string | ZTooltipConfig | ((info: CellContext<T, unknown>) => string | ZTooltipConfig);
|
|
106
122
|
actions?: ZTableActionColumnConfig<T>;
|
|
107
123
|
enabledClick?: boolean;
|
|
124
|
+
edit?: ZTableEditConfig<T> | boolean;
|
|
108
125
|
}
|
|
109
126
|
interface ZTableFooterColumnConfig<T> {
|
|
110
127
|
content?: ZTableHeaderContent<T>;
|
|
@@ -177,6 +194,14 @@ interface ZTableCellClickEvent<T> {
|
|
|
177
194
|
columnId: string;
|
|
178
195
|
value: unknown;
|
|
179
196
|
}
|
|
197
|
+
interface ZTableCellEditEvent<T> {
|
|
198
|
+
row: T;
|
|
199
|
+
rowId: string;
|
|
200
|
+
rowIndex: number;
|
|
201
|
+
columnId: string;
|
|
202
|
+
oldValue: unknown;
|
|
203
|
+
newValue: unknown;
|
|
204
|
+
}
|
|
180
205
|
interface ZTableSortChangeEvent {
|
|
181
206
|
sorting: SortingState;
|
|
182
207
|
}
|
|
@@ -221,7 +246,7 @@ interface ZTableActionColumnConfig<T = unknown> {
|
|
|
221
246
|
actions: ZTableActionItem<T>[];
|
|
222
247
|
maxVisible?: number;
|
|
223
248
|
}
|
|
224
|
-
type ZTableChangeType = 'page' | 'sort' | 'filter' | 'search' | 'select' | 'expand' | 'rowSelect' | 'rowSelectAll' | 'rowExpand' | 'cellClick' | 'action';
|
|
249
|
+
type ZTableChangeType = 'page' | 'sort' | 'filter' | 'search' | 'select' | 'expand' | 'rowSelect' | 'rowSelectAll' | 'rowExpand' | 'cellClick' | 'cellEdit' | 'action';
|
|
225
250
|
interface ZTableChangeEventBase {
|
|
226
251
|
type: ZTableChangeType;
|
|
227
252
|
}
|
|
@@ -273,7 +298,11 @@ interface ZTableActionChange<T> extends ZTableChangeEventBase {
|
|
|
273
298
|
type: 'action';
|
|
274
299
|
data: ZTableActionClickEvent<T>;
|
|
275
300
|
}
|
|
276
|
-
|
|
301
|
+
interface ZTableCellEditChange<T> extends ZTableChangeEventBase {
|
|
302
|
+
type: 'cellEdit';
|
|
303
|
+
data: ZTableCellEditEvent<T>;
|
|
304
|
+
}
|
|
305
|
+
type ZTableChangeEvent<T> = ZTablePageChange | ZTableSortChange | ZTableFilterChange | ZTableSearchChange | ZTableSelectChange | ZTableExpandChange | ZTableRowSelectChange<T> | ZTableRowSelectAllChange<T> | ZTableRowExpandChange<T> | ZTableCellClickChange<T> | ZTableCellEditChange<T> | ZTableActionChange<T>;
|
|
277
306
|
interface ZTableInitialState {
|
|
278
307
|
columnPinning?: ColumnPinningState;
|
|
279
308
|
rowPinning?: RowPinningState;
|
|
@@ -345,6 +374,14 @@ interface ZTableConfig<T> {
|
|
|
345
374
|
debounceTime?: number;
|
|
346
375
|
useSkeleton?: boolean;
|
|
347
376
|
}
|
|
377
|
+
interface ZTableEditCellChangeEvent<T = unknown> {
|
|
378
|
+
row: T;
|
|
379
|
+
rowId: string;
|
|
380
|
+
rowIndex: number;
|
|
381
|
+
columnId: string;
|
|
382
|
+
oldValue: unknown;
|
|
383
|
+
newValue: unknown;
|
|
384
|
+
}
|
|
348
385
|
declare module '@tanstack/angular-table' {
|
|
349
386
|
interface TableMeta<TData extends RowData> {
|
|
350
387
|
updateData?: (rowIndex: number, columnId: string, value: unknown) => void;
|
|
@@ -352,11 +389,11 @@ declare module '@tanstack/angular-table' {
|
|
|
352
389
|
}
|
|
353
390
|
|
|
354
391
|
declare class ZTableComponent<T> implements AfterViewInit {
|
|
392
|
+
readonly zChange: _angular_core.OutputEmitterRef<ZTableChangeEvent<T>>;
|
|
393
|
+
readonly zControl: _angular_core.OutputEmitterRef<ZTableControl<T>>;
|
|
355
394
|
readonly zConfig: _angular_core.InputSignal<ZTableConfig<T>>;
|
|
356
395
|
readonly zLoading: _angular_core.InputSignal<boolean>;
|
|
357
396
|
readonly zKey: _angular_core.InputSignal<string>;
|
|
358
|
-
readonly zChange: _angular_core.OutputEmitterRef<ZTableChangeEvent<T>>;
|
|
359
|
-
readonly zControl: _angular_core.OutputEmitterRef<ZTableControl<T>>;
|
|
360
397
|
private readonly _destroy$;
|
|
361
398
|
private readonly _zTranslate;
|
|
362
399
|
private readonly _isSyncingScroll;
|
|
@@ -491,6 +528,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
491
528
|
toggleHeaderFooterShadow(): void;
|
|
492
529
|
onActionClick(event: ZTableActionClickEvent<T>): void;
|
|
493
530
|
onCellClick(row: Row<T>, columnId: string, value: unknown): void;
|
|
531
|
+
onCellEdit(event: ZTableEditCellChangeEvent<T>): void;
|
|
494
532
|
openSettingsDrawer(): void;
|
|
495
533
|
onPendingColumnDrop(event: CdkDragDrop<string[]>): void;
|
|
496
534
|
onVisibleColumnsChange(values: (string | number)[]): void;
|
|
@@ -584,6 +622,36 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
584
622
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZTableActionsComponent<any>, "z-table-actions", never, { "zConfig": { "alias": "zConfig"; "required": true; "isSignal": true; }; "zRow": { "alias": "zRow"; "required": true; "isSignal": true; }; "zRowId": { "alias": "zRowId"; "required": true; "isSignal": true; }; "zDropdownButtonSize": { "alias": "zDropdownButtonSize"; "required": false; "isSignal": true; }; }, { "zActionClick": "zActionClick"; }, never, never, true, never>;
|
|
585
623
|
}
|
|
586
624
|
|
|
625
|
+
declare class ZTableEditCellComponent<T = unknown> {
|
|
626
|
+
readonly zRow: _angular_core.InputSignal<T>;
|
|
627
|
+
readonly zRowId: _angular_core.InputSignal<string>;
|
|
628
|
+
readonly zRowIndex: _angular_core.InputSignal<number>;
|
|
629
|
+
readonly zColumnId: _angular_core.InputSignal<string>;
|
|
630
|
+
readonly zValue: _angular_core.InputSignal<unknown>;
|
|
631
|
+
readonly zEditConfig: _angular_core.InputSignal<ZTableEditConfig<T> | undefined>;
|
|
632
|
+
readonly zChange: _angular_core.OutputEmitterRef<ZTableEditCellChangeEvent<T>>;
|
|
633
|
+
private readonly _currentValue;
|
|
634
|
+
private _initialized;
|
|
635
|
+
protected readonly editConfig: _angular_core.Signal<ZTableEditConfig<T>>;
|
|
636
|
+
protected readonly editType: _angular_core.Signal<ZTableEditType>;
|
|
637
|
+
protected readonly size: _angular_core.Signal<ZTableEditSize>;
|
|
638
|
+
protected readonly placeholder: _angular_core.Signal<string>;
|
|
639
|
+
protected readonly selectOptions: _angular_core.Signal<ZSelectOption<unknown>[]>;
|
|
640
|
+
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
641
|
+
protected readonly value: _angular_core.Signal<unknown>;
|
|
642
|
+
protected readonly stringValue: _angular_core.Signal<string>;
|
|
643
|
+
protected readonly numericValue: _angular_core.Signal<number | null>;
|
|
644
|
+
protected readonly booleanValue: _angular_core.Signal<boolean>;
|
|
645
|
+
protected readonly dateValue: _angular_core.Signal<Date | null>;
|
|
646
|
+
protected onValueChange(newValue: unknown): void;
|
|
647
|
+
protected onSelectChange(newValue: unknown): void;
|
|
648
|
+
protected onDateChange(newValue: unknown): void;
|
|
649
|
+
protected onCheckboxChange(checked: boolean): void;
|
|
650
|
+
private _emitChange;
|
|
651
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZTableEditCellComponent<any>, never>;
|
|
652
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZTableEditCellComponent<any>, "z-table-edit-cell", never, { "zRow": { "alias": "zRow"; "required": true; "isSignal": true; }; "zRowId": { "alias": "zRowId"; "required": true; "isSignal": true; }; "zRowIndex": { "alias": "zRowIndex"; "required": true; "isSignal": true; }; "zColumnId": { "alias": "zColumnId"; "required": true; "isSignal": true; }; "zValue": { "alias": "zValue"; "required": false; "isSignal": true; }; "zEditConfig": { "alias": "zEditConfig"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; }, never, never, true, never>;
|
|
653
|
+
}
|
|
654
|
+
|
|
587
655
|
declare const isHeaderConfig: <T>(config: ZTableHeaderColumnConfig<T> | ZTableHeaderContent<T> | undefined) => config is ZTableHeaderColumnConfig<T>;
|
|
588
656
|
declare const isBodyConfig: <T>(config: ZTableBodyColumnConfig<T> | ZTableCellContent<T> | undefined) => config is ZTableBodyColumnConfig<T>;
|
|
589
657
|
declare const isFooterConfig: <T>(config: ZTableFooterColumnConfig<T> | ZTableHeaderContent<T> | undefined) => config is ZTableFooterColumnConfig<T>;
|
|
@@ -653,5 +721,5 @@ declare const getFooterConfig: <T>(col: ZTableColumnConfig<T> | undefined) => {
|
|
|
653
721
|
declare const findColumnConfig: <T>(columnId: string, columns: ZTableColumnConfig<T>[]) => ZTableColumnConfig<T> | undefined;
|
|
654
722
|
declare function columnConfigToColumnDef<T>(config: ZTableColumnConfig<T>): ColumnDef<T>;
|
|
655
723
|
|
|
656
|
-
export { ZTableActionsComponent, ZTableComponent, ZTableFilterComponent, ZTableIconTextComponent, columnConfigToColumnDef, findColumnConfig, getBodyConfig, getFooterConfig, getHeaderConfig, isBodyConfig, isFooterConfig, isHeaderConfig };
|
|
657
|
-
export type { ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSearchConfig, ZTableSortChangeEvent, ZTableSortConfig };
|
|
724
|
+
export { ZTableActionsComponent, ZTableComponent, ZTableEditCellComponent, ZTableFilterComponent, ZTableIconTextComponent, columnConfigToColumnDef, findColumnConfig, getBodyConfig, getFooterConfig, getHeaderConfig, isBodyConfig, isFooterConfig, isHeaderConfig };
|
|
725
|
+
export type { ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableCellEditChange, ZTableCellEditEvent, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableEditCellChangeEvent, ZTableEditConfig, ZTableEditSize, ZTableEditType, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSearchConfig, ZTableSortChangeEvent, ZTableSortConfig };
|
|
@@ -51,8 +51,10 @@ declare class ZTagsComponent implements AfterViewInit {
|
|
|
51
51
|
} | null>;
|
|
52
52
|
readonly zTagClose: _angular_core.OutputEmitterRef<ZTagItem>;
|
|
53
53
|
readonly zTagAdd: _angular_core.OutputEmitterRef<string>;
|
|
54
|
-
protected readonly
|
|
55
|
-
|
|
54
|
+
protected readonly uiState: _angular_core.WritableSignal<{
|
|
55
|
+
isAdding: boolean;
|
|
56
|
+
pendingFocus: boolean;
|
|
57
|
+
}>;
|
|
56
58
|
private readonly _randomColorCache;
|
|
57
59
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
58
60
|
protected readonly containerClasses: _angular_core.Signal<string>;
|
|
@@ -32,7 +32,7 @@ declare class ZTimelineComponent {
|
|
|
32
32
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
33
33
|
readonly zItems: _angular_core.InputSignal<ZTimelineItem[]>;
|
|
34
34
|
readonly zSize: _angular_core.InputSignal<ZTimelineSize>;
|
|
35
|
-
readonly zTimeVariant: _angular_core.InputSignal<"default" | "
|
|
35
|
+
readonly zTimeVariant: _angular_core.InputSignal<"default" | "secondary" | "outline" | "muted">;
|
|
36
36
|
readonly zLineStyle: _angular_core.InputSignal<ZTimelineLineStyle>;
|
|
37
37
|
readonly zIconStyle: _angular_core.InputSignal<ZTimelineIconStyle>;
|
|
38
38
|
readonly zLayout: _angular_core.InputSignal<ZTimelineLayout>;
|
|
@@ -57,7 +57,7 @@ declare class ZTimelineClassPipe implements PipeTransform {
|
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
declare const zTimelineVariants: (props?: ({
|
|
60
|
-
zSize?: "
|
|
60
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
61
61
|
zLayout?: "default" | "reversed" | "alternate" | null | undefined;
|
|
62
62
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
63
63
|
declare const zTimelineItemVariants: (props?: ({
|
|
@@ -71,18 +71,18 @@ declare const zTimelineHeaderVariants: (props?: ({
|
|
|
71
71
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
72
72
|
declare const zTimelineIconVariants: (props?: ({
|
|
73
73
|
zColor?: "default" | "primary" | "success" | "warning" | "error" | "info" | null | undefined;
|
|
74
|
-
zIconStyle?: "
|
|
74
|
+
zIconStyle?: "outline" | "filled" | null | undefined;
|
|
75
75
|
zLayout?: "default" | "reversed" | "alternate" | null | undefined;
|
|
76
76
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
77
77
|
declare const zTimelineTitleVariants: (props?: ({
|
|
78
|
-
zSize?: "
|
|
78
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
79
79
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
80
80
|
declare const zTimelineTimeVariants: (props?: ({
|
|
81
|
-
zVariant?: "default" | "
|
|
81
|
+
zVariant?: "default" | "secondary" | "outline" | "muted" | null | undefined;
|
|
82
82
|
zLayout?: "default" | "reversed" | "alternate" | null | undefined;
|
|
83
83
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
84
84
|
declare const zTimelineDescriptionVariants: (props?: ({
|
|
85
|
-
zSize?: "
|
|
85
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
86
86
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
87
87
|
declare const zTimelineContentVariants: (props?: ({
|
|
88
88
|
zContentStyle?: "simple" | "card" | null | undefined;
|
|
@@ -34,6 +34,8 @@ interface ZToasterConfig {
|
|
|
34
34
|
declare const Z_TOASTER_DEFAULT_CONFIG: ZToasterConfig;
|
|
35
35
|
|
|
36
36
|
declare class ZToastComponent {
|
|
37
|
+
private readonly _themeService;
|
|
38
|
+
private readonly _config;
|
|
37
39
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
38
40
|
readonly zVariant: _angular_core.InputSignal<"default" | "success" | "error" | "warning" | "info" | null | undefined>;
|
|
39
41
|
readonly zTheme: _angular_core.InputSignal<ZToastTheme | undefined>;
|
|
@@ -45,8 +47,6 @@ declare class ZToastComponent {
|
|
|
45
47
|
readonly zCloseButton: _angular_core.InputSignal<boolean | undefined>;
|
|
46
48
|
readonly zToastOptions: _angular_core.InputSignal<ZToastOptions>;
|
|
47
49
|
readonly zDir: _angular_core.InputSignal<ZToastDir | undefined>;
|
|
48
|
-
private readonly _themeService;
|
|
49
|
-
private readonly _config;
|
|
50
50
|
protected readonly effectiveTheme: _angular_core.Signal<ZToastTheme>;
|
|
51
51
|
protected readonly effectivePosition: _angular_core.Signal<ZToastPosition>;
|
|
52
52
|
protected readonly effectiveRichColors: _angular_core.Signal<boolean>;
|
|
@@ -42,6 +42,16 @@ interface ZUploadControl {
|
|
|
42
42
|
declare const formatFileSize: (bytes: number) => string;
|
|
43
43
|
|
|
44
44
|
declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
45
|
+
private readonly _injector;
|
|
46
|
+
private readonly _destroyRef;
|
|
47
|
+
private readonly _zTranslate;
|
|
48
|
+
protected readonly fileInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
49
|
+
readonly zOnUpload: _angular_core.OutputEmitterRef<ZUploadFile[]>;
|
|
50
|
+
readonly zOnRemove: _angular_core.OutputEmitterRef<ZUploadFile>;
|
|
51
|
+
readonly zOnDownload: _angular_core.OutputEmitterRef<ZUploadFile>;
|
|
52
|
+
readonly zOnError: _angular_core.OutputEmitterRef<ZUploadError>;
|
|
53
|
+
readonly zOnFileChange: _angular_core.OutputEmitterRef<File[]>;
|
|
54
|
+
readonly zControl: _angular_core.OutputEmitterRef<ZUploadControl>;
|
|
45
55
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
46
56
|
readonly zLabel: _angular_core.InputSignal<string>;
|
|
47
57
|
readonly zLabelClass: _angular_core.InputSignal<string>;
|
|
@@ -57,13 +67,6 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
57
67
|
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
58
68
|
readonly zShowProgress: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
59
69
|
readonly zValidators: _angular_core.InputSignal<ZUploadValidator[]>;
|
|
60
|
-
readonly zOnUpload: _angular_core.OutputEmitterRef<ZUploadFile[]>;
|
|
61
|
-
readonly zOnRemove: _angular_core.OutputEmitterRef<ZUploadFile>;
|
|
62
|
-
readonly zOnDownload: _angular_core.OutputEmitterRef<ZUploadFile>;
|
|
63
|
-
readonly zOnError: _angular_core.OutputEmitterRef<ZUploadError>;
|
|
64
|
-
readonly zOnFileChange: _angular_core.OutputEmitterRef<File[]>;
|
|
65
|
-
readonly zControl: _angular_core.OutputEmitterRef<ZUploadControl>;
|
|
66
|
-
protected readonly fileInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
67
70
|
readonly files: _angular_core.WritableSignal<ZUploadFile[]>;
|
|
68
71
|
protected readonly inputId: string;
|
|
69
72
|
protected readonly isDragOver: _angular_core.WritableSignal<boolean>;
|
|
@@ -74,9 +77,6 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
74
77
|
private readonly _formControl;
|
|
75
78
|
private readonly _formStateVersion;
|
|
76
79
|
private readonly _isNgModel;
|
|
77
|
-
private readonly _injector;
|
|
78
|
-
private readonly _destroyRef;
|
|
79
|
-
private readonly _zTranslate;
|
|
80
80
|
private _onChange;
|
|
81
81
|
private _onTouched;
|
|
82
82
|
private _ngControl;
|
|
@@ -86,7 +86,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
86
86
|
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
87
87
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
88
88
|
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
89
|
-
protected readonly currentStatus: _angular_core.Signal<"default" | "
|
|
89
|
+
protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error" | "active">;
|
|
90
90
|
protected readonly dropzoneClasses: _angular_core.Signal<string>;
|
|
91
91
|
protected readonly acceptTypes: _angular_core.Signal<string>;
|
|
92
92
|
protected readonly formatFileSize: (bytes: number) => string;
|
|
@@ -125,11 +125,11 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
125
125
|
|
|
126
126
|
declare const zUploadDropzoneVariants: (props?: ({
|
|
127
127
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
128
|
-
zStatus?: "default" | "
|
|
128
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | "active" | null | undefined;
|
|
129
129
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
130
130
|
type ZUploadDropzoneVariants = VariantProps<typeof zUploadDropzoneVariants>;
|
|
131
131
|
declare const zUploadFileItemVariants: (props?: ({
|
|
132
|
-
zStatus?: "
|
|
132
|
+
zStatus?: "error" | "pending" | "uploading" | "success" | null | undefined;
|
|
133
133
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
134
134
|
type ZUploadFileItemVariants = VariantProps<typeof zUploadFileItemVariants>;
|
|
135
135
|
|