@shival99/z-ui 1.2.24 → 1.2.26
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 +39 -16
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/package.json +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 +18 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.26",
|
|
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",
|
|
@@ -286,16 +286,16 @@ declare class ZCalendarComponent implements OnInit, ControlValueAccessor {
|
|
|
286
286
|
|
|
287
287
|
declare const zCalendarVariants: (props?: ({
|
|
288
288
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
289
|
-
zStatus?: "default" | "disabled" | "
|
|
289
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
290
290
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
291
291
|
declare const zCalendarDayVariants: (props?: ({
|
|
292
|
-
state?: "default" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "
|
|
292
|
+
state?: "default" | "disabled" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "otherMonth" | "hovered" | null | undefined;
|
|
293
293
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
294
294
|
declare const zCalendarMonthVariants: (props?: ({
|
|
295
|
-
state?: "default" | "
|
|
295
|
+
state?: "default" | "disabled" | "selected" | "current" | null | undefined;
|
|
296
296
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
297
297
|
declare const zCalendarYearVariants: (props?: ({
|
|
298
|
-
state?: "default" | "
|
|
298
|
+
state?: "default" | "disabled" | "selected" | "current" | null | undefined;
|
|
299
299
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
300
300
|
|
|
301
301
|
export { ZCalendarComponent, zCalendarDayVariants, zCalendarMonthVariants, zCalendarVariants, zCalendarYearVariants };
|
|
@@ -258,7 +258,7 @@ declare class ZTagClassesPipe implements PipeTransform {
|
|
|
258
258
|
|
|
259
259
|
declare const zSelectVariants: (props?: ({
|
|
260
260
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
261
|
-
zStatus?: "default" | "
|
|
261
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
262
262
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
263
263
|
declare const zSelectTagVariants: (props?: ({
|
|
264
264
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
@@ -21,7 +21,7 @@ interface ZVirtualGroup {
|
|
|
21
21
|
startIndex: number;
|
|
22
22
|
endIndex: number;
|
|
23
23
|
rowCount: number;
|
|
24
|
-
height: number;
|
|
24
|
+
height: number | null;
|
|
25
25
|
}
|
|
26
26
|
interface ZTableIconPart {
|
|
27
27
|
type: 'text' | 'icon';
|
|
@@ -277,10 +277,22 @@ interface ZTableInitialState {
|
|
|
277
277
|
pagination?: PaginationState;
|
|
278
278
|
}
|
|
279
279
|
interface ZTableVirtualConfig {
|
|
280
|
+
/** Enable virtual scrolling */
|
|
280
281
|
enabled: boolean;
|
|
281
|
-
|
|
282
|
+
/** Row height in pixels (default: 40). Used as estimate for dynamic sizing. */
|
|
283
|
+
size?: number;
|
|
284
|
+
/** Number of items to render outside visible area (default: 5) */
|
|
282
285
|
overscan?: number;
|
|
286
|
+
/** Number of rows per virtual group (default: 1) */
|
|
283
287
|
groupSize?: number;
|
|
288
|
+
/**
|
|
289
|
+
* Enable dynamic row height measurement.
|
|
290
|
+
* When true, each row's height is measured dynamically after render.
|
|
291
|
+
* The virtualizer uses `height: auto` for all rows, allowing content
|
|
292
|
+
* to determine the actual height, which is then captured via measureElement().
|
|
293
|
+
* The `size` property is used as an initial estimate before measurement.
|
|
294
|
+
*/
|
|
295
|
+
dynamicSize?: boolean;
|
|
284
296
|
}
|
|
285
297
|
interface ZTableSearchConfig {
|
|
286
298
|
enabled?: boolean;
|
|
@@ -351,6 +363,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
351
363
|
protected readonly tbodyScrollbar: _angular_core.Signal<NgScrollbar | undefined>;
|
|
352
364
|
protected readonly tfootWrapper: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
353
365
|
protected readonly expandedRowTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
366
|
+
protected readonly virtualRowElements: _angular_core.Signal<readonly ElementRef<HTMLDivElement>[]>;
|
|
354
367
|
protected readonly columnPinning: _angular_core.WritableSignal<ColumnPinningState>;
|
|
355
368
|
protected readonly columnVisibility: _angular_core.WritableSignal<VisibilityState>;
|
|
356
369
|
protected readonly columnOrder: _angular_core.WritableSignal<ColumnOrderState>;
|
|
@@ -408,6 +421,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
408
421
|
protected readonly isVirtual: _angular_core.Signal<boolean>;
|
|
409
422
|
private readonly _virtualConfig;
|
|
410
423
|
protected readonly virtualRowHeight: _angular_core.Signal<number>;
|
|
424
|
+
protected readonly dynamicSize: _angular_core.Signal<boolean>;
|
|
411
425
|
protected readonly groupSize: _angular_core.Signal<number>;
|
|
412
426
|
protected readonly groupHeight: _angular_core.Signal<number>;
|
|
413
427
|
private readonly _dynamicGroupsVersion;
|
|
@@ -443,6 +457,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
443
457
|
protected readonly table: ReturnType<typeof createAngularTable<T>>;
|
|
444
458
|
private readonly _virtualGroupCount;
|
|
445
459
|
protected readonly virtualizer: _shival99_angular_virtual.AngularVirtualizer<HTMLDivElement, Element>;
|
|
460
|
+
private readonly _measureVirtualItems;
|
|
446
461
|
constructor();
|
|
447
462
|
ngAfterViewInit(): void;
|
|
448
463
|
private _handleRowSelectionWithParents;
|
|
@@ -539,7 +554,7 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
539
554
|
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
540
555
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
541
556
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
542
|
-
readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "
|
|
557
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "xl" | null | undefined>;
|
|
543
558
|
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
544
559
|
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
545
560
|
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|