@shival99/z-ui 1.4.28 → 1.5.1
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.
|
|
3
|
+
"version": "1.5.1",
|
|
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",
|
|
@@ -6,6 +6,7 @@ import { ZInputSize, ZInputControl } from '@shival99/z-ui/components/z-input';
|
|
|
6
6
|
import * as _angular_core from '@angular/core';
|
|
7
7
|
import { TemplateRef, Type, AfterViewInit, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
8
8
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
9
|
+
import { ClassValue } from 'clsx';
|
|
9
10
|
import { NgScrollbar } from 'ngx-scrollbar';
|
|
10
11
|
import { ZButtonVariants } from '@shival99/z-ui/components/z-button';
|
|
11
12
|
import { ZIcon, ZIconVariants } from '@shival99/z-ui/components/z-icon';
|
|
@@ -59,8 +60,10 @@ interface ZTableFilterConfig<T = unknown> {
|
|
|
59
60
|
type ZTableEditSize = 'sm' | 'default' | 'lg';
|
|
60
61
|
interface ZTableEditConfig<T = unknown> {
|
|
61
62
|
enabled?: boolean;
|
|
62
|
-
type
|
|
63
|
-
|
|
63
|
+
/** Edit type - can be static or dynamic per row */
|
|
64
|
+
type?: ZTableEditType | ((row: T) => ZTableEditType);
|
|
65
|
+
/** Select options - can be static or dynamic per row */
|
|
66
|
+
options?: ZSelectOption[] | ((row: T) => ZSelectOption[]);
|
|
64
67
|
placeholder?: string;
|
|
65
68
|
min?: number;
|
|
66
69
|
max?: number;
|
|
@@ -148,6 +151,7 @@ interface ZTableColumnConfig<T> {
|
|
|
148
151
|
size?: number;
|
|
149
152
|
minSize?: number;
|
|
150
153
|
maxSize?: number;
|
|
154
|
+
width?: string;
|
|
151
155
|
sort?: ZTableSortConfig<T> | boolean;
|
|
152
156
|
filter?: ZTableFilterConfig<T> | boolean;
|
|
153
157
|
enableResizing?: boolean;
|
|
@@ -394,6 +398,7 @@ declare module '@tanstack/angular-table' {
|
|
|
394
398
|
declare class ZTableComponent<T> implements AfterViewInit {
|
|
395
399
|
readonly zChange: _angular_core.OutputEmitterRef<ZTableChangeEvent<T>>;
|
|
396
400
|
readonly zControl: _angular_core.OutputEmitterRef<ZTableControl<T>>;
|
|
401
|
+
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
397
402
|
readonly zConfig: _angular_core.InputSignal<ZTableConfig<T>>;
|
|
398
403
|
readonly zLoading: _angular_core.InputSignal<boolean>;
|
|
399
404
|
readonly zKey: _angular_core.InputSignal<string>;
|
|
@@ -554,7 +559,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
554
559
|
private _filterServerModeSorting;
|
|
555
560
|
private _findColumnConfig;
|
|
556
561
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZTableComponent<any>, never>;
|
|
557
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZTableComponent<any>, "z-table", ["zTable"], { "zConfig": { "alias": "zConfig"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zKey": { "alias": "zKey"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; "zControl": "zControl"; }, never, never, true, never>;
|
|
562
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZTableComponent<any>, "z-table", ["zTable"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zConfig": { "alias": "zConfig"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zKey": { "alias": "zKey"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; "zControl": "zControl"; }, never, never, true, never>;
|
|
558
563
|
}
|
|
559
564
|
|
|
560
565
|
declare class ZTableFilterComponent<T> implements OnDestroy {
|
|
@@ -607,7 +612,7 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
607
612
|
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
608
613
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
609
614
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
610
|
-
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "
|
|
615
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"sm" | "default" | "xs" | "lg" | "xl" | null | undefined>;
|
|
611
616
|
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
612
617
|
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
613
618
|
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|