@shival99/z-ui 1.2.17 → 1.2.19
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/assets/css/themes/gray.css +72 -70
- package/assets/css/themes/green.css +74 -72
- package/assets/css/themes/hospital.css +78 -76
- package/assets/css/themes/neutral.css +72 -70
- package/assets/css/themes/orange.css +72 -70
- package/assets/css/themes/slate.css +72 -70
- package/assets/css/themes/stone.css +72 -70
- package/assets/css/themes/violet.css +72 -70
- package/assets/css/themes/zinc.css +72 -70
- package/fesm2022/shival99-z-ui-components-z-icon.mjs +3 -8
- package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +87 -14
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +139 -58
- package/fesm2022/shival99-z-ui-services.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-editor.d.ts +1 -1
- package/types/shival99-z-ui-components-z-input.d.ts +2 -2
- package/types/shival99-z-ui-components-z-modal.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 +2 -2
- package/types/shival99-z-ui-components-z-upload.d.ts +3 -3
- package/types/shival99-z-ui-services.d.ts +17 -47
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
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",
|
|
@@ -285,16 +285,16 @@ declare class ZCalendarComponent implements OnInit, ControlValueAccessor {
|
|
|
285
285
|
|
|
286
286
|
declare const zCalendarVariants: (props?: ({
|
|
287
287
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
288
|
-
zStatus?: "default" | "disabled" | "
|
|
288
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
289
289
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
290
290
|
declare const zCalendarDayVariants: (props?: ({
|
|
291
|
-
state?: "default" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "
|
|
291
|
+
state?: "default" | "disabled" | "today" | "selected" | "inRange" | "rangeStart" | "rangeEnd" | "rangeSingle" | "otherMonth" | "hovered" | null | undefined;
|
|
292
292
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
293
293
|
declare const zCalendarMonthVariants: (props?: ({
|
|
294
|
-
state?: "default" | "
|
|
294
|
+
state?: "default" | "disabled" | "selected" | "current" | null | undefined;
|
|
295
295
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
296
296
|
declare const zCalendarYearVariants: (props?: ({
|
|
297
|
-
state?: "default" | "
|
|
297
|
+
state?: "default" | "disabled" | "selected" | "current" | null | undefined;
|
|
298
298
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
299
299
|
|
|
300
300
|
export { ZCalendarComponent, zCalendarDayVariants, zCalendarMonthVariants, zCalendarVariants, zCalendarYearVariants };
|
|
@@ -109,7 +109,7 @@ declare class ZEditorComponent implements OnInit, ControlValueAccessor {
|
|
|
109
109
|
|
|
110
110
|
declare const zEditorVariants: (props?: ({
|
|
111
111
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
112
|
-
zStatus?: "default" | "
|
|
112
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | null | undefined;
|
|
113
113
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
114
114
|
type ZEditorVariants = VariantProps<typeof zEditorVariants>;
|
|
115
115
|
|
|
@@ -177,11 +177,11 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
177
177
|
|
|
178
178
|
declare const zInputVariants: (props?: ({
|
|
179
179
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
180
|
-
zStatus?: "default" | "
|
|
180
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | null | undefined;
|
|
181
181
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
182
182
|
type ZInputVariants = VariantProps<typeof zInputVariants>;
|
|
183
183
|
declare const zTextareaVariants: (props?: ({
|
|
184
|
-
zStatus?: "default" | "
|
|
184
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | null | undefined;
|
|
185
185
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
186
186
|
type ZTextareaVariants = VariantProps<typeof zTextareaVariants>;
|
|
187
187
|
|
|
@@ -218,7 +218,7 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
|
|
|
218
218
|
protected readonly effectiveOkText: _angular_core.Signal<string | null | undefined>;
|
|
219
219
|
protected readonly effectiveCancelText: _angular_core.Signal<string | null | undefined>;
|
|
220
220
|
protected readonly effectiveOkDestructive: _angular_core.Signal<boolean | undefined>;
|
|
221
|
-
protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "
|
|
221
|
+
protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "default" | "primary" | "secondary" | "destructive" | "success" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "link" | null | undefined>;
|
|
222
222
|
protected readonly effectiveOkDisabled: _angular_core.Signal<boolean | undefined>;
|
|
223
223
|
protected readonly effectiveLoading: _angular_core.Signal<boolean>;
|
|
224
224
|
protected readonly effectiveContentLoading: _angular_core.Signal<boolean>;
|
|
@@ -256,7 +256,7 @@ declare class ZTagClassesPipe implements PipeTransform {
|
|
|
256
256
|
|
|
257
257
|
declare const zSelectVariants: (props?: ({
|
|
258
258
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
259
|
-
zStatus?: "default" | "
|
|
259
|
+
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
260
260
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
261
261
|
declare const zSelectTagVariants: (props?: ({
|
|
262
262
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
@@ -337,7 +337,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
337
337
|
readonly zKey: _angular_core.InputSignal<string>;
|
|
338
338
|
readonly zChange: _angular_core.OutputEmitterRef<ZTableChangeEvent<T>>;
|
|
339
339
|
readonly zControl: _angular_core.OutputEmitterRef<ZTableControl<T>>;
|
|
340
|
-
private readonly
|
|
340
|
+
private readonly _destroy$;
|
|
341
341
|
private readonly _zTranslate;
|
|
342
342
|
private readonly _isSyncingScroll;
|
|
343
343
|
private readonly _savedScrollLeft;
|
|
@@ -362,6 +362,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
362
362
|
protected readonly pagination: _angular_core.WritableSignal<PaginationState>;
|
|
363
363
|
protected readonly sorting: _angular_core.WritableSignal<SortingState>;
|
|
364
364
|
private readonly _tanstackPagination;
|
|
365
|
+
private readonly _configPagination;
|
|
365
366
|
protected readonly hasVerticalScroll: _angular_core.WritableSignal<boolean>;
|
|
366
367
|
protected readonly hasHorizontalScroll: _angular_core.WritableSignal<boolean>;
|
|
367
368
|
protected readonly lastRowTouchesBottom: _angular_core.WritableSignal<boolean>;
|
|
@@ -373,7 +374,6 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
373
374
|
protected readonly hasScrollRight: _angular_core.WritableSignal<boolean>;
|
|
374
375
|
private readonly _columnPinVersion;
|
|
375
376
|
private readonly _dataForceUpdate;
|
|
376
|
-
private readonly _configLoadedFromCache;
|
|
377
377
|
private _columnConfigCache;
|
|
378
378
|
private _lastColumnsRef;
|
|
379
379
|
protected readonly pinnedColumnIds: _angular_core.Signal<string[]>;
|
|
@@ -86,7 +86,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
86
86
|
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
87
87
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
88
88
|
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
89
|
-
protected readonly currentStatus: _angular_core.Signal<"default" | "
|
|
89
|
+
protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error" | "active">;
|
|
90
90
|
protected readonly dropzoneClasses: _angular_core.Signal<string>;
|
|
91
91
|
protected readonly acceptTypes: _angular_core.Signal<string>;
|
|
92
92
|
protected readonly formatFileSize: (bytes: number) => string;
|
|
@@ -125,11 +125,11 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
125
125
|
|
|
126
126
|
declare const zUploadDropzoneVariants: (props?: ({
|
|
127
127
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
128
|
-
zStatus?: "default" | "
|
|
128
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | "active" | null | undefined;
|
|
129
129
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
130
130
|
type ZUploadDropzoneVariants = VariantProps<typeof zUploadDropzoneVariants>;
|
|
131
131
|
declare const zUploadFileItemVariants: (props?: ({
|
|
132
|
-
zStatus?: "
|
|
132
|
+
zStatus?: "error" | "pending" | "uploading" | "success" | null | undefined;
|
|
133
133
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
134
134
|
type ZUploadFileItemVariants = VariantProps<typeof zUploadFileItemVariants>;
|
|
135
135
|
|
|
@@ -344,56 +344,19 @@ declare class ZIndexDbService {
|
|
|
344
344
|
private _reconnect;
|
|
345
345
|
private _withRetry;
|
|
346
346
|
private _initDb;
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
*/
|
|
347
|
+
private _getCurrentDbVersion;
|
|
348
|
+
private _triggerUpgrade;
|
|
349
|
+
private _resetDatabase;
|
|
350
|
+
private _getMissingStores;
|
|
351
|
+
private _ensureStoreExists;
|
|
353
352
|
get<T>(key: string, defaultValue?: T, storeName?: string): Promise<T | undefined>;
|
|
354
|
-
/**
|
|
355
|
-
* Set a value in the store
|
|
356
|
-
* @param key - The key to set
|
|
357
|
-
* @param value - The value to store
|
|
358
|
-
* @param storeName - Optional store name
|
|
359
|
-
*/
|
|
360
353
|
set<T>(key: string, value: T, storeName?: string): Promise<void>;
|
|
361
|
-
/**
|
|
362
|
-
* Delete a key from the store
|
|
363
|
-
* @param key - Key or array of keys to delete
|
|
364
|
-
* @param storeName - Optional store name
|
|
365
|
-
*/
|
|
366
354
|
delete(key: string | string[], storeName?: string): Promise<void>;
|
|
367
|
-
/**
|
|
368
|
-
* Clear all data from a store (respecting protected keys)
|
|
369
|
-
* @param storeName - Optional store name
|
|
370
|
-
*/
|
|
371
355
|
clear(storeName?: string): Promise<void>;
|
|
372
|
-
/**
|
|
373
|
-
* Get all items from a store
|
|
374
|
-
* @param storeName - Optional store name
|
|
375
|
-
*/
|
|
376
356
|
getAll<T = unknown>(storeName?: string): Promise<Record<string, T>>;
|
|
377
|
-
/**
|
|
378
|
-
* Set multiple items at once
|
|
379
|
-
* @param items - Object with key-value pairs
|
|
380
|
-
* @param storeName - Optional store name
|
|
381
|
-
*/
|
|
382
357
|
setMultiple<T>(items: Record<string, T>, storeName?: string): Promise<void>;
|
|
383
|
-
/**
|
|
384
|
-
* Get the list of available store names
|
|
385
|
-
*/
|
|
386
358
|
getStoreNames(): string[];
|
|
387
|
-
/**
|
|
388
|
-
* Check if a store exists
|
|
389
|
-
* @param storeName - Store name to check
|
|
390
|
-
*/
|
|
391
359
|
hasStore(storeName: string): boolean;
|
|
392
|
-
/**
|
|
393
|
-
* Add a new store (requires database version upgrade)
|
|
394
|
-
* Note: This will cause database reconnection
|
|
395
|
-
* @param config - Store configuration
|
|
396
|
-
*/
|
|
397
360
|
addStore(config: ZIndexDbStoreConfig): Promise<void>;
|
|
398
361
|
}
|
|
399
362
|
|
|
@@ -502,8 +465,9 @@ interface ZThemeConfig {
|
|
|
502
465
|
}
|
|
503
466
|
declare const Z_THEME_CONFIG: InjectionToken<ZThemeConfig>;
|
|
504
467
|
declare const Z_DEFAULT_THEME: ZThemeName;
|
|
505
|
-
declare const Z_THEME_CACHE_KEY = "
|
|
506
|
-
declare const Z_DARK_MODE_CACHE_KEY = "
|
|
468
|
+
declare const Z_THEME_CACHE_KEY = "Z_THEME";
|
|
469
|
+
declare const Z_DARK_MODE_CACHE_KEY = "Z_DARK_MODE";
|
|
470
|
+
declare const Z_THEME_CONFIG_CACHE_KEY = "Z_THEME_CONFIG";
|
|
507
471
|
declare const Z_THEME_CSS_MAP: Record<ZThemeName, string>;
|
|
508
472
|
|
|
509
473
|
declare class ZThemeService {
|
|
@@ -523,8 +487,10 @@ declare class ZThemeService {
|
|
|
523
487
|
toggleDarkMode(isDark: boolean): void;
|
|
524
488
|
preloadTheme(theme: ZThemeName): void;
|
|
525
489
|
private _initializeTheme;
|
|
526
|
-
private
|
|
527
|
-
private
|
|
490
|
+
private _getInitialTheme;
|
|
491
|
+
private _getInitialDarkMode;
|
|
492
|
+
private _hasConfigChanged;
|
|
493
|
+
private _syncConfigToCache;
|
|
528
494
|
private _loadThemeCSS;
|
|
529
495
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZThemeService, never>;
|
|
530
496
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZThemeService>;
|
|
@@ -586,6 +552,10 @@ declare const Z_EXCEL_WIDTH_LIMITS: {
|
|
|
586
552
|
default: number;
|
|
587
553
|
};
|
|
588
554
|
|
|
555
|
+
declare const Z_INDEXDB_DEFAULT_CONFIG: Required<Pick<ZIndexDbConfig, 'dbName' | 'version' | 'mode' | 'defaultStore'>>;
|
|
556
|
+
declare const Z_INDEXDB_BATCH_SIZE = 100;
|
|
557
|
+
declare const Z_INDEXDB_MAX_VERSION = 1000;
|
|
558
|
+
|
|
589
559
|
interface ZTranslateConfig {
|
|
590
560
|
/** Default language */
|
|
591
561
|
defaultLang?: string;
|
|
@@ -602,5 +572,5 @@ interface ZTranslateI18nConfig {
|
|
|
602
572
|
}
|
|
603
573
|
declare const Z_LANG_CACHE_KEY = "Z_LANGUAGE";
|
|
604
574
|
|
|
605
|
-
export { ZCacheService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZSubjectService, ZThemeService, ZTranslateService, Z_DARK_MODE_CACHE_KEY, Z_DEFAULT_THEME, Z_EXCEL_BORDER_THIN, Z_EXCEL_CHAR_WIDTH_MAP, Z_EXCEL_COLORS, Z_EXCEL_DEFAULT_CONFIG, Z_EXCEL_FONT_MULTIPLIERS, Z_EXCEL_WIDTH_LIMITS, Z_LANG_CACHE_KEY, Z_THEME_CACHE_KEY, Z_THEME_CONFIG, Z_THEME_CSS_MAP };
|
|
575
|
+
export { ZCacheService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZSubjectService, ZThemeService, ZTranslateService, Z_DARK_MODE_CACHE_KEY, Z_DEFAULT_THEME, Z_EXCEL_BORDER_THIN, Z_EXCEL_CHAR_WIDTH_MAP, Z_EXCEL_COLORS, Z_EXCEL_DEFAULT_CONFIG, Z_EXCEL_FONT_MULTIPLIERS, Z_EXCEL_WIDTH_LIMITS, Z_INDEXDB_BATCH_SIZE, Z_INDEXDB_DEFAULT_CONFIG, Z_INDEXDB_MAX_VERSION, Z_LANG_CACHE_KEY, Z_THEME_CACHE_KEY, Z_THEME_CONFIG, Z_THEME_CONFIG_CACHE_KEY, Z_THEME_CSS_MAP };
|
|
606
576
|
export type { ZCacheConfig, ZCacheEntry, ZExcelAlign, ZExcelCell, ZExcelCellContext, ZExcelColumnConfig, ZExcelConfig, ZExcelDefaultConfig, ZExcelExportOptions, ZExcelExportResult, ZExcelFontConfig, ZExcelFromTableConfig, ZExcelHeaderColors, ZExcelHeaderContext, ZExcelSheetSource, ZExcelTableColumnConfig, ZExcelTableHeaderConfig, ZExcelToastHandler, ZHttpBaseOptions, ZHttpCacheEntry, ZHttpConfig, ZHttpContentType, ZHttpError, ZHttpNetworkCheck, ZHttpOptions, ZHttpParamsType, ZIndexDbConfig, ZIndexDbStoreConfig, ZTableToExcelColumn, ZThemeConfig, ZThemeName, ZTranslateConfig, ZTranslateI18nConfig };
|