@supersoniks/concorde 4.8.0 → 4.9.0
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/.github/workflows/ci.yml +21 -0
- package/.github-export-ignore +30 -0
- package/.gitlab-ci.yml +13 -0
- package/CONTRIBUTING.md +59 -0
- package/DEV.md +54 -0
- package/LICENSE +21 -0
- package/OPEN_SOURCE_CHECKPOINT.md +133 -0
- package/README.md +29 -15
- package/build-infos.json +1 -1
- package/concorde-core.bundle.js +249 -249
- package/concorde-core.es.js +3692 -3601
- package/dist/concorde-core.bundle.js +249 -249
- package/dist/concorde-core.es.js +3692 -3601
- package/dist/js/components.js +12 -0
- package/dist/js/components.js.map +1 -0
- package/dist/js/concorde-loaded.js +5 -0
- package/dist/js/concorde-loaded.js.map +1 -0
- package/dist/js/core/_types/endpoint.js +5 -0
- package/dist/js/core/_types/endpoint.js.map +1 -0
- package/dist/js/core/_types/key.js +2 -0
- package/dist/js/core/_types/key.js.map +1 -0
- package/dist/js/core/_types/types.js +3 -0
- package/dist/js/core/_types/types.js.map +1 -0
- package/dist/js/core/components/functional/date/date.js +272 -0
- package/dist/js/core/components/functional/date/date.js.map +1 -0
- package/dist/js/core/components/functional/example/example.js +44 -0
- package/dist/js/core/components/functional/example/example.js.map +1 -0
- package/dist/js/core/components/functional/fetch/fetch.js +79 -0
- package/dist/js/core/components/functional/fetch/fetch.js.map +1 -0
- package/dist/js/core/components/functional/functional.js +17 -0
- package/dist/js/core/components/functional/functional.js.map +1 -0
- package/dist/js/core/components/functional/if/if.js +39 -0
- package/dist/js/core/components/functional/if/if.js.map +1 -0
- package/dist/js/core/components/functional/list/list.js +341 -0
- package/dist/js/core/components/functional/list/list.js.map +1 -0
- package/dist/js/core/components/functional/mix/mix.js +103 -0
- package/dist/js/core/components/functional/mix/mix.js.map +1 -0
- package/dist/js/core/components/functional/queue/queue.js +386 -0
- package/dist/js/core/components/functional/queue/queue.js.map +1 -0
- package/dist/js/core/components/functional/router/redirect.js +54 -0
- package/dist/js/core/components/functional/router/redirect.js.map +1 -0
- package/dist/js/core/components/functional/router/router.js +179 -0
- package/dist/js/core/components/functional/router/router.js.map +1 -0
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js +216 -0
- package/dist/js/core/components/functional/sdui/SDUIDescriptorTransformer.js.map +1 -0
- package/dist/js/core/components/functional/sdui/default-library.json +108 -0
- package/dist/js/core/components/functional/sdui/sdui-utils.js +64 -0
- package/dist/js/core/components/functional/sdui/sdui-utils.js.map +1 -0
- package/dist/js/core/components/functional/sdui/sdui.js +266 -0
- package/dist/js/core/components/functional/sdui/sdui.js.map +1 -0
- package/dist/js/core/components/functional/sdui/types.js +2 -0
- package/dist/js/core/components/functional/sdui/types.js.map +1 -0
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js +22 -0
- package/dist/js/core/components/functional/sonic-scope/sonic-scope.js.map +1 -0
- package/dist/js/core/components/functional/states/states.js +172 -0
- package/dist/js/core/components/functional/states/states.js.map +1 -0
- package/dist/js/core/components/functional/submit/submit.js +284 -0
- package/dist/js/core/components/functional/submit/submit.js.map +1 -0
- package/dist/js/core/components/functional/subscriber/subscriber.js +39 -0
- package/dist/js/core/components/functional/subscriber/subscriber.js.map +1 -0
- package/dist/js/core/components/functional/translation/translation.js +28 -0
- package/dist/js/core/components/functional/translation/translation.js.map +1 -0
- package/dist/js/core/components/functional/value/value.js +28 -0
- package/dist/js/core/components/functional/value/value.js.map +1 -0
- package/dist/js/core/components/ui/_css/scroll.js +25 -0
- package/dist/js/core/components/ui/_css/scroll.js.map +1 -0
- package/dist/js/core/components/ui/_css/shadow.js +22 -0
- package/dist/js/core/components/ui/_css/shadow.js.map +1 -0
- package/dist/js/core/components/ui/_css/size.js +36 -0
- package/dist/js/core/components/ui/_css/size.js.map +1 -0
- package/dist/js/core/components/ui/_css/type.js +92 -0
- package/dist/js/core/components/ui/_css/type.js.map +1 -0
- package/dist/js/core/components/ui/alert/alert.js +213 -0
- package/dist/js/core/components/ui/alert/alert.js.map +1 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js +68 -0
- package/dist/js/core/components/ui/alert-messages/alert-messages.js.map +1 -0
- package/dist/js/core/components/ui/badge/badge.js +199 -0
- package/dist/js/core/components/ui/badge/badge.js.map +1 -0
- package/dist/js/core/components/ui/button/button.js +697 -0
- package/dist/js/core/components/ui/button/button.js.map +1 -0
- package/dist/js/core/components/ui/captcha/altchaStyles.js +226 -0
- package/dist/js/core/components/ui/captcha/altchaStyles.js.map +1 -0
- package/dist/js/core/components/ui/captcha/captcha.js +167 -0
- package/dist/js/core/components/ui/captcha/captcha.js.map +1 -0
- package/dist/js/core/components/ui/card/card-footer.js +26 -0
- package/dist/js/core/components/ui/card/card-footer.js.map +1 -0
- package/dist/js/core/components/ui/card/card-header-descripton.js +30 -0
- package/dist/js/core/components/ui/card/card-header-descripton.js.map +1 -0
- package/dist/js/core/components/ui/card/card-header.js +79 -0
- package/dist/js/core/components/ui/card/card-header.js.map +1 -0
- package/dist/js/core/components/ui/card/card-main.js +26 -0
- package/dist/js/core/components/ui/card/card-main.js.map +1 -0
- package/dist/js/core/components/ui/card/card.js +67 -0
- package/dist/js/core/components/ui/card/card.js.map +1 -0
- package/dist/js/core/components/ui/divider/divider.js +200 -0
- package/dist/js/core/components/ui/divider/divider.js.map +1 -0
- package/dist/js/core/components/ui/form/checkbox/checkbox.js +257 -0
- package/dist/js/core/components/ui/form/checkbox/checkbox.js.map +1 -0
- package/dist/js/core/components/ui/form/css/form-control.js +393 -0
- package/dist/js/core/components/ui/form/css/form-control.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/fieldset.js +124 -0
- package/dist/js/core/components/ui/form/fieldset/fieldset.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/legend-description.js +38 -0
- package/dist/js/core/components/ui/form/fieldset/legend-description.js.map +1 -0
- package/dist/js/core/components/ui/form/fieldset/legend.js +130 -0
- package/dist/js/core/components/ui/form/fieldset/legend.js.map +1 -0
- package/dist/js/core/components/ui/form/form-actions/form-actions.js +47 -0
- package/dist/js/core/components/ui/form/form-actions/form-actions.js.map +1 -0
- package/dist/js/core/components/ui/form/form-layout/form-layout.js +84 -0
- package/dist/js/core/components/ui/form/form-layout/form-layout.js.map +1 -0
- package/dist/js/core/components/ui/form/input/input.js +316 -0
- package/dist/js/core/components/ui/form/input/input.js.map +1 -0
- package/dist/js/core/components/ui/form/input/password-helper.js +134 -0
- package/dist/js/core/components/ui/form/input/password-helper.js.map +1 -0
- package/dist/js/core/components/ui/form/input/same-value-helper.js +85 -0
- package/dist/js/core/components/ui/form/input/same-value-helper.js.map +1 -0
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js +405 -0
- package/dist/js/core/components/ui/form/input-autocomplete/input-autocomplete.js.map +1 -0
- package/dist/js/core/components/ui/form/radio/radio.js +63 -0
- package/dist/js/core/components/ui/form/radio/radio.js.map +1 -0
- package/dist/js/core/components/ui/form/select/select.js +323 -0
- package/dist/js/core/components/ui/form/select/select.js.map +1 -0
- package/dist/js/core/components/ui/form/switch/switch.js +90 -0
- package/dist/js/core/components/ui/form/switch/switch.js.map +1 -0
- package/dist/js/core/components/ui/form/textarea/textarea.js +162 -0
- package/dist/js/core/components/ui/form/textarea/textarea.js.map +1 -0
- package/dist/js/core/components/ui/group/group.js +128 -0
- package/dist/js/core/components/ui/group/group.js.map +1 -0
- package/dist/js/core/components/ui/icon/icon.js +129 -0
- package/dist/js/core/components/ui/icon/icon.js.map +1 -0
- package/dist/js/core/components/ui/icon/icons.js +163 -0
- package/dist/js/core/components/ui/icon/icons.js.map +1 -0
- package/dist/js/core/components/ui/icon/icons.json +1 -0
- package/dist/js/core/components/ui/image/image.js +160 -0
- package/dist/js/core/components/ui/image/image.js.map +1 -0
- package/dist/js/core/components/ui/link/link.js +125 -0
- package/dist/js/core/components/ui/link/link.js.map +1 -0
- package/dist/js/core/components/ui/loader/loader.js +106 -0
- package/dist/js/core/components/ui/loader/loader.js.map +1 -0
- package/dist/js/core/components/ui/loader/styles/fixed.js +56 -0
- package/dist/js/core/components/ui/loader/styles/fixed.js.map +1 -0
- package/dist/js/core/components/ui/loader/styles/inline.js +70 -0
- package/dist/js/core/components/ui/loader/styles/inline.js.map +1 -0
- package/dist/js/core/components/ui/menu/menu-item.js +35 -0
- package/dist/js/core/components/ui/menu/menu-item.js.map +1 -0
- package/dist/js/core/components/ui/menu/menu.js +436 -0
- package/dist/js/core/components/ui/menu/menu.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-actions.js +44 -0
- package/dist/js/core/components/ui/modal/modal-actions.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-close.js +56 -0
- package/dist/js/core/components/ui/modal/modal-close.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-content.js +27 -0
- package/dist/js/core/components/ui/modal/modal-content.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-subtitle.js +34 -0
- package/dist/js/core/components/ui/modal/modal-subtitle.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-title.js +35 -0
- package/dist/js/core/components/ui/modal/modal-title.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal-utils.js +32 -0
- package/dist/js/core/components/ui/modal/modal-utils.js.map +1 -0
- package/dist/js/core/components/ui/modal/modal.js +568 -0
- package/dist/js/core/components/ui/modal/modal.js.map +1 -0
- package/dist/js/core/components/ui/pop/pop.js +337 -0
- package/dist/js/core/components/ui/pop/pop.js.map +1 -0
- package/dist/js/core/components/ui/progress/progress.js +164 -0
- package/dist/js/core/components/ui/progress/progress.js.map +1 -0
- package/dist/js/core/components/ui/table/table-caption.js +29 -0
- package/dist/js/core/components/ui/table/table-caption.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tbody.js +41 -0
- package/dist/js/core/components/ui/table/table-tbody.js.map +1 -0
- package/dist/js/core/components/ui/table/table-td.js +69 -0
- package/dist/js/core/components/ui/table/table-td.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tfoot.js +28 -0
- package/dist/js/core/components/ui/table/table-tfoot.js.map +1 -0
- package/dist/js/core/components/ui/table/table-th.js +80 -0
- package/dist/js/core/components/ui/table/table-th.js.map +1 -0
- package/dist/js/core/components/ui/table/table-thead.js +26 -0
- package/dist/js/core/components/ui/table/table-thead.js.map +1 -0
- package/dist/js/core/components/ui/table/table-tr.js +67 -0
- package/dist/js/core/components/ui/table/table-tr.js.map +1 -0
- package/dist/js/core/components/ui/table/table.js +106 -0
- package/dist/js/core/components/ui/table/table.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js +74 -0
- package/dist/js/core/components/ui/theme/theme-collection/core-variables.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/dark.js +39 -0
- package/dist/js/core/components/ui/theme/theme-collection/dark.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme-collection/light.js +32 -0
- package/dist/js/core/components/ui/theme/theme-collection/light.js.map +1 -0
- package/dist/js/core/components/ui/theme/theme.js +150 -0
- package/dist/js/core/components/ui/theme/theme.js.map +1 -0
- package/dist/js/core/components/ui/toast/message-subscriber.js +41 -0
- package/dist/js/core/components/ui/toast/message-subscriber.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast-item.js +379 -0
- package/dist/js/core/components/ui/toast/toast-item.js.map +1 -0
- package/dist/js/core/components/ui/toast/toast.js +269 -0
- package/dist/js/core/components/ui/toast/toast.js.map +1 -0
- package/dist/js/core/components/ui/toast/types.js +2 -0
- package/dist/js/core/components/ui/toast/types.js.map +1 -0
- package/dist/js/core/components/ui/tooltip/tooltip.js +219 -0
- package/dist/js/core/components/ui/tooltip/tooltip.js.map +1 -0
- package/dist/js/core/components/ui/ui.js +41 -0
- package/dist/js/core/components/ui/ui.js.map +1 -0
- package/dist/js/core/core.js +14 -0
- package/dist/js/core/core.js.map +1 -0
- package/dist/js/core/decorators/Subscriber.js +9 -0
- package/dist/js/core/decorators/Subscriber.js.map +1 -0
- package/dist/js/core/decorators/api.js +559 -0
- package/dist/js/core/decorators/api.js.map +1 -0
- package/dist/js/core/decorators/lifecycle.js +67 -0
- package/dist/js/core/decorators/lifecycle.js.map +1 -0
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js +27 -0
- package/dist/js/core/decorators/subscriber/ancestorAttribute.js.map +1 -0
- package/dist/js/core/decorators/subscriber/autoFill.js +26 -0
- package/dist/js/core/decorators/subscriber/autoFill.js.map +1 -0
- package/dist/js/core/decorators/subscriber/autoSubscribe.js +46 -0
- package/dist/js/core/decorators/subscriber/autoSubscribe.js.map +1 -0
- package/dist/js/core/decorators/subscriber/bind.js +150 -0
- package/dist/js/core/decorators/subscriber/bind.js.map +1 -0
- package/dist/js/core/decorators/subscriber/common.js +44 -0
- package/dist/js/core/decorators/subscriber/common.js.map +1 -0
- package/dist/js/core/decorators/subscriber/dynamicPath.js +75 -0
- package/dist/js/core/decorators/subscriber/dynamicPath.js.map +1 -0
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js +138 -0
- package/dist/js/core/decorators/subscriber/dynamicPropertyWatch.js.map +1 -0
- package/dist/js/core/decorators/subscriber/handle.js +22 -0
- package/dist/js/core/decorators/subscriber/handle.js.map +1 -0
- package/dist/js/core/decorators/subscriber/onAssign.js +199 -0
- package/dist/js/core/decorators/subscriber/onAssign.js.map +1 -0
- package/dist/js/core/decorators/subscriber/publish.js +108 -0
- package/dist/js/core/decorators/subscriber/publish.js.map +1 -0
- package/dist/js/core/decorators/subscriber/publisherPath.js +16 -0
- package/dist/js/core/decorators/subscriber/publisherPath.js.map +1 -0
- package/dist/js/core/decorators/subscriber/subscribe.js +20 -0
- package/dist/js/core/decorators/subscriber/subscribe.js.map +1 -0
- package/dist/js/core/directives/DataProvider.js +127 -0
- package/dist/js/core/directives/DataProvider.js.map +1 -0
- package/dist/js/core/directives/Wording.js +221 -0
- package/dist/js/core/directives/Wording.js.map +1 -0
- package/dist/js/core/mixins/Fetcher.js +325 -0
- package/dist/js/core/mixins/Fetcher.js.map +1 -0
- package/dist/js/core/mixins/FormCheckable.js +313 -0
- package/dist/js/core/mixins/FormCheckable.js.map +1 -0
- package/dist/js/core/mixins/FormElement.js +304 -0
- package/dist/js/core/mixins/FormElement.js.map +1 -0
- package/dist/js/core/mixins/FormInput.js +82 -0
- package/dist/js/core/mixins/FormInput.js.map +1 -0
- package/dist/js/core/mixins/Subscriber.js +354 -0
- package/dist/js/core/mixins/Subscriber.js.map +1 -0
- package/dist/js/core/mixins/TemplatesContainer.js +70 -0
- package/dist/js/core/mixins/TemplatesContainer.js.map +1 -0
- package/dist/js/core/mixins/mixins.js +7 -0
- package/dist/js/core/mixins/mixins.js.map +1 -0
- package/dist/js/core/utils/AncestorAttributeObserver.js +140 -0
- package/dist/js/core/utils/AncestorAttributeObserver.js.map +1 -0
- package/dist/js/core/utils/Arrays.js +141 -0
- package/dist/js/core/utils/Arrays.js.map +1 -0
- package/dist/js/core/utils/DataBindObserver.js +265 -0
- package/dist/js/core/utils/DataBindObserver.js.map +1 -0
- package/dist/js/core/utils/Electron.js +14 -0
- package/dist/js/core/utils/Electron.js.map +1 -0
- package/dist/js/core/utils/Format.js +43 -0
- package/dist/js/core/utils/Format.js.map +1 -0
- package/dist/js/core/utils/HTML.js +248 -0
- package/dist/js/core/utils/HTML.js.map +1 -0
- package/dist/js/core/utils/LocationHandler.js +143 -0
- package/dist/js/core/utils/LocationHandler.js.map +1 -0
- package/dist/js/core/utils/Objects.js +111 -0
- package/dist/js/core/utils/Objects.js.map +1 -0
- package/dist/js/core/utils/PublisherProxy.js +946 -0
- package/dist/js/core/utils/PublisherProxy.js.map +1 -0
- package/dist/js/core/utils/Utils.js +19 -0
- package/dist/js/core/utils/Utils.js.map +1 -0
- package/dist/js/core/utils/aesCrypto.js +98 -0
- package/dist/js/core/utils/aesCrypto.js.map +1 -0
- package/dist/js/core/utils/api.js +574 -0
- package/dist/js/core/utils/api.js.map +1 -0
- package/dist/js/core/utils/dataProviderKey.js +64 -0
- package/dist/js/core/utils/dataProviderKey.js.map +1 -0
- package/dist/js/core/utils/endpoint.js +74 -0
- package/dist/js/core/utils/endpoint.js.map +1 -0
- package/dist/js/core/utils/route.js +149 -0
- package/dist/js/core/utils/route.js.map +1 -0
- package/dist/js/core/utils/url-pattern.js +3 -0
- package/dist/js/core/utils/url-pattern.js.map +1 -0
- package/dist/js/dataprovider.js +2 -0
- package/dist/js/dataprovider.js.map +1 -0
- package/dist/js/decorators.js +39 -0
- package/dist/js/decorators.js.map +1 -0
- package/dist/js/directives.js +30 -0
- package/dist/js/directives.js.map +1 -0
- package/dist/js/index.js +8 -0
- package/dist/js/index.js.map +1 -0
- package/dist/js/mixins.js +23 -0
- package/dist/js/mixins.js.map +1 -0
- package/dist/js/test-utils/TestUtils.js +10 -0
- package/dist/js/test-utils/TestUtils.js.map +1 -0
- package/dist/js/utils.js +41 -0
- package/dist/js/utils.js.map +1 -0
- package/dist/types/components.d.ts +5 -0
- package/dist/types/components.d.ts.map +1 -0
- package/dist/types/concorde-loaded.d.ts +2 -0
- package/dist/types/concorde-loaded.d.ts.map +1 -0
- package/dist/types/core/_types/endpoint.d.ts +5 -0
- package/dist/types/core/_types/endpoint.d.ts.map +1 -0
- package/dist/types/core/_types/key.d.ts +2 -0
- package/dist/types/core/_types/key.d.ts.map +1 -0
- package/dist/types/core/_types/types.d.ts +28 -0
- package/dist/types/core/_types/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/date/date.d.ts +52 -0
- package/dist/types/core/components/functional/date/date.d.ts.map +1 -0
- package/dist/types/core/components/functional/example/example.d.ts +15 -0
- package/dist/types/core/components/functional/example/example.d.ts.map +1 -0
- package/dist/types/core/components/functional/fetch/fetch.d.ts +102 -0
- package/dist/types/core/components/functional/fetch/fetch.d.ts.map +1 -0
- package/dist/types/core/components/functional/functional.d.ts +17 -0
- package/dist/types/core/components/functional/functional.d.ts.map +1 -0
- package/dist/types/core/components/functional/if/if.d.ts +13 -0
- package/dist/types/core/components/functional/if/if.d.ts.map +1 -0
- package/dist/types/core/components/functional/list/list.d.ts +149 -0
- package/dist/types/core/components/functional/list/list.d.ts.map +1 -0
- package/dist/types/core/components/functional/mix/mix.d.ts +23 -0
- package/dist/types/core/components/functional/mix/mix.d.ts.map +1 -0
- package/dist/types/core/components/functional/queue/queue.d.ts +79 -0
- package/dist/types/core/components/functional/queue/queue.d.ts.map +1 -0
- package/dist/types/core/components/functional/router/redirect.d.ts +19 -0
- package/dist/types/core/components/functional/router/redirect.d.ts.map +1 -0
- package/dist/types/core/components/functional/router/router.d.ts +46 -0
- package/dist/types/core/components/functional/router/router.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +59 -0
- package/dist/types/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts +6 -0
- package/dist/types/core/components/functional/sdui/sdui-utils.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/sdui.d.ts +145 -0
- package/dist/types/core/components/functional/sdui/sdui.d.ts.map +1 -0
- package/dist/types/core/components/functional/sdui/types.d.ts +38 -0
- package/dist/types/core/components/functional/sdui/types.d.ts.map +1 -0
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts +6 -0
- package/dist/types/core/components/functional/sonic-scope/sonic-scope.d.ts.map +1 -0
- package/dist/types/core/components/functional/states/states.d.ts +42 -0
- package/dist/types/core/components/functional/states/states.d.ts.map +1 -0
- package/dist/types/core/components/functional/submit/submit.d.ts +37 -0
- package/dist/types/core/components/functional/submit/submit.d.ts.map +1 -0
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts +13 -0
- package/dist/types/core/components/functional/subscriber/subscriber.d.ts.map +1 -0
- package/dist/types/core/components/functional/translation/translation.d.ts +7 -0
- package/dist/types/core/components/functional/translation/translation.d.ts.map +1 -0
- package/dist/types/core/components/functional/value/value.d.ts +8 -0
- package/dist/types/core/components/functional/value/value.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/scroll.d.ts +2 -0
- package/dist/types/core/components/ui/_css/scroll.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/shadow.d.ts +3 -0
- package/dist/types/core/components/ui/_css/shadow.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/size.d.ts +3 -0
- package/dist/types/core/components/ui/_css/size.d.ts.map +1 -0
- package/dist/types/core/components/ui/_css/type.d.ts +3 -0
- package/dist/types/core/components/ui/_css/type.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert/alert.d.ts +37 -0
- package/dist/types/core/components/ui/alert/alert.d.ts.map +1 -0
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts +15 -0
- package/dist/types/core/components/ui/alert-messages/alert-messages.d.ts.map +1 -0
- package/dist/types/core/components/ui/badge/badge.d.ts +27 -0
- package/dist/types/core/components/ui/badge/badge.d.ts.map +1 -0
- package/dist/types/core/components/ui/button/button.d.ts +180 -0
- package/dist/types/core/components/ui/button/button.d.ts.map +1 -0
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts +2 -0
- package/dist/types/core/components/ui/captcha/altchaStyles.d.ts.map +1 -0
- package/dist/types/core/components/ui/captcha/captcha.d.ts +30 -0
- package/dist/types/core/components/ui/captcha/captcha.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-footer.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-footer.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-header-descripton.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-header.d.ts +9 -0
- package/dist/types/core/components/ui/card/card-header.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card-main.d.ts +6 -0
- package/dist/types/core/components/ui/card/card-main.d.ts.map +1 -0
- package/dist/types/core/components/ui/card/card.d.ts +13 -0
- package/dist/types/core/components/ui/card/card.d.ts.map +1 -0
- package/dist/types/core/components/ui/divider/divider.d.ts +16 -0
- package/dist/types/core/components/ui/divider/divider.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts +176 -0
- package/dist/types/core/components/ui/form/checkbox/checkbox.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/css/form-control.d.ts +5 -0
- package/dist/types/core/components/ui/form/css/form-control.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts +24 -0
- package/dist/types/core/components/ui/form/fieldset/fieldset.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts +6 -0
- package/dist/types/core/components/ui/form/fieldset/legend-description.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts +17 -0
- package/dist/types/core/components/ui/form/fieldset/legend.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts +8 -0
- package/dist/types/core/components/ui/form/form-actions/form-actions.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts +13 -0
- package/dist/types/core/components/ui/form/form-layout/form-layout.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/input.d.ts +123 -0
- package/dist/types/core/components/ui/form/input/input.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/password-helper.d.ts +26 -0
- package/dist/types/core/components/ui/form/input/password-helper.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts +17 -0
- package/dist/types/core/components/ui/form/input/same-value-helper.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +155 -0
- package/dist/types/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/radio/radio.d.ts +15 -0
- package/dist/types/core/components/ui/form/radio/radio.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/select/select.d.ts +59 -0
- package/dist/types/core/components/ui/form/select/select.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/switch/switch.d.ts +6 -0
- package/dist/types/core/components/ui/form/switch/switch.d.ts.map +1 -0
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts +94 -0
- package/dist/types/core/components/ui/form/textarea/textarea.d.ts.map +1 -0
- package/dist/types/core/components/ui/group/group.d.ts +17 -0
- package/dist/types/core/components/ui/group/group.d.ts.map +1 -0
- package/dist/types/core/components/ui/icon/icon.d.ts +28 -0
- package/dist/types/core/components/ui/icon/icon.d.ts.map +1 -0
- package/dist/types/core/components/ui/icon/icons.d.ts +11 -0
- package/dist/types/core/components/ui/icon/icons.d.ts.map +1 -0
- package/dist/types/core/components/ui/image/image.d.ts +16 -0
- package/dist/types/core/components/ui/image/image.d.ts.map +1 -0
- package/dist/types/core/components/ui/link/link.d.ts +30 -0
- package/dist/types/core/components/ui/link/link.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/loader.d.ts +24 -0
- package/dist/types/core/components/ui/loader/loader.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts +2 -0
- package/dist/types/core/components/ui/loader/styles/fixed.d.ts.map +1 -0
- package/dist/types/core/components/ui/loader/styles/inline.d.ts +2 -0
- package/dist/types/core/components/ui/loader/styles/inline.d.ts.map +1 -0
- package/dist/types/core/components/ui/menu/menu-item.d.ts +6 -0
- package/dist/types/core/components/ui/menu/menu-item.d.ts.map +1 -0
- package/dist/types/core/components/ui/menu/menu.d.ts +52 -0
- package/dist/types/core/components/ui/menu/menu.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-actions.d.ts +9 -0
- package/dist/types/core/components/ui/modal/modal-actions.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-close.d.ts +11 -0
- package/dist/types/core/components/ui/modal/modal-close.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-content.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-content.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-subtitle.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-title.d.ts +6 -0
- package/dist/types/core/components/ui/modal/modal-title.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal-utils.d.ts +4 -0
- package/dist/types/core/components/ui/modal/modal-utils.d.ts.map +1 -0
- package/dist/types/core/components/ui/modal/modal.d.ts +79 -0
- package/dist/types/core/components/ui/modal/modal.d.ts.map +1 -0
- package/dist/types/core/components/ui/pop/pop.d.ts +42 -0
- package/dist/types/core/components/ui/pop/pop.d.ts.map +1 -0
- package/dist/types/core/components/ui/progress/progress.d.ts +12 -0
- package/dist/types/core/components/ui/progress/progress.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-caption.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-caption.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tbody.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-tbody.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-td.d.ts +13 -0
- package/dist/types/core/components/ui/table/table-td.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tfoot.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-tfoot.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-th.d.ts +12 -0
- package/dist/types/core/components/ui/table/table-th.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-thead.d.ts +6 -0
- package/dist/types/core/components/ui/table/table-thead.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table-tr.d.ts +14 -0
- package/dist/types/core/components/ui/table/table-tr.d.ts.map +1 -0
- package/dist/types/core/components/ui/table/table.d.ts +18 -0
- package/dist/types/core/components/ui/table/table.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/core-variables.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/dark.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts +2 -0
- package/dist/types/core/components/ui/theme/theme-collection/light.d.ts.map +1 -0
- package/dist/types/core/components/ui/theme/theme.d.ts +20 -0
- package/dist/types/core/components/ui/theme/theme.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts +19 -0
- package/dist/types/core/components/ui/toast/message-subscriber.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts +41 -0
- package/dist/types/core/components/ui/toast/toast-item.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/toast.d.ts +28 -0
- package/dist/types/core/components/ui/toast/toast.d.ts.map +1 -0
- package/dist/types/core/components/ui/toast/types.d.ts +12 -0
- package/dist/types/core/components/ui/toast/types.d.ts.map +1 -0
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts +21 -0
- package/dist/types/core/components/ui/tooltip/tooltip.d.ts.map +1 -0
- package/dist/types/core/components/ui/ui.d.ts +35 -0
- package/dist/types/core/components/ui/ui.d.ts.map +1 -0
- package/dist/types/core/core.d.ts +5 -0
- package/dist/types/core/core.d.ts.map +1 -0
- package/dist/types/core/decorators/Subscriber.d.ts +11 -0
- package/dist/types/core/decorators/Subscriber.d.ts.map +1 -0
- package/dist/types/core/decorators/api.d.ts +106 -0
- package/dist/types/core/decorators/api.d.ts.map +1 -0
- package/dist/types/core/decorators/lifecycle.d.ts +19 -0
- package/dist/types/core/decorators/lifecycle.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts +11 -0
- package/dist/types/core/decorators/subscriber/ancestorAttribute.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/autoFill.d.ts +2 -0
- package/dist/types/core/decorators/subscriber/autoFill.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts +2 -0
- package/dist/types/core/decorators/subscriber/autoSubscribe.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/bind.d.ts +28 -0
- package/dist/types/core/decorators/subscriber/bind.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/common.d.ts +14 -0
- package/dist/types/core/decorators/subscriber/common.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts +23 -0
- package/dist/types/core/decorators/subscriber/dynamicPath.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts +42 -0
- package/dist/types/core/decorators/subscriber/dynamicPropertyWatch.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/handle.d.ts +74 -0
- package/dist/types/core/decorators/subscriber/handle.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/onAssign.d.ts +53 -0
- package/dist/types/core/decorators/subscriber/onAssign.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/publish.d.ts +23 -0
- package/dist/types/core/decorators/subscriber/publish.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts +3 -0
- package/dist/types/core/decorators/subscriber/publisherPath.d.ts.map +1 -0
- package/dist/types/core/decorators/subscriber/subscribe.d.ts +20 -0
- package/dist/types/core/decorators/subscriber/subscribe.d.ts.map +1 -0
- package/dist/types/core/directives/DataProvider.d.ts +45 -0
- package/dist/types/core/directives/DataProvider.d.ts.map +1 -0
- package/dist/types/core/directives/Wording.d.ts +44 -0
- package/dist/types/core/directives/Wording.d.ts.map +1 -0
- package/dist/types/core/mixins/Fetcher.d.ts +108 -0
- package/dist/types/core/mixins/Fetcher.d.ts.map +1 -0
- package/dist/types/core/mixins/FormCheckable.d.ts +95 -0
- package/dist/types/core/mixins/FormCheckable.d.ts.map +1 -0
- package/dist/types/core/mixins/FormElement.d.ts +37 -0
- package/dist/types/core/mixins/FormElement.d.ts.map +1 -0
- package/dist/types/core/mixins/FormInput.d.ts +79 -0
- package/dist/types/core/mixins/FormInput.d.ts.map +1 -0
- package/dist/types/core/mixins/Subscriber.d.ts +38 -0
- package/dist/types/core/mixins/Subscriber.d.ts.map +1 -0
- package/dist/types/core/mixins/TemplatesContainer.d.ts +14 -0
- package/dist/types/core/mixins/TemplatesContainer.d.ts.map +1 -0
- package/dist/types/core/mixins/mixins.d.ts +7 -0
- package/dist/types/core/mixins/mixins.d.ts.map +1 -0
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts +38 -0
- package/dist/types/core/utils/AncestorAttributeObserver.d.ts.map +1 -0
- package/dist/types/core/utils/Arrays.d.ts +98 -0
- package/dist/types/core/utils/Arrays.d.ts.map +1 -0
- package/dist/types/core/utils/DataBindObserver.d.ts +84 -0
- package/dist/types/core/utils/DataBindObserver.d.ts.map +1 -0
- package/dist/types/core/utils/Electron.d.ts +8 -0
- package/dist/types/core/utils/Electron.d.ts.map +1 -0
- package/dist/types/core/utils/Format.d.ts +13 -0
- package/dist/types/core/utils/Format.d.ts.map +1 -0
- package/dist/types/core/utils/HTML.d.ts +64 -0
- package/dist/types/core/utils/HTML.d.ts.map +1 -0
- package/dist/types/core/utils/LocationHandler.d.ts +48 -0
- package/dist/types/core/utils/LocationHandler.d.ts.map +1 -0
- package/dist/types/core/utils/Objects.d.ts +31 -0
- package/dist/types/core/utils/Objects.d.ts.map +1 -0
- package/dist/types/core/utils/PublisherProxy.d.ts +230 -0
- package/dist/types/core/utils/PublisherProxy.d.ts.map +1 -0
- package/dist/types/core/utils/Utils.d.ts +6 -0
- package/dist/types/core/utils/Utils.d.ts.map +1 -0
- package/dist/types/core/utils/aesCrypto.d.ts +53 -0
- package/dist/types/core/utils/aesCrypto.d.ts.map +1 -0
- package/dist/types/core/utils/api.d.ts +173 -0
- package/dist/types/core/utils/api.d.ts.map +1 -0
- package/dist/types/core/utils/dataProviderKey.d.ts +56 -0
- package/dist/types/core/utils/dataProviderKey.d.ts.map +1 -0
- package/dist/types/core/utils/endpoint.d.ts +37 -0
- package/dist/types/core/utils/endpoint.d.ts.map +1 -0
- package/dist/types/core/utils/route.d.ts +41 -0
- package/dist/types/core/utils/route.d.ts.map +1 -0
- package/dist/types/core/utils/url-pattern.d.ts +3 -0
- package/dist/types/core/utils/url-pattern.d.ts.map +1 -0
- package/dist/types/dataprovider.d.ts +2 -0
- package/dist/types/dataprovider.d.ts.map +1 -0
- package/dist/types/decorators.d.ts +28 -0
- package/dist/types/decorators.d.ts.map +1 -0
- package/dist/types/directives.d.ts +21 -0
- package/dist/types/directives.d.ts.map +1 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/mixins.d.ts +204 -0
- package/dist/types/mixins.d.ts.map +1 -0
- package/dist/types/test-utils/TestUtils.d.ts +4 -0
- package/dist/types/test-utils/TestUtils.d.ts.map +1 -0
- package/dist/types/utils.d.ts +17 -0
- package/dist/types/utils.d.ts.map +1 -0
- package/docs/assets/{index-wyNMyWT9.js → index-BEgZEIbv.js} +401 -401
- package/docs/index.html +1 -1
- package/docs/src/core/components/functional/date/date.md +290 -0
- package/docs/src/core/components/functional/fetch/fetch.md +125 -0
- package/docs/src/core/components/functional/if/if.md +9 -0
- package/docs/src/core/components/functional/list/list.md +65 -0
- package/docs/src/core/components/functional/mix/mix.md +41 -0
- package/docs/src/core/components/functional/queue/queue.md +72 -0
- package/docs/src/core/components/functional/router/router.md +94 -0
- package/docs/src/core/components/functional/sdui/default-library.json +108 -0
- package/docs/src/core/components/functional/sdui/example.json +99 -0
- package/docs/src/core/components/functional/sdui/sdui.md +356 -0
- package/docs/src/core/components/functional/states/states.md +87 -0
- package/docs/src/core/components/functional/submit/submit.md +114 -0
- package/docs/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/docs/src/core/components/functional/value/value.md +35 -0
- package/docs/src/core/components/ui/alert/alert.md +121 -0
- package/docs/src/core/components/ui/alert-messages/alert-messages.md +0 -0
- package/docs/src/core/components/ui/badge/badge.md +127 -0
- package/docs/src/core/components/ui/button/button.md +182 -0
- package/docs/src/core/components/ui/captcha/captcha.md +12 -0
- package/docs/src/core/components/ui/card/card.md +97 -0
- package/docs/src/core/components/ui/divider/divider.md +35 -0
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +77 -0
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +44 -0
- package/docs/src/core/components/ui/form/input/input.md +142 -0
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +133 -0
- package/docs/src/core/components/ui/form/radio/radio.md +57 -0
- package/docs/src/core/components/ui/form/select/select.md +71 -0
- package/docs/src/core/components/ui/form/switch/switch.md +57 -0
- package/docs/src/core/components/ui/form/textarea/textarea.md +65 -0
- package/docs/src/core/components/ui/group/group.md +75 -0
- package/docs/src/core/components/ui/icon/icon.md +125 -0
- package/docs/src/core/components/ui/icon/icons.json +1 -0
- package/docs/src/core/components/ui/image/image.md +107 -0
- package/docs/src/core/components/ui/link/link.md +43 -0
- package/docs/src/core/components/ui/loader/loader.md +55 -0
- package/docs/src/core/components/ui/menu/menu.md +329 -0
- package/docs/src/core/components/ui/modal/modal.md +119 -0
- package/docs/src/core/components/ui/pop/pop.md +96 -0
- package/docs/src/core/components/ui/progress/progress.md +63 -0
- package/docs/src/core/components/ui/table/table.md +455 -0
- package/docs/src/core/components/ui/toast/toast.md +166 -0
- package/docs/src/core/components/ui/tooltip/tooltip.md +82 -0
- package/docs/src/docs/_core-concept/dataFlow.md +79 -0
- package/docs/src/docs/_core-concept/overview.md +57 -0
- package/docs/src/docs/_core-concept/subscriber.md +75 -0
- package/docs/src/docs/_decorators/ancestor-attribute.md +79 -0
- package/docs/src/docs/_decorators/auto-subscribe.md +202 -0
- package/docs/src/docs/_decorators/bind.md +167 -0
- package/docs/src/docs/_decorators/get.md +77 -0
- package/docs/src/docs/_decorators/handle.md +175 -0
- package/docs/src/docs/_decorators/on-assign.md +390 -0
- package/docs/src/docs/_decorators/patch.md +45 -0
- package/docs/src/docs/_decorators/post.md +93 -0
- package/docs/src/docs/_decorators/publish.md +55 -0
- package/docs/src/docs/_decorators/put.md +43 -0
- package/docs/src/docs/_decorators/subscribe.md +100 -0
- package/docs/src/docs/_decorators/wait-for-ancestors.md +163 -0
- package/docs/src/docs/_directives/sub.md +91 -0
- package/docs/src/docs/_getting-started/ai-agents.md +56 -0
- package/docs/src/docs/_getting-started/concorde-manual-install.md +133 -0
- package/docs/src/docs/_getting-started/concorde-outside.md +33 -0
- package/docs/src/docs/_getting-started/create-a-component.md +139 -0
- package/docs/src/docs/_getting-started/my-first-component.md +236 -0
- package/docs/src/docs/_getting-started/my-first-subscriber.md +120 -0
- package/docs/src/docs/_getting-started/pubsub.md +37 -0
- package/docs/src/docs/_getting-started/start.md +47 -0
- package/docs/src/docs/_getting-started/theming.md +91 -0
- package/docs/src/docs/_misc/api-configuration.md +81 -0
- package/docs/src/docs/_misc/dataProviderKey.md +168 -0
- package/docs/src/docs/_misc/docs-mock-api.md +60 -0
- package/docs/src/docs/_misc/dynamic-path.md +71 -0
- package/docs/src/docs/_misc/endpoint.md +45 -0
- package/docs/src/docs/_misc/html-integration.md +13 -0
- package/docs/src/docs/search/docs-search.json +9057 -0
- package/docs/src/tag-list.json +1 -0
- package/docs/src/tsconfig-model.json +23 -0
- package/docs/src/tsconfig.json +1119 -0
- package/gitlab/job_github_mirror.sh +39 -0
- package/index.html +0 -1
- package/package.json +1084 -364
- package/scripts/github-export.mjs +150 -0
- package/scripts/post-build.mjs +43 -0
- package/scripts/pre-build.mjs +32 -4
- package/scripts/pre-publish.mjs +2 -0
- package/src/core/components/functional/queue/queue.ts +2 -2
- package/src/core/components/ui/modal/modal.ts +1 -1
- package/src/core/decorators/Subscriber.ts +1 -0
- package/src/core/decorators/api.ts +8 -10
- package/src/core/decorators/subscriber/ancestorAttribute.spec.ts +197 -0
- package/src/core/decorators/subscriber/ancestorAttribute.ts +40 -7
- package/src/core/decorators/subscriber/autoSubscribe.ts +7 -3
- package/src/core/mixins/Fetcher.ts +12 -6
- package/src/core/utils/AncestorAttributeObserver.ts +199 -0
- package/src/core/utils/HTML.ts +3 -11
- package/src/core/utils/PublisherProxy.ts +28 -37
- package/src/core/utils/api.ts +10 -10
- package/src/css.d.ts +19 -0
- package/src/directives.ts +3 -2
- package/src/docs/_decorators/ancestor-attribute.md +56 -8
- package/src/docs/components/docs-demo-sources.ts +13 -1
- package/src/docs/example/decorators-demo.ts +164 -8
- package/src/docs/search/docs-search.json +62 -2
- package/src/tsconfig.declarations.json +22 -0
- package/src/tsconfig.emit.json +23 -0
- package/src/tsconfig.json +3 -285
- package/src/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* Prépare une arborescence « lib publique » pour GitHub :
|
|
4
|
+
* - sans site doc (src/docs, index.html, …)
|
|
5
|
+
* - sans sonic-captcha (altcha.supersoniks.org)
|
|
6
|
+
* - sans scripts / jobs GitLab internes
|
|
7
|
+
*
|
|
8
|
+
* Usage :
|
|
9
|
+
* node scripts/github-export.mjs [répertoire_cible]
|
|
10
|
+
*
|
|
11
|
+
* Par défaut : ../concorde-github-export
|
|
12
|
+
*/
|
|
13
|
+
import fs from "fs";
|
|
14
|
+
import path from "path";
|
|
15
|
+
import { fileURLToPath } from "url";
|
|
16
|
+
|
|
17
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
18
|
+
const ROOT = path.resolve(__dirname, "..");
|
|
19
|
+
const IGNORE_FILE = path.join(ROOT, ".github-export-ignore");
|
|
20
|
+
const DEFAULT_OUT = path.resolve(ROOT, "../concorde-github-export");
|
|
21
|
+
|
|
22
|
+
const EXPORT_FILTER_KEY =
|
|
23
|
+
/(?:^|\/)(?:docs|mock-api|undefined)(?:\/|$)|captcha|\.demo\.|\.stories\.|TestUtils|\/prism\/|\/search\/|\/tailwind\/|\/header\/|\/navigation\/|\/layout\.ts$|\/code\.ts$|^code$|^docs$|^layout$/;
|
|
24
|
+
|
|
25
|
+
function readIgnorePatterns() {
|
|
26
|
+
if (!fs.existsSync(IGNORE_FILE)) return [];
|
|
27
|
+
return fs
|
|
28
|
+
.readFileSync(IGNORE_FILE, "utf8")
|
|
29
|
+
.split("\n")
|
|
30
|
+
.map((l) => l.trim())
|
|
31
|
+
.filter((l) => l && !l.startsWith("#"));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function globToRegExp(pattern) {
|
|
35
|
+
const escaped = pattern
|
|
36
|
+
.replace(/[.+^${}()|[\]\\]/g, "\\$&")
|
|
37
|
+
.replace(/\*\*/g, "{{GLOBSTAR}}")
|
|
38
|
+
.replace(/\*/g, "[^/]*")
|
|
39
|
+
.replace(/\{\{GLOBSTAR\}\}/g, ".*");
|
|
40
|
+
return new RegExp(`^${escaped}$`);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
function shouldExclude(relativePath, patterns) {
|
|
44
|
+
const normalized = relativePath.replace(/\\/g, "/");
|
|
45
|
+
for (const pattern of patterns) {
|
|
46
|
+
const re = globToRegExp(pattern);
|
|
47
|
+
if (re.test(normalized)) return true;
|
|
48
|
+
if (normalized.startsWith(pattern.endsWith("/") ? pattern : `${pattern}/`))
|
|
49
|
+
return true;
|
|
50
|
+
if (normalized === pattern) return true;
|
|
51
|
+
}
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function listAllFiles(dir, base = dir) {
|
|
56
|
+
const out = [];
|
|
57
|
+
for (const name of fs.readdirSync(dir, { withFileTypes: true })) {
|
|
58
|
+
if (name.name === ".git" || name.name === "node_modules") continue;
|
|
59
|
+
const full = path.join(dir, name.name);
|
|
60
|
+
const rel = path.relative(base, full).replace(/\\/g, "/");
|
|
61
|
+
if (name.isDirectory()) {
|
|
62
|
+
if (shouldExclude(rel, ignorePatterns)) continue;
|
|
63
|
+
out.push(...listAllFiles(full, base));
|
|
64
|
+
} else {
|
|
65
|
+
if (!shouldExclude(rel, ignorePatterns)) out.push(rel);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return out;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function copyFile(rel, destRoot) {
|
|
72
|
+
const src = path.join(ROOT, rel);
|
|
73
|
+
const dest = path.join(destRoot, rel);
|
|
74
|
+
fs.mkdirSync(path.dirname(dest), { recursive: true });
|
|
75
|
+
fs.copyFileSync(src, dest);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function patchUiTs(destRoot) {
|
|
79
|
+
const uiPath = path.join(
|
|
80
|
+
destRoot,
|
|
81
|
+
"src/core/components/ui/ui.ts",
|
|
82
|
+
);
|
|
83
|
+
if (!fs.existsSync(uiPath)) return;
|
|
84
|
+
const content = fs.readFileSync(uiPath, "utf8");
|
|
85
|
+
const patched = content.replace(
|
|
86
|
+
/import "\.\/captcha\/captcha";\n?/,
|
|
87
|
+
"",
|
|
88
|
+
);
|
|
89
|
+
fs.writeFileSync(uiPath, patched);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function exportHaystack(value) {
|
|
93
|
+
if (typeof value === "string") return value;
|
|
94
|
+
if (value && typeof value === "object") {
|
|
95
|
+
return `${value.types ?? ""}${value.default ?? ""}`;
|
|
96
|
+
}
|
|
97
|
+
return String(value);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function filterPackageJson(destRoot) {
|
|
101
|
+
const pkgPath = path.join(destRoot, "package.json");
|
|
102
|
+
if (!fs.existsSync(pkgPath)) return;
|
|
103
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
104
|
+
if (pkg.exports && typeof pkg.exports === "object") {
|
|
105
|
+
const next = {};
|
|
106
|
+
for (const [key, value] of Object.entries(pkg.exports)) {
|
|
107
|
+
const hay = `${key}:${exportHaystack(value)}`;
|
|
108
|
+
if (EXPORT_FILTER_KEY.test(hay)) continue;
|
|
109
|
+
if (exportHaystack(value).includes("/captcha/")) continue;
|
|
110
|
+
if (exportHaystack(value).includes("/docs/")) continue;
|
|
111
|
+
if (exportHaystack(value).includes(".demo.")) continue;
|
|
112
|
+
if (exportHaystack(value).includes(".stories.")) continue;
|
|
113
|
+
next[key] = value;
|
|
114
|
+
}
|
|
115
|
+
pkg.exports = next;
|
|
116
|
+
}
|
|
117
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function patchReadme(destRoot) {
|
|
121
|
+
const readmePath = path.join(destRoot, "README.md");
|
|
122
|
+
if (!fs.existsSync(readmePath)) return;
|
|
123
|
+
let text = fs.readFileSync(readmePath, "utf8");
|
|
124
|
+
text = text.replace(
|
|
125
|
+
/Le dépôt GitHub est un \*\*miroir\*\* synchronisé depuis GitLab \(voir \[OPEN_SOURCE_CHECKPOINT\.md\]\(OPEN_SOURCE_CHECKPOINT\.md\)\)\./,
|
|
126
|
+
"Le dépôt GitHub est un **export filtré** depuis GitLab (librairie uniquement, sans site doc ni composant captcha — voir [OPEN_SOURCE_CHECKPOINT.md](OPEN_SOURCE_CHECKPOINT.md)).",
|
|
127
|
+
);
|
|
128
|
+
fs.writeFileSync(readmePath, text);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
const ignorePatterns = readIgnorePatterns();
|
|
132
|
+
const outDir = path.resolve(process.argv[2] || DEFAULT_OUT);
|
|
133
|
+
|
|
134
|
+
if (fs.existsSync(outDir)) {
|
|
135
|
+
fs.rmSync(outDir, { recursive: true, force: true });
|
|
136
|
+
}
|
|
137
|
+
fs.mkdirSync(outDir, { recursive: true });
|
|
138
|
+
|
|
139
|
+
const files = listAllFiles(ROOT);
|
|
140
|
+
for (const rel of files) {
|
|
141
|
+
copyFile(rel, outDir);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
patchUiTs(outDir);
|
|
145
|
+
filterPackageJson(outDir);
|
|
146
|
+
patchReadme(outDir);
|
|
147
|
+
|
|
148
|
+
console.log(`✅ Export GitHub : ${files.length} fichiers → ${outDir}`);
|
|
149
|
+
console.log(" Exclusions : .github-export-ignore");
|
|
150
|
+
console.log(" Patches : ui.ts (sans captcha), package.json exports");
|
package/scripts/post-build.mjs
CHANGED
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
import path from "path";
|
|
5
|
+
import { execSync } from "child_process";
|
|
6
|
+
import { fileURLToPath } from "url";
|
|
7
|
+
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
|
+
const root = path.resolve(__dirname, "..");
|
|
5
10
|
|
|
6
11
|
//copy concorde-core.bundle.js and concorde-core.es.js from docs to the root of the project
|
|
7
12
|
fs.copyFileSync(
|
|
@@ -12,3 +17,41 @@ fs.copyFileSync(
|
|
|
12
17
|
path.resolve("dist/concorde-core.es.js"),
|
|
13
18
|
path.resolve("concorde-core.es.js")
|
|
14
19
|
);
|
|
20
|
+
|
|
21
|
+
for (const file of ["concorde-core.bundle.js", "concorde-core.es.js"]) {
|
|
22
|
+
const content = fs.readFileSync(path.resolve(file), "utf8");
|
|
23
|
+
const checks = [
|
|
24
|
+
["concordeIsLoaded", "signal de chargement"],
|
|
25
|
+
["customElements.define", "enregistrement des web components"],
|
|
26
|
+
["concorde-loaded", "événement concorde-loaded"],
|
|
27
|
+
];
|
|
28
|
+
for (const [needle, label] of checks) {
|
|
29
|
+
if (!content.includes(needle)) {
|
|
30
|
+
console.error(`❌ ${file} : marqueur manquant (${label})`);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
console.log("✅ Bundles concorde-core vérifiés");
|
|
36
|
+
|
|
37
|
+
console.log("🚀 Génération des types (.d.ts)");
|
|
38
|
+
const fetcherPath = path.join(root, "src/core/mixins/Fetcher.ts");
|
|
39
|
+
const fetcherOriginal = fs.readFileSync(fetcherPath, "utf8");
|
|
40
|
+
fs.writeFileSync(
|
|
41
|
+
fetcherPath,
|
|
42
|
+
fetcherOriginal.replace("protected async _fetchData()", "async _fetchData()")
|
|
43
|
+
);
|
|
44
|
+
try {
|
|
45
|
+
execSync("tsc -p src/tsconfig.declarations.json", {
|
|
46
|
+
cwd: root,
|
|
47
|
+
stdio: "inherit",
|
|
48
|
+
});
|
|
49
|
+
} finally {
|
|
50
|
+
fs.writeFileSync(fetcherPath, fetcherOriginal);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
console.log("🚀 Génération du JavaScript (dist/js/)");
|
|
54
|
+
execSync("tsc -p src/tsconfig.emit.json", {
|
|
55
|
+
cwd: root,
|
|
56
|
+
stdio: "inherit",
|
|
57
|
+
});
|
package/scripts/pre-build.mjs
CHANGED
|
@@ -43,10 +43,14 @@ function listFiles(dir) {
|
|
|
43
43
|
return files;
|
|
44
44
|
}
|
|
45
45
|
const componentsFiles = listFiles(path.resolve(__dirname, "../src"));
|
|
46
|
+
const isPublishableTs = (file) =>
|
|
47
|
+
file.match(/\.ts$/) &&
|
|
48
|
+
!file.match(/\.(spec|test|demo|stories|type-test)\.ts$/) &&
|
|
49
|
+
!file.includes("/docs/");
|
|
46
50
|
//short notation for ts file
|
|
47
51
|
const shortPathMapping = {};
|
|
48
52
|
componentsFiles.forEach((file) => {
|
|
49
|
-
if (!file
|
|
53
|
+
if (!isPublishableTs(file)) {
|
|
50
54
|
return;
|
|
51
55
|
}
|
|
52
56
|
//add simplified path to tsconfig paths
|
|
@@ -108,6 +112,27 @@ fs.writeFileSync(tsConfigPath, JSON.stringify(tsConfig, null, 2));
|
|
|
108
112
|
|
|
109
113
|
//Do the same using shrotpathMapping to fill the exports un package.json
|
|
110
114
|
|
|
115
|
+
function typesPath(srcRelative) {
|
|
116
|
+
if (!srcRelative.endsWith(".ts")) return null;
|
|
117
|
+
return srcRelative
|
|
118
|
+
.replace(/^\.\/src\//, "./dist/types/")
|
|
119
|
+
.replace(/\.ts$/, ".d.ts");
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function jsPath(srcRelative) {
|
|
123
|
+
if (!srcRelative.endsWith(".ts")) return null;
|
|
124
|
+
return srcRelative
|
|
125
|
+
.replace(/^\.\/src\//, "./dist/js/")
|
|
126
|
+
.replace(/\.ts$/, ".js");
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function exportEntry(srcRelative) {
|
|
130
|
+
const types = typesPath(srcRelative);
|
|
131
|
+
const js = jsPath(srcRelative);
|
|
132
|
+
if (!types || !js) return srcRelative;
|
|
133
|
+
return { types, default: js };
|
|
134
|
+
}
|
|
135
|
+
|
|
111
136
|
const packageJsonPath = path.resolve(__dirname, "../package.json");
|
|
112
137
|
let packageJson = JSON.parse(fs.readFileSync(packageJsonPath));
|
|
113
138
|
|
|
@@ -116,8 +141,11 @@ const pExports = {
|
|
|
116
141
|
"./src/core/components/ui/icon/icons.json",
|
|
117
142
|
"./core/components/functional/sdui/default-library.json":
|
|
118
143
|
"./src/core/components/functional/sdui/default-library.json",
|
|
119
|
-
"./dataProviderKey": "./src/core/utils/dataProviderKey.ts",
|
|
120
|
-
"./*":
|
|
144
|
+
"./dataProviderKey": exportEntry("./src/core/utils/dataProviderKey.ts"),
|
|
145
|
+
"./*": {
|
|
146
|
+
types: "./dist/types/*.d.ts",
|
|
147
|
+
default: "./dist/js/*.js",
|
|
148
|
+
},
|
|
121
149
|
"./vite-config": "./vite/config.js",
|
|
122
150
|
"./rollup-plugin-*": "./rollup/plugin-*.js",
|
|
123
151
|
};
|
|
@@ -127,7 +155,7 @@ for (let key in shortPathMapping) {
|
|
|
127
155
|
let p = shortPathMapping[key][0];
|
|
128
156
|
//set path relative to project source
|
|
129
157
|
p = p.replace(path.resolve(__dirname, "../src") + "/", "./src/");
|
|
130
|
-
pExports[key] = p;
|
|
158
|
+
pExports[key] = exportEntry(p);
|
|
131
159
|
}
|
|
132
160
|
|
|
133
161
|
packageJson.exports = pExports;
|
package/scripts/pre-publish.mjs
CHANGED
|
@@ -60,7 +60,7 @@ export default class Queue extends Subscriber(LitElement, {} as QueueProps) {
|
|
|
60
60
|
@property() filteredFields = "";
|
|
61
61
|
disconnectedCallback() {
|
|
62
62
|
for (const dataProvider of this.listDataProviders) {
|
|
63
|
-
PublisherManager.delete(dataProvider);
|
|
63
|
+
PublisherManager.getInstance().delete(dataProvider);
|
|
64
64
|
this.listDataProviders = [];
|
|
65
65
|
}
|
|
66
66
|
this.filterPublisher?.offInternalMutation(this.updateFilteredContent);
|
|
@@ -167,7 +167,7 @@ export default class Queue extends Subscriber(LitElement, {} as QueueProps) {
|
|
|
167
167
|
*/
|
|
168
168
|
|
|
169
169
|
for (const dataProvider of this.listDataProviders) {
|
|
170
|
-
PublisherManager.delete(dataProvider);
|
|
170
|
+
PublisherManager.getInstance().delete(dataProvider);
|
|
171
171
|
// this.publisher.lastFetchedData = {};
|
|
172
172
|
}
|
|
173
173
|
this.listDataProviders = [];
|
|
@@ -445,7 +445,7 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
// Show the modal
|
|
448
|
-
async show(): Promise<void> {
|
|
448
|
+
private async show(): Promise<void> {
|
|
449
449
|
this._modalElement.show();
|
|
450
450
|
this._animationState = "in";
|
|
451
451
|
await this.animation("in");
|
|
@@ -7,3 +7,4 @@ export type { HandleOptions } from "./subscriber/handle";
|
|
|
7
7
|
export { autoSubscribe } from "./subscriber/autoSubscribe";
|
|
8
8
|
export { autoFill } from "./subscriber/autoFill";
|
|
9
9
|
export { ancestorAttribute } from "./subscriber/ancestorAttribute";
|
|
10
|
+
export type { AncestorAttributeOptions } from "./subscriber/ancestorAttribute";
|
|
@@ -522,7 +522,8 @@ function createApiSendDecorator<T, B, Ue = any, Uk = any, Ut = any>(
|
|
|
522
522
|
: maybeOptions;
|
|
523
523
|
const configurationKeyPath = configurationKey?.path;
|
|
524
524
|
const triggerKeyPath = options?.triggerKey?.path;
|
|
525
|
-
const endpointDynamicDependencies =
|
|
525
|
+
const endpointDynamicDependencies =
|
|
526
|
+
extractDynamicDependencies(pathTemplate);
|
|
526
527
|
const bodyKeyDynamicDependencies = extractDynamicDependencies(bodyKeyPath);
|
|
527
528
|
const configKeyDynamicDependencies = configurationKeyPath
|
|
528
529
|
? extractDynamicDependencies(configurationKeyPath)
|
|
@@ -861,9 +862,8 @@ export function post<T, B, Ue = any, Uk = any, Ut = any>(
|
|
|
861
862
|
target: object & { [P in K]?: ApiResult<T> | null | undefined },
|
|
862
863
|
propertyKey: K,
|
|
863
864
|
) => void {
|
|
864
|
-
return createApiSendDecorator<T, B, Ue, Uk, Ut>(
|
|
865
|
-
|
|
866
|
-
(api, path, body) => api.postDetailed<T, B>(path, body as B),
|
|
865
|
+
return createApiSendDecorator<T, B, Ue, Uk, Ut>("POST", (api, path, body) =>
|
|
866
|
+
api.postDetailed<T, B>(path, body as B),
|
|
867
867
|
)(endpoint, bodyKey, configurationKeyOrOptions, maybeOptions);
|
|
868
868
|
}
|
|
869
869
|
|
|
@@ -921,9 +921,8 @@ export function put<T, B, Ue = any, Uk = any, Ut = any>(
|
|
|
921
921
|
target: object & { [P in K]?: ApiResult<T> | null | undefined },
|
|
922
922
|
propertyKey: K,
|
|
923
923
|
) => void {
|
|
924
|
-
return createApiSendDecorator<T, B, Ue, Uk, Ut>(
|
|
925
|
-
|
|
926
|
-
(api, path, body) => api.putDetailed<T, B>(path, body as B),
|
|
924
|
+
return createApiSendDecorator<T, B, Ue, Uk, Ut>("PUT", (api, path, body) =>
|
|
925
|
+
api.putDetailed<T, B>(path, body as B),
|
|
927
926
|
)(endpoint, bodyKey, configurationKeyOrOptions, maybeOptions);
|
|
928
927
|
}
|
|
929
928
|
|
|
@@ -981,8 +980,7 @@ export function patch<T, B, Ue = any, Uk = any, Ut = any>(
|
|
|
981
980
|
target: object & { [P in K]?: ApiResult<T> | null | undefined },
|
|
982
981
|
propertyKey: K,
|
|
983
982
|
) => void {
|
|
984
|
-
return createApiSendDecorator<T, B, Ue, Uk, Ut>(
|
|
985
|
-
|
|
986
|
-
(api, path, body) => api.patchDetailed<T, B>(path, body as B),
|
|
983
|
+
return createApiSendDecorator<T, B, Ue, Uk, Ut>("PATCH", (api, path, body) =>
|
|
984
|
+
api.patchDetailed<T, B>(path, body as B),
|
|
987
985
|
)(endpoint, bodyKey, configurationKeyOrOptions, maybeOptions);
|
|
988
986
|
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import { afterEach, describe, expect, it } from "vitest";
|
|
2
|
+
import { ancestorAttribute } from "./ancestorAttribute";
|
|
3
|
+
|
|
4
|
+
async function flushFrames(count = 2): Promise<void> {
|
|
5
|
+
for (let i = 0; i < count; i += 1) {
|
|
6
|
+
await new Promise<void>((resolve) => {
|
|
7
|
+
requestAnimationFrame(() => resolve());
|
|
8
|
+
});
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
describe("ancestorAttribute", () => {
|
|
13
|
+
afterEach(() => {
|
|
14
|
+
document.body.replaceChildren();
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
it("lit la valeur initiale au connect (mode statique par défaut)", () => {
|
|
18
|
+
const tag = "test-ancestor-attr-static-init";
|
|
19
|
+
class C extends HTMLElement {
|
|
20
|
+
@ancestorAttribute("dataProvider")
|
|
21
|
+
dataProvider: string | null = null;
|
|
22
|
+
}
|
|
23
|
+
if (!customElements.get(tag)) {
|
|
24
|
+
customElements.define(tag, C);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
const wrap = document.createElement("div");
|
|
28
|
+
wrap.setAttribute("dataProvider", "scope-a");
|
|
29
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
30
|
+
wrap.appendChild(el);
|
|
31
|
+
document.body.appendChild(wrap);
|
|
32
|
+
|
|
33
|
+
expect(el.dataProvider).toBe("scope-a");
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
it("ne réagit pas aux mutations en mode statique (défaut)", async () => {
|
|
37
|
+
const tag = "test-ancestor-attr-static-no-react";
|
|
38
|
+
class C extends HTMLElement {
|
|
39
|
+
@ancestorAttribute("dataProvider")
|
|
40
|
+
dataProvider: string | null = null;
|
|
41
|
+
}
|
|
42
|
+
if (!customElements.get(tag)) {
|
|
43
|
+
customElements.define(tag, C);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const wrap = document.createElement("div");
|
|
47
|
+
wrap.setAttribute("dataProvider", "scope-a");
|
|
48
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
49
|
+
wrap.appendChild(el);
|
|
50
|
+
document.body.appendChild(wrap);
|
|
51
|
+
|
|
52
|
+
wrap.setAttribute("dataProvider", "scope-b");
|
|
53
|
+
await flushFrames();
|
|
54
|
+
|
|
55
|
+
expect(el.dataProvider).toBe("scope-a");
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
it("met à jour la propriété quand un ancêtre change (mode dynamique)", async () => {
|
|
59
|
+
const tag = "test-ancestor-attr-dynamic-mutation";
|
|
60
|
+
class C extends HTMLElement {
|
|
61
|
+
@ancestorAttribute("dataProvider", { dynamic: true })
|
|
62
|
+
dataProvider: string | null = null;
|
|
63
|
+
}
|
|
64
|
+
if (!customElements.get(tag)) {
|
|
65
|
+
customElements.define(tag, C);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const wrap = document.createElement("div");
|
|
69
|
+
wrap.setAttribute("dataProvider", "scope-a");
|
|
70
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
71
|
+
wrap.appendChild(el);
|
|
72
|
+
document.body.appendChild(wrap);
|
|
73
|
+
|
|
74
|
+
expect(el.dataProvider).toBe("scope-a");
|
|
75
|
+
|
|
76
|
+
wrap.setAttribute("dataProvider", "scope-b");
|
|
77
|
+
await flushFrames();
|
|
78
|
+
|
|
79
|
+
expect(el.dataProvider).toBe("scope-b");
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
it("assigne null si l'attribut ancêtre est retiré (mode dynamique)", async () => {
|
|
83
|
+
const tag = "test-ancestor-attr-dynamic-null";
|
|
84
|
+
class C extends HTMLElement {
|
|
85
|
+
@ancestorAttribute("dataProvider", { dynamic: true })
|
|
86
|
+
dataProvider: string | null = "initial";
|
|
87
|
+
}
|
|
88
|
+
if (!customElements.get(tag)) {
|
|
89
|
+
customElements.define(tag, C);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
const wrap = document.createElement("div");
|
|
93
|
+
wrap.setAttribute("dataProvider", "scope-a");
|
|
94
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
95
|
+
wrap.appendChild(el);
|
|
96
|
+
document.body.appendChild(wrap);
|
|
97
|
+
|
|
98
|
+
wrap.removeAttribute("dataProvider");
|
|
99
|
+
await flushFrames();
|
|
100
|
+
|
|
101
|
+
expect(el.dataProvider).toBeNull();
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
it("retombe sur l'ancêtre suivant quand le plus proche perd l'attribut", async () => {
|
|
105
|
+
const tag = "test-ancestor-attr-dynamic-fallback";
|
|
106
|
+
class C extends HTMLElement {
|
|
107
|
+
@ancestorAttribute("dataProvider", { dynamic: true })
|
|
108
|
+
dataProvider: string | null = null;
|
|
109
|
+
}
|
|
110
|
+
if (!customElements.get(tag)) {
|
|
111
|
+
customElements.define(tag, C);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
const outer = document.createElement("div");
|
|
115
|
+
outer.setAttribute("dataProvider", "from-outer");
|
|
116
|
+
const parent = document.createElement("div");
|
|
117
|
+
parent.setAttribute("dataProvider", "from-parent");
|
|
118
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
119
|
+
parent.appendChild(el);
|
|
120
|
+
outer.appendChild(parent);
|
|
121
|
+
document.body.appendChild(outer);
|
|
122
|
+
|
|
123
|
+
expect(el.dataProvider).toBe("from-parent");
|
|
124
|
+
|
|
125
|
+
parent.removeAttribute("dataProvider");
|
|
126
|
+
await flushFrames();
|
|
127
|
+
|
|
128
|
+
expect(el.dataProvider).toBe("from-outer");
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
it("met à jour dans un shadow root (Lit)", async () => {
|
|
132
|
+
const hostTag = "test-ancestor-shadow-host";
|
|
133
|
+
const childTag = "test-ancestor-shadow-child";
|
|
134
|
+
|
|
135
|
+
class Host extends HTMLElement {
|
|
136
|
+
connectedCallback() {
|
|
137
|
+
const shadow = this.attachShadow({ mode: "open" });
|
|
138
|
+
const wrap = document.createElement("div");
|
|
139
|
+
wrap.setAttribute("dataProvider", "scope-a");
|
|
140
|
+
const child = document.createElement(childTag);
|
|
141
|
+
wrap.appendChild(child);
|
|
142
|
+
shadow.append(wrap);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
class Child extends HTMLElement {
|
|
147
|
+
@ancestorAttribute("dataProvider", { dynamic: true })
|
|
148
|
+
dataProvider: string | null = null;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
if (!customElements.get(hostTag)) {
|
|
152
|
+
customElements.define(hostTag, Host);
|
|
153
|
+
}
|
|
154
|
+
if (!customElements.get(childTag)) {
|
|
155
|
+
customElements.define(childTag, Child);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
const host = document.createElement(hostTag);
|
|
159
|
+
document.body.appendChild(host);
|
|
160
|
+
await flushFrames();
|
|
161
|
+
|
|
162
|
+
const wrap = host.shadowRoot!.querySelector("div")!;
|
|
163
|
+
const child = host.shadowRoot!.querySelector(childTag) as InstanceType<
|
|
164
|
+
typeof Child
|
|
165
|
+
>;
|
|
166
|
+
|
|
167
|
+
expect(child.dataProvider).toBe("scope-a");
|
|
168
|
+
|
|
169
|
+
wrap.setAttribute("dataProvider", "scope-b");
|
|
170
|
+
await flushFrames();
|
|
171
|
+
|
|
172
|
+
expect(child.dataProvider).toBe("scope-b");
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
it("ne met plus à jour après disconnect (mode dynamique)", async () => {
|
|
176
|
+
const tag = "test-ancestor-attr-dynamic-disconnect";
|
|
177
|
+
class C extends HTMLElement {
|
|
178
|
+
@ancestorAttribute("dataProvider", { dynamic: true })
|
|
179
|
+
dataProvider: string | null = null;
|
|
180
|
+
}
|
|
181
|
+
if (!customElements.get(tag)) {
|
|
182
|
+
customElements.define(tag, C);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
const wrap = document.createElement("div");
|
|
186
|
+
wrap.setAttribute("dataProvider", "scope-a");
|
|
187
|
+
const el = document.createElement(tag) as InstanceType<typeof C>;
|
|
188
|
+
wrap.appendChild(el);
|
|
189
|
+
document.body.appendChild(wrap);
|
|
190
|
+
|
|
191
|
+
el.remove();
|
|
192
|
+
wrap.setAttribute("dataProvider", "scope-b");
|
|
193
|
+
await flushFrames();
|
|
194
|
+
|
|
195
|
+
expect(el.dataProvider).toBe("scope-a");
|
|
196
|
+
});
|
|
197
|
+
});
|
|
@@ -1,18 +1,51 @@
|
|
|
1
|
-
import
|
|
1
|
+
import AncestorAttributeObserver, {
|
|
2
|
+
syncAncestorAttributeValue,
|
|
3
|
+
} from "../../utils/AncestorAttributeObserver";
|
|
2
4
|
import { ConnectedComponent, setSubscribable } from "./common";
|
|
3
5
|
|
|
4
|
-
export
|
|
6
|
+
export type AncestorAttributeOptions = {
|
|
7
|
+
/**
|
|
8
|
+
* Si true, le composant reste synchronisé avec les attributs ancêtres via
|
|
9
|
+
* `AncestorAttributeObserver` (mutations + reparenting). Requis pour que
|
|
10
|
+
* `@bind` / `@subscribe` avec `${dataProvider}` se re-lient quand le scope change.
|
|
11
|
+
* Défaut : false (lecture unique au connect, rétrocompat).
|
|
12
|
+
*/
|
|
13
|
+
dynamic?: boolean;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export function ancestorAttribute(
|
|
17
|
+
attributeName: string,
|
|
18
|
+
options?: AncestorAttributeOptions,
|
|
19
|
+
) {
|
|
20
|
+
const dynamic = options?.dynamic ?? false;
|
|
21
|
+
const assignNull = dynamic;
|
|
22
|
+
|
|
5
23
|
return function (target: unknown, propertyKey: string) {
|
|
6
24
|
if (!target) return;
|
|
7
25
|
setSubscribable(target);
|
|
26
|
+
|
|
8
27
|
(target as ConnectedComponent).__onBeforeConnected__((component) => {
|
|
9
|
-
|
|
10
|
-
|
|
28
|
+
syncAncestorAttributeValue(component, attributeName, propertyKey, {
|
|
29
|
+
assignNull,
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
if (!dynamic) return;
|
|
34
|
+
|
|
35
|
+
let unsubscribe: (() => void) | null = null;
|
|
36
|
+
|
|
37
|
+
(target as ConnectedComponent).__onConnected__((component) => {
|
|
38
|
+
unsubscribe = AncestorAttributeObserver.subscribe(
|
|
39
|
+
component as unknown as HTMLElement,
|
|
11
40
|
attributeName,
|
|
41
|
+
propertyKey,
|
|
42
|
+
{ assignNull: true },
|
|
12
43
|
);
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
(target as ConnectedComponent).__onDisconnected__(() => {
|
|
47
|
+
unsubscribe?.();
|
|
48
|
+
unsubscribe = null;
|
|
16
49
|
});
|
|
17
50
|
};
|
|
18
51
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
PublisherProxy,
|
|
3
|
+
collectModifiedPublisher,
|
|
4
|
+
getModifiedPublishers,
|
|
5
|
+
} from "../../utils/PublisherProxy";
|
|
2
6
|
|
|
3
7
|
export function autoSubscribe() {
|
|
4
8
|
return function (
|
|
@@ -33,10 +37,10 @@ export function autoSubscribe() {
|
|
|
33
37
|
publishers.forEach((publisher: PublisherProxy) => {
|
|
34
38
|
publisher.offAssign(onAssign);
|
|
35
39
|
});
|
|
36
|
-
|
|
40
|
+
collectModifiedPublisher();
|
|
37
41
|
const result = originalMethod.apply(this, args);
|
|
38
42
|
publishers =
|
|
39
|
-
|
|
43
|
+
getModifiedPublishers() || new Set<PublisherProxy>();
|
|
40
44
|
|
|
41
45
|
publishers.forEach((publisher: PublisherProxy) => {
|
|
42
46
|
publisher.onAssign(onAssign, false);
|