@supersoniks/concorde 4.9.98-visual-stack.1 → 4.9.98-visual-stack.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +0 -13
- package/build-infos.json +1 -1
- package/concorde-3d.bundle.js +1 -1
- package/concorde-3d.es.js +2 -2
- package/concorde-core.bundle.js +557 -622
- package/concorde-core.es.js +6025 -5575
- package/concorde-hugging-face-infer.bundle.js +1 -1
- package/concorde-hugging-face-infer.es.js +1 -1
- package/concorde-interactive.bundle.js +1162 -0
- package/concorde-interactive.es.js +10723 -0
- package/concorde-shader.bundle.js +1 -1
- package/concorde-shader.es.js +2 -2
- package/concorde-webgpu.bundle.js +1 -1
- package/concorde-webgpu.es.js +2 -2
- package/dist/concorde-3d.bundle.js +1 -1
- package/dist/concorde-3d.es.js +2 -2
- package/dist/concorde-core.bundle.js +557 -622
- package/dist/concorde-core.es.js +6025 -5575
- package/dist/concorde-hugging-face-infer.bundle.js +1 -1
- package/dist/concorde-hugging-face-infer.es.js +1 -1
- package/dist/concorde-interactive.bundle.js +1162 -0
- package/dist/concorde-interactive.es.js +10723 -0
- package/dist/concorde-shader.bundle.js +1 -1
- package/dist/concorde-shader.es.js +2 -2
- package/dist/concorde-webgpu.bundle.js +1 -1
- package/dist/concorde-webgpu.es.js +2 -2
- package/dist/docs-mock-api-sw.js +5 -1
- package/dist/docs-mock-api-sw.js.map +2 -2
- package/dist/js/addons/interactive.js +6 -0
- package/dist/js/addons/interactive.js.map +1 -0
- package/dist/js/core/components/functional/if/if.js +65 -7
- package/dist/js/core/components/functional/if/if.js.map +1 -1
- package/dist/js/core/components/functional/interactive/action.js +96 -0
- package/dist/js/core/components/functional/interactive/action.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gamepad.js +206 -0
- package/dist/js/core/components/functional/interactive/gamepad.js.map +1 -0
- package/dist/js/core/components/functional/interactive/gesture.js +148 -0
- package/dist/js/core/components/functional/interactive/gesture.js.map +1 -0
- package/dist/js/core/components/functional/interactive/helpers.js +82 -0
- package/dist/js/core/components/functional/interactive/helpers.js.map +1 -0
- package/dist/js/core/components/functional/interactive/index.js +20 -0
- package/dist/js/core/components/functional/interactive/index.js.map +1 -0
- package/dist/js/core/components/functional/interactive/keyboard.js +183 -0
- package/dist/js/core/components/functional/interactive/keyboard.js.map +1 -0
- package/dist/js/core/components/functional/interactive/matrix.js +201 -0
- package/dist/js/core/components/functional/interactive/matrix.js.map +1 -0
- package/dist/js/core/components/functional/interactive/registry.js +28 -0
- package/dist/js/core/components/functional/interactive/registry.js.map +1 -0
- package/dist/js/core/components/functional/interactive/store.js +264 -0
- package/dist/js/core/components/functional/interactive/store.js.map +1 -0
- package/dist/js/core/components/functional/interactive/ticker.js +182 -0
- package/dist/js/core/components/functional/interactive/ticker.js.map +1 -0
- package/dist/js/core/components/functional/value/value.js +49 -4
- package/dist/js/core/components/functional/value/value.js.map +1 -1
- package/dist/js/core/components/ui/_css/rounded.js +34 -0
- package/dist/js/core/components/ui/_css/rounded.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +44 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -1
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js +95 -0
- package/dist/js/core/components/ui/_i18n/ui-aria-labels.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +72 -87
- package/dist/js/core/components/ui/alert/alert.js.map +1 -1
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -1
- package/dist/js/core/components/ui/badge/badge.js +29 -80
- package/dist/js/core/components/ui/badge/badge.js.map +1 -1
- package/dist/js/core/components/ui/button/button.js +8 -7
- package/dist/js/core/components/ui/button/button.js.map +1 -1
- package/dist/js/core/components/ui/card/card-header.js +7 -2
- package/dist/js/core/components/ui/card/card-header.js.map +1 -1
- package/dist/js/core/components/ui/divider/divider.js +1 -1
- package/dist/js/core/components/ui/divider/divider.js.map +1 -1
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +4 -20
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +1 -1
- package/dist/js/core/components/ui/form/fieldset/legend.js +1 -1
- package/dist/js/core/components/ui/form/input/input.js +12 -15
- package/dist/js/core/components/ui/form/input/input.js.map +1 -1
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +363 -158
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -1
- package/dist/js/core/components/ui/form/radio/radio.js +1 -1
- package/dist/js/core/components/ui/form/select/select.js +3 -6
- package/dist/js/core/components/ui/form/select/select.js.map +1 -1
- package/dist/js/core/components/ui/form/textarea/textarea.js +1 -2
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -1
- package/dist/js/core/components/ui/image/image.js +9 -37
- package/dist/js/core/components/ui/image/image.js.map +1 -1
- package/dist/js/core/components/ui/link/link.js +25 -26
- package/dist/js/core/components/ui/link/link.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal-close.js +3 -12
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -1
- package/dist/js/core/components/ui/modal/modal.js +18 -18
- package/dist/js/core/components/ui/modal/modal.js.map +1 -1
- package/dist/js/core/components/ui/pop/pop.js +131 -112
- package/dist/js/core/components/ui/pop/pop.js.map +1 -1
- package/dist/js/core/components/ui/table/table.js.map +1 -1
- package/dist/js/core/components/ui/theme/theme.js +1 -1
- package/dist/js/core/components/ui/toast/dismissed.js +9 -0
- package/dist/js/core/components/ui/toast/dismissed.js.map +1 -0
- package/dist/js/core/components/ui/toast/render-content.js +14 -0
- package/dist/js/core/components/ui/toast/render-content.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +150 -96
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -1
- package/dist/js/core/components/ui/toast/toast.js +41 -13
- package/dist/js/core/components/ui/toast/toast.js.map +1 -1
- package/dist/js/core/components/ui/tooltip/tooltip.js +144 -143
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -1
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -1
- package/dist/js/core/decorators/subscriber/derive.js +3 -1
- package/dist/js/core/decorators/subscriber/derive.js.map +1 -1
- package/dist/js/core/mixins/Fetcher.js.map +1 -1
- package/dist/js/core/mixins/FormCheckable.js +1 -8
- package/dist/js/core/mixins/FormCheckable.js.map +1 -1
- package/dist/js/core/mixins/FormElement.js +26 -53
- package/dist/js/core/mixins/FormElement.js.map +1 -1
- package/dist/js/core/utils/AncestorAttributeObserver.js +130 -55
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -1
- package/dist/js/core/utils/LocationHandler.js +1 -1
- package/dist/js/core/utils/LocationHandler.js.map +1 -1
- package/dist/js/core/utils/dismissed.js +23 -0
- package/dist/js/core/utils/dismissed.js.map +1 -0
- package/dist/js/core/utils/positioning.js +110 -0
- package/dist/js/core/utils/positioning.js.map +1 -0
- package/dist/js/directives.js +1 -2
- package/dist/js/directives.js.map +1 -1
- package/dist/types/addons/interactive.d.ts +6 -0
- package/dist/types/addons/interactive.d.ts.map +1 -0
- package/dist/types/core/components/functional/if/if.d.ts +14 -5
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -1
- package/dist/types/core/components/functional/interactive/action.d.ts +22 -0
- package/dist/types/core/components/functional/interactive/action.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/gamepad.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts +26 -0
- package/dist/types/core/components/functional/interactive/gesture.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/helpers.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/index.d.ts +20 -0
- package/dist/types/core/components/functional/interactive/index.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts +37 -0
- package/dist/types/core/components/functional/interactive/keyboard.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts +31 -0
- package/dist/types/core/components/functional/interactive/matrix.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts +23 -0
- package/dist/types/core/components/functional/interactive/registry.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/store.d.ts +46 -0
- package/dist/types/core/components/functional/interactive/store.d.ts.map +1 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts +33 -0
- package/dist/types/core/components/functional/interactive/ticker.d.ts.map +1 -0
- package/dist/types/core/components/functional/value/value.d.ts +6 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -1
- package/dist/types/core/components/ui/_css/rounded.d.ts +3 -0
- package/dist/types/core/components/ui/_css/rounded.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +13 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -1
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts +83 -0
- package/dist/types/core/components/ui/_i18n/ui-aria-labels.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +14 -12
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -1
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts +1 -1
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -1
- package/dist/types/core/components/ui/button/button.d.ts +13 -29
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -1
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -1
- package/dist/types/core/components/ui/divider/divider.d.ts +2 -1
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +25 -73
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input/input.d.ts +14 -29
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +63 -65
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/radio/radio.d.ts +1 -1
- package/dist/types/core/components/ui/form/select/select.d.ts +3 -5
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -1
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +12 -28
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -1
- package/dist/types/core/components/ui/image/image.d.ts +2 -1
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -1
- package/dist/types/core/components/ui/link/link.d.ts +10 -9
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -1
- package/dist/types/core/components/ui/modal/modal-close.d.ts +2 -2
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -1
- package/dist/types/core/components/ui/pop/pop.d.ts +12 -4
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -1
- package/dist/types/core/components/ui/table/table.d.ts +2 -1
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/dismissed.d.ts +3 -0
- package/dist/types/core/components/ui/toast/dismissed.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts +7 -0
- package/dist/types/core/components/ui/toast/render-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +26 -9
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/toast.d.ts +6 -3
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -1
- package/dist/types/core/components/ui/toast/types.d.ts +12 -2
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -1
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +19 -11
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +3 -4
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -1
- package/dist/types/core/decorators/subscriber/derive.d.ts.map +1 -1
- package/dist/types/core/mixins/FormCheckable.d.ts +10 -27
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -1
- package/dist/types/core/mixins/FormElement.d.ts +21 -10
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -1
- package/dist/types/core/mixins/FormInput.d.ts +11 -27
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -1
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +17 -9
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -1
- package/dist/types/core/utils/LocationHandler.d.ts +3 -2
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -1
- package/dist/types/core/utils/dismissed.d.ts +3 -0
- package/dist/types/core/utils/dismissed.d.ts.map +1 -0
- package/dist/types/core/utils/positioning.d.ts +44 -0
- package/dist/types/core/utils/positioning.d.ts.map +1 -0
- package/dist/types/directives.d.ts +1 -3
- package/dist/types/directives.d.ts.map +1 -1
- package/dist/types/mixins.d.ts +22 -55
- package/dist/types/mixins.d.ts.map +1 -1
- package/docs/assets/{index-FmK4JaIM.js → index-D8MVWqY6.js} +946 -687
- package/docs/assets/index-DiD0qYvE.css +1 -0
- package/docs/crawl/core/components/ui/form/input-autocomplete/input-autocomplete.html +17 -85
- package/docs/crawl/docs/_misc/formelement-subscriber-removal.html +1 -1
- package/docs/crawl/hubs/form-components.html +13 -11
- package/docs/docs-mock-api-sw.js +5 -1
- package/docs/docs-mock-api-sw.js.map +2 -2
- package/docs/index.html +2 -2
- package/docs/llms-full.txt +12 -38
- package/docs/llms.txt +1 -1
- package/docs/src/core/components/functional/sdui/sdui.md +0 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/docs/src/docs/_getting-started/create-a-component.md +0 -0
- package/docs/src/docs/_misc/formelement-subscriber-removal.md +1 -1
- package/docs/src/docs/search/docs-search.json +195 -200
- package/docs/src/tsconfig.json +324 -0
- package/gitlab/job_tests.sh +25 -12
- package/index.html +3 -3
- package/package.json +181 -9
- package/public/docs-mock-api-sw.js +5 -1
- package/public/docs-mock-api-sw.js.map +2 -2
- package/scripts/build-addons.mjs +2 -2
- package/scripts/post-build.mjs +9 -0
- package/src/addons/interactive.ts +5 -0
- package/src/core/components/functional/if/if.ts +54 -7
- package/src/core/components/functional/interactive/action.ts +84 -0
- package/src/core/components/functional/interactive/gamepad.ts +197 -0
- package/src/core/components/functional/interactive/gesture.ts +136 -0
- package/src/core/components/functional/interactive/helpers.spec.ts +50 -0
- package/src/core/components/functional/interactive/helpers.ts +97 -0
- package/src/core/components/functional/interactive/index.ts +25 -0
- package/src/core/components/functional/interactive/interactive.md +33 -0
- package/src/core/components/functional/interactive/keyboard.ts +171 -0
- package/src/core/components/functional/interactive/matrix.ts +185 -0
- package/src/core/components/functional/interactive/registry.ts +46 -0
- package/src/core/components/functional/interactive/store.ts +264 -0
- package/src/core/components/functional/interactive/ticker.ts +171 -0
- package/src/core/components/functional/list/list.ts +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.ts +44 -4
- package/src/core/components/ui/_css/rounded.ts +36 -0
- package/src/core/components/ui/_css/type.ts +49 -0
- package/src/core/components/ui/_i18n/ui-aria-labels.ts +104 -0
- package/src/core/components/ui/alert/alert.md +128 -72
- package/src/core/components/ui/alert/alert.spec.ts +145 -0
- package/src/core/components/ui/alert/alert.ts +86 -91
- package/src/core/components/ui/alert-messages/alert-messages.ts +1 -1
- package/src/core/components/ui/badge/badge.md +126 -78
- package/src/core/components/ui/badge/badge.ts +29 -81
- package/src/core/components/ui/button/button.md +1 -0
- package/src/core/components/ui/button/button.ts +12 -10
- package/src/core/components/ui/card/card-header.ts +7 -2
- package/src/core/components/ui/card/card.md +120 -65
- package/src/core/components/ui/divider/divider.ts +4 -9
- package/src/core/components/ui/form/checkbox/checkbox.md +1 -1
- package/src/core/components/ui/form/checkbox/checkbox.ts +4 -20
- package/src/core/components/ui/form/fieldset/legend-description.ts +1 -1
- package/src/core/components/ui/form/fieldset/legend.ts +1 -1
- package/src/core/components/ui/form/input/input.md +1 -1
- package/src/core/components/ui/form/input/input.ts +25 -27
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +14 -118
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +419 -187
- package/src/core/components/ui/form/radio/radio.ts +1 -1
- package/src/core/components/ui/form/select/select.ts +3 -6
- package/src/core/components/ui/form/textarea/textarea.md +1 -1
- package/src/core/components/ui/form/textarea/textarea.ts +1 -2
- package/src/core/components/ui/image/image.md +147 -53
- package/src/core/components/ui/image/image.ts +10 -44
- package/src/core/components/ui/link/link.md +2 -2
- package/src/core/components/ui/link/link.ts +42 -37
- package/src/core/components/ui/modal/modal-close.ts +8 -12
- package/src/core/components/ui/modal/modal.ts +18 -18
- package/src/core/components/ui/pop/pop.md +105 -1
- package/src/core/components/ui/pop/pop.ts +145 -141
- package/src/core/components/ui/table/table.ts +2 -8
- package/src/core/components/ui/theme/theme.ts +1 -1
- package/src/core/components/ui/toast/dismissed.ts +14 -0
- package/src/core/components/ui/toast/render-content.ts +13 -0
- package/src/core/components/ui/toast/toast-item.ts +179 -103
- package/src/core/components/ui/toast/toast.ts +58 -21
- package/src/core/components/ui/toast/types.ts +14 -2
- package/src/core/components/ui/tooltip/tooltip.ts +176 -154
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +26 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +3 -4
- package/src/core/decorators/subscriber/derive.ts +3 -3
- package/src/core/mixins/Fetcher.ts +1 -1
- package/src/core/mixins/FormCheckable.ts +1 -8
- package/src/core/mixins/FormElement.ts +74 -76
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/utils/AncestorAttributeObserver.ts +183 -70
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/LocationHandler.ts +12 -5
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/dismissed.ts +22 -0
- package/src/core/utils/positioning.spec.ts +208 -0
- package/src/core/utils/positioning.ts +183 -0
- package/src/directives.ts +1 -3
- package/src/docs/_core-concept/dataFlow.md +1 -1
- package/src/docs/_decorators/ancestor-attribute.md +3 -2
- package/src/docs/_getting-started/concorde-outside.md +3 -3
- package/src/docs/_misc/formelement-subscriber-removal.md +115 -0
- package/src/docs/_misc/html-integration.md +2 -0
- package/src/docs/code.ts +3 -1
- package/src/docs/components/docs-demo-sources.ts +60 -0
- package/src/docs/docs.ts +1 -0
- package/src/docs/example/docs-input-autocomplete-demos.ts +110 -0
- package/src/docs/mock-api/router.ts +17 -1
- package/src/docs/navigation/navigation.ts +4 -0
- package/src/docs/search/docs-search.json +943 -2033
- package/src/docs/tailwind/css/tailwind.css +13 -6
- package/src/tsconfig.json +135 -6
- package/src/tsconfig.tsbuildinfo +1 -1
- package/tailwind.config.js +50 -3
- package/vite/config.js +23 -35
- package/vite.config.mts +5 -0
- package/vitest.setup.ts +49 -13
- package/docs/assets/index-BZiZXMU-.css +0 -1
|
@@ -6,21 +6,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
};
|
|
7
7
|
import { html, LitElement, css, nothing } from "lit";
|
|
8
8
|
import { customElement, property, state } from "lit/decorators.js";
|
|
9
|
-
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
10
9
|
import "@supersoniks/concorde/core/components/ui/toast/types";
|
|
10
|
+
import { renderToastContent } from "@supersoniks/concorde/core/components/ui/toast/render-content";
|
|
11
|
+
import { normalizeStyleSheets } from "@supersoniks/concorde/core/components/ui/modal/modal-utils";
|
|
11
12
|
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
12
13
|
import { HTML } from "@supersoniks/concorde/utils";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
info: "info-empty",
|
|
18
|
-
};
|
|
14
|
+
import { isToastDismissed, markToastDismissed, } from "@supersoniks/concorde/core/components/ui/toast/dismissed";
|
|
15
|
+
import { resolveToastCloseLabel } from "@supersoniks/concorde/core/components/ui/_i18n/ui-aria-labels";
|
|
16
|
+
import { statusAriaLive, statusAriaRole, statusColor, statusIcon, toStatus, } from "@supersoniks/concorde/core/components/ui/_css/type";
|
|
17
|
+
const AUTO_HIDE_DELAY = 6000;
|
|
19
18
|
const tagName = "sonic-toast-item";
|
|
20
19
|
let SonicToastItem = class SonicToastItem extends LitElement {
|
|
21
20
|
constructor() {
|
|
22
21
|
super(...arguments);
|
|
23
|
-
this.
|
|
22
|
+
this.label = "";
|
|
24
23
|
this.id = "";
|
|
25
24
|
this.text = "";
|
|
26
25
|
this.status = "";
|
|
@@ -28,8 +27,57 @@ let SonicToastItem = class SonicToastItem extends LitElement {
|
|
|
28
27
|
this.preserve = false;
|
|
29
28
|
this.dismissForever = false;
|
|
30
29
|
this.maxHeight = "10rem";
|
|
30
|
+
this.useSlot = false;
|
|
31
31
|
this.visible = true;
|
|
32
32
|
this._titleId = "";
|
|
33
|
+
this._dismissed = false;
|
|
34
|
+
this._adoptedStyleSheets = [];
|
|
35
|
+
this._hideRemaining = AUTO_HIDE_DELAY;
|
|
36
|
+
this._hideStartedAt = 0;
|
|
37
|
+
this._hovered = false;
|
|
38
|
+
this._focused = false;
|
|
39
|
+
this._hidden = false;
|
|
40
|
+
this._onMouseEnter = () => {
|
|
41
|
+
this._hovered = true;
|
|
42
|
+
this._syncHideTimer();
|
|
43
|
+
};
|
|
44
|
+
this._onMouseLeave = () => {
|
|
45
|
+
this._hovered = false;
|
|
46
|
+
this._syncHideTimer();
|
|
47
|
+
};
|
|
48
|
+
this._onFocusIn = () => {
|
|
49
|
+
this._focused = true;
|
|
50
|
+
this._syncHideTimer();
|
|
51
|
+
};
|
|
52
|
+
this._onFocusOut = (e) => {
|
|
53
|
+
if (this.contains(e.relatedTarget))
|
|
54
|
+
return;
|
|
55
|
+
this._focused = false;
|
|
56
|
+
this._syncHideTimer();
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
connectedCallback() {
|
|
60
|
+
super.connectedCallback();
|
|
61
|
+
this.addEventListener("mouseenter", this._onMouseEnter);
|
|
62
|
+
this.addEventListener("mouseleave", this._onMouseLeave);
|
|
63
|
+
this.addEventListener("focusin", this._onFocusIn);
|
|
64
|
+
this.addEventListener("focusout", this._onFocusOut);
|
|
65
|
+
}
|
|
66
|
+
disconnectedCallback() {
|
|
67
|
+
this._clearHideTimer();
|
|
68
|
+
this.removeEventListener("mouseenter", this._onMouseEnter);
|
|
69
|
+
this.removeEventListener("mouseleave", this._onMouseLeave);
|
|
70
|
+
this.removeEventListener("focusin", this._onFocusIn);
|
|
71
|
+
this.removeEventListener("focusout", this._onFocusOut);
|
|
72
|
+
super.disconnectedCallback();
|
|
73
|
+
}
|
|
74
|
+
willUpdate(changedProperties) {
|
|
75
|
+
if (changedProperties.has("dismissForever") ||
|
|
76
|
+
changedProperties.has("id")) {
|
|
77
|
+
this._dismissed =
|
|
78
|
+
this.dismissForever && !!this.id && isToastDismissed(this.id);
|
|
79
|
+
}
|
|
80
|
+
super.willUpdate(changedProperties);
|
|
33
81
|
}
|
|
34
82
|
// @queryAssignedElements({flatten: true, slot: main"})
|
|
35
83
|
// textSlot!: HTMLElement[];
|
|
@@ -39,7 +87,7 @@ let SonicToastItem = class SonicToastItem extends LitElement {
|
|
|
39
87
|
* - "status" pour les autres (messages informatifs)
|
|
40
88
|
*/
|
|
41
89
|
getAriaRole() {
|
|
42
|
-
return this.status
|
|
90
|
+
return statusAriaRole(toStatus(this.status) ?? "default");
|
|
43
91
|
}
|
|
44
92
|
/**
|
|
45
93
|
* Retourne la valeur aria-live appropriée selon le statut
|
|
@@ -47,7 +95,7 @@ let SonicToastItem = class SonicToastItem extends LitElement {
|
|
|
47
95
|
* - "polite" pour les autres (peut attendre)
|
|
48
96
|
*/
|
|
49
97
|
getAriaLive() {
|
|
50
|
-
return this.status
|
|
98
|
+
return statusAriaLive(toStatus(this.status) ?? "default");
|
|
51
99
|
}
|
|
52
100
|
/**
|
|
53
101
|
* Génère et mémorise un ID unique pour le titre du toast
|
|
@@ -61,50 +109,27 @@ let SonicToastItem = class SonicToastItem extends LitElement {
|
|
|
61
109
|
: `toast-title-${Date.now()}-${Math.random().toString(36).slice(2, 11)}`;
|
|
62
110
|
return this._titleId;
|
|
63
111
|
}
|
|
64
|
-
/**
|
|
65
|
-
* Génère un label ARIA descriptif pour le bouton de fermeture
|
|
66
|
-
*/
|
|
67
|
-
getCloseButtonLabel() {
|
|
68
|
-
const statusLabels = {
|
|
69
|
-
error: "Fermer le message d'erreur",
|
|
70
|
-
warning: "Fermer l'avertissement",
|
|
71
|
-
success: "Fermer le message de succès",
|
|
72
|
-
info: "Fermer l'information",
|
|
73
|
-
};
|
|
74
|
-
const statusLabel = this.status
|
|
75
|
-
? statusLabels[this.status] || "Fermer la notification"
|
|
76
|
-
: "Fermer la notification";
|
|
77
|
-
return statusLabel;
|
|
78
|
-
}
|
|
79
112
|
render() {
|
|
80
|
-
|
|
81
|
-
if (this.dismissForever) {
|
|
82
|
-
const dismissed = localStorage.getItem("sonic-toast-dismissed") || "{}";
|
|
83
|
-
const dismissedObj = JSON.parse(dismissed);
|
|
84
|
-
if (dismissedObj[this.id]) {
|
|
85
|
-
return nothing;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
if (!this.visible) {
|
|
113
|
+
if (this._dismissed || !this.visible) {
|
|
89
114
|
return nothing;
|
|
90
115
|
}
|
|
91
|
-
const titleId = this.
|
|
116
|
+
const titleId = this.label ? this.getTitleId() : undefined;
|
|
92
117
|
// Extrait un label pour aria-label si pas de titre, en essayant de couper proprement
|
|
93
|
-
const ariaLabel = !this.
|
|
118
|
+
const ariaLabel = !this.label && typeof this.text === "string"
|
|
94
119
|
? this.text.length > 100
|
|
95
120
|
? this.text.substring(0, 100).replace(/\s+\S*$/, "") + "..."
|
|
96
121
|
: this.text
|
|
97
122
|
: undefined;
|
|
98
123
|
const ariaLive = this.getAriaLive();
|
|
99
124
|
return html `<div
|
|
100
|
-
class="sonic-toast ${this.
|
|
125
|
+
class="sonic-toast ${this.ghost ? "ghost" : ""}"
|
|
101
126
|
role=${this.getAriaRole()}
|
|
102
127
|
aria-live=${ariaLive || nothing}
|
|
103
128
|
aria-atomic="true"
|
|
104
129
|
aria-label=${ariaLabel || nothing}
|
|
105
130
|
>
|
|
106
131
|
<button
|
|
107
|
-
aria-label=${this.
|
|
132
|
+
aria-label=${resolveToastCloseLabel(this.status)}
|
|
108
133
|
class="sonic-toast-close"
|
|
109
134
|
@click=${() => this.hide()}
|
|
110
135
|
>
|
|
@@ -116,50 +141,96 @@ let SonicToastItem = class SonicToastItem extends LitElement {
|
|
|
116
141
|
>
|
|
117
142
|
${this.status &&
|
|
118
143
|
html `<sonic-icon
|
|
119
|
-
name=${
|
|
144
|
+
name=${statusIcon[toStatus(this.status) ?? "default"]}
|
|
120
145
|
class="sonic-toast-icon"
|
|
121
|
-
size="
|
|
146
|
+
size="xl"
|
|
122
147
|
aria-hidden="true"
|
|
123
148
|
></sonic-icon>`}
|
|
124
149
|
|
|
125
150
|
<div class="sonic-toast-text">
|
|
126
|
-
${this.
|
|
151
|
+
${this.label
|
|
127
152
|
? html `<div class="sonic-toast-title" id=${titleId}>
|
|
128
|
-
${this.
|
|
153
|
+
${renderToastContent(this.label)}
|
|
129
154
|
</div>`
|
|
130
155
|
: ""}
|
|
131
|
-
${this.
|
|
156
|
+
${this.useSlot ? nothing : renderToastContent(this.text)}
|
|
132
157
|
<slot></slot>
|
|
133
158
|
</div>
|
|
134
|
-
|
|
135
|
-
${!this.preserve ? this.autoHide() : ""}
|
|
136
159
|
</div>
|
|
137
160
|
</div>`;
|
|
138
161
|
}
|
|
162
|
+
updated(_changedProperties) {
|
|
163
|
+
if (_changedProperties.has("styleSheet")) {
|
|
164
|
+
this.syncAdoptedStyleSheets();
|
|
165
|
+
}
|
|
166
|
+
if (_changedProperties.has("preserve") ||
|
|
167
|
+
_changedProperties.has("visible") ||
|
|
168
|
+
_changedProperties.has("_dismissed")) {
|
|
169
|
+
this._syncHideTimer();
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
syncAdoptedStyleSheets() {
|
|
173
|
+
if (!(this.renderRoot instanceof ShadowRoot))
|
|
174
|
+
return;
|
|
175
|
+
const nextStyleSheets = normalizeStyleSheets(this.styleSheet);
|
|
176
|
+
const currentStyleSheets = this.renderRoot.adoptedStyleSheets.filter((sheet) => !this._adoptedStyleSheets.includes(sheet));
|
|
177
|
+
this.renderRoot.adoptedStyleSheets = [
|
|
178
|
+
...currentStyleSheets,
|
|
179
|
+
...nextStyleSheets,
|
|
180
|
+
];
|
|
181
|
+
this._adoptedStyleSheets = nextStyleSheets;
|
|
182
|
+
}
|
|
139
183
|
hide() {
|
|
184
|
+
this._clearHideTimer();
|
|
185
|
+
this._hidden = true;
|
|
140
186
|
if (!HTML.getClosestElement(this, "sonic-toast")) {
|
|
141
187
|
this.visible = false;
|
|
142
188
|
}
|
|
143
189
|
if (this.dismissForever) {
|
|
144
|
-
|
|
145
|
-
const dismissed = localStorage.getItem("sonic-toast-dismissed") || "{}";
|
|
146
|
-
const dismissedObj = JSON.parse(dismissed);
|
|
147
|
-
dismissedObj[this.id] = true;
|
|
148
|
-
localStorage.setItem("sonic-toast-dismissed", JSON.stringify(dismissedObj));
|
|
190
|
+
markToastDismissed(this.id);
|
|
149
191
|
}
|
|
150
192
|
this.dispatchEvent(new CustomEvent("hide", { bubbles: true }));
|
|
151
193
|
}
|
|
152
194
|
show() {
|
|
195
|
+
this._hidden = false;
|
|
196
|
+
this._hideRemaining = AUTO_HIDE_DELAY;
|
|
153
197
|
this.visible = true;
|
|
198
|
+
this._syncHideTimer();
|
|
154
199
|
}
|
|
155
|
-
|
|
156
|
-
|
|
200
|
+
_syncHideTimer() {
|
|
201
|
+
const shouldRun = !this.preserve &&
|
|
202
|
+
this.visible &&
|
|
203
|
+
!this._hidden &&
|
|
204
|
+
!this._dismissed &&
|
|
205
|
+
!this._hovered &&
|
|
206
|
+
!this._focused;
|
|
207
|
+
if (!shouldRun) {
|
|
208
|
+
this._pauseHideTimer();
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
if (this._hideTimer)
|
|
212
|
+
return;
|
|
213
|
+
this._hideStartedAt = Date.now();
|
|
214
|
+
this._hideTimer = setTimeout(() => {
|
|
215
|
+
this._hideTimer = undefined;
|
|
157
216
|
this.hide();
|
|
158
|
-
},
|
|
217
|
+
}, this._hideRemaining);
|
|
218
|
+
}
|
|
219
|
+
_pauseHideTimer() {
|
|
220
|
+
if (!this._hideTimer)
|
|
221
|
+
return;
|
|
222
|
+
clearTimeout(this._hideTimer);
|
|
223
|
+
this._hideTimer = undefined;
|
|
224
|
+
this._hideRemaining = Math.max(0, this._hideRemaining - (Date.now() - this._hideStartedAt));
|
|
225
|
+
}
|
|
226
|
+
_clearHideTimer() {
|
|
227
|
+
clearTimeout(this._hideTimer);
|
|
228
|
+
this._hideTimer = undefined;
|
|
159
229
|
}
|
|
160
230
|
};
|
|
161
231
|
SonicToastItem.styles = [
|
|
162
232
|
customScroll,
|
|
233
|
+
statusColor,
|
|
163
234
|
css `
|
|
164
235
|
* {
|
|
165
236
|
box-sizing: border-box;
|
|
@@ -168,7 +239,6 @@ SonicToastItem.styles = [
|
|
|
168
239
|
display: block;
|
|
169
240
|
pointer-events: auto;
|
|
170
241
|
position: relative;
|
|
171
|
-
--sc-toast-status-color: transparent;
|
|
172
242
|
--sc-toast-color: var(--sc-base-content, #000);
|
|
173
243
|
--sc-toast-bg: var(--sc-base, #fff);
|
|
174
244
|
--sc-toast-rounded: var(--sc-rounded-md);
|
|
@@ -189,14 +259,13 @@ SonicToastItem.styles = [
|
|
|
189
259
|
pointer-events: auto;
|
|
190
260
|
overflow: hidden;
|
|
191
261
|
line-height: 1.25;
|
|
192
|
-
color: var(--sc-toast-color);
|
|
193
262
|
box-shadow: var(--sc-toast-shadow);
|
|
194
263
|
border-radius: var(--sc-toast-rounded);
|
|
195
264
|
background: var(--sc-toast-bg);
|
|
196
265
|
}
|
|
197
266
|
|
|
198
267
|
.sonic-toast-content {
|
|
199
|
-
padding:
|
|
268
|
+
padding: 0.8em 2.25rem 0.8em 0.8em;
|
|
200
269
|
display: flex;
|
|
201
270
|
gap: 0.5rem;
|
|
202
271
|
overflow: auto;
|
|
@@ -204,6 +273,7 @@ SonicToastItem.styles = [
|
|
|
204
273
|
}
|
|
205
274
|
|
|
206
275
|
.sonic-toast-text {
|
|
276
|
+
color: var(--sc-toast-color);
|
|
207
277
|
align-self: center;
|
|
208
278
|
margin-top: auto;
|
|
209
279
|
margin-bottom: auto;
|
|
@@ -251,6 +321,7 @@ SonicToastItem.styles = [
|
|
|
251
321
|
border-radius: 50%;
|
|
252
322
|
text-align: center;
|
|
253
323
|
opacity: 0.5;
|
|
324
|
+
color: var(--sc-toast-color);
|
|
254
325
|
background: rgba(0, 0, 0, 0);
|
|
255
326
|
}
|
|
256
327
|
|
|
@@ -270,39 +341,21 @@ SonicToastItem.styles = [
|
|
|
270
341
|
/*Title*/
|
|
271
342
|
.sonic-toast-title {
|
|
272
343
|
font-weight: bold;
|
|
273
|
-
font-size: 1.
|
|
274
|
-
margin: 0.15em 0 0.
|
|
344
|
+
font-size: 1.125rem;
|
|
345
|
+
margin: 0.15em 0 0.15em;
|
|
275
346
|
line-height: 1.2;
|
|
276
347
|
}
|
|
277
348
|
|
|
278
|
-
/*STATUS*/
|
|
279
|
-
.
|
|
280
|
-
|
|
281
|
-
--sc-success,
|
|
282
|
-
var(--sc-base-content, #000)
|
|
283
|
-
);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.error {
|
|
287
|
-
--sc-toast-status-color: var(--sc-danger, var(--sc-base-content, #000));
|
|
288
|
-
}
|
|
289
|
-
|
|
290
|
-
.warning {
|
|
291
|
-
--sc-toast-status-color: var(
|
|
292
|
-
--sc-warning,
|
|
293
|
-
var(--sc-base-content, #000)
|
|
294
|
-
);
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.info {
|
|
298
|
-
--sc-toast-status-color: var(--sc-info, var(--sc-base-content, #000));
|
|
349
|
+
/*STATUS — accent via statusColor (--sc-_color) */
|
|
350
|
+
:host([status]) .sonic-toast {
|
|
351
|
+
border-top: 3px solid var(--sc-_color);
|
|
299
352
|
}
|
|
300
353
|
|
|
301
|
-
.
|
|
302
|
-
.
|
|
303
|
-
.
|
|
304
|
-
|
|
305
|
-
|
|
354
|
+
:host([status="success"]) .sonic-toast:before,
|
|
355
|
+
:host([status="error"]) .sonic-toast:before,
|
|
356
|
+
:host([status="info"]) .sonic-toast:before,
|
|
357
|
+
:host([status="warning"]) .sonic-toast:before {
|
|
358
|
+
background-color: var(--sc-_color);
|
|
306
359
|
}
|
|
307
360
|
|
|
308
361
|
.sonic-toast:before {
|
|
@@ -317,20 +370,12 @@ SonicToastItem.styles = [
|
|
|
317
370
|
pointer-events: none;
|
|
318
371
|
transition: 0.2s;
|
|
319
372
|
border-radius: var(--sc-toast-rounded);
|
|
320
|
-
background-color: var(--sc-toast-status-color);
|
|
321
373
|
}
|
|
322
374
|
|
|
323
375
|
.sonic-toast:hover:before {
|
|
324
376
|
opacity: 0.025;
|
|
325
377
|
}
|
|
326
378
|
|
|
327
|
-
.info .sonic-toast-icon,
|
|
328
|
-
.error .sonic-toast-icon,
|
|
329
|
-
.success .sonic-toast-icon,
|
|
330
|
-
.warning .sonic-toast-icon {
|
|
331
|
-
color: var(--sc-toast-status-color, currentColor);
|
|
332
|
-
}
|
|
333
|
-
|
|
334
379
|
.sonic-toast-icon {
|
|
335
380
|
position: sticky;
|
|
336
381
|
top: 0;
|
|
@@ -343,16 +388,16 @@ SonicToastItem.styles = [
|
|
|
343
388
|
`,
|
|
344
389
|
];
|
|
345
390
|
__decorate([
|
|
346
|
-
property(
|
|
347
|
-
], SonicToastItem.prototype, "
|
|
391
|
+
property()
|
|
392
|
+
], SonicToastItem.prototype, "label", void 0);
|
|
348
393
|
__decorate([
|
|
349
394
|
property({ type: String })
|
|
350
395
|
], SonicToastItem.prototype, "id", void 0);
|
|
351
396
|
__decorate([
|
|
352
|
-
property(
|
|
397
|
+
property()
|
|
353
398
|
], SonicToastItem.prototype, "text", void 0);
|
|
354
399
|
__decorate([
|
|
355
|
-
property({ type: String })
|
|
400
|
+
property({ type: String, reflect: true })
|
|
356
401
|
], SonicToastItem.prototype, "status", void 0);
|
|
357
402
|
__decorate([
|
|
358
403
|
property({ type: Boolean })
|
|
@@ -366,12 +411,21 @@ __decorate([
|
|
|
366
411
|
__decorate([
|
|
367
412
|
property({ type: String })
|
|
368
413
|
], SonicToastItem.prototype, "maxHeight", void 0);
|
|
414
|
+
__decorate([
|
|
415
|
+
property({ type: Boolean })
|
|
416
|
+
], SonicToastItem.prototype, "useSlot", void 0);
|
|
417
|
+
__decorate([
|
|
418
|
+
property({ attribute: false })
|
|
419
|
+
], SonicToastItem.prototype, "styleSheet", void 0);
|
|
369
420
|
__decorate([
|
|
370
421
|
state()
|
|
371
422
|
], SonicToastItem.prototype, "visible", void 0);
|
|
372
423
|
__decorate([
|
|
373
424
|
state()
|
|
374
425
|
], SonicToastItem.prototype, "_titleId", void 0);
|
|
426
|
+
__decorate([
|
|
427
|
+
state()
|
|
428
|
+
], SonicToastItem.prototype, "_dismissed", void 0);
|
|
375
429
|
SonicToastItem = __decorate([
|
|
376
430
|
customElement(tagName)
|
|
377
431
|
], SonicToastItem);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast-item.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast-item.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"toast-item.js","sourceRoot":"","sources":["../../../../../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,KAAK,EAAE;gDAA+B;AACtB;IAAhB,KAAK,EAAE;kDAA4B;AA7KzB,cAAc;IAD1B,aAAa,CAAC,OAAO,CAAC;GACV,cAAc,CAmZ1B"}
|
|
@@ -12,9 +12,23 @@ import { animate } from "@lit-labs/motion";
|
|
|
12
12
|
import Objects from "@supersoniks/concorde/core/utils/Objects";
|
|
13
13
|
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
14
14
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
15
|
-
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
16
15
|
import { styleMap } from "lit/directives/style-map.js";
|
|
17
16
|
import "@supersoniks/concorde/core/components/ui/toast/toast-item";
|
|
17
|
+
import { renderToastContent } from "@supersoniks/concorde/core/components/ui/toast/render-content";
|
|
18
|
+
import { isToastDismissed } from "@supersoniks/concorde/core/components/ui/toast/dismissed";
|
|
19
|
+
let deprecatedTitleWarned = false;
|
|
20
|
+
function resolveToastLabel(conf) {
|
|
21
|
+
if (conf.label !== undefined)
|
|
22
|
+
return conf.label;
|
|
23
|
+
if (conf.title !== undefined) {
|
|
24
|
+
if (!deprecatedTitleWarned) {
|
|
25
|
+
deprecatedTitleWarned = true;
|
|
26
|
+
console.warn("[concorde] Toast.title est déprécié, utiliser Toast.label.");
|
|
27
|
+
}
|
|
28
|
+
return conf.title;
|
|
29
|
+
}
|
|
30
|
+
return undefined;
|
|
31
|
+
}
|
|
18
32
|
import { Theme } from "@supersoniks/concorde/core/components/ui/theme/theme";
|
|
19
33
|
import { sonicClassPrefix } from "@supersoniks/concorde/core/utils/Utils";
|
|
20
34
|
const tagName = "sonic-toast";
|
|
@@ -43,7 +57,7 @@ let SonicToast = SonicToast_1 = class SonicToast extends LitElement {
|
|
|
43
57
|
bottom: "1.25rem",
|
|
44
58
|
right: "1.25rem",
|
|
45
59
|
zIndex: "10000",
|
|
46
|
-
maxWidth: "
|
|
60
|
+
maxWidth: "45ch",
|
|
47
61
|
flexDirection: "column-reverse",
|
|
48
62
|
};
|
|
49
63
|
}
|
|
@@ -56,7 +70,10 @@ let SonicToast = SonicToast_1 = class SonicToast extends LitElement {
|
|
|
56
70
|
<sonic-toast-item
|
|
57
71
|
maxHeight=${isIframe ? "none" : "10rem"}
|
|
58
72
|
status=${ifDefined(item.status)}
|
|
59
|
-
|
|
73
|
+
.label=${resolveToastLabel(item)}
|
|
74
|
+
.text=${item.useSlot ? undefined : item.text}
|
|
75
|
+
.styleSheet=${item.styleSheet}
|
|
76
|
+
?useSlot=${item.useSlot}
|
|
60
77
|
?ghost=${item.ghost}
|
|
61
78
|
?dismissForever=${item.dismissForever}
|
|
62
79
|
?preserve=${item.preserve}
|
|
@@ -85,8 +102,7 @@ let SonicToast = SonicToast_1 = class SonicToast extends LitElement {
|
|
|
85
102
|
stabilizeOut: true,
|
|
86
103
|
})}
|
|
87
104
|
>
|
|
88
|
-
|
|
89
|
-
${item.text ? unsafeHTML(item.text) : ""}
|
|
105
|
+
${item.useSlot ? renderToastContent(item.text) : nothing}
|
|
90
106
|
</sonic-toast-item>
|
|
91
107
|
`)}
|
|
92
108
|
</div>`;
|
|
@@ -114,6 +130,17 @@ let SonicToast = SonicToast_1 = class SonicToast extends LitElement {
|
|
|
114
130
|
// Filtrer pour garder seulement les toasts qui ne correspondent pas au statut donné
|
|
115
131
|
toastComponent.toasts = toastComponent.toasts.filter((toast) => toast.status !== status);
|
|
116
132
|
}
|
|
133
|
+
static removeItemById(id) {
|
|
134
|
+
if (SonicToast_1.delegateToasts) {
|
|
135
|
+
SonicToast_1.handleExistingToastDelegation();
|
|
136
|
+
window.parent.postMessage({ type: "removeItemById", id }, "*");
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const toastComponent = SonicToast_1.getInstance();
|
|
140
|
+
if (!toastComponent)
|
|
141
|
+
return;
|
|
142
|
+
toastComponent.toasts = toastComponent.toasts.filter((toast) => toast.id !== id);
|
|
143
|
+
}
|
|
117
144
|
// retire les items qui ne sont pas en preserve
|
|
118
145
|
static removeTemporaryItems() {
|
|
119
146
|
if (SonicToast_1.delegateToasts) {
|
|
@@ -144,23 +171,21 @@ let SonicToast = SonicToast_1 = class SonicToast extends LitElement {
|
|
|
144
171
|
// Ajoute le toast à la liste
|
|
145
172
|
const nextId = conf.id ?? new Date().valueOf();
|
|
146
173
|
const interactiveRegExp = new RegExp("</a>|</.*?button>|</.*?input>|</.*?textarea>|</.*?select>");
|
|
147
|
-
const hasInteractive = interactiveRegExp.test(conf.text);
|
|
174
|
+
const hasInteractive = typeof conf.text === "string" && interactiveRegExp.test(conf.text);
|
|
148
175
|
const currentToast = {
|
|
149
176
|
id: nextId,
|
|
150
177
|
text: conf.text,
|
|
151
|
-
|
|
178
|
+
label: resolveToastLabel(conf),
|
|
152
179
|
status: conf.status,
|
|
153
180
|
preserve: hasInteractive ? true : conf.preserve,
|
|
154
181
|
ghost: conf.ghost,
|
|
155
182
|
dismissForever: conf.dismissForever,
|
|
183
|
+
styleSheet: conf.styleSheet,
|
|
184
|
+
useSlot: conf.useSlot,
|
|
156
185
|
};
|
|
157
186
|
// check if the toast is dismissed
|
|
158
|
-
if (conf.dismissForever && conf.id) {
|
|
159
|
-
|
|
160
|
-
const dismissedObj = JSON.parse(dismissed);
|
|
161
|
-
if (dismissedObj[conf.id]) {
|
|
162
|
-
return null;
|
|
163
|
-
}
|
|
187
|
+
if (conf.dismissForever && conf.id && isToastDismissed(conf.id)) {
|
|
188
|
+
return null;
|
|
164
189
|
}
|
|
165
190
|
if (toastComponent?.toasts.length) {
|
|
166
191
|
const toastA = { ...currentToast };
|
|
@@ -230,6 +255,9 @@ function handleIframeContexts() {
|
|
|
230
255
|
if (e.data.type == "removeItemsByStatus") {
|
|
231
256
|
SonicToast.removeItemsByStatus(e.data.status);
|
|
232
257
|
}
|
|
258
|
+
if (e.data.type == "removeItemById") {
|
|
259
|
+
SonicToast.removeItemById(e.data.id);
|
|
260
|
+
}
|
|
233
261
|
if (e.data.type == "removeTemporaryItems") {
|
|
234
262
|
SonicToast.removeTemporaryItems();
|
|
235
263
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,oDAAoD,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"toast.js","sourceRoot":"","sources":["../../../../../../src/core/components/ui/toast/toast.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,KAAK,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,oDAAoD,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAa,MAAM,6BAA6B,CAAC;AAClE,OAAO,2DAA2D,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+DAA+D,CAAC;AACnG,OAAO,EAAE,gBAAgB,EAAE,MAAM,0DAA0D,CAAC;AAO5F,IAAI,qBAAqB,GAAG,KAAK,CAAC;AAElC,SAAS,iBA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