@supersoniks/concorde 4.9.98-visual-stack.1 → 4.9.98-visual-stack.2
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/.gitlab-ci.yml +0 -13
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +1 -1
- package/concorde-3d.es.js +2 -2
- package/concorde-core.bundle.js +557 -622
- package/concorde-core.es.js +6025 -5575
- package/concorde-hugging-face-infer.bundle.js +1 -1
- package/concorde-hugging-face-infer.es.js +1 -1
- package/concorde-interactive.bundle.js +1162 -0
- package/concorde-interactive.es.js +10723 -0
- package/concorde-shader.bundle.js +1 -1
- package/concorde-shader.es.js +2 -2
- package/concorde-webgpu.bundle.js +1 -1
- package/concorde-webgpu.es.js +2 -2
- package/dist/concorde-3d.bundle.js +1 -1
- package/dist/concorde-3d.es.js +2 -2
- package/dist/concorde-core.bundle.js +557 -622
- package/dist/concorde-core.es.js +6025 -5575
- package/dist/concorde-hugging-face-infer.bundle.js +1 -1
- package/dist/concorde-hugging-face-infer.es.js +1 -1
- package/dist/concorde-interactive.bundle.js +1162 -0
- package/dist/concorde-interactive.es.js +10723 -0
- package/dist/concorde-shader.bundle.js +1 -1
- package/dist/concorde-shader.es.js +2 -2
- package/dist/concorde-webgpu.bundle.js +1 -1
- package/dist/concorde-webgpu.es.js +2 -2
- package/dist/docs-mock-api-sw.js +5 -1
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/dist/js/addons/interactive.js +6 -0
- package/dist/js/addons/interactive.js.map +1 -0
- package/dist/js/core/components/functional/if/if.js +65 -7
- package/dist/js/core/components/functional/if/if.js.map +1 -1
- package/dist/js/core/components/functional/interactive/action.js +96 -0
- package/dist/js/core/components/functional/interactive/action.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gamepad.js +206 -0
- package/dist/js/core/components/functional/interactive/gamepad.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gesture.js +148 -0
- package/dist/js/core/components/functional/interactive/gesture.js.map +1 -0
- package/dist/js/core/components/functional/interactive/helpers.js +82 -0
- package/dist/js/core/components/functional/interactive/helpers.js.map +1 -0
- package/dist/js/core/components/functional/interactive/index.js +20 -0
- package/dist/js/core/components/functional/interactive/index.js.map +1 -0
- package/dist/js/core/components/functional/interactive/keyboard.js +183 -0
- package/dist/js/core/components/functional/interactive/keyboard.js.map +1 -0
- package/dist/js/core/components/functional/interactive/matrix.js +201 -0
- package/dist/js/core/components/functional/interactive/matrix.js.map +1 -0
- package/dist/js/core/components/functional/interactive/registry.js +28 -0
- package/dist/js/core/components/functional/interactive/registry.js.map +1 -0
- package/dist/js/core/components/functional/interactive/store.js +264 -0
- package/dist/js/core/components/functional/interactive/store.js.map +1 -0
- package/dist/js/core/components/functional/interactive/ticker.js +182 -0
- package/dist/js/core/components/functional/interactive/ticker.js.map +1 -0
- package/dist/js/core/components/functional/value/value.js +49 -4
- package/dist/js/core/components/functional/value/value.js.map +1 -1
- package/dist/js/core/components/ui/_css/rounded.js +34 -0
- package/dist/js/core/components/ui/_css/rounded.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +44 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -1
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js +95 -0
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +72 -87
- package/dist/js/core/components/ui/alert/alert.js.map +1 -1
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -1
- package/dist/js/core/components/ui/badge/badge.js +29 -80
- package/dist/js/core/components/ui/badge/badge.js.map +1 -1
- package/dist/js/core/components/ui/button/button.js +8 -7
- package/dist/js/core/components/ui/button/button.js.map +1 -1
- package/dist/js/core/components/ui/card/card-header.js +7 -2
- package/dist/js/core/components/ui/card/card-header.js.map +1 -1
- package/dist/js/core/components/ui/divider/divider.js +1 -1
- package/dist/js/core/components/ui/divider/divider.js.map +1 -1
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +4 -20
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend.js +1 -1
- package/dist/js/core/components/ui/form/input/input.js +12 -15
- package/dist/js/core/components/ui/form/input/input.js.map +1 -1
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +363 -158
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -1
- package/dist/js/core/components/ui/form/radio/radio.js +1 -1
- package/dist/js/core/components/ui/form/select/select.js +3 -6
- package/dist/js/core/components/ui/form/select/select.js.map +1 -1
- package/dist/js/core/components/ui/form/textarea/textarea.js +1 -2
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -1
- package/dist/js/core/components/ui/image/image.js +9 -37
- package/dist/js/core/components/ui/image/image.js.map +1 -1
- package/dist/js/core/components/ui/link/link.js +25 -26
- package/dist/js/core/components/ui/link/link.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal-close.js +3 -12
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal.js +18 -18
- package/dist/js/core/components/ui/modal/modal.js.map +1 -1
- package/dist/js/core/components/ui/pop/pop.js +131 -112
- package/dist/js/core/components/ui/pop/pop.js.map +1 -1
- package/dist/js/core/components/ui/table/table.js.map +1 -1
- package/dist/js/core/components/ui/theme/theme.js +1 -1
- package/dist/js/core/components/ui/toast/dismissed.js +9 -0
- package/dist/js/core/components/ui/toast/dismissed.js.map +1 -0
- package/dist/js/core/components/ui/toast/render-content.js +14 -0
- package/dist/js/core/components/ui/toast/render-content.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +150 -96
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -1
- package/dist/js/core/components/ui/toast/toast.js +41 -13
- package/dist/js/core/components/ui/toast/toast.js.map +1 -1
- package/dist/js/core/components/ui/tooltip/tooltip.js +144 -143
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -1
- package/dist/js/core/decorators/subscriber/derive.js +3 -1
- package/dist/js/core/decorators/subscriber/derive.js.map +1 -1
- package/dist/js/core/mixins/Fetcher.js.map +1 -1
- package/dist/js/core/mixins/FormCheckable.js +1 -8
- package/dist/js/core/mixins/FormCheckable.js.map +1 -1
- package/dist/js/core/mixins/FormElement.js +26 -53
- package/dist/js/core/mixins/FormElement.js.map +1 -1
- package/dist/js/core/utils/AncestorAttributeObserver.js +130 -55
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -1
- package/dist/js/core/utils/LocationHandler.js +1 -1
- package/dist/js/core/utils/LocationHandler.js.map +1 -1
- package/dist/js/core/utils/dismissed.js +23 -0
- package/dist/js/core/utils/dismissed.js.map +1 -0
- package/dist/js/core/utils/positioning.js +110 -0
- package/dist/js/core/utils/positioning.js.map +1 -0
- package/dist/js/directives.js +1 -2
- package/dist/js/directives.js.map +1 -1
- package/dist/types/addons/interactive.d.ts +6 -0
- package/dist/types/addons/interactive.d.ts.map +1 -0
- package/dist/types/core/components/functional/if/if.d.ts +14 -5
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -1
- package/dist/types/core/components/functional/interactive/action.d.ts +22 -0
- package/dist/types/core/components/functional/interactive/action.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts +26 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/index.d.ts +20 -0
- package/dist/types/core/components/functional/interactive/index.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts +31 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/store.d.ts +46 -0
- package/dist/types/core/components/functional/interactive/store.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts +33 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts.map +1 -0
- package/dist/types/core/components/functional/value/value.d.ts +6 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -1
- package/dist/types/core/components/ui/_css/rounded.d.ts +3 -0
- package/dist/types/core/components/ui/_css/rounded.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +13 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -1
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts +83 -0
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +14 -12
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/types/core/components/ui/button/button.d.ts +13 -29
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -1
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -1
- package/dist/types/core/components/ui/divider/divider.d.ts +2 -1
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +25 -73
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input/input.d.ts +14 -29
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +63 -65
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/radio/radio.d.ts +1 -1
- package/dist/types/core/components/ui/form/select/select.d.ts +3 -5
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +12 -28
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -1
- package/dist/types/core/components/ui/image/image.d.ts +2 -1
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -1
- package/dist/types/core/components/ui/link/link.d.ts +10 -9
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -1
- package/dist/types/core/components/ui/modal/modal-close.d.ts +2 -2
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -1
- package/dist/types/core/components/ui/pop/pop.d.ts +12 -4
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -1
- package/dist/types/core/components/ui/table/table.d.ts +2 -1
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/dismissed.d.ts +3 -0
- package/dist/types/core/components/ui/toast/dismissed.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts +7 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +26 -9
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/toast.d.ts +6 -3
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/types.d.ts +12 -2
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -1
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +19 -11
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +3 -4
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -1
- package/dist/types/core/mixins/FormCheckable.d.ts +10 -27
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -1
- package/dist/types/core/mixins/FormElement.d.ts +21 -10
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -1
- package/dist/types/core/mixins/FormInput.d.ts +11 -27
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -1
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +17 -9
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -1
- package/dist/types/core/utils/LocationHandler.d.ts +3 -2
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -1
- package/dist/types/core/utils/dismissed.d.ts +3 -0
- package/dist/types/core/utils/dismissed.d.ts.map +1 -0
- package/dist/types/core/utils/positioning.d.ts +44 -0
- package/dist/types/core/utils/positioning.d.ts.map +1 -0
- package/dist/types/directives.d.ts +1 -3
- package/dist/types/directives.d.ts.map +1 -1
- package/dist/types/mixins.d.ts +22 -55
- package/dist/types/mixins.d.ts.map +1 -1
- package/docs/assets/{index-FmK4JaIM.js → index-D8MVWqY6.js} +946 -687
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +17 -85
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +1 -1
- package/docs/crawl/hubs/form-components.html +13 -11
- package/docs/docs-mock-api-sw.js +5 -1
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +2 -2
- package/docs/llms-full.txt +12 -38
- package/docs/llms.txt +1 -1
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/docs/src/docs/_getting-started/create-a-component.md +0 -0
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +1 -1
- package/docs/src/docs/search/docs-search.json +195 -200
- package/docs/src/tsconfig.json +324 -0
- package/gitlab/job_tests.sh +25 -12
- package/index.html +3 -3
- package/package.json +181 -9
- package/public/docs-mock-api-sw.js +5 -1
- package/public/docs-mock-api-sw.js.map +2 -2
- package/scripts/build-addons.mjs +2 -2
- package/scripts/post-build.mjs +9 -0
- package/src/addons/interactive.ts +5 -0
- package/src/core/components/functional/if/if.ts +54 -7
- package/src/core/components/functional/interactive/action.ts +84 -0
- package/src/core/components/functional/interactive/gamepad.ts +197 -0
- package/src/core/components/functional/interactive/gesture.ts +136 -0
- package/src/core/components/functional/interactive/helpers.spec.ts +50 -0
- package/src/core/components/functional/interactive/helpers.ts +97 -0
- package/src/core/components/functional/interactive/index.ts +25 -0
- package/src/core/components/functional/interactive/interactive.md +33 -0
- package/src/core/components/functional/interactive/keyboard.ts +171 -0
- package/src/core/components/functional/interactive/matrix.ts +185 -0
- package/src/core/components/functional/interactive/registry.ts +46 -0
- package/src/core/components/functional/interactive/store.ts +264 -0
- package/src/core/components/functional/interactive/ticker.ts +171 -0
- package/src/core/components/functional/list/list.ts +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +44 -4
- package/src/core/components/ui/_css/rounded.ts +36 -0
- package/src/core/components/ui/_css/type.ts +49 -0
- package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
- package/src/core/components/ui/alert/alert.md +128 -72
- package/src/core/components/ui/alert/alert.spec.ts +145 -0
- package/src/core/components/ui/alert/alert.ts +86 -91
- package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
- package/src/core/components/ui/badge/badge.md +126 -78
- package/src/core/components/ui/badge/badge.ts +29 -81
- package/src/core/components/ui/button/button.md +1 -0
- package/src/core/components/ui/button/button.ts +12 -10
- package/src/core/components/ui/card/card-header.ts +7 -2
- package/src/core/components/ui/card/card.md +120 -65
- package/src/core/components/ui/divider/divider.ts +4 -9
- package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
- package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
- package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
- package/src/core/components/ui/form/fieldset/legend.ts +1 -1
- package/src/core/components/ui/form/input/input.md +1 -1
- package/src/core/components/ui/form/input/input.ts +25 -27
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
- package/src/core/components/ui/form/radio/radio.ts +1 -1
- package/src/core/components/ui/form/select/select.ts +3 -6
- package/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/src/core/components/ui/form/textarea/textarea.ts +1 -2
- package/src/core/components/ui/image/image.md +147 -53
- package/src/core/components/ui/image/image.ts +10 -44
- package/src/core/components/ui/link/link.md +2 -2
- package/src/core/components/ui/link/link.ts +42 -37
- package/src/core/components/ui/modal/modal-close.ts +8 -12
- package/src/core/components/ui/modal/modal.ts +18 -18
- package/src/core/components/ui/pop/pop.md +105 -1
- package/src/core/components/ui/pop/pop.ts +145 -141
- package/src/core/components/ui/table/table.ts +2 -8
- package/src/core/components/ui/theme/theme.ts +1 -1
- package/src/core/components/ui/toast/dismissed.ts +14 -0
- package/src/core/components/ui/toast/render-content.ts +13 -0
- package/src/core/components/ui/toast/toast-item.ts +179 -103
- package/src/core/components/ui/toast/toast.ts +58 -21
- package/src/core/components/ui/toast/types.ts +14 -2
- package/src/core/components/ui/tooltip/tooltip.ts +176 -154
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
- package/src/core/decorators/subscriber/derive.ts +3 -3
- package/src/core/mixins/Fetcher.ts +1 -1
- package/src/core/mixins/FormCheckable.ts +1 -8
- package/src/core/mixins/FormElement.ts +74 -76
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/AncestorAttributeObserver.ts +183 -70
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/LocationHandler.ts +12 -5
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/dismissed.ts +22 -0
- package/src/core/utils/positioning.spec.ts +208 -0
- package/src/core/utils/positioning.ts +183 -0
- package/src/directives.ts +1 -3
- package/src/docs/_core-concept/dataFlow.md +1 -1
- package/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/src/docs/_getting-started/concorde-outside.md +3 -3
- package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
- package/src/docs/_misc/html-integration.md +2 -0
- package/src/docs/code.ts +3 -1
- package/src/docs/components/docs-demo-sources.ts +60 -0
- package/src/docs/docs.ts +1 -0
- package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
- package/src/docs/mock-api/router.ts +17 -1
- package/src/docs/navigation/navigation.ts +4 -0
- package/src/docs/search/docs-search.json +943 -2033
- package/src/docs/tailwind/css/tailwind.css +13 -6
- package/src/tsconfig.json +135 -6
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +50 -3
- package/vite/config.js +23 -35
- package/vite.config.mts +5 -0
- package/vitest.setup.ts +49 -13
- package/docs/assets/index-BZiZXMU-.css +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
2
|
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
3
3
|
import "@supersoniks/concorde/core/components/ui/toast/toast-item";
|
|
4
|
-
import { Toast, ToastStatus } from "@supersoniks/concorde/core/components/ui/toast/types";
|
|
4
|
+
import { Toast, ToastContent, ToastStatus } from "@supersoniks/concorde/core/components/ui/toast/types";
|
|
5
5
|
export declare class SonicToast extends LitElement {
|
|
6
6
|
toasts: Toast[];
|
|
7
7
|
static delegateToasts: boolean;
|
|
@@ -9,17 +9,20 @@ export declare class SonicToast extends LitElement {
|
|
|
9
9
|
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
10
10
|
static removeAll(): void;
|
|
11
11
|
static removeItemsByStatus(status: ToastStatus): void;
|
|
12
|
+
static removeItemById(id: string | number): void;
|
|
12
13
|
static removeTemporaryItems(): void;
|
|
13
14
|
static instance?: SonicToast;
|
|
14
15
|
static getInstance(): SonicToast;
|
|
15
16
|
static add(conf: Toast): {
|
|
16
17
|
id: string | number;
|
|
17
|
-
text:
|
|
18
|
-
|
|
18
|
+
text: ToastContent;
|
|
19
|
+
label: ToastContent | undefined;
|
|
19
20
|
status: ToastStatus;
|
|
20
21
|
preserve: boolean | undefined;
|
|
21
22
|
ghost: boolean | undefined;
|
|
22
23
|
dismissForever: boolean | undefined;
|
|
24
|
+
styleSheet: import("../modal/modal-utils").ModalStyleSheetInput | undefined;
|
|
25
|
+
useSlot: boolean | undefined;
|
|
23
26
|
} | null | undefined;
|
|
24
27
|
static handleExistingToastDelegation(): void;
|
|
25
28
|
static removeItem(toastToRemove?: Toast): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAKhD,OAAO,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAKhD,OAAO,oDAAoD,CAAC;AAG5D,OAAO,2DAA2D,CAAC;AAGnE,OAAO,EACL,KAAK,EACL,YAAY,EACZ,WAAW,EACZ,MAAM,sDAAsD,CAAC;AA2B9D,qBACa,UAAW,SAAQ,UAAU;IACb,MAAM,EAAE,KAAK,EAAE,CAAM;IAChD,MAAM,CAAC,cAAc,UAAS;IAE9B,gBAAgB;IAIhB,MAAM;IAyEN,MAAM,CAAC,SAAS;IAYhB,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,WAAW;IAe9C,MAAM,CAAC,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM;IAezC,MAAM,CAAC,oBAAoB;IAe3B,MAAM,CAAC,QAAQ,CAAC,EAAE,UAAU,CAAC;IAC7B,MAAM,CAAC,WAAW;IAMlB,MAAM,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK;;;;;;;;;;;IAoDtB,MAAM,CAAC,6BAA6B;IAUpC,MAAM,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK;IAcvC,UAAU,CAAC,aAAa,CAAC,EAAE,KAAK;CAQjC"}
|
|
@@ -1,12 +1,22 @@
|
|
|
1
1
|
import { Message } from "@supersoniks/concorde/core/_types/types";
|
|
2
|
+
import { TemplateResult } from "lit";
|
|
3
|
+
import { DirectiveResult } from "lit/directive.js";
|
|
4
|
+
import { ModalStyleSheetInput } from "@supersoniks/concorde/core/components/ui/modal/modal-utils";
|
|
2
5
|
export type ToastStatus = Message["status"] | "" | "success";
|
|
6
|
+
export type ToastContent = string | TemplateResult | DirectiveResult;
|
|
7
|
+
export type ToastStyleSheetInput = ModalStyleSheetInput;
|
|
3
8
|
export type Toast = {
|
|
4
9
|
id?: string | number;
|
|
5
|
-
text:
|
|
6
|
-
|
|
10
|
+
text: ToastContent;
|
|
11
|
+
label?: ToastContent;
|
|
12
|
+
/** @deprecated Utiliser `label`. */
|
|
13
|
+
title?: ToastContent;
|
|
7
14
|
status?: ToastStatus;
|
|
8
15
|
preserve?: boolean;
|
|
9
16
|
ghost?: boolean;
|
|
10
17
|
dismissForever?: boolean;
|
|
18
|
+
styleSheet?: ToastStyleSheetInput;
|
|
19
|
+
/** Legacy: project text into the light DOM slot instead of the shadow root. */
|
|
20
|
+
useSlot?: boolean;
|
|
11
21
|
};
|
|
12
22
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,yCAAyC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,KAAK,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,oBAAoB,EAAE,MAAM,4DAA4D,CAAC;AAElG,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;AAE7D,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,cAAc,GAAG,eAAe,CAAC;AAErE,MAAM,MAAM,oBAAoB,GAAG,oBAAoB,CAAC;AAGxD,MAAM,MAAM,KAAK,GAAG;IAClB,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACrB,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,oCAAoC;IACpC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,+EAA+E;IAC/E,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC"}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import { LitElement, PropertyValues } from "lit";
|
|
2
|
+
import { FloatingPlacement } from "@supersoniks/concorde/core/utils/positioning";
|
|
3
|
+
type TooltipPlacement = FloatingPlacement;
|
|
2
4
|
export declare class Tooltip extends LitElement {
|
|
5
|
+
static readonly supportsPopover: boolean;
|
|
3
6
|
static styles: import("lit").CSSResult[];
|
|
4
|
-
label
|
|
5
|
-
placement?:
|
|
7
|
+
label?: string;
|
|
8
|
+
placement?: TooltipPlacement;
|
|
6
9
|
disabled: boolean;
|
|
7
10
|
focusable: boolean;
|
|
8
|
-
private
|
|
9
|
-
private
|
|
10
|
-
private
|
|
11
|
-
|
|
12
|
-
private
|
|
13
|
-
private
|
|
14
|
-
private
|
|
15
|
-
private
|
|
11
|
+
private bubbleEl?;
|
|
12
|
+
private stopPositioning?;
|
|
13
|
+
private get isEffectivelyDisabled();
|
|
14
|
+
private formatLabel;
|
|
15
|
+
private computePosition;
|
|
16
|
+
private showTooltip;
|
|
17
|
+
private hideTooltip;
|
|
18
|
+
private handleBeforeToggle;
|
|
19
|
+
private endPositioning;
|
|
20
|
+
private syncTabIndex;
|
|
21
|
+
/** Fallback natif quand Popover API indisponible */
|
|
22
|
+
private syncNativeTitle;
|
|
16
23
|
connectedCallback(): void;
|
|
17
24
|
disconnectedCallback(): void;
|
|
18
|
-
protected willUpdate(
|
|
25
|
+
protected willUpdate(changedProperties: PropertyValues): void;
|
|
19
26
|
render(): import("lit-html").TemplateResult<1>;
|
|
20
27
|
}
|
|
28
|
+
export {};
|
|
21
29
|
//# sourceMappingURL=tooltip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/tooltip/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAO,cAAc,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/tooltip/tooltip.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,UAAU,EAAO,cAAc,EAAE,MAAM,KAAK,CAAC;AAE5D,OAAO,EAEL,iBAAiB,EAKlB,MAAM,8CAA8C,CAAC;AAItD,KAAK,gBAAgB,GAAG,iBAAiB,CAAC;AAI1C,qBACa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,QAAQ,CAAC,eAAe,UAAmB;IAElD,MAAM,CAAC,MAAM,4BAoDX;IAE0B,KAAK,CAAC,EAAE,MAAM,CAAC;IACA,SAAS,CAAC,EAAE,gBAAgB,CAAC;IAE3C,QAAQ,UAAS;IACjB,SAAS,UAAS;IAErB,OAAO,CAAC,QAAQ,CAAC,CAAc;IAEzD,OAAO,CAAC,eAAe,CAAC,CAAa;IAErC,OAAO,KAAK,qBAAqB,GAEhC;IAED,OAAO,CAAC,WAAW;IASnB,OAAO,CAAC,eAAe;IAuBvB,OAAO,CAAC,WAAW,CAQjB;IAEF,OAAO,CAAC,WAAW,CAIjB;IAEF,OAAO,CAAC,kBAAkB,CAOxB;IAEF,OAAO,CAAC,cAAc;IAKtB,OAAO,CAAC,YAAY;IAUpB,oDAAoD;IACpD,OAAO,CAAC,eAAe;IASvB,iBAAiB;IAWjB,oBAAoB;IAWpB,SAAS,CAAC,UAAU,CAAC,iBAAiB,EAAE,cAAc,GAAG,IAAI;IA4B7D,MAAM;CAqBP"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
export type AncestorAttributeOptions = {
|
|
2
2
|
/**
|
|
3
|
-
* Si true,
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* Défaut : false (lecture unique au connect, rétrocompat).
|
|
3
|
+
* Si true, reste synchronisé quand un attribut ancêtre change **et** au
|
|
4
|
+
* reparenting (sans flag séparé). MO attributs partagés ; childList seulement
|
|
5
|
+
* sur le parent direct (ignoré pour les siblings). Défaut : false.
|
|
7
6
|
*/
|
|
8
7
|
dynamic?: boolean;
|
|
9
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ancestorAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/ancestorAttribute.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACrC
|
|
1
|
+
{"version":3,"file":"ancestorAttribute.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/ancestorAttribute.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,wBAAwB,GAAG;IACrC;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAC;AAEF,wBAAgB,iBAAiB,CAC/B,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,wBAAwB,IAKjB,QAAQ,OAAO,EAAE,aAAa,MAAM,UA4BtD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/derive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"derive.d.ts","sourceRoot":"","sources":["../../../../../src/core/decorators/subscriber/derive.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,mBAAmB,EACpB,MAAM,6BAA6B,CAAC;AAOrC,MAAM,MAAM,sBAAsB,CAChC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EACD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,IACzB;IACF,IAAI,EAAE;SAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAAE,CAAC;IAChD,EAAE,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;IACvB,kDAAkD;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC;CAChC,CAAC;AAIF;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,eAAe,CAC7B,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACjC,CAAC,EACD,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC3B,OAAO,EAAE,sBAAsB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,IACvB,CAAC,SAAS,mBAAmB,CAAC,MAAM,CAAC,EACpD,MAAM,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,KAC9B,IAAI,CA4CR;AAED,0EAA0E;AAC1E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,CAAC"}
|
|
@@ -45,50 +45,33 @@ declare const Form: <T extends Constructor<FormElementInterface>>(superClass: T)
|
|
|
45
45
|
unset(): void;
|
|
46
46
|
disconnectedCallback(): void;
|
|
47
47
|
connectedCallback(): void;
|
|
48
|
-
getFormPublisher(): import("../_types/types").PublisherInterface;
|
|
48
|
+
getFormPublisher(): import("../_types/types").PublisherInterface | null;
|
|
49
49
|
updateDataValue(): void;
|
|
50
50
|
handleBlur(e?: Event): void;
|
|
51
|
-
setValueFromPublisher(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
|
|
52
51
|
setFormPublisherValue(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
|
|
53
52
|
getFormPublisherValue(): import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
|
|
54
53
|
unsetOnDisconnect(): boolean;
|
|
55
54
|
focus?: () => void;
|
|
56
|
-
shadowRoot
|
|
55
|
+
shadowRoot: ShadowRoot | null;
|
|
57
56
|
error: boolean;
|
|
58
57
|
autofocus: boolean;
|
|
59
58
|
required: boolean;
|
|
60
59
|
disabled: boolean;
|
|
61
60
|
formDataProvider: string;
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
ariaLabel: string | null;
|
|
62
|
+
ariaLabelledby: string | null;
|
|
64
63
|
_name: string;
|
|
65
64
|
name: string;
|
|
66
|
-
props: import("../_types/types").CoreJSType;
|
|
67
|
-
propertyMap: object;
|
|
68
|
-
isConnected: boolean;
|
|
69
|
-
children: HTMLCollection;
|
|
70
|
-
appendChild(node: Node): Node;
|
|
71
65
|
getAncestorAttributeValue(attributeName: string): string;
|
|
72
66
|
hasAncestorAttribute(attributeName: string): boolean;
|
|
73
|
-
|
|
74
|
-
publisher: import("../_types/types").TypeAndRecordOfType<import("../_types/types").PublisherInterface<PropsType>>;
|
|
75
|
-
dataProvider: string | null;
|
|
76
|
-
noShadowDom: string | null;
|
|
77
|
-
debug: HTMLElement | null;
|
|
78
|
-
defferedDebug: boolean | null;
|
|
79
|
-
displayContents: boolean;
|
|
80
|
-
shouldRenderLazy: boolean;
|
|
81
|
-
dispatchEvent(event: Event): void;
|
|
82
|
-
setAttribute(name: string, value: string): void;
|
|
83
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
84
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
85
|
-
removeAttribute(name: string): void;
|
|
86
|
-
initPublisher(): void;
|
|
87
|
-
getApiConfiguration(): import("../utils/api").APIConfiguration;
|
|
67
|
+
isConnected: boolean;
|
|
88
68
|
requestUpdate(): void;
|
|
89
|
-
getAttribute(name: string): string;
|
|
69
|
+
getAttribute(name: string): string | null;
|
|
90
70
|
hasAttribute(attributeName: string): boolean;
|
|
91
|
-
|
|
71
|
+
setAttribute(name: string, value: string): void;
|
|
72
|
+
removeAttribute(name: string): void;
|
|
73
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
74
|
+
dispatchEvent(event: Event): void;
|
|
92
75
|
};
|
|
93
76
|
} & T;
|
|
94
77
|
export default Form;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormCheckable.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormCheckable.ts"],"names":[],"mappings":"AACA,O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I,GAAG,eAAe;uBACZ,IAAI,GAAG,IAAI,GAAG,eAAe;6BAG5B,IAAI,GAAG,IAAI,GAAG,eAAe;;;iCA0ChC,IAAI,GAAG,IAAI,GAAG,eAAe;;QAiBtD;;;WAGG;;QAwBH;;;;WAIG;yCAC8B,MAAM,GAAG,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,IAAI;;;6BAmE/C,OAAO,MAAM;;gCAkBX,IAAI;6BAiBP,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAqC5B,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -1,37 +1,48 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { PublisherInterface } from "../_types/types";
|
|
3
|
-
import { MixinArgsType } from "../_types/types";
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { PublisherInterface, MixinArgsType } from "../_types/types";
|
|
4
3
|
type Constructor<T> = new (...args: MixinArgsType[]) => T;
|
|
5
4
|
export type FormElementValue = string | string[] | object | null | undefined;
|
|
6
|
-
export interface FormElementInterface
|
|
7
|
-
getFormPublisher(): PublisherInterface;
|
|
5
|
+
export interface FormElementInterface {
|
|
6
|
+
getFormPublisher(): PublisherInterface | null;
|
|
8
7
|
updateDataValue(): void;
|
|
9
8
|
handleChange(e?: Event): void;
|
|
10
9
|
handleBlur(e?: Event): void;
|
|
11
10
|
getValueForFormPublisher(): FormElementValue;
|
|
12
|
-
setValueFromPublisher(value: FormElementValue): void;
|
|
13
11
|
setFormPublisherValue(value: FormElementValue): void;
|
|
14
12
|
getFormPublisherValue(): FormElementValue;
|
|
13
|
+
setFormValueFromPublisher(value: FormElementValue): void;
|
|
15
14
|
unsetOnDisconnect(): boolean;
|
|
16
15
|
unset(): void;
|
|
17
16
|
validateFormElement(): void;
|
|
18
17
|
focus?: () => void;
|
|
19
18
|
forceAutoFill: boolean;
|
|
20
|
-
shadowRoot
|
|
19
|
+
shadowRoot: ShadowRoot | null;
|
|
21
20
|
error: boolean;
|
|
22
21
|
autofocus: boolean;
|
|
23
22
|
required: boolean;
|
|
24
23
|
disabled: boolean;
|
|
25
24
|
formDataProvider: string;
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
ariaLabel: string | null;
|
|
26
|
+
ariaLabelledby: string | null;
|
|
28
27
|
_value: FormElementValue;
|
|
29
28
|
get value(): FormElementValue;
|
|
30
29
|
set value(value: FormElementValue);
|
|
31
30
|
_name: string;
|
|
32
31
|
get name(): string;
|
|
33
32
|
set name(value: string);
|
|
33
|
+
getAncestorAttributeValue(attributeName: string): string;
|
|
34
|
+
hasAncestorAttribute(attributeName: string): boolean;
|
|
35
|
+
isConnected: boolean;
|
|
36
|
+
requestUpdate(): void;
|
|
37
|
+
getAttribute(name: string): string | null;
|
|
38
|
+
hasAttribute(attributeName: string): boolean;
|
|
39
|
+
setAttribute(name: string, value: string): void;
|
|
40
|
+
removeAttribute(name: string): void;
|
|
41
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
42
|
+
dispatchEvent(event: Event): void;
|
|
43
|
+
connectedCallback(): void;
|
|
44
|
+
disconnectedCallback(): void;
|
|
34
45
|
}
|
|
35
|
-
declare const Form: <T extends Constructor<
|
|
46
|
+
declare const Form: <T extends Constructor<LitElement>>(superClass: T) => Constructor<FormElementInterface> & T;
|
|
36
47
|
export default Form;
|
|
37
48
|
//# sourceMappingURL=FormElement.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormElement.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormElement.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormElement.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormElement.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AACjC,OAAO,EACL,kBAAkB,EAGlB,aAAa,EACd,MAAM,iBAAiB,CAAC;AAEzB,KAAK,WAAW,CAA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IAAI,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE;IACxB,yBAAyB,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAAC;IACzD,oBAAoB,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IACrD,WAAW,EAAE,OAAO,CAAC;IACrB,aAAa,IAAI,IAAI,CAAC;IACtB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAC;IAC1C,YAAY,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC;IAC7C,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,gBAAgB,CACd,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,kCAAkC,EAC5C,OAAO,CAAC,EAAE,OAAO,GAAG,uBAAuB,GAC1C,IAAI,CAAC;IACR,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,IAAI,CAAC;IAClC,iBAAiB,IAAI,IAAI,CAAC;IAC1B,oBAAoB,IAAI,IAAI,CAAC;CAC9B;AAID,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,UAAU,CAAC,EAAE,YAAY,CAAC,KAyRtC,WAAW,CAAC,oBAAoB,CAAC,GAAG,CAC3D,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -22,57 +22,41 @@ declare const Form: <T extends Constructor<FormElementInterface>>(superClass: T)
|
|
|
22
22
|
status: "default" | "success" | "error" | "warning" | "info";
|
|
23
23
|
tabindex?: number;
|
|
24
24
|
autocomplete?: "off" | "on" | "name" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "email" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "language" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "url" | "photo";
|
|
25
|
-
getFormPublisher(): import("../_types/types").PublisherInterface;
|
|
25
|
+
getFormPublisher(): import("../_types/types").PublisherInterface | null;
|
|
26
26
|
updateDataValue(): void;
|
|
27
27
|
handleChange(e?: Event): void;
|
|
28
28
|
handleBlur(e?: Event): void;
|
|
29
29
|
getValueForFormPublisher(): import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
|
|
30
|
-
setValueFromPublisher(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
|
|
31
30
|
setFormPublisherValue(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
|
|
32
31
|
getFormPublisherValue(): import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
|
|
32
|
+
setFormValueFromPublisher(value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue): void;
|
|
33
33
|
unsetOnDisconnect(): boolean;
|
|
34
34
|
unset(): void;
|
|
35
35
|
focus?: () => void;
|
|
36
|
-
shadowRoot
|
|
36
|
+
shadowRoot: ShadowRoot | null;
|
|
37
37
|
error: boolean;
|
|
38
38
|
autofocus: boolean;
|
|
39
39
|
required: boolean;
|
|
40
40
|
disabled: boolean;
|
|
41
41
|
formDataProvider: string;
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
ariaLabel: string | null;
|
|
43
|
+
ariaLabelledby: string | null;
|
|
44
44
|
_value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
|
|
45
45
|
value: import("@supersoniks/concorde/core/mixins/FormElement").FormElementValue;
|
|
46
46
|
_name: string;
|
|
47
47
|
name: string;
|
|
48
|
-
props: import("../_types/types").CoreJSType;
|
|
49
|
-
propertyMap: object;
|
|
50
|
-
isConnected: boolean;
|
|
51
|
-
children: HTMLCollection;
|
|
52
|
-
appendChild(node: Node): Node;
|
|
53
48
|
getAncestorAttributeValue(attributeName: string): string;
|
|
54
49
|
hasAncestorAttribute(attributeName: string): boolean;
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
debug: HTMLElement | null;
|
|
60
|
-
defferedDebug: boolean | null;
|
|
61
|
-
displayContents: boolean;
|
|
62
|
-
shouldRenderLazy: boolean;
|
|
63
|
-
dispatchEvent(event: Event): void;
|
|
50
|
+
isConnected: boolean;
|
|
51
|
+
requestUpdate(): void;
|
|
52
|
+
getAttribute(name: string): string | null;
|
|
53
|
+
hasAttribute(attributeName: string): boolean;
|
|
64
54
|
setAttribute(name: string, value: string): void;
|
|
65
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
66
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void;
|
|
67
55
|
removeAttribute(name: string): void;
|
|
68
|
-
|
|
69
|
-
|
|
56
|
+
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
|
|
57
|
+
dispatchEvent(event: Event): void;
|
|
70
58
|
connectedCallback(): void;
|
|
71
|
-
requestUpdate(): void;
|
|
72
|
-
getAttribute(name: string): string;
|
|
73
|
-
hasAttribute(attributeName: string): boolean;
|
|
74
59
|
disconnectedCallback(): void;
|
|
75
|
-
getBoundingClientRect(): DOMRect;
|
|
76
60
|
};
|
|
77
61
|
} & T;
|
|
78
62
|
export default Form;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO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AU,GACV,MAAM,GACN,UAAU,GACV,YAAY,GACZ,WAAW,GACX,KAAK,GACL,KAAK,GACL,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,WAAW,GACX,eAAe,GACf,MAAM,GACN,KAAK,GACL,OAAO
|
|
1
|
+
{"version":3,"file":"FormInput.d.ts","sourceRoot":"","sources":["../../../../src/core/mixins/FormInput.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAE9C,KAAK,WAAW,CAAC,CAAC,IAAI,KAAK,GAAG,IAAI,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAC1D,KAAK,IAAI,GACL,QAAQ,GACR,UAAU,GACV,OAAO,GACP,MAAM,GACN,gBAAgB,GAChB,OAAO,GACP,MAAM,GACN,QAAQ,GACR,OAAO,GACP,OAAO,GACP,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GACL,MAAM,CAAC;AACX,QAAA,MAAM,IAAI,GAAI,CAAC,SAAS,WAAW,CAAC,oBAAoB,CAAC,EAAE,YAAY,CAAC;kBAE/C,aAAa,EAAE;;;QAYpC;;;WAGG;eACI,IAAI;;;uBASI,MAAM;2BACU,MAAM,GAAG,SAAS;+BAAlB,MAAM,GAAG,SAAS;iBAQxC,MAAM;qBACU,MAAM,GAAG,SAAS;yBAAlB,MAAM,GAAG,SAAS;gBAQM,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM;mBAChE,MAAM;uBAEvC,KAAK,GACL,IAAI,GACJ,MAAM,GACN,kBAAkB,GAClB,YAAY,GACZ,iBAAiB,GACjB,aAAa,GACb,kBAAkB,GAClB,UAAU,GACV,OAAO,GACP,UAAU,GACV,cAAc,GACd,kBAAkB,GAClB,eAAe,GACf,oBAAoB,GACpB,cAAc,GACd,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,gBAAgB,GAChB,SAAS,GACT,cAAc,GACd,aAAa,GACb,SAAS,GACT,eAAe,GACf,oBAAoB,GACpB,gBAAgB,GAChB,WAAW,GACX,QAAQ,GACR,cAAc,GACd,aAAa,GACb,QAAQ,GACR,SAAS,GACT,sBAAsB,GACtB,oBAAoB,GACpB,UAAU,GACV,MAAM,GACN,UAAU,GACV,YAAY,GACZ,WAAW,GACX,KAAK,GACL,KAAK,GACL,kBAAkB,GAClB,cAAc,GACd,eAAe,GACf,WAAW,GACX,eAAe,GACf,MAAM,GACN,KAAK,GACL,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAId,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Observateur pour `@ancestorAttribute({ dynamic: true })`.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `watchScopedConfiguration` dans `api.ts`.
|
|
4
|
+
* ## Perf (FF / listes denses d'icônes)
|
|
5
|
+
* Ancien modèle : 1 MO/abonnement avec `childList` sur **toute** la chaîne +
|
|
6
|
+
* `reconnect()` à chaque mutation → O(n²) quand une list insert des siblings.
|
|
8
7
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Modèle actuel :
|
|
9
|
+
* 1. **MO attributs partagés** — 1 observer par `(ancêtre, attributeName)`.
|
|
10
|
+
* 2. **Reparent** — 1 MO `childList` partagé sur le parent direct ; on ne
|
|
11
|
+
* réagit que si *notre* nœud est dans added/removed (insert sibling → no-op).
|
|
11
12
|
*/
|
|
12
13
|
type SyncOptions = {
|
|
13
14
|
/** En mode dynamique : écrire `null` si l'attribut ancêtre disparaît. */
|
|
@@ -16,19 +17,26 @@ type SyncOptions = {
|
|
|
16
17
|
/**
|
|
17
18
|
* Point unique de synchronisation DOM → propriété du composant.
|
|
18
19
|
* N'assigne que si la valeur change (`Object.is`) pour limiter les re-renders Lit
|
|
19
|
-
* et éviter de reboucler inutilement `observeDynamicProperty` (@bind /
|
|
20
|
+
* et éviter de reboucler inutilement `observeDynamicProperty` (@bind / `@subscribe`).
|
|
20
21
|
*/
|
|
21
22
|
export declare function syncAncestorAttributeValue(component: object, attributeName: string, propertyKey: string, options: SyncOptions): void;
|
|
22
23
|
export default class AncestorAttributeObserver {
|
|
23
24
|
private static subscriptions;
|
|
24
25
|
private static pendingRefresh;
|
|
25
26
|
private static animationFrameId;
|
|
27
|
+
private static attrSlots;
|
|
28
|
+
private static parentSlots;
|
|
26
29
|
/**
|
|
27
|
-
* Enregistre un composant en mode `{ dynamic: true }
|
|
30
|
+
* Enregistre un composant en mode `{ dynamic: true }` (attributs + reparent).
|
|
28
31
|
* Le `unsubscribe` retourné doit être appelé au `disconnectedCallback`.
|
|
29
32
|
*/
|
|
30
33
|
static subscribe(component: HTMLElement, attributeName: string, propertyKey: string, syncOptions?: SyncOptions): () => void;
|
|
31
|
-
|
|
34
|
+
private static bindSubscription;
|
|
35
|
+
private static unbindWatchers;
|
|
36
|
+
private static addAttrSlot;
|
|
37
|
+
private static removeAttrSlot;
|
|
38
|
+
private static addParentSlot;
|
|
39
|
+
private static removeParentSlot;
|
|
32
40
|
private static unsubscribe;
|
|
33
41
|
private static scheduleRefresh;
|
|
34
42
|
private static cancelScheduledRefresh;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AncestorAttributeObserver.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/AncestorAttributeObserver.ts"],"names":[],"mappings":"AAEA
|
|
1
|
+
{"version":3,"file":"AncestorAttributeObserver.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/AncestorAttributeObserver.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AAEH,KAAK,WAAW,GAAG;IACjB,yEAAyE;IACzE,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AA2CF;;;;GAIG;AACH,wBAAgB,0BAA0B,CACxC,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,WAAW,GACnB,IAAI,CAUN;AAED,MAAM,CAAC,OAAO,OAAO,yBAAyB;IAC5C,OAAO,CAAC,MAAM,CAAC,aAAa,CAA2B;IACvD,OAAO,CAAC,MAAM,CAAC,cAAc,CAA2B;IACxD,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAAuB;IAEtD,OAAO,CAAC,MAAM,CAAC,SAAS,CAAiD;IACzE,OAAO,CAAC,MAAM,CAAC,WAAW,CAAsC;IAEhE;;;OAGG;IACH,MAAM,CAAC,SAAS,CACd,SAAS,EAAE,WAAW,EACtB,aAAa,EAAE,MAAM,EACrB,WAAW,EAAE,MAAM,EACnB,WAAW,GAAE,WAAkC,GAC9C,MAAM,IAAI;IAkBb,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAwB/B,OAAO,CAAC,MAAM,CAAC,cAAc;IAmB7B,OAAO,CAAC,MAAM,CAAC,WAAW;IAiC1B,OAAO,CAAC,MAAM,CAAC,cAAc;IAiB7B,OAAO,CAAC,MAAM,CAAC,aAAa;IAuC5B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAkB/B,OAAO,CAAC,MAAM,CAAC,WAAW;IAY1B,OAAO,CAAC,MAAM,CAAC,eAAe;IAQ9B,OAAO,CAAC,MAAM,CAAC,sBAAsB;IAQrC,OAAO,CAAC,MAAM,CAAC,YAAY;CAe5B"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { Route } from "./route";
|
|
2
|
+
export type AutoActiveMode = "strict" | "partial" | "disabled" | "strict-path-only";
|
|
2
3
|
declare type Listener = {
|
|
3
4
|
location: string;
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
+
export type ActivableLink = HTMLElement & {
|
|
6
7
|
location?: string;
|
|
7
8
|
href?: Route | string;
|
|
8
9
|
goBack?: Route | string | null;
|
|
9
|
-
autoActive?:
|
|
10
|
+
autoActive?: AutoActiveMode;
|
|
10
11
|
setAttribute(name: string, value: string): void;
|
|
11
12
|
removeAttribute(name: string): void;
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationHandler.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/LocationHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,OAAO,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;
|
|
1
|
+
{"version":3,"file":"LocationHandler.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/LocationHandler.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,MAAM,cAAc,GACtB,QAAQ,GACR,SAAS,GACT,UAAU,GACV,kBAAkB,CAAC;AAEvB,OAAO,MAAM,QAAQ,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,WAAW,GAAG;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,IAAI,CAAC;IAC/B,UAAU,CAAC,EAAE,cAAc,CAAC;IAC5B,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAChD,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CACrC,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,eAAe;IAClC,MAAM,CAAC,SAAS,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAM;IACvC,MAAM,CAAC,SAAS,UAAS;IACzB,MAAM,CAAC,OAAO,EAAE,MAAM,CAGpB;IACF,MAAM,CAAC,MAAM;IAiBb;;OAEG;IACH,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE,QAAQ;IAQnC;;OAEG;IACH,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,QAAQ;IASlC;;;;;;;QAOI;IACJ,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,aAAa;IAmDnD;;;;OAIG;IACH,MAAM,CAAC,0BAA0B,CAAC,SAAS,EAAE,aAAa;CA0B3D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dismissed.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/dismissed.ts"],"names":[],"mappings":"AASA,wBAAgB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAE5E;AAED,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQ3E"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { SearchableDomElement } from "./HTML";
|
|
2
|
+
export type FloatingSide = "top" | "right" | "bottom" | "left";
|
|
3
|
+
export type FloatingAlign = "start" | "center" | "end";
|
|
4
|
+
export type FloatingPlacement = FloatingSide | `${FloatingSide}-${FloatingAlign}`;
|
|
5
|
+
/** Découpe `"côté-alignement"` ; une valeur inconnue retombe sur le défaut. */
|
|
6
|
+
export declare function parsePlacement(placement: string | undefined, defaultSide: FloatingSide, defaultAlign: FloatingAlign): {
|
|
7
|
+
side: FloatingSide;
|
|
8
|
+
align: FloatingAlign;
|
|
9
|
+
};
|
|
10
|
+
export type FloatingBounds = {
|
|
11
|
+
minX: number;
|
|
12
|
+
minY: number;
|
|
13
|
+
maxX: number;
|
|
14
|
+
maxY: number;
|
|
15
|
+
};
|
|
16
|
+
type Rect = Pick<DOMRect, "left" | "top" | "right" | "bottom" | "width" | "height">;
|
|
17
|
+
type Size = Pick<DOMRect, "width" | "height">;
|
|
18
|
+
export declare const supportsPopover: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Zone dans laquelle un élément flottant doit rester visible :
|
|
21
|
+
* le viewport, restreint par le premier ancêtre qui scrolle ou clippe `node`.
|
|
22
|
+
*/
|
|
23
|
+
export declare function getFloatingBounds(node: SearchableDomElement, padding?: number): FloatingBounds;
|
|
24
|
+
/**
|
|
25
|
+
* Position (coordonnées viewport) d'un élément flottant accolé à `anchor` :
|
|
26
|
+
* bascule sur le côté opposé s'il déborde, puis le contraint dans `bounds`.
|
|
27
|
+
* S'il est plus grand que `bounds`, c'est le bord bas / droit qui l'emporte.
|
|
28
|
+
*/
|
|
29
|
+
export declare function computeFloatingPosition({ anchor, floating, side, align, gap, bounds, }: {
|
|
30
|
+
anchor: Rect;
|
|
31
|
+
floating: Size;
|
|
32
|
+
side: FloatingSide;
|
|
33
|
+
align?: FloatingAlign;
|
|
34
|
+
gap?: number;
|
|
35
|
+
bounds: FloatingBounds;
|
|
36
|
+
}): {
|
|
37
|
+
side: FloatingSide;
|
|
38
|
+
x: number;
|
|
39
|
+
y: number;
|
|
40
|
+
};
|
|
41
|
+
/** Appelle `callback` à chaque frame ; renvoie la fonction d'arrêt. */
|
|
42
|
+
export declare function startFrameLoop(callback: () => void): () => void;
|
|
43
|
+
export {};
|
|
44
|
+
//# sourceMappingURL=positioning.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positioning.d.ts","sourceRoot":"","sources":["../../../../src/core/utils/positioning.ts"],"names":[],"mappings":"AAAA,OAAa,EAAE,oBAAoB,EAAE,MAAM,QAAQ,CAAC;AAEpD,MAAM,MAAM,YAAY,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;AAC/D,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AACvD,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dp as pubDp, dataProvider as pubDataProvider, get as pubGet, set as pubSet } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
2
|
-
import type { DirectiveResult } from "lit/async-directive.js";
|
|
3
2
|
/**
|
|
4
3
|
* @deprecated @see pubDp
|
|
5
4
|
*/
|
|
@@ -8,8 +7,7 @@ export declare const dp: typeof pubDp;
|
|
|
8
7
|
* @deprecated @see pubDataProvider
|
|
9
8
|
*/
|
|
10
9
|
export declare const dataProvider: typeof pubDataProvider;
|
|
11
|
-
export
|
|
12
|
-
export declare const sub: DirectiveResult;
|
|
10
|
+
export { subscribe, sub } from "@supersoniks/concorde/core/directives/DataProvider";
|
|
13
11
|
/**
|
|
14
12
|
* @deprecated @see pubGet
|
|
15
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"directives.d.ts","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;AAG3I;;GAEG;AACH,eAAO,MAAM,EAAE,cAAQ,CAAC;AACxB;;GAEG;AACH,eAAO,MAAM,YAAY,wBAAkB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEpF;;GAEG;AACH,eAAO,MAAM,GAAG,eAAS,CAAC;AAC1B;;GAEG;AACH,eAAO,MAAM,GAAG,eAAS,CAAC"}
|