@radix-ng/primitives 1.0.5 → 1.0.7
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/aspect-ratio/README.md +1 -1
- package/fesm2022/radix-ng-primitives-accordion.mjs +40 -27
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +34 -34
- package/fesm2022/radix-ng-primitives-arrow.mjs +3 -3
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +11 -35
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-autocomplete.mjs +175 -125
- package/fesm2022/radix-ng-primitives-autocomplete.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +92 -35
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-button.mjs +11 -7
- package/fesm2022/radix-ng-primitives-button.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-calendar.mjs +140 -90
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +63 -46
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +37 -25
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-combobox.mjs +278 -177
- package/fesm2022/radix-ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-composite.mjs +50 -33
- package/fesm2022/radix-ng-primitives-composite.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-config.mjs +7 -5
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +48 -22
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +44 -28
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +73 -45
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +70 -40
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +93 -67
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-direction-provider.mjs +5 -4
- package/fesm2022/radix-ng-primitives-direction-provider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +20 -16
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-drawer.mjs +107 -81
- package/fesm2022/radix-ng-primitives-drawer.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-editable.mjs +53 -39
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-field.mjs +76 -50
- package/fesm2022/radix-ng-primitives-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-fieldset.mjs +8 -7
- package/fesm2022/radix-ng-primitives-fieldset.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs +77 -40
- package/fesm2022/radix-ng-primitives-floating-focus-manager.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-focus-guards.mjs +3 -3
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +7 -5
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-form.mjs +26 -17
- package/fesm2022/radix-ng-primitives-form.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-input.mjs +41 -22
- package/fesm2022/radix-ng-primitives-input.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +11 -8
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +274 -154
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +35 -17
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-meter.mjs +41 -30
- package/fesm2022/radix-ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +220 -183
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +93 -61
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +48 -38
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +150 -107
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +79 -47
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-portal.mjs +20 -13
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-presence.mjs +3 -3
- package/fesm2022/radix-ng-primitives-preview-card.mjs +119 -74
- package/fesm2022/radix-ng-primitives-preview-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +73 -46
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +58 -40
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-scroll-area.mjs +57 -41
- package/fesm2022/radix-ng-primitives-scroll-area.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +595 -102
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +11 -15
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +101 -64
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +53 -39
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +25 -20
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +76 -51
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +72 -41
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toast.mjs +75 -56
- package/fesm2022/radix-ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +39 -23
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +36 -36
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +52 -31
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +118 -63
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +31 -20
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/package.json +2 -2
- package/types/radix-ng-primitives-accordion.d.ts +1 -0
- package/types/radix-ng-primitives-aspect-ratio.d.ts +10 -23
- package/types/radix-ng-primitives-autocomplete.d.ts +3 -1
- package/types/radix-ng-primitives-avatar.d.ts +51 -25
- package/types/radix-ng-primitives-checkbox.d.ts +26 -98
- package/types/radix-ng-primitives-combobox.d.ts +28 -9
- package/types/radix-ng-primitives-context-menu.d.ts +2 -0
- package/types/radix-ng-primitives-dialog.d.ts +6 -3
- package/types/radix-ng-primitives-field.d.ts +33 -207
- package/types/radix-ng-primitives-floating-focus-manager.d.ts +11 -0
- package/types/radix-ng-primitives-form.d.ts +24 -33
- package/types/radix-ng-primitives-label.d.ts +3 -2
- package/types/radix-ng-primitives-menu.d.ts +47 -15
- package/types/radix-ng-primitives-menubar.d.ts +6 -1
- package/types/radix-ng-primitives-navigation-menu.d.ts +8 -6
- package/types/radix-ng-primitives-number-field.d.ts +1 -1
- package/types/radix-ng-primitives-popover.d.ts +12 -4
- package/types/radix-ng-primitives-preview-card.d.ts +18 -5
- package/types/radix-ng-primitives-progress.d.ts +59 -121
- package/types/radix-ng-primitives-radio.d.ts +0 -1
- package/types/radix-ng-primitives-select.d.ts +186 -391
- package/types/radix-ng-primitives-separator.d.ts +0 -7
- package/types/radix-ng-primitives-toggle-group.d.ts +7 -3
- package/types/radix-ng-primitives-toggle.d.ts +8 -8
- package/types/radix-ng-primitives-toolbar.d.ts +2 -0
- package/types/radix-ng-primitives-tooltip.d.ts +17 -3
|
@@ -20,10 +20,10 @@ import { injectFieldRootContext } from '@radix-ng/primitives/field';
|
|
|
20
20
|
* @group Components
|
|
21
21
|
*/
|
|
22
22
|
class RdxAutocompleteAnchor {
|
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
24
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteAnchor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
24
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteAnchor, isStandalone: true, selector: "[rdxAutocompleteAnchor]", exportAs: ["rdxAutocompleteAnchor"], hostDirectives: [{ directive: i1.RdxComboboxAnchor }], ngImport: i0 }); }
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteAnchor, decorators: [{
|
|
27
27
|
type: Directive,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: '[rdxAutocompleteAnchor]',
|
|
@@ -39,10 +39,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
39
39
|
* @group Components
|
|
40
40
|
*/
|
|
41
41
|
class RdxAutocompleteArrow {
|
|
42
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
43
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
42
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteArrow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
43
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteArrow, isStandalone: true, selector: "[rdxAutocompleteArrow]", exportAs: ["rdxAutocompleteArrow"], hostDirectives: [{ directive: i1$1.RdxPopperArrow, inputs: ["width", "width", "height", "height"] }], ngImport: i0 }); }
|
|
44
44
|
}
|
|
45
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteArrow, decorators: [{
|
|
46
46
|
type: Directive,
|
|
47
47
|
args: [{
|
|
48
48
|
selector: '[rdxAutocompleteArrow]',
|
|
@@ -58,10 +58,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
58
58
|
* @group Components
|
|
59
59
|
*/
|
|
60
60
|
class RdxAutocompleteBackdrop {
|
|
61
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
62
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
61
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteBackdrop, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
62
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteBackdrop, isStandalone: true, selector: "[rdxAutocompleteBackdrop]", exportAs: ["rdxAutocompleteBackdrop"], hostDirectives: [{ directive: i1.RdxComboboxBackdrop }], ngImport: i0 }); }
|
|
63
63
|
}
|
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteBackdrop, decorators: [{
|
|
65
65
|
type: Directive,
|
|
66
66
|
args: [{
|
|
67
67
|
selector: '[rdxAutocompleteBackdrop]',
|
|
@@ -238,15 +238,19 @@ class RdxAutocompleteRoot {
|
|
|
238
238
|
open: () => this.open()
|
|
239
239
|
});
|
|
240
240
|
/** The input text. This is the form value (controlled / uncontrolled via {@link defaultValue}). */
|
|
241
|
-
this.value = model('',
|
|
241
|
+
this.value = model('', /* @ts-ignore */
|
|
242
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
242
243
|
/** Initial input text when uncontrolled. */
|
|
243
|
-
this.defaultValue = input(
|
|
244
|
+
this.defaultValue = input(/* @ts-ignore */
|
|
245
|
+
...(ngDevMode ? [undefined, { debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
244
246
|
/** Whether the popup is open. */
|
|
245
|
-
this.open = model(false,
|
|
247
|
+
this.open = model(false, /* @ts-ignore */
|
|
248
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
246
249
|
/** Initial open state when uncontrolled. */
|
|
247
250
|
this.defaultOpen = input(false, { ...(ngDevMode ? { debugName: "defaultOpen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
248
251
|
/** Filtering / inline-completion behavior. See {@link AutocompleteMode}. */
|
|
249
|
-
this.mode = input('list',
|
|
252
|
+
this.mode = input('list', /* @ts-ignore */
|
|
253
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
250
254
|
/** Text direction. */
|
|
251
255
|
this.dirInput = input(undefined, { ...(ngDevMode ? { debugName: "dirInput" } : /* istanbul ignore next */ {}), alias: 'dir' });
|
|
252
256
|
this.dir = injectDirection(this.dirInput);
|
|
@@ -275,7 +279,8 @@ class RdxAutocompleteRoot {
|
|
|
275
279
|
return 'input-change';
|
|
276
280
|
}
|
|
277
281
|
return 'off';
|
|
278
|
-
},
|
|
282
|
+
}, /* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "autoHighlightMode" }] : /* istanbul ignore next */ []));
|
|
279
284
|
/** Whether moving the pointer over an item highlights it. */
|
|
280
285
|
this.highlightItemOnHover = input(true, { ...(ngDevMode ? { debugName: "highlightItemOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
281
286
|
/** Whether a pointer-driven highlight is kept when the cursor leaves the list. */
|
|
@@ -293,17 +298,21 @@ class RdxAutocompleteRoot {
|
|
|
293
298
|
* `undefined` → locale-aware contains; a function → custom `(value, query, itemToString)`; `null` →
|
|
294
299
|
* built-in filtering disabled.
|
|
295
300
|
*/
|
|
296
|
-
this.filter = input(undefined,
|
|
301
|
+
this.filter = input(undefined, /* @ts-ignore */
|
|
302
|
+
...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
297
303
|
/** Maximum number of matching items to show. `-1` (default) means no limit. */
|
|
298
304
|
this.limit = input(-1, { ...(ngDevMode ? { debugName: "limit" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
299
305
|
/** The full set of item values for {@link virtualized} mode. */
|
|
300
|
-
this.items = input(
|
|
306
|
+
this.items = input(/* @ts-ignore */
|
|
307
|
+
...(ngDevMode ? [undefined, { debugName: "items" }] : /* istanbul ignore next */ []));
|
|
301
308
|
/** Whether the list is externally virtualized (navigation runs over {@link items} by index). */
|
|
302
309
|
this.virtualized = input(false, { ...(ngDevMode ? { debugName: "virtualized" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
303
310
|
/** How item values are compared for equality (a comparator function or an object key). Base UI prop name. */
|
|
304
|
-
this.isItemEqualToValue = input(
|
|
311
|
+
this.isItemEqualToValue = input(/* @ts-ignore */
|
|
312
|
+
...(ngDevMode ? [undefined, { debugName: "isItemEqualToValue" }] : /* istanbul ignore next */ []));
|
|
305
313
|
/** Converts an item value to its string label (filter text + input text on selection). */
|
|
306
|
-
this.itemToStringValue = input(
|
|
314
|
+
this.itemToStringValue = input(/* @ts-ignore */
|
|
315
|
+
...(ngDevMode ? [undefined, { debugName: "itemToStringValue" }] : /* istanbul ignore next */ []));
|
|
307
316
|
/** Emits when the input value changes (typing, selection, or clear), with the reason. */
|
|
308
317
|
this.onValueChange = output();
|
|
309
318
|
/** Emits when the popup opens or closes. */
|
|
@@ -313,25 +322,36 @@ class RdxAutocompleteRoot {
|
|
|
313
322
|
/** Emits after the open/close transition (including any exit animation) finishes. */
|
|
314
323
|
this.onOpenChangeComplete = output();
|
|
315
324
|
/** Constant signals exposed to the combobox context (autocomplete is always single-value). */
|
|
316
|
-
this.alwaysFalse = signal(false,
|
|
317
|
-
|
|
318
|
-
this.
|
|
319
|
-
|
|
320
|
-
this.
|
|
321
|
-
|
|
322
|
-
this.
|
|
325
|
+
this.alwaysFalse = signal(false, /* @ts-ignore */
|
|
326
|
+
...(ngDevMode ? [{ debugName: "alwaysFalse" }] : /* istanbul ignore next */ []));
|
|
327
|
+
this.noneMode = signal('none', /* @ts-ignore */
|
|
328
|
+
...(ngDevMode ? [{ debugName: "noneMode" }] : /* istanbul ignore next */ []));
|
|
329
|
+
this.cvaDisabled = signal(false, /* @ts-ignore */
|
|
330
|
+
...(ngDevMode ? [{ debugName: "cvaDisabled" }] : /* istanbul ignore next */ []));
|
|
331
|
+
this.disabledState = computed(() => this.disabled() || this.cvaDisabled(), /* @ts-ignore */
|
|
332
|
+
...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
333
|
+
this.requiredState = computed(() => this.required(), /* @ts-ignore */
|
|
334
|
+
...(ngDevMode ? [{ debugName: "requiredState" }] : /* istanbul ignore next */ []));
|
|
335
|
+
this.preventUnmountOnClose = signal(false, /* @ts-ignore */
|
|
336
|
+
...(ngDevMode ? [{ debugName: "preventUnmountOnClose" }] : /* istanbul ignore next */ []));
|
|
337
|
+
this.present = computed(() => this.open() || this.preventUnmountOnClose(), /* @ts-ignore */
|
|
338
|
+
...(ngDevMode ? [{ debugName: "present" }] : /* istanbul ignore next */ []));
|
|
323
339
|
/** Whether built-in filtering applies in the current mode (`list` / `both`). */
|
|
324
|
-
this.filteringMode = computed(() => this.mode() === 'list' || this.mode() === 'both',
|
|
340
|
+
this.filteringMode = computed(() => this.mode() === 'list' || this.mode() === 'both', /* @ts-ignore */
|
|
341
|
+
...(ngDevMode ? [{ debugName: "filteringMode" }] : /* istanbul ignore next */ []));
|
|
325
342
|
/** Whether inline completion applies in the current mode (`both` / `inline`). */
|
|
326
|
-
this.inlineMode = computed(() => this.mode() === 'both' || this.mode() === 'inline',
|
|
343
|
+
this.inlineMode = computed(() => this.mode() === 'both' || this.mode() === 'inline', /* @ts-ignore */
|
|
344
|
+
...(ngDevMode ? [{ debugName: "inlineMode" }] : /* istanbul ignore next */ []));
|
|
327
345
|
/**
|
|
328
346
|
* Whether the input text is a fresh user query rather than a committed selection's label. While
|
|
329
347
|
* `false` (just opened, or showing a committed selection), the list is unfiltered; it flips `true`
|
|
330
348
|
* on the first keystroke.
|
|
331
349
|
*/
|
|
332
|
-
this.typed = signal(false,
|
|
350
|
+
this.typed = signal(false, /* @ts-ignore */
|
|
351
|
+
...(ngDevMode ? [{ debugName: "typed" }] : /* istanbul ignore next */ []));
|
|
333
352
|
/** The text the user actually typed, used as the filter query. */
|
|
334
|
-
this.query = computed(() => (this.typed() ? (this.value() ?? '') : ''),
|
|
353
|
+
this.query = computed(() => (this.typed() ? (this.value() ?? '') : ''), /* @ts-ignore */
|
|
354
|
+
...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
335
355
|
/** The shared engine: item registry, filtering, highlight navigation (grid), inline, transition. */
|
|
336
356
|
this.engine = useComboboxEngine({
|
|
337
357
|
injector: this.injector,
|
|
@@ -355,7 +375,8 @@ class RdxAutocompleteRoot {
|
|
|
355
375
|
onOpenChangeComplete: (open) => this.onOpenChangeComplete.emit(open)
|
|
356
376
|
});
|
|
357
377
|
/** What the input element displays: the inline preview if any, else the committed value. */
|
|
358
|
-
this.displayValue = computed(() => this.engine.inlinePreview() ?? this.value() ?? '',
|
|
378
|
+
this.displayValue = computed(() => this.engine.inlinePreview() ?? this.value() ?? '', /* @ts-ignore */
|
|
379
|
+
...(ngDevMode ? [{ debugName: "displayValue" }] : /* istanbul ignore next */ []));
|
|
359
380
|
engineRegistry.set(this, this.engine);
|
|
360
381
|
// Keep the dismissal reference in sync with the input (the anchor) so a press / focus on it counts
|
|
361
382
|
// as "inside" and never dismisses (ADR 0015).
|
|
@@ -585,14 +606,18 @@ class RdxAutocompleteRoot {
|
|
|
585
606
|
markAsTouched() {
|
|
586
607
|
this.onTouched?.();
|
|
587
608
|
}
|
|
588
|
-
commitValue(value, reason) {
|
|
609
|
+
commitValue(value, reason, event = new Event('autocomplete.value-change')) {
|
|
589
610
|
// Mirror combobox's guarded commit: never mutate the value while disabled or read-only
|
|
590
611
|
// (the input is the form value here, so Clear / item-press / typing must all be inert).
|
|
591
612
|
if (this.disabledState() || this.readOnly()) {
|
|
592
613
|
return;
|
|
593
614
|
}
|
|
615
|
+
const { eventDetails } = createCancelableChangeEventDetails(reason, event, this.resolveOpenChangeTrigger(event));
|
|
616
|
+
this.onValueChange.emit({ value, reason, eventDetails });
|
|
617
|
+
if (eventDetails.isCanceled()) {
|
|
618
|
+
return;
|
|
619
|
+
}
|
|
594
620
|
this.value.set(value);
|
|
595
|
-
this.onValueChange.emit({ value, reason });
|
|
596
621
|
this.onChange?.(value);
|
|
597
622
|
}
|
|
598
623
|
createOpenChangeEvent(open, reason, event) {
|
|
@@ -629,8 +654,8 @@ class RdxAutocompleteRoot {
|
|
|
629
654
|
setDisabledState(isDisabled) {
|
|
630
655
|
this.cvaDisabled.set(isDisabled);
|
|
631
656
|
}
|
|
632
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
633
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
657
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
658
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxAutocompleteRoot, isStandalone: true, selector: "[rdxAutocompleteRoot]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, dirInput: { classPropertyName: "dirInput", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, loopFocus: { classPropertyName: "loopFocus", publicName: "loopFocus", isSignal: true, isRequired: false, transformFunction: null }, autoHighlight: { classPropertyName: "autoHighlight", publicName: "autoHighlight", isSignal: true, isRequired: false, transformFunction: null }, highlightItemOnHover: { classPropertyName: "highlightItemOnHover", publicName: "highlightItemOnHover", isSignal: true, isRequired: false, transformFunction: null }, keepHighlight: { classPropertyName: "keepHighlight", publicName: "keepHighlight", isSignal: true, isRequired: false, transformFunction: null }, openOnInputClick: { classPropertyName: "openOnInputClick", publicName: "openOnInputClick", isSignal: true, isRequired: false, transformFunction: null }, modal: { classPropertyName: "modal", publicName: "modal", isSignal: true, isRequired: false, transformFunction: null }, submitOnItemClick: { classPropertyName: "submitOnItemClick", publicName: "submitOnItemClick", isSignal: true, isRequired: false, transformFunction: null }, grid: { classPropertyName: "grid", publicName: "grid", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, limit: { classPropertyName: "limit", publicName: "limit", isSignal: true, isRequired: false, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, virtualized: { classPropertyName: "virtualized", publicName: "virtualized", isSignal: true, isRequired: false, transformFunction: null }, isItemEqualToValue: { classPropertyName: "isItemEqualToValue", publicName: "isItemEqualToValue", isSignal: true, isRequired: false, transformFunction: null }, itemToStringValue: { classPropertyName: "itemToStringValue", publicName: "itemToStringValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", open: "openChange", onValueChange: "onValueChange", onOpenChange: "onOpenChange", onItemHighlighted: "onItemHighlighted", onOpenChangeComplete: "onOpenChangeComplete" }, host: { properties: { "attr.data-disabled": "disabledState() ? \"\" : undefined" } }, providers: [
|
|
634
659
|
provideComboboxRootContext(context),
|
|
635
660
|
{ provide: NG_VALUE_ACCESSOR, useExisting: RdxAutocompleteRoot, multi: true },
|
|
636
661
|
// New floating foundation (ADR 0015/0017) — the dismissal capability reads this shared context.
|
|
@@ -638,7 +663,7 @@ class RdxAutocompleteRoot {
|
|
|
638
663
|
provideFloatingRootContext(() => inject(RdxAutocompleteRoot).floatingContext)
|
|
639
664
|
], exportAs: ["rdxAutocompleteRoot"], hostDirectives: [{ directive: i1$1.RdxPopper }], ngImport: i0 }); }
|
|
640
665
|
}
|
|
641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteRoot, decorators: [{
|
|
642
667
|
type: Directive,
|
|
643
668
|
args: [{
|
|
644
669
|
selector: '[rdxAutocompleteRoot]',
|
|
@@ -665,17 +690,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
665
690
|
class RdxAutocompleteClear {
|
|
666
691
|
constructor() {
|
|
667
692
|
this.root = inject(RdxAutocompleteRoot);
|
|
668
|
-
this.isEmpty = computed(() => !this.root.value(),
|
|
693
|
+
this.isEmpty = computed(() => !this.root.value(), /* @ts-ignore */
|
|
694
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
669
695
|
/** Disabled when the control is disabled or read-only (clearing is a mutation). */
|
|
670
|
-
this.isDisabled = computed(() => this.root.disabledState() || this.root.readOnly(),
|
|
696
|
+
this.isDisabled = computed(() => this.root.disabledState() || this.root.readOnly(), /* @ts-ignore */
|
|
697
|
+
...(ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []));
|
|
671
698
|
}
|
|
672
699
|
onClick() {
|
|
673
700
|
this.root.clearValue();
|
|
674
701
|
}
|
|
675
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
676
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteClear, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
703
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteClear, isStandalone: true, selector: "button[rdxAutocompleteClear]", host: { attributes: { "type": "button", "tabindex": "-1", "aria-label": "Clear" }, listeners: { "click": "onClick()" }, properties: { "hidden": "isEmpty()", "attr.disabled": "isDisabled() ? \"\" : undefined" } }, exportAs: ["rdxAutocompleteClear"], hostDirectives: [{ directive: i1$2.RdxFloatingInsideElement }], ngImport: i0 }); }
|
|
677
704
|
}
|
|
678
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteClear, decorators: [{
|
|
679
706
|
type: Directive,
|
|
680
707
|
args: [{
|
|
681
708
|
selector: 'button[rdxAutocompleteClear]',
|
|
@@ -703,16 +730,17 @@ class RdxAutocompleteEmpty {
|
|
|
703
730
|
constructor() {
|
|
704
731
|
this.rootContext = injectComboboxRootContext();
|
|
705
732
|
/** Whether no items match the current query (drives projection of the message). */
|
|
706
|
-
this.isEmpty = computed(() => this.rootContext.visibleCount() === 0,
|
|
733
|
+
this.isEmpty = computed(() => this.rootContext.visibleCount() === 0, /* @ts-ignore */
|
|
734
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
707
735
|
}
|
|
708
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
709
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
736
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteEmpty, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
737
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.2", type: RdxAutocompleteEmpty, isStandalone: true, selector: "[rdxAutocompleteEmpty]", host: { attributes: { "role": "status", "aria-live": "polite", "aria-atomic": "true" }, properties: { "attr.data-empty": "isEmpty() ? \"\" : undefined" } }, exportAs: ["rdxAutocompleteEmpty"], ngImport: i0, template: `
|
|
710
738
|
@if (isEmpty()) {
|
|
711
739
|
<ng-content />
|
|
712
740
|
}
|
|
713
741
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
714
742
|
}
|
|
715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
743
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteEmpty, decorators: [{
|
|
716
744
|
type: Component,
|
|
717
745
|
args: [{
|
|
718
746
|
selector: '[rdxAutocompleteEmpty]',
|
|
@@ -741,10 +769,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
741
769
|
* @group Components
|
|
742
770
|
*/
|
|
743
771
|
class RdxAutocompleteGroup {
|
|
744
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
745
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
772
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
773
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteGroup, isStandalone: true, selector: "[rdxAutocompleteGroup]", exportAs: ["rdxAutocompleteGroup"], hostDirectives: [{ directive: i1.RdxComboboxGroup }], ngImport: i0 }); }
|
|
746
774
|
}
|
|
747
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteGroup, decorators: [{
|
|
748
776
|
type: Directive,
|
|
749
777
|
args: [{
|
|
750
778
|
selector: '[rdxAutocompleteGroup]',
|
|
@@ -760,10 +788,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
760
788
|
* @group Components
|
|
761
789
|
*/
|
|
762
790
|
class RdxAutocompleteGroupLabel {
|
|
763
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
764
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
791
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteGroupLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
792
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteGroupLabel, isStandalone: true, selector: "[rdxAutocompleteGroupLabel]", exportAs: ["rdxAutocompleteGroupLabel"], hostDirectives: [{ directive: i1.RdxComboboxGroupLabel }], ngImport: i0 }); }
|
|
765
793
|
}
|
|
766
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteGroupLabel, decorators: [{
|
|
767
795
|
type: Directive,
|
|
768
796
|
args: [{
|
|
769
797
|
selector: '[rdxAutocompleteGroupLabel]',
|
|
@@ -778,10 +806,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
778
806
|
* @group Components
|
|
779
807
|
*/
|
|
780
808
|
class RdxAutocompleteIcon {
|
|
781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
782
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
809
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
810
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteIcon, isStandalone: true, selector: "[rdxAutocompleteIcon]", exportAs: ["rdxAutocompleteIcon"], hostDirectives: [{ directive: i1.RdxComboboxIcon }], ngImport: i0 }); }
|
|
783
811
|
}
|
|
784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteIcon, decorators: [{
|
|
785
813
|
type: Directive,
|
|
786
814
|
args: [{
|
|
787
815
|
selector: '[rdxAutocompleteIcon]',
|
|
@@ -814,13 +842,13 @@ class RdxAutocompletePositioner extends RdxPopperContentWrapper {
|
|
|
814
842
|
cutout: () => root.inputElement() ?? null
|
|
815
843
|
}));
|
|
816
844
|
}
|
|
817
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
818
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
845
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePositioner, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
846
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompletePositioner, isStandalone: true, selector: "[rdxAutocompletePositioner]", providers: [
|
|
819
847
|
...provideRdxPopperContentWrapper(RdxAutocompletePositioner),
|
|
820
848
|
provideRdxPopperContentConfig({ sideOffset: 4, align: 'start' })
|
|
821
849
|
], exportAs: ["rdxAutocompletePositioner"], usesInheritance: true, ngImport: i0 }); }
|
|
822
850
|
}
|
|
823
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePositioner, decorators: [{
|
|
824
852
|
type: Directive,
|
|
825
853
|
args: [{
|
|
826
854
|
selector: '[rdxAutocompletePositioner]',
|
|
@@ -846,17 +874,24 @@ class RdxAutocompleteInput {
|
|
|
846
874
|
this.element = inject(ElementRef).nativeElement;
|
|
847
875
|
this.fieldRootContext = injectFieldRootContext(true);
|
|
848
876
|
/** The input id; Field labels and descriptions reference it for accessible relationships. */
|
|
849
|
-
this.id = input(injectId('rdx-autocomplete-input-'),
|
|
877
|
+
this.id = input(injectId('rdx-autocomplete-input-'), /* @ts-ignore */
|
|
878
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
850
879
|
/** Marks the input as invalid independently of any Field state. */
|
|
851
880
|
this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
852
881
|
// Mirrors the configured mode (matches Base UI): 'list' | 'both' | 'inline' | 'none' — all valid
|
|
853
882
|
// `aria-autocomplete` tokens. Must reflect the static mechanism, not the transient inline preview.
|
|
854
|
-
this.ariaAutocomplete = computed(() => this.root.mode(),
|
|
855
|
-
|
|
856
|
-
this.
|
|
857
|
-
|
|
858
|
-
this.
|
|
859
|
-
|
|
883
|
+
this.ariaAutocomplete = computed(() => this.root.mode(), /* @ts-ignore */
|
|
884
|
+
...(ngDevMode ? [{ debugName: "ariaAutocomplete" }] : /* istanbul ignore next */ []));
|
|
885
|
+
this.invalidState = computed(() => this.invalid() || Boolean(this.fieldRootContext?.invalidState()), /* @ts-ignore */
|
|
886
|
+
...(ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []));
|
|
887
|
+
this.disabledState = computed(() => this.root.disabledState() || Boolean(this.fieldRootContext?.disabledState()), /* @ts-ignore */
|
|
888
|
+
...(ngDevMode ? [{ debugName: "disabledState" }] : /* istanbul ignore next */ []));
|
|
889
|
+
this.requiredState = computed(() => this.root.requiredState() || Boolean(this.fieldRootContext?.requiredState()), /* @ts-ignore */
|
|
890
|
+
...(ngDevMode ? [{ debugName: "requiredState" }] : /* istanbul ignore next */ []));
|
|
891
|
+
this.filledState = computed(() => Boolean(this.root.value()) || Boolean(this.fieldRootContext?.filledState()), /* @ts-ignore */
|
|
892
|
+
...(ngDevMode ? [{ debugName: "filledState" }] : /* istanbul ignore next */ []));
|
|
893
|
+
this.focusedState = computed(() => Boolean(this.fieldRootContext?.focusedState()), /* @ts-ignore */
|
|
894
|
+
...(ngDevMode ? [{ debugName: "focusedState" }] : /* istanbul ignore next */ []));
|
|
860
895
|
this.describedBy = computed(() => {
|
|
861
896
|
if (!this.fieldRootContext) {
|
|
862
897
|
return undefined;
|
|
@@ -866,7 +901,8 @@ class RdxAutocompleteInput {
|
|
|
866
901
|
...(this.fieldRootContext.invalidState() ? this.fieldRootContext.errorIds() : [])
|
|
867
902
|
];
|
|
868
903
|
return ids.length ? ids.join(' ') : undefined;
|
|
869
|
-
},
|
|
904
|
+
}, /* @ts-ignore */
|
|
905
|
+
...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
870
906
|
/** Whether an IME composition is in progress (CJK). While composing, don't filter or select. */
|
|
871
907
|
this.composing = false;
|
|
872
908
|
this.dataAttr = attr$1;
|
|
@@ -1023,10 +1059,10 @@ class RdxAutocompleteInput {
|
|
|
1023
1059
|
break;
|
|
1024
1060
|
}
|
|
1025
1061
|
}
|
|
1026
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1027
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1062
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1063
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxAutocompleteInput, isStandalone: true, selector: "input[rdxAutocompleteInput]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "combobox", "autocomplete": "off" }, listeners: { "input": "onInput($event)", "click": "onClick($event)", "focus": "onFocus()", "blur": "onBlur()", "keydown": "onKeydown($event)", "compositionstart": "composing = true", "compositionend": "onCompositionEnd($event)" }, properties: { "attr.aria-autocomplete": "ariaAutocomplete()", "attr.id": "id()", "attr.aria-haspopup": "root.grid() ? \"grid\" : \"listbox\"", "attr.aria-expanded": "root.open()", "attr.aria-controls": "root.listId", "attr.aria-labelledby": "root.labelId()", "attr.aria-activedescendant": "root.activeId()", "attr.aria-describedby": "describedBy()", "attr.aria-invalid": "invalidState() ? \"true\" : undefined", "attr.aria-required": "requiredState() ? \"true\" : undefined", "attr.aria-disabled": "disabledState() ? \"true\" : undefined", "attr.disabled": "disabledState() ? \"\" : undefined", "attr.readonly": "root.readOnly() ? \"\" : undefined", "attr.required": "requiredState() ? \"\" : undefined", "value": "root.displayValue()", "attr.data-popup-open": "dataAttr(root.open())", "attr.data-list-empty": "dataAttr(root.visibleCount() === 0)", "attr.data-invalid": "dataAttr(invalidState())", "attr.data-valid": "dataAttr(!invalidState())", "attr.data-disabled": "dataAttr(disabledState())", "attr.data-required": "dataAttr(requiredState())", "attr.data-filled": "dataAttr(filledState())", "attr.data-focused": "dataAttr(focusedState())" } }, exportAs: ["rdxAutocompleteInput"], hostDirectives: [{ directive: i1$1.RdxPopperAnchor }, { directive: i1$2.RdxFloatingInsideElement }], ngImport: i0 }); }
|
|
1028
1064
|
}
|
|
1029
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1065
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteInput, decorators: [{
|
|
1030
1066
|
type: Directive,
|
|
1031
1067
|
args: [{
|
|
1032
1068
|
selector: 'input[rdxAutocompleteInput]',
|
|
@@ -1081,10 +1117,10 @@ class RdxAutocompleteInputGroup {
|
|
|
1081
1117
|
this.root = inject(RdxAutocompleteRoot);
|
|
1082
1118
|
this.dataAttr = attr;
|
|
1083
1119
|
}
|
|
1084
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1085
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteInputGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1121
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteInputGroup, isStandalone: true, selector: "[rdxAutocompleteInputGroup]", host: { properties: { "attr.data-popup-open": "dataAttr(root.open())", "attr.data-disabled": "dataAttr(root.disabledState())", "attr.data-required": "dataAttr(root.requiredState())", "attr.data-filled": "dataAttr(!!root.value())" } }, exportAs: ["rdxAutocompleteInputGroup"], ngImport: i0 }); }
|
|
1086
1122
|
}
|
|
1087
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteInputGroup, decorators: [{
|
|
1088
1124
|
type: Directive,
|
|
1089
1125
|
args: [{
|
|
1090
1126
|
selector: '[rdxAutocompleteInputGroup]',
|
|
@@ -1106,10 +1142,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1106
1142
|
* @group Components
|
|
1107
1143
|
*/
|
|
1108
1144
|
class RdxAutocompleteRow {
|
|
1109
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1110
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1145
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteRow, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1146
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteRow, isStandalone: true, selector: "[rdxAutocompleteRow]", host: { attributes: { "role": "row" } }, exportAs: ["rdxAutocompleteRow"], ngImport: i0 }); }
|
|
1111
1147
|
}
|
|
1112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteRow, decorators: [{
|
|
1113
1149
|
type: Directive,
|
|
1114
1150
|
args: [{
|
|
1115
1151
|
selector: '[rdxAutocompleteRow]',
|
|
@@ -1153,10 +1189,13 @@ class RdxAutocompleteItem {
|
|
|
1153
1189
|
/** Whether the option is disabled. */
|
|
1154
1190
|
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1155
1191
|
/** The option's index in the list. Required in virtualized mode. */
|
|
1156
|
-
this.index = input(
|
|
1192
|
+
this.index = input(/* @ts-ignore */
|
|
1193
|
+
...(ngDevMode ? [undefined, { debugName: "index" }] : /* istanbul ignore next */ []));
|
|
1157
1194
|
this.virtualized = this.rootContext.virtualized;
|
|
1158
|
-
this.autoTextValue = signal('',
|
|
1159
|
-
|
|
1195
|
+
this.autoTextValue = signal('', /* @ts-ignore */
|
|
1196
|
+
...(ngDevMode ? [{ debugName: "autoTextValue" }] : /* istanbul ignore next */ []));
|
|
1197
|
+
this.textValue = computed(() => this.textValueInput() || this.autoTextValue(), /* @ts-ignore */
|
|
1198
|
+
...(ngDevMode ? [{ debugName: "textValue" }] : /* istanbul ignore next */ []));
|
|
1160
1199
|
/**
|
|
1161
1200
|
* The option's effective value: the explicit `[value]` if bound (preserving `0` / `''` / `null`),
|
|
1162
1201
|
* otherwise the text content (autocomplete's value is the input string). Only an absent input —
|
|
@@ -1165,19 +1204,27 @@ class RdxAutocompleteItem {
|
|
|
1165
1204
|
this.value = computed(() => {
|
|
1166
1205
|
const bound = this.valueInput();
|
|
1167
1206
|
return bound === undefined ? this.textValue() : bound;
|
|
1168
|
-
},
|
|
1169
|
-
|
|
1170
|
-
this.
|
|
1171
|
-
|
|
1207
|
+
}, /* @ts-ignore */
|
|
1208
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
1209
|
+
this.elementId = computed(() => this.virtualized() ? this.rootContext.itemId(this.index() ?? -1) : this.id, /* @ts-ignore */
|
|
1210
|
+
...(ngDevMode ? [{ debugName: "elementId" }] : /* istanbul ignore next */ []));
|
|
1211
|
+
this.ariaSetSize = computed(() => this.virtualized() ? this.rootContext.filteredItems().length : undefined, /* @ts-ignore */
|
|
1212
|
+
...(ngDevMode ? [{ debugName: "ariaSetSize" }] : /* istanbul ignore next */ []));
|
|
1213
|
+
this.ariaPosInSet = computed(() => (this.virtualized() ? (this.index() ?? -1) + 1 : undefined), /* @ts-ignore */
|
|
1214
|
+
...(ngDevMode ? [{ debugName: "ariaPosInSet" }] : /* istanbul ignore next */ []));
|
|
1172
1215
|
/** The nearest enclosing grid row, if any (drives the `gridcell` role). */
|
|
1173
1216
|
this.row = inject(RdxAutocompleteRow, { optional: true });
|
|
1174
1217
|
/** `gridcell` only when actually inside a `RdxAutocompleteRow` of a grid list; otherwise `option`. */
|
|
1175
|
-
this.role = computed(() => (this.rootContext.grid() && this.row ? 'gridcell' : 'option'),
|
|
1176
|
-
|
|
1177
|
-
this.
|
|
1218
|
+
this.role = computed(() => (this.rootContext.grid() && this.row ? 'gridcell' : 'option'), /* @ts-ignore */
|
|
1219
|
+
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
1220
|
+
this.isVisible = computed(() => (this.virtualized() ? true : this.rootContext.isVisible(this)), /* @ts-ignore */
|
|
1221
|
+
...(ngDevMode ? [{ debugName: "isVisible" }] : /* istanbul ignore next */ []));
|
|
1222
|
+
this.isSelected = computed(() => this.rootContext.isSelected(this.value()), /* @ts-ignore */
|
|
1223
|
+
...(ngDevMode ? [{ debugName: "isSelected" }] : /* istanbul ignore next */ []));
|
|
1178
1224
|
this.isHighlighted = computed(() => this.virtualized()
|
|
1179
1225
|
? this.rootContext.highlightedIndex() === this.index()
|
|
1180
|
-
: this.rootContext.highlightedItem() === this,
|
|
1226
|
+
: this.rootContext.highlightedItem() === this, /* @ts-ignore */
|
|
1227
|
+
...(ngDevMode ? [{ debugName: "isHighlighted" }] : /* istanbul ignore next */ []));
|
|
1181
1228
|
this.group = injectComboboxGroupContext(true);
|
|
1182
1229
|
// Whether a primary-button pointerdown started on **this** item. A normal press+release here is
|
|
1183
1230
|
// committed by `click`; `mouseup` is only the drag-end fallback for a press that began *elsewhere*.
|
|
@@ -1290,10 +1337,10 @@ class RdxAutocompleteItem {
|
|
|
1290
1337
|
}
|
|
1291
1338
|
this.rootContext.clearHighlight();
|
|
1292
1339
|
}
|
|
1293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1294
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1340
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1341
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxAutocompleteItem, isStandalone: true, selector: "[rdxAutocompleteItem]", inputs: { valueInput: { classPropertyName: "valueInput", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, textValueInput: { classPropertyName: "textValueInput", publicName: "textValue", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerdown": "onPointerDown($event)", "mousedown": "onMouseDown($event)", "mouseup": "onMouseUp($event)", "click": "onClick()", "pointermove": "onPointerMove()", "pointerleave": "onPointerLeave($event)" }, properties: { "attr.role": "role()", "attr.id": "elementId()", "attr.aria-disabled": "disabled() ? \"true\" : undefined", "attr.aria-setsize": "ariaSetSize()", "attr.aria-posinset": "ariaPosInSet()", "attr.data-highlighted": "isHighlighted() ? \"\" : undefined", "attr.data-disabled": "disabled() ? \"\" : undefined", "hidden": "!isVisible()", "attr.data-hidden": "isVisible() ? undefined : \"\"" } }, providers: [provideComboboxItemContext(itemContext)], exportAs: ["rdxAutocompleteItem"], ngImport: i0 }); }
|
|
1295
1342
|
}
|
|
1296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1343
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteItem, decorators: [{
|
|
1297
1344
|
type: Directive,
|
|
1298
1345
|
args: [{
|
|
1299
1346
|
selector: '[rdxAutocompleteItem]',
|
|
@@ -1328,10 +1375,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1328
1375
|
* @group Components
|
|
1329
1376
|
*/
|
|
1330
1377
|
class RdxAutocompleteItemIndicator {
|
|
1331
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1332
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteItemIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1379
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteItemIndicator, isStandalone: true, selector: "[rdxAutocompleteItemIndicator]", exportAs: ["rdxAutocompleteItemIndicator"], hostDirectives: [{ directive: i1.RdxComboboxItemIndicator }], ngImport: i0 }); }
|
|
1333
1380
|
}
|
|
1334
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteItemIndicator, decorators: [{
|
|
1335
1382
|
type: Directive,
|
|
1336
1383
|
args: [{
|
|
1337
1384
|
selector: '[rdxAutocompleteItemIndicator]',
|
|
@@ -1347,10 +1394,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1347
1394
|
* @group Components
|
|
1348
1395
|
*/
|
|
1349
1396
|
class RdxAutocompleteLabel {
|
|
1350
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1351
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1398
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteLabel, isStandalone: true, selector: "[rdxAutocompleteLabel]", exportAs: ["rdxAutocompleteLabel"], hostDirectives: [{ directive: i1.RdxComboboxLabel }], ngImport: i0 }); }
|
|
1352
1399
|
}
|
|
1353
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteLabel, decorators: [{
|
|
1354
1401
|
type: Directive,
|
|
1355
1402
|
args: [{
|
|
1356
1403
|
selector: '[rdxAutocompleteLabel]',
|
|
@@ -1388,10 +1435,10 @@ class RdxAutocompleteList {
|
|
|
1388
1435
|
this.root.selectHighlighted();
|
|
1389
1436
|
}
|
|
1390
1437
|
}
|
|
1391
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1392
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1438
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteList, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1439
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteList, isStandalone: true, selector: "[rdxAutocompleteList]", host: { attributes: { "tabindex": "-1" }, listeners: { "keydown": "onKeydown($event)" }, properties: { "attr.role": "root.grid() ? \"grid\" : \"listbox\"", "attr.id": "root.listId" } }, exportAs: ["rdxAutocompleteList"], ngImport: i0 }); }
|
|
1393
1440
|
}
|
|
1394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteList, decorators: [{
|
|
1395
1442
|
type: Directive,
|
|
1396
1443
|
args: [{
|
|
1397
1444
|
selector: '[rdxAutocompleteList]',
|
|
@@ -1491,10 +1538,10 @@ class RdxAutocompletePopup {
|
|
|
1491
1538
|
input.focus();
|
|
1492
1539
|
}
|
|
1493
1540
|
}
|
|
1494
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1495
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1541
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePopup, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1542
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompletePopup, isStandalone: true, selector: "[rdxAutocompletePopup]", host: { attributes: { "tabindex": "-1" }, listeners: { "focusin": "onFocusIn($event)" }, properties: { "attr.role": "root.inputLayout() === \"inside\" ? \"dialog\" : \"presentation\"", "attr.data-open": "root.open() ? \"\" : undefined", "attr.data-closed": "root.open() ? undefined : \"\"", "attr.data-empty": "root.visibleCount() === 0 ? \"\" : undefined", "attr.data-starting-style": "root.transitionStatus() === \"starting\" ? \"\" : undefined", "attr.data-ending-style": "root.transitionStatus() === \"ending\" ? \"\" : undefined" } }, exportAs: ["rdxAutocompletePopup"], hostDirectives: [{ directive: i1$1.RdxPopperContent }, { directive: i2.RdxFloatingNodeRegistration }], ngImport: i0 }); }
|
|
1496
1543
|
}
|
|
1497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePopup, decorators: [{
|
|
1498
1545
|
type: Directive,
|
|
1499
1546
|
args: [{
|
|
1500
1547
|
selector: '[rdxAutocompletePopup]',
|
|
@@ -1505,9 +1552,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1505
1552
|
// a presentational wrapper around the `listbox` (the List part owns the listbox role).
|
|
1506
1553
|
tabindex: '-1',
|
|
1507
1554
|
'[attr.role]': 'root.inputLayout() === "inside" ? "dialog" : "presentation"',
|
|
1508
|
-
'[attr.data-state]': 'root.open() ? "open" : "closed"',
|
|
1509
1555
|
'[attr.data-open]': 'root.open() ? "" : undefined',
|
|
1510
1556
|
'[attr.data-closed]': 'root.open() ? undefined : ""',
|
|
1557
|
+
'[attr.data-empty]': 'root.visibleCount() === 0 ? "" : undefined',
|
|
1511
1558
|
'[attr.data-starting-style]': 'root.transitionStatus() === "starting" ? "" : undefined',
|
|
1512
1559
|
'[attr.data-ending-style]': 'root.transitionStatus() === "ending" ? "" : undefined',
|
|
1513
1560
|
'(focusin)': 'onFocusIn($event)'
|
|
@@ -1528,10 +1575,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1528
1575
|
* @group Components
|
|
1529
1576
|
*/
|
|
1530
1577
|
class RdxAutocompletePortal {
|
|
1531
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1532
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1578
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePortal, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1579
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompletePortal, isStandalone: true, selector: "ng-template[rdxAutocompletePortal]", exportAs: ["rdxAutocompletePortal"], hostDirectives: [{ directive: i1.RdxComboboxPortal, inputs: ["container", "container"] }], ngImport: i0 }); }
|
|
1533
1580
|
}
|
|
1534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePortal, decorators: [{
|
|
1535
1582
|
type: Directive,
|
|
1536
1583
|
args: [{
|
|
1537
1584
|
selector: 'ng-template[rdxAutocompletePortal]',
|
|
@@ -1553,10 +1600,10 @@ class RdxAutocompletePortalMisuseGuard {
|
|
|
1553
1600
|
'rdxAutocompletePortalPresence has been removed.', 'components/autocomplete');
|
|
1554
1601
|
}
|
|
1555
1602
|
}
|
|
1556
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1557
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1603
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePortalMisuseGuard, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1604
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompletePortalMisuseGuard, isStandalone: true, selector: "[rdxAutocompletePortal]:not(ng-template)", ngImport: i0 }); }
|
|
1558
1605
|
}
|
|
1559
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1606
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompletePortalMisuseGuard, decorators: [{
|
|
1560
1607
|
type: Directive,
|
|
1561
1608
|
args: [{
|
|
1562
1609
|
selector: '[rdxAutocompletePortal]:not(ng-template)'
|
|
@@ -1569,10 +1616,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1569
1616
|
* @group Components
|
|
1570
1617
|
*/
|
|
1571
1618
|
class RdxAutocompleteSeparator {
|
|
1572
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1573
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1619
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteSeparator, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1620
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteSeparator, isStandalone: true, selector: "[rdxAutocompleteSeparator]", exportAs: ["rdxAutocompleteSeparator"], hostDirectives: [{ directive: i1.RdxComboboxSeparator }], ngImport: i0 }); }
|
|
1574
1621
|
}
|
|
1575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteSeparator, decorators: [{
|
|
1576
1623
|
type: Directive,
|
|
1577
1624
|
args: [{
|
|
1578
1625
|
selector: '[rdxAutocompleteSeparator]',
|
|
@@ -1588,10 +1635,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1588
1635
|
* @group Components
|
|
1589
1636
|
*/
|
|
1590
1637
|
class RdxAutocompleteStatus {
|
|
1591
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1592
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1638
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteStatus, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1639
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteStatus, isStandalone: true, selector: "[rdxAutocompleteStatus]", exportAs: ["rdxAutocompleteStatus"], hostDirectives: [{ directive: i1.RdxComboboxStatus }], ngImport: i0 }); }
|
|
1593
1640
|
}
|
|
1594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1641
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteStatus, decorators: [{
|
|
1595
1642
|
type: Directive,
|
|
1596
1643
|
args: [{
|
|
1597
1644
|
selector: '[rdxAutocompleteStatus]',
|
|
@@ -1607,10 +1654,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
1607
1654
|
* @group Components
|
|
1608
1655
|
*/
|
|
1609
1656
|
class RdxAutocompleteTrigger {
|
|
1610
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1611
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1657
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1658
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.2", type: RdxAutocompleteTrigger, isStandalone: true, selector: "button[rdxAutocompleteTrigger]", exportAs: ["rdxAutocompleteTrigger"], hostDirectives: [{ directive: i1.RdxComboboxTrigger }], ngImport: i0 }); }
|
|
1612
1659
|
}
|
|
1613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1660
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteTrigger, decorators: [{
|
|
1614
1661
|
type: Directive,
|
|
1615
1662
|
args: [{
|
|
1616
1663
|
selector: 'button[rdxAutocompleteTrigger]',
|
|
@@ -1632,15 +1679,18 @@ class RdxAutocompleteValue {
|
|
|
1632
1679
|
constructor() {
|
|
1633
1680
|
this.root = inject(RdxAutocompleteRoot);
|
|
1634
1681
|
/** Text shown when the value is empty. */
|
|
1635
|
-
this.placeholder = input(
|
|
1636
|
-
|
|
1682
|
+
this.placeholder = input(/* @ts-ignore */
|
|
1683
|
+
...(ngDevMode ? [undefined, { debugName: "placeholder" }] : /* istanbul ignore next */ []));
|
|
1684
|
+
this.isEmpty = computed(() => !this.root.value(), /* @ts-ignore */
|
|
1685
|
+
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
1637
1686
|
/** The current input value, or the `placeholder` when empty. */
|
|
1638
|
-
this.slotText = computed(() => this.root.value() || (this.placeholder() ?? ''),
|
|
1687
|
+
this.slotText = computed(() => this.root.value() || (this.placeholder() ?? ''), /* @ts-ignore */
|
|
1688
|
+
...(ngDevMode ? [{ debugName: "slotText" }] : /* istanbul ignore next */ []));
|
|
1639
1689
|
}
|
|
1640
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1641
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1690
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteValue, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1691
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: RdxAutocompleteValue, isStandalone: true, selector: "[rdxAutocompleteValue]", inputs: { placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-placeholder": "isEmpty() ? \"\" : undefined" } }, exportAs: ["rdxAutocompleteValue"], ngImport: i0 }); }
|
|
1642
1692
|
}
|
|
1643
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1693
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteValue, decorators: [{
|
|
1644
1694
|
type: Directive,
|
|
1645
1695
|
args: [{
|
|
1646
1696
|
selector: '[rdxAutocompleteValue]',
|
|
@@ -1678,8 +1728,8 @@ const _importsAutocomplete = [
|
|
|
1678
1728
|
RdxAutocompleteStatus
|
|
1679
1729
|
];
|
|
1680
1730
|
class RdxAutocompleteModule {
|
|
1681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1682
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1731
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1732
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteModule, imports: [RdxAutocompleteRoot,
|
|
1683
1733
|
RdxAutocompleteAnchor,
|
|
1684
1734
|
RdxAutocompleteLabel,
|
|
1685
1735
|
RdxAutocompleteInputGroup,
|
|
@@ -1726,9 +1776,9 @@ class RdxAutocompleteModule {
|
|
|
1726
1776
|
RdxAutocompleteGroupLabel,
|
|
1727
1777
|
RdxAutocompleteEmpty,
|
|
1728
1778
|
RdxAutocompleteStatus] }); }
|
|
1729
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1779
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteModule }); }
|
|
1730
1780
|
}
|
|
1731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: RdxAutocompleteModule, decorators: [{
|
|
1732
1782
|
type: NgModule,
|
|
1733
1783
|
args: [{
|
|
1734
1784
|
imports: [..._importsAutocomplete],
|