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.
- package/LICENSE +21 -0
- package/README.md +74 -2
- package/fesm2022/angular-ui-controls-editor-build-Cm2HSXEy.mjs +2 -0
- package/fesm2022/angular-ui-controls-editor-build-Cm2HSXEy.mjs.map +1 -0
- package/fesm2022/angular-ui-controls-forms.mjs +865 -0
- package/fesm2022/angular-ui-controls-forms.mjs.map +1 -0
- package/fesm2022/angular-ui-controls-text-input.mjs +1210 -0
- package/fesm2022/angular-ui-controls-text-input.mjs.map +1 -0
- package/fesm2022/angular-ui-controls.mjs +7181 -0
- package/fesm2022/angular-ui-controls.mjs.map +1 -0
- package/forms/index.d.ts +425 -0
- package/forms/index.d.ts.map +1 -0
- package/index.d.ts +4345 -0
- package/index.d.ts.map +1 -0
- package/package.json +66 -3
- package/text-input/index.d.ts +609 -0
- package/text-input/index.d.ts.map +1 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,4345 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, OnInit, OnChanges, Signal, ChangeDetectorRef, SimpleChanges, AfterViewInit, AfterViewChecked, ElementRef, QueryList, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import { MatMenu } from '@angular/material/menu';
|
|
4
|
+
import * as i1 from 'angular-ui-controls/forms';
|
|
5
|
+
import { MenuItem, BaseControlValueAccessor, AbbreviationEntry, AbbreviationMentionConfig } from 'angular-ui-controls/forms';
|
|
6
|
+
export * from 'angular-ui-controls/forms';
|
|
7
|
+
export { BaseControlValueAccessor, IsEmptyPipe, PreventClipboardDirective, SearchableSelectComponent, TextInputComponent } from 'angular-ui-controls/forms';
|
|
8
|
+
import * as i2 from '@angular/forms';
|
|
9
|
+
import { NgControl, NgModel, ControlValueAccessor } from '@angular/forms';
|
|
10
|
+
import * as i12 from '@angular/material/select';
|
|
11
|
+
import { MatSelectChange } from '@angular/material/select';
|
|
12
|
+
import * as i11 from '@ngx-translate/core';
|
|
13
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
14
|
+
import { Subject, Observable } from 'rxjs';
|
|
15
|
+
import * as i5 from '@angular/material/checkbox';
|
|
16
|
+
import { MatCheckboxChange } from '@angular/material/checkbox';
|
|
17
|
+
import * as i8 from '@angular/material/datepicker';
|
|
18
|
+
import { MatDatepickerInputEvent, MatDatepicker, MatDateRangePicker } from '@angular/material/datepicker';
|
|
19
|
+
import { OverlayContainer } from '@angular/cdk/overlay';
|
|
20
|
+
import { NgxMatDatepickerInputEvent, NgxMatDatetimepicker } from '@ngxmc/datetime-picker';
|
|
21
|
+
import { SafeResourceUrl } from '@angular/platform-browser';
|
|
22
|
+
import * as i6 from '@angular/material/radio';
|
|
23
|
+
import { MatRadioChange } from '@angular/material/radio';
|
|
24
|
+
import * as i17 from '@angular/material/list';
|
|
25
|
+
import { MatSelectionListChange } from '@angular/material/list';
|
|
26
|
+
import * as i16 from '@angular/material/slide-toggle';
|
|
27
|
+
import { MatSlideToggleChange } from '@angular/material/slide-toggle';
|
|
28
|
+
import * as i14 from 'angular-mentions';
|
|
29
|
+
import { MentionConfig } from 'angular-mentions';
|
|
30
|
+
import * as i1$1 from '@angular/common';
|
|
31
|
+
import * as i3 from '@angular/material/input';
|
|
32
|
+
import * as i4 from '@angular/material/icon';
|
|
33
|
+
import * as i7 from '@angular/material/form-field';
|
|
34
|
+
import * as i9 from '@angular/material/core';
|
|
35
|
+
import * as i10 from '@angular/material/autocomplete';
|
|
36
|
+
import * as i13 from '@angular/material/tooltip';
|
|
37
|
+
import * as i15 from 'ngx-mat-select-search';
|
|
38
|
+
|
|
39
|
+
declare class ActionMenuComponent {
|
|
40
|
+
/**
|
|
41
|
+
* Optional heading displayed in the action menu.
|
|
42
|
+
* @type string
|
|
43
|
+
*/
|
|
44
|
+
menuTitle?: string;
|
|
45
|
+
menuRef: MatMenu;
|
|
46
|
+
/**
|
|
47
|
+
* Menu entries rendered by the action menu; disabled entries are not emitted on click.
|
|
48
|
+
* @default []
|
|
49
|
+
* @type MenuItem[]
|
|
50
|
+
*/
|
|
51
|
+
menuItems: MenuItem[];
|
|
52
|
+
/**
|
|
53
|
+
* Consumer context attached to the emitted menu item as rowData.
|
|
54
|
+
* @type unknown
|
|
55
|
+
*/
|
|
56
|
+
rowData: unknown;
|
|
57
|
+
/**
|
|
58
|
+
* Emits the enabled menu item with rowData attached.
|
|
59
|
+
* @payload MenuItem
|
|
60
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
61
|
+
* @renamedFrom menuItemClick
|
|
62
|
+
*/
|
|
63
|
+
menuItemSelected: EventEmitter<MenuItem>;
|
|
64
|
+
/**
|
|
65
|
+
* Emits when the action menu closes.
|
|
66
|
+
* @payload void
|
|
67
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
68
|
+
*/
|
|
69
|
+
closed: EventEmitter<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Additional CSS class or classes applied to the existing overlay panel.
|
|
72
|
+
* @default ''
|
|
73
|
+
* @type string
|
|
74
|
+
* @renamedFrom customPanelClass
|
|
75
|
+
*/
|
|
76
|
+
panelClass: string;
|
|
77
|
+
onMenuItemClick(item: MenuItem): void;
|
|
78
|
+
onMenuClosed(): void;
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionMenuComponent, never>;
|
|
80
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ActionMenuComponent, "ui-action-menu", never, { "menuTitle": { "alias": "menuTitle"; "required": false; }; "menuItems": { "alias": "menuItems"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; }, { "menuItemSelected": "menuItemSelected"; "closed": "closed"; }, never, never, true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Base field information shared across all emitted events
|
|
85
|
+
*/
|
|
86
|
+
interface SearchableSelectFieldInfo {
|
|
87
|
+
/** Current value(s) bound to the select */
|
|
88
|
+
value: any;
|
|
89
|
+
/** @deprecated Use value. */
|
|
90
|
+
modelValue: any;
|
|
91
|
+
/** Field identifier used in parent component */
|
|
92
|
+
fieldName: string | number;
|
|
93
|
+
/** @deprecated Use fieldName. */
|
|
94
|
+
textFieldName: string | number;
|
|
95
|
+
/** Optional reference to native input element */
|
|
96
|
+
inputRef?: Element | null;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Selection change event payload
|
|
100
|
+
*/
|
|
101
|
+
interface SearchableSelectSelectionChangeEvent extends SearchableSelectFieldInfo {
|
|
102
|
+
/** MatSelect change event containing selected value(s) */
|
|
103
|
+
selectionChange: MatSelectChange | null;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Toggle "Select All" event payload
|
|
107
|
+
*/
|
|
108
|
+
interface SearchableSelectToggleAllEvent extends SearchableSelectFieldInfo {
|
|
109
|
+
/** True if all options are selected, false if cleared */
|
|
110
|
+
selectAllValue: boolean;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Open/close change event payload
|
|
114
|
+
*/
|
|
115
|
+
interface SearchableSelectOpenCloseEvent extends SearchableSelectFieldInfo {
|
|
116
|
+
/** Boolean indicating whether the dropdown is opened or closed */
|
|
117
|
+
isOpen: boolean;
|
|
118
|
+
/** @deprecated Use isOpen. */
|
|
119
|
+
selectionChange: boolean;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Option click event payload
|
|
123
|
+
*/
|
|
124
|
+
interface SearchableSelectOptionClickEvent {
|
|
125
|
+
/** The clicked option */
|
|
126
|
+
activeOption: SearchableSelectOption;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Single selectable option type
|
|
130
|
+
* Can be primitive (string/number) or an object with arbitrary keys
|
|
131
|
+
*/
|
|
132
|
+
type SearchableSelectOption = any;
|
|
133
|
+
|
|
134
|
+
declare class AdvancedSelectComponent extends BaseControlValueAccessor<any> implements OnInit, OnChanges {
|
|
135
|
+
ngControl: NgControl;
|
|
136
|
+
private changeDetectorRef;
|
|
137
|
+
private readonly _icons;
|
|
138
|
+
/**
|
|
139
|
+
* Height in pixels of each option for virtual scrolling (defaults to 36px)
|
|
140
|
+
* @default 36
|
|
141
|
+
* @type number
|
|
142
|
+
*/
|
|
143
|
+
itemSize: number;
|
|
144
|
+
/** HTML id for the select element */
|
|
145
|
+
protected rawInputId: string;
|
|
146
|
+
/**
|
|
147
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
148
|
+
* @type string
|
|
149
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
150
|
+
*/
|
|
151
|
+
set inputId(id: string);
|
|
152
|
+
get inputId(): string;
|
|
153
|
+
/**
|
|
154
|
+
* Label text or translation key displayed for this control.
|
|
155
|
+
* @default ''
|
|
156
|
+
* @type string
|
|
157
|
+
*/
|
|
158
|
+
label: string;
|
|
159
|
+
/**
|
|
160
|
+
* Enable the search in the option
|
|
161
|
+
* @default true
|
|
162
|
+
* @type boolean
|
|
163
|
+
*/
|
|
164
|
+
showSearch: boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Error message shown when validation fails
|
|
167
|
+
* @default ''
|
|
168
|
+
* @type string
|
|
169
|
+
*/
|
|
170
|
+
errorMessage: string;
|
|
171
|
+
/**
|
|
172
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
173
|
+
* @default false
|
|
174
|
+
* @type boolean
|
|
175
|
+
*/
|
|
176
|
+
required: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
179
|
+
* @type string | number
|
|
180
|
+
* @renamedFrom textFieldName
|
|
181
|
+
*/
|
|
182
|
+
fieldName: string | number;
|
|
183
|
+
/**
|
|
184
|
+
* Placeholder text for the select field
|
|
185
|
+
* @default ''
|
|
186
|
+
* @type string
|
|
187
|
+
*/
|
|
188
|
+
selectPlaceholder: string;
|
|
189
|
+
/**
|
|
190
|
+
* Placeholder text for search input
|
|
191
|
+
* @default ''
|
|
192
|
+
* @type string
|
|
193
|
+
*/
|
|
194
|
+
searchPlaceholder: string;
|
|
195
|
+
/**
|
|
196
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
197
|
+
* @default false
|
|
198
|
+
* @type boolean
|
|
199
|
+
*/
|
|
200
|
+
readonly: boolean;
|
|
201
|
+
/**
|
|
202
|
+
* Displays "Select All" checkbox
|
|
203
|
+
* @default false
|
|
204
|
+
* @type boolean
|
|
205
|
+
*/
|
|
206
|
+
showToggleAllCheckbox: boolean;
|
|
207
|
+
/**
|
|
208
|
+
* Label shown when no entries are found
|
|
209
|
+
* @default 'No records found'
|
|
210
|
+
* @type string
|
|
211
|
+
*/
|
|
212
|
+
noEntriesFoundLabel: string;
|
|
213
|
+
/**
|
|
214
|
+
* Tooltip message for select-all checkbox
|
|
215
|
+
* @default ''
|
|
216
|
+
* @type string
|
|
217
|
+
*/
|
|
218
|
+
toggleAllCheckboxTooltipMessage: string;
|
|
219
|
+
/**
|
|
220
|
+
* Shows checkbox in search area
|
|
221
|
+
* @default false
|
|
222
|
+
* @type boolean
|
|
223
|
+
* @renamedFrom showSearchCheckBox
|
|
224
|
+
*/
|
|
225
|
+
/** @deprecated Use showToggleAllCheckbox. */
|
|
226
|
+
showSearchCheckbox: boolean;
|
|
227
|
+
/**
|
|
228
|
+
* Enables the existing multiple-selection mode.
|
|
229
|
+
* @default false
|
|
230
|
+
* @type boolean
|
|
231
|
+
* @renamedFrom showMultiSelect
|
|
232
|
+
*/
|
|
233
|
+
multiple: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* Options rendered by the control; use the label/value key inputs for object options.
|
|
236
|
+
* @default []
|
|
237
|
+
* @type any[]
|
|
238
|
+
* @renamedFrom selectList
|
|
239
|
+
*/
|
|
240
|
+
options: any[];
|
|
241
|
+
/**
|
|
242
|
+
* Property name read from an option object to obtain its visible label.
|
|
243
|
+
* @default ''
|
|
244
|
+
* @type string
|
|
245
|
+
* @renamedFrom displayKey
|
|
246
|
+
*/
|
|
247
|
+
labelKey: string;
|
|
248
|
+
/**
|
|
249
|
+
* Property name used to identify or extract an option value.
|
|
250
|
+
* @default ''
|
|
251
|
+
* @type string
|
|
252
|
+
* @renamedFrom idKey
|
|
253
|
+
*/
|
|
254
|
+
valueKey: string;
|
|
255
|
+
/**
|
|
256
|
+
* Key in option object used to determine if the option should be hidden from dropdown. Defaults to 'isHidden'.
|
|
257
|
+
* @default 'isHidden'
|
|
258
|
+
* @type string
|
|
259
|
+
*/
|
|
260
|
+
hiddenKey: string;
|
|
261
|
+
/**
|
|
262
|
+
* Enables grouped select display
|
|
263
|
+
* @default false
|
|
264
|
+
* @type boolean
|
|
265
|
+
*/
|
|
266
|
+
grouped: boolean;
|
|
267
|
+
/** @deprecated Use grouped. */
|
|
268
|
+
get isGroupingEnabled(): boolean;
|
|
269
|
+
set isGroupingEnabled(value: boolean);
|
|
270
|
+
/**
|
|
271
|
+
* Property key for group label (defaults to '')
|
|
272
|
+
* @default ''
|
|
273
|
+
* @type string
|
|
274
|
+
*/
|
|
275
|
+
groupLabelKey: string;
|
|
276
|
+
/**
|
|
277
|
+
* Property key for group child options array (defaults to '')
|
|
278
|
+
* @default ''
|
|
279
|
+
* @type string
|
|
280
|
+
*/
|
|
281
|
+
groupChildrenKey: string;
|
|
282
|
+
internalSelectList: any[];
|
|
283
|
+
rawOptionsList: any[];
|
|
284
|
+
private fullSelectableOptions;
|
|
285
|
+
private allSelectableOptions;
|
|
286
|
+
get hasNoMatchingEntries(): boolean;
|
|
287
|
+
/**
|
|
288
|
+
* Key used to map model value to option
|
|
289
|
+
* @default false
|
|
290
|
+
* @type boolean
|
|
291
|
+
*/
|
|
292
|
+
enableAllOption: boolean;
|
|
293
|
+
/**
|
|
294
|
+
* Key used to enable / disable sorting
|
|
295
|
+
* @default false
|
|
296
|
+
* @type boolean
|
|
297
|
+
*/
|
|
298
|
+
enableSorting: boolean;
|
|
299
|
+
/**
|
|
300
|
+
* Defines whether the list should be sorted in ascending order.
|
|
301
|
+
* @type boolean
|
|
302
|
+
*/
|
|
303
|
+
set sortAscending(sortOrder: boolean);
|
|
304
|
+
private isAscendingOrder;
|
|
305
|
+
/**
|
|
306
|
+
* Key used to sort the array
|
|
307
|
+
* @type string
|
|
308
|
+
*/
|
|
309
|
+
set sortKey(key: string);
|
|
310
|
+
private sortKeyValue;
|
|
311
|
+
private readonly allOptionKey;
|
|
312
|
+
private readonly primitiveAllOption;
|
|
313
|
+
private _allOptionObj;
|
|
314
|
+
private modelNameMapping;
|
|
315
|
+
private multiSelectInternalList;
|
|
316
|
+
/**
|
|
317
|
+
* To clear the selected dropdown list
|
|
318
|
+
* @default false
|
|
319
|
+
* @type boolean
|
|
320
|
+
*/
|
|
321
|
+
showClearIcon: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* Conatins the multiple options
|
|
324
|
+
* @default []
|
|
325
|
+
* @type string[]
|
|
326
|
+
*/
|
|
327
|
+
displayFields: string[];
|
|
328
|
+
/**
|
|
329
|
+
* Option text layout: inline joins the display fields; split separates primary and secondary fields.
|
|
330
|
+
* @default 'inline'
|
|
331
|
+
* @type 'split' | 'inline'
|
|
332
|
+
*/
|
|
333
|
+
layoutMode: 'split' | 'inline';
|
|
334
|
+
/**
|
|
335
|
+
* Enables server-side/external search by bypassing local pipe filtering
|
|
336
|
+
* @default false
|
|
337
|
+
* @type boolean
|
|
338
|
+
*/
|
|
339
|
+
serverSideSearch: boolean;
|
|
340
|
+
/**
|
|
341
|
+
* Keeps each option on a single line with ellipsis; full text is shown in a tooltip on hover when truncated
|
|
342
|
+
* @default false
|
|
343
|
+
* @type boolean
|
|
344
|
+
*/
|
|
345
|
+
singleLineOption: boolean;
|
|
346
|
+
/** Search text entered by the user */
|
|
347
|
+
searchText: string;
|
|
348
|
+
private _modelValueTracker;
|
|
349
|
+
/** Internal model bound to mat-select */
|
|
350
|
+
get hasSelectedValue(): boolean;
|
|
351
|
+
private _selectedValue;
|
|
352
|
+
get selectedValue(): any;
|
|
353
|
+
set selectedValue(value: any);
|
|
354
|
+
/** @deprecated Use selectedValue for direct component access. */
|
|
355
|
+
get inputModelValue(): any;
|
|
356
|
+
set inputModelValue(value: any);
|
|
357
|
+
/**
|
|
358
|
+
* Internal model getter/setter backed by the shared control value.
|
|
359
|
+
*/
|
|
360
|
+
get modelValue(): any;
|
|
361
|
+
set modelValue(newValue: any);
|
|
362
|
+
writeValue(newValue: any): void;
|
|
363
|
+
/** Enable/disable search in the starting/conatin mode */
|
|
364
|
+
filterConditionStartWith: boolean;
|
|
365
|
+
/**
|
|
366
|
+
* Configuration for search starts with.
|
|
367
|
+
* @type boolean
|
|
368
|
+
* @renamedFrom isSearchStartsWith
|
|
369
|
+
*/
|
|
370
|
+
set searchStartsWith(condition: boolean);
|
|
371
|
+
/**
|
|
372
|
+
* Emits when the select-all action runs.
|
|
373
|
+
* @payload SearchableSelectToggleAllEvent
|
|
374
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
375
|
+
* @renamedFrom toggleSelectHandle
|
|
376
|
+
*/
|
|
377
|
+
selectAllChange: EventEmitter<SearchableSelectToggleAllEvent>;
|
|
378
|
+
/**
|
|
379
|
+
* Emits when the selection handler processes a selection.
|
|
380
|
+
* @payload SearchableSelectSelectionChangeEvent
|
|
381
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
382
|
+
* @renamedFrom onselectionChange
|
|
383
|
+
*/
|
|
384
|
+
selectionChange: EventEmitter<SearchableSelectSelectionChangeEvent>;
|
|
385
|
+
/**
|
|
386
|
+
* Emits when the select panel open state changes.
|
|
387
|
+
* @payload SearchableSelectOpenCloseEvent
|
|
388
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
389
|
+
* @renamedFrom onOpenedChange
|
|
390
|
+
*/
|
|
391
|
+
panelOpenChange: EventEmitter<SearchableSelectOpenCloseEvent>;
|
|
392
|
+
/**
|
|
393
|
+
* Emits when the select panel opens.
|
|
394
|
+
* @payload SearchableSelectFieldInfo
|
|
395
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
396
|
+
* @renamedFrom onOpened
|
|
397
|
+
*/
|
|
398
|
+
panelOpened: EventEmitter<SearchableSelectFieldInfo>;
|
|
399
|
+
/**
|
|
400
|
+
* Emits when the select panel closes.
|
|
401
|
+
* @payload SearchableSelectFieldInfo
|
|
402
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
403
|
+
* @renamedFrom onClosed
|
|
404
|
+
*/
|
|
405
|
+
panelClosed: EventEmitter<SearchableSelectFieldInfo>;
|
|
406
|
+
/**
|
|
407
|
+
* Emits when the control loses focus.
|
|
408
|
+
* @payload SearchableSelectFieldInfo
|
|
409
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
410
|
+
* @renamedFrom onBlur
|
|
411
|
+
*/
|
|
412
|
+
blurred: EventEmitter<SearchableSelectFieldInfo>;
|
|
413
|
+
/**
|
|
414
|
+
* Emits when an option is clicked.
|
|
415
|
+
* @payload SearchableSelectOptionClickEvent
|
|
416
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
417
|
+
* @renamedFrom onOptionClick
|
|
418
|
+
*/
|
|
419
|
+
optionClicked: EventEmitter<SearchableSelectOptionClickEvent>;
|
|
420
|
+
/**
|
|
421
|
+
* Emits the updated search string for consumer filtering.
|
|
422
|
+
* @payload string
|
|
423
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
424
|
+
* @renamedFrom onSearchTextModelChange
|
|
425
|
+
*/
|
|
426
|
+
searchTextChange: EventEmitter<string>;
|
|
427
|
+
private virtualOptions;
|
|
428
|
+
private virtualScroll;
|
|
429
|
+
private matSelectRef;
|
|
430
|
+
hiddenOptions: Signal<any[]>;
|
|
431
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
432
|
+
trackByFn: (index: number, item: any) => any;
|
|
433
|
+
private areValuesEqual;
|
|
434
|
+
compareObjects: (option1: any, option2: any) => boolean;
|
|
435
|
+
handleOpenedChange(isOpen: boolean): void;
|
|
436
|
+
/**
|
|
437
|
+
* Returns shared field information
|
|
438
|
+
* attached to all emitted events
|
|
439
|
+
*/
|
|
440
|
+
private fieldInfo;
|
|
441
|
+
getSelectedModelValue(selectedValue: any): any;
|
|
442
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
443
|
+
private updateInternalList;
|
|
444
|
+
applyFilter(): void;
|
|
445
|
+
private syncMultiSelectModel;
|
|
446
|
+
/**
|
|
447
|
+
* Initializes component and resolves
|
|
448
|
+
* model value when valueKey is present
|
|
449
|
+
*/
|
|
450
|
+
ngOnInit(): void;
|
|
451
|
+
/** Secondary fields for split layout (excludes primary display key) */
|
|
452
|
+
get secondaryFields(): string[];
|
|
453
|
+
/** Formats the trigger display text for the closed select input */
|
|
454
|
+
getTriggerText(): string;
|
|
455
|
+
/**
|
|
456
|
+
* Maps the incoming model value to a matching option
|
|
457
|
+
* from the select list using the configured valueKey.
|
|
458
|
+
*
|
|
459
|
+
* @param newValue - Incoming model value from parent
|
|
460
|
+
* @returns void
|
|
461
|
+
*/
|
|
462
|
+
configureModelValue(newValue: any): void;
|
|
463
|
+
private sortInternalSelectList;
|
|
464
|
+
optionSelectionChange(event: any, option: any): void;
|
|
465
|
+
/**
|
|
466
|
+
* Emits when the selected value changes in the dropdown.
|
|
467
|
+
*
|
|
468
|
+
* @param handleSelectionChange - MatSelect change event containing selected value(s)
|
|
469
|
+
* @returns void
|
|
470
|
+
*/
|
|
471
|
+
handleSelectionChange(selectionChange: MatSelectChange): void;
|
|
472
|
+
/**
|
|
473
|
+
* Handles select-all toggle action from search checkbox.
|
|
474
|
+
*
|
|
475
|
+
* @param selectAllValue - True to select all options, false to clear selection
|
|
476
|
+
* @returns void
|
|
477
|
+
*/
|
|
478
|
+
toggleSelectAll(selectAllValue: boolean): void;
|
|
479
|
+
/**
|
|
480
|
+
* Emits when the open state of the dropdown changes.
|
|
481
|
+
*
|
|
482
|
+
* @param changeEvent - Boolean indicating open (true) or closed (false) state
|
|
483
|
+
* @returns void
|
|
484
|
+
*/
|
|
485
|
+
openedChange(opened: boolean): void;
|
|
486
|
+
/**
|
|
487
|
+
* Emits when the dropdown panel is opened.
|
|
488
|
+
*
|
|
489
|
+
* @returns void
|
|
490
|
+
*/
|
|
491
|
+
opened(): void;
|
|
492
|
+
/**
|
|
493
|
+
* Emits when the dropdown panel is closed.
|
|
494
|
+
*
|
|
495
|
+
* @returns void
|
|
496
|
+
*/
|
|
497
|
+
closed(): void;
|
|
498
|
+
/**
|
|
499
|
+
* Emits when the select element loses focus.
|
|
500
|
+
*
|
|
501
|
+
* @returns void
|
|
502
|
+
*/
|
|
503
|
+
blur(): void;
|
|
504
|
+
/**
|
|
505
|
+
* Emits when a select option is clicked.
|
|
506
|
+
*
|
|
507
|
+
* @param selectedOption - The option object that was clicked
|
|
508
|
+
* @returns void
|
|
509
|
+
*/
|
|
510
|
+
optionClick(selectedOption: any): void;
|
|
511
|
+
rebuildGroupedList(): void;
|
|
512
|
+
searchTextModelChange(changedSearchText: string): void;
|
|
513
|
+
/** Formats option text for tooltip and display matching the rendered layout */
|
|
514
|
+
getOptionText(option: any): string;
|
|
515
|
+
isTooltipDisabled(optionRef: unknown, text: string): boolean;
|
|
516
|
+
/** Opens the dropdown panel programmatically */
|
|
517
|
+
open(): void;
|
|
518
|
+
clearSelect(): void;
|
|
519
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AdvancedSelectComponent, [{ optional: true; self: true; }, null]>;
|
|
520
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AdvancedSelectComponent, "ui-advanced-select", never, { "itemSize": { "alias": "itemSize"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "label": { "alias": "label"; "required": false; }; "showSearch": { "alias": "showSearch"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "selectPlaceholder": { "alias": "selectPlaceholder"; "required": false; }; "searchPlaceholder": { "alias": "searchPlaceholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "showToggleAllCheckbox": { "alias": "showToggleAllCheckbox"; "required": false; }; "noEntriesFoundLabel": { "alias": "noEntriesFoundLabel"; "required": false; }; "toggleAllCheckboxTooltipMessage": { "alias": "toggleAllCheckboxTooltipMessage"; "required": false; }; "showSearchCheckbox": { "alias": "showSearchCheckbox"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "hiddenKey": { "alias": "hiddenKey"; "required": false; }; "grouped": { "alias": "grouped"; "required": false; }; "isGroupingEnabled": { "alias": "isGroupingEnabled"; "required": false; }; "groupLabelKey": { "alias": "groupLabelKey"; "required": false; }; "groupChildrenKey": { "alias": "groupChildrenKey"; "required": false; }; "enableAllOption": { "alias": "enableAllOption"; "required": false; }; "enableSorting": { "alias": "enableSorting"; "required": false; }; "sortAscending": { "alias": "sortAscending"; "required": false; }; "sortKey": { "alias": "sortKey"; "required": false; }; "showClearIcon": { "alias": "showClearIcon"; "required": false; }; "displayFields": { "alias": "displayFields"; "required": false; }; "layoutMode": { "alias": "layoutMode"; "required": false; }; "serverSideSearch": { "alias": "serverSideSearch"; "required": false; }; "singleLineOption": { "alias": "singleLineOption"; "required": false; }; "searchStartsWith": { "alias": "searchStartsWith"; "required": false; }; }, { "selectAllChange": "selectAllChange"; "selectionChange": "selectionChange"; "panelOpenChange": "panelOpenChange"; "panelOpened": "panelOpened"; "panelClosed": "panelClosed"; "blurred": "blurred"; "optionClicked": "optionClicked"; "searchTextChange": "searchTextChange"; }, never, never, true, never>;
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
interface Language {
|
|
524
|
+
value: string;
|
|
525
|
+
displayName: string;
|
|
526
|
+
languageValue: number;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
declare class LibraryCommonService {
|
|
530
|
+
languageChangeHandle: Subject<Language>;
|
|
531
|
+
constructor();
|
|
532
|
+
setLanguageChange(changedLanguage: Language): void;
|
|
533
|
+
getLanguageChange(): Observable<Language>;
|
|
534
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LibraryCommonService, never>;
|
|
535
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LibraryCommonService>;
|
|
536
|
+
}
|
|
537
|
+
|
|
538
|
+
interface AutocompleteModel {
|
|
539
|
+
value?: any;
|
|
540
|
+
fieldId?: string | number;
|
|
541
|
+
fieldName?: string | number;
|
|
542
|
+
textFieldName?: string | number;
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
declare class AutocompleteComponent extends BaseControlValueAccessor<any> implements OnInit, AfterViewInit, AfterViewChecked {
|
|
546
|
+
private libraryCommonService;
|
|
547
|
+
private translate;
|
|
548
|
+
ngControl: NgControl;
|
|
549
|
+
private changeDetectorRef;
|
|
550
|
+
protected rawInputId: string;
|
|
551
|
+
/**
|
|
552
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
553
|
+
* @type string
|
|
554
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
555
|
+
*/
|
|
556
|
+
set inputId(id: string);
|
|
557
|
+
get inputId(): string;
|
|
558
|
+
searchText: string;
|
|
559
|
+
/**
|
|
560
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
561
|
+
* @default false
|
|
562
|
+
* @type boolean
|
|
563
|
+
*/
|
|
564
|
+
readonly: boolean;
|
|
565
|
+
/**
|
|
566
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
567
|
+
* @default false
|
|
568
|
+
* @type boolean
|
|
569
|
+
*/
|
|
570
|
+
required: boolean;
|
|
571
|
+
/**
|
|
572
|
+
* Options rendered by the control; use the label/value key inputs for object options.
|
|
573
|
+
* @default []
|
|
574
|
+
* @renamedFrom autoCompleteList
|
|
575
|
+
*/
|
|
576
|
+
options: any[];
|
|
577
|
+
/**
|
|
578
|
+
* Label text or translation key displayed for this control.
|
|
579
|
+
* @default ''
|
|
580
|
+
* @type string
|
|
581
|
+
*/
|
|
582
|
+
label: string;
|
|
583
|
+
/**
|
|
584
|
+
* Maximum character length for the autocomplete input.
|
|
585
|
+
* @default 0
|
|
586
|
+
* @type number
|
|
587
|
+
*/
|
|
588
|
+
maxLength: number;
|
|
589
|
+
/**
|
|
590
|
+
* Property name read from an option object to obtain its visible label.
|
|
591
|
+
* @default ''
|
|
592
|
+
* @type string
|
|
593
|
+
* @renamedFrom displayKey
|
|
594
|
+
*/
|
|
595
|
+
labelKey: string;
|
|
596
|
+
/**
|
|
597
|
+
* Property name used to identify or extract an option value.
|
|
598
|
+
* @default ''
|
|
599
|
+
* @type string
|
|
600
|
+
* @renamedFrom bindValueKey
|
|
601
|
+
*/
|
|
602
|
+
valueKey: string;
|
|
603
|
+
/**
|
|
604
|
+
* Optional resolver returning an ngClass value for each option (conditional coloring/styling). Receives the raw option and may return a string, string[] or { className: boolean } map.
|
|
605
|
+
* @default null
|
|
606
|
+
* @type ((option: any) => string | string[] | Set<string> | Record<string, boolean>) | null
|
|
607
|
+
*/
|
|
608
|
+
optionNgClass: ((option: any) => string | string[] | Set<string> | Record<string, boolean>) | null;
|
|
609
|
+
/**
|
|
610
|
+
* Additional CSS class or classes applied to the existing overlay panel.
|
|
611
|
+
* @default ''
|
|
612
|
+
* @type string | string[]
|
|
613
|
+
*/
|
|
614
|
+
panelClass: string | string[];
|
|
615
|
+
get panelClassList(): string;
|
|
616
|
+
/**
|
|
617
|
+
* to show error message
|
|
618
|
+
* @default ''
|
|
619
|
+
* @type string
|
|
620
|
+
*/
|
|
621
|
+
errorMessage: string;
|
|
622
|
+
/**
|
|
623
|
+
* Renders the options inside a cdk virtual scroll viewport (use for large lists)
|
|
624
|
+
* @default false
|
|
625
|
+
* @type boolean
|
|
626
|
+
*/
|
|
627
|
+
virtualScroll: boolean;
|
|
628
|
+
/**
|
|
629
|
+
* Keeps each option on a single line with ellipsis; full text is shown in a tooltip on hover when truncated
|
|
630
|
+
* @default false
|
|
631
|
+
* @type boolean
|
|
632
|
+
*/
|
|
633
|
+
singleLineOption: boolean;
|
|
634
|
+
/**
|
|
635
|
+
* Height (px) of a single option row; must match the rendered mat-option height when virtualScroll is on
|
|
636
|
+
* @default 48
|
|
637
|
+
* @type number
|
|
638
|
+
*/
|
|
639
|
+
virtualScrollItemSize: number;
|
|
640
|
+
/**
|
|
641
|
+
* Maximum height (px) of the virtual scroll viewport (mat-autocomplete panel max-height is 256px)
|
|
642
|
+
* @default 256
|
|
643
|
+
* @type number
|
|
644
|
+
*/
|
|
645
|
+
virtualScrollMaxHeight: number;
|
|
646
|
+
private _autoCompleteModel;
|
|
647
|
+
/**
|
|
648
|
+
* Autocomplete value and field metadata object; its value is synchronized with the shared control value.
|
|
649
|
+
* @type AutocompleteModel
|
|
650
|
+
* @renamedFrom autoCompleteModel
|
|
651
|
+
*/
|
|
652
|
+
get autocompleteModel(): AutocompleteModel;
|
|
653
|
+
set autocompleteModel(model: AutocompleteModel);
|
|
654
|
+
/**
|
|
655
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
656
|
+
* @type string | number
|
|
657
|
+
* @renamedFrom textFieldName
|
|
658
|
+
*/
|
|
659
|
+
fieldName: string | number;
|
|
660
|
+
/**
|
|
661
|
+
* Hint text or translation key displayed while the control is empty.
|
|
662
|
+
* @default ''
|
|
663
|
+
* @type string
|
|
664
|
+
*/
|
|
665
|
+
placeholder: string;
|
|
666
|
+
/**
|
|
667
|
+
* Emits the existing value-change payload; remains separate from modelChange.
|
|
668
|
+
* @payload any
|
|
669
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
670
|
+
* @renamedFrom inputChangeValue
|
|
671
|
+
*/
|
|
672
|
+
valueChanged: EventEmitter<any>;
|
|
673
|
+
/**
|
|
674
|
+
* Emits when the component model-change handler runs.
|
|
675
|
+
* @payload any
|
|
676
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
677
|
+
* @renamedFrom onModelChange
|
|
678
|
+
*/
|
|
679
|
+
modelChange: EventEmitter<any>;
|
|
680
|
+
/**
|
|
681
|
+
* Emits from the existing input/change handler.
|
|
682
|
+
* @payload any
|
|
683
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
684
|
+
* @renamedFrom onInputChange
|
|
685
|
+
*/
|
|
686
|
+
inputChanged: EventEmitter<any>;
|
|
687
|
+
/**
|
|
688
|
+
* Emits when the inner field gains focus.
|
|
689
|
+
* @payload any
|
|
690
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
691
|
+
* @renamedFrom onFocusChange
|
|
692
|
+
*/
|
|
693
|
+
focusGained: EventEmitter<any>;
|
|
694
|
+
/**
|
|
695
|
+
* Emits when the inner field loses focus.
|
|
696
|
+
* @payload any
|
|
697
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
698
|
+
* @renamedFrom onBlurChange
|
|
699
|
+
*/
|
|
700
|
+
focusLost: EventEmitter<any>;
|
|
701
|
+
/**
|
|
702
|
+
* Emits on the inner field keydown event.
|
|
703
|
+
* @payload any
|
|
704
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
705
|
+
* @renamedFrom onKeydownHandle
|
|
706
|
+
*/
|
|
707
|
+
keyPressed: EventEmitter<any>;
|
|
708
|
+
/**
|
|
709
|
+
* Emits on the inner field keyup event.
|
|
710
|
+
* @payload any
|
|
711
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
712
|
+
* @renamedFrom onKeyupHandle
|
|
713
|
+
*/
|
|
714
|
+
keyReleased: EventEmitter<any>;
|
|
715
|
+
/**
|
|
716
|
+
* Emits when Enter is released in the inner field.
|
|
717
|
+
* @payload any
|
|
718
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
719
|
+
* @renamedFrom onKeyEnterHandle
|
|
720
|
+
*/
|
|
721
|
+
enterPressed: EventEmitter<any>;
|
|
722
|
+
autoComplete: NgModel;
|
|
723
|
+
private virtualScrollViewport;
|
|
724
|
+
private measuredViewportHeight;
|
|
725
|
+
constructor(libraryCommonService: LibraryCommonService, translate: TranslateService, ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
726
|
+
private readonly destroyRef;
|
|
727
|
+
/**
|
|
728
|
+
* Angular lifecycle hook.
|
|
729
|
+
* Subscribes to language change events and updates
|
|
730
|
+
* the default translation language accordingly.
|
|
731
|
+
*/
|
|
732
|
+
ngOnInit(): void;
|
|
733
|
+
/**
|
|
734
|
+
* Angular lifecycle hook.
|
|
735
|
+
* Marks the autocomplete form control as touched
|
|
736
|
+
* after the view has been fully initialized.
|
|
737
|
+
* This helps trigger validation visuals if required.
|
|
738
|
+
*/
|
|
739
|
+
ngAfterViewInit(): void;
|
|
740
|
+
/**
|
|
741
|
+
* Handles changes in the input text field.
|
|
742
|
+
* Updates the local searchText value.
|
|
743
|
+
* If the input is cleared, resets the autocomplete model
|
|
744
|
+
* and emits a selection change event.
|
|
745
|
+
*
|
|
746
|
+
* @param changeEvent - DOM input event
|
|
747
|
+
*/
|
|
748
|
+
searchTextChanges(changeEvent: Event): void;
|
|
749
|
+
/**
|
|
750
|
+
* Determines the display value for an autocomplete option.
|
|
751
|
+
* Priority:
|
|
752
|
+
* 1. labelKey of the list item matching a bound primitive value (e.g. an id)
|
|
753
|
+
* 2. valueKey
|
|
754
|
+
* 3. labelKey
|
|
755
|
+
* 4. fallback to the option itself
|
|
756
|
+
*
|
|
757
|
+
* @param autocompleteOption - Selected autocomplete object or bound value
|
|
758
|
+
* @returns string - Value to display in the input field
|
|
759
|
+
*/
|
|
760
|
+
autoCompleteBindvalue: (autocompleteOption: any) => string;
|
|
761
|
+
/**
|
|
762
|
+
* Builds a shared payload object used by all emitted events.
|
|
763
|
+
* Includes:
|
|
764
|
+
* - Input DOM reference (if inputId is provided)
|
|
765
|
+
* - Current autocomplete model value
|
|
766
|
+
* - Text field identifier
|
|
767
|
+
*
|
|
768
|
+
* @returns object - Common event payload
|
|
769
|
+
*/
|
|
770
|
+
private fieldInfo;
|
|
771
|
+
/**
|
|
772
|
+
* Emits an event whenever the bound model value changes.
|
|
773
|
+
* Typically triggered by Angular's ngModelChange.
|
|
774
|
+
*/
|
|
775
|
+
modelValueChange(): void;
|
|
776
|
+
/**
|
|
777
|
+
* Emits an event on every input value change (typing).
|
|
778
|
+
* Used for live search or filtering behaviors.
|
|
779
|
+
*/
|
|
780
|
+
inputChange(): void;
|
|
781
|
+
/**
|
|
782
|
+
* Emits an event when the input field gains focus.
|
|
783
|
+
*/
|
|
784
|
+
focusChange(): void;
|
|
785
|
+
/**
|
|
786
|
+
* Emits an event when the input field loses focus.
|
|
787
|
+
*/
|
|
788
|
+
blurChange(): void;
|
|
789
|
+
/**
|
|
790
|
+
* Emits the raw keyboard event when a key is pressed down.
|
|
791
|
+
*
|
|
792
|
+
* @param event - KeyboardEvent triggered on keydown
|
|
793
|
+
*/
|
|
794
|
+
keydownHandle(event: KeyboardEvent): void;
|
|
795
|
+
/**
|
|
796
|
+
* Emits the raw keyboard event when a key is released.
|
|
797
|
+
*
|
|
798
|
+
* @param event - KeyboardEvent triggered on keyup
|
|
799
|
+
*/
|
|
800
|
+
keyupHandle(event: KeyboardEvent): void;
|
|
801
|
+
/**
|
|
802
|
+
* Emits an event when the Enter key is pressed.
|
|
803
|
+
*
|
|
804
|
+
* @param event - Keyboard or form submit event
|
|
805
|
+
*/
|
|
806
|
+
keyEnterHandle(event: Event): void;
|
|
807
|
+
/**
|
|
808
|
+
* Handles selection changes from the autocomplete dropdown.
|
|
809
|
+
* Emits the selected value and resets the search text.
|
|
810
|
+
*/
|
|
811
|
+
onSelectionChange(): void;
|
|
812
|
+
/**
|
|
813
|
+
* Calculates the virtual scroll viewport height so short lists
|
|
814
|
+
* don't leave empty space and long lists are capped.
|
|
815
|
+
*
|
|
816
|
+
* @param count - Number of filtered options
|
|
817
|
+
* @returns number - Viewport height in px
|
|
818
|
+
*/
|
|
819
|
+
getViewportHeight(count?: number): number;
|
|
820
|
+
/**
|
|
821
|
+
* The viewport height follows the filtered list length, but cdk only measures
|
|
822
|
+
* its size on init. If it was created while the list was empty (height 0) it
|
|
823
|
+
* renders no rows, so mat-autocomplete sees no options and never shows the
|
|
824
|
+
* panel while typing. Re-measure whenever the bound height changes.
|
|
825
|
+
*/
|
|
826
|
+
ngAfterViewChecked(): void;
|
|
827
|
+
/**
|
|
828
|
+
* Track function for cdkVirtualFor.
|
|
829
|
+
*/
|
|
830
|
+
trackByFn: (index: number, option: any) => any;
|
|
831
|
+
/**
|
|
832
|
+
* The viewport is measured while the overlay is being attached,
|
|
833
|
+
* so re-measure once the panel is rendered to avoid a blank list.
|
|
834
|
+
*/
|
|
835
|
+
onPanelOpened(): void;
|
|
836
|
+
/**
|
|
837
|
+
* Reset the virtual scroll position so the next open starts from the top.
|
|
838
|
+
*/
|
|
839
|
+
onPanelClosed(): void;
|
|
840
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, [null, null, { optional: true; self: true; }, null]>;
|
|
841
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "ui-autocomplete", never, { "inputId": { "alias": "inputId"; "required": true; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "optionNgClass": { "alias": "optionNgClass"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "singleLineOption": { "alias": "singleLineOption"; "required": false; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; }; "virtualScrollMaxHeight": { "alias": "virtualScrollMaxHeight"; "required": false; }; "autocompleteModel": { "alias": "autocompleteModel"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, { "valueChanged": "valueChanged"; "modelChange": "modelChange"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; }, never, never, true, never>;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
interface CheckboxFieldInfo {
|
|
845
|
+
inputRef?: Element | null;
|
|
846
|
+
modelValue: boolean;
|
|
847
|
+
textFieldName: string | number;
|
|
848
|
+
}
|
|
849
|
+
interface CheckboxInputChangeEvent extends CheckboxFieldInfo {
|
|
850
|
+
changeEvent: Event | MatCheckboxChange;
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
declare class CheckboxComponent extends BaseControlValueAccessor<boolean> {
|
|
854
|
+
ngControl: NgControl;
|
|
855
|
+
private changeDetectorRef;
|
|
856
|
+
protected rawInputId: string;
|
|
857
|
+
/**
|
|
858
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
859
|
+
* @type string
|
|
860
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
861
|
+
*/
|
|
862
|
+
set inputId(id: string);
|
|
863
|
+
get inputId(): string;
|
|
864
|
+
/**
|
|
865
|
+
* Tooltip text displayed on hover
|
|
866
|
+
* @default ''
|
|
867
|
+
* @type string
|
|
868
|
+
*/
|
|
869
|
+
tooltip: string;
|
|
870
|
+
/**
|
|
871
|
+
* Label text or translation key displayed for this control.
|
|
872
|
+
* @default ''
|
|
873
|
+
* @type string
|
|
874
|
+
*/
|
|
875
|
+
label: string;
|
|
876
|
+
/**
|
|
877
|
+
* Error message displayed for validation
|
|
878
|
+
* @default ''
|
|
879
|
+
* @type string
|
|
880
|
+
*/
|
|
881
|
+
errorMessage: string;
|
|
882
|
+
/**
|
|
883
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
884
|
+
* @default false
|
|
885
|
+
* @type boolean
|
|
886
|
+
*/
|
|
887
|
+
required: boolean;
|
|
888
|
+
/**
|
|
889
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
890
|
+
* @type string | number
|
|
891
|
+
* @renamedFrom textFieldName
|
|
892
|
+
*/
|
|
893
|
+
fieldName: string | number;
|
|
894
|
+
/**
|
|
895
|
+
* The indeterminate state is typically used in a "select all" scenario, where it indicates that some but not all child items are selected.
|
|
896
|
+
* @default false
|
|
897
|
+
* @type boolean
|
|
898
|
+
*/
|
|
899
|
+
indeterminate: boolean;
|
|
900
|
+
/**
|
|
901
|
+
* Emits when the existing click handler runs.
|
|
902
|
+
* @payload MouseEvent
|
|
903
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
904
|
+
* @renamedFrom onClick
|
|
905
|
+
*/
|
|
906
|
+
clicked: EventEmitter<MouseEvent>;
|
|
907
|
+
/**
|
|
908
|
+
* Emits when the component model-change handler runs.
|
|
909
|
+
* @payload CheckboxFieldInfo
|
|
910
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
911
|
+
* @renamedFrom onModelChange
|
|
912
|
+
*/
|
|
913
|
+
modelChange: EventEmitter<CheckboxFieldInfo>;
|
|
914
|
+
/**
|
|
915
|
+
* Emits from the existing input/change handler.
|
|
916
|
+
* @payload CheckboxInputChangeEvent
|
|
917
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
918
|
+
* @renamedFrom onInputChange
|
|
919
|
+
*/
|
|
920
|
+
inputChanged: EventEmitter<CheckboxInputChangeEvent>;
|
|
921
|
+
/**
|
|
922
|
+
* Internal model bound to checkbox
|
|
923
|
+
* @type boolean
|
|
924
|
+
*/
|
|
925
|
+
get isChecked(): boolean;
|
|
926
|
+
set isChecked(val: boolean);
|
|
927
|
+
/** @deprecated Use isChecked for direct component access. */
|
|
928
|
+
get inputModelValue(): boolean;
|
|
929
|
+
set inputModelValue(value: boolean);
|
|
930
|
+
/**
|
|
931
|
+
* Internal model alias for template/fieldInfo compatibility.
|
|
932
|
+
* @type boolean
|
|
933
|
+
*/
|
|
934
|
+
get modelValue(): boolean;
|
|
935
|
+
set modelValue(val: boolean);
|
|
936
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
937
|
+
/**
|
|
938
|
+
* Returns the current field information
|
|
939
|
+
* @returns object containing model value and field name
|
|
940
|
+
*/
|
|
941
|
+
private fieldInfo;
|
|
942
|
+
/**
|
|
943
|
+
* Emits updated model value when ngModel changes
|
|
944
|
+
* @returns void (emits modelChange event)
|
|
945
|
+
*/
|
|
946
|
+
modelValueChange(): void;
|
|
947
|
+
/**
|
|
948
|
+
* Emits input event details along with field info
|
|
949
|
+
* @param changeValue Input event object
|
|
950
|
+
* @returns void (emits inputChanged event)
|
|
951
|
+
*/
|
|
952
|
+
inputChange(changeValue: Event, typeofChange: string): void;
|
|
953
|
+
/**
|
|
954
|
+
* Handles checkbox change event
|
|
955
|
+
* @param changeValue MatCheckboxChange event
|
|
956
|
+
* @returns void (emits inputChanged event)
|
|
957
|
+
*/
|
|
958
|
+
onChangeHandle(changeValue: MatCheckboxChange, typeofChange: string): void;
|
|
959
|
+
/**
|
|
960
|
+
* Emits click event when checkbox is clicked
|
|
961
|
+
* @param event Mouse click event
|
|
962
|
+
* @returns void (emits clicked event)
|
|
963
|
+
*/
|
|
964
|
+
onCheckboxClick(event: MouseEvent): void;
|
|
965
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, [{ optional: true; self: true; }, null]>;
|
|
966
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "ui-checkbox", never, { "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; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "clicked": "clicked"; "modelChange": "modelChange"; "inputChanged": "inputChanged"; }, never, never, true, never>;
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
/**
|
|
970
|
+
* Base metadata shared across all date picker events
|
|
971
|
+
*/
|
|
972
|
+
interface DatePickerFieldInfo {
|
|
973
|
+
/** Native input reference (available when inputId is provided) */
|
|
974
|
+
inputRef?: HTMLElement | null;
|
|
975
|
+
/** Current selected date value */
|
|
976
|
+
modelValue: Date | null;
|
|
977
|
+
/** Field identifier from parent component */
|
|
978
|
+
textFieldName: string | number;
|
|
979
|
+
}
|
|
980
|
+
/**
|
|
981
|
+
* Emitted when date selection changes from MatDatepicker
|
|
982
|
+
*/
|
|
983
|
+
interface DatePickerDateChangeEvent extends DatePickerFieldInfo {
|
|
984
|
+
dateChangeEvent: MatDatepickerInputEvent<Date>;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Emitted when ngModel value changes
|
|
988
|
+
*/
|
|
989
|
+
interface DatePickerModelChangeEvent extends DatePickerFieldInfo {
|
|
990
|
+
modelChangeEvent: Date | null;
|
|
991
|
+
}
|
|
992
|
+
/**
|
|
993
|
+
* Emitted when input receives focus
|
|
994
|
+
*/
|
|
995
|
+
interface DatePickerFocusEvent extends DatePickerFieldInfo {
|
|
996
|
+
onFocusEvent: FocusEvent;
|
|
997
|
+
}
|
|
998
|
+
/**
|
|
999
|
+
* Emitted when input loses focus
|
|
1000
|
+
*/
|
|
1001
|
+
interface DatePickerBlurEvent extends DatePickerFieldInfo {
|
|
1002
|
+
onBlurEvent: FocusEvent;
|
|
1003
|
+
}
|
|
1004
|
+
/**
|
|
1005
|
+
* Emitted on keyup event
|
|
1006
|
+
*/
|
|
1007
|
+
interface DatePickerKeyUpEvent extends DatePickerFieldInfo {
|
|
1008
|
+
onKeyUpEvent: KeyboardEvent;
|
|
1009
|
+
}
|
|
1010
|
+
/**
|
|
1011
|
+
* Emitted on keydown event
|
|
1012
|
+
*/
|
|
1013
|
+
interface DatePickerKeyDownEvent extends DatePickerFieldInfo {
|
|
1014
|
+
onkeyDownEvent: KeyboardEvent;
|
|
1015
|
+
}
|
|
1016
|
+
/**
|
|
1017
|
+
* Emitted on native input event
|
|
1018
|
+
*/
|
|
1019
|
+
interface DatePickerInputEvent extends DatePickerFieldInfo {
|
|
1020
|
+
changeEvent: Event;
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Emitted on native change event
|
|
1024
|
+
*/
|
|
1025
|
+
interface DatePickerChangeEvent extends DatePickerFieldInfo {
|
|
1026
|
+
onChangeEvent: Event;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Emitted on keyup event
|
|
1030
|
+
*/
|
|
1031
|
+
interface DatePickerEnterEvent extends DatePickerFieldInfo {
|
|
1032
|
+
onKeyUpEvent: KeyboardEvent;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
declare class DatePickerComponent extends BaseControlValueAccessor<Date> {
|
|
1036
|
+
private overlayContainer;
|
|
1037
|
+
ngControl: NgControl;
|
|
1038
|
+
private changeDetectorRef;
|
|
1039
|
+
protected rawInputId: string;
|
|
1040
|
+
/**
|
|
1041
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
1042
|
+
* @type string
|
|
1043
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
1044
|
+
*/
|
|
1045
|
+
set inputId(id: string);
|
|
1046
|
+
get inputId(): string;
|
|
1047
|
+
/**
|
|
1048
|
+
* Label text or translation key displayed for this control.
|
|
1049
|
+
* @default ''
|
|
1050
|
+
* @type string
|
|
1051
|
+
*/
|
|
1052
|
+
label: string;
|
|
1053
|
+
/**
|
|
1054
|
+
* Internal model getter/setter backed by the shared control value.
|
|
1055
|
+
* @type Date
|
|
1056
|
+
*/
|
|
1057
|
+
get modelValue(): Date;
|
|
1058
|
+
set modelValue(val: Date);
|
|
1059
|
+
/**
|
|
1060
|
+
* Error message displayed for validation
|
|
1061
|
+
* @default ''
|
|
1062
|
+
* @type string
|
|
1063
|
+
*/
|
|
1064
|
+
errorMessage: string;
|
|
1065
|
+
/**
|
|
1066
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
1067
|
+
* @default false
|
|
1068
|
+
* @type boolean
|
|
1069
|
+
*/
|
|
1070
|
+
required: boolean;
|
|
1071
|
+
/**
|
|
1072
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
1073
|
+
* @type string | number
|
|
1074
|
+
* @renamedFrom textFieldName
|
|
1075
|
+
*/
|
|
1076
|
+
fieldName: string | number;
|
|
1077
|
+
/**
|
|
1078
|
+
* Hint text or translation key displayed while the control is empty.
|
|
1079
|
+
* @default ''
|
|
1080
|
+
* @type string
|
|
1081
|
+
*/
|
|
1082
|
+
placeholder: string;
|
|
1083
|
+
/**
|
|
1084
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
1085
|
+
* @default false
|
|
1086
|
+
* @type boolean
|
|
1087
|
+
*/
|
|
1088
|
+
readonly: boolean;
|
|
1089
|
+
/**
|
|
1090
|
+
* Automatically populate current date on load
|
|
1091
|
+
* @default true
|
|
1092
|
+
* @type boolean
|
|
1093
|
+
*/
|
|
1094
|
+
autoPopulateDateTime: boolean;
|
|
1095
|
+
/**
|
|
1096
|
+
* Minimum selectable date
|
|
1097
|
+
* @type Date
|
|
1098
|
+
*/
|
|
1099
|
+
minDate: Date;
|
|
1100
|
+
/**
|
|
1101
|
+
* Maximum selectable date
|
|
1102
|
+
* @type Date
|
|
1103
|
+
*/
|
|
1104
|
+
maxDate: Date;
|
|
1105
|
+
/**
|
|
1106
|
+
* Flag to control whether today's date should be displayed in the UI
|
|
1107
|
+
* @default false
|
|
1108
|
+
* @type boolean
|
|
1109
|
+
*/
|
|
1110
|
+
showTodayDate: boolean;
|
|
1111
|
+
/**
|
|
1112
|
+
* Emits when the component model-change handler runs.
|
|
1113
|
+
* @payload DatePickerModelChangeEvent
|
|
1114
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1115
|
+
* @renamedFrom onModelChange
|
|
1116
|
+
*/
|
|
1117
|
+
modelChange: EventEmitter<DatePickerModelChangeEvent>;
|
|
1118
|
+
/**
|
|
1119
|
+
* Emits from the existing change handler.
|
|
1120
|
+
* @payload DatePickerChangeEvent
|
|
1121
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1122
|
+
* @renamedFrom onChange
|
|
1123
|
+
*/
|
|
1124
|
+
changeCommitted: EventEmitter<DatePickerChangeEvent>;
|
|
1125
|
+
/**
|
|
1126
|
+
* Emits from the existing input/change handler.
|
|
1127
|
+
* @payload DatePickerInputEvent
|
|
1128
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1129
|
+
* @renamedFrom onInputChange
|
|
1130
|
+
*/
|
|
1131
|
+
inputChanged: EventEmitter<DatePickerInputEvent>;
|
|
1132
|
+
/**
|
|
1133
|
+
* Emits when the inner field gains focus.
|
|
1134
|
+
* @payload DatePickerFocusEvent
|
|
1135
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1136
|
+
* @renamedFrom onFocusChange
|
|
1137
|
+
*/
|
|
1138
|
+
focusGained: EventEmitter<DatePickerFocusEvent>;
|
|
1139
|
+
/**
|
|
1140
|
+
* Emits when the inner field loses focus.
|
|
1141
|
+
* @payload DatePickerBlurEvent
|
|
1142
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1143
|
+
* @renamedFrom onBlurChange
|
|
1144
|
+
*/
|
|
1145
|
+
focusLost: EventEmitter<DatePickerBlurEvent>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Emits on the inner field keydown event.
|
|
1148
|
+
* @payload DatePickerKeyDownEvent
|
|
1149
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1150
|
+
* @renamedFrom onKeydownHandle
|
|
1151
|
+
*/
|
|
1152
|
+
keyPressed: EventEmitter<DatePickerKeyDownEvent>;
|
|
1153
|
+
/**
|
|
1154
|
+
* Emits on the inner field keyup event.
|
|
1155
|
+
* @payload DatePickerKeyUpEvent
|
|
1156
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1157
|
+
* @renamedFrom onKeyupHandle
|
|
1158
|
+
*/
|
|
1159
|
+
keyReleased: EventEmitter<DatePickerKeyUpEvent>;
|
|
1160
|
+
/**
|
|
1161
|
+
* Reserved output retained for API compatibility. No emission site exists in the supplied implementation.
|
|
1162
|
+
* @payload DatePickerEnterEvent
|
|
1163
|
+
* @renamedFrom onKeyEnterHandle
|
|
1164
|
+
*/
|
|
1165
|
+
enterPressed: EventEmitter<DatePickerEnterEvent>;
|
|
1166
|
+
/**
|
|
1167
|
+
* Emits when the date-selection handler runs.
|
|
1168
|
+
* @payload DatePickerDateChangeEvent
|
|
1169
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1170
|
+
* @renamedFrom onDateChange
|
|
1171
|
+
*/
|
|
1172
|
+
dateChange: EventEmitter<DatePickerDateChangeEvent>;
|
|
1173
|
+
/** ViewChild reference to the custom footer DOM element.
|
|
1174
|
+
* This element is appended manually to the mat-calendar rendered inside
|
|
1175
|
+
* the Angular Material datepicker overlay.
|
|
1176
|
+
*/
|
|
1177
|
+
datePickerFooter?: ElementRef;
|
|
1178
|
+
/**ViewChild reference to the MatDatepicker component.
|
|
1179
|
+
* Used to detect when the datepicker opens so overlay DOM manipulation
|
|
1180
|
+
* can be safely performed.
|
|
1181
|
+
*/
|
|
1182
|
+
datePicker?: MatDatepicker<any>;
|
|
1183
|
+
todayDate: string;
|
|
1184
|
+
/** Angular Material OverlayContainer.
|
|
1185
|
+
* Used to access the DOM of components rendered in CDK overlays (e.g. mat-datepicker),
|
|
1186
|
+
* since these elements are not part of the component template.
|
|
1187
|
+
*/
|
|
1188
|
+
constructor(overlayContainer: OverlayContainer, ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
1189
|
+
ngOnInit(): void;
|
|
1190
|
+
/**
|
|
1191
|
+
* Returns field metadata along with current value
|
|
1192
|
+
* @returns object containing model value and field name
|
|
1193
|
+
*/
|
|
1194
|
+
private fieldInfo;
|
|
1195
|
+
/**
|
|
1196
|
+
* Handles date picker change event
|
|
1197
|
+
* @param onDateChangeEvent Date change event
|
|
1198
|
+
* @returns void (emits dateChange)
|
|
1199
|
+
*/
|
|
1200
|
+
handleDateChange(onDateChangeEvent: MatDatepickerInputEvent<Date>): void;
|
|
1201
|
+
/**
|
|
1202
|
+
* Handles ngModel change event
|
|
1203
|
+
* @param handleModelChange Updated model value
|
|
1204
|
+
* @returns void (emits modelChange)
|
|
1205
|
+
*/
|
|
1206
|
+
handleModelChange(modelChange: Date | null): void;
|
|
1207
|
+
/**
|
|
1208
|
+
* Handles focus event
|
|
1209
|
+
* @param onFocus Focus event
|
|
1210
|
+
* @returns void (emits focusGained)
|
|
1211
|
+
*/
|
|
1212
|
+
onFocus(onFocus: FocusEvent): void;
|
|
1213
|
+
/**
|
|
1214
|
+
* Handles blur event
|
|
1215
|
+
* @param onBlur Blur event
|
|
1216
|
+
* @returns void (emits focusLost)
|
|
1217
|
+
*/
|
|
1218
|
+
onBlur(onBlur: FocusEvent): void;
|
|
1219
|
+
/**
|
|
1220
|
+
* Handles keyup event
|
|
1221
|
+
* @param onkeyUp Keyboard event
|
|
1222
|
+
* @returns void (emits keyReleased)
|
|
1223
|
+
*/
|
|
1224
|
+
onKeyUp(onkeyUp: KeyboardEvent): void;
|
|
1225
|
+
/**
|
|
1226
|
+
* Handles keydown event
|
|
1227
|
+
* @param onkeyDown Keyboard event
|
|
1228
|
+
* @returns void (emits keyPressed)
|
|
1229
|
+
*/
|
|
1230
|
+
onKeyDown(onkeyDown: KeyboardEvent): void;
|
|
1231
|
+
/**
|
|
1232
|
+
* Handles keydown event
|
|
1233
|
+
* @param onkeyDown Keyboard event
|
|
1234
|
+
* @returns void (emits keyPressed)
|
|
1235
|
+
*/
|
|
1236
|
+
onInput(event: Event): void;
|
|
1237
|
+
/**
|
|
1238
|
+
* Handles change event
|
|
1239
|
+
* @param event Change event
|
|
1240
|
+
* @returns void (emits changeCommitted)
|
|
1241
|
+
*/
|
|
1242
|
+
onChangeHandler(event: any): void;
|
|
1243
|
+
/** Retained for compatibility; Material owns overlay rendering. */
|
|
1244
|
+
calendarOpen(): void;
|
|
1245
|
+
todayDateSelection(): void;
|
|
1246
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, [null, { optional: true; self: true; }, null]>;
|
|
1247
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ui-date-picker", never, { "inputId": { "alias": "inputId"; "required": true; }; "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; }; "autoPopulateDateTime": { "alias": "autoPopulateDateTime"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "showTodayDate": { "alias": "showTodayDate"; "required": false; }; }, { "modelChange": "modelChange"; "changeCommitted": "changeCommitted"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; "dateChange": "dateChange"; }, never, never, true, never>;
|
|
1248
|
+
}
|
|
1249
|
+
|
|
1250
|
+
/**
|
|
1251
|
+
* Identifies which date field triggered the event
|
|
1252
|
+
*/
|
|
1253
|
+
type DateType = 'START_DATE' | 'END_DATE';
|
|
1254
|
+
/**
|
|
1255
|
+
* Common date range field information
|
|
1256
|
+
*/
|
|
1257
|
+
interface DateRangeFieldInfo {
|
|
1258
|
+
/** Start date value */
|
|
1259
|
+
startDate: Date | null;
|
|
1260
|
+
/** End date value */
|
|
1261
|
+
endDate: Date | null;
|
|
1262
|
+
/** Field name provided by parent */
|
|
1263
|
+
fieldName: string | number;
|
|
1264
|
+
}
|
|
1265
|
+
/**
|
|
1266
|
+
* Datepicker change event payload
|
|
1267
|
+
*/
|
|
1268
|
+
interface DateRangeDateChangeEvent extends DateRangeFieldInfo {
|
|
1269
|
+
dateType: DateType;
|
|
1270
|
+
dateChangeEvent: any;
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* ngModel change event payload
|
|
1274
|
+
*/
|
|
1275
|
+
interface DateRangeModelChangeEvent extends DateRangeFieldInfo {
|
|
1276
|
+
dateType: DateType;
|
|
1277
|
+
modelChangeEvent: Date;
|
|
1278
|
+
}
|
|
1279
|
+
/**
|
|
1280
|
+
* Focus event payload
|
|
1281
|
+
*/
|
|
1282
|
+
interface DateRangeFocusEvent extends DateRangeFieldInfo {
|
|
1283
|
+
dateType: DateType;
|
|
1284
|
+
onFocusEvent: FocusEvent;
|
|
1285
|
+
}
|
|
1286
|
+
/**
|
|
1287
|
+
* Blur event payload
|
|
1288
|
+
*/
|
|
1289
|
+
interface DateRangeBlurEvent extends DateRangeFieldInfo {
|
|
1290
|
+
dateType: DateType;
|
|
1291
|
+
blurEvent: FocusEvent;
|
|
1292
|
+
}
|
|
1293
|
+
/**
|
|
1294
|
+
* Input event payload
|
|
1295
|
+
*/
|
|
1296
|
+
interface DateRangeInputEvent extends DateRangeFieldInfo {
|
|
1297
|
+
dateType: DateType;
|
|
1298
|
+
inputChangeEvent: Event;
|
|
1299
|
+
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Native change event payload
|
|
1302
|
+
*/
|
|
1303
|
+
interface DateRangeChangeEvent extends DateRangeFieldInfo {
|
|
1304
|
+
dateType: DateType;
|
|
1305
|
+
changeEvent: Event;
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* Keyup event payload
|
|
1309
|
+
*/
|
|
1310
|
+
interface DateRangeKeyupEvent extends DateRangeFieldInfo {
|
|
1311
|
+
dateType: DateType;
|
|
1312
|
+
keyUpEvent: KeyboardEvent;
|
|
1313
|
+
}
|
|
1314
|
+
/**
|
|
1315
|
+
* Keyup event payload
|
|
1316
|
+
*/
|
|
1317
|
+
interface DateRangeEnterEvent extends DateRangeFieldInfo {
|
|
1318
|
+
dateType: DateType;
|
|
1319
|
+
keyUpEvent: KeyboardEvent;
|
|
1320
|
+
}
|
|
1321
|
+
/**
|
|
1322
|
+
* Keydown event payload
|
|
1323
|
+
*/
|
|
1324
|
+
interface DateRangeKeydownEvent extends DateRangeFieldInfo {
|
|
1325
|
+
dateType: DateType;
|
|
1326
|
+
keyDownEvent: KeyboardEvent;
|
|
1327
|
+
}
|
|
1328
|
+
|
|
1329
|
+
declare class DateRangePickerComponent extends BaseControlValueAccessor<any> {
|
|
1330
|
+
ngControl: NgControl;
|
|
1331
|
+
private changeDetectorRef;
|
|
1332
|
+
dateRangePicker?: MatDateRangePicker<any>;
|
|
1333
|
+
protected rawInputIdFrom: string;
|
|
1334
|
+
protected rawInputIdTo: string;
|
|
1335
|
+
effectiveIdFrom: string;
|
|
1336
|
+
effectiveIdTo: string;
|
|
1337
|
+
/**
|
|
1338
|
+
* Identifier for the range start input, combined with idPrefix when supplied.
|
|
1339
|
+
* @type string
|
|
1340
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
1341
|
+
* @renamedFrom inputIdFrom
|
|
1342
|
+
*/
|
|
1343
|
+
set startInputId(id: string);
|
|
1344
|
+
get startInputId(): string;
|
|
1345
|
+
/**
|
|
1346
|
+
* Identifier for the range end input, combined with idPrefix when supplied.
|
|
1347
|
+
* @type string
|
|
1348
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
1349
|
+
* @renamedFrom inputIdTo
|
|
1350
|
+
*/
|
|
1351
|
+
set endInputId(id: string);
|
|
1352
|
+
get endInputId(): string;
|
|
1353
|
+
configureId(): void;
|
|
1354
|
+
private configureRangeIds;
|
|
1355
|
+
/**
|
|
1356
|
+
* Label text or translation key displayed for this control.
|
|
1357
|
+
* @default ''
|
|
1358
|
+
* @type string
|
|
1359
|
+
*/
|
|
1360
|
+
label: string;
|
|
1361
|
+
get startModelValue(): Date | null;
|
|
1362
|
+
set startModelValue(val: Date | null);
|
|
1363
|
+
get endModelValue(): Date | null;
|
|
1364
|
+
set endModelValue(val: Date | null);
|
|
1365
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
1366
|
+
/**
|
|
1367
|
+
* Error message displayed for validation
|
|
1368
|
+
* @default ''
|
|
1369
|
+
* @type string
|
|
1370
|
+
*/
|
|
1371
|
+
errorMessage: string;
|
|
1372
|
+
/**
|
|
1373
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
1374
|
+
* @default false
|
|
1375
|
+
* @type boolean
|
|
1376
|
+
*/
|
|
1377
|
+
required: boolean;
|
|
1378
|
+
/**
|
|
1379
|
+
* Disable start date input
|
|
1380
|
+
* @default false
|
|
1381
|
+
* @type boolean
|
|
1382
|
+
*/
|
|
1383
|
+
startDisabled: boolean;
|
|
1384
|
+
/**
|
|
1385
|
+
* Disable end date input
|
|
1386
|
+
* @default false
|
|
1387
|
+
* @type boolean
|
|
1388
|
+
*/
|
|
1389
|
+
endDisabled: boolean;
|
|
1390
|
+
/**
|
|
1391
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
1392
|
+
* @type string | number
|
|
1393
|
+
* @renamedFrom textFieldName
|
|
1394
|
+
*/
|
|
1395
|
+
fieldName: string | number;
|
|
1396
|
+
/**
|
|
1397
|
+
* Placeholder for start date input
|
|
1398
|
+
* @default ''
|
|
1399
|
+
* @type string
|
|
1400
|
+
*/
|
|
1401
|
+
startPlaceholder: string;
|
|
1402
|
+
/**
|
|
1403
|
+
* Placeholder for end date input
|
|
1404
|
+
* @default ''
|
|
1405
|
+
* @type string
|
|
1406
|
+
*/
|
|
1407
|
+
endPlaceholder: string;
|
|
1408
|
+
/**
|
|
1409
|
+
* Makes end date input read-only
|
|
1410
|
+
* @default false
|
|
1411
|
+
* @type boolean
|
|
1412
|
+
*/
|
|
1413
|
+
endReadonly: boolean;
|
|
1414
|
+
/**
|
|
1415
|
+
* Makes start date input read-only
|
|
1416
|
+
* @default false
|
|
1417
|
+
* @type boolean
|
|
1418
|
+
*/
|
|
1419
|
+
startReadonly: boolean;
|
|
1420
|
+
/**
|
|
1421
|
+
* Automatically populate current date
|
|
1422
|
+
* @default true
|
|
1423
|
+
*/
|
|
1424
|
+
autoPopulateDateTime: boolean;
|
|
1425
|
+
/**
|
|
1426
|
+
* Minimum allowed start date
|
|
1427
|
+
* @type Date
|
|
1428
|
+
*/
|
|
1429
|
+
startMinDate: Date;
|
|
1430
|
+
/**
|
|
1431
|
+
* Maximum allowed start date
|
|
1432
|
+
* @type Date
|
|
1433
|
+
*/
|
|
1434
|
+
startMaxDate: Date;
|
|
1435
|
+
/**
|
|
1436
|
+
* Minimum allowed end date
|
|
1437
|
+
* @type Date
|
|
1438
|
+
*/
|
|
1439
|
+
endMinDate: Date;
|
|
1440
|
+
/**
|
|
1441
|
+
* Maximum allowed end date
|
|
1442
|
+
* @type Date
|
|
1443
|
+
*/
|
|
1444
|
+
endMaxDate: Date;
|
|
1445
|
+
/**
|
|
1446
|
+
* Emits when the component model-change handler runs.
|
|
1447
|
+
* @payload DateRangeModelChangeEvent
|
|
1448
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1449
|
+
* @renamedFrom onModelChange
|
|
1450
|
+
*/
|
|
1451
|
+
modelChange: EventEmitter<DateRangeModelChangeEvent>;
|
|
1452
|
+
/**
|
|
1453
|
+
* Emits from the existing change handler.
|
|
1454
|
+
* @payload DateRangeChangeEvent
|
|
1455
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1456
|
+
* @renamedFrom onChange
|
|
1457
|
+
*/
|
|
1458
|
+
changeCommitted: EventEmitter<DateRangeChangeEvent>;
|
|
1459
|
+
/**
|
|
1460
|
+
* Emits from the existing input/change handler.
|
|
1461
|
+
* @payload DateRangeInputEvent
|
|
1462
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1463
|
+
* @renamedFrom onInputChange
|
|
1464
|
+
*/
|
|
1465
|
+
inputChanged: EventEmitter<DateRangeInputEvent>;
|
|
1466
|
+
/**
|
|
1467
|
+
* Emits when the inner field gains focus.
|
|
1468
|
+
* @payload DateRangeFocusEvent
|
|
1469
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1470
|
+
* @renamedFrom onFocusChange
|
|
1471
|
+
*/
|
|
1472
|
+
focusGained: EventEmitter<DateRangeFocusEvent>;
|
|
1473
|
+
/**
|
|
1474
|
+
* Emits when the inner field loses focus.
|
|
1475
|
+
* @payload DateRangeBlurEvent
|
|
1476
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1477
|
+
* @renamedFrom onBlurChange
|
|
1478
|
+
*/
|
|
1479
|
+
focusLost: EventEmitter<DateRangeBlurEvent>;
|
|
1480
|
+
/**
|
|
1481
|
+
* Emits on the inner field keydown event.
|
|
1482
|
+
* @payload DateRangeKeydownEvent
|
|
1483
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1484
|
+
* @renamedFrom onKeydownHandle
|
|
1485
|
+
*/
|
|
1486
|
+
keyPressed: EventEmitter<DateRangeKeydownEvent>;
|
|
1487
|
+
/**
|
|
1488
|
+
* Emits on the inner field keyup event.
|
|
1489
|
+
* @payload DateRangeKeyupEvent
|
|
1490
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1491
|
+
* @renamedFrom onKeyupHandle
|
|
1492
|
+
*/
|
|
1493
|
+
keyReleased: EventEmitter<DateRangeKeyupEvent>;
|
|
1494
|
+
/**
|
|
1495
|
+
* Reserved output retained for API compatibility. No emission site exists in the supplied implementation.
|
|
1496
|
+
* @payload DateRangeEnterEvent
|
|
1497
|
+
* @renamedFrom onKeyEnterHandle
|
|
1498
|
+
*/
|
|
1499
|
+
enterPressed: EventEmitter<DateRangeEnterEvent>;
|
|
1500
|
+
/**
|
|
1501
|
+
* Emits when the date-selection handler runs.
|
|
1502
|
+
* @payload DateRangeDateChangeEvent
|
|
1503
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1504
|
+
* @renamedFrom onDateChange
|
|
1505
|
+
*/
|
|
1506
|
+
dateChange: EventEmitter<DateRangeDateChangeEvent>;
|
|
1507
|
+
/**
|
|
1508
|
+
* Returns complete date range field information
|
|
1509
|
+
* @returns object containing start date, end date, and field name
|
|
1510
|
+
*/
|
|
1511
|
+
private fieldInfo;
|
|
1512
|
+
/**
|
|
1513
|
+
* Handles date change for start or end date
|
|
1514
|
+
* @param event Date change event
|
|
1515
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1516
|
+
* @returns void (emits dateChange)
|
|
1517
|
+
*/
|
|
1518
|
+
handleDateChange(event: any, dateType: DateType): void;
|
|
1519
|
+
/**
|
|
1520
|
+
* Handles ngModel change for start or end date
|
|
1521
|
+
* @param event Updated date value
|
|
1522
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1523
|
+
* @returns void (emits modelChange)
|
|
1524
|
+
*/
|
|
1525
|
+
handleModelChange(event: Date, dateType: DateType): void;
|
|
1526
|
+
/**
|
|
1527
|
+
* Handles focus event for start or end date input
|
|
1528
|
+
* @param event Focus event
|
|
1529
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1530
|
+
* @returns void (emits focusGained)
|
|
1531
|
+
*/
|
|
1532
|
+
onFocus(event: FocusEvent, dateType: DateType): void;
|
|
1533
|
+
/**
|
|
1534
|
+
* Handles blur event for start or end date input
|
|
1535
|
+
* @param event Blur event
|
|
1536
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1537
|
+
* @returns void (emits focusLost)
|
|
1538
|
+
*/
|
|
1539
|
+
onBlur(event: FocusEvent, dateType: DateType): void;
|
|
1540
|
+
/**
|
|
1541
|
+
* Handles keyup event for start or end date input
|
|
1542
|
+
* @param event Keyboard event
|
|
1543
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1544
|
+
* @returns void (emits keyReleased)
|
|
1545
|
+
*/
|
|
1546
|
+
onKeyUp(event: KeyboardEvent, dateType: DateType): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* Handles keydown event for start or end date input
|
|
1549
|
+
* @param event Keyboard event
|
|
1550
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1551
|
+
* @returns void (emits keyPressed)
|
|
1552
|
+
*/
|
|
1553
|
+
onKeyDown(event: KeyboardEvent, dateType: DateType): void;
|
|
1554
|
+
/**
|
|
1555
|
+
* Handles input event for start or end date input
|
|
1556
|
+
* @param event Input event
|
|
1557
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1558
|
+
* @returns void (emits inputChanged)
|
|
1559
|
+
*/
|
|
1560
|
+
onInput(event: Event, dateType: DateType): void;
|
|
1561
|
+
/**
|
|
1562
|
+
* Handles change event for start or end date input
|
|
1563
|
+
* @param event Change event
|
|
1564
|
+
* @param dateType Indicates START_DATE or END_DATE
|
|
1565
|
+
* @returns void (emits changeCommitted)
|
|
1566
|
+
*/
|
|
1567
|
+
onChangeHandler(event: any, dateType: DateType): void;
|
|
1568
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, [{ optional: true; self: true; }, null]>;
|
|
1569
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "ui-date-range-picker", never, { "startInputId": { "alias": "startInputId"; "required": true; }; "endInputId": { "alias": "endInputId"; "required": true; }; "label": { "alias": "label"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "startDisabled": { "alias": "startDisabled"; "required": false; }; "endDisabled": { "alias": "endDisabled"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "startPlaceholder": { "alias": "startPlaceholder"; "required": false; }; "endPlaceholder": { "alias": "endPlaceholder"; "required": false; }; "endReadonly": { "alias": "endReadonly"; "required": false; }; "startReadonly": { "alias": "startReadonly"; "required": false; }; "autoPopulateDateTime": { "alias": "autoPopulateDateTime"; "required": false; }; "startMinDate": { "alias": "startMinDate"; "required": false; }; "startMaxDate": { "alias": "startMaxDate"; "required": false; }; "endMinDate": { "alias": "endMinDate"; "required": false; }; "endMaxDate": { "alias": "endMaxDate"; "required": false; }; }, { "modelChange": "modelChange"; "changeCommitted": "changeCommitted"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; "dateChange": "dateChange"; }, never, never, true, never>;
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Base field information for DateTime picker
|
|
1574
|
+
*/
|
|
1575
|
+
interface DateTimePickerFieldInfo {
|
|
1576
|
+
/** Current date-time value */
|
|
1577
|
+
modelValue: Date;
|
|
1578
|
+
/** Field name provided by parent */
|
|
1579
|
+
textFieldName: string | number;
|
|
1580
|
+
/** Native input element reference (if inputId provided) */
|
|
1581
|
+
inputRef?: Element | null;
|
|
1582
|
+
}
|
|
1583
|
+
/**
|
|
1584
|
+
* Date picker change event payload
|
|
1585
|
+
*/
|
|
1586
|
+
interface DateTimePickerDateChangeEvent extends DateTimePickerFieldInfo {
|
|
1587
|
+
/** Date-time picker change value */
|
|
1588
|
+
dateChangeEvent: NgxMatDatepickerInputEvent<any, any>;
|
|
1589
|
+
}
|
|
1590
|
+
/**
|
|
1591
|
+
* ngModel change event payload
|
|
1592
|
+
*/
|
|
1593
|
+
interface DateTimePickerModelChangeEvent extends DateTimePickerFieldInfo {
|
|
1594
|
+
/** Updated model value */
|
|
1595
|
+
modelChangeEvent: Date;
|
|
1596
|
+
}
|
|
1597
|
+
/**
|
|
1598
|
+
* Focus event payload
|
|
1599
|
+
*/
|
|
1600
|
+
interface DateTimePickerFocusEvent extends DateTimePickerFieldInfo {
|
|
1601
|
+
/** Native focus event */
|
|
1602
|
+
focusEvent: FocusEvent;
|
|
1603
|
+
}
|
|
1604
|
+
/**
|
|
1605
|
+
* Blur event payload
|
|
1606
|
+
*/
|
|
1607
|
+
interface DateTimePickerBlurEvent extends DateTimePickerFieldInfo {
|
|
1608
|
+
/** Native blur event */
|
|
1609
|
+
blurEvent: FocusEvent;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* Input event payload
|
|
1613
|
+
*/
|
|
1614
|
+
interface DateTimePickerInputEvent extends DateTimePickerFieldInfo {
|
|
1615
|
+
/** Native input event */
|
|
1616
|
+
inputChangeEvent: Event;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Native change event payload
|
|
1620
|
+
*/
|
|
1621
|
+
interface DateTimePickerChangeEvent extends DateTimePickerFieldInfo {
|
|
1622
|
+
/** Native change event */
|
|
1623
|
+
changeEvent: Event;
|
|
1624
|
+
}
|
|
1625
|
+
/**
|
|
1626
|
+
* Keyup event payload
|
|
1627
|
+
*/
|
|
1628
|
+
interface DateTimePickerKeyupEvent extends DateTimePickerFieldInfo {
|
|
1629
|
+
/** Native keyboard event */
|
|
1630
|
+
keyUpEvent: KeyboardEvent;
|
|
1631
|
+
}
|
|
1632
|
+
/**
|
|
1633
|
+
* Keydown event payload
|
|
1634
|
+
*/
|
|
1635
|
+
interface DateTimePickerKeydownEvent extends DateTimePickerFieldInfo {
|
|
1636
|
+
/** Native keyboard event */
|
|
1637
|
+
keyDownEvent: KeyboardEvent;
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* Keydown event payload
|
|
1641
|
+
*/
|
|
1642
|
+
interface DateTimePickerKeyEnter extends DateTimePickerFieldInfo {
|
|
1643
|
+
/** Native keyboard event */
|
|
1644
|
+
keyDownEvent: KeyboardEvent;
|
|
1645
|
+
}
|
|
1646
|
+
|
|
1647
|
+
declare class DateTimePickerComponent extends BaseControlValueAccessor<Date> implements AfterViewInit {
|
|
1648
|
+
ngControl: NgControl;
|
|
1649
|
+
private changeDetectorRef;
|
|
1650
|
+
private readonly _icons;
|
|
1651
|
+
pickerWithActions: NgxMatDatetimepicker<any>;
|
|
1652
|
+
/**
|
|
1653
|
+
* Label text or translation key displayed for this control.
|
|
1654
|
+
* @default ''
|
|
1655
|
+
* @type string
|
|
1656
|
+
*/
|
|
1657
|
+
label: string;
|
|
1658
|
+
protected rawInputId: string;
|
|
1659
|
+
/**
|
|
1660
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
1661
|
+
* @type string
|
|
1662
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
1663
|
+
*/
|
|
1664
|
+
set inputId(id: string);
|
|
1665
|
+
get inputId(): string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Internal model getter/setter backed by the shared control value.
|
|
1668
|
+
* @type Date
|
|
1669
|
+
*/
|
|
1670
|
+
get modelValue(): Date;
|
|
1671
|
+
set modelValue(val: Date);
|
|
1672
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
1673
|
+
ngAfterViewInit(): void;
|
|
1674
|
+
/**
|
|
1675
|
+
* Error message displayed for validation
|
|
1676
|
+
* @default ''
|
|
1677
|
+
* @type string
|
|
1678
|
+
*/
|
|
1679
|
+
errorMessage: string;
|
|
1680
|
+
/**
|
|
1681
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
1682
|
+
* @default false
|
|
1683
|
+
* @type boolean
|
|
1684
|
+
*/
|
|
1685
|
+
required: boolean;
|
|
1686
|
+
/**
|
|
1687
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
1688
|
+
* @type string | number
|
|
1689
|
+
* @renamedFrom textFieldName
|
|
1690
|
+
*/
|
|
1691
|
+
fieldName: string | number;
|
|
1692
|
+
/**
|
|
1693
|
+
* Hint text or translation key displayed while the control is empty.
|
|
1694
|
+
* @default ''
|
|
1695
|
+
* @type string
|
|
1696
|
+
*/
|
|
1697
|
+
placeholder: string;
|
|
1698
|
+
/**
|
|
1699
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
1700
|
+
* @default false
|
|
1701
|
+
* @type boolean
|
|
1702
|
+
*/
|
|
1703
|
+
readonly: boolean;
|
|
1704
|
+
/**
|
|
1705
|
+
* Automatically populate current date-time
|
|
1706
|
+
* @default true
|
|
1707
|
+
* @type boolean
|
|
1708
|
+
*/
|
|
1709
|
+
autoPopulateDateTime: boolean;
|
|
1710
|
+
/**
|
|
1711
|
+
* Minimum selectable date-time
|
|
1712
|
+
* @type Date
|
|
1713
|
+
*/
|
|
1714
|
+
minDate: Date;
|
|
1715
|
+
/**
|
|
1716
|
+
* Maximum selectable date-time
|
|
1717
|
+
* @type Date
|
|
1718
|
+
*/
|
|
1719
|
+
maxDate: Date;
|
|
1720
|
+
/** Checks if selected date and time violates min/max bounds to disable apply tick */
|
|
1721
|
+
/** Compatibility helper. The picker input validates min/max through its public API. */
|
|
1722
|
+
isApplyDisabled(_picker?: unknown): boolean;
|
|
1723
|
+
/**
|
|
1724
|
+
* Emits when the date-selection handler runs.
|
|
1725
|
+
* @payload DateTimePickerDateChangeEvent
|
|
1726
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1727
|
+
* @renamedFrom onDateChange
|
|
1728
|
+
*/
|
|
1729
|
+
dateChange: EventEmitter<DateTimePickerDateChangeEvent>;
|
|
1730
|
+
/**
|
|
1731
|
+
* Emits when the component model-change handler runs.
|
|
1732
|
+
* @payload DateTimePickerModelChangeEvent
|
|
1733
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1734
|
+
* @renamedFrom onModelChange
|
|
1735
|
+
*/
|
|
1736
|
+
modelChange: EventEmitter<DateTimePickerModelChangeEvent>;
|
|
1737
|
+
/**
|
|
1738
|
+
* Emits from the existing change handler.
|
|
1739
|
+
* @payload DateTimePickerChangeEvent
|
|
1740
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1741
|
+
* @renamedFrom onChange
|
|
1742
|
+
*/
|
|
1743
|
+
changeCommitted: EventEmitter<DateTimePickerChangeEvent>;
|
|
1744
|
+
/**
|
|
1745
|
+
* Emits from the existing input/change handler.
|
|
1746
|
+
* @payload DateTimePickerInputEvent
|
|
1747
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1748
|
+
* @renamedFrom onInputChange
|
|
1749
|
+
*/
|
|
1750
|
+
inputChanged: EventEmitter<DateTimePickerInputEvent>;
|
|
1751
|
+
/**
|
|
1752
|
+
* Emits when the inner field gains focus.
|
|
1753
|
+
* @payload DateTimePickerFocusEvent
|
|
1754
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1755
|
+
* @renamedFrom onFocusChange
|
|
1756
|
+
*/
|
|
1757
|
+
focusGained: EventEmitter<DateTimePickerFocusEvent>;
|
|
1758
|
+
/**
|
|
1759
|
+
* Emits when the inner field loses focus.
|
|
1760
|
+
* @payload DateTimePickerBlurEvent
|
|
1761
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1762
|
+
* @renamedFrom onBlurChange
|
|
1763
|
+
*/
|
|
1764
|
+
focusLost: EventEmitter<DateTimePickerBlurEvent>;
|
|
1765
|
+
/**
|
|
1766
|
+
* Emits on the inner field keydown event.
|
|
1767
|
+
* @payload DateTimePickerKeydownEvent
|
|
1768
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1769
|
+
* @renamedFrom onKeydownHandle
|
|
1770
|
+
*/
|
|
1771
|
+
keyPressed: EventEmitter<DateTimePickerKeydownEvent>;
|
|
1772
|
+
/**
|
|
1773
|
+
* Emits on the inner field keyup event.
|
|
1774
|
+
* @payload DateTimePickerKeyupEvent
|
|
1775
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1776
|
+
* @renamedFrom onKeyupHandle
|
|
1777
|
+
*/
|
|
1778
|
+
keyReleased: EventEmitter<DateTimePickerKeyupEvent>;
|
|
1779
|
+
/**
|
|
1780
|
+
* Reserved output retained for API compatibility. No emission site exists in the supplied implementation.
|
|
1781
|
+
* @payload DateTimePickerKeyEnter
|
|
1782
|
+
* @renamedFrom onKeyEnterHandle
|
|
1783
|
+
*/
|
|
1784
|
+
enterPressed: EventEmitter<DateTimePickerKeyEnter>;
|
|
1785
|
+
/**
|
|
1786
|
+
* Returns field metadata along with current date-time value
|
|
1787
|
+
* @returns object containing model value and field name
|
|
1788
|
+
*/
|
|
1789
|
+
private fieldInfo;
|
|
1790
|
+
/**
|
|
1791
|
+
* Handles date-time picker change event
|
|
1792
|
+
* @param handleDateChange Date change event
|
|
1793
|
+
* @returns void (emits dateChange)
|
|
1794
|
+
*/
|
|
1795
|
+
handleDateChange(dateChange: NgxMatDatepickerInputEvent<any, any>): void;
|
|
1796
|
+
/**
|
|
1797
|
+
* Handles ngModel value change
|
|
1798
|
+
* @param modelValueChange Updated model value
|
|
1799
|
+
* @returns void (emits modelChange)
|
|
1800
|
+
*/
|
|
1801
|
+
handleModelChange(modelValueChange: Date): void;
|
|
1802
|
+
/**
|
|
1803
|
+
* Handles focus event
|
|
1804
|
+
* @param onFocus Focus event
|
|
1805
|
+
* @returns void (emits focusGained)
|
|
1806
|
+
*/
|
|
1807
|
+
onFocus(onFocus: FocusEvent): void;
|
|
1808
|
+
/**
|
|
1809
|
+
* Handles blur event
|
|
1810
|
+
* @param onBlur Blur event
|
|
1811
|
+
* @returns void (emits focusLost)
|
|
1812
|
+
*/
|
|
1813
|
+
onBlur(onBlur: FocusEvent): void;
|
|
1814
|
+
/**
|
|
1815
|
+
* Handles keyup event
|
|
1816
|
+
* @param onKeyUp Keyboard event
|
|
1817
|
+
* @returns void (emits keyReleased)
|
|
1818
|
+
*/
|
|
1819
|
+
onKeyUp(onKeyUp: KeyboardEvent): void;
|
|
1820
|
+
/**
|
|
1821
|
+
* Handles keydown event
|
|
1822
|
+
* @param onKeyDown Keyboard event
|
|
1823
|
+
* @returns void (emits keyPressed)
|
|
1824
|
+
*/
|
|
1825
|
+
onKeyDown(onKeyDown: KeyboardEvent): void;
|
|
1826
|
+
/**
|
|
1827
|
+
* Handles input event
|
|
1828
|
+
* @param inputChanged Input event
|
|
1829
|
+
* @returns void (emits inputChanged)
|
|
1830
|
+
*/
|
|
1831
|
+
onInput(onInputChange: Event): void;
|
|
1832
|
+
/**
|
|
1833
|
+
* Handles change event
|
|
1834
|
+
* @param changeEvent Change event
|
|
1835
|
+
* @returns void (emits changeCommitted)
|
|
1836
|
+
*/
|
|
1837
|
+
onChangeHandler(changeEvent: Event): void;
|
|
1838
|
+
/**
|
|
1839
|
+
* When the picker dialog is opened and no date-time is currently selected,
|
|
1840
|
+
* pre-selects the current date on the calendar and sets the current time
|
|
1841
|
+
* in the timepicker spinners without populating the input text-box.
|
|
1842
|
+
*/
|
|
1843
|
+
/** Kept for callers; defaultTime and startAt configure the public picker API. */
|
|
1844
|
+
onPickerOpened(): void;
|
|
1845
|
+
onEnter(event: Event): void;
|
|
1846
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, [{ optional: true; self: true; }, null]>;
|
|
1847
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "ui-date-time-picker", never, { "label": { "alias": "label"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "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; }; "autoPopulateDateTime": { "alias": "autoPopulateDateTime"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "dateChange": "dateChange"; "modelChange": "modelChange"; "changeCommitted": "changeCommitted"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; }, never, never, true, never>;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
declare class FileUploadComponent extends BaseControlValueAccessor<any> {
|
|
1851
|
+
ngControl: NgControl;
|
|
1852
|
+
private changeDetectorRef;
|
|
1853
|
+
private readonly _icons;
|
|
1854
|
+
/** HTML id attribute for the input element */
|
|
1855
|
+
protected rawInputId: string;
|
|
1856
|
+
/**
|
|
1857
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
1858
|
+
* @type string
|
|
1859
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
1860
|
+
*/
|
|
1861
|
+
set inputId(id: string);
|
|
1862
|
+
get inputId(): string;
|
|
1863
|
+
/**
|
|
1864
|
+
* Hint text or translation key displayed while the control is empty.
|
|
1865
|
+
* @default 'Select File'
|
|
1866
|
+
* @type string
|
|
1867
|
+
*/
|
|
1868
|
+
placeholder: string;
|
|
1869
|
+
/**
|
|
1870
|
+
* Validation error message for empty/required fields
|
|
1871
|
+
* @default ''
|
|
1872
|
+
* @type string
|
|
1873
|
+
*/
|
|
1874
|
+
errorMessage: string;
|
|
1875
|
+
/**
|
|
1876
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
1877
|
+
* @default false
|
|
1878
|
+
* @type boolean
|
|
1879
|
+
*/
|
|
1880
|
+
required: boolean;
|
|
1881
|
+
/**
|
|
1882
|
+
* File types allowed (e.g. '.csv, .xlsx', 'image/*', '.pdf')
|
|
1883
|
+
* @default ''
|
|
1884
|
+
* @type string
|
|
1885
|
+
*/
|
|
1886
|
+
accept: string;
|
|
1887
|
+
/**
|
|
1888
|
+
* Shows the clear button when a file is selected
|
|
1889
|
+
* @default true
|
|
1890
|
+
* @type boolean
|
|
1891
|
+
*/
|
|
1892
|
+
showClearIcon: boolean;
|
|
1893
|
+
/**
|
|
1894
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
1895
|
+
* @type string | number
|
|
1896
|
+
* @renamedFrom textFieldName
|
|
1897
|
+
*/
|
|
1898
|
+
fieldName: string | number;
|
|
1899
|
+
/**
|
|
1900
|
+
* Uses the existing drag/drop presentation with multiple file selection; false uses the single-file browse presentation.
|
|
1901
|
+
* @default false
|
|
1902
|
+
* @type boolean
|
|
1903
|
+
* @renamedFrom showFileDragDrop
|
|
1904
|
+
*/
|
|
1905
|
+
showDropZone: boolean;
|
|
1906
|
+
/**
|
|
1907
|
+
* Emits after selected files pass the configured extension/MIME checks.
|
|
1908
|
+
* @payload any
|
|
1909
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1910
|
+
* @renamedFrom onFileSelect
|
|
1911
|
+
*/
|
|
1912
|
+
fileSelected: EventEmitter<any>;
|
|
1913
|
+
/**
|
|
1914
|
+
* Emits after the selected file is cleared.
|
|
1915
|
+
* @payload void
|
|
1916
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1917
|
+
* @renamedFrom onClear
|
|
1918
|
+
*/
|
|
1919
|
+
cleared: EventEmitter<void>;
|
|
1920
|
+
/**
|
|
1921
|
+
* Emits the validation message when a selected file fails the configured format check.
|
|
1922
|
+
* @payload string
|
|
1923
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
1924
|
+
* @renamedFrom onValidationError
|
|
1925
|
+
*/
|
|
1926
|
+
validationError: EventEmitter<string>;
|
|
1927
|
+
/** Allow multiple files independently of the visual drop zone. */
|
|
1928
|
+
multiple: boolean | null;
|
|
1929
|
+
private nativeFileInput?;
|
|
1930
|
+
fileName: string;
|
|
1931
|
+
selectedFiles: FileList | null;
|
|
1932
|
+
isInvalidFile: boolean;
|
|
1933
|
+
fileFormatErrorMessage: string;
|
|
1934
|
+
get acceptedFiles(): string;
|
|
1935
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
1936
|
+
writeValue(value: any): void;
|
|
1937
|
+
validateFile(file: File): boolean;
|
|
1938
|
+
onFileChange(event: Event): void;
|
|
1939
|
+
clearFile(event: MouseEvent): void;
|
|
1940
|
+
private getFileNames;
|
|
1941
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, [{ optional: true; self: true; }, null]>;
|
|
1942
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ui-file-upload", never, { "inputId": { "alias": "inputId"; "required": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "showClearIcon": { "alias": "showClearIcon"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "showDropZone": { "alias": "showDropZone"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; }, { "fileSelected": "fileSelected"; "cleared": "cleared"; "validationError": "validationError"; }, never, never, true, never>;
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
/**
|
|
1946
|
+
* Base field information shared across all emitted events
|
|
1947
|
+
* Returned by fieldInfo()
|
|
1948
|
+
*/
|
|
1949
|
+
interface NumberInputFieldInfo {
|
|
1950
|
+
/** Current numeric value */
|
|
1951
|
+
modelValue: number;
|
|
1952
|
+
/** Field name provided by parent component */
|
|
1953
|
+
textFieldName: string | number;
|
|
1954
|
+
/** Native input element reference (if inputId exists) */
|
|
1955
|
+
inputRef?: Element | null;
|
|
1956
|
+
}
|
|
1957
|
+
/**
|
|
1958
|
+
* Model value change payload
|
|
1959
|
+
*/
|
|
1960
|
+
interface NumberInputModelChangeEvent extends NumberInputFieldInfo {
|
|
1961
|
+
/** Updated numeric value */
|
|
1962
|
+
modelChangeEvent: number;
|
|
1963
|
+
}
|
|
1964
|
+
/**
|
|
1965
|
+
* Input event payload
|
|
1966
|
+
*/
|
|
1967
|
+
interface NumberInputInputEvent extends NumberInputFieldInfo {
|
|
1968
|
+
/** Native input/change event */
|
|
1969
|
+
changeEvent: Event;
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Focus event payload
|
|
1973
|
+
*/
|
|
1974
|
+
interface NumberInputFocusEvent extends NumberInputFieldInfo {
|
|
1975
|
+
/** Native focus event */
|
|
1976
|
+
focusEvent: FocusEvent;
|
|
1977
|
+
}
|
|
1978
|
+
/**
|
|
1979
|
+
* Blur event payload
|
|
1980
|
+
*/
|
|
1981
|
+
interface NumberInputBlurEvent extends NumberInputFieldInfo {
|
|
1982
|
+
/** Native blur event */
|
|
1983
|
+
blurEvent: FocusEvent;
|
|
1984
|
+
}
|
|
1985
|
+
/**
|
|
1986
|
+
* Keydown event payload
|
|
1987
|
+
*/
|
|
1988
|
+
interface NumberInputKeydownEvent extends NumberInputFieldInfo {
|
|
1989
|
+
/** Native keyboard event */
|
|
1990
|
+
keyDownEvent: KeyboardEvent;
|
|
1991
|
+
}
|
|
1992
|
+
/**
|
|
1993
|
+
* Keyup event payload
|
|
1994
|
+
*/
|
|
1995
|
+
interface NumberInputKeyupEvent extends NumberInputFieldInfo {
|
|
1996
|
+
/** Native keyboard event */
|
|
1997
|
+
keyUpEvent: KeyboardEvent;
|
|
1998
|
+
}
|
|
1999
|
+
/**
|
|
2000
|
+
* Enter key event payload
|
|
2001
|
+
*/
|
|
2002
|
+
interface NumberInputKeyEnterEvent extends NumberInputFieldInfo {
|
|
2003
|
+
/** Enter key or input-related event */
|
|
2004
|
+
keyEnterEvent: Event;
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
declare class NumberInputComponent extends BaseControlValueAccessor<number> {
|
|
2008
|
+
ngControl: NgControl;
|
|
2009
|
+
private changeDetectorRef;
|
|
2010
|
+
/**
|
|
2011
|
+
* Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
|
|
2012
|
+
* @default false
|
|
2013
|
+
* @type boolean
|
|
2014
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
2015
|
+
*/
|
|
2016
|
+
preventCopyPasteCut: boolean;
|
|
2017
|
+
/** HTML id attribute for the input element */
|
|
2018
|
+
protected rawInputId: string;
|
|
2019
|
+
/**
|
|
2020
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
2021
|
+
* @type string
|
|
2022
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
2023
|
+
*/
|
|
2024
|
+
set inputId(id: string);
|
|
2025
|
+
get inputId(): string;
|
|
2026
|
+
/**
|
|
2027
|
+
* Label text or translation key displayed for this control.
|
|
2028
|
+
* @default ''
|
|
2029
|
+
* @type string
|
|
2030
|
+
*/
|
|
2031
|
+
label: string;
|
|
2032
|
+
/**
|
|
2033
|
+
* Internal model getter/setter backed by the shared control value.
|
|
2034
|
+
* @type number
|
|
2035
|
+
*/
|
|
2036
|
+
get modelValue(): number;
|
|
2037
|
+
set modelValue(val: number);
|
|
2038
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
2039
|
+
/**
|
|
2040
|
+
* Error message displayed when validation fails
|
|
2041
|
+
* @default ''
|
|
2042
|
+
* @type string
|
|
2043
|
+
*/
|
|
2044
|
+
errorMessage: string;
|
|
2045
|
+
/**
|
|
2046
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
2047
|
+
* @default false
|
|
2048
|
+
* @type boolean
|
|
2049
|
+
*/
|
|
2050
|
+
required: boolean;
|
|
2051
|
+
/**
|
|
2052
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
2053
|
+
* @type string | number
|
|
2054
|
+
* @renamedFrom textFieldName
|
|
2055
|
+
*/
|
|
2056
|
+
fieldName: string | number;
|
|
2057
|
+
/**
|
|
2058
|
+
* Hint text or translation key displayed while the control is empty.
|
|
2059
|
+
* @default ''
|
|
2060
|
+
* @type string
|
|
2061
|
+
*/
|
|
2062
|
+
placeholder: string;
|
|
2063
|
+
/**
|
|
2064
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
2065
|
+
* @default false
|
|
2066
|
+
* @type boolean
|
|
2067
|
+
*/
|
|
2068
|
+
readonly: boolean;
|
|
2069
|
+
/**
|
|
2070
|
+
* Defines input behavior: number or percentage
|
|
2071
|
+
* @default 'number'
|
|
2072
|
+
* @type 'number' | 'percentage' | 'integers'
|
|
2073
|
+
*/
|
|
2074
|
+
inputType: 'number' | 'percentage' | 'integers';
|
|
2075
|
+
/**
|
|
2076
|
+
* Text alignment inside the input: 'left' | 'right' | 'center' (defaults to 'left')
|
|
2077
|
+
* @default 'left'
|
|
2078
|
+
* @type 'left' | 'right' | 'center'
|
|
2079
|
+
*/
|
|
2080
|
+
textAlign: 'left' | 'right' | 'center';
|
|
2081
|
+
/**
|
|
2082
|
+
* Maximum allowed digits
|
|
2083
|
+
* @type number
|
|
2084
|
+
*/
|
|
2085
|
+
maxDigits: number;
|
|
2086
|
+
/**
|
|
2087
|
+
* Minimum allowed numeric value
|
|
2088
|
+
* @type number
|
|
2089
|
+
*/
|
|
2090
|
+
minValue: number;
|
|
2091
|
+
/**
|
|
2092
|
+
* Maximum allowed numeric value
|
|
2093
|
+
* @type number
|
|
2094
|
+
*/
|
|
2095
|
+
maxValue: number;
|
|
2096
|
+
/**
|
|
2097
|
+
* Allows decimal values when true
|
|
2098
|
+
* @type boolean
|
|
2099
|
+
*/
|
|
2100
|
+
allowDecimal: boolean;
|
|
2101
|
+
/**
|
|
2102
|
+
* Maximum number of decimal places allowed
|
|
2103
|
+
* @type number
|
|
2104
|
+
*/
|
|
2105
|
+
decimalPlaces: number;
|
|
2106
|
+
/**
|
|
2107
|
+
* Allows negative numbers when true
|
|
2108
|
+
* @default false
|
|
2109
|
+
* @type boolean
|
|
2110
|
+
*/
|
|
2111
|
+
allowNegative: boolean;
|
|
2112
|
+
/**
|
|
2113
|
+
* Text displayed before the input value (e.g. '$', '+91', 'kg').
|
|
2114
|
+
* @default ''
|
|
2115
|
+
*/
|
|
2116
|
+
prefix: string;
|
|
2117
|
+
/**
|
|
2118
|
+
* Controls whether the prefix is rendered. Set to `true` only when the prefix should be visible.
|
|
2119
|
+
* @type boolean
|
|
2120
|
+
*/
|
|
2121
|
+
set showPrefix(enablePrefix: boolean);
|
|
2122
|
+
enablePrefix: boolean;
|
|
2123
|
+
/**
|
|
2124
|
+
* Text displayed after the input, such as a unit or percentage sign.
|
|
2125
|
+
* @default ''
|
|
2126
|
+
* @renamedFrom postfix
|
|
2127
|
+
*/
|
|
2128
|
+
suffix: string;
|
|
2129
|
+
/**
|
|
2130
|
+
* Controls whether the suffix is rendered.
|
|
2131
|
+
* @type boolean
|
|
2132
|
+
* @renamedFrom showPostfix
|
|
2133
|
+
*/
|
|
2134
|
+
set showSuffix(enablePostfix: boolean);
|
|
2135
|
+
enablePostfix: boolean;
|
|
2136
|
+
/**
|
|
2137
|
+
* Emits when the component model-change handler runs.
|
|
2138
|
+
* @payload NumberInputModelChangeEvent
|
|
2139
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2140
|
+
* @renamedFrom onModelChange
|
|
2141
|
+
*/
|
|
2142
|
+
modelChange: EventEmitter<NumberInputModelChangeEvent>;
|
|
2143
|
+
/**
|
|
2144
|
+
* Emits from the existing input/change handler.
|
|
2145
|
+
* @payload NumberInputInputEvent
|
|
2146
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2147
|
+
* @renamedFrom onInputChange
|
|
2148
|
+
*/
|
|
2149
|
+
inputChanged: EventEmitter<NumberInputInputEvent>;
|
|
2150
|
+
/**
|
|
2151
|
+
* Emits when the inner field gains focus.
|
|
2152
|
+
* @payload NumberInputFocusEvent
|
|
2153
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2154
|
+
* @renamedFrom onFocusChange
|
|
2155
|
+
*/
|
|
2156
|
+
focusGained: EventEmitter<NumberInputFocusEvent>;
|
|
2157
|
+
/**
|
|
2158
|
+
* Emits when the inner field loses focus.
|
|
2159
|
+
* @payload NumberInputBlurEvent
|
|
2160
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2161
|
+
* @renamedFrom onBlurChange
|
|
2162
|
+
*/
|
|
2163
|
+
focusLost: EventEmitter<NumberInputBlurEvent>;
|
|
2164
|
+
/**
|
|
2165
|
+
* Emits on the inner field keydown event.
|
|
2166
|
+
* @payload NumberInputKeydownEvent
|
|
2167
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2168
|
+
* @renamedFrom onKeydownHandle
|
|
2169
|
+
*/
|
|
2170
|
+
keyPressed: EventEmitter<NumberInputKeydownEvent>;
|
|
2171
|
+
/**
|
|
2172
|
+
* Emits on the inner field keyup event.
|
|
2173
|
+
* @payload NumberInputKeyupEvent
|
|
2174
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2175
|
+
* @renamedFrom onKeyupHandle
|
|
2176
|
+
*/
|
|
2177
|
+
keyReleased: EventEmitter<NumberInputKeyupEvent>;
|
|
2178
|
+
/**
|
|
2179
|
+
* Emits when Enter is released in the inner field.
|
|
2180
|
+
* @payload NumberInputKeyEnterEvent
|
|
2181
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2182
|
+
* @renamedFrom onKeyEnterHandle
|
|
2183
|
+
*/
|
|
2184
|
+
enterPressed: EventEmitter<NumberInputKeyEnterEvent>;
|
|
2185
|
+
/**
|
|
2186
|
+
* Returns common field information
|
|
2187
|
+
* reused across emitted events.
|
|
2188
|
+
*/
|
|
2189
|
+
private fieldInfo;
|
|
2190
|
+
/**
|
|
2191
|
+
* Emits when the model value changes
|
|
2192
|
+
* @param modelChange - Updated model value
|
|
2193
|
+
*/
|
|
2194
|
+
modelValueChange(modelChange: number): void;
|
|
2195
|
+
/**
|
|
2196
|
+
* Emits when the input value changes
|
|
2197
|
+
* @param changeValue - Input change event
|
|
2198
|
+
*/
|
|
2199
|
+
inputChange(changeValue: Event): void;
|
|
2200
|
+
/**
|
|
2201
|
+
* Emits when input gains focus
|
|
2202
|
+
* @param onFocus - Focus event
|
|
2203
|
+
*/
|
|
2204
|
+
focusChange(onFocus: FocusEvent): void;
|
|
2205
|
+
/**
|
|
2206
|
+
* Emits when input loses focus
|
|
2207
|
+
* @param blurEvent - Blur event
|
|
2208
|
+
*/
|
|
2209
|
+
blurChange(blurEvent: FocusEvent): void;
|
|
2210
|
+
/**
|
|
2211
|
+
* Emits on keydown action
|
|
2212
|
+
* @param event - Keyboard event
|
|
2213
|
+
*/
|
|
2214
|
+
keydownHandle(event: KeyboardEvent): void;
|
|
2215
|
+
/**
|
|
2216
|
+
* Emits on keyup action
|
|
2217
|
+
* @param event - Keyboard event
|
|
2218
|
+
*/
|
|
2219
|
+
keyupHandle(event: KeyboardEvent): void;
|
|
2220
|
+
/**
|
|
2221
|
+
* Emits when Enter key is pressed
|
|
2222
|
+
* @param event - Keyboard or input event
|
|
2223
|
+
*/
|
|
2224
|
+
keyEnterHandle(event: Event): void;
|
|
2225
|
+
onWheel(event: WheelEvent): void;
|
|
2226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NumberInputComponent, [{ optional: true; self: true; }, null]>;
|
|
2227
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NumberInputComponent, "ui-number-input", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "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; }; "inputType": { "alias": "inputType"; "required": false; }; "textAlign": { "alias": "textAlign"; "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; }; "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"; }, never, never, true, never>;
|
|
2228
|
+
}
|
|
2229
|
+
|
|
2230
|
+
/**
|
|
2231
|
+
* Base field information shared across all emitted events
|
|
2232
|
+
* Returned by fieldInfo()
|
|
2233
|
+
*/
|
|
2234
|
+
interface PasswordInputFieldInfo {
|
|
2235
|
+
/** Current password value */
|
|
2236
|
+
modelValue: number;
|
|
2237
|
+
/** Field name provided by parent component */
|
|
2238
|
+
textFieldName: string | number;
|
|
2239
|
+
/** Native input element reference (if inputId exists) */
|
|
2240
|
+
inputRef?: Element | null;
|
|
2241
|
+
}
|
|
2242
|
+
/**
|
|
2243
|
+
* Model value change event payload
|
|
2244
|
+
*/
|
|
2245
|
+
interface PasswordInputModelChangeEvent extends PasswordInputFieldInfo {
|
|
2246
|
+
/** Updated password value */
|
|
2247
|
+
modelChangeEvent: string;
|
|
2248
|
+
}
|
|
2249
|
+
/**
|
|
2250
|
+
* Input event payload
|
|
2251
|
+
*/
|
|
2252
|
+
interface PasswordInputInputEvent extends PasswordInputFieldInfo {
|
|
2253
|
+
/** Native input event */
|
|
2254
|
+
inputChangeEvent: Event;
|
|
2255
|
+
}
|
|
2256
|
+
/**
|
|
2257
|
+
* Focus event payload
|
|
2258
|
+
*/
|
|
2259
|
+
interface PasswordInputFocusEvent extends PasswordInputFieldInfo {
|
|
2260
|
+
/** Native focus event */
|
|
2261
|
+
focusEvent: FocusEvent;
|
|
2262
|
+
}
|
|
2263
|
+
/**
|
|
2264
|
+
* Blur event payload
|
|
2265
|
+
*/
|
|
2266
|
+
interface PasswordInputBlurEvent extends PasswordInputFieldInfo {
|
|
2267
|
+
/** Native blur event */
|
|
2268
|
+
blurEvent: FocusEvent;
|
|
2269
|
+
}
|
|
2270
|
+
/**
|
|
2271
|
+
* Keydown event payload
|
|
2272
|
+
*/
|
|
2273
|
+
interface PasswordInputKeydownEvent extends PasswordInputFieldInfo {
|
|
2274
|
+
/** Native keyboard event */
|
|
2275
|
+
keyDownEvent: KeyboardEvent;
|
|
2276
|
+
}
|
|
2277
|
+
/**
|
|
2278
|
+
* Keyup event payload
|
|
2279
|
+
*/
|
|
2280
|
+
interface PasswordInputKeyupEvent extends PasswordInputFieldInfo {
|
|
2281
|
+
/** Native keyboard event */
|
|
2282
|
+
keyUpEvent: KeyboardEvent;
|
|
2283
|
+
}
|
|
2284
|
+
/**
|
|
2285
|
+
* Enter key event payload
|
|
2286
|
+
*/
|
|
2287
|
+
interface PasswordInputKeyEnterEvent extends PasswordInputFieldInfo {
|
|
2288
|
+
/** Enter key or input-related event */
|
|
2289
|
+
keyEnterEvent: Event;
|
|
2290
|
+
}
|
|
2291
|
+
|
|
2292
|
+
declare class PasswordInputComponent extends BaseControlValueAccessor<string> {
|
|
2293
|
+
ngControl: NgControl;
|
|
2294
|
+
private changeDetectorRef;
|
|
2295
|
+
private readonly _icons;
|
|
2296
|
+
/**
|
|
2297
|
+
* Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
|
|
2298
|
+
* @default false
|
|
2299
|
+
* @type boolean
|
|
2300
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
2301
|
+
*/
|
|
2302
|
+
preventCopyPasteCut: boolean;
|
|
2303
|
+
/** HTML id attribute for the input element */
|
|
2304
|
+
protected rawInputId: string;
|
|
2305
|
+
/**
|
|
2306
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
2307
|
+
* @type string
|
|
2308
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
2309
|
+
*/
|
|
2310
|
+
set inputId(id: string);
|
|
2311
|
+
get inputId(): string;
|
|
2312
|
+
/**
|
|
2313
|
+
* Label text or translation key displayed for this control.
|
|
2314
|
+
* @default ''
|
|
2315
|
+
* @type string
|
|
2316
|
+
*/
|
|
2317
|
+
label: string;
|
|
2318
|
+
/**
|
|
2319
|
+
* Internal model getter/setter backed by the shared control value.
|
|
2320
|
+
*/
|
|
2321
|
+
get modelValue(): any;
|
|
2322
|
+
set modelValue(val: any);
|
|
2323
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
2324
|
+
/**
|
|
2325
|
+
* Error message shown when validation fails
|
|
2326
|
+
* @default ''
|
|
2327
|
+
* @type string
|
|
2328
|
+
*/
|
|
2329
|
+
errorMessage: string;
|
|
2330
|
+
/**
|
|
2331
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
2332
|
+
* @default false
|
|
2333
|
+
*/
|
|
2334
|
+
required: boolean;
|
|
2335
|
+
/**
|
|
2336
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
2337
|
+
* @type string | number
|
|
2338
|
+
* @renamedFrom textFieldName
|
|
2339
|
+
*/
|
|
2340
|
+
fieldName: string | number;
|
|
2341
|
+
/**
|
|
2342
|
+
* Hint text or translation key displayed while the control is empty.
|
|
2343
|
+
* @default ''
|
|
2344
|
+
* @type string
|
|
2345
|
+
*/
|
|
2346
|
+
placeholder: string;
|
|
2347
|
+
/**
|
|
2348
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
2349
|
+
* @default false
|
|
2350
|
+
* @type boolean
|
|
2351
|
+
*/
|
|
2352
|
+
readonly: boolean;
|
|
2353
|
+
/**
|
|
2354
|
+
* Passes the Arabic typing flag to the existing utility directive.
|
|
2355
|
+
* @default false
|
|
2356
|
+
* @type boolean
|
|
2357
|
+
* @renamedFrom appToArabic
|
|
2358
|
+
*/
|
|
2359
|
+
enableArabicInput: boolean;
|
|
2360
|
+
/** Toggles visibility of the password */
|
|
2361
|
+
showPassword: boolean;
|
|
2362
|
+
/**
|
|
2363
|
+
* Emits when the component model-change handler runs.
|
|
2364
|
+
* @payload PasswordInputModelChangeEvent
|
|
2365
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2366
|
+
* @renamedFrom onModelChange
|
|
2367
|
+
*/
|
|
2368
|
+
modelChange: EventEmitter<PasswordInputModelChangeEvent>;
|
|
2369
|
+
/**
|
|
2370
|
+
* Emits from the existing input/change handler.
|
|
2371
|
+
* @payload PasswordInputInputEvent
|
|
2372
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2373
|
+
* @renamedFrom onInputChange
|
|
2374
|
+
*/
|
|
2375
|
+
inputChanged: EventEmitter<PasswordInputInputEvent>;
|
|
2376
|
+
/**
|
|
2377
|
+
* Emits when the inner field gains focus.
|
|
2378
|
+
* @payload PasswordInputFocusEvent
|
|
2379
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2380
|
+
* @renamedFrom onFocusChange
|
|
2381
|
+
*/
|
|
2382
|
+
focusGained: EventEmitter<PasswordInputFocusEvent>;
|
|
2383
|
+
/**
|
|
2384
|
+
* Emits when the inner field loses focus.
|
|
2385
|
+
* @payload PasswordInputBlurEvent
|
|
2386
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2387
|
+
* @renamedFrom onBlurChange
|
|
2388
|
+
*/
|
|
2389
|
+
focusLost: EventEmitter<PasswordInputBlurEvent>;
|
|
2390
|
+
/**
|
|
2391
|
+
* Emits on the inner field keydown event.
|
|
2392
|
+
* @payload PasswordInputKeydownEvent
|
|
2393
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2394
|
+
* @renamedFrom onKeydownHandle
|
|
2395
|
+
*/
|
|
2396
|
+
keyPressed: EventEmitter<PasswordInputKeydownEvent>;
|
|
2397
|
+
/**
|
|
2398
|
+
* Emits on the inner field keyup event.
|
|
2399
|
+
* @payload PasswordInputKeyupEvent
|
|
2400
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2401
|
+
* @renamedFrom onKeyupHandle
|
|
2402
|
+
*/
|
|
2403
|
+
keyReleased: EventEmitter<PasswordInputKeyupEvent>;
|
|
2404
|
+
/**
|
|
2405
|
+
* Emits when Enter is released in the inner field.
|
|
2406
|
+
* @payload PasswordInputKeyEnterEvent
|
|
2407
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2408
|
+
* @renamedFrom onKeyEnterHandle
|
|
2409
|
+
*/
|
|
2410
|
+
enterPressed: EventEmitter<PasswordInputKeyEnterEvent>;
|
|
2411
|
+
/**
|
|
2412
|
+
* Returns shared field information
|
|
2413
|
+
* attached to all emitted events.
|
|
2414
|
+
*/
|
|
2415
|
+
private fieldInfo;
|
|
2416
|
+
/**
|
|
2417
|
+
* Emits when the password model value changes
|
|
2418
|
+
* @param modelValueChange - Updated model value
|
|
2419
|
+
*/
|
|
2420
|
+
modelValueChange(modelValueChange: string): void;
|
|
2421
|
+
/**
|
|
2422
|
+
* Emits on input change event
|
|
2423
|
+
* @param changeValue - Input event
|
|
2424
|
+
*/
|
|
2425
|
+
inputChange(changeValue: Event): void;
|
|
2426
|
+
/**
|
|
2427
|
+
* Emits when input gains focus
|
|
2428
|
+
* @param onFocusEvent - Focus event
|
|
2429
|
+
*/
|
|
2430
|
+
focusChange(onFocusEvent: FocusEvent): void;
|
|
2431
|
+
/**
|
|
2432
|
+
* Emits when input loses focus
|
|
2433
|
+
* @param blurEvent - Blur event
|
|
2434
|
+
*/
|
|
2435
|
+
blurChange(blurEvent: FocusEvent): void;
|
|
2436
|
+
/**
|
|
2437
|
+
* Emits on keydown event
|
|
2438
|
+
* @param event - Keyboard event
|
|
2439
|
+
*/
|
|
2440
|
+
keydownHandle(event: KeyboardEvent): void;
|
|
2441
|
+
/**
|
|
2442
|
+
* Emits on keyup event
|
|
2443
|
+
* @param event - Keyboard event
|
|
2444
|
+
*/
|
|
2445
|
+
keyupHandle(event: KeyboardEvent): void;
|
|
2446
|
+
/**
|
|
2447
|
+
* Emits when Enter key is pressed
|
|
2448
|
+
* @param event - Keyboard or input event
|
|
2449
|
+
*/
|
|
2450
|
+
keyEnterHandle(event: Event): void;
|
|
2451
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, [{ optional: true; self: true; }, null]>;
|
|
2452
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "ui-password-input", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "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; }; "enableArabicInput": { "alias": "enableArabicInput"; "required": false; }; }, { "modelChange": "modelChange"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; }, never, never, true, never>;
|
|
2453
|
+
}
|
|
2454
|
+
|
|
2455
|
+
declare class PdfViewerComponent {
|
|
2456
|
+
/** Safe resource URL processed by DomSanitizer for iframe consumption */
|
|
2457
|
+
urlSafe: SafeResourceUrl;
|
|
2458
|
+
/** Accessible title for the embedded document. */
|
|
2459
|
+
title: string;
|
|
2460
|
+
private readonly sanitizer;
|
|
2461
|
+
/**
|
|
2462
|
+
* Resource URL embedded in the viewer. The current implementation trusts this URL; callers must supply a trusted source.
|
|
2463
|
+
* @type string
|
|
2464
|
+
*/
|
|
2465
|
+
set pdfUrl(pdfUrl: string);
|
|
2466
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PdfViewerComponent, never>;
|
|
2467
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PdfViewerComponent, "ui-pdf-viewer", never, { "title": { "alias": "title"; "required": false; }; "pdfUrl": { "alias": "pdfUrl"; "required": false; }; }, {}, never, never, true, never>;
|
|
2468
|
+
}
|
|
2469
|
+
|
|
2470
|
+
/**
|
|
2471
|
+
* Base field information shared across all emitted events
|
|
2472
|
+
*/
|
|
2473
|
+
interface RadioButtonFieldInfo {
|
|
2474
|
+
/** Currently selected radio value */
|
|
2475
|
+
modelValue: any;
|
|
2476
|
+
/** Field identifier used by parent component */
|
|
2477
|
+
textFieldName: string | number;
|
|
2478
|
+
/** Optional native input element reference */
|
|
2479
|
+
inputRef?: Element | null;
|
|
2480
|
+
}
|
|
2481
|
+
/**
|
|
2482
|
+
* Model change event payload
|
|
2483
|
+
*/
|
|
2484
|
+
interface RadioButtonModelChangeEvent extends RadioButtonFieldInfo {
|
|
2485
|
+
/** Updated selected radio value */
|
|
2486
|
+
modelChangeEvent: any;
|
|
2487
|
+
index?: number;
|
|
2488
|
+
}
|
|
2489
|
+
/**
|
|
2490
|
+
* Input change event payload
|
|
2491
|
+
*/
|
|
2492
|
+
interface RadioButtonInputEvent extends RadioButtonFieldInfo {
|
|
2493
|
+
/** Native input event */
|
|
2494
|
+
changeEvent: Event;
|
|
2495
|
+
}
|
|
2496
|
+
/**
|
|
2497
|
+
* Radio button option type
|
|
2498
|
+
* You can define this more strictly if all radio button options have a consistent shape
|
|
2499
|
+
*/
|
|
2500
|
+
type RadioButtonOption = string | number | Record<string, any>;
|
|
2501
|
+
|
|
2502
|
+
declare class RadioButtonComponent extends BaseControlValueAccessor<any> {
|
|
2503
|
+
ngControl: NgControl;
|
|
2504
|
+
private changeDetectorRef;
|
|
2505
|
+
/** HTML id attribute for the radio button group */
|
|
2506
|
+
protected rawInputId: string;
|
|
2507
|
+
/**
|
|
2508
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
2509
|
+
* @type string
|
|
2510
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
2511
|
+
*/
|
|
2512
|
+
set inputId(id: string);
|
|
2513
|
+
get inputId(): string;
|
|
2514
|
+
/**
|
|
2515
|
+
* Label text or translation key displayed for this control.
|
|
2516
|
+
* @default ''
|
|
2517
|
+
* @type string
|
|
2518
|
+
*/
|
|
2519
|
+
label: string;
|
|
2520
|
+
/**
|
|
2521
|
+
* Property name read from an option object to obtain its visible label.
|
|
2522
|
+
* @default ''
|
|
2523
|
+
* @type string
|
|
2524
|
+
* @renamedFrom displayLabelKey
|
|
2525
|
+
*/
|
|
2526
|
+
labelKey: string;
|
|
2527
|
+
/**
|
|
2528
|
+
* Options rendered by the control; use the label/value key inputs for object options.
|
|
2529
|
+
* @default []
|
|
2530
|
+
* @type RadioButtonOption[]
|
|
2531
|
+
* @renamedFrom radioButtonsList
|
|
2532
|
+
*/
|
|
2533
|
+
options: RadioButtonOption[];
|
|
2534
|
+
/**
|
|
2535
|
+
* Error message displayed on validation failure
|
|
2536
|
+
* @default ''
|
|
2537
|
+
* @type string
|
|
2538
|
+
*/
|
|
2539
|
+
errorMessage: string;
|
|
2540
|
+
/**
|
|
2541
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
2542
|
+
* @default false
|
|
2543
|
+
* @type boolean
|
|
2544
|
+
*/
|
|
2545
|
+
required: boolean;
|
|
2546
|
+
/**
|
|
2547
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
2548
|
+
* @type string | number
|
|
2549
|
+
* @renamedFrom textFieldName
|
|
2550
|
+
*/
|
|
2551
|
+
fieldName: string | number;
|
|
2552
|
+
/**
|
|
2553
|
+
* Property name used to identify or extract an option value.
|
|
2554
|
+
* @default ''
|
|
2555
|
+
* @type string
|
|
2556
|
+
* @renamedFrom idKey
|
|
2557
|
+
*/
|
|
2558
|
+
valueKey: string;
|
|
2559
|
+
/**
|
|
2560
|
+
* Emits when the component model-change handler runs.
|
|
2561
|
+
* @payload RadioButtonModelChangeEvent
|
|
2562
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2563
|
+
* @renamedFrom onModelChange
|
|
2564
|
+
*/
|
|
2565
|
+
modelChange: EventEmitter<RadioButtonModelChangeEvent>;
|
|
2566
|
+
/**
|
|
2567
|
+
* Emits from the existing input/change handler.
|
|
2568
|
+
* @payload RadioButtonInputEvent
|
|
2569
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2570
|
+
* @renamedFrom onInputChange
|
|
2571
|
+
*/
|
|
2572
|
+
inputChanged: EventEmitter<RadioButtonInputEvent>;
|
|
2573
|
+
/**
|
|
2574
|
+
* Internal model getter/setter backed by the shared control value.
|
|
2575
|
+
*/
|
|
2576
|
+
get modelValue(): any;
|
|
2577
|
+
set modelValue(newValue: any);
|
|
2578
|
+
/** @deprecated Use value for direct component access. */
|
|
2579
|
+
get inputModelValue(): any;
|
|
2580
|
+
set inputModelValue(value: any);
|
|
2581
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
2582
|
+
/**
|
|
2583
|
+
* Returns common field information
|
|
2584
|
+
* attached to emitted events.
|
|
2585
|
+
*/
|
|
2586
|
+
private fieldInfo;
|
|
2587
|
+
onGroupChange(event: MatRadioChange): void;
|
|
2588
|
+
/**
|
|
2589
|
+
* Emits when the selected radio value changes
|
|
2590
|
+
* @param modelChange - Updated selected value
|
|
2591
|
+
* @returns void (emits modelChange)
|
|
2592
|
+
*/
|
|
2593
|
+
modelValueChange(modelChange: RadioButtonOption): void;
|
|
2594
|
+
/**
|
|
2595
|
+
* Emits when a radio input change event occurs
|
|
2596
|
+
* @param changeValue - Input change event
|
|
2597
|
+
* @returns void (emits inputChanged)
|
|
2598
|
+
*/
|
|
2599
|
+
inputChange(changeValue: Event): void;
|
|
2600
|
+
getOptionValue(option: RadioButtonOption): any;
|
|
2601
|
+
getOptionLabel(option: RadioButtonOption): any;
|
|
2602
|
+
isOptionDisabled(option: RadioButtonOption): boolean;
|
|
2603
|
+
getModelValue(): any;
|
|
2604
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioButtonComponent, [{ optional: true; self: true; }, null]>;
|
|
2605
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioButtonComponent, "ui-radio-group, ui-radio-button", never, { "inputId": { "alias": "inputId"; "required": true; }; "label": { "alias": "label"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "options": { "alias": "options"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; }, { "modelChange": "modelChange"; "inputChanged": "inputChanged"; }, never, never, true, never>;
|
|
2606
|
+
}
|
|
2607
|
+
|
|
2608
|
+
declare class RichTextEditorComponent extends BaseControlValueAccessor<string> implements OnInit {
|
|
2609
|
+
private libraryCommonService;
|
|
2610
|
+
ngControl: NgControl;
|
|
2611
|
+
private changeDetectorRef;
|
|
2612
|
+
/** Controls editor rendering (used for language reload) */
|
|
2613
|
+
showEditor: boolean;
|
|
2614
|
+
/** CKEditor license configuration; GPL requires a GPL-compatible use case. */
|
|
2615
|
+
licenseKey: string;
|
|
2616
|
+
/** CKEditor decoupled editor reference */
|
|
2617
|
+
decoupledEditor: any;
|
|
2618
|
+
editorLoadError: boolean;
|
|
2619
|
+
reportError(error: unknown): void;
|
|
2620
|
+
editorLoadFailed: EventEmitter<unknown>;
|
|
2621
|
+
/** Injected text editor configuration service */
|
|
2622
|
+
private textEditorService;
|
|
2623
|
+
/** CKEditor configuration object */
|
|
2624
|
+
editorConfig: any;
|
|
2625
|
+
/** Unique input identifier */
|
|
2626
|
+
protected rawInputId: string;
|
|
2627
|
+
/**
|
|
2628
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
2629
|
+
* @type string
|
|
2630
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
2631
|
+
*/
|
|
2632
|
+
set inputId(id: string);
|
|
2633
|
+
get inputId(): string;
|
|
2634
|
+
/**
|
|
2635
|
+
* Internal model getter/setter backed by the shared control value.
|
|
2636
|
+
* @type string
|
|
2637
|
+
*/
|
|
2638
|
+
get modelValue(): string;
|
|
2639
|
+
set modelValue(val: string);
|
|
2640
|
+
/**
|
|
2641
|
+
* Toolbar item identifiers removed from the editor configuration.
|
|
2642
|
+
* @default []
|
|
2643
|
+
* @type string[]
|
|
2644
|
+
* @renamedFrom removeToolList
|
|
2645
|
+
*/
|
|
2646
|
+
hiddenToolbarItems: string[];
|
|
2647
|
+
/**
|
|
2648
|
+
* Editor type identifier
|
|
2649
|
+
* @default ''
|
|
2650
|
+
* @type string | number
|
|
2651
|
+
*/
|
|
2652
|
+
editorType: string | number;
|
|
2653
|
+
/**
|
|
2654
|
+
* Error message or translation key displayed when validation fails.
|
|
2655
|
+
* @default ''
|
|
2656
|
+
* @type string
|
|
2657
|
+
*/
|
|
2658
|
+
errorMessage: string;
|
|
2659
|
+
/**
|
|
2660
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
2661
|
+
* @default false
|
|
2662
|
+
* @type boolean
|
|
2663
|
+
*/
|
|
2664
|
+
required: boolean;
|
|
2665
|
+
/**
|
|
2666
|
+
* Hint text or translation key displayed while the control is empty.
|
|
2667
|
+
* @default ''
|
|
2668
|
+
* @type string
|
|
2669
|
+
*/
|
|
2670
|
+
placeholder: string;
|
|
2671
|
+
/**
|
|
2672
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
2673
|
+
* @default false
|
|
2674
|
+
* @type boolean
|
|
2675
|
+
*/
|
|
2676
|
+
readonly: boolean;
|
|
2677
|
+
/**
|
|
2678
|
+
* Emits when the component model-change handler runs.
|
|
2679
|
+
* @payload any
|
|
2680
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2681
|
+
*/
|
|
2682
|
+
modelChange: EventEmitter<any>;
|
|
2683
|
+
/**
|
|
2684
|
+
* Emits when the control loses focus.
|
|
2685
|
+
* @payload any
|
|
2686
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2687
|
+
* @renamedFrom onBlur
|
|
2688
|
+
*/
|
|
2689
|
+
blurred: EventEmitter<any>;
|
|
2690
|
+
private readonly destroyRef;
|
|
2691
|
+
constructor(libraryCommonService: LibraryCommonService, ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
2692
|
+
/**
|
|
2693
|
+
* Component initialization lifecycle hook
|
|
2694
|
+
* - Removes toolbar items based on input list
|
|
2695
|
+
* - Updates editor language dynamically
|
|
2696
|
+
*
|
|
2697
|
+
* @returns void
|
|
2698
|
+
*/
|
|
2699
|
+
ngOnInit(): void;
|
|
2700
|
+
/**
|
|
2701
|
+
* Filters CKEditor toolbar items
|
|
2702
|
+
* Removes tools listed in hiddenToolbarItems input
|
|
2703
|
+
*
|
|
2704
|
+
* @returns void
|
|
2705
|
+
*/
|
|
2706
|
+
configureToolbar(): void;
|
|
2707
|
+
/**
|
|
2708
|
+
* CKEditor ready callback
|
|
2709
|
+
* - Moves toolbar above editable area
|
|
2710
|
+
* - Registers custom image upload adapter
|
|
2711
|
+
*
|
|
2712
|
+
* @param editor CKEditor instance
|
|
2713
|
+
* @returns void
|
|
2714
|
+
*/
|
|
2715
|
+
onReady(editor: any): void;
|
|
2716
|
+
/**
|
|
2717
|
+
* Handles editor content change
|
|
2718
|
+
* Emits updated value to parent component
|
|
2719
|
+
*
|
|
2720
|
+
* @returns void (emits modelChange)
|
|
2721
|
+
*/
|
|
2722
|
+
onChangeHandler(): void;
|
|
2723
|
+
/**
|
|
2724
|
+
* Handles editor blur event
|
|
2725
|
+
* Reserved for future validation or touch handling
|
|
2726
|
+
*
|
|
2727
|
+
* @returns void
|
|
2728
|
+
*/
|
|
2729
|
+
onBlurHandler(): void;
|
|
2730
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorComponent, [null, { optional: true; self: true; }, null]>;
|
|
2731
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RichTextEditorComponent, "ui-rich-text-editor", never, { "licenseKey": { "alias": "licenseKey"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "hiddenToolbarItems": { "alias": "hiddenToolbarItems"; "required": false; }; "editorType": { "alias": "editorType"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "editorLoadFailed": "editorLoadFailed"; "modelChange": "modelChange"; "blurred": "blurred"; }, never, never, true, never>;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
declare class RichTextEditorService {
|
|
2735
|
+
TEXT_EDITOR_CONFIG: any;
|
|
2736
|
+
constructor();
|
|
2737
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RichTextEditorService, never>;
|
|
2738
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RichTextEditorService>;
|
|
2739
|
+
}
|
|
2740
|
+
|
|
2741
|
+
/**
|
|
2742
|
+
* Base field information shared across all emitted events
|
|
2743
|
+
* Returned by fieldInfo()
|
|
2744
|
+
*/
|
|
2745
|
+
interface SearchInputInfo {
|
|
2746
|
+
/** Current input value */
|
|
2747
|
+
modelValue: any;
|
|
2748
|
+
/** Field identifier used by parent component */
|
|
2749
|
+
fieldName: string | number;
|
|
2750
|
+
/** Native input element reference (if inputId is provided) */
|
|
2751
|
+
inputRef?: Element | null;
|
|
2752
|
+
}
|
|
2753
|
+
/**
|
|
2754
|
+
* Model value change event payload
|
|
2755
|
+
*/
|
|
2756
|
+
interface SearchInputModelChangeEvent extends SearchInputInfo {
|
|
2757
|
+
/** Updated input value */
|
|
2758
|
+
modelChangeEvent: any;
|
|
2759
|
+
}
|
|
2760
|
+
/**
|
|
2761
|
+
* Input event payload
|
|
2762
|
+
*/
|
|
2763
|
+
interface SearchInputInputEvent extends SearchInputInfo {
|
|
2764
|
+
/** Native input/change event */
|
|
2765
|
+
changeEvent: Event;
|
|
2766
|
+
}
|
|
2767
|
+
/**
|
|
2768
|
+
* Focus event payload
|
|
2769
|
+
*/
|
|
2770
|
+
interface SearchInputFocusEvent extends SearchInputInfo {
|
|
2771
|
+
/** Native focus event */
|
|
2772
|
+
focusEvent: FocusEvent;
|
|
2773
|
+
}
|
|
2774
|
+
/**
|
|
2775
|
+
* Blur event payload
|
|
2776
|
+
*/
|
|
2777
|
+
interface SearchInputBlurEvent extends SearchInputInfo {
|
|
2778
|
+
/** Native blur event */
|
|
2779
|
+
blurEvent: FocusEvent;
|
|
2780
|
+
}
|
|
2781
|
+
/**
|
|
2782
|
+
* Keydown event payload
|
|
2783
|
+
*/
|
|
2784
|
+
interface SearchInputKeydownEvent extends SearchInputInfo {
|
|
2785
|
+
/** Native keyboard event */
|
|
2786
|
+
keyDownEvent: KeyboardEvent;
|
|
2787
|
+
}
|
|
2788
|
+
/**
|
|
2789
|
+
* Keyup event payload
|
|
2790
|
+
*/
|
|
2791
|
+
interface SearchInputKeyupEvent extends SearchInputInfo {
|
|
2792
|
+
/** Native keyboard event */
|
|
2793
|
+
keyUpEvent: KeyboardEvent;
|
|
2794
|
+
}
|
|
2795
|
+
/**
|
|
2796
|
+
* Enter key event payload
|
|
2797
|
+
*/
|
|
2798
|
+
interface SearchInputKeyEnterEvent extends SearchInputInfo {
|
|
2799
|
+
/** Enter key or input-related event */
|
|
2800
|
+
keyEnterEvent: Event;
|
|
2801
|
+
}
|
|
2802
|
+
/**
|
|
2803
|
+
* Input click event payload
|
|
2804
|
+
*/
|
|
2805
|
+
interface SearchInputClickEvent extends SearchInputInfo {
|
|
2806
|
+
/** Mouse click event */
|
|
2807
|
+
clickEvent: MouseEvent;
|
|
2808
|
+
}
|
|
2809
|
+
|
|
2810
|
+
interface SearchFilterValue {
|
|
2811
|
+
searchVal: string;
|
|
2812
|
+
selectVal: any;
|
|
2813
|
+
}
|
|
2814
|
+
declare class SearchFilterComponent implements ControlValueAccessor {
|
|
2815
|
+
ngControl: NgControl;
|
|
2816
|
+
private cdr;
|
|
2817
|
+
private readonly _icons;
|
|
2818
|
+
/**
|
|
2819
|
+
* Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
|
|
2820
|
+
* @default false
|
|
2821
|
+
* @type boolean
|
|
2822
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
2823
|
+
*/
|
|
2824
|
+
preventCopyPasteCut: boolean;
|
|
2825
|
+
/** HTML id attribute for the input element */
|
|
2826
|
+
protected rawInputId: string;
|
|
2827
|
+
protected rawIdPrefix: string;
|
|
2828
|
+
effectiveId: string;
|
|
2829
|
+
/**
|
|
2830
|
+
* Optional namespace prepended to inner control IDs to distinguish repeated instances.
|
|
2831
|
+
* @type string
|
|
2832
|
+
*/
|
|
2833
|
+
set idPrefix(prefix: string);
|
|
2834
|
+
get idPrefix(): string;
|
|
2835
|
+
/**
|
|
2836
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
2837
|
+
* @type string
|
|
2838
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
2839
|
+
*/
|
|
2840
|
+
set inputId(id: string);
|
|
2841
|
+
get inputId(): string;
|
|
2842
|
+
private configureId;
|
|
2843
|
+
/**
|
|
2844
|
+
* Label displayed above the input field
|
|
2845
|
+
* @default ''
|
|
2846
|
+
* @type string
|
|
2847
|
+
*/
|
|
2848
|
+
searchTextLabel: string;
|
|
2849
|
+
/**
|
|
2850
|
+
* Label displayed above the dropdown
|
|
2851
|
+
* @default ''
|
|
2852
|
+
* @type string
|
|
2853
|
+
*/
|
|
2854
|
+
searchSelectLabel: string;
|
|
2855
|
+
protected _disabled: boolean;
|
|
2856
|
+
/**
|
|
2857
|
+
* Disables the control. Angular Forms can also update this state through setDisabledState.
|
|
2858
|
+
* @type boolean
|
|
2859
|
+
*/
|
|
2860
|
+
set disabled(val: boolean);
|
|
2861
|
+
get disabled(): boolean;
|
|
2862
|
+
/**
|
|
2863
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
2864
|
+
* @type string | number
|
|
2865
|
+
* @renamedFrom textFieldName
|
|
2866
|
+
*/
|
|
2867
|
+
fieldName: string | number;
|
|
2868
|
+
/**
|
|
2869
|
+
* Hint text or translation key displayed while the control is empty.
|
|
2870
|
+
* @default ''
|
|
2871
|
+
* @type string
|
|
2872
|
+
*/
|
|
2873
|
+
placeholder: string;
|
|
2874
|
+
/**
|
|
2875
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
2876
|
+
* @default false
|
|
2877
|
+
* @type boolean
|
|
2878
|
+
*/
|
|
2879
|
+
readonly: boolean;
|
|
2880
|
+
/**
|
|
2881
|
+
* Maximum number of characters allowed
|
|
2882
|
+
* @type number
|
|
2883
|
+
*/
|
|
2884
|
+
maxLength: number;
|
|
2885
|
+
/**
|
|
2886
|
+
* Defines input behavior: number or percentage
|
|
2887
|
+
* @default 'text'
|
|
2888
|
+
* @type 'text' | 'number' | 'percentage'
|
|
2889
|
+
*/
|
|
2890
|
+
inputType: 'text' | 'number' | 'percentage';
|
|
2891
|
+
/**
|
|
2892
|
+
* Error message displayed when validation fails
|
|
2893
|
+
* @default ''
|
|
2894
|
+
* @type string
|
|
2895
|
+
*/
|
|
2896
|
+
errorMessage: string;
|
|
2897
|
+
/**
|
|
2898
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
2899
|
+
* @default false
|
|
2900
|
+
* @type boolean
|
|
2901
|
+
*/
|
|
2902
|
+
required: boolean;
|
|
2903
|
+
/**
|
|
2904
|
+
* Tooltip text or translation key for the search button.
|
|
2905
|
+
* @default ""
|
|
2906
|
+
* @type string
|
|
2907
|
+
* @renamedFrom searchBtnToolTip
|
|
2908
|
+
*/
|
|
2909
|
+
searchButtonTooltip: string;
|
|
2910
|
+
/**
|
|
2911
|
+
* Placeholder text for select dropdown
|
|
2912
|
+
* @default ''
|
|
2913
|
+
* @type string
|
|
2914
|
+
*/
|
|
2915
|
+
selectPlaceholder: string;
|
|
2916
|
+
/**
|
|
2917
|
+
* Options rendered by the control; use the label/value key inputs for object options.
|
|
2918
|
+
* @default []
|
|
2919
|
+
* @type any[]
|
|
2920
|
+
* @renamedFrom selectList
|
|
2921
|
+
*/
|
|
2922
|
+
options: any[];
|
|
2923
|
+
/**
|
|
2924
|
+
* Property name read from an option object to obtain its visible label.
|
|
2925
|
+
* @default ''
|
|
2926
|
+
* @type string
|
|
2927
|
+
* @renamedFrom displayKey
|
|
2928
|
+
*/
|
|
2929
|
+
labelKey: string;
|
|
2930
|
+
/**
|
|
2931
|
+
* Property name used to identify or extract an option value.
|
|
2932
|
+
* @default ''
|
|
2933
|
+
* @type string
|
|
2934
|
+
* @renamedFrom idKey
|
|
2935
|
+
*/
|
|
2936
|
+
valueKey: string;
|
|
2937
|
+
/**
|
|
2938
|
+
* Enables the existing multiple-selection mode.
|
|
2939
|
+
* @default false
|
|
2940
|
+
* @type boolean
|
|
2941
|
+
* @renamedFrom showMultiSelect
|
|
2942
|
+
*/
|
|
2943
|
+
multiple: boolean;
|
|
2944
|
+
/**
|
|
2945
|
+
* Show clear icon button in select dropdown
|
|
2946
|
+
* @default false
|
|
2947
|
+
* @type boolean
|
|
2948
|
+
*/
|
|
2949
|
+
showClearIcon: boolean;
|
|
2950
|
+
/**
|
|
2951
|
+
* Emits when the component model-change handler runs.
|
|
2952
|
+
* @payload SearchInputModelChangeEvent
|
|
2953
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2954
|
+
* @renamedFrom onModelChange
|
|
2955
|
+
*/
|
|
2956
|
+
modelChange: EventEmitter<SearchInputModelChangeEvent>;
|
|
2957
|
+
/**
|
|
2958
|
+
* Emits from the existing input/change handler.
|
|
2959
|
+
* @payload SearchInputInputEvent
|
|
2960
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2961
|
+
* @renamedFrom onInputChange
|
|
2962
|
+
*/
|
|
2963
|
+
inputChanged: EventEmitter<SearchInputInputEvent>;
|
|
2964
|
+
/**
|
|
2965
|
+
* Emits when the inner field gains focus.
|
|
2966
|
+
* @payload SearchInputFocusEvent
|
|
2967
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2968
|
+
* @renamedFrom onFocusChange
|
|
2969
|
+
*/
|
|
2970
|
+
focusGained: EventEmitter<SearchInputFocusEvent>;
|
|
2971
|
+
/**
|
|
2972
|
+
* Emits when the inner field loses focus.
|
|
2973
|
+
* @payload SearchInputBlurEvent
|
|
2974
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2975
|
+
* @renamedFrom onBlurChange
|
|
2976
|
+
*/
|
|
2977
|
+
focusLost: EventEmitter<SearchInputBlurEvent>;
|
|
2978
|
+
/**
|
|
2979
|
+
* Emits on the inner field keydown event.
|
|
2980
|
+
* @payload SearchInputKeydownEvent
|
|
2981
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2982
|
+
* @renamedFrom onKeydownHandle
|
|
2983
|
+
*/
|
|
2984
|
+
keyPressed: EventEmitter<SearchInputKeydownEvent>;
|
|
2985
|
+
/**
|
|
2986
|
+
* Emits on the inner field keyup event.
|
|
2987
|
+
* @payload SearchInputKeyupEvent
|
|
2988
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2989
|
+
* @renamedFrom onKeyupHandle
|
|
2990
|
+
*/
|
|
2991
|
+
keyReleased: EventEmitter<SearchInputKeyupEvent>;
|
|
2992
|
+
/**
|
|
2993
|
+
* Emits when Enter is released in the inner field.
|
|
2994
|
+
* @payload SearchInputKeyEnterEvent
|
|
2995
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
2996
|
+
* @renamedFrom onKeyEnterHandle
|
|
2997
|
+
*/
|
|
2998
|
+
enterPressed: EventEmitter<SearchInputKeyEnterEvent>;
|
|
2999
|
+
/**
|
|
3000
|
+
* Emits when the inner input is clicked.
|
|
3001
|
+
* @payload SearchInputClickEvent
|
|
3002
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3003
|
+
* @renamedFrom onInputClickHandle
|
|
3004
|
+
*/
|
|
3005
|
+
inputClicked: EventEmitter<SearchInputClickEvent>;
|
|
3006
|
+
/**
|
|
3007
|
+
* Emits when the search action is activated.
|
|
3008
|
+
* @payload SearchInputInfo
|
|
3009
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3010
|
+
* @renamedFrom onSearchClickHandle
|
|
3011
|
+
*/
|
|
3012
|
+
searchClicked: EventEmitter<SearchInputInfo>;
|
|
3013
|
+
/**
|
|
3014
|
+
* Emits when the selection handler processes a selection.
|
|
3015
|
+
* @payload any
|
|
3016
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3017
|
+
* @renamedFrom onselectionChange
|
|
3018
|
+
*/
|
|
3019
|
+
selectionChange: EventEmitter<any>;
|
|
3020
|
+
/**
|
|
3021
|
+
* Emits when the select panel open state changes.
|
|
3022
|
+
* @payload any
|
|
3023
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3024
|
+
* @renamedFrom onOpenedChange
|
|
3025
|
+
*/
|
|
3026
|
+
panelOpenChange: EventEmitter<any>;
|
|
3027
|
+
/**
|
|
3028
|
+
* Emits when the select panel opens.
|
|
3029
|
+
* @payload any
|
|
3030
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3031
|
+
* @renamedFrom onOpened
|
|
3032
|
+
*/
|
|
3033
|
+
panelOpened: EventEmitter<any>;
|
|
3034
|
+
/**
|
|
3035
|
+
* Emits when the select panel closes.
|
|
3036
|
+
* @payload any
|
|
3037
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3038
|
+
* @renamedFrom onClosed
|
|
3039
|
+
*/
|
|
3040
|
+
panelClosed: EventEmitter<any>;
|
|
3041
|
+
/**
|
|
3042
|
+
* Emits when the control loses focus.
|
|
3043
|
+
* @payload any
|
|
3044
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3045
|
+
* @renamedFrom onBlur
|
|
3046
|
+
*/
|
|
3047
|
+
blurred: EventEmitter<any>;
|
|
3048
|
+
/**
|
|
3049
|
+
* Emits when an option is clicked.
|
|
3050
|
+
* @payload any
|
|
3051
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3052
|
+
* @renamedFrom onOptionClick
|
|
3053
|
+
*/
|
|
3054
|
+
optionClicked: EventEmitter<any>;
|
|
3055
|
+
/**
|
|
3056
|
+
* Emits when the existing option-selection handler runs.
|
|
3057
|
+
* @payload any
|
|
3058
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3059
|
+
* @renamedFrom onOptionSelectionChange
|
|
3060
|
+
*/
|
|
3061
|
+
optionSelectionChanged: EventEmitter<any>;
|
|
3062
|
+
/** Compound model; legacy searchVal/selectVal keys remain stable. */
|
|
3063
|
+
get value(): SearchFilterValue | null;
|
|
3064
|
+
set value(value: SearchFilterValue | null);
|
|
3065
|
+
valueChange: EventEmitter<SearchFilterValue | null>;
|
|
3066
|
+
commitValue(): void;
|
|
3067
|
+
handleFocusOut(event: FocusEvent): void;
|
|
3068
|
+
/** Internal value state */
|
|
3069
|
+
private _value;
|
|
3070
|
+
onChangeCallback: (value: SearchFilterValue | null) => void;
|
|
3071
|
+
onTouchedCallback: () => void;
|
|
3072
|
+
constructor(ngControl: NgControl, cdr: ChangeDetectorRef);
|
|
3073
|
+
/** ControlValueAccessor implementation */
|
|
3074
|
+
writeValue(value: SearchFilterValue | null): void;
|
|
3075
|
+
registerOnChange(fn: (value: SearchFilterValue | null) => void): void;
|
|
3076
|
+
registerOnTouched(fn: () => void): void;
|
|
3077
|
+
setDisabledState(isDisabled: boolean): void;
|
|
3078
|
+
/** Getters and setters for the internal form controls */
|
|
3079
|
+
get modelValue(): string;
|
|
3080
|
+
set modelValue(val: string);
|
|
3081
|
+
get selectedValue(): any;
|
|
3082
|
+
set selectedValue(val: any);
|
|
3083
|
+
/** @deprecated Use selectedValue for direct component access. */
|
|
3084
|
+
get inputModelValue(): any;
|
|
3085
|
+
set inputModelValue(value: any);
|
|
3086
|
+
/** Returns shared field information attached to all emitted events. */
|
|
3087
|
+
private fieldInfo;
|
|
3088
|
+
/** Emits when the model value changes */
|
|
3089
|
+
modelValueChange(modelChangeEvent: string): void;
|
|
3090
|
+
/** Emits on input value change */
|
|
3091
|
+
inputChange(changeValue: Event): void;
|
|
3092
|
+
/** Emits when input gains focus */
|
|
3093
|
+
focusChange(onFocusEvent: FocusEvent): void;
|
|
3094
|
+
/** Emits when input loses focus */
|
|
3095
|
+
blurChange(blurEvent: FocusEvent): void;
|
|
3096
|
+
/** Emits on keydown action */
|
|
3097
|
+
keydownHandle(keyDownEvent: KeyboardEvent): void;
|
|
3098
|
+
/** Emits on keyup action */
|
|
3099
|
+
keyupHandle(keyUpEvent: KeyboardEvent): void;
|
|
3100
|
+
/** Emits when Enter key is pressed */
|
|
3101
|
+
keyEnterHandle(event: Event): void;
|
|
3102
|
+
/** Emits when input field is clicked */
|
|
3103
|
+
inputClick(clickEvent: MouseEvent): void;
|
|
3104
|
+
/** Emits when search button is clicked */
|
|
3105
|
+
onSearchClick(): void;
|
|
3106
|
+
/** Emits dropdown selection change event */
|
|
3107
|
+
handleSelectionChange(event: unknown): void;
|
|
3108
|
+
/** Emits dropdown opened/closed change event */
|
|
3109
|
+
openedChange(opened: boolean): void;
|
|
3110
|
+
/** Emits dropdown opened event */
|
|
3111
|
+
opened(): void;
|
|
3112
|
+
/** Emits dropdown closed event */
|
|
3113
|
+
closed(): void;
|
|
3114
|
+
/** Emits select dropdown blur event */
|
|
3115
|
+
blur(): void;
|
|
3116
|
+
/** Emits when a dropdown option selection changes */
|
|
3117
|
+
optionSelectionChange(event: unknown, option: unknown): void;
|
|
3118
|
+
/** Emits when a dropdown option is clicked */
|
|
3119
|
+
optionClick(option: unknown): void;
|
|
3120
|
+
/** Clears select dropdown value */
|
|
3121
|
+
clearSelect(): void;
|
|
3122
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterComponent, [{ optional: true; self: true; }, null]>;
|
|
3123
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchFilterComponent, "ui-search-filter", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "idPrefix": { "alias": "idPrefix"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "searchTextLabel": { "alias": "searchTextLabel"; "required": false; }; "searchSelectLabel": { "alias": "searchSelectLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "inputType": { "alias": "inputType"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "searchButtonTooltip": { "alias": "searchButtonTooltip"; "required": false; }; "selectPlaceholder": { "alias": "selectPlaceholder"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "showClearIcon": { "alias": "showClearIcon"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, { "modelChange": "modelChange"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; "inputClicked": "inputClicked"; "searchClicked": "searchClicked"; "selectionChange": "selectionChange"; "panelOpenChange": "panelOpenChange"; "panelOpened": "panelOpened"; "panelClosed": "panelClosed"; "blurred": "blurred"; "optionClicked": "optionClicked"; "optionSelectionChanged": "optionSelectionChanged"; "valueChange": "valueChange"; }, never, ["[primaryFilter]", "[secondaryFilter]"], true, never>;
|
|
3124
|
+
static ngAcceptInputType_disabled: unknown;
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
declare class SearchInputComponent extends BaseControlValueAccessor<any> {
|
|
3128
|
+
ngControl: NgControl;
|
|
3129
|
+
private changeDetectorRef;
|
|
3130
|
+
private readonly _icons;
|
|
3131
|
+
/**
|
|
3132
|
+
* Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
|
|
3133
|
+
* @default false
|
|
3134
|
+
* @type boolean
|
|
3135
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
3136
|
+
*/
|
|
3137
|
+
preventCopyPasteCut: boolean;
|
|
3138
|
+
/** HTML id attribute for the input element */
|
|
3139
|
+
protected rawInputId: string;
|
|
3140
|
+
/**
|
|
3141
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
3142
|
+
* @type string
|
|
3143
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
3144
|
+
*/
|
|
3145
|
+
set inputId(id: string);
|
|
3146
|
+
get inputId(): string;
|
|
3147
|
+
/**
|
|
3148
|
+
* Label text or translation key displayed for this control.
|
|
3149
|
+
* @default ''
|
|
3150
|
+
* @type string
|
|
3151
|
+
*/
|
|
3152
|
+
label: string;
|
|
3153
|
+
/**
|
|
3154
|
+
* Internal model getter/setter backed by the shared control value.
|
|
3155
|
+
*/
|
|
3156
|
+
get modelValue(): any;
|
|
3157
|
+
set modelValue(val: any);
|
|
3158
|
+
/**
|
|
3159
|
+
* Disables the search text input independently of the search button.
|
|
3160
|
+
* @default false
|
|
3161
|
+
* @type boolean
|
|
3162
|
+
* @renamedFrom disableSearch
|
|
3163
|
+
*/
|
|
3164
|
+
searchDisabled: boolean;
|
|
3165
|
+
/**
|
|
3166
|
+
* Disables the search action button independently of the text input.
|
|
3167
|
+
* @default false
|
|
3168
|
+
* @type boolean
|
|
3169
|
+
* @renamedFrom disableIcon
|
|
3170
|
+
*/
|
|
3171
|
+
searchButtonDisabled: boolean;
|
|
3172
|
+
/**
|
|
3173
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
3174
|
+
* @type string | number
|
|
3175
|
+
* @renamedFrom textFieldName
|
|
3176
|
+
*/
|
|
3177
|
+
fieldName: string | number;
|
|
3178
|
+
/**
|
|
3179
|
+
* Hint text or translation key displayed while the control is empty.
|
|
3180
|
+
* @default ''
|
|
3181
|
+
* @type string
|
|
3182
|
+
*/
|
|
3183
|
+
placeholder: string;
|
|
3184
|
+
/**
|
|
3185
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
3186
|
+
* @default false
|
|
3187
|
+
* @type boolean
|
|
3188
|
+
*/
|
|
3189
|
+
readonly: boolean;
|
|
3190
|
+
/**
|
|
3191
|
+
* Maximum number of characters allowed
|
|
3192
|
+
* @type number
|
|
3193
|
+
*/
|
|
3194
|
+
maxLength: number;
|
|
3195
|
+
/**
|
|
3196
|
+
* Determines where the search button is rendered relative to the input
|
|
3197
|
+
* @default 'after'
|
|
3198
|
+
* @type 'before' | 'after'
|
|
3199
|
+
*/
|
|
3200
|
+
searchButtonPosition: 'before' | 'after';
|
|
3201
|
+
/**
|
|
3202
|
+
* Defines input behavior: number or percentage
|
|
3203
|
+
* @default 'text'
|
|
3204
|
+
* @type 'text' | 'number' | 'percentage'
|
|
3205
|
+
*/
|
|
3206
|
+
inputType: 'text' | 'number' | 'percentage';
|
|
3207
|
+
/**
|
|
3208
|
+
* Error message displayed when validation fails
|
|
3209
|
+
* @default ''
|
|
3210
|
+
* @type string
|
|
3211
|
+
*/
|
|
3212
|
+
errorMessage: string;
|
|
3213
|
+
/**
|
|
3214
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
3215
|
+
* @default false
|
|
3216
|
+
* @type boolean
|
|
3217
|
+
*/
|
|
3218
|
+
required: boolean;
|
|
3219
|
+
/**
|
|
3220
|
+
* Tooltip text or translation key for the search button.
|
|
3221
|
+
* @default ""
|
|
3222
|
+
* @type string
|
|
3223
|
+
* @renamedFrom searchBtnToolTip
|
|
3224
|
+
*/
|
|
3225
|
+
searchButtonTooltip: string;
|
|
3226
|
+
/**
|
|
3227
|
+
* Emits when the component model-change handler runs.
|
|
3228
|
+
* @payload SearchInputModelChangeEvent
|
|
3229
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3230
|
+
* @renamedFrom onModelChange
|
|
3231
|
+
*/
|
|
3232
|
+
modelChange: EventEmitter<SearchInputModelChangeEvent>;
|
|
3233
|
+
/**
|
|
3234
|
+
* Emits from the existing input/change handler.
|
|
3235
|
+
* @payload SearchInputInputEvent
|
|
3236
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3237
|
+
* @renamedFrom onInputChange
|
|
3238
|
+
*/
|
|
3239
|
+
inputChanged: EventEmitter<SearchInputInputEvent>;
|
|
3240
|
+
/**
|
|
3241
|
+
* Emits when the inner field gains focus.
|
|
3242
|
+
* @payload SearchInputFocusEvent
|
|
3243
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3244
|
+
* @renamedFrom onFocusChange
|
|
3245
|
+
*/
|
|
3246
|
+
focusGained: EventEmitter<SearchInputFocusEvent>;
|
|
3247
|
+
/**
|
|
3248
|
+
* Emits when the inner field loses focus.
|
|
3249
|
+
* @payload SearchInputBlurEvent
|
|
3250
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3251
|
+
* @renamedFrom onBlurChange
|
|
3252
|
+
*/
|
|
3253
|
+
focusLost: EventEmitter<SearchInputBlurEvent>;
|
|
3254
|
+
/**
|
|
3255
|
+
* Emits on the inner field keydown event.
|
|
3256
|
+
* @payload SearchInputKeydownEvent
|
|
3257
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3258
|
+
* @renamedFrom onKeydownHandle
|
|
3259
|
+
*/
|
|
3260
|
+
keyPressed: EventEmitter<SearchInputKeydownEvent>;
|
|
3261
|
+
/**
|
|
3262
|
+
* Emits on the inner field keyup event.
|
|
3263
|
+
* @payload SearchInputKeyupEvent
|
|
3264
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3265
|
+
* @renamedFrom onKeyupHandle
|
|
3266
|
+
*/
|
|
3267
|
+
keyReleased: EventEmitter<SearchInputKeyupEvent>;
|
|
3268
|
+
/**
|
|
3269
|
+
* Emits when Enter is released in the inner field.
|
|
3270
|
+
* @payload SearchInputKeyEnterEvent
|
|
3271
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3272
|
+
* @renamedFrom onKeyEnterHandle
|
|
3273
|
+
*/
|
|
3274
|
+
enterPressed: EventEmitter<SearchInputKeyEnterEvent>;
|
|
3275
|
+
/**
|
|
3276
|
+
* Emits when the inner input is clicked.
|
|
3277
|
+
* @payload SearchInputClickEvent
|
|
3278
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3279
|
+
* @renamedFrom onInputClickHandle
|
|
3280
|
+
*/
|
|
3281
|
+
inputClicked: EventEmitter<SearchInputClickEvent>;
|
|
3282
|
+
/**
|
|
3283
|
+
* Emits when the search action is activated.
|
|
3284
|
+
* @payload SearchInputInfo
|
|
3285
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3286
|
+
* @renamedFrom onSearchClickHandle
|
|
3287
|
+
*/
|
|
3288
|
+
searchClicked: EventEmitter<SearchInputInfo>;
|
|
3289
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
3290
|
+
/**
|
|
3291
|
+
* Returns shared field information attached
|
|
3292
|
+
* to all emitted events.
|
|
3293
|
+
*
|
|
3294
|
+
* Includes:
|
|
3295
|
+
* - Input DOM reference (if inputId is provided)
|
|
3296
|
+
* - Current model value
|
|
3297
|
+
* - Field identifier
|
|
3298
|
+
*/
|
|
3299
|
+
private fieldInfo;
|
|
3300
|
+
/**
|
|
3301
|
+
* Emits when the model value changes
|
|
3302
|
+
* @param modelChangeEvent - Updated model value
|
|
3303
|
+
*/
|
|
3304
|
+
modelValueChange(modelChangeEvent: string): void;
|
|
3305
|
+
/**
|
|
3306
|
+
* Emits on input value change
|
|
3307
|
+
* @param changeValue - Input event
|
|
3308
|
+
*/
|
|
3309
|
+
inputChange(changeValue: Event): void;
|
|
3310
|
+
/**
|
|
3311
|
+
* Emits when input gains focus
|
|
3312
|
+
* @param onFocusEvent - Focus event
|
|
3313
|
+
*/
|
|
3314
|
+
focusChange(onFocusEvent: FocusEvent): void;
|
|
3315
|
+
/**
|
|
3316
|
+
* Emits when input loses focus
|
|
3317
|
+
* @param blurEvent - Blur event
|
|
3318
|
+
*/
|
|
3319
|
+
blurChange(blurEvent: FocusEvent): void;
|
|
3320
|
+
/**
|
|
3321
|
+
* Emits on keydown action
|
|
3322
|
+
* @param keyDownEvent - Keyboard event
|
|
3323
|
+
*/
|
|
3324
|
+
keydownHandle(keyDownEvent: KeyboardEvent): void;
|
|
3325
|
+
/**
|
|
3326
|
+
* Emits on keyup action
|
|
3327
|
+
* @param keyUpEvent - Keyboard event
|
|
3328
|
+
*/
|
|
3329
|
+
keyupHandle(keyUpEvent: KeyboardEvent): void;
|
|
3330
|
+
/**
|
|
3331
|
+
* Emits when Enter key is pressed
|
|
3332
|
+
* @param event - Keyboard or input event
|
|
3333
|
+
*/
|
|
3334
|
+
keyEnterHandle(event: Event): void;
|
|
3335
|
+
/**
|
|
3336
|
+
* Emits when input field is clicked
|
|
3337
|
+
* @param clickEvent - Mouse click event
|
|
3338
|
+
*/
|
|
3339
|
+
inputClick(clickEvent: MouseEvent): void;
|
|
3340
|
+
/**
|
|
3341
|
+
* Emits when search button field is clicked
|
|
3342
|
+
*/
|
|
3343
|
+
onSearchClick(): void;
|
|
3344
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchInputComponent, [{ optional: true; self: true; }, null]>;
|
|
3345
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchInputComponent, "ui-search-input", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "inputId": { "alias": "inputId"; "required": true; }; "label": { "alias": "label"; "required": false; }; "searchDisabled": { "alias": "searchDisabled"; "required": false; }; "searchButtonDisabled": { "alias": "searchButtonDisabled"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "searchButtonPosition": { "alias": "searchButtonPosition"; "required": false; }; "inputType": { "alias": "inputType"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "searchButtonTooltip": { "alias": "searchButtonTooltip"; "required": false; }; }, { "modelChange": "modelChange"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; "inputClicked": "inputClicked"; "searchClicked": "searchClicked"; }, never, never, true, never>;
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
interface TabOption {
|
|
3349
|
+
label: string;
|
|
3350
|
+
value: any;
|
|
3351
|
+
disabled?: boolean;
|
|
3352
|
+
}
|
|
3353
|
+
declare class SegmentedControlComponent extends BaseControlValueAccessor<any> implements AfterViewInit {
|
|
3354
|
+
ngControl: NgControl;
|
|
3355
|
+
private changeRef;
|
|
3356
|
+
/**
|
|
3357
|
+
* Options rendered by the control; use the label/value key inputs for object options.
|
|
3358
|
+
* @default []
|
|
3359
|
+
* @type TabOption[]
|
|
3360
|
+
*/
|
|
3361
|
+
options: TabOption[];
|
|
3362
|
+
/**
|
|
3363
|
+
* Segmented-control size: md or lg.
|
|
3364
|
+
* @default 'md'
|
|
3365
|
+
* @type 'md' | 'lg'
|
|
3366
|
+
*/
|
|
3367
|
+
size: 'md' | 'lg';
|
|
3368
|
+
/**
|
|
3369
|
+
* Emits when the selection handler processes a selection.
|
|
3370
|
+
* @payload any
|
|
3371
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3372
|
+
*/
|
|
3373
|
+
selectionChange: EventEmitter<any>;
|
|
3374
|
+
/**
|
|
3375
|
+
* Emits measured segment widths in pixels, in option order.
|
|
3376
|
+
* @payload number[]
|
|
3377
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3378
|
+
*/
|
|
3379
|
+
widthCalculated: EventEmitter<number[]>;
|
|
3380
|
+
buttons: QueryList<ElementRef>;
|
|
3381
|
+
buttonWidths: number[];
|
|
3382
|
+
get activeIndex(): number;
|
|
3383
|
+
get activeOffset(): number;
|
|
3384
|
+
get activeWidth(): number;
|
|
3385
|
+
private readonly destroyRef;
|
|
3386
|
+
constructor(ngControl: NgControl, changeRef: ChangeDetectorRef);
|
|
3387
|
+
ngAfterViewInit(): void;
|
|
3388
|
+
calculateWidths(): void;
|
|
3389
|
+
select(value: any): void;
|
|
3390
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SegmentedControlComponent, [{ optional: true; self: true; }, null]>;
|
|
3391
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SegmentedControlComponent, "ui-segmented-control", never, { "options": { "alias": "options"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, { "selectionChange": "selectionChange"; "widthCalculated": "widthCalculated"; }, never, never, true, never>;
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
/**
|
|
3395
|
+
* Metadata shared across selection list events
|
|
3396
|
+
*/
|
|
3397
|
+
interface SelectionListFieldInfo {
|
|
3398
|
+
/** Native input element reference (if inputId is provided) */
|
|
3399
|
+
inputRef?: Element | null;
|
|
3400
|
+
/** Current selected value(s) bound to the model */
|
|
3401
|
+
modelValue: any;
|
|
3402
|
+
/** Field name identifier provided by parent */
|
|
3403
|
+
textFieldName: string | number;
|
|
3404
|
+
}
|
|
3405
|
+
/**
|
|
3406
|
+
* Event payload emitted when selections are changed
|
|
3407
|
+
*/
|
|
3408
|
+
interface SelectionListSelectionChangeEvent extends SelectionListFieldInfo {
|
|
3409
|
+
selectionChangeEvent: MatSelectionListChange;
|
|
3410
|
+
}
|
|
3411
|
+
/**
|
|
3412
|
+
* Event payload emitted when the model value changes
|
|
3413
|
+
*/
|
|
3414
|
+
interface SelectionListModelChangeEvent extends SelectionListFieldInfo {
|
|
3415
|
+
modelChangeEvent: any;
|
|
3416
|
+
}
|
|
3417
|
+
|
|
3418
|
+
declare class SelectionListComponent extends BaseControlValueAccessor<any> {
|
|
3419
|
+
ngControl: NgControl;
|
|
3420
|
+
private changeDetectorRef;
|
|
3421
|
+
protected rawInputId: string;
|
|
3422
|
+
/**
|
|
3423
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
3424
|
+
* @type string
|
|
3425
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
3426
|
+
*/
|
|
3427
|
+
set inputId(id: string);
|
|
3428
|
+
get inputId(): string;
|
|
3429
|
+
/**
|
|
3430
|
+
* Tooltip text displayed on hover
|
|
3431
|
+
* @default ''
|
|
3432
|
+
* @type string
|
|
3433
|
+
*/
|
|
3434
|
+
tooltip: string;
|
|
3435
|
+
/**
|
|
3436
|
+
* Label text or translation key displayed for this control.
|
|
3437
|
+
* @default ''
|
|
3438
|
+
* @type string
|
|
3439
|
+
*/
|
|
3440
|
+
label: string;
|
|
3441
|
+
/**
|
|
3442
|
+
* Error message displayed for validation
|
|
3443
|
+
* @default ''
|
|
3444
|
+
* @type string
|
|
3445
|
+
*/
|
|
3446
|
+
errorMessage: string;
|
|
3447
|
+
/**
|
|
3448
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
3449
|
+
* @default false
|
|
3450
|
+
* @type boolean
|
|
3451
|
+
*/
|
|
3452
|
+
required: boolean;
|
|
3453
|
+
/**
|
|
3454
|
+
* Enables the existing multiple-selection mode.
|
|
3455
|
+
* @default true
|
|
3456
|
+
* @type boolean
|
|
3457
|
+
*/
|
|
3458
|
+
multiple: boolean;
|
|
3459
|
+
/**
|
|
3460
|
+
* Options rendered by the control; use the label/value key inputs for object options.
|
|
3461
|
+
* @default []
|
|
3462
|
+
* @type any[]
|
|
3463
|
+
* @renamedFrom selectList
|
|
3464
|
+
*/
|
|
3465
|
+
options: any[];
|
|
3466
|
+
/**
|
|
3467
|
+
* Property name read from an option object to obtain its visible label.
|
|
3468
|
+
* @default ''
|
|
3469
|
+
* @type string
|
|
3470
|
+
* @renamedFrom displayKey
|
|
3471
|
+
*/
|
|
3472
|
+
labelKey: string;
|
|
3473
|
+
/**
|
|
3474
|
+
* Property name used to identify or extract an option value.
|
|
3475
|
+
* @default ''
|
|
3476
|
+
* @type string
|
|
3477
|
+
* @renamedFrom idKey
|
|
3478
|
+
*/
|
|
3479
|
+
valueKey: string;
|
|
3480
|
+
/**
|
|
3481
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
3482
|
+
* @type string | number
|
|
3483
|
+
* @renamedFrom textFieldName
|
|
3484
|
+
*/
|
|
3485
|
+
fieldName: string | number;
|
|
3486
|
+
/**
|
|
3487
|
+
* Emits when the selection handler processes a selection.
|
|
3488
|
+
* @payload SelectionListSelectionChangeEvent
|
|
3489
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3490
|
+
* @renamedFrom onSelectionChange
|
|
3491
|
+
*/
|
|
3492
|
+
selectionChange: EventEmitter<SelectionListSelectionChangeEvent>;
|
|
3493
|
+
/**
|
|
3494
|
+
* Emits when the component model-change handler runs.
|
|
3495
|
+
* @payload SelectionListModelChangeEvent
|
|
3496
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3497
|
+
* @renamedFrom onModelChange
|
|
3498
|
+
*/
|
|
3499
|
+
modelChange: EventEmitter<SelectionListModelChangeEvent>;
|
|
3500
|
+
/**
|
|
3501
|
+
* Internal model getter/setter backed by the shared control value.
|
|
3502
|
+
*/
|
|
3503
|
+
get modelValue(): any;
|
|
3504
|
+
set modelValue(val: any);
|
|
3505
|
+
/** @deprecated Use value for direct component access. */
|
|
3506
|
+
get inputModelValue(): any;
|
|
3507
|
+
set inputModelValue(value: any);
|
|
3508
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
3509
|
+
/**
|
|
3510
|
+
* Returns the current field information
|
|
3511
|
+
* @returns object containing model value and field name
|
|
3512
|
+
*/
|
|
3513
|
+
private fieldInfo;
|
|
3514
|
+
/**
|
|
3515
|
+
* Emits updated model value when ngModel changes
|
|
3516
|
+
* @param val The updated model value
|
|
3517
|
+
* @returns void (emits modelChange event)
|
|
3518
|
+
*/
|
|
3519
|
+
modelValueChange(val: any): void;
|
|
3520
|
+
/**
|
|
3521
|
+
* Handles selection change event
|
|
3522
|
+
* @param changeValue MatSelectionListChange event
|
|
3523
|
+
* @returns void (emits selectionChange event)
|
|
3524
|
+
*/
|
|
3525
|
+
selectionChanged(changeValue: MatSelectionListChange): void;
|
|
3526
|
+
/**
|
|
3527
|
+
* Track by function for performance optimization
|
|
3528
|
+
*/
|
|
3529
|
+
trackByFn: (index: number, item: any) => any;
|
|
3530
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionListComponent, [{ optional: true; self: true; }, null]>;
|
|
3531
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionListComponent, "ui-selection-list", never, { "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; }; "multiple": { "alias": "multiple"; "required": false; }; "options": { "alias": "options"; "required": false; }; "labelKey": { "alias": "labelKey"; "required": false; }; "valueKey": { "alias": "valueKey"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; }, { "selectionChange": "selectionChange"; "modelChange": "modelChange"; }, never, never, true, never>;
|
|
3532
|
+
}
|
|
3533
|
+
|
|
3534
|
+
interface SlideToggleFieldInfo {
|
|
3535
|
+
/** Currently selected slider value */
|
|
3536
|
+
modelValue: boolean;
|
|
3537
|
+
/** Field identifier used by parent component */
|
|
3538
|
+
textFieldName: string | number;
|
|
3539
|
+
/** Optional native input element reference */
|
|
3540
|
+
inputRef?: Element | null;
|
|
3541
|
+
changeEvent?: MouseEvent;
|
|
3542
|
+
}
|
|
3543
|
+
|
|
3544
|
+
declare class SlideToggleComponent extends BaseControlValueAccessor<boolean> {
|
|
3545
|
+
ngControl: NgControl;
|
|
3546
|
+
private changeDetectorRef;
|
|
3547
|
+
/** Unique ID for the slide toggle */
|
|
3548
|
+
protected rawInputId: string;
|
|
3549
|
+
/**
|
|
3550
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
3551
|
+
* @type string
|
|
3552
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
3553
|
+
*/
|
|
3554
|
+
set inputId(id: string);
|
|
3555
|
+
get inputId(): string;
|
|
3556
|
+
/**
|
|
3557
|
+
* Internal two-way bound value for the toggle (true/false)
|
|
3558
|
+
* @type boolean
|
|
3559
|
+
*/
|
|
3560
|
+
get isChecked(): boolean;
|
|
3561
|
+
set isChecked(val: boolean);
|
|
3562
|
+
/** @deprecated Use isChecked for direct component access. */
|
|
3563
|
+
get inputModelValue(): boolean;
|
|
3564
|
+
set inputModelValue(value: boolean);
|
|
3565
|
+
/**
|
|
3566
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
3567
|
+
* @default false
|
|
3568
|
+
* @type boolean
|
|
3569
|
+
*/
|
|
3570
|
+
required: boolean;
|
|
3571
|
+
/**
|
|
3572
|
+
* Disable ripple animation effect
|
|
3573
|
+
* @default false
|
|
3574
|
+
* @type boolean
|
|
3575
|
+
*/
|
|
3576
|
+
disableRipple: boolean;
|
|
3577
|
+
/**
|
|
3578
|
+
* Theme color: 'primary' | 'accent' | 'warn'
|
|
3579
|
+
* @default 'primary'
|
|
3580
|
+
* @type 'primary' | 'accent' | 'warn'
|
|
3581
|
+
*/
|
|
3582
|
+
color: 'primary' | 'accent' | 'warn';
|
|
3583
|
+
/**
|
|
3584
|
+
* Label position: 'before' | 'after'
|
|
3585
|
+
* @default 'after'
|
|
3586
|
+
* @type 'before' | 'after'
|
|
3587
|
+
*/
|
|
3588
|
+
labelPosition: 'before' | 'after';
|
|
3589
|
+
/**
|
|
3590
|
+
* Label text or translation key displayed for this control.
|
|
3591
|
+
* @default ''
|
|
3592
|
+
* @type string
|
|
3593
|
+
*/
|
|
3594
|
+
label: string;
|
|
3595
|
+
/**
|
|
3596
|
+
* Optional error message when required validation fails
|
|
3597
|
+
* @default ''
|
|
3598
|
+
* @type string
|
|
3599
|
+
*/
|
|
3600
|
+
errorMessage: string;
|
|
3601
|
+
/**
|
|
3602
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
3603
|
+
* @type string | number
|
|
3604
|
+
* @renamedFrom textFieldName
|
|
3605
|
+
*/
|
|
3606
|
+
fieldName: string | number;
|
|
3607
|
+
/**
|
|
3608
|
+
* Whether to prevent the slide toggle from changing its value on click
|
|
3609
|
+
* @default false
|
|
3610
|
+
*/
|
|
3611
|
+
preventToggleOnClick: boolean;
|
|
3612
|
+
/**
|
|
3613
|
+
* Emits when a permitted toggle state change is processed.
|
|
3614
|
+
* @payload SlideToggleFieldInfo
|
|
3615
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3616
|
+
* @renamedFrom onChangeEventHandler
|
|
3617
|
+
*/
|
|
3618
|
+
readonly stateChange: EventEmitter<SlideToggleFieldInfo>;
|
|
3619
|
+
/**
|
|
3620
|
+
* Emits when a permitted toggle action is processed.
|
|
3621
|
+
* @payload SlideToggleFieldInfo
|
|
3622
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3623
|
+
*/
|
|
3624
|
+
readonly toggleChange: EventEmitter<SlideToggleFieldInfo>;
|
|
3625
|
+
/**
|
|
3626
|
+
* Emits when the existing click handler runs.
|
|
3627
|
+
* @payload SlideToggleFieldInfo
|
|
3628
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3629
|
+
* @renamedFrom onClickHandler
|
|
3630
|
+
*/
|
|
3631
|
+
readonly clicked: EventEmitter<SlideToggleFieldInfo>;
|
|
3632
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
3633
|
+
/**
|
|
3634
|
+
* Returns common field information
|
|
3635
|
+
* attached to emitted events.
|
|
3636
|
+
*/
|
|
3637
|
+
private fieldInfo;
|
|
3638
|
+
/**
|
|
3639
|
+
* Handles the Material change event.
|
|
3640
|
+
*/
|
|
3641
|
+
onToggleValueChange(event: MatSlideToggleChange): void;
|
|
3642
|
+
/**
|
|
3643
|
+
* Called when the toggle is toggled
|
|
3644
|
+
*/
|
|
3645
|
+
onToggleChange(): void;
|
|
3646
|
+
/**
|
|
3647
|
+
* Called when the toggle is clicked
|
|
3648
|
+
*/
|
|
3649
|
+
handleOnClick(changeValue: MouseEvent): void;
|
|
3650
|
+
/**
|
|
3651
|
+
* Handles click on the overlay blocker when toggle clicks are prevented
|
|
3652
|
+
*/
|
|
3653
|
+
handleOverlayClick(event: MouseEvent): void;
|
|
3654
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SlideToggleComponent, [{ optional: true; self: true; }, null]>;
|
|
3655
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SlideToggleComponent, "ui-slide-toggle", never, { "inputId": { "alias": "inputId"; "required": true; }; "required": { "alias": "required"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "label": { "alias": "label"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "preventToggleOnClick": { "alias": "preventToggleOnClick"; "required": false; }; }, { "stateChange": "stateChange"; "toggleChange": "toggleChange"; "clicked": "clicked"; }, never, never, true, never>;
|
|
3656
|
+
}
|
|
3657
|
+
|
|
3658
|
+
declare class TextAreaComponent extends BaseControlValueAccessor<any> implements OnInit {
|
|
3659
|
+
ngControl: NgControl;
|
|
3660
|
+
private changeDetectorRef;
|
|
3661
|
+
container: ViewContainerRef;
|
|
3662
|
+
/** HTML id for the select element */
|
|
3663
|
+
protected rawInputId: string;
|
|
3664
|
+
/**
|
|
3665
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
3666
|
+
* @type string
|
|
3667
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
3668
|
+
*/
|
|
3669
|
+
set inputId(id: string);
|
|
3670
|
+
get inputId(): string;
|
|
3671
|
+
/** Indicates whether expandable view is active */
|
|
3672
|
+
expandInput: boolean;
|
|
3673
|
+
/** Show the optional inline editor expansion action. */
|
|
3674
|
+
showExpandButton: boolean;
|
|
3675
|
+
/**
|
|
3676
|
+
* Enables or disables textarea resize
|
|
3677
|
+
* @default false
|
|
3678
|
+
* @type boolean
|
|
3679
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
3680
|
+
*/
|
|
3681
|
+
resize: boolean;
|
|
3682
|
+
/**
|
|
3683
|
+
* Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
|
|
3684
|
+
* @default false
|
|
3685
|
+
* @type boolean
|
|
3686
|
+
*/
|
|
3687
|
+
preventCopyPasteCut: boolean;
|
|
3688
|
+
/**
|
|
3689
|
+
* Minimum visible textarea rows passed to the existing textarea configuration.
|
|
3690
|
+
* @default 3
|
|
3691
|
+
* @type number
|
|
3692
|
+
* @renamedFrom minRow
|
|
3693
|
+
*/
|
|
3694
|
+
minRows: number;
|
|
3695
|
+
/**
|
|
3696
|
+
* Maximum textarea rows passed to the existing textarea configuration.
|
|
3697
|
+
* @default 6
|
|
3698
|
+
* @type number
|
|
3699
|
+
* @renamedFrom maxRow
|
|
3700
|
+
*/
|
|
3701
|
+
maxRows: number;
|
|
3702
|
+
/**
|
|
3703
|
+
* Textarea column count passed to the native cols attribute.
|
|
3704
|
+
* @default 0
|
|
3705
|
+
* @type number
|
|
3706
|
+
* @renamedFrom numCols
|
|
3707
|
+
*/
|
|
3708
|
+
columns: number;
|
|
3709
|
+
/**
|
|
3710
|
+
* Label text or translation key displayed for this control.
|
|
3711
|
+
* @default ''
|
|
3712
|
+
* @type string
|
|
3713
|
+
*/
|
|
3714
|
+
label: string;
|
|
3715
|
+
/**
|
|
3716
|
+
* Maximum allowed characters
|
|
3717
|
+
* @default 0
|
|
3718
|
+
* @type number
|
|
3719
|
+
* @renamedFrom limit
|
|
3720
|
+
*/
|
|
3721
|
+
maxLength: number;
|
|
3722
|
+
/**
|
|
3723
|
+
* Controls display of the existing character-count indicator.
|
|
3724
|
+
* @default true
|
|
3725
|
+
* @type boolean
|
|
3726
|
+
* @renamedFrom displayCharactersStats
|
|
3727
|
+
*/
|
|
3728
|
+
showCharacterCount: boolean;
|
|
3729
|
+
/**
|
|
3730
|
+
* Internal model getter/setter backed by the shared control value.
|
|
3731
|
+
*/
|
|
3732
|
+
get modelValue(): any;
|
|
3733
|
+
set modelValue(val: any);
|
|
3734
|
+
/**
|
|
3735
|
+
* Error message or translation key displayed when validation fails.
|
|
3736
|
+
* @default ''
|
|
3737
|
+
* @type string
|
|
3738
|
+
*/
|
|
3739
|
+
errorMessage: string;
|
|
3740
|
+
/**
|
|
3741
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
3742
|
+
* @default false
|
|
3743
|
+
* @type boolean
|
|
3744
|
+
*/
|
|
3745
|
+
required: boolean;
|
|
3746
|
+
/**
|
|
3747
|
+
* Shows the remaining-character indicator when the existing focus/maxLength conditions allow it.
|
|
3748
|
+
* @default false
|
|
3749
|
+
* @type boolean
|
|
3750
|
+
* @renamedFrom showRemainingWordsStatus
|
|
3751
|
+
*/
|
|
3752
|
+
showRemainingCharacters: boolean;
|
|
3753
|
+
/**
|
|
3754
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
3755
|
+
* @type string | number | undefined
|
|
3756
|
+
* @renamedFrom textFieldName
|
|
3757
|
+
*/
|
|
3758
|
+
fieldName: string | number | undefined;
|
|
3759
|
+
/**
|
|
3760
|
+
* Hint text or translation key displayed while the control is empty.
|
|
3761
|
+
* @default ''
|
|
3762
|
+
* @type string
|
|
3763
|
+
*/
|
|
3764
|
+
placeholder: string;
|
|
3765
|
+
/**
|
|
3766
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
3767
|
+
* @default false
|
|
3768
|
+
* @type boolean
|
|
3769
|
+
*/
|
|
3770
|
+
readonly: boolean;
|
|
3771
|
+
/**
|
|
3772
|
+
* Mention list for @ mentions
|
|
3773
|
+
* @default []
|
|
3774
|
+
*/
|
|
3775
|
+
mentionsList: any;
|
|
3776
|
+
/**
|
|
3777
|
+
* Mention configuration
|
|
3778
|
+
* @default { labelKey: 'abbreviation', mentionSelect: this.onMentionSelect }
|
|
3779
|
+
* @type MentionConfig
|
|
3780
|
+
*/
|
|
3781
|
+
mentionConfig: MentionConfig;
|
|
3782
|
+
/**
|
|
3783
|
+
* Enables abbreviation highlight textarea
|
|
3784
|
+
* @default false
|
|
3785
|
+
* @type boolean
|
|
3786
|
+
*/
|
|
3787
|
+
useAbbreviationHighlight: boolean;
|
|
3788
|
+
/**
|
|
3789
|
+
* Allowed abbreviations
|
|
3790
|
+
* @default []
|
|
3791
|
+
* @type AbbreviationEntry[]
|
|
3792
|
+
*/
|
|
3793
|
+
abbreviationList: AbbreviationEntry[];
|
|
3794
|
+
/**
|
|
3795
|
+
* Passes the Arabic typing flag to the existing utility directive.
|
|
3796
|
+
* @default false
|
|
3797
|
+
* @type boolean
|
|
3798
|
+
* @renamedFrom appToArabic
|
|
3799
|
+
*/
|
|
3800
|
+
enableArabicInput: boolean;
|
|
3801
|
+
/**
|
|
3802
|
+
* Restricted words list
|
|
3803
|
+
* @default []
|
|
3804
|
+
* @type AbbreviationEntry[]
|
|
3805
|
+
*/
|
|
3806
|
+
restrictedWords: AbbreviationEntry[];
|
|
3807
|
+
/**
|
|
3808
|
+
* Optional replacement configuration for abbreviation mentions; null uses the component-built configuration.
|
|
3809
|
+
* @default null
|
|
3810
|
+
* @type AbbreviationMentionConfig[] | null
|
|
3811
|
+
* @renamedFrom yarMentionConfig
|
|
3812
|
+
*/
|
|
3813
|
+
abbreviationMentionConfig: AbbreviationMentionConfig[] | null;
|
|
3814
|
+
/**
|
|
3815
|
+
* Trims leading and trailing whitespace when the textarea loses focus.
|
|
3816
|
+
* @default false
|
|
3817
|
+
* @type boolean
|
|
3818
|
+
* @renamedFrom fieldTrim
|
|
3819
|
+
*/
|
|
3820
|
+
trimOnBlur: boolean;
|
|
3821
|
+
/**
|
|
3822
|
+
* Value written to the existing ChatGptAttr DOM attribute for field discovery.
|
|
3823
|
+
* @default ''
|
|
3824
|
+
* @type string
|
|
3825
|
+
* @renamedFrom chatGptAttr
|
|
3826
|
+
*/
|
|
3827
|
+
assistantFieldId: string;
|
|
3828
|
+
selectedLanguage: Language;
|
|
3829
|
+
arabicLanguage: string;
|
|
3830
|
+
isFocused: boolean;
|
|
3831
|
+
/** @deprecated Use isFocused when inspecting focus state. */
|
|
3832
|
+
get showWordsLimitLabel(): boolean;
|
|
3833
|
+
set showWordsLimitLabel(value: boolean);
|
|
3834
|
+
get shouldShowRemainingCharacters(): boolean;
|
|
3835
|
+
get characterCount(): number;
|
|
3836
|
+
get remainingCharacters(): number;
|
|
3837
|
+
abbreviationHighlightMentionList: AbbreviationMentionConfig[];
|
|
3838
|
+
/**
|
|
3839
|
+
* Emits the existing value-change payload; remains separate from modelChange.
|
|
3840
|
+
* @payload any
|
|
3841
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3842
|
+
* @renamedFrom inputChangeValue
|
|
3843
|
+
*/
|
|
3844
|
+
valueChanged: EventEmitter<any>;
|
|
3845
|
+
/**
|
|
3846
|
+
* Reserved output retained for API compatibility. No emission site exists in the supplied implementation.
|
|
3847
|
+
* @payload any
|
|
3848
|
+
* @renamedFrom expandButtonClickcallback
|
|
3849
|
+
*/
|
|
3850
|
+
expandRequested: EventEmitter<any>;
|
|
3851
|
+
/**
|
|
3852
|
+
* Emits from the existing input/change handler.
|
|
3853
|
+
* @payload any
|
|
3854
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
3855
|
+
* @renamedFrom onInputChange
|
|
3856
|
+
*/
|
|
3857
|
+
inputChanged: EventEmitter<any>;
|
|
3858
|
+
/**
|
|
3859
|
+
* Emits when an abbreviation is picked from the mention list
|
|
3860
|
+
* @payload any
|
|
3861
|
+
*/
|
|
3862
|
+
itemSelected: EventEmitter<any>;
|
|
3863
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
3864
|
+
/**
|
|
3865
|
+
* Returns shared field information
|
|
3866
|
+
*
|
|
3867
|
+
* @returns Object containing model value and field name
|
|
3868
|
+
*/
|
|
3869
|
+
private fieldInfo;
|
|
3870
|
+
get onChange(): (value: any) => void;
|
|
3871
|
+
set onChange(fn: (value: any) => void);
|
|
3872
|
+
get onTouched(): () => void;
|
|
3873
|
+
set onTouched(fn: () => void);
|
|
3874
|
+
/**
|
|
3875
|
+
* Initializes subscriptions and mention configuration
|
|
3876
|
+
*
|
|
3877
|
+
* @returns void
|
|
3878
|
+
*/
|
|
3879
|
+
ngOnInit(): void;
|
|
3880
|
+
/**
|
|
3881
|
+
* Emits value changes and updates form control
|
|
3882
|
+
*
|
|
3883
|
+
* @returns void
|
|
3884
|
+
*/
|
|
3885
|
+
updateChanges(): void;
|
|
3886
|
+
/**
|
|
3887
|
+
* Handles native textarea input change
|
|
3888
|
+
*
|
|
3889
|
+
* @param e - Keyboard or input event
|
|
3890
|
+
* @returns void
|
|
3891
|
+
*/
|
|
3892
|
+
changeTextareaValue(e: Event): void;
|
|
3893
|
+
/**
|
|
3894
|
+
* Writes value from form control
|
|
3895
|
+
*
|
|
3896
|
+
* @param value - Incoming value
|
|
3897
|
+
* @returns void
|
|
3898
|
+
*/
|
|
3899
|
+
writeValue(value: any): void;
|
|
3900
|
+
/**
|
|
3901
|
+
* Shows remaining characters on focus
|
|
3902
|
+
*
|
|
3903
|
+
* @returns void
|
|
3904
|
+
*/
|
|
3905
|
+
onTextAreaFocus(): void;
|
|
3906
|
+
/**
|
|
3907
|
+
* Hides remaining characters on blur
|
|
3908
|
+
*
|
|
3909
|
+
* @returns void
|
|
3910
|
+
*/
|
|
3911
|
+
onTextAreaBlur(): void;
|
|
3912
|
+
/** Toggle the inline expanded editor and notify consumers. */
|
|
3913
|
+
openExpandableTextArea(): void;
|
|
3914
|
+
expandButton(): void;
|
|
3915
|
+
/**
|
|
3916
|
+
* Handles mention selection
|
|
3917
|
+
*
|
|
3918
|
+
* @param selection - Selected mention object
|
|
3919
|
+
* @returns string - Inserted mention text
|
|
3920
|
+
*/
|
|
3921
|
+
onMentionSelect(selection: {
|
|
3922
|
+
remarks: string;
|
|
3923
|
+
}): string;
|
|
3924
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextAreaComponent, [{ optional: true; self: true; }, null]>;
|
|
3925
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextAreaComponent, "ui-text-area", never, { "inputId": { "alias": "inputId"; "required": true; }; "showExpandButton": { "alias": "showExpandButton"; "required": false; }; "resize": { "alias": "resize"; "required": false; }; "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "minRows": { "alias": "minRows"; "required": false; }; "maxRows": { "alias": "maxRows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "label": { "alias": "label"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "showCharacterCount": { "alias": "showCharacterCount"; "required": false; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "showRemainingCharacters": { "alias": "showRemainingCharacters"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "mentionsList": { "alias": "mentionsList"; "required": false; }; "mentionConfig": { "alias": "mentionConfig"; "required": false; }; "useAbbreviationHighlight": { "alias": "useAbbreviationHighlight"; "required": false; }; "abbreviationList": { "alias": "abbreviationList"; "required": false; }; "enableArabicInput": { "alias": "enableArabicInput"; "required": false; }; "restrictedWords": { "alias": "restrictedWords"; "required": false; }; "abbreviationMentionConfig": { "alias": "abbreviationMentionConfig"; "required": false; }; "trimOnBlur": { "alias": "trimOnBlur"; "required": false; }; "assistantFieldId": { "alias": "assistantFieldId"; "required": false; }; }, { "valueChanged": "valueChanged"; "expandRequested": "expandRequested"; "inputChanged": "inputChanged"; "itemSelected": "itemSelected"; }, never, never, true, never>;
|
|
3926
|
+
}
|
|
3927
|
+
|
|
3928
|
+
declare class TimeInputComponent extends BaseControlValueAccessor<string> {
|
|
3929
|
+
ngControl: NgControl;
|
|
3930
|
+
private changeDetectorRef;
|
|
3931
|
+
/**
|
|
3932
|
+
* Clipboard restriction flag retained with its current wiring. The local uiPreventClipboard directive blocks copy, cut, and paste when true.
|
|
3933
|
+
* @default false
|
|
3934
|
+
* @type boolean
|
|
3935
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
3936
|
+
*/
|
|
3937
|
+
preventCopyPasteCut: boolean;
|
|
3938
|
+
/** HTML id attribute for the input hr element */
|
|
3939
|
+
protected rawInputIdHr: string;
|
|
3940
|
+
protected rawInputIdMin: string;
|
|
3941
|
+
effectiveIdHr: string;
|
|
3942
|
+
effectiveIdMin: string;
|
|
3943
|
+
/**
|
|
3944
|
+
* Identifier for the hours input, combined with idPrefix when supplied.
|
|
3945
|
+
* @type string
|
|
3946
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
3947
|
+
* @renamedFrom inputIdHr
|
|
3948
|
+
*/
|
|
3949
|
+
set hoursInputId(id: string);
|
|
3950
|
+
get hoursInputId(): string;
|
|
3951
|
+
/**
|
|
3952
|
+
* Identifier for the minutes input, combined with idPrefix when supplied.
|
|
3953
|
+
* @type string
|
|
3954
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
3955
|
+
* @renamedFrom inputIdMin
|
|
3956
|
+
*/
|
|
3957
|
+
set minutesInputId(id: string);
|
|
3958
|
+
get minutesInputId(): string;
|
|
3959
|
+
configureId(): void;
|
|
3960
|
+
private configureTimeIds;
|
|
3961
|
+
/**
|
|
3962
|
+
* Validation error message
|
|
3963
|
+
* @default ''
|
|
3964
|
+
* @type string
|
|
3965
|
+
* @remarks Retained input; no consumer of this setting is present in the supplied class/template.
|
|
3966
|
+
*/
|
|
3967
|
+
errorMessage: string;
|
|
3968
|
+
/**
|
|
3969
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
3970
|
+
* @default false
|
|
3971
|
+
* @type boolean
|
|
3972
|
+
*/
|
|
3973
|
+
required: boolean;
|
|
3974
|
+
/**
|
|
3975
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
3976
|
+
* @type string | number
|
|
3977
|
+
* @renamedFrom textFieldName
|
|
3978
|
+
*/
|
|
3979
|
+
fieldName: string | number;
|
|
3980
|
+
/**
|
|
3981
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
3982
|
+
* @default false
|
|
3983
|
+
* @type boolean
|
|
3984
|
+
*/
|
|
3985
|
+
readonly: boolean;
|
|
3986
|
+
hours: string;
|
|
3987
|
+
minutes: string;
|
|
3988
|
+
/**
|
|
3989
|
+
* Internal model getter/setter backed by the shared control value.
|
|
3990
|
+
* @type string
|
|
3991
|
+
*/
|
|
3992
|
+
get modelValue(): string;
|
|
3993
|
+
set modelValue(savedTime: string);
|
|
3994
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
3995
|
+
writeValue(savedTime: string | null): void;
|
|
3996
|
+
/**
|
|
3997
|
+
* Emits when the component model-change handler runs.
|
|
3998
|
+
* @payload any
|
|
3999
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4000
|
+
* @renamedFrom onModelChange
|
|
4001
|
+
*/
|
|
4002
|
+
modelChange: EventEmitter<any>;
|
|
4003
|
+
/**
|
|
4004
|
+
* Emits from the existing input/change handler.
|
|
4005
|
+
* @payload any
|
|
4006
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4007
|
+
* @renamedFrom onInputChange
|
|
4008
|
+
*/
|
|
4009
|
+
inputChanged: EventEmitter<any>;
|
|
4010
|
+
/**
|
|
4011
|
+
* Emits when the inner field gains focus.
|
|
4012
|
+
* @payload any
|
|
4013
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4014
|
+
* @renamedFrom onFocusChange
|
|
4015
|
+
*/
|
|
4016
|
+
focusGained: EventEmitter<any>;
|
|
4017
|
+
/**
|
|
4018
|
+
* Emits when the inner field loses focus.
|
|
4019
|
+
* @payload any
|
|
4020
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4021
|
+
* @renamedFrom onBlurChange
|
|
4022
|
+
*/
|
|
4023
|
+
focusLost: EventEmitter<any>;
|
|
4024
|
+
/**
|
|
4025
|
+
* Emits on the inner field keydown event.
|
|
4026
|
+
* @payload any
|
|
4027
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4028
|
+
* @renamedFrom onKeydownHandle
|
|
4029
|
+
*/
|
|
4030
|
+
keyPressed: EventEmitter<any>;
|
|
4031
|
+
/**
|
|
4032
|
+
* Emits on the inner field keyup event.
|
|
4033
|
+
* @payload any
|
|
4034
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4035
|
+
* @renamedFrom onKeyupHandle
|
|
4036
|
+
*/
|
|
4037
|
+
keyReleased: EventEmitter<any>;
|
|
4038
|
+
/**
|
|
4039
|
+
* Emits when Enter is released in the inner field.
|
|
4040
|
+
* @payload any
|
|
4041
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4042
|
+
* @renamedFrom onKeyEnterHandle
|
|
4043
|
+
*/
|
|
4044
|
+
enterPressed: EventEmitter<any>;
|
|
4045
|
+
/**
|
|
4046
|
+
* Returns common field information
|
|
4047
|
+
* reused across emitted events.
|
|
4048
|
+
*/
|
|
4049
|
+
private fieldInfo;
|
|
4050
|
+
/**
|
|
4051
|
+
* Emits when the model value changes
|
|
4052
|
+
* @param modelChange - Updated model value
|
|
4053
|
+
*/
|
|
4054
|
+
modelValueChange(_modelChange: unknown): void;
|
|
4055
|
+
/**
|
|
4056
|
+
* Emits when the input value changes
|
|
4057
|
+
* @param changeValue - Input change event
|
|
4058
|
+
*/
|
|
4059
|
+
inputChange(changeValue: Event): void;
|
|
4060
|
+
/**
|
|
4061
|
+
* Emits when input gains focus
|
|
4062
|
+
* @param onFocus - Focus event
|
|
4063
|
+
*/
|
|
4064
|
+
focusChange(onFocus: FocusEvent): void;
|
|
4065
|
+
/**
|
|
4066
|
+
* Emits when input loses focus
|
|
4067
|
+
* @param blurEvent - Blur event
|
|
4068
|
+
*/
|
|
4069
|
+
blurChange(blurEvent: FocusEvent): void;
|
|
4070
|
+
/**
|
|
4071
|
+
* Emits on keydown action
|
|
4072
|
+
* @param event - Keyboard event
|
|
4073
|
+
*/
|
|
4074
|
+
keydownHandle(event: KeyboardEvent): void;
|
|
4075
|
+
/**
|
|
4076
|
+
* Emits on keyup action
|
|
4077
|
+
* @param event - Keyboard event
|
|
4078
|
+
*/
|
|
4079
|
+
keyupHandle(event: KeyboardEvent): void;
|
|
4080
|
+
/**
|
|
4081
|
+
* Emits when Enter key is pressed
|
|
4082
|
+
* @param event - Keyboard or input event
|
|
4083
|
+
*/
|
|
4084
|
+
keyEnterHandle(event: Event): void;
|
|
4085
|
+
private formatTimeValue;
|
|
4086
|
+
onKeyUp(event: KeyboardEvent, restrictNumber: number, field: 'hours' | 'minutes'): void;
|
|
4087
|
+
setZeroBefore(): void;
|
|
4088
|
+
acceptNumberOnly(event: KeyboardEvent): boolean;
|
|
4089
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeInputComponent, [{ optional: true; self: true; }, null]>;
|
|
4090
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimeInputComponent, "ui-time-input", never, { "preventCopyPasteCut": { "alias": "preventCopyPasteCut"; "required": false; }; "hoursInputId": { "alias": "hoursInputId"; "required": true; }; "minutesInputId": { "alias": "minutesInputId"; "required": true; }; "errorMessage": { "alias": "errorMessage"; "required": false; }; "required": { "alias": "required"; "required": false; }; "fieldName": { "alias": "fieldName"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; }, { "modelChange": "modelChange"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; }, never, never, true, never>;
|
|
4091
|
+
}
|
|
4092
|
+
|
|
4093
|
+
/**
|
|
4094
|
+
* Base field information shared across all emitted events
|
|
4095
|
+
*/
|
|
4096
|
+
interface TimePickerFieldInfo {
|
|
4097
|
+
/** Selected time value (model value) */
|
|
4098
|
+
modelValue: string;
|
|
4099
|
+
/** Field identifier used by parent components */
|
|
4100
|
+
textFieldName: string | number;
|
|
4101
|
+
/** Optional reference to the input element */
|
|
4102
|
+
inputRef?: HTMLElement | null;
|
|
4103
|
+
}
|
|
4104
|
+
/**
|
|
4105
|
+
* Change event payload for time picker
|
|
4106
|
+
*/
|
|
4107
|
+
interface TimePickerChangeEvent extends TimePickerFieldInfo {
|
|
4108
|
+
/** Native input or change event */
|
|
4109
|
+
changeEvent?: Event;
|
|
4110
|
+
}
|
|
4111
|
+
/**
|
|
4112
|
+
* Change event payload for time picker
|
|
4113
|
+
*/
|
|
4114
|
+
interface TimePickerChange extends TimePickerFieldInfo {
|
|
4115
|
+
/** Native input or change event */
|
|
4116
|
+
changeEvent?: Event;
|
|
4117
|
+
}
|
|
4118
|
+
/**
|
|
4119
|
+
* Keyboard event payload for keyup/keydown/enter
|
|
4120
|
+
*/
|
|
4121
|
+
interface TimePickerKeyboardEvent extends TimePickerFieldInfo {
|
|
4122
|
+
/** Keyboard event object */
|
|
4123
|
+
keyboardEvent?: KeyboardEvent;
|
|
4124
|
+
}
|
|
4125
|
+
/**
|
|
4126
|
+
* Focus/blur event payload
|
|
4127
|
+
*/
|
|
4128
|
+
interface TimePickerFocusEvent extends TimePickerFieldInfo {
|
|
4129
|
+
/** Native focus or blur event */
|
|
4130
|
+
focusEvent?: FocusEvent;
|
|
4131
|
+
}
|
|
4132
|
+
|
|
4133
|
+
declare class TimePickerComponent extends BaseControlValueAccessor<string> {
|
|
4134
|
+
ngControl: NgControl;
|
|
4135
|
+
private changeDetectorRef;
|
|
4136
|
+
timeInput?: ElementRef<HTMLInputElement>;
|
|
4137
|
+
/** Unique input identifier */
|
|
4138
|
+
protected rawInputId: string;
|
|
4139
|
+
/**
|
|
4140
|
+
* Identifier assigned to the inner control; combined with idPrefix when supplied.
|
|
4141
|
+
* @type string
|
|
4142
|
+
* @remarks Required Angular input; provide a stable identifier.
|
|
4143
|
+
*/
|
|
4144
|
+
set inputId(id: string);
|
|
4145
|
+
get inputId(): string;
|
|
4146
|
+
/**
|
|
4147
|
+
* Opens the browser native time picker popup window
|
|
4148
|
+
*/
|
|
4149
|
+
openTimePicker(): void;
|
|
4150
|
+
/**
|
|
4151
|
+
* Label text or translation key displayed for this control.
|
|
4152
|
+
* @default ''
|
|
4153
|
+
* @type string
|
|
4154
|
+
*/
|
|
4155
|
+
label: string;
|
|
4156
|
+
/**
|
|
4157
|
+
* Internal model getter/setter backed by the shared control value.
|
|
4158
|
+
* @type string
|
|
4159
|
+
*/
|
|
4160
|
+
get modelValue(): string;
|
|
4161
|
+
set modelValue(val: string);
|
|
4162
|
+
constructor(ngControl: NgControl, changeDetectorRef: ChangeDetectorRef);
|
|
4163
|
+
/**
|
|
4164
|
+
* Validation error message
|
|
4165
|
+
* @default ''
|
|
4166
|
+
* @type string
|
|
4167
|
+
*/
|
|
4168
|
+
errorMessage: string;
|
|
4169
|
+
/**
|
|
4170
|
+
* Marks this control as required in its existing template; parent-form validators remain separately configured.
|
|
4171
|
+
* @default false
|
|
4172
|
+
* @type boolean
|
|
4173
|
+
*/
|
|
4174
|
+
required: boolean;
|
|
4175
|
+
/**
|
|
4176
|
+
* Consumer-defined field identifier included in event metadata. Existing event payload key names are preserved.
|
|
4177
|
+
* @type string | number
|
|
4178
|
+
* @renamedFrom textFieldName
|
|
4179
|
+
*/
|
|
4180
|
+
fieldName: string | number;
|
|
4181
|
+
/**
|
|
4182
|
+
* Hint text or translation key displayed while the control is empty.
|
|
4183
|
+
* @default ''
|
|
4184
|
+
* @type string
|
|
4185
|
+
*/
|
|
4186
|
+
placeholder: string;
|
|
4187
|
+
/**
|
|
4188
|
+
* Requests the existing read-only behavior without disabling the parent form control.
|
|
4189
|
+
* @default false
|
|
4190
|
+
* @type boolean
|
|
4191
|
+
*/
|
|
4192
|
+
readonly: boolean;
|
|
4193
|
+
/**
|
|
4194
|
+
* Minimum selectable time
|
|
4195
|
+
* @type string
|
|
4196
|
+
*/
|
|
4197
|
+
minTime: string;
|
|
4198
|
+
/**
|
|
4199
|
+
* Maximum selectable time
|
|
4200
|
+
* @type string
|
|
4201
|
+
*/
|
|
4202
|
+
maxTime: string;
|
|
4203
|
+
/**
|
|
4204
|
+
* Emits when the component model-change handler runs.
|
|
4205
|
+
* @payload TimePickerFieldInfo
|
|
4206
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4207
|
+
* @renamedFrom onModelChange
|
|
4208
|
+
*/
|
|
4209
|
+
modelChange: EventEmitter<TimePickerFieldInfo>;
|
|
4210
|
+
/**
|
|
4211
|
+
* Emits from the existing change handler.
|
|
4212
|
+
* @payload TimePickerChange
|
|
4213
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4214
|
+
* @renamedFrom onChange
|
|
4215
|
+
*/
|
|
4216
|
+
changeCommitted: EventEmitter<TimePickerChange>;
|
|
4217
|
+
/**
|
|
4218
|
+
* Emits from the existing input/change handler.
|
|
4219
|
+
* @payload TimePickerChangeEvent
|
|
4220
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4221
|
+
* @renamedFrom onInputChange
|
|
4222
|
+
*/
|
|
4223
|
+
inputChanged: EventEmitter<TimePickerChangeEvent>;
|
|
4224
|
+
/**
|
|
4225
|
+
* Emits when the inner field gains focus.
|
|
4226
|
+
* @payload TimePickerFocusEvent
|
|
4227
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4228
|
+
* @renamedFrom onFocusChange
|
|
4229
|
+
*/
|
|
4230
|
+
focusGained: EventEmitter<TimePickerFocusEvent>;
|
|
4231
|
+
/**
|
|
4232
|
+
* Emits when the inner field loses focus.
|
|
4233
|
+
* @payload TimePickerFocusEvent
|
|
4234
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4235
|
+
* @renamedFrom onBlurChange
|
|
4236
|
+
*/
|
|
4237
|
+
focusLost: EventEmitter<TimePickerFocusEvent>;
|
|
4238
|
+
/**
|
|
4239
|
+
* Emits on the inner field keydown event.
|
|
4240
|
+
* @payload TimePickerKeyboardEvent
|
|
4241
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4242
|
+
* @renamedFrom onKeydownHandle
|
|
4243
|
+
*/
|
|
4244
|
+
keyPressed: EventEmitter<TimePickerKeyboardEvent>;
|
|
4245
|
+
/**
|
|
4246
|
+
* Emits on the inner field keyup event.
|
|
4247
|
+
* @payload TimePickerKeyboardEvent
|
|
4248
|
+
* @remarks Payload shape is unchanged; see the emitting handler for field metadata.
|
|
4249
|
+
* @renamedFrom onKeyupHandle
|
|
4250
|
+
*/
|
|
4251
|
+
keyReleased: EventEmitter<TimePickerKeyboardEvent>;
|
|
4252
|
+
/**
|
|
4253
|
+
* Reserved output retained for API compatibility. No emission site exists in the supplied implementation.
|
|
4254
|
+
* @payload TimePickerKeyboardEvent
|
|
4255
|
+
* @renamedFrom onKeyEnterHandle
|
|
4256
|
+
*/
|
|
4257
|
+
enterPressed: EventEmitter<TimePickerKeyboardEvent>;
|
|
4258
|
+
/**
|
|
4259
|
+
* Returns time picker field information
|
|
4260
|
+
*
|
|
4261
|
+
* @returns object containing model value and field name
|
|
4262
|
+
*/
|
|
4263
|
+
private fieldInfo;
|
|
4264
|
+
/**
|
|
4265
|
+
* Handles ngModel value change
|
|
4266
|
+
*
|
|
4267
|
+
* @param event Updated time value
|
|
4268
|
+
* @returns void (emits modelChange)
|
|
4269
|
+
*/
|
|
4270
|
+
handleModelChange(event: any): void;
|
|
4271
|
+
/**
|
|
4272
|
+
* Handles focus event
|
|
4273
|
+
*
|
|
4274
|
+
* @returns void (emits focusGained)
|
|
4275
|
+
*/
|
|
4276
|
+
onFocus(): void;
|
|
4277
|
+
/**
|
|
4278
|
+
* Handles blur event
|
|
4279
|
+
*
|
|
4280
|
+
* @returns void (emits focusLost)
|
|
4281
|
+
*/
|
|
4282
|
+
onBlur(): void;
|
|
4283
|
+
/**
|
|
4284
|
+
* Handles keyup event
|
|
4285
|
+
*
|
|
4286
|
+
* @param event Keyboard event
|
|
4287
|
+
* @returns void (emits keyReleased)
|
|
4288
|
+
*/
|
|
4289
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
4290
|
+
/**
|
|
4291
|
+
* Handles keydown event
|
|
4292
|
+
*
|
|
4293
|
+
* @param event Keyboard event
|
|
4294
|
+
* @returns void (emits keyPressed)
|
|
4295
|
+
*/
|
|
4296
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
4297
|
+
/**
|
|
4298
|
+
* Handles input event
|
|
4299
|
+
*
|
|
4300
|
+
* @param event Input event
|
|
4301
|
+
* @returns void (emits inputChanged)
|
|
4302
|
+
*/
|
|
4303
|
+
onInput(event: Event): void;
|
|
4304
|
+
/**
|
|
4305
|
+
* Handles change event
|
|
4306
|
+
*
|
|
4307
|
+
* @param event Change event
|
|
4308
|
+
* @returns void (emits changeCommitted)
|
|
4309
|
+
*/
|
|
4310
|
+
onChangeHandler(event: any): void;
|
|
4311
|
+
onEnter(event: Event): void;
|
|
4312
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, [{ optional: true; self: true; }, null]>;
|
|
4313
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "ui-time-picker", never, { "inputId": { "alias": "inputId"; "required": true; }; "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; }; "minTime": { "alias": "minTime"; "required": false; }; "maxTime": { "alias": "maxTime"; "required": false; }; }, { "modelChange": "modelChange"; "changeCommitted": "changeCommitted"; "inputChanged": "inputChanged"; "focusGained": "focusGained"; "focusLost": "focusLost"; "keyPressed": "keyPressed"; "keyReleased": "keyReleased"; "enterPressed": "enterPressed"; }, never, never, true, never>;
|
|
4314
|
+
}
|
|
4315
|
+
|
|
4316
|
+
declare class AutoPopulateCurrentDateDirective {
|
|
4317
|
+
private inputForm;
|
|
4318
|
+
/**
|
|
4319
|
+
* Enables the Shift+R shortcut that writes the current date into the attached form control.
|
|
4320
|
+
* @default true
|
|
4321
|
+
* @renamedFrom yarAutopopulateCurrentDate
|
|
4322
|
+
*/
|
|
4323
|
+
enabled: boolean;
|
|
4324
|
+
constructor(inputForm: NgControl);
|
|
4325
|
+
autoPopulateCurrentDate(keyboardEvent: any): void;
|
|
4326
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutoPopulateCurrentDateDirective, never>;
|
|
4327
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutoPopulateCurrentDateDirective, "[uiAutoPopulateCurrentDate]", never, { "enabled": { "alias": "uiAutoPopulateCurrentDate"; "required": false; }; }, {}, never, never, true, never>;
|
|
4328
|
+
}
|
|
4329
|
+
|
|
4330
|
+
declare class MaterialModule {
|
|
4331
|
+
private readonly icons;
|
|
4332
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
4333
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, [typeof i1$1.CommonModule, typeof i2.FormsModule, typeof i3.MatInputModule, typeof i4.MatIconModule, typeof i5.MatCheckboxModule, typeof i6.MatRadioModule, typeof i7.MatFormFieldModule, typeof i8.MatDatepickerModule, typeof i9.MatNativeDateModule, typeof i10.MatAutocompleteModule, typeof i11.TranslateModule, typeof i12.MatSelectModule, typeof i13.MatTooltipModule, typeof i14.MentionModule, typeof i15.NgxMatSelectSearchModule, typeof i16.MatSlideToggleModule, typeof i17.MatListModule], [typeof i1$1.CommonModule, typeof i2.FormsModule, typeof i3.MatInputModule, typeof i4.MatIconModule, typeof i5.MatCheckboxModule, typeof i6.MatRadioModule, typeof i7.MatFormFieldModule, typeof i8.MatDatepickerModule, typeof i9.MatNativeDateModule, typeof i10.MatAutocompleteModule, typeof i11.TranslateModule, typeof i12.MatSelectModule, typeof i13.MatTooltipModule, typeof i14.MentionModule, typeof i15.NgxMatSelectSearchModule, typeof i16.MatSlideToggleModule, typeof i17.MatListModule]>;
|
|
4334
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
declare class UiInputsModule {
|
|
4338
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiInputsModule, never>;
|
|
4339
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiInputsModule, never, [typeof i1.TextInputComponent, typeof TextAreaComponent, typeof CheckboxComponent, typeof RichTextEditorComponent, typeof RadioButtonComponent, typeof DatePickerComponent, typeof DateTimePickerComponent, typeof DateRangePickerComponent, typeof AutocompleteComponent, typeof NumberInputComponent, typeof i1.SearchableSelectComponent, typeof TimePickerComponent, typeof PasswordInputComponent, typeof SearchInputComponent, typeof TimeInputComponent, typeof i1.UiUtilitiesModule, typeof AdvancedSelectComponent, typeof SlideToggleComponent, typeof SegmentedControlComponent, typeof ActionMenuComponent, typeof FileUploadComponent, typeof PdfViewerComponent, typeof SearchFilterComponent, typeof SelectionListComponent], [typeof i1.TextInputComponent, typeof CheckboxComponent, typeof TextAreaComponent, typeof RichTextEditorComponent, typeof RadioButtonComponent, typeof DatePickerComponent, typeof DateTimePickerComponent, typeof DateRangePickerComponent, typeof AutocompleteComponent, typeof NumberInputComponent, typeof i1.SearchableSelectComponent, typeof TimePickerComponent, typeof SearchInputComponent, typeof PasswordInputComponent, typeof TimeInputComponent, typeof AdvancedSelectComponent, typeof SlideToggleComponent, typeof SegmentedControlComponent, typeof ActionMenuComponent, typeof FileUploadComponent, typeof PdfViewerComponent, typeof SearchFilterComponent, typeof SelectionListComponent]>;
|
|
4340
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UiInputsModule>;
|
|
4341
|
+
}
|
|
4342
|
+
|
|
4343
|
+
export { ActionMenuComponent, AdvancedSelectComponent, AutoPopulateCurrentDateDirective, AutocompleteComponent, CheckboxComponent, DatePickerComponent, DateRangePickerComponent, DateTimePickerComponent, FileUploadComponent, LibraryCommonService as LanguageService, LibraryCommonService, MaterialModule, NumberInputComponent, PasswordInputComponent, PdfViewerComponent, RadioButtonComponent, RadioButtonComponent as RadioGroupComponent, RichTextEditorComponent, RichTextEditorService, SearchFilterComponent, SearchInputComponent, SegmentedControlComponent, SelectionListComponent, SlideToggleComponent, TextAreaComponent, TimeInputComponent, TimePickerComponent, UiInputsModule };
|
|
4344
|
+
export type { SearchFilterValue, TabOption as SegmentOption };
|
|
4345
|
+
//# sourceMappingURL=index.d.ts.map
|