@shival99/z-ui 1.1.15 → 1.1.17
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/README.md +1 -1
- package/fesm2022/shival99-z-ui-components-z-button.mjs +4 -3
- package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +13 -6
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +15 -6
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-icon.mjs +2 -1
- package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +874 -494
- package/fesm2022/shival99-z-ui-components-z-table.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-tooltip.mjs +5 -4
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-i18n.mjs +4 -0
- package/fesm2022/shival99-z-ui-i18n.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +2 -2
- package/types/shival99-z-ui-components-z-breadcrumb.d.ts +2 -2
- package/types/shival99-z-ui-components-z-button.d.ts +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +4 -4
- package/types/shival99-z-ui-components-z-dropdown-menu.d.ts +8 -5
- package/types/shival99-z-ui-components-z-empty.d.ts +1 -1
- package/types/shival99-z-ui-components-z-filter.d.ts +1 -1
- package/types/shival99-z-ui-components-z-icon.d.ts +2 -1
- package/types/shival99-z-ui-components-z-input.d.ts +2 -2
- package/types/shival99-z-ui-components-z-modal.d.ts +1 -1
- package/types/shival99-z-ui-components-z-select.d.ts +3 -3
- package/types/shival99-z-ui-components-z-table.d.ts +100 -10
- package/types/shival99-z-ui-components-z-timeline.d.ts +6 -6
- package/types/shival99-z-ui-components-z-toast.d.ts +1 -1
- package/types/shival99-z-ui-components-z-upload.d.ts +3 -3
|
@@ -5,10 +5,14 @@ import * as _angular_core from '@angular/core';
|
|
|
5
5
|
import { TemplateRef, Type, AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
6
6
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
7
|
import { NgScrollbar } from 'ngx-scrollbar';
|
|
8
|
+
import { ZButtonVariants } from '@shival99/z-ui/components/z-button';
|
|
9
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
8
10
|
import { ZSelectOption } from '@shival99/z-ui/components/z-select';
|
|
9
11
|
import * as _shival99_z_ui_components_z_tooltip from '@shival99/z-ui/components/z-tooltip';
|
|
10
12
|
import { ZTooltipConfig } from '@shival99/z-ui/components/z-tooltip';
|
|
11
13
|
import * as _shival99_z_ui_components_z_table from '@shival99/z-ui/components/z-table';
|
|
14
|
+
import { ZDateRange } from '@shival99/z-ui/components/z-calendar';
|
|
15
|
+
import { ZDropdownMenuItem } from '@shival99/z-ui/components/z-dropdown-menu';
|
|
12
16
|
|
|
13
17
|
interface ZVirtualGroup {
|
|
14
18
|
startIndex: number;
|
|
@@ -29,7 +33,7 @@ type ZTableCellContent<T> = string | number | TemplateRef<{
|
|
|
29
33
|
}> | Type<unknown> | ((info: CellContext<T, unknown>) => string | number | TemplateRef<unknown>);
|
|
30
34
|
type ZTableHeaderContent<T> = string | TemplateRef<unknown> | Type<unknown> | (() => string) | ((info: HeaderContext<T, unknown>) => string);
|
|
31
35
|
type ZTableColumn<T = unknown> = ZTableColumnConfig<T>;
|
|
32
|
-
type ZTableFilterType = 'text' | 'number' | 'select' | 'multi-select' | 'date' | 'range' | 'tags';
|
|
36
|
+
type ZTableFilterType = 'text' | 'number' | 'select' | 'multi-select' | 'date' | 'date-range' | 'range' | 'tags';
|
|
33
37
|
type ZTableMode = 'local' | 'server';
|
|
34
38
|
interface ZTableSortConfig<T> {
|
|
35
39
|
enabled?: boolean;
|
|
@@ -70,7 +74,6 @@ interface ZTableControl<T> {
|
|
|
70
74
|
deleteItem: (id: string | number, fieldKey?: keyof T) => void;
|
|
71
75
|
getItems: () => T[];
|
|
72
76
|
}
|
|
73
|
-
/** Header cell configuration */
|
|
74
77
|
interface ZTableHeaderColumnConfig<T> {
|
|
75
78
|
content?: ZTableHeaderContent<T>;
|
|
76
79
|
class?: string;
|
|
@@ -78,9 +81,10 @@ interface ZTableHeaderColumnConfig<T> {
|
|
|
78
81
|
align?: ZTableAlign;
|
|
79
82
|
rowSpan?: number;
|
|
80
83
|
colSpan?: number;
|
|
84
|
+
contentClass?: string | ((info: HeaderContext<T, unknown>) => string);
|
|
85
|
+
contentStyle?: Record<string, string> | ((info: HeaderContext<T, unknown>) => Record<string, string>);
|
|
81
86
|
tooltip?: string | ZTooltipConfig;
|
|
82
87
|
}
|
|
83
|
-
/** Body/data cell configuration */
|
|
84
88
|
interface ZTableBodyColumnConfig<T> {
|
|
85
89
|
content?: ZTableCellContent<T>;
|
|
86
90
|
class?: string | ((info: CellContext<T, unknown>) => string);
|
|
@@ -91,8 +95,8 @@ interface ZTableBodyColumnConfig<T> {
|
|
|
91
95
|
contentClass?: string | ((info: CellContext<T, unknown>) => string);
|
|
92
96
|
contentStyle?: Record<string, string> | ((info: CellContext<T, unknown>) => Record<string, string>);
|
|
93
97
|
tooltip?: string | ZTooltipConfig | ((info: CellContext<T, unknown>) => string | ZTooltipConfig);
|
|
98
|
+
actions?: ZTableActionColumnConfig<T>;
|
|
94
99
|
}
|
|
95
|
-
/** Footer cell configuration */
|
|
96
100
|
interface ZTableFooterColumnConfig<T> {
|
|
97
101
|
content?: ZTableHeaderContent<T>;
|
|
98
102
|
class?: string;
|
|
@@ -100,6 +104,8 @@ interface ZTableFooterColumnConfig<T> {
|
|
|
100
104
|
align?: ZTableAlign;
|
|
101
105
|
rowSpan?: number;
|
|
102
106
|
colSpan?: number;
|
|
107
|
+
contentClass?: string | ((info: HeaderContext<T, unknown>) => string);
|
|
108
|
+
contentStyle?: Record<string, string> | ((info: HeaderContext<T, unknown>) => Record<string, string>);
|
|
103
109
|
tooltip?: string | ZTooltipConfig;
|
|
104
110
|
}
|
|
105
111
|
interface ZTableColumnConfig<T> {
|
|
@@ -175,7 +181,29 @@ interface ZTableSearchChangeEvent {
|
|
|
175
181
|
sorting: SortingState;
|
|
176
182
|
pagination: PaginationState;
|
|
177
183
|
}
|
|
178
|
-
|
|
184
|
+
interface ZTableActionItem<T = unknown> {
|
|
185
|
+
key: string;
|
|
186
|
+
label?: string;
|
|
187
|
+
icon?: ZIcon;
|
|
188
|
+
tooltip?: string;
|
|
189
|
+
type?: ZButtonVariants['zType'];
|
|
190
|
+
size?: ZButtonVariants['zSize'];
|
|
191
|
+
class?: string;
|
|
192
|
+
disabled?: boolean | ((row: T) => boolean);
|
|
193
|
+
hidden?: boolean | ((row: T) => boolean);
|
|
194
|
+
divide?: 'before' | 'after';
|
|
195
|
+
}
|
|
196
|
+
interface ZTableActionClickEvent<T = unknown> {
|
|
197
|
+
key: string;
|
|
198
|
+
row: T;
|
|
199
|
+
rowId: string;
|
|
200
|
+
action: ZTableActionItem<T>;
|
|
201
|
+
}
|
|
202
|
+
interface ZTableActionColumnConfig<T = unknown> {
|
|
203
|
+
actions: ZTableActionItem<T>[];
|
|
204
|
+
maxVisible?: number;
|
|
205
|
+
}
|
|
206
|
+
type ZTableChangeType = 'page' | 'sort' | 'filter' | 'search' | 'select' | 'expand' | 'rowSelect' | 'rowSelectAll' | 'rowExpand' | 'cellClick' | 'action';
|
|
179
207
|
interface ZTableChangeEventBase {
|
|
180
208
|
type: ZTableChangeType;
|
|
181
209
|
}
|
|
@@ -223,7 +251,11 @@ interface ZTableExpandChange extends ZTableChangeEventBase {
|
|
|
223
251
|
expanded: ExpandedState;
|
|
224
252
|
};
|
|
225
253
|
}
|
|
226
|
-
|
|
254
|
+
interface ZTableActionChange<T> extends ZTableChangeEventBase {
|
|
255
|
+
type: 'action';
|
|
256
|
+
data: ZTableActionClickEvent<T>;
|
|
257
|
+
}
|
|
258
|
+
type ZTableChangeEvent<T> = ZTablePageChange | ZTableSortChange | ZTableFilterChange | ZTableSearchChange | ZTableSelectChange | ZTableExpandChange | ZTableRowSelectChange<T> | ZTableRowSelectAllChange<T> | ZTableRowExpandChange<T> | ZTableCellClickChange<T> | ZTableActionChange<T>;
|
|
227
259
|
interface ZTableInitialState {
|
|
228
260
|
columnPinning?: ColumnPinningState;
|
|
229
261
|
rowPinning?: RowPinningState;
|
|
@@ -256,12 +288,13 @@ interface ZTableConfig<T> {
|
|
|
256
288
|
showFooterShadow?: boolean;
|
|
257
289
|
enableSettings?: boolean;
|
|
258
290
|
enableColumnResizing?: boolean;
|
|
259
|
-
enableRowPinning?: boolean;
|
|
260
291
|
enableMultiSort?: boolean;
|
|
261
292
|
enableSearch?: boolean;
|
|
262
293
|
enablePagination?: boolean;
|
|
294
|
+
enableRowPinning?: boolean;
|
|
263
295
|
enableColumnPinning?: boolean;
|
|
264
296
|
enableColumnOrdering?: boolean;
|
|
297
|
+
enableColumnSorting?: boolean;
|
|
265
298
|
pagination?: ZTablePaginationConfig;
|
|
266
299
|
initialState?: ZTableInitialState;
|
|
267
300
|
loading?: boolean;
|
|
@@ -289,7 +322,6 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
289
322
|
readonly zChange: _angular_core.OutputEmitterRef<ZTableChangeEvent<T>>;
|
|
290
323
|
readonly zControl: _angular_core.OutputEmitterRef<ZTableControl<T>>;
|
|
291
324
|
private readonly _destroyRef;
|
|
292
|
-
private readonly _ngZone;
|
|
293
325
|
private readonly _isSyncingScroll;
|
|
294
326
|
private readonly _savedScrollLeft;
|
|
295
327
|
private _resizeObserver;
|
|
@@ -331,6 +363,12 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
331
363
|
protected readonly hasBodyRowSpan: _angular_core.Signal<boolean>;
|
|
332
364
|
protected readonly hasSelectColumn: _angular_core.Signal<boolean>;
|
|
333
365
|
protected readonly hasExpandColumn: _angular_core.Signal<boolean>;
|
|
366
|
+
protected readonly actionColumnInfo: _angular_core.Signal<{
|
|
367
|
+
columnId: string;
|
|
368
|
+
config: ZTableActionColumnConfig<T>;
|
|
369
|
+
width: number;
|
|
370
|
+
} | null>;
|
|
371
|
+
protected readonly hasActionColumn: _angular_core.Signal<boolean>;
|
|
334
372
|
protected readonly hasFiltering: _angular_core.Signal<boolean>;
|
|
335
373
|
protected readonly hasSorting: _angular_core.Signal<boolean>;
|
|
336
374
|
private readonly _data;
|
|
@@ -390,6 +428,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
390
428
|
}, emitType?: 'user' | 'auto'): void;
|
|
391
429
|
onSearchChange(value: string | number | null): void;
|
|
392
430
|
toggleHeaderFooterShadow(): void;
|
|
431
|
+
onActionClick(event: ZTableActionClickEvent<T>): void;
|
|
393
432
|
openSettingsDrawer(): void;
|
|
394
433
|
onPendingColumnDrop(event: CdkDragDrop<string[]>): void;
|
|
395
434
|
onVisibleColumnsChange(values: (string | number)[]): void;
|
|
@@ -426,6 +465,10 @@ declare class ZTableFilterComponent<T> implements OnDestroy {
|
|
|
426
465
|
protected readonly maxPlaceholder: _angular_core.Signal<any>;
|
|
427
466
|
protected readonly searchPlaceholder: _angular_core.Signal<any>;
|
|
428
467
|
protected readonly allLabel: _angular_core.Signal<any>;
|
|
468
|
+
protected readonly datePlaceholder: _angular_core.Signal<any>;
|
|
469
|
+
protected readonly dateRangePlaceholder: _angular_core.Signal<any>;
|
|
470
|
+
readonly dateValue: _angular_core.Signal<Date | null>;
|
|
471
|
+
readonly dateRangeValue: _angular_core.Signal<ZDateRange | null>;
|
|
429
472
|
readonly selectOptions: _angular_core.Signal<(ZSelectOption<unknown> | {
|
|
430
473
|
label: string;
|
|
431
474
|
value: string;
|
|
@@ -435,6 +478,8 @@ declare class ZTableFilterComponent<T> implements OnDestroy {
|
|
|
435
478
|
onMaxChangeDebounced(value: string | number | null): void;
|
|
436
479
|
onTextChangeDebounced(value: string | number | null): void;
|
|
437
480
|
onSelectChange(value: unknown): void;
|
|
481
|
+
onDateChange(value: Date | null): void;
|
|
482
|
+
onDateRangeChange(value: ZDateRange | null): void;
|
|
438
483
|
private _debounce;
|
|
439
484
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZTableFilterComponent<any>, never>;
|
|
440
485
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZTableFilterComponent<any>, "z-table-filter", never, { "zColumn": { "alias": "zColumn"; "required": true; "isSignal": true; }; "zTable": { "alias": "zTable"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -452,6 +497,27 @@ declare class ZTableIconTextComponent {
|
|
|
452
497
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZTableIconTextComponent, "z-table-icon-text", never, { "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zTooltip": { "alias": "zTooltip"; "required": false; "isSignal": true; }; "zTriggerElement": { "alias": "zTriggerElement"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
453
498
|
}
|
|
454
499
|
|
|
500
|
+
declare class ZTableActionsComponent<T = unknown> {
|
|
501
|
+
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
502
|
+
readonly zRow: _angular_core.InputSignal<T>;
|
|
503
|
+
readonly zRowId: _angular_core.InputSignal<string>;
|
|
504
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "xl" | null | undefined>;
|
|
505
|
+
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
506
|
+
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
507
|
+
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|
|
508
|
+
protected readonly actionStates: _angular_core.Signal<Record<string, {
|
|
509
|
+
visible: boolean;
|
|
510
|
+
disabled: boolean;
|
|
511
|
+
tooltip: string;
|
|
512
|
+
}>>;
|
|
513
|
+
protected readonly dropdownItems: _angular_core.Signal<ZDropdownMenuItem[]>;
|
|
514
|
+
protected _onActionClick(action: ZTableActionItem<T>, event: Event): void;
|
|
515
|
+
protected _onDropdownItemClick(item: ZDropdownMenuItem): void;
|
|
516
|
+
private _emitActionClick;
|
|
517
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZTableActionsComponent<any>, never>;
|
|
518
|
+
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>;
|
|
519
|
+
}
|
|
520
|
+
|
|
455
521
|
declare const isHeaderConfig: <T>(config: ZTableHeaderColumnConfig<T> | ZTableHeaderContent<T> | undefined) => config is ZTableHeaderColumnConfig<T>;
|
|
456
522
|
declare const isBodyConfig: <T>(config: ZTableBodyColumnConfig<T> | ZTableCellContent<T> | undefined) => config is ZTableBodyColumnConfig<T>;
|
|
457
523
|
declare const isFooterConfig: <T>(config: ZTableFooterColumnConfig<T> | ZTableHeaderContent<T> | undefined) => config is ZTableFooterColumnConfig<T>;
|
|
@@ -463,6 +529,18 @@ declare const getHeaderConfig: <T>(col: ZTableColumnConfig<T> | undefined) => {
|
|
|
463
529
|
tooltip: string | object | undefined;
|
|
464
530
|
rowSpan: number | undefined;
|
|
465
531
|
colSpan: number | undefined;
|
|
532
|
+
contentClass: string | ((info: unknown) => string) | undefined;
|
|
533
|
+
contentStyle: Record<string, string> | ((info: unknown) => Record<string, string>) | undefined;
|
|
534
|
+
} | {
|
|
535
|
+
content: ZTableHeaderContent<T> | undefined;
|
|
536
|
+
class: string | undefined;
|
|
537
|
+
style: Record<string, string> | undefined;
|
|
538
|
+
align: ZTableAlign | undefined;
|
|
539
|
+
tooltip: string | _shival99_z_ui_components_z_tooltip.ZTooltipConfig | undefined;
|
|
540
|
+
rowSpan: number | undefined;
|
|
541
|
+
colSpan: number | undefined;
|
|
542
|
+
contentClass: string | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => string) | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => string) | undefined;
|
|
543
|
+
contentStyle: Record<string, string> | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => Record<string, string>) | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => Record<string, string>) | undefined;
|
|
466
544
|
};
|
|
467
545
|
declare const getBodyConfig: <T>(col: ZTableColumnConfig<T> | undefined, ctx?: CellContext<T, unknown>) => {
|
|
468
546
|
content: ZTableCellContent<T> | undefined;
|
|
@@ -493,9 +571,21 @@ declare const getFooterConfig: <T>(col: ZTableColumnConfig<T> | undefined) => {
|
|
|
493
571
|
tooltip: string | object | undefined;
|
|
494
572
|
rowSpan: number | undefined;
|
|
495
573
|
colSpan: number | undefined;
|
|
574
|
+
contentClass: string | ((info: unknown) => string) | undefined;
|
|
575
|
+
contentStyle: Record<string, string> | ((info: unknown) => Record<string, string>) | undefined;
|
|
576
|
+
} | {
|
|
577
|
+
content: ZTableHeaderContent<T> | undefined;
|
|
578
|
+
class: string | undefined;
|
|
579
|
+
style: Record<string, string> | undefined;
|
|
580
|
+
align: ZTableAlign | undefined;
|
|
581
|
+
tooltip: string | _shival99_z_ui_components_z_tooltip.ZTooltipConfig | undefined;
|
|
582
|
+
rowSpan: number | undefined;
|
|
583
|
+
colSpan: number | undefined;
|
|
584
|
+
contentClass: string | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => string) | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => string) | undefined;
|
|
585
|
+
contentStyle: Record<string, string> | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => Record<string, string>) | ((info: _tanstack_angular_table.HeaderContext<T, unknown>) => Record<string, string>) | undefined;
|
|
496
586
|
};
|
|
497
587
|
declare const findColumnConfig: <T>(columnId: string, columns: ZTableColumnConfig<T>[]) => ZTableColumnConfig<T> | undefined;
|
|
498
588
|
declare function columnConfigToColumnDef<T>(config: ZTableColumnConfig<T>): ColumnDef<T>;
|
|
499
589
|
|
|
500
|
-
export { ZTableComponent, ZTableFilterComponent, ZTableIconTextComponent, columnConfigToColumnDef, findColumnConfig, getBodyConfig, getFooterConfig, getHeaderConfig, isBodyConfig, isFooterConfig, isHeaderConfig };
|
|
501
|
-
export type { ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSortChangeEvent, ZTableSortConfig };
|
|
590
|
+
export { ZTableActionsComponent, ZTableComponent, ZTableFilterComponent, ZTableIconTextComponent, columnConfigToColumnDef, findColumnConfig, getBodyConfig, getFooterConfig, getHeaderConfig, isBodyConfig, isFooterConfig, isHeaderConfig };
|
|
591
|
+
export type { ZTableActionClickEvent, ZTableActionColumnConfig, ZTableActionItem, ZTableChangeEvent, ZTableColumn, ZTableColumnConfig, ZTableConfig, ZTableControl, ZTableFilterChangeEvent, ZTableFilterConfig, ZTableFilterType, ZTablePageChangeEvent, ZTablePaginationConfig, ZTableRowExpandEvent, ZTableRowSelectEvent, ZTableSavedConfig, ZTableSearchChangeEvent, ZTableSortChangeEvent, ZTableSortConfig };
|
|
@@ -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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { InjectionToken, EnvironmentProviders, OnDestroy } from '@angular/core';
|
|
3
3
|
import { ClassValue } from 'clsx';
|
|
4
|
-
import { ExternalToast } from 'ngx-sonner';
|
|
4
|
+
import { ExternalToast } from '@shival99/ngx-sonner';
|
|
5
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
|
|
@@ -87,7 +87,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
87
87
|
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
88
88
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
89
89
|
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
90
|
-
protected readonly currentStatus: _angular_core.Signal<"default" | "
|
|
90
|
+
protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error" | "active">;
|
|
91
91
|
protected readonly dropzoneClasses: _angular_core.Signal<string>;
|
|
92
92
|
protected readonly acceptTypes: _angular_core.Signal<string>;
|
|
93
93
|
protected readonly formatFileSize: (bytes: number) => string;
|
|
@@ -126,11 +126,11 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
126
126
|
|
|
127
127
|
declare const zUploadDropzoneVariants: (props?: ({
|
|
128
128
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
129
|
-
zStatus?: "default" | "
|
|
129
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | "active" | null | undefined;
|
|
130
130
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
131
131
|
type ZUploadDropzoneVariants = VariantProps<typeof zUploadDropzoneVariants>;
|
|
132
132
|
declare const zUploadFileItemVariants: (props?: ({
|
|
133
|
-
zStatus?: "
|
|
133
|
+
zStatus?: "error" | "pending" | "uploading" | "success" | null | undefined;
|
|
134
134
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
135
135
|
type ZUploadFileItemVariants = VariantProps<typeof zUploadFileItemVariants>;
|
|
136
136
|
|