@shival99/z-ui 2.3.10 → 2.4.0

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.
Files changed (38) hide show
  1. package/fesm2022/shival99-z-ui-components-z-audio-player.mjs +210 -0
  2. package/fesm2022/shival99-z-ui-components-z-audio-player.mjs.map +1 -0
  3. package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +2 -2
  4. package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
  5. package/fesm2022/shival99-z-ui-components-z-drawer.mjs +1 -1
  6. package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
  7. package/fesm2022/shival99-z-ui-components-z-gallery.mjs +1482 -1761
  8. package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
  9. package/fesm2022/shival99-z-ui-components-z-icon.mjs +20 -11
  10. package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
  11. package/fesm2022/shival99-z-ui-components-z-input.mjs +2 -2
  12. package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
  13. package/fesm2022/shival99-z-ui-components-z-media-player.mjs +413 -101
  14. package/fesm2022/shival99-z-ui-components-z-media-player.mjs.map +1 -1
  15. package/fesm2022/shival99-z-ui-components-z-popover.mjs +75 -43
  16. package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
  17. package/fesm2022/shival99-z-ui-components-z-select.mjs +2 -2
  18. package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
  19. package/fesm2022/shival99-z-ui-components-z-table.mjs +2 -0
  20. package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
  21. package/fesm2022/shival99-z-ui-components-z-tabs.mjs +17 -11
  22. package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -1
  23. package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +1 -1
  24. package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
  25. package/fesm2022/shival99-z-ui-i18n.mjs +4 -2
  26. package/fesm2022/shival99-z-ui-i18n.mjs.map +1 -1
  27. package/fesm2022/shival99-z-ui-services.mjs +144 -9
  28. package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
  29. package/package.json +21 -1
  30. package/types/shival99-z-ui-components-z-audio-player.d.ts +46 -0
  31. package/types/shival99-z-ui-components-z-gallery.d.ts +67 -36
  32. package/types/shival99-z-ui-components-z-icon.d.ts +1 -1
  33. package/types/shival99-z-ui-components-z-media-player.d.ts +83 -7
  34. package/types/shival99-z-ui-components-z-popover.d.ts +1 -0
  35. package/types/shival99-z-ui-components-z-tabs.d.ts +6 -2
  36. package/types/shival99-z-ui-components-z-toast.d.ts +2 -2
  37. package/types/shival99-z-ui-components-z-upload.d.ts +3 -3
  38. 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<"success" | "info" | "warning" | "error" | "default" | null | undefined>;
60
+ readonly zVariant: _angular_core.InputSignal<"success" | "error" | "warning" | "info" | "default" | 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?: "success" | "info" | "warning" | "error" | "default" | null | undefined;
162
+ zVariant?: "success" | "error" | "warning" | "info" | "default" | null | undefined;
163
163
  } & class_variance_authority_types.ClassProp) | undefined) => string;
164
164
  type ZToastVariants = VariantProps<typeof zToastVariants>;
165
165
 
@@ -100,7 +100,7 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
100
100
  protected readonly hasError: _angular_core.Signal<boolean>;
101
101
  protected readonly showError: _angular_core.Signal<boolean>;
102
102
  protected readonly errorMessage: _angular_core.Signal<string>;
103
- protected readonly currentStatus: _angular_core.Signal<"default" | "error" | "disabled" | "readonly" | "active">;
103
+ protected readonly currentStatus: _angular_core.Signal<"default" | "disabled" | "readonly" | "error" | "active">;
104
104
  protected readonly dropzoneClasses: _angular_core.Signal<string>;
105
105
  protected readonly acceptTypes: _angular_core.Signal<string>;
106
106
  protected readonly formatFileSize: (bytes: number) => string;
@@ -141,11 +141,11 @@ declare class ZUploadComponent implements OnInit, ControlValueAccessor {
141
141
 
142
142
  declare const zUploadDropzoneVariants: (props?: ({
143
143
  zSize?: "sm" | "default" | "lg" | null | undefined;
144
- zStatus?: "default" | "error" | "active" | "disabled" | "readonly" | null | undefined;
144
+ zStatus?: "default" | "disabled" | "readonly" | "error" | "active" | null | undefined;
145
145
  } & class_variance_authority_types.ClassProp) | undefined) => string;
146
146
  type ZUploadDropzoneVariants = VariantProps<typeof zUploadDropzoneVariants>;
147
147
  declare const zUploadFileItemVariants: (props?: ({
148
- zStatus?: "pending" | "uploading" | "success" | "error" | null | undefined;
148
+ zStatus?: "error" | "pending" | "uploading" | "success" | null | undefined;
149
149
  } & class_variance_authority_types.ClassProp) | undefined) => string;
150
150
  type ZUploadFileItemVariants = VariantProps<typeof zUploadFileItemVariants>;
151
151
 
@@ -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 };