@liuk123/insui 0.0.1-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +63 -0
  2. package/fesm2022/liuk123-insui.mjs +6841 -0
  3. package/fesm2022/liuk123-insui.mjs.map +1 -0
  4. package/index.d.ts +2511 -0
  5. package/package.json +26 -0
  6. package/styles/basic/main.less +48 -0
  7. package/styles/components/appearance.less +39 -0
  8. package/styles/components/avatar.less +108 -0
  9. package/styles/components/button.less +145 -0
  10. package/styles/components/checkbox.less +81 -0
  11. package/styles/components/chip.less +109 -0
  12. package/styles/components/group.less +155 -0
  13. package/styles/components/icon.less +43 -0
  14. package/styles/components/icons.less +38 -0
  15. package/styles/components/label.less +44 -0
  16. package/styles/components/link.less +55 -0
  17. package/styles/components/notification.less +156 -0
  18. package/styles/components/radio.less +58 -0
  19. package/styles/ins-ui-global.css +1109 -0
  20. package/styles/ins-ui-global.less +8 -0
  21. package/styles/markup/ins-list.less +136 -0
  22. package/styles/markup/ins-required.less +13 -0
  23. package/styles/markup/ins-table.less +184 -0
  24. package/styles/mixins/appearance.less +45 -0
  25. package/styles/mixins/mixins.less +172 -0
  26. package/styles/theme/appearance/accent.less +14 -0
  27. package/styles/theme/appearance/action.less +40 -0
  28. package/styles/theme/appearance/flat.less +23 -0
  29. package/styles/theme/appearance/glass.less +17 -0
  30. package/styles/theme/appearance/outline.less +55 -0
  31. package/styles/theme/appearance/primary.less +49 -0
  32. package/styles/theme/appearance/secondary.less +54 -0
  33. package/styles/theme/appearance/status.less +125 -0
  34. package/styles/theme/appearance/textfield.less +48 -0
  35. package/styles/theme/appearance.less +10 -0
  36. package/styles/theme/palette.less +120 -0
  37. package/styles/theme/variables.less +44 -0
  38. package/styles/ui-local.less +4 -0
  39. package/styles/ui-theme.less +6 -0
  40. package/styles/variables/media.less +28 -0
package/index.d.ts ADDED
@@ -0,0 +1,2511 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, TemplateRef, Type, ExistingProvider, OnDestroy, Injector, ChangeDetectorRef, AfterViewInit, ComponentRef, InjectionToken, FactoryProvider, Signal, OnChanges, DoCheck, SimpleChanges, EventEmitter, EmbeddedViewRef, QueryList, Provider, ProviderToken, NgZone, ViewContainerRef, InputSignal, PipeTransform, ValueProvider, DestroyRef, ElementRef, TrackByFunction } from '@angular/core';
3
+ import { SafeResourceUrl, SafeValue, EventManagerPlugin } from '@angular/platform-browser';
4
+ import * as rxjs from 'rxjs';
5
+ import { Observable, BehaviorSubject, OperatorFunction, Observer, MonoTypeOperatorFunction, SchedulerLike, Subject } from 'rxjs';
6
+ import * as _liuk123_insui from '@liuk123/insui';
7
+ import { Validator, AbstractControl, ValidationErrors, NgControl, ControlValueAccessor, FormControlStatus, FormControl } from '@angular/forms';
8
+
9
+ declare class InsExpand implements OnInit {
10
+ protected readonly content: i0.Signal<TemplateRef<any>>;
11
+ protected readonly open: i0.WritableSignal<boolean>;
12
+ protected expanded: i0.WritableSignal<boolean>;
13
+ set expandedSetter(expanded: boolean);
14
+ ngOnInit(): void;
15
+ protected onTransitionEnd({ propertyName }: TransitionEvent): void;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsExpand, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsExpand, "ins-expand", never, { "expandedSetter": { "alias": "expanded"; "required": false; }; }, {}, ["content"], ["*"], true, never>;
18
+ }
19
+
20
+ type InsInteractiveState = 'active' | 'disabled' | 'hover';
21
+
22
+ declare class InsTransitioned {
23
+ private readonly el;
24
+ constructor();
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTransitioned, never>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTransitioned, "[insTransitioned]", never, {}, {}, never, never, true, never>;
27
+ }
28
+
29
+ declare class InsAppearance {
30
+ protected readonly nothing: undefined;
31
+ readonly insAppearance: i0.ModelSignal<(Record<never, never> & string) | "accent" | "action-destructive" | "action-grayscale" | "action" | "flat-destructive" | "flat-grayscale" | "flat" | "glass" | "icon" | "info" | "negative" | "neutral" | "outline-destructive" | "outline-grayscale" | "outline" | "positive" | "primary-destructive" | "primary-grayscale" | "primary" | "secondary-destructive" | "secondary-grayscale" | "secondary" | "textfield">;
32
+ readonly insAppearanceState: i0.ModelSignal<InsInteractiveState>;
33
+ readonly insAppearanceFocus: i0.ModelSignal<boolean>;
34
+ readonly insAppearanceMode: i0.ModelSignal<string | readonly string[]>;
35
+ modes: i0.Signal<string | readonly string[]>;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAppearance, never>;
37
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsAppearance, "[insAppearance]", never, { "insAppearance": { "alias": "insAppearance"; "required": false; "isSignal": true; }; "insAppearanceState": { "alias": "insAppearanceState"; "required": false; "isSignal": true; }; "insAppearanceFocus": { "alias": "insAppearanceFocus"; "required": false; "isSignal": true; }; "insAppearanceMode": { "alias": "insAppearanceMode"; "required": false; "isSignal": true; }; }, { "insAppearance": "insAppearanceChange"; "insAppearanceState": "insAppearanceStateChange"; "insAppearanceFocus": "insAppearanceFocusChange"; "insAppearanceMode": "insAppearanceModeChange"; }, never, never, true, [{ directive: typeof InsTransitioned; inputs: {}; outputs: {}; }]>;
38
+ }
39
+
40
+ declare class InsWithAppearance {
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsWithAppearance, never>;
42
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsWithAppearance, never, never, {}, {}, never, never, true, [{ directive: typeof InsAppearance; inputs: { "insAppearance": "appearance"; "insAppearanceState": "insAppearanceState"; "insAppearanceFocus": "insAppearanceFocus"; }; outputs: {}; }]>;
43
+ }
44
+
45
+ type InsHandler<T, G> = (item: T) => G;
46
+ type InsBooleanHandler<T> = InsHandler<T, boolean>;
47
+ type InsStringHandler<T> = InsHandler<T, string>;
48
+ type InsNumberHandler<T> = InsHandler<T, number>;
49
+
50
+ /**
51
+ * Workaround for {@link insAvatar} to properly handle icon color in {@link insAppearance}
52
+ */
53
+ type Icon = SafeResourceUrl | string | null | undefined;
54
+ declare function insInjectIconResolver(): InsStringHandler<string>;
55
+ declare class InsIcons {
56
+ protected readonly nothing: undefined;
57
+ resolver: InsStringHandler<string>;
58
+ iconStartSrc: i0.WritableSignal<Icon>;
59
+ iconEndSrc: i0.WritableSignal<string>;
60
+ set iconStart(value: string);
61
+ set iconEnd(value: string);
62
+ resolve(value?: string | null): string | null;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsIcons, never>;
64
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsIcons, never, never, { "iconStart": { "alias": "iconStart"; "required": false; }; "iconEnd": { "alias": "iconEnd"; "required": false; }; }, {}, never, never, true, never>;
65
+ }
66
+
67
+ declare class InsWithIcons {
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsWithIcons, never>;
69
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsWithIcons, never, never, {}, {}, never, never, true, [{ directive: typeof InsIcons; inputs: { "iconStart": "iconStart"; "iconEnd": "iconEnd"; }; outputs: {}; }]>;
70
+ }
71
+
72
+ declare class InsButton {
73
+ private readonly options;
74
+ protected readonly nothing: undefined;
75
+ size: i0.WritableSignal<"s" | "m" | "l" | "xs">;
76
+ set sizeSetter(size: 'xs' | 's' | 'm' | 'l');
77
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsButton, never>;
78
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsButton, "a[insButton],button[insButton],a[insIconButton],button[insIconButton]", never, { "sizeSetter": { "alias": "size"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsWithAppearance; inputs: {}; outputs: {}; }, { directive: typeof InsWithIcons; inputs: {}; outputs: {}; }]>;
79
+ }
80
+
81
+ type InsPoint = Readonly<[x: number, y: number]>;
82
+
83
+ declare abstract class InsAccessor {
84
+ abstract readonly type: string;
85
+ }
86
+ declare abstract class InsPositionAccessor extends InsAccessor {
87
+ abstract getPosition(rect: DOMRect, element?: HTMLElement): InsPoint;
88
+ }
89
+ declare abstract class InsRectAccessor extends InsAccessor {
90
+ abstract getClientRect(): DOMRect;
91
+ }
92
+ declare function insAsPositionAccessor(accessor: Type<InsPositionAccessor>): ExistingProvider;
93
+ declare function insAsRectAccessor(accessor: Type<InsRectAccessor>): ExistingProvider;
94
+
95
+ declare class InsActiveZone implements OnDestroy {
96
+ private readonly control;
97
+ private readonly active$;
98
+ private readonly zone;
99
+ private readonly el;
100
+ subActiveZones: readonly InsActiveZone[];
101
+ private readonly directParentActiveZone;
102
+ insActiveZoneParent: i0.WritableSignal<InsActiveZone>;
103
+ set insActiveZoneParentSetter(v: InsActiveZone | null);
104
+ readonly insActiveZoneChange: Observable<boolean>;
105
+ constructor();
106
+ ngOnDestroy(): void;
107
+ contains(node: Node): boolean;
108
+ private setZone;
109
+ private addSubActiveZone;
110
+ private removeSubActiveZone;
111
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsActiveZone, never>;
112
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsActiveZone, "[insActiveZone]:not(ng-container), [insActiveZoneChange]:not(ng-container), [insActiveZoneParent]:not(ng-container)", ["insActiveZone"], { "insActiveZoneParentSetter": { "alias": "insActiveZoneParent"; "required": false; }; }, { "insActiveZoneChange": "insActiveZoneChange"; }, never, never, true, never>;
113
+ }
114
+
115
+ declare class PolymorpheusComponent<T> {
116
+ readonly component: Type<T>;
117
+ readonly i?: Injector;
118
+ constructor(component: Type<T>, i?: Injector);
119
+ createInjector<C>(injector: Injector, useValue?: C): Injector;
120
+ }
121
+
122
+ /**
123
+ * ng-template wrapper directive also stores {@link ChangeDetectorRef} to properly handle change detection.
124
+ */
125
+ declare class PolymorpheusTemplate<C = any> {
126
+ readonly template: TemplateRef<C>;
127
+ private readonly cdr;
128
+ polymorpheus: C | '';
129
+ constructor(template?: TemplateRef<C>, cdr?: ChangeDetectorRef);
130
+ static ngTemplateContextGuard<T>(_dir: PolymorpheusTemplate<T>, _ctx: any): _ctx is T extends '' ? any : T;
131
+ check(): void;
132
+ static ɵfac: i0.ɵɵFactoryDeclaration<PolymorpheusTemplate<any>, never>;
133
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PolymorpheusTemplate<any>, "ng-template[polymorpheus]", ["polymorpheus"], { "polymorpheus": { "alias": "polymorpheus"; "required": false; }; }, {}, never, never, true, never>;
134
+ }
135
+
136
+ /**
137
+ * Primitive types used as content by {@link PolymorpheusOutlet}
138
+ */
139
+ type PolymorpheusPrimitive = SafeValue | number | string | null | undefined;
140
+
141
+ /**
142
+ * All content types supported by {@link PolymorpheusOutlet}
143
+ */
144
+ type PolymorpheusContent<C = any> = PolymorpheusComponent<unknown> | PolymorpheusPrimitive | PolymorpheusTemplate<Partial<C> | ''> | TemplateRef<Partial<C>>;
145
+
146
+ interface InsPortalItem<C = any> {
147
+ readonly activeZone?: InsActiveZone | null;
148
+ readonly appearance?: string;
149
+ readonly component: PolymorpheusComponent<any>;
150
+ readonly content: PolymorpheusContent<C>;
151
+ readonly context?: C;
152
+ }
153
+
154
+ declare abstract class InsVehicle {
155
+ abstract readonly type: string;
156
+ abstract toggle(value: boolean): void;
157
+ }
158
+ declare function insAsVehicle(vehicle: Type<InsVehicle>): ExistingProvider;
159
+
160
+ interface InsContext<T> {
161
+ $implicit: T;
162
+ }
163
+
164
+ declare abstract class InsDriver extends Observable<boolean> {
165
+ abstract readonly type: string;
166
+ }
167
+ declare function insAsDriver(driver: Type<InsDriver>): ExistingProvider;
168
+ declare abstract class InsDriverDirective implements AfterViewInit {
169
+ abstract type: string;
170
+ private readonly destroyRef;
171
+ private readonly drivers;
172
+ private readonly vehicles;
173
+ ngAfterViewInit(): void;
174
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDriverDirective, never>;
175
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDriverDirective, never, never, {}, {}, never, never, true, never>;
176
+ }
177
+
178
+ declare class InsDropdownDriver extends BehaviorSubject<boolean> implements InsDriver {
179
+ readonly type = "dropdown";
180
+ constructor();
181
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownDriver, never>;
182
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsDropdownDriver>;
183
+ }
184
+ declare class InsDropdownDriverDirective extends InsDriverDirective {
185
+ readonly type = "dropdown";
186
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownDriverDirective, never>;
187
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownDriverDirective, never, never, {}, {}, never, never, true, never>;
188
+ }
189
+
190
+ declare class InsDropdownPosition extends InsPositionAccessor {
191
+ private readonly options;
192
+ private readonly viewport;
193
+ readonly accessor: InsRectAccessor | null;
194
+ readonly type = "dropdown";
195
+ private previous?;
196
+ getPosition({ width, height }: DOMRect): InsPoint;
197
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownPosition, never>;
198
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownPosition, never, never, {}, {}, never, never, true, never>;
199
+ }
200
+
201
+ declare class InsDropdownDirective implements OnDestroy, InsPortalItem, InsRectAccessor, InsVehicle {
202
+ private readonly cdr;
203
+ private readonly service;
204
+ readonly el: HTMLElement;
205
+ readonly type = "dropdown";
206
+ readonly component: PolymorpheusComponent<any>;
207
+ ref: i0.WritableSignal<ComponentRef<unknown>>;
208
+ content: i0.WritableSignal<PolymorpheusContent<InsContext<{
209
+ close: () => void;
210
+ data: any;
211
+ }>>>;
212
+ private readonly drivers;
213
+ set insDropdown(content: PolymorpheusContent<InsContext<{
214
+ close: () => void;
215
+ data: any;
216
+ }>>);
217
+ itemData: any;
218
+ position: string;
219
+ constructor();
220
+ ngOnDestroy(): void;
221
+ getClientRect(): DOMRect;
222
+ toggle(show: boolean): void;
223
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownDirective, never>;
224
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownDirective, "[insDropdown]:not(ng-container):not(ng-template)", ["insDropdown"], { "insDropdown": { "alias": "insDropdown"; "required": false; }; "itemData": { "alias": "itemData"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsDropdownDriverDirective; inputs: {}; outputs: {}; }, { directive: typeof InsDropdownPosition; inputs: {}; outputs: {}; }]>;
225
+ }
226
+
227
+ declare const INS_ENTER = "ins-enter";
228
+ declare const INS_LEAVE = "ins-leave";
229
+ declare class InsAnimated {
230
+ private readonly renderer;
231
+ private readonly el;
232
+ constructor();
233
+ protected remove(): void;
234
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAnimated, never>;
235
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsAnimated, "[insAnimated]", never, {}, {}, never, never, true, never>;
236
+ }
237
+
238
+ declare class InsDropdownComponent implements AfterViewInit {
239
+ private readonly el;
240
+ private readonly win;
241
+ private readonly accessor;
242
+ protected readonly directive: InsDropdownDirective;
243
+ protected readonly options: _liuk123_insui.InsDropdownOptions;
244
+ protected readonly styles$: rxjs.Observable<Record<string, string>>;
245
+ ngAfterViewInit(): void;
246
+ protected readonly close: () => void;
247
+ private getStyles;
248
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownComponent, never>;
249
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsDropdownComponent, "ins-dropdown", never, {}, {}, never, never, true, [{ directive: typeof InsActiveZone; inputs: {}; outputs: {}; }, { directive: typeof InsAnimated; inputs: {}; outputs: {}; }]>;
250
+ }
251
+
252
+ /**
253
+ * A component to display a dropdown
254
+ */
255
+ declare const INS_DROPDOWN_COMPONENT: InjectionToken<Type<any>>;
256
+ declare const INS_DROPDOWN_CONTEXT: InjectionToken<Record<any, any>>;
257
+
258
+ /**
259
+ * Directive that monitors element visibility
260
+ */
261
+ declare class InsObscured {
262
+ private readonly activeZone;
263
+ private readonly enabled$;
264
+ private readonly obscured$;
265
+ readonly insObscured: rxjs.Observable<boolean>;
266
+ set insObscuredEnabled(enabled: boolean);
267
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsObscured, never>;
268
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsObscured, "[insObscured]", never, { "insObscuredEnabled": { "alias": "insObscuredEnabled"; "required": false; }; }, { "insObscured": "insObscured"; }, never, never, true, never>;
269
+ }
270
+
271
+ declare class InsDropdownOpen {
272
+ private readonly dropdownHost?;
273
+ insDropdownEnabled: boolean;
274
+ insDropdownOpen: i0.ModelSignal<boolean>;
275
+ private readonly directive;
276
+ readonly el: HTMLElement;
277
+ private readonly obscured;
278
+ private readonly cdr;
279
+ private readonly driver;
280
+ private readonly dropdown;
281
+ protected readonly driveEffect: i0.EffectRef;
282
+ private get host();
283
+ private readonly activeZone;
284
+ protected readonly syncSub: rxjs.Subscription;
285
+ readonly sub: rxjs.Subscription;
286
+ toggle(open: boolean): void;
287
+ private update;
288
+ private drive;
289
+ protected onEsc(event: Event | KeyboardEvent): void;
290
+ protected onClick(target: HTMLElement): void;
291
+ protected onArrow(event: KeyboardEvent, up: boolean): void;
292
+ protected onKeydown(event: KeyboardEvent): void;
293
+ private focusDropdown;
294
+ private get focused();
295
+ private get editable();
296
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownOpen, never>;
297
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownOpen, "[insDropdown][insDropdownOpen],[insDropdown][insDropdownOpenChange]", never, { "insDropdownEnabled": { "alias": "insDropdownEnabled"; "required": false; }; "insDropdownOpen": { "alias": "insDropdownOpen"; "required": false; "isSignal": true; }; }, { "insDropdownOpen": "insDropdownOpenChange"; }, ["dropdownHost"], never, true, [{ directive: typeof InsObscured; inputs: {}; outputs: {}; }, { directive: typeof InsActiveZone; inputs: { "insActiveZoneParent": "insActiveZoneParent"; }; outputs: { "insActiveZoneChange": "insActiveZoneChange"; }; }]>;
298
+ }
299
+
300
+ type InsHorizontalDirection = 'left' | 'right';
301
+ type InsVerticalDirection = 'bottom' | 'top';
302
+
303
+ type InsDropdownAlign = 'center' | 'left' | 'right';
304
+ type InsDropdownWidth = 'auto' | 'fixed' | 'min';
305
+ interface InsDropdownOptions {
306
+ readonly align: InsDropdownAlign;
307
+ readonly appearance: string;
308
+ readonly direction: InsVerticalDirection | null;
309
+ readonly limitWidth: InsDropdownWidth;
310
+ readonly maxHeight: number;
311
+ readonly minHeight: number;
312
+ readonly offset: number;
313
+ }
314
+ /** Default values for dropdown options */
315
+ declare const INS_DROPDOWN_DEFAULT_OPTIONS: InsDropdownOptions;
316
+ /**
317
+ * Default parameters for dropdown directive
318
+ */
319
+ declare const INS_DROPDOWN_OPTIONS: i0.InjectionToken<InsDropdownOptions>;
320
+ declare const insDropdownOptionsProvider: (options: Partial<InsDropdownOptions>) => FactoryProvider;
321
+ declare class InsDropdownOptionsDirective implements InsDropdownOptions {
322
+ private readonly options;
323
+ align: InsDropdownAlign;
324
+ appearance: string;
325
+ direction: InsVerticalDirection;
326
+ limitWidth: InsDropdownWidth;
327
+ minHeight: number;
328
+ maxHeight: number;
329
+ offset: number;
330
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownOptionsDirective, never>;
331
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownOptionsDirective, "[insDropdownAlign], [insDropdownAppearance], [insDropdownDirection], [insDropdownLimitWidth], [insDropdownMinHeight], [insDropdownMaxHeight], [insDropdownOffset]", never, { "align": { "alias": "insDropdownAlign"; "required": false; }; "appearance": { "alias": "insDropdownAppearance"; "required": false; }; "direction": { "alias": "insDropdownDirection"; "required": false; }; "limitWidth": { "alias": "insDropdownLimitWidth"; "required": false; }; "minHeight": { "alias": "insDropdownMinHeight"; "required": false; }; "maxHeight": { "alias": "insDropdownMaxHeight"; "required": false; }; "offset": { "alias": "insDropdownOffset"; "required": false; }; }, {}, never, never, true, never>;
332
+ }
333
+
334
+ declare class InsDropdownPositionSided extends InsPositionAccessor {
335
+ private readonly options;
336
+ private readonly viewport;
337
+ readonly accessor: InsRectAccessor | null;
338
+ insDropdownSidedOffset: number;
339
+ readonly type = "dropdown";
340
+ private previous;
341
+ getPosition({ width, height }: DOMRect): InsPoint;
342
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownPositionSided, never>;
343
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownPositionSided, "[insDropdownSided]", never, { "insDropdownSidedOffset": { "alias": "insDropdownSidedOffset"; "required": false; }; }, {}, never, never, true, never>;
344
+ }
345
+
346
+ declare class InsCopyProcessor {
347
+ private readonly win;
348
+ insCopyProcessor: InsStringHandler<string>;
349
+ protected onCopy(event: ClipboardEvent): void;
350
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsCopyProcessor, never>;
351
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsCopyProcessor, "[insCopyProcessor]", never, { "insCopyProcessor": { "alias": "insCopyProcessor"; "required": false; }; }, {}, never, never, true, never>;
352
+ }
353
+
354
+ declare function insCheckFixedPosition(element?: HTMLElement | null): boolean;
355
+
356
+ declare function containsOrAfter(current: Node, node: Node): boolean;
357
+
358
+ declare function isInput(element: Element): element is HTMLInputElement;
359
+ declare function isTextarea(element: Element): element is HTMLTextAreaElement;
360
+ declare function isTextfield(element: Element): element is HTMLInputElement | HTMLTextAreaElement;
361
+ declare function isElement(node?: Element | EventTarget | Node | null): node is Element;
362
+ declare function isHTMLElement(node: unknown): node is HTMLElement;
363
+ declare function isTextNode(node: Node): node is Text;
364
+
365
+ /**
366
+ * Gets actual target from open Shadow DOM if event happened within it
367
+ * 在使用 Web Components 或一般 ShadowDOM 时,你可能会在内部有多个可聚焦元素。 window 不会知道 shadow root 内部的聚焦转换。
368
+ * document.activeElement 将保持不变——即 shadow root 元素。而这个 shadow root 将有它自己的 activeElement 来跟踪真正的聚焦元素
369
+ * 然而,真正的目标将通过事件上的 composedPath 方法暴露给我们。
370
+ */
371
+ declare function getActualTarget(event: Event): Node;
372
+
373
+ declare function getDocumentOrShadowRoot(node: Node): DocumentOrShadowRoot;
374
+
375
+ /**
376
+ * Returns array of Elements covering edges of given element or null if at least one edge middle point is visible
377
+ *
378
+ * CAUTION: Empty array means element if offscreen i.e. covered by no elements, rather than not covered
379
+ * ```ts
380
+ * function insGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null
381
+ * ```
382
+ */
383
+ declare function insGetElementObscures(element: Element): readonly [Element, Element, Element, Element] | [] | null;
384
+
385
+ /**
386
+ * @description:
387
+ * cross browser way to get selected text
388
+ *
389
+ * History:
390
+ * BUG - window.getSelection() fails when text selected in a form field
391
+ * https://bugzilla.mozilla.org/show_bug.cgi?id=85686
392
+ */
393
+ declare function insGetSelectedText({ getSelection, document }: Window): string | null;
394
+
395
+ /**
396
+ * @description:
397
+ * Cross-browser @media (height/width)
398
+ *
399
+ * 1. window.innerWidth/Width
400
+ * 1.1. gets CSS viewport @media (height/width) which include scrollbars
401
+ * 1.2. initial-scale and zoom variations may cause mobile values to
402
+ * wrongly scale down to what PPK calls the visual
403
+ * viewport and be smaller than the @media values
404
+ * 1.3. zoom may cause values to be 1px off due to native rounding
405
+ *
406
+ * 2. document.documentElement.clientHeight/Width
407
+ * 2.1. equals CSS viewport width minus scrollbar width
408
+ * 2.2. matches @media (height) when there is no scrollbar
409
+ * 2.3. available cross-browser
410
+ * 2.4. inaccurate if doctype is missing
411
+ */
412
+ declare function getViewportHeight({ document, innerHeight }: Window): number;
413
+ declare function getViewportWidth({ document, innerWidth }: Window): number;
414
+
415
+ declare function injectElement<T = HTMLElement>(): T;
416
+
417
+ declare function insIsElementEditable(element: HTMLElement): boolean;
418
+
419
+ /**
420
+ * 获取光标位置的语义化单词范围(支持中文)
421
+ */
422
+ declare function insGetSemanticWordRange(range: Range): Range;
423
+ /**
424
+ * Creates a cloned range with its boundaries set at word boundaries
425
+ *
426
+ * @param currentRange a range to clone
427
+ * @return modified range
428
+ */
429
+ declare function insGetWordRange(currentRange: Range): Range;
430
+
431
+ declare class InsFade {
432
+ lineHeight: string | null;
433
+ size: string;
434
+ offset: string;
435
+ orientation: 'horizontal' | 'vertical' | '';
436
+ constructor();
437
+ private isEnd;
438
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsFade, never>;
439
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsFade, "[insFade]", never, { "lineHeight": { "alias": "insFadeHeight"; "required": false; }; "size": { "alias": "insFadeSize"; "required": false; }; "offset": { "alias": "insFadeOffset"; "required": false; }; "orientation": { "alias": "insFade"; "required": false; }; }, {}, never, never, true, never>;
440
+ }
441
+
442
+ declare class InsFocusTrap implements OnDestroy {
443
+ private readonly doc;
444
+ private readonly el;
445
+ private activeElement;
446
+ protected initialized: boolean;
447
+ constructor();
448
+ ngOnDestroy(): void;
449
+ protected onBlur(): void;
450
+ protected onFocusIn(node: Node): void;
451
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsFocusTrap, never>;
452
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsFocusTrap, "[insFocusTrap]", never, {}, {}, never, never, true, never>;
453
+ }
454
+
455
+ /**
456
+ * Finds and blurs current active element, including shadow DOM
457
+ */
458
+ declare function insBlurNativeFocused(doc: Document): void;
459
+
460
+ declare function insFocusedIn(node: Node): Signal<boolean>;
461
+
462
+ interface GetClosestFocusableOptions {
463
+ /**
464
+ * @description:
465
+ * current HTML element
466
+ */
467
+ initial: Element;
468
+ /**
469
+ * @description:
470
+ * determine if only keyboard focus is of interest
471
+ */
472
+ keyboard?: boolean;
473
+ /**
474
+ * @description:
475
+ * should it look backwards instead (find item that will be focused with Shift + Tab)
476
+ */
477
+ previous?: boolean;
478
+ /**
479
+ * @description:
480
+ * top Node limiting the search area
481
+ */
482
+ root: Node;
483
+ }
484
+ /**
485
+ * @description:
486
+ * Finds the closest element that can be focused with a keyboard or mouse in theory
487
+ */
488
+ declare function getClosestFocusable({ initial, root, previous, keyboard, }: GetClosestFocusableOptions): HTMLElement | null;
489
+
490
+ /**
491
+ * Returns current active element, including shadow dom
492
+ *
493
+ * @return element or null
494
+ */
495
+ declare function getNativeFocused({ activeElement }: Document): Element | null;
496
+
497
+ /**
498
+ * Checks if focused element is within given element.
499
+ *
500
+ * @param node
501
+ * @return true if focused node is contained within element
502
+ */
503
+ declare function isNativeFocusedIn(node?: Node | null): boolean;
504
+
505
+ /**
506
+ * Checks if element is focused.
507
+ *
508
+ * Could return true even after blur since element remains focused if you switch away from a browser tab.
509
+ *
510
+ * @param node or null (as a common return value of DOM nodes walking)
511
+ * @return true if focused
512
+ */
513
+ declare function isNativeFocused(node?: Node | null): boolean;
514
+
515
+ /**
516
+ * Checks for signs that element can be focused with keyboard. tabIndex above 0 is ignored to
517
+ * only target natural focus order. Not checking the possibility of an element to
518
+ * be focused, for example element can have display: none applied to it or any other
519
+ * circumstances could prevent actual focus.
520
+ */
521
+ declare function isNativeKeyboardFocusable(element: Element): boolean;
522
+
523
+ declare function isNativeMouseFocusable(element: Element): boolean;
524
+
525
+ /**
526
+ * Utility method for moving focus in a list of elements
527
+ *
528
+ * @param currentIndex currently focused index
529
+ * @param elements array of focusable elements
530
+ * @param step a step to move focus by, typically -1 or 1
531
+ */
532
+ declare function insMoveFocus(currentIndex: number, elements: readonly HTMLElement[], step: number): void;
533
+
534
+ /**
535
+ * Clamps a value between two inclusive limits
536
+ *
537
+ * @param value
538
+ * @param min lower limit
539
+ * @param max upper limit
540
+ */
541
+ declare function insClamp(value: number, min: number, max: number): number;
542
+
543
+ declare class InsNativeValidator implements Validator {
544
+ private readonly destroyRef;
545
+ private readonly zone;
546
+ private readonly el;
547
+ private control?;
548
+ insNativeValidator: i0.InputSignal<string>;
549
+ validate(control: AbstractControl): ValidationErrors | null;
550
+ protected handleValidation(): void;
551
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsNativeValidator, never>;
552
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsNativeValidator, "[insNativeValidator]", never, { "insNativeValidator": { "alias": "insNativeValidator"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
553
+ }
554
+
555
+ /**
556
+ * Service that monitors element visibility by polling and returning
557
+ * either null or an array of elements that overlap given element edges
558
+ */
559
+ declare class InsObscuredService extends Observable<readonly Element[] | null> {
560
+ private readonly el;
561
+ private readonly obscured$;
562
+ constructor();
563
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsObscuredService, never>;
564
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsObscuredService>;
565
+ }
566
+
567
+ declare class PolymorpheusContext<T> {
568
+ readonly $implicit: T;
569
+ constructor($implicit: T);
570
+ get polymorpheusOutlet(): T;
571
+ }
572
+
573
+ /**
574
+ * Use this token to access context within your components when
575
+ * instantiating them through {@link PolymorpheusOutlet}
576
+ */
577
+ declare const POLYMORPHEUS_CONTEXT: InjectionToken<Record<any, any>>;
578
+
579
+ declare class PolymorpheusOutlet<C> implements OnChanges, DoCheck {
580
+ private readonly vcr;
581
+ private readonly i;
582
+ private readonly t;
583
+ private c?;
584
+ content: PolymorpheusContent<C>;
585
+ context?: C;
586
+ static ngTemplateContextGuard<T>(_dir: PolymorpheusOutlet<T>, _ctx: any): _ctx is PolymorpheusContext<T extends PolymorpheusPrimitive ? T : never>;
587
+ ngOnChanges({ content }: SimpleChanges): void;
588
+ ngDoCheck(): void;
589
+ private get template();
590
+ private getContext;
591
+ private process;
592
+ private update;
593
+ static ɵfac: i0.ɵɵFactoryDeclaration<PolymorpheusOutlet<any>, never>;
594
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PolymorpheusOutlet<any>, "[polymorpheusOutlet]", never, { "content": { "alias": "polymorpheusOutlet"; "required": false; }; "context": { "alias": "polymorpheusOutletContext"; "required": false; }; }, {}, never, never, true, never>;
595
+ }
596
+
597
+ interface InsSwipeEvent {
598
+ readonly direction: InsSwipeDirection;
599
+ readonly events: [TouchEvent, TouchEvent];
600
+ }
601
+ type InsSwipeDirection = 'bottom' | 'left' | 'right' | 'top';
602
+ interface InsSwipeOptions {
603
+ readonly threshold: number;
604
+ readonly timeout: number;
605
+ }
606
+
607
+ declare class InsSwipeService extends Observable<InsSwipeEvent> {
608
+ constructor();
609
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsSwipeService, never>;
610
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsSwipeService>;
611
+ }
612
+
613
+ declare class InsSwipe {
614
+ readonly insSwipe: InsSwipeService;
615
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsSwipe, never>;
616
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsSwipe, "[insSwipe]", never, {}, { "insSwipe": "insSwipe"; }, never, never, true, never>;
617
+ }
618
+
619
+ declare const INS_SWIPE_OPTIONS: i0.InjectionToken<InsSwipeOptions>;
620
+
621
+ interface InsZoomEvent {
622
+ readonly clientX: number;
623
+ readonly clientY: number;
624
+ readonly delta: number;
625
+ readonly event: TouchEvent | WheelEvent;
626
+ }
627
+ interface InsZoomOptions {
628
+ readonly wheelSensitivity: number;
629
+ }
630
+
631
+ declare class InsZoomService extends Observable<InsZoomEvent> {
632
+ constructor();
633
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsZoomService, never>;
634
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsZoomService>;
635
+ }
636
+
637
+ declare class InsZoom {
638
+ protected readonly insZoom: InsZoomService;
639
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsZoom, never>;
640
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsZoom, "[insZoom]", never, {}, { "insZoom": "insZoom"; }, never, never, true, never>;
641
+ }
642
+
643
+ /**
644
+ * Zoom options
645
+ */
646
+ declare const INS_ZOOM_OPTIONS: i0.InjectionToken<InsZoomOptions>;
647
+
648
+ interface InsMedia {
649
+ readonly desktopLarge: number;
650
+ readonly desktopSmall: number;
651
+ readonly mobile: number;
652
+ readonly tablet?: number;
653
+ }
654
+ /**
655
+ * Token for media constant
656
+ */
657
+ declare const INS_MEDIA: i0.InjectionToken<InsMedia>;
658
+
659
+ type InsBreakpointMediaKey = keyof Omit<InsMedia, 'tablet'>;
660
+ /**
661
+ * Service to provide the current breakpoint based on Taiga UI's media queries
662
+ */
663
+ declare class InsBreakpointService extends Observable<InsBreakpointMediaKey | null> {
664
+ private readonly media;
665
+ private readonly win;
666
+ private readonly stream$;
667
+ constructor();
668
+ private getQueries;
669
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsBreakpointService, never>;
670
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsBreakpointService>;
671
+ }
672
+
673
+ declare function createToken<T>(defaults?: T): InjectionToken<T>;
674
+ declare function createTokenFromFactory<T>(factory: () => T): InjectionToken<T>;
675
+
676
+ /**
677
+ * Generates unique ids
678
+ */
679
+ declare class InsIdService {
680
+ private static autoId;
681
+ generate(): string;
682
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsIdService, never>;
683
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsIdService>;
684
+ }
685
+ declare function insInjectId(): string;
686
+
687
+ declare function insIfMap<T, G>(project: (value: T) => Observable<G>, predicate?: InsBooleanHandler<T>): OperatorFunction<T, G>;
688
+
689
+ declare class InsResize implements OnDestroy {
690
+ private readonly el;
691
+ protected resizeObserver: ResizeObserver | null;
692
+ insResize: EventEmitter<ResizeObserverEntry>;
693
+ constructor();
694
+ ngOnDestroy(): void;
695
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsResize, never>;
696
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsResize, "[insResize]", never, {}, { "insResize": "insResize"; }, never, never, true, never>;
697
+ }
698
+
699
+ /**
700
+ * Check if pressed key is interactive in terms of input field
701
+ */
702
+ declare function isEditingKey(key?: string): boolean;
703
+
704
+ declare function isPresent<T>(value?: T | null): value is T;
705
+
706
+ declare function insMarkControlAsTouchedAndValidate(control: AbstractControl): void;
707
+
708
+ declare function insOverrideOptions<T>(override: Partial<T>, fallback: T): (directive: T | null, options: T | null) => T;
709
+
710
+ /**
711
+ * Abstract class for host element for dynamically created portals.
712
+ */
713
+ declare abstract class InsPortals {
714
+ private readonly vcr;
715
+ private readonly injector;
716
+ constructor();
717
+ addComponent<C>(component: PolymorpheusComponent<C>): ComponentRef<C>;
718
+ addTemplate<C>(templateRef: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
719
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPortals, never>;
720
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsPortals, never, never, {}, {}, never, never, true, never>;
721
+ }
722
+
723
+ declare abstract class InsPortalService {
724
+ protected host?: InsPortals;
725
+ attach(host: InsPortals): void;
726
+ add<C>(content: PolymorpheusComponent<C>): ComponentRef<C>;
727
+ add<C>(content: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
728
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPortalService, never>;
729
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsPortalService>;
730
+ }
731
+ declare class InsNoHostException extends Error {
732
+ constructor();
733
+ }
734
+
735
+ /**
736
+ * For type safety when using @ContentChildren and @ViewChildren
737
+ *
738
+ * NOTE: Be careful subscribing to 'changes'
739
+ */
740
+ declare const EMPTY_QUERY: QueryList<any>;
741
+ declare const EMPTY_ARRAY: [];
742
+ declare const EMPTY_FUNCTION: (...args: any[]) => void;
743
+ declare const EMPTY_CLIENT_RECT: DOMRect;
744
+
745
+ /**
746
+ * Typed mapping function.
747
+ */
748
+ type InsMapper<T extends unknown[], G> = (...args: T) => G;
749
+
750
+ /**
751
+ * A matcher function to test items against with extra arguments.
752
+ */
753
+ type InsMatcher<I extends unknown[]> = InsMapper<I, boolean>;
754
+ type InsStringMatcher<I> = (item: I, matchValue: string, stringify: InsStringHandler<I>) => boolean;
755
+ type InsIdentityMatcher<I> = (item1: I, item2: I) => boolean;
756
+
757
+ type InsPortalContext<T, O = void> = T & InsContext<Observer<O>> & {
758
+ readonly content: PolymorpheusContent<InsPortalContext<T, O>>;
759
+ readonly createdAt: number;
760
+ readonly id: string;
761
+ completeWith(value: O): void;
762
+ };
763
+ declare abstract class InsPortal<T, K = void> {
764
+ protected readonly service: InsPortalService;
765
+ protected abstract readonly component: Type<any>;
766
+ protected abstract readonly options: T;
767
+ private readonly injector;
768
+ private readonly id;
769
+ constructor(service: InsPortalService);
770
+ open<G = void>(content: PolymorpheusContent<InsPortalContext<T, K extends void ? G : K>>, options?: Partial<T>): Observable<K extends void ? G : K>;
771
+ protected add(component: PolymorpheusComponent<unknown>): () => void;
772
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPortal<any, any>, never>;
773
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsPortal<any, any>>;
774
+ }
775
+ declare function insAsPortal(portal: typeof InsPortal<any>): Provider;
776
+
777
+ declare class InsPortalDirective<T> extends PolymorpheusTemplate<InsPortalContext<T>> {
778
+ private readonly service;
779
+ readonly options: i0.InputSignal<Partial<T>>;
780
+ readonly open: i0.InputSignal<boolean>;
781
+ readonly openChange: i0.OutputRef<boolean>;
782
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPortalDirective<any>, never>;
783
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsPortalDirective<any>, never, never, { "options": { "alias": "options"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "openChange": "openChange"; }, never, never, true, never>;
784
+ }
785
+
786
+ declare class InsPositionService extends Observable<Readonly<[x: number, y: number]>> {
787
+ private readonly el;
788
+ private readonly accessor;
789
+ constructor();
790
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPositionService, never>;
791
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsPositionService>;
792
+ }
793
+
794
+ declare function provideOptions<T>(provide: InjectionToken<T>, options: Partial<T>, fallback: T): FactoryProvider;
795
+
796
+ declare function insProvide<T>(provide: ProviderToken<T>, useExisting: ProviderToken<T>): ExistingProvider;
797
+ declare function insProvide<T>(provide: ProviderToken<T | T[]>, useExisting: ProviderToken<T>, multi: boolean): ExistingProvider;
798
+
799
+ declare const svgNodeFilter: Exclude<NodeFilter, (node: Node) => number>;
800
+
801
+ declare function insWithStyles(component: Type<unknown>): undefined;
802
+
803
+ declare function insZonefull<T>(zone?: NgZone): MonoTypeOperatorFunction<T>;
804
+ declare function insZonefree<T>(zone?: NgZone): MonoTypeOperatorFunction<T>;
805
+ declare function insZoneOptimized<T>(zone?: NgZone): MonoTypeOperatorFunction<T>;
806
+ declare function insZonefreeScheduler(zone?: NgZone, scheduler?: SchedulerLike): SchedulerLike;
807
+ declare function insZonefullScheduler(zone?: NgZone, scheduler?: SchedulerLike): SchedulerLike;
808
+
809
+ declare class InsPresent implements OnDestroy {
810
+ readonly insPresent: i0.OutputEmitterRef<boolean>;
811
+ ngOnDestroy(): void;
812
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPresent, never>;
813
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsPresent, "[insPresent]", never, {}, { "insPresent": "insPresent"; }, never, never, true, never>;
814
+ }
815
+
816
+ declare function insArrayToggle<T>(array: readonly T[], item: T, identity?: InsIdentityMatcher<T>): T[];
817
+ declare function insArrayRemove<T>(array: readonly T[], index: number): T[];
818
+
819
+ interface InsPositionOptions {
820
+ readonly block: 'end' | 'start';
821
+ readonly inline: 'center' | 'end' | 'start';
822
+ }
823
+ declare class InsNotificationDirective {
824
+ protected readonly nothing: undefined;
825
+ readonly context: InsPortalContext<InsPositionOptions>;
826
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsNotificationDirective, never>;
827
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsNotificationDirective, never, never, {}, {}, never, never, true, never>;
828
+ }
829
+
830
+ declare abstract class InsNotificationService<T, K = void> extends InsPortal<T, K> {
831
+ private readonly concurrency;
832
+ private readonly current;
833
+ private readonly queue;
834
+ constructor(concurrency: number);
835
+ protected add(component: PolymorpheusComponent<unknown>): () => void;
836
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsNotificationService<any, any>, never>;
837
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsNotificationService<any, any>>;
838
+ }
839
+
840
+ declare class InsDropdownHover extends InsDriver {
841
+ private readonly dropdownHost?;
842
+ private readonly el;
843
+ private readonly doc;
844
+ private readonly options;
845
+ private readonly activeZone;
846
+ private readonly open;
847
+ /**
848
+ * Dropdown can be removed not only via click/touch –
849
+ * swipe on mobile devices removes dropdown sheet without triggering new mouseover / mouseout events.
850
+ */
851
+ private readonly dropdownExternalRemoval$;
852
+ private readonly stream$;
853
+ hovered: boolean;
854
+ readonly type = "dropdown";
855
+ showDelay: number;
856
+ hideDelay: number;
857
+ constructor();
858
+ protected onClick(event: MouseEvent): void;
859
+ private isHovered;
860
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownHover, never>;
861
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownHover, "[insDropdownHover]", never, { "showDelay": { "alias": "insDropdownShowDelay"; "required": false; }; "hideDelay": { "alias": "insDropdownHideDelay"; "required": false; }; }, {}, ["dropdownHost"], never, true, never>;
862
+ }
863
+
864
+ declare class InsDropdownSelection extends InsDriver implements InsRectAccessor, OnDestroy {
865
+ private ghost?;
866
+ protected readonly doc: Document;
867
+ protected readonly vcr: ViewContainerRef;
868
+ protected readonly dropdown: InsDropdownDirective;
869
+ protected readonly el: HTMLElement;
870
+ protected readonly handler: i0.Signal<InsBooleanHandler<Range>>;
871
+ protected readonly stream$: rxjs.Observable<boolean>;
872
+ protected range: Range;
873
+ readonly type = "dropdown";
874
+ readonly insDropdownSelection: i0.InputSignal<string | InsBooleanHandler<Range>>;
875
+ readonly insDropdownSelectionPosition: i0.InputSignal<"word" | "selection" | "tag">;
876
+ constructor();
877
+ getClientRect(): DOMRect;
878
+ ngOnDestroy(): void;
879
+ private get ghostHost();
880
+ private getRange;
881
+ /**
882
+ * Check if given range is at least partially inside dropdown
883
+ */
884
+ private inDropdown;
885
+ /**
886
+ * Check if Node is inside dropdown
887
+ */
888
+ private boxContains;
889
+ /**
890
+ * Check if range is not inside ins-textfield's DOM elements
891
+ */
892
+ private isValid;
893
+ private veryVerySadInputFix;
894
+ /**
895
+ * Create an invisible DIV styled exactly like input/textarea element inside directive
896
+ */
897
+ private initGhost;
898
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownSelection, never>;
899
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownSelection, "[insDropdownSelection]", never, { "insDropdownSelection": { "alias": "insDropdownSelection"; "required": false; "isSignal": true; }; "insDropdownSelectionPosition": { "alias": "insDropdownSelectionPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
900
+ }
901
+
902
+ /**
903
+ * 暂时没有使用
904
+ */
905
+ declare class InsDropdownContent implements OnDestroy {
906
+ private readonly directive;
907
+ constructor();
908
+ ngOnDestroy(): void;
909
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDropdownContent, never>;
910
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDropdownContent, "ng-template[insDropdown]", never, {}, {}, never, never, true, never>;
911
+ }
912
+
913
+ declare const InsDropdown: readonly [typeof InsDropdownOptionsDirective, typeof InsDropdownDriverDirective, typeof InsDropdownDirective, typeof InsDropdownComponent, typeof InsDropdownOpen, typeof InsDropdownPosition, typeof InsDropdownPositionSided, typeof InsDropdownHover, typeof InsDropdownSelection, typeof InsDropdownContent];
914
+
915
+ declare class InsWithDropdownOpen {
916
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsWithDropdownOpen, never>;
917
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsWithDropdownOpen, never, never, {}, {}, never, never, true, [{ directive: typeof InsDropdownOpen; inputs: { "insDropdownOpen": "open"; "insDropdownEnabled": "insDropdownEnabled"; }; outputs: { "insDropdownOpenChange": "openChange"; }; }]>;
918
+ }
919
+
920
+ interface InsDropdownHoverOptions {
921
+ readonly hideDelay: number;
922
+ readonly showDelay: number;
923
+ }
924
+ /** Default values for hint options */
925
+ declare const INS_DROPDOWN_HOVER_DEFAULT_OPTIONS: InsDropdownHoverOptions;
926
+ /**
927
+ * Default parameters for dropdown hover directive
928
+ */
929
+ declare const INS_DROPDOWN_HOVER_OPTIONS: InjectionToken<InsDropdownHoverOptions>;
930
+ declare function insDropdownHoverOptionsProvider(options: Partial<InsDropdownHoverOptions>): Provider;
931
+
932
+ declare const INS_CHEVRON: i0.InjectionToken<string>;
933
+ declare class InsChevron {
934
+ protected readonly dropdown: InsDropdownDirective;
935
+ protected readonly nothing: undefined;
936
+ readonly chevron: i0.WritableSignal<boolean | "">;
937
+ protected isRotated: i0.Signal<boolean>;
938
+ set setChevron(val: boolean | '');
939
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsChevron, never>;
940
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsChevron, "[insChevron]", never, { "setChevron": { "alias": "insChevron"; "required": false; }; }, {}, never, never, true, never>;
941
+ }
942
+
943
+ declare class InsAccordionDirective implements OnChanges {
944
+ private readonly accordion;
945
+ private readonly insChevron;
946
+ private readonly insButton;
947
+ insAccordion: i0.ModelSignal<string | boolean>;
948
+ constructor();
949
+ readonly open: i0.WritableSignal<boolean>;
950
+ ngOnChanges(): void;
951
+ toggle(): void;
952
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAccordionDirective, never>;
953
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsAccordionDirective, "button[insAccordion]", never, { "insAccordion": { "alias": "insAccordion"; "required": false; "isSignal": true; }; }, { "insAccordion": "insAccordionChange"; }, never, never, true, [{ directive: typeof InsButton; inputs: {}; outputs: {}; }, { directive: typeof InsChevron; inputs: {}; outputs: {}; }]>;
954
+ }
955
+
956
+ declare class InsGroup {
957
+ private readonly options;
958
+ protected readonly nothing: undefined;
959
+ orientation: 'horizontal' | 'vertical';
960
+ collapsed: boolean;
961
+ rounded: boolean;
962
+ size: 's' | 'm' | 'l';
963
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsGroup, never>;
964
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsGroup, "[insGroup]:not(ng-container)", never, { "orientation": { "alias": "orientation"; "required": false; }; "collapsed": { "alias": "collapsed"; "required": false; }; "rounded": { "alias": "rounded"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
965
+ }
966
+
967
+ declare class InsAccordionComponent {
968
+ protected readonly expands: i0.Signal<readonly InsExpand[]>;
969
+ protected readonly directives: i0.Signal<readonly InsAccordionDirective[]>;
970
+ readonly closeOthers: i0.InputSignal<boolean>;
971
+ readonly size: i0.InputSignal<"s" | "m" | "l">;
972
+ toggle(directive: InsAccordionDirective): void;
973
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAccordionComponent, never>;
974
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsAccordionComponent, "ins-accordion", never, { "closeOthers": { "alias": "closeOthers"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, ["expands", "directives"], ["*"], true, [{ directive: typeof InsGroup; inputs: {}; outputs: {}; }]>;
975
+ }
976
+
977
+ declare const InsAccordion: readonly [typeof InsAccordionComponent, typeof InsAccordionDirective, typeof InsExpand];
978
+
979
+ /**
980
+ * Bundled appearances for autocomplete purposes, not exported on purpose
981
+ */
982
+ type Appearance = 'accent' | 'action-destructive' | 'action-grayscale' | 'action' | 'flat-destructive' | 'flat-grayscale' | 'flat' | 'glass' | 'icon' | 'info' | 'negative' | 'neutral' | 'outline-destructive' | 'outline-grayscale' | 'outline' | 'positive' | 'primary-destructive' | 'primary-grayscale' | 'primary' | 'secondary-destructive' | 'secondary-grayscale' | 'secondary' | 'textfield' | (Record<never, never> & string);
983
+ interface InsAppearanceOptions {
984
+ readonly appearance: Appearance;
985
+ }
986
+ declare const INS_APPEARANCE_DEFAULT_OPTIONS: InsAppearanceOptions;
987
+ declare const INS_APPEARANCE_OPTIONS: i0.InjectionToken<InsAppearanceOptions>;
988
+ declare function insAppearanceOptionsProvider(token: ProviderToken<InsAppearanceOptions>): ExistingProvider;
989
+
990
+ interface InsNotificationOptions extends InsAppearanceOptions {
991
+ readonly icon: InsStringHandler<string> | string;
992
+ readonly size: 's' | 'm' | 'l';
993
+ }
994
+ declare const INS_NOTIFICATION_DEFAULT_OPTIONS: InsNotificationOptions;
995
+ /**
996
+ * Default parameters for notification alert component
997
+ */
998
+ declare const INS_NOTIFICATION_OPTIONS: i0.InjectionToken<InsNotificationOptions>;
999
+ declare function insNotificationOptionsProvider(options: Partial<InsNotificationOptions>): Provider;
1000
+
1001
+ interface InsAlertOptions<I = undefined> extends Omit<InsNotificationOptions, 'size'>, InsPositionOptions {
1002
+ readonly autoClose: InsHandler<string, number> | number;
1003
+ readonly data: I;
1004
+ readonly closeable: boolean;
1005
+ readonly label: PolymorpheusContent<InsAlertOptions<I>>;
1006
+ }
1007
+ type InsAlertContext<O = void, I = undefined> = InsPortalContext<InsAlertOptions<I>, O>;
1008
+
1009
+ declare class InsAlertComponent<O, I> {
1010
+ private readonly el;
1011
+ protected readonly icons: _liuk123_insui.InsCommonIcons;
1012
+ protected readonly item: InsPortalContext<InsAlertOptions<I>, O>;
1013
+ protected readonly close: i0.Signal<string>;
1014
+ protected readonly sub: rxjs.Subscription;
1015
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAlertComponent<any, any>, never>;
1016
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsAlertComponent<any, any>, "ins-alert", never, {}, {}, never, never, true, [{ directive: typeof InsAnimated; inputs: {}; outputs: {}; }, { directive: typeof InsNotificationDirective; inputs: {}; outputs: {}; }]>;
1017
+ }
1018
+
1019
+ declare class InsAlert<T> {
1020
+ readonly insAlertOptions: i0.InputSignal<Partial<InsAlertOptions<T>>>;
1021
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAlert<any>, never>;
1022
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsAlert<any>, "ng-template[insAlert]", never, { "insAlertOptions": { "alias": "insAlertOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsPortalDirective; inputs: { "options": "insAlertOptions"; "open": "insAlert"; }; outputs: { "openChange": "insAlertChange"; }; }]>;
1023
+ }
1024
+
1025
+ declare class InsAlertService extends InsNotificationService<InsAlertOptions<any>> {
1026
+ protected readonly options: InsAlertOptions<undefined>;
1027
+ protected readonly component: typeof InsAlertComponent;
1028
+ constructor();
1029
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAlertService, never>;
1030
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsAlertService>;
1031
+ }
1032
+
1033
+ declare const INS_ALERT_CONCURRENCY: i0.InjectionToken<number>;
1034
+ declare const INS_ALERT_DEFAULT_OPTIONS: Omit<InsAlertOptions, 'appearance' | 'icon'>;
1035
+ declare const INS_ALERT_OPTIONS: i0.InjectionToken<InsAlertOptions<undefined>>;
1036
+ declare function insAlertOptionsProvider(options: Partial<InsAlertOptions>): FactoryProvider;
1037
+
1038
+ declare class InsAvatar {
1039
+ protected readonly nothing: undefined;
1040
+ private readonly options;
1041
+ size: i0.InputSignal<"s" | "m" | "l" | "xs" | "xl" | "xxl" | "xxxl">;
1042
+ round: i0.InputSignal<boolean>;
1043
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsAvatar, never>;
1044
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsAvatar, "ins-avatar,button[insAvatar],a[insAvatar]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "round": { "alias": "round"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof InsWithAppearance; inputs: {}; outputs: {}; }]>;
1045
+ }
1046
+
1047
+ interface InsAvatarOptions extends InsAppearanceOptions {
1048
+ readonly appearance: string;
1049
+ readonly round: boolean;
1050
+ readonly size: 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
1051
+ }
1052
+ declare const INS_AVATAR_DEFAULT_OPTIONS: InsAvatarOptions;
1053
+ declare const INS_AVATAR_OPTIONS: i0.InjectionToken<InsAvatarOptions>;
1054
+ declare function insAvatarOptionsProvider(options: Partial<InsAvatarOptions>): Provider;
1055
+
1056
+ interface InsButtonOptions extends InsAppearanceOptions {
1057
+ readonly size: 'xs' | 's' | 'm' | 'l';
1058
+ }
1059
+ declare const INS_BUTTON_DEFAULT_OPTIONS: InsButtonOptions;
1060
+ declare const INS_BUTTON_OPTIONS: i0.InjectionToken<InsButtonOptions>;
1061
+ declare function insButtonOptionsProvider(options: Partial<InsButtonOptions>): FactoryProvider;
1062
+
1063
+ declare class InsButtonLoading {
1064
+ private readonly options;
1065
+ size: i0.InputSignal<"s" | "m" | "l" | "xs">;
1066
+ loading: i0.InputSignal<string | boolean>;
1067
+ protected label: i0.Signal<string | boolean>;
1068
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsButtonLoading, never>;
1069
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsButtonLoading, "[insButton][loading],[insIconButton][loading]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1070
+ }
1071
+
1072
+ declare class InsCheckbox implements OnInit, DoCheck {
1073
+ private readonly appearance;
1074
+ private readonly options;
1075
+ private readonly resolver;
1076
+ private readonly el;
1077
+ private readonly destroyRef;
1078
+ private readonly cdr;
1079
+ size: i0.InputSignal<"s" | "m" | "l">;
1080
+ readonly control: NgControl | null;
1081
+ ngOnInit(): void;
1082
+ ngDoCheck(): void;
1083
+ protected iconChecked: i0.Signal<string>;
1084
+ protected iconIndeterminate: i0.Signal<string>;
1085
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsCheckbox, never>;
1086
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsCheckbox, "input[type=\"checkbox\"][insCheckbox]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsAppearance; inputs: { "insAppearanceState": "insAppearanceState"; "insAppearanceFocus": "insAppearanceFocus"; "insAppearanceMode": "insAppearanceMode"; }; outputs: {}; }, { directive: typeof InsNativeValidator; inputs: {}; outputs: {}; }]>;
1087
+ }
1088
+
1089
+ interface InsCheckboxOptions {
1090
+ readonly size: 's' | 'm' | 'l';
1091
+ readonly appearance: InsStringHandler<HTMLInputElement> | string;
1092
+ readonly icons: Readonly<{
1093
+ checked: InsStringHandler<'s' | 'm' | 'l'> | string;
1094
+ indeterminate: InsStringHandler<'s' | 'm' | 'l'> | string;
1095
+ }>;
1096
+ }
1097
+ declare const INS_CHECKBOX_DEFAULT_OPTIONS: InsCheckboxOptions;
1098
+ declare const INS_CHECKBOX_OPTIONS: i0.InjectionToken<InsCheckboxOptions>;
1099
+ declare function insCheckboxOptionsProvider(options: Partial<InsCheckboxOptions>): Provider;
1100
+
1101
+ declare class InsChip {
1102
+ private readonly options;
1103
+ protected readonly nothing: undefined;
1104
+ size: 'xs' | 's' | 'm' | 'l';
1105
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsChip, never>;
1106
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsChip, "[insChip]", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsWithAppearance; inputs: {}; outputs: {}; }, { directive: typeof InsWithIcons; inputs: {}; outputs: {}; }]>;
1107
+ }
1108
+
1109
+ interface InsChipOptions extends InsAppearanceOptions {
1110
+ readonly size: 'xs' | 's' | 'm' | 'l';
1111
+ }
1112
+ declare const INS_CHIP_DEFAULT_OPTIONS: InsChipOptions;
1113
+ declare const INS_CHIP_OPTIONS: i0.InjectionToken<InsChipOptions>;
1114
+ declare function insChipOptionsProvider(options: Partial<InsChipOptions>): Provider;
1115
+
1116
+ interface InsDataListAccessor<T = unknown> {
1117
+ getOptions(includeDisabled?: boolean): readonly T[];
1118
+ }
1119
+ interface InsDataListHost<T> {
1120
+ handleOption(option: T): void;
1121
+ readonly identityMatcher?: InsIdentityMatcher<T>;
1122
+ readonly stringify?: InsStringHandler<T>;
1123
+ readonly size: InputSignal<'xs' | 's' | 'm' | 'l'>;
1124
+ }
1125
+ /**
1126
+ * Content for insOption component
1127
+ */
1128
+ /**
1129
+ * Accessor for data-list options
1130
+ */
1131
+ declare const INS_DATA_LIST_ACCESSOR: InjectionToken<InsDataListAccessor<unknown>>;
1132
+ declare function insAsDataListAccessor(accessor: Type<InsDataListAccessor>): Provider;
1133
+ /**
1134
+ * DataList controller
1135
+ */
1136
+ declare const INS_DATA_LIST_HOST: InjectionToken<InsDataListHost<unknown>>;
1137
+ declare function insAsDataListHost<T>(host: Type<InsDataListHost<T>>): Provider;
1138
+
1139
+ declare class InsDataListComponent<T> implements InsDataListAccessor {
1140
+ private origin?;
1141
+ private readonly el;
1142
+ private readonly nothing;
1143
+ private readonly options;
1144
+ protected readonly empty: i0.Signal<boolean>;
1145
+ protected readonly fallback: i0.Signal<string>;
1146
+ size: i0.InputSignal<"s" | "m" | "l" | "xs">;
1147
+ emptyContent: i0.InputSignal<PolymorpheusContent<any>>;
1148
+ onKeyDownArrow(current: HTMLElement, step: number): void;
1149
+ handleFocusLossIfNecessary(element?: Element): void;
1150
+ getOptions(includeDisabled?: boolean): readonly T[];
1151
+ protected onFocusIn(relatedTarget: HTMLElement, currentTarget: HTMLElement): void;
1152
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDataListComponent<any>, never>;
1153
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsDataListComponent<any>, "ins-data-list", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "emptyContent": { "alias": "emptyContent"; "required": false; "isSignal": true; }; }, {}, ["options"], ["*"], true, never>;
1154
+ }
1155
+
1156
+ declare class InsOptGroup {
1157
+ label?: string | null;
1158
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsOptGroup, never>;
1159
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsOptGroup, "ins-opt-group", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, never, true, never>;
1160
+ }
1161
+
1162
+ declare class InsOption<T = unknown> implements OnDestroy {
1163
+ private readonly el;
1164
+ private readonly dataList;
1165
+ private readonly host;
1166
+ disabled: boolean;
1167
+ value?: T;
1168
+ ngOnDestroy(): void;
1169
+ protected onClick(): void;
1170
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsOption<any>, never>;
1171
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsOption<any>, "button[insOption], a[insOption], label[insOption]", never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsWithIcons; inputs: {}; outputs: {}; }]>;
1172
+ }
1173
+
1174
+ declare const InsDataList: readonly [typeof InsDataListComponent, typeof InsOption, typeof InsOptGroup];
1175
+
1176
+ interface InsDialogOptions<I> extends InsAppearanceOptions {
1177
+ readonly closable: Observable<boolean> | boolean;
1178
+ readonly data: I extends void ? undefined : I & {
1179
+ button?: string;
1180
+ };
1181
+ readonly dismissible: Observable<boolean> | boolean;
1182
+ readonly label: string;
1183
+ readonly required: boolean;
1184
+ readonly size: 's' | 'm' | 'l';
1185
+ }
1186
+ type InsDialogContext<O = void, I = undefined> = InsPortalContext<InsDialogOptions<I>, O>;
1187
+ declare const INS_DIALOG_DEFAULT_OPTIONS: InsDialogOptions<void>;
1188
+ declare const INS_DIALOG_OPTIONS: i0.InjectionToken<InsDialogOptions<void>>;
1189
+
1190
+ declare class InsDialogComponent<O, I> {
1191
+ protected readonly close$: Subject<void>;
1192
+ protected readonly context: InsPortalContext<InsDialogOptions<I>, O>;
1193
+ protected readonly icons: _liuk123_insui.InsCommonIcons;
1194
+ protected readonly close: i0.Signal<string>;
1195
+ protected readonly sub: rxjs.Subscription;
1196
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDialogComponent<any, any>, never>;
1197
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsDialogComponent<any, any>, "ins-dialog", never, {}, {}, never, never, true, [{ directive: typeof InsAnimated; inputs: {}; outputs: {}; }]>;
1198
+ }
1199
+
1200
+ declare class InsDialog<T> {
1201
+ readonly insDialogOptions: i0.InputSignal<Partial<InsDialogOptions<T>>>;
1202
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDialog<any>, never>;
1203
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsDialog<any>, "ng-template[insDialog]", never, { "insDialogOptions": { "alias": "insDialogOptions"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsPortalDirective; inputs: { "options": "insDialogOptions"; "open": "insDialog"; }; outputs: { "openChange": "insDialogChange"; }; }]>;
1204
+ }
1205
+
1206
+ declare class InsModalComponent<T> implements OnDestroy, OnInit {
1207
+ private readonly current;
1208
+ private readonly parent;
1209
+ readonly context: InsPortalContext<T>;
1210
+ readonly component: i0.WritableSignal<PolymorpheusContent<InsPortalContext<T>>>;
1211
+ ngOnInit(): void;
1212
+ ngOnDestroy(): void;
1213
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsModalComponent<any>, never>;
1214
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsModalComponent<any>, "ins-modal", never, {}, {}, never, never, true, [{ directive: typeof InsActiveZone; inputs: {}; outputs: {}; }, { directive: typeof InsFocusTrap; inputs: {}; outputs: {}; }]>;
1215
+ }
1216
+
1217
+ declare abstract class InsModalService<T, K = void> extends InsPortal<T, K> {
1218
+ protected abstract readonly content: Type<unknown>;
1219
+ protected readonly component: typeof InsModalComponent;
1220
+ constructor();
1221
+ protected add(component: PolymorpheusComponent<InsModalComponent<T>>): () => void;
1222
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsModalService<any, any>, never>;
1223
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsModalService<any, any>>;
1224
+ }
1225
+
1226
+ declare class InsDialogService extends InsModalService<InsDialogOptions<any>> {
1227
+ protected readonly options: InsDialogOptions<void>;
1228
+ protected readonly content: typeof InsDialogComponent;
1229
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsDialogService, never>;
1230
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsDialogService>;
1231
+ }
1232
+
1233
+ declare class InsValidationError<T extends Record<string, any> = Record<string, unknown>> {
1234
+ readonly message: PolymorpheusContent<T>;
1235
+ readonly context: T;
1236
+ constructor(message: PolymorpheusContent<T>, context?: T);
1237
+ }
1238
+
1239
+ declare class InsError {
1240
+ protected readonly default: i0.Signal<string>;
1241
+ readonly error: i0.InputSignalWithTransform<InsValidationError<Record<string, unknown>>, string | InsValidationError<Record<string, unknown>>>;
1242
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsError, never>;
1243
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsError, "ins-error", never, { "error": { "alias": "error"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1244
+ }
1245
+
1246
+ declare class FieldErrorPipe implements PipeTransform {
1247
+ errorInfo: Record<string, _liuk123_insui.PolymorpheusContent | rxjs.Observable<_liuk123_insui.PolymorpheusContent>>;
1248
+ transform(value: any): string;
1249
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldErrorPipe, never>;
1250
+ static ɵpipe: i0.ɵɵPipeDeclaration<FieldErrorPipe, "fieldError", true>;
1251
+ }
1252
+
1253
+ type InsFileState = 'deleted' | 'error' | 'loading' | 'normal';
1254
+ interface InsFileLike {
1255
+ readonly name: string;
1256
+ readonly size?: number;
1257
+ readonly src?: string;
1258
+ readonly type?: string;
1259
+ }
1260
+
1261
+ interface InsFormOptions {
1262
+ size: 's' | 'm' | 'l';
1263
+ cleaner: boolean;
1264
+ orientation: 'horizontal' | 'vertical' | '';
1265
+ }
1266
+ declare const INS_FORM_DEFAULT_OPTIONS: InsFormOptions;
1267
+ declare const INS_FORM_OPTIONS: i0.InjectionToken<InsFormOptions>;
1268
+ declare function insFormOptionsProvider(options: Partial<InsFormOptions>): Provider;
1269
+
1270
+ declare class InsForm {
1271
+ protected readonly nothing: undefined;
1272
+ protected readonly options: InsFormOptions;
1273
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsForm, never>;
1274
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsForm, "[insForm]", never, {}, {}, never, never, true, never>;
1275
+ }
1276
+
1277
+ interface InsGroupOptions {
1278
+ readonly size: 's' | 'm' | 'l';
1279
+ readonly collapsed: boolean;
1280
+ readonly rounded: boolean;
1281
+ readonly orientation: 'horizontal' | 'vertical';
1282
+ }
1283
+ declare const INS_GROUP_DEFAULT_OPTIONS: InsGroupOptions;
1284
+ declare const INS_GROUP_OPTIONS: i0.InjectionToken<InsGroupOptions>;
1285
+ declare function insGroupOptionsProvider(options: Partial<InsGroupOptions>): Provider;
1286
+
1287
+ declare const INS_ICON_STARTS: i0.InjectionToken<Record<string, string>>;
1288
+ declare function insIconsProvider(icons: Record<string, string>): FactoryProvider;
1289
+
1290
+ declare class InsIcon {
1291
+ protected readonly path: string;
1292
+ protected readonly icons: Record<string, string>;
1293
+ protected nothing: undefined;
1294
+ resolver(icon: string): string;
1295
+ readonly icon: i0.InputSignalWithTransform<string, string>;
1296
+ resolve(value?: string | null): string | null;
1297
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsIcon, never>;
1298
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsIcon, "ins-icon", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1299
+ }
1300
+
1301
+ declare const INS_ASSETS_PATH: i0.InjectionToken<string>;
1302
+ declare function insAssetsPathProvider(useValue: string): ValueProvider;
1303
+ declare const INS_ICON_START: i0.InjectionToken<string>;
1304
+ declare const INS_ICON_END: i0.InjectionToken<string>;
1305
+
1306
+ interface InsTextfieldOptions {
1307
+ readonly appearance: string;
1308
+ readonly size: 'xs' | 's' | 'm' | 'l';
1309
+ readonly cleaner: boolean;
1310
+ }
1311
+ declare const INS_TEXTFIELD_DEFAULT_OPTIONS: InsTextfieldOptions;
1312
+ declare const INS_TEXTFIELD_OPTIONS: InjectionToken<InsTextfieldOptions>;
1313
+ declare function insTextfieldOptionsProvider(options: Partial<InsTextfieldOptions>): Provider;
1314
+ interface InsTextFieldAccessor<T> {
1315
+ setValue(value: T | T[] | null): void;
1316
+ getValue(): T | T[] | null;
1317
+ clearValue(): void;
1318
+ setFocused(event: MouseEvent | any): void;
1319
+ id: string;
1320
+ }
1321
+ declare const INS_TEXTFIELD_ACCESSOR: InjectionToken<InsTextFieldAccessor<unknown>>;
1322
+
1323
+ declare abstract class InsValueTransformer<From, To = unknown> {
1324
+ abstract toControlValue(componentValue: From): To;
1325
+ abstract fromControlValue(controlValue: To): From;
1326
+ }
1327
+
1328
+ /**
1329
+ * Basic ControlValueAccessor class to build form components upon
1330
+ */
1331
+ declare abstract class InsControl<T> implements ControlValueAccessor {
1332
+ private readonly fallback;
1333
+ private readonly refresh$;
1334
+ private readonly internal;
1335
+ protected readonly control: NgControl;
1336
+ protected readonly cdr: ChangeDetectorRef;
1337
+ protected transformer: InsValueTransformer<any, any>;
1338
+ readonly value: i0.Signal<T>;
1339
+ readonly readOnly: i0.InputSignal<boolean>;
1340
+ readonly pseudoInvalid: i0.InputSignal<boolean>;
1341
+ readonly touched: i0.WritableSignal<boolean>;
1342
+ readonly status: i0.WritableSignal<FormControlStatus>;
1343
+ readonly disabled: i0.Signal<boolean>;
1344
+ readonly interactive: i0.Signal<boolean>;
1345
+ readonly invalid: i0.Signal<boolean>;
1346
+ readonly mode: i0.Signal<"readonly" | "valid" | "invalid">;
1347
+ onTouched: (...args: any[]) => void;
1348
+ onChange: (value: T) => void;
1349
+ constructor();
1350
+ registerOnChange(onChange: (value: unknown) => void): void;
1351
+ registerOnTouched(onTouched: () => void): void;
1352
+ setDisabledState(): void;
1353
+ writeValue(value: T | null): void;
1354
+ private update;
1355
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsControl<any>, never>;
1356
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsControl<any>, never, never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "pseudoInvalid": { "alias": "invalid"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1357
+ }
1358
+
1359
+ declare class InsTextfieldDirective {
1360
+ private readonly textfield;
1361
+ private readonly appearance;
1362
+ readonly options: _liuk123_insui.InsTextfieldOptions;
1363
+ invalid: i0.InputSignal<boolean>;
1364
+ focused: i0.InputSignal<boolean>;
1365
+ readOnly: i0.InputSignal<boolean>;
1366
+ disabled: i0.InputSignal<boolean>;
1367
+ mode: i0.Signal<"readonly" | "valid" | "invalid">;
1368
+ constructor();
1369
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextfieldDirective, never>;
1370
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTextfieldDirective, never, never, { "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "focused": { "alias": "focused"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsWithAppearance; inputs: {}; outputs: {}; }, { directive: typeof InsNativeValidator; inputs: {}; outputs: {}; }]>;
1371
+ }
1372
+
1373
+ declare class TextfieldOptionItem {
1374
+ data: any;
1375
+ constructor(data: any);
1376
+ static toString: (data: any) => string;
1377
+ static toValue: (data: any) => any;
1378
+ static identityMatcher: (a: any, b: any) => boolean;
1379
+ }
1380
+ declare class InsInputTagComponent<T> extends InsControl<T[]> implements InsTextFieldAccessor<T>, OnInit {
1381
+ private readonly template?;
1382
+ id: string;
1383
+ protected icons: _liuk123_insui.InsCommonIcons;
1384
+ protected destroyRef: DestroyRef;
1385
+ private readonly options;
1386
+ private readonly apprearance;
1387
+ private readonly vcr;
1388
+ private readonly tags;
1389
+ private readonly focusableElement?;
1390
+ disabledItemHandler: i0.InputSignal<InsBooleanHandler<any>>;
1391
+ inputHidden: i0.InputSignal<boolean>;
1392
+ placeholder: i0.InputSignal<string>;
1393
+ searchValue: FormControl<string>;
1394
+ searchChange: EventEmitter<string>;
1395
+ searchSignal: i0.Signal<string>;
1396
+ computedPlaceholder: i0.Signal<string>;
1397
+ showGhost: i0.Signal<"hidden" | "visible">;
1398
+ ngOnInit(): void;
1399
+ setValue(value: T[] | T): void;
1400
+ clearValue(): void;
1401
+ getValue(): any;
1402
+ removeItem(index: number): void;
1403
+ get nativeFocusableElement(): HTMLInputElement | null;
1404
+ private focusInput;
1405
+ protected onTagKeyDownArrowLeft(currentIndex: number): void;
1406
+ protected onTagKeyDownArrowRight(currentIndex: number): void;
1407
+ private onScrollKeyDown;
1408
+ setFocused(event: MouseEvent): void;
1409
+ get hasNativeValue(): boolean;
1410
+ protected onFieldKeyDownArrowLeft(event: Event): void;
1411
+ protected onFieldKeyDownBackspace(event: Event): void;
1412
+ protected onFieldKeyDownEnter(): void;
1413
+ private addTag;
1414
+ private deleteLastEnabledItem;
1415
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsInputTagComponent<any>, never>;
1416
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsInputTagComponent<any>, "ins-input-tag", never, { "disabledItemHandler": { "alias": "disabledItemHandler"; "required": false; "isSignal": true; }; "inputHidden": { "alias": "inputHidden"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "searchChange": "searchChange"; }, never, never, true, [{ directive: typeof InsTextfieldDirective; inputs: { "invalid": "invalid"; "focused": "focused"; "readOnly": "readOnly"; "disabled": "disabled"; }; outputs: {}; }]>;
1417
+ }
1418
+
1419
+ interface InsInputTagOptions extends InsAppearanceOptions {
1420
+ inputHidden: boolean;
1421
+ }
1422
+ declare const INS_INPUT_TAG_DEFAULT_OPTIONS: InsInputTagOptions;
1423
+ declare const INS_INPUT_TAG_OPTIONS: i0.InjectionToken<InsInputTagOptions>;
1424
+ declare function insInputTagOptionsProvider(options: Partial<InsInputTagOptions>): Provider;
1425
+
1426
+ /**
1427
+ * Blank directive for queries via `@ContentChildren` / `@ViewChildren` / `querySelector`
1428
+ */
1429
+ declare class InsItem {
1430
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsItem, never>;
1431
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsItem, "[insItem]", never, {}, {}, never, never, true, never>;
1432
+ }
1433
+
1434
+ declare class InsLabel {
1435
+ private readonly options;
1436
+ orientation: i0.InputSignal<"" | "horizontal" | "vertical">;
1437
+ protected readonly nothing: undefined;
1438
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsLabel, never>;
1439
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsLabel, "label[insLabel]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1440
+ }
1441
+
1442
+ interface InsLabelOptions {
1443
+ orientation: 'horizontal' | 'vertical' | '';
1444
+ }
1445
+ declare const INS_LABEL_DEFAULT_OPTIONS: InsLabelOptions;
1446
+ declare const INS_LABEL_OPTIONS: i0.InjectionToken<InsLabelOptions>;
1447
+ declare function insLabelOptionsProvider(options: Partial<InsLabelOptions>): Provider;
1448
+
1449
+ declare class InsLink {
1450
+ protected readonly nothing: undefined;
1451
+ pseudo: i0.InputSignal<boolean>;
1452
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsLink, never>;
1453
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsLink, "a[insLink], button[insLink]", never, { "pseudo": { "alias": "pseudo"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsWithAppearance; inputs: {}; outputs: {}; }]>;
1454
+ }
1455
+
1456
+ interface InsLinkOptions extends InsAppearanceOptions {
1457
+ readonly pseudo: boolean;
1458
+ }
1459
+ declare const INS_LINK_DEFAULT_OPTIONS: InsLinkOptions;
1460
+ declare const INS_LINK_OPTIONS: i0.InjectionToken<InsLinkOptions>;
1461
+ declare function insLinkOptionsProvider(options: Partial<InsLinkOptions>): FactoryProvider;
1462
+
1463
+ declare class InsLoader {
1464
+ private readonly options;
1465
+ size: i0.InputSignal<"s" | "m" | "l" | "xs">;
1466
+ inheritColor: i0.InputSignal<boolean>;
1467
+ overlay: i0.InputSignal<boolean>;
1468
+ textContent: i0.InputSignal<PolymorpheusContent>;
1469
+ protected hasOverlay: i0.Signal<boolean>;
1470
+ loading: i0.InputSignal<boolean>;
1471
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsLoader, never>;
1472
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsLoader, "ins-loader", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "inheritColor": { "alias": "inheritColor"; "required": false; "isSignal": true; }; "overlay": { "alias": "overlay"; "required": false; "isSignal": true; }; "textContent": { "alias": "textContent"; "required": false; "isSignal": true; }; "loading": { "alias": "showLoader"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
1473
+ }
1474
+
1475
+ interface InsLoaderOptions {
1476
+ readonly inheritColor: boolean;
1477
+ readonly overlay: boolean;
1478
+ readonly size: 's' | 'm' | 'l';
1479
+ }
1480
+ /** Default values for the loader options. */
1481
+ declare const INS_LOADER_DEFAULT_OPTIONS: InsLoaderOptions;
1482
+ /**
1483
+ * Default parameters for loader component
1484
+ */
1485
+ declare const INS_LOADER_OPTIONS: i0.InjectionToken<InsLoaderOptions>;
1486
+ declare function insLoaderOptionsProvider(options: Partial<InsLoaderOptions>): Provider;
1487
+
1488
+ declare class InsNotification {
1489
+ private readonly options;
1490
+ protected readonly nothing: undefined;
1491
+ protected readonly icons: InsIcons;
1492
+ appearance: i0.InputSignal<(Record<never, never> & string) | "accent" | "action-destructive" | "action-grayscale" | "action" | "flat-destructive" | "flat-grayscale" | "flat" | "glass" | "icon" | "info" | "negative" | "neutral" | "outline-destructive" | "outline-grayscale" | "outline" | "positive" | "primary-destructive" | "primary-grayscale" | "primary" | "secondary-destructive" | "secondary-grayscale" | "secondary" | "textfield">;
1493
+ icon: i0.InputSignal<string | InsStringHandler<string>>;
1494
+ size: i0.InputSignal<"s" | "m" | "l">;
1495
+ constructor();
1496
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsNotification, never>;
1497
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsNotification, "ins-notification,[insNotification]", never, { "appearance": { "alias": "appearance"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsWithIcons; inputs: {}; outputs: {}; }, { directive: typeof InsWithAppearance; inputs: {}; outputs: {}; }]>;
1498
+ }
1499
+
1500
+ declare class InsPagination {
1501
+ private readonly els;
1502
+ private readonly el;
1503
+ protected readonly textsSignal: i0.Signal<readonly [previous_page: string, next_page: string] | readonly ["", ""]>;
1504
+ protected readonly icons: _liuk123_insui.InsSpinIcons;
1505
+ length: i0.InputSignal<number>;
1506
+ focusable: i0.InputSignal<boolean>;
1507
+ size: i0.InputSignal<"s" | "m" | "l">;
1508
+ readonly disabled: i0.InputSignal<boolean>;
1509
+ activePadding: i0.InputSignal<number>;
1510
+ sidePadding: i0.InputSignal<number>;
1511
+ content: i0.InputSignal<PolymorpheusContent<InsContext<number>>>;
1512
+ /**
1513
+ * Max number of elements in half (not counting the middle one).
1514
+ */
1515
+ private maxHalfLength;
1516
+ /**
1517
+ * Max number of elements
1518
+ */
1519
+ private maxElementsLength;
1520
+ /**
1521
+ * Is there '...' anywhere
1522
+ */
1523
+ private itemsFit;
1524
+ protected elementsLength: i0.Signal<number>;
1525
+ protected elementArr: i0.Signal<any[]>;
1526
+ private lastElementIndex;
1527
+ private lastIndex;
1528
+ index: i0.ModelSignal<number>;
1529
+ /**
1530
+ * Get index by element index
1531
+ * @param elementIndex
1532
+ * @returns index or null (for '…')
1533
+ */
1534
+ protected getItemIndexByElementIndex(elementIndex: number): number | null;
1535
+ /**
1536
+ * Are there collapsed items at that index
1537
+ * @param index
1538
+ * @returns there are collapsed items
1539
+ */
1540
+ private hasCollapsedItems;
1541
+ arrowIsDisabledLeft: i0.Signal<boolean>;
1542
+ arrowIsDisabledRight: i0.Signal<boolean>;
1543
+ protected elementIsFocusable(index: number): boolean;
1544
+ private updateIndex;
1545
+ protected onElementClick(index: number): void;
1546
+ protected onElementKeyDownArrowLeft(element: HTMLElement): void;
1547
+ protected onElementKeyDownArrowRight(element: HTMLElement): void;
1548
+ protected onArrowClick(direction: 'left' | 'right'): void;
1549
+ private tryChangeTo;
1550
+ private focusActive;
1551
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPagination, never>;
1552
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsPagination, "ins-pagination", never, { "length": { "alias": "length"; "required": false; "isSignal": true; }; "focusable": { "alias": "focusable"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "activePadding": { "alias": "activePadding"; "required": false; "isSignal": true; }; "sidePadding": { "alias": "sidePadding"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; }, { "index": "indexChange"; }, never, never, true, never>;
1553
+ }
1554
+
1555
+ declare class InsPopup implements OnDestroy {
1556
+ private readonly template;
1557
+ private readonly service;
1558
+ private viewRef?;
1559
+ set insPopup(show: boolean);
1560
+ ngOnDestroy(): void;
1561
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPopup, never>;
1562
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsPopup, "ng-template[insPopup]", never, { "insPopup": { "alias": "insPopup"; "required": false; }; }, {}, never, never, true, never>;
1563
+ }
1564
+
1565
+ declare class InsPopupService extends InsPortalService {
1566
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPopupService, never>;
1567
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsPopupService>;
1568
+ }
1569
+
1570
+ declare class InsPopups extends InsPortals {
1571
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsPopups, never>;
1572
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsPopups, "ins-popups", never, {}, {}, never, ["*"], true, never>;
1573
+ }
1574
+
1575
+ declare class InsRadioComponent implements DoCheck, OnInit {
1576
+ private readonly appearance;
1577
+ private readonly options;
1578
+ private readonly el;
1579
+ private readonly destroyRef;
1580
+ private readonly cdr;
1581
+ protected readonly control: NgControl;
1582
+ size: 's' | 'm' | 'l';
1583
+ ngOnInit(): void;
1584
+ ngDoCheck(): void;
1585
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsRadioComponent, never>;
1586
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsRadioComponent, "input[type=\"radio\"][insRadio]", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsAppearance; inputs: { "insAppearanceState": "insAppearanceState"; "insAppearanceFocus": "insAppearanceFocus"; "insAppearanceMode": "insAppearanceMode"; }; outputs: {}; }, { directive: typeof InsNativeValidator; inputs: {}; outputs: {}; }]>;
1587
+ }
1588
+
1589
+ declare class InsRadioDirective<T> {
1590
+ identityMatcher: InsIdentityMatcher<T>;
1591
+ constructor();
1592
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsRadioDirective<any>, never>;
1593
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsRadioDirective<any>, "input[type=\"radio\"][insRadio][identityMatcher]", never, { "identityMatcher": { "alias": "identityMatcher"; "required": false; }; }, {}, never, never, true, never>;
1594
+ }
1595
+
1596
+ declare const InsRadio: readonly [typeof InsRadioComponent, typeof InsRadioDirective];
1597
+
1598
+ interface InsRadioOptions {
1599
+ readonly appearance: InsStringHandler<HTMLInputElement> | string;
1600
+ readonly size: 's' | 'm' | 'l';
1601
+ }
1602
+ declare const INS_RADIO_DEFAULT_OPTIONS: InsRadioOptions;
1603
+ declare const INS_RADIO_OPTIONS: i0.InjectionToken<InsRadioOptions>;
1604
+ declare function insRadioOptionsProvider(options: Partial<InsRadioOptions>): Provider;
1605
+
1606
+ declare class InsRoot {
1607
+ private readonly doc;
1608
+ private readonly el;
1609
+ private readonly child;
1610
+ protected readonly reducedMotion: i0.WritableSignal<string>;
1611
+ protected readonly isMobileRes: i0.Signal<boolean>;
1612
+ protected readonly top: i0.WritableSignal<boolean>;
1613
+ protected get parent(): boolean;
1614
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsRoot, never>;
1615
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsRoot, "ins-root", never, {}, {}, never, ["*"], true, never>;
1616
+ }
1617
+
1618
+ declare class InsTextFieldSingleDataDirective<T> extends Observable<T[]> {
1619
+ private _data$;
1620
+ data$: Observable<T[]>;
1621
+ set _data(val: T[] | null);
1622
+ getValue: null | Function;
1623
+ identityMatcher: Function;
1624
+ value$: Observable<T | null>;
1625
+ constructor();
1626
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextFieldSingleDataDirective<any>, never>;
1627
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTextFieldSingleDataDirective<any>, "[insTextFieldSingleData]", never, { "_data": { "alias": "insTextFieldSingleData"; "required": false; }; "getValue": { "alias": "getValue"; "required": false; }; "identityMatcher": { "alias": "identityMatcher"; "required": false; }; }, {}, never, never, true, never>;
1628
+ }
1629
+
1630
+ declare class InsSelectComponent<T> implements ControlValueAccessor, Validator, InsTextFieldAccessor<T>, OnInit {
1631
+ protected readonly optionsDataDirective: InsTextFieldSingleDataDirective<any>;
1632
+ protected readonly destroyRef: DestroyRef;
1633
+ value: i0.WritableSignal<T>;
1634
+ controlValue$: Subject<T>;
1635
+ writeValue$: Subject<T>;
1636
+ readOnly: i0.InputSignal<boolean>;
1637
+ disabled: i0.InputSignal<boolean>;
1638
+ placeholder: i0.InputSignal<string>;
1639
+ id: string;
1640
+ private propageteChange;
1641
+ writeValue(data: T): void;
1642
+ registerOnChange(fn: any): void;
1643
+ registerOnTouched(fn: any): void;
1644
+ validate(): any;
1645
+ ngOnInit(): void;
1646
+ mapOptionsToValues: ([dataValues, optionsArray]: [T, T[]]) => T;
1647
+ setFocused(event: MouseEvent): void;
1648
+ setValue(data: T | null): void;
1649
+ getValue(): any;
1650
+ clearValue(): void;
1651
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsSelectComponent<any>, never>;
1652
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsSelectComponent<any>, "ins-select", never, { "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1653
+ }
1654
+
1655
+ declare const INS_TAB_ACTIVATE = "ins-tab-activate";
1656
+ declare class InsTab implements OnDestroy {
1657
+ readonly el: HTMLElement;
1658
+ private readonly rla;
1659
+ protected readonly sub: rxjs.Subscription;
1660
+ ngOnDestroy(): void;
1661
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTab, never>;
1662
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTab, "a[insTab]:not([routerLink]), a[insTab][routerLink][routerLinkActive], button[insTab]", never, {}, {}, never, never, true, never>;
1663
+ }
1664
+
1665
+ declare class InsTabsStyles {
1666
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTabsStyles, never>;
1667
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTabsStyles, "ng-component", never, {}, {}, never, never, true, never>;
1668
+ }
1669
+ declare class InsTabsDirective {
1670
+ private readonly el;
1671
+ protected nothing: undefined;
1672
+ size: i0.InputSignal<"s" | "m" | "l">;
1673
+ activeItemIndex: i0.ModelSignal<number>;
1674
+ tabs: i0.Signal<readonly InsTab[]>;
1675
+ tabElements: i0.Signal<HTMLElement[]>;
1676
+ activeElement: i0.Signal<HTMLElement>;
1677
+ constructor();
1678
+ onActivate(event: Event, element: HTMLElement): void;
1679
+ moveFocus(current: HTMLElement, step: number): void;
1680
+ private scrollTo;
1681
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTabsDirective, never>;
1682
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTabsDirective, never, never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "activeItemIndex": { "alias": "activeItemIndex"; "required": false; "isSignal": true; }; }, { "activeItemIndex": "activeItemIndexChange"; }, ["tabs"], never, true, never>;
1683
+ }
1684
+
1685
+ declare class InsTabsHorizontal {
1686
+ private readonly tabs;
1687
+ protected onKeyDownArrow(current: HTMLElement, step: number): void;
1688
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTabsHorizontal, never>;
1689
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTabsHorizontal, "ins-tabs:not([vertical]), nav[insTabs]:not([vertical])", never, {}, {}, never, never, true, [{ directive: typeof InsTabsDirective; inputs: { "activeItemIndex": "activeItemIndex"; "size": "size"; }; outputs: { "activeItemIndexChange": "activeItemIndexChange"; }; }]>;
1690
+ }
1691
+
1692
+ declare class InsTabsVertical {
1693
+ private readonly tabs;
1694
+ vertical: i0.InputSignal<InsHorizontalDirection>;
1695
+ protected onKeyDownArrow(current: HTMLElement, step: number): void;
1696
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTabsVertical, never>;
1697
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTabsVertical, "ins-tabs[vertical], nav[insTabs][vertical]", never, { "vertical": { "alias": "vertical"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsTabsDirective; inputs: { "activeItemIndex": "activeItemIndex"; "size": "size"; }; outputs: { "activeItemIndexChange": "activeItemIndexChange"; }; }]>;
1698
+ }
1699
+
1700
+ declare class InsTabsWithMore implements AfterViewInit, OnInit {
1701
+ private moreButton;
1702
+ private readonly doc;
1703
+ private readonly el;
1704
+ protected readonly moreWord: i0.Signal<string>;
1705
+ protected readonly options: _liuk123_insui.InsTabsOptions;
1706
+ private readonly injector;
1707
+ tabsView: ElementRef;
1708
+ protected moreEl: i0.Signal<any>;
1709
+ protected readonly items: i0.Signal<readonly TemplateRef<any>[]>;
1710
+ activeItemIndex: i0.ModelSignal<number>;
1711
+ protected size: i0.InputSignal<"s" | "m" | "l">;
1712
+ protected readonly moreContent: i0.InputSignal<PolymorpheusContent>;
1713
+ itemsLimit: i0.InputSignal<number>;
1714
+ private margin;
1715
+ private refreshIndex$;
1716
+ protected open: i0.ModelSignal<boolean>;
1717
+ refresh$: rxjs.Observable<void | readonly MutationRecord[] | readonly ResizeObserverEntry[]>;
1718
+ constructor();
1719
+ ngOnInit(): void;
1720
+ ngAfterViewInit(): void;
1721
+ private tabsContent;
1722
+ private tabs;
1723
+ protected lastVisibleIndex: i0.Signal<number>;
1724
+ private maxIndex;
1725
+ private getMaxIndex;
1726
+ insToInt(bool: boolean): 0 | 1;
1727
+ protected isMoreActive: i0.Signal<boolean>;
1728
+ protected isMoreAlone: i0.Signal<boolean>;
1729
+ protected isMoreVisible: i0.Signal<boolean>;
1730
+ protected get isMoreFocusable(): boolean;
1731
+ private focusMore;
1732
+ protected onClick(index: number): void;
1733
+ protected onArrowLeft(): void;
1734
+ protected onWrapperArrow(event: Event, wrapper: HTMLElement, previous: boolean): void;
1735
+ protected onKeyDownArrow(current: any, step: number): void;
1736
+ onActivate(event: Event): void;
1737
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTabsWithMore, never>;
1738
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTabsWithMore, "ins-tabs-with-more", never, { "activeItemIndex": { "alias": "activeItemIndex"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "moreContent": { "alias": "moreContent"; "required": false; "isSignal": true; }; "itemsLimit": { "alias": "itemsLimit"; "required": false; "isSignal": true; }; "open": { "alias": "open"; "required": false; "isSignal": true; }; }, { "activeItemIndex": "activeItemIndexChange"; "open": "openChange"; }, ["items", "tabsContent"], never, true, never>;
1739
+ }
1740
+
1741
+ declare const InsTabs: readonly [typeof InsTab, typeof InsTabsDirective, typeof InsTabsHorizontal, typeof InsTabsVertical, typeof InsTabsWithMore];
1742
+
1743
+ interface InsTabsOptions {
1744
+ readonly exposeActive: boolean;
1745
+ readonly itemsLimit: number;
1746
+ readonly minMoreWidth: number;
1747
+ readonly underline: boolean | string;
1748
+ readonly size: 's' | 'm' | 'l';
1749
+ }
1750
+ declare const INS_TABS_DEFAULT_OPTIONS: InsTabsOptions;
1751
+ /**
1752
+ * Default parameters for Tabs component
1753
+ */
1754
+ declare const INS_TABS_OPTIONS: InjectionToken<InsTabsOptions>;
1755
+ declare function insTabsOptionsProvider(options: Partial<InsTabsOptions>): Provider;
1756
+
1757
+ declare class InsTextfieldComponent<T> implements InsDataListHost<T> {
1758
+ protected readonly controller: i0.Signal<InsTextFieldAccessor<T>>;
1759
+ readonly focused: i0.Signal<boolean>;
1760
+ readonly options: _liuk123_insui.InsTextfieldOptions;
1761
+ readonly icons: _liuk123_insui.InsCommonIcons;
1762
+ readonly clear: i0.Signal<string>;
1763
+ cleaner: i0.WritableSignal<boolean>;
1764
+ size: InputSignal<"s" | "m" | "l" | "xs">;
1765
+ handleOption(option: T): void;
1766
+ side: i0.WritableSignal<string>;
1767
+ onResize({ contentRect }: any | ResizeObserverEntry): void;
1768
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextfieldComponent<any>, never>;
1769
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTextfieldComponent<any>, "ins-textfield", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, ["controller"], ["select,input,textarea,ins-input-tag", "*", "ins-icon"], true, [{ directive: typeof InsWithIcons; inputs: {}; outputs: {}; }]>;
1770
+ }
1771
+
1772
+ declare class InsTextfieldDropdownDirective {
1773
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextfieldDropdownDirective, never>;
1774
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTextfieldDropdownDirective, "ng-template[insTextfieldDropdown]", never, {}, {}, never, never, true, never>;
1775
+ }
1776
+ declare class InsWithTextfieldDropdown {
1777
+ private readonly dropdown;
1778
+ private readonly textfield;
1779
+ protected temp: i0.Signal<TemplateRef<any>>;
1780
+ constructor();
1781
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsWithTextfieldDropdown, never>;
1782
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsWithTextfieldDropdown, "[insWithTextfieldDropdown]", never, {}, {}, ["temp"], never, true, [{ directive: typeof InsWithDropdownOpen; inputs: {}; outputs: {}; }, { directive: typeof InsDropdownDirective; inputs: {}; outputs: {}; }]>;
1783
+ }
1784
+
1785
+ declare class InsTextFieldController<T> implements InsTextFieldAccessor<T> {
1786
+ readonly el: HTMLInputElement;
1787
+ protected readonly autoId: string;
1788
+ stringify: StringConstructor;
1789
+ id: string;
1790
+ setValue(value: T | null): void;
1791
+ getValue(): any;
1792
+ clearValue(): void;
1793
+ setFocused(event: MouseEvent): void;
1794
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextFieldController<any>, never>;
1795
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTextFieldController<any>, "[insTextFieldController]", never, { "stringify": { "alias": "stringify"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsTextfieldDirective; inputs: { "invalid": "invalid"; "focused": "focused"; "readOnly": "readOnly"; "disabled": "disabled"; }; outputs: {}; }]>;
1796
+ }
1797
+
1798
+ declare class InsTextFieldDataDirective<T> extends Observable<T[]> {
1799
+ private _data$;
1800
+ data$: Observable<T[]>;
1801
+ set _data(val: T[] | null);
1802
+ getValue: null | Function;
1803
+ identityMatcher: Function;
1804
+ stringify: Function;
1805
+ constructor();
1806
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextFieldDataDirective<any>, never>;
1807
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTextFieldDataDirective<any>, "[insTextFieldData]", never, { "_data": { "alias": "insTextFieldData"; "required": false; }; "getValue": { "alias": "getValue"; "required": false; }; "identityMatcher": { "alias": "identityMatcher"; "required": false; }; "stringify": { "alias": "stringify"; "required": false; }; }, {}, never, never, true, never>;
1808
+ }
1809
+
1810
+ declare const InsTextfield: readonly [typeof InsLabel, typeof InsTextfieldComponent, typeof InsTextfieldDirective, typeof InsTextFieldController, typeof InsTextfieldDropdownDirective, typeof InsTextFieldDataDirective, typeof InsWithTextfieldDropdown, typeof InsTextFieldSingleDataDirective];
1811
+
1812
+ declare class InsTreeChildren<T> {
1813
+ childrenHandler: i0.InputSignal<InsHandler<T, readonly T[]>>;
1814
+ static defaultHandler<G>(item: G): readonly G[];
1815
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTreeChildren<any>, never>;
1816
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTreeChildren<any>, "ins-tree[childrenHandler]", never, { "childrenHandler": { "alias": "childrenHandler"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1817
+ }
1818
+
1819
+ interface InsTreeItemContext<T> extends InsContext<InsTreeItem<T>> {
1820
+ readonly template: TemplateRef<Record<string, unknown>>;
1821
+ }
1822
+ interface InsTreeContext<T> extends InsContext<T> {
1823
+ readonly node: InsTreeItem<T>;
1824
+ }
1825
+ interface InsTreeController<T> {
1826
+ isExpanded(item: InsTreeItem<T>): boolean;
1827
+ toggle(item: InsTreeItem<T>): void;
1828
+ }
1829
+ interface InsTreeAccessor<T> {
1830
+ register(item: InsTreeItem<T>, value: T): void;
1831
+ unregister(item: InsTreeItem<T>): void;
1832
+ }
1833
+ interface InsTreeLoader<T> {
1834
+ hasChildren(item: T): boolean;
1835
+ loadChildren(item: T): Observable<T[]>;
1836
+ }
1837
+
1838
+ declare class InsTreeItem<T> implements DoCheck, OnDestroy {
1839
+ protected readonly nested: i0.Signal<readonly QueryList<unknown>[]>;
1840
+ private readonly change$;
1841
+ protected readonly directive: InsTreeChildren<T>;
1842
+ value: i0.InputSignal<T>;
1843
+ trackBy: TrackByFunction<T>;
1844
+ content: PolymorpheusContent<InsTreeContext<T>>;
1845
+ protected handler: i0.Signal<_liuk123_insui.InsHandler<T, readonly T[]>>;
1846
+ protected readonly children: i0.Signal<readonly T[]>;
1847
+ private readonly controller;
1848
+ private readonly accessor;
1849
+ protected readonly level: number;
1850
+ readonly expanded: i0.Signal<boolean>;
1851
+ isExpandable: i0.Signal<boolean>;
1852
+ get isExpanded(): boolean;
1853
+ constructor();
1854
+ ngOnDestroy(): void;
1855
+ ngDoCheck(): void;
1856
+ protected readonly icons: _liuk123_insui.InsCommonIcons;
1857
+ protected readonly more: i0.Signal<string>;
1858
+ protected onClick(): void;
1859
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTreeItem<any>, never>;
1860
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTreeItem<any>, "ins-tree", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "trackBy": { "alias": "trackBy"; "required": false; }; "content": { "alias": "content"; "required": false; }; }, {}, ["nested"], ["*", "ins-tree"], true, never>;
1861
+ }
1862
+
1863
+ declare class InsTreeControllerDirective<T> implements InsTreeController<T>, InsTreeAccessor<T> {
1864
+ protected readonly items: Map<InsTreeItem<T>, T>;
1865
+ fallback: boolean;
1866
+ map: Map<T, boolean>;
1867
+ register(item: InsTreeItem<T>, value: T): void;
1868
+ unregister(item: InsTreeItem<T>): void;
1869
+ isExpanded(item: InsTreeItem<T>): boolean;
1870
+ toggle(item: InsTreeItem<T>): void;
1871
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTreeControllerDirective<any>, never>;
1872
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTreeControllerDirective<any>, "[insTreeController][map]", ["insTreeController"], { "fallback": { "alias": "insTreeController"; "required": false; }; "map": { "alias": "map"; "required": false; }; }, {}, never, never, true, never>;
1873
+ }
1874
+
1875
+ declare class InsTreeItemController<T> implements InsTreeController<T> {
1876
+ private readonly map;
1877
+ fallback: boolean;
1878
+ isExpanded(item: InsTreeItem<T>): boolean;
1879
+ toggle(item: InsTreeItem<T>): void;
1880
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTreeItemController<any>, never>;
1881
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTreeItemController<any>, "[insTreeController]:not([map])", ["insTreeController"], { "fallback": { "alias": "insTreeController"; "required": false; }; }, {}, never, never, true, never>;
1882
+ }
1883
+
1884
+ declare const INS_DEFAULT_TREE_CONTROLLER: InsTreeController<any>;
1885
+
1886
+ declare class InsTreeService<T> {
1887
+ private readonly loading;
1888
+ private readonly start;
1889
+ private readonly loader;
1890
+ private readonly map;
1891
+ private readonly load$;
1892
+ readonly data$: rxjs.Observable<T>;
1893
+ getChildren(item: T): readonly T[];
1894
+ loadChildren(item: T): void;
1895
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTreeService<any>, never>;
1896
+ static ɵprov: i0.ɵɵInjectableDeclaration<InsTreeService<any>>;
1897
+ }
1898
+
1899
+ /**
1900
+ * Controller for tracking value - InsTreeItemComponent pairs
1901
+ */
1902
+ declare const INS_TREE_ACCESSOR: InjectionToken<InsTreeAccessor<unknown>>;
1903
+ /**
1904
+ * Controller for expanding the tree
1905
+ */
1906
+ declare const INS_TREE_CONTROLLER: InjectionToken<_liuk123_insui.InsTreeController<any>>;
1907
+ /**
1908
+ * A node of a tree view
1909
+ */
1910
+ declare const INS_TREE_NODE: InjectionToken<unknown>;
1911
+ /**
1912
+ * A tree node placeholder for loading
1913
+ */
1914
+ declare const INS_TREE_LOADING: InjectionToken<{}>;
1915
+ /**
1916
+ * A tree node starting point
1917
+ */
1918
+ declare const INS_TREE_START: InjectionToken<unknown>;
1919
+ /**
1920
+ * A service to load tree progressively
1921
+ */
1922
+ declare const INS_TREE_LOADER: InjectionToken<InsTreeLoader<unknown>>;
1923
+ /**
1924
+ * Content for a tree item
1925
+ */
1926
+ /**
1927
+ * Nesting level of current TreeView node
1928
+ */
1929
+ declare const INS_TREE_LEVEL: InjectionToken<number>;
1930
+
1931
+ declare const InsTree: readonly [typeof InsTreeItem, typeof InsTreeChildren, typeof InsTreeItemController, typeof InsTreeControllerDirective];
1932
+
1933
+ declare class InsTitle {
1934
+ protected readonly nothing: undefined;
1935
+ size: i0.InputSignalWithTransform<"s" | "m" | "l" | "xs" | "xl" | "xxl", "" | "s" | "m" | "l" | "xs" | "xl" | "xxl">;
1936
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTitle, never>;
1937
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTitle, "[insTitle]", never, { "size": { "alias": "insTitle"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1938
+ }
1939
+
1940
+ declare class InsTextarea implements AfterViewInit {
1941
+ private readonly template?;
1942
+ private readonly vcr;
1943
+ protected readonly el: HTMLTextAreaElement;
1944
+ private readonly options;
1945
+ min: i0.InputSignal<number>;
1946
+ max: i0.InputSignal<number>;
1947
+ content: i0.InputSignal<_liuk123_insui.PolymorpheusContent<_liuk123_insui.InsContext<string>>>;
1948
+ ngAfterViewInit(): void;
1949
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextarea, never>;
1950
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTextarea, "textarea[insTextarea]", never, { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof InsTextFieldController; inputs: { "stringify": "stringify"; }; outputs: {}; }]>;
1951
+ }
1952
+
1953
+ interface InsTextareaOptions {
1954
+ min: number;
1955
+ max: number;
1956
+ content: PolymorpheusContent<InsContext<string>>;
1957
+ }
1958
+ declare const INS_TEXTAREA_DEFAULT_OPTIONS: InsTextareaOptions;
1959
+ declare const INS_TEXTAREA_OPTIONS: i0.InjectionToken<InsTextareaOptions>;
1960
+ declare function insTextareaOptionsProvider(options: Partial<InsTextareaOptions>): FactoryProvider;
1961
+
1962
+ declare class InsTextareaLimitComponent {
1963
+ protected readonly limit: i0.InputSignal<number>;
1964
+ protected readonly context: InsContext<string>;
1965
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextareaLimitComponent, never>;
1966
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTextareaLimitComponent, "ng-component", never, {}, {}, never, never, true, never>;
1967
+ }
1968
+ declare class InsTextareaCounterComponent {
1969
+ readonly limit: i0.WritableSignal<number>;
1970
+ readonly length: i0.WritableSignal<number>;
1971
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextareaCounterComponent, never>;
1972
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTextareaCounterComponent, "ng-component", never, {}, {}, never, never, true, never>;
1973
+ }
1974
+ declare class InsTextareaLimit implements Validator, DoCheck {
1975
+ private readonly textfield;
1976
+ private readonly ref;
1977
+ readonly size: "s" | "m" | "l" | "xs";
1978
+ readonly limit: i0.InputSignal<number>;
1979
+ ngDoCheck(): void;
1980
+ validate(control: AbstractControl): ValidationErrors | null;
1981
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTextareaLimit, never>;
1982
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTextareaLimit, "textarea[insLimit]", never, { "limit": { "alias": "insLimit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
1983
+ }
1984
+
1985
+ declare const NG_EVENT_PLUGINS: Provider[];
1986
+
1987
+ declare class OptionsEventPlugin extends EventManagerPlugin {
1988
+ readonly modifier = "capture.once.passive";
1989
+ constructor();
1990
+ supports(event: string): boolean;
1991
+ addEventListener(element: HTMLElement, event: string, handler: EventListener): Function;
1992
+ protected unwrap(event: string): string;
1993
+ static ɵfac: i0.ɵɵFactoryDeclaration<OptionsEventPlugin, never>;
1994
+ static ɵprov: i0.ɵɵInjectableDeclaration<OptionsEventPlugin>;
1995
+ }
1996
+
1997
+ declare class PreventEventPlugin extends EventManagerPlugin {
1998
+ readonly modifier = ".prevent";
1999
+ constructor();
2000
+ supports(event: string): boolean;
2001
+ addEventListener(element: HTMLElement, event: string, handler: Function): Function;
2002
+ protected unwrap(event: string): string;
2003
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreventEventPlugin, never>;
2004
+ static ɵprov: i0.ɵɵInjectableDeclaration<PreventEventPlugin>;
2005
+ }
2006
+
2007
+ declare class SelfEventPlugin extends EventManagerPlugin {
2008
+ readonly modifier = ".self";
2009
+ constructor();
2010
+ supports(event: string): boolean;
2011
+ addEventListener(element: HTMLElement, event: string, handler: Function): Function;
2012
+ protected unwrap(event: string): string;
2013
+ static ɵfac: i0.ɵɵFactoryDeclaration<SelfEventPlugin, never>;
2014
+ static ɵprov: i0.ɵɵInjectableDeclaration<SelfEventPlugin>;
2015
+ }
2016
+
2017
+ declare class SilentEventPlugin extends EventManagerPlugin {
2018
+ readonly modifier = ".zoneless";
2019
+ static ngZone?: NgZone;
2020
+ constructor();
2021
+ supports(event: string): boolean;
2022
+ addEventListener(element: HTMLElement, event: string, handler: Function): Function;
2023
+ protected unwrap(event: string): string;
2024
+ static ɵfac: i0.ɵɵFactoryDeclaration<SilentEventPlugin, never>;
2025
+ static ɵprov: i0.ɵɵInjectableDeclaration<SilentEventPlugin>;
2026
+ }
2027
+
2028
+ declare class StopEventPlugin extends EventManagerPlugin {
2029
+ readonly modifier = ".stop";
2030
+ constructor();
2031
+ supports(event: string): boolean;
2032
+ addEventListener(element: HTMLElement, event: string, handler: Function): Function;
2033
+ protected unwrap(event: string): string;
2034
+ static ɵfac: i0.ɵɵFactoryDeclaration<StopEventPlugin, never>;
2035
+ static ɵprov: i0.ɵɵInjectableDeclaration<StopEventPlugin>;
2036
+ }
2037
+
2038
+ type InsLanguageName = 'belarusian' | 'chinese' | 'dutch' | 'english' | 'french' | 'german' | 'hebrew' | 'italian' | 'japan' | 'kazakh' | 'korean' | 'malay' | 'polish' | 'portuguese' | 'russian' | 'spanish' | 'turkish' | 'ukrainian' | 'vietnamese' | (Record<never, never> & string);
2039
+
2040
+ interface InsLanguageCore {
2041
+ close: string;
2042
+ clear: string;
2043
+ defaultErrorMessage: string;
2044
+ months: [
2045
+ January: string,
2046
+ February: string,
2047
+ March: string,
2048
+ April: string,
2049
+ May: string,
2050
+ June: string,
2051
+ July: string,
2052
+ August: string,
2053
+ September: string,
2054
+ October: string,
2055
+ November: string,
2056
+ December: string
2057
+ ];
2058
+ nothingFoundMessage: string;
2059
+ shortWeekDays: [
2060
+ Monday: string,
2061
+ Tuesday: string,
2062
+ Wednesday: string,
2063
+ Thursday: string,
2064
+ Friday: string,
2065
+ Saturday: string,
2066
+ Sunday: string
2067
+ ];
2068
+ spinTexts: [previous: string, next: string];
2069
+ more: string;
2070
+ pagination: readonly [previous_page: string, next_page: string];
2071
+ cancel: string;
2072
+ copyTexts: [copy: string, copied: string];
2073
+ hide: string;
2074
+ showAll: string;
2075
+ fileTexts: {
2076
+ loadingError: string;
2077
+ preview: string;
2078
+ remove: string;
2079
+ };
2080
+ digitalInformationUnits: [
2081
+ short_byte: string,
2082
+ short_kilobyte: string,
2083
+ short_megabyte: string
2084
+ ];
2085
+ confirm: {
2086
+ no: string;
2087
+ yes: string;
2088
+ };
2089
+ }
2090
+ interface InsLanguageKit {
2091
+ cancel: string;
2092
+ copyTexts: [copy: string, copied: string];
2093
+ countTexts: [plus: string, minus: string];
2094
+ dateTexts: {
2095
+ DMY: string;
2096
+ MDY: string;
2097
+ YMD: string;
2098
+ };
2099
+ digitalInformationUnits: [
2100
+ short_byte: string,
2101
+ short_kilobyte: string,
2102
+ short_megabyte: string
2103
+ ];
2104
+ done: string;
2105
+ fileTexts: {
2106
+ loadingError: string;
2107
+ preview: string;
2108
+ remove: string;
2109
+ };
2110
+ hide: string;
2111
+ inputFileTexts: {
2112
+ defaultLabelMultiple: string;
2113
+ defaultLabelSingle: string;
2114
+ defaultLinkMultiple: string;
2115
+ defaultLinkSingle: string;
2116
+ drop: string;
2117
+ dropMultiple: string;
2118
+ formatRejectionReason: string;
2119
+ maxSizeRejectionReason: string;
2120
+ };
2121
+ mobileCalendarTexts: [choose_day: string, choose_range: string, choose_days: string];
2122
+ more: string;
2123
+ multiSelectTexts: {
2124
+ all: string;
2125
+ none: string;
2126
+ };
2127
+ otherDate: string;
2128
+ pagination: [previous_page: string, next_page: string];
2129
+ passwordTexts: [show_password: string, hide_password: string];
2130
+ confirm: {
2131
+ no: string;
2132
+ yes: string;
2133
+ };
2134
+ range: [from: string, to: string];
2135
+ shortCalendarMonths: [
2136
+ January: string,
2137
+ February: string,
2138
+ March: string,
2139
+ April: string,
2140
+ May: string,
2141
+ June: string,
2142
+ July: string,
2143
+ August: string,
2144
+ September: string,
2145
+ October: string,
2146
+ November: string,
2147
+ December: string
2148
+ ];
2149
+ showAll: string;
2150
+ time: {
2151
+ 'HH:MM': string;
2152
+ 'HH:MM:SS': string;
2153
+ 'HH:MM:SS.MSS': string;
2154
+ };
2155
+ previewTexts: {
2156
+ rotate: string;
2157
+ };
2158
+ zoomTexts: {
2159
+ zoomIn: string;
2160
+ zoomOut: string;
2161
+ reset: string;
2162
+ };
2163
+ }
2164
+ interface InsLanguageMeta {
2165
+ name: InsLanguageName;
2166
+ }
2167
+ interface InsLanguage extends InsLanguageCore, InsLanguageMeta {
2168
+ }
2169
+
2170
+ declare const INS_CHINESE_LANGUAGE: InsLanguage;
2171
+
2172
+ declare const INS_DEFAULT_LANGUAGE: InjectionToken<InsLanguage>;
2173
+ /**
2174
+ * Language for libraries i18n
2175
+ */
2176
+ declare const INS_LANGUAGE: InjectionToken<Observable<InsLanguage>>;
2177
+
2178
+ type InsCountryIsoCode = 'AC' | 'AD' | 'AE' | 'AF' | 'AG' | 'AI' | 'AL' | 'AM' | 'AO' | 'AR' | 'AS' | 'AT' | 'AU' | 'AW' | 'AX' | 'AZ' | 'BA' | 'BB' | 'BD' | 'BE' | 'BF' | 'BG' | 'BH' | 'BI' | 'BJ' | 'BL' | 'BM' | 'BN' | 'BO' | 'BQ' | 'BR' | 'BS' | 'BT' | 'BW' | 'BY' | 'BZ' | 'CA' | 'CC' | 'CD' | 'CF' | 'CG' | 'CH' | 'CI' | 'CK' | 'CL' | 'CM' | 'CN' | 'CO' | 'CR' | 'CU' | 'CV' | 'CW' | 'CX' | 'CY' | 'CZ' | 'DE' | 'DJ' | 'DK' | 'DM' | 'DO' | 'DZ' | 'EC' | 'EE' | 'EG' | 'EH' | 'ER' | 'ES' | 'ET' | 'FI' | 'FJ' | 'FK' | 'FM' | 'FO' | 'FR' | 'GA' | 'GB' | 'GD' | 'GE' | 'GF' | 'GG' | 'GH' | 'GI' | 'GL' | 'GM' | 'GN' | 'GP' | 'GQ' | 'GR' | 'GT' | 'GU' | 'GW' | 'GY' | 'HK' | 'HN' | 'HR' | 'HT' | 'HU' | 'ID' | 'IE' | 'IL' | 'IM' | 'IN' | 'IO' | 'IQ' | 'IR' | 'IS' | 'IT' | 'JE' | 'JM' | 'JO' | 'JP' | 'KE' | 'KG' | 'KH' | 'KI' | 'KM' | 'KN' | 'KP' | 'KR' | 'KW' | 'KY' | 'KZ' | 'LA' | 'LB' | 'LC' | 'LI' | 'LK' | 'LR' | 'LS' | 'LT' | 'LU' | 'LV' | 'LY' | 'MA' | 'MC' | 'MD' | 'ME' | 'MF' | 'MG' | 'MH' | 'MK' | 'ML' | 'MM' | 'MN' | 'MO' | 'MP' | 'MQ' | 'MR' | 'MS' | 'MT' | 'MU' | 'MV' | 'MW' | 'MX' | 'MY' | 'MZ' | 'NA' | 'NC' | 'NE' | 'NF' | 'NG' | 'NI' | 'NL' | 'NO' | 'NP' | 'NR' | 'NU' | 'NZ' | 'OM' | 'PA' | 'PE' | 'PF' | 'PG' | 'PH' | 'PK' | 'PL' | 'PM' | 'PR' | 'PS' | 'PT' | 'PW' | 'PY' | 'QA' | 'RE' | 'RO' | 'RS' | 'RU' | 'RW' | 'SA' | 'SB' | 'SC' | 'SD' | 'SE' | 'SG' | 'SH' | 'SI' | 'SJ' | 'SK' | 'SL' | 'SM' | 'SN' | 'SO' | 'SR' | 'SS' | 'ST' | 'SV' | 'SX' | 'SY' | 'SZ' | 'TA' | 'TC' | 'TD' | 'TG' | 'TH' | 'TJ' | 'TK' | 'TL' | 'TM' | 'TN' | 'TO' | 'TR' | 'TT' | 'TV' | 'TW' | 'TZ' | 'UA' | 'UG' | 'US' | 'UY' | 'UZ' | 'VA' | 'VC' | 'VE' | 'VG' | 'VI' | 'VN' | 'VU' | 'WF' | 'WS' | 'XK' | 'YE' | 'YT' | 'ZA' | 'ZM' | 'ZW';
2179
+
2180
+ declare function insExtractI18n<K extends keyof InsLanguage>(key: K): () => Observable<InsLanguage[K]>;
2181
+
2182
+ declare class InsCardLarge {
2183
+ protected readonly nothing: undefined;
2184
+ space: i0.InputSignalWithTransform<"normal" | "compact" | "large", "" | "normal" | "compact" | "large">;
2185
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsCardLarge, never>;
2186
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsCardLarge, "[insCardLarge]", never, { "space": { "alias": "insCardLarge"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2187
+ }
2188
+
2189
+ declare class InsCell {
2190
+ protected readonly nothing: undefined;
2191
+ size: i0.InputSignalWithTransform<"s" | "m" | "l", "" | "s" | "m" | "l">;
2192
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsCell, never>;
2193
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsCell, "[insCell]:not(ng-template)", never, { "size": { "alias": "insCell"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2194
+ }
2195
+
2196
+ declare class InsHeader {
2197
+ protected readonly nothing: undefined;
2198
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsHeader, never>;
2199
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsHeader, "[insHeader]", never, {}, {}, never, never, true, never>;
2200
+ }
2201
+
2202
+ declare class InsMapperPipe implements PipeTransform {
2203
+ /**
2204
+ * Maps object to an arbitrary result through a mapper function
2205
+ *
2206
+ * @param value an item to transform
2207
+ * @param mapper a mapping function
2208
+ * @param args arbitrary number of additional arguments
2209
+ */
2210
+ transform<T extends unknown[], U, G>(value: U, mapper: InsMapper<[U, ...T], G>, ...args: T): G;
2211
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsMapperPipe, never>;
2212
+ static ɵpipe: i0.ɵɵPipeDeclaration<InsMapperPipe, "insMapper", true>;
2213
+ }
2214
+
2215
+ /**
2216
+ * Active element on the document for ActiveZone
2217
+ */
2218
+ declare const INS_ACTIVE_ELEMENT: i0.InjectionToken<Observable<EventTarget>>;
2219
+
2220
+ interface InsCommonIcons {
2221
+ readonly check: string;
2222
+ readonly close: string;
2223
+ readonly error: string;
2224
+ readonly more: string;
2225
+ readonly search: string;
2226
+ readonly ellipsis: string;
2227
+ }
2228
+ declare const INS_COMMON_ICONS: i0.InjectionToken<InsCommonIcons>;
2229
+ declare function commonIconsProvider(icons: Partial<InsCommonIcons>): Provider;
2230
+
2231
+ declare const IS_IOS: i0.InjectionToken<boolean>;
2232
+
2233
+ /**
2234
+ * Localized months names
2235
+ */
2236
+ /**
2237
+ * i18n 'close' word
2238
+ */
2239
+ declare const INS_CLOSE_WORD: i0.InjectionToken<rxjs.Observable<string>>;
2240
+ /**
2241
+ * i18n 'clear' word
2242
+ */
2243
+ declare const INS_CLEAR_WORD: i0.InjectionToken<rxjs.Observable<string>>;
2244
+ /**
2245
+ * i18n 'Nothing found' message
2246
+ */
2247
+ declare const INS_NOTHING_FOUND_MESSAGE: i0.InjectionToken<rxjs.Observable<string>>;
2248
+ /**
2249
+ * i18n of error message
2250
+ */
2251
+ declare const INS_DEFAULT_ERROR_MESSAGE: i0.InjectionToken<rxjs.Observable<string>>;
2252
+ /**
2253
+ * spin i18n texts
2254
+ */
2255
+ /**
2256
+ * calendars i18n texts
2257
+ */
2258
+ declare const INS_MORE_WORD: i0.InjectionToken<rxjs.Observable<string>>;
2259
+ declare const INS_PAGINATION_TEXTS: i0.InjectionToken<rxjs.Observable<readonly [previous_page: string, next_page: string]>>;
2260
+
2261
+ declare const REDUCED_MOTION: i0.InjectionToken<boolean>;
2262
+
2263
+ declare const INS_REMOVED_ELEMENT: InjectionToken<rxjs.Observable<any>>;
2264
+
2265
+ interface InsSpinIcons {
2266
+ readonly decrement: string;
2267
+ readonly increment: string;
2268
+ }
2269
+ declare const INS_SPIN_ICONS: i0.InjectionToken<InsSpinIcons>;
2270
+
2271
+ /**
2272
+ * Validation errors
2273
+ */
2274
+ declare const INS_VALIDATION_ERRORS: i0.InjectionToken<Record<string, PolymorpheusContent | Observable<PolymorpheusContent>>>;
2275
+
2276
+ /**
2277
+ * Viewport accessor
2278
+ */
2279
+ declare const INS_VIEWPORT: i0.InjectionToken<InsRectAccessor>;
2280
+ declare function insAsViewport(accessor: Type<InsRectAccessor>): Provider;
2281
+
2282
+ /**
2283
+ * A stream of possible selection changes
2284
+ */
2285
+ declare const INS_SELECTION_STREAM: InjectionToken<Observable<unknown>>;
2286
+
2287
+ declare const WINDOW: InjectionToken<Window>;
2288
+
2289
+ declare const ANIMATION_FRAME: InjectionToken<Observable<number>>;
2290
+
2291
+ /**
2292
+ * 存储接口,模拟localStorage API
2293
+ */
2294
+ interface Storage {
2295
+ readonly length: number;
2296
+ clear(): void;
2297
+ getItem(key: string): string | null;
2298
+ key(index: number): string | null;
2299
+ removeItem(key: string): void;
2300
+ setItem(key: string, value: string): void;
2301
+ }
2302
+ declare const LOCAL_STORAGE: InjectionToken<Storage>;
2303
+
2304
+ declare class MutationObserverService extends Observable<readonly MutationRecord[]> {
2305
+ constructor();
2306
+ static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserverService, never>;
2307
+ static ɵprov: i0.ɵɵInjectableDeclaration<MutationObserverService>;
2308
+ }
2309
+
2310
+ declare const SafeObserver: {
2311
+ new (callback: MutationCallback): MutationObserver;
2312
+ prototype: MutationObserver;
2313
+ };
2314
+ declare const MUTATION_OBSERVER_INIT: InjectionToken<MutationObserverInit>;
2315
+ declare function provideMutationObserverInit(useValue: MutationObserverInit): Provider;
2316
+
2317
+ declare class MutationObserver$1 extends SafeObserver implements OnDestroy {
2318
+ private readonly nativeElement;
2319
+ private readonly config;
2320
+ attributeFilter: string;
2321
+ attributeOldValue: "";
2322
+ attributes: "";
2323
+ characterData: "";
2324
+ characterDataOldValue: "";
2325
+ childList: "";
2326
+ subtree: "";
2327
+ readonly mutationObserver: EventEmitter<MutationRecord[]>;
2328
+ constructor();
2329
+ ngOnDestroy(): void;
2330
+ static ɵfac: i0.ɵɵFactoryDeclaration<MutationObserver$1, never>;
2331
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MutationObserver$1, "[mutationObserver]", ["MutationObserver"], { "attributeFilter": { "alias": "attributeFilter"; "required": false; }; "attributeOldValue": { "alias": "attributeOldValue"; "required": false; }; "attributes": { "alias": "attributes"; "required": false; }; "characterData": { "alias": "characterData"; "required": false; }; "characterDataOldValue": { "alias": "characterDataOldValue"; "required": false; }; "childList": { "alias": "childList"; "required": false; }; "subtree": { "alias": "subtree"; "required": false; }; }, { "mutationObserver": "mutationObserver"; }, never, never, true, never>;
2332
+ }
2333
+
2334
+ declare class ResizeObserverService extends Observable<readonly ResizeObserverEntry[]> {
2335
+ constructor();
2336
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserverService, never>;
2337
+ static ɵprov: i0.ɵɵInjectableDeclaration<ResizeObserverService>;
2338
+ }
2339
+
2340
+ declare const RESIZE_OPTION_BOX_DEFAULT = "content-box";
2341
+ declare const RESIZE_OPTION_BOX: InjectionToken<ResizeObserverBoxOptions>;
2342
+
2343
+ declare class ResizeObserver$1 {
2344
+ protected readonly resizeObserver: ResizeObserverService;
2345
+ box: ResizeObserverBoxOptions;
2346
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizeObserver$1, never>;
2347
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeObserver$1, "[resizeObserver]", never, { "resizeBox": { "alias": "box"; "required": false; }; }, { "resizeObserver": "resizeObserver"; }, never, never, true, never>;
2348
+ }
2349
+
2350
+ declare class InsTableTd {
2351
+ protected readonly textfield: i0.Signal<InsTextfieldComponent<any>>;
2352
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableTd, never>;
2353
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTableTd, "th[insTd], td[insTd]", never, {}, {}, ["textfield"], ["*"], true, never>;
2354
+ }
2355
+
2356
+ declare class InsTableThGroup<T extends Partial<Record<keyof T, any>>> {
2357
+ protected readonly th: i0.Signal<readonly any[]>;
2358
+ protected readonly heads: i0.Signal<readonly any[]>;
2359
+ protected readonly table: any;
2360
+ protected headsSignal: i0.Signal<any>;
2361
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableThGroup<any>, never>;
2362
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTableThGroup<any>, "tr[insThGroup]", never, {}, {}, ["th", "heads"], ["*"], true, never>;
2363
+ }
2364
+
2365
+ declare class InsTableTh<T extends Partial<Record<keyof T, any>>> {
2366
+ private readonly options;
2367
+ protected width: i0.WritableSignal<number>;
2368
+ protected onResized(width: number): void;
2369
+ resizable: i0.InputSignal<boolean>;
2370
+ sticky: i0.InputSignal<boolean>;
2371
+ readonly minWidth: i0.InputSignal<number>;
2372
+ readonly maxWidth: i0.InputSignal<number>;
2373
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableTh<any>, never>;
2374
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTableTh<any>, "th[insTh]", never, { "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "minWidth": { "alias": "minWidth"; "required": false; "isSignal": true; }; "maxWidth": { "alias": "maxWidth"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
2375
+ }
2376
+
2377
+ declare class InsTableCell {
2378
+ insCell: i0.InputSignal<string>;
2379
+ readonly template: TemplateRef<any>;
2380
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableCell, never>;
2381
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableCell, "ng-template[insCell]", never, { "insCell": { "alias": "insCell"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
2382
+ }
2383
+
2384
+ declare class InsStuck {
2385
+ protected readonly stuck: i0.Signal<boolean>;
2386
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsStuck, never>;
2387
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsStuck, "ins-stuck:never", never, {}, {}, never, never, true, never>;
2388
+ }
2389
+
2390
+ declare class InsTableDirective<T extends Partial<Record<keyof T, any>>> implements AfterViewInit {
2391
+ private readonly options;
2392
+ private readonly cdr;
2393
+ protected readonly nothing: undefined;
2394
+ columns: i0.InputSignal<readonly (string | keyof T)[]>;
2395
+ readonly appearance: i0.WritableSignal<string>;
2396
+ readonly size: i0.WritableSignal<"s" | "m" | "l">;
2397
+ readonly cleaner: i0.WritableSignal<boolean>;
2398
+ set sizeSetter(size: 's' | 'm' | 'l');
2399
+ ngAfterViewInit(): void;
2400
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableDirective<any>, never>;
2401
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableDirective<any>, "table[insTable]", never, { "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "sizeSetter": { "alias": "size"; "required": false; }; }, {}, never, never, true, [{ directive: typeof InsStuck; inputs: {}; outputs: {}; }]>;
2402
+ }
2403
+
2404
+ declare class InsTableTr<T extends Partial<Record<keyof T, any>>> {
2405
+ private readonly cells;
2406
+ protected readonly items: i0.Signal<Record<string | keyof T, InsTableCell>>;
2407
+ protected readonly table: InsTableDirective<T>;
2408
+ private readonly body;
2409
+ protected readonly item: i0.Signal<any>;
2410
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableTr<any>, never>;
2411
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTableTr<any>, "tr[insTr]", never, {}, {}, ["cells"], ["*"], true, never>;
2412
+ }
2413
+
2414
+ declare class InsTableHead<T extends Partial<Record<keyof T, any>>> {
2415
+ insHead: string | keyof T;
2416
+ readonly template: TemplateRef<any>;
2417
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableHead<any>, never>;
2418
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableHead<any>, "[insHead]", never, { "insHead": { "alias": "insHead"; "required": true; }; }, {}, never, never, true, never>;
2419
+ }
2420
+
2421
+ declare class InsTableResized {
2422
+ private readonly doc;
2423
+ private readonly el;
2424
+ private readonly insResized$;
2425
+ readonly insResized: i0.OutputRef<number>;
2426
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableResized, never>;
2427
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableResized, "[insResized]", never, {}, { "insResized": "insResized"; }, never, never, true, never>;
2428
+ }
2429
+
2430
+ declare class InsTableTbody<T extends Partial<Record<keyof T, any>>> {
2431
+ readonly rows: i0.Signal<readonly any[]>;
2432
+ data: i0.InputSignal<readonly T[]>;
2433
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableTbody<any>, never>;
2434
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableTbody<any>, "tbody[insTbody]", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, ["rows"], never, true, never>;
2435
+ }
2436
+
2437
+ declare class InsTableThead {
2438
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableThead, never>;
2439
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableThead, "thead[insThead]", never, {}, {}, never, never, true, [{ directive: typeof InsStuck; inputs: {}; outputs: {}; }]>;
2440
+ }
2441
+
2442
+ declare const InsTable: readonly [typeof InsTableDirective, typeof InsTableTbody, typeof InsTableThGroup, typeof InsTableTh, typeof InsTableTd, typeof InsTableTr, typeof InsTableCell, typeof InsTableHead, typeof InsTableThead, typeof InsTableResized];
2443
+
2444
+ interface InsTableOptions {
2445
+ readonly direction: -1 | 1;
2446
+ readonly requiredSort: boolean;
2447
+ readonly open: boolean;
2448
+ readonly resizable: boolean;
2449
+ readonly size: 's' | 'm' | 'l';
2450
+ readonly sortIcons: {
2451
+ readonly asc: string;
2452
+ readonly desc: string;
2453
+ readonly off: string;
2454
+ };
2455
+ readonly sticky: boolean;
2456
+ }
2457
+ declare const INS_TABLE_DEFAULT_OPTIONS: InsTableOptions;
2458
+ declare const INS_TABLE_OPTIONS: i0.InjectionToken<InsTableOptions>;
2459
+ declare function insTableOptionsProvider(options: Partial<InsTableOptions>): Provider;
2460
+
2461
+ declare class InsTableExpand {
2462
+ private readonly content;
2463
+ private readonly el;
2464
+ private readonly server;
2465
+ protected readonly transitioning: i0.WritableSignal<boolean>;
2466
+ protected readonly contentHeight: i0.Signal<number>;
2467
+ protected readonly visible$: Subject<boolean>;
2468
+ protected readonly sub: rxjs.Subscription;
2469
+ readonly expanded: i0.ModelSignal<boolean>;
2470
+ protected readonly transitioningEffect: i0.EffectRef;
2471
+ toggle(): void;
2472
+ private update;
2473
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableExpand, never>;
2474
+ static ɵcmp: i0.ɵɵComponentDeclaration<InsTableExpand, "ins-table-expand", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; }, { "expanded": "expandedChange"; }, never, ["*"], true, [{ directive: typeof InsPresent; inputs: {}; outputs: { "insPresent": "insPresent"; }; }]>;
2475
+ }
2476
+
2477
+ declare class InsCheckboxRowDirective<T> implements OnInit, OnDestroy {
2478
+ private readonly control;
2479
+ private readonly parent;
2480
+ protected readonly checked: i0.Signal<boolean>;
2481
+ readonly insCheckboxRow: i0.InputSignal<T>;
2482
+ ngOnInit(): void;
2483
+ ngOnDestroy(): void;
2484
+ protected onChange(): void;
2485
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsCheckboxRowDirective<any>, never>;
2486
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsCheckboxRowDirective<any>, "[insCheckbox][insCheckboxRow]", never, { "insCheckboxRow": { "alias": "insCheckboxRow"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
2487
+ }
2488
+
2489
+ declare class InsTableControlDirective<T> extends InsControl<readonly T[]> {
2490
+ private readonly children;
2491
+ readonly checked: Signal<boolean>;
2492
+ readonly indeterminate: Signal<boolean>;
2493
+ toggleAll(): void;
2494
+ process(checkbox: InsCheckboxRowDirective<T>): void;
2495
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsTableControlDirective<any>, never>;
2496
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsTableControlDirective<any>, "[insTable][ngModel],[insTable][formControl],[insTable][formControlName]", never, {}, {}, never, never, true, never>;
2497
+ }
2498
+
2499
+ declare class InsCheckboxTableDirective {
2500
+ private readonly el;
2501
+ private readonly control;
2502
+ protected readonly parent: InsTableControlDirective<any>;
2503
+ protected readonly update: i0.EffectRef;
2504
+ static ɵfac: i0.ɵɵFactoryDeclaration<InsCheckboxTableDirective, never>;
2505
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InsCheckboxTableDirective, "[insCheckbox][insCheckboxTable]", never, {}, {}, never, never, true, never>;
2506
+ }
2507
+
2508
+ declare const InsTableControl: readonly [typeof InsCheckboxRowDirective, typeof InsCheckboxTableDirective, typeof InsTableControlDirective];
2509
+
2510
+ export { ANIMATION_FRAME, EMPTY_ARRAY, EMPTY_CLIENT_RECT, EMPTY_FUNCTION, EMPTY_QUERY, FieldErrorPipe, INS_ACTIVE_ELEMENT, INS_ALERT_CONCURRENCY, INS_ALERT_DEFAULT_OPTIONS, INS_ALERT_OPTIONS, INS_APPEARANCE_DEFAULT_OPTIONS, INS_APPEARANCE_OPTIONS, INS_ASSETS_PATH, INS_AVATAR_DEFAULT_OPTIONS, INS_AVATAR_OPTIONS, INS_BUTTON_DEFAULT_OPTIONS, INS_BUTTON_OPTIONS, INS_CHECKBOX_DEFAULT_OPTIONS, INS_CHECKBOX_OPTIONS, INS_CHEVRON, INS_CHINESE_LANGUAGE, INS_CHIP_DEFAULT_OPTIONS, INS_CHIP_OPTIONS, INS_CLEAR_WORD, INS_CLOSE_WORD, INS_COMMON_ICONS, INS_DATA_LIST_ACCESSOR, INS_DATA_LIST_HOST, INS_DEFAULT_ERROR_MESSAGE, INS_DEFAULT_LANGUAGE, INS_DEFAULT_TREE_CONTROLLER, INS_DIALOG_DEFAULT_OPTIONS, INS_DIALOG_OPTIONS, INS_DROPDOWN_COMPONENT, INS_DROPDOWN_CONTEXT, INS_DROPDOWN_DEFAULT_OPTIONS, INS_DROPDOWN_HOVER_DEFAULT_OPTIONS, INS_DROPDOWN_HOVER_OPTIONS, INS_DROPDOWN_OPTIONS, INS_ENTER, INS_FORM_DEFAULT_OPTIONS, INS_FORM_OPTIONS, INS_GROUP_DEFAULT_OPTIONS, INS_GROUP_OPTIONS, INS_ICON_END, INS_ICON_START, INS_ICON_STARTS, INS_INPUT_TAG_DEFAULT_OPTIONS, INS_INPUT_TAG_OPTIONS, INS_LABEL_DEFAULT_OPTIONS, INS_LABEL_OPTIONS, INS_LANGUAGE, INS_LEAVE, INS_LINK_DEFAULT_OPTIONS, INS_LINK_OPTIONS, INS_LOADER_DEFAULT_OPTIONS, INS_LOADER_OPTIONS, INS_MEDIA, INS_MORE_WORD, INS_NOTHING_FOUND_MESSAGE, INS_NOTIFICATION_DEFAULT_OPTIONS, INS_NOTIFICATION_OPTIONS, INS_PAGINATION_TEXTS, INS_RADIO_DEFAULT_OPTIONS, INS_RADIO_OPTIONS, INS_REMOVED_ELEMENT, INS_SELECTION_STREAM, INS_SPIN_ICONS, INS_SWIPE_OPTIONS, INS_TABLE_DEFAULT_OPTIONS, INS_TABLE_OPTIONS, INS_TABS_DEFAULT_OPTIONS, INS_TABS_OPTIONS, INS_TAB_ACTIVATE, INS_TEXTAREA_DEFAULT_OPTIONS, INS_TEXTAREA_OPTIONS, INS_TEXTFIELD_ACCESSOR, INS_TEXTFIELD_DEFAULT_OPTIONS, INS_TEXTFIELD_OPTIONS, INS_TREE_ACCESSOR, INS_TREE_CONTROLLER, INS_TREE_LEVEL, INS_TREE_LOADER, INS_TREE_LOADING, INS_TREE_NODE, INS_TREE_START, INS_VALIDATION_ERRORS, INS_VIEWPORT, INS_ZOOM_OPTIONS, IS_IOS, InsAccessor, InsAccordion, InsAccordionComponent, InsAccordionDirective, InsActiveZone, InsAlert, InsAlertComponent, InsAlertService, InsAnimated, InsAppearance, InsAvatar, InsBreakpointService, InsButton, InsButtonLoading, InsCardLarge, InsCell, InsCheckbox, InsCheckboxRowDirective, InsCheckboxTableDirective, InsChevron, InsChip, InsCopyProcessor, InsDataList, InsDataListComponent, InsDialog, InsDialogComponent, InsDialogService, InsDriver, InsDriverDirective, InsDropdown, InsDropdownComponent, InsDropdownContent, InsDropdownDirective, InsDropdownDriver, InsDropdownDriverDirective, InsDropdownHover, InsDropdownOpen, InsDropdownOptionsDirective, InsDropdownPosition, InsDropdownPositionSided, InsDropdownSelection, InsError, InsExpand, InsFade, InsFocusTrap, InsForm, InsGroup, InsHeader, InsIcon, InsIcons, InsIdService, InsInputTagComponent, InsItem, InsLabel, InsLink, InsLoader, InsMapperPipe, InsModalComponent, InsModalService, InsNativeValidator, InsNoHostException, InsNotification, InsNotificationDirective, InsNotificationService, InsObscured, InsObscuredService, InsOptGroup, InsOption, InsPagination, InsPopup, InsPopupService, InsPopups, InsPortal, InsPortalDirective, InsPortalService, InsPortals, InsPositionAccessor, InsPositionService, InsPresent, InsRadio, InsRadioComponent, InsRadioDirective, InsRectAccessor, InsResize, InsRoot, InsSelectComponent, InsStuck, InsSwipe, InsSwipeService, InsTab, InsTable, InsTableCell, InsTableControl, InsTableControlDirective, InsTableDirective, InsTableExpand, InsTableHead, InsTableResized, InsTableTbody, InsTableTd, InsTableTh, InsTableThGroup, InsTableThead, InsTableTr, InsTabs, InsTabsDirective, InsTabsHorizontal, InsTabsStyles, InsTabsVertical, InsTabsWithMore, InsTextFieldController, InsTextFieldDataDirective, InsTextFieldSingleDataDirective, InsTextarea, InsTextareaCounterComponent, InsTextareaLimit, InsTextareaLimitComponent, InsTextfield, InsTextfieldComponent, InsTextfieldDirective, InsTextfieldDropdownDirective, InsTitle, InsTransitioned, InsTree, InsTreeChildren, InsTreeControllerDirective, InsTreeItem, InsTreeItemController, InsTreeService, InsValidationError, InsVehicle, InsWithAppearance, InsWithDropdownOpen, InsWithIcons, InsWithTextfieldDropdown, InsZoom, InsZoomService, LOCAL_STORAGE, MUTATION_OBSERVER_INIT, MutationObserver$1 as MutationObserver, MutationObserverService, NG_EVENT_PLUGINS, OptionsEventPlugin, POLYMORPHEUS_CONTEXT, PolymorpheusComponent, PolymorpheusContext, PolymorpheusOutlet, PolymorpheusTemplate, PreventEventPlugin, REDUCED_MOTION, RESIZE_OPTION_BOX, RESIZE_OPTION_BOX_DEFAULT, ResizeObserver$1 as ResizeObserver, ResizeObserverService, SafeObserver, SelfEventPlugin, SilentEventPlugin, StopEventPlugin, TextfieldOptionItem, WINDOW, commonIconsProvider, containsOrAfter, createToken, createTokenFromFactory, getActualTarget, getClosestFocusable, getDocumentOrShadowRoot, getNativeFocused, getViewportHeight, getViewportWidth, injectElement, insAlertOptionsProvider, insAppearanceOptionsProvider, insArrayRemove, insArrayToggle, insAsDataListAccessor, insAsDataListHost, insAsDriver, insAsPortal, insAsPositionAccessor, insAsRectAccessor, insAsVehicle, insAsViewport, insAssetsPathProvider, insAvatarOptionsProvider, insBlurNativeFocused, insButtonOptionsProvider, insCheckFixedPosition, insCheckboxOptionsProvider, insChipOptionsProvider, insClamp, insDropdownHoverOptionsProvider, insDropdownOptionsProvider, insExtractI18n, insFocusedIn, insFormOptionsProvider, insGetElementObscures, insGetSelectedText, insGetSemanticWordRange, insGetWordRange, insGroupOptionsProvider, insIconsProvider, insIfMap, insInjectIconResolver, insInjectId, insInputTagOptionsProvider, insIsElementEditable, insLabelOptionsProvider, insLinkOptionsProvider, insLoaderOptionsProvider, insMarkControlAsTouchedAndValidate, insMoveFocus, insNotificationOptionsProvider, insOverrideOptions, insProvide, insRadioOptionsProvider, insTableOptionsProvider, insTabsOptionsProvider, insTextareaOptionsProvider, insTextfieldOptionsProvider, insWithStyles, insZoneOptimized, insZonefree, insZonefreeScheduler, insZonefull, insZonefullScheduler, isEditingKey, isElement, isHTMLElement, isInput, isNativeFocused, isNativeFocusedIn, isNativeKeyboardFocusable, isNativeMouseFocusable, isPresent, isTextNode, isTextarea, isTextfield, provideMutationObserverInit, provideOptions, svgNodeFilter };
2511
+ export type { GetClosestFocusableOptions, InsAlertContext, InsAlertOptions, InsAppearanceOptions, InsAvatarOptions, InsBooleanHandler, InsBreakpointMediaKey, InsButtonOptions, InsCheckboxOptions, InsChipOptions, InsCommonIcons, InsContext, InsCountryIsoCode, InsDataListAccessor, InsDataListHost, InsDialogContext, InsDialogOptions, InsDropdownAlign, InsDropdownHoverOptions, InsDropdownOptions, InsDropdownWidth, InsFileLike, InsFileState, InsFormOptions, InsGroupOptions, InsHandler, InsHorizontalDirection, InsIdentityMatcher, InsInputTagOptions, InsInteractiveState, InsLabelOptions, InsLanguage, InsLanguageCore, InsLanguageKit, InsLanguageMeta, InsLanguageName, InsLinkOptions, InsLoaderOptions, InsMapper, InsMatcher, InsMedia, InsNotificationOptions, InsNumberHandler, InsPoint, InsPortalContext, InsPortalItem, InsPositionOptions, InsRadioOptions, InsSpinIcons, InsStringHandler, InsStringMatcher, InsSwipeDirection, InsSwipeEvent, InsSwipeOptions, InsTableOptions, InsTabsOptions, InsTextFieldAccessor, InsTextareaOptions, InsTextfieldOptions, InsTreeAccessor, InsTreeContext, InsTreeController, InsTreeItemContext, InsTreeLoader, InsVerticalDirection, InsZoomEvent, InsZoomOptions, PolymorpheusContent, PolymorpheusPrimitive, Storage };