@qualcomm-ui/angular-core 1.0.1 → 1.0.3
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/README.md +9 -0
- package/accordion/index.d.ts +160 -10
- package/accordion/index.d.ts.map +1 -1
- package/attributes/index.d.ts +19 -3
- package/attributes/index.d.ts.map +1 -1
- package/avatar/index.d.ts +102 -6
- package/avatar/index.d.ts.map +1 -1
- package/checkbox/index.d.ts +250 -10
- package/checkbox/index.d.ts.map +1 -1
- package/collapsible/index.d.ts +101 -5
- package/collapsible/index.d.ts.map +1 -1
- package/collection/index.d.ts +48 -2
- package/collection/index.d.ts.map +1 -1
- package/combobox/index.d.ts +532 -21
- package/combobox/index.d.ts.map +1 -1
- package/common/index.d.ts +84 -10
- package/common/index.d.ts.map +1 -1
- package/dialog/index.d.ts +300 -12
- package/dialog/index.d.ts.map +1 -1
- package/dom/index.d.ts +162 -8
- package/dom/index.d.ts.map +1 -1
- package/events/index.d.ts +40 -3
- package/events/index.d.ts.map +1 -1
- package/fesm2022/qualcomm-ui-angular-core-accordion.mjs +269 -0
- package/fesm2022/qualcomm-ui-angular-core-accordion.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-attributes.mjs +39 -0
- package/fesm2022/qualcomm-ui-angular-core-attributes.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs +143 -0
- package/fesm2022/qualcomm-ui-angular-core-avatar.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs +541 -0
- package/fesm2022/qualcomm-ui-angular-core-checkbox.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs +143 -0
- package/fesm2022/qualcomm-ui-angular-core-collapsible.mjs.map +1 -0
- package/{esm2022/collection/use-list-collection.js → fesm2022/qualcomm-ui-angular-core-collection.mjs} +13 -6
- package/fesm2022/qualcomm-ui-angular-core-collection.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs +797 -0
- package/fesm2022/qualcomm-ui-angular-core-combobox.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-common.mjs +121 -0
- package/fesm2022/qualcomm-ui-angular-core-common.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs +490 -0
- package/fesm2022/qualcomm-ui-angular-core-dialog.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs +236 -0
- package/fesm2022/qualcomm-ui-angular-core-dom.mjs.map +1 -0
- package/{esm2022/events/listener.service.js → fesm2022/qualcomm-ui-angular-core-events.mjs} +62 -8
- package/fesm2022/qualcomm-ui-angular-core-events.mjs.map +1 -0
- package/{esm2022/forms/form-utils.js → fesm2022/qualcomm-ui-angular-core-forms.mjs} +36 -6
- package/fesm2022/qualcomm-ui-angular-core-forms.mjs.map +1 -0
- package/{esm2022/highlight/highlight.directive.js → fesm2022/qualcomm-ui-angular-core-highlight.mjs} +15 -8
- package/fesm2022/qualcomm-ui-angular-core-highlight.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs +203 -0
- package/fesm2022/qualcomm-ui-angular-core-inline-notification.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-input.mjs +598 -0
- package/fesm2022/qualcomm-ui-angular-core-input.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs +35 -0
- package/fesm2022/qualcomm-ui-angular-core-locale.mjs.map +1 -0
- package/{esm2022/lorem-ipsum/lorem-ipsum.directive.js → fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs} +16 -9
- package/fesm2022/qualcomm-ui-angular-core-lorem-ipsum.mjs.map +1 -0
- package/{esm2022/lucide/provide-icons.js → fesm2022/qualcomm-ui-angular-core-lucide.mjs} +14 -4
- package/fesm2022/qualcomm-ui-angular-core-lucide.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs +1186 -0
- package/fesm2022/qualcomm-ui-angular-core-machine.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs +818 -0
- package/fesm2022/qualcomm-ui-angular-core-menu.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs +703 -0
- package/fesm2022/qualcomm-ui-angular-core-number-input.mjs.map +1 -0
- package/{esm2022/observers/intersection-observer.directive.js → fesm2022/qualcomm-ui-angular-core-observers.mjs} +16 -9
- package/fesm2022/qualcomm-ui-angular-core-observers.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs +276 -0
- package/fesm2022/qualcomm-ui-angular-core-pagination.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs +323 -0
- package/fesm2022/qualcomm-ui-angular-core-password-input.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs +410 -0
- package/fesm2022/qualcomm-ui-angular-core-popover.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs +255 -0
- package/fesm2022/qualcomm-ui-angular-core-portal.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs +157 -0
- package/fesm2022/qualcomm-ui-angular-core-presence.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs +183 -0
- package/fesm2022/qualcomm-ui-angular-core-progress-ring.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs +242 -0
- package/fesm2022/qualcomm-ui-angular-core-progress.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs +564 -0
- package/fesm2022/qualcomm-ui-angular-core-radio.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs +193 -0
- package/fesm2022/qualcomm-ui-angular-core-segmented-control.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-select.mjs +578 -0
- package/fesm2022/qualcomm-ui-angular-core-select.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs +179 -0
- package/fesm2022/qualcomm-ui-angular-core-signals.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-state.mjs +197 -0
- package/fesm2022/qualcomm-ui-angular-core-state.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs +211 -0
- package/fesm2022/qualcomm-ui-angular-core-switch.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs +366 -0
- package/fesm2022/qualcomm-ui-angular-core-tabs.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs +4 -0
- package/fesm2022/qualcomm-ui-angular-core-text-area.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs +234 -0
- package/fesm2022/qualcomm-ui-angular-core-text-input.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs +170 -0
- package/fesm2022/qualcomm-ui-angular-core-toast.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs +214 -0
- package/fesm2022/qualcomm-ui-angular-core-tooltip.mjs.map +1 -0
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs +191 -0
- package/fesm2022/qualcomm-ui-angular-core-virtual.mjs.map +1 -0
- package/{esm2022/index.js → fesm2022/qualcomm-ui-angular-core.mjs} +5 -2
- package/fesm2022/qualcomm-ui-angular-core.mjs.map +1 -0
- package/forms/index.d.ts +37 -3
- package/forms/index.d.ts.map +1 -1
- package/highlight/index.d.ts +32 -2
- package/highlight/index.d.ts.map +1 -1
- package/index.d.ts +3 -2
- package/index.d.ts.map +1 -1
- package/inline-notification/index.d.ts +139 -8
- package/inline-notification/index.d.ts.map +1 -1
- package/input/index.d.ts +190 -4
- package/input/index.d.ts.map +1 -1
- package/locale/index.d.ts +24 -3
- package/locale/index.d.ts.map +1 -1
- package/lorem-ipsum/index.d.ts +47 -2
- package/lorem-ipsum/index.d.ts.map +1 -1
- package/lucide/index.d.ts +53 -3
- package/lucide/index.d.ts.map +1 -1
- package/machine/index.d.ts +214 -14
- package/machine/index.d.ts.map +1 -1
- package/menu/index.d.ts +476 -24
- package/menu/index.d.ts.map +1 -1
- package/number-input/index.d.ts +321 -14
- package/number-input/index.d.ts.map +1 -1
- package/observers/index.d.ts +16 -2
- package/observers/index.d.ts.map +1 -1
- package/package.json +102 -103
- package/pagination/index.d.ts +171 -10
- package/pagination/index.d.ts.map +1 -1
- package/password-input/index.d.ts +196 -11
- package/password-input/index.d.ts.map +1 -1
- package/popover/index.d.ts +263 -12
- package/popover/index.d.ts.map +1 -1
- package/portal/index.d.ts +71 -4
- package/portal/index.d.ts.map +1 -1
- package/presence/index.d.ts +97 -5
- package/presence/index.d.ts.map +1 -1
- package/progress/index.d.ts +166 -10
- package/progress/index.d.ts.map +1 -1
- package/progress-ring/index.d.ts +117 -9
- package/progress-ring/index.d.ts.map +1 -1
- package/radio/index.d.ts +279 -12
- package/radio/index.d.ts.map +1 -1
- package/segmented-control/index.d.ts +130 -6
- package/segmented-control/index.d.ts.map +1 -1
- package/select/index.d.ts +381 -18
- package/select/index.d.ts.map +1 -1
- package/signals/index.d.ts +85 -6
- package/signals/index.d.ts.map +1 -1
- package/state/index.d.ts +105 -4
- package/state/index.d.ts.map +1 -1
- package/switch/index.d.ts +138 -8
- package/switch/index.d.ts.map +1 -1
- package/tabs/index.d.ts +241 -10
- package/tabs/index.d.ts.map +1 -1
- package/text-area/index.d.ts +3 -2
- package/text-area/index.d.ts.map +1 -1
- package/text-input/index.d.ts +138 -10
- package/text-input/index.d.ts.map +1 -1
- package/toast/index.d.ts +120 -9
- package/toast/index.d.ts.map +1 -1
- package/tooltip/index.d.ts +133 -8
- package/tooltip/index.d.ts.map +1 -1
- package/virtual/index.d.ts +28 -4
- package/virtual/index.d.ts.map +1 -1
- package/accordion/accordion-context.service.d.ts +0 -9
- package/accordion/accordion-context.service.d.ts.map +0 -1
- package/accordion/accordion-item-context.service.d.ts +0 -9
- package/accordion/accordion-item-context.service.d.ts.map +0 -1
- package/accordion/core-accordion-item-content.directive.d.ts +0 -21
- package/accordion/core-accordion-item-content.directive.d.ts.map +0 -1
- package/accordion/core-accordion-item-trigger-indicator.directive.d.ts +0 -11
- package/accordion/core-accordion-item-trigger-indicator.directive.d.ts.map +0 -1
- package/accordion/core-accordion-item-trigger-secondary.directive.d.ts +0 -11
- package/accordion/core-accordion-item-trigger-secondary.directive.d.ts.map +0 -1
- package/accordion/core-accordion-item-trigger-title.directive.d.ts +0 -11
- package/accordion/core-accordion-item-trigger-title.directive.d.ts.map +0 -1
- package/accordion/core-accordion-item-trigger.directive.d.ts +0 -17
- package/accordion/core-accordion-item-trigger.directive.d.ts.map +0 -1
- package/accordion/core-accordion-item.directive.d.ts +0 -23
- package/accordion/core-accordion-item.directive.d.ts.map +0 -1
- package/accordion/core-accordion-root.directive.d.ts +0 -58
- package/accordion/core-accordion-root.directive.d.ts.map +0 -1
- package/accordion/qualcomm-ui-angular-core-accordion.d.ts +0 -6
- package/accordion/qualcomm-ui-angular-core-accordion.d.ts.map +0 -1
- package/attributes/number-attributes.d.ts +0 -11
- package/attributes/number-attributes.d.ts.map +0 -1
- package/attributes/pixel-attribute.d.ts +0 -6
- package/attributes/pixel-attribute.d.ts.map +0 -1
- package/attributes/qualcomm-ui-angular-core-attributes.d.ts +0 -6
- package/attributes/qualcomm-ui-angular-core-attributes.d.ts.map +0 -1
- package/avatar/avatar-context.service.d.ts +0 -9
- package/avatar/avatar-context.service.d.ts.map +0 -1
- package/avatar/core-avatar-content.directive.d.ts +0 -20
- package/avatar/core-avatar-content.directive.d.ts.map +0 -1
- package/avatar/core-avatar-image.directive.d.ts +0 -20
- package/avatar/core-avatar-image.directive.d.ts.map +0 -1
- package/avatar/core-avatar-root.directive.d.ts +0 -36
- package/avatar/core-avatar-root.directive.d.ts.map +0 -1
- package/avatar/core-avatar-status.directive.d.ts +0 -20
- package/avatar/core-avatar-status.directive.d.ts.map +0 -1
- package/avatar/qualcomm-ui-angular-core-avatar.d.ts +0 -6
- package/avatar/qualcomm-ui-angular-core-avatar.d.ts.map +0 -1
- package/checkbox/abstract-checkbox-form-control.directive.d.ts +0 -79
- package/checkbox/abstract-checkbox-form-control.directive.d.ts.map +0 -1
- package/checkbox/checkbox-context.service.d.ts +0 -9
- package/checkbox/checkbox-context.service.d.ts.map +0 -1
- package/checkbox/core-checkbox-control.directive.d.ts +0 -20
- package/checkbox/core-checkbox-control.directive.d.ts.map +0 -1
- package/checkbox/core-checkbox-error-text.directive.d.ts +0 -20
- package/checkbox/core-checkbox-error-text.directive.d.ts.map +0 -1
- package/checkbox/core-checkbox-hidden-input.directive.d.ts +0 -20
- package/checkbox/core-checkbox-hidden-input.directive.d.ts.map +0 -1
- package/checkbox/core-checkbox-indicator.directive.d.ts +0 -13
- package/checkbox/core-checkbox-indicator.directive.d.ts.map +0 -1
- package/checkbox/core-checkbox-label.directive.d.ts +0 -20
- package/checkbox/core-checkbox-label.directive.d.ts.map +0 -1
- package/checkbox/core-checkbox-root.directive.d.ts +0 -48
- package/checkbox/core-checkbox-root.directive.d.ts.map +0 -1
- package/checkbox/qualcomm-ui-angular-core-checkbox.d.ts +0 -6
- package/checkbox/qualcomm-ui-angular-core-checkbox.d.ts.map +0 -1
- package/checkbox/use-checkbox-group.d.ts +0 -32
- package/checkbox/use-checkbox-group.d.ts.map +0 -1
- package/collapsible/collapsible-context.service.d.ts +0 -9
- package/collapsible/collapsible-context.service.d.ts.map +0 -1
- package/collapsible/core-collapsible-content.directive.d.ts +0 -20
- package/collapsible/core-collapsible-content.directive.d.ts.map +0 -1
- package/collapsible/core-collapsible-root.directive.d.ts +0 -52
- package/collapsible/core-collapsible-root.directive.d.ts.map +0 -1
- package/collapsible/core-collapsible-trigger.directive.d.ts +0 -20
- package/collapsible/core-collapsible-trigger.directive.d.ts.map +0 -1
- package/collapsible/qualcomm-ui-angular-core-collapsible.d.ts +0 -6
- package/collapsible/qualcomm-ui-angular-core-collapsible.d.ts.map +0 -1
- package/collection/qualcomm-ui-angular-core-collection.d.ts +0 -6
- package/collection/qualcomm-ui-angular-core-collection.d.ts.map +0 -1
- package/collection/use-list-collection.d.ts +0 -44
- package/collection/use-list-collection.d.ts.map +0 -1
- package/combobox/combobox-context.service.d.ts +0 -12
- package/combobox/combobox-context.service.d.ts.map +0 -1
- package/combobox/combobox-item-context.service.d.ts +0 -9
- package/combobox/combobox-item-context.service.d.ts.map +0 -1
- package/combobox/combobox-item-group-context.service.d.ts +0 -9
- package/combobox/combobox-item-group-context.service.d.ts.map +0 -1
- package/combobox/core-combobox-clear-trigger.directive.d.ts +0 -20
- package/combobox/core-combobox-clear-trigger.directive.d.ts.map +0 -1
- package/combobox/core-combobox-content.directive.d.ts +0 -23
- package/combobox/core-combobox-content.directive.d.ts.map +0 -1
- package/combobox/core-combobox-control.directive.d.ts +0 -20
- package/combobox/core-combobox-control.directive.d.ts.map +0 -1
- package/combobox/core-combobox-empty.directive.d.ts +0 -13
- package/combobox/core-combobox-empty.directive.d.ts.map +0 -1
- package/combobox/core-combobox-error-indicator.directive.d.ts +0 -13
- package/combobox/core-combobox-error-indicator.directive.d.ts.map +0 -1
- package/combobox/core-combobox-error-text.directive.d.ts +0 -20
- package/combobox/core-combobox-error-text.directive.d.ts.map +0 -1
- package/combobox/core-combobox-hint.directive.d.ts +0 -20
- package/combobox/core-combobox-hint.directive.d.ts.map +0 -1
- package/combobox/core-combobox-input.directive.d.ts +0 -20
- package/combobox/core-combobox-input.directive.d.ts.map +0 -1
- package/combobox/core-combobox-item-group-label.directive.d.ts +0 -14
- package/combobox/core-combobox-item-group-label.directive.d.ts.map +0 -1
- package/combobox/core-combobox-item-group.directive.d.ts +0 -21
- package/combobox/core-combobox-item-group.directive.d.ts.map +0 -1
- package/combobox/core-combobox-item-indicator.directive.d.ts +0 -14
- package/combobox/core-combobox-item-indicator.directive.d.ts.map +0 -1
- package/combobox/core-combobox-item-text.directive.d.ts +0 -14
- package/combobox/core-combobox-item-text.directive.d.ts.map +0 -1
- package/combobox/core-combobox-item.directive.d.ts +0 -27
- package/combobox/core-combobox-item.directive.d.ts.map +0 -1
- package/combobox/core-combobox-label.directive.d.ts +0 -20
- package/combobox/core-combobox-label.directive.d.ts.map +0 -1
- package/combobox/core-combobox-positioner.directive.d.ts +0 -21
- package/combobox/core-combobox-positioner.directive.d.ts.map +0 -1
- package/combobox/core-combobox-root.directive.d.ts +0 -234
- package/combobox/core-combobox-root.directive.d.ts.map +0 -1
- package/combobox/core-combobox-trigger.directive.d.ts +0 -27
- package/combobox/core-combobox-trigger.directive.d.ts.map +0 -1
- package/combobox/qualcomm-ui-angular-core-combobox.d.ts +0 -6
- package/combobox/qualcomm-ui-angular-core-combobox.d.ts.map +0 -1
- package/common/boolean.d.ts +0 -6
- package/common/boolean.d.ts.map +0 -1
- package/common/ng-changes.d.ts +0 -18
- package/common/ng-changes.d.ts.map +0 -1
- package/common/qualcomm-ui-angular-core-common.d.ts +0 -6
- package/common/qualcomm-ui-angular-core-common.d.ts.map +0 -1
- package/common/template-content.d.ts +0 -6
- package/common/template-content.d.ts.map +0 -1
- package/common/use-csr-check.d.ts +0 -13
- package/common/use-csr-check.d.ts.map +0 -1
- package/common/use-id.d.ts +0 -2
- package/common/use-id.d.ts.map +0 -1
- package/common/use-is-destroyed.d.ts +0 -8
- package/common/use-is-destroyed.d.ts.map +0 -1
- package/common/use-is-mounted.d.ts +0 -7
- package/common/use-is-mounted.d.ts.map +0 -1
- package/common/use-on-destroy.d.ts +0 -8
- package/common/use-on-destroy.d.ts.map +0 -1
- package/common/use-ssr-check.d.ts +0 -13
- package/common/use-ssr-check.d.ts.map +0 -1
- package/dialog/core-dialog-backdrop.directive.d.ts +0 -24
- package/dialog/core-dialog-backdrop.directive.d.ts.map +0 -1
- package/dialog/core-dialog-body.directive.d.ts +0 -13
- package/dialog/core-dialog-body.directive.d.ts.map +0 -1
- package/dialog/core-dialog-close-trigger.directive.d.ts +0 -20
- package/dialog/core-dialog-close-trigger.directive.d.ts.map +0 -1
- package/dialog/core-dialog-content.directive.d.ts +0 -25
- package/dialog/core-dialog-content.directive.d.ts.map +0 -1
- package/dialog/core-dialog-description.directive.d.ts +0 -20
- package/dialog/core-dialog-description.directive.d.ts.map +0 -1
- package/dialog/core-dialog-footer.directive.d.ts +0 -13
- package/dialog/core-dialog-footer.directive.d.ts.map +0 -1
- package/dialog/core-dialog-heading.directive.d.ts +0 -20
- package/dialog/core-dialog-heading.directive.d.ts.map +0 -1
- package/dialog/core-dialog-positioner.directive.d.ts +0 -21
- package/dialog/core-dialog-positioner.directive.d.ts.map +0 -1
- package/dialog/core-dialog-root.directive.d.ts +0 -129
- package/dialog/core-dialog-root.directive.d.ts.map +0 -1
- package/dialog/core-dialog-trigger.directive.d.ts +0 -20
- package/dialog/core-dialog-trigger.directive.d.ts.map +0 -1
- package/dialog/dialog-context.service.d.ts +0 -12
- package/dialog/dialog-context.service.d.ts.map +0 -1
- package/dialog/qualcomm-ui-angular-core-dialog.d.ts +0 -6
- package/dialog/qualcomm-ui-angular-core-dialog.d.ts.map +0 -1
- package/dom/clipboard.service.d.ts +0 -20
- package/dom/clipboard.service.d.ts.map +0 -1
- package/dom/context-id-signal.d.ts +0 -42
- package/dom/context-id-signal.d.ts.map +0 -1
- package/dom/descendants-manager.service.d.ts +0 -12
- package/dom/descendants-manager.service.d.ts.map +0 -1
- package/dom/element-id-signal.d.ts +0 -42
- package/dom/element-id-signal.d.ts.map +0 -1
- package/dom/id.service.d.ts +0 -11
- package/dom/id.service.d.ts.map +0 -1
- package/dom/portal-config.service.d.ts +0 -8
- package/dom/portal-config.service.d.ts.map +0 -1
- package/dom/qualcomm-ui-angular-core-dom.d.ts +0 -6
- package/dom/qualcomm-ui-angular-core-dom.d.ts.map +0 -1
- package/dom/tokens/caches.d.ts +0 -3
- package/dom/tokens/caches.d.ts.map +0 -1
- package/dom/tokens/css.d.ts +0 -12
- package/dom/tokens/css.d.ts.map +0 -1
- package/dom/tokens/index.d.ts +0 -11
- package/dom/tokens/index.d.ts.map +0 -1
- package/dom/tokens/local-storage.d.ts +0 -3
- package/dom/tokens/local-storage.d.ts.map +0 -1
- package/dom/tokens/location.d.ts +0 -3
- package/dom/tokens/location.d.ts.map +0 -1
- package/dom/tokens/media-devices.d.ts +0 -3
- package/dom/tokens/media-devices.d.ts.map +0 -1
- package/dom/tokens/navigator.d.ts +0 -3
- package/dom/tokens/navigator.d.ts.map +0 -1
- package/dom/tokens/performance.d.ts +0 -3
- package/dom/tokens/performance.d.ts.map +0 -1
- package/dom/tokens/screen.d.ts +0 -3
- package/dom/tokens/screen.d.ts.map +0 -1
- package/dom/tokens/user-agent.d.ts +0 -3
- package/dom/tokens/user-agent.d.ts.map +0 -1
- package/dom/tokens/window.d.ts +0 -3
- package/dom/tokens/window.d.ts.map +0 -1
- package/esm2022/accordion/accordion-context.service.js +0 -14
- package/esm2022/accordion/accordion-context.service.js.map +0 -1
- package/esm2022/accordion/accordion-item-context.service.js +0 -14
- package/esm2022/accordion/accordion-item-context.service.js.map +0 -1
- package/esm2022/accordion/core-accordion-item-content.directive.js +0 -34
- package/esm2022/accordion/core-accordion-item-content.directive.js.map +0 -1
- package/esm2022/accordion/core-accordion-item-trigger-indicator.directive.js +0 -24
- package/esm2022/accordion/core-accordion-item-trigger-indicator.directive.js.map +0 -1
- package/esm2022/accordion/core-accordion-item-trigger-secondary.directive.js +0 -24
- package/esm2022/accordion/core-accordion-item-trigger-secondary.directive.js.map +0 -1
- package/esm2022/accordion/core-accordion-item-trigger-title.directive.js +0 -24
- package/esm2022/accordion/core-accordion-item-trigger-title.directive.js.map +0 -1
- package/esm2022/accordion/core-accordion-item-trigger.directive.js +0 -32
- package/esm2022/accordion/core-accordion-item-trigger.directive.js.map +0 -1
- package/esm2022/accordion/core-accordion-item.directive.js +0 -45
- package/esm2022/accordion/core-accordion-item.directive.js.map +0 -1
- package/esm2022/accordion/core-accordion-root.directive.js +0 -91
- package/esm2022/accordion/core-accordion-root.directive.js.map +0 -1
- package/esm2022/accordion/index.js +0 -10
- package/esm2022/accordion/index.js.map +0 -1
- package/esm2022/accordion/qualcomm-ui-angular-core-accordion.js +0 -5
- package/esm2022/accordion/qualcomm-ui-angular-core-accordion.js.map +0 -1
- package/esm2022/attributes/index.js +0 -3
- package/esm2022/attributes/index.js.map +0 -1
- package/esm2022/attributes/number-attributes.js +0 -22
- package/esm2022/attributes/number-attributes.js.map +0 -1
- package/esm2022/attributes/pixel-attribute.js +0 -10
- package/esm2022/attributes/pixel-attribute.js.map +0 -1
- package/esm2022/attributes/qualcomm-ui-angular-core-attributes.js +0 -5
- package/esm2022/attributes/qualcomm-ui-angular-core-attributes.js.map +0 -1
- package/esm2022/avatar/avatar-context.service.js +0 -14
- package/esm2022/avatar/avatar-context.service.js.map +0 -1
- package/esm2022/avatar/core-avatar-content.directive.js +0 -30
- package/esm2022/avatar/core-avatar-content.directive.js.map +0 -1
- package/esm2022/avatar/core-avatar-image.directive.js +0 -30
- package/esm2022/avatar/core-avatar-image.directive.js.map +0 -1
- package/esm2022/avatar/core-avatar-root.directive.js +0 -51
- package/esm2022/avatar/core-avatar-root.directive.js.map +0 -1
- package/esm2022/avatar/core-avatar-status.directive.js +0 -30
- package/esm2022/avatar/core-avatar-status.directive.js.map +0 -1
- package/esm2022/avatar/index.js +0 -6
- package/esm2022/avatar/index.js.map +0 -1
- package/esm2022/avatar/qualcomm-ui-angular-core-avatar.js +0 -5
- package/esm2022/avatar/qualcomm-ui-angular-core-avatar.js.map +0 -1
- package/esm2022/checkbox/abstract-checkbox-form-control.directive.js +0 -265
- package/esm2022/checkbox/abstract-checkbox-form-control.directive.js.map +0 -1
- package/esm2022/checkbox/checkbox-context.service.js +0 -14
- package/esm2022/checkbox/checkbox-context.service.js.map +0 -1
- package/esm2022/checkbox/core-checkbox-control.directive.js +0 -30
- package/esm2022/checkbox/core-checkbox-control.directive.js.map +0 -1
- package/esm2022/checkbox/core-checkbox-error-text.directive.js +0 -30
- package/esm2022/checkbox/core-checkbox-error-text.directive.js.map +0 -1
- package/esm2022/checkbox/core-checkbox-hidden-input.directive.js +0 -30
- package/esm2022/checkbox/core-checkbox-hidden-input.directive.js.map +0 -1
- package/esm2022/checkbox/core-checkbox-indicator.directive.js +0 -19
- package/esm2022/checkbox/core-checkbox-indicator.directive.js.map +0 -1
- package/esm2022/checkbox/core-checkbox-label.directive.js +0 -30
- package/esm2022/checkbox/core-checkbox-label.directive.js.map +0 -1
- package/esm2022/checkbox/core-checkbox-root.directive.js +0 -88
- package/esm2022/checkbox/core-checkbox-root.directive.js.map +0 -1
- package/esm2022/checkbox/index.js +0 -10
- package/esm2022/checkbox/index.js.map +0 -1
- package/esm2022/checkbox/qualcomm-ui-angular-core-checkbox.js +0 -5
- package/esm2022/checkbox/qualcomm-ui-angular-core-checkbox.js.map +0 -1
- package/esm2022/checkbox/use-checkbox-group.js +0 -62
- package/esm2022/checkbox/use-checkbox-group.js.map +0 -1
- package/esm2022/collapsible/collapsible-context.service.js +0 -14
- package/esm2022/collapsible/collapsible-context.service.js.map +0 -1
- package/esm2022/collapsible/core-collapsible-content.directive.js +0 -32
- package/esm2022/collapsible/core-collapsible-content.directive.js.map +0 -1
- package/esm2022/collapsible/core-collapsible-root.directive.js +0 -71
- package/esm2022/collapsible/core-collapsible-root.directive.js.map +0 -1
- package/esm2022/collapsible/core-collapsible-trigger.directive.js +0 -32
- package/esm2022/collapsible/core-collapsible-trigger.directive.js.map +0 -1
- package/esm2022/collapsible/index.js +0 -5
- package/esm2022/collapsible/index.js.map +0 -1
- package/esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js +0 -5
- package/esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js.map +0 -1
- package/esm2022/collection/index.js +0 -2
- package/esm2022/collection/index.js.map +0 -1
- package/esm2022/collection/qualcomm-ui-angular-core-collection.js +0 -5
- package/esm2022/collection/qualcomm-ui-angular-core-collection.js.map +0 -1
- package/esm2022/collection/use-list-collection.js.map +0 -1
- package/esm2022/combobox/combobox-context.service.js +0 -14
- package/esm2022/combobox/combobox-context.service.js.map +0 -1
- package/esm2022/combobox/combobox-item-context.service.js +0 -14
- package/esm2022/combobox/combobox-item-context.service.js.map +0 -1
- package/esm2022/combobox/combobox-item-group-context.service.js +0 -14
- package/esm2022/combobox/combobox-item-group-context.service.js.map +0 -1
- package/esm2022/combobox/core-combobox-clear-trigger.directive.js +0 -30
- package/esm2022/combobox/core-combobox-clear-trigger.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-content.directive.js +0 -34
- package/esm2022/combobox/core-combobox-content.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-control.directive.js +0 -30
- package/esm2022/combobox/core-combobox-control.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-empty.directive.js +0 -19
- package/esm2022/combobox/core-combobox-empty.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-error-indicator.directive.js +0 -19
- package/esm2022/combobox/core-combobox-error-indicator.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-error-text.directive.js +0 -30
- package/esm2022/combobox/core-combobox-error-text.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-hint.directive.js +0 -30
- package/esm2022/combobox/core-combobox-hint.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-input.directive.js +0 -30
- package/esm2022/combobox/core-combobox-input.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-item-group-label.directive.js +0 -23
- package/esm2022/combobox/core-combobox-item-group-label.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-item-group.directive.js +0 -31
- package/esm2022/combobox/core-combobox-item-group.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-item-indicator.directive.js +0 -21
- package/esm2022/combobox/core-combobox-item-indicator.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-item-text.directive.js +0 -21
- package/esm2022/combobox/core-combobox-item-text.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-item.directive.js +0 -35
- package/esm2022/combobox/core-combobox-item.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-label.directive.js +0 -30
- package/esm2022/combobox/core-combobox-label.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-positioner.directive.js +0 -32
- package/esm2022/combobox/core-combobox-positioner.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-root.directive.js +0 -387
- package/esm2022/combobox/core-combobox-root.directive.js.map +0 -1
- package/esm2022/combobox/core-combobox-trigger.directive.js +0 -37
- package/esm2022/combobox/core-combobox-trigger.directive.js.map +0 -1
- package/esm2022/combobox/index.js +0 -21
- package/esm2022/combobox/index.js.map +0 -1
- package/esm2022/combobox/qualcomm-ui-angular-core-combobox.js +0 -5
- package/esm2022/combobox/qualcomm-ui-angular-core-combobox.js.map +0 -1
- package/esm2022/common/boolean.js +0 -4
- package/esm2022/common/boolean.js.map +0 -1
- package/esm2022/common/index.js +0 -7
- package/esm2022/common/index.js.map +0 -1
- package/esm2022/common/ng-changes.js +0 -4
- package/esm2022/common/ng-changes.js.map +0 -1
- package/esm2022/common/qualcomm-ui-angular-core-common.js +0 -5
- package/esm2022/common/qualcomm-ui-angular-core-common.js.map +0 -1
- package/esm2022/common/template-content.js +0 -4
- package/esm2022/common/template-content.js.map +0 -1
- package/esm2022/common/use-csr-check.js +0 -22
- package/esm2022/common/use-csr-check.js.map +0 -1
- package/esm2022/common/use-id.js +0 -24
- package/esm2022/common/use-id.js.map +0 -1
- package/esm2022/common/use-is-destroyed.js +0 -20
- package/esm2022/common/use-is-destroyed.js.map +0 -1
- package/esm2022/common/use-is-mounted.js +0 -15
- package/esm2022/common/use-is-mounted.js.map +0 -1
- package/esm2022/common/use-on-destroy.js +0 -16
- package/esm2022/common/use-on-destroy.js.map +0 -1
- package/esm2022/common/use-ssr-check.js +0 -22
- package/esm2022/common/use-ssr-check.js.map +0 -1
- package/esm2022/dialog/core-dialog-backdrop.directive.js +0 -46
- package/esm2022/dialog/core-dialog-backdrop.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-body.directive.js +0 -21
- package/esm2022/dialog/core-dialog-body.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-close-trigger.directive.js +0 -30
- package/esm2022/dialog/core-dialog-close-trigger.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-content.directive.js +0 -50
- package/esm2022/dialog/core-dialog-content.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-description.directive.js +0 -30
- package/esm2022/dialog/core-dialog-description.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-footer.directive.js +0 -19
- package/esm2022/dialog/core-dialog-footer.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-heading.directive.js +0 -30
- package/esm2022/dialog/core-dialog-heading.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-positioner.directive.js +0 -32
- package/esm2022/dialog/core-dialog-positioner.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-root.directive.js +0 -225
- package/esm2022/dialog/core-dialog-root.directive.js.map +0 -1
- package/esm2022/dialog/core-dialog-trigger.directive.js +0 -30
- package/esm2022/dialog/core-dialog-trigger.directive.js.map +0 -1
- package/esm2022/dialog/dialog-context.service.js +0 -24
- package/esm2022/dialog/dialog-context.service.js.map +0 -1
- package/esm2022/dialog/index.js +0 -12
- package/esm2022/dialog/index.js.map +0 -1
- package/esm2022/dialog/qualcomm-ui-angular-core-dialog.js +0 -5
- package/esm2022/dialog/qualcomm-ui-angular-core-dialog.js.map +0 -1
- package/esm2022/dom/clipboard.service.js +0 -42
- package/esm2022/dom/clipboard.service.js.map +0 -1
- package/esm2022/dom/context-id-signal.js +0 -23
- package/esm2022/dom/context-id-signal.js.map +0 -1
- package/esm2022/dom/descendants-manager.service.js +0 -29
- package/esm2022/dom/descendants-manager.service.js.map +0 -1
- package/esm2022/dom/element-id-signal.js +0 -25
- package/esm2022/dom/element-id-signal.js.map +0 -1
- package/esm2022/dom/id.service.js +0 -33
- package/esm2022/dom/id.service.js.map +0 -1
- package/esm2022/dom/index.js +0 -8
- package/esm2022/dom/index.js.map +0 -1
- package/esm2022/dom/portal-config.service.js +0 -17
- package/esm2022/dom/portal-config.service.js.map +0 -1
- package/esm2022/dom/qualcomm-ui-angular-core-dom.js +0 -5
- package/esm2022/dom/qualcomm-ui-angular-core-dom.js.map +0 -1
- package/esm2022/dom/tokens/caches.js +0 -8
- package/esm2022/dom/tokens/caches.js.map +0 -1
- package/esm2022/dom/tokens/css.js +0 -11
- package/esm2022/dom/tokens/css.js.map +0 -1
- package/esm2022/dom/tokens/index.js +0 -11
- package/esm2022/dom/tokens/index.js.map +0 -1
- package/esm2022/dom/tokens/local-storage.js +0 -8
- package/esm2022/dom/tokens/local-storage.js.map +0 -1
- package/esm2022/dom/tokens/location.js +0 -8
- package/esm2022/dom/tokens/location.js.map +0 -1
- package/esm2022/dom/tokens/media-devices.js +0 -8
- package/esm2022/dom/tokens/media-devices.js.map +0 -1
- package/esm2022/dom/tokens/navigator.js +0 -8
- package/esm2022/dom/tokens/navigator.js.map +0 -1
- package/esm2022/dom/tokens/performance.js +0 -8
- package/esm2022/dom/tokens/performance.js.map +0 -1
- package/esm2022/dom/tokens/screen.js +0 -8
- package/esm2022/dom/tokens/screen.js.map +0 -1
- package/esm2022/dom/tokens/user-agent.js +0 -8
- package/esm2022/dom/tokens/user-agent.js.map +0 -1
- package/esm2022/dom/tokens/window.js +0 -14
- package/esm2022/dom/tokens/window.js.map +0 -1
- package/esm2022/events/index.js +0 -3
- package/esm2022/events/index.js.map +0 -1
- package/esm2022/events/listener.service.js.map +0 -1
- package/esm2022/events/qualcomm-ui-angular-core-events.js +0 -5
- package/esm2022/events/qualcomm-ui-angular-core-events.js.map +0 -1
- package/esm2022/events/use-copy-to-clipboard.js +0 -48
- package/esm2022/events/use-copy-to-clipboard.js.map +0 -1
- package/esm2022/forms/form-utils.js.map +0 -1
- package/esm2022/forms/index.js +0 -3
- package/esm2022/forms/index.js.map +0 -1
- package/esm2022/forms/qualcomm-ui-angular-core-forms.js +0 -5
- package/esm2022/forms/qualcomm-ui-angular-core-forms.js.map +0 -1
- package/esm2022/forms/use-forbidden-form-control-warning.js +0 -24
- package/esm2022/forms/use-forbidden-form-control-warning.js.map +0 -1
- package/esm2022/highlight/highlight.directive.js.map +0 -1
- package/esm2022/highlight/index.js +0 -2
- package/esm2022/highlight/index.js.map +0 -1
- package/esm2022/highlight/qualcomm-ui-angular-core-highlight.js +0 -5
- package/esm2022/highlight/qualcomm-ui-angular-core-highlight.js.map +0 -1
- package/esm2022/index.js.map +0 -1
- package/esm2022/inline-notification/core-inline-notification-action.directive.js +0 -21
- package/esm2022/inline-notification/core-inline-notification-action.directive.js.map +0 -1
- package/esm2022/inline-notification/core-inline-notification-close-trigger.directive.js +0 -32
- package/esm2022/inline-notification/core-inline-notification-close-trigger.directive.js.map +0 -1
- package/esm2022/inline-notification/core-inline-notification-description.directive.js +0 -32
- package/esm2022/inline-notification/core-inline-notification-description.directive.js.map +0 -1
- package/esm2022/inline-notification/core-inline-notification-icon.directive.js +0 -21
- package/esm2022/inline-notification/core-inline-notification-icon.directive.js.map +0 -1
- package/esm2022/inline-notification/core-inline-notification-label.directive.js +0 -32
- package/esm2022/inline-notification/core-inline-notification-label.directive.js.map +0 -1
- package/esm2022/inline-notification/core-inline-notification-root.directive.js +0 -71
- package/esm2022/inline-notification/core-inline-notification-root.directive.js.map +0 -1
- package/esm2022/inline-notification/index.js +0 -8
- package/esm2022/inline-notification/index.js.map +0 -1
- package/esm2022/inline-notification/inline-notification-context.service.js +0 -14
- package/esm2022/inline-notification/inline-notification-context.service.js.map +0 -1
- package/esm2022/inline-notification/qualcomm-ui-angular-core-inline-notification.js +0 -5
- package/esm2022/inline-notification/qualcomm-ui-angular-core-inline-notification.js.map +0 -1
- package/esm2022/input/abstract-input-form-control.directive.js +0 -254
- package/esm2022/input/abstract-input-form-control.directive.js.map +0 -1
- package/esm2022/input/abstract-list-collection-form-control.directive.js +0 -278
- package/esm2022/input/abstract-list-collection-form-control.directive.js.map +0 -1
- package/esm2022/input/index.js +0 -4
- package/esm2022/input/index.js.map +0 -1
- package/esm2022/input/input-form-control-provider.js +0 -70
- package/esm2022/input/input-form-control-provider.js.map +0 -1
- package/esm2022/input/qualcomm-ui-angular-core-input.js +0 -5
- package/esm2022/input/qualcomm-ui-angular-core-input.js.map +0 -1
- package/esm2022/locale/index.js +0 -3
- package/esm2022/locale/index.js.map +0 -1
- package/esm2022/locale/locale-context.service.js +0 -14
- package/esm2022/locale/locale-context.service.js.map +0 -1
- package/esm2022/locale/qualcomm-ui-angular-core-locale.js +0 -5
- package/esm2022/locale/qualcomm-ui-angular-core-locale.js.map +0 -1
- package/esm2022/locale/use-filter.js +0 -16
- package/esm2022/locale/use-filter.js.map +0 -1
- package/esm2022/lorem-ipsum/index.js +0 -2
- package/esm2022/lorem-ipsum/index.js.map +0 -1
- package/esm2022/lorem-ipsum/lorem-ipsum.directive.js.map +0 -1
- package/esm2022/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.js +0 -5
- package/esm2022/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.js.map +0 -1
- package/esm2022/lucide/index.js +0 -3
- package/esm2022/lucide/index.js.map +0 -1
- package/esm2022/lucide/lucide.types.js +0 -4
- package/esm2022/lucide/lucide.types.js.map +0 -1
- package/esm2022/lucide/provide-icons.js.map +0 -1
- package/esm2022/lucide/qualcomm-ui-angular-core-lucide.js +0 -5
- package/esm2022/lucide/qualcomm-ui-angular-core-lucide.js.map +0 -1
- package/esm2022/machine/api-context.directive.js +0 -44
- package/esm2022/machine/api-context.directive.js.map +0 -1
- package/esm2022/machine/api-context.service.js +0 -58
- package/esm2022/machine/api-context.service.js.map +0 -1
- package/esm2022/machine/bindable-id-collection.js +0 -51
- package/esm2022/machine/bindable-id-collection.js.map +0 -1
- package/esm2022/machine/bindable-id.js +0 -21
- package/esm2022/machine/bindable-id.js.map +0 -1
- package/esm2022/machine/bindable.js +0 -47
- package/esm2022/machine/bindable.js.map +0 -1
- package/esm2022/machine/index.js +0 -13
- package/esm2022/machine/index.js.map +0 -1
- package/esm2022/machine/machine.types.js +0 -4
- package/esm2022/machine/machine.types.js.map +0 -1
- package/esm2022/machine/merge-props.js +0 -68
- package/esm2022/machine/merge-props.js.map +0 -1
- package/esm2022/machine/normalize-props.js +0 -108
- package/esm2022/machine/normalize-props.js.map +0 -1
- package/esm2022/machine/q-bind.directive.js +0 -164
- package/esm2022/machine/q-bind.directive.js.map +0 -1
- package/esm2022/machine/qualcomm-ui-angular-core-machine.js +0 -5
- package/esm2022/machine/qualcomm-ui-angular-core-machine.js.map +0 -1
- package/esm2022/machine/refs.js +0 -18
- package/esm2022/machine/refs.js.map +0 -1
- package/esm2022/machine/track.js +0 -46
- package/esm2022/machine/track.js.map +0 -1
- package/esm2022/machine/use-machine.js +0 -312
- package/esm2022/machine/use-machine.js.map +0 -1
- package/esm2022/machine/use-track-bindings.js +0 -270
- package/esm2022/machine/use-track-bindings.js.map +0 -1
- package/esm2022/menu/base-menu-item.directive.js +0 -53
- package/esm2022/menu/base-menu-item.directive.js.map +0 -1
- package/esm2022/menu/core-menu-checkbox-item.directive.js +0 -51
- package/esm2022/menu/core-menu-checkbox-item.directive.js.map +0 -1
- package/esm2022/menu/core-menu-content.directive.js +0 -50
- package/esm2022/menu/core-menu-content.directive.js.map +0 -1
- package/esm2022/menu/core-menu-context-trigger.directive.js +0 -32
- package/esm2022/menu/core-menu-context-trigger.directive.js.map +0 -1
- package/esm2022/menu/core-menu-item-group-label.directive.js +0 -32
- package/esm2022/menu/core-menu-item-group-label.directive.js.map +0 -1
- package/esm2022/menu/core-menu-item-group.directive.js +0 -33
- package/esm2022/menu/core-menu-item-group.directive.js.map +0 -1
- package/esm2022/menu/core-menu-item-indicator.directive.js +0 -31
- package/esm2022/menu/core-menu-item-indicator.directive.js.map +0 -1
- package/esm2022/menu/core-menu-item-label.directive.js +0 -32
- package/esm2022/menu/core-menu-item-label.directive.js.map +0 -1
- package/esm2022/menu/core-menu-item-root.directive.js +0 -50
- package/esm2022/menu/core-menu-item-root.directive.js.map +0 -1
- package/esm2022/menu/core-menu-positioner.directive.js +0 -34
- package/esm2022/menu/core-menu-positioner.directive.js.map +0 -1
- package/esm2022/menu/core-menu-radio-item-group.directive.js +0 -52
- package/esm2022/menu/core-menu-radio-item-group.directive.js.map +0 -1
- package/esm2022/menu/core-menu-radio-item.directive.js +0 -41
- package/esm2022/menu/core-menu-radio-item.directive.js.map +0 -1
- package/esm2022/menu/core-menu-root.directive.js +0 -242
- package/esm2022/menu/core-menu-root.directive.js.map +0 -1
- package/esm2022/menu/core-menu-separator.directive.js +0 -21
- package/esm2022/menu/core-menu-separator.directive.js.map +0 -1
- package/esm2022/menu/core-menu-trigger-item.directive.js +0 -33
- package/esm2022/menu/core-menu-trigger-item.directive.js.map +0 -1
- package/esm2022/menu/core-menu-trigger.directive.js +0 -34
- package/esm2022/menu/core-menu-trigger.directive.js.map +0 -1
- package/esm2022/menu/index.js +0 -24
- package/esm2022/menu/index.js.map +0 -1
- package/esm2022/menu/menu-context.service.js +0 -14
- package/esm2022/menu/menu-context.service.js.map +0 -1
- package/esm2022/menu/menu-item-context.service.js +0 -14
- package/esm2022/menu/menu-item-context.service.js.map +0 -1
- package/esm2022/menu/menu-item-group-context.service.js +0 -14
- package/esm2022/menu/menu-item-group-context.service.js.map +0 -1
- package/esm2022/menu/menu-machine-context.service.js +0 -14
- package/esm2022/menu/menu-machine-context.service.js.map +0 -1
- package/esm2022/menu/menu-option-item-context.service.js +0 -14
- package/esm2022/menu/menu-option-item-context.service.js.map +0 -1
- package/esm2022/menu/menu-radio-item-group-context.service.js +0 -14
- package/esm2022/menu/menu-radio-item-group-context.service.js.map +0 -1
- package/esm2022/menu/menu-trigger-context.service.js +0 -14
- package/esm2022/menu/menu-trigger-context.service.js.map +0 -1
- package/esm2022/menu/qualcomm-ui-angular-core-menu.js +0 -5
- package/esm2022/menu/qualcomm-ui-angular-core-menu.js.map +0 -1
- package/esm2022/number-input/abstract-number-input-form-control.directive.js +0 -294
- package/esm2022/number-input/abstract-number-input-form-control.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-control.directive.js +0 -21
- package/esm2022/number-input/core-number-input-control.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-decrement-trigger.directive.js +0 -28
- package/esm2022/number-input/core-number-input-decrement-trigger.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-error-indicator.directive.js +0 -21
- package/esm2022/number-input/core-number-input-error-indicator.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-error-text.directive.js +0 -28
- package/esm2022/number-input/core-number-input-error-text.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-hint.directive.js +0 -28
- package/esm2022/number-input/core-number-input-hint.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-increment-trigger.directive.js +0 -28
- package/esm2022/number-input/core-number-input-increment-trigger.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-input-group.directive.js +0 -21
- package/esm2022/number-input/core-number-input-input-group.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-input.directive.js +0 -28
- package/esm2022/number-input/core-number-input-input.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-label.directive.js +0 -28
- package/esm2022/number-input/core-number-input-label.directive.js.map +0 -1
- package/esm2022/number-input/core-number-input-root.directive.js +0 -193
- package/esm2022/number-input/core-number-input-root.directive.js.map +0 -1
- package/esm2022/number-input/index.js +0 -14
- package/esm2022/number-input/index.js.map +0 -1
- package/esm2022/number-input/number-input-context.service.js +0 -14
- package/esm2022/number-input/number-input-context.service.js.map +0 -1
- package/esm2022/number-input/number-input.validators.js +0 -15
- package/esm2022/number-input/number-input.validators.js.map +0 -1
- package/esm2022/number-input/qualcomm-ui-angular-core-number-input.js +0 -5
- package/esm2022/number-input/qualcomm-ui-angular-core-number-input.js.map +0 -1
- package/esm2022/observers/index.js +0 -2
- package/esm2022/observers/index.js.map +0 -1
- package/esm2022/observers/intersection-observer.directive.js.map +0 -1
- package/esm2022/observers/qualcomm-ui-angular-core-observers.js +0 -5
- package/esm2022/observers/qualcomm-ui-angular-core-observers.js.map +0 -1
- package/esm2022/pagination/core-pagination-next-trigger.directive.js +0 -19
- package/esm2022/pagination/core-pagination-next-trigger.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-page-item.directive.js +0 -24
- package/esm2022/pagination/core-pagination-page-item.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-page-items.directive.js +0 -22
- package/esm2022/pagination/core-pagination-page-items.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-page-metadata.directive.js +0 -19
- package/esm2022/pagination/core-pagination-page-metadata.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-page-size-label.directive.js +0 -26
- package/esm2022/pagination/core-pagination-page-size-label.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-page-size.directive.js +0 -37
- package/esm2022/pagination/core-pagination-page-size.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-prev-trigger.directive.js +0 -19
- package/esm2022/pagination/core-pagination-prev-trigger.directive.js.map +0 -1
- package/esm2022/pagination/core-pagination-root.directive.js +0 -121
- package/esm2022/pagination/core-pagination-root.directive.js.map +0 -1
- package/esm2022/pagination/index.js +0 -10
- package/esm2022/pagination/index.js.map +0 -1
- package/esm2022/pagination/pagination-context.service.js +0 -14
- package/esm2022/pagination/pagination-context.service.js.map +0 -1
- package/esm2022/pagination/qualcomm-ui-angular-core-pagination.js +0 -5
- package/esm2022/pagination/qualcomm-ui-angular-core-pagination.js.map +0 -1
- package/esm2022/password-input/core-password-input-clear-trigger.directive.js +0 -21
- package/esm2022/password-input/core-password-input-clear-trigger.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-error-indicator.directive.js +0 -21
- package/esm2022/password-input/core-password-input-error-indicator.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-error-text.directive.js +0 -32
- package/esm2022/password-input/core-password-input-error-text.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-hint.directive.js +0 -32
- package/esm2022/password-input/core-password-input-hint.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-input-group.directive.js +0 -21
- package/esm2022/password-input/core-password-input-input-group.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-input.directive.js +0 -32
- package/esm2022/password-input/core-password-input-input.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-label.directive.js +0 -32
- package/esm2022/password-input/core-password-input-label.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-root.directive.js +0 -120
- package/esm2022/password-input/core-password-input-root.directive.js.map +0 -1
- package/esm2022/password-input/core-password-input-visibility-trigger.directive.js +0 -32
- package/esm2022/password-input/core-password-input-visibility-trigger.directive.js.map +0 -1
- package/esm2022/password-input/index.js +0 -11
- package/esm2022/password-input/index.js.map +0 -1
- package/esm2022/password-input/password-input-context.service.js +0 -14
- package/esm2022/password-input/password-input-context.service.js.map +0 -1
- package/esm2022/password-input/qualcomm-ui-angular-core-password-input.js +0 -5
- package/esm2022/password-input/qualcomm-ui-angular-core-password-input.js.map +0 -1
- package/esm2022/popover/core-popover-anchor.directive.js +0 -30
- package/esm2022/popover/core-popover-anchor.directive.js.map +0 -1
- package/esm2022/popover/core-popover-arrow-tip.directive.js +0 -19
- package/esm2022/popover/core-popover-arrow-tip.directive.js.map +0 -1
- package/esm2022/popover/core-popover-arrow.directive.js +0 -30
- package/esm2022/popover/core-popover-arrow.directive.js.map +0 -1
- package/esm2022/popover/core-popover-close-trigger.directive.js +0 -30
- package/esm2022/popover/core-popover-close-trigger.directive.js.map +0 -1
- package/esm2022/popover/core-popover-content.directive.js +0 -30
- package/esm2022/popover/core-popover-content.directive.js.map +0 -1
- package/esm2022/popover/core-popover-description.directive.js +0 -30
- package/esm2022/popover/core-popover-description.directive.js.map +0 -1
- package/esm2022/popover/core-popover-label.directive.js +0 -30
- package/esm2022/popover/core-popover-label.directive.js.map +0 -1
- package/esm2022/popover/core-popover-positioner.directive.js +0 -30
- package/esm2022/popover/core-popover-positioner.directive.js.map +0 -1
- package/esm2022/popover/core-popover-root.directive.js +0 -178
- package/esm2022/popover/core-popover-root.directive.js.map +0 -1
- package/esm2022/popover/core-popover-trigger.directive.js +0 -30
- package/esm2022/popover/core-popover-trigger.directive.js.map +0 -1
- package/esm2022/popover/index.js +0 -12
- package/esm2022/popover/index.js.map +0 -1
- package/esm2022/popover/popover-context.service.js +0 -14
- package/esm2022/popover/popover-context.service.js.map +0 -1
- package/esm2022/popover/qualcomm-ui-angular-core-popover.js +0 -5
- package/esm2022/popover/qualcomm-ui-angular-core-popover.js.map +0 -1
- package/esm2022/portal/index.js +0 -4
- package/esm2022/portal/index.js.map +0 -1
- package/esm2022/portal/portal-context.service.js +0 -16
- package/esm2022/portal/portal-context.service.js.map +0 -1
- package/esm2022/portal/portal.component.js +0 -125
- package/esm2022/portal/portal.component.js.map +0 -1
- package/esm2022/portal/portal.directive.js +0 -116
- package/esm2022/portal/portal.directive.js.map +0 -1
- package/esm2022/portal/qualcomm-ui-angular-core-portal.js +0 -5
- package/esm2022/portal/qualcomm-ui-angular-core-portal.js.map +0 -1
- package/esm2022/presence/core-presence.directive.js +0 -53
- package/esm2022/presence/core-presence.directive.js.map +0 -1
- package/esm2022/presence/index.js +0 -5
- package/esm2022/presence/index.js.map +0 -1
- package/esm2022/presence/presence-context.service.js +0 -59
- package/esm2022/presence/presence-context.service.js.map +0 -1
- package/esm2022/presence/qualcomm-ui-angular-core-presence.js +0 -5
- package/esm2022/presence/qualcomm-ui-angular-core-presence.js.map +0 -1
- package/esm2022/presence/render-strategy-context.service.js +0 -14
- package/esm2022/presence/render-strategy-context.service.js.map +0 -1
- package/esm2022/presence/use-presence-renderer.js +0 -30
- package/esm2022/presence/use-presence-renderer.js.map +0 -1
- package/esm2022/progress/core-base-progress.directive.js +0 -59
- package/esm2022/progress/core-base-progress.directive.js.map +0 -1
- package/esm2022/progress/core-progress-bar.directive.js +0 -19
- package/esm2022/progress/core-progress-bar.directive.js.map +0 -1
- package/esm2022/progress/core-progress-error-text.directive.js +0 -32
- package/esm2022/progress/core-progress-error-text.directive.js.map +0 -1
- package/esm2022/progress/core-progress-hint.directive.js +0 -32
- package/esm2022/progress/core-progress-hint.directive.js.map +0 -1
- package/esm2022/progress/core-progress-label.directive.js +0 -32
- package/esm2022/progress/core-progress-label.directive.js.map +0 -1
- package/esm2022/progress/core-progress-root.directive.js +0 -33
- package/esm2022/progress/core-progress-root.directive.js.map +0 -1
- package/esm2022/progress/core-progress-track.directive.js +0 -30
- package/esm2022/progress/core-progress-track.directive.js.map +0 -1
- package/esm2022/progress/core-progress-value-text.directive.js +0 -19
- package/esm2022/progress/core-progress-value-text.directive.js.map +0 -1
- package/esm2022/progress/index.js +0 -10
- package/esm2022/progress/index.js.map +0 -1
- package/esm2022/progress/progress-context.service.js +0 -15
- package/esm2022/progress/progress-context.service.js.map +0 -1
- package/esm2022/progress/qualcomm-ui-angular-core-progress.js +0 -5
- package/esm2022/progress/qualcomm-ui-angular-core-progress.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-bar.directive.js +0 -21
- package/esm2022/progress-ring/core-progress-ring-bar.directive.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-circle.directive.js +0 -32
- package/esm2022/progress-ring/core-progress-ring-circle.directive.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-error-text.directive.js +0 -32
- package/esm2022/progress-ring/core-progress-ring-error-text.directive.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-label.directive.js +0 -32
- package/esm2022/progress-ring/core-progress-ring-label.directive.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-root.directive.js +0 -33
- package/esm2022/progress-ring/core-progress-ring-root.directive.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-track.directive.js +0 -21
- package/esm2022/progress-ring/core-progress-ring-track.directive.js.map +0 -1
- package/esm2022/progress-ring/core-progress-ring-value-text.directive.js +0 -21
- package/esm2022/progress-ring/core-progress-ring-value-text.directive.js.map +0 -1
- package/esm2022/progress-ring/index.js +0 -9
- package/esm2022/progress-ring/index.js.map +0 -1
- package/esm2022/progress-ring/progress-ring-context.service.js +0 -14
- package/esm2022/progress-ring/progress-ring-context.service.js.map +0 -1
- package/esm2022/progress-ring/qualcomm-ui-angular-core-progress-ring.js +0 -5
- package/esm2022/progress-ring/qualcomm-ui-angular-core-progress-ring.js.map +0 -1
- package/esm2022/qualcomm-ui-angular-core.js +0 -5
- package/esm2022/qualcomm-ui-angular-core.js.map +0 -1
- package/esm2022/radio/abstract-radio-form-control.directive.js +0 -261
- package/esm2022/radio/abstract-radio-form-control.directive.js.map +0 -1
- package/esm2022/radio/core-radio-group-error-text.directive.js +0 -30
- package/esm2022/radio/core-radio-group-error-text.directive.js.map +0 -1
- package/esm2022/radio/core-radio-group-items.directive.js +0 -19
- package/esm2022/radio/core-radio-group-items.directive.js.map +0 -1
- package/esm2022/radio/core-radio-group-label.directive.js +0 -30
- package/esm2022/radio/core-radio-group-label.directive.js.map +0 -1
- package/esm2022/radio/core-radio-group.directive.js +0 -87
- package/esm2022/radio/core-radio-group.directive.js.map +0 -1
- package/esm2022/radio/core-radio-item-control.directive.js +0 -21
- package/esm2022/radio/core-radio-item-control.directive.js.map +0 -1
- package/esm2022/radio/core-radio-item-hidden-input.directive.js +0 -33
- package/esm2022/radio/core-radio-item-hidden-input.directive.js.map +0 -1
- package/esm2022/radio/core-radio-item-label.directive.js +0 -33
- package/esm2022/radio/core-radio-item-label.directive.js.map +0 -1
- package/esm2022/radio/core-radio-root.directive.js +0 -62
- package/esm2022/radio/core-radio-root.directive.js.map +0 -1
- package/esm2022/radio/index.js +0 -12
- package/esm2022/radio/index.js.map +0 -1
- package/esm2022/radio/qualcomm-ui-angular-core-radio.js +0 -5
- package/esm2022/radio/qualcomm-ui-angular-core-radio.js.map +0 -1
- package/esm2022/radio/radio-context.service.js +0 -14
- package/esm2022/radio/radio-context.service.js.map +0 -1
- package/esm2022/radio/radio-item-context.service.js +0 -14
- package/esm2022/radio/radio-item-context.service.js.map +0 -1
- package/esm2022/segmented-control/core-segmented-control-hidden-input.directive.js +0 -29
- package/esm2022/segmented-control/core-segmented-control-hidden-input.directive.js.map +0 -1
- package/esm2022/segmented-control/core-segmented-control-item-text.directive.js +0 -29
- package/esm2022/segmented-control/core-segmented-control-item-text.directive.js.map +0 -1
- package/esm2022/segmented-control/core-segmented-control-item.directive.js +0 -53
- package/esm2022/segmented-control/core-segmented-control-item.directive.js.map +0 -1
- package/esm2022/segmented-control/core-segmented-control-root.directive.js +0 -80
- package/esm2022/segmented-control/core-segmented-control-root.directive.js.map +0 -1
- package/esm2022/segmented-control/index.js +0 -6
- package/esm2022/segmented-control/index.js.map +0 -1
- package/esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js +0 -5
- package/esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js.map +0 -1
- package/esm2022/segmented-control/segmented-control-context.service.js +0 -14
- package/esm2022/segmented-control/segmented-control-context.service.js.map +0 -1
- package/esm2022/select/core-select-clear-trigger.directive.js +0 -30
- package/esm2022/select/core-select-clear-trigger.directive.js.map +0 -1
- package/esm2022/select/core-select-content.directive.js +0 -30
- package/esm2022/select/core-select-content.directive.js.map +0 -1
- package/esm2022/select/core-select-control.directive.js +0 -30
- package/esm2022/select/core-select-control.directive.js.map +0 -1
- package/esm2022/select/core-select-error-indicator.directive.js +0 -21
- package/esm2022/select/core-select-error-indicator.directive.js.map +0 -1
- package/esm2022/select/core-select-error-text.directive.js +0 -32
- package/esm2022/select/core-select-error-text.directive.js.map +0 -1
- package/esm2022/select/core-select-hidden-select.directive.js +0 -30
- package/esm2022/select/core-select-hidden-select.directive.js.map +0 -1
- package/esm2022/select/core-select-hint.directive.js +0 -32
- package/esm2022/select/core-select-hint.directive.js.map +0 -1
- package/esm2022/select/core-select-indicator.directive.js +0 -21
- package/esm2022/select/core-select-indicator.directive.js.map +0 -1
- package/esm2022/select/core-select-item-indicator.directive.js +0 -21
- package/esm2022/select/core-select-item-indicator.directive.js.map +0 -1
- package/esm2022/select/core-select-item-text.directive.js +0 -21
- package/esm2022/select/core-select-item-text.directive.js.map +0 -1
- package/esm2022/select/core-select-item.directive.js +0 -35
- package/esm2022/select/core-select-item.directive.js.map +0 -1
- package/esm2022/select/core-select-label.directive.js +0 -30
- package/esm2022/select/core-select-label.directive.js.map +0 -1
- package/esm2022/select/core-select-positioner.directive.js +0 -30
- package/esm2022/select/core-select-positioner.directive.js.map +0 -1
- package/esm2022/select/core-select-root.directive.js +0 -231
- package/esm2022/select/core-select-root.directive.js.map +0 -1
- package/esm2022/select/core-select-value-text.directive.js +0 -23
- package/esm2022/select/core-select-value-text.directive.js.map +0 -1
- package/esm2022/select/index.js +0 -18
- package/esm2022/select/index.js.map +0 -1
- package/esm2022/select/qualcomm-ui-angular-core-select.js +0 -5
- package/esm2022/select/qualcomm-ui-angular-core-select.js.map +0 -1
- package/esm2022/select/select-context.service.js +0 -15
- package/esm2022/select/select-context.service.js.map +0 -1
- package/esm2022/select/select-item-context.service.js +0 -14
- package/esm2022/select/select-item-context.service.js.map +0 -1
- package/esm2022/signals/access-signal.js +0 -17
- package/esm2022/signals/access-signal.js.map +0 -1
- package/esm2022/signals/host-binding.js +0 -84
- package/esm2022/signals/host-binding.js.map +0 -1
- package/esm2022/signals/index.js +0 -4
- package/esm2022/signals/index.js.map +0 -1
- package/esm2022/signals/qualcomm-ui-angular-core-signals.js +0 -5
- package/esm2022/signals/qualcomm-ui-angular-core-signals.js.map +0 -1
- package/esm2022/signals/signalify-input.js +0 -4
- package/esm2022/signals/signalify-input.js.map +0 -1
- package/esm2022/signals/signalify-object.js +0 -73
- package/esm2022/signals/signalify-object.js.map +0 -1
- package/esm2022/signals/signals.types.js +0 -4
- package/esm2022/signals/signals.types.js.map +0 -1
- package/esm2022/state/controlled-state-legacy.js +0 -80
- package/esm2022/state/controlled-state-legacy.js.map +0 -1
- package/esm2022/state/controlled-state.service.js +0 -84
- package/esm2022/state/controlled-state.service.js.map +0 -1
- package/esm2022/state/index.js +0 -4
- package/esm2022/state/index.js.map +0 -1
- package/esm2022/state/qualcomm-ui-angular-core-state.js +0 -5
- package/esm2022/state/qualcomm-ui-angular-core-state.js.map +0 -1
- package/esm2022/state/use-controlled-state.js +0 -28
- package/esm2022/state/use-controlled-state.js.map +0 -1
- package/esm2022/switch/core-switch-control.directive.js +0 -19
- package/esm2022/switch/core-switch-control.directive.js.map +0 -1
- package/esm2022/switch/core-switch-error-text.directive.js +0 -30
- package/esm2022/switch/core-switch-error-text.directive.js.map +0 -1
- package/esm2022/switch/core-switch-hidden-input.directive.js +0 -30
- package/esm2022/switch/core-switch-hidden-input.directive.js.map +0 -1
- package/esm2022/switch/core-switch-label.directive.js +0 -30
- package/esm2022/switch/core-switch-label.directive.js.map +0 -1
- package/esm2022/switch/core-switch-root.directive.js +0 -89
- package/esm2022/switch/core-switch-root.directive.js.map +0 -1
- package/esm2022/switch/core-switch-thumb.directive.js +0 -19
- package/esm2022/switch/core-switch-thumb.directive.js.map +0 -1
- package/esm2022/switch/index.js +0 -8
- package/esm2022/switch/index.js.map +0 -1
- package/esm2022/switch/qualcomm-ui-angular-core-switch.js +0 -5
- package/esm2022/switch/qualcomm-ui-angular-core-switch.js.map +0 -1
- package/esm2022/switch/switch-context.service.js +0 -14
- package/esm2022/switch/switch-context.service.js.map +0 -1
- package/esm2022/tabs/core-tab-button.directive.js +0 -35
- package/esm2022/tabs/core-tab-button.directive.js.map +0 -1
- package/esm2022/tabs/core-tab-dismiss-button.directive.js +0 -26
- package/esm2022/tabs/core-tab-dismiss-button.directive.js.map +0 -1
- package/esm2022/tabs/core-tab-root.directive.js +0 -37
- package/esm2022/tabs/core-tab-root.directive.js.map +0 -1
- package/esm2022/tabs/core-tabs-indicator.directive.js +0 -32
- package/esm2022/tabs/core-tabs-indicator.directive.js.map +0 -1
- package/esm2022/tabs/core-tabs-list.directive.js +0 -32
- package/esm2022/tabs/core-tabs-list.directive.js.map +0 -1
- package/esm2022/tabs/core-tabs-panel.directive.js +0 -61
- package/esm2022/tabs/core-tabs-panel.directive.js.map +0 -1
- package/esm2022/tabs/core-tabs-root.directive.js +0 -144
- package/esm2022/tabs/core-tabs-root.directive.js.map +0 -1
- package/esm2022/tabs/index.js +0 -10
- package/esm2022/tabs/index.js.map +0 -1
- package/esm2022/tabs/qualcomm-ui-angular-core-tabs.js +0 -5
- package/esm2022/tabs/qualcomm-ui-angular-core-tabs.js.map +0 -1
- package/esm2022/tabs/tab-context.service.js +0 -14
- package/esm2022/tabs/tab-context.service.js.map +0 -1
- package/esm2022/tabs/tabs-context.service.js +0 -14
- package/esm2022/tabs/tabs-context.service.js.map +0 -1
- package/esm2022/text-area/index.js +0 -2
- package/esm2022/text-area/index.js.map +0 -1
- package/esm2022/text-area/qualcomm-ui-angular-core-text-area.js +0 -5
- package/esm2022/text-area/qualcomm-ui-angular-core-text-area.js.map +0 -1
- package/esm2022/text-input/core-text-input-clear-trigger.directive.js +0 -19
- package/esm2022/text-input/core-text-input-clear-trigger.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-error-indicator.directive.js +0 -21
- package/esm2022/text-input/core-text-input-error-indicator.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-error-text.directive.js +0 -26
- package/esm2022/text-input/core-text-input-error-text.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-hint.directive.js +0 -26
- package/esm2022/text-input/core-text-input-hint.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-input-group.directive.js +0 -21
- package/esm2022/text-input/core-text-input-input-group.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-input.directive.js +0 -28
- package/esm2022/text-input/core-text-input-input.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-label.directive.js +0 -26
- package/esm2022/text-input/core-text-input-label.directive.js.map +0 -1
- package/esm2022/text-input/core-text-input-root.directive.js +0 -82
- package/esm2022/text-input/core-text-input-root.directive.js.map +0 -1
- package/esm2022/text-input/index.js +0 -10
- package/esm2022/text-input/index.js.map +0 -1
- package/esm2022/text-input/qualcomm-ui-angular-core-text-input.js +0 -5
- package/esm2022/text-input/qualcomm-ui-angular-core-text-input.js.map +0 -1
- package/esm2022/text-input/text-input-context.service.js +0 -14
- package/esm2022/text-input/text-input-context.service.js.map +0 -1
- package/esm2022/toast/core-toast-action.directive.js +0 -21
- package/esm2022/toast/core-toast-action.directive.js.map +0 -1
- package/esm2022/toast/core-toast-close-trigger.directive.js +0 -21
- package/esm2022/toast/core-toast-close-trigger.directive.js.map +0 -1
- package/esm2022/toast/core-toast-description.directive.js +0 -23
- package/esm2022/toast/core-toast-description.directive.js.map +0 -1
- package/esm2022/toast/core-toast-label.directive.js +0 -21
- package/esm2022/toast/core-toast-label.directive.js.map +0 -1
- package/esm2022/toast/core-toast-root.directive.js +0 -21
- package/esm2022/toast/core-toast-root.directive.js.map +0 -1
- package/esm2022/toast/core-toaster.directive.js +0 -55
- package/esm2022/toast/core-toaster.directive.js.map +0 -1
- package/esm2022/toast/index.js +0 -9
- package/esm2022/toast/index.js.map +0 -1
- package/esm2022/toast/qualcomm-ui-angular-core-toast.js +0 -5
- package/esm2022/toast/qualcomm-ui-angular-core-toast.js.map +0 -1
- package/esm2022/toast/toast-context.service.js +0 -14
- package/esm2022/toast/toast-context.service.js.map +0 -1
- package/esm2022/toast/toast-group-context.service.js +0 -14
- package/esm2022/toast/toast-group-context.service.js.map +0 -1
- package/esm2022/tooltip/core-tooltip-arrow-tip.directive.js +0 -19
- package/esm2022/tooltip/core-tooltip-arrow-tip.directive.js.map +0 -1
- package/esm2022/tooltip/core-tooltip-arrow.directive.js +0 -30
- package/esm2022/tooltip/core-tooltip-arrow.directive.js.map +0 -1
- package/esm2022/tooltip/core-tooltip-content.directive.js +0 -30
- package/esm2022/tooltip/core-tooltip-content.directive.js.map +0 -1
- package/esm2022/tooltip/core-tooltip-positioner.directive.js +0 -30
- package/esm2022/tooltip/core-tooltip-positioner.directive.js.map +0 -1
- package/esm2022/tooltip/core-tooltip-root.directive.js +0 -82
- package/esm2022/tooltip/core-tooltip-root.directive.js.map +0 -1
- package/esm2022/tooltip/core-tooltip-trigger.directive.js +0 -30
- package/esm2022/tooltip/core-tooltip-trigger.directive.js.map +0 -1
- package/esm2022/tooltip/index.js +0 -8
- package/esm2022/tooltip/index.js.map +0 -1
- package/esm2022/tooltip/qualcomm-ui-angular-core-tooltip.js +0 -5
- package/esm2022/tooltip/qualcomm-ui-angular-core-tooltip.js.map +0 -1
- package/esm2022/tooltip/tooltip-context.service.js +0 -14
- package/esm2022/tooltip/tooltip-context.service.js.map +0 -1
- package/esm2022/virtual/index.js +0 -3
- package/esm2022/virtual/index.js.map +0 -1
- package/esm2022/virtual/proxy.js +0 -95
- package/esm2022/virtual/proxy.js.map +0 -1
- package/esm2022/virtual/qualcomm-ui-angular-core-virtual.js +0 -5
- package/esm2022/virtual/qualcomm-ui-angular-core-virtual.js.map +0 -1
- package/esm2022/virtual/types.js +0 -4
- package/esm2022/virtual/types.js.map +0 -1
- package/esm2022/virtual/virtual.js +0 -89
- package/esm2022/virtual/virtual.js.map +0 -1
- package/events/listener.service.d.ts +0 -27
- package/events/listener.service.d.ts.map +0 -1
- package/events/qualcomm-ui-angular-core-events.d.ts +0 -6
- package/events/qualcomm-ui-angular-core-events.d.ts.map +0 -1
- package/events/use-copy-to-clipboard.d.ts +0 -9
- package/events/use-copy-to-clipboard.d.ts.map +0 -1
- package/forms/form-utils.d.ts +0 -17
- package/forms/form-utils.d.ts.map +0 -1
- package/forms/qualcomm-ui-angular-core-forms.d.ts +0 -6
- package/forms/qualcomm-ui-angular-core-forms.d.ts.map +0 -1
- package/forms/use-forbidden-form-control-warning.d.ts +0 -16
- package/forms/use-forbidden-form-control-warning.d.ts.map +0 -1
- package/highlight/highlight.directive.d.ts +0 -28
- package/highlight/highlight.directive.d.ts.map +0 -1
- package/highlight/qualcomm-ui-angular-core-highlight.d.ts +0 -6
- package/highlight/qualcomm-ui-angular-core-highlight.d.ts.map +0 -1
- package/inline-notification/core-inline-notification-action.directive.d.ts +0 -13
- package/inline-notification/core-inline-notification-action.directive.d.ts.map +0 -1
- package/inline-notification/core-inline-notification-close-trigger.directive.d.ts +0 -20
- package/inline-notification/core-inline-notification-close-trigger.directive.d.ts.map +0 -1
- package/inline-notification/core-inline-notification-description.directive.d.ts +0 -20
- package/inline-notification/core-inline-notification-description.directive.d.ts.map +0 -1
- package/inline-notification/core-inline-notification-icon.directive.d.ts +0 -13
- package/inline-notification/core-inline-notification-icon.directive.d.ts.map +0 -1
- package/inline-notification/core-inline-notification-label.directive.d.ts +0 -20
- package/inline-notification/core-inline-notification-label.directive.d.ts.map +0 -1
- package/inline-notification/core-inline-notification-root.directive.d.ts +0 -50
- package/inline-notification/core-inline-notification-root.directive.d.ts.map +0 -1
- package/inline-notification/inline-notification-context.service.d.ts +0 -9
- package/inline-notification/inline-notification-context.service.d.ts.map +0 -1
- package/inline-notification/qualcomm-ui-angular-core-inline-notification.d.ts +0 -6
- package/inline-notification/qualcomm-ui-angular-core-inline-notification.d.ts.map +0 -1
- package/input/abstract-input-form-control.directive.d.ts +0 -72
- package/input/abstract-input-form-control.directive.d.ts.map +0 -1
- package/input/abstract-list-collection-form-control.directive.d.ts +0 -81
- package/input/abstract-list-collection-form-control.directive.d.ts.map +0 -1
- package/input/input-form-control-provider.d.ts +0 -38
- package/input/input-form-control-provider.d.ts.map +0 -1
- package/input/qualcomm-ui-angular-core-input.d.ts +0 -6
- package/input/qualcomm-ui-angular-core-input.d.ts.map +0 -1
- package/locale/locale-context.service.d.ts +0 -9
- package/locale/locale-context.service.d.ts.map +0 -1
- package/locale/qualcomm-ui-angular-core-locale.d.ts +0 -6
- package/locale/qualcomm-ui-angular-core-locale.d.ts.map +0 -1
- package/locale/use-filter.d.ts +0 -8
- package/locale/use-filter.d.ts.map +0 -1
- package/lorem-ipsum/lorem-ipsum.directive.d.ts +0 -44
- package/lorem-ipsum/lorem-ipsum.directive.d.ts.map +0 -1
- package/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.d.ts +0 -6
- package/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.d.ts.map +0 -1
- package/lucide/lucide.types.d.ts +0 -40
- package/lucide/lucide.types.d.ts.map +0 -1
- package/lucide/provide-icons.d.ts +0 -11
- package/lucide/provide-icons.d.ts.map +0 -1
- package/lucide/qualcomm-ui-angular-core-lucide.d.ts +0 -6
- package/lucide/qualcomm-ui-angular-core-lucide.d.ts.map +0 -1
- package/machine/api-context.directive.d.ts +0 -20
- package/machine/api-context.directive.d.ts.map +0 -1
- package/machine/api-context.service.d.ts +0 -32
- package/machine/api-context.service.d.ts.map +0 -1
- package/machine/bindable-id-collection.d.ts +0 -3
- package/machine/bindable-id-collection.d.ts.map +0 -1
- package/machine/bindable-id.d.ts +0 -3
- package/machine/bindable-id.d.ts.map +0 -1
- package/machine/bindable.d.ts +0 -10
- package/machine/bindable.d.ts.map +0 -1
- package/machine/machine.types.d.ts +0 -8
- package/machine/machine.types.d.ts.map +0 -1
- package/machine/merge-props.d.ts +0 -20
- package/machine/merge-props.d.ts.map +0 -1
- package/machine/normalize-props.d.ts +0 -4
- package/machine/normalize-props.d.ts.map +0 -1
- package/machine/q-bind.directive.d.ts +0 -44
- package/machine/q-bind.directive.d.ts.map +0 -1
- package/machine/qualcomm-ui-angular-core-machine.d.ts +0 -6
- package/machine/qualcomm-ui-angular-core-machine.d.ts.map +0 -1
- package/machine/refs.d.ts +0 -5
- package/machine/refs.d.ts.map +0 -1
- package/machine/track.d.ts +0 -3
- package/machine/track.d.ts.map +0 -1
- package/machine/use-machine.d.ts +0 -12
- package/machine/use-machine.d.ts.map +0 -1
- package/machine/use-track-bindings.d.ts +0 -60
- package/machine/use-track-bindings.d.ts.map +0 -1
- package/menu/base-menu-item.directive.d.ts +0 -40
- package/menu/base-menu-item.directive.d.ts.map +0 -1
- package/menu/core-menu-checkbox-item.directive.d.ts +0 -35
- package/menu/core-menu-checkbox-item.directive.d.ts.map +0 -1
- package/menu/core-menu-content.directive.d.ts +0 -25
- package/menu/core-menu-content.directive.d.ts.map +0 -1
- package/menu/core-menu-context-trigger.directive.d.ts +0 -20
- package/menu/core-menu-context-trigger.directive.d.ts.map +0 -1
- package/menu/core-menu-item-group-label.directive.d.ts +0 -15
- package/menu/core-menu-item-group-label.directive.d.ts.map +0 -1
- package/menu/core-menu-item-group.directive.d.ts +0 -21
- package/menu/core-menu-item-group.directive.d.ts.map +0 -1
- package/menu/core-menu-item-indicator.directive.d.ts +0 -15
- package/menu/core-menu-item-indicator.directive.d.ts.map +0 -1
- package/menu/core-menu-item-label.directive.d.ts +0 -15
- package/menu/core-menu-item-label.directive.d.ts.map +0 -1
- package/menu/core-menu-item-root.directive.d.ts +0 -16
- package/menu/core-menu-item-root.directive.d.ts.map +0 -1
- package/menu/core-menu-positioner.directive.d.ts +0 -22
- package/menu/core-menu-positioner.directive.d.ts.map +0 -1
- package/menu/core-menu-radio-item-group.directive.d.ts +0 -33
- package/menu/core-menu-radio-item-group.directive.d.ts.map +0 -1
- package/menu/core-menu-radio-item.directive.d.ts +0 -18
- package/menu/core-menu-radio-item.directive.d.ts.map +0 -1
- package/menu/core-menu-root.directive.d.ts +0 -131
- package/menu/core-menu-root.directive.d.ts.map +0 -1
- package/menu/core-menu-separator.directive.d.ts +0 -13
- package/menu/core-menu-separator.directive.d.ts.map +0 -1
- package/menu/core-menu-trigger-item.directive.d.ts +0 -21
- package/menu/core-menu-trigger-item.directive.d.ts.map +0 -1
- package/menu/core-menu-trigger.directive.d.ts +0 -22
- package/menu/core-menu-trigger.directive.d.ts.map +0 -1
- package/menu/menu-context.service.d.ts +0 -9
- package/menu/menu-context.service.d.ts.map +0 -1
- package/menu/menu-item-context.service.d.ts +0 -11
- package/menu/menu-item-context.service.d.ts.map +0 -1
- package/menu/menu-item-group-context.service.d.ts +0 -9
- package/menu/menu-item-group-context.service.d.ts.map +0 -1
- package/menu/menu-machine-context.service.d.ts +0 -10
- package/menu/menu-machine-context.service.d.ts.map +0 -1
- package/menu/menu-option-item-context.service.d.ts +0 -11
- package/menu/menu-option-item-context.service.d.ts.map +0 -1
- package/menu/menu-radio-item-group-context.service.d.ts +0 -9
- package/menu/menu-radio-item-group-context.service.d.ts.map +0 -1
- package/menu/menu-trigger-context.service.d.ts +0 -9
- package/menu/menu-trigger-context.service.d.ts.map +0 -1
- package/menu/qualcomm-ui-angular-core-menu.d.ts +0 -6
- package/menu/qualcomm-ui-angular-core-menu.d.ts.map +0 -1
- package/number-input/abstract-number-input-form-control.directive.d.ts +0 -80
- package/number-input/abstract-number-input-form-control.directive.d.ts.map +0 -1
- package/number-input/core-number-input-control.directive.d.ts +0 -13
- package/number-input/core-number-input-control.directive.d.ts.map +0 -1
- package/number-input/core-number-input-decrement-trigger.directive.d.ts +0 -16
- package/number-input/core-number-input-decrement-trigger.directive.d.ts.map +0 -1
- package/number-input/core-number-input-error-indicator.directive.d.ts +0 -13
- package/number-input/core-number-input-error-indicator.directive.d.ts.map +0 -1
- package/number-input/core-number-input-error-text.directive.d.ts +0 -16
- package/number-input/core-number-input-error-text.directive.d.ts.map +0 -1
- package/number-input/core-number-input-hint.directive.d.ts +0 -16
- package/number-input/core-number-input-hint.directive.d.ts.map +0 -1
- package/number-input/core-number-input-increment-trigger.directive.d.ts +0 -16
- package/number-input/core-number-input-increment-trigger.directive.d.ts.map +0 -1
- package/number-input/core-number-input-input-group.directive.d.ts +0 -13
- package/number-input/core-number-input-input-group.directive.d.ts.map +0 -1
- package/number-input/core-number-input-input.directive.d.ts +0 -16
- package/number-input/core-number-input-input.directive.d.ts.map +0 -1
- package/number-input/core-number-input-label.directive.d.ts +0 -16
- package/number-input/core-number-input-label.directive.d.ts.map +0 -1
- package/number-input/core-number-input-root.directive.d.ts +0 -108
- package/number-input/core-number-input-root.directive.d.ts.map +0 -1
- package/number-input/number-input-context.service.d.ts +0 -9
- package/number-input/number-input-context.service.d.ts.map +0 -1
- package/number-input/number-input.validators.d.ts +0 -7
- package/number-input/number-input.validators.d.ts.map +0 -1
- package/number-input/qualcomm-ui-angular-core-number-input.d.ts +0 -6
- package/number-input/qualcomm-ui-angular-core-number-input.d.ts.map +0 -1
- package/observers/intersection-observer.directive.d.ts +0 -13
- package/observers/intersection-observer.directive.d.ts.map +0 -1
- package/observers/qualcomm-ui-angular-core-observers.d.ts +0 -6
- package/observers/qualcomm-ui-angular-core-observers.d.ts.map +0 -1
- package/pagination/core-pagination-next-trigger.directive.d.ts +0 -10
- package/pagination/core-pagination-next-trigger.directive.d.ts.map +0 -1
- package/pagination/core-pagination-page-item.directive.d.ts +0 -16
- package/pagination/core-pagination-page-item.directive.d.ts.map +0 -1
- package/pagination/core-pagination-page-items.directive.d.ts +0 -12
- package/pagination/core-pagination-page-items.directive.d.ts.map +0 -1
- package/pagination/core-pagination-page-metadata.directive.d.ts +0 -10
- package/pagination/core-pagination-page-metadata.directive.d.ts.map +0 -1
- package/pagination/core-pagination-page-size-label.directive.d.ts +0 -13
- package/pagination/core-pagination-page-size-label.directive.d.ts.map +0 -1
- package/pagination/core-pagination-page-size.directive.d.ts +0 -19
- package/pagination/core-pagination-page-size.directive.d.ts.map +0 -1
- package/pagination/core-pagination-prev-trigger.directive.d.ts +0 -10
- package/pagination/core-pagination-prev-trigger.directive.d.ts.map +0 -1
- package/pagination/core-pagination-root.directive.d.ts +0 -83
- package/pagination/core-pagination-root.directive.d.ts.map +0 -1
- package/pagination/pagination-context.service.d.ts +0 -9
- package/pagination/pagination-context.service.d.ts.map +0 -1
- package/pagination/qualcomm-ui-angular-core-pagination.d.ts +0 -6
- package/pagination/qualcomm-ui-angular-core-pagination.d.ts.map +0 -1
- package/password-input/core-password-input-clear-trigger.directive.d.ts +0 -13
- package/password-input/core-password-input-clear-trigger.directive.d.ts.map +0 -1
- package/password-input/core-password-input-error-indicator.directive.d.ts +0 -13
- package/password-input/core-password-input-error-indicator.directive.d.ts.map +0 -1
- package/password-input/core-password-input-error-text.directive.d.ts +0 -20
- package/password-input/core-password-input-error-text.directive.d.ts.map +0 -1
- package/password-input/core-password-input-hint.directive.d.ts +0 -20
- package/password-input/core-password-input-hint.directive.d.ts.map +0 -1
- package/password-input/core-password-input-input-group.directive.d.ts +0 -13
- package/password-input/core-password-input-input-group.directive.d.ts.map +0 -1
- package/password-input/core-password-input-input.directive.d.ts +0 -20
- package/password-input/core-password-input-input.directive.d.ts.map +0 -1
- package/password-input/core-password-input-label.directive.d.ts +0 -20
- package/password-input/core-password-input-label.directive.d.ts.map +0 -1
- package/password-input/core-password-input-root.directive.d.ts +0 -60
- package/password-input/core-password-input-root.directive.d.ts.map +0 -1
- package/password-input/core-password-input-visibility-trigger.directive.d.ts +0 -20
- package/password-input/core-password-input-visibility-trigger.directive.d.ts.map +0 -1
- package/password-input/password-input-context.service.d.ts +0 -9
- package/password-input/password-input-context.service.d.ts.map +0 -1
- package/password-input/qualcomm-ui-angular-core-password-input.d.ts +0 -6
- package/password-input/qualcomm-ui-angular-core-password-input.d.ts.map +0 -1
- package/popover/core-popover-anchor.directive.d.ts +0 -17
- package/popover/core-popover-anchor.directive.d.ts.map +0 -1
- package/popover/core-popover-arrow-tip.directive.d.ts +0 -10
- package/popover/core-popover-arrow-tip.directive.d.ts.map +0 -1
- package/popover/core-popover-arrow.directive.d.ts +0 -17
- package/popover/core-popover-arrow.directive.d.ts.map +0 -1
- package/popover/core-popover-close-trigger.directive.d.ts +0 -17
- package/popover/core-popover-close-trigger.directive.d.ts.map +0 -1
- package/popover/core-popover-content.directive.d.ts +0 -17
- package/popover/core-popover-content.directive.d.ts.map +0 -1
- package/popover/core-popover-description.directive.d.ts +0 -17
- package/popover/core-popover-description.directive.d.ts.map +0 -1
- package/popover/core-popover-label.directive.d.ts +0 -17
- package/popover/core-popover-label.directive.d.ts.map +0 -1
- package/popover/core-popover-positioner.directive.d.ts +0 -17
- package/popover/core-popover-positioner.directive.d.ts.map +0 -1
- package/popover/core-popover-root.directive.d.ts +0 -123
- package/popover/core-popover-root.directive.d.ts.map +0 -1
- package/popover/core-popover-trigger.directive.d.ts +0 -17
- package/popover/core-popover-trigger.directive.d.ts.map +0 -1
- package/popover/popover-context.service.d.ts +0 -9
- package/popover/popover-context.service.d.ts.map +0 -1
- package/popover/qualcomm-ui-angular-core-popover.d.ts +0 -6
- package/popover/qualcomm-ui-angular-core-popover.d.ts.map +0 -1
- package/portal/portal-context.service.d.ts +0 -9
- package/portal/portal-context.service.d.ts.map +0 -1
- package/portal/portal.component.d.ts +0 -37
- package/portal/portal.component.d.ts.map +0 -1
- package/portal/portal.directive.d.ts +0 -27
- package/portal/portal.directive.d.ts.map +0 -1
- package/portal/qualcomm-ui-angular-core-portal.d.ts +0 -6
- package/portal/qualcomm-ui-angular-core-portal.d.ts.map +0 -1
- package/presence/core-presence.directive.d.ts +0 -44
- package/presence/core-presence.directive.d.ts.map +0 -1
- package/presence/presence-context.service.d.ts +0 -22
- package/presence/presence-context.service.d.ts.map +0 -1
- package/presence/qualcomm-ui-angular-core-presence.d.ts +0 -6
- package/presence/qualcomm-ui-angular-core-presence.d.ts.map +0 -1
- package/presence/render-strategy-context.service.d.ts +0 -9
- package/presence/render-strategy-context.service.d.ts.map +0 -1
- package/presence/use-presence-renderer.d.ts +0 -20
- package/presence/use-presence-renderer.d.ts.map +0 -1
- package/progress/core-base-progress.directive.d.ts +0 -45
- package/progress/core-base-progress.directive.d.ts.map +0 -1
- package/progress/core-progress-bar.directive.d.ts +0 -13
- package/progress/core-progress-bar.directive.d.ts.map +0 -1
- package/progress/core-progress-error-text.directive.d.ts +0 -20
- package/progress/core-progress-error-text.directive.d.ts.map +0 -1
- package/progress/core-progress-hint.directive.d.ts +0 -20
- package/progress/core-progress-hint.directive.d.ts.map +0 -1
- package/progress/core-progress-label.directive.d.ts +0 -20
- package/progress/core-progress-label.directive.d.ts.map +0 -1
- package/progress/core-progress-root.directive.d.ts +0 -16
- package/progress/core-progress-root.directive.d.ts.map +0 -1
- package/progress/core-progress-track.directive.d.ts +0 -20
- package/progress/core-progress-track.directive.d.ts.map +0 -1
- package/progress/core-progress-value-text.directive.d.ts +0 -13
- package/progress/core-progress-value-text.directive.d.ts.map +0 -1
- package/progress/progress-context.service.d.ts +0 -9
- package/progress/progress-context.service.d.ts.map +0 -1
- package/progress/qualcomm-ui-angular-core-progress.d.ts +0 -6
- package/progress/qualcomm-ui-angular-core-progress.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-bar.directive.d.ts +0 -13
- package/progress-ring/core-progress-ring-bar.directive.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-circle.directive.d.ts +0 -20
- package/progress-ring/core-progress-ring-circle.directive.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-error-text.directive.d.ts +0 -20
- package/progress-ring/core-progress-ring-error-text.directive.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-label.directive.d.ts +0 -20
- package/progress-ring/core-progress-ring-label.directive.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-root.directive.d.ts +0 -16
- package/progress-ring/core-progress-ring-root.directive.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-track.directive.d.ts +0 -13
- package/progress-ring/core-progress-ring-track.directive.d.ts.map +0 -1
- package/progress-ring/core-progress-ring-value-text.directive.d.ts +0 -13
- package/progress-ring/core-progress-ring-value-text.directive.d.ts.map +0 -1
- package/progress-ring/progress-ring-context.service.d.ts +0 -9
- package/progress-ring/progress-ring-context.service.d.ts.map +0 -1
- package/progress-ring/qualcomm-ui-angular-core-progress-ring.d.ts +0 -6
- package/progress-ring/qualcomm-ui-angular-core-progress-ring.d.ts.map +0 -1
- package/qualcomm-ui-angular-core.d.ts +0 -6
- package/qualcomm-ui-angular-core.d.ts.map +0 -1
- package/radio/abstract-radio-form-control.directive.d.ts +0 -79
- package/radio/abstract-radio-form-control.directive.d.ts.map +0 -1
- package/radio/core-radio-group-error-text.directive.d.ts +0 -20
- package/radio/core-radio-group-error-text.directive.d.ts.map +0 -1
- package/radio/core-radio-group-items.directive.d.ts +0 -13
- package/radio/core-radio-group-items.directive.d.ts.map +0 -1
- package/radio/core-radio-group-label.directive.d.ts +0 -23
- package/radio/core-radio-group-label.directive.d.ts.map +0 -1
- package/radio/core-radio-group.directive.d.ts +0 -43
- package/radio/core-radio-group.directive.d.ts.map +0 -1
- package/radio/core-radio-item-control.directive.d.ts +0 -14
- package/radio/core-radio-item-control.directive.d.ts.map +0 -1
- package/radio/core-radio-item-hidden-input.directive.d.ts +0 -24
- package/radio/core-radio-item-hidden-input.directive.d.ts.map +0 -1
- package/radio/core-radio-item-label.directive.d.ts +0 -24
- package/radio/core-radio-item-label.directive.d.ts.map +0 -1
- package/radio/core-radio-root.directive.d.ts +0 -41
- package/radio/core-radio-root.directive.d.ts.map +0 -1
- package/radio/qualcomm-ui-angular-core-radio.d.ts +0 -6
- package/radio/qualcomm-ui-angular-core-radio.d.ts.map +0 -1
- package/radio/radio-context.service.d.ts +0 -9
- package/radio/radio-context.service.d.ts.map +0 -1
- package/radio/radio-item-context.service.d.ts +0 -9
- package/radio/radio-item-context.service.d.ts.map +0 -1
- package/segmented-control/core-segmented-control-hidden-input.directive.d.ts +0 -23
- package/segmented-control/core-segmented-control-hidden-input.directive.d.ts.map +0 -1
- package/segmented-control/core-segmented-control-item-text.directive.d.ts +0 -23
- package/segmented-control/core-segmented-control-item-text.directive.d.ts.map +0 -1
- package/segmented-control/core-segmented-control-item.directive.d.ts +0 -28
- package/segmented-control/core-segmented-control-item.directive.d.ts.map +0 -1
- package/segmented-control/core-segmented-control-root.directive.d.ts +0 -53
- package/segmented-control/core-segmented-control-root.directive.d.ts.map +0 -1
- package/segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts +0 -6
- package/segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts.map +0 -1
- package/segmented-control/segmented-control-context.service.d.ts +0 -9
- package/segmented-control/segmented-control-context.service.d.ts.map +0 -1
- package/select/core-select-clear-trigger.directive.d.ts +0 -20
- package/select/core-select-clear-trigger.directive.d.ts.map +0 -1
- package/select/core-select-content.directive.d.ts +0 -20
- package/select/core-select-content.directive.d.ts.map +0 -1
- package/select/core-select-control.directive.d.ts +0 -20
- package/select/core-select-control.directive.d.ts.map +0 -1
- package/select/core-select-error-indicator.directive.d.ts +0 -13
- package/select/core-select-error-indicator.directive.d.ts.map +0 -1
- package/select/core-select-error-text.directive.d.ts +0 -20
- package/select/core-select-error-text.directive.d.ts.map +0 -1
- package/select/core-select-hidden-select.directive.d.ts +0 -20
- package/select/core-select-hidden-select.directive.d.ts.map +0 -1
- package/select/core-select-hint.directive.d.ts +0 -20
- package/select/core-select-hint.directive.d.ts.map +0 -1
- package/select/core-select-indicator.directive.d.ts +0 -13
- package/select/core-select-indicator.directive.d.ts.map +0 -1
- package/select/core-select-item-indicator.directive.d.ts +0 -14
- package/select/core-select-item-indicator.directive.d.ts.map +0 -1
- package/select/core-select-item-text.directive.d.ts +0 -14
- package/select/core-select-item-text.directive.d.ts.map +0 -1
- package/select/core-select-item.directive.d.ts +0 -26
- package/select/core-select-item.directive.d.ts.map +0 -1
- package/select/core-select-label.directive.d.ts +0 -20
- package/select/core-select-label.directive.d.ts.map +0 -1
- package/select/core-select-positioner.directive.d.ts +0 -20
- package/select/core-select-positioner.directive.d.ts.map +0 -1
- package/select/core-select-root.directive.d.ts +0 -130
- package/select/core-select-root.directive.d.ts.map +0 -1
- package/select/core-select-value-text.directive.d.ts +0 -17
- package/select/core-select-value-text.directive.d.ts.map +0 -1
- package/select/qualcomm-ui-angular-core-select.d.ts +0 -6
- package/select/qualcomm-ui-angular-core-select.d.ts.map +0 -1
- package/select/select-context.service.d.ts +0 -12
- package/select/select-context.service.d.ts.map +0 -1
- package/select/select-item-context.service.d.ts +0 -9
- package/select/select-item-context.service.d.ts.map +0 -1
- package/signals/access-signal.d.ts +0 -10
- package/signals/access-signal.d.ts.map +0 -1
- package/signals/host-binding.d.ts +0 -58
- package/signals/host-binding.d.ts.map +0 -1
- package/signals/qualcomm-ui-angular-core-signals.d.ts +0 -6
- package/signals/qualcomm-ui-angular-core-signals.d.ts.map +0 -1
- package/signals/signalify-input.d.ts +0 -9
- package/signals/signalify-input.d.ts.map +0 -1
- package/signals/signalify-object.d.ts +0 -5
- package/signals/signalify-object.d.ts.map +0 -1
- package/signals/signals.types.d.ts +0 -3
- package/signals/signals.types.d.ts.map +0 -1
- package/state/controlled-state-legacy.d.ts +0 -49
- package/state/controlled-state-legacy.d.ts.map +0 -1
- package/state/controlled-state.service.d.ts +0 -41
- package/state/controlled-state.service.d.ts.map +0 -1
- package/state/qualcomm-ui-angular-core-state.d.ts +0 -6
- package/state/qualcomm-ui-angular-core-state.d.ts.map +0 -1
- package/state/use-controlled-state.d.ts +0 -13
- package/state/use-controlled-state.d.ts.map +0 -1
- package/switch/core-switch-control.directive.d.ts +0 -13
- package/switch/core-switch-control.directive.d.ts.map +0 -1
- package/switch/core-switch-error-text.directive.d.ts +0 -20
- package/switch/core-switch-error-text.directive.d.ts.map +0 -1
- package/switch/core-switch-hidden-input.directive.d.ts +0 -20
- package/switch/core-switch-hidden-input.directive.d.ts.map +0 -1
- package/switch/core-switch-label.directive.d.ts +0 -20
- package/switch/core-switch-label.directive.d.ts.map +0 -1
- package/switch/core-switch-root.directive.d.ts +0 -48
- package/switch/core-switch-root.directive.d.ts.map +0 -1
- package/switch/core-switch-thumb.directive.d.ts +0 -13
- package/switch/core-switch-thumb.directive.d.ts.map +0 -1
- package/switch/qualcomm-ui-angular-core-switch.d.ts +0 -6
- package/switch/qualcomm-ui-angular-core-switch.d.ts.map +0 -1
- package/switch/switch-context.service.d.ts +0 -9
- package/switch/switch-context.service.d.ts.map +0 -1
- package/tabs/core-tab-button.directive.d.ts +0 -21
- package/tabs/core-tab-button.directive.d.ts.map +0 -1
- package/tabs/core-tab-dismiss-button.directive.d.ts +0 -14
- package/tabs/core-tab-dismiss-button.directive.d.ts.map +0 -1
- package/tabs/core-tab-root.directive.d.ts +0 -26
- package/tabs/core-tab-root.directive.d.ts.map +0 -1
- package/tabs/core-tabs-indicator.directive.d.ts +0 -20
- package/tabs/core-tabs-indicator.directive.d.ts.map +0 -1
- package/tabs/core-tabs-list.directive.d.ts +0 -20
- package/tabs/core-tabs-list.directive.d.ts.map +0 -1
- package/tabs/core-tabs-panel.directive.d.ts +0 -33
- package/tabs/core-tabs-panel.directive.d.ts.map +0 -1
- package/tabs/core-tabs-root.directive.d.ts +0 -103
- package/tabs/core-tabs-root.directive.d.ts.map +0 -1
- package/tabs/qualcomm-ui-angular-core-tabs.d.ts +0 -6
- package/tabs/qualcomm-ui-angular-core-tabs.d.ts.map +0 -1
- package/tabs/tab-context.service.d.ts +0 -9
- package/tabs/tab-context.service.d.ts.map +0 -1
- package/tabs/tabs-context.service.d.ts +0 -9
- package/tabs/tabs-context.service.d.ts.map +0 -1
- package/text-area/qualcomm-ui-angular-core-text-area.d.ts +0 -6
- package/text-area/qualcomm-ui-angular-core-text-area.d.ts.map +0 -1
- package/text-input/core-text-input-clear-trigger.directive.d.ts +0 -13
- package/text-input/core-text-input-clear-trigger.directive.d.ts.map +0 -1
- package/text-input/core-text-input-error-indicator.directive.d.ts +0 -13
- package/text-input/core-text-input-error-indicator.directive.d.ts.map +0 -1
- package/text-input/core-text-input-error-text.directive.d.ts +0 -16
- package/text-input/core-text-input-error-text.directive.d.ts.map +0 -1
- package/text-input/core-text-input-hint.directive.d.ts +0 -16
- package/text-input/core-text-input-hint.directive.d.ts.map +0 -1
- package/text-input/core-text-input-input-group.directive.d.ts +0 -13
- package/text-input/core-text-input-input-group.directive.d.ts.map +0 -1
- package/text-input/core-text-input-input.directive.d.ts +0 -16
- package/text-input/core-text-input-input.directive.d.ts.map +0 -1
- package/text-input/core-text-input-label.directive.d.ts +0 -16
- package/text-input/core-text-input-label.directive.d.ts.map +0 -1
- package/text-input/core-text-input-root.directive.d.ts +0 -36
- package/text-input/core-text-input-root.directive.d.ts.map +0 -1
- package/text-input/qualcomm-ui-angular-core-text-input.d.ts +0 -6
- package/text-input/qualcomm-ui-angular-core-text-input.d.ts.map +0 -1
- package/text-input/text-input-context.service.d.ts +0 -9
- package/text-input/text-input-context.service.d.ts.map +0 -1
- package/toast/core-toast-action.directive.d.ts +0 -13
- package/toast/core-toast-action.directive.d.ts.map +0 -1
- package/toast/core-toast-close-trigger.directive.d.ts +0 -13
- package/toast/core-toast-close-trigger.directive.d.ts.map +0 -1
- package/toast/core-toast-description.directive.d.ts +0 -14
- package/toast/core-toast-description.directive.d.ts.map +0 -1
- package/toast/core-toast-label.directive.d.ts +0 -13
- package/toast/core-toast-label.directive.d.ts.map +0 -1
- package/toast/core-toast-root.directive.d.ts +0 -13
- package/toast/core-toast-root.directive.d.ts.map +0 -1
- package/toast/core-toaster.directive.d.ts +0 -42
- package/toast/core-toaster.directive.d.ts.map +0 -1
- package/toast/qualcomm-ui-angular-core-toast.d.ts +0 -6
- package/toast/qualcomm-ui-angular-core-toast.d.ts.map +0 -1
- package/toast/toast-context.service.d.ts +0 -9
- package/toast/toast-context.service.d.ts.map +0 -1
- package/toast/toast-group-context.service.d.ts +0 -9
- package/toast/toast-group-context.service.d.ts.map +0 -1
- package/tooltip/core-tooltip-arrow-tip.directive.d.ts +0 -10
- package/tooltip/core-tooltip-arrow-tip.directive.d.ts.map +0 -1
- package/tooltip/core-tooltip-arrow.directive.d.ts +0 -17
- package/tooltip/core-tooltip-arrow.directive.d.ts.map +0 -1
- package/tooltip/core-tooltip-content.directive.d.ts +0 -17
- package/tooltip/core-tooltip-content.directive.d.ts.map +0 -1
- package/tooltip/core-tooltip-positioner.directive.d.ts +0 -17
- package/tooltip/core-tooltip-positioner.directive.d.ts.map +0 -1
- package/tooltip/core-tooltip-root.directive.d.ts +0 -53
- package/tooltip/core-tooltip-root.directive.d.ts.map +0 -1
- package/tooltip/core-tooltip-trigger.directive.d.ts +0 -17
- package/tooltip/core-tooltip-trigger.directive.d.ts.map +0 -1
- package/tooltip/qualcomm-ui-angular-core-tooltip.d.ts +0 -6
- package/tooltip/qualcomm-ui-angular-core-tooltip.d.ts.map +0 -1
- package/tooltip/tooltip-context.service.d.ts +0 -9
- package/tooltip/tooltip-context.service.d.ts.map +0 -1
- package/virtual/proxy.d.ts +0 -5
- package/virtual/proxy.d.ts.map +0 -1
- package/virtual/qualcomm-ui-angular-core-virtual.d.ts +0 -6
- package/virtual/qualcomm-ui-angular-core-virtual.d.ts.map +0 -1
- package/virtual/types.d.ts +0 -14
- package/virtual/types.d.ts.map +0 -1
- package/virtual/virtual.d.ts +0 -12
- package/virtual/virtual.d.ts.map +0 -1
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { inject, Injectable, InjectionToken, signal, } from "@angular/core";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Manages the API context for a service.
|
|
7
|
-
*
|
|
8
|
-
* Provides a way to initialize and access an API signal, ensuring that it is only
|
|
9
|
-
* set once. Attempting to reinitialize or access an uninitialized API will result
|
|
10
|
-
* in errors.
|
|
11
|
-
*
|
|
12
|
-
* @template T - The type of the data returned by the API.
|
|
13
|
-
*/
|
|
14
|
-
export class BaseApiContextService {
|
|
15
|
-
initialized = signal(false, ...(ngDevMode ? [{ debugName: "initialized" }] : []));
|
|
16
|
-
get context() {
|
|
17
|
-
if (!this._context) {
|
|
18
|
-
throw new Error("context not initialized");
|
|
19
|
-
}
|
|
20
|
-
return this._context;
|
|
21
|
-
}
|
|
22
|
-
_context;
|
|
23
|
-
init(computedApi) {
|
|
24
|
-
if (this._context) {
|
|
25
|
-
throw new Error("context already initialized");
|
|
26
|
-
}
|
|
27
|
-
this._context = computedApi;
|
|
28
|
-
this.initialized.set(true);
|
|
29
|
-
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BaseApiContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BaseApiContextService });
|
|
32
|
-
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: BaseApiContextService, decorators: [{
|
|
34
|
-
type: Injectable
|
|
35
|
-
}] });
|
|
36
|
-
export function createApiContext(name, service, initialValue) {
|
|
37
|
-
const token = new InjectionToken(name);
|
|
38
|
-
function useContext(opts = {}) {
|
|
39
|
-
return inject(token, opts);
|
|
40
|
-
}
|
|
41
|
-
function getProviders() {
|
|
42
|
-
return [
|
|
43
|
-
service,
|
|
44
|
-
{
|
|
45
|
-
deps: [service],
|
|
46
|
-
provide: token,
|
|
47
|
-
useFactory: (context) => {
|
|
48
|
-
if (!context.initialized() && initialValue !== undefined) {
|
|
49
|
-
context.init(signal(initialValue));
|
|
50
|
-
}
|
|
51
|
-
return () => context.context();
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
];
|
|
55
|
-
}
|
|
56
|
-
return [token, useContext, getProviders];
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=api-context.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api-context.service.js","sourceRoot":"","sources":["../../../src/machine/api-context.service.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,MAAM,EACN,UAAU,EACV,cAAc,EAGd,MAAM,GAEP,MAAM,eAAe,CAAA;;AAEtB;;;;;;;;GAQG;AAEH,MAAM,OAAgB,qBAAqB;IAChC,WAAW,GAAG,MAAM,CAAC,KAAK,uDAAC,CAAA;IAEpC,IAAI,OAAO;QACT,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACnB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;QAC5C,CAAC;QACD,OAAO,IAAI,CAAC,QAAQ,CAAA;IACtB,CAAC;IACO,QAAQ,CAAuB;IAEvC,IAAI,CAAC,WAAsB;QACzB,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAA;QAChD,CAAC;QACD,IAAI,CAAC,QAAQ,GAAG,WAAW,CAAA;QAC3B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IAC5B,CAAC;wGAjBmB,qBAAqB;4GAArB,qBAAqB;;4FAArB,qBAAqB;kBAD1C,UAAU;;AAoCX,MAAM,UAAU,gBAAgB,CAG9B,IAAY,EAAE,OAAU,EAAE,YAAgB;IAC1C,MAAM,KAAK,GAAG,IAAI,cAAc,CAAU,IAAI,CAAC,CAAA;IAE/C,SAAS,UAAU,CACjB,OAAiC,EAAE;QAEnC,OAAO,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,CAAA;IAC5B,CAAC;IAED,SAAS,YAAY;QACnB,OAAO;YACL,OAAc;YACd;gBACE,IAAI,EAAE,CAAC,OAAO,CAAC;gBACf,OAAO,EAAE,KAAK;gBACd,UAAU,EAAE,CAAC,OAAiC,EAAE,EAAE;oBAChD,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;wBACzD,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAA;oBACpC,CAAC;oBACD,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,CAAA;gBAChC,CAAC;aACF;SACF,CAAA;IACH,CAAC;IAED,OAAO,CAAC,KAAK,EAAE,UAA8B,EAAE,YAAY,CAAC,CAAA;AAC9D,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n inject,\n Injectable,\n InjectionToken,\n type InjectOptions,\n type Provider,\n signal,\n type Signal,\n} from \"@angular/core\"\n\n/**\n * Manages the API context for a service.\n *\n * Provides a way to initialize and access an API signal, ensuring that it is only\n * set once. Attempting to reinitialize or access an uninitialized API will result\n * in errors.\n *\n * @template T - The type of the data returned by the API.\n */\n@Injectable()\nexport abstract class BaseApiContextService<T> {\n readonly initialized = signal(false)\n\n get context() {\n if (!this._context) {\n throw new Error(\"context not initialized\")\n }\n return this._context\n }\n private _context: Signal<T> | undefined\n\n init(computedApi: Signal<T>): void {\n if (this._context) {\n throw new Error(\"context already initialized\")\n }\n this._context = computedApi\n this.initialized.set(true)\n }\n}\n\nexport type UseContextOpts<Optional extends boolean = false> = InjectOptions & {\n /**\n * Use optional injection, and return `null` if the requested token is not found.\n */\n optional?: Optional\n}\n\nexport type ApiContext<T> = [\n InjectionToken<() => T>,\n <Optional extends boolean = false>(\n opts?: UseContextOpts<Optional>,\n ) => Optional extends true ? (() => T) | null : () => T,\n () => Provider[],\n]\n\nexport function createApiContext<\n T,\n K extends typeof BaseApiContextService<T> = typeof BaseApiContextService<T>,\n>(name: string, service: K, initialValue?: T): ApiContext<T> {\n const token = new InjectionToken<() => T>(name)\n\n function useContext<Optional extends boolean = false>(\n opts: UseContextOpts<Optional> = {},\n ) {\n return inject(token, opts)\n }\n\n function getProviders(): Provider[] {\n return [\n service as any,\n {\n deps: [service],\n provide: token,\n useFactory: (context: BaseApiContextService<T>) => {\n if (!context.initialized() && initialValue !== undefined) {\n context.init(signal(initialValue))\n }\n return () => context.context()\n },\n },\n ]\n }\n\n return [token, useContext as ApiContext<T>[1], getProviders]\n}\n"]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { signal } from "@angular/core";
|
|
4
|
-
export function bindableIdCollection() {
|
|
5
|
-
const collection = signal({}, ...(ngDevMode ? [{ debugName: "collection" }] : []));
|
|
6
|
-
return {
|
|
7
|
-
get(itemKey) {
|
|
8
|
-
return collection()[itemKey];
|
|
9
|
-
},
|
|
10
|
-
getAll() {
|
|
11
|
-
const result = {};
|
|
12
|
-
const current = collection();
|
|
13
|
-
for (const key in current) {
|
|
14
|
-
result[key] = current[key];
|
|
15
|
-
}
|
|
16
|
-
return result;
|
|
17
|
-
},
|
|
18
|
-
keys() {
|
|
19
|
-
return Object.keys(collection());
|
|
20
|
-
},
|
|
21
|
-
register(itemKey, value, onDestroy) {
|
|
22
|
-
const current = collection();
|
|
23
|
-
if (current[itemKey] === value) {
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
if (onDestroy) {
|
|
27
|
-
onDestroy(() => {
|
|
28
|
-
const currentState = collection();
|
|
29
|
-
const { [itemKey]: _removed, ...rest } = currentState;
|
|
30
|
-
collection.set(rest);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
collection.update((prevState) => ({
|
|
34
|
-
...prevState,
|
|
35
|
-
[itemKey]: value,
|
|
36
|
-
}));
|
|
37
|
-
},
|
|
38
|
-
remove(itemKey) {
|
|
39
|
-
const current = collection();
|
|
40
|
-
const { [itemKey]: _removed, ...rest } = current;
|
|
41
|
-
collection.set(rest);
|
|
42
|
-
},
|
|
43
|
-
set(itemKey, value) {
|
|
44
|
-
collection.update((prev) => ({
|
|
45
|
-
...prev,
|
|
46
|
-
[itemKey]: value,
|
|
47
|
-
}));
|
|
48
|
-
},
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=bindable-id-collection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bindable-id-collection.js","sourceRoot":"","sources":["../../../src/machine/bindable-id-collection.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AAIpC,MAAM,UAAU,oBAAoB;IAIlC,MAAM,UAAU,GAAG,MAAM,CAAoB,EAAE,sDAAC,CAAA;IAEhD,OAAO;QACL,GAAG,CAAC,OAAe;YACjB,OAAO,UAAU,EAAE,CAAC,OAAO,CAAC,CAAA;QAC9B,CAAC;QACD,MAAM;YACJ,MAAM,MAAM,GAAsB,EAAE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gBAC3B,GAAG,IAAI;gBACP,CAAC,OAAO,CAAC,EAAE,KAAK;aACjB,CAAC,CAAC,CAAA;QACL,CAAC;KACF,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {signal} from \"@angular/core\"\n\nimport type {BindableIdCollection, Dict} from \"@qualcomm-ui/utils/machine\"\n\nexport function bindableIdCollection<T extends Dict>(): BindableIdCollection<\n any,\n any\n> {\n const collection = signal<Record<string, T>>({})\n\n return {\n get(itemKey: string): T | undefined {\n return collection()[itemKey]\n },\n getAll(): Record<string, T> {\n const result: Record<string, T> = {}\n const current = collection()\n for (const key in current) {\n result[key] = current[key]\n }\n return result\n },\n keys(): string[] {\n return Object.keys(collection())\n },\n register(\n itemKey: string,\n value: T,\n onDestroy?: (callback: () => void) => void,\n ) {\n const current = collection()\n if (current[itemKey] === value) {\n return\n }\n\n if (onDestroy) {\n onDestroy(() => {\n const currentState = collection()\n const {[itemKey]: _removed, ...rest} = currentState\n collection.set(rest)\n })\n }\n\n collection.update((prevState) => ({\n ...prevState,\n [itemKey]: value,\n }))\n },\n remove(itemKey: string) {\n const current = collection()\n const {[itemKey]: _removed, ...rest} = current\n collection.set(rest)\n },\n set(itemKey: string, value: T) {\n collection.update((prev) => ({\n ...prev,\n [itemKey]: value,\n }))\n },\n }\n}\n"]}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { signal } from "@angular/core";
|
|
4
|
-
export function bindableId(initialValue) {
|
|
5
|
-
// this value won't trigger change detection, but signals do
|
|
6
|
-
let cachedValue = initialValue;
|
|
7
|
-
const value = signal(initialValue, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
8
|
-
return {
|
|
9
|
-
get() {
|
|
10
|
-
return value();
|
|
11
|
-
},
|
|
12
|
-
set(v) {
|
|
13
|
-
if (cachedValue === v) {
|
|
14
|
-
return;
|
|
15
|
-
}
|
|
16
|
-
cachedValue = v;
|
|
17
|
-
value.set(v);
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=bindable-id.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"bindable-id.js","sourceRoot":"","sources":["../../../src/machine/bindable-id.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AAIpC,MAAM,UAAU,UAAU,CACxB,YAAgC;IAEhC,4DAA4D;IAC5D,IAAI,WAAW,GAAG,YAAY,CAAA;IAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,iDAAC,CAAA;IAElC,OAAO;QACL,GAAG;YACD,OAAO,KAAK,EAAE,CAAA;QAChB,CAAC;QACD,GAAG,CAAC,CAAqB;YACvB,IAAI,WAAW,KAAK,CAAC,EAAE,CAAC;gBACtB,OAAM;YACR,CAAC;YACD,WAAW,GAAG,CAAC,CAAA;YACf,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;QACd,CAAC;KACF,CAAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {signal} from \"@angular/core\"\n\nimport type {BindableId} from \"@qualcomm-ui/utils/machine\"\n\nexport function bindableId(\n initialValue: string | undefined,\n): BindableId<string | undefined> {\n // this value won't trigger change detection, but signals do\n let cachedValue = initialValue\n const value = signal(initialValue)\n\n return {\n get(): string | undefined {\n return value()\n },\n set(v: string | undefined) {\n if (cachedValue === v) {\n return\n }\n cachedValue = v\n value.set(v)\n },\n }\n}\n"]}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { computed, effect, signal } from "@angular/core";
|
|
4
|
-
import { isFunction } from "@qualcomm-ui/utils/guard";
|
|
5
|
-
export function bindable(props) {
|
|
6
|
-
const initial = props().value ?? props().defaultValue;
|
|
7
|
-
const eq = props().isEqual ?? Object.is;
|
|
8
|
-
const value = signal(initial, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
9
|
-
const controlled = computed(() => props().value !== undefined, ...(ngDevMode ? [{ debugName: "controlled" }] : []));
|
|
10
|
-
const valueRef = computed(() => (controlled() ? props().value : value()), ...(ngDevMode ? [{ debugName: "valueRef" }] : []));
|
|
11
|
-
return {
|
|
12
|
-
get() {
|
|
13
|
-
return valueRef();
|
|
14
|
-
},
|
|
15
|
-
hash(value) {
|
|
16
|
-
return props().hash?.(value) ?? String(value);
|
|
17
|
-
},
|
|
18
|
-
initial,
|
|
19
|
-
invoke(nextValue, prevValue) {
|
|
20
|
-
props().onChange?.(nextValue, null, prevValue);
|
|
21
|
-
},
|
|
22
|
-
ref: valueRef,
|
|
23
|
-
set(v, event) {
|
|
24
|
-
const prev = valueRef();
|
|
25
|
-
const next = isFunction(v) ? v(prev) : v;
|
|
26
|
-
if (!controlled()) {
|
|
27
|
-
value.set(next);
|
|
28
|
-
}
|
|
29
|
-
if (!eq(next, prev)) {
|
|
30
|
-
props().onChange?.(next, event, prev);
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
bindable.cleanup = (fn) => {
|
|
36
|
-
effect((onCleanup) => onCleanup(fn));
|
|
37
|
-
};
|
|
38
|
-
bindable.ref = (defaultValue) => {
|
|
39
|
-
let value = defaultValue;
|
|
40
|
-
return {
|
|
41
|
-
get: () => value,
|
|
42
|
-
set: (next) => {
|
|
43
|
-
value = next;
|
|
44
|
-
},
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
//# sourceMapp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AAG,QAAQ,EAAE,CAAA;YACvB,MAAM,IAAI,GAAG,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;YAExC,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC;gBAClB,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;YACjB,CAAC;YAED,IAAI,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC;gBACpB,KAAK,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,CAAA;YACvC,CAAC;QACH,CAAC;KACF,CAAA;AACH,CAAC;AAED,QAAQ,CAAC,OAAO,GAAG,CAAC,EAAgB,EAAE,EAAE;IACtC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,CAAA;AACtC,CAAC,CAAA;AAED,QAAQ,CAAC,GAAG,GAAG,CAAI,YAAe,EAAE,EAAE;IACpC,IAAI,KAAK,GAAG,YAAY,CAAA;IAExB,OAAO;QACL,GAAG,EAAE,GAAG,EAAE,CAAC,KAAK;QAChB,GAAG,EAAE,CAAC,IAAO,EAAE,EAAE;YACf,KAAK,GAAG,IAAI,CAAA;QACd,CAAC;KACF,CAAA;AACH,CAAC,CAAA","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {computed, effect, signal} from \"@angular/core\"\n\nimport {isFunction} from \"@qualcomm-ui/utils/guard\"\nimport type {\n Bindable,\n BindableParams,\n EventDetails,\n} from \"@qualcomm-ui/utils/machine\"\n\nexport function bindable<T, ChangeEvent extends EventDetails | void | null>(\n props: () => BindableParams<T, ChangeEvent>,\n): Bindable<T, ChangeEvent> {\n const initial = props().value ?? props().defaultValue\n\n const eq = props().isEqual ?? Object.is\n\n const value = signal(initial as T)\n const controlled = computed(() => props().value !== undefined)\n\n const valueRef = computed(() => (controlled() ? props().value! : value()))\n\n return {\n get(): T {\n return valueRef()\n },\n hash(value: T) {\n return props().hash?.(value) ?? String(value)\n },\n initial,\n invoke(nextValue: T, prevValue: T) {\n props().onChange?.(nextValue, null as ChangeEvent, prevValue)\n },\n ref: valueRef,\n set(v: T | ((prev: T) => T), event: ChangeEvent) {\n const prev = valueRef()\n const next = isFunction(v) ? v(prev) : v\n\n if (!controlled()) {\n value.set(next)\n }\n\n if (!eq(next, prev)) {\n props().onChange?.(next, event, prev)\n }\n },\n }\n}\n\nbindable.cleanup = (fn: VoidFunction) => {\n effect((onCleanup) => onCleanup(fn))\n}\n\nbindable.ref = <T>(defaultValue: T) => {\n let value = defaultValue\n\n return {\n get: () => value,\n set: (next: T) => {\n value = next\n },\n }\n}\n"]}
|
package/esm2022/machine/index.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export * from "./api-context.directive";
|
|
2
|
-
export * from "./api-context.service";
|
|
3
|
-
export * from "./bindable-id-collection";
|
|
4
|
-
export * from "./bindable-id";
|
|
5
|
-
export * from "./bindable";
|
|
6
|
-
export * from "./merge-props";
|
|
7
|
-
export * from "./q-bind.directive";
|
|
8
|
-
export * from "./normalize-props";
|
|
9
|
-
export * from "./refs";
|
|
10
|
-
export * from "./track";
|
|
11
|
-
export * from "./use-machine";
|
|
12
|
-
export * from "./use-track-bindings";
|
|
13
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/machine/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AACxC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAE1B,cAAc,eAAe,CAAA;AAC7B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA","sourcesContent":["export * from \"./api-context.directive\"\nexport * from \"./api-context.service\"\nexport * from \"./bindable-id-collection\"\nexport * from \"./bindable-id\"\nexport * from \"./bindable\"\nexport type * from \"./machine.types\"\nexport * from \"./merge-props\"\nexport * from \"./q-bind.directive\"\nexport * from \"./normalize-props\"\nexport * from \"./refs\"\nexport * from \"./track\"\nexport * from \"./use-machine\"\nexport * from \"./use-track-bindings\"\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"machine.types.js","sourceRoot":"","sources":["../../../src/machine/machine.types.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport type {TrackBindingsConfig} from \"./use-track-bindings\"\n\n/**\n * @deprecated, migrate to the useTrackBindingsInitOptions\n */\nexport interface MachineInitOptions extends TrackBindingsConfig {\n disabled?: never\n}\n"]}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { clsx } from "@qualcomm-ui/utils/clsx";
|
|
4
|
-
import { callAll } from "@qualcomm-ui/utils/functions";
|
|
5
|
-
const CSS_REGEX = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
|
|
6
|
-
/**
|
|
7
|
-
* Converts a CSS text fragment (`"color:red; width:10px"`)
|
|
8
|
-
* into a `{color:'red', width:'10px'}` object.
|
|
9
|
-
*/
|
|
10
|
-
function parseCssText(style) {
|
|
11
|
-
const out = {};
|
|
12
|
-
let match;
|
|
13
|
-
while ((match = CSS_REGEX.exec(style))) {
|
|
14
|
-
out[match[1]] = match[2];
|
|
15
|
-
}
|
|
16
|
-
return out;
|
|
17
|
-
}
|
|
18
|
-
function mergeStyle(a, b) {
|
|
19
|
-
if (typeof a === "string") {
|
|
20
|
-
if (typeof b === "string") {
|
|
21
|
-
return `${a};${b}`;
|
|
22
|
-
}
|
|
23
|
-
a = parseCssText(a);
|
|
24
|
-
}
|
|
25
|
-
else if (typeof b === "string") {
|
|
26
|
-
b = parseCssText(b);
|
|
27
|
-
}
|
|
28
|
-
return { ...(a ?? {}), ...(b ?? {}) };
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Angular-friendly version of `mergeProps`.
|
|
32
|
-
*
|
|
33
|
-
* - Handlers (`on*`) are composed with `callAll`.
|
|
34
|
-
* - `class` / `className` values are merged via `clsx`.
|
|
35
|
-
* - `style` strings or objects are merged and normalised.
|
|
36
|
-
*/
|
|
37
|
-
export function mergeProps(...sources) {
|
|
38
|
-
const result = {};
|
|
39
|
-
for (const current of sources) {
|
|
40
|
-
if (!current) {
|
|
41
|
-
continue;
|
|
42
|
-
}
|
|
43
|
-
for (const key in current) {
|
|
44
|
-
const prev = result[key];
|
|
45
|
-
const next = current[key];
|
|
46
|
-
if (prev !== undefined) {
|
|
47
|
-
if (key.startsWith("on") &&
|
|
48
|
-
typeof prev === "function" &&
|
|
49
|
-
typeof next === "function") {
|
|
50
|
-
result[key] = callAll(prev, next);
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
if (key === "class" || key === "className") {
|
|
54
|
-
result[key] = clsx(prev, next);
|
|
55
|
-
continue;
|
|
56
|
-
}
|
|
57
|
-
if (key === "style") {
|
|
58
|
-
result[key] = mergeStyle(prev, next);
|
|
59
|
-
continue;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
result[key] = next;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
// Adapt the merged object to Angular-friendly prop names.
|
|
66
|
-
return result;
|
|
67
|
-
}
|
|
68
|
-
//# sourceMappingURL=merge-props.js.map
|
|
@@ -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C9B,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,SAAQ;QACV,CAAC;QAED,KAAK,MAAM,GAAG,IAAI,OAAO,EAAE,CAAC;YAC1B,MAAM,IAAI,GAAQ,MAAM,CAAC,GAAG,CAAC,CAAA;YAC7B,MAAM,IAAI,GAAQ,OAAO,CAAC,GAAG,CAAC,CAAA;YAE9B,IAAI,IAAI,KAAK,SAAS,EAAE,CAAC;gBACvB,IACE,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC;oBACpB,OAAO,IAAI,KAAK,UAAU;oBAC1B,OAAO,IAAI,KAAK,UAAU,EAC1B,CAAC;oBACD,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;oBACjC,SAAQ;gBACV,CAAC;gBAED,IAAI,GAAG,KAAK,OAAO,IAAI,GAAG,KAAK,WAAW,EAAE,CAAC;oBAC3C,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;oBAC9B,SAAQ;gBACV,CAAC;gBAED,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;oBACpB,MAAM,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,CAAC,CAAA;oBACpC,SAAQ;gBACV,CAAC;YACH,CAAC;YAED,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAA;QACpB,CAAC;IACH,CAAC;IAED,0DAA0D;IAC1D,OAAO,MAAuB,CAAA;AAChC,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {clsx} from \"@qualcomm-ui/utils/clsx\"\nimport {callAll} from \"@qualcomm-ui/utils/functions\"\n\ninterface Props {\n [key: string]: any\n}\n\nconst CSS_REGEX = /((?:--)?(?:\\w+-?)+)\\s*:\\s*([^;]*)/g\n\n/**\n * Converts a CSS text fragment (`\"color:red; width:10px\"`)\n * into a `{color:'red', width:'10px'}` object.\n */\nfunction parseCssText(style: string): Record<string, string> {\n const out: Record<string, string> = {}\n let match: RegExpExecArray | null\n while ((match = CSS_REGEX.exec(style))) {\n out[match[1]] = match[2]\n }\n return out\n}\n\nfunction mergeStyle(\n a: Record<string, string> | string | undefined,\n b: Record<string, string> | string | undefined,\n): Record<string, string> | string {\n if (typeof a === \"string\") {\n if (typeof b === \"string\") {\n return `${a};${b}`\n }\n a = parseCssText(a)\n } else if (typeof b === \"string\") {\n b = parseCssText(b)\n }\n return {...(a ?? {}), ...(b ?? {})}\n}\n\n/**\n * Construct the real resulting type so callers keep strong typing.\n */\nexport type MergeProps<T extends readonly Props[]> = T extends readonly [\n infer First extends Props,\n ...infer Rest extends readonly Props[],\n]\n ? First & MergeProps<Rest>\n : {}\n\n/**\n * Angular-friendly version of `mergeProps`.\n *\n * - Handlers (`on*`) are composed with `callAll`.\n * - `class` / `className` values are merged via `clsx`.\n * - `style` strings or objects are merged and normalised.\n */\nexport function mergeProps<T extends readonly Props[]>(\n ...sources: T\n): MergeProps<T> {\n const result: Props = {}\n\n for (const current of sources) {\n if (!current) {\n continue\n }\n\n for (const key in current) {\n const prev: any = result[key]\n const next: any = current[key]\n\n if (prev !== undefined) {\n if (\n key.startsWith(\"on\") &&\n typeof prev === \"function\" &&\n typeof next === \"function\"\n ) {\n result[key] = callAll(prev, next)\n continue\n }\n\n if (key === \"class\" || key === \"className\") {\n result[key] = clsx(prev, next)\n continue\n }\n\n if (key === \"style\") {\n result[key] = mergeStyle(prev, next)\n continue\n }\n }\n\n result[key] = next\n }\n }\n\n // Adapt the merged object to Angular-friendly prop names.\n return result as MergeProps<T>\n}\n"]}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { normalizeAriaAttr } from "@qualcomm-ui/utils/attributes";
|
|
4
|
-
import { clsx } from "@qualcomm-ui/utils/clsx";
|
|
5
|
-
import { isObject, isString } from "@qualcomm-ui/utils/guard";
|
|
6
|
-
import { createPropNormalizer } from "@qualcomm-ui/utils/machine";
|
|
7
|
-
const propMap = {
|
|
8
|
-
className: "class",
|
|
9
|
-
defaultChecked: "checked",
|
|
10
|
-
defaultValue: "value",
|
|
11
|
-
htmlFor: "for",
|
|
12
|
-
onBlur: "onfocusout",
|
|
13
|
-
onChange: "oninput",
|
|
14
|
-
onDoubleClick: "ondblclick",
|
|
15
|
-
onFocus: "onfocusin",
|
|
16
|
-
readOnly: "readonly",
|
|
17
|
-
};
|
|
18
|
-
const preserveKeys = new Set([
|
|
19
|
-
"viewBox",
|
|
20
|
-
"className",
|
|
21
|
-
"preserveAspectRatio",
|
|
22
|
-
"fillRule",
|
|
23
|
-
"clipPath",
|
|
24
|
-
"clipRule",
|
|
25
|
-
]);
|
|
26
|
-
const transformers = {
|
|
27
|
-
"aria-hidden": normalizeAriaAttr,
|
|
28
|
-
};
|
|
29
|
-
export const normalizeProps = createPropNormalizer((props) => {
|
|
30
|
-
const normalized = {};
|
|
31
|
-
for (const [key, value] of Object.entries(props)) {
|
|
32
|
-
if (key === "style") {
|
|
33
|
-
if (isString(value)) {
|
|
34
|
-
normalized["style"] = serializeStyle(value);
|
|
35
|
-
}
|
|
36
|
-
else if (isObject(value)) {
|
|
37
|
-
normalized["style"] = hyphenateStyle(value);
|
|
38
|
-
}
|
|
39
|
-
continue;
|
|
40
|
-
}
|
|
41
|
-
if (key === "className") {
|
|
42
|
-
if (isString(value)) {
|
|
43
|
-
normalized["class"] = value;
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
normalized["class"] = clsx(value);
|
|
47
|
-
}
|
|
48
|
-
continue;
|
|
49
|
-
}
|
|
50
|
-
if (key === "children") {
|
|
51
|
-
if (isString(value)) {
|
|
52
|
-
normalized["textContent"] = value;
|
|
53
|
-
}
|
|
54
|
-
continue;
|
|
55
|
-
}
|
|
56
|
-
if (key in transformers) {
|
|
57
|
-
normalized[key] = transformers[key](value);
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
normalized[toAngularProp(key)] = value;
|
|
61
|
-
}
|
|
62
|
-
return normalized;
|
|
63
|
-
});
|
|
64
|
-
const STYLE_REGEX = /((?:--)?(?:\w+-?)+)\s*:\s*([^;]*)/g;
|
|
65
|
-
function serializeStyle(style) {
|
|
66
|
-
const res = {};
|
|
67
|
-
let match;
|
|
68
|
-
while ((match = STYLE_REGEX.exec(style))) {
|
|
69
|
-
res[match[1]] = match[2];
|
|
70
|
-
}
|
|
71
|
-
return res;
|
|
72
|
-
}
|
|
73
|
-
function hyphenateStyle(style) {
|
|
74
|
-
const res = {};
|
|
75
|
-
for (const [property, value] of Object.entries(style)) {
|
|
76
|
-
if (value === null || value === undefined) {
|
|
77
|
-
continue;
|
|
78
|
-
}
|
|
79
|
-
res[hyphenateStyleName(property)] = value;
|
|
80
|
-
}
|
|
81
|
-
return res;
|
|
82
|
-
}
|
|
83
|
-
const cache = new Map();
|
|
84
|
-
const uppercasePattern = /[A-Z]/g;
|
|
85
|
-
const msPattern = /^ms-/;
|
|
86
|
-
function hyphenateStyleName(name) {
|
|
87
|
-
if (name.startsWith("--")) {
|
|
88
|
-
return name;
|
|
89
|
-
}
|
|
90
|
-
if (cache.has(name)) {
|
|
91
|
-
return cache.get(name);
|
|
92
|
-
}
|
|
93
|
-
const hName = name.replace(uppercasePattern, toHyphenLower);
|
|
94
|
-
return cache.set(name, msPattern.test(hName) ? `-${hName}` : hName).get(name);
|
|
95
|
-
}
|
|
96
|
-
function toHyphenLower(match) {
|
|
97
|
-
return `-${match.toLowerCase()}`;
|
|
98
|
-
}
|
|
99
|
-
function toAngularProp(prop) {
|
|
100
|
-
if (prop in propMap) {
|
|
101
|
-
return propMap[prop];
|
|
102
|
-
}
|
|
103
|
-
if (preserveKeys.has(prop)) {
|
|
104
|
-
return prop;
|
|
105
|
-
}
|
|
106
|
-
return prop.toLowerCase();
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=normalize-props.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"normalize-props.js","sourceRoot":"","sources":["../../../src/machine/normalize-props.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAA;AAC/D,OAAO,EAAC,IAAI,EAAC,MAAM,yBAAyB,CAAA;AAC5C,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,4BAA4B,CAAA;AAE/D,MAAM,OAAO,GAA2B;IACtC,SAAS,EAAE,OAAO;IAClB,cAAc,EAAE,SAAS;IACzB,YAAY,EAAE,OAAO;IACrB,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,YAAY;IACpB,QAAQ,EAAE,SAAS;IACnB,aAAa,EAAE,YAAY;IAC3B,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,UAAU;CACrB,CAAA;AAED,MAAM,YAAY,GAAgB,IAAI,GAAG,CAAS;IAChD,SAAS;IACT,WAAW;IACX,qBAAqB;IACrB,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAA;AAEF,MAAM,YAAY,GAA4C;IAC5D,aAAa,EAAE,iBAAiB;CACjC,CAAA;AAMD,MAAM,CAAC,MAAM,cAAc,GAAG,oBAAoB,CAAC,CAAC,KAAK,EAAE,EAAE;IAC3D,MAAM,UAAU,GAAS,EAAE,CAAA;IAE3B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACjD,IAAI,GAAG,KAAK,OAAO,EAAE,CAAC;YACpB,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACpB,UAAU,CAAC,OAAO,CAAC,GAAG,cAA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;QACpB,OAAO,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB,CAAC;IAED,IAAI,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QAC3B,OAAO,IAAI,CAAA;IACb,CAAC;IAED,OAAO,IAAI,CAAC,WAAW,EAAE,CAAA;AAC3B,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {normalizeAriaAttr} from \"@qualcomm-ui/utils/attributes\"\nimport {clsx} from \"@qualcomm-ui/utils/clsx\"\nimport {isObject, isString} from \"@qualcomm-ui/utils/guard\"\nimport {createPropNormalizer} from \"@qualcomm-ui/utils/machine\"\n\nconst propMap: Record<string, string> = {\n className: \"class\",\n defaultChecked: \"checked\",\n defaultValue: \"value\",\n htmlFor: \"for\",\n onBlur: \"onfocusout\",\n onChange: \"oninput\",\n onDoubleClick: \"ondblclick\",\n onFocus: \"onfocusin\",\n readOnly: \"readonly\",\n}\n\nconst preserveKeys: Set<string> = new Set<string>([\n \"viewBox\",\n \"className\",\n \"preserveAspectRatio\",\n \"fillRule\",\n \"clipPath\",\n \"clipRule\",\n])\n\nconst transformers: Record<string, (value: unknown) => any> = {\n \"aria-hidden\": normalizeAriaAttr,\n}\n\nexport type StyleObject = Record<string, string | number>\n\nexport type Dict = Record<string, any>\n\nexport const normalizeProps = createPropNormalizer((props) => {\n const normalized: Dict = {}\n\n for (const [key, value] of Object.entries(props)) {\n if (key === \"style\") {\n if (isString(value)) {\n normalized[\"style\"] = serializeStyle(value)\n } else if (isObject(value)) {\n normalized[\"style\"] = hyphenateStyle(value)\n }\n\n continue\n }\n\n if (key === \"className\") {\n if (isString(value)) {\n normalized[\"class\"] = value\n } else {\n normalized[\"class\"] = clsx(value)\n }\n continue\n }\n\n if (key === \"children\") {\n if (isString(value)) {\n normalized[\"textContent\"] = value\n }\n\n continue\n }\n\n if (key in transformers) {\n normalized[key] = transformers[key](value)\n continue\n }\n\n normalized[toAngularProp(key)] = value\n }\n\n return normalized\n})\n\nconst STYLE_REGEX = /((?:--)?(?:\\w+-?)+)\\s*:\\s*([^;]*)/g\n\nfunction serializeStyle(style: string) {\n const res: StyleObject = {}\n\n let match: RegExpExecArray | null\n\n while ((match = STYLE_REGEX.exec(style))) {\n res[match[1]] = match[2]\n }\n\n return res\n}\n\nfunction hyphenateStyle(style: Record<string, string | number>): StyleObject {\n const res: StyleObject = {}\n\n for (const [property, value] of Object.entries(style)) {\n if (value === null || value === undefined) {\n continue\n }\n\n res[hyphenateStyleName(property)] = value\n }\n\n return res\n}\n\nconst cache = new Map<string, string>()\nconst uppercasePattern = /[A-Z]/g\nconst msPattern = /^ms-/\n\nfunction hyphenateStyleName(name: string) {\n if (name.startsWith(\"--\")) {\n return name\n }\n\n if (cache.has(name)) {\n return cache.get(name)!\n }\n\n const hName = name.replace(uppercasePattern, toHyphenLower)\n\n return cache.set(name, msPattern.test(hName) ? `-${hName}` : hName).get(name)!\n}\n\nfunction toHyphenLower(match: string) {\n return `-${match.toLowerCase()}`\n}\n\nfunction toAngularProp(prop: string) {\n if (prop in propMap) {\n return propMap[prop]\n }\n\n if (preserveKeys.has(prop)) {\n return prop\n }\n\n return prop.toLowerCase()\n}\n"]}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
-
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
-
import { computed, Directive, effect, ElementRef, inject, Injector, input, Renderer2, RendererStyleFlags2, runInInjectionContext, } from "@angular/core";
|
|
4
|
-
import { isEqual } from "@qualcomm-ui/utils/equal";
|
|
5
|
-
import { isNumber, isString } from "@qualcomm-ui/utils/guard";
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
/**
|
|
8
|
-
* A directive similar to Vue's `v-bind` that spreads an object's properties onto
|
|
9
|
-
* the host element. For the best performance, use a stable reference to a signal
|
|
10
|
-
* instead of an object literal in the template. Converts callbacks from `on*`
|
|
11
|
-
* syntax to their corresponding Angular event callbacks. Does not account for
|
|
12
|
-
* input/output properties due to Angular limitations.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* <!-- bad: new object every time -->
|
|
16
|
-
* <div [q-bind]="{class: 'a', onClick: click}"></div>
|
|
17
|
-
*
|
|
18
|
-
* <!-- good: stable reference -->
|
|
19
|
-
* <div [q-bind]="buttonProps"></div>
|
|
20
|
-
*/
|
|
21
|
-
export class QBindDirective {
|
|
22
|
-
bind = input.required(...(ngDevMode ? [{ debugName: "bind", alias: "q-bind" }] : [{ alias: "q-bind" }]));
|
|
23
|
-
bindOptions = input({}, ...(ngDevMode ? [{ debugName: "bindOptions", alias: "q-bind-options" }] : [{ alias: "q-bind-options" }]));
|
|
24
|
-
elementRef = inject((ElementRef));
|
|
25
|
-
renderer = inject(Renderer2);
|
|
26
|
-
injector = inject(Injector);
|
|
27
|
-
listeners = new Map();
|
|
28
|
-
prev = {};
|
|
29
|
-
omittedProps = computed(() => {
|
|
30
|
-
const opts = this.bindOptions();
|
|
31
|
-
return new Set(Array.from(opts.omittedProps || []));
|
|
32
|
-
}, ...(ngDevMode ? [{ debugName: "omittedProps" }] : []));
|
|
33
|
-
constructor() {
|
|
34
|
-
runInInjectionContext(this.injector, () => {
|
|
35
|
-
effect(() => {
|
|
36
|
-
const next = this.bind();
|
|
37
|
-
if (!isEqual(next, this.prev)) {
|
|
38
|
-
this.handleAttrs(this.prev, next || {});
|
|
39
|
-
this.prev = { ...next };
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
ngOnDestroy() {
|
|
45
|
-
this.listeners.forEach((unlisten) => unlisten());
|
|
46
|
-
this.listeners.clear();
|
|
47
|
-
}
|
|
48
|
-
removeClass(names) {
|
|
49
|
-
if (!names) {
|
|
50
|
-
return;
|
|
51
|
-
}
|
|
52
|
-
const el = this.elementRef.nativeElement;
|
|
53
|
-
for (const name of names.split(",")) {
|
|
54
|
-
this.renderer.removeClass(el, name);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
addClass(names) {
|
|
58
|
-
const el = this.elementRef.nativeElement;
|
|
59
|
-
for (const className of names.split(" ")) {
|
|
60
|
-
for (const name of className.split(",")) {
|
|
61
|
-
this.renderer.addClass(el, name);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
removeStyle(style) {
|
|
66
|
-
if (!style) {
|
|
67
|
-
return;
|
|
68
|
-
}
|
|
69
|
-
const el = this.elementRef.nativeElement;
|
|
70
|
-
for (const name of Object.keys(style)) {
|
|
71
|
-
this.renderer.removeStyle(el, name, RendererStyleFlags2.DashCase);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
addStyle(style) {
|
|
75
|
-
const el = this.elementRef.nativeElement;
|
|
76
|
-
for (const [name, value] of Object.entries(style)) {
|
|
77
|
-
this.renderer.setStyle(el, name, value, RendererStyleFlags2.DashCase);
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
addEventListener(name, callback) {
|
|
81
|
-
const eventName = name.substring(2);
|
|
82
|
-
this.listeners.get(name)?.();
|
|
83
|
-
const unlisten = this.renderer.listen(this.elementRef.nativeElement, eventName, callback);
|
|
84
|
-
this.listeners.set(name, unlisten);
|
|
85
|
-
}
|
|
86
|
-
handleAttrs(prevProps, nextProps) {
|
|
87
|
-
const el = this.elementRef.nativeElement;
|
|
88
|
-
for (const [name, value] of Object.entries(prevProps)) {
|
|
89
|
-
if (name in nextProps || this.omittedProps().has(name)) {
|
|
90
|
-
continue;
|
|
91
|
-
}
|
|
92
|
-
if (name.startsWith("on")) {
|
|
93
|
-
this.listeners.get(name)?.();
|
|
94
|
-
this.listeners.delete(name);
|
|
95
|
-
continue;
|
|
96
|
-
}
|
|
97
|
-
switch (name) {
|
|
98
|
-
case "class":
|
|
99
|
-
this.removeClass(value);
|
|
100
|
-
continue;
|
|
101
|
-
case "style":
|
|
102
|
-
this.removeStyle(value);
|
|
103
|
-
continue;
|
|
104
|
-
case "value":
|
|
105
|
-
this.renderer.setProperty(el, "value", undefined);
|
|
106
|
-
continue;
|
|
107
|
-
case "textContent":
|
|
108
|
-
this.renderer.setProperty(el, "textContent", "");
|
|
109
|
-
continue;
|
|
110
|
-
case "checked":
|
|
111
|
-
this.renderer.setProperty(el, "checked", false);
|
|
112
|
-
continue;
|
|
113
|
-
}
|
|
114
|
-
this.renderer.removeAttribute(el, name);
|
|
115
|
-
}
|
|
116
|
-
for (const [name, value] of Object.entries(nextProps)) {
|
|
117
|
-
if (name in prevProps && isEqual(value, prevProps[name])) {
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
if (name.startsWith("on")) {
|
|
121
|
-
const prevHandler = prevProps[name];
|
|
122
|
-
if (isEqual(prevHandler, value)) {
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
this.addEventListener(name, value);
|
|
126
|
-
continue;
|
|
127
|
-
}
|
|
128
|
-
switch (name) {
|
|
129
|
-
case "class":
|
|
130
|
-
this.removeClass(prevProps[name]);
|
|
131
|
-
this.addClass(value);
|
|
132
|
-
continue;
|
|
133
|
-
case "style":
|
|
134
|
-
this.removeStyle(prevProps[name]);
|
|
135
|
-
this.addStyle(value);
|
|
136
|
-
continue;
|
|
137
|
-
case "value":
|
|
138
|
-
case "checked":
|
|
139
|
-
case "textContent":
|
|
140
|
-
this.renderer.setProperty(el, name, value);
|
|
141
|
-
continue;
|
|
142
|
-
}
|
|
143
|
-
if (isString(value) || isNumber(value)) {
|
|
144
|
-
this.renderer.setAttribute(el, name, `${value}`);
|
|
145
|
-
continue;
|
|
146
|
-
}
|
|
147
|
-
if (value === true) {
|
|
148
|
-
this.renderer.setAttribute(el, name, "");
|
|
149
|
-
}
|
|
150
|
-
else {
|
|
151
|
-
this.renderer.removeAttribute(el, name);
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: QBindDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
156
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.10", type: QBindDirective, isStandalone: true, selector: "[q-bind]", inputs: { bind: { classPropertyName: "bind", publicName: "q-bind", isSignal: true, isRequired: true, transformFunction: null }, bindOptions: { classPropertyName: "bindOptions", publicName: "q-bind-options", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
157
|
-
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: QBindDirective, decorators: [{
|
|
159
|
-
type: Directive,
|
|
160
|
-
args: [{
|
|
161
|
-
selector: "[q-bind]",
|
|
162
|
-
}]
|
|
163
|
-
}], ctorParameters: () => [], propDecorators: { bind: [{ type: i0.Input, args: [{ isSignal: true, alias: "q-bind", required: true }] }], bindOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "q-bind-options", required: false }] }] } });
|
|
164
|
-
//# sourceMappingURL=q-bind.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"q-bind.directive.js","sourceRoot":"","sources":["../../../src/machine/q-bind.directive.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,UAAU,EACV,MAAM,EACN,QAAQ,EACR,KAAK,EAEL,SAAS,EACT,mBAAmB,EACnB,qBAAqB,GACtB,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,QAAQ,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAA;;AAW3D;;;;;;;;;;;;;GAaG;AAIH,MAAM,OAAO,cAAc;IAChB,IAAI,GAAG,KAAK,CAAC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AAO;oBACV,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,IAAI,CAAgB,CAAC,CAAA;oBAChD,IAAI,CAAC,QAAQ,CAAC,KAAoB,CAAC,CAAA;oBACnC,SAAQ;gBACV,KAAK,OAAO,CAAC;gBACb,KAAK,SAAS,CAAC;gBACf,KAAK,aAAa;oBAChB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,EAAE,IAAI,EAAE,KAAK,CAAC,CAAA;oBAC1C,SAAQ;YACZ,CAAC;YAED,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;gBACvC,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAA;gBAChD,SAAQ;YACV,CAAC;YAED,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACnB,IAAI,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,EAAE,IAAI,EAAE,EAAE,CAAC,CAAA;YAC1C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;YACzC,CAAC;QACH,CAAC;IACH,CAAC;wGA/JU,cAAc;4FAAd,cAAc;;4FAAd,cAAc;kBAH1B,SAAS;mBAAC;oBACT,QAAQ,EAAE,UAAU;iBACrB","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n computed,\n Directive,\n effect,\n ElementRef,\n inject,\n Injector,\n input,\n type OnDestroy,\n Renderer2,\n RendererStyleFlags2,\n runInInjectionContext,\n} from \"@angular/core\"\n\nimport {isEqual} from \"@qualcomm-ui/utils/equal\"\nimport {isNumber, isString} from \"@qualcomm-ui/utils/guard\"\n\nimport type {Dict, StyleObject} from \"./normalize-props\"\n\nexport interface NgBindOptions {\n /**\n * This list of properties will not be spread onto the target element.\n */\n omittedProps?: string[]\n}\n\n/**\n * A directive similar to Vue's `v-bind` that spreads an object's properties onto\n * the host element. For the best performance, use a stable reference to a signal\n * instead of an object literal in the template. Converts callbacks from `on*`\n * syntax to their corresponding Angular event callbacks. Does not account for\n * input/output properties due to Angular limitations.\n *\n * @example\n * <!-- bad: new object every time -->\n * <div [q-bind]=\"{class: 'a', onClick: click}\"></div>\n *\n * <!-- good: stable reference -->\n * <div [q-bind]=\"buttonProps\"></div>\n */\n@Directive({\n selector: \"[q-bind]\",\n})\nexport class QBindDirective implements OnDestroy {\n readonly bind = input.required<Dict | undefined>({alias: \"q-bind\"})\n\n readonly bindOptions = input<NgBindOptions>({}, {alias: \"q-bind-options\"})\n\n private readonly elementRef = inject(ElementRef<HTMLElement>)\n private readonly renderer = inject(Renderer2)\n private readonly injector = inject(Injector)\n private readonly listeners = new Map<string, VoidFunction>()\n private prev: Dict = {}\n\n readonly omittedProps = computed(() => {\n const opts = this.bindOptions()\n return new Set(Array.from(opts.omittedProps || []))\n })\n\n constructor() {\n runInInjectionContext(this.injector, () => {\n effect(() => {\n const next = this.bind()\n if (!isEqual(next, this.prev)) {\n this.handleAttrs(this.prev, next || {})\n this.prev = {...next}\n }\n })\n })\n }\n\n ngOnDestroy(): void {\n this.listeners.forEach((unlisten) => unlisten())\n this.listeners.clear()\n }\n\n private removeClass(names?: string): void {\n if (!names) {\n return\n }\n\n const el = this.elementRef.nativeElement\n for (const name of names.split(\",\")) {\n this.renderer.removeClass(el, name)\n }\n }\n\n private addClass(names: string): void {\n const el = this.elementRef.nativeElement\n for (const className of names.split(\" \")) {\n for (const name of className.split(\",\")) {\n this.renderer.addClass(el, name)\n }\n }\n }\n\n private removeStyle(style?: StyleObject): void {\n if (!style) {\n return\n }\n\n const el = this.elementRef.nativeElement\n for (const name of Object.keys(style)) {\n this.renderer.removeStyle(el, name, RendererStyleFlags2.DashCase)\n }\n }\n\n private addStyle(style: StyleObject): void {\n const el = this.elementRef.nativeElement\n for (const [name, value] of Object.entries(style)) {\n this.renderer.setStyle(el, name, value, RendererStyleFlags2.DashCase)\n }\n }\n\n private addEventListener(name: string, callback: EventListener): void {\n const eventName = name.substring(2)\n\n this.listeners.get(name)?.()\n const unlisten = this.renderer.listen(\n this.elementRef.nativeElement,\n eventName,\n callback,\n )\n this.listeners.set(name, unlisten)\n }\n\n private handleAttrs(prevProps: Dict, nextProps: Dict): void {\n const el = this.elementRef.nativeElement\n\n for (const [name, value] of Object.entries(prevProps)) {\n if (name in nextProps || this.omittedProps().has(name)) {\n continue\n }\n\n if (name.startsWith(\"on\")) {\n this.listeners.get(name)?.()\n this.listeners.delete(name)\n continue\n }\n\n switch (name) {\n case \"class\":\n this.removeClass(value as string)\n continue\n case \"style\":\n this.removeStyle(value as StyleObject)\n continue\n case \"value\":\n this.renderer.setProperty(el, \"value\", undefined)\n continue\n case \"textContent\":\n this.renderer.setProperty(el, \"textContent\", \"\")\n continue\n case \"checked\":\n this.renderer.setProperty(el, \"checked\", false)\n continue\n }\n this.renderer.removeAttribute(el, name)\n }\n\n for (const [name, value] of Object.entries(nextProps)) {\n if (name in prevProps && isEqual(value, prevProps[name])) {\n continue\n }\n\n if (name.startsWith(\"on\")) {\n const prevHandler = prevProps[name]\n if (isEqual(prevHandler, value)) {\n continue\n }\n\n this.addEventListener(name, value as EventListener)\n continue\n }\n\n switch (name) {\n case \"class\":\n this.removeClass(prevProps[name] as string)\n this.addClass(value as string)\n continue\n case \"style\":\n this.removeStyle(prevProps[name] as StyleObject)\n this.addStyle(value as StyleObject)\n continue\n case \"value\":\n case \"checked\":\n case \"textContent\":\n this.renderer.setProperty(el, name, value)\n continue\n }\n\n if (isString(value) || isNumber(value)) {\n this.renderer.setAttribute(el, name, `${value}`)\n continue\n }\n\n if (value === true) {\n this.renderer.setAttribute(el, name, \"\")\n } else {\n this.renderer.removeAttribute(el, name)\n }\n }\n }\n}\n"]}
|