@shival99/z-ui 2.6.8 → 2.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +1211 -0
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +991 -0
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs +99 -0
- package/fesm2022/shival99-z-ui-components-z-dropdown-menu.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-filter.mjs +962 -0
- package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-number-ticker.mjs +352 -0
- package/fesm2022/shival99-z-ui-components-z-number-ticker.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +179 -0
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-qrcode.mjs +429 -0
- package/fesm2022/shival99-z-ui-components-z-qrcode.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-radio.mjs +183 -0
- package/fesm2022/shival99-z-ui-components-z-radio.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-scrollarea.mjs +137 -0
- package/fesm2022/shival99-z-ui-components-z-scrollarea.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-show-more.mjs +138 -0
- package/fesm2022/shival99-z-ui-components-z-show-more.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-skeleton-auto.mjs +80 -0
- package/fesm2022/shival99-z-ui-components-z-skeleton-auto.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-steps.mjs +420 -0
- package/fesm2022/shival99-z-ui-components-z-steps.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-table.mjs +11424 -0
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs +1102 -0
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-tags.mjs +364 -0
- package/fesm2022/shival99-z-ui-components-z-tags.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +254 -0
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-services-excel.mjs +672 -0
- package/fesm2022/shival99-z-ui-services-excel.mjs.map +1 -0
- package/package.json +1 -1
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +301 -0
- package/types/shival99-z-ui-components-z-drawer.d.ts +298 -0
- package/types/shival99-z-ui-components-z-dropdown-menu.d.ts +52 -0
- package/types/shival99-z-ui-components-z-filter.d.ts +285 -0
- package/types/shival99-z-ui-components-z-modal.d.ts +1 -1
- package/types/shival99-z-ui-components-z-number-ticker.d.ts +110 -0
- package/types/shival99-z-ui-components-z-pagination.d.ts +55 -0
- package/types/shival99-z-ui-components-z-qrcode.d.ts +79 -0
- package/types/shival99-z-ui-components-z-radio.d.ts +69 -0
- package/types/shival99-z-ui-components-z-scrollarea.d.ts +48 -0
- package/types/shival99-z-ui-components-z-show-more.d.ts +36 -0
- package/types/shival99-z-ui-components-z-skeleton-auto.d.ts +35 -0
- package/types/shival99-z-ui-components-z-steps.d.ts +106 -0
- package/types/shival99-z-ui-components-z-table.d.ts +2386 -0
- package/types/shival99-z-ui-components-z-tabs.d.ts +196 -0
- package/types/shival99-z-ui-components-z-tags.d.ts +127 -0
- package/types/shival99-z-ui-components-z-timeline.d.ts +71 -0
- package/types/shival99-z-ui-services-excel.d.ts +36 -0
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, Type, WritableSignal, EventEmitter, ViewContainerRef, OnDestroy, AfterViewChecked, Injector, ComponentRef, EmbeddedViewRef, InjectionToken } from '@angular/core';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
|
+
import { NgScrollbar } from 'ngx-scrollbar';
|
|
5
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { ZOverlayRef } from '@shival99/z-ui/components/z-overlay';
|
|
8
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
9
|
+
|
|
10
|
+
declare class ZDrawerContentDirective {
|
|
11
|
+
readonly templateRef: TemplateRef<any>;
|
|
12
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDrawerContentDirective, never>;
|
|
13
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZDrawerContentDirective, "[z-drawer-content], [zDrawerContent]", never, {}, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
declare class ZDrawerFooterDirective {
|
|
17
|
+
readonly templateRef: TemplateRef<any>;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDrawerFooterDirective, never>;
|
|
19
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZDrawerFooterDirective, "[z-drawer-footer], [zDrawerFooter]", never, {}, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
declare class ZDrawerHeaderDirective {
|
|
23
|
+
readonly templateRef: TemplateRef<any>;
|
|
24
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDrawerHeaderDirective, never>;
|
|
25
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ZDrawerHeaderDirective, "[z-drawer-header], [zDrawerHeader]", never, {}, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
type ZDrawerContentType<T> = Type<T> | TemplateRef<T> | string;
|
|
29
|
+
type ZDrawerPlacement = 'left' | 'right' | 'top' | 'bottom';
|
|
30
|
+
type ZDrawerScrollMode = 'drawer' | 'inner';
|
|
31
|
+
type ZDrawerOnClickCallBack<T> = (instance: T, drawerRef?: unknown) => false | void | object;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Configuration options for z-drawer component.
|
|
35
|
+
*
|
|
36
|
+
* @template T - The type of the content component
|
|
37
|
+
* @template U - The type of the data passed to the drawer
|
|
38
|
+
*/
|
|
39
|
+
declare class ZDrawerOptions<T, U> {
|
|
40
|
+
/** Icon for the cancel button */
|
|
41
|
+
zCancelIcon?: ZIcon;
|
|
42
|
+
/** Text for the cancel button. Set to null to hide the button */
|
|
43
|
+
zCancelText?: string | null;
|
|
44
|
+
/** Whether the drawer is closable (shows close button) */
|
|
45
|
+
zClosable?: boolean;
|
|
46
|
+
/** Drawer content - can be a component, template, or string */
|
|
47
|
+
zContent?: string | TemplateRef<T> | Type<T>;
|
|
48
|
+
/** Custom CSS classes for the drawer */
|
|
49
|
+
class?: ClassValue;
|
|
50
|
+
/** Custom CSS classes for the drawer body */
|
|
51
|
+
zBodyClass?: ClassValue;
|
|
52
|
+
/** Data to be passed to the content component via Z_DRAWER_DATA token */
|
|
53
|
+
zData?: U;
|
|
54
|
+
/**
|
|
55
|
+
* Observable for deferred data loading before showing drawer content.
|
|
56
|
+
* Drawer will show a loading spinner until the Observable completes.
|
|
57
|
+
* The resolved data will be available via Z_DRAWER_DATA.
|
|
58
|
+
*/
|
|
59
|
+
zDefer?: Observable<U>;
|
|
60
|
+
/** Description text shown below the title */
|
|
61
|
+
zDescription?: string;
|
|
62
|
+
/** Whether to disable the header and footer shadows */
|
|
63
|
+
zDisableShadow?: boolean;
|
|
64
|
+
/** Whether to show a border below the header */
|
|
65
|
+
zHeaderBorder?: boolean;
|
|
66
|
+
/** Whether to show a border above the footer */
|
|
67
|
+
zFooterBorder?: boolean;
|
|
68
|
+
/** Whether to hide the default footer */
|
|
69
|
+
zHideFooter?: boolean;
|
|
70
|
+
/** Whether to hide the default header */
|
|
71
|
+
zHideHeader?: boolean;
|
|
72
|
+
/**
|
|
73
|
+
* WritableSignal to control loading state of the OK button.
|
|
74
|
+
* Use this when submitting forms or calling APIs.
|
|
75
|
+
*/
|
|
76
|
+
readonly zLoading?: WritableSignal<boolean>;
|
|
77
|
+
/** Whether clicking mask closes the drawer */
|
|
78
|
+
zMaskClosable?: boolean;
|
|
79
|
+
/** Whether OK button has destructive (red) style */
|
|
80
|
+
zOkDestructive?: boolean;
|
|
81
|
+
/** Whether OK button is disabled */
|
|
82
|
+
zOkDisabled?: boolean;
|
|
83
|
+
/** Overlay style: 'dark' (black overlay) or 'blur' (backdrop blur) */
|
|
84
|
+
zOverlay?: 'dark' | 'blur';
|
|
85
|
+
/** Icon for the OK button */
|
|
86
|
+
zOkIcon?: ZIcon;
|
|
87
|
+
/** Text for the OK button. Set to null to hide the button */
|
|
88
|
+
zOkText?: string | null;
|
|
89
|
+
/** Callback or EventEmitter when cancel is clicked */
|
|
90
|
+
zOnCancel?: EventEmitter<T> | ZDrawerOnClickCallBack<T>;
|
|
91
|
+
/** Callback or EventEmitter when OK is clicked */
|
|
92
|
+
zOnOk?: EventEmitter<T> | ZDrawerOnClickCallBack<T>;
|
|
93
|
+
/** Drawer title - supports string, HTML string, or TemplateRef */
|
|
94
|
+
zTitle?: string | TemplateRef<T>;
|
|
95
|
+
/** ViewContainerRef for the drawer portal */
|
|
96
|
+
zViewContainerRef?: ViewContainerRef;
|
|
97
|
+
/** Drawer width for left/right placement (e.g., '400px', '80%') */
|
|
98
|
+
zWidth?: string;
|
|
99
|
+
/** Drawer height for top/bottom placement (e.g., '400px', '50%') */
|
|
100
|
+
zHeight?: string;
|
|
101
|
+
/** Placement of the drawer: 'left', 'right', 'top', 'bottom' */
|
|
102
|
+
zPlacement?: ZDrawerPlacement;
|
|
103
|
+
/** Force shadow on header/footer regardless of scroll state */
|
|
104
|
+
zShadow?: boolean;
|
|
105
|
+
/** Shape of the drawer: 'rounded' (with border-radius) or 'square' (no border-radius) */
|
|
106
|
+
zShape?: 'rounded' | 'square';
|
|
107
|
+
/** WritableSignal to control content loading state (shows skeleton when true) */
|
|
108
|
+
readonly zContentLoading?: WritableSignal<boolean>;
|
|
109
|
+
/** Number of skeleton rows to show when content is loading (default: 5 for left/right, 3 for top/bottom) */
|
|
110
|
+
zSkeletonRows?: number;
|
|
111
|
+
/** Whether the drawer can be resized from its outer edge */
|
|
112
|
+
zExpand?: boolean;
|
|
113
|
+
/** Scroll ownership: the drawer viewport by default, or an inner content viewport */
|
|
114
|
+
zScrollMode?: ZDrawerScrollMode;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare class ZDrawerRef<T = any, R = any, U = any> {
|
|
118
|
+
private readonly _overlayRef;
|
|
119
|
+
private readonly _config;
|
|
120
|
+
private readonly _containerInstance;
|
|
121
|
+
private readonly _platformId;
|
|
122
|
+
private readonly _destroy$;
|
|
123
|
+
private _isClosing;
|
|
124
|
+
private _result?;
|
|
125
|
+
componentInstance: T | null;
|
|
126
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
127
|
+
readonly zAfterClose: EventEmitter<R | undefined>;
|
|
128
|
+
constructor(_overlayRef: ZOverlayRef, _config: ZDrawerOptions<T, U>, _containerInstance: ZDrawerComponent<T, U>, _platformId: object);
|
|
129
|
+
setLoading(value: boolean): void;
|
|
130
|
+
close(result?: R): void;
|
|
131
|
+
private _trigger;
|
|
132
|
+
private _getContentComponent;
|
|
133
|
+
private _closeWithResult;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
type ZDrawerShape = 'rounded' | 'square';
|
|
137
|
+
declare const zDrawerVariants: (props?: ({
|
|
138
|
+
placement?: "left" | "right" | "top" | "bottom" | null | undefined;
|
|
139
|
+
shape?: "rounded" | "square" | null | undefined;
|
|
140
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
141
|
+
|
|
142
|
+
declare class ZDrawerComponent<T, U> implements OnDestroy, AfterViewChecked {
|
|
143
|
+
readonly zOnOk: _angular_core.OutputEmitterRef<void>;
|
|
144
|
+
readonly zOnCancel: _angular_core.OutputEmitterRef<void>;
|
|
145
|
+
readonly zAfterClose: _angular_core.OutputEmitterRef<void>;
|
|
146
|
+
readonly zScrollbar: _angular_core.OutputEmitterRef<NgScrollbar>;
|
|
147
|
+
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
148
|
+
readonly zBodyClass: _angular_core.InputSignal<ClassValue>;
|
|
149
|
+
readonly zVisible: _angular_core.ModelSignal<boolean>;
|
|
150
|
+
readonly zTitle: _angular_core.InputSignal<string | TemplateRef<unknown> | undefined>;
|
|
151
|
+
readonly zDescription: _angular_core.InputSignal<string | TemplateRef<unknown> | undefined>;
|
|
152
|
+
readonly zWidth: _angular_core.InputSignal<string>;
|
|
153
|
+
readonly zHeight: _angular_core.InputSignal<string>;
|
|
154
|
+
readonly zPlacement: _angular_core.InputSignal<ZDrawerPlacement>;
|
|
155
|
+
readonly zClosable: _angular_core.InputSignal<boolean>;
|
|
156
|
+
readonly zMaskClosable: _angular_core.InputSignal<boolean>;
|
|
157
|
+
readonly zDisableShadow: _angular_core.InputSignal<boolean>;
|
|
158
|
+
readonly zHeaderBorder: _angular_core.InputSignal<boolean>;
|
|
159
|
+
readonly zFooterBorder: _angular_core.InputSignal<boolean>;
|
|
160
|
+
readonly zHideFooter: _angular_core.InputSignal<boolean>;
|
|
161
|
+
readonly zHideHeader: _angular_core.InputSignal<boolean>;
|
|
162
|
+
readonly zOkText: _angular_core.InputSignal<string | null>;
|
|
163
|
+
readonly zCancelText: _angular_core.InputSignal<string | null>;
|
|
164
|
+
readonly zOkDestructive: _angular_core.InputSignal<boolean>;
|
|
165
|
+
readonly zOkDisabled: _angular_core.InputSignal<boolean>;
|
|
166
|
+
readonly zLoading: _angular_core.InputSignal<boolean>;
|
|
167
|
+
readonly zOverlay: _angular_core.InputSignal<"dark" | "blur">;
|
|
168
|
+
readonly zShadow: _angular_core.InputSignal<boolean>;
|
|
169
|
+
readonly zShape: _angular_core.InputSignal<ZDrawerShape>;
|
|
170
|
+
readonly zContentLoading: _angular_core.InputSignal<boolean>;
|
|
171
|
+
readonly zSkeletonRows: _angular_core.InputSignal<number | null>;
|
|
172
|
+
readonly zExpand: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
173
|
+
readonly zScrollMode: _angular_core.InputSignal<ZDrawerScrollMode>;
|
|
174
|
+
protected readonly customHeader: _angular_core.Signal<ZDrawerHeaderDirective | undefined>;
|
|
175
|
+
protected readonly customContent: _angular_core.Signal<ZDrawerContentDirective | undefined>;
|
|
176
|
+
protected readonly customFooter: _angular_core.Signal<ZDrawerFooterDirective | undefined>;
|
|
177
|
+
private readonly _drawerRef;
|
|
178
|
+
get drawerRef(): ZDrawerRef<T> | undefined;
|
|
179
|
+
set drawerRef(value: ZDrawerRef<T> | undefined);
|
|
180
|
+
protected readonly contentOutlet: _angular_core.Signal<ViewContainerRef | undefined>;
|
|
181
|
+
protected readonly mainContentRef: _angular_core.Signal<NgScrollbar | undefined>;
|
|
182
|
+
/**
|
|
183
|
+
* Content requested before `#contentOutlet` exists.
|
|
184
|
+
* `@defer` renders the outlet after its dependencies load, so the first open can arrive early.
|
|
185
|
+
*/
|
|
186
|
+
private _pendingContent;
|
|
187
|
+
protected readonly config: ZDrawerOptions<T, U>;
|
|
188
|
+
private readonly _platformId;
|
|
189
|
+
private readonly _host;
|
|
190
|
+
private readonly _overlayService;
|
|
191
|
+
private readonly _cdr;
|
|
192
|
+
private readonly _destroyRef;
|
|
193
|
+
private readonly _zTranslate;
|
|
194
|
+
private readonly _overlayContainerService;
|
|
195
|
+
private readonly _zIndexService;
|
|
196
|
+
private readonly _indexDb;
|
|
197
|
+
private _templateOverlayRef;
|
|
198
|
+
private _originalParent;
|
|
199
|
+
private _originalNextSibling;
|
|
200
|
+
private _backdropSubscription;
|
|
201
|
+
private _closeTimeout;
|
|
202
|
+
private _resizeCleanup;
|
|
203
|
+
private _resizeStorageKey;
|
|
204
|
+
protected readonly isResizing: _angular_core.WritableSignal<boolean>;
|
|
205
|
+
protected readonly isLeaving: _angular_core.WritableSignal<boolean>;
|
|
206
|
+
protected readonly hasScrollableContent: _angular_core.WritableSignal<boolean>;
|
|
207
|
+
protected readonly isScrolledFromTop: _angular_core.WritableSignal<boolean>;
|
|
208
|
+
protected readonly isScrolledToBottom: _angular_core.WritableSignal<boolean>;
|
|
209
|
+
protected readonly isServiceMode: _angular_core.Signal<boolean>;
|
|
210
|
+
protected readonly isTemplateMode: _angular_core.Signal<boolean>;
|
|
211
|
+
protected readonly shouldRenderContent: _angular_core.Signal<boolean>;
|
|
212
|
+
protected readonly isStringContent: _angular_core.Signal<boolean>;
|
|
213
|
+
private _lastScrollHeight;
|
|
214
|
+
private readonly _resizedWidth;
|
|
215
|
+
private readonly _resizedHeight;
|
|
216
|
+
ngAfterViewChecked(): void;
|
|
217
|
+
private _checkScrollState;
|
|
218
|
+
onContentScroll(event: Event): void;
|
|
219
|
+
protected readonly effectiveTitle: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
|
|
220
|
+
protected readonly effectiveDescription: _angular_core.Signal<string | TemplateRef<unknown> | undefined>;
|
|
221
|
+
protected readonly hasEffectiveDescription: _angular_core.Signal<boolean>;
|
|
222
|
+
protected readonly headerContentClasses: _angular_core.Signal<string>;
|
|
223
|
+
protected readonly effectiveBodyClass: _angular_core.Signal<ClassValue>;
|
|
224
|
+
protected readonly bodyClasses: _angular_core.Signal<string>;
|
|
225
|
+
protected readonly effectiveClosable: _angular_core.Signal<boolean>;
|
|
226
|
+
protected readonly effectiveDisableShadow: _angular_core.Signal<boolean>;
|
|
227
|
+
protected readonly shouldShowShadow: _angular_core.Signal<boolean>;
|
|
228
|
+
protected readonly effectiveHeaderBorder: _angular_core.Signal<boolean>;
|
|
229
|
+
protected readonly effectiveFooterBorder: _angular_core.Signal<boolean>;
|
|
230
|
+
protected readonly effectiveHideFooter: _angular_core.Signal<boolean | undefined>;
|
|
231
|
+
protected readonly effectiveHideHeader: _angular_core.Signal<boolean>;
|
|
232
|
+
protected readonly effectiveOkText: _angular_core.Signal<string | null | undefined>;
|
|
233
|
+
protected readonly effectiveCancelText: _angular_core.Signal<string | null | undefined>;
|
|
234
|
+
protected readonly effectiveOkDestructive: _angular_core.Signal<boolean | undefined>;
|
|
235
|
+
protected readonly effectiveOkDisabled: _angular_core.Signal<boolean | undefined>;
|
|
236
|
+
protected readonly effectiveLoading: _angular_core.Signal<boolean>;
|
|
237
|
+
protected readonly effectiveContentLoading: _angular_core.Signal<boolean>;
|
|
238
|
+
protected readonly effectiveSkeletonRows: _angular_core.Signal<number>;
|
|
239
|
+
protected readonly effectivePlacement: _angular_core.Signal<ZDrawerPlacement>;
|
|
240
|
+
protected readonly effectiveExpand: _angular_core.Signal<boolean>;
|
|
241
|
+
protected readonly effectiveScrollMode: _angular_core.Signal<ZDrawerScrollMode>;
|
|
242
|
+
protected readonly isInnerScrollMode: _angular_core.Signal<boolean>;
|
|
243
|
+
protected readonly resizeIcon: _angular_core.Signal<"lucideGripVertical" | "lucideGripHorizontal">;
|
|
244
|
+
protected readonly effectiveShadow: _angular_core.Signal<boolean>;
|
|
245
|
+
protected readonly effectiveShape: _angular_core.Signal<ZDrawerShape>;
|
|
246
|
+
protected readonly effectiveWidth: _angular_core.Signal<string | null>;
|
|
247
|
+
protected readonly effectiveHeight: _angular_core.Signal<string | null>;
|
|
248
|
+
protected readonly isDeferLoading: _angular_core.Signal<boolean>;
|
|
249
|
+
protected readonly classes: _angular_core.Signal<string>;
|
|
250
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
251
|
+
constructor();
|
|
252
|
+
ngOnDestroy(): void;
|
|
253
|
+
startResize(event: PointerEvent): void;
|
|
254
|
+
onHostPointerDown(event: PointerEvent): void;
|
|
255
|
+
isDestroyed(): boolean;
|
|
256
|
+
getNativeElement(): HTMLElement;
|
|
257
|
+
attachComponentPortal<C>(component: Type<C>, injector?: Injector): ComponentRef<C>;
|
|
258
|
+
attachTemplatePortal<C>(templateRef: TemplateRef<C>, context: C): EmbeddedViewRef<C>;
|
|
259
|
+
/**
|
|
260
|
+
* Attach pending content when the outlet exists and update `drawerRef.componentInstance`.
|
|
261
|
+
*/
|
|
262
|
+
private _attachPendingContent;
|
|
263
|
+
onOkClick(): void;
|
|
264
|
+
onCloseClick(): void;
|
|
265
|
+
onBackdropClick(): void;
|
|
266
|
+
open(): void;
|
|
267
|
+
close(): void;
|
|
268
|
+
private _createOverlay;
|
|
269
|
+
private _openTemplateOverlay;
|
|
270
|
+
private _getResizeKey;
|
|
271
|
+
private _restoreResize;
|
|
272
|
+
private _persistResize;
|
|
273
|
+
private _closeWithAnimation;
|
|
274
|
+
private _clearCloseTimeout;
|
|
275
|
+
private _disposeTemplateOverlay;
|
|
276
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDrawerComponent<any, any>, never>;
|
|
277
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZDrawerComponent<any, any>, "z-drawer", ["zDrawer"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zBodyClass": { "alias": "zBodyClass"; "required": false; "isSignal": true; }; "zVisible": { "alias": "zVisible"; "required": false; "isSignal": true; }; "zTitle": { "alias": "zTitle"; "required": false; "isSignal": true; }; "zDescription": { "alias": "zDescription"; "required": false; "isSignal": true; }; "zWidth": { "alias": "zWidth"; "required": false; "isSignal": true; }; "zHeight": { "alias": "zHeight"; "required": false; "isSignal": true; }; "zPlacement": { "alias": "zPlacement"; "required": false; "isSignal": true; }; "zClosable": { "alias": "zClosable"; "required": false; "isSignal": true; }; "zMaskClosable": { "alias": "zMaskClosable"; "required": false; "isSignal": true; }; "zDisableShadow": { "alias": "zDisableShadow"; "required": false; "isSignal": true; }; "zHeaderBorder": { "alias": "zHeaderBorder"; "required": false; "isSignal": true; }; "zFooterBorder": { "alias": "zFooterBorder"; "required": false; "isSignal": true; }; "zHideFooter": { "alias": "zHideFooter"; "required": false; "isSignal": true; }; "zHideHeader": { "alias": "zHideHeader"; "required": false; "isSignal": true; }; "zOkText": { "alias": "zOkText"; "required": false; "isSignal": true; }; "zCancelText": { "alias": "zCancelText"; "required": false; "isSignal": true; }; "zOkDestructive": { "alias": "zOkDestructive"; "required": false; "isSignal": true; }; "zOkDisabled": { "alias": "zOkDisabled"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zOverlay": { "alias": "zOverlay"; "required": false; "isSignal": true; }; "zShadow": { "alias": "zShadow"; "required": false; "isSignal": true; }; "zShape": { "alias": "zShape"; "required": false; "isSignal": true; }; "zContentLoading": { "alias": "zContentLoading"; "required": false; "isSignal": true; }; "zSkeletonRows": { "alias": "zSkeletonRows"; "required": false; "isSignal": true; }; "zExpand": { "alias": "zExpand"; "required": false; "isSignal": true; }; "zScrollMode": { "alias": "zScrollMode"; "required": false; "isSignal": true; }; }, { "zOnOk": "zOnOk"; "zOnCancel": "zOnCancel"; "zAfterClose": "zAfterClose"; "zScrollbar": "zScrollbar"; "zVisible": "zVisibleChange"; }, ["customHeader", "customContent", "customFooter"], ["*"], true, never>;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
declare class ZDrawerService {
|
|
281
|
+
private readonly _overlayService;
|
|
282
|
+
private readonly _injector;
|
|
283
|
+
private readonly _platformId;
|
|
284
|
+
private readonly _zIndexService;
|
|
285
|
+
create<T, U>(config: ZDrawerOptions<T, U>): ZDrawerRef<T>;
|
|
286
|
+
private _open;
|
|
287
|
+
private _createOverlay;
|
|
288
|
+
private _attachDrawerContainer;
|
|
289
|
+
private _attachDrawerContent;
|
|
290
|
+
private _createInjector;
|
|
291
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDrawerService, never>;
|
|
292
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<any>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
declare const Z_DRAWER_DATA: InjectionToken<any>;
|
|
296
|
+
|
|
297
|
+
export { ZDrawerComponent, ZDrawerContentDirective, ZDrawerFooterDirective, ZDrawerHeaderDirective, ZDrawerOptions, ZDrawerRef, ZDrawerService, Z_DRAWER_DATA, zDrawerVariants };
|
|
298
|
+
export type { ZDrawerContentType, ZDrawerOnClickCallBack, ZDrawerPlacement, ZDrawerScrollMode };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterContentInit, OnDestroy, ElementRef } from '@angular/core';
|
|
3
|
+
import { ZIcon, ZIconVariants } from '@shival99/z-ui/components/z-icon';
|
|
4
|
+
import { ZPopoverPosition, ZPopoverControl } from '@shival99/z-ui/components/z-popover';
|
|
5
|
+
|
|
6
|
+
interface ZDropdownMenuItem {
|
|
7
|
+
label: string;
|
|
8
|
+
icon?: ZIcon;
|
|
9
|
+
iconSize?: ZIconVariants['zSize'];
|
|
10
|
+
shortcut?: string;
|
|
11
|
+
class?: string;
|
|
12
|
+
loading?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
hidden?: boolean;
|
|
15
|
+
onClick?: () => void;
|
|
16
|
+
divide?: 'before' | 'after';
|
|
17
|
+
submenu?: ZDropdownMenuItem[];
|
|
18
|
+
submenuPosition?: ZPopoverPosition;
|
|
19
|
+
subMinWidth?: number;
|
|
20
|
+
subMaxWidth?: number;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class ZDropdownMenuComponent implements AfterContentInit, OnDestroy {
|
|
24
|
+
private readonly _host;
|
|
25
|
+
private _visibilityObserver;
|
|
26
|
+
protected readonly contentWrapper: _angular_core.Signal<ElementRef<HTMLElement> | undefined>;
|
|
27
|
+
readonly zOnItemClick: _angular_core.OutputEmitterRef<ZDropdownMenuItem>;
|
|
28
|
+
readonly zItems: _angular_core.InputSignal<ZDropdownMenuItem[]>;
|
|
29
|
+
readonly zLabel: _angular_core.InputSignal<string | undefined>;
|
|
30
|
+
readonly zIcon: _angular_core.InputSignal<ZIcon>;
|
|
31
|
+
readonly zButtonType: _angular_core.InputSignal<"primary" | "secondary" | "outline" | "ghost">;
|
|
32
|
+
readonly zPosition: _angular_core.InputSignal<ZPopoverPosition>;
|
|
33
|
+
readonly zButtonSize: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "xl" | null | undefined>;
|
|
34
|
+
readonly zOffset: _angular_core.InputSignal<number>;
|
|
35
|
+
readonly zMinWidth: _angular_core.InputSignal<number>;
|
|
36
|
+
readonly zMaxWidth: _angular_core.InputSignal<number>;
|
|
37
|
+
readonly zDisabled: _angular_core.InputSignal<boolean>;
|
|
38
|
+
readonly zWave: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
39
|
+
protected readonly hasContent: _angular_core.WritableSignal<boolean>;
|
|
40
|
+
protected readonly popoverControl: _angular_core.WritableSignal<ZPopoverControl | null>;
|
|
41
|
+
protected readonly visibleItems: _angular_core.Signal<ZDropdownMenuItem[]>;
|
|
42
|
+
ngAfterContentInit(): void;
|
|
43
|
+
ngOnDestroy(): void;
|
|
44
|
+
protected onItemClick(item: ZDropdownMenuItem): void;
|
|
45
|
+
protected onControl(control: ZPopoverControl): void;
|
|
46
|
+
private _setupVisibilityObserver;
|
|
47
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDropdownMenuComponent, never>;
|
|
48
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZDropdownMenuComponent, "z-dropdown-menu", never, { "zItems": { "alias": "zItems"; "required": true; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zIcon": { "alias": "zIcon"; "required": false; "isSignal": true; }; "zButtonType": { "alias": "zButtonType"; "required": false; "isSignal": true; }; "zPosition": { "alias": "zPosition"; "required": false; "isSignal": true; }; "zButtonSize": { "alias": "zButtonSize"; "required": false; "isSignal": true; }; "zOffset": { "alias": "zOffset"; "required": false; "isSignal": true; }; "zMinWidth": { "alias": "zMinWidth"; "required": false; "isSignal": true; }; "zMaxWidth": { "alias": "zMaxWidth"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zWave": { "alias": "zWave"; "required": false; "isSignal": true; }; }, { "zOnItemClick": "zOnItemClick"; }, never, ["*"], true, never>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export { ZDropdownMenuComponent };
|
|
52
|
+
export type { ZDropdownMenuItem };
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, ElementRef, PipeTransform } from '@angular/core';
|
|
3
|
+
import { ZCalendarSize, ZDateRange } from '@shival99/z-ui/components/z-calendar';
|
|
4
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
5
|
+
import { ClassValue } from 'clsx';
|
|
6
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
7
|
+
|
|
8
|
+
type ZFilterSize = 'sm' | 'md' | 'lg';
|
|
9
|
+
type ZFilterFieldType = 'select' | 'multiselect' | 'date' | 'daterange' | 'text' | 'number' | 'numberrange' | 'boolean' | 'email' | 'url' | 'tel' | 'time' | 'datetime' | 'custom' | 'separator';
|
|
10
|
+
interface ZFilterOption<T = unknown> {
|
|
11
|
+
value: T;
|
|
12
|
+
label: string;
|
|
13
|
+
icon?: ZIcon;
|
|
14
|
+
metadata?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
interface ZFilterOperator {
|
|
17
|
+
value: string;
|
|
18
|
+
label: string;
|
|
19
|
+
supportsMultiple?: boolean;
|
|
20
|
+
}
|
|
21
|
+
interface ZFilterCustomRendererContext<T = unknown> {
|
|
22
|
+
field: ZFilterFieldConfig<T>;
|
|
23
|
+
values: T[];
|
|
24
|
+
operator: string;
|
|
25
|
+
onChange: (values: T[]) => void;
|
|
26
|
+
}
|
|
27
|
+
interface ZFilterFieldConfig<T = unknown> {
|
|
28
|
+
key?: string;
|
|
29
|
+
label?: string;
|
|
30
|
+
icon?: ZIcon;
|
|
31
|
+
type?: ZFilterFieldType;
|
|
32
|
+
group?: string;
|
|
33
|
+
fields?: ZFilterFieldConfig<T>[];
|
|
34
|
+
options?: ZFilterOption<T>[];
|
|
35
|
+
operators?: ZFilterOperator[];
|
|
36
|
+
customRenderer?: TemplateRef<ZFilterCustomRendererContext<T>>;
|
|
37
|
+
customValueRenderer?: TemplateRef<{
|
|
38
|
+
values: T[];
|
|
39
|
+
options: ZFilterOption<T>[];
|
|
40
|
+
}>;
|
|
41
|
+
placeholder?: string;
|
|
42
|
+
searchable?: boolean;
|
|
43
|
+
maxSelections?: number;
|
|
44
|
+
min?: number;
|
|
45
|
+
max?: number;
|
|
46
|
+
step?: number;
|
|
47
|
+
prefix?: string;
|
|
48
|
+
suffix?: string;
|
|
49
|
+
pattern?: string;
|
|
50
|
+
validation?: (value: unknown) => boolean;
|
|
51
|
+
allowCustomValues?: boolean;
|
|
52
|
+
className?: string;
|
|
53
|
+
popoverContentClassName?: string;
|
|
54
|
+
selectedOptionsClassName?: string;
|
|
55
|
+
onLabel?: string;
|
|
56
|
+
offLabel?: string;
|
|
57
|
+
defaultOperator?: string;
|
|
58
|
+
}
|
|
59
|
+
interface ZFilterFieldGroup<T = unknown> {
|
|
60
|
+
group?: string;
|
|
61
|
+
fields: ZFilterFieldConfig<T>[];
|
|
62
|
+
}
|
|
63
|
+
type ZFilterFieldsConfig<T = unknown> = ZFilterFieldConfig<T>[] | ZFilterFieldGroup<T>[];
|
|
64
|
+
interface ZFilter<T = unknown> {
|
|
65
|
+
id: string;
|
|
66
|
+
field: string;
|
|
67
|
+
operator: string;
|
|
68
|
+
values: T[];
|
|
69
|
+
}
|
|
70
|
+
interface ZFilterI18nConfig {
|
|
71
|
+
addFilter: string;
|
|
72
|
+
searchFields: string;
|
|
73
|
+
noFieldsFound: string;
|
|
74
|
+
noResultsFound: string;
|
|
75
|
+
select: string;
|
|
76
|
+
true: string;
|
|
77
|
+
false: string;
|
|
78
|
+
min: string;
|
|
79
|
+
max: string;
|
|
80
|
+
to: string;
|
|
81
|
+
selected: string;
|
|
82
|
+
selectedCount: string;
|
|
83
|
+
addFilterTitle: string;
|
|
84
|
+
operators: {
|
|
85
|
+
is: string;
|
|
86
|
+
isNot: string;
|
|
87
|
+
isAnyOf: string;
|
|
88
|
+
isNotAnyOf: string;
|
|
89
|
+
includesAll: string;
|
|
90
|
+
excludesAll: string;
|
|
91
|
+
before: string;
|
|
92
|
+
after: string;
|
|
93
|
+
between: string;
|
|
94
|
+
notBetween: string;
|
|
95
|
+
contains: string;
|
|
96
|
+
notContains: string;
|
|
97
|
+
startsWith: string;
|
|
98
|
+
endsWith: string;
|
|
99
|
+
isExactly: string;
|
|
100
|
+
equals: string;
|
|
101
|
+
notEquals: string;
|
|
102
|
+
greaterThan: string;
|
|
103
|
+
lessThan: string;
|
|
104
|
+
overlaps: string;
|
|
105
|
+
includes: string;
|
|
106
|
+
excludes: string;
|
|
107
|
+
includesAllOf: string;
|
|
108
|
+
includesAnyOf: string;
|
|
109
|
+
empty: string;
|
|
110
|
+
notEmpty: string;
|
|
111
|
+
};
|
|
112
|
+
placeholders: {
|
|
113
|
+
enterField: string;
|
|
114
|
+
selectField: string;
|
|
115
|
+
searchField: string;
|
|
116
|
+
enterKey: string;
|
|
117
|
+
enterValue: string;
|
|
118
|
+
};
|
|
119
|
+
validation: {
|
|
120
|
+
invalidEmail: string;
|
|
121
|
+
invalidUrl: string;
|
|
122
|
+
invalidTel: string;
|
|
123
|
+
invalid: string;
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
declare const DEFAULT_FILTER_I18N: ZFilterI18nConfig;
|
|
127
|
+
|
|
128
|
+
declare class ZFilterComponent<T = unknown> {
|
|
129
|
+
readonly addButtonTemplate: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
130
|
+
readonly zFiltersChange: _angular_core.OutputEmitterRef<ZFilter<T>[]>;
|
|
131
|
+
readonly zFilterAdd: _angular_core.OutputEmitterRef<ZFilter<T>>;
|
|
132
|
+
readonly zFilterRemove: _angular_core.OutputEmitterRef<ZFilter<T>>;
|
|
133
|
+
readonly zFilterUpdate: _angular_core.OutputEmitterRef<{
|
|
134
|
+
filter: ZFilter<T>;
|
|
135
|
+
updates: Partial<ZFilter<T>>;
|
|
136
|
+
}>;
|
|
137
|
+
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
138
|
+
readonly zFilters: _angular_core.InputSignal<ZFilter<T>[]>;
|
|
139
|
+
readonly zFields: _angular_core.InputSignal<ZFilterFieldsConfig<T>>;
|
|
140
|
+
readonly zSize: _angular_core.InputSignal<ZFilterSize>;
|
|
141
|
+
readonly zI18n: _angular_core.InputSignal<Partial<ZFilterI18nConfig>>;
|
|
142
|
+
readonly zShowAddButton: _angular_core.InputSignal<boolean>;
|
|
143
|
+
readonly zAllowMultiple: _angular_core.InputSignal<boolean>;
|
|
144
|
+
readonly zAddButtonIcon: _angular_core.InputSignal<ZIcon>;
|
|
145
|
+
readonly zAddButtonText: _angular_core.InputSignal<string | undefined>;
|
|
146
|
+
protected readonly addFilterOpen: _angular_core.WritableSignal<boolean>;
|
|
147
|
+
protected readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
148
|
+
protected readonly operatorPopoverOpen: _angular_core.WritableSignal<string | null>;
|
|
149
|
+
protected readonly valuePopoverOpen: _angular_core.WritableSignal<string | null>;
|
|
150
|
+
protected readonly addFilterSearchInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
|
|
151
|
+
protected focusSearchInput(): void;
|
|
152
|
+
protected focusSelectSearch(filterId: string): void;
|
|
153
|
+
protected readonly i18n: _angular_core.Signal<ZFilterI18nConfig>;
|
|
154
|
+
protected readonly fieldsMap: _angular_core.Signal<Record<string, ZFilterFieldConfig<T>>>;
|
|
155
|
+
protected readonly selectableFields: _angular_core.Signal<ZFilterFieldConfig<T>[]>;
|
|
156
|
+
protected readonly filteredFields: _angular_core.Signal<ZFilterFieldConfig<T>[]>;
|
|
157
|
+
protected readonly groupedFields: _angular_core.Signal<{
|
|
158
|
+
group: string;
|
|
159
|
+
fields: ZFilterFieldConfig<T>[];
|
|
160
|
+
}[]>;
|
|
161
|
+
protected readonly buttonSize: _angular_core.Signal<"sm" | "lg" | "default">;
|
|
162
|
+
protected readonly calendarSize: _angular_core.Signal<ZCalendarSize>;
|
|
163
|
+
protected readonly dateValueMap: _angular_core.Signal<Record<string, Date | null>>;
|
|
164
|
+
protected readonly dateRangeValueMap: _angular_core.Signal<Record<string, ZDateRange | null>>;
|
|
165
|
+
protected readonly timeValueMap: _angular_core.Signal<Record<string, Date | null>>;
|
|
166
|
+
protected readonly dateTimeValueMap: _angular_core.Signal<Record<string, Date | null>>;
|
|
167
|
+
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
168
|
+
protected getItemClasses(): string;
|
|
169
|
+
protected getLabelClasses(): string;
|
|
170
|
+
protected getInputClasses(): string;
|
|
171
|
+
protected getRemoveButtonClasses(): string;
|
|
172
|
+
protected getBetweenClasses(): string;
|
|
173
|
+
protected getFieldForFilter(filter: ZFilter<T>): ZFilterFieldConfig<T> | undefined;
|
|
174
|
+
protected getOperatorsForFilter(filter: ZFilter<T>): ZFilterOperator[];
|
|
175
|
+
protected getOperatorLabel(filter: ZFilter<T>): string;
|
|
176
|
+
protected getSelectedOptions(filter: ZFilter<T>): ZFilterOption<T>[];
|
|
177
|
+
protected getUnselectedOptions(filter: ZFilter<T>): ZFilterOption<T>[];
|
|
178
|
+
protected isValueHidden(filter: ZFilter<T>): boolean;
|
|
179
|
+
protected isBetweenOperator(filter: ZFilter<T>): boolean;
|
|
180
|
+
protected getInputPattern(field: ZFilterFieldConfig<T>): string | undefined;
|
|
181
|
+
protected onFieldSelect(field: ZFilterFieldConfig<T>): void;
|
|
182
|
+
protected updateFilterOperator(filter: ZFilter<T>, operator: string): void;
|
|
183
|
+
protected onSelectValueChange(filter: ZFilter<T>, option: ZFilterOption<T>): void;
|
|
184
|
+
protected onDateValueChange(filter: ZFilter<T>, value: Date | null): void;
|
|
185
|
+
protected onDateRangeValueChange(filter: ZFilter<T>, value: ZDateRange | null): void;
|
|
186
|
+
protected onTimeValueChange(filter: ZFilter<T>, value: Date | null): void;
|
|
187
|
+
protected onDateTimeValueChange(filter: ZFilter<T>, value: Date | null): void;
|
|
188
|
+
protected removeFilter(filter: ZFilter<T>): void;
|
|
189
|
+
protected onInputChange(filter: ZFilter<T>, event: Event, index?: number): void;
|
|
190
|
+
protected onBooleanChange(filter: ZFilter<T>, checked: boolean): void;
|
|
191
|
+
protected onSearchInput(event: Event): void;
|
|
192
|
+
protected trackByFilterId(index: number, filter: ZFilter<T>): string;
|
|
193
|
+
protected trackByOptionValue(index: number, option: ZFilterOption<T>): unknown;
|
|
194
|
+
protected trackByFieldKey(index: number, field: ZFilterFieldConfig<T>): string;
|
|
195
|
+
private _updateFilterValues;
|
|
196
|
+
private _parseDateValue;
|
|
197
|
+
private _formatDateValue;
|
|
198
|
+
private _parseTimeValue;
|
|
199
|
+
private _parseDateTimeValue;
|
|
200
|
+
private _formatTimeValue;
|
|
201
|
+
private _formatDateTimeValue;
|
|
202
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterComponent<any>, never>;
|
|
203
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZFilterComponent<any>, "z-filter", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zFilters": { "alias": "zFilters"; "required": true; "isSignal": true; }; "zFields": { "alias": "zFields"; "required": true; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zI18n": { "alias": "zI18n"; "required": false; "isSignal": true; }; "zShowAddButton": { "alias": "zShowAddButton"; "required": false; "isSignal": true; }; "zAllowMultiple": { "alias": "zAllowMultiple"; "required": false; "isSignal": true; }; "zAddButtonIcon": { "alias": "zAddButtonIcon"; "required": false; "isSignal": true; }; "zAddButtonText": { "alias": "zAddButtonText"; "required": false; "isSignal": true; }; }, { "zFiltersChange": "zFiltersChange"; "zFilterAdd": "zFilterAdd"; "zFilterRemove": "zFilterRemove"; "zFilterUpdate": "zFilterUpdate"; }, ["addButtonTemplate"], never, true, never>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
declare class ZFilterFieldPipe implements PipeTransform {
|
|
207
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig): ZFilterFieldConfig | undefined;
|
|
208
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterFieldPipe, never>;
|
|
209
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterFieldPipe, "zFilterField", true>;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
declare class ZFilterOperatorLabelPipe implements PipeTransform {
|
|
213
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig, i18n: ZFilterI18nConfig): string;
|
|
214
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterOperatorLabelPipe, never>;
|
|
215
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterOperatorLabelPipe, "zFilterOperatorLabel", true>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare class ZFilterOperatorsPipe implements PipeTransform {
|
|
219
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig, i18n: ZFilterI18nConfig): ZFilterOperator[];
|
|
220
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterOperatorsPipe, never>;
|
|
221
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterOperatorsPipe, "zFilterOperators", true>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
declare class ZFilterSelectedOptionsPipe implements PipeTransform {
|
|
225
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig): ZFilterOption[];
|
|
226
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterSelectedOptionsPipe, never>;
|
|
227
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterSelectedOptionsPipe, "zFilterSelectedOptions", true>;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
declare class ZFilterUnselectedOptionsPipe implements PipeTransform {
|
|
231
|
+
transform(filter: ZFilter, fields: ZFilterFieldsConfig): ZFilterOption[];
|
|
232
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterUnselectedOptionsPipe, never>;
|
|
233
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterUnselectedOptionsPipe, "zFilterUnselectedOptions", true>;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
declare class ZFilterInputPatternPipe implements PipeTransform {
|
|
237
|
+
transform(field: ZFilterFieldConfig): string;
|
|
238
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterInputPatternPipe, never>;
|
|
239
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterInputPatternPipe, "zFilterInputPattern", true>;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
declare class ZFilterIsValueHiddenPipe implements PipeTransform {
|
|
243
|
+
transform(filter: ZFilter): boolean;
|
|
244
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterIsValueHiddenPipe, never>;
|
|
245
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterIsValueHiddenPipe, "zFilterIsValueHidden", true>;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
declare class ZFilterIsBetweenOperatorPipe implements PipeTransform {
|
|
249
|
+
transform(filter: ZFilter): boolean;
|
|
250
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZFilterIsBetweenOperatorPipe, never>;
|
|
251
|
+
static ɵpipe: _angular_core.ɵɵPipeDeclaration<ZFilterIsBetweenOperatorPipe, "zFilterIsBetweenOperator", true>;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
declare const Z_FILTER_PIPES: readonly [typeof ZFilterFieldPipe, typeof ZFilterOperatorLabelPipe, typeof ZFilterOperatorsPipe, typeof ZFilterSelectedOptionsPipe, typeof ZFilterUnselectedOptionsPipe, typeof ZFilterInputPatternPipe, typeof ZFilterIsValueHiddenPipe, typeof ZFilterIsBetweenOperatorPipe];
|
|
255
|
+
|
|
256
|
+
declare function createFilter<T = unknown>(field: string, operator?: string, values?: T[]): ZFilter<T>;
|
|
257
|
+
declare function flattenFields<T = unknown>(fields: ZFilterFieldsConfig<T>): ZFilterFieldConfig<T>[];
|
|
258
|
+
declare function getFieldsMap<T = unknown>(fields: ZFilterFieldsConfig<T>): Record<string, ZFilterFieldConfig<T>>;
|
|
259
|
+
declare function getOperatorsForField<T = unknown>(field: ZFilterFieldConfig<T>, values: T[], i18n: ZFilterI18nConfig): ZFilterOperator[];
|
|
260
|
+
declare function formatOperator(operator: string): string;
|
|
261
|
+
declare function getDefaultOperator(fieldType: string): string;
|
|
262
|
+
declare function getDefaultValues<T = unknown>(fieldType: string, field: ZFilterFieldConfig<T>): unknown[];
|
|
263
|
+
declare function getInputPattern(fieldType: string): string | undefined;
|
|
264
|
+
|
|
265
|
+
declare const zFilterContainerVariants: (props?: ({
|
|
266
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
267
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
268
|
+
declare const zFilterItemVariants: (props?: ({
|
|
269
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
270
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
271
|
+
declare const zFilterFieldLabelVariants: (props?: ({
|
|
272
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
273
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
274
|
+
declare const zFilterInputVariants: (props?: ({
|
|
275
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
276
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
277
|
+
declare const zFilterRemoveButtonVariants: (props?: ({
|
|
278
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
279
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
280
|
+
declare const zFilterBetweenVariants: (props?: ({
|
|
281
|
+
size?: "sm" | "md" | "lg" | null | undefined;
|
|
282
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
283
|
+
|
|
284
|
+
export { DEFAULT_FILTER_I18N, ZFilterComponent, ZFilterFieldPipe, ZFilterInputPatternPipe, ZFilterIsBetweenOperatorPipe, ZFilterIsValueHiddenPipe, ZFilterOperatorLabelPipe, ZFilterOperatorsPipe, ZFilterSelectedOptionsPipe, ZFilterUnselectedOptionsPipe, Z_FILTER_PIPES, createFilter, flattenFields, formatOperator, getDefaultOperator, getDefaultValues, getFieldsMap, getInputPattern, getOperatorsForField, zFilterBetweenVariants, zFilterContainerVariants, zFilterFieldLabelVariants, zFilterInputVariants, zFilterItemVariants, zFilterRemoveButtonVariants };
|
|
285
|
+
export type { ZFilter, ZFilterCustomRendererContext, ZFilterFieldConfig, ZFilterFieldGroup, ZFilterFieldType, ZFilterFieldsConfig, ZFilterI18nConfig, ZFilterOperator, ZFilterOption, ZFilterSize };
|
|
@@ -252,7 +252,7 @@ declare class ZModalComponent<T, U> implements OnDestroy, AfterViewChecked {
|
|
|
252
252
|
protected readonly effectiveOkText: _angular_core.Signal<string | null | undefined>;
|
|
253
253
|
protected readonly effectiveCancelText: _angular_core.Signal<string | null | undefined>;
|
|
254
254
|
protected readonly effectiveOkDestructive: _angular_core.Signal<boolean | undefined>;
|
|
255
|
-
protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "default" | "primary" | "secondary" | "destructive" | "destructive-heartbeat" | "success" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-shimmer" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "outline-primary-soft" | "outline-success-soft" | "outline-info-soft" | "outline-warning-soft" | "outline-error-soft" | "outline-destructive-soft" | "outline-primary-soft-border" | "outline-success-soft-border" | "outline-info-soft-border" | "outline-warning-soft-border" | "outline-error-soft-border" | "outline-destructive-soft-border" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "subtle-primary" | "subtle-success" | "subtle-info" | "subtle-warning" | "subtle-destructive" | "subtle-outline" | "subtle-primary-outline" | "subtle-success-outline" | "subtle-info-outline" | "subtle-warning-outline" | "subtle-destructive-outline" |
|
|
255
|
+
protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "link" | "default" | "primary" | "secondary" | "destructive" | "destructive-heartbeat" | "success" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-shimmer" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "outline-primary-soft" | "outline-success-soft" | "outline-info-soft" | "outline-warning-soft" | "outline-error-soft" | "outline-destructive-soft" | "outline-primary-soft-border" | "outline-success-soft-border" | "outline-info-soft-border" | "outline-warning-soft-border" | "outline-error-soft-border" | "outline-destructive-soft-border" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "subtle-primary" | "subtle-success" | "subtle-info" | "subtle-warning" | "subtle-destructive" | "subtle-outline" | "subtle-primary-outline" | "subtle-success-outline" | "subtle-info-outline" | "subtle-warning-outline" | "subtle-destructive-outline" | null | undefined>;
|
|
256
256
|
protected readonly effectiveOkDisabled: _angular_core.Signal<boolean | undefined>;
|
|
257
257
|
protected readonly effectiveLoading: _angular_core.Signal<boolean>;
|
|
258
258
|
protected readonly effectiveContentLoading: _angular_core.Signal<boolean>;
|