@shival99/z-ui 1.6.1 → 1.6.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-table.mjs +50 -28
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +1 -1
- package/types/shival99-z-ui-components-z-calendar.d.ts +4 -4
- package/types/shival99-z-ui-components-z-select.d.ts +1 -1
- package/types/shival99-z-ui-components-z-table.d.ts +24 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.3",
|
|
4
4
|
"description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 20+, featuring 40+ customizable components with dark mode, accessibility, and enterprise-ready features.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -55,7 +55,7 @@ type ZAutocompleteOptionTemplate<T = unknown> = TemplateRef<{
|
|
|
55
55
|
|
|
56
56
|
declare const zAutocompleteInputVariants: (props?: ({
|
|
57
57
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
58
|
-
zStatus?: "default" | "
|
|
58
|
+
zStatus?: "default" | "open" | "error" | "disabled" | "readonly" | null | undefined;
|
|
59
59
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
60
60
|
type ZAutocompleteInputVariants = VariantProps<typeof zAutocompleteInputVariants>;
|
|
61
61
|
declare const zAutocompleteOptionVariants: (props?: ({
|
|
@@ -395,16 +395,16 @@ declare class ZCalendarComponent implements OnInit, ControlValueAccessor {
|
|
|
395
395
|
|
|
396
396
|
declare const zCalendarVariants: (props?: ({
|
|
397
397
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
398
|
-
zStatus?: "default" | "disabled" | "
|
|
398
|
+
zStatus?: "default" | "disabled" | "open" | "error" | "readonly" | null | undefined;
|
|
399
399
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
400
400
|
declare const zCalendarDayVariants: (props?: ({
|
|
401
|
-
state?: "default" | "
|
|
401
|
+
state?: "default" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "disabled" | "otherMonth" | "hovered" | null | undefined;
|
|
402
402
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
403
403
|
declare const zCalendarMonthVariants: (props?: ({
|
|
404
|
-
state?: "default" | "
|
|
404
|
+
state?: "default" | "selected" | "disabled" | "current" | null | undefined;
|
|
405
405
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
406
406
|
declare const zCalendarYearVariants: (props?: ({
|
|
407
|
-
state?: "default" | "
|
|
407
|
+
state?: "default" | "selected" | "disabled" | "current" | null | undefined;
|
|
408
408
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
409
409
|
|
|
410
410
|
export { ZCalendarComponent, zCalendarDayVariants, zCalendarMonthVariants, zCalendarVariants, zCalendarYearVariants };
|
|
@@ -271,7 +271,7 @@ declare class ZTagClassesPipe implements PipeTransform {
|
|
|
271
271
|
|
|
272
272
|
declare const zSelectVariants: (props?: ({
|
|
273
273
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
274
|
-
zStatus?: "default" | "
|
|
274
|
+
zStatus?: "default" | "open" | "error" | "disabled" | "readonly" | null | undefined;
|
|
275
275
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
276
276
|
declare const zSelectTagVariants: (props?: ({
|
|
277
277
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
@@ -64,7 +64,22 @@ interface ZTableEditConfig<T = unknown> {
|
|
|
64
64
|
type?: ZTableEditType | ((row: T) => ZTableEditType);
|
|
65
65
|
/** Select options - can be static or dynamic per row */
|
|
66
66
|
options?: ZSelectOption[] | ((row: T) => ZSelectOption[]);
|
|
67
|
-
|
|
67
|
+
/** Placeholder - can be static or dynamic per row */
|
|
68
|
+
placeholder?: string | ((row: T) => string);
|
|
69
|
+
/** Allow clear for select input. Default: false */
|
|
70
|
+
allowClear?: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Custom option label key when using raw objects as options.
|
|
73
|
+
* Use this when your options don't have 'label' property.
|
|
74
|
+
* Example: optionLabelKey: 'tagName' for { tagName: 'Value', tagId: 1 }
|
|
75
|
+
*/
|
|
76
|
+
optionLabelKey?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Custom option value key when using raw objects as options.
|
|
79
|
+
* Use this when your options don't have 'value' property.
|
|
80
|
+
* Example: optionValueKey: 'tagName' for { tagName: 'Value', tagId: 1 }
|
|
81
|
+
*/
|
|
82
|
+
optionValueKey?: string;
|
|
68
83
|
min?: number;
|
|
69
84
|
max?: number;
|
|
70
85
|
step?: number;
|
|
@@ -615,7 +630,7 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
615
630
|
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
616
631
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
617
632
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
618
|
-
readonly zDropdownButtonSize: _angular_core.InputSignal<"
|
|
633
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "lg" | "xs" | "xl" | null | undefined>;
|
|
619
634
|
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
620
635
|
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
621
636
|
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|
|
@@ -645,7 +660,7 @@ declare class ZTableEditCellComponent<T = unknown> implements OnInit {
|
|
|
645
660
|
readonly zChange: _angular_core.OutputEmitterRef<ZTableEditCellChangeEvent<T>>;
|
|
646
661
|
private readonly _currentValue;
|
|
647
662
|
private readonly _valueChange$;
|
|
648
|
-
private
|
|
663
|
+
private _lastExternalValue;
|
|
649
664
|
private _pendingBlurValue;
|
|
650
665
|
private _hasPendingBlur;
|
|
651
666
|
private _inputControl;
|
|
@@ -653,6 +668,7 @@ declare class ZTableEditCellComponent<T = unknown> implements OnInit {
|
|
|
653
668
|
protected readonly editType: _angular_core.Signal<ZTableEditType>;
|
|
654
669
|
protected readonly size: _angular_core.Signal<ZTableEditSize>;
|
|
655
670
|
protected readonly placeholder: _angular_core.Signal<string>;
|
|
671
|
+
protected readonly allowClear: _angular_core.Signal<boolean>;
|
|
656
672
|
protected readonly selectOptions: _angular_core.Signal<ZSelectOption<unknown>[]>;
|
|
657
673
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
658
674
|
protected readonly isReadonly: _angular_core.Signal<boolean>;
|
|
@@ -668,6 +684,11 @@ declare class ZTableEditCellComponent<T = unknown> implements OnInit {
|
|
|
668
684
|
protected onSelectChange(newValue: unknown): void;
|
|
669
685
|
protected onDateChange(newValue: unknown): void;
|
|
670
686
|
protected onCheckboxChange(checked: boolean): void;
|
|
687
|
+
/**
|
|
688
|
+
* Handles immediate value changes (non-debounced).
|
|
689
|
+
* Used by checkbox, toggle, select, and date controls.
|
|
690
|
+
*/
|
|
691
|
+
private _handleImmediateChange;
|
|
671
692
|
private _emitChange;
|
|
672
693
|
ngOnInit(): void;
|
|
673
694
|
private _setupBlurWatcher;
|