@shival99/z-ui 2.0.34 → 2.0.36
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 +140 -10
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +18 -4
- package/fesm2022/shival99-z-ui-services.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-editor.d.ts +1 -1
- package/types/shival99-z-ui-components-z-select.d.ts +1 -1
- package/types/shival99-z-ui-components-z-table.d.ts +18 -5
- package/types/shival99-z-ui-services.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.36",
|
|
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",
|
|
@@ -270,7 +270,7 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
270
270
|
|
|
271
271
|
declare const zAutocompleteInputVariants: (props?: ({
|
|
272
272
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
273
|
-
zStatus?: "default" | "
|
|
273
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
274
274
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
275
275
|
type ZAutocompleteInputVariants = VariantProps<typeof zAutocompleteInputVariants>;
|
|
276
276
|
declare const zAutocompleteOptionVariants: (props?: ({
|
|
@@ -429,16 +429,16 @@ declare class ZCalendarComponent implements OnInit, ControlValueAccessor {
|
|
|
429
429
|
|
|
430
430
|
declare const zCalendarVariants: (props?: ({
|
|
431
431
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
432
|
-
zStatus?: "default" | "disabled" | "
|
|
432
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
433
433
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
434
434
|
declare const zCalendarDayVariants: (props?: ({
|
|
435
|
-
state?: "default" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "
|
|
435
|
+
state?: "default" | "disabled" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "otherMonth" | "hovered" | null | undefined;
|
|
436
436
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
437
437
|
declare const zCalendarMonthVariants: (props?: ({
|
|
438
|
-
state?: "default" | "
|
|
438
|
+
state?: "default" | "current" | "disabled" | "selected" | null | undefined;
|
|
439
439
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
440
440
|
declare const zCalendarYearVariants: (props?: ({
|
|
441
|
-
state?: "default" | "
|
|
441
|
+
state?: "default" | "current" | "disabled" | "selected" | null | undefined;
|
|
442
442
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
443
443
|
|
|
444
444
|
export { ZCalendarComponent, zCalendarDayVariants, zCalendarMonthVariants, zCalendarVariants, zCalendarYearVariants };
|
|
@@ -328,7 +328,7 @@ declare const Z_EDITOR_DEFAULT_TOOLBAR: readonly ZEditorToolbarItem[];
|
|
|
328
328
|
|
|
329
329
|
declare const zEditorVariants: (props?: ({
|
|
330
330
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
331
|
-
zStatus?: "default" | "
|
|
331
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | null | undefined;
|
|
332
332
|
zPlaceholderMode?: "firstLine" | "everyLine" | null | undefined;
|
|
333
333
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
334
334
|
type ZEditorVariants = VariantProps<typeof zEditorVariants>;
|
|
@@ -315,7 +315,7 @@ declare class ZTagClassesPipe implements PipeTransform {
|
|
|
315
315
|
|
|
316
316
|
declare const zSelectVariants: (props?: ({
|
|
317
317
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
318
|
-
zStatus?: "default" | "
|
|
318
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
319
319
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
320
320
|
declare const zSelectTagVariants: (props?: ({
|
|
321
321
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _tanstack_angular_table from '@tanstack/angular-table';
|
|
2
|
-
import { RowData, RowSelectionState, HeaderContext, CellContext, FlexRenderComponent, Row, SortingState, ColumnFiltersState, PaginationState, ExpandedState, ColumnPinningState, RowPinningState, VisibilityState, ColumnOrderState, Column, createAngularTable, Table, ColumnDef } from '@tanstack/angular-table';
|
|
2
|
+
import { RowData, RowSelectionState, HeaderContext, CellContext, FlexRenderComponent, Row, SortingState, ColumnFiltersState, PaginationState, ExpandedState, ColumnPinningState, RowPinningState, VisibilityState, ColumnOrderState, ColumnSizingState, Column, createAngularTable, Table, ColumnDef } from '@tanstack/angular-table';
|
|
3
3
|
import * as _shival99_angular_virtual from '@shival99/angular-virtual';
|
|
4
4
|
import * as _shival99_z_ui_components_z_input from '@shival99/z-ui/components/z-input';
|
|
5
5
|
import { ZInputSize } from '@shival99/z-ui/components/z-input';
|
|
@@ -789,6 +789,8 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
789
789
|
private _bulkBarTimer;
|
|
790
790
|
private readonly _activeColumnVisibilityPopover;
|
|
791
791
|
private _hasInitializedColumnPinning;
|
|
792
|
+
private _fitColumnFrame;
|
|
793
|
+
private _isApplyingFitColumnSizing;
|
|
792
794
|
/** Merged loading state from both zLoading input and config.loading */
|
|
793
795
|
protected readonly isLoading: _angular_core.Signal<boolean>;
|
|
794
796
|
/** True during debounced async state transitions (sort/filter processing) */
|
|
@@ -809,6 +811,8 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
809
811
|
protected readonly rowPinning: _angular_core.WritableSignal<RowPinningState>;
|
|
810
812
|
protected readonly columnFilters: _angular_core.WritableSignal<ColumnFiltersState>;
|
|
811
813
|
protected readonly globalFilter: _angular_core.WritableSignal<string>;
|
|
814
|
+
protected readonly columnSizingState: _angular_core.WritableSignal<ColumnSizingState>;
|
|
815
|
+
private readonly _columnBaseSizing;
|
|
812
816
|
/** Note: pageIndex is 1-based here; converted to 0-based for TanStack via _tanstackPagination */
|
|
813
817
|
protected readonly pagination: _angular_core.WritableSignal<PaginationState>;
|
|
814
818
|
protected readonly sorting: _angular_core.WritableSignal<SortingState>;
|
|
@@ -939,7 +943,8 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
939
943
|
protected readonly virtualRightSpacerWidth: _angular_core.Signal<number>;
|
|
940
944
|
protected readonly renderedColumnCount: _angular_core.Signal<number>;
|
|
941
945
|
protected readonly orderedLeafColumns: _angular_core.Signal<Column<T, unknown>[]>;
|
|
942
|
-
protected readonly
|
|
946
|
+
protected readonly fitColumnIds: _angular_core.Signal<string[]>;
|
|
947
|
+
protected readonly fillColumnId: _angular_core.Signal<string>;
|
|
943
948
|
protected readonly hideableColumns: _angular_core.Signal<Column<T, unknown>[]>;
|
|
944
949
|
protected readonly orderedHeaderGroups: _angular_core.Signal<{
|
|
945
950
|
id: string;
|
|
@@ -969,7 +974,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
969
974
|
protected readonly skeletonRows: _angular_core.Signal<number[]>;
|
|
970
975
|
protected readonly dynamicGroupRows: _angular_core.Signal<Row<T>[][]>;
|
|
971
976
|
protected readonly dynamicGroupHeights: _angular_core.Signal<any[]>;
|
|
972
|
-
protected readonly columnSizing: _angular_core.Signal<
|
|
977
|
+
protected readonly columnSizing: _angular_core.Signal<ColumnSizingState>;
|
|
973
978
|
protected readonly columnSizingInfo: _angular_core.Signal<_tanstack_angular_table.ColumnSizingInfoState>;
|
|
974
979
|
protected readonly columnSizeVars: _angular_core.Signal<Record<string, number>>;
|
|
975
980
|
protected readonly table: ReturnType<typeof createAngularTable<T>>;
|
|
@@ -1018,6 +1023,14 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
1018
1023
|
private _checkVerticalScroll;
|
|
1019
1024
|
private _checkLastRowTouchesBottom;
|
|
1020
1025
|
private _getTbodyViewportElement;
|
|
1026
|
+
private _handleColumnSizingChange;
|
|
1027
|
+
private _syncColumnBaseSizing;
|
|
1028
|
+
private _scheduleFitColumnWidths;
|
|
1029
|
+
private _cancelFitColumnFrame;
|
|
1030
|
+
private _applyFitColumnWidths;
|
|
1031
|
+
private _setColumnSizingFromFit;
|
|
1032
|
+
private _getColumnBaseSize;
|
|
1033
|
+
private _isSameColumnSizing;
|
|
1021
1034
|
private _checkHorizontalScroll;
|
|
1022
1035
|
private _updateScrollShadowState;
|
|
1023
1036
|
hasRightPinnedColumns(): boolean;
|
|
@@ -1122,7 +1135,7 @@ declare class ZTableFilterComponent<T> {
|
|
|
1122
1135
|
protected readonly filterBadgeCount: _angular_core.Signal<number>;
|
|
1123
1136
|
protected readonly hasFilterValue: _angular_core.Signal<boolean>;
|
|
1124
1137
|
protected readonly isActive: _angular_core.Signal<boolean>;
|
|
1125
|
-
protected readonly draftSortValue: _angular_core.Signal<"
|
|
1138
|
+
protected readonly draftSortValue: _angular_core.Signal<"asc" | "desc" | "none">;
|
|
1126
1139
|
protected readonly rangeMinValue: _angular_core.Signal<any>;
|
|
1127
1140
|
protected readonly rangeMaxValue: _angular_core.Signal<any>;
|
|
1128
1141
|
protected readonly dateValue: _angular_core.Signal<Date | null>;
|
|
@@ -1190,7 +1203,7 @@ declare class ZTableActionsComponent<T = unknown> {
|
|
|
1190
1203
|
readonly zConfig: _angular_core.InputSignal<ZTableActionColumnConfig<T>>;
|
|
1191
1204
|
readonly zRow: _angular_core.InputSignal<T>;
|
|
1192
1205
|
readonly zRowId: _angular_core.InputSignal<string>;
|
|
1193
|
-
readonly zDropdownButtonSize: _angular_core.InputSignal<"
|
|
1206
|
+
readonly zDropdownButtonSize: _angular_core.InputSignal<"default" | "sm" | "lg" | "xs" | "xl" | null | undefined>;
|
|
1194
1207
|
readonly zActionClick: _angular_core.OutputEmitterRef<ZTableActionClickEvent<T>>;
|
|
1195
1208
|
protected readonly allActions: _angular_core.Signal<ZTableActionItem<T>[]>;
|
|
1196
1209
|
protected readonly shouldShowAsButtons: _angular_core.Signal<boolean>;
|
|
@@ -208,6 +208,7 @@ declare class ZExcelService {
|
|
|
208
208
|
private static _processMergeRegions;
|
|
209
209
|
private static _applyAutoFitWidth;
|
|
210
210
|
private static _applyAutoFitWidthForTable;
|
|
211
|
+
private static _getMergedColumnSpan;
|
|
211
212
|
private static _calculateCellWidth;
|
|
212
213
|
private static _processTableElement;
|
|
213
214
|
private static _parseContentValue;
|