@qualcomm-ui/angular-core 1.6.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 +30 -30
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs +42 -54
- 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} +1 -1
- 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
|
@@ -8,10 +8,10 @@ import { toastGroupMachine, createToastGroupApi } from '@qualcomm-ui/core/toast'
|
|
|
8
8
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
9
9
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
10
10
|
class ToastContextService extends BaseApiContextService {
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ToastContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
12
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ToastContextService });
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ToastContextService, decorators: [{
|
|
15
15
|
type: Injectable
|
|
16
16
|
}] });
|
|
17
17
|
const [TOAST_CONTEXT, useToastContext, provideToastContext,] = createApiContext("ToastContext", ToastContextService);
|
|
@@ -19,10 +19,10 @@ const [TOAST_CONTEXT, useToastContext, provideToastContext,] = createApiContext(
|
|
|
19
19
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
20
20
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
21
21
|
class ToastGroupContextService extends BaseApiContextService {
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
23
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ToastGroupContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
23
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ToastGroupContextService });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: ToastGroupContextService, decorators: [{
|
|
26
26
|
type: Injectable
|
|
27
27
|
}] });
|
|
28
28
|
const [TOAST_GROUP_CONTEXT, useToastGroupContext, provideToastGroupContext,] = createApiContext("ToastGroupContext", ToastGroupContextService);
|
|
@@ -37,10 +37,10 @@ class CoreToastActionDirective {
|
|
|
37
37
|
ngOnInit() {
|
|
38
38
|
this.trackBindings();
|
|
39
39
|
}
|
|
40
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
41
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
40
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
41
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreToastActionDirective, isStandalone: true, ngImport: i0 });
|
|
42
42
|
}
|
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastActionDirective, decorators: [{
|
|
44
44
|
type: Directive
|
|
45
45
|
}] });
|
|
46
46
|
|
|
@@ -54,10 +54,10 @@ class CoreToastCloseTriggerDirective {
|
|
|
54
54
|
ngOnInit() {
|
|
55
55
|
this.trackBindings();
|
|
56
56
|
}
|
|
57
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
57
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastCloseTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
58
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreToastCloseTriggerDirective, isStandalone: true, ngImport: i0 });
|
|
59
59
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastCloseTriggerDirective, decorators: [{
|
|
61
61
|
type: Directive
|
|
62
62
|
}] });
|
|
63
63
|
|
|
@@ -72,10 +72,10 @@ class CoreToastDescriptionDirective {
|
|
|
72
72
|
ngOnInit() {
|
|
73
73
|
this.trackBindings();
|
|
74
74
|
}
|
|
75
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
76
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
75
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastDescriptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
76
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreToastDescriptionDirective, isStandalone: true, ngImport: i0 });
|
|
77
77
|
}
|
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastDescriptionDirective, decorators: [{
|
|
79
79
|
type: Directive
|
|
80
80
|
}] });
|
|
81
81
|
|
|
@@ -89,10 +89,10 @@ class CoreToastLabelDirective {
|
|
|
89
89
|
ngOnInit() {
|
|
90
90
|
this.trackBindings();
|
|
91
91
|
}
|
|
92
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
93
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
92
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastLabelDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
93
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreToastLabelDirective, isStandalone: true, ngImport: i0 });
|
|
94
94
|
}
|
|
95
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastLabelDirective, decorators: [{
|
|
96
96
|
type: Directive
|
|
97
97
|
}] });
|
|
98
98
|
|
|
@@ -106,10 +106,10 @@ class CoreToastRootDirective {
|
|
|
106
106
|
ngOnInit() {
|
|
107
107
|
this.trackBindings();
|
|
108
108
|
}
|
|
109
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
110
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
109
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
110
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreToastRootDirective, isStandalone: true, ngImport: i0 });
|
|
111
111
|
}
|
|
112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToastRootDirective, decorators: [{
|
|
113
113
|
type: Directive
|
|
114
114
|
}] });
|
|
115
115
|
|
|
@@ -121,29 +121,29 @@ class CoreToasterDirective {
|
|
|
121
121
|
*
|
|
122
122
|
* @default 'ltr'
|
|
123
123
|
*/
|
|
124
|
-
dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : []));
|
|
124
|
+
dir = input(undefined, ...(ngDevMode ? [{ debugName: "dir" }] : /* istanbul ignore next */ []));
|
|
125
125
|
/**
|
|
126
126
|
* A root node to correctly resolve the Document in custom environments. i.e.,
|
|
127
127
|
* Iframes, Electron.
|
|
128
128
|
*/
|
|
129
|
-
getRootNode = input(...(ngDevMode ? [undefined, { debugName: "getRootNode" }] : []));
|
|
129
|
+
getRootNode = input(...(ngDevMode ? [undefined, { debugName: "getRootNode" }] : /* istanbul ignore next */ []));
|
|
130
130
|
/**
|
|
131
131
|
* Unique identifier for the toaster
|
|
132
132
|
*/
|
|
133
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
133
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
134
134
|
/**
|
|
135
135
|
* The toast store instance
|
|
136
136
|
*/
|
|
137
|
-
toaster = input.required(...(ngDevMode ? [{ debugName: "toaster" }] : []));
|
|
137
|
+
toaster = input.required(...(ngDevMode ? [{ debugName: "toaster" }] : /* istanbul ignore next */ []));
|
|
138
138
|
toastGroupService = inject(ToastGroupContextService);
|
|
139
|
-
toasts = computed(() => this.toastGroupService.context().getToasts(), ...(ngDevMode ? [{ debugName: "toasts" }] : []));
|
|
139
|
+
toasts = computed(() => this.toastGroupService.context().getToasts(), ...(ngDevMode ? [{ debugName: "toasts" }] : /* istanbul ignore next */ []));
|
|
140
140
|
trackBindings = useTrackBindings(() => {
|
|
141
141
|
return this.toastGroupService.context().getGroupBindings();
|
|
142
142
|
});
|
|
143
143
|
document = inject(DOCUMENT);
|
|
144
144
|
injector = inject(Injector);
|
|
145
145
|
onDestroy = useOnDestroy();
|
|
146
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
146
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
147
147
|
machine;
|
|
148
148
|
ngOnInit() {
|
|
149
149
|
this.machine = useMachine(toastGroupMachine, computed(() => ({
|
|
@@ -155,10 +155,10 @@ class CoreToasterDirective {
|
|
|
155
155
|
this.toastGroupService.init(computed(() => createToastGroupApi(this.machine, normalizeProps)));
|
|
156
156
|
this.trackBindings();
|
|
157
157
|
}
|
|
158
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
159
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
158
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToasterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
159
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreToasterDirective, isStandalone: true, inputs: { dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, getRootNode: { classPropertyName: "getRootNode", publicName: "getRootNode", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, toaster: { classPropertyName: "toaster", publicName: "toaster", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
160
160
|
}
|
|
161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreToasterDirective, decorators: [{
|
|
162
162
|
type: Directive
|
|
163
163
|
}], propDecorators: { dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], getRootNode: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRootNode", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], toaster: [{ type: i0.Input, args: [{ isSignal: true, alias: "toaster", required: true }] }] } });
|
|
164
164
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-toast.mjs","sources":["../../src/toast/toast-context.service.ts","../../src/toast/toast-group-context.service.ts","../../src/toast/core-toast-action.directive.ts","../../src/toast/core-toast-close-trigger.directive.ts","../../src/toast/core-toast-description.directive.ts","../../src/toast/core-toast-label.directive.ts","../../src/toast/core-toast-root.directive.ts","../../src/toast/core-toaster.directive.ts","../../src/toast/qualcomm-ui-angular-core-toast.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {ToastApi} from \"@qualcomm-ui/core/toast\"\n\n@Injectable()\nexport class ToastContextService extends BaseApiContextService<ToastApi> {}\n\nexport const [\n TOAST_CONTEXT,\n useToastContext,\n provideToastContext,\n]: ApiContext<ToastApi> = createApiContext<ToastApi>(\n \"ToastContext\",\n ToastContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {ToastGroupApi} from \"@qualcomm-ui/core/toast\"\n\n@Injectable()\nexport class ToastGroupContextService extends BaseApiContextService<ToastGroupApi> {}\n\nexport const [\n TOAST_GROUP_CONTEXT,\n useToastGroupContext,\n provideToastGroupContext,\n]: ApiContext<ToastGroupApi> = createApiContext<ToastGroupApi>(\n \"ToastGroupContext\",\n ToastGroupContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastActionDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getActionTriggerBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastCloseTriggerDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getCloseTriggerBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastDescriptionDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getDescriptionBindings()\n })\n\n protected readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastLabelDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getLabelBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastRootDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getRootBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createToastGroupApi,\n toastGroupMachine,\n type ToastGroupProps,\n type ToastGroupSchema,\n type ToastStore,\n} from \"@qualcomm-ui/core/toast\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\nimport type {Machine} from \"@qualcomm-ui/utils/machine\"\n\nimport {ToastGroupContextService} from \"./toast-group-context.service\"\n\n@Directive()\nexport class CoreToasterDirective\n implements SignalifyInput<Omit<ToastGroupProps, \"store\" | \"id\">>, OnInit\n{\n /**\n * The document's text/writing direction\n *\n * @default 'ltr'\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Unique identifier for the toaster\n */\n readonly id = input<string>()\n\n /**\n * The toast store instance\n */\n readonly toaster = input.required<ToastStore>()\n\n protected readonly toastGroupService = inject(ToastGroupContextService)\n\n readonly toasts = computed(() => this.toastGroupService.context().getToasts())\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastGroupService.context().getGroupBindings()\n })\n\n protected readonly document = inject(DOCUMENT)\n protected readonly injector = inject(Injector)\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected machine: Machine<ToastGroupSchema>\n\n ngOnInit() {\n this.machine = useMachine(\n toastGroupMachine,\n computed<Explicit<ToastGroupProps>>(() => ({\n dir: this.dir(),\n getRootNode: this.getRootNode() || (() => this.document),\n id: this.hostId(),\n store: this.toaster(),\n })),\n this.injector,\n )\n\n this.toastGroupService.init(\n computed(() => createToastGroupApi(this.machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;AAYM,MAAO,mBAAoB,SAAQ,qBAA+B,CAAA;wGAA3D,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAnB,mBAAmB,EAAA,CAAA;;4FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B;;AAGM,MAAM,CACX,aAAa,EACb,eAAe,EACf,mBAAmB,EACpB,GAAyB,gBAAgB,CACxC,cAAc,EACd,mBAAmB;;ACrBrB;AACA;AAYM,MAAO,wBAAyB,SAAQ,qBAAoC,CAAA;wGAArE,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAxB,wBAAwB,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;AAGM,MAAM,CACX,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACzB,GAA8B,gBAAgB,CAC7C,mBAAmB,EACnB,wBAAwB;;ACrB1B;AACA;MASa,wBAAwB,CAAA;IAChB,YAAY,GAAG,eAAe,EAAE;AAEhC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAAK;AACvD,QAAA,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,wBAAwB,EAAE;AACvD,IAAA,CAAC,CAAC;IAEF,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,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,EAAA,MAAA,EAAA,EAAA,GAAA,EAAA,EAAA,iBAAA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;;ACjCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-toast.mjs","sources":["../../src/toast/toast-context.service.ts","../../src/toast/toast-group-context.service.ts","../../src/toast/core-toast-action.directive.ts","../../src/toast/core-toast-close-trigger.directive.ts","../../src/toast/core-toast-description.directive.ts","../../src/toast/core-toast-label.directive.ts","../../src/toast/core-toast-root.directive.ts","../../src/toast/core-toaster.directive.ts","../../src/toast/qualcomm-ui-angular-core-toast.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {ToastApi} from \"@qualcomm-ui/core/toast\"\n\n@Injectable()\nexport class ToastContextService extends BaseApiContextService<ToastApi> {}\n\nexport const [\n TOAST_CONTEXT,\n useToastContext,\n provideToastContext,\n]: ApiContext<ToastApi> = createApiContext<ToastApi>(\n \"ToastContext\",\n ToastContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n type ApiContext,\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {ToastGroupApi} from \"@qualcomm-ui/core/toast\"\n\n@Injectable()\nexport class ToastGroupContextService extends BaseApiContextService<ToastGroupApi> {}\n\nexport const [\n TOAST_GROUP_CONTEXT,\n useToastGroupContext,\n provideToastGroupContext,\n]: ApiContext<ToastGroupApi> = createApiContext<ToastGroupApi>(\n \"ToastGroupContext\",\n ToastGroupContextService,\n)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastActionDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getActionTriggerBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastCloseTriggerDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getCloseTriggerBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastDescriptionDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getDescriptionBindings()\n })\n\n protected readonly onDestroy = useOnDestroy()\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastLabelDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getLabelBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useToastContext} from \"./toast-context.service\"\n\n@Directive()\nexport class CoreToastRootDirective implements OnInit {\n protected readonly toastContext = useToastContext()\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastContext().getRootBindings()\n })\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {DOCUMENT} from \"@angular/common\"\nimport {\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createToastGroupApi,\n toastGroupMachine,\n type ToastGroupProps,\n type ToastGroupSchema,\n type ToastStore,\n} from \"@qualcomm-ui/core/toast\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\nimport type {Machine} from \"@qualcomm-ui/utils/machine\"\n\nimport {ToastGroupContextService} from \"./toast-group-context.service\"\n\n@Directive()\nexport class CoreToasterDirective\n implements SignalifyInput<Omit<ToastGroupProps, \"store\" | \"id\">>, OnInit\n{\n /**\n * The document's text/writing direction\n *\n * @default 'ltr'\n */\n readonly dir = input<Direction | undefined>(undefined)\n\n /**\n * A root node to correctly resolve the Document in custom environments. i.e.,\n * Iframes, Electron.\n */\n readonly getRootNode = input<\n (() => ShadowRoot | Document | Node) | undefined\n >()\n\n /**\n * Unique identifier for the toaster\n */\n readonly id = input<string>()\n\n /**\n * The toast store instance\n */\n readonly toaster = input.required<ToastStore>()\n\n protected readonly toastGroupService = inject(ToastGroupContextService)\n\n readonly toasts = computed(() => this.toastGroupService.context().getToasts())\n\n protected readonly trackBindings = useTrackBindings(() => {\n return this.toastGroupService.context().getGroupBindings()\n })\n\n protected readonly document = inject(DOCUMENT)\n protected readonly injector = inject(Injector)\n protected readonly onDestroy = useOnDestroy()\n private readonly hostId = computed(() => useId(this, this.id()))\n\n protected machine: Machine<ToastGroupSchema>\n\n ngOnInit() {\n this.machine = useMachine(\n toastGroupMachine,\n computed<Explicit<ToastGroupProps>>(() => ({\n dir: this.dir(),\n getRootNode: this.getRootNode() || (() => this.document),\n id: this.hostId(),\n store: this.toaster(),\n })),\n this.injector,\n )\n\n this.toastGroupService.init(\n computed(() => createToastGroupApi(this.machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AACA;AAYM,MAAO,mBAAoB,SAAQ,qBAA+B,CAAA;uGAA3D,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAnB,mBAAmB,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B;;AAGM,MAAM,CACX,aAAa,EACb,eAAe,EACf,mBAAmB,EACpB,GAAyB,gBAAgB,CACxC,cAAc,EACd,mBAAmB;;ACrBrB;AACA;AAYM,MAAO,wBAAyB,SAAQ,qBAAoC,CAAA;uGAArE,wBAAwB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAAxB,wBAAwB,EAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;AAGM,MAAM,CACX,mBAAmB,EACnB,oBAAoB,EACpB,wBAAwB,EACzB,GAA8B,gBAAgB,CAC7C,mBAAmB,EACnB,wBAAwB;;ACrB1B;AACA;MASa,wBAAwB,CAAA;IAChB,YAAY,GAAG,eAAe,EAAE;AAEhC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAAK;AACvD,QAAA,OAAO,IAAI,CAAC,YAAY,EAAE,CAAC,wBAAwB,EAAE;AACvD,IAAA,CAAC,CAAC;IAEF,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;uGATW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAxB,wBAAwB,EAAA,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AAA,EAAA,KAAA,EAAA,UAAA,EAAA,KAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,WAAA,EAAA,EAAA,iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,EAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,OAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;;ACjCD;;AAEG;;;;"}
|
|
@@ -7,10 +7,10 @@ import { tooltipMachine, createTooltipApi } from '@qualcomm-ui/core/tooltip';
|
|
|
7
7
|
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
8
8
|
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
9
9
|
class TooltipContextService extends BaseApiContextService {
|
|
10
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
11
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TooltipContextService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
11
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TooltipContextService });
|
|
12
12
|
}
|
|
13
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: TooltipContextService, decorators: [{
|
|
14
14
|
type: Injectable
|
|
15
15
|
}] });
|
|
16
16
|
const [TOOLTIP_CONTEXT, useTooltipContext, provideTooltipContext] = createApiContext("TooltipContext", TooltipContextService);
|
|
@@ -23,10 +23,10 @@ class CoreTooltipArrowTipDirective {
|
|
|
23
23
|
ngOnInit() {
|
|
24
24
|
this.trackBindings();
|
|
25
25
|
}
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
27
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipArrowTipDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.2", type: CoreTooltipArrowTipDirective, isStandalone: true, ngImport: i0 });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipArrowTipDirective, decorators: [{
|
|
30
30
|
type: Directive
|
|
31
31
|
}] });
|
|
32
32
|
|
|
@@ -37,8 +37,8 @@ class CoreTooltipArrowDirective {
|
|
|
37
37
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
38
38
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
39
39
|
*/
|
|
40
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
41
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
40
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
41
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
42
42
|
tooltipContext = useTooltipContext();
|
|
43
43
|
onDestroy = useOnDestroy();
|
|
44
44
|
trackBindings = useTrackBindings(() => this.tooltipContext().getTooltipArrowBindings({
|
|
@@ -48,10 +48,10 @@ class CoreTooltipArrowDirective {
|
|
|
48
48
|
ngOnInit() {
|
|
49
49
|
this.trackBindings();
|
|
50
50
|
}
|
|
51
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
51
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipArrowDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreTooltipArrowDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
53
53
|
}
|
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipArrowDirective, decorators: [{
|
|
55
55
|
type: Directive
|
|
56
56
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
57
57
|
|
|
@@ -62,8 +62,8 @@ class CoreTooltipContentDirective {
|
|
|
62
62
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
63
63
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
64
64
|
*/
|
|
65
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
66
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
65
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
66
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
67
67
|
tooltipContext = useTooltipContext();
|
|
68
68
|
onDestroy = useOnDestroy();
|
|
69
69
|
trackBindings = useTrackBindings(() => this.tooltipContext().getTooltipContentBindings({
|
|
@@ -73,10 +73,10 @@ class CoreTooltipContentDirective {
|
|
|
73
73
|
ngOnInit() {
|
|
74
74
|
this.trackBindings();
|
|
75
75
|
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
77
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
77
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreTooltipContentDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
78
78
|
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipContentDirective, decorators: [{
|
|
80
80
|
type: Directive
|
|
81
81
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
82
82
|
|
|
@@ -87,8 +87,8 @@ class CoreTooltipPositionerDirective {
|
|
|
87
87
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
88
88
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
89
89
|
*/
|
|
90
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
91
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
90
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
91
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
92
92
|
tooltipContext = useTooltipContext();
|
|
93
93
|
onDestroy = useOnDestroy();
|
|
94
94
|
trackBindings = useTrackBindings(() => this.tooltipContext().getTooltipPositionerBindings({
|
|
@@ -98,10 +98,10 @@ class CoreTooltipPositionerDirective {
|
|
|
98
98
|
ngOnInit() {
|
|
99
99
|
this.trackBindings();
|
|
100
100
|
}
|
|
101
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
102
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipPositionerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
102
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreTooltipPositionerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
103
103
|
}
|
|
104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipPositionerDirective, decorators: [{
|
|
105
105
|
type: Directive
|
|
106
106
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
107
107
|
|
|
@@ -112,8 +112,8 @@ class CoreTooltipTriggerDirective {
|
|
|
112
112
|
* {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
113
113
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
114
114
|
*/
|
|
115
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
116
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
115
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
116
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
117
117
|
tooltipContext = useTooltipContext();
|
|
118
118
|
onDestroy = useOnDestroy();
|
|
119
119
|
trackBindings = useTrackBindings(() => this.tooltipContext().getTooltipTriggerBindings({
|
|
@@ -123,10 +123,10 @@ class CoreTooltipTriggerDirective {
|
|
|
123
123
|
ngOnInit() {
|
|
124
124
|
this.trackBindings();
|
|
125
125
|
}
|
|
126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
127
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreTooltipTriggerDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
128
128
|
}
|
|
129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipTriggerDirective, decorators: [{
|
|
130
130
|
type: Directive
|
|
131
131
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }] } });
|
|
132
132
|
|
|
@@ -137,47 +137,39 @@ class CoreTooltipRootDirective {
|
|
|
137
137
|
* HTML {@link https://www.w3schools.com/html/html_id.asp id attribute}. If
|
|
138
138
|
* omitted, a unique identifier will be generated for accessibility.)
|
|
139
139
|
*/
|
|
140
|
-
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : []));
|
|
140
|
+
id = input(...(ngDevMode ? [undefined, { debugName: "id" }] : /* istanbul ignore next */ []));
|
|
141
141
|
/**
|
|
142
142
|
* The document's text/writing direction.
|
|
143
143
|
*/
|
|
144
|
-
dir = input(...(ngDevMode ? [undefined, { debugName: "dir" }] : []));
|
|
144
|
+
dir = input(...(ngDevMode ? [undefined, { debugName: "dir" }] : /* istanbul ignore next */ []));
|
|
145
145
|
/**
|
|
146
146
|
* Whether the tooltip should close when the trigger is clicked.
|
|
147
147
|
*/
|
|
148
|
-
closeOnClick = input(undefined, ...(ngDevMode ?
|
|
149
|
-
transform: booleanAttribute,
|
|
150
|
-
}]));
|
|
148
|
+
closeOnClick = input(undefined, { ...(ngDevMode ? { debugName: "closeOnClick" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
151
149
|
/**
|
|
152
150
|
* Whether to close the tooltip when the escape key is pressed.
|
|
153
151
|
*/
|
|
154
|
-
closeOnEscape = input(undefined, ...(ngDevMode ?
|
|
155
|
-
transform: booleanAttribute,
|
|
156
|
-
}]));
|
|
152
|
+
closeOnEscape = input(undefined, { ...(ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
157
153
|
/**
|
|
158
154
|
* The disabled state of the tooltip
|
|
159
155
|
*/
|
|
160
|
-
disabled = input(undefined, ...(ngDevMode ?
|
|
161
|
-
transform: booleanAttribute,
|
|
162
|
-
}]));
|
|
156
|
+
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
163
157
|
/**
|
|
164
158
|
* The open state of the tooltip.
|
|
165
159
|
*/
|
|
166
|
-
open = input(undefined, ...(ngDevMode ?
|
|
167
|
-
transform: booleanAttribute,
|
|
168
|
-
}]));
|
|
160
|
+
open = input(undefined, { ...(ngDevMode ? { debugName: "open" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
169
161
|
/**
|
|
170
162
|
* The user provided options used to position the popover content
|
|
171
163
|
*
|
|
172
164
|
* @inheritDoc
|
|
173
165
|
*/
|
|
174
|
-
positioning = input(...(ngDevMode ? [undefined, { debugName: "positioning" }] : []));
|
|
166
|
+
positioning = input(...(ngDevMode ? [undefined, { debugName: "positioning" }] : /* istanbul ignore next */ []));
|
|
175
167
|
/**
|
|
176
168
|
* Function called when the tooltip is opened/closed.
|
|
177
169
|
*/
|
|
178
170
|
openChanged = output();
|
|
179
171
|
tooltipContext = inject(TooltipContextService);
|
|
180
|
-
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : []));
|
|
172
|
+
hostId = computed(() => useId(this, this.id()), ...(ngDevMode ? [{ debugName: "hostId" }] : /* istanbul ignore next */ []));
|
|
181
173
|
isMounted = useIsMounted();
|
|
182
174
|
injector = inject(Injector);
|
|
183
175
|
trackBindings = useTrackBindings(() => this.tooltipContext.context().getRootBindings());
|
|
@@ -199,10 +191,10 @@ class CoreTooltipRootDirective {
|
|
|
199
191
|
this.tooltipContext.init(computed(() => createTooltipApi(machine, normalizeProps)));
|
|
200
192
|
this.trackBindings();
|
|
201
193
|
}
|
|
202
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
203
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
194
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
195
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.2", type: CoreTooltipRootDirective, isStandalone: true, inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, dir: { classPropertyName: "dir", publicName: "dir", isSignal: true, isRequired: false, transformFunction: null }, closeOnClick: { classPropertyName: "closeOnClick", publicName: "closeOnClick", isSignal: true, isRequired: false, transformFunction: null }, closeOnEscape: { classPropertyName: "closeOnEscape", publicName: "closeOnEscape", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", 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 } }, outputs: { openChanged: "openChanged" }, ngImport: i0 });
|
|
204
196
|
}
|
|
205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.2", ngImport: i0, type: CoreTooltipRootDirective, decorators: [{
|
|
206
198
|
type: Directive
|
|
207
199
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], dir: [{ type: i0.Input, args: [{ isSignal: true, alias: "dir", required: false }] }], closeOnClick: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnClick", required: false }] }], closeOnEscape: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnEscape", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }], positioning: [{ type: i0.Input, args: [{ isSignal: true, alias: "positioning", required: false }] }], openChanged: [{ type: i0.Output, args: ["openChanged"] }] } });
|
|
208
200
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"qualcomm-ui-angular-core-tooltip.mjs","sources":["../../src/tooltip/tooltip-context.service.ts","../../src/tooltip/core-tooltip-arrow-tip.directive.ts","../../src/tooltip/core-tooltip-arrow.directive.ts","../../src/tooltip/core-tooltip-content.directive.ts","../../src/tooltip/core-tooltip-positioner.directive.ts","../../src/tooltip/core-tooltip-trigger.directive.ts","../../src/tooltip/core-tooltip-root.directive.ts","../../src/tooltip/qualcomm-ui-angular-core-tooltip.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {TooltipApi} from \"@qualcomm-ui/core/tooltip\"\n\n@Injectable()\nexport class TooltipContextService extends BaseApiContextService<TooltipApi> {}\n\nexport const [TOOLTIP_CONTEXT, useTooltipContext, provideTooltipContext] =\n createApiContext<TooltipApi>(\"TooltipContext\", TooltipContextService)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipArrowTipDirective implements OnInit {\n private readonly tooltipContext = useTooltipContext()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipArrowTipBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipArrowDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipArrowBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipContentDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipContentBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipPositionerDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipPositionerBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipTriggerDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipTriggerBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useId, useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createTooltipApi,\n type TooltipApiProps,\n tooltipMachine,\n type TooltipPositioningOptions,\n} from \"@qualcomm-ui/core/tooltip\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {TooltipContextService} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipRootDirective\n implements SignalifyInput<TooltipApiProps>, OnInit\n{\n /**\n * HTML {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n /**\n * The document's text/writing direction.\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * Whether the tooltip should close when the trigger is clicked.\n */\n readonly closeOnClick = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether to close the tooltip when the escape key is pressed.\n */\n readonly closeOnEscape = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The disabled state of the tooltip\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The open state of the tooltip.\n */\n readonly open = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The user provided options used to position the popover content\n *\n * @inheritDoc\n */\n readonly positioning = input<TooltipPositioningOptions>()\n\n /**\n * Function called when the tooltip is opened/closed.\n */\n readonly openChanged = output<boolean>()\n\n protected readonly tooltipContext = inject(TooltipContextService)\n\n readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly isMounted = useIsMounted()\n\n protected readonly injector = inject(Injector)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext.context().getRootBindings(),\n )\n\n ngOnInit() {\n const machine = useMachine(\n tooltipMachine,\n computed<Explicit<TooltipApiProps>>(() => ({\n closeOnClick: this.closeOnClick(),\n closeOnEscape: this.closeOnEscape(),\n dir: this.dir(),\n disabled: this.disabled(),\n id: this.hostId(),\n onOpenChange: (open) => {\n if (this.isMounted()) {\n this.openChanged.emit(open)\n }\n },\n open: this.open(),\n positioning: this.positioning(),\n })),\n this.injector,\n )\n\n this.tooltipContext.init(\n computed(() => createTooltipApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AAWM,MAAO,qBAAsB,SAAQ,qBAAiC,CAAA;wGAA/D,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAArB,qBAAqB,EAAA,CAAA;;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC;;AAGM,MAAM,CAAC,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,GACtE,gBAAgB,CAAa,gBAAgB,EAAE,qBAAqB;;ACftE;AACA;MASa,4BAA4B,CAAA;IACtB,cAAc,GAAG,iBAAiB,EAAE;AAEpC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAChD,IAAI,CAAC,cAAc,EAAE,CAAC,0BAA0B,EAAE,CACnD;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;wGATW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC;;;ACTD;AACA;MAUa,yBAAyB,CAAA;AACpC;;;AAGG;IACM,EAAE,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SA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AAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC;;;ACjCD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-tooltip.mjs","sources":["../../src/tooltip/tooltip-context.service.ts","../../src/tooltip/core-tooltip-arrow-tip.directive.ts","../../src/tooltip/core-tooltip-arrow.directive.ts","../../src/tooltip/core-tooltip-content.directive.ts","../../src/tooltip/core-tooltip-positioner.directive.ts","../../src/tooltip/core-tooltip-trigger.directive.ts","../../src/tooltip/core-tooltip-root.directive.ts","../../src/tooltip/qualcomm-ui-angular-core-tooltip.ts"],"sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Injectable} from \"@angular/core\"\n\nimport {\n BaseApiContextService,\n createApiContext,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {TooltipApi} from \"@qualcomm-ui/core/tooltip\"\n\n@Injectable()\nexport class TooltipContextService extends BaseApiContextService<TooltipApi> {}\n\nexport const [TOOLTIP_CONTEXT, useTooltipContext, provideTooltipContext] =\n createApiContext<TooltipApi>(\"TooltipContext\", TooltipContextService)\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {Directive, type OnInit} from \"@angular/core\"\n\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipArrowTipDirective implements OnInit {\n private readonly tooltipContext = useTooltipContext()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipArrowTipBindings(),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipArrowDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipArrowBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipContentDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipContentBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipPositionerDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipPositionerBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, Directive, input, type OnInit} from \"@angular/core\"\n\nimport {useId, useOnDestroy} from \"@qualcomm-ui/angular-core/common\"\nimport {useTrackBindings} from \"@qualcomm-ui/angular-core/machine\"\n\nimport {useTooltipContext} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipTriggerDirective implements OnInit {\n /**\n * {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n private readonly hostId = computed(() => useId(this, this.id()))\n\n private readonly tooltipContext = useTooltipContext()\n\n private readonly onDestroy = useOnDestroy()\n\n private readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext().getTooltipTriggerBindings({\n id: this.hostId(),\n onDestroy: this.onDestroy,\n }),\n )\n\n ngOnInit() {\n this.trackBindings()\n }\n}\n","// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n booleanAttribute,\n computed,\n Directive,\n inject,\n Injector,\n input,\n type OnInit,\n output,\n} from \"@angular/core\"\n\nimport {useId, useIsMounted} from \"@qualcomm-ui/angular-core/common\"\nimport {\n normalizeProps,\n useMachine,\n useTrackBindings,\n} from \"@qualcomm-ui/angular-core/machine\"\nimport type {SignalifyInput} from \"@qualcomm-ui/angular-core/signals\"\nimport {\n createTooltipApi,\n type TooltipApiProps,\n tooltipMachine,\n type TooltipPositioningOptions,\n} from \"@qualcomm-ui/core/tooltip\"\nimport type {Booleanish} from \"@qualcomm-ui/utils/coercion\"\nimport type {Direction} from \"@qualcomm-ui/utils/direction\"\nimport type {Explicit} from \"@qualcomm-ui/utils/guard\"\n\nimport {TooltipContextService} from \"./tooltip-context.service\"\n\n@Directive()\nexport class CoreTooltipRootDirective\n implements SignalifyInput<TooltipApiProps>, OnInit\n{\n /**\n * HTML {@link https://www.w3schools.com/html/html_id.asp id attribute}. If\n * omitted, a unique identifier will be generated for accessibility.)\n */\n readonly id = input<string>()\n\n /**\n * The document's text/writing direction.\n */\n readonly dir = input<Direction | undefined>()\n\n /**\n * Whether the tooltip should close when the trigger is clicked.\n */\n readonly closeOnClick = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * Whether to close the tooltip when the escape key is pressed.\n */\n readonly closeOnEscape = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The disabled state of the tooltip\n */\n readonly disabled = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The open state of the tooltip.\n */\n readonly open = input<boolean | undefined, Booleanish>(undefined, {\n transform: booleanAttribute,\n })\n\n /**\n * The user provided options used to position the popover content\n *\n * @inheritDoc\n */\n readonly positioning = input<TooltipPositioningOptions>()\n\n /**\n * Function called when the tooltip is opened/closed.\n */\n readonly openChanged = output<boolean>()\n\n protected readonly tooltipContext = inject(TooltipContextService)\n\n readonly hostId = computed(() => useId(this, this.id()))\n\n protected readonly isMounted = useIsMounted()\n\n protected readonly injector = inject(Injector)\n\n protected readonly trackBindings = useTrackBindings(() =>\n this.tooltipContext.context().getRootBindings(),\n )\n\n ngOnInit() {\n const machine = useMachine(\n tooltipMachine,\n computed<Explicit<TooltipApiProps>>(() => ({\n closeOnClick: this.closeOnClick(),\n closeOnEscape: this.closeOnEscape(),\n dir: this.dir(),\n disabled: this.disabled(),\n id: this.hostId(),\n onOpenChange: (open) => {\n if (this.isMounted()) {\n this.openChanged.emit(open)\n }\n },\n open: this.open(),\n positioning: this.positioning(),\n })),\n this.injector,\n )\n\n this.tooltipContext.init(\n computed(() => createTooltipApi(machine, normalizeProps)),\n )\n\n this.trackBindings()\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AACA;AAWM,MAAO,qBAAsB,SAAQ,qBAAiC,CAAA;uGAA/D,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;2GAArB,qBAAqB,EAAA,CAAA;;2FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC;;AAGM,MAAM,CAAC,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,CAAC,GACtE,gBAAgB,CAAa,gBAAgB,EAAE,qBAAqB;;ACftE;AACA;MASa,4BAA4B,CAAA;IACtB,cAAc,GAAG,iBAAiB,EAAE;AAEpC,IAAA,aAAa,GAAG,gBAAgB,CAAC,MAChD,IAAI,CAAC,cAAc,EAAE,CAAC,0BAA0B,EAAE,CACnD;IAED,QAAQ,GAAA;QACN,IAAI,CAAC,aAAa,EAAE;IACtB;uGATW,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA5B,4BAA4B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBADxC;;;ACTD;AACA;MAUa,yBAAyB,CA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