@qualcomm-ui/angular-core 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion-context.service.d.ts +9 -0
- package/accordion/accordion-context.service.d.ts.map +1 -0
- package/accordion/accordion-item-context.service.d.ts +9 -0
- package/accordion/accordion-item-context.service.d.ts.map +1 -0
- package/accordion/core-accordion-item-content.directive.d.ts +21 -0
- package/accordion/core-accordion-item-content.directive.d.ts.map +1 -0
- package/accordion/core-accordion-item-trigger-indicator.directive.d.ts +11 -0
- package/accordion/core-accordion-item-trigger-indicator.directive.d.ts.map +1 -0
- package/accordion/core-accordion-item-trigger-secondary.directive.d.ts +11 -0
- package/accordion/core-accordion-item-trigger-secondary.directive.d.ts.map +1 -0
- package/accordion/core-accordion-item-trigger-title.directive.d.ts +11 -0
- package/accordion/core-accordion-item-trigger-title.directive.d.ts.map +1 -0
- package/accordion/core-accordion-item-trigger.directive.d.ts +17 -0
- package/accordion/core-accordion-item-trigger.directive.d.ts.map +1 -0
- package/accordion/core-accordion-item.directive.d.ts +23 -0
- package/accordion/core-accordion-item.directive.d.ts.map +1 -0
- package/accordion/core-accordion-root.directive.d.ts +58 -0
- package/accordion/core-accordion-root.directive.d.ts.map +1 -0
- package/accordion/index.d.ts +10 -0
- package/accordion/index.d.ts.map +1 -0
- package/accordion/qualcomm-ui-angular-core-accordion.d.ts +6 -0
- package/accordion/qualcomm-ui-angular-core-accordion.d.ts.map +1 -0
- package/attributes/index.d.ts +3 -0
- package/attributes/index.d.ts.map +1 -0
- package/attributes/number-attributes.d.ts +11 -0
- package/attributes/number-attributes.d.ts.map +1 -0
- package/attributes/pixel-attribute.d.ts +6 -0
- package/attributes/pixel-attribute.d.ts.map +1 -0
- package/attributes/qualcomm-ui-angular-core-attributes.d.ts +6 -0
- package/attributes/qualcomm-ui-angular-core-attributes.d.ts.map +1 -0
- package/avatar/avatar-context.service.d.ts +9 -0
- package/avatar/avatar-context.service.d.ts.map +1 -0
- package/avatar/core-avatar-content.directive.d.ts +20 -0
- package/avatar/core-avatar-content.directive.d.ts.map +1 -0
- package/avatar/core-avatar-image.directive.d.ts +20 -0
- package/avatar/core-avatar-image.directive.d.ts.map +1 -0
- package/avatar/core-avatar-root.directive.d.ts +36 -0
- package/avatar/core-avatar-root.directive.d.ts.map +1 -0
- package/avatar/core-avatar-status.directive.d.ts +20 -0
- package/avatar/core-avatar-status.directive.d.ts.map +1 -0
- package/avatar/index.d.ts +6 -0
- package/avatar/index.d.ts.map +1 -0
- package/avatar/qualcomm-ui-angular-core-avatar.d.ts +6 -0
- package/avatar/qualcomm-ui-angular-core-avatar.d.ts.map +1 -0
- package/checkbox/abstract-checkbox-form-control.directive.d.ts +79 -0
- package/checkbox/abstract-checkbox-form-control.directive.d.ts.map +1 -0
- package/checkbox/checkbox-context.service.d.ts +9 -0
- package/checkbox/checkbox-context.service.d.ts.map +1 -0
- package/checkbox/core-checkbox-control.directive.d.ts +20 -0
- package/checkbox/core-checkbox-control.directive.d.ts.map +1 -0
- package/checkbox/core-checkbox-error-text.directive.d.ts +20 -0
- package/checkbox/core-checkbox-error-text.directive.d.ts.map +1 -0
- package/checkbox/core-checkbox-hidden-input.directive.d.ts +20 -0
- package/checkbox/core-checkbox-hidden-input.directive.d.ts.map +1 -0
- package/checkbox/core-checkbox-indicator.directive.d.ts +13 -0
- package/checkbox/core-checkbox-indicator.directive.d.ts.map +1 -0
- package/checkbox/core-checkbox-label.directive.d.ts +20 -0
- package/checkbox/core-checkbox-label.directive.d.ts.map +1 -0
- package/checkbox/core-checkbox-root.directive.d.ts +48 -0
- package/checkbox/core-checkbox-root.directive.d.ts.map +1 -0
- package/checkbox/index.d.ts +10 -0
- package/checkbox/index.d.ts.map +1 -0
- package/checkbox/qualcomm-ui-angular-core-checkbox.d.ts +6 -0
- package/checkbox/qualcomm-ui-angular-core-checkbox.d.ts.map +1 -0
- package/checkbox/use-checkbox-group.d.ts +32 -0
- package/checkbox/use-checkbox-group.d.ts.map +1 -0
- package/collapsible/collapsible-context.service.d.ts +9 -0
- package/collapsible/collapsible-context.service.d.ts.map +1 -0
- package/collapsible/core-collapsible-content.directive.d.ts +20 -0
- package/collapsible/core-collapsible-content.directive.d.ts.map +1 -0
- package/collapsible/core-collapsible-root.directive.d.ts +52 -0
- package/collapsible/core-collapsible-root.directive.d.ts.map +1 -0
- package/collapsible/core-collapsible-trigger.directive.d.ts +20 -0
- package/collapsible/core-collapsible-trigger.directive.d.ts.map +1 -0
- package/collapsible/index.d.ts +5 -0
- package/collapsible/index.d.ts.map +1 -0
- package/collapsible/qualcomm-ui-angular-core-collapsible.d.ts +6 -0
- package/collapsible/qualcomm-ui-angular-core-collapsible.d.ts.map +1 -0
- package/collection/index.d.ts +2 -0
- package/collection/index.d.ts.map +1 -0
- package/collection/qualcomm-ui-angular-core-collection.d.ts +6 -0
- package/collection/qualcomm-ui-angular-core-collection.d.ts.map +1 -0
- package/collection/use-list-collection.d.ts +44 -0
- package/collection/use-list-collection.d.ts.map +1 -0
- package/combobox/combobox-context.service.d.ts +12 -0
- package/combobox/combobox-context.service.d.ts.map +1 -0
- package/combobox/combobox-item-context.service.d.ts +9 -0
- package/combobox/combobox-item-context.service.d.ts.map +1 -0
- package/combobox/combobox-item-group-context.service.d.ts +9 -0
- package/combobox/combobox-item-group-context.service.d.ts.map +1 -0
- package/combobox/core-combobox-clear-trigger.directive.d.ts +20 -0
- package/combobox/core-combobox-clear-trigger.directive.d.ts.map +1 -0
- package/combobox/core-combobox-content.directive.d.ts +23 -0
- package/combobox/core-combobox-content.directive.d.ts.map +1 -0
- package/combobox/core-combobox-control.directive.d.ts +20 -0
- package/combobox/core-combobox-control.directive.d.ts.map +1 -0
- package/combobox/core-combobox-empty.directive.d.ts +13 -0
- package/combobox/core-combobox-empty.directive.d.ts.map +1 -0
- package/combobox/core-combobox-error-indicator.directive.d.ts +13 -0
- package/combobox/core-combobox-error-indicator.directive.d.ts.map +1 -0
- package/combobox/core-combobox-error-text.directive.d.ts +20 -0
- package/combobox/core-combobox-error-text.directive.d.ts.map +1 -0
- package/combobox/core-combobox-hint.directive.d.ts +20 -0
- package/combobox/core-combobox-hint.directive.d.ts.map +1 -0
- package/combobox/core-combobox-input.directive.d.ts +20 -0
- package/combobox/core-combobox-input.directive.d.ts.map +1 -0
- package/combobox/core-combobox-item-group-label.directive.d.ts +14 -0
- package/combobox/core-combobox-item-group-label.directive.d.ts.map +1 -0
- package/combobox/core-combobox-item-group.directive.d.ts +21 -0
- package/combobox/core-combobox-item-group.directive.d.ts.map +1 -0
- package/combobox/core-combobox-item-indicator.directive.d.ts +14 -0
- package/combobox/core-combobox-item-indicator.directive.d.ts.map +1 -0
- package/combobox/core-combobox-item-text.directive.d.ts +14 -0
- package/combobox/core-combobox-item-text.directive.d.ts.map +1 -0
- package/combobox/core-combobox-item.directive.d.ts +27 -0
- package/combobox/core-combobox-item.directive.d.ts.map +1 -0
- package/combobox/core-combobox-label.directive.d.ts +20 -0
- package/combobox/core-combobox-label.directive.d.ts.map +1 -0
- package/combobox/core-combobox-positioner.directive.d.ts +21 -0
- package/combobox/core-combobox-positioner.directive.d.ts.map +1 -0
- package/combobox/core-combobox-root.directive.d.ts +234 -0
- package/combobox/core-combobox-root.directive.d.ts.map +1 -0
- package/combobox/core-combobox-trigger.directive.d.ts +27 -0
- package/combobox/core-combobox-trigger.directive.d.ts.map +1 -0
- package/combobox/index.d.ts +21 -0
- package/combobox/index.d.ts.map +1 -0
- package/combobox/qualcomm-ui-angular-core-combobox.d.ts +6 -0
- package/combobox/qualcomm-ui-angular-core-combobox.d.ts.map +1 -0
- package/common/boolean.d.ts +6 -0
- package/common/boolean.d.ts.map +1 -0
- package/common/index.d.ts +10 -0
- package/common/index.d.ts.map +1 -0
- package/common/ng-changes.d.ts +18 -0
- package/common/ng-changes.d.ts.map +1 -0
- package/common/qualcomm-ui-angular-core-common.d.ts +6 -0
- package/common/qualcomm-ui-angular-core-common.d.ts.map +1 -0
- package/common/template-content.d.ts +6 -0
- package/common/template-content.d.ts.map +1 -0
- package/common/use-csr-check.d.ts +13 -0
- package/common/use-csr-check.d.ts.map +1 -0
- package/common/use-id.d.ts +2 -0
- package/common/use-id.d.ts.map +1 -0
- package/common/use-is-destroyed.d.ts +8 -0
- package/common/use-is-destroyed.d.ts.map +1 -0
- package/common/use-is-mounted.d.ts +7 -0
- package/common/use-is-mounted.d.ts.map +1 -0
- package/common/use-on-destroy.d.ts +8 -0
- package/common/use-on-destroy.d.ts.map +1 -0
- package/common/use-ssr-check.d.ts +13 -0
- package/common/use-ssr-check.d.ts.map +1 -0
- package/dialog/core-dialog-backdrop.directive.d.ts +24 -0
- package/dialog/core-dialog-backdrop.directive.d.ts.map +1 -0
- package/dialog/core-dialog-body.directive.d.ts +13 -0
- package/dialog/core-dialog-body.directive.d.ts.map +1 -0
- package/dialog/core-dialog-close-trigger.directive.d.ts +20 -0
- package/dialog/core-dialog-close-trigger.directive.d.ts.map +1 -0
- package/dialog/core-dialog-content.directive.d.ts +25 -0
- package/dialog/core-dialog-content.directive.d.ts.map +1 -0
- package/dialog/core-dialog-description.directive.d.ts +20 -0
- package/dialog/core-dialog-description.directive.d.ts.map +1 -0
- package/dialog/core-dialog-footer.directive.d.ts +13 -0
- package/dialog/core-dialog-footer.directive.d.ts.map +1 -0
- package/dialog/core-dialog-heading.directive.d.ts +20 -0
- package/dialog/core-dialog-heading.directive.d.ts.map +1 -0
- package/dialog/core-dialog-positioner.directive.d.ts +21 -0
- package/dialog/core-dialog-positioner.directive.d.ts.map +1 -0
- package/dialog/core-dialog-root.directive.d.ts +129 -0
- package/dialog/core-dialog-root.directive.d.ts.map +1 -0
- package/dialog/core-dialog-trigger.directive.d.ts +20 -0
- package/dialog/core-dialog-trigger.directive.d.ts.map +1 -0
- package/dialog/dialog-context.service.d.ts +12 -0
- package/dialog/dialog-context.service.d.ts.map +1 -0
- package/dialog/index.d.ts +12 -0
- package/dialog/index.d.ts.map +1 -0
- package/dialog/qualcomm-ui-angular-core-dialog.d.ts +6 -0
- package/dialog/qualcomm-ui-angular-core-dialog.d.ts.map +1 -0
- package/dom/clipboard.service.d.ts +20 -0
- package/dom/clipboard.service.d.ts.map +1 -0
- package/dom/context-id-signal.d.ts +42 -0
- package/dom/context-id-signal.d.ts.map +1 -0
- package/dom/descendants-manager.service.d.ts +12 -0
- package/dom/descendants-manager.service.d.ts.map +1 -0
- package/dom/element-id-signal.d.ts +42 -0
- package/dom/element-id-signal.d.ts.map +1 -0
- package/dom/id.service.d.ts +11 -0
- package/dom/id.service.d.ts.map +1 -0
- package/dom/index.d.ts +8 -0
- package/dom/index.d.ts.map +1 -0
- package/dom/portal-config.service.d.ts +8 -0
- package/dom/portal-config.service.d.ts.map +1 -0
- package/dom/qualcomm-ui-angular-core-dom.d.ts +6 -0
- package/dom/qualcomm-ui-angular-core-dom.d.ts.map +1 -0
- package/dom/tokens/caches.d.ts +3 -0
- package/dom/tokens/caches.d.ts.map +1 -0
- package/dom/tokens/css.d.ts +12 -0
- package/dom/tokens/css.d.ts.map +1 -0
- package/dom/tokens/index.d.ts +11 -0
- package/dom/tokens/index.d.ts.map +1 -0
- package/dom/tokens/local-storage.d.ts +3 -0
- package/dom/tokens/local-storage.d.ts.map +1 -0
- package/dom/tokens/location.d.ts +3 -0
- package/dom/tokens/location.d.ts.map +1 -0
- package/dom/tokens/media-devices.d.ts +3 -0
- package/dom/tokens/media-devices.d.ts.map +1 -0
- package/dom/tokens/navigator.d.ts +3 -0
- package/dom/tokens/navigator.d.ts.map +1 -0
- package/dom/tokens/performance.d.ts +3 -0
- package/dom/tokens/performance.d.ts.map +1 -0
- package/dom/tokens/screen.d.ts +3 -0
- package/dom/tokens/screen.d.ts.map +1 -0
- package/dom/tokens/user-agent.d.ts +3 -0
- package/dom/tokens/user-agent.d.ts.map +1 -0
- package/dom/tokens/window.d.ts +3 -0
- package/dom/tokens/window.d.ts.map +1 -0
- package/esm2022/accordion/accordion-context.service.js +14 -0
- package/esm2022/accordion/accordion-context.service.js.map +1 -0
- package/esm2022/accordion/accordion-item-context.service.js +14 -0
- package/esm2022/accordion/accordion-item-context.service.js.map +1 -0
- package/esm2022/accordion/core-accordion-item-content.directive.js +34 -0
- package/esm2022/accordion/core-accordion-item-content.directive.js.map +1 -0
- package/esm2022/accordion/core-accordion-item-trigger-indicator.directive.js +24 -0
- package/esm2022/accordion/core-accordion-item-trigger-indicator.directive.js.map +1 -0
- package/esm2022/accordion/core-accordion-item-trigger-secondary.directive.js +24 -0
- package/esm2022/accordion/core-accordion-item-trigger-secondary.directive.js.map +1 -0
- package/esm2022/accordion/core-accordion-item-trigger-title.directive.js +24 -0
- package/esm2022/accordion/core-accordion-item-trigger-title.directive.js.map +1 -0
- package/esm2022/accordion/core-accordion-item-trigger.directive.js +32 -0
- package/esm2022/accordion/core-accordion-item-trigger.directive.js.map +1 -0
- package/esm2022/accordion/core-accordion-item.directive.js +45 -0
- package/esm2022/accordion/core-accordion-item.directive.js.map +1 -0
- package/esm2022/accordion/core-accordion-root.directive.js +91 -0
- package/esm2022/accordion/core-accordion-root.directive.js.map +1 -0
- package/esm2022/accordion/index.js +10 -0
- package/esm2022/accordion/index.js.map +1 -0
- package/esm2022/accordion/qualcomm-ui-angular-core-accordion.js +5 -0
- package/esm2022/accordion/qualcomm-ui-angular-core-accordion.js.map +1 -0
- package/esm2022/attributes/index.js +3 -0
- package/esm2022/attributes/index.js.map +1 -0
- package/esm2022/attributes/number-attributes.js +22 -0
- package/esm2022/attributes/number-attributes.js.map +1 -0
- package/esm2022/attributes/pixel-attribute.js +10 -0
- package/esm2022/attributes/pixel-attribute.js.map +1 -0
- package/esm2022/attributes/qualcomm-ui-angular-core-attributes.js +5 -0
- package/esm2022/attributes/qualcomm-ui-angular-core-attributes.js.map +1 -0
- package/esm2022/avatar/avatar-context.service.js +14 -0
- package/esm2022/avatar/avatar-context.service.js.map +1 -0
- package/esm2022/avatar/core-avatar-content.directive.js +30 -0
- package/esm2022/avatar/core-avatar-content.directive.js.map +1 -0
- package/esm2022/avatar/core-avatar-image.directive.js +30 -0
- package/esm2022/avatar/core-avatar-image.directive.js.map +1 -0
- package/esm2022/avatar/core-avatar-root.directive.js +51 -0
- package/esm2022/avatar/core-avatar-root.directive.js.map +1 -0
- package/esm2022/avatar/core-avatar-status.directive.js +30 -0
- package/esm2022/avatar/core-avatar-status.directive.js.map +1 -0
- package/esm2022/avatar/index.js +6 -0
- package/esm2022/avatar/index.js.map +1 -0
- package/esm2022/avatar/qualcomm-ui-angular-core-avatar.js +5 -0
- package/esm2022/avatar/qualcomm-ui-angular-core-avatar.js.map +1 -0
- package/esm2022/checkbox/abstract-checkbox-form-control.directive.js +265 -0
- package/esm2022/checkbox/abstract-checkbox-form-control.directive.js.map +1 -0
- package/esm2022/checkbox/checkbox-context.service.js +14 -0
- package/esm2022/checkbox/checkbox-context.service.js.map +1 -0
- package/esm2022/checkbox/core-checkbox-control.directive.js +30 -0
- package/esm2022/checkbox/core-checkbox-control.directive.js.map +1 -0
- package/esm2022/checkbox/core-checkbox-error-text.directive.js +30 -0
- package/esm2022/checkbox/core-checkbox-error-text.directive.js.map +1 -0
- package/esm2022/checkbox/core-checkbox-hidden-input.directive.js +30 -0
- package/esm2022/checkbox/core-checkbox-hidden-input.directive.js.map +1 -0
- package/esm2022/checkbox/core-checkbox-indicator.directive.js +19 -0
- package/esm2022/checkbox/core-checkbox-indicator.directive.js.map +1 -0
- package/esm2022/checkbox/core-checkbox-label.directive.js +30 -0
- package/esm2022/checkbox/core-checkbox-label.directive.js.map +1 -0
- package/esm2022/checkbox/core-checkbox-root.directive.js +88 -0
- package/esm2022/checkbox/core-checkbox-root.directive.js.map +1 -0
- package/esm2022/checkbox/index.js +10 -0
- package/esm2022/checkbox/index.js.map +1 -0
- package/esm2022/checkbox/qualcomm-ui-angular-core-checkbox.js +5 -0
- package/esm2022/checkbox/qualcomm-ui-angular-core-checkbox.js.map +1 -0
- package/esm2022/checkbox/use-checkbox-group.js +62 -0
- package/esm2022/checkbox/use-checkbox-group.js.map +1 -0
- package/esm2022/collapsible/collapsible-context.service.js +14 -0
- package/esm2022/collapsible/collapsible-context.service.js.map +1 -0
- package/esm2022/collapsible/core-collapsible-content.directive.js +32 -0
- package/esm2022/collapsible/core-collapsible-content.directive.js.map +1 -0
- package/esm2022/collapsible/core-collapsible-root.directive.js +71 -0
- package/esm2022/collapsible/core-collapsible-root.directive.js.map +1 -0
- package/esm2022/collapsible/core-collapsible-trigger.directive.js +32 -0
- package/esm2022/collapsible/core-collapsible-trigger.directive.js.map +1 -0
- package/esm2022/collapsible/index.js +5 -0
- package/esm2022/collapsible/index.js.map +1 -0
- package/esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js +5 -0
- package/esm2022/collapsible/qualcomm-ui-angular-core-collapsible.js.map +1 -0
- package/esm2022/collection/index.js +2 -0
- package/esm2022/collection/index.js.map +1 -0
- package/esm2022/collection/qualcomm-ui-angular-core-collection.js +5 -0
- package/esm2022/collection/qualcomm-ui-angular-core-collection.js.map +1 -0
- package/esm2022/collection/use-list-collection.js +50 -0
- package/esm2022/collection/use-list-collection.js.map +1 -0
- package/esm2022/combobox/combobox-context.service.js +14 -0
- package/esm2022/combobox/combobox-context.service.js.map +1 -0
- package/esm2022/combobox/combobox-item-context.service.js +14 -0
- package/esm2022/combobox/combobox-item-context.service.js.map +1 -0
- package/esm2022/combobox/combobox-item-group-context.service.js +14 -0
- package/esm2022/combobox/combobox-item-group-context.service.js.map +1 -0
- package/esm2022/combobox/core-combobox-clear-trigger.directive.js +30 -0
- package/esm2022/combobox/core-combobox-clear-trigger.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-content.directive.js +34 -0
- package/esm2022/combobox/core-combobox-content.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-control.directive.js +30 -0
- package/esm2022/combobox/core-combobox-control.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-empty.directive.js +19 -0
- package/esm2022/combobox/core-combobox-empty.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-error-indicator.directive.js +19 -0
- package/esm2022/combobox/core-combobox-error-indicator.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-error-text.directive.js +30 -0
- package/esm2022/combobox/core-combobox-error-text.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-hint.directive.js +30 -0
- package/esm2022/combobox/core-combobox-hint.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-input.directive.js +30 -0
- package/esm2022/combobox/core-combobox-input.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-item-group-label.directive.js +23 -0
- package/esm2022/combobox/core-combobox-item-group-label.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-item-group.directive.js +31 -0
- package/esm2022/combobox/core-combobox-item-group.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-item-indicator.directive.js +21 -0
- package/esm2022/combobox/core-combobox-item-indicator.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-item-text.directive.js +21 -0
- package/esm2022/combobox/core-combobox-item-text.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-item.directive.js +35 -0
- package/esm2022/combobox/core-combobox-item.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-label.directive.js +30 -0
- package/esm2022/combobox/core-combobox-label.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-positioner.directive.js +32 -0
- package/esm2022/combobox/core-combobox-positioner.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-root.directive.js +387 -0
- package/esm2022/combobox/core-combobox-root.directive.js.map +1 -0
- package/esm2022/combobox/core-combobox-trigger.directive.js +37 -0
- package/esm2022/combobox/core-combobox-trigger.directive.js.map +1 -0
- package/esm2022/combobox/index.js +21 -0
- package/esm2022/combobox/index.js.map +1 -0
- package/esm2022/combobox/qualcomm-ui-angular-core-combobox.js +5 -0
- package/esm2022/combobox/qualcomm-ui-angular-core-combobox.js.map +1 -0
- package/esm2022/common/boolean.js +4 -0
- package/esm2022/common/boolean.js.map +1 -0
- package/esm2022/common/index.js +7 -0
- package/esm2022/common/index.js.map +1 -0
- package/esm2022/common/ng-changes.js +4 -0
- package/esm2022/common/ng-changes.js.map +1 -0
- package/esm2022/common/qualcomm-ui-angular-core-common.js +5 -0
- package/esm2022/common/qualcomm-ui-angular-core-common.js.map +1 -0
- package/esm2022/common/template-content.js +4 -0
- package/esm2022/common/template-content.js.map +1 -0
- package/esm2022/common/use-csr-check.js +22 -0
- package/esm2022/common/use-csr-check.js.map +1 -0
- package/esm2022/common/use-id.js +24 -0
- package/esm2022/common/use-id.js.map +1 -0
- package/esm2022/common/use-is-destroyed.js +20 -0
- package/esm2022/common/use-is-destroyed.js.map +1 -0
- package/esm2022/common/use-is-mounted.js +15 -0
- package/esm2022/common/use-is-mounted.js.map +1 -0
- package/esm2022/common/use-on-destroy.js +16 -0
- package/esm2022/common/use-on-destroy.js.map +1 -0
- package/esm2022/common/use-ssr-check.js +22 -0
- package/esm2022/common/use-ssr-check.js.map +1 -0
- package/esm2022/dialog/core-dialog-backdrop.directive.js +46 -0
- package/esm2022/dialog/core-dialog-backdrop.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-body.directive.js +21 -0
- package/esm2022/dialog/core-dialog-body.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-close-trigger.directive.js +30 -0
- package/esm2022/dialog/core-dialog-close-trigger.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-content.directive.js +50 -0
- package/esm2022/dialog/core-dialog-content.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-description.directive.js +30 -0
- package/esm2022/dialog/core-dialog-description.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-footer.directive.js +19 -0
- package/esm2022/dialog/core-dialog-footer.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-heading.directive.js +30 -0
- package/esm2022/dialog/core-dialog-heading.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-positioner.directive.js +32 -0
- package/esm2022/dialog/core-dialog-positioner.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-root.directive.js +225 -0
- package/esm2022/dialog/core-dialog-root.directive.js.map +1 -0
- package/esm2022/dialog/core-dialog-trigger.directive.js +30 -0
- package/esm2022/dialog/core-dialog-trigger.directive.js.map +1 -0
- package/esm2022/dialog/dialog-context.service.js +24 -0
- package/esm2022/dialog/dialog-context.service.js.map +1 -0
- package/esm2022/dialog/index.js +12 -0
- package/esm2022/dialog/index.js.map +1 -0
- package/esm2022/dialog/qualcomm-ui-angular-core-dialog.js +5 -0
- package/esm2022/dialog/qualcomm-ui-angular-core-dialog.js.map +1 -0
- package/esm2022/dom/clipboard.service.js +42 -0
- package/esm2022/dom/clipboard.service.js.map +1 -0
- package/esm2022/dom/context-id-signal.js +23 -0
- package/esm2022/dom/context-id-signal.js.map +1 -0
- package/esm2022/dom/descendants-manager.service.js +29 -0
- package/esm2022/dom/descendants-manager.service.js.map +1 -0
- package/esm2022/dom/element-id-signal.js +25 -0
- package/esm2022/dom/element-id-signal.js.map +1 -0
- package/esm2022/dom/id.service.js +33 -0
- package/esm2022/dom/id.service.js.map +1 -0
- package/esm2022/dom/index.js +8 -0
- package/esm2022/dom/index.js.map +1 -0
- package/esm2022/dom/portal-config.service.js +17 -0
- package/esm2022/dom/portal-config.service.js.map +1 -0
- package/esm2022/dom/qualcomm-ui-angular-core-dom.js +5 -0
- package/esm2022/dom/qualcomm-ui-angular-core-dom.js.map +1 -0
- package/esm2022/dom/tokens/caches.js +8 -0
- package/esm2022/dom/tokens/caches.js.map +1 -0
- package/esm2022/dom/tokens/css.js +11 -0
- package/esm2022/dom/tokens/css.js.map +1 -0
- package/esm2022/dom/tokens/index.js +11 -0
- package/esm2022/dom/tokens/index.js.map +1 -0
- package/esm2022/dom/tokens/local-storage.js +8 -0
- package/esm2022/dom/tokens/local-storage.js.map +1 -0
- package/esm2022/dom/tokens/location.js +8 -0
- package/esm2022/dom/tokens/location.js.map +1 -0
- package/esm2022/dom/tokens/media-devices.js +8 -0
- package/esm2022/dom/tokens/media-devices.js.map +1 -0
- package/esm2022/dom/tokens/navigator.js +8 -0
- package/esm2022/dom/tokens/navigator.js.map +1 -0
- package/esm2022/dom/tokens/performance.js +8 -0
- package/esm2022/dom/tokens/performance.js.map +1 -0
- package/esm2022/dom/tokens/screen.js +8 -0
- package/esm2022/dom/tokens/screen.js.map +1 -0
- package/esm2022/dom/tokens/user-agent.js +8 -0
- package/esm2022/dom/tokens/user-agent.js.map +1 -0
- package/esm2022/dom/tokens/window.js +14 -0
- package/esm2022/dom/tokens/window.js.map +1 -0
- package/esm2022/events/index.js +3 -0
- package/esm2022/events/index.js.map +1 -0
- package/esm2022/events/listener.service.js +67 -0
- package/esm2022/events/listener.service.js.map +1 -0
- package/esm2022/events/qualcomm-ui-angular-core-events.js +5 -0
- package/esm2022/events/qualcomm-ui-angular-core-events.js.map +1 -0
- package/esm2022/events/use-copy-to-clipboard.js +48 -0
- package/esm2022/events/use-copy-to-clipboard.js.map +1 -0
- package/esm2022/forms/form-utils.js +80 -0
- package/esm2022/forms/form-utils.js.map +1 -0
- package/esm2022/forms/index.js +3 -0
- package/esm2022/forms/index.js.map +1 -0
- package/esm2022/forms/qualcomm-ui-angular-core-forms.js +5 -0
- package/esm2022/forms/qualcomm-ui-angular-core-forms.js.map +1 -0
- package/esm2022/forms/use-forbidden-form-control-warning.js +24 -0
- package/esm2022/forms/use-forbidden-form-control-warning.js.map +1 -0
- package/esm2022/highlight/highlight.directive.js +69 -0
- package/esm2022/highlight/highlight.directive.js.map +1 -0
- package/esm2022/highlight/index.js +2 -0
- package/esm2022/highlight/index.js.map +1 -0
- package/esm2022/highlight/qualcomm-ui-angular-core-highlight.js +5 -0
- package/esm2022/highlight/qualcomm-ui-angular-core-highlight.js.map +1 -0
- package/esm2022/index.js +4 -0
- package/esm2022/index.js.map +1 -0
- package/esm2022/inline-notification/core-inline-notification-action.directive.js +21 -0
- package/esm2022/inline-notification/core-inline-notification-action.directive.js.map +1 -0
- package/esm2022/inline-notification/core-inline-notification-close-trigger.directive.js +32 -0
- package/esm2022/inline-notification/core-inline-notification-close-trigger.directive.js.map +1 -0
- package/esm2022/inline-notification/core-inline-notification-description.directive.js +32 -0
- package/esm2022/inline-notification/core-inline-notification-description.directive.js.map +1 -0
- package/esm2022/inline-notification/core-inline-notification-icon.directive.js +21 -0
- package/esm2022/inline-notification/core-inline-notification-icon.directive.js.map +1 -0
- package/esm2022/inline-notification/core-inline-notification-label.directive.js +32 -0
- package/esm2022/inline-notification/core-inline-notification-label.directive.js.map +1 -0
- package/esm2022/inline-notification/core-inline-notification-root.directive.js +71 -0
- package/esm2022/inline-notification/core-inline-notification-root.directive.js.map +1 -0
- package/esm2022/inline-notification/index.js +8 -0
- package/esm2022/inline-notification/index.js.map +1 -0
- package/esm2022/inline-notification/inline-notification-context.service.js +14 -0
- package/esm2022/inline-notification/inline-notification-context.service.js.map +1 -0
- package/esm2022/inline-notification/qualcomm-ui-angular-core-inline-notification.js +5 -0
- package/esm2022/inline-notification/qualcomm-ui-angular-core-inline-notification.js.map +1 -0
- package/esm2022/input/abstract-input-form-control.directive.js +254 -0
- package/esm2022/input/abstract-input-form-control.directive.js.map +1 -0
- package/esm2022/input/abstract-list-collection-form-control.directive.js +278 -0
- package/esm2022/input/abstract-list-collection-form-control.directive.js.map +1 -0
- package/esm2022/input/index.js +4 -0
- package/esm2022/input/index.js.map +1 -0
- package/esm2022/input/input-form-control-provider.js +70 -0
- package/esm2022/input/input-form-control-provider.js.map +1 -0
- package/esm2022/input/qualcomm-ui-angular-core-input.js +5 -0
- package/esm2022/input/qualcomm-ui-angular-core-input.js.map +1 -0
- package/esm2022/locale/index.js +3 -0
- package/esm2022/locale/index.js.map +1 -0
- package/esm2022/locale/locale-context.service.js +14 -0
- package/esm2022/locale/locale-context.service.js.map +1 -0
- package/esm2022/locale/qualcomm-ui-angular-core-locale.js +5 -0
- package/esm2022/locale/qualcomm-ui-angular-core-locale.js.map +1 -0
- package/esm2022/locale/use-filter.js +16 -0
- package/esm2022/locale/use-filter.js.map +1 -0
- package/esm2022/lorem-ipsum/index.js +2 -0
- package/esm2022/lorem-ipsum/index.js.map +1 -0
- package/esm2022/lorem-ipsum/lorem-ipsum.directive.js +83 -0
- package/esm2022/lorem-ipsum/lorem-ipsum.directive.js.map +1 -0
- package/esm2022/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.js +5 -0
- package/esm2022/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.js.map +1 -0
- package/esm2022/lucide/index.js +3 -0
- package/esm2022/lucide/index.js.map +1 -0
- package/esm2022/lucide/lucide.types.js +4 -0
- package/esm2022/lucide/lucide.types.js.map +1 -0
- package/esm2022/lucide/provide-icons.js +20 -0
- package/esm2022/lucide/provide-icons.js.map +1 -0
- package/esm2022/lucide/qualcomm-ui-angular-core-lucide.js +5 -0
- package/esm2022/lucide/qualcomm-ui-angular-core-lucide.js.map +1 -0
- package/esm2022/machine/api-context.directive.js +44 -0
- package/esm2022/machine/api-context.directive.js.map +1 -0
- package/esm2022/machine/api-context.service.js +58 -0
- package/esm2022/machine/api-context.service.js.map +1 -0
- package/esm2022/machine/bindable-id-collection.js +51 -0
- package/esm2022/machine/bindable-id-collection.js.map +1 -0
- package/esm2022/machine/bindable-id.js +21 -0
- package/esm2022/machine/bindable-id.js.map +1 -0
- package/esm2022/machine/bindable.js +47 -0
- package/esm2022/machine/bindable.js.map +1 -0
- package/esm2022/machine/index.js +13 -0
- package/esm2022/machine/index.js.map +1 -0
- package/esm2022/machine/machine.types.js +4 -0
- package/esm2022/machine/machine.types.js.map +1 -0
- package/esm2022/machine/merge-props.js +68 -0
- package/esm2022/machine/merge-props.js.map +1 -0
- package/esm2022/machine/normalize-props.js +108 -0
- package/esm2022/machine/normalize-props.js.map +1 -0
- package/esm2022/machine/q-bind.directive.js +162 -0
- package/esm2022/machine/q-bind.directive.js.map +1 -0
- package/esm2022/machine/qualcomm-ui-angular-core-machine.js +5 -0
- package/esm2022/machine/qualcomm-ui-angular-core-machine.js.map +1 -0
- package/esm2022/machine/refs.js +18 -0
- package/esm2022/machine/refs.js.map +1 -0
- package/esm2022/machine/track.js +46 -0
- package/esm2022/machine/track.js.map +1 -0
- package/esm2022/machine/use-machine.js +312 -0
- package/esm2022/machine/use-machine.js.map +1 -0
- package/esm2022/machine/use-track-bindings.js +270 -0
- package/esm2022/machine/use-track-bindings.js.map +1 -0
- package/esm2022/menu/base-menu-item.directive.js +53 -0
- package/esm2022/menu/base-menu-item.directive.js.map +1 -0
- package/esm2022/menu/core-menu-checkbox-item.directive.js +51 -0
- package/esm2022/menu/core-menu-checkbox-item.directive.js.map +1 -0
- package/esm2022/menu/core-menu-content.directive.js +50 -0
- package/esm2022/menu/core-menu-content.directive.js.map +1 -0
- package/esm2022/menu/core-menu-context-trigger.directive.js +32 -0
- package/esm2022/menu/core-menu-context-trigger.directive.js.map +1 -0
- package/esm2022/menu/core-menu-item-group-label.directive.js +32 -0
- package/esm2022/menu/core-menu-item-group-label.directive.js.map +1 -0
- package/esm2022/menu/core-menu-item-group.directive.js +33 -0
- package/esm2022/menu/core-menu-item-group.directive.js.map +1 -0
- package/esm2022/menu/core-menu-item-indicator.directive.js +31 -0
- package/esm2022/menu/core-menu-item-indicator.directive.js.map +1 -0
- package/esm2022/menu/core-menu-item-label.directive.js +32 -0
- package/esm2022/menu/core-menu-item-label.directive.js.map +1 -0
- package/esm2022/menu/core-menu-item-root.directive.js +50 -0
- package/esm2022/menu/core-menu-item-root.directive.js.map +1 -0
- package/esm2022/menu/core-menu-positioner.directive.js +34 -0
- package/esm2022/menu/core-menu-positioner.directive.js.map +1 -0
- package/esm2022/menu/core-menu-radio-item-group.directive.js +52 -0
- package/esm2022/menu/core-menu-radio-item-group.directive.js.map +1 -0
- package/esm2022/menu/core-menu-radio-item.directive.js +41 -0
- package/esm2022/menu/core-menu-radio-item.directive.js.map +1 -0
- package/esm2022/menu/core-menu-root.directive.js +242 -0
- package/esm2022/menu/core-menu-root.directive.js.map +1 -0
- package/esm2022/menu/core-menu-separator.directive.js +21 -0
- package/esm2022/menu/core-menu-separator.directive.js.map +1 -0
- package/esm2022/menu/core-menu-trigger-item.directive.js +33 -0
- package/esm2022/menu/core-menu-trigger-item.directive.js.map +1 -0
- package/esm2022/menu/core-menu-trigger.directive.js +34 -0
- package/esm2022/menu/core-menu-trigger.directive.js.map +1 -0
- package/esm2022/menu/index.js +24 -0
- package/esm2022/menu/index.js.map +1 -0
- package/esm2022/menu/menu-context.service.js +14 -0
- package/esm2022/menu/menu-context.service.js.map +1 -0
- package/esm2022/menu/menu-item-context.service.js +14 -0
- package/esm2022/menu/menu-item-context.service.js.map +1 -0
- package/esm2022/menu/menu-item-group-context.service.js +14 -0
- package/esm2022/menu/menu-item-group-context.service.js.map +1 -0
- package/esm2022/menu/menu-machine-context.service.js +14 -0
- package/esm2022/menu/menu-machine-context.service.js.map +1 -0
- package/esm2022/menu/menu-option-item-context.service.js +14 -0
- package/esm2022/menu/menu-option-item-context.service.js.map +1 -0
- package/esm2022/menu/menu-radio-item-group-context.service.js +14 -0
- package/esm2022/menu/menu-radio-item-group-context.service.js.map +1 -0
- package/esm2022/menu/menu-trigger-context.service.js +14 -0
- package/esm2022/menu/menu-trigger-context.service.js.map +1 -0
- package/esm2022/menu/qualcomm-ui-angular-core-menu.js +5 -0
- package/esm2022/menu/qualcomm-ui-angular-core-menu.js.map +1 -0
- package/esm2022/number-input/abstract-number-input-form-control.directive.js +294 -0
- package/esm2022/number-input/abstract-number-input-form-control.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-control.directive.js +21 -0
- package/esm2022/number-input/core-number-input-control.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-decrement-trigger.directive.js +28 -0
- package/esm2022/number-input/core-number-input-decrement-trigger.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-error-indicator.directive.js +21 -0
- package/esm2022/number-input/core-number-input-error-indicator.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-error-text.directive.js +28 -0
- package/esm2022/number-input/core-number-input-error-text.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-hint.directive.js +28 -0
- package/esm2022/number-input/core-number-input-hint.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-increment-trigger.directive.js +28 -0
- package/esm2022/number-input/core-number-input-increment-trigger.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-input-group.directive.js +21 -0
- package/esm2022/number-input/core-number-input-input-group.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-input.directive.js +28 -0
- package/esm2022/number-input/core-number-input-input.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-label.directive.js +28 -0
- package/esm2022/number-input/core-number-input-label.directive.js.map +1 -0
- package/esm2022/number-input/core-number-input-root.directive.js +193 -0
- package/esm2022/number-input/core-number-input-root.directive.js.map +1 -0
- package/esm2022/number-input/index.js +14 -0
- package/esm2022/number-input/index.js.map +1 -0
- package/esm2022/number-input/number-input-context.service.js +14 -0
- package/esm2022/number-input/number-input-context.service.js.map +1 -0
- package/esm2022/number-input/number-input.validators.js +15 -0
- package/esm2022/number-input/number-input.validators.js.map +1 -0
- package/esm2022/number-input/qualcomm-ui-angular-core-number-input.js +5 -0
- package/esm2022/number-input/qualcomm-ui-angular-core-number-input.js.map +1 -0
- package/esm2022/observers/index.js +2 -0
- package/esm2022/observers/index.js.map +1 -0
- package/esm2022/observers/intersection-observer.directive.js +37 -0
- package/esm2022/observers/intersection-observer.directive.js.map +1 -0
- package/esm2022/observers/qualcomm-ui-angular-core-observers.js +5 -0
- package/esm2022/observers/qualcomm-ui-angular-core-observers.js.map +1 -0
- package/esm2022/pagination/core-pagination-next-trigger.directive.js +19 -0
- package/esm2022/pagination/core-pagination-next-trigger.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-page-item.directive.js +24 -0
- package/esm2022/pagination/core-pagination-page-item.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-page-items.directive.js +22 -0
- package/esm2022/pagination/core-pagination-page-items.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-page-metadata.directive.js +19 -0
- package/esm2022/pagination/core-pagination-page-metadata.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-page-size-label.directive.js +26 -0
- package/esm2022/pagination/core-pagination-page-size-label.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-page-size.directive.js +37 -0
- package/esm2022/pagination/core-pagination-page-size.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-prev-trigger.directive.js +19 -0
- package/esm2022/pagination/core-pagination-prev-trigger.directive.js.map +1 -0
- package/esm2022/pagination/core-pagination-root.directive.js +121 -0
- package/esm2022/pagination/core-pagination-root.directive.js.map +1 -0
- package/esm2022/pagination/index.js +10 -0
- package/esm2022/pagination/index.js.map +1 -0
- package/esm2022/pagination/pagination-context.service.js +14 -0
- package/esm2022/pagination/pagination-context.service.js.map +1 -0
- package/esm2022/pagination/qualcomm-ui-angular-core-pagination.js +5 -0
- package/esm2022/pagination/qualcomm-ui-angular-core-pagination.js.map +1 -0
- package/esm2022/password-input/core-password-input-clear-trigger.directive.js +21 -0
- package/esm2022/password-input/core-password-input-clear-trigger.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-error-indicator.directive.js +21 -0
- package/esm2022/password-input/core-password-input-error-indicator.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-error-text.directive.js +32 -0
- package/esm2022/password-input/core-password-input-error-text.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-hint.directive.js +32 -0
- package/esm2022/password-input/core-password-input-hint.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-input-group.directive.js +21 -0
- package/esm2022/password-input/core-password-input-input-group.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-input.directive.js +32 -0
- package/esm2022/password-input/core-password-input-input.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-label.directive.js +32 -0
- package/esm2022/password-input/core-password-input-label.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-root.directive.js +120 -0
- package/esm2022/password-input/core-password-input-root.directive.js.map +1 -0
- package/esm2022/password-input/core-password-input-visibility-trigger.directive.js +32 -0
- package/esm2022/password-input/core-password-input-visibility-trigger.directive.js.map +1 -0
- package/esm2022/password-input/index.js +11 -0
- package/esm2022/password-input/index.js.map +1 -0
- package/esm2022/password-input/password-input-context.service.js +14 -0
- package/esm2022/password-input/password-input-context.service.js.map +1 -0
- package/esm2022/password-input/qualcomm-ui-angular-core-password-input.js +5 -0
- package/esm2022/password-input/qualcomm-ui-angular-core-password-input.js.map +1 -0
- package/esm2022/popover/core-popover-anchor.directive.js +30 -0
- package/esm2022/popover/core-popover-anchor.directive.js.map +1 -0
- package/esm2022/popover/core-popover-arrow-tip.directive.js +19 -0
- package/esm2022/popover/core-popover-arrow-tip.directive.js.map +1 -0
- package/esm2022/popover/core-popover-arrow.directive.js +30 -0
- package/esm2022/popover/core-popover-arrow.directive.js.map +1 -0
- package/esm2022/popover/core-popover-close-trigger.directive.js +30 -0
- package/esm2022/popover/core-popover-close-trigger.directive.js.map +1 -0
- package/esm2022/popover/core-popover-content.directive.js +30 -0
- package/esm2022/popover/core-popover-content.directive.js.map +1 -0
- package/esm2022/popover/core-popover-description.directive.js +30 -0
- package/esm2022/popover/core-popover-description.directive.js.map +1 -0
- package/esm2022/popover/core-popover-label.directive.js +30 -0
- package/esm2022/popover/core-popover-label.directive.js.map +1 -0
- package/esm2022/popover/core-popover-positioner.directive.js +30 -0
- package/esm2022/popover/core-popover-positioner.directive.js.map +1 -0
- package/esm2022/popover/core-popover-root.directive.js +178 -0
- package/esm2022/popover/core-popover-root.directive.js.map +1 -0
- package/esm2022/popover/core-popover-trigger.directive.js +30 -0
- package/esm2022/popover/core-popover-trigger.directive.js.map +1 -0
- package/esm2022/popover/index.js +12 -0
- package/esm2022/popover/index.js.map +1 -0
- package/esm2022/popover/popover-context.service.js +14 -0
- package/esm2022/popover/popover-context.service.js.map +1 -0
- package/esm2022/popover/qualcomm-ui-angular-core-popover.js +5 -0
- package/esm2022/popover/qualcomm-ui-angular-core-popover.js.map +1 -0
- package/esm2022/portal/index.js +4 -0
- package/esm2022/portal/index.js.map +1 -0
- package/esm2022/portal/portal-context.service.js +16 -0
- package/esm2022/portal/portal-context.service.js.map +1 -0
- package/esm2022/portal/portal.component.js +125 -0
- package/esm2022/portal/portal.component.js.map +1 -0
- package/esm2022/portal/portal.directive.js +116 -0
- package/esm2022/portal/portal.directive.js.map +1 -0
- package/esm2022/portal/qualcomm-ui-angular-core-portal.js +5 -0
- package/esm2022/portal/qualcomm-ui-angular-core-portal.js.map +1 -0
- package/esm2022/presence/core-presence.directive.js +53 -0
- package/esm2022/presence/core-presence.directive.js.map +1 -0
- package/esm2022/presence/index.js +5 -0
- package/esm2022/presence/index.js.map +1 -0
- package/esm2022/presence/presence-context.service.js +59 -0
- package/esm2022/presence/presence-context.service.js.map +1 -0
- package/esm2022/presence/qualcomm-ui-angular-core-presence.js +5 -0
- package/esm2022/presence/qualcomm-ui-angular-core-presence.js.map +1 -0
- package/esm2022/presence/render-strategy-context.service.js +14 -0
- package/esm2022/presence/render-strategy-context.service.js.map +1 -0
- package/esm2022/presence/use-presence-renderer.js +30 -0
- package/esm2022/presence/use-presence-renderer.js.map +1 -0
- package/esm2022/progress/core-base-progress.directive.js +59 -0
- package/esm2022/progress/core-base-progress.directive.js.map +1 -0
- package/esm2022/progress/core-progress-bar.directive.js +19 -0
- package/esm2022/progress/core-progress-bar.directive.js.map +1 -0
- package/esm2022/progress/core-progress-error-text.directive.js +32 -0
- package/esm2022/progress/core-progress-error-text.directive.js.map +1 -0
- package/esm2022/progress/core-progress-hint.directive.js +32 -0
- package/esm2022/progress/core-progress-hint.directive.js.map +1 -0
- package/esm2022/progress/core-progress-label.directive.js +32 -0
- package/esm2022/progress/core-progress-label.directive.js.map +1 -0
- package/esm2022/progress/core-progress-root.directive.js +33 -0
- package/esm2022/progress/core-progress-root.directive.js.map +1 -0
- package/esm2022/progress/core-progress-track.directive.js +30 -0
- package/esm2022/progress/core-progress-track.directive.js.map +1 -0
- package/esm2022/progress/core-progress-value-text.directive.js +19 -0
- package/esm2022/progress/core-progress-value-text.directive.js.map +1 -0
- package/esm2022/progress/index.js +10 -0
- package/esm2022/progress/index.js.map +1 -0
- package/esm2022/progress/progress-context.service.js +15 -0
- package/esm2022/progress/progress-context.service.js.map +1 -0
- package/esm2022/progress/qualcomm-ui-angular-core-progress.js +5 -0
- package/esm2022/progress/qualcomm-ui-angular-core-progress.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-bar.directive.js +21 -0
- package/esm2022/progress-ring/core-progress-ring-bar.directive.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-circle.directive.js +32 -0
- package/esm2022/progress-ring/core-progress-ring-circle.directive.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-error-text.directive.js +32 -0
- package/esm2022/progress-ring/core-progress-ring-error-text.directive.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-label.directive.js +32 -0
- package/esm2022/progress-ring/core-progress-ring-label.directive.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-root.directive.js +33 -0
- package/esm2022/progress-ring/core-progress-ring-root.directive.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-track.directive.js +21 -0
- package/esm2022/progress-ring/core-progress-ring-track.directive.js.map +1 -0
- package/esm2022/progress-ring/core-progress-ring-value-text.directive.js +21 -0
- package/esm2022/progress-ring/core-progress-ring-value-text.directive.js.map +1 -0
- package/esm2022/progress-ring/index.js +9 -0
- package/esm2022/progress-ring/index.js.map +1 -0
- package/esm2022/progress-ring/progress-ring-context.service.js +14 -0
- package/esm2022/progress-ring/progress-ring-context.service.js.map +1 -0
- package/esm2022/progress-ring/qualcomm-ui-angular-core-progress-ring.js +5 -0
- package/esm2022/progress-ring/qualcomm-ui-angular-core-progress-ring.js.map +1 -0
- package/esm2022/qualcomm-ui-angular-core.js +5 -0
- package/esm2022/qualcomm-ui-angular-core.js.map +1 -0
- package/esm2022/radio/abstract-radio-form-control.directive.js +261 -0
- package/esm2022/radio/abstract-radio-form-control.directive.js.map +1 -0
- package/esm2022/radio/core-radio-group-error-text.directive.js +30 -0
- package/esm2022/radio/core-radio-group-error-text.directive.js.map +1 -0
- package/esm2022/radio/core-radio-group-items.directive.js +19 -0
- package/esm2022/radio/core-radio-group-items.directive.js.map +1 -0
- package/esm2022/radio/core-radio-group-label.directive.js +30 -0
- package/esm2022/radio/core-radio-group-label.directive.js.map +1 -0
- package/esm2022/radio/core-radio-group.directive.js +87 -0
- package/esm2022/radio/core-radio-group.directive.js.map +1 -0
- package/esm2022/radio/core-radio-item-control.directive.js +21 -0
- package/esm2022/radio/core-radio-item-control.directive.js.map +1 -0
- package/esm2022/radio/core-radio-item-hidden-input.directive.js +33 -0
- package/esm2022/radio/core-radio-item-hidden-input.directive.js.map +1 -0
- package/esm2022/radio/core-radio-item-label.directive.js +33 -0
- package/esm2022/radio/core-radio-item-label.directive.js.map +1 -0
- package/esm2022/radio/core-radio-root.directive.js +62 -0
- package/esm2022/radio/core-radio-root.directive.js.map +1 -0
- package/esm2022/radio/index.js +12 -0
- package/esm2022/radio/index.js.map +1 -0
- package/esm2022/radio/qualcomm-ui-angular-core-radio.js +5 -0
- package/esm2022/radio/qualcomm-ui-angular-core-radio.js.map +1 -0
- package/esm2022/radio/radio-context.service.js +14 -0
- package/esm2022/radio/radio-context.service.js.map +1 -0
- package/esm2022/radio/radio-item-context.service.js +14 -0
- package/esm2022/radio/radio-item-context.service.js.map +1 -0
- package/esm2022/segmented-control/core-segmented-control-hidden-input.directive.js +29 -0
- package/esm2022/segmented-control/core-segmented-control-hidden-input.directive.js.map +1 -0
- package/esm2022/segmented-control/core-segmented-control-item-text.directive.js +29 -0
- package/esm2022/segmented-control/core-segmented-control-item-text.directive.js.map +1 -0
- package/esm2022/segmented-control/core-segmented-control-item.directive.js +53 -0
- package/esm2022/segmented-control/core-segmented-control-item.directive.js.map +1 -0
- package/esm2022/segmented-control/core-segmented-control-root.directive.js +80 -0
- package/esm2022/segmented-control/core-segmented-control-root.directive.js.map +1 -0
- package/esm2022/segmented-control/index.js +6 -0
- package/esm2022/segmented-control/index.js.map +1 -0
- package/esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js +5 -0
- package/esm2022/segmented-control/qualcomm-ui-angular-core-segmented-control.js.map +1 -0
- package/esm2022/segmented-control/segmented-control-context.service.js +14 -0
- package/esm2022/segmented-control/segmented-control-context.service.js.map +1 -0
- package/esm2022/select/core-select-clear-trigger.directive.js +30 -0
- package/esm2022/select/core-select-clear-trigger.directive.js.map +1 -0
- package/esm2022/select/core-select-content.directive.js +30 -0
- package/esm2022/select/core-select-content.directive.js.map +1 -0
- package/esm2022/select/core-select-control.directive.js +30 -0
- package/esm2022/select/core-select-control.directive.js.map +1 -0
- package/esm2022/select/core-select-error-indicator.directive.js +21 -0
- package/esm2022/select/core-select-error-indicator.directive.js.map +1 -0
- package/esm2022/select/core-select-error-text.directive.js +32 -0
- package/esm2022/select/core-select-error-text.directive.js.map +1 -0
- package/esm2022/select/core-select-hidden-select.directive.js +30 -0
- package/esm2022/select/core-select-hidden-select.directive.js.map +1 -0
- package/esm2022/select/core-select-hint.directive.js +32 -0
- package/esm2022/select/core-select-hint.directive.js.map +1 -0
- package/esm2022/select/core-select-indicator.directive.js +21 -0
- package/esm2022/select/core-select-indicator.directive.js.map +1 -0
- package/esm2022/select/core-select-item-indicator.directive.js +21 -0
- package/esm2022/select/core-select-item-indicator.directive.js.map +1 -0
- package/esm2022/select/core-select-item-text.directive.js +21 -0
- package/esm2022/select/core-select-item-text.directive.js.map +1 -0
- package/esm2022/select/core-select-item.directive.js +35 -0
- package/esm2022/select/core-select-item.directive.js.map +1 -0
- package/esm2022/select/core-select-label.directive.js +30 -0
- package/esm2022/select/core-select-label.directive.js.map +1 -0
- package/esm2022/select/core-select-positioner.directive.js +30 -0
- package/esm2022/select/core-select-positioner.directive.js.map +1 -0
- package/esm2022/select/core-select-root.directive.js +231 -0
- package/esm2022/select/core-select-root.directive.js.map +1 -0
- package/esm2022/select/core-select-value-text.directive.js +23 -0
- package/esm2022/select/core-select-value-text.directive.js.map +1 -0
- package/esm2022/select/index.js +18 -0
- package/esm2022/select/index.js.map +1 -0
- package/esm2022/select/qualcomm-ui-angular-core-select.js +5 -0
- package/esm2022/select/qualcomm-ui-angular-core-select.js.map +1 -0
- package/esm2022/select/select-context.service.js +15 -0
- package/esm2022/select/select-context.service.js.map +1 -0
- package/esm2022/select/select-item-context.service.js +14 -0
- package/esm2022/select/select-item-context.service.js.map +1 -0
- package/esm2022/signals/access-signal.js +17 -0
- package/esm2022/signals/access-signal.js.map +1 -0
- package/esm2022/signals/host-binding.js +84 -0
- package/esm2022/signals/host-binding.js.map +1 -0
- package/esm2022/signals/index.js +4 -0
- package/esm2022/signals/index.js.map +1 -0
- package/esm2022/signals/qualcomm-ui-angular-core-signals.js +5 -0
- package/esm2022/signals/qualcomm-ui-angular-core-signals.js.map +1 -0
- package/esm2022/signals/signalify-input.js +4 -0
- package/esm2022/signals/signalify-input.js.map +1 -0
- package/esm2022/signals/signalify-object.js +73 -0
- package/esm2022/signals/signalify-object.js.map +1 -0
- package/esm2022/signals/signals.types.js +4 -0
- package/esm2022/signals/signals.types.js.map +1 -0
- package/esm2022/state/controlled-state-legacy.js +80 -0
- package/esm2022/state/controlled-state-legacy.js.map +1 -0
- package/esm2022/state/controlled-state.service.js +84 -0
- package/esm2022/state/controlled-state.service.js.map +1 -0
- package/esm2022/state/index.js +4 -0
- package/esm2022/state/index.js.map +1 -0
- package/esm2022/state/qualcomm-ui-angular-core-state.js +5 -0
- package/esm2022/state/qualcomm-ui-angular-core-state.js.map +1 -0
- package/esm2022/state/use-controlled-state.js +28 -0
- package/esm2022/state/use-controlled-state.js.map +1 -0
- package/esm2022/switch/core-switch-control.directive.js +19 -0
- package/esm2022/switch/core-switch-control.directive.js.map +1 -0
- package/esm2022/switch/core-switch-error-text.directive.js +30 -0
- package/esm2022/switch/core-switch-error-text.directive.js.map +1 -0
- package/esm2022/switch/core-switch-hidden-input.directive.js +30 -0
- package/esm2022/switch/core-switch-hidden-input.directive.js.map +1 -0
- package/esm2022/switch/core-switch-label.directive.js +30 -0
- package/esm2022/switch/core-switch-label.directive.js.map +1 -0
- package/esm2022/switch/core-switch-root.directive.js +89 -0
- package/esm2022/switch/core-switch-root.directive.js.map +1 -0
- package/esm2022/switch/core-switch-thumb.directive.js +19 -0
- package/esm2022/switch/core-switch-thumb.directive.js.map +1 -0
- package/esm2022/switch/index.js +8 -0
- package/esm2022/switch/index.js.map +1 -0
- package/esm2022/switch/qualcomm-ui-angular-core-switch.js +5 -0
- package/esm2022/switch/qualcomm-ui-angular-core-switch.js.map +1 -0
- package/esm2022/switch/switch-context.service.js +14 -0
- package/esm2022/switch/switch-context.service.js.map +1 -0
- package/esm2022/tabs/core-tab-button.directive.js +35 -0
- package/esm2022/tabs/core-tab-button.directive.js.map +1 -0
- package/esm2022/tabs/core-tab-dismiss-button.directive.js +26 -0
- package/esm2022/tabs/core-tab-dismiss-button.directive.js.map +1 -0
- package/esm2022/tabs/core-tab-root.directive.js +37 -0
- package/esm2022/tabs/core-tab-root.directive.js.map +1 -0
- package/esm2022/tabs/core-tabs-indicator.directive.js +32 -0
- package/esm2022/tabs/core-tabs-indicator.directive.js.map +1 -0
- package/esm2022/tabs/core-tabs-list.directive.js +32 -0
- package/esm2022/tabs/core-tabs-list.directive.js.map +1 -0
- package/esm2022/tabs/core-tabs-panel.directive.js +61 -0
- package/esm2022/tabs/core-tabs-panel.directive.js.map +1 -0
- package/esm2022/tabs/core-tabs-root.directive.js +144 -0
- package/esm2022/tabs/core-tabs-root.directive.js.map +1 -0
- package/esm2022/tabs/index.js +10 -0
- package/esm2022/tabs/index.js.map +1 -0
- package/esm2022/tabs/qualcomm-ui-angular-core-tabs.js +5 -0
- package/esm2022/tabs/qualcomm-ui-angular-core-tabs.js.map +1 -0
- package/esm2022/tabs/tab-context.service.js +14 -0
- package/esm2022/tabs/tab-context.service.js.map +1 -0
- package/esm2022/tabs/tabs-context.service.js +14 -0
- package/esm2022/tabs/tabs-context.service.js.map +1 -0
- package/esm2022/text-area/index.js +2 -0
- package/esm2022/text-area/index.js.map +1 -0
- package/esm2022/text-area/qualcomm-ui-angular-core-text-area.js +5 -0
- package/esm2022/text-area/qualcomm-ui-angular-core-text-area.js.map +1 -0
- package/esm2022/text-input/core-text-input-clear-trigger.directive.js +19 -0
- package/esm2022/text-input/core-text-input-clear-trigger.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-error-indicator.directive.js +21 -0
- package/esm2022/text-input/core-text-input-error-indicator.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-error-text.directive.js +26 -0
- package/esm2022/text-input/core-text-input-error-text.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-hint.directive.js +26 -0
- package/esm2022/text-input/core-text-input-hint.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-input-group.directive.js +21 -0
- package/esm2022/text-input/core-text-input-input-group.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-input.directive.js +28 -0
- package/esm2022/text-input/core-text-input-input.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-label.directive.js +26 -0
- package/esm2022/text-input/core-text-input-label.directive.js.map +1 -0
- package/esm2022/text-input/core-text-input-root.directive.js +82 -0
- package/esm2022/text-input/core-text-input-root.directive.js.map +1 -0
- package/esm2022/text-input/index.js +10 -0
- package/esm2022/text-input/index.js.map +1 -0
- package/esm2022/text-input/qualcomm-ui-angular-core-text-input.js +5 -0
- package/esm2022/text-input/qualcomm-ui-angular-core-text-input.js.map +1 -0
- package/esm2022/text-input/text-input-context.service.js +14 -0
- package/esm2022/text-input/text-input-context.service.js.map +1 -0
- package/esm2022/toast/core-toast-action.directive.js +21 -0
- package/esm2022/toast/core-toast-action.directive.js.map +1 -0
- package/esm2022/toast/core-toast-close-trigger.directive.js +21 -0
- package/esm2022/toast/core-toast-close-trigger.directive.js.map +1 -0
- package/esm2022/toast/core-toast-description.directive.js +23 -0
- package/esm2022/toast/core-toast-description.directive.js.map +1 -0
- package/esm2022/toast/core-toast-label.directive.js +21 -0
- package/esm2022/toast/core-toast-label.directive.js.map +1 -0
- package/esm2022/toast/core-toast-root.directive.js +21 -0
- package/esm2022/toast/core-toast-root.directive.js.map +1 -0
- package/esm2022/toast/core-toaster.directive.js +55 -0
- package/esm2022/toast/core-toaster.directive.js.map +1 -0
- package/esm2022/toast/index.js +9 -0
- package/esm2022/toast/index.js.map +1 -0
- package/esm2022/toast/qualcomm-ui-angular-core-toast.js +5 -0
- package/esm2022/toast/qualcomm-ui-angular-core-toast.js.map +1 -0
- package/esm2022/toast/toast-context.service.js +14 -0
- package/esm2022/toast/toast-context.service.js.map +1 -0
- package/esm2022/toast/toast-group-context.service.js +14 -0
- package/esm2022/toast/toast-group-context.service.js.map +1 -0
- package/esm2022/tooltip/core-tooltip-arrow-tip.directive.js +19 -0
- package/esm2022/tooltip/core-tooltip-arrow-tip.directive.js.map +1 -0
- package/esm2022/tooltip/core-tooltip-arrow.directive.js +30 -0
- package/esm2022/tooltip/core-tooltip-arrow.directive.js.map +1 -0
- package/esm2022/tooltip/core-tooltip-content.directive.js +30 -0
- package/esm2022/tooltip/core-tooltip-content.directive.js.map +1 -0
- package/esm2022/tooltip/core-tooltip-positioner.directive.js +30 -0
- package/esm2022/tooltip/core-tooltip-positioner.directive.js.map +1 -0
- package/esm2022/tooltip/core-tooltip-root.directive.js +82 -0
- package/esm2022/tooltip/core-tooltip-root.directive.js.map +1 -0
- package/esm2022/tooltip/core-tooltip-trigger.directive.js +30 -0
- package/esm2022/tooltip/core-tooltip-trigger.directive.js.map +1 -0
- package/esm2022/tooltip/index.js +8 -0
- package/esm2022/tooltip/index.js.map +1 -0
- package/esm2022/tooltip/qualcomm-ui-angular-core-tooltip.js +5 -0
- package/esm2022/tooltip/qualcomm-ui-angular-core-tooltip.js.map +1 -0
- package/esm2022/tooltip/tooltip-context.service.js +14 -0
- package/esm2022/tooltip/tooltip-context.service.js.map +1 -0
- package/esm2022/virtual/index.js +3 -0
- package/esm2022/virtual/index.js.map +1 -0
- package/esm2022/virtual/proxy.js +95 -0
- package/esm2022/virtual/proxy.js.map +1 -0
- package/esm2022/virtual/qualcomm-ui-angular-core-virtual.js +5 -0
- package/esm2022/virtual/qualcomm-ui-angular-core-virtual.js.map +1 -0
- package/esm2022/virtual/types.js +4 -0
- package/esm2022/virtual/types.js.map +1 -0
- package/esm2022/virtual/virtual.js +89 -0
- package/esm2022/virtual/virtual.js.map +1 -0
- package/events/index.d.ts +3 -0
- package/events/index.d.ts.map +1 -0
- package/events/listener.service.d.ts +27 -0
- package/events/listener.service.d.ts.map +1 -0
- package/events/qualcomm-ui-angular-core-events.d.ts +6 -0
- package/events/qualcomm-ui-angular-core-events.d.ts.map +1 -0
- package/events/use-copy-to-clipboard.d.ts +9 -0
- package/events/use-copy-to-clipboard.d.ts.map +1 -0
- package/forms/form-utils.d.ts +17 -0
- package/forms/form-utils.d.ts.map +1 -0
- package/forms/index.d.ts +3 -0
- package/forms/index.d.ts.map +1 -0
- package/forms/qualcomm-ui-angular-core-forms.d.ts +6 -0
- package/forms/qualcomm-ui-angular-core-forms.d.ts.map +1 -0
- package/forms/use-forbidden-form-control-warning.d.ts +16 -0
- package/forms/use-forbidden-form-control-warning.d.ts.map +1 -0
- package/highlight/highlight.directive.d.ts +28 -0
- package/highlight/highlight.directive.d.ts.map +1 -0
- package/highlight/index.d.ts +2 -0
- package/highlight/index.d.ts.map +1 -0
- package/highlight/qualcomm-ui-angular-core-highlight.d.ts +6 -0
- package/highlight/qualcomm-ui-angular-core-highlight.d.ts.map +1 -0
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -0
- package/inline-notification/core-inline-notification-action.directive.d.ts +13 -0
- package/inline-notification/core-inline-notification-action.directive.d.ts.map +1 -0
- package/inline-notification/core-inline-notification-close-trigger.directive.d.ts +20 -0
- package/inline-notification/core-inline-notification-close-trigger.directive.d.ts.map +1 -0
- package/inline-notification/core-inline-notification-description.directive.d.ts +20 -0
- package/inline-notification/core-inline-notification-description.directive.d.ts.map +1 -0
- package/inline-notification/core-inline-notification-icon.directive.d.ts +13 -0
- package/inline-notification/core-inline-notification-icon.directive.d.ts.map +1 -0
- package/inline-notification/core-inline-notification-label.directive.d.ts +20 -0
- package/inline-notification/core-inline-notification-label.directive.d.ts.map +1 -0
- package/inline-notification/core-inline-notification-root.directive.d.ts +50 -0
- package/inline-notification/core-inline-notification-root.directive.d.ts.map +1 -0
- package/inline-notification/index.d.ts +8 -0
- package/inline-notification/index.d.ts.map +1 -0
- package/inline-notification/inline-notification-context.service.d.ts +9 -0
- package/inline-notification/inline-notification-context.service.d.ts.map +1 -0
- package/inline-notification/qualcomm-ui-angular-core-inline-notification.d.ts +6 -0
- package/inline-notification/qualcomm-ui-angular-core-inline-notification.d.ts.map +1 -0
- package/input/abstract-input-form-control.directive.d.ts +72 -0
- package/input/abstract-input-form-control.directive.d.ts.map +1 -0
- package/input/abstract-list-collection-form-control.directive.d.ts +81 -0
- package/input/abstract-list-collection-form-control.directive.d.ts.map +1 -0
- package/input/index.d.ts +4 -0
- package/input/index.d.ts.map +1 -0
- package/input/input-form-control-provider.d.ts +38 -0
- package/input/input-form-control-provider.d.ts.map +1 -0
- package/input/qualcomm-ui-angular-core-input.d.ts +6 -0
- package/input/qualcomm-ui-angular-core-input.d.ts.map +1 -0
- package/locale/index.d.ts +3 -0
- package/locale/index.d.ts.map +1 -0
- package/locale/locale-context.service.d.ts +9 -0
- package/locale/locale-context.service.d.ts.map +1 -0
- package/locale/qualcomm-ui-angular-core-locale.d.ts +6 -0
- package/locale/qualcomm-ui-angular-core-locale.d.ts.map +1 -0
- package/locale/use-filter.d.ts +8 -0
- package/locale/use-filter.d.ts.map +1 -0
- package/lorem-ipsum/index.d.ts +2 -0
- package/lorem-ipsum/index.d.ts.map +1 -0
- package/lorem-ipsum/lorem-ipsum.directive.d.ts +44 -0
- package/lorem-ipsum/lorem-ipsum.directive.d.ts.map +1 -0
- package/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.d.ts +6 -0
- package/lorem-ipsum/qualcomm-ui-angular-core-lorem-ipsum.d.ts.map +1 -0
- package/lucide/index.d.ts +3 -0
- package/lucide/index.d.ts.map +1 -0
- package/lucide/lucide.types.d.ts +40 -0
- package/lucide/lucide.types.d.ts.map +1 -0
- package/lucide/provide-icons.d.ts +11 -0
- package/lucide/provide-icons.d.ts.map +1 -0
- package/lucide/qualcomm-ui-angular-core-lucide.d.ts +6 -0
- package/lucide/qualcomm-ui-angular-core-lucide.d.ts.map +1 -0
- package/machine/api-context.directive.d.ts +20 -0
- package/machine/api-context.directive.d.ts.map +1 -0
- package/machine/api-context.service.d.ts +32 -0
- package/machine/api-context.service.d.ts.map +1 -0
- package/machine/bindable-id-collection.d.ts +3 -0
- package/machine/bindable-id-collection.d.ts.map +1 -0
- package/machine/bindable-id.d.ts +3 -0
- package/machine/bindable-id.d.ts.map +1 -0
- package/machine/bindable.d.ts +10 -0
- package/machine/bindable.d.ts.map +1 -0
- package/machine/index.d.ts +14 -0
- package/machine/index.d.ts.map +1 -0
- package/machine/machine.types.d.ts +8 -0
- package/machine/machine.types.d.ts.map +1 -0
- package/machine/merge-props.d.ts +20 -0
- package/machine/merge-props.d.ts.map +1 -0
- package/machine/normalize-props.d.ts +4 -0
- package/machine/normalize-props.d.ts.map +1 -0
- package/machine/q-bind.directive.d.ts +44 -0
- package/machine/q-bind.directive.d.ts.map +1 -0
- package/machine/qualcomm-ui-angular-core-machine.d.ts +6 -0
- package/machine/qualcomm-ui-angular-core-machine.d.ts.map +1 -0
- package/machine/refs.d.ts +5 -0
- package/machine/refs.d.ts.map +1 -0
- package/machine/track.d.ts +3 -0
- package/machine/track.d.ts.map +1 -0
- package/machine/use-machine.d.ts +12 -0
- package/machine/use-machine.d.ts.map +1 -0
- package/machine/use-track-bindings.d.ts +60 -0
- package/machine/use-track-bindings.d.ts.map +1 -0
- package/menu/base-menu-item.directive.d.ts +40 -0
- package/menu/base-menu-item.directive.d.ts.map +1 -0
- package/menu/core-menu-checkbox-item.directive.d.ts +35 -0
- package/menu/core-menu-checkbox-item.directive.d.ts.map +1 -0
- package/menu/core-menu-content.directive.d.ts +25 -0
- package/menu/core-menu-content.directive.d.ts.map +1 -0
- package/menu/core-menu-context-trigger.directive.d.ts +20 -0
- package/menu/core-menu-context-trigger.directive.d.ts.map +1 -0
- package/menu/core-menu-item-group-label.directive.d.ts +15 -0
- package/menu/core-menu-item-group-label.directive.d.ts.map +1 -0
- package/menu/core-menu-item-group.directive.d.ts +21 -0
- package/menu/core-menu-item-group.directive.d.ts.map +1 -0
- package/menu/core-menu-item-indicator.directive.d.ts +15 -0
- package/menu/core-menu-item-indicator.directive.d.ts.map +1 -0
- package/menu/core-menu-item-label.directive.d.ts +15 -0
- package/menu/core-menu-item-label.directive.d.ts.map +1 -0
- package/menu/core-menu-item-root.directive.d.ts +16 -0
- package/menu/core-menu-item-root.directive.d.ts.map +1 -0
- package/menu/core-menu-positioner.directive.d.ts +22 -0
- package/menu/core-menu-positioner.directive.d.ts.map +1 -0
- package/menu/core-menu-radio-item-group.directive.d.ts +33 -0
- package/menu/core-menu-radio-item-group.directive.d.ts.map +1 -0
- package/menu/core-menu-radio-item.directive.d.ts +18 -0
- package/menu/core-menu-radio-item.directive.d.ts.map +1 -0
- package/menu/core-menu-root.directive.d.ts +131 -0
- package/menu/core-menu-root.directive.d.ts.map +1 -0
- package/menu/core-menu-separator.directive.d.ts +13 -0
- package/menu/core-menu-separator.directive.d.ts.map +1 -0
- package/menu/core-menu-trigger-item.directive.d.ts +21 -0
- package/menu/core-menu-trigger-item.directive.d.ts.map +1 -0
- package/menu/core-menu-trigger.directive.d.ts +22 -0
- package/menu/core-menu-trigger.directive.d.ts.map +1 -0
- package/menu/index.d.ts +24 -0
- package/menu/index.d.ts.map +1 -0
- package/menu/menu-context.service.d.ts +9 -0
- package/menu/menu-context.service.d.ts.map +1 -0
- package/menu/menu-item-context.service.d.ts +11 -0
- package/menu/menu-item-context.service.d.ts.map +1 -0
- package/menu/menu-item-group-context.service.d.ts +9 -0
- package/menu/menu-item-group-context.service.d.ts.map +1 -0
- package/menu/menu-machine-context.service.d.ts +10 -0
- package/menu/menu-machine-context.service.d.ts.map +1 -0
- package/menu/menu-option-item-context.service.d.ts +11 -0
- package/menu/menu-option-item-context.service.d.ts.map +1 -0
- package/menu/menu-radio-item-group-context.service.d.ts +9 -0
- package/menu/menu-radio-item-group-context.service.d.ts.map +1 -0
- package/menu/menu-trigger-context.service.d.ts +9 -0
- package/menu/menu-trigger-context.service.d.ts.map +1 -0
- package/menu/qualcomm-ui-angular-core-menu.d.ts +6 -0
- package/menu/qualcomm-ui-angular-core-menu.d.ts.map +1 -0
- package/number-input/abstract-number-input-form-control.directive.d.ts +80 -0
- package/number-input/abstract-number-input-form-control.directive.d.ts.map +1 -0
- package/number-input/core-number-input-control.directive.d.ts +13 -0
- package/number-input/core-number-input-control.directive.d.ts.map +1 -0
- package/number-input/core-number-input-decrement-trigger.directive.d.ts +16 -0
- package/number-input/core-number-input-decrement-trigger.directive.d.ts.map +1 -0
- package/number-input/core-number-input-error-indicator.directive.d.ts +13 -0
- package/number-input/core-number-input-error-indicator.directive.d.ts.map +1 -0
- package/number-input/core-number-input-error-text.directive.d.ts +16 -0
- package/number-input/core-number-input-error-text.directive.d.ts.map +1 -0
- package/number-input/core-number-input-hint.directive.d.ts +16 -0
- package/number-input/core-number-input-hint.directive.d.ts.map +1 -0
- package/number-input/core-number-input-increment-trigger.directive.d.ts +16 -0
- package/number-input/core-number-input-increment-trigger.directive.d.ts.map +1 -0
- package/number-input/core-number-input-input-group.directive.d.ts +13 -0
- package/number-input/core-number-input-input-group.directive.d.ts.map +1 -0
- package/number-input/core-number-input-input.directive.d.ts +16 -0
- package/number-input/core-number-input-input.directive.d.ts.map +1 -0
- package/number-input/core-number-input-label.directive.d.ts +16 -0
- package/number-input/core-number-input-label.directive.d.ts.map +1 -0
- package/number-input/core-number-input-root.directive.d.ts +108 -0
- package/number-input/core-number-input-root.directive.d.ts.map +1 -0
- package/number-input/index.d.ts +14 -0
- package/number-input/index.d.ts.map +1 -0
- package/number-input/number-input-context.service.d.ts +9 -0
- package/number-input/number-input-context.service.d.ts.map +1 -0
- package/number-input/number-input.validators.d.ts +7 -0
- package/number-input/number-input.validators.d.ts.map +1 -0
- package/number-input/qualcomm-ui-angular-core-number-input.d.ts +6 -0
- package/number-input/qualcomm-ui-angular-core-number-input.d.ts.map +1 -0
- package/observers/index.d.ts +2 -0
- package/observers/index.d.ts.map +1 -0
- package/observers/intersection-observer.directive.d.ts +13 -0
- package/observers/intersection-observer.directive.d.ts.map +1 -0
- package/observers/qualcomm-ui-angular-core-observers.d.ts +6 -0
- package/observers/qualcomm-ui-angular-core-observers.d.ts.map +1 -0
- package/package.json +208 -0
- package/pagination/core-pagination-next-trigger.directive.d.ts +10 -0
- package/pagination/core-pagination-next-trigger.directive.d.ts.map +1 -0
- package/pagination/core-pagination-page-item.directive.d.ts +16 -0
- package/pagination/core-pagination-page-item.directive.d.ts.map +1 -0
- package/pagination/core-pagination-page-items.directive.d.ts +12 -0
- package/pagination/core-pagination-page-items.directive.d.ts.map +1 -0
- package/pagination/core-pagination-page-metadata.directive.d.ts +10 -0
- package/pagination/core-pagination-page-metadata.directive.d.ts.map +1 -0
- package/pagination/core-pagination-page-size-label.directive.d.ts +13 -0
- package/pagination/core-pagination-page-size-label.directive.d.ts.map +1 -0
- package/pagination/core-pagination-page-size.directive.d.ts +19 -0
- package/pagination/core-pagination-page-size.directive.d.ts.map +1 -0
- package/pagination/core-pagination-prev-trigger.directive.d.ts +10 -0
- package/pagination/core-pagination-prev-trigger.directive.d.ts.map +1 -0
- package/pagination/core-pagination-root.directive.d.ts +83 -0
- package/pagination/core-pagination-root.directive.d.ts.map +1 -0
- package/pagination/index.d.ts +10 -0
- package/pagination/index.d.ts.map +1 -0
- package/pagination/pagination-context.service.d.ts +9 -0
- package/pagination/pagination-context.service.d.ts.map +1 -0
- package/pagination/qualcomm-ui-angular-core-pagination.d.ts +6 -0
- package/pagination/qualcomm-ui-angular-core-pagination.d.ts.map +1 -0
- package/password-input/core-password-input-clear-trigger.directive.d.ts +13 -0
- package/password-input/core-password-input-clear-trigger.directive.d.ts.map +1 -0
- package/password-input/core-password-input-error-indicator.directive.d.ts +13 -0
- package/password-input/core-password-input-error-indicator.directive.d.ts.map +1 -0
- package/password-input/core-password-input-error-text.directive.d.ts +20 -0
- package/password-input/core-password-input-error-text.directive.d.ts.map +1 -0
- package/password-input/core-password-input-hint.directive.d.ts +20 -0
- package/password-input/core-password-input-hint.directive.d.ts.map +1 -0
- package/password-input/core-password-input-input-group.directive.d.ts +13 -0
- package/password-input/core-password-input-input-group.directive.d.ts.map +1 -0
- package/password-input/core-password-input-input.directive.d.ts +20 -0
- package/password-input/core-password-input-input.directive.d.ts.map +1 -0
- package/password-input/core-password-input-label.directive.d.ts +20 -0
- package/password-input/core-password-input-label.directive.d.ts.map +1 -0
- package/password-input/core-password-input-root.directive.d.ts +60 -0
- package/password-input/core-password-input-root.directive.d.ts.map +1 -0
- package/password-input/core-password-input-visibility-trigger.directive.d.ts +20 -0
- package/password-input/core-password-input-visibility-trigger.directive.d.ts.map +1 -0
- package/password-input/index.d.ts +11 -0
- package/password-input/index.d.ts.map +1 -0
- package/password-input/password-input-context.service.d.ts +9 -0
- package/password-input/password-input-context.service.d.ts.map +1 -0
- package/password-input/qualcomm-ui-angular-core-password-input.d.ts +6 -0
- package/password-input/qualcomm-ui-angular-core-password-input.d.ts.map +1 -0
- package/popover/core-popover-anchor.directive.d.ts +17 -0
- package/popover/core-popover-anchor.directive.d.ts.map +1 -0
- package/popover/core-popover-arrow-tip.directive.d.ts +10 -0
- package/popover/core-popover-arrow-tip.directive.d.ts.map +1 -0
- package/popover/core-popover-arrow.directive.d.ts +17 -0
- package/popover/core-popover-arrow.directive.d.ts.map +1 -0
- package/popover/core-popover-close-trigger.directive.d.ts +17 -0
- package/popover/core-popover-close-trigger.directive.d.ts.map +1 -0
- package/popover/core-popover-content.directive.d.ts +17 -0
- package/popover/core-popover-content.directive.d.ts.map +1 -0
- package/popover/core-popover-description.directive.d.ts +17 -0
- package/popover/core-popover-description.directive.d.ts.map +1 -0
- package/popover/core-popover-label.directive.d.ts +17 -0
- package/popover/core-popover-label.directive.d.ts.map +1 -0
- package/popover/core-popover-positioner.directive.d.ts +17 -0
- package/popover/core-popover-positioner.directive.d.ts.map +1 -0
- package/popover/core-popover-root.directive.d.ts +123 -0
- package/popover/core-popover-root.directive.d.ts.map +1 -0
- package/popover/core-popover-trigger.directive.d.ts +17 -0
- package/popover/core-popover-trigger.directive.d.ts.map +1 -0
- package/popover/index.d.ts +12 -0
- package/popover/index.d.ts.map +1 -0
- package/popover/popover-context.service.d.ts +9 -0
- package/popover/popover-context.service.d.ts.map +1 -0
- package/popover/qualcomm-ui-angular-core-popover.d.ts +6 -0
- package/popover/qualcomm-ui-angular-core-popover.d.ts.map +1 -0
- package/portal/index.d.ts +4 -0
- package/portal/index.d.ts.map +1 -0
- package/portal/portal-context.service.d.ts +9 -0
- package/portal/portal-context.service.d.ts.map +1 -0
- package/portal/portal.component.d.ts +37 -0
- package/portal/portal.component.d.ts.map +1 -0
- package/portal/portal.directive.d.ts +27 -0
- package/portal/portal.directive.d.ts.map +1 -0
- package/portal/qualcomm-ui-angular-core-portal.d.ts +6 -0
- package/portal/qualcomm-ui-angular-core-portal.d.ts.map +1 -0
- package/presence/core-presence.directive.d.ts +44 -0
- package/presence/core-presence.directive.d.ts.map +1 -0
- package/presence/index.d.ts +5 -0
- package/presence/index.d.ts.map +1 -0
- package/presence/presence-context.service.d.ts +22 -0
- package/presence/presence-context.service.d.ts.map +1 -0
- package/presence/qualcomm-ui-angular-core-presence.d.ts +6 -0
- package/presence/qualcomm-ui-angular-core-presence.d.ts.map +1 -0
- package/presence/render-strategy-context.service.d.ts +9 -0
- package/presence/render-strategy-context.service.d.ts.map +1 -0
- package/presence/use-presence-renderer.d.ts +20 -0
- package/presence/use-presence-renderer.d.ts.map +1 -0
- package/progress/core-base-progress.directive.d.ts +45 -0
- package/progress/core-base-progress.directive.d.ts.map +1 -0
- package/progress/core-progress-bar.directive.d.ts +13 -0
- package/progress/core-progress-bar.directive.d.ts.map +1 -0
- package/progress/core-progress-error-text.directive.d.ts +20 -0
- package/progress/core-progress-error-text.directive.d.ts.map +1 -0
- package/progress/core-progress-hint.directive.d.ts +20 -0
- package/progress/core-progress-hint.directive.d.ts.map +1 -0
- package/progress/core-progress-label.directive.d.ts +20 -0
- package/progress/core-progress-label.directive.d.ts.map +1 -0
- package/progress/core-progress-root.directive.d.ts +16 -0
- package/progress/core-progress-root.directive.d.ts.map +1 -0
- package/progress/core-progress-track.directive.d.ts +20 -0
- package/progress/core-progress-track.directive.d.ts.map +1 -0
- package/progress/core-progress-value-text.directive.d.ts +13 -0
- package/progress/core-progress-value-text.directive.d.ts.map +1 -0
- package/progress/index.d.ts +10 -0
- package/progress/index.d.ts.map +1 -0
- package/progress/progress-context.service.d.ts +9 -0
- package/progress/progress-context.service.d.ts.map +1 -0
- package/progress/qualcomm-ui-angular-core-progress.d.ts +6 -0
- package/progress/qualcomm-ui-angular-core-progress.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-bar.directive.d.ts +13 -0
- package/progress-ring/core-progress-ring-bar.directive.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-circle.directive.d.ts +20 -0
- package/progress-ring/core-progress-ring-circle.directive.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-error-text.directive.d.ts +20 -0
- package/progress-ring/core-progress-ring-error-text.directive.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-label.directive.d.ts +20 -0
- package/progress-ring/core-progress-ring-label.directive.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-root.directive.d.ts +16 -0
- package/progress-ring/core-progress-ring-root.directive.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-track.directive.d.ts +13 -0
- package/progress-ring/core-progress-ring-track.directive.d.ts.map +1 -0
- package/progress-ring/core-progress-ring-value-text.directive.d.ts +13 -0
- package/progress-ring/core-progress-ring-value-text.directive.d.ts.map +1 -0
- package/progress-ring/index.d.ts +9 -0
- package/progress-ring/index.d.ts.map +1 -0
- package/progress-ring/progress-ring-context.service.d.ts +9 -0
- package/progress-ring/progress-ring-context.service.d.ts.map +1 -0
- package/progress-ring/qualcomm-ui-angular-core-progress-ring.d.ts +6 -0
- package/progress-ring/qualcomm-ui-angular-core-progress-ring.d.ts.map +1 -0
- package/qualcomm-ui-angular-core.d.ts +6 -0
- package/qualcomm-ui-angular-core.d.ts.map +1 -0
- package/radio/abstract-radio-form-control.directive.d.ts +79 -0
- package/radio/abstract-radio-form-control.directive.d.ts.map +1 -0
- package/radio/core-radio-group-error-text.directive.d.ts +20 -0
- package/radio/core-radio-group-error-text.directive.d.ts.map +1 -0
- package/radio/core-radio-group-items.directive.d.ts +13 -0
- package/radio/core-radio-group-items.directive.d.ts.map +1 -0
- package/radio/core-radio-group-label.directive.d.ts +23 -0
- package/radio/core-radio-group-label.directive.d.ts.map +1 -0
- package/radio/core-radio-group.directive.d.ts +43 -0
- package/radio/core-radio-group.directive.d.ts.map +1 -0
- package/radio/core-radio-item-control.directive.d.ts +14 -0
- package/radio/core-radio-item-control.directive.d.ts.map +1 -0
- package/radio/core-radio-item-hidden-input.directive.d.ts +24 -0
- package/radio/core-radio-item-hidden-input.directive.d.ts.map +1 -0
- package/radio/core-radio-item-label.directive.d.ts +24 -0
- package/radio/core-radio-item-label.directive.d.ts.map +1 -0
- package/radio/core-radio-root.directive.d.ts +41 -0
- package/radio/core-radio-root.directive.d.ts.map +1 -0
- package/radio/index.d.ts +12 -0
- package/radio/index.d.ts.map +1 -0
- package/radio/qualcomm-ui-angular-core-radio.d.ts +6 -0
- package/radio/qualcomm-ui-angular-core-radio.d.ts.map +1 -0
- package/radio/radio-context.service.d.ts +9 -0
- package/radio/radio-context.service.d.ts.map +1 -0
- package/radio/radio-item-context.service.d.ts +9 -0
- package/radio/radio-item-context.service.d.ts.map +1 -0
- package/segmented-control/core-segmented-control-hidden-input.directive.d.ts +23 -0
- package/segmented-control/core-segmented-control-hidden-input.directive.d.ts.map +1 -0
- package/segmented-control/core-segmented-control-item-text.directive.d.ts +23 -0
- package/segmented-control/core-segmented-control-item-text.directive.d.ts.map +1 -0
- package/segmented-control/core-segmented-control-item.directive.d.ts +28 -0
- package/segmented-control/core-segmented-control-item.directive.d.ts.map +1 -0
- package/segmented-control/core-segmented-control-root.directive.d.ts +53 -0
- package/segmented-control/core-segmented-control-root.directive.d.ts.map +1 -0
- package/segmented-control/index.d.ts +6 -0
- package/segmented-control/index.d.ts.map +1 -0
- package/segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts +6 -0
- package/segmented-control/qualcomm-ui-angular-core-segmented-control.d.ts.map +1 -0
- package/segmented-control/segmented-control-context.service.d.ts +9 -0
- package/segmented-control/segmented-control-context.service.d.ts.map +1 -0
- package/select/core-select-clear-trigger.directive.d.ts +20 -0
- package/select/core-select-clear-trigger.directive.d.ts.map +1 -0
- package/select/core-select-content.directive.d.ts +20 -0
- package/select/core-select-content.directive.d.ts.map +1 -0
- package/select/core-select-control.directive.d.ts +20 -0
- package/select/core-select-control.directive.d.ts.map +1 -0
- package/select/core-select-error-indicator.directive.d.ts +13 -0
- package/select/core-select-error-indicator.directive.d.ts.map +1 -0
- package/select/core-select-error-text.directive.d.ts +20 -0
- package/select/core-select-error-text.directive.d.ts.map +1 -0
- package/select/core-select-hidden-select.directive.d.ts +20 -0
- package/select/core-select-hidden-select.directive.d.ts.map +1 -0
- package/select/core-select-hint.directive.d.ts +20 -0
- package/select/core-select-hint.directive.d.ts.map +1 -0
- package/select/core-select-indicator.directive.d.ts +13 -0
- package/select/core-select-indicator.directive.d.ts.map +1 -0
- package/select/core-select-item-indicator.directive.d.ts +14 -0
- package/select/core-select-item-indicator.directive.d.ts.map +1 -0
- package/select/core-select-item-text.directive.d.ts +14 -0
- package/select/core-select-item-text.directive.d.ts.map +1 -0
- package/select/core-select-item.directive.d.ts +26 -0
- package/select/core-select-item.directive.d.ts.map +1 -0
- package/select/core-select-label.directive.d.ts +20 -0
- package/select/core-select-label.directive.d.ts.map +1 -0
- package/select/core-select-positioner.directive.d.ts +20 -0
- package/select/core-select-positioner.directive.d.ts.map +1 -0
- package/select/core-select-root.directive.d.ts +130 -0
- package/select/core-select-root.directive.d.ts.map +1 -0
- package/select/core-select-value-text.directive.d.ts +17 -0
- package/select/core-select-value-text.directive.d.ts.map +1 -0
- package/select/index.d.ts +18 -0
- package/select/index.d.ts.map +1 -0
- package/select/qualcomm-ui-angular-core-select.d.ts +6 -0
- package/select/qualcomm-ui-angular-core-select.d.ts.map +1 -0
- package/select/select-context.service.d.ts +12 -0
- package/select/select-context.service.d.ts.map +1 -0
- package/select/select-item-context.service.d.ts +9 -0
- package/select/select-item-context.service.d.ts.map +1 -0
- package/signals/access-signal.d.ts +10 -0
- package/signals/access-signal.d.ts.map +1 -0
- package/signals/host-binding.d.ts +58 -0
- package/signals/host-binding.d.ts.map +1 -0
- package/signals/index.d.ts +6 -0
- package/signals/index.d.ts.map +1 -0
- package/signals/qualcomm-ui-angular-core-signals.d.ts +6 -0
- package/signals/qualcomm-ui-angular-core-signals.d.ts.map +1 -0
- package/signals/signalify-input.d.ts +9 -0
- package/signals/signalify-input.d.ts.map +1 -0
- package/signals/signalify-object.d.ts +5 -0
- package/signals/signalify-object.d.ts.map +1 -0
- package/signals/signals.types.d.ts +3 -0
- package/signals/signals.types.d.ts.map +1 -0
- package/state/controlled-state-legacy.d.ts +49 -0
- package/state/controlled-state-legacy.d.ts.map +1 -0
- package/state/controlled-state.service.d.ts +41 -0
- package/state/controlled-state.service.d.ts.map +1 -0
- package/state/index.d.ts +4 -0
- package/state/index.d.ts.map +1 -0
- package/state/qualcomm-ui-angular-core-state.d.ts +6 -0
- package/state/qualcomm-ui-angular-core-state.d.ts.map +1 -0
- package/state/use-controlled-state.d.ts +13 -0
- package/state/use-controlled-state.d.ts.map +1 -0
- package/switch/core-switch-control.directive.d.ts +13 -0
- package/switch/core-switch-control.directive.d.ts.map +1 -0
- package/switch/core-switch-error-text.directive.d.ts +20 -0
- package/switch/core-switch-error-text.directive.d.ts.map +1 -0
- package/switch/core-switch-hidden-input.directive.d.ts +20 -0
- package/switch/core-switch-hidden-input.directive.d.ts.map +1 -0
- package/switch/core-switch-label.directive.d.ts +20 -0
- package/switch/core-switch-label.directive.d.ts.map +1 -0
- package/switch/core-switch-root.directive.d.ts +48 -0
- package/switch/core-switch-root.directive.d.ts.map +1 -0
- package/switch/core-switch-thumb.directive.d.ts +13 -0
- package/switch/core-switch-thumb.directive.d.ts.map +1 -0
- package/switch/index.d.ts +8 -0
- package/switch/index.d.ts.map +1 -0
- package/switch/qualcomm-ui-angular-core-switch.d.ts +6 -0
- package/switch/qualcomm-ui-angular-core-switch.d.ts.map +1 -0
- package/switch/switch-context.service.d.ts +9 -0
- package/switch/switch-context.service.d.ts.map +1 -0
- package/tabs/core-tab-button.directive.d.ts +21 -0
- package/tabs/core-tab-button.directive.d.ts.map +1 -0
- package/tabs/core-tab-dismiss-button.directive.d.ts +14 -0
- package/tabs/core-tab-dismiss-button.directive.d.ts.map +1 -0
- package/tabs/core-tab-root.directive.d.ts +26 -0
- package/tabs/core-tab-root.directive.d.ts.map +1 -0
- package/tabs/core-tabs-indicator.directive.d.ts +20 -0
- package/tabs/core-tabs-indicator.directive.d.ts.map +1 -0
- package/tabs/core-tabs-list.directive.d.ts +20 -0
- package/tabs/core-tabs-list.directive.d.ts.map +1 -0
- package/tabs/core-tabs-panel.directive.d.ts +33 -0
- package/tabs/core-tabs-panel.directive.d.ts.map +1 -0
- package/tabs/core-tabs-root.directive.d.ts +103 -0
- package/tabs/core-tabs-root.directive.d.ts.map +1 -0
- package/tabs/index.d.ts +10 -0
- package/tabs/index.d.ts.map +1 -0
- package/tabs/qualcomm-ui-angular-core-tabs.d.ts +6 -0
- package/tabs/qualcomm-ui-angular-core-tabs.d.ts.map +1 -0
- package/tabs/tab-context.service.d.ts +9 -0
- package/tabs/tab-context.service.d.ts.map +1 -0
- package/tabs/tabs-context.service.d.ts +9 -0
- package/tabs/tabs-context.service.d.ts.map +1 -0
- package/text-area/index.d.ts +2 -0
- package/text-area/index.d.ts.map +1 -0
- package/text-area/qualcomm-ui-angular-core-text-area.d.ts +6 -0
- package/text-area/qualcomm-ui-angular-core-text-area.d.ts.map +1 -0
- package/text-input/core-text-input-clear-trigger.directive.d.ts +13 -0
- package/text-input/core-text-input-clear-trigger.directive.d.ts.map +1 -0
- package/text-input/core-text-input-error-indicator.directive.d.ts +13 -0
- package/text-input/core-text-input-error-indicator.directive.d.ts.map +1 -0
- package/text-input/core-text-input-error-text.directive.d.ts +16 -0
- package/text-input/core-text-input-error-text.directive.d.ts.map +1 -0
- package/text-input/core-text-input-hint.directive.d.ts +16 -0
- package/text-input/core-text-input-hint.directive.d.ts.map +1 -0
- package/text-input/core-text-input-input-group.directive.d.ts +13 -0
- package/text-input/core-text-input-input-group.directive.d.ts.map +1 -0
- package/text-input/core-text-input-input.directive.d.ts +16 -0
- package/text-input/core-text-input-input.directive.d.ts.map +1 -0
- package/text-input/core-text-input-label.directive.d.ts +16 -0
- package/text-input/core-text-input-label.directive.d.ts.map +1 -0
- package/text-input/core-text-input-root.directive.d.ts +36 -0
- package/text-input/core-text-input-root.directive.d.ts.map +1 -0
- package/text-input/index.d.ts +10 -0
- package/text-input/index.d.ts.map +1 -0
- package/text-input/qualcomm-ui-angular-core-text-input.d.ts +6 -0
- package/text-input/qualcomm-ui-angular-core-text-input.d.ts.map +1 -0
- package/text-input/text-input-context.service.d.ts +9 -0
- package/text-input/text-input-context.service.d.ts.map +1 -0
- package/toast/core-toast-action.directive.d.ts +13 -0
- package/toast/core-toast-action.directive.d.ts.map +1 -0
- package/toast/core-toast-close-trigger.directive.d.ts +13 -0
- package/toast/core-toast-close-trigger.directive.d.ts.map +1 -0
- package/toast/core-toast-description.directive.d.ts +14 -0
- package/toast/core-toast-description.directive.d.ts.map +1 -0
- package/toast/core-toast-label.directive.d.ts +13 -0
- package/toast/core-toast-label.directive.d.ts.map +1 -0
- package/toast/core-toast-root.directive.d.ts +13 -0
- package/toast/core-toast-root.directive.d.ts.map +1 -0
- package/toast/core-toaster.directive.d.ts +42 -0
- package/toast/core-toaster.directive.d.ts.map +1 -0
- package/toast/index.d.ts +9 -0
- package/toast/index.d.ts.map +1 -0
- package/toast/qualcomm-ui-angular-core-toast.d.ts +6 -0
- package/toast/qualcomm-ui-angular-core-toast.d.ts.map +1 -0
- package/toast/toast-context.service.d.ts +9 -0
- package/toast/toast-context.service.d.ts.map +1 -0
- package/toast/toast-group-context.service.d.ts +9 -0
- package/toast/toast-group-context.service.d.ts.map +1 -0
- package/tooltip/core-tooltip-arrow-tip.directive.d.ts +10 -0
- package/tooltip/core-tooltip-arrow-tip.directive.d.ts.map +1 -0
- package/tooltip/core-tooltip-arrow.directive.d.ts +17 -0
- package/tooltip/core-tooltip-arrow.directive.d.ts.map +1 -0
- package/tooltip/core-tooltip-content.directive.d.ts +17 -0
- package/tooltip/core-tooltip-content.directive.d.ts.map +1 -0
- package/tooltip/core-tooltip-positioner.directive.d.ts +17 -0
- package/tooltip/core-tooltip-positioner.directive.d.ts.map +1 -0
- package/tooltip/core-tooltip-root.directive.d.ts +53 -0
- package/tooltip/core-tooltip-root.directive.d.ts.map +1 -0
- package/tooltip/core-tooltip-trigger.directive.d.ts +17 -0
- package/tooltip/core-tooltip-trigger.directive.d.ts.map +1 -0
- package/tooltip/index.d.ts +8 -0
- package/tooltip/index.d.ts.map +1 -0
- package/tooltip/qualcomm-ui-angular-core-tooltip.d.ts +6 -0
- package/tooltip/qualcomm-ui-angular-core-tooltip.d.ts.map +1 -0
- package/tooltip/tooltip-context.service.d.ts +9 -0
- package/tooltip/tooltip-context.service.d.ts.map +1 -0
- package/virtual/index.d.ts +4 -0
- package/virtual/index.d.ts.map +1 -0
- package/virtual/proxy.d.ts +5 -0
- package/virtual/proxy.d.ts.map +1 -0
- package/virtual/qualcomm-ui-angular-core-virtual.d.ts +6 -0
- package/virtual/qualcomm-ui-angular-core-virtual.d.ts.map +1 -0
- package/virtual/types.d.ts +14 -0
- package/virtual/types.d.ts.map +1 -0
- package/virtual/virtual.d.ts +12 -0
- package/virtual/virtual.d.ts.map +1 -0
|
@@ -0,0 +1,162 @@
|
|
|
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 name of names.split(",")) {
|
|
60
|
+
this.renderer.addClass(el, name);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
removeStyle(style) {
|
|
64
|
+
if (!style) {
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
const el = this.elementRef.nativeElement;
|
|
68
|
+
for (const name of Object.keys(style)) {
|
|
69
|
+
this.renderer.removeStyle(el, name, RendererStyleFlags2.DashCase);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
addStyle(style) {
|
|
73
|
+
const el = this.elementRef.nativeElement;
|
|
74
|
+
for (const [name, value] of Object.entries(style)) {
|
|
75
|
+
this.renderer.setStyle(el, name, value, RendererStyleFlags2.DashCase);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
addEventListener(name, callback) {
|
|
79
|
+
const eventName = name.substring(2);
|
|
80
|
+
this.listeners.get(name)?.();
|
|
81
|
+
const unlisten = this.renderer.listen(this.elementRef.nativeElement, eventName, callback);
|
|
82
|
+
this.listeners.set(name, unlisten);
|
|
83
|
+
}
|
|
84
|
+
handleAttrs(prevProps, nextProps) {
|
|
85
|
+
const el = this.elementRef.nativeElement;
|
|
86
|
+
for (const [name, value] of Object.entries(prevProps)) {
|
|
87
|
+
if (name in nextProps || this.omittedProps().has(name)) {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
if (name.startsWith("on")) {
|
|
91
|
+
this.listeners.get(name)?.();
|
|
92
|
+
this.listeners.delete(name);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
switch (name) {
|
|
96
|
+
case "class":
|
|
97
|
+
this.removeClass(value);
|
|
98
|
+
continue;
|
|
99
|
+
case "style":
|
|
100
|
+
this.removeStyle(value);
|
|
101
|
+
continue;
|
|
102
|
+
case "value":
|
|
103
|
+
this.renderer.setProperty(el, "value", undefined);
|
|
104
|
+
continue;
|
|
105
|
+
case "textContent":
|
|
106
|
+
this.renderer.setProperty(el, "textContent", "");
|
|
107
|
+
continue;
|
|
108
|
+
case "checked":
|
|
109
|
+
this.renderer.setProperty(el, "checked", false);
|
|
110
|
+
continue;
|
|
111
|
+
}
|
|
112
|
+
this.renderer.removeAttribute(el, name);
|
|
113
|
+
}
|
|
114
|
+
for (const [name, value] of Object.entries(nextProps)) {
|
|
115
|
+
if (name in prevProps && isEqual(value, prevProps[name])) {
|
|
116
|
+
continue;
|
|
117
|
+
}
|
|
118
|
+
if (name.startsWith("on")) {
|
|
119
|
+
const prevHandler = prevProps[name];
|
|
120
|
+
if (isEqual(prevHandler, value)) {
|
|
121
|
+
continue;
|
|
122
|
+
}
|
|
123
|
+
this.addEventListener(name, value);
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
switch (name) {
|
|
127
|
+
case "class":
|
|
128
|
+
this.removeClass(prevProps[name]);
|
|
129
|
+
this.addClass(value);
|
|
130
|
+
continue;
|
|
131
|
+
case "style":
|
|
132
|
+
this.removeStyle(prevProps[name]);
|
|
133
|
+
this.addStyle(value);
|
|
134
|
+
continue;
|
|
135
|
+
case "value":
|
|
136
|
+
case "checked":
|
|
137
|
+
case "textContent":
|
|
138
|
+
this.renderer.setProperty(el, name, value);
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
if (isString(value) || isNumber(value)) {
|
|
142
|
+
this.renderer.setAttribute(el, name, `${value}`);
|
|
143
|
+
continue;
|
|
144
|
+
}
|
|
145
|
+
if (value === true) {
|
|
146
|
+
this.renderer.setAttribute(el, name, "");
|
|
147
|
+
}
|
|
148
|
+
else {
|
|
149
|
+
this.renderer.removeAttribute(el, name);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: QBindDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
154
|
+
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 });
|
|
155
|
+
}
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: QBindDirective, decorators: [{
|
|
157
|
+
type: Directive,
|
|
158
|
+
args: [{
|
|
159
|
+
selector: "[q-bind]",
|
|
160
|
+
}]
|
|
161
|
+
}], 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 }] }] } });
|
|
162
|
+
//# sourceMappingURL=q-bind.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,QAAQ,uCAAoB,KAAK,EAAE,QAAQ,OAAhB,EAAC,KAAK,EAAE,QAAQ,EAAC,GAAC,CAAA;IAE1D,WAAW,GAAG,KAAK,CAAgB,EAAE,+CAAG,KAAK,EAAE,gBAAgB,OAAxB,EAAC,KAAK,EAAE,gBAAgB,EAAC,GAAC,CAAA;IAEzD,UAAU,GAAG,MAAM,CAAC,CAAA,UAAuB,CAAA,CAAC,CAAA;IAC5C,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA;IAC5B,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;IAC3B,SAAS,GAAG,IAAI,GAAG,EAAwB,CAAA;IACpD,IAAI,GAAS,EAAE,CAAA;IAEd,YAAY,GAAG,QAAQ,CAAC,GAAG,EAAE;QACpC,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,EAAE,CAAA;QAC/B,OAAO,IAAI,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,IAAI,EA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CAAC,EAAE,EAAE,IAAI,CAAC,CAAA;YACzC,CAAC;QACH,CAAC;IACH,CAAC;wGA7JU,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 name of names.split(\",\")) {\n this.renderer.addClass(el, name)\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"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"qualcomm-ui-angular-core-machine.js","sourceRoot":"","sources":["../../../src/machine/qualcomm-ui-angular-core-machine.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,SAAS,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"]}
|
|
@@ -0,0 +1,18 @@
|
|
|
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 createRefs(refs) {
|
|
5
|
+
const ref = signal(refs, ...(ngDevMode ? [{ debugName: "ref" }] : []));
|
|
6
|
+
return {
|
|
7
|
+
get(key) {
|
|
8
|
+
return ref()[key];
|
|
9
|
+
},
|
|
10
|
+
set(key, value) {
|
|
11
|
+
ref.update((prev) => ({
|
|
12
|
+
...prev,
|
|
13
|
+
[key]: value,
|
|
14
|
+
}));
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"refs.js","sourceRoot":"","sources":["../../../src/machine/refs.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,MAAM,EAAC,MAAM,eAAe,CAAA;AAEpC,MAAM,UAAU,UAAU,CAAI,IAAO;IACnC,MAAM,GAAG,GAAG,MAAM,CAAI,IAAI,+CAAC,CAAA;IAE3B,OAAO;QACL,GAAG,CAAoB,GAAM;YAC3B,OAAO,GAAG,EAAE,CAAC,GAAG,CAAC,CAAA;QACnB,CAAC;QACD,GAAG,CAAoB,GAAM,EAAE,KAAW;YACxC,GAAG,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;gBACpB,GAAG,IAAI;gBACP,CAAC,GAAG,CAAC,EAAE,KAAK;aACb,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\nexport function createRefs<T>(refs: T) {\n const ref = signal<T>(refs)\n\n return {\n get<K extends keyof T>(key: K): T[K] {\n return ref()[key]\n },\n set<K extends keyof T>(key: K, value: T[K]) {\n ref.update((prev) => ({\n ...prev,\n [key]: value,\n }))\n },\n }\n}\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
+
import { effect, runInInjectionContext } from "@angular/core";
|
|
4
|
+
import { isEqual } from "@qualcomm-ui/utils/equal";
|
|
5
|
+
import { isFunction } from "@qualcomm-ui/utils/guard";
|
|
6
|
+
function access(value) {
|
|
7
|
+
return isFunction(value) ? value() : value;
|
|
8
|
+
}
|
|
9
|
+
export function useTrack(injector) {
|
|
10
|
+
return (deps, _effect) => {
|
|
11
|
+
let prevDeps = [];
|
|
12
|
+
let isInitialized = false;
|
|
13
|
+
let isMounted = false;
|
|
14
|
+
runInInjectionContext(injector, () => {
|
|
15
|
+
// Separate effect to track mount state
|
|
16
|
+
effect(() => {
|
|
17
|
+
queueMicrotask(() => {
|
|
18
|
+
isMounted = true;
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
effect(() => {
|
|
22
|
+
const currentDeps = deps.map((d) => access(d));
|
|
23
|
+
if (!isInitialized) {
|
|
24
|
+
prevDeps = currentDeps;
|
|
25
|
+
isInitialized = true;
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (!isMounted) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
let changed = false;
|
|
32
|
+
for (let i = 0; i < deps.length; i++) {
|
|
33
|
+
if (!isEqual(prevDeps[i], currentDeps[i])) {
|
|
34
|
+
changed = true;
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (changed) {
|
|
39
|
+
prevDeps = currentDeps;
|
|
40
|
+
_effect();
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
//# sourceMappingURL=track.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"track.js","sourceRoot":"","sources":["../../../src/machine/track.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EAAC,MAAM,EAAiB,qBAAqB,EAAC,MAAM,eAAe,CAAA;AAE1E,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,UAAU,EAAC,MAAM,0BAA0B,CAAA;AAEnD,SAAS,MAAM,CAAI,KAAoB;IACrC,OAAO,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;AAC5C,CAAC;AAED,MAAM,UAAU,QAAQ,CACtB,QAAkB;IAElB,OAAO,CAAC,IAAI,EAAE,OAAO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nimport {effect, type Injector, runInInjectionContext} from \"@angular/core\"\n\nimport {isEqual} from \"@qualcomm-ui/utils/equal\"\nimport {isFunction} from \"@qualcomm-ui/utils/guard\"\n\nfunction access<T>(value: T | (() => T)): T {\n return isFunction(value) ? value() : value\n}\n\nexport function useTrack(\n injector: Injector,\n): (deps: any[], _effect: VoidFunction) => void {\n return (deps, _effect) => {\n let prevDeps: any[] = []\n let isInitialized = false\n let isMounted = false\n\n runInInjectionContext(injector, () => {\n // Separate effect to track mount state\n effect(() => {\n queueMicrotask(() => {\n isMounted = true\n })\n })\n\n effect(() => {\n const currentDeps = deps.map((d) => access(d))\n\n if (!isInitialized) {\n prevDeps = currentDeps\n isInitialized = true\n return\n }\n\n if (!isMounted) {\n return\n }\n\n let changed = false\n for (let i = 0; i < deps.length; i++) {\n if (!isEqual(prevDeps[i], currentDeps[i])) {\n changed = true\n break\n }\n }\n\n if (changed) {\n prevDeps = currentDeps\n _effect()\n }\n })\n })\n }\n}\n"]}
|
|
@@ -0,0 +1,312 @@
|
|
|
1
|
+
// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.
|
|
2
|
+
// SPDX-License-Identifier: BSD-3-Clause-Clear
|
|
3
|
+
import { afterRenderEffect, computed as computedSignal, isSignal, runInInjectionContext, untracked, } from "@angular/core";
|
|
4
|
+
import { createScope } from "@qualcomm-ui/dom/query";
|
|
5
|
+
import { toArray } from "@qualcomm-ui/utils/array";
|
|
6
|
+
import { ensure, isFunction, isString } from "@qualcomm-ui/utils/guard";
|
|
7
|
+
import { INIT_STATE, MachineStatus, } from "@qualcomm-ui/utils/machine";
|
|
8
|
+
import { compact } from "@qualcomm-ui/utils/object";
|
|
9
|
+
import { bindable } from "./bindable";
|
|
10
|
+
import { bindableId } from "./bindable-id";
|
|
11
|
+
import { bindableIdCollection } from "./bindable-id-collection";
|
|
12
|
+
import { createRefs } from "./refs";
|
|
13
|
+
import { useTrack } from "./track";
|
|
14
|
+
export function useMachine(config, userProps = {}, injector, opts = {}) {
|
|
15
|
+
const debug = (...args) => {
|
|
16
|
+
if (opts.debug) {
|
|
17
|
+
console.debug(...args);
|
|
18
|
+
}
|
|
19
|
+
};
|
|
20
|
+
const scope = computedSignal(() => {
|
|
21
|
+
const { getRootNode, id } = access(userProps);
|
|
22
|
+
return createScope({ getRootNode, id });
|
|
23
|
+
});
|
|
24
|
+
const configIds = config.ids?.({
|
|
25
|
+
bindableId,
|
|
26
|
+
bindableIdCollection: () => bindableIdCollection(),
|
|
27
|
+
});
|
|
28
|
+
const ids = {
|
|
29
|
+
collection(key) {
|
|
30
|
+
return configIds?.[key];
|
|
31
|
+
},
|
|
32
|
+
get(key) {
|
|
33
|
+
return configIds?.[key]?.get?.();
|
|
34
|
+
},
|
|
35
|
+
register(key, valueOrParams, onDestroy) {
|
|
36
|
+
if (typeof valueOrParams === "object" &&
|
|
37
|
+
valueOrParams !== null &&
|
|
38
|
+
"id" in valueOrParams) {
|
|
39
|
+
const params = valueOrParams;
|
|
40
|
+
configIds?.[key].set?.(params.id);
|
|
41
|
+
params.onDestroy?.(() => configIds?.[key].set?.(undefined));
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
configIds?.[key].set?.(valueOrParams);
|
|
45
|
+
onDestroy?.(() => configIds?.[key].set?.(undefined));
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
set(key, value) {
|
|
49
|
+
configIds?.[key].set?.(value);
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
const props = computedSignal(() => config.props?.({
|
|
53
|
+
props: compact(access(userProps)),
|
|
54
|
+
scope: { ...scope(), ids },
|
|
55
|
+
}) ?? access(userProps));
|
|
56
|
+
const prop = useProp(props);
|
|
57
|
+
let previousEventRef = null;
|
|
58
|
+
let eventRef = { type: "" };
|
|
59
|
+
const getEvent = () => ({
|
|
60
|
+
...eventRef,
|
|
61
|
+
current() {
|
|
62
|
+
return eventRef;
|
|
63
|
+
},
|
|
64
|
+
previous() {
|
|
65
|
+
return previousEventRef;
|
|
66
|
+
},
|
|
67
|
+
});
|
|
68
|
+
const context = {
|
|
69
|
+
get(key) {
|
|
70
|
+
return configContext[key]?.get();
|
|
71
|
+
},
|
|
72
|
+
hash(key) {
|
|
73
|
+
const current = configContext?.[key].get();
|
|
74
|
+
return configContext?.[key].hash(current);
|
|
75
|
+
},
|
|
76
|
+
initial(key) {
|
|
77
|
+
return configContext?.[key].initial;
|
|
78
|
+
},
|
|
79
|
+
set(key, value, ...details) {
|
|
80
|
+
configContext?.[key].set(value, ...details);
|
|
81
|
+
},
|
|
82
|
+
};
|
|
83
|
+
const refs = createRefs(config.refs?.({ context, prop }) ?? {});
|
|
84
|
+
const configContext = config.context?.({
|
|
85
|
+
bindable,
|
|
86
|
+
flush,
|
|
87
|
+
getComputed() {
|
|
88
|
+
return computed;
|
|
89
|
+
},
|
|
90
|
+
getContext() {
|
|
91
|
+
return context;
|
|
92
|
+
},
|
|
93
|
+
getEvent() {
|
|
94
|
+
return getEvent();
|
|
95
|
+
},
|
|
96
|
+
getRefs() {
|
|
97
|
+
return refs;
|
|
98
|
+
},
|
|
99
|
+
prop,
|
|
100
|
+
get scope() {
|
|
101
|
+
return { ...scope(), ids };
|
|
102
|
+
},
|
|
103
|
+
});
|
|
104
|
+
const computed = (key) => {
|
|
105
|
+
ensure(config.computed, () => `No computed object found on machine`);
|
|
106
|
+
const fn = config.computed[key];
|
|
107
|
+
return fn({
|
|
108
|
+
computed,
|
|
109
|
+
context,
|
|
110
|
+
prop,
|
|
111
|
+
refs,
|
|
112
|
+
get scope() {
|
|
113
|
+
return { ...scope(), ids };
|
|
114
|
+
},
|
|
115
|
+
});
|
|
116
|
+
};
|
|
117
|
+
// Create the actions object with direct property access
|
|
118
|
+
const actions = {};
|
|
119
|
+
if (config.actions) {
|
|
120
|
+
for (const key of Object.keys(config.actions)) {
|
|
121
|
+
const actionFn = config.actions[key];
|
|
122
|
+
actions[key] = () => {
|
|
123
|
+
return actionFn(getParams());
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
let effectsRef = new Map();
|
|
128
|
+
let transitionRef = null;
|
|
129
|
+
const action = (keys) => {
|
|
130
|
+
if (!keys) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const strs = isFunction(keys) ? keys(getParams()) : keys;
|
|
134
|
+
if (!strs) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
for (const key of strs) {
|
|
138
|
+
const fn = config.actions?.[key];
|
|
139
|
+
if (fn) {
|
|
140
|
+
fn(getParams());
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
const guard = (guard) => {
|
|
145
|
+
if (isFunction(guard)) {
|
|
146
|
+
return guard(getParams());
|
|
147
|
+
}
|
|
148
|
+
return config.guards?.[guard](getParams());
|
|
149
|
+
};
|
|
150
|
+
const choose = (transitions) => {
|
|
151
|
+
return toArray(transitions).find((t) => {
|
|
152
|
+
let result = !t.guard;
|
|
153
|
+
if (isString(t.guard)) {
|
|
154
|
+
result = !!guard(t.guard);
|
|
155
|
+
}
|
|
156
|
+
else if (isFunction(t.guard)) {
|
|
157
|
+
result = t.guard(getParams());
|
|
158
|
+
}
|
|
159
|
+
return result;
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
const effect = (keys) => {
|
|
163
|
+
if (!keys) {
|
|
164
|
+
return undefined;
|
|
165
|
+
}
|
|
166
|
+
const fns = keys.map((s) => {
|
|
167
|
+
return config.effects?.[s];
|
|
168
|
+
});
|
|
169
|
+
const cleanups = [];
|
|
170
|
+
for (const fn of fns) {
|
|
171
|
+
const cleanup = fn?.(getParams());
|
|
172
|
+
if (cleanup) {
|
|
173
|
+
cleanups.push(cleanup);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
return () => cleanups.forEach((fn) => fn?.());
|
|
177
|
+
};
|
|
178
|
+
const state = bindable(() => ({
|
|
179
|
+
defaultValue: config.initialState({ prop }),
|
|
180
|
+
name: "state",
|
|
181
|
+
onChange: (nextState, details, prevState) => {
|
|
182
|
+
// compute effects: exit -> transition -> enter
|
|
183
|
+
// exit effects
|
|
184
|
+
if (prevState) {
|
|
185
|
+
const exitEffects = effectsRef.get(prevState);
|
|
186
|
+
exitEffects?.();
|
|
187
|
+
effectsRef.delete(prevState);
|
|
188
|
+
}
|
|
189
|
+
// exit actions
|
|
190
|
+
if (prevState) {
|
|
191
|
+
action(config.states[prevState]?.exit);
|
|
192
|
+
}
|
|
193
|
+
// transition actions
|
|
194
|
+
action(transitionRef?.actions);
|
|
195
|
+
// enter effect
|
|
196
|
+
const cleanup = effect(config.states[nextState]?.effects);
|
|
197
|
+
if (cleanup) {
|
|
198
|
+
effectsRef.set(nextState, cleanup);
|
|
199
|
+
}
|
|
200
|
+
// root entry actions
|
|
201
|
+
if (prevState === "__init__") {
|
|
202
|
+
action(config.onInit?.actions);
|
|
203
|
+
const cleanup = effect(config.onInit?.effects ?? []);
|
|
204
|
+
if (cleanup) {
|
|
205
|
+
effectsRef.set("__init__", cleanup);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
// enter actions
|
|
209
|
+
action(config.states[nextState]?.entry);
|
|
210
|
+
},
|
|
211
|
+
}));
|
|
212
|
+
const getState = () => ({
|
|
213
|
+
...state,
|
|
214
|
+
hasTag(tag) {
|
|
215
|
+
return !!config.states[state.get()]?.tags?.includes(tag);
|
|
216
|
+
},
|
|
217
|
+
matches(...values) {
|
|
218
|
+
return values.includes(state.get());
|
|
219
|
+
},
|
|
220
|
+
});
|
|
221
|
+
const send = (event) => {
|
|
222
|
+
queueMicrotask(() => {
|
|
223
|
+
previousEventRef = { ...eventRef };
|
|
224
|
+
eventRef = { ...event };
|
|
225
|
+
const currentState = state.get();
|
|
226
|
+
debug("send", { currentState, event });
|
|
227
|
+
const transitions = config.states[currentState]?.on?.[event.type] ?? config.on?.[event.type];
|
|
228
|
+
const transition = choose(transitions);
|
|
229
|
+
if (!transition) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
// save current transition
|
|
233
|
+
transitionRef = transition;
|
|
234
|
+
const target = transition.target ?? currentState;
|
|
235
|
+
const changed = target !== currentState;
|
|
236
|
+
debug("transition", transition);
|
|
237
|
+
if (changed) {
|
|
238
|
+
state.set(target);
|
|
239
|
+
}
|
|
240
|
+
else if (transition.reenter && !changed) {
|
|
241
|
+
// reenter will re-invoke the current state
|
|
242
|
+
state.invoke(currentState, currentState);
|
|
243
|
+
}
|
|
244
|
+
else {
|
|
245
|
+
// call transition actions
|
|
246
|
+
action(transition.actions ?? []);
|
|
247
|
+
}
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
const getParams = () => ({
|
|
251
|
+
action,
|
|
252
|
+
actions,
|
|
253
|
+
choose,
|
|
254
|
+
computed,
|
|
255
|
+
context,
|
|
256
|
+
event: getEvent(),
|
|
257
|
+
flush,
|
|
258
|
+
guard,
|
|
259
|
+
prop,
|
|
260
|
+
refs,
|
|
261
|
+
get scope() {
|
|
262
|
+
return { ...scope(), ids };
|
|
263
|
+
},
|
|
264
|
+
send: send,
|
|
265
|
+
state: getState(),
|
|
266
|
+
track: useTrack(injector),
|
|
267
|
+
});
|
|
268
|
+
config.watch?.(getParams());
|
|
269
|
+
let status = MachineStatus.NOT_STARTED;
|
|
270
|
+
runInInjectionContext(injector, () => {
|
|
271
|
+
afterRenderEffect((onCleanup) => {
|
|
272
|
+
const started = status === MachineStatus.STARTED;
|
|
273
|
+
status = MachineStatus.STARTED;
|
|
274
|
+
debug(started ? "rehydrating..." : "initializing...");
|
|
275
|
+
untracked(() => state.invoke(state.initial, INIT_STATE));
|
|
276
|
+
onCleanup(() => {
|
|
277
|
+
debug("unmounting...");
|
|
278
|
+
status = MachineStatus.STOPPED;
|
|
279
|
+
effectsRef.forEach((fn) => fn());
|
|
280
|
+
effectsRef = new Map();
|
|
281
|
+
transitionRef = null;
|
|
282
|
+
action(config.onDestroy?.actions);
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
return {
|
|
287
|
+
computed,
|
|
288
|
+
context,
|
|
289
|
+
event: getEvent(),
|
|
290
|
+
prop,
|
|
291
|
+
refs,
|
|
292
|
+
get scope() {
|
|
293
|
+
return { ...scope(), ids };
|
|
294
|
+
},
|
|
295
|
+
send: send,
|
|
296
|
+
state: getState(),
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
function flush(fn) {
|
|
300
|
+
queueMicrotask(() => {
|
|
301
|
+
fn();
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
function access(value) {
|
|
305
|
+
return isSignal(value) ? value() : value;
|
|
306
|
+
}
|
|
307
|
+
function useProp(value) {
|
|
308
|
+
return function get(key) {
|
|
309
|
+
return value()[key];
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
//# sourceMappingURL=use-machine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-machine.js","sourceRoot":"","sources":["../../../src/machine/use-machine.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,8CAA8C;AAE9C,OAAO,EACL,iBAAiB,EACjB,QAAQ,IAAI,cAAc,EAE1B,QAAQ,EACR,qBAAqB,EAErB,SAAS,GACV,MAAM,eAAe,CAAA;AAEtB,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAA;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,0BAA0B,CAAA;AAChD,OAAO,EAAC,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,0BAA0B,CAAA;AACrE,OAAO,EAWL,UAAU,EAIV,aAAa,GAMd,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAC,OAAO,EAAC,MAAM,2BAA2B,CAAA;AAEjD,OAAO,EAAC,QAAQ,EAAC,MAAM,YAAY,CAAA;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAA;AACxC,OAAO,EAAC,oBAAoB,EAAC,MAAM,0BAA0B,CAAA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AAA;AACH,CAAC","sourcesContent":["// Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries.\n// SPDX-License-Identifier: BSD-3-Clause-Clear\n\nimport {\n afterRenderEffect,\n computed as computedSignal,\n type Injector,\n isSignal,\n runInInjectionContext,\n type Signal,\n untracked,\n} from \"@angular/core\"\n\nimport {createScope} from \"@qualcomm-ui/dom/query\"\nimport {toArray} from \"@qualcomm-ui/utils/array\"\nimport {ensure, isFunction, isString} from \"@qualcomm-ui/utils/guard\"\nimport {\n type ActionsOrFn,\n type BindableContext,\n type BindableIds,\n type ChooseFn,\n type ComputedFn,\n type CtxDetails,\n type CtxValue,\n type DetailTuple,\n type EventType,\n type GuardFn,\n INIT_STATE,\n type Machine,\n type MachineConfig,\n type MachineSchema,\n MachineStatus,\n type Params,\n type SendFn,\n type Transition,\n type ValueOrFn,\n type WatchParams,\n} from \"@qualcomm-ui/utils/machine\"\nimport {compact} from \"@qualcomm-ui/utils/object\"\n\nimport {bindable} from \"./bindable\"\nimport {bindableId} from \"./bindable-id\"\nimport {bindableIdCollection} from \"./bindable-id-collection\"\nimport {createRefs} from \"./refs\"\nimport {useTrack} from \"./track\"\n\nexport interface MachineOpts {\n /**\n * If true, enable debug logging.\n *\n * @default false\n */\n debug?: boolean | undefined\n}\n\nexport function useMachine<T extends MachineSchema>(\n config: MachineConfig<T>,\n userProps: Partial<T[\"props\"]> | Signal<Partial<T[\"props\"]>> = {},\n injector: Injector,\n opts: MachineOpts = {},\n): Machine<T> {\n const debug = (...args: any[]) => {\n if (opts.debug) {\n console.debug(...args)\n }\n }\n\n const scope = computedSignal(() => {\n const {getRootNode, id} = access<any>(userProps)\n return createScope({getRootNode, id})\n })\n\n const configIds = config.ids?.({\n bindableId,\n bindableIdCollection: () => bindableIdCollection(),\n })\n\n const ids: BindableIds<T> = {\n collection(key) {\n return configIds?.[key]\n },\n get(key) {\n return configIds?.[key]?.get?.()\n },\n register(key, valueOrParams, onDestroy?: any) {\n if (\n typeof valueOrParams === \"object\" &&\n valueOrParams !== null &&\n \"id\" in valueOrParams\n ) {\n const params = valueOrParams\n configIds?.[key].set?.(params.id)\n params.onDestroy?.(() => configIds?.[key].set?.(undefined))\n } else {\n configIds?.[key].set?.(valueOrParams)\n onDestroy?.(() => configIds?.[key].set?.(undefined))\n }\n },\n set(key, value) {\n configIds?.[key].set?.(value)\n },\n }\n\n const props = computedSignal(\n () =>\n config.props?.({\n props: compact(access(userProps)),\n scope: {...scope(), ids},\n }) ?? access(userProps),\n )\n\n const prop = useProp<T[\"props\"]>(props)\n\n let previousEventRef: any = null\n let eventRef: any = {type: \"\"}\n\n const getEvent = () => ({\n ...eventRef,\n current() {\n return eventRef\n },\n previous() {\n return previousEventRef\n },\n })\n\n const context: BindableContext<T> = {\n get<K extends keyof T[\"context\"]>(key: K) {\n return configContext![key]?.get()\n },\n hash(key): string | undefined {\n const current = configContext?.[key].get()\n return configContext?.[key].hash(current)\n },\n initial<K extends keyof T[\"context\"]>(key: K) {\n return configContext?.[key].initial\n },\n set<K extends keyof T[\"context\"]>(\n key: K,\n value: ValueOrFn<CtxValue<T[\"context\"][K]>>,\n ...details: DetailTuple<CtxDetails<T[\"context\"][K]>>\n ): void {\n configContext?.[key].set(value, ...(details as any))\n },\n }\n\n const refs = createRefs(config.refs?.({context, prop}) ?? {})\n\n const configContext = config.context?.({\n bindable,\n flush,\n getComputed() {\n return computed\n },\n getContext() {\n return context\n },\n getEvent() {\n return getEvent()\n },\n getRefs() {\n return refs\n },\n prop,\n get scope() {\n return {...scope(), ids}\n },\n })\n\n const computed: ComputedFn<T> = (key) => {\n ensure(config.computed, () => `No computed object found on machine`)\n const fn = config.computed[key]\n return fn({\n computed,\n context,\n prop,\n refs,\n get scope() {\n return {...scope(), ids}\n },\n })\n }\n\n // Create the actions object with direct property access\n const actions = {} as {\n [K in keyof T[\"actions\"]]: () => void\n }\n\n if (config.actions) {\n for (const key of Object.keys(config.actions) as Array<\n keyof T[\"actions\"]\n >) {\n const actionFn = config.actions[key]\n\n actions[key] = () => {\n return actionFn(getParams())\n }\n }\n }\n\n let effectsRef = new Map<string, VoidFunction>()\n let transitionRef: Transition<T> | null = null\n\n const action = (keys: ActionsOrFn<T> | undefined) => {\n if (!keys) {\n return\n }\n const strs = isFunction(keys) ? keys(getParams()) : keys\n if (!strs) {\n return\n }\n for (const key of strs) {\n const fn = config.actions?.[key]\n if (fn) {\n fn(getParams())\n }\n }\n }\n\n const guard = <K extends keyof T[\"guards\"]>(guard: K | GuardFn<T>) => {\n if (isFunction(guard)) {\n return guard(getParams())\n }\n return config.guards?.[guard](getParams())\n }\n\n const choose: ChooseFn<T> = (transitions) => {\n return toArray(transitions).find((t) => {\n let result: boolean | undefined = !t.guard\n if (isString(t.guard)) {\n result = !!guard(t.guard)\n } else if (isFunction(t.guard)) {\n result = t.guard(getParams())\n }\n return result\n })\n }\n\n const effect = (keys: (keyof T[\"effects\"])[] | undefined) => {\n if (!keys) {\n return undefined\n }\n const fns = keys.map((s) => {\n return config.effects?.[s]\n })\n const cleanups: VoidFunction[] = []\n for (const fn of fns) {\n const cleanup = fn?.(getParams())\n if (cleanup) {\n cleanups.push(cleanup)\n }\n }\n return () => cleanups.forEach((fn) => fn?.())\n }\n\n const state = bindable(() => ({\n defaultValue: config.initialState({prop}),\n name: \"state\",\n onChange: (nextState, details: unknown, prevState) => {\n // compute effects: exit -> transition -> enter\n\n // exit effects\n if (prevState) {\n const exitEffects = effectsRef.get(prevState)\n exitEffects?.()\n effectsRef.delete(prevState)\n }\n\n // exit actions\n if (prevState) {\n action(config.states[prevState]?.exit)\n }\n\n // transition actions\n action(transitionRef?.actions)\n\n // enter effect\n const cleanup = effect(config.states[nextState]?.effects)\n if (cleanup) {\n effectsRef.set(nextState as string, cleanup)\n }\n\n // root entry actions\n if (prevState === \"__init__\") {\n action(config.onInit?.actions)\n const cleanup = effect(config.onInit?.effects ?? [])\n if (cleanup) {\n effectsRef.set(\"__init__\", cleanup)\n }\n }\n\n // enter actions\n action(config.states[nextState]?.entry)\n },\n }))\n\n const getState = () => ({\n ...state,\n hasTag(tag: T[\"tag\"]) {\n return !!config.states[state.get()]?.tags?.includes(tag)\n },\n matches(...values: T[\"state\"][]) {\n return values.includes(state.get())\n },\n })\n\n const send = (event: EventType<T>) => {\n queueMicrotask(() => {\n previousEventRef = {...eventRef}\n eventRef = {...event}\n const currentState = state.get()\n\n debug(\"send\", {currentState, event})\n\n const transitions =\n config.states[currentState]?.on?.[event.type] ?? config.on?.[event.type]\n\n const transition = choose(transitions)\n if (!transition) {\n return\n }\n\n // save current transition\n transitionRef = transition\n\n const target = transition.target ?? currentState\n const changed = target !== currentState\n\n debug(\"transition\", transition)\n\n if (changed) {\n state.set(target)\n } else if (transition.reenter && !changed) {\n // reenter will re-invoke the current state\n state.invoke(currentState, currentState)\n } else {\n // call transition actions\n action(transition.actions ?? [])\n }\n })\n }\n\n const getParams = (): Params<T> => ({\n action,\n actions,\n choose,\n computed,\n context,\n event: getEvent(),\n flush,\n guard,\n prop,\n refs,\n get scope() {\n return {...scope(), ids}\n },\n send: send as SendFn<T>,\n state: getState(),\n track: useTrack(injector),\n })\n\n config.watch?.(getParams() as WatchParams<T>)\n\n let status: MachineStatus = MachineStatus.NOT_STARTED\n\n runInInjectionContext(injector, () => {\n afterRenderEffect((onCleanup) => {\n const started = status === MachineStatus.STARTED\n\n status = MachineStatus.STARTED\n\n debug(started ? \"rehydrating...\" : \"initializing...\")\n\n untracked(() => state.invoke(state.initial, INIT_STATE))\n\n onCleanup(() => {\n debug(\"unmounting...\")\n\n status = MachineStatus.STOPPED\n\n effectsRef.forEach((fn) => fn())\n\n effectsRef = new Map()\n transitionRef = null\n\n action(config.onDestroy?.actions)\n })\n })\n })\n\n return {\n computed,\n context,\n event: getEvent(),\n prop,\n refs,\n get scope() {\n return {...scope(), ids}\n },\n send: send as SendFn<T>,\n state: getState(),\n }\n}\n\nfunction flush(fn: VoidFunction) {\n queueMicrotask(() => {\n fn()\n })\n}\n\nfunction access<T>(value: T | Signal<T>) {\n return isSignal(value) ? value() : value\n}\n\nfunction useProp<T>(value: Signal<T>) {\n return function get<K extends keyof T>(key: K): T[K] {\n return value()[key]\n }\n}\n"]}
|