@shival99/z-ui 1.2.18 → 1.2.20
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-empty.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-empty.mjs.map +1 -1
- 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 -9
- 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-table.d.ts +2 -1
- 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.20",
|
|
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",
|
|
@@ -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>;
|
|
@@ -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 };
|