@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
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import HTML from "./HTML";
|
|
2
|
+
const SIDES = ["top", "right", "bottom", "left"];
|
|
3
|
+
const ALIGNS = ["start", "center", "end"];
|
|
4
|
+
/** Découpe `"côté-alignement"` ; une valeur inconnue retombe sur le défaut. */
|
|
5
|
+
export function parsePlacement(placement, defaultSide, defaultAlign) {
|
|
6
|
+
const [side, align] = (placement ?? "").split("-");
|
|
7
|
+
return {
|
|
8
|
+
side: SIDES.includes(side) ? side : defaultSide,
|
|
9
|
+
align: ALIGNS.includes(align) ? align : defaultAlign,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
export const supportsPopover = "popover" in HTMLElement.prototype;
|
|
13
|
+
const OPPOSITE_SIDE = {
|
|
14
|
+
top: "bottom",
|
|
15
|
+
bottom: "top",
|
|
16
|
+
left: "right",
|
|
17
|
+
right: "left",
|
|
18
|
+
};
|
|
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 function getFloatingBounds(node, padding = 0) {
|
|
24
|
+
const clipRect = HTML.getScrollableAncestor(node)?.getBoundingClientRect();
|
|
25
|
+
// `||` et non `??` : un bord à 0 (ancêtre non rendu) retombe sur le viewport, comme historiquement dans sonic-pop.
|
|
26
|
+
return {
|
|
27
|
+
minX: Math.max(0, clipRect?.left || 0) + padding,
|
|
28
|
+
minY: Math.max(0, clipRect?.top || 0) + padding,
|
|
29
|
+
maxX: Math.min(window.innerWidth, clipRect?.right || window.innerWidth) -
|
|
30
|
+
padding,
|
|
31
|
+
maxY: Math.min(window.innerHeight, clipRect?.bottom || window.innerHeight) -
|
|
32
|
+
padding,
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
function alignOnAxis(start, length, floatingLength, align) {
|
|
36
|
+
if (align === "start")
|
|
37
|
+
return start;
|
|
38
|
+
if (align === "end")
|
|
39
|
+
return start + length - floatingLength;
|
|
40
|
+
return start + (length - floatingLength) / 2;
|
|
41
|
+
}
|
|
42
|
+
function placeOnSide(anchor, floating, side, align, gap) {
|
|
43
|
+
switch (side) {
|
|
44
|
+
case "top":
|
|
45
|
+
return {
|
|
46
|
+
x: alignOnAxis(anchor.left, anchor.width, floating.width, align),
|
|
47
|
+
y: anchor.top - floating.height - gap,
|
|
48
|
+
};
|
|
49
|
+
case "bottom":
|
|
50
|
+
return {
|
|
51
|
+
x: alignOnAxis(anchor.left, anchor.width, floating.width, align),
|
|
52
|
+
y: anchor.bottom + gap,
|
|
53
|
+
};
|
|
54
|
+
case "left":
|
|
55
|
+
return {
|
|
56
|
+
x: anchor.left - floating.width - gap,
|
|
57
|
+
y: alignOnAxis(anchor.top, anchor.height, floating.height, align),
|
|
58
|
+
};
|
|
59
|
+
case "right":
|
|
60
|
+
return {
|
|
61
|
+
x: anchor.right + gap,
|
|
62
|
+
y: alignOnAxis(anchor.top, anchor.height, floating.height, align),
|
|
63
|
+
};
|
|
64
|
+
default:
|
|
65
|
+
return { x: anchor.left, y: anchor.top };
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function overflowsSide(position, floating, side, bounds) {
|
|
69
|
+
switch (side) {
|
|
70
|
+
case "top":
|
|
71
|
+
return position.y < bounds.minY;
|
|
72
|
+
case "bottom":
|
|
73
|
+
return position.y + floating.height > bounds.maxY;
|
|
74
|
+
case "left":
|
|
75
|
+
return position.x < bounds.minX;
|
|
76
|
+
case "right":
|
|
77
|
+
return position.x + floating.width > bounds.maxX;
|
|
78
|
+
default:
|
|
79
|
+
return false;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Position (coordonnées viewport) d'un élément flottant accolé à `anchor` :
|
|
84
|
+
* bascule sur le côté opposé s'il déborde, puis le contraint dans `bounds`.
|
|
85
|
+
* S'il est plus grand que `bounds`, c'est le bord bas / droit qui l'emporte.
|
|
86
|
+
*/
|
|
87
|
+
export function computeFloatingPosition({ anchor, floating, side, align = "center", gap = 0, bounds, }) {
|
|
88
|
+
let placedSide = side;
|
|
89
|
+
let position = placeOnSide(anchor, floating, placedSide, align, gap);
|
|
90
|
+
if (overflowsSide(position, floating, placedSide, bounds)) {
|
|
91
|
+
placedSide = OPPOSITE_SIDE[placedSide];
|
|
92
|
+
position = placeOnSide(anchor, floating, placedSide, align, gap);
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
side: placedSide,
|
|
96
|
+
x: Math.min(Math.max(position.x, bounds.minX), bounds.maxX - floating.width),
|
|
97
|
+
y: Math.min(Math.max(position.y, bounds.minY), bounds.maxY - floating.height),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
/** Appelle `callback` à chaque frame ; renvoie la fonction d'arrêt. */
|
|
101
|
+
export function startFrameLoop(callback) {
|
|
102
|
+
let frame = 0;
|
|
103
|
+
const tick = () => {
|
|
104
|
+
callback();
|
|
105
|
+
frame = requestAnimationFrame(tick);
|
|
106
|
+
};
|
|
107
|
+
tick();
|
|
108
|
+
return () => cancelAnimationFrame(frame);
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=positioning.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"positioning.js","sourceRoot":"","sources":["../../../../src/core/utils/positioning.ts"],"names":[],"mappings":"AAAA,OAAO,IAA8B,MAAM,QAAQ,CAAC;AAQpD,MAAM,KAAK,GAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;AACpE,MAAM,MAAM,GAAsB,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC;AAE7D,+EAA+E;AAC/E,MAAM,UAAU,cAAc,CAC5B,SAA6B,EAC7B,WAAyB,EACzB,YAA2B;IAE3B,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,SAAS,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACnD,OAAO;QACL,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAE,IAAqB,CAAC,CAAC,CAAC,WAAW;QACjE,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAuB,CAAC,CAAC,CAAC,YAAY;KACxE,CAAC;AACJ,CAAC;AAYD,MAAM,CAAC,MAAM,eAAe,GAAG,SAAS,IAAI,WAAW,CAAC,SAAS,CAAC;AAElE,MAAM,aAAa,GAAuC;IACxD,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,OAAO;IACb,KAAK,EAAE,MAAM;CACd,CAAC;AAEF;;;GAGG;AACH,MAAM,UAAU,iBAAiB,CAC/B,IAA0B,EAC1B,OAAO,GAAG,CAAC;IAEX,MAAM,QAAQ,GACZ,IAAI,CAAC,qBAAqB,CAAC,IAAI,CAChC,EAAE,qBAAqB,EAAE,CAAC;IAE3B,mHAAmH;IACnH,OAAO;QACL,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,IAAI,IAAI,CAAC,CAAC,GAAG,OAAO;QAChD,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,CAAC,GAAG,OAAO;QAC/C,IAAI,EACF,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK,IAAI,MAAM,CAAC,UAAU,CAAC;YACjE,OAAO;QACT,IAAI,EACF,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,EAAE,MAAM,IAAI,MAAM,CAAC,WAAW,CAAC;YACpE,OAAO;KACV,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAClB,KAAa,EACb,MAAc,EACd,cAAsB,EACtB,KAAoB;IAEpB,IAAI,KAAK,KAAK,OAAO;QAAE,OAAO,KAAK,CAAC;IACpC,IAAI,KAAK,KAAK,KAAK;QAAE,OAAO,KAAK,GAAG,MAAM,GAAG,cAAc,CAAC;IAC5D,OAAO,KAAK,GAAG,CAAC,MAAM,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,WAAW,CAClB,MAAY,EACZ,QAAc,EACd,IAAkB,EAClB,KAAoB,EACpB,GAAW;IAEX,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,KAAK;YACR,OAAO;gBACL,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;gBAChE,CAAC,EAAE,MAAM,CAAC,GAAG,GAAG,QAAQ,CAAC,MAAM,GAAG,GAAG;aACtC,CAAC;QACJ,KAAK,QAAQ;YACX,OAAO;gBACL,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;gBAChE,CAAC,EAAE,MAAM,CAAC,MAAM,GAAG,GAAG;aACvB,CAAC;QACJ,KAAK,MAAM;YACT,OAAO;gBACL,CAAC,EAAE,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,GAAG,GAAG;gBACrC,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;aAClE,CAAC;QACJ,KAAK,OAAO;YACV,OAAO;gBACL,CAAC,EAAE,MAAM,CAAC,KAAK,GAAG,GAAG;gBACrB,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,MAAM,EAAE,KAAK,CAAC;aAClE,CAAC;QACJ;YACE,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,CAAC;IAC7C,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CACpB,QAAkC,EAClC,QAAc,EACd,IAAkB,EAClB,MAAsB;IAEtB,QAAQ,IAAI,EAAE,CAAC;QACb,KAAK,KAAK;YACR,OAAO,QAAQ,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;QAClC,KAAK,QAAQ;YACX,OAAO,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;QACpD,KAAK,MAAM;YACT,OAAO,QAAQ,CAAC,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC;QAClC,KAAK,OAAO;YACV,OAAO,QAAQ,CAAC,CAAC,GAAG,QAAQ,CAAC,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC;QACnD;YACE,OAAO,KAAK,CAAC;IACjB,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,uBAAuB,CAAC,EACtC,MAAM,EACN,QAAQ,EACR,IAAI,EACJ,KAAK,GAAG,QAAQ,EAChB,GAAG,GAAG,CAAC,EACP,MAAM,GAQP;IACC,IAAI,UAAU,GAAG,IAAI,CAAC;IACtB,IAAI,QAAQ,GAAG,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IAErE,IAAI,aAAa,CAAC,QAAQ,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,CAAC,EAAE,CAAC;QAC1D,UAAU,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC;QACvC,QAAQ,GAAG,WAAW,CAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;IACnE,CAAC;IAED,OAAO;QACL,IAAI,EAAE,UAAU;QAChB,CAAC,EAAE,IAAI,CAAC,GAAG,CACT,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,EACjC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,KAAK,CAC7B;QACD,CAAC,EAAE,IAAI,CAAC,GAAG,CACT,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,EAAE,MAAM,CAAC,IAAI,CAAC,EACjC,MAAM,CAAC,IAAI,GAAG,QAAQ,CAAC,MAAM,CAC9B;KACF,CAAC;AACJ,CAAC;AAED,uEAAuE;AACvE,MAAM,UAAU,cAAc,CAAC,QAAoB;IACjD,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,MAAM,IAAI,GAAG,GAAG,EAAE;QAChB,QAAQ,EAAE,CAAC;QACX,KAAK,GAAG,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC,CAAC;IACF,IAAI,EAAE,CAAC;IACP,OAAO,GAAG,EAAE,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;AAC3C,CAAC"}
|
package/dist/js/directives.js
CHANGED
|
@@ -8,8 +8,7 @@ export const dp = pubDp;
|
|
|
8
8
|
* @deprecated @see pubDataProvider
|
|
9
9
|
*/
|
|
10
10
|
export const dataProvider = pubDataProvider;
|
|
11
|
-
export
|
|
12
|
-
export const sub = directives.sub;
|
|
11
|
+
export { subscribe, sub } from "@supersoniks/concorde/core/directives/DataProvider";
|
|
13
12
|
/**
|
|
14
13
|
* @deprecated @see pubGet
|
|
15
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"directives.js","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,oDAAoD,CAAC;AACjF,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.js","sourceRoot":"","sources":["../../src/directives.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAC,EAAE,IAAI,KAAK,EAAE,YAAY,IAAI,eAAe,EAAE,GAAG,IAAI,MAAM,EAAE,GAAG,IAAI,MAAM,EAAC,MAAM,iDAAiD,CAAC;AAG3I;;GAEG;AACH,MAAM,CAAC,MAAM,EAAE,GAAG,KAAK,CAAC;AACxB;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,eAAe,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AAEpF;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC;AAC1B;;GAEG;AACH,MAAM,CAAC,MAAM,GAAG,GAAG,MAAM,CAAC;AAI1B,MAAM,CAAC,mCAAmC,CAAC,GAAG,MAAM,CAAC,mCAAmC,CAAC,IAAI,EAAE,CAAC;AAChG,MAAM,CAAC,mCAAmC,CAAC,GAAG;IAC5C,EAAE,EAAE,KAAK;IACT,YAAY,EAAE,eAAe;IAC7B,GAAG,EAAE,UAAU,CAAC,GAAG;IACnB,SAAS,EAAE,UAAU,CAAC,SAAS;IAC/B,GAAG,EAAE,MAAM;IACX,GAAG,EAAE,MAAM;CACZ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../../../src/addons/interactive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,iDAAiD,CAAC"}
|
|
@@ -1,13 +1,22 @@
|
|
|
1
1
|
import { LitElement, nothing } from "lit";
|
|
2
|
+
declare const SonicIF_base: (new (...args: import("../../../_types/types").MixinArgsType[]) => import("../../../mixins/Subscriber").SubscriberInterface<import("../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
2
3
|
/**
|
|
3
|
-
*
|
|
4
|
+
* Affiche le slot si `.condition` est true **ou** via attributs SDUI
|
|
5
|
+
* `dataProvider` + `key` (+ `equals` / `not` / `truthy` / `gt` / `lt`).
|
|
4
6
|
*/
|
|
5
|
-
export declare class SonicIF extends
|
|
7
|
+
export declare class SonicIF extends SonicIF_base {
|
|
6
8
|
static styles: import("lit").CSSResult;
|
|
7
|
-
/**
|
|
8
|
-
* Le contenu s'affiche si la condition est évaluée à true.
|
|
9
|
-
*/
|
|
9
|
+
/** Mode Lit classique. */
|
|
10
10
|
condition: boolean;
|
|
11
|
+
key: string;
|
|
12
|
+
equals: string;
|
|
13
|
+
not: string;
|
|
14
|
+
truthy: boolean;
|
|
15
|
+
gt: string;
|
|
16
|
+
lt: string;
|
|
17
|
+
private attrMode;
|
|
18
|
+
private show;
|
|
11
19
|
render(): typeof nothing | import("lit-html").TemplateResult<1>;
|
|
12
20
|
}
|
|
21
|
+
export {};
|
|
13
22
|
//# sourceMappingURL=if.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/if/if.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC
|
|
1
|
+
{"version":3,"file":"if.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/if/if.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,UAAU,EAAE,OAAO,EAAC,MAAM,KAAK,CAAC;;AAgBnD;;;GAGG;AACH,qBACa,OAAQ,SAAQ,YAAsB;IACjD,MAAM,CAAC,MAAM,0BAIX;IAEF,0BAA0B;IACC,SAAS,UAAS;IAEnB,GAAG,SAAM;IAET,MAAM,SAAM;IAEZ,GAAG,SAAM;IAER,MAAM,UAAS;IAEhB,EAAE,SAAM;IAER,EAAE,SAAM;IAElC,OAAO,CAAC,QAAQ;IAYhB,OAAO,CAAC,IAAI;IAUZ,MAAM;CAIP"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Wrapper clic → dispatch vers un store.
|
|
4
|
+
* `hold-repeat="170,50"` pour d-pad tactile.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SonicAction extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult;
|
|
8
|
+
target: string;
|
|
9
|
+
type: string;
|
|
10
|
+
payload: unknown;
|
|
11
|
+
holdRepeat: string;
|
|
12
|
+
dispatchEventFlag: boolean;
|
|
13
|
+
private holdTimer;
|
|
14
|
+
private holdInterval;
|
|
15
|
+
private onPointerDown;
|
|
16
|
+
private onPointerUp;
|
|
17
|
+
private clearHold;
|
|
18
|
+
private emit;
|
|
19
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
20
|
+
}
|
|
21
|
+
export default SonicAction;
|
|
22
|
+
//# sourceMappingURL=action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/action.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C;;;GAGG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAIX;IAGF,MAAM,SAAM;IAGZ,IAAI,SAAM;IAGV,OAAO,EAAE,OAAO,CAAQ;IAGxB,UAAU,SAAM;IAGhB,iBAAiB,UAAS;IAE1B,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,YAAY,CAAuB;IAE3C,OAAO,CAAC,aAAa,CAWnB;IAEF,OAAO,CAAC,WAAW,CAA0B;IAE7C,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,IAAI;IAeZ,MAAM;CAQP;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
type RepeatCfg = Record<string, [number, number]>;
|
|
3
|
+
/**
|
|
4
|
+
* Manette → actions store. Raf uniquement si une pad est connectée.
|
|
5
|
+
*/
|
|
6
|
+
export declare class SonicGamepad extends LitElement {
|
|
7
|
+
static styles: import("lit").CSSResult;
|
|
8
|
+
target: string;
|
|
9
|
+
keymap: Record<string, string | {
|
|
10
|
+
type: string;
|
|
11
|
+
payload?: unknown;
|
|
12
|
+
}>;
|
|
13
|
+
deadzone: number;
|
|
14
|
+
repeat: RepeatCfg;
|
|
15
|
+
dataProvider: string;
|
|
16
|
+
dispatchEventFlag: boolean;
|
|
17
|
+
private connected;
|
|
18
|
+
private raf;
|
|
19
|
+
private prev;
|
|
20
|
+
private heldTimers;
|
|
21
|
+
connectedCallback(): void;
|
|
22
|
+
disconnectedCallback(): void;
|
|
23
|
+
private onConnect;
|
|
24
|
+
private onDisconnect;
|
|
25
|
+
private scan;
|
|
26
|
+
private publishStatus;
|
|
27
|
+
private startLoop;
|
|
28
|
+
private stopLoop;
|
|
29
|
+
private poll;
|
|
30
|
+
private startRepeat;
|
|
31
|
+
private stopRepeat;
|
|
32
|
+
private clearHolds;
|
|
33
|
+
private fire;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
export default SonicGamepad;
|
|
37
|
+
//# sourceMappingURL=gamepad.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gamepad.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/gamepad.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAO5C,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAmBlD;;GAEG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAIX;IAGF,MAAM,SAAM;IAGZ,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAQlE;IAGF,QAAQ,SAAQ;IAGhB,MAAM,EAAE,SAAS,CAAM;IAGvB,YAAY,SAAM;IAGlB,iBAAiB,UAAS;IAEjB,OAAO,CAAC,SAAS,CAAS;IAEnC,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,IAAI,CAA8B;IAC1C,OAAO,CAAC,UAAU,CAA4D;IAE9E,iBAAiB,IAAI,IAAI;IAOzB,oBAAoB,IAAI,IAAI;IAQ5B,OAAO,CAAC,SAAS,CAAqB;IACtC,OAAO,CAAC,YAAY,CAAqB;IAEzC,OAAO,CAAC,IAAI;IASZ,OAAO,CAAC,aAAa;IAUrB,OAAO,CAAC,SAAS;IASjB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,IAAI;IA4BZ,OAAO,CAAC,WAAW;IAgBnB,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,IAAI;IAeZ,MAAM;CAGP;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Zone tactile : tap, double-tap, swipe, long-press (+ drag optionnel).
|
|
4
|
+
*/
|
|
5
|
+
export declare class SonicGesture extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
target: string;
|
|
8
|
+
swipeThreshold: number;
|
|
9
|
+
longPressMs: number;
|
|
10
|
+
doubleTapMs: number;
|
|
11
|
+
drag: boolean;
|
|
12
|
+
dispatchEventFlag: boolean;
|
|
13
|
+
private startX;
|
|
14
|
+
private startY;
|
|
15
|
+
private startT;
|
|
16
|
+
private longTimer;
|
|
17
|
+
private lastTap;
|
|
18
|
+
private pointerId;
|
|
19
|
+
private onDown;
|
|
20
|
+
private onMove;
|
|
21
|
+
private onUp;
|
|
22
|
+
private emit;
|
|
23
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
24
|
+
}
|
|
25
|
+
export default SonicGesture;
|
|
26
|
+
//# sourceMappingURL=gesture.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gesture.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/gesture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C;;GAEG;AACH,qBACa,YAAa,SAAQ,UAAU;IAC1C,MAAM,CAAC,MAAM,0BAMX;IAGF,MAAM,SAAM;IAGZ,cAAc,SAAM;IAGpB,WAAW,SAAO;IAGlB,WAAW,SAAO;IAGlB,IAAI,UAAS;IAGb,iBAAiB,UAAS;IAE1B,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,MAAM,CAAK;IACnB,OAAO,CAAC,SAAS,CAAuB;IACxC,OAAO,CAAC,OAAO,CAAK;IACpB,OAAO,CAAC,SAAS,CAAuB;IAExC,OAAO,CAAC,MAAM,CAWZ;IAEF,OAAO,CAAC,MAAM,CAkBZ;IAEF,OAAO,CAAC,IAAI,CAiCV;IAEF,OAAO,CAAC,IAAI;IAaZ,MAAM;CAQP;AAED,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Helpers JSONata purs pour sonic-store (PRNG, matrix, set immuable…).
|
|
3
|
+
* `$random` / `$now` volontairement absents — rejouabilité.
|
|
4
|
+
*/
|
|
5
|
+
import type { Expression } from "jsonata";
|
|
6
|
+
/** mulberry32 → { value: 0..1, seed } */
|
|
7
|
+
export declare function rand(seed: unknown): {
|
|
8
|
+
value: number;
|
|
9
|
+
seed: number;
|
|
10
|
+
};
|
|
11
|
+
export declare function randInt(seed: unknown, n: unknown): {
|
|
12
|
+
value: number;
|
|
13
|
+
seed: number;
|
|
14
|
+
};
|
|
15
|
+
export declare function clamp(value: unknown, min: unknown, max: unknown): number;
|
|
16
|
+
export declare function range(n: unknown): number[];
|
|
17
|
+
/** Set immuable par chemin dot (`a.b.0.c`). */
|
|
18
|
+
export declare function immutableSet(obj: unknown, path: unknown, value: unknown): unknown;
|
|
19
|
+
export declare function matrix(w: unknown, h: unknown, fill?: unknown): number[][];
|
|
20
|
+
/** Rotation 90° horaire d’une matrice 2D. */
|
|
21
|
+
export declare function rotate(mat: unknown): number[][];
|
|
22
|
+
export declare function registerInteractiveHelpers(expression: Expression): void;
|
|
23
|
+
//# sourceMappingURL=helpers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/helpers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,yCAAyC;AACzC,wBAAgB,IAAI,CAAC,IAAI,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAMnE;AAED,wBAAgB,OAAO,CAAC,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAIlF;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,GAAG,MAAM,CAKxE;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,CAG1C;AAED,+CAA+C;AAC/C,wBAAgB,YAAY,CAC1B,GAAG,EAAE,OAAO,EACZ,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,OAAO,GACb,OAAO,CAoBT;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,IAAI,GAAE,OAAW,GAAG,MAAM,EAAE,EAAE,CAO5E;AAED,6CAA6C;AAC7C,wBAAgB,MAAM,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,EAAE,EAAE,CAgB/C;AAED,wBAAgB,0BAA0B,CAAC,UAAU,EAAE,UAAU,GAAG,IAAI,CAQvE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Addon interactivity déclarative (stores, inputs, matrix).
|
|
3
|
+
* Opt-in : `@supersoniks/concorde/interactive`
|
|
4
|
+
*/
|
|
5
|
+
export { dispatch, getStore, listStoreIds, type SonicActionMessage, } from "./registry";
|
|
6
|
+
export { SonicStore } from "./store";
|
|
7
|
+
export { SonicKeyboard } from "./keyboard";
|
|
8
|
+
export { SonicGamepad } from "./gamepad";
|
|
9
|
+
export { SonicGesture } from "./gesture";
|
|
10
|
+
export { SonicAction } from "./action";
|
|
11
|
+
export { SonicTicker } from "./ticker";
|
|
12
|
+
export { SonicMatrix } from "./matrix";
|
|
13
|
+
import "./store";
|
|
14
|
+
import "./keyboard";
|
|
15
|
+
import "./gamepad";
|
|
16
|
+
import "./gesture";
|
|
17
|
+
import "./action";
|
|
18
|
+
import "./ticker";
|
|
19
|
+
import "./matrix";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,QAAQ,EACR,QAAQ,EACR,YAAY,EACZ,KAAK,kBAAkB,GACxB,MAAM,YAAY,CAAC;AACpB,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,SAAS,CAAC;AACjB,OAAO,YAAY,CAAC;AACpB,OAAO,WAAW,CAAC;AACnB,OAAO,WAAW,CAAC;AACnB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC;AAClB,OAAO,UAAU,CAAC"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
type KeymapValue = string | {
|
|
3
|
+
type: string;
|
|
4
|
+
payload?: unknown;
|
|
5
|
+
};
|
|
6
|
+
type Keymap = Record<string, KeymapValue>;
|
|
7
|
+
type RepeatCfg = Record<string, [number, number]>;
|
|
8
|
+
/**
|
|
9
|
+
* Source d’actions clavier → store (`target`).
|
|
10
|
+
* Opt-in `@supersoniks/concorde/interactive`.
|
|
11
|
+
*/
|
|
12
|
+
export declare class SonicKeyboard extends LitElement {
|
|
13
|
+
static styles: import("lit").CSSResult;
|
|
14
|
+
target: string;
|
|
15
|
+
keymap: Keymap;
|
|
16
|
+
/** `document` | `focus` */
|
|
17
|
+
scope: "document" | "focus";
|
|
18
|
+
/** `{ "left": [delayMs, intervalMs] }` */
|
|
19
|
+
repeat: RepeatCfg;
|
|
20
|
+
keyup: boolean;
|
|
21
|
+
dispatchEventFlag: boolean;
|
|
22
|
+
private held;
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
26
|
+
private bindTarget;
|
|
27
|
+
private onVis;
|
|
28
|
+
private onKeyDown;
|
|
29
|
+
private onKeyUp;
|
|
30
|
+
private releaseAll;
|
|
31
|
+
private isEditableTarget;
|
|
32
|
+
private toAction;
|
|
33
|
+
private emit;
|
|
34
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
35
|
+
}
|
|
36
|
+
export default SonicKeyboard;
|
|
37
|
+
//# sourceMappingURL=keyboard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keyboard.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/keyboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,KAAK,WAAW,GAAG,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAChE,KAAK,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;AAC1C,KAAK,SAAS,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAGlD;;;GAGG;AACH,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,0BAYX;IAGF,MAAM,SAAM;IAGZ,MAAM,EAAE,MAAM,CAAM;IAEpB,2BAA2B;IAE3B,KAAK,EAAE,UAAU,GAAG,OAAO,CAAc;IAEzC,0CAA0C;IAE1C,MAAM,EAAE,SAAS,CAAM;IAGvB,KAAK,UAAS;IAGd,iBAAiB,UAAS;IAE1B,OAAO,CAAC,IAAI,CAA8B;IAE1C,iBAAiB,IAAI,IAAI;IAWzB,oBAAoB,IAAI,IAAI;IAS5B,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAOxE,OAAO,CAAC,UAAU;IAIlB,OAAO,CAAC,KAAK,CAEX;IAEF,OAAO,CAAC,SAAS,CA2Bf;IAEF,OAAO,CAAC,OAAO,CAYb;IAEF,OAAO,CAAC,UAAU,CAMhB;IAEF,OAAO,CAAC,gBAAgB;IAQxB,OAAO,CAAC,QAAQ;IAKhB,OAAO,CAAC,IAAI;IAaZ,MAAM;CAGP;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
type Palette = Record<string, string>;
|
|
3
|
+
declare const SonicMatrix_base: (new (...args: import("../../../_types/types").MixinArgsType[]) => import("../../../mixins/Subscriber").SubscriberInterface<import("../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
4
|
+
/**
|
|
5
|
+
* Rendu canvas d’une grille 2D (number[][] ou flat + cols) depuis dataProvider.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SonicMatrix extends SonicMatrix_base {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/** Clé vers la matrice dans le DP. */
|
|
10
|
+
key: string;
|
|
11
|
+
cols: number;
|
|
12
|
+
palette: Palette;
|
|
13
|
+
/** Taille cellule px, ou `auto`. */
|
|
14
|
+
cell: string;
|
|
15
|
+
gap: number;
|
|
16
|
+
radius: number;
|
|
17
|
+
/** Clé couche fantôme optionnelle. */
|
|
18
|
+
ghostKey: string;
|
|
19
|
+
labelKey: string;
|
|
20
|
+
private canvas;
|
|
21
|
+
private lastSig;
|
|
22
|
+
connectedCallback(): void;
|
|
23
|
+
protected updated(): void;
|
|
24
|
+
private readGrid;
|
|
25
|
+
private readGhost;
|
|
26
|
+
private colorFor;
|
|
27
|
+
private draw;
|
|
28
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
29
|
+
}
|
|
30
|
+
export default SonicMatrix;
|
|
31
|
+
//# sourceMappingURL=matrix.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"matrix.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/matrix.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAM5C,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;;AAYtC;;GAEG;AACH,qBACa,WAAY,SAAQ,gBAAsB;IACrD,MAAM,CAAC,MAAM,0BAaX;IAEF,sCAAsC;IAEtC,GAAG,SAAU;IAGb,IAAI,SAAK;IAGT,OAAO,EAAE,OAAO,CASd;IAEF,oCAAoC;IAEpC,IAAI,SAAQ;IAGZ,GAAG,SAAK;IAGR,MAAM,SAAK;IAEX,sCAAsC;IAEtC,QAAQ,SAAM;IAGd,QAAQ,SAAM;IAEG,OAAO,CAAC,MAAM,CAAqB;IAEpD,OAAO,CAAC,OAAO,CAAM;IAErB,iBAAiB,IAAI,IAAI;IAKzB,SAAS,CAAC,OAAO,IAAI,IAAI;IAIzB,OAAO,CAAC,QAAQ;IAiBhB,OAAO,CAAC,SAAS;IAQjB,OAAO,CAAC,QAAQ;IAOhB,OAAO,CAAC,IAAI;IA4DZ,MAAM;CAGP;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Registre global des sonic-store + dispatch typé.
|
|
3
|
+
* Utilisé par keyboard / gamepad / gesture / action / ticker.
|
|
4
|
+
*/
|
|
5
|
+
export type SonicActionMessage = {
|
|
6
|
+
type: string;
|
|
7
|
+
payload?: unknown;
|
|
8
|
+
t?: number;
|
|
9
|
+
dt?: number;
|
|
10
|
+
};
|
|
11
|
+
export type StoreHandle = {
|
|
12
|
+
id: string;
|
|
13
|
+
dispatch: (action: SonicActionMessage) => void;
|
|
14
|
+
getState: () => unknown;
|
|
15
|
+
reset: () => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function registerStore(handle: StoreHandle): void;
|
|
18
|
+
export declare function unregisterStore(id: string): void;
|
|
19
|
+
export declare function getStore(id: string): StoreHandle | undefined;
|
|
20
|
+
/** Dispatch une action vers un store enregistré. No-op si absent. */
|
|
21
|
+
export declare function dispatch(storeId: string, action: SonicActionMessage): void;
|
|
22
|
+
export declare function listStoreIds(): string[];
|
|
23
|
+
//# sourceMappingURL=registry.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/registry.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,CAAC,MAAM,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC/C,QAAQ,EAAE,MAAM,OAAO,CAAC;IACxB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,wBAAgB,aAAa,CAAC,MAAM,EAAE,WAAW,GAAG,IAAI,CAEvD;AAED,wBAAgB,eAAe,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED,wBAAgB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAE5D;AAED,qEAAqE;AACrE,wBAAgB,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAO1E;AAED,wBAAgB,YAAY,IAAI,MAAM,EAAE,CAEvC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
import { type SonicActionMessage } from "./registry";
|
|
3
|
+
/**
|
|
4
|
+
* Store déclaratif : state' = reducer($state, $action, $env) via JSONata.
|
|
5
|
+
* Opt-in : `@supersoniks/concorde/interactive`.
|
|
6
|
+
*/
|
|
7
|
+
export declare class SonicStore extends LitElement {
|
|
8
|
+
static styles: import("lit").CSSResult;
|
|
9
|
+
/** Identifiant du store (obligatoire pour dispatch). */
|
|
10
|
+
id: string;
|
|
11
|
+
/** DataProvider où publier l’état (défaut = id). */
|
|
12
|
+
dataProvider: string;
|
|
13
|
+
/** État initial (JSON attribut / objet). */
|
|
14
|
+
initial: unknown;
|
|
15
|
+
/** Expression JSONata du reducer. */
|
|
16
|
+
reducer: string;
|
|
17
|
+
maxStateBytes: number;
|
|
18
|
+
budgetMs: number;
|
|
19
|
+
/** Taille max de l’historique undo (0 = off). */
|
|
20
|
+
history: number;
|
|
21
|
+
private state;
|
|
22
|
+
private queue;
|
|
23
|
+
private draining;
|
|
24
|
+
private compiled;
|
|
25
|
+
private historyStack;
|
|
26
|
+
private lastError;
|
|
27
|
+
connectedCallback(): void;
|
|
28
|
+
disconnectedCallback(): void;
|
|
29
|
+
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
30
|
+
private dpId;
|
|
31
|
+
private bootstrap;
|
|
32
|
+
private compileReducer;
|
|
33
|
+
private enqueue;
|
|
34
|
+
private drain;
|
|
35
|
+
private apply;
|
|
36
|
+
private reset;
|
|
37
|
+
private undo;
|
|
38
|
+
private publish;
|
|
39
|
+
private fail;
|
|
40
|
+
private clone;
|
|
41
|
+
/** API élément : dispatch manuel. */
|
|
42
|
+
dispatchAction(action: SonicActionMessage): void;
|
|
43
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
44
|
+
}
|
|
45
|
+
export default SonicStore;
|
|
46
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAK5C,OAAO,EAIL,KAAK,kBAAkB,EAExB,MAAM,YAAY,CAAC;AASpB;;;GAGG;AACH,qBACa,UAAW,SAAQ,UAAU;IACxC,MAAM,CAAC,MAAM,0BAIX;IAEF,wDAAwD;IAExD,EAAE,SAAM;IAER,oDAAoD;IAEpD,YAAY,SAAM;IAElB,4CAA4C;IAE5C,OAAO,EAAE,OAAO,CAAQ;IAExB,qCAAqC;IAErC,OAAO,SAAM;IAGb,aAAa,SAA2B;IAGxC,QAAQ,SAAqB;IAE7B,iDAAiD;IAEjD,OAAO,SAAK;IAEZ,OAAO,CAAC,KAAK,CAAiB;IAC9B,OAAO,CAAC,KAAK,CAA4B;IACzC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,QAAQ,CAA2C;IAC3D,OAAO,CAAC,YAAY,CAAsB;IAC1C,OAAO,CAAC,SAAS,CAAuB;IAExC,iBAAiB,IAAI,IAAI;IAKzB,oBAAoB,IAAI,IAAI;IAK5B,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAexE,OAAO,CAAC,IAAI;IAIZ,OAAO,CAAC,SAAS;IAgBjB,OAAO,CAAC,cAAc;IAwBtB,OAAO,CAAC,OAAO;YAaD,KAAK;IAanB,OAAO,CAAC,KAAK;IAiDb,OAAO,CAAC,KAAK;IAOb,OAAO,CAAC,IAAI;IAMZ,OAAO,CAAC,OAAO;IAUf,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,KAAK;IASb,qCAAqC;IACrC,cAAc,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAIhD,MAAM;CAGP;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* Horloge déclarative : émet `tick` avec `dt` vers un store.
|
|
4
|
+
*/
|
|
5
|
+
export declare class SonicTicker extends LitElement {
|
|
6
|
+
static styles: import("lit").CSSResult;
|
|
7
|
+
target: string;
|
|
8
|
+
interval: number;
|
|
9
|
+
/** Chemin dans le DP du store pour l’intervalle (ex. `speed`). */
|
|
10
|
+
intervalKey: string;
|
|
11
|
+
/** Chemin booléen pause (ex. `running`). */
|
|
12
|
+
runningKey: string;
|
|
13
|
+
/** `interval` | `raf` */
|
|
14
|
+
mode: "interval" | "raf";
|
|
15
|
+
dispatchEventFlag: boolean;
|
|
16
|
+
private timer;
|
|
17
|
+
private raf;
|
|
18
|
+
private last;
|
|
19
|
+
private acc;
|
|
20
|
+
connectedCallback(): void;
|
|
21
|
+
disconnectedCallback(): void;
|
|
22
|
+
protected updated(changed: Map<string | number | symbol, unknown>): void;
|
|
23
|
+
private onVis;
|
|
24
|
+
private stop;
|
|
25
|
+
private restart;
|
|
26
|
+
private currentInterval;
|
|
27
|
+
private isRunning;
|
|
28
|
+
private path;
|
|
29
|
+
private emit;
|
|
30
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
31
|
+
}
|
|
32
|
+
export default SonicTicker;
|
|
33
|
+
//# sourceMappingURL=ticker.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticker.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/ticker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAO5C;;GAEG;AACH,qBACa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,MAAM,0BAIX;IAGF,MAAM,SAAM;IAGZ,QAAQ,SAAO;IAEf,kEAAkE;IAElE,WAAW,SAAM;IAEjB,4CAA4C;IAE5C,UAAU,SAAM;IAEhB,yBAAyB;IAEzB,IAAI,EAAE,UAAU,GAAG,KAAK,CAAc;IAGtC,iBAAiB,UAAS;IAE1B,OAAO,CAAC,KAAK,CAAuB;IACpC,OAAO,CAAC,GAAG,CAAK;IAChB,OAAO,CAAC,IAAI,CAAK;IACjB,OAAO,CAAC,GAAG,CAAK;IAEhB,iBAAiB,IAAI,IAAI;IAMzB,oBAAoB,IAAI,IAAI;IAM5B,SAAS,CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAYxE,OAAO,CAAC,KAAK,CAGX;IAEF,OAAO,CAAC,IAAI;IAYZ,OAAO,CAAC,OAAO;IAgCf,OAAO,CAAC,eAAe;IAcvB,OAAO,CAAC,SAAS;IAUjB,OAAO,CAAC,IAAI;IAUZ,OAAO,CAAC,IAAI;IAcZ,MAAM;CAGP;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
declare const SonicValue_base: (new (...args: import("../../../_types/types").MixinArgsType[]) => import("../../../mixins/Subscriber").SubscriberInterface<import("../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
3
|
+
/**
|
|
4
|
+
* Affiche une valeur du DataProvider (`key`).
|
|
5
|
+
* `format="00000"` pad numérique, ou `format="intl:fr-FR"` / `format="intl:fr-FR:currency:EUR"`.
|
|
6
|
+
*/
|
|
3
7
|
export declare class SonicValue extends SonicValue_base {
|
|
8
|
+
format: string;
|
|
4
9
|
connectedCallback(): void;
|
|
10
|
+
private formatted;
|
|
5
11
|
render(): import("lit-html").TemplateResult<1>;
|
|
6
12
|
}
|
|
7
13
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/value/value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;;
|
|
1
|
+
{"version":3,"file":"value.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/functional/value/value.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAO,MAAM,KAAK,CAAC;;AAOrC;;;GAGG;AACH,qBACa,UAAW,SAAQ,eAAsB;IAC1B,MAAM,SAAM;IAEtC,iBAAiB,IAAI,IAAI;IAKzB,OAAO,CAAC,SAAS;IA6BjB,MAAM;CAQP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rounded.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_css/rounded.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,OAAO,GAAG,EAAE,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAEhF,eAAO,MAAM,WAAW,yBA+BvB,CAAC"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/** Icônes pour les composants à `status` (API messages, alert, toast). */
|
|
2
|
+
export declare const statusIcon: {
|
|
3
|
+
default: string;
|
|
4
|
+
info: string;
|
|
5
|
+
success: string;
|
|
6
|
+
warning: string;
|
|
7
|
+
error: string;
|
|
8
|
+
};
|
|
9
|
+
export type StatusIconKey = keyof typeof statusIcon;
|
|
10
|
+
export declare function toStatus(value?: string): StatusIconKey | undefined;
|
|
11
|
+
export declare function statusAriaRole(status?: StatusIconKey): "alert" | "status";
|
|
12
|
+
export declare function statusAriaLive(status?: StatusIconKey): "polite" | null;
|
|
13
|
+
export declare const statusColor: import("lit").CSSResult;
|
|
1
14
|
export declare const typeColor: import("lit").CSSResult;
|
|
2
15
|
export declare const typesBg: import("lit").CSSResult;
|
|
3
16
|
//# sourceMappingURL=type.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_css/type.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,yBAyBrB,CAAC;AAEF,eAAO,MAAM,OAAO,yBA+DnB,CAAC"}
|
|
1
|
+
{"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../../../src/core/components/ui/_css/type.ts"],"names":[],"mappings":"AAEA,0EAA0E;AAC1E,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,UAAU,CAAC;AAEpD,wBAAgB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAIlE;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,OAAO,GAAG,QAAQ,CAEzE;AAED,wBAAgB,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,QAAQ,GAAG,IAAI,CAEtE;AAED,eAAO,MAAM,WAAW,yBAsBvB,CAAC;AAEF,eAAO,MAAM,SAAS,yBAyBrB,CAAC;AAEF,eAAO,MAAM,OAAO,yBA+DnB,CAAC"}
|