@shival99/z-ui 2.3.10 → 2.3.11
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-audio-player.mjs +210 -0
- package/fesm2022/shival99-z-ui-components-z-audio-player.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +1177 -1091
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-input.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-media-player.mjs +359 -56
- package/fesm2022/shival99-z-ui-components-z-media-player.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +2 -0
- package/fesm2022/shival99-z-ui-components-z-table.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-i18n.mjs +4 -2
- package/fesm2022/shival99-z-ui-i18n.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +144 -9
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +21 -1
- package/types/shival99-z-ui-components-z-audio-player.d.ts +46 -0
- 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-gallery.d.ts +67 -36
- package/types/shival99-z-ui-components-z-media-player.d.ts +83 -7
- package/types/shival99-z-ui-components-z-modal.d.ts +1 -1
- 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 +1 -1
- package/types/shival99-z-ui-components-z-toast.d.ts +2 -2
- package/types/shival99-z-ui-services.d.ts +25 -2
|
@@ -57,7 +57,7 @@ declare class ZToastComponent {
|
|
|
57
57
|
private readonly _themeService;
|
|
58
58
|
private readonly _config;
|
|
59
59
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
60
|
-
readonly zVariant: _angular_core.InputSignal<"
|
|
60
|
+
readonly zVariant: _angular_core.InputSignal<"default" | "success" | "error" | "warning" | "info" | null | undefined>;
|
|
61
61
|
readonly zTheme: _angular_core.InputSignal<ZToastTheme | undefined>;
|
|
62
62
|
readonly zPosition: _angular_core.InputSignal<ZToastPosition | undefined>;
|
|
63
63
|
readonly zRichColors: _angular_core.InputSignal<boolean | undefined>;
|
|
@@ -159,7 +159,7 @@ declare class ZToastService implements OnDestroy {
|
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
declare const zToastVariants: (props?: ({
|
|
162
|
-
zVariant?: "
|
|
162
|
+
zVariant?: "default" | "success" | "error" | "warning" | "info" | null | undefined;
|
|
163
163
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
164
164
|
type ZToastVariants = VariantProps<typeof zToastVariants>;
|
|
165
165
|
|
|
@@ -60,6 +60,8 @@ interface ZDynamicTemplateContext<TData, TResult> {
|
|
|
60
60
|
interface ZDynamicOptions<TData = unknown> {
|
|
61
61
|
/** Data injected into a component or exposed in a template context. */
|
|
62
62
|
data?: TData;
|
|
63
|
+
/** Initial signal inputs applied before the first component change detection. */
|
|
64
|
+
inputs?: Record<string, unknown>;
|
|
63
65
|
/** View container used as the logical parent of the attached portal. */
|
|
64
66
|
viewContainerRef?: ViewContainerRef;
|
|
65
67
|
/** Whether the overlay renders a backdrop. Defaults to `true`. */
|
|
@@ -70,6 +72,8 @@ interface ZDynamicOptions<TData = unknown> {
|
|
|
70
72
|
panelClass?: string;
|
|
71
73
|
/** Locks page scroll while the overlay is open. Defaults to `true`. */
|
|
72
74
|
scrollLock?: boolean;
|
|
75
|
+
/** Whether the overlay pane itself can scroll. Defaults to `true`. */
|
|
76
|
+
scrollable?: boolean;
|
|
73
77
|
/** Close when the backdrop is clicked. Defaults to `true`. */
|
|
74
78
|
closeOnBackdropClick?: boolean;
|
|
75
79
|
/** Close when Escape is pressed. Defaults to `true`. */
|
|
@@ -115,6 +119,7 @@ declare class ZDynamicRef<T = unknown, TResult = unknown> {
|
|
|
115
119
|
isClosed(): boolean;
|
|
116
120
|
/** Closes the overlay and emits the optional result exactly once. */
|
|
117
121
|
close(result?: TResult): void;
|
|
122
|
+
private _getContentElements;
|
|
118
123
|
/**
|
|
119
124
|
* @deprecated Không còn tác dụng — overlay tự do giờ luôn dùng vị trí toàn cục (global),
|
|
120
125
|
* tự canh giữa bằng CSS, không còn "chiến lược định vị" nào cần cập nhật lại. Giữ lại method
|
|
@@ -123,6 +128,8 @@ declare class ZDynamicRef<T = unknown, TResult = unknown> {
|
|
|
123
128
|
updatePosition(): void;
|
|
124
129
|
/** Updates the overlay pane dimensions. */
|
|
125
130
|
updateSize(width?: string, height?: string): void;
|
|
131
|
+
/** Applies an input after the component has been attached. */
|
|
132
|
+
setInput(name: string, value: unknown): void;
|
|
126
133
|
/** @internal Used by the service after attaching a component portal. */
|
|
127
134
|
attachComponentRef(componentRef: ComponentRef<T>): void;
|
|
128
135
|
}
|
|
@@ -325,6 +332,21 @@ declare class ZExcelService {
|
|
|
325
332
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZExcelService>;
|
|
326
333
|
}
|
|
327
334
|
|
|
335
|
+
interface ZGalleryOfficeRenderResult {
|
|
336
|
+
dispose: () => void;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
declare class ZGalleryOfficeRenderService {
|
|
340
|
+
renderDoc(container: HTMLElement, blob: Blob): Promise<ZGalleryOfficeRenderResult>;
|
|
341
|
+
renderSheet(container: HTMLElement, blob: Blob): Promise<ZGalleryOfficeRenderResult>;
|
|
342
|
+
renderSlide(container: HTMLElement, blob: Blob): Promise<ZGalleryOfficeRenderResult>;
|
|
343
|
+
private _toUniverWorkbook;
|
|
344
|
+
private _toUniverCellData;
|
|
345
|
+
private _observeDocxZoom;
|
|
346
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZGalleryOfficeRenderService, never>;
|
|
347
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ZGalleryOfficeRenderService>;
|
|
348
|
+
}
|
|
349
|
+
|
|
328
350
|
type ZHttpParamsType<T> = {
|
|
329
351
|
[K in keyof T]: string | number | boolean | ReadonlyArray<string | number | boolean>;
|
|
330
352
|
};
|
|
@@ -728,6 +750,7 @@ declare function zStripLegacyScopedCacheKey(key: string): string;
|
|
|
728
750
|
|
|
729
751
|
/** Injection token for data passed to a dynamic component or template. */
|
|
730
752
|
declare const Z_DYNAMIC_DATA: InjectionToken<unknown>;
|
|
753
|
+
declare const Z_DYNAMIC_ANIMATION_DURATION = 150;
|
|
731
754
|
|
|
732
755
|
declare const Z_EXCEL_COLORS: {
|
|
733
756
|
readonly 'green-50': "FFF0FDF4";
|
|
@@ -807,5 +830,5 @@ interface ZTranslateI18nConfig {
|
|
|
807
830
|
}
|
|
808
831
|
declare const Z_LANG_CACHE_KEY = "Z_LANGUAGE";
|
|
809
832
|
|
|
810
|
-
export { ZCacheService, ZDynamicRef, ZDynamicService, ZExcelService, ZHttpAbstractService, ZIndexDbService, ZOverlayContainerService, ZOverlayZIndexService, ZSubjectService, ZThemeService, ZTranslateService, Z_CACHE_DEFAULT_PREFIX, Z_CACHE_SCOPE_SEPARATOR, Z_DB_SCOPE_SEPARATOR, Z_DEFAULT_THEME, Z_DYNAMIC_DATA, 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_LANG_TO_LOCALE, Z_STORAGE_SCOPE_FALLBACK, Z_THEME_CONFIG, Z_THEME_CSS_MAP, Z_THEME_PREFERENCES_CACHE_KEY, zBuildLegacyScopedCacheKey, zBuildLegacyScopedDbName, zBuildScopedCacheKey, zBuildScopedDbName, zConfigureStorageAppName, zGetStorageAppName, zNormalizeStorageAppName, zStripLegacyScopedCacheKey, zStripScopedCacheKey };
|
|
811
|
-
export type { ZCacheConfig, ZCacheEntry, ZDynamicContent, ZDynamicOptions, ZDynamicResult, ZDynamicTemplateContext, 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 };
|
|
833
|
+
export { ZCacheService, ZDynamicRef, ZDynamicService, ZExcelService, ZGalleryOfficeRenderService, ZHttpAbstractService, ZIndexDbService, ZOverlayContainerService, ZOverlayZIndexService, ZSubjectService, ZThemeService, ZTranslateService, Z_CACHE_DEFAULT_PREFIX, Z_CACHE_SCOPE_SEPARATOR, Z_DB_SCOPE_SEPARATOR, Z_DEFAULT_THEME, Z_DYNAMIC_ANIMATION_DURATION, Z_DYNAMIC_DATA, 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_LANG_TO_LOCALE, Z_STORAGE_SCOPE_FALLBACK, Z_THEME_CONFIG, Z_THEME_CSS_MAP, Z_THEME_PREFERENCES_CACHE_KEY, zBuildLegacyScopedCacheKey, zBuildLegacyScopedDbName, zBuildScopedCacheKey, zBuildScopedDbName, zConfigureStorageAppName, zGetStorageAppName, zNormalizeStorageAppName, zStripLegacyScopedCacheKey, zStripScopedCacheKey };
|
|
834
|
+
export type { ZCacheConfig, ZCacheEntry, ZDynamicContent, ZDynamicOptions, ZDynamicResult, ZDynamicTemplateContext, ZExcelAlign, ZExcelCell, ZExcelCellContext, ZExcelColumnConfig, ZExcelConfig, ZExcelDefaultConfig, ZExcelExportOptions, ZExcelExportResult, ZExcelFontConfig, ZExcelFromTableConfig, ZExcelHeaderColors, ZExcelHeaderContext, ZExcelSheetSource, ZExcelTableColumnConfig, ZExcelTableHeaderConfig, ZExcelToastHandler, ZGalleryOfficeRenderResult, ZHttpBaseOptions, ZHttpCacheEntry, ZHttpConfig, ZHttpContentType, ZHttpError, ZHttpNetworkCheck, ZHttpOptions, ZHttpParamsType, ZIndexDbConfig, ZIndexDbGetOptions, ZIndexDbSetOptions, ZIndexDbStoreConfig, ZTableToExcelColumn, ZThemeConfig, ZThemeName, ZThemePreferences, ZTranslateConfig, ZTranslateI18nConfig };
|