@qualcomm-ui/angular-core 1.5.0 → 2.0.0
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/fesm2022/qualcomm-ui-angular-core-accordion.mjs +44 -50
- package/fesm2022/qualcomm-ui-angular-core-accordion.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs +24 -24
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs +56 -66
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs +22 -24
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-collection.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-collection.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs +116 -152
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs +64 -78
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs +15 -15
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-events.mjs +4 -4
- package/fesm2022/qualcomm-ui-angular-core-events.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-highlight.mjs +9 -15
- package/fesm2022/qualcomm-ui-angular-core-highlight.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs +32 -32
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-input.mjs +35 -51
- package/fesm2022/qualcomm-ui-angular-core-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs +11 -23
- package/fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs +20 -20
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs +111 -127
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs +80 -106
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-observers.mjs +3 -3
- package/fesm2022/qualcomm-ui-angular-core-observers.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs +46 -60
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs +46 -50
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs +62 -66
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs +18 -22
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs +18 -24
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs +31 -30
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs +47 -52
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs +72 -80
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs +32 -38
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-select.mjs +88 -102
- package/fesm2022/qualcomm-ui-angular-core-select.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-side-nav.mjs +44 -58
- package/fesm2022/qualcomm-ui-angular-core-side-nav.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs +2 -2
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-slider.mjs +98 -102
- package/fesm2022/qualcomm-ui-angular-core-slider.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-state.mjs +5 -5
- package/fesm2022/qualcomm-ui-angular-core-state.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs +38 -40
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs +51 -65
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs +34 -34
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs +37 -37
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs +30 -30
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs +37 -45
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-tree.mjs +70 -78
- package/fesm2022/qualcomm-ui-angular-core-tree.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs +5 -5
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs.map +1 -1
- package/package.json +57 -57
- package/{accordion/index.d.ts → types/qualcomm-ui-angular-core-accordion.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-accordion.d.ts.map +1 -0
- package/{attributes/index.d.ts → types/qualcomm-ui-angular-core-attributes.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-attributes.d.ts.map +1 -0
- package/{avatar/index.d.ts → types/qualcomm-ui-angular-core-avatar.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-avatar.d.ts.map +1 -0
- package/{checkbox/index.d.ts → types/qualcomm-ui-angular-core-checkbox.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-checkbox.d.ts.map +1 -0
- package/{collapsible/index.d.ts → types/qualcomm-ui-angular-core-collapsible.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-collapsible.d.ts.map +1 -0
- package/{collection/index.d.ts → types/qualcomm-ui-angular-core-collection.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-collection.d.ts.map +1 -0
- package/{combobox/index.d.ts → types/qualcomm-ui-angular-core-combobox.d.ts} +2 -2
- package/types/qualcomm-ui-angular-core-combobox.d.ts.map +1 -0
- package/{common/index.d.ts → types/qualcomm-ui-angular-core-common.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-common.d.ts.map +1 -0
- package/{dialog/index.d.ts → types/qualcomm-ui-angular-core-dialog.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-dialog.d.ts.map +1 -0
- package/{dom/index.d.ts → types/qualcomm-ui-angular-core-dom.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-dom.d.ts.map +1 -0
- package/{events/index.d.ts → types/qualcomm-ui-angular-core-events.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-events.d.ts.map +1 -0
- package/{forms/index.d.ts → types/qualcomm-ui-angular-core-forms.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-forms.d.ts.map +1 -0
- package/{highlight/index.d.ts → types/qualcomm-ui-angular-core-highlight.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-highlight.d.ts.map +1 -0
- package/{inline-notification/index.d.ts → types/qualcomm-ui-angular-core-inline-notification.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-inline-notification.d.ts.map +1 -0
- package/{input/index.d.ts → types/qualcomm-ui-angular-core-input.d.ts} +2 -2
- package/types/qualcomm-ui-angular-core-input.d.ts.map +1 -0
- package/{locale/index.d.ts → types/qualcomm-ui-angular-core-locale.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-locale.d.ts.map +1 -0
- package/{lorem-ipsum/index.d.ts → types/qualcomm-ui-angular-core-lorem-ipsum.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-lorem-ipsum.d.ts.map +1 -0
- package/{lucide/index.d.ts → types/qualcomm-ui-angular-core-lucide.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-lucide.d.ts.map +1 -0
- package/{machine/index.d.ts → types/qualcomm-ui-angular-core-machine.d.ts} +2 -2
- package/types/qualcomm-ui-angular-core-machine.d.ts.map +1 -0
- package/{menu/index.d.ts → types/qualcomm-ui-angular-core-menu.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-menu.d.ts.map +1 -0
- package/{number-input/index.d.ts → types/qualcomm-ui-angular-core-number-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-number-input.d.ts.map +1 -0
- package/{observers/index.d.ts → types/qualcomm-ui-angular-core-observers.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-observers.d.ts.map +1 -0
- package/{pagination/index.d.ts → types/qualcomm-ui-angular-core-pagination.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-pagination.d.ts.map +1 -0
- package/{password-input/index.d.ts → types/qualcomm-ui-angular-core-password-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-password-input.d.ts.map +1 -0
- package/{popover/index.d.ts → types/qualcomm-ui-angular-core-popover.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-popover.d.ts.map +1 -0
- package/{portal/index.d.ts → types/qualcomm-ui-angular-core-portal.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-portal.d.ts.map +1 -0
- package/{presence/index.d.ts → types/qualcomm-ui-angular-core-presence.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-presence.d.ts.map +1 -0
- package/{progress-ring/index.d.ts → types/qualcomm-ui-angular-core-progress-ring.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-progress-ring.d.ts.map +1 -0
- package/{progress/index.d.ts → types/qualcomm-ui-angular-core-progress.d.ts} +6 -2
- package/types/qualcomm-ui-angular-core-progress.d.ts.map +1 -0
- package/{radio/index.d.ts → types/qualcomm-ui-angular-core-radio.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-radio.d.ts.map +1 -0
- package/{segmented-control/index.d.ts → types/qualcomm-ui-angular-core-segmented-control.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-segmented-control.d.ts.map +1 -0
- package/{select/index.d.ts → types/qualcomm-ui-angular-core-select.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-select.d.ts.map +1 -0
- package/{side-nav/index.d.ts → types/qualcomm-ui-angular-core-side-nav.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-side-nav.d.ts.map +1 -0
- package/{signals/index.d.ts → types/qualcomm-ui-angular-core-signals.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-signals.d.ts.map +1 -0
- package/{slider/index.d.ts → types/qualcomm-ui-angular-core-slider.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-slider.d.ts.map +1 -0
- package/{state/index.d.ts → types/qualcomm-ui-angular-core-state.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-state.d.ts.map +1 -0
- package/{switch/index.d.ts → types/qualcomm-ui-angular-core-switch.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-switch.d.ts.map +1 -0
- package/{tabs/index.d.ts → types/qualcomm-ui-angular-core-tabs.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-tabs.d.ts.map +1 -0
- package/{text-area/index.d.ts → types/qualcomm-ui-angular-core-text-area.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-text-area.d.ts.map +1 -0
- package/{text-input/index.d.ts → types/qualcomm-ui-angular-core-text-input.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-text-input.d.ts.map +1 -0
- package/{toast/index.d.ts → types/qualcomm-ui-angular-core-toast.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-toast.d.ts.map +1 -0
- package/{tooltip/index.d.ts → types/qualcomm-ui-angular-core-tooltip.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-tooltip.d.ts.map +1 -0
- package/{tree/index.d.ts → types/qualcomm-ui-angular-core-tree.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-tree.d.ts.map +1 -0
- package/{virtual/index.d.ts → types/qualcomm-ui-angular-core-virtual.d.ts} +1 -1
- package/types/qualcomm-ui-angular-core-virtual.d.ts.map +1 -0
- package/types/qualcomm-ui-angular-core.d.ts +3 -0
- package/types/qualcomm-ui-angular-core.d.ts.map +1 -0
- package/accordion/index.d.ts.map +0 -1
- package/attributes/index.d.ts.map +0 -1
- package/avatar/index.d.ts.map +0 -1
- package/checkbox/index.d.ts.map +0 -1
- package/collapsible/index.d.ts.map +0 -1
- package/collection/index.d.ts.map +0 -1
- package/combobox/index.d.ts.map +0 -1
- package/common/index.d.ts.map +0 -1
- package/dialog/index.d.ts.map +0 -1
- package/dom/index.d.ts.map +0 -1
- package/events/index.d.ts.map +0 -1
- package/forms/index.d.ts.map +0 -1
- package/highlight/index.d.ts.map +0 -1
- package/index.d.ts +0 -3
- package/index.d.ts.map +0 -1
- package/inline-notification/index.d.ts.map +0 -1
- package/input/index.d.ts.map +0 -1
- package/locale/index.d.ts.map +0 -1
- package/lorem-ipsum/index.d.ts.map +0 -1
- package/lucide/index.d.ts.map +0 -1
- package/machine/index.d.ts.map +0 -1
- package/menu/index.d.ts.map +0 -1
- package/number-input/index.d.ts.map +0 -1
- package/observers/index.d.ts.map +0 -1
- package/pagination/index.d.ts.map +0 -1
- package/password-input/index.d.ts.map +0 -1
- package/popover/index.d.ts.map +0 -1
- package/portal/index.d.ts.map +0 -1
- package/presence/index.d.ts.map +0 -1
- package/progress/index.d.ts.map +0 -1
- package/progress-ring/index.d.ts.map +0 -1
- package/radio/index.d.ts.map +0 -1
- package/segmented-control/index.d.ts.map +0 -1
- package/select/index.d.ts.map +0 -1
- package/side-nav/index.d.ts.map +0 -1
- package/signals/index.d.ts.map +0 -1
- package/slider/index.d.ts.map +0 -1
- package/state/index.d.ts.map +0 -1
- package/switch/index.d.ts.map +0 -1
- package/tabs/index.d.ts.map +0 -1
- package/text-area/index.d.ts.map +0 -1
- package/text-input/index.d.ts.map +0 -1
- package/toast/index.d.ts.map +0 -1
- package/tooltip/index.d.ts.map +0 -1
- package/tree/index.d.ts.map +0 -1
- package/virtual/index.d.ts.map +0 -1
|
@@ -13,10 +13,10 @@ import { isDefined } from '@qualcomm-ui/utils/guard';
|
|
|
13
13
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
14
14
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
15
15
|
class MenuContextService extends BaseApiContextService {
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
17
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
17
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuContextService });
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuContextService, decorators: [{
|
|
20
20
|
type: Injectable
|
|
21
21
|
}] });
|
|
22
22
|
const [MENU_CONTEXT, useMenuContext, provideMenuContext,] = createApiContext("MenuContext", MenuContextService);
|
|
@@ -24,10 +24,10 @@ const [MENU_CONTEXT, useMenuContext, provideMenuContext,] = createApiContext("Me
|
|
|
24
24
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
25
25
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
26
26
|
class MenuItemContextService extends BaseApiContextService {
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuItemContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
28
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuItemContextService });
|
|
29
29
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuItemContextService, decorators: [{
|
|
31
31
|
type: Injectable
|
|
32
32
|
}] });
|
|
33
33
|
const [MENU_ITEM_CONTEXT, useMenuItemContext, provideMenuItemContext,] = createApiContext("MenuItemContext", MenuItemContextService);
|
|
@@ -43,24 +43,20 @@ class BaseMenuItemDirective {
|
|
|
43
43
|
/**
|
|
44
44
|
* Whether the menu should be closed when the option is selected.
|
|
45
45
|
*/
|
|
46
|
-
closeOnSelect = input(undefined, ...(ngDevMode ?
|
|
47
|
-
transform: booleanAttribute,
|
|
48
|
-
}]));
|
|
46
|
+
closeOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
49
47
|
/**
|
|
50
48
|
* Whether the menu item is disabled
|
|
51
49
|
*/
|
|
52
|
-
disabled = input(undefined, ...(ngDevMode ?
|
|
53
|
-
transform: booleanAttribute,
|
|
54
|
-
}]));
|
|
50
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
55
51
|
/**
|
|
56
52
|
* The unique value of the menu item option.
|
|
57
53
|
*/
|
|
58
|
-
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
54
|
+
value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
59
55
|
/**
|
|
60
56
|
* The textual value of the option. Used in typeahead navigation of the menu.
|
|
61
57
|
* If not provided, the text content of the menu item will be used.
|
|
62
58
|
*/
|
|
63
|
-
valueText = input(...(ngDevMode ? [undefined, { debugName: "valueText" }] : []));
|
|
59
|
+
valueText = input(...(ngDevMode ? [undefined, { debugName: "valueText" }] : /* istanbul ignore next */ []));
|
|
64
60
|
/**
|
|
65
61
|
* Emitted when the item is selected
|
|
66
62
|
*/
|
|
@@ -73,21 +69,21 @@ class BaseMenuItemDirective {
|
|
|
73
69
|
onSelect: () => this.selected.emit(),
|
|
74
70
|
value: this.value(),
|
|
75
71
|
valueText: this.valueText(),
|
|
76
|
-
}), ...(ngDevMode ? [{ debugName: "itemProps" }] : []));
|
|
77
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
72
|
+
}), ...(ngDevMode ? [{ debugName: "itemProps" }] : /* istanbul ignore next */ []));
|
|
73
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: BaseMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
74
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: BaseMenuItemDirective, isStandalone: true, inputs: { closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, valueText: { classPropertyName: "valueText", publicName: "valueText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected" }, ngImport: i0 });
|
|
79
75
|
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: BaseMenuItemDirective, decorators: [{
|
|
81
77
|
type: Directive
|
|
82
78
|
}], propDecorators: { closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], valueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueText", required: false }] }], selected: [{ type: i0.Output, args: ["selected"] }] } });
|
|
83
79
|
|
|
84
80
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
85
81
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
86
82
|
class MenuOptionItemContextService extends BaseApiContextService {
|
|
87
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
88
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
83
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuOptionItemContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
84
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuOptionItemContextService });
|
|
89
85
|
}
|
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuOptionItemContextService, decorators: [{
|
|
91
87
|
type: Injectable
|
|
92
88
|
}] });
|
|
93
89
|
const [MENU_OPTION_ITEM_CONTEXT, useMenuOptionItemContext, provideMenuOptionItemContext,] = createApiContext("MenuOptionItemContext", MenuOptionItemContextService);
|
|
@@ -95,10 +91,8 @@ const [MENU_OPTION_ITEM_CONTEXT, useMenuOptionItemContext, provideMenuOptionItem
|
|
|
95
91
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
96
92
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
97
93
|
class CoreMenuCheckboxItemDirective extends BaseMenuItemDirective {
|
|
98
|
-
checked = input(...(ngDevMode ? [undefined, { debugName: "checked" }] : []));
|
|
99
|
-
defaultChecked = input(false, ...(ngDevMode ?
|
|
100
|
-
transform: booleanAttribute,
|
|
101
|
-
}]));
|
|
94
|
+
checked = input(...(ngDevMode ? [undefined, { debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
95
|
+
defaultChecked = input(false, { ...(ngDevMode ? { debugName: "defaultChecked" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
102
96
|
checkedChanged = output();
|
|
103
97
|
menuOptionItemService = inject(MenuOptionItemContextService);
|
|
104
98
|
optionItemProps = computed(() => {
|
|
@@ -109,7 +103,7 @@ class CoreMenuCheckboxItemDirective extends BaseMenuItemDirective {
|
|
|
109
103
|
onCheckedChange: (value) => this.checkedState().setValue(value),
|
|
110
104
|
type: "checkbox",
|
|
111
105
|
};
|
|
112
|
-
}, ...(ngDevMode ? [{ debugName: "optionItemProps" }] : []));
|
|
106
|
+
}, ...(ngDevMode ? [{ debugName: "optionItemProps" }] : /* istanbul ignore next */ []));
|
|
113
107
|
trackBindings = useTrackBindings(() => {
|
|
114
108
|
return this.menuContext().getOptionItemBindings(this.optionItemProps());
|
|
115
109
|
});
|
|
@@ -124,16 +118,16 @@ class CoreMenuCheckboxItemDirective extends BaseMenuItemDirective {
|
|
|
124
118
|
...this.menuContext().getItemState(optionItemProps),
|
|
125
119
|
...optionItemProps,
|
|
126
120
|
};
|
|
127
|
-
}, ...(ngDevMode ? [{ debugName: "optionItemState" }] : []));
|
|
121
|
+
}, ...(ngDevMode ? [{ debugName: "optionItemState" }] : /* istanbul ignore next */ []));
|
|
128
122
|
ngOnInit() {
|
|
129
123
|
this.menuOptionItemService.init(this.optionItemState);
|
|
130
124
|
this.menuItemService.init(this.optionItemState);
|
|
131
125
|
this.trackBindings();
|
|
132
126
|
}
|
|
133
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
134
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuCheckboxItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
128
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuCheckboxItemDirective, isStandalone: true, inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, defaultChecked: { classPropertyName: "defaultChecked", publicName: "defaultChecked", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedChanged: "checkedChanged" }, usesInheritance: true, ngImport: i0 });
|
|
135
129
|
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuCheckboxItemDirective, decorators: [{
|
|
137
131
|
type: Directive
|
|
138
132
|
}], propDecorators: { checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], defaultChecked: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultChecked", required: false }] }], checkedChanged: [{ type: i0.Output, args: ["checkedChanged"] }] } });
|
|
139
133
|
|
|
@@ -144,7 +138,7 @@ class CoreMenuContentDirective {
|
|
|
144
138
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
145
139
|
* omitted, a unique identifier will be generated for accessibility.
|
|
146
140
|
*/
|
|
147
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
141
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
148
142
|
menuContext = useMenuContext();
|
|
149
143
|
presenceService = inject(PresenceContextService);
|
|
150
144
|
elementRef = inject(ElementRef);
|
|
@@ -156,7 +150,7 @@ class CoreMenuContentDirective {
|
|
|
156
150
|
});
|
|
157
151
|
onDestroy = useOnDestroy();
|
|
158
152
|
presenceEffect = usePresenceRenderer();
|
|
159
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
153
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
160
154
|
constructor() {
|
|
161
155
|
// update the ref when the element is mounted or unmounted to keep state in sync.
|
|
162
156
|
// React does this automatically with its composable refs and data binding, but
|
|
@@ -174,10 +168,10 @@ class CoreMenuContentDirective {
|
|
|
174
168
|
ngOnInit() {
|
|
175
169
|
this.trackBindings();
|
|
176
170
|
}
|
|
177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
178
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
171
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
172
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuContentDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
179
173
|
}
|
|
180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuContentDirective, decorators: [{
|
|
181
175
|
type: Directive
|
|
182
176
|
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
183
177
|
|
|
@@ -188,7 +182,7 @@ class CoreMenuContextTriggerDirective {
|
|
|
188
182
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
189
183
|
* omitted, a unique identifier will be generated for accessibility.
|
|
190
184
|
*/
|
|
191
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
185
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
192
186
|
menuContext = useMenuContext();
|
|
193
187
|
trackBindings = useTrackBindings(() => {
|
|
194
188
|
return this.menuContext().getContextTriggerBindings({
|
|
@@ -196,25 +190,25 @@ class CoreMenuContextTriggerDirective {
|
|
|
196
190
|
onDestroy: this.onDestroy,
|
|
197
191
|
});
|
|
198
192
|
});
|
|
199
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
193
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
200
194
|
onDestroy = useOnDestroy();
|
|
201
195
|
ngOnInit() {
|
|
202
196
|
this.trackBindings();
|
|
203
197
|
}
|
|
204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
205
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
198
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuContextTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
199
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuContextTriggerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
206
200
|
}
|
|
207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuContextTriggerDirective, decorators: [{
|
|
208
202
|
type: Directive
|
|
209
203
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
210
204
|
|
|
211
205
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
212
206
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
213
207
|
class MenuItemGroupContextService extends BaseApiContextService {
|
|
214
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
215
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuItemGroupContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
209
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuItemGroupContextService });
|
|
216
210
|
}
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuItemGroupContextService, decorators: [{
|
|
218
212
|
type: Injectable
|
|
219
213
|
}] });
|
|
220
214
|
const [MENU_ITEM_GROUP_CONTEXT, useMenuItemGroupContext, provideMenuItemGroupContext,] = createApiContext("MenuItemGroupContext", MenuItemGroupContextService);
|
|
@@ -222,10 +216,10 @@ const [MENU_ITEM_GROUP_CONTEXT, useMenuItemGroupContext, provideMenuItemGroupCon
|
|
|
222
216
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
223
217
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
224
218
|
class MenuRadioItemGroupContextService extends BaseApiContextService {
|
|
225
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
226
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuRadioItemGroupContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
220
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuRadioItemGroupContextService });
|
|
227
221
|
}
|
|
228
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuRadioItemGroupContextService, decorators: [{
|
|
229
223
|
type: Injectable
|
|
230
224
|
}] });
|
|
231
225
|
const [MENU_RADIO_ITEM_GROUP_CONTEXT, useMenuRadioItemGroupContext, provideMenuRadioItemGroupContext,] = createApiContext("MenuRadioItemGroupContext", MenuRadioItemGroupContextService);
|
|
@@ -249,10 +243,10 @@ class CoreMenuItemGroupLabelDirective {
|
|
|
249
243
|
ngOnInit() {
|
|
250
244
|
this.trackBindings();
|
|
251
245
|
}
|
|
252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
253
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
246
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemGroupLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
247
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreMenuItemGroupLabelDirective, isStandalone: true, ngImport: i0 });
|
|
254
248
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemGroupLabelDirective, decorators: [{
|
|
256
250
|
type: Directive
|
|
257
251
|
}] });
|
|
258
252
|
|
|
@@ -263,7 +257,7 @@ class CoreMenuItemGroupDirective {
|
|
|
263
257
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
264
258
|
* omitted, a unique identifier will be generated for accessibility.
|
|
265
259
|
*/
|
|
266
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
260
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
267
261
|
menuContext = useMenuContext();
|
|
268
262
|
menuItemGroupService = inject(MenuItemGroupContextService);
|
|
269
263
|
trackBindings = useTrackBindings(() => {
|
|
@@ -271,15 +265,15 @@ class CoreMenuItemGroupDirective {
|
|
|
271
265
|
id: this.hostId(),
|
|
272
266
|
});
|
|
273
267
|
});
|
|
274
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
268
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
275
269
|
ngOnInit() {
|
|
276
270
|
this.menuItemGroupService.init(computed(() => ({ id: this.hostId() })));
|
|
277
271
|
this.trackBindings();
|
|
278
272
|
}
|
|
279
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
280
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
274
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuItemGroupDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
281
275
|
}
|
|
282
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemGroupDirective, decorators: [{
|
|
283
277
|
type: Directive
|
|
284
278
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
285
279
|
|
|
@@ -301,10 +295,10 @@ class CoreMenuItemIndicatorDirective {
|
|
|
301
295
|
ngOnInit() {
|
|
302
296
|
this.trackBindings();
|
|
303
297
|
}
|
|
304
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
305
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemIndicatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
299
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreMenuItemIndicatorDirective, isStandalone: true, ngImport: i0 });
|
|
306
300
|
}
|
|
307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemIndicatorDirective, decorators: [{
|
|
308
302
|
type: Directive
|
|
309
303
|
}] });
|
|
310
304
|
|
|
@@ -327,10 +321,10 @@ class CoreMenuItemLabelDirective {
|
|
|
327
321
|
ngOnInit() {
|
|
328
322
|
this.trackBindings();
|
|
329
323
|
}
|
|
330
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
331
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
324
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
325
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreMenuItemLabelDirective, isStandalone: true, ngImport: i0 });
|
|
332
326
|
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
327
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemLabelDirective, decorators: [{
|
|
334
328
|
type: Directive
|
|
335
329
|
}] });
|
|
336
330
|
|
|
@@ -339,7 +333,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
339
333
|
class CoreMenuItemRootDirective extends BaseMenuItemDirective {
|
|
340
334
|
itemState = computed(() => {
|
|
341
335
|
return this.menuContext().getItemState(this.itemProps());
|
|
342
|
-
}, ...(ngDevMode ? [{ debugName: "itemState" }] : []));
|
|
336
|
+
}, ...(ngDevMode ? [{ debugName: "itemState" }] : /* istanbul ignore next */ []));
|
|
343
337
|
trackBindings = useTrackBindings(() => {
|
|
344
338
|
return this.menuContext().getItemBindings({
|
|
345
339
|
...this.itemProps(),
|
|
@@ -372,10 +366,10 @@ class CoreMenuItemRootDirective extends BaseMenuItemDirective {
|
|
|
372
366
|
}));
|
|
373
367
|
this.trackBindings();
|
|
374
368
|
}
|
|
375
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
376
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
369
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
370
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreMenuItemRootDirective, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
377
371
|
}
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuItemRootDirective, decorators: [{
|
|
379
373
|
type: Directive
|
|
380
374
|
}], ctorParameters: () => [] });
|
|
381
375
|
|
|
@@ -386,7 +380,7 @@ class CoreMenuPositionerDirective {
|
|
|
386
380
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
387
381
|
* omitted, a unique identifier will be generated for accessibility.
|
|
388
382
|
*/
|
|
389
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
383
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
390
384
|
menuContext = useMenuContext();
|
|
391
385
|
presenceService = inject(PresenceContextService);
|
|
392
386
|
trackBindings = useTrackBindings(() => {
|
|
@@ -395,15 +389,15 @@ class CoreMenuPositionerDirective {
|
|
|
395
389
|
onDestroy: this.onDestroy,
|
|
396
390
|
});
|
|
397
391
|
});
|
|
398
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
392
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
399
393
|
onDestroy = useOnDestroy();
|
|
400
394
|
ngOnInit() {
|
|
401
395
|
this.trackBindings();
|
|
402
396
|
}
|
|
403
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
404
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
397
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuPositionerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
398
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuPositionerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
405
399
|
}
|
|
406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuPositionerDirective, decorators: [{
|
|
407
401
|
type: Directive
|
|
408
402
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
409
403
|
|
|
@@ -414,18 +408,18 @@ class CoreMenuRadioItemGroupDirective {
|
|
|
414
408
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
415
409
|
* omitted, a unique identifier will be generated for accessibility.
|
|
416
410
|
*/
|
|
417
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
411
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
418
412
|
menuContext = useMenuContext();
|
|
419
413
|
radioItemGroupService = inject(MenuRadioItemGroupContextService);
|
|
420
414
|
/**
|
|
421
415
|
* The initial value of the radio item group.
|
|
422
416
|
* Use when you don't need to control the state of the group.
|
|
423
417
|
*/
|
|
424
|
-
defaultValue = input(...(ngDevMode ? [undefined, { debugName: "defaultValue" }] : []));
|
|
418
|
+
defaultValue = input(...(ngDevMode ? [undefined, { debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
425
419
|
/**
|
|
426
420
|
* The controlled value of the radio item group.
|
|
427
421
|
*/
|
|
428
|
-
value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
422
|
+
value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : /* istanbul ignore next */ []));
|
|
429
423
|
valueState = useControlledState({
|
|
430
424
|
defaultValue: this.defaultValue,
|
|
431
425
|
onChange: (value) => this.value.set(value),
|
|
@@ -436,7 +430,7 @@ class CoreMenuRadioItemGroupDirective {
|
|
|
436
430
|
id: this.hostId(),
|
|
437
431
|
});
|
|
438
432
|
});
|
|
439
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
433
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
440
434
|
ngOnInit() {
|
|
441
435
|
this.radioItemGroupService.init(computed(() => ({
|
|
442
436
|
id: this.hostId(),
|
|
@@ -445,10 +439,10 @@ class CoreMenuRadioItemGroupDirective {
|
|
|
445
439
|
})));
|
|
446
440
|
this.trackBindings();
|
|
447
441
|
}
|
|
448
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
449
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
442
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuRadioItemGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
443
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuRadioItemGroupDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, ngImport: i0 });
|
|
450
444
|
}
|
|
451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
445
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuRadioItemGroupDirective, decorators: [{
|
|
452
446
|
type: Directive
|
|
453
447
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
454
448
|
|
|
@@ -466,7 +460,7 @@ class CoreMenuRadioItemDirective extends BaseMenuItemDirective {
|
|
|
466
460
|
onCheckedChange: () => itemGroup.onValueChange?.(props.value),
|
|
467
461
|
type: "radio",
|
|
468
462
|
};
|
|
469
|
-
}, ...(ngDevMode ? [{ debugName: "optionItemProps" }] : []));
|
|
463
|
+
}, ...(ngDevMode ? [{ debugName: "optionItemProps" }] : /* istanbul ignore next */ []));
|
|
470
464
|
trackBindings = useTrackBindings(() => {
|
|
471
465
|
return this.menuContext().getOptionItemBindings(this.optionItemProps());
|
|
472
466
|
});
|
|
@@ -480,20 +474,20 @@ class CoreMenuRadioItemDirective extends BaseMenuItemDirective {
|
|
|
480
474
|
};
|
|
481
475
|
}));
|
|
482
476
|
}
|
|
483
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
484
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
477
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuRadioItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
478
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreMenuRadioItemDirective, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
485
479
|
}
|
|
486
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuRadioItemDirective, decorators: [{
|
|
487
481
|
type: Directive
|
|
488
482
|
}] });
|
|
489
483
|
|
|
490
484
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
491
485
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
492
486
|
class MenuMachineContextService extends BaseApiContextService {
|
|
493
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
494
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
487
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuMachineContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
488
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuMachineContextService });
|
|
495
489
|
}
|
|
496
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuMachineContextService, decorators: [{
|
|
497
491
|
type: Injectable
|
|
498
492
|
}] });
|
|
499
493
|
const [MENU_MACHINE_CONTEXT, useMenuMachineContext, provideMenuMachineContext,] = createApiContext("MenuMachineContext", MenuMachineContextService);
|
|
@@ -501,10 +495,10 @@ const [MENU_MACHINE_CONTEXT, useMenuMachineContext, provideMenuMachineContext,]
|
|
|
501
495
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
502
496
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
503
497
|
class MenuTriggerContextService extends BaseApiContextService {
|
|
504
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
505
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
498
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuTriggerContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
499
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuTriggerContextService });
|
|
506
500
|
}
|
|
507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: MenuTriggerContextService, decorators: [{
|
|
508
502
|
type: Injectable
|
|
509
503
|
}] });
|
|
510
504
|
const [MENU_TRIGGER_CONTEXT, useMenuTriggerContext, provideMenuTriggerContext,] = createApiContext("MenuTriggerContext", MenuTriggerContextService);
|
|
@@ -516,76 +510,66 @@ class CoreMenuRootDirective extends CorePresenceDirective {
|
|
|
516
510
|
* The positioning point for the menu. Can be set by the context menu trigger or
|
|
517
511
|
* the button trigger.
|
|
518
512
|
*/
|
|
519
|
-
anchorPoint = input(...(ngDevMode ? [undefined, { debugName: "anchorPoint" }] : []));
|
|
513
|
+
anchorPoint = input(...(ngDevMode ? [undefined, { debugName: "anchorPoint" }] : /* istanbul ignore next */ []));
|
|
520
514
|
/**
|
|
521
515
|
* Whether to close the menu when an option is selected
|
|
522
516
|
* @default true
|
|
523
517
|
*/
|
|
524
|
-
closeOnSelect = input(undefined, ...(ngDevMode ?
|
|
525
|
-
transform: booleanAttribute,
|
|
526
|
-
}]));
|
|
518
|
+
closeOnSelect = input(undefined, { ...(ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
527
519
|
/**
|
|
528
520
|
* Whether the menu is composed with other composite widgets like a combobox or tabs
|
|
529
521
|
* @default true
|
|
530
522
|
*/
|
|
531
|
-
composite = input(undefined, ...(ngDevMode ?
|
|
532
|
-
transform: booleanAttribute,
|
|
533
|
-
}]));
|
|
523
|
+
composite = input(undefined, { ...(ngDevMode ? { debugName: "composite" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
534
524
|
/**
|
|
535
525
|
* The initial highlighted value of the menu item when rendered.
|
|
536
526
|
* Use when you don't need to control the highlighted value of the menu item.
|
|
537
527
|
*/
|
|
538
|
-
defaultHighlightedValue = input(...(ngDevMode ? [undefined, { debugName: "defaultHighlightedValue" }] : []));
|
|
528
|
+
defaultHighlightedValue = input(...(ngDevMode ? [undefined, { debugName: "defaultHighlightedValue" }] : /* istanbul ignore next */ []));
|
|
539
529
|
/**
|
|
540
530
|
* The initial open state of the menu when rendered.
|
|
541
531
|
* Use when you don't need to control the open state of the menu.
|
|
542
532
|
*/
|
|
543
|
-
defaultOpen = input(undefined, ...(ngDevMode ?
|
|
544
|
-
transform: booleanAttribute,
|
|
545
|
-
}]));
|
|
533
|
+
defaultOpen = input(undefined, { ...(ngDevMode ? { debugName: "defaultOpen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
546
534
|
/**
|
|
547
535
|
* The document's text/writing direction.
|
|
548
536
|
*
|
|
549
537
|
* @default "ltr"
|
|
550
538
|
*/
|
|
551
|
-
dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : []));
|
|
539
|
+
dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : /* istanbul ignore next */ []));
|
|
552
540
|
/**
|
|
553
541
|
* A root node to correctly resolve the Document in custom environments. i.e.,
|
|
554
542
|
* Iframes, Electron.
|
|
555
543
|
*/
|
|
556
|
-
getRootNode = input(...(ngDevMode ? [undefined, { debugName: "getRootNode" }] : []));
|
|
544
|
+
getRootNode = input(...(ngDevMode ? [undefined, { debugName: "getRootNode" }] : /* istanbul ignore next */ []));
|
|
557
545
|
/**
|
|
558
546
|
* The controlled highlighted value of the menu item.
|
|
559
547
|
*/
|
|
560
|
-
highlightedValue = input(...(ngDevMode ? [undefined, { debugName: "highlightedValue" }] : []));
|
|
548
|
+
highlightedValue = input(...(ngDevMode ? [undefined, { debugName: "highlightedValue" }] : /* istanbul ignore next */ []));
|
|
561
549
|
/**
|
|
562
550
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
563
551
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
564
552
|
*/
|
|
565
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
553
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
566
554
|
/**
|
|
567
555
|
* Whether to loop the keyboard navigation.
|
|
568
556
|
* @default false
|
|
569
557
|
*/
|
|
570
|
-
loopFocus = input(undefined, ...(ngDevMode ?
|
|
571
|
-
transform: booleanAttribute,
|
|
572
|
-
}]));
|
|
558
|
+
loopFocus = input(undefined, { ...(ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
573
559
|
/**
|
|
574
560
|
* The controlled open state of the menu
|
|
575
561
|
*/
|
|
576
|
-
open = input(...(ngDevMode ? [undefined, { debugName: "open" }] : []));
|
|
562
|
+
open = input(...(ngDevMode ? [undefined, { debugName: "open" }] : /* istanbul ignore next */ []));
|
|
577
563
|
/**
|
|
578
564
|
* The options used to dynamically position the menu
|
|
579
565
|
* @inheritDoc
|
|
580
566
|
*/
|
|
581
|
-
positioning = input(...(ngDevMode ? [undefined, { debugName: "positioning" }] : []));
|
|
567
|
+
positioning = input(...(ngDevMode ? [undefined, { debugName: "positioning" }] : /* istanbul ignore next */ []));
|
|
582
568
|
/**
|
|
583
569
|
* Whether the pressing printable characters should trigger typeahead navigation
|
|
584
570
|
* @default true
|
|
585
571
|
*/
|
|
586
|
-
typeahead = input(undefined, ...(ngDevMode ?
|
|
587
|
-
transform: booleanAttribute,
|
|
588
|
-
}]));
|
|
572
|
+
typeahead = input(undefined, { ...(ngDevMode ? { debugName: "typeahead" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
589
573
|
/**
|
|
590
574
|
* Function called when the highlighted menu item changes.
|
|
591
575
|
*/
|
|
@@ -629,7 +613,7 @@ class CoreMenuRootDirective extends CorePresenceDirective {
|
|
|
629
613
|
menuTriggerService = inject(MenuTriggerContextService);
|
|
630
614
|
presenceService = inject(PresenceContextService);
|
|
631
615
|
injector = inject(Injector);
|
|
632
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
616
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
633
617
|
parentMachineContext = useMenuMachineContext({
|
|
634
618
|
optional: true,
|
|
635
619
|
skipSelf: true,
|
|
@@ -697,7 +681,7 @@ class CoreMenuRootDirective extends CorePresenceDirective {
|
|
|
697
681
|
positioning: this.positioning(),
|
|
698
682
|
typeahead: this.typeahead(),
|
|
699
683
|
})), this.injector);
|
|
700
|
-
const menuApi = computed(() => createMenuApi(machine, normalizeProps), ...(ngDevMode ? [{ debugName: "menuApi" }] : []));
|
|
684
|
+
const menuApi = computed(() => createMenuApi(machine, normalizeProps), ...(ngDevMode ? [{ debugName: "menuApi" }] : /* istanbul ignore next */ []));
|
|
701
685
|
// sub-menu check
|
|
702
686
|
if (this.parentMenuContext && this.parentMachineContext) {
|
|
703
687
|
this.parentMenuContext().setChild(machine);
|
|
@@ -732,10 +716,10 @@ class CoreMenuRootDirective extends CorePresenceDirective {
|
|
|
732
716
|
}), this.injector);
|
|
733
717
|
this.presenceService.init(computed(() => createPresenceApi(presence, normalizeProps)));
|
|
734
718
|
}
|
|
735
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
736
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
719
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuRootDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
720
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuRootDirective, isStandalone: true, inputs: { anchorPoint: { classPropertyName: "anchorPoint", publicName: "anchorPoint", isSignal: true, isRequired: false, transformFunction: null }, closeOnSelect: { classPropertyName: "closeOnSelect", publicName: "closeOnSelect", isSignal: true, isRequired: false, transformFunction: null }, composite: { classPropertyName: "composite", publicName: "composite", isSignal: true, isRequired: false, transformFunction: null }, defaultHighlightedValue: { classPropertyName: "defaultHighlightedValue", publicName: "defaultHighlightedValue", isSignal: true, isRequired: false, transformFunction: null }, defaultOpen: { classPropertyName: "defaultOpen", publicName: "defaultOpen", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, getRootNode: { classPropertyName: "getRootNode", publicName: "getRootNode", isSignal: true, isRequired: false, transformFunction: null }, highlightedValue: { classPropertyName: "highlightedValue", publicName: "highlightedValue", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, loopFocus: { classPropertyName: "loopFocus", publicName: "loopFocus", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, positioning: { classPropertyName: "positioning", publicName: "positioning", isSignal: true, isRequired: false, transformFunction: null }, typeahead: { classPropertyName: "typeahead", publicName: "typeahead", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { highlightChanged: "highlightChanged", navigate: "navigate", escapeKeyDown: "escapeKeyDown", focusOutside: "focusOutside", interactOutside: "interactOutside", openChanged: "openChanged", pointerDownOutside: "pointerDownOutside", requestDismissed: "requestDismissed", selected: "selected" }, usesInheritance: true, ngImport: i0 });
|
|
737
721
|
}
|
|
738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuRootDirective, decorators: [{
|
|
739
723
|
type: Directive
|
|
740
724
|
}], propDecorators: { anchorPoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchorPoint", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], composite: [{ type: i0.Input, args: [{ isSignal: true, alias: "composite", required: false }] }], defaultHighlightedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultHighlightedValue", required: false }] }], defaultOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultOpen", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], getRootNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRootNode", required: false }] }], highlightedValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightedValue", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], loopFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "loopFocus", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], typeahead: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeahead", required: false }] }], highlightChanged: [{ type: i0.Output, args: ["highlightChanged"] }], navigate: [{ type: i0.Output, args: ["navigate"] }], escapeKeyDown: [{ type: i0.Output, args: ["escapeKeyDown"] }], focusOutside: [{ type: i0.Output, args: ["focusOutside"] }], interactOutside: [{ type: i0.Output, args: ["interactOutside"] }], openChanged: [{ type: i0.Output, args: ["openChanged"] }], pointerDownOutside: [{ type: i0.Output, args: ["pointerDownOutside"] }], requestDismissed: [{ type: i0.Output, args: ["requestDismissed"] }], selected: [{ type: i0.Output, args: ["selected"] }] } });
|
|
741
725
|
|
|
@@ -749,10 +733,10 @@ class CoreMenuSeparatorDirective {
|
|
|
749
733
|
ngOnInit() {
|
|
750
734
|
this.trackBindings();
|
|
751
735
|
}
|
|
752
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
753
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
736
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuSeparatorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
737
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreMenuSeparatorDirective, isStandalone: true, ngImport: i0 });
|
|
754
738
|
}
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuSeparatorDirective, decorators: [{
|
|
756
740
|
type: Directive
|
|
757
741
|
}] });
|
|
758
742
|
|
|
@@ -763,7 +747,7 @@ class CoreMenuTriggerItemDirective extends BaseMenuItemDirective {
|
|
|
763
747
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
764
748
|
* omitted, a unique identifier will be generated for accessibility.
|
|
765
749
|
*/
|
|
766
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
750
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
767
751
|
menuTriggerContext = useMenuTriggerContext();
|
|
768
752
|
trackBindings = useTrackBindings(() => {
|
|
769
753
|
return (this.menuTriggerContext()({
|
|
@@ -771,15 +755,15 @@ class CoreMenuTriggerItemDirective extends BaseMenuItemDirective {
|
|
|
771
755
|
onDestroy: this.onDestroy,
|
|
772
756
|
}) ?? {});
|
|
773
757
|
});
|
|
774
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
758
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
775
759
|
onDestroy = useOnDestroy();
|
|
776
760
|
ngOnInit() {
|
|
777
761
|
this.trackBindings();
|
|
778
762
|
}
|
|
779
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
780
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
763
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuTriggerItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
764
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuTriggerItemDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
781
765
|
}
|
|
782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuTriggerItemDirective, decorators: [{
|
|
783
767
|
type: Directive
|
|
784
768
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
785
769
|
|
|
@@ -790,7 +774,7 @@ class CoreMenuTriggerDirective {
|
|
|
790
774
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
791
775
|
* omitted, a unique identifier will be generated for accessibility.
|
|
792
776
|
*/
|
|
793
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
777
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
794
778
|
menuContext = useMenuContext();
|
|
795
779
|
presenceService = inject(PresenceContextService);
|
|
796
780
|
trackBindings = useTrackBindings(() => {
|
|
@@ -799,15 +783,15 @@ class CoreMenuTriggerDirective {
|
|
|
799
783
|
onDestroy: this.onDestroy,
|
|
800
784
|
});
|
|
801
785
|
});
|
|
802
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
786
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
803
787
|
onDestroy = useOnDestroy();
|
|
804
788
|
ngOnInit() {
|
|
805
789
|
this.trackBindings();
|
|
806
790
|
}
|
|
807
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
808
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
791
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
792
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreMenuTriggerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
809
793
|
}
|
|
810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
794
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreMenuTriggerDirective, decorators: [{
|
|
811
795
|
type: Directive
|
|
812
796
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
813
797
|
|