@shival99/z-ui 2.2.6 → 2.3.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.
- package/assets/css/base.css +4 -0
- package/assets/css/overlay.css +82 -0
- package/assets/css/tailwind.css +1 -0
- package/fesm2022/shival99-z-ui-components-z-button-group.mjs +15 -13
- package/fesm2022/shival99-z-ui-components-z-button-group.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-button.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +23 -17
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-command.mjs +10 -24
- package/fesm2022/shival99-z-ui-components-z-command.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +42 -60
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +6 -8
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-icon.mjs +147 -3
- package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-marquee.mjs +19 -4
- package/fesm2022/shival99-z-ui-components-z-marquee.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-menu.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-menu.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-modal.mjs +45 -62
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-overlay.mjs +363 -0
- package/fesm2022/shival99-z-ui-components-z-overlay.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +94 -378
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs +14 -3
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +42 -16
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs +85 -7
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-toast.mjs +32 -25
- package/fesm2022/shival99-z-ui-components-z-toast.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +52 -222
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +42 -25
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/package.json +9 -1
- package/types/shival99-z-ui-components-z-button-group.d.ts +12 -11
- package/types/shival99-z-ui-components-z-button.d.ts +2 -1
- package/types/shival99-z-ui-components-z-command.d.ts +2 -4
- package/types/shival99-z-ui-components-z-drawer.d.ts +11 -13
- package/types/shival99-z-ui-components-z-gallery.d.ts +7 -7
- package/types/shival99-z-ui-components-z-icon.d.ts +22 -2
- package/types/shival99-z-ui-components-z-marquee.d.ts +7 -1
- package/types/shival99-z-ui-components-z-modal.d.ts +52 -52
- package/types/shival99-z-ui-components-z-overlay.d.ts +145 -0
- package/types/shival99-z-ui-components-z-popover.d.ts +6 -14
- package/types/shival99-z-ui-components-z-qrcode.d.ts +1 -1
- package/types/shival99-z-ui-components-z-skeleton.d.ts +2 -0
- package/types/shival99-z-ui-components-z-table.d.ts +6 -2
- package/types/shival99-z-ui-components-z-tabs.d.ts +13 -3
- package/types/shival99-z-ui-components-z-toast.d.ts +7 -1
- package/types/shival99-z-ui-components-z-tooltip.d.ts +9 -7
- 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.
|
|
3
|
+
"version": "2.3.0",
|
|
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
|
|
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,
|
|
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
|
|
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 {
|
|
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> =
|
|
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:
|
|
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>
|
|
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
|
|
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
|
|
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<
|
|
256
|
-
attachTemplatePortal<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
|
|
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 {
|
|
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<"
|
|
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:
|
|
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
|
|
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?: "
|
|
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?: "
|
|
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?: "
|
|
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,13 +48,22 @@ 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
|
-
|
|
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>;
|
|
45
65
|
readonly zType: _angular_core.InputSignal<ZIcon | undefined>;
|
|
46
|
-
readonly zAnimatedType: _angular_core.InputSignal<("accessibility" | "activity" | "play" | "airplay" | "
|
|
66
|
+
readonly zAnimatedType: _angular_core.InputSignal<("key" | "bold" | "accessibility" | "activity" | "play" | "airplay" | "clock" | "alarm-clock" | "check" | "alarm-clock-check" | "alarm-clock-off" | "align-horizontal-space-around" | "align-vertical-space-around" | "anvil" | "archive" | "arrow-big-down" | "arrow-big-down-dash" | "arrow-big-left" | "arrow-big-left-dash" | "arrow-big-right" | "arrow-big-right-dash" | "arrow-big-up" | "arrow-big-up-dash" | "arrow-down" | "arrow-down-01" | "arrow-down-10" | "arrow-down-a-z" | "arrow-down-left" | "arrow-down-right" | "arrow-down-z-a" | "arrow-left" | "arrow-left-right" | "arrow-right" | "arrow-right-left" | "arrow-up" | "arrow-up-01" | "arrow-up-10" | "arrow-up-a-z" | "arrow-up-left" | "arrow-up-right" | "arrow-up-z-a" | "award" | "x" | "axe" | "axis-3d" | "badge-alert" | "badge-check" | "badge-question-mark" | "battery" | "battery-charging" | "battery-full" | "battery-low" | "battery-medium" | "battery-warning" | "bean-off" | "beer-off" | "bell" | "bell-off" | "bell-ring" | "between-horizontal-end" | "between-horizontal-start" | "between-vertical-end" | "between-vertical-start" | "binary" | "blend" | "blocks" | "bluetooth-off" | "bolt" | "bone" | "book" | "book-a" | "book-audio" | "book-check" | "book-dashed" | "book-down" | "book-headphones" | "heart" | "book-heart" | "book-image" | "book-key" | "book-lock" | "bookmark" | "bookmark-check" | "book-marked" | "minus" | "bookmark-minus" | "plus" | "bookmark-plus" | "bookmark-x" | "book-minus" | "book-open-check" | "book-open-text" | "book-plus" | "book-text" | "book-type" | "book-up" | "book-up-2" | "user" | "book-user" | "book-x" | "bot" | "bot-off" | "boxes" | "cog" | "brain-cog" | "briefcase" | "briefcase-business" | "briefcase-conveyor-belt" | "briefcase-medical" | "brush" | "brush-cleaning" | "bug-off" | "calendar-check" | "calendar-check-2" | "calendar-cog" | "calendar-days" | "calendar-off" | "calendar-sync" | "camera-off" | "candy-off" | "captions-off" | "cast" | "cctv" | "chart-bar" | "chart-bar-decreasing" | "chart-bar-increasing" | "chart-column" | "chart-column-decreasing" | "chart-column-increasing" | "chart-gantt" | "chart-line" | "chart-no-axes-column" | "chart-no-axes-column-decreasing" | "chart-no-axes-column-increasing" | "chart-no-axes-combined" | "chart-no-axes-gantt" | "chart-pie" | "chart-scatter" | "chart-spline" | "check-check" | "cherry" | "chevron-down" | "chevron-left" | "chevron-right" | "chevrons-down" | "chevrons-down-up" | "chevrons-left" | "chevrons-left-right" | "chevrons-right" | "chevrons-right-left" | "chevrons-up" | "chevrons-up-down" | "chevron-up" | "cigarette-off" | "circle-alert" | "circle-arrow-down" | "circle-arrow-left" | "circle-arrow-out-down-left" | "circle-arrow-out-down-right" | "circle-arrow-out-up-left" | "circle-arrow-out-up-right" | "circle-arrow-right" | "circle-arrow-up" | "circle-check" | "circle-check-big" | "circle-chevron-down" | "circle-chevron-left" | "circle-chevron-right" | "circle-chevron-up" | "circle-off" | "circle-parking-off" | "circle-plus" | "circle-question-mark" | "clapperboard" | "clipboard" | "clipboard-check" | "clipboard-list" | "pen" | "clipboard-pen" | "pen-line" | "clipboard-pen-line" | "clipboard-x" | "clock-1" | "clock-10" | "clock-11" | "clock-12" | "clock-2" | "clock-3" | "clock-4" | "clock-5" | "clock-6" | "clock-7" | "clock-8" | "clock-9" | "cloud-cog" | "download" | "cloud-download" | "cloud-moon" | "cloud-off" | "upload" | "cloud-upload" | "compass" | "contrast" | "copy" | "copy-check" | "cpu" | "crop" | "diamond-plus" | "dice-1" | "dice-2" | "dice-3" | "dice-4" | "dice-5" | "dice-6" | "diff" | "dna-off" | "droplet-off" | "drum" | "ear-off" | "eclipse" | "egg-off" | "expand" | "eye-off" | "file-chart-column" | "file-chart-column-increasing" | "file-chart-line" | "file-check" | "file-check-corner" | "file-cog" | "file-down" | "file-exclamation-point" | "file-minus" | "file-pen" | "file-pen-line" | "file-plus" | "file-question-mark" | "file-sliders" | "file-stack" | "terminal" | "file-terminal" | "file-up" | "fish-off" | "flag-off" | "flashlight-off" | "flask-conical-off" | "folder-check" | "folder-cog" | "folder-down" | "kanban" | "folder-kanban" | "folder-pen" | "folder-plus" | "folder-sync" | "folder-up" | "folder-x" | "frame" | "funnel-x" | "gallery-horizontal" | "gallery-horizontal-end" | "gallery-thumbnails" | "gallery-vertical" | "gallery-vertical-end" | "gauge" | "gavel" | "grid-2x2-check" | "grip" | "grip-horizontal" | "grip-vertical" | "hammer" | "hand-coins" | "hand-heart" | "hard-drive-download" | "hard-drive-upload" | "phone-off" | "headphone-off" | "heart-off" | "history" | "hop-off" | "house" | "wifi" | "house-wifi" | "image-down" | "image-off" | "images" | "image-up" | "infinity" | "keyboard" | "keyboard-off" | "key-round" | "key-square" | "landmark" | "layers" | "layout-dashboard" | "layout-grid" | "layout-panel-left" | "layout-panel-top" | "layout-template" | "lightbulb" | "lightbulb-off" | "link2-off" | "list-check" | "list-checks" | "list-restart" | "list-todo" | "loader-pinwheel" | "locate-off" | "log-out" | "mail-check" | "map-pin-check" | "map-pin-check-inside" | "pin-off" | "map-pin-off" | "maximize" | "maximize-2" | "megaphone-off" | "message-circle" | "message-circle-more" | "message-circle-off" | "message-circle-question-mark" | "message-circle-warning" | "message-square" | "message-square-more" | "message-square-off" | "mic-off" | "milk-off" | "minimize" | "minimize-2" | "monitor-check" | "monitor-cog" | "monitor-down" | "monitor-off" | "monitor-up" | "mouse-off" | "mouse-pointer" | "mouse-pointer-2" | "move-diagonal" | "move-diagonal-2" | "move-down" | "move-down-left" | "move-down-right" | "move-horizontal" | "move-left" | "move-right" | "move-up" | "move-up-left" | "move-up-right" | "move-vertical" | "navigation2-off" | "navigation-off" | "nfc" | "notebook-pen" | "nut-off" | "octagon-alert" | "orbit" | "package-check" | "paintbrush" | "panel-bottom-close" | "panel-bottom-open" | "panel-left-close" | "panel-left-open" | "panel-right-close" | "panel-right-open" | "panel-top-close" | "panel-top-open" | "paperclip" | "pencil" | "pencil-line" | "pencil-off" | "pen-off" | "pickaxe" | "plane" | "pointer-off" | "power-off" | "printer-check" | "rabbit" | "radar" | "radio" | "radio-tower" | "rainbow" | "redo" | "redo-dot" | "refresh-ccw" | "refresh-ccw-dot" | "refresh-cw" | "refresh-cw-off" | "rocket" | "rocking-chair" | "rotate-ccw" | "rotate-ccw-key" | "rotate-cw" | "route" | "route-off" | "rss" | "save-off" | "scan-text" | "scissors" | "search" | "search-check" | "send" | "send-horizontal" | "server-cog" | "server-off" | "settings" | "shield-alert" | "shield-check" | "shield-off" | "shield-plus" | "shield-question-mark" | "ship" | "ship-wheel" | "shopping-cart" | "shovel" | "shower-head" | "shrink" | "signal" | "signal-high" | "signal-low" | "signal-medium" | "signal-zero" | "signature" | "sliders-horizontal" | "sliders-vertical" | "smartphone-nfc" | "snowflake" | "sparkle" | "sparkles" | "speech" | "spell-check" | "square-arrow-down" | "square-arrow-down-left" | "square-arrow-down-right" | "square-arrow-left" | "square-arrow-out-down-left" | "square-arrow-out-down-right" | "square-arrow-out-up-left" | "square-arrow-out-up-right" | "square-arrow-right" | "square-arrow-up" | "square-arrow-up-left" | "square-arrow-up-right" | "square-chart-gantt" | "square-check" | "square-check-big" | "square-chevron-down" | "square-chevron-left" | "square-chevron-right" | "square-chevron-up" | "square-dashed-kanban" | "square-kanban" | "square-parking-off" | "square-pen" | "square-plus" | "square-scissors" | "square-stack" | "square-terminal" | "star" | "star-off" | "sun" | "sword" | "tag" | "telescope" | "text-align-center" | "text-cursor" | "text-cursor-input" | "text-search" | "thermometer" | "thumbs-down" | "thumbs-up" | "ticket-check" | "timer" | "timer-off" | "toggle-left" | "toggle-right" | "tornado" | "touchpad-off" | "trash" | "trash-2" | "triangle-alert" | "umbrella-off" | "undo" | "undo-dot" | "unfold-horizontal" | "unfold-vertical" | "unplug" | "user-check" | "user-cog" | "user-pen" | "user-round" | "user-round-check" | "user-round-cog" | "user-round-pen" | "vibrate" | "vibrate-off" | "video-off" | "volume-off" | "vote" | "waves" | "webhook-off" | "wheat-off" | "wifi-high" | "wifi-low" | "wifi-off" | "wifi-pen" | "wifi-zero" | "wine-off" | "zap-off") | undefined>;
|
|
47
67
|
readonly zAnimate: _angular_core.InputSignal<boolean>;
|
|
48
68
|
readonly zAnimationTrigger: _angular_core.InputSignal<ZIconAnimationTrigger>;
|
|
49
69
|
readonly zSize: _angular_core.InputSignal<string | number | null | undefined>;
|
|
@@ -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 {
|
|
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> =
|
|
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:
|
|
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>
|
|
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
|
|
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
|
|
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<
|
|
268
|
-
attachTemplatePortal<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
|
|
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 };
|