@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,82 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { property } from "lit/decorators.js";
|
|
8
|
+
const Form = (superClass) => {
|
|
9
|
+
class FormInput extends superClass {
|
|
10
|
+
constructor(...args) {
|
|
11
|
+
super();
|
|
12
|
+
this.forceAutoFill = false;
|
|
13
|
+
/**
|
|
14
|
+
* Le type De l'input, comme en html cependant tous les types ne sont pas actuellements compatibles en raison du style en vigueur
|
|
15
|
+
* On peut essayer text, date, color, email par exemple, mais pas radio/checkbox/range a priori
|
|
16
|
+
*/
|
|
17
|
+
this._type = "text";
|
|
18
|
+
this.status = "default";
|
|
19
|
+
args;
|
|
20
|
+
}
|
|
21
|
+
validateFormElement() {
|
|
22
|
+
const input = this.shadowRoot?.querySelector("input");
|
|
23
|
+
if (!input || input.checkValidity())
|
|
24
|
+
return;
|
|
25
|
+
const formPublisher = this.getFormPublisher();
|
|
26
|
+
if (formPublisher)
|
|
27
|
+
formPublisher.isFormValid = false;
|
|
28
|
+
input.reportValidity();
|
|
29
|
+
}
|
|
30
|
+
set type(value) {
|
|
31
|
+
if (this.hasAttribute("type") && !this.forceAutoFill)
|
|
32
|
+
value = this.getAttribute("type");
|
|
33
|
+
this._type = value;
|
|
34
|
+
this.requestUpdate();
|
|
35
|
+
}
|
|
36
|
+
get type() {
|
|
37
|
+
return this._type;
|
|
38
|
+
}
|
|
39
|
+
get description() {
|
|
40
|
+
return this._description;
|
|
41
|
+
}
|
|
42
|
+
set description(value) {
|
|
43
|
+
if (this.hasAttribute("description") && !this.forceAutoFill)
|
|
44
|
+
value = this.getAttribute("description");
|
|
45
|
+
this._description = value;
|
|
46
|
+
this.requestUpdate();
|
|
47
|
+
}
|
|
48
|
+
get label() {
|
|
49
|
+
return this._label;
|
|
50
|
+
}
|
|
51
|
+
set label(value) {
|
|
52
|
+
if (this.hasAttribute("label") && !this.forceAutoFill)
|
|
53
|
+
value = this.getAttribute("label");
|
|
54
|
+
this._label = value;
|
|
55
|
+
this.requestUpdate();
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
__decorate([
|
|
59
|
+
property()
|
|
60
|
+
], FormInput.prototype, "forceAutoFill", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
property({ type: String })
|
|
63
|
+
], FormInput.prototype, "type", null);
|
|
64
|
+
__decorate([
|
|
65
|
+
property()
|
|
66
|
+
], FormInput.prototype, "description", null);
|
|
67
|
+
__decorate([
|
|
68
|
+
property()
|
|
69
|
+
], FormInput.prototype, "label", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
property({ type: String, reflect: true })
|
|
72
|
+
], FormInput.prototype, "status", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
property({ type: Number })
|
|
75
|
+
], FormInput.prototype, "tabindex", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
property({ type: String })
|
|
78
|
+
], FormInput.prototype, "autocomplete", void 0);
|
|
79
|
+
return FormInput;
|
|
80
|
+
};
|
|
81
|
+
export default Form;
|
|
82
|
+
//# sourceMappingURL=FormInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormInput.js","sourceRoot":"","sources":["../../../../src/core/mixins/FormInput.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AA4B3C,MAAM,IAAI,GAAG,CAA8C,UAAa,EAAE,EAAE;IAC1E,MAAM,SAAU,SAAQ,UAAU;QAChC,YAAY,GAAG,IAAqB;YAClC,KAAK,EAAE,CAAC;YAUE,kBAAa,GAAG,KAAK,CAAC;YAClC;;;eAGG;YACH,UAAK,GAAS,MAAM,CAAC;YA2BoB,WAAM,GAAyD,SAAS,CAAC;YAzChH,IAAI,CAAC;QACP,CAAC;QACD,mBAAmB;YACjB,MAAM,KAAK,GAAqB,IAAI,CAAC,UAAU,EAAE,aAAa,CAAC,OAAO,CAAqB,CAAC;YAC5F,IAAI,CAAC,KAAK,IAAI,KAAK,CAAC,aAAa,EAAE;gBAAE,OAAO;YAC5C,MAAM,aAAa,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC9C,IAAI,aAAa;gBAAE,aAAa,CAAC,WAAW,GAAG,KAAK,CAAC;YACrD,KAAK,CAAC,cAAc,EAAE,CAAC;QACzB,CAAC;QAOyB,IAAI,IAAI,CAAC,KAAK;YACtC,IAAI,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa;gBAAE,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,MAAM,CAAS,CAAC;YAChG,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;QACD,IAAI,IAAI;YACN,OAAO,IAAI,CAAC,KAAK,CAAC;QACpB,CAAC;QAEW,IAAI,WAAW;YACzB,OAAO,IAAI,CAAC,YAAY,CAAC;QAC3B,CAAC;QACD,IAAI,WAAW,CAAC,KAAK;YACnB,IAAI,IAAI,CAAC,YAAY,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa;gBAAE,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,aAAa,CAAW,CAAC;YAChH,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;YAC1B,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;QAEW,IAAI,KAAK;YACnB,OAAO,IAAI,CAAC,MAAM,CAAC;QACrB,CAAC;QACD,IAAI,KAAK,CAAC,KAAK;YACb,IAAI,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa;gBAAE,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC,OAAO,CAAW,CAAC;YACpG,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAI,CAAC,aAAa,EAAE,CAAC;QACvB,CAAC;KA0DF;IAzFa;QAAX,QAAQ,EAAE;oDAAuB;IAMR;QAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;yCAIxB;IAKW;QAAX,QAAQ,EAAE;gDAEV;IAOW;QAAX,QAAQ,EAAE;0CAEV;IAMwC;QAAxC,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAC,CAAC;6CAA0E;IACxF;QAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;+CAAmB;IAClB;QAAzB,QAAQ,CAAC,EAAC,IAAI,EAAE,MAAM,EAAC,CAAC;mDAsDb;IAGd,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AACF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import DataBindObserver from "@supersoniks/concorde/core/utils/DataBindObserver";
|
|
8
|
+
import HTML from "@supersoniks/concorde/core/utils/HTML";
|
|
9
|
+
import Objects from "@supersoniks/concorde/core/utils/Objects";
|
|
10
|
+
import { PublisherManager } from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
11
|
+
import { property, state } from "lit/decorators.js";
|
|
12
|
+
import WordingDirective from "../directives/Wording";
|
|
13
|
+
let keepDebugOnMouseOut = false;
|
|
14
|
+
let debugs = new Set();
|
|
15
|
+
const Subscriber = (superClass, type) => {
|
|
16
|
+
/**
|
|
17
|
+
* La mixin Subscriber permet lier un composant à un publisher.
|
|
18
|
+
* La liaison à un publisher se fait via l'attribut *dataProvider* du composant qui représente ce que l'on obtient en appellant PublisherManager.get(dataProvider).
|
|
19
|
+
* les propriétés du composant sont automatiquement remplies avec les propriétés du même nom dans les données du publisher.
|
|
20
|
+
* Le composant est automatiquement mis à jour lorsque les données du publisher sont mises à jour.
|
|
21
|
+
*/
|
|
22
|
+
type;
|
|
23
|
+
class SubscriberElement extends superClass {
|
|
24
|
+
constructor(...args) {
|
|
25
|
+
super();
|
|
26
|
+
this.collectDependenciesVersion = 0;
|
|
27
|
+
this.displayContents = false;
|
|
28
|
+
/**
|
|
29
|
+
* noAutoFill permet de désactiver le remplissage automatique des propriétés par le publisher dans le cas ou on utilise "props" seulement ou le dataBinding par exemple
|
|
30
|
+
*/
|
|
31
|
+
this.noAutoFill = false;
|
|
32
|
+
this.forceAutoFill = false;
|
|
33
|
+
/**
|
|
34
|
+
* Passer ce paramètre à true permet de ne pas mettre à jour le composant lors d'un changement de interne de la propriété nommé props.
|
|
35
|
+
*/
|
|
36
|
+
this.renderOnPropsInternalChange = false;
|
|
37
|
+
/**
|
|
38
|
+
* Par défaut on chée un shadow dom mais on peut demander à ne pas en avoir via cette propriété et un attribut associé.
|
|
39
|
+
* Cela se fait à l'initialisation uniquement et n'est pas modifiable lors de la vie du composant.
|
|
40
|
+
*/
|
|
41
|
+
this.noShadowDom = null;
|
|
42
|
+
/**
|
|
43
|
+
* Permet de mapper un nom de propriété de donnée source vars une propriété du subscriber à la volée
|
|
44
|
+
*/
|
|
45
|
+
this.propertyMap = null;
|
|
46
|
+
this.title = "";
|
|
47
|
+
/**
|
|
48
|
+
* L'id / l'adresse du publisher accessible via PublisherManager.get(dataProvider)
|
|
49
|
+
*/
|
|
50
|
+
this.dataProvider = null;
|
|
51
|
+
/**
|
|
52
|
+
* On peut utiliser cette fonction pour lier un publisher spécifique au composant si besoin.
|
|
53
|
+
* voir l'utilisation dans list.ts
|
|
54
|
+
*/
|
|
55
|
+
this.bindPublisher = null;
|
|
56
|
+
/**
|
|
57
|
+
* Les props du composant.
|
|
58
|
+
* Elles sont injectées en profondeur dans le publisher pour permettre la mutualisation des données entre les composants.
|
|
59
|
+
* Par conséquent l'assignation de ces propriété avec une chaine json (html classic), ou un objet / un tableaun remplie les données du publisher.
|
|
60
|
+
* Les propriétés des subscribers associés au même dataProvider sont donc "remplies" avec ces données, voir aussi le dataBinding à ce sujet.
|
|
61
|
+
*/
|
|
62
|
+
this._props = null;
|
|
63
|
+
this.shouldRenderLazy = true;
|
|
64
|
+
this.defferedDebug = null;
|
|
65
|
+
/**
|
|
66
|
+
* Ajoute un debugger au composant pour afficher en temps réel les données présentes dans sont publisher
|
|
67
|
+
*/
|
|
68
|
+
this.debug = null;
|
|
69
|
+
/**
|
|
70
|
+
* On assign est enregistré car c'est un écouteur du publisher qui doit être délié lorsque l'objet est déconnecté du dom.
|
|
71
|
+
*/
|
|
72
|
+
this.onAssign = (v) => {
|
|
73
|
+
this.props = v;
|
|
74
|
+
};
|
|
75
|
+
args;
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* va de parent en parent pour trouver un attribut
|
|
79
|
+
* @param attributeName nom de l'attribut
|
|
80
|
+
* @returns true si l'attribut est trouvé
|
|
81
|
+
*/
|
|
82
|
+
hasAncestorAttribute(attributeName) {
|
|
83
|
+
return this.getAncestorAttributeValue(attributeName) != null;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Va de parent en parent pour trouver un attribut
|
|
87
|
+
* @param attributeName nom de l'attribut
|
|
88
|
+
* @returns valeur de l'attribut ou null si l'attribut n'est pas trouvé
|
|
89
|
+
*/
|
|
90
|
+
getAncestorAttributeValue(attributeName) {
|
|
91
|
+
return HTML.getAncestorAttributeValue(this, attributeName);
|
|
92
|
+
}
|
|
93
|
+
get props() {
|
|
94
|
+
if (this._props !== null || !this.publisher)
|
|
95
|
+
return this._props;
|
|
96
|
+
return this.publisher.get();
|
|
97
|
+
}
|
|
98
|
+
set props(value) {
|
|
99
|
+
if (typeof value == "string" &&
|
|
100
|
+
["{", "["].includes(value.trim().charAt(0))) {
|
|
101
|
+
value = JSON.parse(value);
|
|
102
|
+
}
|
|
103
|
+
if (value == this._props)
|
|
104
|
+
return;
|
|
105
|
+
this._props = value;
|
|
106
|
+
// if (!this.publisher) this.initPublisher();
|
|
107
|
+
if (this.publisher && this.publisher.get() != value) {
|
|
108
|
+
this.publisher.set(value);
|
|
109
|
+
}
|
|
110
|
+
this.requestUpdate();
|
|
111
|
+
}
|
|
112
|
+
updated(_changedProperties) {
|
|
113
|
+
super.updated(_changedProperties);
|
|
114
|
+
const ref = this.shadowRoot || this;
|
|
115
|
+
const children = [...ref.children].filter((child) => child.tagName != "STYLE");
|
|
116
|
+
const display = this.displayContents
|
|
117
|
+
? "contents"
|
|
118
|
+
: children.length == 0
|
|
119
|
+
? "none"
|
|
120
|
+
: null;
|
|
121
|
+
if (display)
|
|
122
|
+
this.style.display = display;
|
|
123
|
+
else
|
|
124
|
+
this.style.removeProperty("display");
|
|
125
|
+
}
|
|
126
|
+
connectedCallback() {
|
|
127
|
+
SubscriberElement.instanceCounter++;
|
|
128
|
+
if (this.hasAttribute("lazyRendering")) {
|
|
129
|
+
const options = {
|
|
130
|
+
root: null,
|
|
131
|
+
// rootMargin: Math.max(window.innerWidth, window.innerHeight) + "px",
|
|
132
|
+
threshold: 0.9,
|
|
133
|
+
};
|
|
134
|
+
let firstView = true;
|
|
135
|
+
const iObserver = new IntersectionObserver((entries) => {
|
|
136
|
+
for (const e of entries) {
|
|
137
|
+
if (firstView && e.isIntersecting) {
|
|
138
|
+
firstView = false;
|
|
139
|
+
iObserver.disconnect();
|
|
140
|
+
this.initWording();
|
|
141
|
+
this.shouldRenderLazy = false;
|
|
142
|
+
this.startPublisher();
|
|
143
|
+
break;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}, options);
|
|
147
|
+
iObserver.observe(this);
|
|
148
|
+
}
|
|
149
|
+
else {
|
|
150
|
+
this.initWording();
|
|
151
|
+
this.shouldRenderLazy = false;
|
|
152
|
+
}
|
|
153
|
+
this.initPublisher();
|
|
154
|
+
this.addDebugger();
|
|
155
|
+
super.connectedCallback();
|
|
156
|
+
}
|
|
157
|
+
disconnectedCallback() {
|
|
158
|
+
this.removeDebugger();
|
|
159
|
+
super.disconnectedCallback();
|
|
160
|
+
if (this.publisher) {
|
|
161
|
+
this.publisher.stopTemplateFilling(this);
|
|
162
|
+
this.publisher.offInternalMutation(this.requestUpdate);
|
|
163
|
+
}
|
|
164
|
+
WordingDirective.publisher.stopTemplateFilling(this);
|
|
165
|
+
if (this.onAssign)
|
|
166
|
+
this.publisher?.offAssign(this.onAssign);
|
|
167
|
+
}
|
|
168
|
+
addDebugger() {
|
|
169
|
+
if (this.hasAttribute("debug") && !this.defferedDebug) {
|
|
170
|
+
if (!this.debug) {
|
|
171
|
+
this.debug = document.createElement("div");
|
|
172
|
+
const style = this.debug.style;
|
|
173
|
+
style.position = "fixed";
|
|
174
|
+
style.top = "0";
|
|
175
|
+
style.right = "0";
|
|
176
|
+
style.margin = "auto";
|
|
177
|
+
style.borderRadius = ".7rem";
|
|
178
|
+
style.backgroundColor = "#0f1729";
|
|
179
|
+
style.color = "#c5d4f9";
|
|
180
|
+
style.padding = "16px 16px";
|
|
181
|
+
style.margin = "16px 16px";
|
|
182
|
+
style.boxShadow = "0 10px 30px -18px rgba(0,0,0,.3)";
|
|
183
|
+
style.overflowY = "auto";
|
|
184
|
+
style.zIndex = "99999999";
|
|
185
|
+
style.maxHeight = "calc(100vh - 32px)";
|
|
186
|
+
style.fontFamily = "Consolas, monospace";
|
|
187
|
+
style.maxWidth = "min(50vw,25rem)";
|
|
188
|
+
style.fontSize = "12px";
|
|
189
|
+
style.minWidth = "300px";
|
|
190
|
+
style.overflowWrap = "break-word";
|
|
191
|
+
style.resize = "vertical";
|
|
192
|
+
}
|
|
193
|
+
this.addEventListener("click", (e) => {
|
|
194
|
+
if (!e.ctrlKey)
|
|
195
|
+
return;
|
|
196
|
+
e.preventDefault();
|
|
197
|
+
keepDebugOnMouseOut = !keepDebugOnMouseOut;
|
|
198
|
+
});
|
|
199
|
+
if (this.dataProvider) {
|
|
200
|
+
window[this.dataProvider] = this.publisher;
|
|
201
|
+
}
|
|
202
|
+
this.addEventListener("mouseover", () => {
|
|
203
|
+
if (!keepDebugOnMouseOut)
|
|
204
|
+
this.removeDebugger();
|
|
205
|
+
document.body.appendChild(this.debug);
|
|
206
|
+
debugs.add(this.debug);
|
|
207
|
+
});
|
|
208
|
+
this.addEventListener("mouseout", () => {
|
|
209
|
+
if (!keepDebugOnMouseOut)
|
|
210
|
+
this.removeDebugger();
|
|
211
|
+
});
|
|
212
|
+
this.publisher?.onInternalMutation(() => {
|
|
213
|
+
this.debug.innerHTML = `🤖 DataProvider : "<b style="font-weight:bold;color:#fff;">${this.dataProvider}</b>"<br>
|
|
214
|
+
<div style="font-size:10px;border-top:1px dashed;margin-top:5px;padding-left:23px;opacity:.6;padding-top:5px;">
|
|
215
|
+
Variable disponible dans la console<br>
|
|
216
|
+
ctrl + Clique : épingler / désépingler
|
|
217
|
+
</div>
|
|
218
|
+
<pre style="margin-top:10px;background:transparent;padding:0;font-size:inherit;color:inherit;">${JSON.stringify(this.publisher?.get(), null, " ")}</pre>`;
|
|
219
|
+
});
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
removeDebugger() {
|
|
223
|
+
debugs.forEach((debug) => {
|
|
224
|
+
if (document.body.contains(debug))
|
|
225
|
+
document.body.removeChild(debug);
|
|
226
|
+
});
|
|
227
|
+
debugs = new Set();
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Petite fonction utilitaire pour retourner la configuration a passer à l'utilitaire API
|
|
231
|
+
* Utilisée pour la configuration du wording / de la traduction ainsi que par le mixin fetcher par exemple
|
|
232
|
+
* A voir si on le bouge dans un utilitaire
|
|
233
|
+
*/
|
|
234
|
+
getApiConfiguration() {
|
|
235
|
+
return HTML.getApiConfiguration(this);
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Initialise le remplisage automatique des traductions / du wording
|
|
239
|
+
* Un publisher spécifique est créé pour le composant à l'adresse "sonic-wording"
|
|
240
|
+
* Le composant recherche la valeur de l'attribute "wordingProvider" que contient le point d'accès à l'api de traduction / libellés
|
|
241
|
+
* Il utilise ce service et le publisher créé pour remplir automatiquement toutes les propriétés préfixées avec "wording_".
|
|
242
|
+
*/
|
|
243
|
+
async initWording() {
|
|
244
|
+
const propNames = Object.getOwnPropertyNames(this.constructor.prototype);
|
|
245
|
+
for (const p of propNames) {
|
|
246
|
+
if (p.indexOf("wording_") == 0) {
|
|
247
|
+
WordingDirective.callApi(this, p.substring(8));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
WordingDirective.publisher.startTemplateFilling(this);
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
*
|
|
254
|
+
* Fonction native de lit surchargée pour la gestion du mode noShadowDom
|
|
255
|
+
* Le comportement de data binding est également créé ici va l'utilitaire DataBindObserver
|
|
256
|
+
*/
|
|
257
|
+
createRenderRoot() {
|
|
258
|
+
if (this.noShadowDom === "" || this.getAttribute("noShadowDom") === "") {
|
|
259
|
+
return this;
|
|
260
|
+
}
|
|
261
|
+
const shadowRoot = super.createRenderRoot();
|
|
262
|
+
DataBindObserver.observe(shadowRoot);
|
|
263
|
+
return shadowRoot;
|
|
264
|
+
}
|
|
265
|
+
initPublisher() {
|
|
266
|
+
if (!document)
|
|
267
|
+
return;
|
|
268
|
+
if (this.publisher) {
|
|
269
|
+
this.publisher.stopTemplateFilling(this);
|
|
270
|
+
this.publisher.offInternalMutation(this.requestUpdate);
|
|
271
|
+
if (this.onAssign)
|
|
272
|
+
this.publisher.offAssign(this.onAssign);
|
|
273
|
+
}
|
|
274
|
+
const mng = PublisherManager.getInstance();
|
|
275
|
+
if (!this.dataProvider)
|
|
276
|
+
this.dataProvider = this.getAncestorAttributeValue("dataProvider");
|
|
277
|
+
let publisherId = this.dataProvider;
|
|
278
|
+
if (!publisherId && this._props) {
|
|
279
|
+
this.dataProvider = publisherId =
|
|
280
|
+
"__subscriber__" + SubscriberElement.instanceCounter;
|
|
281
|
+
}
|
|
282
|
+
if (publisherId) {
|
|
283
|
+
if (this.bindPublisher) {
|
|
284
|
+
mng.set(publisherId, this.bindPublisher());
|
|
285
|
+
}
|
|
286
|
+
let pub = mng.get(publisherId, {
|
|
287
|
+
localStorageMode: this.getAttribute("localStorage") || "disabled",
|
|
288
|
+
invalidateOnPageShow: this.hasAttribute("invalidateOnPageShow"),
|
|
289
|
+
});
|
|
290
|
+
this.dataProvider = publisherId;
|
|
291
|
+
if (this.hasAttribute("subDataProvider")) {
|
|
292
|
+
const dataPath = this.getAttribute("subDataProvider");
|
|
293
|
+
this.dataProvider = publisherId + "/" + dataPath;
|
|
294
|
+
pub = Objects.traverse(pub, dataPath.split("."));
|
|
295
|
+
mng.set(this.dataProvider, pub);
|
|
296
|
+
this.publisher = pub;
|
|
297
|
+
}
|
|
298
|
+
this.publisher = pub;
|
|
299
|
+
}
|
|
300
|
+
if (this.hasAttribute("lazyRendering")) {
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
else {
|
|
304
|
+
this.startPublisher();
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
startPublisher() {
|
|
308
|
+
if (this.publisher) {
|
|
309
|
+
if (this._props) {
|
|
310
|
+
this.publisher.set(this._props);
|
|
311
|
+
}
|
|
312
|
+
if (!this.noAutoFill)
|
|
313
|
+
this.publisher.startTemplateFilling(this);
|
|
314
|
+
if (this.renderOnPropsInternalChange)
|
|
315
|
+
this.publisher.onInternalMutation(this.requestUpdate);
|
|
316
|
+
this.publisher.onAssign(this.onAssign);
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
SubscriberElement.instanceCounter = 0;
|
|
321
|
+
__decorate([
|
|
322
|
+
property({ type: Number })
|
|
323
|
+
], SubscriberElement.prototype, "collectDependenciesVersion", void 0);
|
|
324
|
+
__decorate([
|
|
325
|
+
property({ type: Boolean })
|
|
326
|
+
], SubscriberElement.prototype, "displayContents", void 0);
|
|
327
|
+
__decorate([
|
|
328
|
+
property({ type: Boolean })
|
|
329
|
+
], SubscriberElement.prototype, "noAutoFill", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
property({ type: Boolean })
|
|
332
|
+
], SubscriberElement.prototype, "forceAutoFill", void 0);
|
|
333
|
+
__decorate([
|
|
334
|
+
property({ type: Object })
|
|
335
|
+
], SubscriberElement.prototype, "propertyMap", void 0);
|
|
336
|
+
__decorate([
|
|
337
|
+
property({ type: String, attribute: "data-title" })
|
|
338
|
+
], SubscriberElement.prototype, "title", void 0);
|
|
339
|
+
__decorate([
|
|
340
|
+
property({ reflect: true })
|
|
341
|
+
], SubscriberElement.prototype, "dataProvider", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
property()
|
|
344
|
+
], SubscriberElement.prototype, "bindPublisher", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
property()
|
|
347
|
+
], SubscriberElement.prototype, "props", null);
|
|
348
|
+
__decorate([
|
|
349
|
+
state()
|
|
350
|
+
], SubscriberElement.prototype, "shouldRenderLazy", void 0);
|
|
351
|
+
return SubscriberElement;
|
|
352
|
+
};
|
|
353
|
+
export default Subscriber;
|
|
354
|
+
//# sourceMappingURL=Subscriber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Subscriber.js","sourceRoot":"","sources":["../../../../src/core/mixins/Subscriber.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,IAAI,MAAM,uCAAuC,CAAC;AACzD,OAAO,OAAO,MAAM,0CAA0C,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iDAAiD,CAAC;AAEnF,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,gBAAgB,MAAM,uBAAuB,CAAC;AAUrD,IAAI,mBAAmB,GAAG,KAAK,CAAC;AAChC,IAAI,MAAM,GAAG,IAAI,GAAG,EAAe,CAAC;AAyCpC,MAAM,UAAU,GAAG,CAIjB,UAAa,EACb,IAAgB,EAChB,EAAE;IACF;;;;;OAKG;IACH,IAAI,CAAC;IACL,MAAM,iBAAkB,SAAQ,UAAU;QAIxC,YAAY,GAAG,IAAqB;YAClC,KAAK,EAAE,CAAC;YAIkB,+BAA0B,GAAG,CAAC,CAAC;YAE9B,oBAAe,GAAG,KAAK,CAAC;YAErD;;eAEG;YAC0B,eAAU,GAAG,KAAK,CAAC;YAEnB,kBAAa,GAAG,KAAK,CAAC;YAEnD;;eAEG;YACH,gCAA2B,GAAG,KAAK,CAAC;YAEpC;;;eAGG;YACH,gBAAW,GAAkB,IAAI,CAAC;YAElC;;eAEG;YAEyB,gBAAW,GAAkB,IAAI,CAAC;YACT,UAAK,GAAG,EAAE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AAC;AACF,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
+
};
|
|
7
|
+
import { property } from "lit/decorators.js";
|
|
8
|
+
const TemplatesContainer = (superClass) => {
|
|
9
|
+
/**
|
|
10
|
+
* Mixin pour mutualiser la gestion des templates dans différents composants (list, router, date, states...)
|
|
11
|
+
* Les templates sont soit dans aus sein du composant dans la déclaration html, soit renseignés via l'attribut "templates"
|
|
12
|
+
*/
|
|
13
|
+
class TemplatesContainerElement extends superClass {
|
|
14
|
+
constructor() {
|
|
15
|
+
super(...arguments);
|
|
16
|
+
/**
|
|
17
|
+
* On peut passer directement un tableu de template au composant via sont attribut.
|
|
18
|
+
* Voir utilisation dans le composant queue qui permet de ne pas doubler les balises templates à la déclaration.
|
|
19
|
+
*/
|
|
20
|
+
this.templates = null;
|
|
21
|
+
/**
|
|
22
|
+
* C'est le nom de l'attribut qui permet de regrouper les templates possédant cet attributs dans templateParts et templatePartsList.
|
|
23
|
+
* Ceux qui n'ont pas cet attribut sont stockés dans templateList
|
|
24
|
+
*/
|
|
25
|
+
this.templateValueAttribute = "data-value";
|
|
26
|
+
/**
|
|
27
|
+
* Tableau contenant tous les templates qui n'on pas d'attribut templateValueAttribute
|
|
28
|
+
*/
|
|
29
|
+
this.templateList = [];
|
|
30
|
+
/**
|
|
31
|
+
* Objet contenant tous les templates qui ont un attribut templateValueAttribute.
|
|
32
|
+
* Les clefs sont la valeur de l'attribut du template dont le nom est la valeur de templateValueAttribute.
|
|
33
|
+
*/
|
|
34
|
+
this.templateParts = {};
|
|
35
|
+
/**
|
|
36
|
+
* Comme template parts mais sous forme de tableau, sans les clefs.
|
|
37
|
+
*/
|
|
38
|
+
this.templatePartsList = [];
|
|
39
|
+
}
|
|
40
|
+
connectedCallback() {
|
|
41
|
+
const templates = this.templates ||
|
|
42
|
+
[...this.querySelectorAll("template")];
|
|
43
|
+
for (const t of templates) {
|
|
44
|
+
if (t.hasAttribute(this.templateValueAttribute)) {
|
|
45
|
+
this.templateParts[t.getAttribute(this.templateValueAttribute)] = t;
|
|
46
|
+
this.templatePartsList.push(t);
|
|
47
|
+
}
|
|
48
|
+
if (t.hasAttribute("skeleton")) {
|
|
49
|
+
this.templateParts["skeleton"] = t;
|
|
50
|
+
}
|
|
51
|
+
if (t.hasAttribute("no-result")) {
|
|
52
|
+
this.templateParts["no-result"] = t;
|
|
53
|
+
}
|
|
54
|
+
if (t.hasAttribute("no-item")) {
|
|
55
|
+
this.templateParts["no-item"] = t;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
this.templateList = templates.filter((t) => !t.getAttribute("data-value"));
|
|
59
|
+
if (this.templateList.length == 0)
|
|
60
|
+
this.templateList = templates;
|
|
61
|
+
super.connectedCallback();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
__decorate([
|
|
65
|
+
property({ type: Array })
|
|
66
|
+
], TemplatesContainerElement.prototype, "templates", void 0);
|
|
67
|
+
return TemplatesContainerElement;
|
|
68
|
+
};
|
|
69
|
+
export default TemplatesContainer;
|
|
70
|
+
//# sourceMappingURL=TemplatesContainer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TemplatesContainer.js","sourceRoot":"","sources":["../../../../src/core/mixins/TemplatesContainer.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAa7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