angular-ui-controls 0.0.0-stage → 0.1.0-rc.2

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.
@@ -0,0 +1,609 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ChangeDetectorRef, EventEmitter, OnInit, OnDestroy, OnChanges, DoCheck, AfterViewInit, ElementRef, PipeTransform } from '@angular/core';
3
+ import { ControlValueAccessor, NgControl } from '@angular/forms';
4
+ import { TranslateService } from '@ngx-translate/core';
5
+ import * as i1 from '@angular/material/tooltip';
6
+ import { TooltipPosition } from '@angular/material/tooltip';
7
+ import { MatFormFieldControl } from '@angular/material/form-field';
8
+ import { Subject } from 'rxjs';
9
+
10
+ declare abstract class BaseControlValueAccessor<T = any> implements ControlValueAccessor {
11
+ ngControl: NgControl;
12
+ protected cdr?: ChangeDetectorRef | undefined;
13
+ /** The internal value of the control */
14
+ protected _value: T | null;
15
+ /** Standard change and touch callbacks */
16
+ onChangeCallback: (value: T | null) => void;
17
+ onTouchedCallback: () => void;
18
+ /** Internal storage for idPrefix */
19
+ protected rawIdPrefix: string;
20
+ /** Plain string property bound in template [id]="effectiveId" (zero function or CD overhead) */
21
+ effectiveId: string;
22
+ /** Internal storage for disabled state */
23
+ protected _disabled: boolean;
24
+ /**
25
+ * Disables the control. Angular Forms can also update this state through setDisabledState.
26
+ * @type boolean
27
+ */
28
+ set disabled(val: boolean);
29
+ get disabled(): boolean;
30
+ /**
31
+ * Optional namespace prepended to inner control IDs to distinguish repeated instances.
32
+ * @type string
33
+ */
34
+ set idPrefix(prefix: string);
35
+ get idPrefix(): string;
36
+ configureId(): void;
37
+ /** Canonical value binding. Programmatic writes never emit user change events. */
38
+ get value(): T | null;
39
+ set value(value: T | null);
40
+ private writingValue;
41
+ /** Raw value emitted once per committed user edit; supports [(value)]. */
42
+ readonly valueChange: EventEmitter<T | null>;
43
+ /** Commit a view edit after the inner control has updated its local model. */
44
+ commitValue(value?: T | null): void;
45
+ /** Touch the outer control only when focus leaves the whole composite control. */
46
+ handleFocusOut(event: FocusEvent): void;
47
+ constructor(ngControl: NgControl, cdr?: ChangeDetectorRef | undefined);
48
+ /** Writes a new value from the form model to the view */
49
+ writeValue(value: T | null): void;
50
+ /** Registers a callback function that is called when the control's value changes in the UI */
51
+ registerOnChange(fn: (value: T | null) => void): void;
52
+ /** Registers a callback function that is called when the control is touched */
53
+ registerOnTouched(fn: () => void): void;
54
+ /** Updates the disabled state from the form model */
55
+ setDisabledState(isDisabled: boolean): void;
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaseControlValueAccessor<any>, [{ optional: true; self: true; }, null]>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseControlValueAccessor<any>, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
58
+ static ngAcceptInputType_disabled: unknown;
59
+ }
60
+
61
+ /**
62
+ * Base field information shared across all emitted events
63
+ * Returned by fieldInfo()
64
+ */
65
+ interface TextInputFieldInfo {
66
+ /** Current input value */
67
+ modelValue: any;
68
+ /** Field identifier used by parent component */
69
+ fieldName: string | number;
70
+ /** Native input element reference (if inputId is provided) */
71
+ inputRef?: Element | null;
72
+ }
73
+ /**
74
+ * Model value change event payload
75
+ */
76
+ interface TextInputModelChangeEvent extends TextInputFieldInfo {
77
+ /** Updated input value */
78
+ modelChangeEvent: any;
79
+ }
80
+ /**
81
+ * Input event payload
82
+ */
83
+ interface TextInputInputEvent extends TextInputFieldInfo {
84
+ /** Native input/change event */
85
+ changeEvent: Event;
86
+ }
87
+ /**
88
+ * Focus event payload
89
+ */
90
+ interface TextInputFocusEvent extends TextInputFieldInfo {
91
+ /** Native focus event */
92
+ focusEvent: FocusEvent;
93
+ }
94
+ /**
95
+ * Blur event payload
96
+ */
97
+ interface TextInputBlurEvent extends TextInputFieldInfo {
98
+ /** Native blur event */
99
+ blurEvent: FocusEvent;
100
+ }
101
+ /**
102
+ * Keydown event payload
103
+ */
104
+ interface TextInputKeydownEvent extends TextInputFieldInfo {
105
+ /** Native keyboard event */
106
+ keyDownEvent: KeyboardEvent;
107
+ }
108
+ /**
109
+ * Keyup event payload
110
+ */
111
+ interface TextInputKeyupEvent extends TextInputFieldInfo {
112
+ /** Native keyboard event */
113
+ keyUpEvent: KeyboardEvent;
114
+ }
115
+ /**
116
+ * Enter key event payload
117
+ */
118
+ interface TextInputKeyEnterEvent extends TextInputFieldInfo {
119
+ /** Enter key or input-related event */
120
+ keyEnterEvent: Event;
121
+ }
122
+ /**
123
+ * Input click event payload
124
+ */
125
+ interface TextInputClickEvent extends TextInputFieldInfo {
126
+ /** Mouse click event */
127
+ clickEvent: MouseEvent;
128
+ }
129
+
130
+ declare class TextInputComponent extends BaseControlValueAccessor<string> {
131
+ ngControl: NgControl;
132
+ private changeDetectorRef;
133
+ /**
134
+ * Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
135
+ * @default false
136
+ * @type boolean
137
+ * @remarks Retained input; no consumer of this setting is present in the supplied class/template.
138
+ */
139
+ preventCopyPasteCut: boolean;
140
+ /** HTML id attribute for the input element */
141
+ protected rawInputId: string;
142
+ /**
143
+ * Identifier assigned to the inner control; combined with idPrefix when supplied.
144
+ * @type string
145
+ * @remarks Required Angular input; provide a stable identifier.
146
+ */
147
+ set inputId(id: string);
148
+ get inputId(): string;
149
+ /**
150
+ * Tooltip text displayed on hover
151
+ * @default ''
152
+ * @type string
153
+ * @remarks Retained input; no consumer of this setting is present in the supplied class/template.
154
+ */
155
+ tooltip: string;
156
+ /**
157
+ * Label text or translation key displayed for this control.
158
+ * @default ''
159
+ * @type string
160
+ */
161
+ label: string;
162
+ /**
163
+ * Internal model getter/setter backed by the shared control value.
164
+ */
165
+ get modelValue(): any;
166
+ set modelValue(val: any);
167
+ /**
168
+ * Validation error message
169
+ * @default ''
170
+ * @type string
171
+ */
172
+ errorMessage: string;
173
+ /**
174
+ * Marks this control as required in its existing template; parent-form validators remain separately configured.
175
+ * @default false
176
+ * @type boolean
177
+ */
178
+ required: boolean;
179
+ /**
180
+ * Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
181
+ * @type string | number
182
+ * @renamedFrom textFieldName
183
+ */
184
+ fieldName: string | number;
185
+ /**
186
+ * Hint text or translation key displayed while the control is empty.
187
+ * @default ''
188
+ * @type string
189
+ */
190
+ placeholder: string;
191
+ /**
192
+ * Requests the existing read-only behavior without disabling the parent form control.
193
+ * @default false
194
+ * @type boolean
195
+ */
196
+ readonly: boolean;
197
+ /**
198
+ * Maximum number of characters allowed
199
+ * @type number
200
+ */
201
+ maxLength: number;
202
+ /**
203
+ * Shows the current input value in the tooltip when enabled.
204
+ * @default false
205
+ * @type boolean
206
+ * @renamedFrom showToolTip
207
+ */
208
+ showTooltip: boolean;
209
+ /**
210
+ * Value written to the existing ChatGptAttr DOM attribute for field discovery.
211
+ * @default ''
212
+ * @type string
213
+ * @renamedFrom chatGptAttr
214
+ */
215
+ assistantFieldId: string;
216
+ /**
217
+ * Prevents numbers and special special character
218
+ * @default false
219
+ * @type boolean
220
+ */
221
+ onlyAlphabets: boolean;
222
+ /**
223
+ * Passes the Arabic typing flag to the existing utility directive.
224
+ * @default false
225
+ * @type boolean
226
+ * @renamedFrom appToArabic
227
+ */
228
+ enableArabicInput: boolean;
229
+ /**
230
+ * Text displayed before the input value (e.g. '$', '+91', 'kg').
231
+ * @default ''
232
+ */
233
+ prefix: string;
234
+ /**
235
+ * Controls whether the prefix is rendered. Set to `true` only when the prefix should be visible.
236
+ * @type boolean
237
+ */
238
+ set showPrefix(enablePrefix: boolean);
239
+ enablePrefix: boolean;
240
+ /**
241
+ * Text displayed after the input, such as a unit or percentage sign.
242
+ * @default ''
243
+ * @renamedFrom postfix
244
+ */
245
+ suffix: string;
246
+ /**
247
+ * Controls whether the suffix is rendered.
248
+ * @type boolean
249
+ * @renamedFrom showPostfix
250
+ */
251
+ set showSuffix(enablePostfix: boolean);
252
+ enablePostfix: boolean;
253
+ /**
254
+ * Emits when the component model-change handler runs.
255
+ * @payload TextInputModelChangeEvent
256
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
257
+ * @renamedFrom onModelChange
258
+ */
259
+ modelChange: EventEmitter<TextInputModelChangeEvent>;
260
+ /**
261
+ * Emits from the existing input/change handler.
262
+ * @payload TextInputInputEvent
263
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
264
+ * @renamedFrom onInputChange
265
+ */
266
+ inputChanged: EventEmitter<TextInputInputEvent>;
267
+ /**
268
+ * Emits when the inner field gains focus.
269
+ * @payload TextInputFocusEvent
270
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
271
+ * @renamedFrom onFocusChange
272
+ */
273
+ focusGained: EventEmitter<TextInputFocusEvent>;
274
+ /**
275
+ * Emits when the inner field loses focus.
276
+ * @payload TextInputBlurEvent
277
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
278
+ * @renamedFrom onBlurChange
279
+ */
280
+ focusLost: EventEmitter<TextInputBlurEvent>;
281
+ /**
282
+ * Emits on the inner field keydown event.
283
+ * @payload TextInputKeydownEvent
284
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
285
+ * @renamedFrom onKeydownHandle
286
+ */
287
+ keyPressed: EventEmitter<TextInputKeydownEvent>;
288
+ /**
289
+ * Emits on the inner field keyup event.
290
+ * @payload TextInputKeyupEvent
291
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
292
+ * @renamedFrom onKeyupHandle
293
+ */
294
+ keyReleased: EventEmitter<TextInputKeyupEvent>;
295
+ /**
296
+ * Emits when Enter is released in the inner field.
297
+ * @payload TextInputKeyEnterEvent
298
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
299
+ * @renamedFrom onKeyEnterHandle
300
+ */
301
+ enterPressed: EventEmitter<TextInputKeyEnterEvent>;
302
+ /**
303
+ * Emits when the inner input is clicked.
304
+ * @payload TextInputClickEvent
305
+ * @remarks Payload shape is unchanged; see the emitting handler for field metadata.
306
+ * @renamedFrom onInputClickHandle
307
+ */
308
+ inputClicked: EventEmitter<TextInputClickEvent>;
309
+ /**
310
+ * Returns shared field information attached
311
+ * to all emitted events.
312
+ *
313
+ * Includes:
314
+ * - Input DOM reference (if inputId is provided)
315
+ * - Current model value
316
+ * - Field identifier
317
+ */
318
+ constructor(ngControl: NgControl, translateService: TranslateService, changeDetectorRef: ChangeDetectorRef);
319
+ private fieldInfo;
320
+ /**
321
+ * Emits when the model value changes
322
+ * @param modelChangeEvent - Updated model value
323
+ */
324
+ modelValueChange(modelChangeEvent: string): void;
325
+ /**
326
+ * Emits on input value change
327
+ * @param changeValue - Input event
328
+ */
329
+ inputChange(changeValue: Event): void;
330
+ /**
331
+ * Emits when input gains focus
332
+ * @param onFocusEvent - Focus event
333
+ */
334
+ focusChange(onFocusEvent: FocusEvent): void;
335
+ /**
336
+ * Emits when input loses focus
337
+ * @param blurEvent - Blur event
338
+ */
339
+ blurChange(blurEvent: FocusEvent): void;
340
+ /**
341
+ * Emits on keydown action
342
+ * @param keyDownEvent - Keyboard event
343
+ */
344
+ keydownHandle(keyDownEvent: KeyboardEvent): void;
345
+ /**
346
+ * Emits on keyup action
347
+ * @param keyUpEvent - Keyboard event
348
+ */
349
+ keyupHandle(keyUpEvent: KeyboardEvent): void;
350
+ /**
351
+ * Emits when Enter key is pressed
352
+ * @param event - Keyboard or input event
353
+ */
354
+ keyEnterHandle(event: Event): void;
355
+ /**
356
+ * Emits when input field is clicked
357
+ * @param clickEvent - Mouse click event
358
+ */
359
+ inputClick(clickEvent: MouseEvent): void;
360
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextInputComponent, [{ optional: true; self: true; }, null, null]>;
361
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextInputComponent, "ui-text-input", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "tooltip": { "alias": "tooltip"; "required": false; }; "label": { "alias": "label"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "showTooltip": { "alias": "showTooltip"; "required": false; }; "assistantFieldId": { "alias": "assistantFieldId"; "required": false; }; "onlyAlphabets": { "alias": "onlyAlphabets"; "required": false; }; "enableArabicInput": { "alias": "enableArabicInput"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "showPrefix": { "alias": "showPrefix"; "required": false; }; "suffix": { "alias": "suffix"; "required": false; }; "showSuffix": { "alias": "showSuffix"; "required": false; }; }, { "modelChange": "modelChange"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; "inputClicked": "inputClicked"; }, never, never, true, never>;
362
+ }
363
+
364
+ /** Registers bundled icons in a private namespace without external requests. */
365
+ declare class UiIconsService {
366
+ constructor();
367
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiIconsService, never>;
368
+ static ɵprov: i0.ɵɵInjectableDeclaration<UiIconsService>;
369
+ }
370
+
371
+ declare class PreventClipboardDirective {
372
+ /**
373
+ * Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
374
+ * @default false
375
+ */
376
+ preventCopyPasteCut: boolean;
377
+ constructor();
378
+ blockPaste(changeEvent: ClipboardEvent): void;
379
+ blockCopy(changeEvent: ClipboardEvent): void;
380
+ blockCut(changeEvent: ClipboardEvent): void;
381
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreventClipboardDirective, never>;
382
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PreventClipboardDirective, "[uiPreventClipboard]", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; }, {}, never, never, true, never>;
383
+ }
384
+
385
+ /** Normalizes text/numeric input before Angular Forms receives the bubbling input event. */
386
+ declare class InputRulesDirective implements OnInit, OnDestroy {
387
+ inputType: 'text' | 'number' | 'percentage' | 'integers';
388
+ onlyAlphabets: boolean;
389
+ maxDigits?: number;
390
+ minValue?: number;
391
+ maxValue?: number;
392
+ allowDecimal?: boolean;
393
+ decimalPlaces?: number;
394
+ allowNegative: boolean;
395
+ private readonly element;
396
+ private readonly normalize;
397
+ ngOnInit(): void;
398
+ ngOnDestroy(): void;
399
+ clamp(): void;
400
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputRulesDirective, never>;
401
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputRulesDirective, "[uiInputRules]", never, { "inputType": { "alias": "inputType"; "required": false; }; "onlyAlphabets": { "alias": "onlyAlphabets"; "required": false; }; "maxDigits": { "alias": "maxDigits"; "required": false; }; "minValue": { "alias": "minValue"; "required": false; }; "maxValue": { "alias": "maxValue"; "required": false; }; "allowDecimal": { "alias": "allowDecimal"; "required": false; }; "decimalPlaces": { "alias": "decimalPlaces"; "required": false; }; "allowNegative": { "alias": "allowNegative"; "required": false; }; }, {}, never, never, true, never>;
402
+ }
403
+ /** Removes leading whitespace from typing and paste; preserves whitespace inside the value. */
404
+ declare class TrimLeadingSpaceDirective implements OnInit, OnDestroy {
405
+ private readonly element;
406
+ private readonly trim;
407
+ ngOnInit(): void;
408
+ ngOnDestroy(): void;
409
+ static ɵfac: i0.ɵɵFactoryDeclaration<TrimLeadingSpaceDirective, never>;
410
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TrimLeadingSpaceDirective, "[uiTrimLeadingSpace]", never, {}, {}, never, never, true, never>;
411
+ }
412
+ /** Limits the hour/minute fields to the configured count of decimal digits. */
413
+ declare class DigitLimitDirective implements OnInit, OnDestroy {
414
+ uiDigitLimit: number | string;
415
+ private readonly element;
416
+ private readonly normalize;
417
+ ngOnInit(): void;
418
+ ngOnDestroy(): void;
419
+ static ɵfac: i0.ɵɵFactoryDeclaration<DigitLimitDirective, never>;
420
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DigitLimitDirective, "[uiDigitLimit]", never, { "uiDigitLimit": { "alias": "uiDigitLimit"; "required": false; }; }, {}, never, never, true, never>;
421
+ }
422
+ /** Enables Arabic keyboard-layout substitution for Latin key presses; existing Arabic and IME input pass through. */
423
+ declare class ArabicInputDirective {
424
+ isEnabledArabicText: boolean;
425
+ private readonly element;
426
+ private readonly keys;
427
+ convert(event: KeyboardEvent): void;
428
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArabicInputDirective, never>;
429
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ArabicInputDirective, "[uiArabicInput]", never, { "isEnabledArabicText": { "alias": "isEnabledArabicText"; "required": false; }; }, {}, never, never, true, never>;
430
+ }
431
+ /** Shows a Material tooltip only when the host text overflows its rendered box. */
432
+ declare class EllipsisTooltipDirective {
433
+ uiEllipsisTooltip: unknown;
434
+ tooltipPosition: TooltipPosition;
435
+ private readonly element;
436
+ private readonly tooltip;
437
+ update(): void;
438
+ static ɵfac: i0.ɵɵFactoryDeclaration<EllipsisTooltipDirective, never>;
439
+ static ɵdir: i0.ɵɵDirectiveDeclaration<EllipsisTooltipDirective, "[uiEllipsisTooltip]", never, { "uiEllipsisTooltip": { "alias": "uiEllipsisTooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.MatTooltip; inputs: {}; outputs: {}; }]>;
440
+ }
441
+ /** Repositions an open autocomplete overlay when the viewport moves or resizes. */
442
+ declare class AutocompletePositionDirective {
443
+ private readonly trigger;
444
+ update(): void;
445
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutocompletePositionDirective, never>;
446
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AutocompletePositionDirective, "[uiAutocompletePosition]", never, {}, {}, never, never, true, never>;
447
+ }
448
+
449
+ /** Settings used by the local numeric input directive. Undefined limits are unrestricted. */
450
+ interface InputRules {
451
+ inputType?: string;
452
+ onlyAlphabets?: boolean;
453
+ allowDecimal?: boolean;
454
+ allowNegative?: boolean;
455
+ decimalPlaces?: number;
456
+ maxDigits?: number;
457
+ minValue?: number;
458
+ maxValue?: number;
459
+ }
460
+ /** Normalize typing and paste consistently, while allowing intermediate '-' and decimal values. */
461
+ declare function normalizeInput(value: string, rules: InputRules): string;
462
+ /** Apply numeric bounds on blur, so intermediate typing is not clamped prematurely. */
463
+ declare function clampInput(value: string, rules: InputRules): string;
464
+ /** Filter primitives or object labels without mutating the source array. */
465
+ declare function filterOptions<T>(items: readonly T[] | null | undefined, query: unknown, key?: string, startsWith?: boolean): T[];
466
+ interface HighlightEntry {
467
+ abbreviation?: string;
468
+ word?: string;
469
+ text?: string;
470
+ remarks?: string;
471
+ [key: string]: unknown;
472
+ }
473
+ interface HighlightToken {
474
+ text: string;
475
+ kind: 'plain' | 'abbreviation' | 'restricted';
476
+ }
477
+ /** Tokenize literal words for safe interpolation; user text is never treated as HTML or a regex. */
478
+ declare function highlightTokens(value: string, abbreviations: HighlightEntry[], restricted: HighlightEntry[]): HighlightToken[];
479
+
480
+ /** An abbreviation with optional replacement text; unknown consumer metadata is retained. */
481
+ interface AbbreviationEntry extends HighlightEntry {
482
+ }
483
+ /** Menu data consumed by the action-menu component. */
484
+ interface MenuItem {
485
+ label?: string;
486
+ value?: unknown;
487
+ disabled?: boolean;
488
+ svgIcon?: string;
489
+ classname?: string;
490
+ action?: unknown;
491
+ rowData?: unknown;
492
+ [key: string]: unknown;
493
+ }
494
+ /** Mention configuration accepted by the local highlighted textarea. */
495
+ interface AbbreviationMentionConfig {
496
+ items: any[];
497
+ triggerChar?: string;
498
+ labelKey?: string;
499
+ isShortCut?: boolean;
500
+ mentionSelect?: (item: any) => string;
501
+ }
502
+ declare const ARABIC_LANGUAGE = "ar";
503
+ /** Moment-based day-month-year display and parse formats used by the date controls. */
504
+ declare const DATE_FORMATS: {
505
+ parse: {
506
+ dateInput: string;
507
+ };
508
+ display: {
509
+ dateInput: string;
510
+ monthYearLabel: string;
511
+ dateA11yLabel: string;
512
+ monthYearA11yLabel: string;
513
+ };
514
+ };
515
+ /** Moment-based date/time formats used by the combined picker. */
516
+ declare const DATE_TIME_FORMATS: {
517
+ parse: {
518
+ dateInput: string;
519
+ };
520
+ display: {
521
+ dateInput: string;
522
+ monthYearLabel: string;
523
+ dateA11yLabel: string;
524
+ monthYearA11yLabel: string;
525
+ };
526
+ };
527
+
528
+ /** Editable textarea with safe abbreviation/restricted-word highlighting and Material form-field integration. */
529
+ declare class AbbreviationTextareaComponent implements ControlValueAccessor, MatFormFieldControl<string>, OnDestroy, OnChanges, DoCheck, AfterViewInit {
530
+ ngControl: NgControl;
531
+ private static nextId;
532
+ id: string;
533
+ placeholder: string;
534
+ accessibleLabel: string;
535
+ disabled: boolean;
536
+ required: boolean;
537
+ /** @deprecated Use readonly. */
538
+ readOnly: boolean;
539
+ get readonly(): boolean;
540
+ set readonly(value: boolean);
541
+ maxLength: number | null;
542
+ minRows: number;
543
+ maxRows: number;
544
+ preventCopy: boolean;
545
+ preventCut: boolean;
546
+ preventPaste: boolean;
547
+ abbreviationList: AbbreviationEntry[];
548
+ restrictedWords: AbbreviationEntry[];
549
+ mentionConfig: AbbreviationMentionConfig[] | null;
550
+ assistantFieldId: string;
551
+ valueChange: EventEmitter<string>;
552
+ controlTextChange: EventEmitter<string>;
553
+ focusIn: EventEmitter<FocusEvent>;
554
+ focusOut: EventEmitter<FocusEvent>;
555
+ input?: ElementRef<HTMLTextAreaElement>;
556
+ highlight?: ElementRef<HTMLElement>;
557
+ readonly stateChanges: Subject<void>;
558
+ readonly controlType = "ui-abbreviation-textarea";
559
+ readonly autofilled = false;
560
+ focused: boolean;
561
+ errorState: boolean;
562
+ describedBy: string;
563
+ tokens: HighlightToken[];
564
+ mentionOptions: any;
565
+ private text;
566
+ private change;
567
+ private touched;
568
+ constructor(ngControl: NgControl);
569
+ get value(): string;
570
+ set value(value: string | null);
571
+ get empty(): boolean;
572
+ get shouldLabelFloat(): boolean;
573
+ ngOnChanges(): void;
574
+ ngDoCheck(): void;
575
+ ngAfterViewInit(): void;
576
+ private adjustHeight;
577
+ private refresh;
578
+ writeValue(value: string | null): void;
579
+ registerOnChange(fn: (value: string) => void): void;
580
+ registerOnTouched(fn: () => void): void;
581
+ setDisabledState(disabled: boolean): void;
582
+ setDescribedByIds(ids: string[]): void;
583
+ onContainerClick(): void;
584
+ onInput(event: Event): void;
585
+ onFocus(event: FocusEvent): void;
586
+ onBlur(event: FocusEvent): void;
587
+ syncScroll(): void;
588
+ block(event: ClipboardEvent, prevent: boolean): void;
589
+ ngOnDestroy(): void;
590
+ static ɵfac: i0.ɵɵFactoryDeclaration<AbbreviationTextareaComponent, [{ optional: true; self: true; }]>;
591
+ static ɵcmp: i0.ɵɵComponentDeclaration<AbbreviationTextareaComponent, "ui-abbreviation-textarea", never, { "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "accessibleLabel": { "alias": "accessibleLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "preventCopy": { "alias": "preventCopy"; "required": false; }; "preventCut": { "alias": "preventCut"; "required": false; }; "preventPaste": { "alias": "preventPaste"; "required": false; }; "abbreviationList": { "alias": "abbreviationList"; "required": false; }; "restrictedWords": { "alias": "restrictedWords"; "required": false; }; "mentionConfig": { "alias": "mentionConfig"; "required": false; }; "assistantFieldId": { "alias": "assistantFieldId"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; "controlTextChange": "controlTextChange"; "focusIn": "focusIn"; "focusOut": "focusOut"; }, never, never, true, never>;
592
+ }
593
+
594
+ /** Case-insensitive local option filtering. Server-backed callers can pass an empty query. */
595
+ declare class SearchFilterPipe implements PipeTransform {
596
+ transform<T>(items: readonly T[] | null | undefined, query: unknown, key?: string, startsWith?: boolean): T[];
597
+ static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterPipe, never>;
598
+ static ɵpipe: i0.ɵɵPipeDeclaration<SearchFilterPipe, "searchFilter", true>;
599
+ }
600
+ /** Internal shared template utilities; all implementations are shipped with this package. */
601
+ declare class UiUtilitiesModule {
602
+ static ɵfac: i0.ɵɵFactoryDeclaration<UiUtilitiesModule, never>;
603
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiUtilitiesModule, never, [typeof InputRulesDirective, typeof TrimLeadingSpaceDirective, typeof DigitLimitDirective, typeof ArabicInputDirective, typeof EllipsisTooltipDirective, typeof AutocompletePositionDirective, typeof PreventClipboardDirective, typeof AbbreviationTextareaComponent, typeof SearchFilterPipe], [typeof InputRulesDirective, typeof TrimLeadingSpaceDirective, typeof DigitLimitDirective, typeof ArabicInputDirective, typeof EllipsisTooltipDirective, typeof AutocompletePositionDirective, typeof PreventClipboardDirective, typeof AbbreviationTextareaComponent, typeof SearchFilterPipe]>;
604
+ static ɵinj: i0.ɵɵInjectorDeclaration<UiUtilitiesModule>;
605
+ }
606
+
607
+ export { ARABIC_LANGUAGE, AbbreviationTextareaComponent, ArabicInputDirective, AutocompletePositionDirective, BaseControlValueAccessor, DATE_FORMATS, DATE_TIME_FORMATS, DigitLimitDirective, EllipsisTooltipDirective, InputRulesDirective, PreventClipboardDirective, SearchFilterPipe, TextInputComponent, TrimLeadingSpaceDirective, UiIconsService, UiUtilitiesModule, clampInput, filterOptions, highlightTokens, normalizeInput };
608
+ export type { AbbreviationEntry, AbbreviationMentionConfig, HighlightEntry, HighlightToken, InputRules, MenuItem, TextInputBlurEvent, TextInputClickEvent, TextInputFieldInfo, TextInputFocusEvent, TextInputInputEvent, TextInputKeyEnterEvent, TextInputKeydownEvent, TextInputKeyupEvent, TextInputModelChangeEvent };
609
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sources":["../../../projects/ui-controls/src/lib/component/base-control-value-accessor.directive.ts","../../../projects/ui-controls/src/lib/component/text-input/text-input.interface.ts","../../../projects/ui-controls/src/lib/component/text-input/text-input.component.ts","../../../projects/ui-controls/src/lib/services/ui-icons.service.ts","../../../projects/ui-controls/src/lib/directive/prevent-clipboard.directive.ts","../../../projects/ui-controls/src/lib/utilities/input-utilities.directive.ts","../../../projects/ui-controls/src/lib/utilities/input-rules.ts","../../../projects/ui-controls/src/lib/utilities/models.ts","../../../projects/ui-controls/src/lib/utilities/abbreviation-textarea.component.ts","../../../projects/ui-controls/src/lib/utilities/ui-utilities.module.ts"],"mappings":";;;;;;;;;AAaA,uBAAA,iEACmE;AA6FpC,eAAW,SAAS;AAC/C,oBAAgB,iBAAiB;;AA5FnC;;;;;AAOA;;;;AAMA;AAEA;;;AAGG;AACH;;AAcA;;;AAGG;AACH;;AASO;;AAMP;AAIA;;;0BAe8B,YAAA;;AAGvB;;AAUA,0BAAsB,UAAU;AAOV,2BAAW,SAAS,QAC/B,iBAAiB;;AAQnC;;AAQA;;AAKA;;AAKA;yCAxHoB,wBAAwB;2CAAxB,wBAAwB;;AA8H7C;;AC5ID;;;AAGG;AACH,4BAAiB;;;;AAKf;;AAGA,eAAW,OAAO;AACnB;AAED;;AAEG;AACH,UAAM,yBAAW,SAA0B,kBAAQ;;;AAGlD;AAED;;AAEG;AACH,UAAM,mBAAW,SAAoB,kBAAQ;;iBAE9B,KAAK;AACnB;AAED;;AAEG;AACH,UAAM,mBAAW,SAAoB,kBAAQ;;gBAE/B,UAAU;AACvB;AAED;;AAEG;AACH,UAAM,kBAAW,SAAmB,kBAAQ;;eAE/B,UAAU;AACtB;AAED;;AAEG;AACH,UAAM,qBAAW,SAAsB,kBAAQ;;kBAE/B,aAAa;AAC5B;AAED;;AAEG;A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6BAAA,SAAAC,yBAAA,SAAAC,6BAAA,SAAhB,gBAAgB;0CAuBhB,iBAAiB;AAAG;;;;","names":["i1.InputRulesDirective","i1.TrimLeadingSpaceDirective","i1.DigitLimitDirective","i1.ArabicInputDirective","i1.EllipsisTooltipDirective","i1.AutocompletePositionDirective","i2.PreventClipboardDirective","i3.AbbreviationTextareaComponent"]}