@shival99/z-ui 2.2.6 → 2.3.1

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 (56) hide show
  1. package/assets/css/base.css +4 -0
  2. package/assets/css/overlay.css +82 -0
  3. package/assets/css/tailwind.css +1 -0
  4. package/fesm2022/shival99-z-ui-components-z-button-group.mjs +15 -13
  5. package/fesm2022/shival99-z-ui-components-z-button-group.mjs.map +1 -1
  6. package/fesm2022/shival99-z-ui-components-z-button.mjs +2 -2
  7. package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
  8. package/fesm2022/shival99-z-ui-components-z-calendar.mjs +23 -17
  9. package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
  10. package/fesm2022/shival99-z-ui-components-z-command.mjs +10 -24
  11. package/fesm2022/shival99-z-ui-components-z-command.mjs.map +1 -1
  12. package/fesm2022/shival99-z-ui-components-z-drawer.mjs +42 -60
  13. package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
  14. package/fesm2022/shival99-z-ui-components-z-gallery.mjs +6 -8
  15. package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
  16. package/fesm2022/shival99-z-ui-components-z-icon.mjs +147 -3
  17. package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
  18. package/fesm2022/shival99-z-ui-components-z-marquee.mjs +19 -4
  19. package/fesm2022/shival99-z-ui-components-z-marquee.mjs.map +1 -1
  20. package/fesm2022/shival99-z-ui-components-z-menu.mjs +2 -2
  21. package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
  22. package/fesm2022/shival99-z-ui-components-z-modal.mjs +45 -62
  23. package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
  24. package/fesm2022/shival99-z-ui-components-z-overlay.mjs +363 -0
  25. package/fesm2022/shival99-z-ui-components-z-overlay.mjs.map +1 -0
  26. package/fesm2022/shival99-z-ui-components-z-popover.mjs +94 -378
  27. package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
  28. package/fesm2022/shival99-z-ui-components-z-skeleton.mjs +14 -3
  29. package/fesm2022/shival99-z-ui-components-z-skeleton.mjs.map +1 -1
  30. package/fesm2022/shival99-z-ui-components-z-table.mjs +42 -16
  31. package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
  32. package/fesm2022/shival99-z-ui-components-z-tabs.mjs +85 -7
  33. package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -1
  34. package/fesm2022/shival99-z-ui-components-z-toast.mjs +32 -25
  35. package/fesm2022/shival99-z-ui-components-z-toast.mjs.map +1 -1
  36. package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +52 -222
  37. package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
  38. package/fesm2022/shival99-z-ui-services.mjs +42 -25
  39. package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
  40. package/package.json +9 -1
  41. package/types/shival99-z-ui-components-z-button-group.d.ts +12 -11
  42. package/types/shival99-z-ui-components-z-button.d.ts +2 -1
  43. package/types/shival99-z-ui-components-z-command.d.ts +2 -4
  44. package/types/shival99-z-ui-components-z-drawer.d.ts +11 -13
  45. package/types/shival99-z-ui-components-z-gallery.d.ts +7 -7
  46. package/types/shival99-z-ui-components-z-icon.d.ts +21 -1
  47. package/types/shival99-z-ui-components-z-marquee.d.ts +7 -1
  48. package/types/shival99-z-ui-components-z-modal.d.ts +52 -52
  49. package/types/shival99-z-ui-components-z-overlay.d.ts +145 -0
  50. package/types/shival99-z-ui-components-z-popover.d.ts +7 -15
  51. package/types/shival99-z-ui-components-z-skeleton.d.ts +2 -0
  52. package/types/shival99-z-ui-components-z-table.d.ts +6 -2
  53. package/types/shival99-z-ui-components-z-tabs.d.ts +13 -3
  54. package/types/shival99-z-ui-components-z-toast.d.ts +9 -3
  55. package/types/shival99-z-ui-components-z-tooltip.d.ts +9 -7
  56. package/types/shival99-z-ui-services.d.ts +52 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shival99/z-ui",
3
- "version": "2.2.6",
3
+ "version": "2.3.1",
4
4
  "description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 22, featuring 40+ customizable components with dark mode, accessibility, and enterprise-ready features.",
5
5
  "keywords": [
6
6
  "angular",
@@ -43,11 +43,15 @@
43
43
  "@angular/platform-browser": ">=22.0.0 <23.0.0",
44
44
  "@angular/router": ">=22.0.0 <23.0.0",
45
45
  "@dayflow/blossom-color-picker-angular": ">=1.0.0",
46
+ "@floating-ui/dom": ">=1.0.0",
46
47
  "@hugeicons/core-free-icons": ">=4.0.0",
47
48
  "@ng-icons/core": ">=33.0.0",
49
+ "@ng-icons/heroicons": ">=33.0.0",
50
+ "@ng-icons/iconoir": ">=33.0.0",
48
51
  "@ng-icons/iconsax": ">=33.0.0",
49
52
  "@ng-icons/lucide": ">=33.0.0",
50
53
  "@ng-icons/phosphor-icons": ">=33.0.0",
54
+ "@ng-icons/tabler-icons": ">=33.0.0",
51
55
  "@ngx-translate/core": ">=17.0.0",
52
56
  "@tanstack/angular-virtual": ">=6.0.2",
53
57
  "@shival99/ngx-sonner": ">=3.0.0",
@@ -283,6 +287,10 @@
283
287
  "types": "./types/shival99-z-ui-components-z-modal.d.ts",
284
288
  "default": "./fesm2022/shival99-z-ui-components-z-modal.mjs"
285
289
  },
290
+ "./components/z-overlay": {
291
+ "types": "./types/shival99-z-ui-components-z-overlay.d.ts",
292
+ "default": "./fesm2022/shival99-z-ui-components-z-overlay.mjs"
293
+ },
286
294
  "./components/z-pagination": {
287
295
  "types": "./types/shival99-z-ui-components-z-pagination.d.ts",
288
296
  "default": "./fesm2022/shival99-z-ui-components-z-pagination.mjs"
@@ -1,15 +1,23 @@
1
1
  import * as _angular_core from '@angular/core';
2
2
  import { InjectionToken } from '@angular/core';
3
- import { ClassValue } from 'clsx';
4
- import * as class_variance_authority_types from 'class-variance-authority/types';
5
3
  import { VariantProps } from 'class-variance-authority';
4
+ import * as class_variance_authority_types from 'class-variance-authority/types';
5
+ import { ClassValue } from 'clsx';
6
+
7
+ declare const zButtonGroupVariants: (props?: ({
8
+ zOrientation?: "horizontal" | "vertical" | null | undefined;
9
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
10
+ declare const zButtonGroupSeparatorVariants: (props?: ({
11
+ zOrientation?: "horizontal" | "vertical" | null | undefined;
12
+ } & class_variance_authority_types.ClassProp) | undefined) => string;
6
13
 
7
14
  type ZButtonGroupValue = string | number;
15
+ type ZButtonGroupVariants = VariantProps<typeof zButtonGroupVariants>;
16
+ type ZButtonGroupSeparatorVariants = VariantProps<typeof zButtonGroupSeparatorVariants>;
8
17
  interface ZButtonGroupHost {
9
18
  _selectItem(value: ZButtonGroupValue, index: number): void;
10
19
  _isItemActive(value: ZButtonGroupValue): boolean;
11
20
  }
12
- declare const Z_BUTTON_GROUP: InjectionToken<ZButtonGroupHost>;
13
21
 
14
22
  declare class ZButtonGroupItemDirective {
15
23
  private readonly _group;
@@ -48,14 +56,7 @@ declare class ZButtonGroupComponent implements ZButtonGroupHost {
48
56
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZButtonGroupComponent, "z-button-group", ["zButtonGroup"], { "zClass": { "alias": "zClass"; "required": false; "isSignal": true; }; "zOrientation": { "alias": "zOrientation"; "required": false; "isSignal": true; }; "zActive": { "alias": "zActive"; "required": false; "isSignal": true; }; }, { "zActive": "zActiveChange"; "zActiveIndexChange": "zActiveIndexChange"; "zActiveValueChange": "zActiveValueChange"; }, ["_items"], ["*"], true, never>;
49
57
  }
50
58
 
51
- declare const zButtonGroupVariants: (props?: ({
52
- zOrientation?: "horizontal" | "vertical" | null | undefined;
53
- } & class_variance_authority_types.ClassProp) | undefined) => string;
54
- declare const zButtonGroupSeparatorVariants: (props?: ({
55
- zOrientation?: "horizontal" | "vertical" | null | undefined;
56
- } & class_variance_authority_types.ClassProp) | undefined) => string;
57
- type ZButtonGroupVariants = VariantProps<typeof zButtonGroupVariants>;
58
- type ZButtonGroupSeparatorVariants = VariantProps<typeof zButtonGroupSeparatorVariants>;
59
+ declare const Z_BUTTON_GROUP: InjectionToken<ZButtonGroupHost>;
59
60
 
60
61
  export { ZButtonGroupComponent, ZButtonGroupItemDirective, ZButtonGroupSeparatorComponent, Z_BUTTON_GROUP, zButtonGroupSeparatorVariants, zButtonGroupVariants };
61
62
  export type { ZButtonGroupHost, ZButtonGroupSeparatorVariants, ZButtonGroupValue, ZButtonGroupVariants };
@@ -2,8 +2,8 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy } from '@angular/core';
3
3
  import { ZIcon, ZIconAnimationTrigger } from '@shival99/z-ui/components/z-icon';
4
4
  import { ClassValue } from 'clsx';
5
- import * as class_variance_authority_types from 'class-variance-authority/types';
6
5
  import { VariantProps } from 'class-variance-authority';
6
+ import * as class_variance_authority_types from 'class-variance-authority/types';
7
7
 
8
8
  declare class ZButtonComponent implements OnDestroy {
9
9
  private readonly _elementRef;
@@ -39,6 +39,7 @@ declare const zButtonVariants: (props?: ({
39
39
  zLoading?: boolean | null | undefined;
40
40
  zDisabled?: boolean | null | undefined;
41
41
  } & class_variance_authority_types.ClassProp) | undefined) => string;
42
+
42
43
  type ZButtonVariants = VariantProps<typeof zButtonVariants>;
43
44
 
44
45
  export { ZButtonComponent, zButtonVariants };
@@ -1,7 +1,7 @@
1
1
  import * as _shival99_z_ui_components_z_icon from '@shival99/z-ui/components/z-icon';
2
2
  import { ZIcon } from '@shival99/z-ui/components/z-icon';
3
3
  import * as _angular_core from '@angular/core';
4
- import { OnDestroy, TemplateRef, ElementRef } from '@angular/core';
4
+ import { OnDestroy, ElementRef } from '@angular/core';
5
5
  import { ClassValue } from 'clsx';
6
6
 
7
7
  interface ZCommandItem<T = any> {
@@ -26,12 +26,10 @@ declare class ZCommandComponent implements OnDestroy {
26
26
  readonly zPlaceholder: _angular_core.InputSignal<string>;
27
27
  readonly zGroups: _angular_core.InputSignal<ZCommandGroup[]>;
28
28
  readonly zOverlay: _angular_core.InputSignal<"dark" | "blur">;
29
- protected readonly dummyTemplateRef: _angular_core.Signal<TemplateRef<unknown> | undefined>;
30
29
  protected readonly searchInputRef: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
31
30
  private readonly _platformId;
32
31
  private readonly _host;
33
- private readonly _overlay;
34
- private readonly _viewContainerRef;
32
+ private readonly _overlayService;
35
33
  private readonly _cdr;
36
34
  private readonly _destroyRef;
37
35
  private readonly _zTranslate;
@@ -1,11 +1,10 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { TemplateRef, Type, WritableSignal, EventEmitter, ViewContainerRef, OnDestroy, AfterViewChecked, ComponentRef, EmbeddedViewRef, InjectionToken } from '@angular/core';
3
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
2
+ import { TemplateRef, Type, WritableSignal, EventEmitter, ViewContainerRef, OnDestroy, AfterViewChecked, Injector, ComponentRef, EmbeddedViewRef, InjectionToken } from '@angular/core';
4
3
  import { ClassValue } from 'clsx';
5
4
  import { NgScrollbar } from 'ngx-scrollbar';
6
5
  import { ZIcon } from '@shival99/z-ui/components/z-icon';
7
6
  import { Observable } from 'rxjs';
8
- import { ComponentType, OverlayRef } from '@angular/cdk/overlay';
7
+ import { ZOverlayRef } from '@shival99/z-ui/components/z-overlay';
9
8
  import * as class_variance_authority_types from 'class-variance-authority/types';
10
9
 
11
10
  declare class ZDrawerContentDirective {
@@ -26,7 +25,7 @@ declare class ZDrawerHeaderDirective {
26
25
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZDrawerHeaderDirective, "[z-drawer-header], [zDrawerHeader]", never, {}, {}, never, never, true, never>;
27
26
  }
28
27
 
29
- type ZDrawerContentType<T> = ComponentType<T> | TemplateRef<T> | string;
28
+ type ZDrawerContentType<T> = Type<T> | TemplateRef<T> | string;
30
29
  type ZDrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
31
30
  type ZDrawerScrollMode = 'drawer' | 'inner';
32
31
  type ZDrawerOnClickCallBack<T> = (instance: T, drawerRef?: unknown) => false | void | object;
@@ -126,7 +125,7 @@ declare class ZDrawerRef<T = any, R = any, U = any> {
126
125
  componentInstance: T | null;
127
126
  readonly loading: _angular_core.WritableSignal<boolean>;
128
127
  readonly zAfterClose: EventEmitter<R | undefined>;
129
- constructor(_overlayRef: OverlayRef, _config: ZDrawerOptions<T, U>, _containerInstance: ZDrawerComponent<T, U>, _platformId: object);
128
+ constructor(_overlayRef: ZOverlayRef, _config: ZDrawerOptions<T, U>, _containerInstance: ZDrawerComponent<T, U>, _platformId: object);
130
129
  setLoading(value: boolean): void;
131
130
  close(result?: R): void;
132
131
  private _trigger;
@@ -140,7 +139,7 @@ declare const zDrawerVariants: (props?: ({
140
139
  shape?: "rounded" | "square" | null | undefined;
141
140
  } & class_variance_authority_types.ClassProp) | undefined) => string;
142
141
 
143
- declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestroy, AfterViewChecked {
142
+ declare class ZDrawerComponent<T, U> implements OnDestroy, AfterViewChecked {
144
143
  readonly zOnOk: _angular_core.OutputEmitterRef<void>;
145
144
  readonly zOnCancel: _angular_core.OutputEmitterRef<void>;
146
145
  readonly zAfterClose: _angular_core.OutputEmitterRef<void>;
@@ -178,14 +177,12 @@ declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestr
178
177
  private readonly _drawerRef;
179
178
  get drawerRef(): ZDrawerRef<T> | undefined;
180
179
  set drawerRef(value: ZDrawerRef<T> | undefined);
181
- readonly portalOutlet: _angular_core.Signal<CdkPortalOutlet | undefined>;
182
- protected readonly dummyTemplateRef: _angular_core.Signal<TemplateRef<unknown> | undefined>;
180
+ protected readonly contentOutlet: _angular_core.Signal<ViewContainerRef | undefined>;
183
181
  protected readonly mainContentRef: _angular_core.Signal<NgScrollbar | undefined>;
184
182
  protected readonly config: ZDrawerOptions<T, U>;
185
183
  private readonly _platformId;
186
184
  private readonly _host;
187
- private readonly _overlay;
188
- private readonly _viewContainerRef;
185
+ private readonly _overlayService;
189
186
  private readonly _cdr;
190
187
  private readonly _destroyRef;
191
188
  private readonly _zTranslate;
@@ -213,6 +210,7 @@ declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestr
213
210
  private readonly _resizedHeight;
214
211
  ngAfterViewChecked(): void;
215
212
  private _checkScrollState;
213
+ onContentWheel(event: WheelEvent): void;
216
214
  onContentScroll(event: Event): void;
217
215
  protected readonly effectiveTitle: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
218
216
  protected readonly effectiveDescription: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
@@ -252,8 +250,8 @@ declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestr
252
250
  onHostPointerDown(event: PointerEvent): void;
253
251
  isDestroyed(): boolean;
254
252
  getNativeElement(): HTMLElement;
255
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
256
- attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
253
+ attachComponentPortal<C>(component: Type<C>, injector?: Injector): ComponentRef<C>;
254
+ attachTemplatePortal<C>(templateRef: TemplateRef<C>, context: C): EmbeddedViewRef<C>;
257
255
  onOkClick(): void;
258
256
  onCloseClick(): void;
259
257
  onBackdropClick(): void;
@@ -272,7 +270,7 @@ declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestr
272
270
  }
273
271
 
274
272
  declare class ZDrawerService {
275
- private readonly _overlay;
273
+ private readonly _overlayService;
276
274
  private readonly _injector;
277
275
  private readonly _platformId;
278
276
  private readonly _zIndexService;
@@ -5,7 +5,7 @@ import { ClassValue } from 'clsx';
5
5
  import { LayoutConfig, ThemeConfig, ControlVisibilityConfig, GroupVisibilityConfig, AutoActionConfig, ViewerConfig, PdfJsViewerComponent } from 'ng2-pdfjs-viewer';
6
6
  import * as _shival99_z_ui_components_z_gallery from '@shival99/z-ui/components/z-gallery';
7
7
  import { SafeHtml } from '@angular/platform-browser';
8
- import { OverlayRef } from '@angular/cdk/overlay';
8
+ import { ZOverlayRef } from '@shival99/z-ui/components/z-overlay';
9
9
  import * as class_variance_authority_types from 'class-variance-authority/types';
10
10
  import { VariantProps } from 'class-variance-authority';
11
11
 
@@ -187,7 +187,7 @@ declare class ZGalleryComponent implements AfterViewInit {
187
187
  protected readonly headerControlHeight: _angular_core.Signal<"1.75rem" | "2rem" | "2.5rem" | "2.25rem">;
188
188
  protected readonly skeletonMediaHeight: _angular_core.Signal<"9rem" | "14rem" | "11rem">;
189
189
  protected readonly toggleIconSize: _angular_core.Signal<"14" | "16" | "20" | "18">;
190
- protected readonly searchInputSize: _angular_core.Signal<"default" | "sm" | "lg">;
190
+ protected readonly searchInputSize: _angular_core.Signal<"sm" | "default" | "lg">;
191
191
  protected readonly filteredFiles: _angular_core.Signal<ZGalleryFile[]>;
192
192
  protected readonly selectedIds: _angular_core.Signal<Set<string>>;
193
193
  protected readonly isAllSelected: _angular_core.Signal<boolean>;
@@ -358,14 +358,14 @@ declare class ZGalleryPreviewRef {
358
358
  private _closed;
359
359
  componentInstance: ZGalleryPreviewComponent | null;
360
360
  readonly zAfterClose: EventEmitter<void>;
361
- constructor(_overlayRef: OverlayRef | null);
361
+ constructor(_overlayRef: ZOverlayRef | null);
362
362
  close(): void;
363
363
  }
364
364
 
365
365
  declare class ZGalleryPreviewService {
366
366
  private readonly _document;
367
367
  private readonly _injector;
368
- private readonly _overlay;
368
+ private readonly _overlayService;
369
369
  private readonly _platformId;
370
370
  private readonly _zIndexService;
371
371
  open(file: ZGalleryFile, options?: Omit<ZGalleryPreviewOptions, 'file'>): ZGalleryPreviewRef;
@@ -383,16 +383,16 @@ declare const isPreviewable: (file: ZGalleryFile) => boolean;
383
383
  declare const isImage: (file: ZGalleryFile) => boolean;
384
384
 
385
385
  declare const zGalleryVariants: (props?: ({
386
- zSize?: "default" | "sm" | "lg" | null | undefined;
386
+ zSize?: "sm" | "default" | "lg" | null | undefined;
387
387
  } & class_variance_authority_types.ClassProp) | undefined) => string;
388
388
  type ZGalleryVariants = VariantProps<typeof zGalleryVariants>;
389
389
  declare const zGalleryItemVariants: (props?: ({
390
390
  zMode?: "grid" | "list" | null | undefined;
391
- zSize?: "default" | "sm" | "lg" | null | undefined;
391
+ zSize?: "sm" | "default" | "lg" | null | undefined;
392
392
  } & class_variance_authority_types.ClassProp) | undefined) => string;
393
393
  type ZGalleryItemVariants = VariantProps<typeof zGalleryItemVariants>;
394
394
  declare const zGalleryFileIconVariants: (props?: ({
395
- zSize?: "default" | "sm" | "lg" | null | undefined;
395
+ zSize?: "sm" | "default" | "lg" | null | undefined;
396
396
  zMode?: "grid" | "list" | null | undefined;
397
397
  } & class_variance_authority_types.ClassProp) | undefined) => string;
398
398
  type ZGalleryFileIconVariants = VariantProps<typeof zGalleryFileIconVariants>;
@@ -2,6 +2,12 @@ import * as _angular_core from '@angular/core';
2
2
  import { OnDestroy, ViewContainerRef, Type, EnvironmentProviders } from '@angular/core';
3
3
  import { ClassValue } from 'clsx';
4
4
  import * as hugeIcons from '@hugeicons/core-free-icons';
5
+ import * as heroMicroIcons from '@ng-icons/heroicons/micro';
6
+ import * as heroMiniIcons from '@ng-icons/heroicons/mini';
7
+ import * as heroOutlineIcons from '@ng-icons/heroicons/outline';
8
+ import * as heroSolidIcons from '@ng-icons/heroicons/solid';
9
+ import * as iconoirRegularIcons from '@ng-icons/iconoir/regular';
10
+ import * as iconoirSolidIcons from '@ng-icons/iconoir/solid';
5
11
  import * as saxBoldIcons from '@ng-icons/iconsax/bold';
6
12
  import * as saxOutlineIcons from '@ng-icons/iconsax/outline';
7
13
  import * as lucideIcons from '@ng-icons/lucide';
@@ -11,6 +17,8 @@ import * as phosphorFillIcons from '@ng-icons/phosphor-icons/fill';
11
17
  import * as phosphorLightIcons from '@ng-icons/phosphor-icons/light';
12
18
  import * as phosphorRegularIcons from '@ng-icons/phosphor-icons/regular';
13
19
  import * as phosphorThinIcons from '@ng-icons/phosphor-icons/thin';
20
+ import * as tablerIcons from '@ng-icons/tabler-icons';
21
+ import * as tablerFillIcons from '@ng-icons/tabler-icons/fill';
14
22
  import * as animatedIcons from 'ng-animated-icons';
15
23
  import * as class_variance_authority_types from 'class-variance-authority/types';
16
24
  import { VariantProps } from 'class-variance-authority';
@@ -20,6 +28,9 @@ type ZIconAnimationTrigger = 'manual' | 'hover' | 'focus' | 'interaction' | 'alw
20
28
  type ZLucideIcon = Extract<keyof typeof lucideIcons, `lucide${string}`>;
21
29
  type ZSaxIcon = Extract<keyof typeof saxBoldIcons | keyof typeof saxOutlineIcons, `sax${string}`>;
22
30
  type ZPhosphorIcon = Extract<keyof typeof phosphorRegularIcons | keyof typeof phosphorBoldIcons | keyof typeof phosphorFillIcons | keyof typeof phosphorLightIcons | keyof typeof phosphorThinIcons | keyof typeof phosphorDuotoneIcons, `phosphor${string}`>;
31
+ type ZTablerIcon = Extract<keyof typeof tablerIcons | keyof typeof tablerFillIcons, `tabler${string}`>;
32
+ type ZHeroIcon = Extract<keyof typeof heroMicroIcons | keyof typeof heroMiniIcons | keyof typeof heroOutlineIcons | keyof typeof heroSolidIcons, `hero${string}`>;
33
+ type ZIconoirIcon = Extract<keyof typeof iconoirRegularIcons | keyof typeof iconoirSolidIcons, `iconoir${string}`>;
23
34
  /**
24
35
  * HugeIcons exports are PascalCase with an `Icon` suffix (e.g. `HeartIcon`,
25
36
  * `Home01Icon`). We re-expose them with a `huge` prefix to stay consistent
@@ -37,8 +48,17 @@ type ZHugeIcon = {
37
48
  * Examples: `brandGithub`, `brandSlackWordmark`, `brandFigmaColor`.
38
49
  */
39
50
  type ZBrandIcon = `brand${string}`;
51
+ /**
52
+ * Optional bundled icon overrides used before the CDN loader fallback.
53
+ *
54
+ * The default registry is intentionally empty so icon families remain lazy.
55
+ */
40
56
  declare const Z_ICONS: {};
41
- type ZIcon = ZLucideIcon | ZSaxIcon | ZPhosphorIcon | ZHugeIcon | ZBrandIcon;
57
+ /**
58
+ * Names accepted by `z-icon`, covering every icon family configured by the
59
+ * default loader and preserving each family's style suffix conventions.
60
+ */
61
+ type ZIcon = ZLucideIcon | ZSaxIcon | ZPhosphorIcon | ZTablerIcon | ZHeroIcon | ZIconoirIcon | ZHugeIcon | ZBrandIcon;
42
62
 
43
63
  declare class ZIconComponent implements OnDestroy {
44
64
  readonly class: _angular_core.InputSignal<ClassValue>;
@@ -13,6 +13,12 @@ declare class ZMarqueeComponent {
13
13
  readonly zDuration: _angular_core.InputSignal<number>;
14
14
  readonly zGap: _angular_core.InputSignal<string>;
15
15
  readonly zFade: _angular_core.InputSignal<ZMarqueeFade>;
16
+ readonly zFadeColor: _angular_core.InputSignal<string>;
17
+ protected readonly fadeGradient: _angular_core.Signal<(direction: string) => string>;
18
+ protected readonly leftFadeStyle: _angular_core.Signal<string>;
19
+ protected readonly rightFadeStyle: _angular_core.Signal<string>;
20
+ protected readonly topFadeStyle: _angular_core.Signal<string>;
21
+ protected readonly bottomFadeStyle: _angular_core.Signal<string>;
16
22
  protected readonly contentTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
17
23
  protected readonly isVertical: _angular_core.Signal<boolean>;
18
24
  protected readonly isReverse: _angular_core.Signal<boolean>;
@@ -28,7 +34,7 @@ declare class ZMarqueeComponent {
28
34
  protected readonly trackClasses: _angular_core.Signal<string>;
29
35
  protected readonly contentClasses: _angular_core.Signal<string>;
30
36
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZMarqueeComponent, never>;
31
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZMarqueeComponent, "z-marquee", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zDirection": { "alias": "zDirection"; "required": false; "isSignal": true; }; "zPauseOnHover": { "alias": "zPauseOnHover"; "required": false; "isSignal": true; }; "zRepeat": { "alias": "zRepeat"; "required": false; "isSignal": true; }; "zDuration": { "alias": "zDuration"; "required": false; "isSignal": true; }; "zGap": { "alias": "zGap"; "required": false; "isSignal": true; }; "zFade": { "alias": "zFade"; "required": false; "isSignal": true; }; }, {}, ["contentTemplate"], never, true, never>;
37
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZMarqueeComponent, "z-marquee", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zDirection": { "alias": "zDirection"; "required": false; "isSignal": true; }; "zPauseOnHover": { "alias": "zPauseOnHover"; "required": false; "isSignal": true; }; "zRepeat": { "alias": "zRepeat"; "required": false; "isSignal": true; }; "zDuration": { "alias": "zDuration"; "required": false; "isSignal": true; }; "zGap": { "alias": "zGap"; "required": false; "isSignal": true; }; "zFade": { "alias": "zFade"; "required": false; "isSignal": true; }; "zFadeColor": { "alias": "zFadeColor"; "required": false; "isSignal": true; }; }, {}, ["contentTemplate"], never, true, never>;
32
38
  }
33
39
 
34
40
  export { ZMarqueeComponent };
@@ -1,17 +1,53 @@
1
- import { ComponentType, OverlayRef } from '@angular/cdk/overlay';
2
1
  import * as _angular_core from '@angular/core';
3
- import { TemplateRef, Type, WritableSignal, EventEmitter, ViewContainerRef, InjectionToken, OnDestroy, AfterViewChecked, ComponentRef, EmbeddedViewRef } from '@angular/core';
2
+ import { Type, TemplateRef, WritableSignal, EventEmitter, ViewContainerRef, OnDestroy, AfterViewChecked, Injector, ComponentRef, EmbeddedViewRef, InjectionToken } from '@angular/core';
4
3
  import { ZIcon } from '@shival99/z-ui/components/z-icon';
5
4
  import { ClassValue } from 'clsx';
6
- import { Observable } from 'rxjs';
7
- import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
8
5
  import { NgScrollbar } from 'ngx-scrollbar';
6
+ import { Observable } from 'rxjs';
7
+ import { ZOverlayRef } from '@shival99/z-ui/components/z-overlay';
9
8
  import * as class_variance_authority_types from 'class-variance-authority/types';
10
9
 
11
- type ZModalContentType<T> = ComponentType<T> | TemplateRef<T> | string;
12
- declare const Z_MODAL_DATA: InjectionToken<any>;
10
+ type ZModalContentType<T> = Type<T> | TemplateRef<T> | string;
13
11
  type ZModalOnClickCallBack<T> = (instance: T, modalRef?: unknown) => false | void | object;
14
12
  type ZModalConfirmType = 'show' | 'info' | 'warning' | 'danger';
13
+ interface ZModalConfirmOptions<U = unknown> {
14
+ zTitle: string;
15
+ zContent?: string;
16
+ zIcon?: ZIcon;
17
+ zOkText?: string;
18
+ zCancelText?: string | null;
19
+ /** Callback when OK is clicked. Return false to prevent auto-close */
20
+ zOnOk?: () => void | false | Promise<void>;
21
+ zOnCancel?: () => void;
22
+ zMaskClosable?: boolean;
23
+ /** Modal width. In service mode this is applied as the minimum width to allow content to expand naturally. */
24
+ zWidth?: string;
25
+ zData?: U;
26
+ }
27
+ interface ZModalConfirmIconColors {
28
+ ring: string;
29
+ bg: string;
30
+ icon: string;
31
+ }
32
+
33
+ declare class ZModalContentDirective {
34
+ readonly templateRef: TemplateRef<any>;
35
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalContentDirective, never>;
36
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZModalContentDirective, "[z-modal-content], [zModalContent]", never, {}, {}, never, never, true, never>;
37
+ }
38
+
39
+ declare class ZModalFooterDirective {
40
+ readonly templateRef: TemplateRef<any>;
41
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalFooterDirective, never>;
42
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZModalFooterDirective, "[z-modal-footer], [zModalFooter]", never, {}, {}, never, never, true, never>;
43
+ }
44
+
45
+ declare class ZModalHeaderDirective {
46
+ readonly templateRef: TemplateRef<any>;
47
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalHeaderDirective, never>;
48
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZModalHeaderDirective, "[z-modal-header], [zModalHeader]", never, {}, {}, never, never, true, never>;
49
+ }
50
+
15
51
  /**
16
52
  * Configuration options for z-modal component.
17
53
  *
@@ -115,43 +151,6 @@ declare class ZModalOptions<T, U> {
115
151
  /** Number of skeleton rows to show when content is loading */
116
152
  zSkeletonRows?: number;
117
153
  }
118
- interface ZModalConfirmOptions<U = unknown> {
119
- zTitle: string;
120
- zContent?: string;
121
- zIcon?: ZIcon;
122
- zOkText?: string;
123
- zCancelText?: string | null;
124
- /** Callback when OK is clicked. Return false to prevent auto-close */
125
- zOnOk?: () => void | false | Promise<void>;
126
- zOnCancel?: () => void;
127
- zMaskClosable?: boolean;
128
- /** Modal width. In service mode this is applied as the minimum width to allow content to expand naturally. */
129
- zWidth?: string;
130
- zData?: U;
131
- }
132
- interface ZModalConfirmIconColors {
133
- ring: string;
134
- bg: string;
135
- icon: string;
136
- }
137
-
138
- declare class ZModalContentDirective {
139
- readonly templateRef: TemplateRef<any>;
140
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalContentDirective, never>;
141
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZModalContentDirective, "[z-modal-content], [zModalContent]", never, {}, {}, never, never, true, never>;
142
- }
143
-
144
- declare class ZModalFooterDirective {
145
- readonly templateRef: TemplateRef<any>;
146
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalFooterDirective, never>;
147
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZModalFooterDirective, "[z-modal-footer], [zModalFooter]", never, {}, {}, never, never, true, never>;
148
- }
149
-
150
- declare class ZModalHeaderDirective {
151
- readonly templateRef: TemplateRef<any>;
152
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalHeaderDirective, never>;
153
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZModalHeaderDirective, "[z-modal-header], [zModalHeader]", never, {}, {}, never, never, true, never>;
154
- }
155
154
 
156
155
  declare class ZModalRef<T = any, R = any, U = any> {
157
156
  private readonly _overlayRef;
@@ -164,7 +163,7 @@ declare class ZModalRef<T = any, R = any, U = any> {
164
163
  componentInstance: T | null;
165
164
  readonly loading: _angular_core.WritableSignal<boolean>;
166
165
  readonly zAfterClose: EventEmitter<R | undefined>;
167
- constructor(_overlayRef: OverlayRef, _config: ZModalOptions<T, U>, _containerInstance: ZModalComponent<T, U>, _platformId: object);
166
+ constructor(_overlayRef: ZOverlayRef, _config: ZModalOptions<T, U>, _containerInstance: ZModalComponent<T, U>, _platformId: object);
168
167
  setLoading(value: boolean): void;
169
168
  close(result?: R): void;
170
169
  private _trigger;
@@ -172,7 +171,7 @@ declare class ZModalRef<T = any, R = any, U = any> {
172
171
  private _closeWithResult;
173
172
  }
174
173
 
175
- declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestroy, AfterViewChecked {
174
+ declare class ZModalComponent<T, U> implements OnDestroy, AfterViewChecked {
176
175
  zOk: _angular_core.OutputEmitterRef<void>;
177
176
  zCancel: _angular_core.OutputEmitterRef<void>;
178
177
  zAfterClose: _angular_core.OutputEmitterRef<void>;
@@ -202,14 +201,12 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
202
201
  protected readonly customContent: _angular_core.Signal<ZModalContentDirective | undefined>;
203
202
  protected readonly customFooter: _angular_core.Signal<ZModalFooterDirective | undefined>;
204
203
  modalRef?: ZModalRef<T>;
205
- readonly portalOutlet: _angular_core.Signal<CdkPortalOutlet | undefined>;
206
- protected readonly dummyTemplateRef: _angular_core.Signal<TemplateRef<unknown> | undefined>;
204
+ protected readonly contentOutlet: _angular_core.Signal<ViewContainerRef | undefined>;
207
205
  protected readonly mainContentRef: _angular_core.Signal<NgScrollbar | undefined>;
208
206
  protected readonly config: ZModalOptions<T, U>;
209
207
  private readonly _platformId;
210
208
  private readonly _host;
211
- private readonly _overlay;
212
- private readonly _viewContainerRef;
209
+ private readonly _overlayService;
213
210
  private readonly _cdr;
214
211
  private readonly _destroyRef;
215
212
  private readonly _zTranslate;
@@ -232,6 +229,7 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
232
229
  private _lastScrollHeight;
233
230
  ngAfterViewChecked(): void;
234
231
  private _checkScrollState;
232
+ onContentWheel(event: WheelEvent): void;
235
233
  onContentScroll(event: Event): void;
236
234
  protected readonly confirmIconColors: _angular_core.Signal<ZModalConfirmIconColors>;
237
235
  protected readonly effectiveTitle: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
@@ -264,8 +262,8 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
264
262
  ngOnDestroy(): void;
265
263
  isDestroyed(): boolean;
266
264
  getNativeElement(): HTMLElement;
267
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
268
- attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
265
+ attachComponentPortal<C>(component: Type<C>, injector?: Injector): ComponentRef<C>;
266
+ attachTemplatePortal<C>(templateRef: TemplateRef<C>, context: C): EmbeddedViewRef<C>;
269
267
  onOkClick(): void;
270
268
  onCloseClick(): void;
271
269
  onBackdropClick(): void;
@@ -281,7 +279,7 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
281
279
  }
282
280
 
283
281
  declare class ZModalService {
284
- private readonly _overlay;
282
+ private readonly _overlayService;
285
283
  private readonly _injector;
286
284
  private readonly _platformId;
287
285
  private readonly _zTranslate;
@@ -301,6 +299,8 @@ declare class ZModalService {
301
299
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<ZModalService>;
302
300
  }
303
301
 
302
+ declare const Z_MODAL_DATA: InjectionToken<any>;
303
+
304
304
  declare const zModalVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
305
305
 
306
306
  export { ZModalComponent, ZModalContentDirective, ZModalFooterDirective, ZModalHeaderDirective, ZModalOptions, ZModalRef, ZModalService, Z_MODAL_DATA, zModalVariants };