@supersoniks/concorde 4.9.98-visual-stack.0 → 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 +201 -152
- package/concorde-3d.es.js +14688 -13906
- 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 +31 -20
- package/concorde-shader.es.js +2773 -2547
- package/concorde-webgpu.bundle.js +43 -32
- package/concorde-webgpu.es.js +1819 -1553
- package/dist/concorde-3d.bundle.js +201 -152
- package/dist/concorde-3d.es.js +14688 -13906
- 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 +31 -20
- package/dist/concorde-shader.es.js +2773 -2547
- package/dist/concorde-webgpu.bundle.js +43 -32
- package/dist/concorde-webgpu.es.js +1819 -1553
- 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/3d/3d.js +90 -2
- package/dist/js/core/components/functional/3d/3d.js.map +1 -1
- package/dist/js/core/components/functional/3d/constants.js +1 -0
- package/dist/js/core/components/functional/3d/constants.js.map +1 -1
- package/dist/js/core/components/functional/3d/ensure.js +6 -3
- package/dist/js/core/components/functional/3d/ensure.js.map +1 -1
- package/dist/js/core/components/functional/3d/form-params.js +2 -0
- package/dist/js/core/components/functional/3d/form-params.js.map +1 -1
- package/dist/js/core/components/functional/3d/life.js +2 -1
- package/dist/js/core/components/functional/3d/life.js.map +1 -1
- package/dist/js/core/components/functional/3d/out-publish.js +3 -2
- package/dist/js/core/components/functional/3d/out-publish.js.map +1 -1
- package/dist/js/core/components/functional/3d/playback.js +6 -1
- package/dist/js/core/components/functional/3d/playback.js.map +1 -1
- package/dist/js/core/components/functional/3d/post-bind.js +207 -0
- package/dist/js/core/components/functional/3d/post-bind.js.map +1 -0
- package/dist/js/core/components/functional/3d/post-channels.js +39 -0
- package/dist/js/core/components/functional/3d/post-channels.js.map +1 -0
- package/dist/js/core/components/functional/3d/post-fx.js +495 -0
- package/dist/js/core/components/functional/3d/post-fx.js.map +1 -0
- package/dist/js/core/components/functional/3d/props.js +142 -0
- package/dist/js/core/components/functional/3d/props.js.map +1 -1
- package/dist/js/core/components/functional/3d/reload.js +2 -0
- package/dist/js/core/components/functional/3d/reload.js.map +1 -1
- package/dist/js/core/components/functional/3d/runtime.js +80 -3
- package/dist/js/core/components/functional/3d/runtime.js.map +1 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js +1 -1
- package/dist/js/core/components/functional/3d/scene-runtime.js.map +1 -1
- package/dist/js/core/components/functional/3d/tune.js +21 -0
- package/dist/js/core/components/functional/3d/tune.js.map +1 -1
- package/dist/js/core/components/functional/3d/updated.js +13 -1
- package/dist/js/core/components/functional/3d/updated.js.map +1 -1
- 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/shader/gl-runtime.js +128 -14
- package/dist/js/core/components/functional/shader/gl-runtime.js.map +1 -1
- package/dist/js/core/components/functional/shader/shader.js +154 -57
- package/dist/js/core/components/functional/shader/shader.js.map +1 -1
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js +39 -5
- package/dist/js/core/components/functional/shader/shadertoy-prelude.js.map +1 -1
- package/dist/js/core/components/functional/shader/types.js +58 -7
- package/dist/js/core/components/functional/shader/types.js.map +1 -1
- 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/functional/webgpu/gl-fallback.js +27 -6
- package/dist/js/core/components/functional/webgpu/gl-fallback.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js +115 -13
- package/dist/js/core/components/functional/webgpu/gpu-runtime.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/helpers.js +8 -2
- package/dist/js/core/components/functional/webgpu/helpers.js.map +1 -1
- package/dist/js/core/components/functional/webgpu/webgpu.js +34 -1
- package/dist/js/core/components/functional/webgpu/webgpu.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/mediaRef.js +37 -0
- package/dist/js/core/utils/mediaRef.js.map +1 -1
- 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/3d/3d.d.ts +26 -3
- package/dist/types/core/components/functional/3d/3d.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/constants.d.ts +1 -1
- package/dist/types/core/components/functional/3d/constants.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/ensure.d.ts +3 -0
- package/dist/types/core/components/functional/3d/ensure.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/form-params.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/life.d.ts +2 -0
- package/dist/types/core/components/functional/3d/life.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/out-publish.d.ts +1 -0
- package/dist/types/core/components/functional/3d/out-publish.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/playback.d.ts +9 -0
- package/dist/types/core/components/functional/3d/playback.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/post-bind.d.ts +52 -0
- package/dist/types/core/components/functional/3d/post-bind.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/post-channels.d.ts +40 -0
- package/dist/types/core/components/functional/3d/post-channels.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/post-fx.d.ts +73 -0
- package/dist/types/core/components/functional/3d/post-fx.d.ts.map +1 -0
- package/dist/types/core/components/functional/3d/props.d.ts +42 -0
- package/dist/types/core/components/functional/3d/props.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/reload.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts +16 -1
- package/dist/types/core/components/functional/3d/runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts +1 -1
- package/dist/types/core/components/functional/3d/scene-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/tune.d.ts +5 -0
- package/dist/types/core/components/functional/3d/tune.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/types.d.ts +9 -0
- package/dist/types/core/components/functional/3d/types.d.ts.map +1 -1
- package/dist/types/core/components/functional/3d/updated.d.ts.map +1 -1
- 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/shader/gl-runtime.d.ts +33 -1
- package/dist/types/core/components/functional/shader/gl-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/shader.d.ts +28 -7
- package/dist/types/core/components/functional/shader/shader.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts +16 -2
- package/dist/types/core/components/functional/shader/shadertoy-prelude.d.ts.map +1 -1
- package/dist/types/core/components/functional/shader/types.d.ts +29 -5
- package/dist/types/core/components/functional/shader/types.d.ts.map +1 -1
- 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/functional/webgpu/gl-fallback.d.ts +4 -0
- package/dist/types/core/components/functional/webgpu/gl-fallback.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts +14 -0
- package/dist/types/core/components/functional/webgpu/gpu-runtime.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/helpers.d.ts +1 -0
- package/dist/types/core/components/functional/webgpu/helpers.d.ts.map +1 -1
- package/dist/types/core/components/functional/webgpu/webgpu.d.ts +7 -1
- package/dist/types/core/components/functional/webgpu/webgpu.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/mediaRef.d.ts +15 -0
- package/dist/types/core/utils/mediaRef.d.ts.map +1 -1
- 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 +217 -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/3d/3d.md +34 -1
- package/src/core/components/functional/3d/3d.spec.ts +42 -0
- package/src/core/components/functional/3d/3d.ts +101 -3
- package/src/core/components/functional/3d/constants.ts +1 -0
- package/src/core/components/functional/3d/ensure.ts +11 -3
- package/src/core/components/functional/3d/form-params.ts +2 -0
- package/src/core/components/functional/3d/life.ts +4 -1
- package/src/core/components/functional/3d/out-publish.ts +4 -3
- package/src/core/components/functional/3d/playback.ts +13 -1
- package/src/core/components/functional/3d/post-bind.ts +262 -0
- package/src/core/components/functional/3d/post-channels.spec.ts +36 -0
- package/src/core/components/functional/3d/post-channels.ts +69 -0
- package/src/core/components/functional/3d/post-fx.ts +594 -0
- package/src/core/components/functional/3d/props.ts +45 -0
- package/src/core/components/functional/3d/reload.ts +2 -0
- package/src/core/components/functional/3d/runtime.ts +93 -4
- package/src/core/components/functional/3d/scene-runtime.ts +3 -0
- package/src/core/components/functional/3d/tune.ts +21 -0
- package/src/core/components/functional/3d/types.ts +9 -0
- package/src/core/components/functional/3d/updated.ts +17 -1
- 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/shader/gl-runtime.ts +169 -12
- package/src/core/components/functional/shader/shader.md +27 -4
- package/src/core/components/functional/shader/shader.spec.ts +267 -0
- package/src/core/components/functional/shader/shader.ts +177 -55
- package/src/core/components/functional/shader/shadertoy-prelude.ts +49 -5
- package/src/core/components/functional/shader/types.ts +89 -12
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +44 -4
- package/src/core/components/functional/webgpu/gl-fallback.ts +28 -4
- package/src/core/components/functional/webgpu/gpu-runtime.ts +154 -18
- package/src/core/components/functional/webgpu/helpers.ts +8 -2
- package/src/core/components/functional/webgpu/webgpu.md +13 -2
- package/src/core/components/functional/webgpu/webgpu.spec.ts +37 -0
- package/src/core/components/functional/webgpu/webgpu.ts +39 -1
- 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/mediaRef.spec.ts +25 -0
- package/src/core/utils/mediaRef.ts +45 -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/_misc/visual-stack.md +19 -1
- package/src/docs/code.ts +3 -1
- package/src/docs/components/docs-demo-sources.ts +88 -0
- package/src/docs/docs.ts +3 -0
- package/src/docs/example/docs-3d-post-depth-demo.ts +68 -0
- package/src/docs/example/docs-3d-webgpu-live-demo.ts +83 -0
- package/src/docs/example/docs-harris-webgpu-demo.ts +53 -55
- 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 +922 -1762
- package/src/docs/tailwind/css/tailwind.css +13 -6
- package/src/tsconfig.json +162 -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,264 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, css, html } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import jsonata from "jsonata";
|
|
10
|
+
import { set } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
11
|
+
import { registerInteractiveHelpers } from "./helpers";
|
|
12
|
+
import { dispatch as registryDispatch, registerStore, unregisterStore, } from "./registry";
|
|
13
|
+
const tagName = "sonic-store";
|
|
14
|
+
const DEFAULT_MAX_STATE_BYTES = 256 * 1024;
|
|
15
|
+
const DEFAULT_BUDGET_MS = 8;
|
|
16
|
+
/**
|
|
17
|
+
* Store déclaratif : state' = reducer($state, $action, $env) via JSONata.
|
|
18
|
+
* Opt-in : `@supersoniks/concorde/interactive`.
|
|
19
|
+
*/
|
|
20
|
+
let SonicStore = class SonicStore extends LitElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
/** Identifiant du store (obligatoire pour dispatch). */
|
|
24
|
+
this.id = "";
|
|
25
|
+
/** DataProvider où publier l’état (défaut = id). */
|
|
26
|
+
this.dataProvider = "";
|
|
27
|
+
/** État initial (JSON attribut / objet). */
|
|
28
|
+
this.initial = null;
|
|
29
|
+
/** Expression JSONata du reducer. */
|
|
30
|
+
this.reducer = "";
|
|
31
|
+
this.maxStateBytes = DEFAULT_MAX_STATE_BYTES;
|
|
32
|
+
this.budgetMs = DEFAULT_BUDGET_MS;
|
|
33
|
+
/** Taille max de l’historique undo (0 = off). */
|
|
34
|
+
this.history = 0;
|
|
35
|
+
this.state = null;
|
|
36
|
+
this.queue = [];
|
|
37
|
+
this.draining = false;
|
|
38
|
+
this.compiled = null;
|
|
39
|
+
this.historyStack = [];
|
|
40
|
+
this.lastError = null;
|
|
41
|
+
}
|
|
42
|
+
connectedCallback() {
|
|
43
|
+
super.connectedCallback();
|
|
44
|
+
this.bootstrap();
|
|
45
|
+
}
|
|
46
|
+
disconnectedCallback() {
|
|
47
|
+
if (this.id)
|
|
48
|
+
unregisterStore(this.id);
|
|
49
|
+
super.disconnectedCallback();
|
|
50
|
+
}
|
|
51
|
+
updated(changed) {
|
|
52
|
+
if (changed.has("id") ||
|
|
53
|
+
changed.has("reducer") ||
|
|
54
|
+
changed.has("initial") ||
|
|
55
|
+
changed.has("dataProvider")) {
|
|
56
|
+
const prevId = changed.get("id");
|
|
57
|
+
if (typeof prevId === "string" && prevId && prevId !== this.id) {
|
|
58
|
+
unregisterStore(prevId);
|
|
59
|
+
}
|
|
60
|
+
this.bootstrap();
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
dpId() {
|
|
64
|
+
return (this.dataProvider || this.id || "").trim();
|
|
65
|
+
}
|
|
66
|
+
bootstrap() {
|
|
67
|
+
if (!this.id)
|
|
68
|
+
return;
|
|
69
|
+
this.compileReducer();
|
|
70
|
+
this.state = this.clone(this.initial);
|
|
71
|
+
this.historyStack = [];
|
|
72
|
+
this.lastError = null;
|
|
73
|
+
this.publish();
|
|
74
|
+
const handle = {
|
|
75
|
+
id: this.id,
|
|
76
|
+
dispatch: (action) => this.enqueue(action),
|
|
77
|
+
getState: () => this.state,
|
|
78
|
+
reset: () => this.reset(),
|
|
79
|
+
};
|
|
80
|
+
registerStore(handle);
|
|
81
|
+
}
|
|
82
|
+
compileReducer() {
|
|
83
|
+
this.compiled = null;
|
|
84
|
+
const src = (this.reducer || "").trim();
|
|
85
|
+
if (!src)
|
|
86
|
+
return;
|
|
87
|
+
if (src.length > 32_768) {
|
|
88
|
+
this.fail("reducer trop long (max 32 Ko)");
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
try {
|
|
92
|
+
const expr = jsonata(src);
|
|
93
|
+
registerInteractiveHelpers(expr);
|
|
94
|
+
// Désactiver impureté
|
|
95
|
+
expr.assign("random", () => {
|
|
96
|
+
throw new Error("$random interdit dans un reducer (utiliser $rand)");
|
|
97
|
+
});
|
|
98
|
+
expr.assign("now", () => {
|
|
99
|
+
throw new Error("$now interdit dans un reducer (utiliser $action.t)");
|
|
100
|
+
});
|
|
101
|
+
this.compiled = expr;
|
|
102
|
+
}
|
|
103
|
+
catch (err) {
|
|
104
|
+
this.fail(err instanceof Error ? err.message : String(err));
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
enqueue(action) {
|
|
108
|
+
if (action.type === "@reset") {
|
|
109
|
+
this.reset();
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (action.type === "@undo") {
|
|
113
|
+
this.undo();
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
this.queue.push(action);
|
|
117
|
+
void this.drain();
|
|
118
|
+
}
|
|
119
|
+
async drain() {
|
|
120
|
+
if (this.draining)
|
|
121
|
+
return;
|
|
122
|
+
this.draining = true;
|
|
123
|
+
try {
|
|
124
|
+
while (this.queue.length) {
|
|
125
|
+
const action = this.queue.shift();
|
|
126
|
+
this.apply(action);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
finally {
|
|
130
|
+
this.draining = false;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
apply(action) {
|
|
134
|
+
if (!this.compiled)
|
|
135
|
+
return;
|
|
136
|
+
const started = performance.now();
|
|
137
|
+
const env = {
|
|
138
|
+
width: typeof window !== "undefined" ? window.innerWidth : 0,
|
|
139
|
+
height: typeof window !== "undefined" ? window.innerHeight : 0,
|
|
140
|
+
now: action.t ?? started,
|
|
141
|
+
};
|
|
142
|
+
const bindings = {
|
|
143
|
+
state: this.state,
|
|
144
|
+
action: {
|
|
145
|
+
type: action.type,
|
|
146
|
+
payload: action.payload ?? null,
|
|
147
|
+
t: action.t ?? started,
|
|
148
|
+
dt: action.dt ?? null,
|
|
149
|
+
},
|
|
150
|
+
env,
|
|
151
|
+
};
|
|
152
|
+
try {
|
|
153
|
+
const expr = this.compiled;
|
|
154
|
+
// Bindings → $state, $action, $env (purs ; pas de $random / $now)
|
|
155
|
+
const result = expr.evaluate(this.state, {
|
|
156
|
+
state: this.state,
|
|
157
|
+
action: bindings.action,
|
|
158
|
+
env,
|
|
159
|
+
});
|
|
160
|
+
const elapsed = performance.now() - started;
|
|
161
|
+
if (elapsed > this.budgetMs) {
|
|
162
|
+
this.fail(`budget ${this.budgetMs}ms dépassé (${elapsed.toFixed(1)}ms)`);
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if (result === undefined)
|
|
166
|
+
return;
|
|
167
|
+
const encoded = JSON.stringify(result);
|
|
168
|
+
if (encoded !== undefined && encoded.length > this.maxStateBytes) {
|
|
169
|
+
this.fail(`état trop gros (max ${this.maxStateBytes} octets)`);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (this.history > 0) {
|
|
173
|
+
this.historyStack.push(this.clone(this.state));
|
|
174
|
+
if (this.historyStack.length > this.history)
|
|
175
|
+
this.historyStack.shift();
|
|
176
|
+
}
|
|
177
|
+
this.state = result;
|
|
178
|
+
this.lastError = null;
|
|
179
|
+
this.publish();
|
|
180
|
+
}
|
|
181
|
+
catch (err) {
|
|
182
|
+
this.fail(err instanceof Error ? err.message : String(err));
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
reset() {
|
|
186
|
+
this.state = this.clone(this.initial);
|
|
187
|
+
this.historyStack = [];
|
|
188
|
+
this.lastError = null;
|
|
189
|
+
this.publish();
|
|
190
|
+
}
|
|
191
|
+
undo() {
|
|
192
|
+
if (!this.historyStack.length)
|
|
193
|
+
return;
|
|
194
|
+
this.state = this.historyStack.pop();
|
|
195
|
+
this.publish();
|
|
196
|
+
}
|
|
197
|
+
publish() {
|
|
198
|
+
const id = this.dpId();
|
|
199
|
+
if (!id)
|
|
200
|
+
return;
|
|
201
|
+
const payload = this.state && typeof this.state === "object"
|
|
202
|
+
? { ...this.state, lastError: this.lastError }
|
|
203
|
+
: { value: this.state, lastError: this.lastError };
|
|
204
|
+
set(id, payload);
|
|
205
|
+
}
|
|
206
|
+
fail(message) {
|
|
207
|
+
this.lastError = message;
|
|
208
|
+
this.dispatchEvent(new CustomEvent("error", {
|
|
209
|
+
detail: { message },
|
|
210
|
+
bubbles: true,
|
|
211
|
+
composed: true,
|
|
212
|
+
}));
|
|
213
|
+
this.publish();
|
|
214
|
+
}
|
|
215
|
+
clone(v) {
|
|
216
|
+
if (v === null || typeof v !== "object")
|
|
217
|
+
return v;
|
|
218
|
+
try {
|
|
219
|
+
return JSON.parse(JSON.stringify(v));
|
|
220
|
+
}
|
|
221
|
+
catch {
|
|
222
|
+
return v;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
/** API élément : dispatch manuel. */
|
|
226
|
+
dispatchAction(action) {
|
|
227
|
+
registryDispatch(this.id, action);
|
|
228
|
+
}
|
|
229
|
+
render() {
|
|
230
|
+
return html ``;
|
|
231
|
+
}
|
|
232
|
+
};
|
|
233
|
+
SonicStore.styles = css `
|
|
234
|
+
:host {
|
|
235
|
+
display: contents;
|
|
236
|
+
}
|
|
237
|
+
`;
|
|
238
|
+
__decorate([
|
|
239
|
+
property({ type: String })
|
|
240
|
+
], SonicStore.prototype, "id", void 0);
|
|
241
|
+
__decorate([
|
|
242
|
+
property({ type: String })
|
|
243
|
+
], SonicStore.prototype, "dataProvider", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
property({ type: Object })
|
|
246
|
+
], SonicStore.prototype, "initial", void 0);
|
|
247
|
+
__decorate([
|
|
248
|
+
property({ type: String })
|
|
249
|
+
], SonicStore.prototype, "reducer", void 0);
|
|
250
|
+
__decorate([
|
|
251
|
+
property({ type: Number, attribute: "max-state-bytes" })
|
|
252
|
+
], SonicStore.prototype, "maxStateBytes", void 0);
|
|
253
|
+
__decorate([
|
|
254
|
+
property({ type: Number, attribute: "budget-ms" })
|
|
255
|
+
], SonicStore.prototype, "budgetMs", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
property({ type: Number })
|
|
258
|
+
], SonicStore.prototype, "history", void 0);
|
|
259
|
+
SonicStore = __decorate([
|
|
260
|
+
customElement(tagName)
|
|
261
|
+
], SonicStore);
|
|
262
|
+
export { SonicStore };
|
|
263
|
+
export default SonicStore;
|
|
264
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../../../../../../src/core/components/functional/interactive/store.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,EAAE,GAAG,EAAE,MAAM,iDAAiD,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EACL,QAAQ,IAAI,gBAAgB,EAC5B,aAAa,EACb,eAAe,GAGhB,MAAM,YAAY,CAAC;AAEpB,MAAM,OAAO,GAAG,aAAa,CAAC;AAE9B,MAAM,uBAAuB,GAAG,GAAG,GAAG,IAAI,CAAC;AAC3C,MAAM,iBAAiB,GAAG,CAAC,CAAC;AAI5B;;;GAGG;AAEI,IAAM,UAAU,GAAhB,MAAM,UAAW,SAAQ,UAAU;IAAnC;;QAOL,wDAAwD;QAExD,OAAE,GAAG,EAAE,CAAC;QAER,oDAAoD;QAEpD,iBAAY,GAAG,EAAE,CAAC;QAElB,4CAA4C;QAE5C,YAAO,GAAY,IAAI,CAAC;QAExB,qCAAqC;QAErC,YAAO,GAAG,EAAE,CAAC;QAGb,kBAAa,GAAG,uBAAuB,CAAC;QAGxC,aAAQ,GAAG,iBAAiB,CAAC;QAE7B,iDAAiD;QAEjD,YAAO,GAAG,CAAC,CAAC;QAEJ,UAAK,GAAY,IAAI,CAAC;QACtB,UAAK,GAAyB,EAAE,CAAC;QACj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Gb;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,iBAAiB,EAAE,CAAC;iDACjB;AAGxC;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;4CACtB;AAI7B;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;2CACf;AA/BD,UAAU;IADtB,aAAa,CAAC,OAAO,CAAC;GACV,UAAU,CA4OtB;;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { LitElement, css, html } from "lit";
|
|
8
|
+
import { customElement, property } from "lit/decorators.js";
|
|
9
|
+
import { get } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
10
|
+
import { dispatch } from "./registry";
|
|
11
|
+
const tagName = "sonic-ticker";
|
|
12
|
+
/**
|
|
13
|
+
* Horloge déclarative : émet `tick` avec `dt` vers un store.
|
|
14
|
+
*/
|
|
15
|
+
let SonicTicker = class SonicTicker extends LitElement {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.target = "";
|
|
19
|
+
this.interval = 500;
|
|
20
|
+
/** Chemin dans le DP du store pour l’intervalle (ex. `speed`). */
|
|
21
|
+
this.intervalKey = "";
|
|
22
|
+
/** Chemin booléen pause (ex. `running`). */
|
|
23
|
+
this.runningKey = "";
|
|
24
|
+
/** `interval` | `raf` */
|
|
25
|
+
this.mode = "interval";
|
|
26
|
+
this.dispatchEventFlag = false;
|
|
27
|
+
this.timer = null;
|
|
28
|
+
this.raf = 0;
|
|
29
|
+
this.last = 0;
|
|
30
|
+
this.acc = 0;
|
|
31
|
+
this.onVis = () => {
|
|
32
|
+
if (document.hidden)
|
|
33
|
+
this.stop();
|
|
34
|
+
else
|
|
35
|
+
this.restart();
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
connectedCallback() {
|
|
39
|
+
super.connectedCallback();
|
|
40
|
+
document.addEventListener("visibilitychange", this.onVis);
|
|
41
|
+
this.restart();
|
|
42
|
+
}
|
|
43
|
+
disconnectedCallback() {
|
|
44
|
+
document.removeEventListener("visibilitychange", this.onVis);
|
|
45
|
+
this.stop();
|
|
46
|
+
super.disconnectedCallback();
|
|
47
|
+
}
|
|
48
|
+
updated(changed) {
|
|
49
|
+
if (changed.has("interval") ||
|
|
50
|
+
changed.has("mode") ||
|
|
51
|
+
changed.has("target") ||
|
|
52
|
+
changed.has("intervalKey") ||
|
|
53
|
+
changed.has("runningKey")) {
|
|
54
|
+
this.restart();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
stop() {
|
|
58
|
+
if (this.timer != null) {
|
|
59
|
+
clearInterval(this.timer);
|
|
60
|
+
this.timer = null;
|
|
61
|
+
}
|
|
62
|
+
if (this.raf) {
|
|
63
|
+
cancelAnimationFrame(this.raf);
|
|
64
|
+
this.raf = 0;
|
|
65
|
+
}
|
|
66
|
+
this.acc = 0;
|
|
67
|
+
}
|
|
68
|
+
restart() {
|
|
69
|
+
this.stop();
|
|
70
|
+
if (!this.target || document.hidden)
|
|
71
|
+
return;
|
|
72
|
+
this.last = performance.now();
|
|
73
|
+
if (this.mode === "raf") {
|
|
74
|
+
const loop = (now) => {
|
|
75
|
+
this.raf = requestAnimationFrame(loop);
|
|
76
|
+
if (!this.isRunning()) {
|
|
77
|
+
this.last = now;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
const raw = Math.min(100, now - this.last);
|
|
81
|
+
this.last = now;
|
|
82
|
+
this.acc += raw;
|
|
83
|
+
const ms = this.currentInterval();
|
|
84
|
+
while (this.acc >= ms) {
|
|
85
|
+
this.acc -= ms;
|
|
86
|
+
this.emit(ms);
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
this.raf = requestAnimationFrame(loop);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.timer = window.setInterval(() => {
|
|
93
|
+
if (!this.isRunning())
|
|
94
|
+
return;
|
|
95
|
+
const now = performance.now();
|
|
96
|
+
const dt = Math.min(1000, now - this.last);
|
|
97
|
+
this.last = now;
|
|
98
|
+
this.emit(dt);
|
|
99
|
+
}, this.currentInterval());
|
|
100
|
+
}
|
|
101
|
+
currentInterval() {
|
|
102
|
+
let ms = this.interval;
|
|
103
|
+
if (this.intervalKey && this.target) {
|
|
104
|
+
try {
|
|
105
|
+
const state = get(this.target);
|
|
106
|
+
const v = this.path(state, this.intervalKey);
|
|
107
|
+
if (typeof v === "number" && Number.isFinite(v))
|
|
108
|
+
ms = v;
|
|
109
|
+
}
|
|
110
|
+
catch {
|
|
111
|
+
/* keep */
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
return Math.max(16, ms);
|
|
115
|
+
}
|
|
116
|
+
isRunning() {
|
|
117
|
+
if (!this.runningKey || !this.target)
|
|
118
|
+
return true;
|
|
119
|
+
try {
|
|
120
|
+
const state = get(this.target);
|
|
121
|
+
return Boolean(this.path(state, this.runningKey));
|
|
122
|
+
}
|
|
123
|
+
catch {
|
|
124
|
+
return true;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
path(obj, path) {
|
|
128
|
+
if (!obj || typeof obj !== "object")
|
|
129
|
+
return undefined;
|
|
130
|
+
let cur = obj;
|
|
131
|
+
for (const p of path.split(".").filter(Boolean)) {
|
|
132
|
+
if (cur == null)
|
|
133
|
+
return undefined;
|
|
134
|
+
cur = cur[p];
|
|
135
|
+
}
|
|
136
|
+
return cur;
|
|
137
|
+
}
|
|
138
|
+
emit(dt) {
|
|
139
|
+
const action = { type: "tick", payload: { dt }, dt };
|
|
140
|
+
if (this.target)
|
|
141
|
+
dispatch(this.target, action);
|
|
142
|
+
if (this.dispatchEventFlag) {
|
|
143
|
+
this.dispatchEvent(new CustomEvent("sonic-action", {
|
|
144
|
+
detail: action,
|
|
145
|
+
bubbles: true,
|
|
146
|
+
composed: true,
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
render() {
|
|
151
|
+
return html ``;
|
|
152
|
+
}
|
|
153
|
+
};
|
|
154
|
+
SonicTicker.styles = css `
|
|
155
|
+
:host {
|
|
156
|
+
display: contents;
|
|
157
|
+
}
|
|
158
|
+
`;
|
|
159
|
+
__decorate([
|
|
160
|
+
property({ type: String })
|
|
161
|
+
], SonicTicker.prototype, "target", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
property({ type: Number })
|
|
164
|
+
], SonicTicker.prototype, "interval", void 0);
|
|
165
|
+
__decorate([
|
|
166
|
+
property({ type: String, attribute: "interval-key" })
|
|
167
|
+
], SonicTicker.prototype, "intervalKey", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
property({ type: String, attribute: "running-key" })
|
|
170
|
+
], SonicTicker.prototype, "runningKey", void 0);
|
|
171
|
+
__decorate([
|
|
172
|
+
property({ type: String })
|
|
173
|
+
], SonicTicker.prototype, "mode", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
property({ type: Boolean, attribute: "dispatch-event" })
|
|
176
|
+
], SonicTicker.prototype, "dispatchEventFlag", void 0);
|
|
177
|
+
SonicTicker = __decorate([
|
|
178
|
+
customElement(tagName)
|
|
179
|
+
], SonicTicker);
|
|
180
|
+
export { SonicTicker };
|
|
181
|
+
export default SonicTicker;
|
|
182
|
+
//# sourceMappingURL=ticker.js.map
|
|
@@ -0,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