@shival99/z-ui 1.4.21 → 1.4.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.23",
|
|
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",
|
|
@@ -2,9 +2,9 @@ import * as _shival99_angular_virtual from '@shival99/angular-virtual';
|
|
|
2
2
|
import * as _tanstack_angular_table from '@tanstack/angular-table';
|
|
3
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
|
-
import { ZInputSize } from '@shival99/z-ui/components/z-input';
|
|
5
|
+
import { ZInputSize, ZInputControl } from '@shival99/z-ui/components/z-input';
|
|
6
6
|
import * as _angular_core from '@angular/core';
|
|
7
|
-
import { TemplateRef, Type, AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
7
|
+
import { TemplateRef, Type, AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
8
8
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
9
9
|
import { NgScrollbar } from 'ngx-scrollbar';
|
|
10
10
|
import { ZButtonVariants } from '@shival99/z-ui/components/z-button';
|
|
@@ -37,7 +37,7 @@ type ZTableCellContent<T> = string | number | TemplateRef<{
|
|
|
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
|
+
type ZTableEditType = 'text' | 'number' | 'select' | 'date' | 'checkbox' | 'textarea' | 'toggle';
|
|
41
41
|
type ZTableMode = 'local' | 'server';
|
|
42
42
|
interface ZTableSortConfig<T> {
|
|
43
43
|
enabled?: boolean;
|
|
@@ -69,7 +69,8 @@ interface ZTableEditConfig<T = unknown> {
|
|
|
69
69
|
thousandSeparator?: string;
|
|
70
70
|
disabled?: boolean | ((row: T) => boolean);
|
|
71
71
|
debounceTime?: number;
|
|
72
|
-
|
|
72
|
+
/** Only emit change on blur (when user leaves the input). Default: false */
|
|
73
|
+
blurEdit?: boolean;
|
|
73
74
|
/** Size of the edit input. Default: 'sm' */
|
|
74
75
|
size?: ZTableEditSize;
|
|
75
76
|
}
|
|
@@ -606,7 +607,7 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
606
607
|
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
607
608
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
608
609
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
609
|
-
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "
|
|
610
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "lg" | "xs" | "xl" | null | undefined>;
|
|
610
611
|
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
611
612
|
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
612
613
|
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|
|
@@ -624,7 +625,8 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
624
625
|
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>;
|
|
625
626
|
}
|
|
626
627
|
|
|
627
|
-
declare class ZTableEditCellComponent<T = unknown> implements
|
|
628
|
+
declare class ZTableEditCellComponent<T = unknown> implements OnInit {
|
|
629
|
+
private readonly _destroyRef;
|
|
628
630
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
629
631
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
630
632
|
readonly zRowIndex: _angular_core.InputSignal<number>;
|
|
@@ -633,8 +635,11 @@ declare class ZTableEditCellComponent<T = unknown> implements OnDestroy {
|
|
|
633
635
|
readonly zEditConfig: _angular_core.InputSignal<ZTableEditConfig<T> | undefined>;
|
|
634
636
|
readonly zChange: _angular_core.OutputEmitterRef<ZTableEditCellChangeEvent<T>>;
|
|
635
637
|
private readonly _currentValue;
|
|
638
|
+
private readonly _valueChange$;
|
|
636
639
|
private _initialized;
|
|
637
|
-
private
|
|
640
|
+
private _pendingBlurValue;
|
|
641
|
+
private _hasPendingBlur;
|
|
642
|
+
private _inputControl;
|
|
638
643
|
protected readonly editConfig: _angular_core.Signal<ZTableEditConfig<T>>;
|
|
639
644
|
protected readonly editType: _angular_core.Signal<ZTableEditType>;
|
|
640
645
|
protected readonly size: _angular_core.Signal<ZTableEditSize>;
|
|
@@ -647,12 +652,15 @@ declare class ZTableEditCellComponent<T = unknown> implements OnDestroy {
|
|
|
647
652
|
protected readonly booleanValue: _angular_core.Signal<boolean>;
|
|
648
653
|
protected readonly dateValue: _angular_core.Signal<Date | null>;
|
|
649
654
|
protected onValueChange(newValue: unknown): void;
|
|
655
|
+
protected onInputControlReady(control: ZInputControl): void;
|
|
656
|
+
private _handleInputBlur;
|
|
657
|
+
protected onToggleChange(checked: boolean): void;
|
|
650
658
|
protected onSelectChange(newValue: unknown): void;
|
|
651
659
|
protected onDateChange(newValue: unknown): void;
|
|
652
660
|
protected onCheckboxChange(checked: boolean): void;
|
|
653
661
|
private _emitChange;
|
|
654
|
-
|
|
655
|
-
|
|
662
|
+
ngOnInit(): void;
|
|
663
|
+
private _setupBlurWatcher;
|
|
656
664
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZTableEditCellComponent<any>, never>;
|
|
657
665
|
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>;
|
|
658
666
|
}
|