@shival99/z-ui 1.4.10 → 1.4.12
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/base.css +27 -0
- package/fesm2022/shival99-z-ui-components-z-card.mjs +11 -5
- package/fesm2022/shival99-z-ui-components-z-card.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +39 -52
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-card.d.ts +1 -0
- package/types/shival99-z-ui-components-z-editor.d.ts +1 -1
- package/types/shival99-z-ui-services.d.ts +12 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.12",
|
|
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",
|
|
@@ -36,6 +36,7 @@ declare const zCardVariants: (props?: ({
|
|
|
36
36
|
declare const zCardHeaderVariants: (props?: ({
|
|
37
37
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
38
38
|
zCollapsible?: boolean | null | undefined;
|
|
39
|
+
zCollapsed?: boolean | null | undefined;
|
|
39
40
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
40
41
|
declare const zCardTitleVariants: (props?: ({
|
|
41
42
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
@@ -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
|
|
|
@@ -481,9 +481,13 @@ interface ZThemeConfig {
|
|
|
481
481
|
}
|
|
482
482
|
declare const Z_THEME_CONFIG: InjectionToken<ZThemeConfig>;
|
|
483
483
|
declare const Z_DEFAULT_THEME: ZThemeName;
|
|
484
|
-
|
|
485
|
-
declare const
|
|
486
|
-
|
|
484
|
+
/** Single cache key for all theme preferences */
|
|
485
|
+
declare const Z_THEME_PREFERENCES_CACHE_KEY = "Z_THEME_PREFERENCES";
|
|
486
|
+
/** Cached theme preferences structure */
|
|
487
|
+
interface ZThemePreferences {
|
|
488
|
+
theme: ZThemeName;
|
|
489
|
+
isDark: boolean;
|
|
490
|
+
}
|
|
487
491
|
declare const Z_THEME_CSS_MAP: Record<ZThemeName, string>;
|
|
488
492
|
|
|
489
493
|
declare class ZThemeService {
|
|
@@ -503,10 +507,9 @@ declare class ZThemeService {
|
|
|
503
507
|
toggleDarkMode(isDark: boolean): void;
|
|
504
508
|
preloadTheme(theme: ZThemeName): void;
|
|
505
509
|
private _initializeTheme;
|
|
506
|
-
private
|
|
507
|
-
private
|
|
508
|
-
private
|
|
509
|
-
private _syncConfigToCache;
|
|
510
|
+
private _getInitialPreferences;
|
|
511
|
+
private _savePreferences;
|
|
512
|
+
private _isValidTheme;
|
|
510
513
|
private _loadThemeCSS;
|
|
511
514
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZThemeService, never>;
|
|
512
515
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZThemeService>;
|
|
@@ -588,5 +591,5 @@ interface ZTranslateI18nConfig {
|
|
|
588
591
|
}
|
|
589
592
|
declare const Z_LANG_CACHE_KEY = "Z_LANGUAGE";
|
|
590
593
|
|
|
591
|
-
export { ZCacheService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZSubjectService, ZThemeService, ZTranslateService,
|
|
592
|
-
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, ZIndexDbGetOptions, ZIndexDbSetOptions, ZIndexDbStoreConfig, ZTableToExcelColumn, ZThemeConfig, ZThemeName, ZTranslateConfig, ZTranslateI18nConfig };
|
|
594
|
+
export { ZCacheService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZSubjectService, ZThemeService, ZTranslateService, 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_HTTP_DEFAULT_CONFIG, Z_INDEXDB_BATCH_SIZE, Z_INDEXDB_DEFAULT_CONFIG, Z_INDEXDB_MAX_VERSION, Z_LANG_CACHE_KEY, Z_THEME_CONFIG, Z_THEME_CSS_MAP, Z_THEME_PREFERENCES_CACHE_KEY };
|
|
595
|
+
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, ZIndexDbGetOptions, ZIndexDbSetOptions, ZIndexDbStoreConfig, ZTableToExcelColumn, ZThemeConfig, ZThemeName, ZThemePreferences, ZTranslateConfig, ZTranslateI18nConfig };
|