@shival99/z-ui 1.9.11 → 1.9.13
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 +0 -16
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +7 -2
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-filter.mjs +150 -3
- package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-kanban.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-kanban.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +13 -6
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +4 -3
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +219 -0
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +43 -261
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +1 -4
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-providers.mjs +6 -2
- package/fesm2022/shival99-z-ui-providers.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +71 -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-drawer.d.ts +2 -0
- package/types/shival99-z-ui-components-z-editor.d.ts +1 -1
- package/types/shival99-z-ui-components-z-filter.d.ts +17 -0
- package/types/shival99-z-ui-components-z-modal.d.ts +5 -2
- package/types/shival99-z-ui-components-z-popover.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 +205 -1
- package/types/shival99-z-ui-components-z-timeline.d.ts +20 -62
- package/types/shival99-z-ui-components-z-upload.d.ts +3 -3
- package/types/shival99-z-ui-providers.d.ts +6 -2
- package/types/shival99-z-ui-services.d.ts +26 -1
|
@@ -93,7 +93,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
93
93
|
protected readonly hasError: _angular_core.Signal<boolean>;
|
|
94
94
|
protected readonly showError: _angular_core.Signal<boolean>;
|
|
95
95
|
protected readonly errorMessage: _angular_core.Signal<string>;
|
|
96
|
-
protected readonly currentStatus: _angular_core.Signal<"default" | "
|
|
96
|
+
protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error" | "active">;
|
|
97
97
|
protected readonly dropzoneClasses: _angular_core.Signal<string>;
|
|
98
98
|
protected readonly acceptTypes: _angular_core.Signal<string>;
|
|
99
99
|
protected readonly formatFileSize: (bytes: number) => string;
|
|
@@ -132,11 +132,11 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
|
|
|
132
132
|
|
|
133
133
|
declare const zUploadDropzoneVariants: (props?: ({
|
|
134
134
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
135
|
-
zStatus?: "default" | "
|
|
135
|
+
zStatus?: "default" | "disabled" | "readonly" | "error" | "active" | null | undefined;
|
|
136
136
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
137
137
|
type ZUploadDropzoneVariants = VariantProps<typeof zUploadDropzoneVariants>;
|
|
138
138
|
declare const zUploadFileItemVariants: (props?: ({
|
|
139
|
-
zStatus?: "
|
|
139
|
+
zStatus?: "error" | "pending" | "uploading" | "success" | null | undefined;
|
|
140
140
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
141
141
|
type ZUploadFileItemVariants = VariantProps<typeof zUploadFileItemVariants>;
|
|
142
142
|
|
|
@@ -90,13 +90,17 @@ declare function provideZScrollbar(): EnvironmentProviders;
|
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
92
|
* Provide theme configuration for the application
|
|
93
|
-
* @param config - Theme configuration with defaultTheme and
|
|
93
|
+
* @param config - Theme configuration with defaultTheme, defaultDarkMode, and optional cacheKey
|
|
94
94
|
* @example
|
|
95
95
|
* ```typescript
|
|
96
96
|
* // In app.config.ts
|
|
97
97
|
* export const appConfig: ApplicationConfig = {
|
|
98
98
|
* providers: [
|
|
99
|
-
* provideZTheme({
|
|
99
|
+
* provideZTheme({
|
|
100
|
+
* defaultTheme: 'hospital',
|
|
101
|
+
* defaultDarkMode: false,
|
|
102
|
+
* cacheKey: 'Z_THEME_PREFERENCES_CRM',
|
|
103
|
+
* })
|
|
100
104
|
* ]
|
|
101
105
|
* };
|
|
102
106
|
* ```
|
|
@@ -6,6 +6,7 @@ import { Router } from '@angular/router';
|
|
|
6
6
|
import * as rxjs from 'rxjs';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
8
|
import { TranslationObject, TranslateService } from '@ngx-translate/core';
|
|
9
|
+
import { OverlayRef } from '@angular/cdk/overlay';
|
|
9
10
|
|
|
10
11
|
interface ZCacheEntry<T = unknown> {
|
|
11
12
|
data: T;
|
|
@@ -464,6 +465,28 @@ declare class ZOverlayContainerService {
|
|
|
464
465
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZOverlayContainerService>;
|
|
465
466
|
}
|
|
466
467
|
|
|
468
|
+
/**
|
|
469
|
+
* Global z-index counter for overlay components (z-modal, z-drawer, etc.).
|
|
470
|
+
*
|
|
471
|
+
* Each time an overlay opens, it calls `next()` to get a unique, incrementing
|
|
472
|
+
* z-index value. This guarantees that overlays opened later always stack on top
|
|
473
|
+
* of earlier ones — regardless of DOM order or HMR re-creation.
|
|
474
|
+
*/
|
|
475
|
+
declare class ZOverlayZIndexService {
|
|
476
|
+
private _currentZIndex;
|
|
477
|
+
private readonly _platformId;
|
|
478
|
+
/**
|
|
479
|
+
* Returns the next z-index value and increments the counter.
|
|
480
|
+
* Kept for backward compatibility with existing overlay flow.
|
|
481
|
+
*/
|
|
482
|
+
next(): number;
|
|
483
|
+
applyToOverlay(_overlayRef: OverlayRef): number;
|
|
484
|
+
deferMoveToTop(overlayRef: OverlayRef): void;
|
|
485
|
+
moveToTop(overlayRef: OverlayRef): void;
|
|
486
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZOverlayZIndexService, never>;
|
|
487
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ZOverlayZIndexService>;
|
|
488
|
+
}
|
|
489
|
+
|
|
467
490
|
type ZSubjectType = 'subject' | 'behavior';
|
|
468
491
|
|
|
469
492
|
declare class ZSubjectService {
|
|
@@ -512,6 +535,7 @@ type ZThemeName = 'green' | 'orange' | 'violet' | 'neutral' | 'stone' | 'zinc' |
|
|
|
512
535
|
interface ZThemeConfig {
|
|
513
536
|
defaultTheme?: ZThemeName;
|
|
514
537
|
defaultDarkMode?: boolean;
|
|
538
|
+
cacheKey?: string;
|
|
515
539
|
}
|
|
516
540
|
declare const Z_THEME_CONFIG: InjectionToken<ZThemeConfig>;
|
|
517
541
|
declare const Z_DEFAULT_THEME: ZThemeName;
|
|
@@ -531,6 +555,7 @@ declare class ZThemeService {
|
|
|
531
555
|
private readonly _isBrowser;
|
|
532
556
|
private readonly _defaultTheme;
|
|
533
557
|
private readonly _defaultDarkMode;
|
|
558
|
+
private readonly _preferencesCacheKey;
|
|
534
559
|
private readonly _isDark;
|
|
535
560
|
private readonly _currentTheme;
|
|
536
561
|
private readonly _loadedThemes;
|
|
@@ -625,5 +650,5 @@ interface ZTranslateI18nConfig {
|
|
|
625
650
|
}
|
|
626
651
|
declare const Z_LANG_CACHE_KEY = "Z_LANGUAGE";
|
|
627
652
|
|
|
628
|
-
export { ZCacheService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZOverlayContainerService, 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 };
|
|
653
|
+
export { ZCacheService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZOverlayContainerService, ZOverlayZIndexService, 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 };
|
|
629
654
|
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 };
|