@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
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _dayflow_blossom_color_picker_angular from '@dayflow/blossom-color-picker-angular';
|
|
2
|
+
import { ColorInput, BlossomColorPickerValue, SliderPosition, BlossomColorPickerColor } from '@dayflow/blossom-color-picker-angular';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { Signal, OnInit, ElementRef, TemplateRef } from '@angular/core';
|
|
3
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -64,6 +66,20 @@ interface ZInputMaskConfig {
|
|
|
64
66
|
effectiveType: ZInputType;
|
|
65
67
|
effectiveDecimalMarker: '.' | ',' | ['.', ','];
|
|
66
68
|
}
|
|
69
|
+
interface ZInputColorConfig {
|
|
70
|
+
count?: number | null;
|
|
71
|
+
colors?: ColorInput[];
|
|
72
|
+
defaultValue?: BlossomColorPickerValue;
|
|
73
|
+
openOnHover?: boolean;
|
|
74
|
+
initialExpanded?: boolean;
|
|
75
|
+
animationDuration?: number;
|
|
76
|
+
showAlphaSlider?: boolean;
|
|
77
|
+
showCoreColor?: boolean;
|
|
78
|
+
adaptivePositioning?: boolean;
|
|
79
|
+
sliderPosition?: SliderPosition;
|
|
80
|
+
coreSize?: number;
|
|
81
|
+
petalSize?: number;
|
|
82
|
+
}
|
|
67
83
|
|
|
68
84
|
declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
69
85
|
private readonly _injector;
|
|
@@ -77,6 +93,7 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
77
93
|
readonly zOnFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
78
94
|
readonly zOnKeydown: _angular_core.OutputEmitterRef<KeyboardEvent>;
|
|
79
95
|
readonly zOnEnter: _angular_core.OutputEmitterRef<string | number | null>;
|
|
96
|
+
readonly zOnColorCollapse: _angular_core.OutputEmitterRef<BlossomColorPickerColor>;
|
|
80
97
|
readonly zControl: _angular_core.OutputEmitterRef<ZInputControl>;
|
|
81
98
|
readonly zEvent: _angular_core.OutputEmitterRef<ZEvent>;
|
|
82
99
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
@@ -115,6 +132,7 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
115
132
|
readonly zResize: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
116
133
|
readonly zMaxLength: _angular_core.InputSignal<number | undefined>;
|
|
117
134
|
readonly zAutoSuggest: _angular_core.InputSignal<string | undefined>;
|
|
135
|
+
readonly zColorConfig: _angular_core.InputSignal<ZInputColorConfig>;
|
|
118
136
|
private readonly _value;
|
|
119
137
|
private readonly _disabled;
|
|
120
138
|
private readonly _formControl;
|
|
@@ -122,6 +140,7 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
122
140
|
private readonly _isNgModel;
|
|
123
141
|
private readonly _asyncErrors;
|
|
124
142
|
private readonly _customError;
|
|
143
|
+
private readonly _blossomColor;
|
|
125
144
|
protected readonly inputId: string;
|
|
126
145
|
protected readonly suggestHistory: _angular_core.WritableSignal<string[]>;
|
|
127
146
|
protected readonly suggestActiveIndex: _angular_core.WritableSignal<number>;
|
|
@@ -138,6 +157,23 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
138
157
|
protected readonly slotConfig: _angular_core.Signal<ZInputSlotConfig>;
|
|
139
158
|
protected readonly maskConfig: _angular_core.Signal<ZInputMaskConfig>;
|
|
140
159
|
protected readonly displayValue: _angular_core.Signal<string>;
|
|
160
|
+
protected readonly normalizedColorValue: _angular_core.Signal<string>;
|
|
161
|
+
protected readonly blossomCoreBorderColor: _angular_core.Signal<string>;
|
|
162
|
+
protected readonly blossomColor: _angular_core.Signal<BlossomColorPickerValue>;
|
|
163
|
+
protected readonly blossomCoreSize: _angular_core.Signal<22 | 30 | 26>;
|
|
164
|
+
protected readonly blossomOptions: _angular_core.Signal<{
|
|
165
|
+
defaultValue: BlossomColorPickerValue | undefined;
|
|
166
|
+
openOnHover: boolean;
|
|
167
|
+
initialExpanded: boolean;
|
|
168
|
+
animationDuration: number;
|
|
169
|
+
showAlphaSlider: boolean;
|
|
170
|
+
showCoreColor: boolean;
|
|
171
|
+
adaptivePositioning: boolean;
|
|
172
|
+
sliderPosition: _dayflow_blossom_color_picker_angular.SliderPosition;
|
|
173
|
+
coreSize: number;
|
|
174
|
+
petalSize: number;
|
|
175
|
+
}>;
|
|
176
|
+
protected readonly blossomColors: _angular_core.Signal<ColorInput[] | undefined>;
|
|
141
177
|
protected readonly hasValue: _angular_core.Signal<boolean>;
|
|
142
178
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
143
179
|
protected readonly showArrows: _angular_core.Signal<boolean>;
|
|
@@ -184,6 +220,8 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
184
220
|
protected onArrowClick(event: MouseEvent, direction: 'up' | 'down'): void;
|
|
185
221
|
protected togglePasswordVisibility(): void;
|
|
186
222
|
protected copyColorToClipboard(): void;
|
|
223
|
+
protected onBlossomColorChange(color: BlossomColorPickerColor): void;
|
|
224
|
+
protected onBlossomColorCollapse(color: BlossomColorPickerColor): void;
|
|
187
225
|
private _emitControl;
|
|
188
226
|
private _runAsyncValidation;
|
|
189
227
|
private _cancelAsyncValidation;
|
|
@@ -196,8 +234,11 @@ declare class ZInputComponent implements OnInit, ControlValueAccessor {
|
|
|
196
234
|
private _getEffectiveType;
|
|
197
235
|
private _getEffectiveDecimalMarker;
|
|
198
236
|
private _getValidationErrors;
|
|
237
|
+
private _normalizeHexColor;
|
|
238
|
+
private _syncBlossomColorFromHex;
|
|
239
|
+
private _generateColorPalette;
|
|
199
240
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZInputComponent, never>;
|
|
200
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZInputComponent, "z-input", ["zInput"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zType": { "alias": "zType"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zAlign": { "alias": "zAlign"; "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; }; "zRequired": { "alias": "zRequired"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zReadonly": { "alias": "zReadonly"; "required": false; "isSignal": true; }; "zPrefix": { "alias": "zPrefix"; "required": false; "isSignal": true; }; "zSuffix": { "alias": "zSuffix"; "required": false; "isSignal": true; }; "zMin": { "alias": "zMin"; "required": false; "isSignal": true; }; "zMax": { "alias": "zMax"; "required": false; "isSignal": true; }; "zStep": { "alias": "zStep"; "required": false; "isSignal": true; }; "zShowArrows": { "alias": "zShowArrows"; "required": false; "isSignal": true; }; "zMask": { "alias": "zMask"; "required": false; "isSignal": true; }; "zDecimalPlaces": { "alias": "zDecimalPlaces"; "required": false; "isSignal": true; }; "zAllowNegative": { "alias": "zAllowNegative"; "required": false; "isSignal": true; }; "zThousandSeparator": { "alias": "zThousandSeparator"; "required": false; "isSignal": true; }; "zDecimalMarker": { "alias": "zDecimalMarker"; "required": false; "isSignal": true; }; "zValidators": { "alias": "zValidators"; "required": false; "isSignal": true; }; "zAsyncValidators": { "alias": "zAsyncValidators"; "required": false; "isSignal": true; }; "zAsyncDebounce": { "alias": "zAsyncDebounce"; "required": false; "isSignal": true; }; "zAsyncValidateOn": { "alias": "zAsyncValidateOn"; "required": false; "isSignal": true; }; "zShowPasswordToggle": { "alias": "zShowPasswordToggle"; "required": false; "isSignal": true; }; "zSearch": { "alias": "zSearch"; "required": false; "isSignal": true; }; "zDebounce": { "alias": "zDebounce"; "required": false; "isSignal": true; }; "zAutofocus": { "alias": "zAutofocus"; "required": false; "isSignal": true; }; "zAutoComplete": { "alias": "zAutoComplete"; "required": false; "isSignal": true; }; "zAllowClear": { "alias": "zAllowClear"; "required": false; "isSignal": true; }; "zAutoSizeContent": { "alias": "zAutoSizeContent"; "required": false; "isSignal": true; }; "zRows": { "alias": "zRows"; "required": false; "isSignal": true; }; "zResize": { "alias": "zResize"; "required": false; "isSignal": true; }; "zMaxLength": { "alias": "zMaxLength"; "required": false; "isSignal": true; }; "zAutoSuggest": { "alias": "zAutoSuggest"; "required": false; "isSignal": true; }; }, { "zOnSearch": "zOnSearch"; "zOnChange": "zOnChange"; "zOnBlur": "zOnBlur"; "zOnFocus": "zOnFocus"; "zOnKeydown": "zOnKeydown"; "zOnEnter": "zOnEnter"; "zControl": "zControl"; "zEvent": "zEvent"; }, never, never, true, never>;
|
|
241
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZInputComponent, "z-input", ["zInput"], { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zType": { "alias": "zType"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zAlign": { "alias": "zAlign"; "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; }; "zRequired": { "alias": "zRequired"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zReadonly": { "alias": "zReadonly"; "required": false; "isSignal": true; }; "zPrefix": { "alias": "zPrefix"; "required": false; "isSignal": true; }; "zSuffix": { "alias": "zSuffix"; "required": false; "isSignal": true; }; "zMin": { "alias": "zMin"; "required": false; "isSignal": true; }; "zMax": { "alias": "zMax"; "required": false; "isSignal": true; }; "zStep": { "alias": "zStep"; "required": false; "isSignal": true; }; "zShowArrows": { "alias": "zShowArrows"; "required": false; "isSignal": true; }; "zMask": { "alias": "zMask"; "required": false; "isSignal": true; }; "zDecimalPlaces": { "alias": "zDecimalPlaces"; "required": false; "isSignal": true; }; "zAllowNegative": { "alias": "zAllowNegative"; "required": false; "isSignal": true; }; "zThousandSeparator": { "alias": "zThousandSeparator"; "required": false; "isSignal": true; }; "zDecimalMarker": { "alias": "zDecimalMarker"; "required": false; "isSignal": true; }; "zValidators": { "alias": "zValidators"; "required": false; "isSignal": true; }; "zAsyncValidators": { "alias": "zAsyncValidators"; "required": false; "isSignal": true; }; "zAsyncDebounce": { "alias": "zAsyncDebounce"; "required": false; "isSignal": true; }; "zAsyncValidateOn": { "alias": "zAsyncValidateOn"; "required": false; "isSignal": true; }; "zShowPasswordToggle": { "alias": "zShowPasswordToggle"; "required": false; "isSignal": true; }; "zSearch": { "alias": "zSearch"; "required": false; "isSignal": true; }; "zDebounce": { "alias": "zDebounce"; "required": false; "isSignal": true; }; "zAutofocus": { "alias": "zAutofocus"; "required": false; "isSignal": true; }; "zAutoComplete": { "alias": "zAutoComplete"; "required": false; "isSignal": true; }; "zAllowClear": { "alias": "zAllowClear"; "required": false; "isSignal": true; }; "zAutoSizeContent": { "alias": "zAutoSizeContent"; "required": false; "isSignal": true; }; "zRows": { "alias": "zRows"; "required": false; "isSignal": true; }; "zResize": { "alias": "zResize"; "required": false; "isSignal": true; }; "zMaxLength": { "alias": "zMaxLength"; "required": false; "isSignal": true; }; "zAutoSuggest": { "alias": "zAutoSuggest"; "required": false; "isSignal": true; }; "zColorConfig": { "alias": "zColorConfig"; "required": false; "isSignal": true; }; }, { "zOnSearch": "zOnSearch"; "zOnChange": "zOnChange"; "zOnBlur": "zOnBlur"; "zOnFocus": "zOnFocus"; "zOnKeydown": "zOnKeydown"; "zOnEnter": "zOnEnter"; "zOnColorCollapse": "zOnColorCollapse"; "zControl": "zControl"; "zEvent": "zEvent"; }, never, never, true, never>;
|
|
201
242
|
}
|
|
202
243
|
|
|
203
244
|
declare const zInputVariants: (props?: ({
|
|
@@ -154,6 +154,7 @@ declare class ZModalRef<T = any, R = any, U = any> {
|
|
|
154
154
|
private _result?;
|
|
155
155
|
componentInstance: T | null;
|
|
156
156
|
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
157
|
+
readonly zAfterClose: EventEmitter<R | undefined>;
|
|
157
158
|
constructor(_overlayRef: OverlayRef, _config: ZModalOptions<T, U>, _containerInstance: ZModalComponent<T, U>, _platformId: object);
|
|
158
159
|
setLoading(value: boolean): void;
|
|
159
160
|
close(result?: R): void;
|
|
@@ -165,6 +166,7 @@ declare class ZModalRef<T = any, R = any, U = any> {
|
|
|
165
166
|
declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestroy, AfterViewChecked {
|
|
166
167
|
zOk: _angular_core.OutputEmitterRef<void>;
|
|
167
168
|
zCancel: _angular_core.OutputEmitterRef<void>;
|
|
169
|
+
zAfterClose: _angular_core.OutputEmitterRef<void>;
|
|
168
170
|
readonly zScrollbar: _angular_core.OutputEmitterRef<NgScrollbar>;
|
|
169
171
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
170
172
|
readonly zVisible: _angular_core.ModelSignal<boolean>;
|
|
@@ -225,7 +227,7 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
|
|
|
225
227
|
protected readonly effectiveOkText: _angular_core.Signal<string | null | undefined>;
|
|
226
228
|
protected readonly effectiveCancelText: _angular_core.Signal<string | null | undefined>;
|
|
227
229
|
protected readonly effectiveOkDestructive: _angular_core.Signal<boolean | undefined>;
|
|
228
|
-
protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "link" | "default" | "primary" | "secondary" | "destructive" | "success" | "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" | null | undefined>;
|
|
230
|
+
protected readonly effectiveTypeOk: _angular_core.Signal<"info" | "warning" | "error" | "link" | "default" | "primary" | "secondary" | "destructive" | "success" | "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" | null | undefined>;
|
|
229
231
|
protected readonly effectiveOkDisabled: _angular_core.Signal<boolean | undefined>;
|
|
230
232
|
protected readonly effectiveLoading: _angular_core.Signal<boolean>;
|
|
231
233
|
protected readonly effectiveContentLoading: _angular_core.Signal<boolean>;
|
|
@@ -249,7 +251,7 @@ declare class ZModalComponent<T, U> extends BasePortalOutlet implements OnDestro
|
|
|
249
251
|
private _closeWithAnimation;
|
|
250
252
|
private _disposeTemplateOverlay;
|
|
251
253
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZModalComponent<any, any>, never>;
|
|
252
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZModalComponent<any, any>, "z-modal", ["zModal"], { "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; }; "zClosable": { "alias": "zClosable"; "required": false; "isSignal": true; }; "zMaskClosable": { "alias": "zMaskClosable"; "required": false; "isSignal": true; }; "zHideHeader": { "alias": "zHideHeader"; "required": false; "isSignal": true; }; "zHideFooter": { "alias": "zHideFooter"; "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; }; "zContentLoading": { "alias": "zContentLoading"; "required": false; "isSignal": true; }; "zSkeletonRows": { "alias": "zSkeletonRows"; "required": false; "isSignal": true; }; "zOverlay": { "alias": "zOverlay"; "required": false; "isSignal": true; }; }, { "zOk": "zOk"; "zCancel": "zCancel"; "zScrollbar": "zScrollbar"; "zVisible": "zVisibleChange"; }, ["customHeader", "customContent", "customFooter"], ["*"], true, never>;
|
|
254
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZModalComponent<any, any>, "z-modal", ["zModal"], { "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; }; "zClosable": { "alias": "zClosable"; "required": false; "isSignal": true; }; "zMaskClosable": { "alias": "zMaskClosable"; "required": false; "isSignal": true; }; "zHideHeader": { "alias": "zHideHeader"; "required": false; "isSignal": true; }; "zHideFooter": { "alias": "zHideFooter"; "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; }; "zContentLoading": { "alias": "zContentLoading"; "required": false; "isSignal": true; }; "zSkeletonRows": { "alias": "zSkeletonRows"; "required": false; "isSignal": true; }; "zOverlay": { "alias": "zOverlay"; "required": false; "isSignal": true; }; }, { "zOk": "zOk"; "zCancel": "zCancel"; "zAfterClose": "zAfterClose"; "zScrollbar": "zScrollbar"; "zVisible": "zVisibleChange"; }, ["customHeader", "customContent", "customFooter"], ["*"], true, never>;
|
|
253
255
|
}
|
|
254
256
|
|
|
255
257
|
declare class ZModalService {
|
|
@@ -2,6 +2,7 @@ import * as _shival99_angular_virtual from '@shival99/angular-virtual';
|
|
|
2
2
|
import * as _angular_core from '@angular/core';
|
|
3
3
|
import { TemplateRef, Signal, OnInit, ElementRef, PipeTransform } from '@angular/core';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { ZIcon } from '@shival99/z-ui/components/z-icon';
|
|
5
6
|
import { ZPopoverPosition, ZPopoverControl } from '@shival99/z-ui/components/z-popover';
|
|
6
7
|
import { ZEvent } from '@shival99/z-ui/utils';
|
|
7
8
|
import { ClassValue } from 'clsx';
|
|
@@ -116,7 +117,7 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
116
117
|
readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
117
118
|
readonly zReadonly: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
118
119
|
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
119
|
-
readonly zPrefix: _angular_core.InputSignal<"" |
|
|
120
|
+
readonly zPrefix: _angular_core.InputSignal<"" | ZIcon>;
|
|
120
121
|
readonly zAllowClear: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
121
122
|
readonly zWrap: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
122
123
|
readonly zShowSearch: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
@@ -124,7 +125,7 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
124
125
|
readonly zDebounce: _angular_core.InputSignal<number>;
|
|
125
126
|
readonly zNotFoundText: _angular_core.InputSignal<string>;
|
|
126
127
|
readonly zEmptyText: _angular_core.InputSignal<string>;
|
|
127
|
-
readonly zEmptyIcon: _angular_core.InputSignal<
|
|
128
|
+
readonly zEmptyIcon: _angular_core.InputSignal<ZIcon>;
|
|
128
129
|
readonly zMaxTagCount: _angular_core.InputSignal<number>;
|
|
129
130
|
readonly zDropdownMaxHeight: _angular_core.InputSignal<number>;
|
|
130
131
|
readonly zOptionHeight: _angular_core.InputSignal<number>;
|
|
@@ -190,6 +191,7 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
190
191
|
protected readonly displayedTags: _angular_core.Signal<ZSelectOption<T>[]>;
|
|
191
192
|
protected readonly remainingCount: _angular_core.Signal<number>;
|
|
192
193
|
protected readonly hasValue: _angular_core.Signal<boolean>;
|
|
194
|
+
protected readonly isAllSelected: _angular_core.Signal<boolean>;
|
|
193
195
|
protected readonly filteredOptions: _angular_core.Signal<{
|
|
194
196
|
label: string;
|
|
195
197
|
value: T;
|
|
@@ -238,6 +240,7 @@ declare class ZSelectComponent<T = unknown> implements OnInit, ControlValueAcces
|
|
|
238
240
|
protected clearAll(event: MouseEvent): void;
|
|
239
241
|
protected selectAll(): void;
|
|
240
242
|
protected removeAll(): void;
|
|
243
|
+
protected toggleSelectAllAction(): void;
|
|
241
244
|
protected trackByValue: (_index: number, option: ZSelectOption<T>) => unknown;
|
|
242
245
|
private _emitControl;
|
|
243
246
|
private _setupLoadMoreObserver;
|
|
@@ -53,16 +53,16 @@ declare class ZStepsComponent implements AfterViewInit {
|
|
|
53
53
|
protected readonly effectiveOrientation: _angular_core.Signal<ZStepsOrientation>;
|
|
54
54
|
protected readonly containerClasses: _angular_core.Signal<string>;
|
|
55
55
|
protected readonly getItemClasses: _angular_core.Signal<string>;
|
|
56
|
-
protected readonly
|
|
56
|
+
protected readonly iconClassesMap: _angular_core.Signal<Map<number, string>>;
|
|
57
57
|
protected readonly lineClasses: _angular_core.Signal<string>;
|
|
58
58
|
protected readonly getConnectorClassesByIndex: _angular_core.Signal<string[]>;
|
|
59
59
|
protected readonly stepStatuses: _angular_core.Signal<ZStepsStatus[]>;
|
|
60
60
|
protected readonly getArrowClassesByIndex: _angular_core.Signal<string[]>;
|
|
61
61
|
protected readonly getDotClassesByIndex: _angular_core.Signal<string[]>;
|
|
62
62
|
protected readonly getDotLineClassesByIndex: _angular_core.Signal<string[]>;
|
|
63
|
-
protected readonly defaultIconSize: _angular_core.Signal<NonNullable<
|
|
64
|
-
protected readonly getIconSizeByIndex: _angular_core.Signal<NonNullable<
|
|
65
|
-
protected readonly iconWidth: _angular_core.Signal<
|
|
63
|
+
protected readonly defaultIconSize: _angular_core.Signal<NonNullable<string | number | null | undefined>>;
|
|
64
|
+
protected readonly getIconSizeByIndex: _angular_core.Signal<NonNullable<string | number | null | undefined>[]>;
|
|
65
|
+
protected readonly iconWidth: _angular_core.Signal<32 | 44 | 36>;
|
|
66
66
|
ngAfterViewInit(): void;
|
|
67
67
|
private _updateStepOverride;
|
|
68
68
|
private _setupResizeObserver;
|
|
@@ -6,6 +6,9 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
6
6
|
import { VariantProps } from 'class-variance-authority';
|
|
7
7
|
|
|
8
8
|
type ZSwitchSize = 'sm' | 'default' | 'lg';
|
|
9
|
+
type ZSwitchMode = 'default' | 'inner';
|
|
10
|
+
/** Maximum character length for inner text */
|
|
11
|
+
declare const Z_SWITCH_INNER_TEXT_MAX_LENGTH = 8;
|
|
9
12
|
|
|
10
13
|
declare class ZSwitchComponent implements ControlValueAccessor {
|
|
11
14
|
readonly zChange: _angular_core.OutputEmitterRef<boolean>;
|
|
@@ -14,12 +17,17 @@ declare class ZSwitchComponent implements ControlValueAccessor {
|
|
|
14
17
|
readonly zEvent: _angular_core.OutputEmitterRef<ZEvent>;
|
|
15
18
|
readonly class: _angular_core.InputSignal<ClassValue>;
|
|
16
19
|
readonly zSize: _angular_core.InputSignal<ZSwitchSize>;
|
|
20
|
+
readonly zMode: _angular_core.InputSignal<ZSwitchMode>;
|
|
17
21
|
readonly zLabel: _angular_core.InputSignal<string>;
|
|
18
22
|
readonly zText: _angular_core.InputSignal<string>;
|
|
23
|
+
readonly zCheckedText: _angular_core.InputSignal<string>;
|
|
24
|
+
readonly zUncheckedText: _angular_core.InputSignal<string>;
|
|
19
25
|
readonly zDisabled: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
20
26
|
readonly zLoading: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
21
27
|
readonly zTextPosition: _angular_core.InputSignal<"left" | "right">;
|
|
28
|
+
readonly zWave: _angular_core.InputSignalWithTransform<boolean, string | boolean>;
|
|
22
29
|
readonly zChecked: _angular_core.ModelSignal<boolean>;
|
|
30
|
+
protected readonly isInnerMode: _angular_core.Signal<boolean>;
|
|
23
31
|
private readonly _disabled;
|
|
24
32
|
protected readonly isDisabled: _angular_core.Signal<boolean>;
|
|
25
33
|
protected readonly hostClasses: _angular_core.Signal<string>;
|
|
@@ -27,6 +35,10 @@ declare class ZSwitchComponent implements ControlValueAccessor {
|
|
|
27
35
|
protected readonly thumbClasses: _angular_core.Signal<string>;
|
|
28
36
|
protected readonly labelClasses: _angular_core.Signal<string>;
|
|
29
37
|
protected readonly switchState: _angular_core.Signal<"checked" | "unchecked">;
|
|
38
|
+
protected readonly innerLeftClasses: _angular_core.Signal<string>;
|
|
39
|
+
protected readonly innerRightClasses: _angular_core.Signal<string>;
|
|
40
|
+
protected readonly displayCheckedText: _angular_core.Signal<string>;
|
|
41
|
+
protected readonly displayUncheckedText: _angular_core.Signal<string>;
|
|
30
42
|
protected readonly loadingIconSize: _angular_core.Signal<"10" | "16" | "12">;
|
|
31
43
|
private _onChange;
|
|
32
44
|
private _onTouched;
|
|
@@ -36,21 +48,30 @@ declare class ZSwitchComponent implements ControlValueAccessor {
|
|
|
36
48
|
setDisabledState(isDisabled: boolean): void;
|
|
37
49
|
protected onFocus(event: FocusEvent): void;
|
|
38
50
|
protected onBlur(event: FocusEvent): void;
|
|
39
|
-
protected onSwitchClick(): void;
|
|
51
|
+
protected onSwitchClick(event: MouseEvent): void;
|
|
52
|
+
private _triggerWaveEffect;
|
|
40
53
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ZSwitchComponent, never>;
|
|
41
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZSwitchComponent, "z-switch", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zTextPosition": { "alias": "zTextPosition"; "required": false; "isSignal": true; }; "zChecked": { "alias": "zChecked"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; "zOnBlur": "zOnBlur"; "zOnFocus": "zOnFocus"; "zEvent": "zEvent"; "zChecked": "zCheckedChange"; }, never, never, true, never>;
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ZSwitchComponent, "z-switch", never, { "class": { "alias": "class"; "required": false; "isSignal": true; }; "zSize": { "alias": "zSize"; "required": false; "isSignal": true; }; "zMode": { "alias": "zMode"; "required": false; "isSignal": true; }; "zLabel": { "alias": "zLabel"; "required": false; "isSignal": true; }; "zText": { "alias": "zText"; "required": false; "isSignal": true; }; "zCheckedText": { "alias": "zCheckedText"; "required": false; "isSignal": true; }; "zUncheckedText": { "alias": "zUncheckedText"; "required": false; "isSignal": true; }; "zDisabled": { "alias": "zDisabled"; "required": false; "isSignal": true; }; "zLoading": { "alias": "zLoading"; "required": false; "isSignal": true; }; "zTextPosition": { "alias": "zTextPosition"; "required": false; "isSignal": true; }; "zWave": { "alias": "zWave"; "required": false; "isSignal": true; }; "zChecked": { "alias": "zChecked"; "required": false; "isSignal": true; }; }, { "zChange": "zChange"; "zOnBlur": "zOnBlur"; "zOnFocus": "zOnFocus"; "zEvent": "zEvent"; "zChecked": "zCheckedChange"; }, never, never, true, never>;
|
|
42
55
|
}
|
|
43
56
|
|
|
44
57
|
declare const zSwitchVariants: (props?: ({
|
|
45
58
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
59
|
+
zMode?: "default" | "inner" | null | undefined;
|
|
46
60
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
47
61
|
declare const zSwitchThumbVariants: (props?: ({
|
|
48
62
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
63
|
+
zMode?: "default" | "inner" | null | undefined;
|
|
49
64
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
50
65
|
declare const zSwitchLabelVariants: (props?: ({
|
|
51
66
|
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
52
67
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
68
|
+
declare const zSwitchInnerLeftVariants: (props?: ({
|
|
69
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
70
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
71
|
+
declare const zSwitchInnerRightVariants: (props?: ({
|
|
72
|
+
zSize?: "sm" | "default" | "lg" | null | undefined;
|
|
73
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
53
74
|
type ZSwitchVariants = VariantProps<typeof zSwitchVariants>;
|
|
54
75
|
|
|
55
|
-
export { ZSwitchComponent, zSwitchLabelVariants, zSwitchThumbVariants, zSwitchVariants };
|
|
56
|
-
export type { ZSwitchSize, ZSwitchVariants };
|
|
76
|
+
export { ZSwitchComponent, Z_SWITCH_INNER_TEXT_MAX_LENGTH, zSwitchInnerLeftVariants, zSwitchInnerRightVariants, zSwitchLabelVariants, zSwitchThumbVariants, zSwitchVariants };
|
|
77
|
+
export type { ZSwitchMode, ZSwitchSize, ZSwitchVariants };
|
|
@@ -530,6 +530,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
530
530
|
protected readonly showHeaderFooterShadow: _angular_core.WritableSignal<boolean>;
|
|
531
531
|
protected readonly hasScrollLeft: _angular_core.WritableSignal<boolean>;
|
|
532
532
|
protected readonly hasScrollRight: _angular_core.WritableSignal<boolean>;
|
|
533
|
+
protected readonly pinnedRowHeights: _angular_core.WritableSignal<Record<string, number>>;
|
|
533
534
|
private readonly _columnPinVersion;
|
|
534
535
|
private readonly _dataForceUpdate;
|
|
535
536
|
protected readonly _rowUpdate: _angular_core.WritableSignal<{
|
|
@@ -613,6 +614,7 @@ declare class ZTableComponent<T> implements AfterViewInit {
|
|
|
613
614
|
private _runAsyncStateUpdate;
|
|
614
615
|
private _emitFilterChangeDebounced;
|
|
615
616
|
private _checkScrollState;
|
|
617
|
+
private _refreshPinnedRowHeights;
|
|
616
618
|
private _checkVerticalScroll;
|
|
617
619
|
private _checkLastRowTouchesBottom;
|
|
618
620
|
private _checkHorizontalScroll;
|
|
@@ -54,7 +54,9 @@ declare class ZSafeHtmlPipe implements PipeTransform {
|
|
|
54
54
|
*/
|
|
55
55
|
declare class ZSafeResourceUrlPipe implements PipeTransform {
|
|
56
56
|
private readonly _sanitizer;
|
|
57
|
+
private readonly _allowedProtocols;
|
|
57
58
|
transform(value: string | null | undefined): SafeResourceUrl | null;
|
|
59
|
+
private _isAllowedResourceUrl;
|
|
58
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZSafeResourceUrlPipe, never>;
|
|
59
61
|
static ɵpipe: i0.ɵɵPipeDeclaration<ZSafeResourceUrlPipe, "zSafeResourceUrl", true>;
|
|
60
62
|
}
|
|
@@ -103,6 +103,7 @@ declare function provideZScrollbar(): EnvironmentProviders;
|
|
|
103
103
|
*/
|
|
104
104
|
declare function provideZTheme(config?: ZThemeConfig): EnvironmentProviders;
|
|
105
105
|
|
|
106
|
+
type ZUITranslationsLoader = (lang: string) => Promise<ZUITranslations>;
|
|
106
107
|
interface ZTranslateProviderConfig {
|
|
107
108
|
/** Default language (default: 'vi') */
|
|
108
109
|
defaultLang?: string;
|
|
@@ -113,13 +114,14 @@ interface ZTranslateProviderConfig {
|
|
|
113
114
|
/**
|
|
114
115
|
* Whether to include Z-UI default translations (default: true)
|
|
115
116
|
* Z-UI translations are merged with user translations,
|
|
116
|
-
* user translations take precedence
|
|
117
|
+
* user translations take precedence.
|
|
117
118
|
*/
|
|
118
119
|
includeZUITranslations?: boolean;
|
|
119
120
|
/**
|
|
120
121
|
* Path to Z-UI translation override files (optional)
|
|
121
|
-
* If set, will load translations from this path to override Z-UI defaults
|
|
122
|
-
* Example: './assets/i18n/z-ui/' will load './assets/i18n/z-ui/vi.json'
|
|
122
|
+
* If set, will load translations from this path to override Z-UI defaults.
|
|
123
|
+
* Example: './assets/i18n/z-ui/' will load './assets/i18n/z-ui/vi.json'.
|
|
124
|
+
* Recommended for file-based customization of built-in Z-UI keys.
|
|
123
125
|
*
|
|
124
126
|
* File format:
|
|
125
127
|
* ```json
|
|
@@ -130,22 +132,14 @@ interface ZTranslateProviderConfig {
|
|
|
130
132
|
*/
|
|
131
133
|
zuiOverridePath?: string;
|
|
132
134
|
/**
|
|
133
|
-
*
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* @example
|
|
137
|
-
* ```typescript
|
|
138
|
-
* customZUITranslations: {
|
|
139
|
-
* vi: { i18n_z_ui_table_noData: 'Bảng trống' },
|
|
140
|
-
* en: { i18n_z_ui_table_noData: 'Empty table' },
|
|
141
|
-
* }
|
|
142
|
-
* ```
|
|
135
|
+
* Custom loader for Z-UI built-in translations.
|
|
136
|
+
* Useful when you want to control how default translations are loaded (dynamic import, remote source, etc.)
|
|
143
137
|
*/
|
|
144
|
-
|
|
138
|
+
zuiTranslationsLoader?: ZUITranslationsLoader;
|
|
145
139
|
}
|
|
146
140
|
|
|
147
|
-
declare function zCreateTranslateLoader(http: HttpClient, path?: string, extension?: string, includeZUI?: boolean, zuiOverridePath?: string,
|
|
141
|
+
declare function zCreateTranslateLoader(http: HttpClient, path?: string, extension?: string, includeZUI?: boolean, zuiOverridePath?: string, zuiLoader?: ZUITranslationsLoader): TranslateLoader;
|
|
148
142
|
declare function provideZTranslate(config?: ZTranslateProviderConfig): EnvironmentProviders;
|
|
149
143
|
|
|
150
144
|
export { Z_CACHE_CONFIG, Z_INDEXDB_SERVICE, provideZCache, provideZIndexDb, provideZNgxMask, provideZScrollbar, provideZTheme, provideZTranslate, zCreateTranslateLoader };
|
|
151
|
-
export type { ZNgxMaskConfig, ZTranslateProviderConfig };
|
|
145
|
+
export type { ZNgxMaskConfig, ZTranslateProviderConfig, ZUITranslationsLoader };
|
|
@@ -25,6 +25,8 @@ declare class ZCacheService {
|
|
|
25
25
|
private static _decode;
|
|
26
26
|
private static _normalizeKey;
|
|
27
27
|
private static _getFullKey;
|
|
28
|
+
private static _decodeStorageKey;
|
|
29
|
+
private static _isManagedStorageKey;
|
|
28
30
|
private static _safeOperation;
|
|
29
31
|
static get<T>(key: string, defaultValue?: T, encrypt?: boolean): T | undefined;
|
|
30
32
|
static set<T>(key: string, data: T, encrypt?: boolean): boolean;
|
|
@@ -32,7 +34,6 @@ declare class ZCacheService {
|
|
|
32
34
|
static deleteMultiple(keys: string[]): boolean;
|
|
33
35
|
static clear(): boolean;
|
|
34
36
|
static has(key: string, encrypt?: boolean): boolean;
|
|
35
|
-
static keys(): string[];
|
|
36
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ZCacheService, never>;
|
|
37
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<ZCacheService>;
|
|
38
39
|
}
|
|
@@ -349,10 +350,14 @@ declare class ZIndexDbService {
|
|
|
349
350
|
|
|
350
351
|
declare class ZTranslateService {
|
|
351
352
|
private readonly _translate;
|
|
353
|
+
private readonly _destroyRef;
|
|
352
354
|
readonly currentLang: i0.WritableSignal<string>;
|
|
353
355
|
readonly availableLangs: i0.WritableSignal<string[]>;
|
|
354
356
|
constructor();
|
|
355
357
|
private _initialize;
|
|
358
|
+
private _bindTranslateEvents;
|
|
359
|
+
private _setCurrentLang;
|
|
360
|
+
private _syncAvailableLangs;
|
|
356
361
|
use(lang: string): void;
|
|
357
362
|
getLang(): string;
|
|
358
363
|
getLocale(): string;
|
package/types/z-ui.d.ts
CHANGED