@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
|
@@ -1,221 +1,243 @@
|
|
|
1
1
|
import { html, LitElement, css, PropertyValues } from "lit";
|
|
2
|
-
import { customElement, property } from "lit/decorators.js";
|
|
2
|
+
import { customElement, property, query } from "lit/decorators.js";
|
|
3
|
+
import {
|
|
4
|
+
computeFloatingPosition,
|
|
5
|
+
FloatingPlacement,
|
|
6
|
+
getFloatingBounds,
|
|
7
|
+
parsePlacement,
|
|
8
|
+
startFrameLoop,
|
|
9
|
+
supportsPopover,
|
|
10
|
+
} from "@supersoniks/concorde/core/utils/positioning";
|
|
11
|
+
|
|
3
12
|
const tagName = "sonic-tooltip";
|
|
13
|
+
|
|
14
|
+
type TooltipPlacement = FloatingPlacement;
|
|
15
|
+
|
|
16
|
+
const GAP = 4;
|
|
17
|
+
|
|
4
18
|
@customElement(tagName)
|
|
5
19
|
export class Tooltip extends LitElement {
|
|
20
|
+
static readonly supportsPopover = supportsPopover;
|
|
21
|
+
|
|
6
22
|
static styles = [
|
|
7
23
|
css`
|
|
8
24
|
:host {
|
|
9
|
-
position: relative;
|
|
10
25
|
display: inline-flex;
|
|
11
26
|
align-items: center;
|
|
12
27
|
text-align: center;
|
|
13
28
|
--sc-tooltip-fw: var(--sc-font-weight-base, 400);
|
|
14
|
-
--sc-tooltip-position: calc(100% + 0.25rem);
|
|
15
29
|
}
|
|
16
30
|
|
|
17
|
-
.tooltip
|
|
18
|
-
position:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
opacity: 0;
|
|
31
|
+
.tooltip-bubble {
|
|
32
|
+
position: fixed;
|
|
33
|
+
inset: auto;
|
|
34
|
+
margin: 0;
|
|
35
|
+
border: none;
|
|
23
36
|
pointer-events: none;
|
|
37
|
+
font-size: 0.85rem;
|
|
24
38
|
background: var(--sc-base-content, #000);
|
|
25
39
|
padding: 0.32rem 0.55rem;
|
|
26
40
|
border-radius: var(--sc-rounded);
|
|
27
41
|
color: var(--sc-base, #fff);
|
|
28
|
-
z-index: 999;
|
|
29
42
|
line-height: 1.1;
|
|
30
43
|
width: max-content;
|
|
31
44
|
max-width: 18rem;
|
|
32
45
|
white-space: pre-line;
|
|
33
46
|
font-weight: var(--sc-tooltip-fw);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
47
|
+
opacity: 0;
|
|
48
|
+
transition:
|
|
49
|
+
opacity 0.2s,
|
|
50
|
+
display 0.2s allow-discrete,
|
|
51
|
+
overlay 0.2s allow-discrete;
|
|
37
52
|
}
|
|
38
53
|
|
|
39
|
-
:
|
|
40
|
-
:host(.keyboard-focus) .tooltip:before,
|
|
41
|
-
.tooltip:hover:before {
|
|
54
|
+
.tooltip-bubble:popover-open {
|
|
42
55
|
opacity: 1;
|
|
43
|
-
scale: 1;
|
|
44
56
|
}
|
|
45
57
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
:host(:not([placement])) .tooltip:before,
|
|
52
|
-
:host([placement="top"]) .tooltip:before {
|
|
53
|
-
bottom: var(--sc-tooltip-position);
|
|
54
|
-
left: 50%;
|
|
55
|
-
transform: translateX(-50%);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
:host([placement="top-end"]) .tooltip:before {
|
|
59
|
-
bottom: var(--sc-tooltip-position);
|
|
60
|
-
right: 0;
|
|
61
|
-
}
|
|
62
|
-
:host([placement="top-start"]) .tooltip:before {
|
|
63
|
-
bottom: var(--sc-tooltip-position);
|
|
64
|
-
left: 0;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
:host([placement="bottom"]) .tooltip:before {
|
|
68
|
-
top: var(--sc-tooltip-position);
|
|
69
|
-
left: 50%;
|
|
70
|
-
transform: translateX(-50%);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
:host([placement="bottom-start"]) .tooltip:before {
|
|
74
|
-
top: var(--sc-tooltip-position);
|
|
75
|
-
left: 0;
|
|
76
|
-
}
|
|
77
|
-
:host([placement="bottom-end"]) .tooltip:before {
|
|
78
|
-
top: var(--sc-tooltip-position);
|
|
79
|
-
right: 0;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
:host([placement="left"]) .tooltip:before {
|
|
83
|
-
top: 50%;
|
|
84
|
-
right: var(--sc-tooltip-position);
|
|
85
|
-
transform: translateY(-50%);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
:host([placement="left-start"]) .tooltip:before {
|
|
89
|
-
top: 0;
|
|
90
|
-
right: var(--sc-tooltip-position);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
:host([placement="left-end"]) .tooltip:before {
|
|
94
|
-
bottom: 0;
|
|
95
|
-
right: var(--sc-tooltip-position);
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
:host([placement="right"]) .tooltip:before {
|
|
99
|
-
top: 50%;
|
|
100
|
-
transform: translateY(-50%);
|
|
101
|
-
left: var(--sc-tooltip-position);
|
|
58
|
+
@starting-style {
|
|
59
|
+
.tooltip-bubble:popover-open {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|
|
102
62
|
}
|
|
103
63
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
left: var(--sc-tooltip-position);
|
|
64
|
+
.tooltip-bubble.disabled {
|
|
65
|
+
display: none !important;
|
|
107
66
|
}
|
|
108
67
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
68
|
+
@media (prefers-reduced-motion: reduce) {
|
|
69
|
+
.tooltip-bubble {
|
|
70
|
+
transition: none;
|
|
71
|
+
}
|
|
112
72
|
}
|
|
113
73
|
`,
|
|
114
74
|
];
|
|
115
75
|
|
|
116
|
-
@property({ type: String }) label
|
|
117
|
-
@property({ type: String, reflect: true }) placement?:
|
|
118
|
-
| "top"
|
|
119
|
-
| "top-start"
|
|
120
|
-
| "top-end"
|
|
121
|
-
| "right"
|
|
122
|
-
| "right-start"
|
|
123
|
-
| "right-end"
|
|
124
|
-
| "bottom"
|
|
125
|
-
| "bottom-start"
|
|
126
|
-
| "bottom-end"
|
|
127
|
-
| "left"
|
|
128
|
-
| "left-start"
|
|
129
|
-
| "left-end";
|
|
76
|
+
@property({ type: String }) label?: string;
|
|
77
|
+
@property({ type: String, reflect: true }) placement?: TooltipPlacement;
|
|
130
78
|
|
|
131
79
|
@property({ type: Boolean }) disabled = false;
|
|
132
80
|
@property({ type: Boolean }) focusable = false;
|
|
133
81
|
|
|
134
|
-
private
|
|
135
|
-
private boundHandleKeyDown: (e: KeyboardEvent) => void;
|
|
136
|
-
private boundHandleMouseDown: () => void;
|
|
82
|
+
@query(".tooltip-bubble") private bubbleEl?: HTMLElement;
|
|
137
83
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
this.
|
|
84
|
+
private stopPositioning?: () => void;
|
|
85
|
+
|
|
86
|
+
private get isEffectivelyDisabled() {
|
|
87
|
+
return this.disabled || !this.formatLabel();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
private formatLabel() {
|
|
91
|
+
return (this.label ?? "")
|
|
92
|
+
.replaceAll(" ", " ")
|
|
93
|
+
.trim()
|
|
94
|
+
.split("\n")
|
|
95
|
+
.map((line) => line.trim())
|
|
96
|
+
.join("\n");
|
|
142
97
|
}
|
|
143
98
|
|
|
144
|
-
private
|
|
145
|
-
|
|
146
|
-
if (
|
|
147
|
-
|
|
99
|
+
private computePosition() {
|
|
100
|
+
const bubble = this.bubbleEl;
|
|
101
|
+
if (!bubble) {
|
|
102
|
+
return;
|
|
148
103
|
}
|
|
149
|
-
};
|
|
150
104
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
105
|
+
const { side, align } = parsePlacement(this.placement, "top", "center");
|
|
106
|
+
|
|
107
|
+
const { x, y } = computeFloatingPosition({
|
|
108
|
+
anchor: this.getBoundingClientRect(),
|
|
109
|
+
floating: bubble.getBoundingClientRect(),
|
|
110
|
+
side,
|
|
111
|
+
align,
|
|
112
|
+
gap: GAP,
|
|
113
|
+
bounds: getFloatingBounds(this, GAP),
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
Object.assign(bubble.style, {
|
|
117
|
+
left: `${Math.round(x)}px`,
|
|
118
|
+
top: `${Math.round(y)}px`,
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
private showTooltip = () => {
|
|
123
|
+
if (this.isEffectivelyDisabled || !this.bubbleEl) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (!this.bubbleEl.matches(":popover-open")) {
|
|
128
|
+
this.bubbleEl.showPopover();
|
|
129
|
+
}
|
|
156
130
|
};
|
|
157
131
|
|
|
158
|
-
private
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
this.classList.add("keyboard-focus");
|
|
132
|
+
private hideTooltip = () => {
|
|
133
|
+
if (this.bubbleEl?.matches(":popover-open")) {
|
|
134
|
+
this.bubbleEl.hidePopover();
|
|
162
135
|
}
|
|
163
|
-
this.lastKeyWasTab = false;
|
|
164
136
|
};
|
|
165
137
|
|
|
166
|
-
private
|
|
167
|
-
|
|
168
|
-
|
|
138
|
+
private handleBeforeToggle = (e: ToggleEvent) => {
|
|
139
|
+
if (e.newState === "open") {
|
|
140
|
+
this.stopPositioning ??= startFrameLoop(() => this.computePosition());
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
this.endPositioning();
|
|
169
145
|
};
|
|
170
146
|
|
|
147
|
+
private endPositioning() {
|
|
148
|
+
this.stopPositioning?.();
|
|
149
|
+
this.stopPositioning = undefined;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
private syncTabIndex() {
|
|
153
|
+
if (this.disabled) {
|
|
154
|
+
this.setAttribute("tabindex", "-1");
|
|
155
|
+
} else if (this.focusable) {
|
|
156
|
+
this.setAttribute("tabindex", "0");
|
|
157
|
+
} else {
|
|
158
|
+
this.removeAttribute("tabindex");
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/** Fallback natif quand Popover API indisponible */
|
|
163
|
+
private syncNativeTitle() {
|
|
164
|
+
if (Tooltip.supportsPopover || this.isEffectivelyDisabled) {
|
|
165
|
+
this.removeAttribute("title");
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
this.setAttribute("title", this.formatLabel().replaceAll("\n", " "));
|
|
170
|
+
}
|
|
171
|
+
|
|
171
172
|
connectedCallback() {
|
|
172
173
|
super.connectedCallback();
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
|
|
175
|
+
if (!Tooltip.supportsPopover) {
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
this.addEventListener("focusin", this.showTooltip);
|
|
180
|
+
this.addEventListener("focusout", this.hideTooltip);
|
|
178
181
|
}
|
|
179
182
|
|
|
180
183
|
disconnectedCallback() {
|
|
184
|
+
this.endPositioning();
|
|
185
|
+
|
|
186
|
+
if (Tooltip.supportsPopover) {
|
|
187
|
+
this.removeEventListener("focusin", this.showTooltip);
|
|
188
|
+
this.removeEventListener("focusout", this.hideTooltip);
|
|
189
|
+
}
|
|
190
|
+
|
|
181
191
|
super.disconnectedCallback();
|
|
182
|
-
this.removeEventListener("focusin", this.handleFocusIn);
|
|
183
|
-
this.removeEventListener("focusout", this.handleFocusOut);
|
|
184
|
-
document.removeEventListener("keydown", this.boundHandleKeyDown, true);
|
|
185
|
-
document.removeEventListener("mousedown", this.boundHandleMouseDown, true);
|
|
186
192
|
}
|
|
187
193
|
|
|
188
|
-
protected willUpdate(
|
|
189
|
-
if (
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
if (this.focusable) {
|
|
196
|
-
this.setAttribute("tabindex", "0");
|
|
197
|
-
} else {
|
|
198
|
-
this.removeAttribute("tabindex");
|
|
199
|
-
}
|
|
200
|
-
}
|
|
194
|
+
protected willUpdate(changedProperties: PropertyValues): void {
|
|
195
|
+
if (
|
|
196
|
+
!this.hasUpdated ||
|
|
197
|
+
changedProperties.has("disabled") ||
|
|
198
|
+
changedProperties.has("focusable")
|
|
199
|
+
) {
|
|
200
|
+
this.syncTabIndex();
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
202
|
+
|
|
203
|
+
if (
|
|
204
|
+
!this.hasUpdated ||
|
|
205
|
+
changedProperties.has("label") ||
|
|
206
|
+
changedProperties.has("disabled")
|
|
207
|
+
) {
|
|
208
|
+
this.syncNativeTitle();
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
if (changedProperties.has("disabled") && this.disabled) {
|
|
212
|
+
this.hideTooltip();
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (changedProperties.has("label") && this.isEffectivelyDisabled) {
|
|
216
|
+
this.hideTooltip();
|
|
208
217
|
}
|
|
209
|
-
|
|
218
|
+
|
|
219
|
+
super.willUpdate(changedProperties);
|
|
210
220
|
}
|
|
211
221
|
|
|
212
222
|
render() {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
223
|
+
if (!Tooltip.supportsPopover) {
|
|
224
|
+
return html`<slot></slot>`;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
const disabledClass = this.isEffectivelyDisabled ? "disabled" : "";
|
|
228
|
+
const label = this.formatLabel();
|
|
229
|
+
|
|
230
|
+
return html`
|
|
231
|
+
<slot
|
|
232
|
+
@mouseenter=${this.showTooltip}
|
|
233
|
+
@mouseleave=${this.hideTooltip}
|
|
234
|
+
></slot>
|
|
235
|
+
<span
|
|
236
|
+
popover="hint"
|
|
237
|
+
class="tooltip-bubble ${disabledClass}"
|
|
238
|
+
@beforetoggle=${this.handleBeforeToggle}
|
|
239
|
+
>${label}</span
|
|
240
|
+
>
|
|
241
|
+
`;
|
|
220
242
|
}
|
|
221
243
|
}
|
|
@@ -236,4 +236,30 @@ describe("ancestorAttribute", () => {
|
|
|
236
236
|
|
|
237
237
|
expect(el.dataProvider).toBe("scope-a");
|
|
238
238
|
});
|
|
239
|
+
|
|
240
|
+
it("suit un wrapper plus proche après reparent (sans opt-in)", async () => {
|
|
241
|
+
const tag = "test-ancestor-attr-dynamic-reparent";
|
|
242
|
+
class C extends HTMLElement {
|
|
243
|
+
@ancestorAttribute("dataProvider", { dynamic: true })
|
|
244
|
+
dataProvider: string | null = null;
|
|
245
|
+
}
|
|
246
|
+
if (!customElements.get(tag)) {
|
|
247
|
+
customElements.define(tag, C);
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
const outer = document.createElement("div");
|
|
251
|
+
outer.setAttribute("dataProvider", "from-outer");
|
|
252
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
253
|
+
outer.appendChild(el);
|
|
254
|
+
document.body.appendChild(outer);
|
|
255
|
+
expect(el.dataProvider).toBe("from-outer");
|
|
256
|
+
|
|
257
|
+
const closer = document.createElement("div");
|
|
258
|
+
closer.setAttribute("dataProvider", "from-closer");
|
|
259
|
+
closer.appendChild(el);
|
|
260
|
+
outer.appendChild(closer);
|
|
261
|
+
await flushFrames();
|
|
262
|
+
|
|
263
|
+
expect(el.dataProvider).toBe("from-closer");
|
|
264
|
+
});
|
|
239
265
|
});
|
|
@@ -5,10 +5,9 @@ import { ConnectedComponent, setSubscribable } from "./common";
|
|
|
5
5
|
|
|
6
6
|
export type AncestorAttributeOptions = {
|
|
7
7
|
/**
|
|
8
|
-
* Si true,
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* Défaut : false (lecture unique au connect, rétrocompat).
|
|
8
|
+
* Si true, reste synchronisé quand un attribut ancêtre change **et** au
|
|
9
|
+
* reparenting (sans flag séparé). MO attributs partagés ; childList seulement
|
|
10
|
+
* sur le parent direct (ignoré pour les siblings). Défaut : false.
|
|
12
11
|
*/
|
|
13
12
|
dynamic?: boolean;
|
|
14
13
|
};
|
|
@@ -6,6 +6,7 @@ import {
|
|
|
6
6
|
derive as deriveFn,
|
|
7
7
|
type DeriveHandle,
|
|
8
8
|
} from "../../utils/derive";
|
|
9
|
+
import { compileJsonata } from "../../utils/jsonataRuntime";
|
|
9
10
|
|
|
10
11
|
export type DeriveDecoratorOptions<
|
|
11
12
|
I extends Record<string, unknown>,
|
|
@@ -60,9 +61,8 @@ export function deriveDecorator<
|
|
|
60
61
|
if (!options.expr) {
|
|
61
62
|
throw new Error("@derive : fournir `expr` ou `fn`.");
|
|
62
63
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
);
|
|
64
|
+
// Static import: dynamic import() breaks consumer Vite builds
|
|
65
|
+
// (rewrites to \0vite/preload-helper → load-fallback null-byte error).
|
|
66
66
|
const expr = compileJsonata(options.expr);
|
|
67
67
|
return expr.evaluate({}, {
|
|
68
68
|
...(vars as Record<string, unknown>),
|
|
@@ -160,7 +160,7 @@ const Fetcher = <
|
|
|
160
160
|
* Elles sont ensuite injectées dans le publisher en accord avec la cible définie dans la propriété key
|
|
161
161
|
* Un Toast est affiché si le chargement échoue
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
async _fetchData() {
|
|
164
164
|
this.requestUpdate();
|
|
165
165
|
if (!this.isFetchEnabled) return;
|
|
166
166
|
this.api = new API(this.getApiConfiguration());
|
|
@@ -118,11 +118,6 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
118
118
|
this.requestUpdate();
|
|
119
119
|
setTimeout(() => this.updateAllChecked(), 1);
|
|
120
120
|
|
|
121
|
-
// Désactivation du checked sur le publisher
|
|
122
|
-
// Pas sur de l'utilité mais provoque un bug
|
|
123
|
-
// if (this.publisher && !this.radio && !this.unique) {
|
|
124
|
-
// this.publisher.checked = this._checked;
|
|
125
|
-
// }
|
|
126
121
|
}
|
|
127
122
|
|
|
128
123
|
handleChange() {
|
|
@@ -300,9 +295,7 @@ const Form = <T extends Constructor<FormElementInterface>>(superClass: T) => {
|
|
|
300
295
|
if (!this.hasAttribute("checked")) {
|
|
301
296
|
return;
|
|
302
297
|
}
|
|
303
|
-
|
|
304
|
-
setTimeout(() => (this.checked = true), 1);
|
|
305
|
-
}
|
|
298
|
+
setTimeout(() => (this.checked = true), 1);
|
|
306
299
|
}
|
|
307
300
|
}
|
|
308
301
|
return FormCheckable;
|