@shival99/z-ui 1.4.22 → 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,6 +69,8 @@ interface ZTableEditConfig<T = unknown> {
|
|
|
69
69
|
thousandSeparator?: string;
|
|
70
70
|
disabled?: boolean | ((row: T) => boolean);
|
|
71
71
|
debounceTime?: number;
|
|
72
|
+
/** Only emit change on blur (when user leaves the input). Default: false */
|
|
73
|
+
blurEdit?: boolean;
|
|
72
74
|
/** Size of the edit input. Default: 'sm' */
|
|
73
75
|
size?: ZTableEditSize;
|
|
74
76
|
}
|
|
@@ -605,7 +607,7 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
605
607
|
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
606
608
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
607
609
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
608
|
-
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "
|
|
610
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "lg" | "xs" | "xl" | null | undefined>;
|
|
609
611
|
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
610
612
|
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
611
613
|
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|
|
@@ -623,7 +625,8 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
623
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>;
|
|
624
626
|
}
|
|
625
627
|
|
|
626
|
-
declare class ZTableEditCellComponent<T = unknown> implements
|
|
628
|
+
declare class ZTableEditCellComponent<T = unknown> implements OnInit {
|
|
629
|
+
private readonly _destroyRef;
|
|
627
630
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
628
631
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
629
632
|
readonly zRowIndex: _angular_core.InputSignal<number>;
|
|
@@ -632,8 +635,11 @@ declare class ZTableEditCellComponent<T = unknown> implements OnDestroy {
|
|
|
632
635
|
readonly zEditConfig: _angular_core.InputSignal<ZTableEditConfig<T> | undefined>;
|
|
633
636
|
readonly zChange: _angular_core.OutputEmitterRef<ZTableEditCellChangeEvent<T>>;
|
|
634
637
|
private readonly _currentValue;
|
|
638
|
+
private readonly _valueChange$;
|
|
635
639
|
private _initialized;
|
|
636
|
-
private
|
|
640
|
+
private _pendingBlurValue;
|
|
641
|
+
private _hasPendingBlur;
|
|
642
|
+
private _inputControl;
|
|
637
643
|
protected readonly editConfig: _angular_core.Signal<ZTableEditConfig<T>>;
|
|
638
644
|
protected readonly editType: _angular_core.Signal<ZTableEditType>;
|
|
639
645
|
protected readonly size: _angular_core.Signal<ZTableEditSize>;
|
|
@@ -646,12 +652,15 @@ declare class ZTableEditCellComponent<T = unknown> implements OnDestroy {
|
|
|
646
652
|
protected readonly booleanValue: _angular_core.Signal<boolean>;
|
|
647
653
|
protected readonly dateValue: _angular_core.Signal<Date | null>;
|
|
648
654
|
protected onValueChange(newValue: unknown): void;
|
|
655
|
+
protected onInputControlReady(control: ZInputControl): void;
|
|
656
|
+
private _handleInputBlur;
|
|
657
|
+
protected onToggleChange(checked: boolean): void;
|
|
649
658
|
protected onSelectChange(newValue: unknown): void;
|
|
650
659
|
protected onDateChange(newValue: unknown): void;
|
|
651
660
|
protected onCheckboxChange(checked: boolean): void;
|
|
652
661
|
private _emitChange;
|
|
653
|
-
|
|
654
|
-
|
|
662
|
+
ngOnInit(): void;
|
|
663
|
+
private _setupBlurWatcher;
|
|
655
664
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZTableEditCellComponent<any>, never>;
|
|
656
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>;
|
|
657
666
|
}
|