@shival99/z-ui 1.8.13 → 1.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/css/tailwind.css +7 -11
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs +45 -71
- package/fesm2022/shival99-z-ui-components-z-autocomplete.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-button.mjs +21 -11
- package/fesm2022/shival99-z-ui-components-z-button.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs +61 -32
- package/fesm2022/shival99-z-ui-components-z-calendar.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-card.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-card.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-chat.mjs +429 -0
- package/fesm2022/shival99-z-ui-components-z-chat.mjs.map +1 -0
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-checkbox.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-code.mjs +51 -21
- package/fesm2022/shival99-z-ui-components-z-code.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs +8 -3
- package/fesm2022/shival99-z-ui-components-z-drawer.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-editor.mjs +3 -3
- package/fesm2022/shival99-z-ui-components-z-editor.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-empty.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-filter.mjs +3 -3
- package/fesm2022/shival99-z-ui-components-z-filter.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs +169 -90
- package/fesm2022/shival99-z-ui-components-z-gallery.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-icon.mjs +143 -360
- package/fesm2022/shival99-z-ui-components-z-icon.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-input.mjs +131 -8
- package/fesm2022/shival99-z-ui-components-z-input.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-loading.mjs +2 -2
- package/fesm2022/shival99-z-ui-components-z-loading.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 +8 -3
- package/fesm2022/shival99-z-ui-components-z-modal.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-pagination.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-popover.mjs +3 -3
- package/fesm2022/shival99-z-ui-components-z-popover.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-select.mjs +31 -7
- package/fesm2022/shival99-z-ui-components-z-select.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs +3 -3
- package/fesm2022/shival99-z-ui-components-z-skeleton.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-steps.mjs +31 -29
- package/fesm2022/shival99-z-ui-components-z-steps.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-switch.mjs +131 -15
- package/fesm2022/shival99-z-ui-components-z-switch.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-table.mjs +57 -13
- package/fesm2022/shival99-z-ui-components-z-table.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs +6 -6
- package/fesm2022/shival99-z-ui-components-z-tabs.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tags.mjs +1 -1
- package/fesm2022/shival99-z-ui-components-z-tags.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs +6 -6
- package/fesm2022/shival99-z-ui-components-z-timeline.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs +4 -4
- package/fesm2022/shival99-z-ui-components-z-tooltip.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-components-z-upload.mjs +5 -4
- package/fesm2022/shival99-z-ui-components-z-upload.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-i18n.mjs +12 -0
- package/fesm2022/shival99-z-ui-i18n.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-pipes.mjs +18 -0
- package/fesm2022/shival99-z-ui-pipes.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-providers.mjs +30 -13
- package/fesm2022/shival99-z-ui-providers.mjs.map +1 -1
- package/fesm2022/shival99-z-ui-services.mjs +53 -29
- package/fesm2022/shival99-z-ui-services.mjs.map +1 -1
- package/fesm2022/z-ui.mjs +0 -4
- package/fesm2022/z-ui.mjs.map +1 -1
- package/package.json +6 -1
- package/types/shival99-z-ui-components-z-autocomplete.d.ts +25 -38
- package/types/shival99-z-ui-components-z-breadcrumb.d.ts +4 -4
- package/types/shival99-z-ui-components-z-button.d.ts +5 -4
- package/types/shival99-z-ui-components-z-chat.d.ts +148 -0
- package/types/shival99-z-ui-components-z-drawer.d.ts +3 -1
- package/types/shival99-z-ui-components-z-dropdown-menu.d.ts +2 -2
- package/types/shival99-z-ui-components-z-empty.d.ts +3 -3
- package/types/shival99-z-ui-components-z-filter.d.ts +2 -2
- package/types/shival99-z-ui-components-z-gallery.d.ts +6 -3
- package/types/shival99-z-ui-components-z-icon.d.ts +18 -304
- package/types/shival99-z-ui-components-z-input.d.ts +42 -1
- package/types/shival99-z-ui-components-z-modal.d.ts +4 -2
- package/types/shival99-z-ui-components-z-select.d.ts +5 -2
- package/types/shival99-z-ui-components-z-steps.d.ts +4 -4
- package/types/shival99-z-ui-components-z-switch.d.ts +25 -4
- package/types/shival99-z-ui-components-z-table.d.ts +2 -0
- package/types/shival99-z-ui-pipes.d.ts +2 -0
- package/types/shival99-z-ui-providers.d.ts +10 -16
- package/types/shival99-z-ui-services.d.ts +6 -1
- package/types/z-ui.d.ts +1 -2
package/fesm2022/z-ui.mjs
CHANGED
package/fesm2022/z-ui.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"z-ui.mjs","sources":["../../../../libs/core-ui/
|
|
1
|
+
{"version":3,"file":"z-ui.mjs","sources":["../../../../libs/core-ui/z-ui.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;AAEG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shival99/z-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Z-UI: Modern Angular UI Component Library - A comprehensive, high-performance design system built with Angular 20+, featuring 40+ customizable components with dark mode, accessibility, and enterprise-ready features.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
"@angular/forms": ">=20.0.0",
|
|
42
42
|
"@angular/router": ">=20.0.0",
|
|
43
43
|
"@angular/cdk": ">=20.0.0",
|
|
44
|
+
"@dayflow/blossom-color-picker-angular": ">=1.0.0",
|
|
44
45
|
"@ng-icons/core": ">=33.0.0",
|
|
45
46
|
"@ng-icons/iconsax": ">=33.0.0",
|
|
46
47
|
"@ng-icons/lucide": ">=33.0.0",
|
|
@@ -140,6 +141,10 @@
|
|
|
140
141
|
"types": "./types/shival99-z-ui-components-z-card.d.ts",
|
|
141
142
|
"default": "./fesm2022/shival99-z-ui-components-z-card.mjs"
|
|
142
143
|
},
|
|
144
|
+
"./components/z-chat": {
|
|
145
|
+
"types": "./types/shival99-z-ui-components-z-chat.d.ts",
|
|
146
|
+
"default": "./fesm2022/shival99-z-ui-components-z-chat.mjs"
|
|
147
|
+
},
|
|
143
148
|
"./components/z-checkbox": {
|
|
144
149
|
"types": "./types/shival99-z-ui-components-z-checkbox.d.ts",
|
|
145
150
|
"default": "./fesm2022/shival99-z-ui-components-z-checkbox.mjs"
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Signal, TemplateRef, OnInit, ElementRef } from '@angular/core';
|
|
3
|
-
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
4
|
-
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
-
import { VariantProps } from 'class-variance-authority';
|
|
6
1
|
import * as _shival99_angular_virtual from '@shival99/angular-virtual';
|
|
2
|
+
import * as _angular_core from '@angular/core';
|
|
3
|
+
import { TemplateRef, Signal, OnInit, ElementRef } from '@angular/core';
|
|
7
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
8
6
|
import { ZPopoverPosition, ZPopoverControl } from '@shival99/z-ui/components/z-popover';
|
|
9
7
|
import { ZEvent } from '@shival99/z-ui/utils';
|
|
10
8
|
import { ClassValue } from 'clsx';
|
|
9
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
10
|
+
import { VariantProps } from 'class-variance-authority';
|
|
11
11
|
|
|
12
12
|
interface ZAutocompleteOption<T = unknown> {
|
|
13
13
|
label: string;
|
|
@@ -65,17 +65,6 @@ type ZAutocompleteOptionTemplate<T = unknown> = TemplateRef<{
|
|
|
65
65
|
active: boolean;
|
|
66
66
|
}>;
|
|
67
67
|
|
|
68
|
-
declare const zAutocompleteInputVariants: (props?: ({
|
|
69
|
-
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
70
|
-
zStatus?: "default" | "disabled" | "readonly" | "open" | "error" | null | undefined;
|
|
71
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
72
|
-
type ZAutocompleteInputVariants = VariantProps<typeof zAutocompleteInputVariants>;
|
|
73
|
-
declare const zAutocompleteOptionVariants: (props?: ({
|
|
74
|
-
active?: boolean | null | undefined;
|
|
75
|
-
disabled?: boolean | null | undefined;
|
|
76
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
77
|
-
type ZAutocompleteOptionVariants = VariantProps<typeof zAutocompleteOptionVariants>;
|
|
78
|
-
|
|
79
68
|
declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValueAccessor {
|
|
80
69
|
private readonly _injector;
|
|
81
70
|
private readonly _destroyRef;
|
|
@@ -98,8 +87,8 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
98
87
|
readonly zReadonly: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
99
88
|
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
100
89
|
readonly zRequired: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
101
|
-
readonly zPrefix: _angular_core.InputSignal<"" |
|
|
102
|
-
readonly zSuffix: _angular_core.InputSignal<"" |
|
|
90
|
+
readonly zPrefix: _angular_core.InputSignal<"" | ZIcon>;
|
|
91
|
+
readonly zSuffix: _angular_core.InputSignal<"" | ZIcon>;
|
|
103
92
|
readonly zAllowClear: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
104
93
|
readonly zVirtualScroll: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
105
94
|
readonly zDynamicSize: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
@@ -108,9 +97,9 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
108
97
|
readonly zMaxVisible: _angular_core.InputSignal<number | null>;
|
|
109
98
|
readonly zResetOnSelect: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
110
99
|
readonly zEmptyText: _angular_core.InputSignal<string>;
|
|
111
|
-
readonly zEmptyIcon: _angular_core.InputSignal<
|
|
100
|
+
readonly zEmptyIcon: _angular_core.InputSignal<ZIcon>;
|
|
112
101
|
readonly zNoDataText: _angular_core.InputSignal<string>;
|
|
113
|
-
readonly zNoDataIcon: _angular_core.InputSignal<
|
|
102
|
+
readonly zNoDataIcon: _angular_core.InputSignal<ZIcon>;
|
|
114
103
|
readonly zAllowCustomValue: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
115
104
|
readonly zDebounceTime: _angular_core.InputSignal<number>;
|
|
116
105
|
readonly zOptionTemplate: _angular_core.InputSignal<ZAutocompleteOptionTemplate<T> | null>;
|
|
@@ -138,23 +127,14 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
138
127
|
protected readonly autocompleteId: string;
|
|
139
128
|
protected readonly dropdownId: string;
|
|
140
129
|
protected readonly inputValue: _angular_core.WritableSignal<string>;
|
|
130
|
+
protected readonly debouncedQuery: _angular_core.WritableSignal<string>;
|
|
141
131
|
protected readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
142
|
-
protected readonly isTyping: _angular_core.WritableSignal<boolean>;
|
|
143
132
|
protected readonly activeIndex: _angular_core.WritableSignal<number>;
|
|
144
133
|
protected readonly dropdownWidth: _angular_core.WritableSignal<number>;
|
|
145
|
-
private readonly _isActivelyTyping;
|
|
146
134
|
private readonly _pendingSearch;
|
|
135
|
+
private _localLoadingTimeout;
|
|
147
136
|
/** Stores input value before keyboard navigation for ESC revert */
|
|
148
137
|
private _valueBeforeNavigation;
|
|
149
|
-
/** Track previous zOptions reference to detect changes */
|
|
150
|
-
private _prevOptionsRef;
|
|
151
|
-
/**
|
|
152
|
-
* Effect to reset _pendingSearch when parent responds.
|
|
153
|
-
* Handles both:
|
|
154
|
-
* - API calls: parent sets zLoading = true (takes over loading state)
|
|
155
|
-
* - Local filtering: parent updates zOptions without zLoading
|
|
156
|
-
*/
|
|
157
|
-
private readonly _pendingSearchEffect;
|
|
158
138
|
protected readonly virtualizer: _shival99_angular_virtual.AngularVirtualizer<HTMLDivElement, Element>;
|
|
159
139
|
private readonly _measureVirtualItems;
|
|
160
140
|
protected readonly config: _angular_core.Signal<ZAutocompleteConfig>;
|
|
@@ -168,13 +148,8 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
168
148
|
protected readonly effectiveDebounceTime: _angular_core.Signal<number>;
|
|
169
149
|
protected readonly highlightQuery: _angular_core.Signal<string>;
|
|
170
150
|
/**
|
|
171
|
-
*
|
|
172
|
-
*
|
|
173
|
-
* - User is actively typing (debounce in progress)
|
|
174
|
-
* - Waiting for parent to respond after zOnSearch emitted (_pendingSearch)
|
|
175
|
-
*
|
|
176
|
-
* For server search mode, this is only used during typing debounce.
|
|
177
|
-
* Parent controls the actual loading state via zLoading input.
|
|
151
|
+
* Local-mode loading state after debounce to avoid quick flicker.
|
|
152
|
+
* Server mode relies only on zLoading from parent.
|
|
178
153
|
*/
|
|
179
154
|
protected readonly isLoadingState: _angular_core.Signal<boolean>;
|
|
180
155
|
protected readonly isPositionTop: _angular_core.Signal<boolean>;
|
|
@@ -222,10 +197,22 @@ declare class ZAutocompleteComponent<T = unknown> implements OnInit, ControlValu
|
|
|
222
197
|
private _openPanel;
|
|
223
198
|
private _closePanel;
|
|
224
199
|
private _setupDebounce;
|
|
200
|
+
private _clearLocalLoadingTimer;
|
|
225
201
|
private _emitControl;
|
|
226
202
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZAutocompleteComponent<any>, never>;
|
|
227
203
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZAutocompleteComponent<any>, "z-autocomplete", ["zAutocomplete"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zOptions": { "alias": "zOptions"; "required": false; "isSignal": true; }; "zConfig": { "alias": "zConfig"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zType": { "alias": "zType"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zLabelClass": { "alias": "zLabelClass"; "required": false; "isSignal": true; }; "zPlaceholder": { "alias": "zPlaceholder"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zReadonly": { "alias": "zReadonly"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zRequired": { "alias": "zRequired"; "required": false; "isSignal": true; }; "zPrefix": { "alias": "zPrefix"; "required": false; "isSignal": true; }; "zSuffix": { "alias": "zSuffix"; "required": false; "isSignal": true; }; "zAllowClear": { "alias": "zAllowClear"; "required": false; "isSignal": true; }; "zVirtualScroll": { "alias": "zVirtualScroll"; "required": false; "isSignal": true; }; "zDynamicSize": { "alias": "zDynamicSize"; "required": false; "isSignal": true; }; "zOptionHeight": { "alias": "zOptionHeight"; "required": false; "isSignal": true; }; "zHeightExpand": { "alias": "zHeightExpand"; "required": false; "isSignal": true; }; "zMaxVisible": { "alias": "zMaxVisible"; "required": false; "isSignal": true; }; "zResetOnSelect": { "alias": "zResetOnSelect"; "required": false; "isSignal": true; }; "zEmptyText": { "alias": "zEmptyText"; "required": false; "isSignal": true; }; "zEmptyIcon": { "alias": "zEmptyIcon"; "required": false; "isSignal": true; }; "zNoDataText": { "alias": "zNoDataText"; "required": false; "isSignal": true; }; "zNoDataIcon": { "alias": "zNoDataIcon"; "required": false; "isSignal": true; }; "zAllowCustomValue": { "alias": "zAllowCustomValue"; "required": false; "isSignal": true; }; "zDebounceTime": { "alias": "zDebounceTime"; "required": false; "isSignal": true; }; "zOptionTemplate": { "alias": "zOptionTemplate"; "required": false; "isSignal": true; }; }, { "zOnSearch": "zOnSearch"; "zOnSelect": "zOnSelect"; "zOnEnter": "zOnEnter"; "zOnCommit": "zOnCommit"; "zValueChange": "zValueChange"; "zOnBlur": "zOnBlur"; "zOnFocus": "zOnFocus"; "zControl": "zControl"; "zEvent": "zEvent"; }, never, never, true, never>;
|
|
228
204
|
}
|
|
229
205
|
|
|
206
|
+
declare const zAutocompleteInputVariants: (props?: ({
|
|
207
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
208
|
+
zStatus?: "default" | "open" | "error" | "disabled" | "readonly" | null | undefined;
|
|
209
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
210
|
+
type ZAutocompleteInputVariants = VariantProps<typeof zAutocompleteInputVariants>;
|
|
211
|
+
declare const zAutocompleteOptionVariants: (props?: ({
|
|
212
|
+
active?: boolean | null | undefined;
|
|
213
|
+
disabled?: boolean | null | undefined;
|
|
214
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
215
|
+
type ZAutocompleteOptionVariants = VariantProps<typeof zAutocompleteOptionVariants>;
|
|
216
|
+
|
|
230
217
|
export { ZAutocompleteComponent, Z_AUTOCOMPLETE_DEFAULT_CONFIG, zAutocompleteInputVariants, zAutocompleteOptionVariants };
|
|
231
218
|
export type { ZAutocompleteCommitEvent, ZAutocompleteConfig, ZAutocompleteControl, ZAutocompleteInputVariants, ZAutocompleteOption, ZAutocompleteOptionTemplate, ZAutocompleteOptionVariants, ZAutocompleteSize, ZAutocompleteState, ZAutocompleteType };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ClassValue } from 'clsx';
|
|
3
2
|
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
3
|
+
import { ClassValue } from 'clsx';
|
|
4
4
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
5
|
import { VariantProps } from 'class-variance-authority';
|
|
6
6
|
|
|
@@ -16,9 +16,9 @@ declare class ZBreadcrumbComponent {
|
|
|
16
16
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
17
17
|
readonly zItems: _angular_core.InputSignal<ZBreadcrumbItem[]>;
|
|
18
18
|
readonly zSize: _angular_core.InputSignal<"sm" | "default" | "lg" | null | undefined>;
|
|
19
|
-
readonly zSeparator: _angular_core.InputSignal<
|
|
20
|
-
readonly zSeparatorSize: _angular_core.InputSignal<
|
|
21
|
-
readonly zHomeIcon: _angular_core.InputSignal<
|
|
19
|
+
readonly zSeparator: _angular_core.InputSignal<ZIcon>;
|
|
20
|
+
readonly zSeparatorSize: _angular_core.InputSignal<string | number | null | undefined>;
|
|
21
|
+
readonly zHomeIcon: _angular_core.InputSignal<ZIcon | undefined>;
|
|
22
22
|
readonly zShowHome: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
23
23
|
protected readonly zClasses: _angular_core.Signal<string>;
|
|
24
24
|
protected getItemClasses(item: ZBreadcrumbItem, isLast: boolean): string;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
3
4
|
import { ClassValue } from 'clsx';
|
|
4
5
|
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
6
|
import { VariantProps } from 'class-variance-authority';
|
|
@@ -7,14 +8,14 @@ import { VariantProps } from 'class-variance-authority';
|
|
|
7
8
|
declare class ZButtonComponent implements OnDestroy {
|
|
8
9
|
private readonly _elementRef;
|
|
9
10
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
10
|
-
readonly zType: _angular_core.InputSignal<"default" | "primary" | "secondary" | "destructive" | "success" | "info" | "warning" | "error" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "link" | null | undefined>;
|
|
11
|
+
readonly zType: _angular_core.InputSignal<"default" | "primary" | "secondary" | "destructive" | "success" | "info" | "warning" | "error" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "subtle-primary" | "subtle-success" | "subtle-info" | "subtle-warning" | "subtle-destructive" | "link" | null | undefined>;
|
|
11
12
|
readonly zSize: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "xl" | null | undefined>;
|
|
12
13
|
readonly zShape: _angular_core.InputSignal<"default" | "circle" | "square" | null | undefined>;
|
|
13
14
|
readonly zLabel: _angular_core.InputSignal<string>;
|
|
14
15
|
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
15
16
|
readonly zDisabled: _angular_core.InputSignal<boolean>;
|
|
16
|
-
readonly zTypeIcon: _angular_core.InputSignal<
|
|
17
|
-
readonly zSizeIcon: _angular_core.InputSignal<
|
|
17
|
+
readonly zTypeIcon: _angular_core.InputSignal<ZIcon | undefined>;
|
|
18
|
+
readonly zSizeIcon: _angular_core.InputSignal<string | number | null | undefined>;
|
|
18
19
|
readonly zStrokeWidthIcon: _angular_core.InputSignal<number>;
|
|
19
20
|
readonly zWave: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
20
21
|
private readonly _zIconOnlyState;
|
|
@@ -29,7 +30,7 @@ declare class ZButtonComponent implements OnDestroy {
|
|
|
29
30
|
}
|
|
30
31
|
|
|
31
32
|
declare const zButtonVariants: (props?: ({
|
|
32
|
-
zType?: "default" | "primary" | "secondary" | "destructive" | "success" | "info" | "warning" | "error" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "link" | null | undefined;
|
|
33
|
+
zType?: "default" | "primary" | "secondary" | "destructive" | "success" | "info" | "warning" | "error" | "outline" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-info" | "outline-warning" | "outline-error" | "outline-destructive" | "outline-success-secondary" | "outline-info-secondary" | "outline-warning-secondary" | "outline-error-secondary" | "outline-destructive-secondary" | "outline-primary-secondary" | "ghost" | "ghost-primary" | "ghost-success" | "ghost-info" | "ghost-warning" | "ghost-error" | "ghost-destructive" | "subtle" | "subtle-primary" | "subtle-success" | "subtle-info" | "subtle-warning" | "subtle-destructive" | "link" | null | undefined;
|
|
33
34
|
zSize?: "default" | "xs" | "sm" | "lg" | "xl" | null | undefined;
|
|
34
35
|
zShape?: "default" | "circle" | "square" | null | undefined;
|
|
35
36
|
zLoading?: boolean | null | undefined;
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnDestroy } from '@angular/core';
|
|
3
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
4
|
+
import { ClassValue } from 'clsx';
|
|
5
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
6
|
+
import { VariantProps } from 'class-variance-authority';
|
|
7
|
+
|
|
8
|
+
type ZChatRole = 'user' | 'assistant';
|
|
9
|
+
type ZChatPosition = 'bottom-right' | 'bottom-left';
|
|
10
|
+
type ZChatSize = 'sm' | 'default' | 'lg';
|
|
11
|
+
interface ZChatOffset {
|
|
12
|
+
top?: number | string;
|
|
13
|
+
right?: number | string;
|
|
14
|
+
bottom?: number | string;
|
|
15
|
+
left?: number | string;
|
|
16
|
+
}
|
|
17
|
+
interface ZChatAttachment {
|
|
18
|
+
id: string;
|
|
19
|
+
name: string;
|
|
20
|
+
size: number;
|
|
21
|
+
type: string;
|
|
22
|
+
previewUrl?: string;
|
|
23
|
+
file?: File;
|
|
24
|
+
}
|
|
25
|
+
interface ZChatMessage {
|
|
26
|
+
id: string;
|
|
27
|
+
role: ZChatRole;
|
|
28
|
+
content: string;
|
|
29
|
+
createdAt: number;
|
|
30
|
+
files?: ZChatAttachment[];
|
|
31
|
+
}
|
|
32
|
+
interface ZChatSuggestion {
|
|
33
|
+
label: string;
|
|
34
|
+
prompt?: string;
|
|
35
|
+
icon?: ZIcon;
|
|
36
|
+
}
|
|
37
|
+
interface ZChatSendEvent {
|
|
38
|
+
message: string;
|
|
39
|
+
files: ZChatAttachment[];
|
|
40
|
+
messages: ZChatMessage[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
declare class ZChatComponent implements OnDestroy {
|
|
44
|
+
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
45
|
+
readonly zOpen: _angular_core.ModelSignal<boolean>;
|
|
46
|
+
readonly zMessages: _angular_core.ModelSignal<ZChatMessage[]>;
|
|
47
|
+
readonly zTitle: _angular_core.InputSignal<string>;
|
|
48
|
+
readonly zSubtitle: _angular_core.InputSignal<string>;
|
|
49
|
+
readonly zPlaceholder: _angular_core.InputSignal<string>;
|
|
50
|
+
readonly zPosition: _angular_core.InputSignal<ZChatPosition>;
|
|
51
|
+
readonly zOffset: _angular_core.InputSignal<ZChatOffset>;
|
|
52
|
+
readonly zSize: _angular_core.InputSignal<ZChatSize>;
|
|
53
|
+
readonly zSuggestions: _angular_core.InputSignal<ZChatSuggestion[]>;
|
|
54
|
+
readonly zShowSuggestions: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
55
|
+
readonly zShowPulse: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
56
|
+
readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
57
|
+
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
58
|
+
readonly zAllowAttachments: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
59
|
+
readonly zAcceptedFiles: _angular_core.InputSignal<string>;
|
|
60
|
+
readonly zAutoReply: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
61
|
+
readonly zAutoReplyDelay: _angular_core.InputSignal<number>;
|
|
62
|
+
readonly zFabIcon: _angular_core.InputSignal<ZIcon>;
|
|
63
|
+
readonly zBotIcon: _angular_core.InputSignal<ZIcon>;
|
|
64
|
+
readonly zSendIcon: _angular_core.InputSignal<ZIcon>;
|
|
65
|
+
readonly zSend: _angular_core.OutputEmitterRef<ZChatSendEvent>;
|
|
66
|
+
readonly zResponse: _angular_core.OutputEmitterRef<ZChatMessage>;
|
|
67
|
+
readonly zToggle: _angular_core.OutputEmitterRef<boolean>;
|
|
68
|
+
readonly zClear: _angular_core.OutputEmitterRef<void>;
|
|
69
|
+
protected readonly draftMessage: _angular_core.WritableSignal<string>;
|
|
70
|
+
protected readonly showRipple: _angular_core.WritableSignal<boolean>;
|
|
71
|
+
protected readonly attachments: _angular_core.WritableSignal<ZChatAttachment[]>;
|
|
72
|
+
protected readonly isComposerExpanded: _angular_core.WritableSignal<boolean>;
|
|
73
|
+
protected readonly isComposerOverflowing: _angular_core.WritableSignal<boolean>;
|
|
74
|
+
protected readonly isPreviewVisible: _angular_core.WritableSignal<boolean>;
|
|
75
|
+
protected readonly previewImage: _angular_core.WritableSignal<{
|
|
76
|
+
url: string;
|
|
77
|
+
name: string;
|
|
78
|
+
size: number;
|
|
79
|
+
} | null>;
|
|
80
|
+
private readonly _mockTyping;
|
|
81
|
+
private readonly _messagesScrollbarRef;
|
|
82
|
+
private readonly _chatInputRef;
|
|
83
|
+
private readonly _fileInputRef;
|
|
84
|
+
private _mockReplyTimer;
|
|
85
|
+
private _rippleTimer;
|
|
86
|
+
private _scrollTimer;
|
|
87
|
+
protected readonly wrapperClasses: _angular_core.Signal<string>;
|
|
88
|
+
protected readonly wrapperTop: _angular_core.Signal<string | null>;
|
|
89
|
+
protected readonly wrapperRight: _angular_core.Signal<string | null>;
|
|
90
|
+
protected readonly wrapperBottom: _angular_core.Signal<string | null>;
|
|
91
|
+
protected readonly wrapperLeft: _angular_core.Signal<string | null>;
|
|
92
|
+
protected readonly panelClasses: _angular_core.Signal<string>;
|
|
93
|
+
protected readonly fabClasses: _angular_core.Signal<string>;
|
|
94
|
+
protected readonly isTyping: _angular_core.Signal<boolean>;
|
|
95
|
+
protected readonly canSend: _angular_core.Signal<boolean>;
|
|
96
|
+
protected readonly hasMessages: _angular_core.Signal<boolean>;
|
|
97
|
+
protected readonly showEmptyState: _angular_core.Signal<boolean>;
|
|
98
|
+
protected readonly previewImageSizeLabel: _angular_core.Signal<string>;
|
|
99
|
+
ngOnDestroy(): void;
|
|
100
|
+
open(): void;
|
|
101
|
+
close(): void;
|
|
102
|
+
clearMessages(): void;
|
|
103
|
+
protected onToggle(): void;
|
|
104
|
+
protected onSuggestionSelect(item: ZChatSuggestion): void;
|
|
105
|
+
protected onClickAttach(): void;
|
|
106
|
+
protected onFileChange(event: Event): void;
|
|
107
|
+
protected onTextareaPaste(event: ClipboardEvent): void;
|
|
108
|
+
protected removeAttachment(id: string): void;
|
|
109
|
+
protected formatFileSize(size: number): string;
|
|
110
|
+
protected isImageAttachment(file: ZChatAttachment): boolean;
|
|
111
|
+
protected openImagePreview(file: ZChatAttachment): void;
|
|
112
|
+
protected closeImagePreview(): void;
|
|
113
|
+
protected onInputKeydown(event: KeyboardEvent): void;
|
|
114
|
+
protected onTextareaInput(event: Event): void;
|
|
115
|
+
protected onSendMessage(): void;
|
|
116
|
+
private _toggle;
|
|
117
|
+
private _createMessage;
|
|
118
|
+
private _simulateReply;
|
|
119
|
+
private _buildMockReply;
|
|
120
|
+
private _triggerRipple;
|
|
121
|
+
protected onMessagesScrollbarInit(): void;
|
|
122
|
+
protected onEscapeKey(): void;
|
|
123
|
+
private _scheduleScrollToBottom;
|
|
124
|
+
private _scrollToBottom;
|
|
125
|
+
private _focusInputSoon;
|
|
126
|
+
private _releaseAttachmentUrls;
|
|
127
|
+
private _appendFiles;
|
|
128
|
+
private _createMessagePreviewUrl;
|
|
129
|
+
private _resolveOffsetValue;
|
|
130
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZChatComponent, never>;
|
|
131
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZChatComponent, "z-chat", ["zChat"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zOpen": { "alias": "zOpen"; "required": false; "isSignal": true; }; "zMessages": { "alias": "zMessages"; "required": false; "isSignal": true; }; "zTitle": { "alias": "zTitle"; "required": false; "isSignal": true; }; "zSubtitle": { "alias": "zSubtitle"; "required": false; "isSignal": true; }; "zPlaceholder": { "alias": "zPlaceholder"; "required": false; "isSignal": true; }; "zPosition": { "alias": "zPosition"; "required": false; "isSignal": true; }; "zOffset": { "alias": "zOffset"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zSuggestions": { "alias": "zSuggestions"; "required": false; "isSignal": true; }; "zShowSuggestions": { "alias": "zShowSuggestions"; "required": false; "isSignal": true; }; "zShowPulse": { "alias": "zShowPulse"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zAllowAttachments": { "alias": "zAllowAttachments"; "required": false; "isSignal": true; }; "zAcceptedFiles": { "alias": "zAcceptedFiles"; "required": false; "isSignal": true; }; "zAutoReply": { "alias": "zAutoReply"; "required": false; "isSignal": true; }; "zAutoReplyDelay": { "alias": "zAutoReplyDelay"; "required": false; "isSignal": true; }; "zFabIcon": { "alias": "zFabIcon"; "required": false; "isSignal": true; }; "zBotIcon": { "alias": "zBotIcon"; "required": false; "isSignal": true; }; "zSendIcon": { "alias": "zSendIcon"; "required": false; "isSignal": true; }; }, { "zOpen": "zOpenChange"; "zMessages": "zMessagesChange"; "zSend": "zSend"; "zResponse": "zResponse"; "zToggle": "zToggle"; "zClear": "zClear"; }, never, never, true, never>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
declare const zChatWrapperVariants: (props?: ({
|
|
135
|
+
zPosition?: "bottom-right" | "bottom-left" | null | undefined;
|
|
136
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
137
|
+
declare const zChatPanelVariants: (props?: ({
|
|
138
|
+
zPosition?: "bottom-right" | "bottom-left" | null | undefined;
|
|
139
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
140
|
+
zOpen?: boolean | null | undefined;
|
|
141
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
142
|
+
declare const zChatFabVariants: (props?: ({
|
|
143
|
+
zOpen?: boolean | null | undefined;
|
|
144
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
145
|
+
type ZChatVariants = VariantProps<typeof zChatPanelVariants>;
|
|
146
|
+
|
|
147
|
+
export { ZChatComponent, zChatFabVariants, zChatPanelVariants, zChatWrapperVariants };
|
|
148
|
+
export type { ZChatAttachment, ZChatMessage, ZChatOffset, ZChatPosition, ZChatRole, ZChatSendEvent, ZChatSize, ZChatSuggestion, ZChatVariants };
|
|
@@ -112,6 +112,7 @@ declare class ZDrawerRef<T = any, R = any, U = any> {
|
|
|
112
112
|
private _result?;
|
|
113
113
|
componentInstance: T | null;
|
|
114
114
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
115
|
+
readonly zAfterClose: EventEmitter<R | undefined>;
|
|
115
116
|
constructor(_overlayRef: OverlayRef, _config: ZDrawerOptions<T, U>, _containerInstance: ZDrawerComponent<T, U>, _platformId: object);
|
|
116
117
|
setLoading(value: boolean): void;
|
|
117
118
|
close(result?: R): void;
|
|
@@ -129,6 +130,7 @@ declare const zDrawerVariants: (props?: ({
|
|
|
129
130
|
declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestroy, AfterViewChecked {
|
|
130
131
|
readonly zOnOk: _angular_core.OutputEmitterRef<void>;
|
|
131
132
|
readonly zOnCancel: _angular_core.OutputEmitterRef<void>;
|
|
133
|
+
readonly zAfterClose: _angular_core.OutputEmitterRef<void>;
|
|
132
134
|
readonly zScrollbar: _angular_core.OutputEmitterRef<NgScrollbar>;
|
|
133
135
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
134
136
|
readonly zVisible: _angular_core.ModelSignal<boolean>;
|
|
@@ -218,7 +220,7 @@ declare class ZDrawerComponent<T, U> extends BasePortalOutlet implements OnDestr
|
|
|
218
220
|
private _closeWithAnimation;
|
|
219
221
|
private _disposeTemplateOverlay;
|
|
220
222
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZDrawerComponent<any, any>, never>;
|
|
221
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZDrawerComponent<any, any>, "z-drawer", ["zDrawer"], { "class": { "alias": "class"; "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; }; "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; }; }, { "zOnOk": "zOnOk"; "zOnCancel": "zOnCancel"; "zScrollbar": "zScrollbar"; "zVisible": "zVisibleChange"; }, ["customHeader", "customContent", "customFooter"], ["*"], true, never>;
|
|
223
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZDrawerComponent<any, any>, "z-drawer", ["zDrawer"], { "class": { "alias": "class"; "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; }; "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; }; }, { "zOnOk": "zOnOk"; "zOnCancel": "zOnCancel"; "zAfterClose": "zAfterClose"; "zScrollbar": "zScrollbar"; "zVisible": "zVisibleChange"; }, ["customHeader", "customContent", "customFooter"], ["*"], true, never>;
|
|
222
224
|
}
|
|
223
225
|
|
|
224
226
|
declare class ZDrawerService {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { AfterContentInit, ElementRef } from '@angular/core';
|
|
3
|
-
import { ZPopoverPosition } from '@shival99/z-ui/components/z-popover';
|
|
4
3
|
import { ZIcon, ZIconVariants } from '@shival99/z-ui/components/z-icon';
|
|
4
|
+
import { ZPopoverPosition } from '@shival99/z-ui/components/z-popover';
|
|
5
5
|
|
|
6
6
|
interface ZDropdownMenuItem {
|
|
7
7
|
label: string;
|
|
@@ -24,7 +24,7 @@ declare class ZDropdownMenuComponent implements AfterContentInit {
|
|
|
24
24
|
readonly zOnItemClick: _angular_core.OutputEmitterRef<ZDropdownMenuItem>;
|
|
25
25
|
readonly zItems: _angular_core.InputSignal<ZDropdownMenuItem[]>;
|
|
26
26
|
readonly zLabel: _angular_core.InputSignal<string | undefined>;
|
|
27
|
-
readonly zIcon: _angular_core.InputSignal<
|
|
27
|
+
readonly zIcon: _angular_core.InputSignal<ZIcon>;
|
|
28
28
|
readonly zButtonType: _angular_core.InputSignal<"primary" | "secondary" | "outline" | "ghost">;
|
|
29
29
|
readonly zPosition: _angular_core.InputSignal<ZPopoverPosition>;
|
|
30
30
|
readonly zButtonSize: _angular_core.InputSignal<"default" | "xs" | "sm" | "lg" | "xl" | null | undefined>;
|