@supersoniks/concorde 2.0.7 → 3.0.1
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/build-infos.json +1 -0
- package/concorde-core.bundle.js +387 -344
- package/concorde-core.es.js +8040 -11093
- package/index.html +44 -0
- package/notes de migration.md +21 -0
- package/package.json +23 -290
- package/scripts/postbuild.mjs +22 -0
- package/scripts/prebuild.mjs +22 -0
- package/{components.js → src/components.ts} +5 -2
- package/src/concorde-loaded.ts +3 -0
- package/src/core/_types/types.ts +55 -0
- package/src/core/components/functional/date/date.md +290 -0
- package/src/core/components/functional/date/date.ts +206 -0
- package/src/core/components/functional/example/example.ts +11 -0
- package/src/core/components/functional/fetch/fetch.md +117 -0
- package/{core/components/functional/fetch/fetch.js → src/core/components/functional/fetch/fetch.ts} +33 -37
- package/src/core/components/functional/if/if.md +16 -0
- package/src/core/components/functional/if/if.test.ts +40 -0
- package/src/core/components/functional/if/if.ts +23 -0
- package/src/core/components/functional/list/list.md +194 -0
- package/src/core/components/functional/list/list.ts +236 -0
- package/src/core/components/functional/mix/mix.md +41 -0
- package/src/core/components/functional/mix/mix.ts +95 -0
- package/src/core/components/functional/queue/queue.md +87 -0
- package/src/core/components/functional/queue/queue.ts +279 -0
- package/src/core/components/functional/router/redirect.ts +44 -0
- package/src/core/components/functional/router/router.md +112 -0
- package/src/core/components/functional/router/router.ts +108 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +229 -0
- package/{core → src/core}/components/functional/sdui/default-library.json +13 -13
- package/src/core/components/functional/sdui/example.json +99 -0
- package/src/core/components/functional/sdui/sdui-utils.ts +62 -0
- package/src/core/components/functional/sdui/sdui.md +356 -0
- package/src/core/components/functional/sdui/sdui.ts +230 -0
- package/src/core/components/functional/sdui/types.ts +34 -0
- package/src/core/components/functional/sonic-scope/sonic-scope.ts +13 -0
- package/src/core/components/functional/states/states.md +87 -0
- package/src/core/components/functional/states/states.ts +121 -0
- package/src/core/components/functional/submit/submit.md +48 -0
- package/src/core/components/functional/submit/submit.ts +265 -0
- package/src/core/components/functional/subscriber/subscriber.md +91 -0
- package/src/core/components/functional/subscriber/subscriber.ts +28 -0
- package/src/core/components/functional/value/value.md +35 -0
- package/src/core/components/functional/value/value.ts +18 -0
- package/{core/components/ui/_css/scroll.js → src/core/components/ui/_css/scroll.ts} +3 -2
- package/{core/components/ui/_css/size.js → src/core/components/ui/_css/size.ts} +5 -2
- package/{core/components/ui/_css/type.js → src/core/components/ui/_css/type.ts} +5 -3
- package/src/core/components/ui/alert/alert.md +121 -0
- package/src/core/components/ui/alert/alert.ts +177 -0
- package/src/core/components/ui/badge/badge.md +102 -0
- package/{core/components/ui/badge/badge.js → src/core/components/ui/badge/badge.ts} +36 -51
- package/src/core/components/ui/button/button.md +184 -0
- package/{core/components/ui/button/button.js → src/core/components/ui/button/button.ts} +258 -302
- package/src/core/components/ui/captcha/captcha.md +12 -0
- package/src/core/components/ui/captcha/captcha.ts +88 -0
- package/src/core/components/ui/card/card-footer.ts +19 -0
- package/src/core/components/ui/card/card-header-descripton.ts +24 -0
- package/{core/components/ui/card/card-header.js → src/core/components/ui/card/card-header.ts} +28 -38
- package/src/core/components/ui/card/card-main.ts +24 -0
- package/src/core/components/ui/card/card.md +96 -0
- package/{core/components/ui/card/card.js → src/core/components/ui/card/card.ts} +23 -34
- package/src/core/components/ui/divider/divider.md +35 -0
- package/{core/components/ui/divider/divider.js → src/core/components/ui/divider/divider.ts} +35 -65
- package/src/core/components/ui/form/checkbox/checkbox.md +96 -0
- package/{core/components/ui/form/checkbox/checkbox.js → src/core/components/ui/form/checkbox/checkbox.ts} +79 -98
- package/{core/components/ui/form/css/form-control.js → src/core/components/ui/form/css/form-control.ts} +9 -5
- package/src/core/components/ui/form/fieldset/fieldset.md +129 -0
- package/src/core/components/ui/form/fieldset/fieldset.ts +96 -0
- package/src/core/components/ui/form/fieldset/legend-description.ts +23 -0
- package/src/core/components/ui/form/fieldset/legend.ts +90 -0
- package/src/core/components/ui/form/form-actions/form-actions.md +77 -0
- package/src/core/components/ui/form/form-actions/form-actions.ts +32 -0
- package/src/core/components/ui/form/form-layout/form-layout.md +43 -0
- package/src/core/components/ui/form/form-layout/form-layout.ts +71 -0
- package/src/core/components/ui/form/input/input.md +168 -0
- package/src/core/components/ui/form/input/input.ts +227 -0
- package/src/core/components/ui/form/input/password-helper.ts +68 -0
- package/src/core/components/ui/form/input/same-value-helper.ts +48 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +130 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +285 -0
- package/src/core/components/ui/form/radio/radio.md +86 -0
- package/src/core/components/ui/form/radio/radio.ts +44 -0
- package/src/core/components/ui/form/select/select.md +99 -0
- package/src/core/components/ui/form/select/select.ts +310 -0
- package/src/core/components/ui/form/textarea/textarea.md +66 -0
- package/src/core/components/ui/form/textarea/textarea.ts +119 -0
- package/src/core/components/ui/group/group.md +75 -0
- package/src/core/components/ui/group/group.ts +101 -0
- package/src/core/components/ui/icon/icon.md +125 -0
- package/src/core/components/ui/icon/icon.stories.ts +100 -0
- package/src/core/components/ui/icon/icon.ts +106 -0
- package/src/core/components/ui/icon/icons.json +1 -0
- package/src/core/components/ui/icon/icons.ts +130 -0
- package/src/core/components/ui/icon/svgs/cancel.svg +3 -0
- package/src/core/components/ui/icon/svgs/check-circled-outline.svg +4 -0
- package/src/core/components/ui/icon/svgs/check.svg +3 -0
- package/src/core/components/ui/icon/svgs/emoji-puzzled.svg +1 -0
- package/src/core/components/ui/icon/svgs/info-empty.svg +5 -0
- package/src/core/components/ui/icon/svgs/loader.svg +1 -0
- package/src/core/components/ui/icon/svgs/minus-small.svg +3 -0
- package/src/core/components/ui/icon/svgs/more-horiz.svg +5 -0
- package/src/core/components/ui/icon/svgs/more-vert.svg +5 -0
- package/src/core/components/ui/icon/svgs/nav-arrow-down.svg +3 -0
- package/src/core/components/ui/icon/svgs/warning-circled-outline.svg +5 -0
- package/src/core/components/ui/image/image.md +107 -0
- package/src/core/components/ui/image/image.ts +117 -0
- package/src/core/components/ui/link/link.md +43 -0
- package/src/core/components/ui/link/link.ts +108 -0
- package/src/core/components/ui/loader/loader.md +37 -0
- package/src/core/components/ui/loader/loader.stories.ts +25 -0
- package/src/core/components/ui/loader/loader.ts +81 -0
- package/{core/components/ui/loader/styles/fixed.js → src/core/components/ui/loader/styles/fixed.ts} +2 -1
- package/{core/components/ui/loader/styles/inline.js → src/core/components/ui/loader/styles/inline.ts} +3 -2
- package/src/core/components/ui/menu/menu-item.ts +30 -0
- package/src/core/components/ui/menu/menu.md +288 -0
- package/src/core/components/ui/menu/menu.ts +292 -0
- package/src/core/components/ui/modal/modal-actions.ts +35 -0
- package/src/core/components/ui/modal/modal-close.ts +36 -0
- package/src/core/components/ui/modal/modal-content.ts +19 -0
- package/src/core/components/ui/modal/modal-subtitle.ts +23 -0
- package/src/core/components/ui/modal/modal-title.ts +22 -0
- package/src/core/components/ui/modal/modal.md +123 -0
- package/src/core/components/ui/modal/modal.stories.ts +140 -0
- package/src/core/components/ui/modal/modal.ts +386 -0
- package/src/core/components/ui/pop/pop.md +79 -0
- package/src/core/components/ui/pop/pop.ts +291 -0
- package/src/core/components/ui/progress/progress.md +65 -0
- package/{core/components/ui/progress/progress.js → src/core/components/ui/progress/progress.ts} +31 -50
- package/src/core/components/ui/table/table-caption.ts +21 -0
- package/src/core/components/ui/table/table-tbody.ts +32 -0
- package/src/core/components/ui/table/table-td.ts +47 -0
- package/src/core/components/ui/table/table-tfoot.ts +20 -0
- package/src/core/components/ui/table/table-th.ts +56 -0
- package/src/core/components/ui/table/table-thead.ts +18 -0
- package/src/core/components/ui/table/table-tr.ts +48 -0
- package/src/core/components/ui/table/table.md +467 -0
- package/{core/components/ui/table/table.js → src/core/components/ui/table/table.ts} +32 -53
- package/{core/components/ui/theme/theme-collection/core-variables.js → src/core/components/ui/theme/theme-collection/core-variables.ts} +3 -2
- package/{core/components/ui/theme/theme-collection/dark.js → src/core/components/ui/theme/theme-collection/dark.ts} +5 -3
- package/{core/components/ui/theme/theme-collection/light.js → src/core/components/ui/theme/theme-collection/light.ts} +3 -2
- package/src/core/components/ui/theme/theme.ts +118 -0
- package/src/core/components/ui/toast/message-subscriber.stories.ts +43 -0
- package/src/core/components/ui/toast/message-subscriber.ts +37 -0
- package/{core/components/ui/toast/toast-item.js → src/core/components/ui/toast/toast-item.ts} +86 -113
- package/src/core/components/ui/toast/toast.ts +237 -0
- package/src/core/components/ui/toast/types.ts +14 -0
- package/src/core/components/ui/tooltip/tooltip.md +37 -0
- package/{core/components/ui/tooltip/tooltip.js → src/core/components/ui/tooltip/tooltip.ts} +26 -47
- package/{core/components/ui/ui.js → src/core/components/ui/ui.ts} +2 -0
- package/src/core/core.ts +22 -0
- package/src/core/decorators/Subscriber.ts +187 -0
- package/src/core/directives/DataProvider.ts +113 -0
- package/src/core/directives/Wording.ts +220 -0
- package/src/core/mixins/Fetcher.ts +258 -0
- package/src/core/mixins/FormCheckable.ts +287 -0
- package/src/core/mixins/FormElement.ts +275 -0
- package/src/core/mixins/FormInput.ts +135 -0
- package/src/core/mixins/Subscriber.ts +352 -0
- package/src/core/mixins/TemplatesContainer.ts +70 -0
- package/{core/mixins/mixins.d.ts → src/core/mixins/mixins.ts} +1 -1
- package/src/core/utils/Arrays.ts +161 -0
- package/src/core/utils/DataBindObserver.ts +286 -0
- package/src/core/utils/Electron.ts +15 -0
- package/src/core/utils/Format.ts +58 -0
- package/src/core/utils/HTML.ts +126 -0
- package/src/core/utils/LocationHandler.ts +139 -0
- package/src/core/utils/Objects.ts +103 -0
- package/src/core/utils/PublisherProxy.ts +786 -0
- package/src/core/utils/Utils.ts +12 -0
- package/src/core/utils/api.ts +456 -0
- package/{core/utils/url-pattern.d.ts → src/core/utils/url-pattern.ts} +1 -0
- package/{decorators.js → src/decorators.ts} +6 -2
- package/{directives.js → src/directives.ts} +11 -6
- package/src/docs/_core-concept/overview.md +57 -0
- package/src/docs/_core-concept/subscriber.md +76 -0
- package/src/docs/_getting-started/concorde-outside.md +141 -0
- package/src/docs/_getting-started/create-a-component.md +137 -0
- package/src/docs/_getting-started/pubsub.md +150 -0
- package/src/docs/_getting-started/start.md +37 -0
- package/src/docs/_getting-started/theming.md +91 -0
- package/src/docs/code.ts +281 -0
- package/src/docs/docs.ts +6 -0
- package/src/docs/example/users.ts +64 -0
- package/src/docs/navigation/navigation.ts +101 -0
- package/src/docs/prism/index.ts +6 -0
- package/src/docs/prism/prism.css +158 -0
- package/src/docs/prism/prism.js +1022 -0
- package/src/docs/search/docs-search.json +3767 -0
- package/src/docs/search/markdown-renderer.ts +40 -0
- package/src/docs/search/page.ts +40 -0
- package/src/docs/search/search.ts +184 -0
- package/src/docs.ts +2 -0
- package/src/index.ts +7 -0
- package/{mixins.js → src/mixins.ts} +10 -6
- package/src/tag-list.json +1 -0
- package/src/test-utils/TestUtils.ts +13 -0
- package/src/tsconfig.json +113 -0
- package/{utils.js → src/utils.ts} +15 -11
- package/test-utils/TestUtils.ts +13 -0
- package/vite/config.js +136 -0
- package/vite.config.mts +87 -0
- package/README.md +0 -27
- package/cli.js +0 -75
- package/components.d.ts +0 -4
- package/core/_types/types.d.ts +0 -28
- package/core/_types/types.js +0 -2
- package/core/components/functional/date/date.d.ts +0 -45
- package/core/components/functional/date/date.js +0 -243
- package/core/components/functional/example/example.d.ts +0 -7
- package/core/components/functional/example/example.js +0 -26
- package/core/components/functional/fetch/fetch.d.ts +0 -93
- package/core/components/functional/functional.js +0 -15
- package/core/components/functional/if/if.d.ts +0 -12
- package/core/components/functional/if/if.js +0 -38
- package/core/components/functional/if/if.test.d.ts +0 -1
- package/core/components/functional/if/if.test.js +0 -35
- package/core/components/functional/list/list.d.ts +0 -117
- package/core/components/functional/list/list.js +0 -214
- package/core/components/functional/mix/mix.d.ts +0 -22
- package/core/components/functional/mix/mix.js +0 -102
- package/core/components/functional/queue/queue.d.ts +0 -67
- package/core/components/functional/queue/queue.js +0 -310
- package/core/components/functional/router/redirect.d.ts +0 -18
- package/core/components/functional/router/redirect.js +0 -53
- package/core/components/functional/router/router.d.ts +0 -27
- package/core/components/functional/router/router.js +0 -119
- package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +0 -58
- package/core/components/functional/sdui/SDUIDescriptorTransformer.js +0 -215
- package/core/components/functional/sdui/sdui-utils.d.ts +0 -5
- package/core/components/functional/sdui/sdui-utils.js +0 -63
- package/core/components/functional/sdui/sdui.d.ts +0 -136
- package/core/components/functional/sdui/sdui.js +0 -254
- package/core/components/functional/sdui/types.d.ts +0 -37
- package/core/components/functional/sdui/types.js +0 -1
- package/core/components/functional/sonic-scope/sonic-scope.d.ts +0 -5
- package/core/components/functional/sonic-scope/sonic-scope.js +0 -21
- package/core/components/functional/states/states.d.ts +0 -29
- package/core/components/functional/states/states.js +0 -134
- package/core/components/functional/submit/submit.d.ts +0 -30
- package/core/components/functional/submit/submit.js +0 -236
- package/core/components/functional/subscriber/subscriber.d.ts +0 -12
- package/core/components/functional/subscriber/subscriber.js +0 -38
- package/core/components/functional/value/value.d.ts +0 -7
- package/core/components/functional/value/value.js +0 -27
- package/core/components/ui/_css/scroll.d.ts +0 -1
- package/core/components/ui/_css/size.d.ts +0 -2
- package/core/components/ui/_css/type.d.ts +0 -2
- package/core/components/ui/alert/alert.d.ts +0 -34
- package/core/components/ui/alert/alert.js +0 -202
- package/core/components/ui/badge/badge.d.ts +0 -26
- package/core/components/ui/button/button.d.ts +0 -171
- package/core/components/ui/captcha/captcha.d.ts +0 -30
- package/core/components/ui/captcha/captcha.js +0 -93
- package/core/components/ui/card/card-footer.d.ts +0 -4
- package/core/components/ui/card/card-footer.js +0 -24
- package/core/components/ui/card/card-header-descripton.d.ts +0 -5
- package/core/components/ui/card/card-header-descripton.js +0 -32
- package/core/components/ui/card/card-header.d.ts +0 -8
- package/core/components/ui/card/card-main.d.ts +0 -4
- package/core/components/ui/card/card-main.js +0 -28
- package/core/components/ui/card/card.d.ts +0 -12
- package/core/components/ui/divider/divider.d.ts +0 -15
- package/core/components/ui/form/checkbox/checkbox.d.ts +0 -181
- package/core/components/ui/form/css/form-control.d.ts +0 -4
- package/core/components/ui/form/fieldset/fieldset.d.ts +0 -23
- package/core/components/ui/form/fieldset/fieldset.js +0 -118
- package/core/components/ui/form/fieldset/legend-description.d.ts +0 -5
- package/core/components/ui/form/fieldset/legend-description.js +0 -30
- package/core/components/ui/form/fieldset/legend.d.ts +0 -16
- package/core/components/ui/form/fieldset/legend.js +0 -112
- package/core/components/ui/form/form-actions/form-actions.d.ts +0 -7
- package/core/components/ui/form/form-actions/form-actions.js +0 -46
- package/core/components/ui/form/form-layout/form-layout.d.ts +0 -12
- package/core/components/ui/form/form-layout/form-layout.js +0 -83
- package/core/components/ui/form/input/input.d.ts +0 -106
- package/core/components/ui/form/input/input.js +0 -268
- package/core/components/ui/form/input/password-helper.d.ts +0 -25
- package/core/components/ui/form/input/password-helper.js +0 -119
- package/core/components/ui/form/input/same-value-helper.d.ts +0 -16
- package/core/components/ui/form/input/same-value-helper.js +0 -77
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +0 -136
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +0 -296
- package/core/components/ui/form/radio/radio.d.ts +0 -12
- package/core/components/ui/form/radio/radio.js +0 -50
- package/core/components/ui/form/select/select.d.ts +0 -58
- package/core/components/ui/form/select/select.js +0 -298
- package/core/components/ui/form/textarea/textarea.d.ts +0 -84
- package/core/components/ui/form/textarea/textarea.js +0 -150
- package/core/components/ui/group/group.d.ts +0 -16
- package/core/components/ui/group/group.js +0 -118
- package/core/components/ui/icon/icon.d.ts +0 -26
- package/core/components/ui/icon/icon.js +0 -113
- package/core/components/ui/icon/icons.d.ts +0 -10
- package/core/components/ui/icon/icons.js +0 -126
- package/core/components/ui/icon/icons.json +0 -1
- package/core/components/ui/image/image.d.ts +0 -15
- package/core/components/ui/image/image.js +0 -153
- package/core/components/ui/link/link.d.ts +0 -29
- package/core/components/ui/link/link.js +0 -124
- package/core/components/ui/loader/loader.d.ts +0 -23
- package/core/components/ui/loader/loader.js +0 -97
- package/core/components/ui/loader/styles/fixed.d.ts +0 -1
- package/core/components/ui/loader/styles/inline.d.ts +0 -1
- package/core/components/ui/menu/menu-item.d.ts +0 -5
- package/core/components/ui/menu/menu-item.js +0 -34
- package/core/components/ui/menu/menu.d.ts +0 -41
- package/core/components/ui/menu/menu.js +0 -313
- package/core/components/ui/modal/modal-actions.d.ts +0 -7
- package/core/components/ui/modal/modal-actions.js +0 -42
- package/core/components/ui/modal/modal-close.d.ts +0 -7
- package/core/components/ui/modal/modal-close.js +0 -43
- package/core/components/ui/modal/modal-content.d.ts +0 -5
- package/core/components/ui/modal/modal-content.js +0 -26
- package/core/components/ui/modal/modal-subtitle.d.ts +0 -5
- package/core/components/ui/modal/modal-subtitle.js +0 -30
- package/core/components/ui/modal/modal-title.d.ts +0 -5
- package/core/components/ui/modal/modal-title.js +0 -29
- package/core/components/ui/modal/modal.d.ts +0 -58
- package/core/components/ui/modal/modal.js +0 -401
- package/core/components/ui/pop/pop.d.ts +0 -37
- package/core/components/ui/pop/pop.js +0 -299
- package/core/components/ui/progress/progress.d.ts +0 -10
- package/core/components/ui/table/table-caption.d.ts +0 -5
- package/core/components/ui/table/table-caption.js +0 -28
- package/core/components/ui/table/table-tbody.d.ts +0 -5
- package/core/components/ui/table/table-tbody.js +0 -39
- package/core/components/ui/table/table-td.d.ts +0 -12
- package/core/components/ui/table/table-td.js +0 -68
- package/core/components/ui/table/table-tfoot.d.ts +0 -5
- package/core/components/ui/table/table-tfoot.js +0 -27
- package/core/components/ui/table/table-th.d.ts +0 -11
- package/core/components/ui/table/table-th.js +0 -73
- package/core/components/ui/table/table-thead.d.ts +0 -5
- package/core/components/ui/table/table-thead.js +0 -25
- package/core/components/ui/table/table-tr.d.ts +0 -13
- package/core/components/ui/table/table-tr.js +0 -66
- package/core/components/ui/table/table.d.ts +0 -17
- package/core/components/ui/theme/theme-collection/core-variables.d.ts +0 -1
- package/core/components/ui/theme/theme-collection/dark.d.ts +0 -1
- package/core/components/ui/theme/theme-collection/light.d.ts +0 -1
- package/core/components/ui/theme/theme.d.ts +0 -19
- package/core/components/ui/theme/theme.js +0 -124
- package/core/components/ui/toast/message-subscriber.d.ts +0 -18
- package/core/components/ui/toast/message-subscriber.js +0 -40
- package/core/components/ui/toast/toast-item.d.ts +0 -19
- package/core/components/ui/toast/toast.d.ts +0 -25
- package/core/components/ui/toast/toast.js +0 -226
- package/core/components/ui/toast/types.d.ts +0 -11
- package/core/components/ui/toast/types.js +0 -1
- package/core/components/ui/tooltip/tooltip.d.ts +0 -10
- package/core/components/ui/ui.d.ts +0 -32
- package/core/core.d.ts +0 -4
- package/core/core.js +0 -19
- package/core/decorators/Subscriber.d.ts +0 -4
- package/core/decorators/Subscriber.js +0 -166
- package/core/directives/DataProvider.d.ts +0 -23
- package/core/directives/DataProvider.js +0 -102
- package/core/directives/Wording.d.ts +0 -42
- package/core/directives/Wording.js +0 -202
- package/core/mixins/Fetcher.d.ts +0 -90
- package/core/mixins/Fetcher.js +0 -242
- package/core/mixins/FormCheckable.d.ts +0 -88
- package/core/mixins/FormCheckable.js +0 -306
- package/core/mixins/FormElement.d.ts +0 -32
- package/core/mixins/FormElement.js +0 -272
- package/core/mixins/FormInput.d.ts +0 -70
- package/core/mixins/FormInput.js +0 -81
- package/core/mixins/Subscriber.d.ts +0 -36
- package/core/mixins/Subscriber.js +0 -333
- package/core/mixins/TemplatesContainer.d.ts +0 -13
- package/core/mixins/TemplatesContainer.js +0 -69
- package/core/mixins/mixins.js +0 -6
- package/core/utils/Arrays.d.ts +0 -97
- package/core/utils/Arrays.js +0 -140
- package/core/utils/DataBindObserver.d.ts +0 -83
- package/core/utils/DataBindObserver.js +0 -264
- package/core/utils/Electron.d.ts +0 -7
- package/core/utils/Electron.js +0 -11
- package/core/utils/Format.d.ts +0 -12
- package/core/utils/Format.js +0 -38
- package/core/utils/HTML.d.ts +0 -42
- package/core/utils/HTML.js +0 -119
- package/core/utils/LocationHandler.d.ts +0 -46
- package/core/utils/LocationHandler.js +0 -133
- package/core/utils/Objects.d.ts +0 -28
- package/core/utils/Objects.js +0 -102
- package/core/utils/PublisherProxy.d.ts +0 -176
- package/core/utils/PublisherProxy.js +0 -709
- package/core/utils/Utils.d.ts +0 -4
- package/core/utils/Utils.js +0 -12
- package/core/utils/api.d.ts +0 -139
- package/core/utils/api.js +0 -391
- package/core/utils/url-pattern.js +0 -2
- package/decorators.d.ts +0 -3
- package/directives.d.ts +0 -40
- package/img/concorde-logo.svg +0 -1
- package/img/concorde.png +0 -0
- package/img/concorde_def.png +0 -0
- package/mixins.d.ts +0 -181
- package/svg/regular/plane.svg +0 -1
- package/svg/solid/plane.svg +0 -1
- package/test-utils/TestUtils.d.ts +0 -4
- package/test-utils/TestUtils.js +0 -12
- package/utils.d.ts +0 -20
- /package/{core/components/functional/functional.d.ts → src/core/components/functional/functional.ts} +0 -0
- /package/{core → src/core}/components/ui/theme/css/tailwind.css +0 -0
- /package/{core → src/core}/components/ui/theme/css/tailwind.d.ts +0 -0
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { LitElement, CSSResultGroup, PropertyValues } from "lit";
|
|
2
|
-
import "@supersoniks/concorde/core/components/ui/icon/icon";
|
|
3
|
-
declare const Checkbox_base: {
|
|
4
|
-
new (...args: any[]): {
|
|
5
|
-
_value: string | null;
|
|
6
|
-
value: string | null;
|
|
7
|
-
forceAutoFill: boolean;
|
|
8
|
-
unique: true | null;
|
|
9
|
-
radio: true | null;
|
|
10
|
-
unCheckOnDisconnect: boolean;
|
|
11
|
-
_checked: true | "indeterminate" | null;
|
|
12
|
-
checked: true | "indeterminate" | null;
|
|
13
|
-
validateFormElement(): void;
|
|
14
|
-
checksAll(): boolean;
|
|
15
|
-
setCheckedValue(checked: true | "indeterminate" | null): void;
|
|
16
|
-
handleChange(): void;
|
|
17
|
-
getValueForFormPublisher(): any;
|
|
18
|
-
setFormValueFromPublisher(value: string | (string | null)[] | null): void;
|
|
19
|
-
getCheckAllPublisher(): any;
|
|
20
|
-
updateAllChecked: () => void;
|
|
21
|
-
onChecksAllRequest: (value: string) => void;
|
|
22
|
-
disconnectedCallback(): void;
|
|
23
|
-
connectedCallback(): void;
|
|
24
|
-
getFormPublisher(): any;
|
|
25
|
-
updateDataValue(): void;
|
|
26
|
-
handleBlur(e?: Event | undefined): void;
|
|
27
|
-
setValueFromPublisher(value: string | object | string[] | null | undefined): void;
|
|
28
|
-
focus?: (() => void) | undefined;
|
|
29
|
-
shadowRoot?: ShadowRoot | undefined;
|
|
30
|
-
error: boolean;
|
|
31
|
-
autofocus: boolean;
|
|
32
|
-
required: boolean;
|
|
33
|
-
disabled: true | null;
|
|
34
|
-
formDataProvider: string;
|
|
35
|
-
ariaLabelledby?: string | undefined;
|
|
36
|
-
ariaLabel?: string | undefined;
|
|
37
|
-
_name: string;
|
|
38
|
-
name: string;
|
|
39
|
-
props: import("../../../../_types/types").CoreJSType;
|
|
40
|
-
propertyMap: object;
|
|
41
|
-
isConnected: boolean;
|
|
42
|
-
children: HTMLCollection;
|
|
43
|
-
appendChild(node: Node): Node;
|
|
44
|
-
getAncestorAttributeValue(attributeName: string): string;
|
|
45
|
-
hasAncestorAttribute(attributeName: string): boolean;
|
|
46
|
-
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
47
|
-
publisher: any;
|
|
48
|
-
dataProvider: string | null;
|
|
49
|
-
noShadowDom: string | null;
|
|
50
|
-
debug: HTMLElement | null;
|
|
51
|
-
defferedDebug: boolean | null;
|
|
52
|
-
displayContents: boolean;
|
|
53
|
-
dispatchEvent(event: Event): void;
|
|
54
|
-
setAttribute(name: string, value: string): void;
|
|
55
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
56
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
57
|
-
removeAttribute(name: string): void;
|
|
58
|
-
initPublisher(): void;
|
|
59
|
-
getApiConfiguration(): import("../../../../utils/api").APIConfiguration;
|
|
60
|
-
requestUpdate(): void;
|
|
61
|
-
getAttribute(name: string): string;
|
|
62
|
-
hasAttribute(attributeName: string): boolean;
|
|
63
|
-
getBoundingClientRect(): DOMRect;
|
|
64
|
-
};
|
|
65
|
-
} & {
|
|
66
|
-
new (...args: any[]): {
|
|
67
|
-
validateFormElement(): void;
|
|
68
|
-
forceAutoFill: boolean;
|
|
69
|
-
_type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
70
|
-
type: "number" | "search" | "time" | "file" | "button" | "url" | "color" | "hidden" | "image" | "text" | "reset" | "submit" | "email" | "tel" | "month" | "week" | "checkbox" | "radio" | "range" | "date" | "datetime-local" | "password";
|
|
71
|
-
_description?: string | undefined;
|
|
72
|
-
description: string | undefined;
|
|
73
|
-
_label?: string | undefined;
|
|
74
|
-
label: string | undefined;
|
|
75
|
-
status: "error" | "default" | "success" | "warning" | "info";
|
|
76
|
-
tabindex?: number | undefined;
|
|
77
|
-
autocomplete?: "url" | "name" | "off" | "on" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "bday-day" | "bday-month" | "bday-year" | "cc-csc" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-number" | "cc-type" | "country" | "country-name" | "current-password" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "new-password" | "one-time-code" | "organization" | "postal-code" | "street-address" | "transaction-amount" | "transaction-currency" | "username" | "email" | "tel" | "tel-area-code" | "tel-country-code" | "tel-extension" | "tel-local" | "tel-national" | "language" | "nickname" | "organization-title" | "cc-additional-name" | "bday" | "sex" | "impp" | "photo" | undefined;
|
|
78
|
-
getFormPublisher(): any;
|
|
79
|
-
updateDataValue(): void;
|
|
80
|
-
handleChange(e?: Event | undefined): void;
|
|
81
|
-
handleBlur(e?: Event | undefined): void;
|
|
82
|
-
/**
|
|
83
|
-
* ### Le composent sonic-checkbox étend les mixins FormCheckable, FormInput, FormElement et Subscriber
|
|
84
|
-
* **FormElement :**
|
|
85
|
-
* * La propriété value est remplie automatiquement a l'aide de l'attribut name renseigné, ceci en prenant la valeur de la propriété du même nom dans les données du dataprovider associé.
|
|
86
|
-
* * Par défault lorsque modifie l'input, la valeur est également mise à jour via le même dataprovider
|
|
87
|
-
* * On peut cependant décider de mettre à jour la donnée à une autre adresse en renseigne l'attribut *formDataProvider*.
|
|
88
|
-
* * Par conséquent on peut par exemple le lier à un composant *queue* (via sa propriété *dataFilterProvider*) de manière à appeller en auto une api avec des filtres.
|
|
89
|
-
* * **FormInput **
|
|
90
|
-
* Uniquement des propriétés classiques d'un input HTML. La prise en compte est ici partielle, par exemple les propriétés *placeholder*, *readonly*, *pattern*, *min* et *max* n'ont pas de sens pour un checkbox.
|
|
91
|
-
* **FormCheckable :**
|
|
92
|
-
* * La propriété checked mise à true si la valeur de la propriété du même nom dans les données du dataprovider associé contient un propriété checked.
|
|
93
|
-
* **Comportements :**
|
|
94
|
-
* * multiple (par défaut):
|
|
95
|
-
* - on peut cocher plusieurs checkbox ayant le même *name*.
|
|
96
|
-
* - la valeur enregistrée dans la propriété nommé du même nom dans formDataProvider est un tableau avec les *value* des cases cochées ayant le même *name*.
|
|
97
|
-
* * unique (Ajouter l'attribute unique au composant a l'intégration):
|
|
98
|
-
* - on ne peut cocher qu'une seule checkbox ayant le même *name*.
|
|
99
|
-
* * radio (Ajouter l'attribute radio au composant a l'intégration):
|
|
100
|
-
* Comme unique, mais on ne peut pas décocher la case sauf en en cochant une autre, comme un bouton radio.
|
|
101
|
-
*/
|
|
102
|
-
getValueForFormPublisher(): string | object | string[] | null | undefined;
|
|
103
|
-
setValueFromPublisher(value: string | object | string[] | null | undefined): void;
|
|
104
|
-
focus?: (() => void) | undefined;
|
|
105
|
-
shadowRoot?: ShadowRoot | undefined;
|
|
106
|
-
error: boolean;
|
|
107
|
-
autofocus: boolean;
|
|
108
|
-
required: boolean;
|
|
109
|
-
disabled: true | null;
|
|
110
|
-
formDataProvider: string;
|
|
111
|
-
ariaLabelledby?: string | undefined;
|
|
112
|
-
ariaLabel?: string | undefined;
|
|
113
|
-
_value: string | object | string[] | null | undefined;
|
|
114
|
-
value: string | object | string[] | null | undefined;
|
|
115
|
-
_name: string;
|
|
116
|
-
name: string;
|
|
117
|
-
props: import("../../../../_types/types").CoreJSType;
|
|
118
|
-
propertyMap: object;
|
|
119
|
-
isConnected: boolean;
|
|
120
|
-
children: HTMLCollection;
|
|
121
|
-
appendChild(node: Node): Node;
|
|
122
|
-
getAncestorAttributeValue(attributeName: string): string;
|
|
123
|
-
hasAncestorAttribute(attributeName: string): boolean;
|
|
124
|
-
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
125
|
-
publisher: any;
|
|
126
|
-
dataProvider: string | null;
|
|
127
|
-
noShadowDom: string | null;
|
|
128
|
-
debug: HTMLElement | null;
|
|
129
|
-
defferedDebug: boolean | null;
|
|
130
|
-
displayContents: boolean;
|
|
131
|
-
dispatchEvent(event: Event): void;
|
|
132
|
-
setAttribute(name: string, value: string): void;
|
|
133
|
-
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
134
|
-
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
135
|
-
removeAttribute(name: string): void;
|
|
136
|
-
initPublisher(): void;
|
|
137
|
-
getApiConfiguration(): import("../../../../utils/api").APIConfiguration;
|
|
138
|
-
connectedCallback(): void;
|
|
139
|
-
requestUpdate(): void;
|
|
140
|
-
getAttribute(name: string): string;
|
|
141
|
-
hasAttribute(attributeName: string): boolean;
|
|
142
|
-
disconnectedCallback(): void;
|
|
143
|
-
getBoundingClientRect(): DOMRect;
|
|
144
|
-
};
|
|
145
|
-
} & (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/FormElement").FormElementInterface) & (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface<import("../../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
146
|
-
/**
|
|
147
|
-
* ### Le composent sonic-checkbox étend les mixins FormCheckable, FormInput, FormElement et Subscriber
|
|
148
|
-
* **FormElement :**
|
|
149
|
-
* * La propriété value est remplie automatiquement a l'aide de l'attribut name renseigné, ceci en prenant la valeur de la propriété du même nom dans les données du dataprovider associé.
|
|
150
|
-
* * Par défault lorsque modifie l'input, la valeur est également mise à jour via le même dataprovider
|
|
151
|
-
* * On peut cependant décider de mettre à jour la donnée à une autre adresse en renseigne l'attribut *formDataProvider*.
|
|
152
|
-
* * Par conséquent on peut par exemple le lier à un composant *queue* (via sa propriété *dataFilterProvider*) de manière à appeller en auto une api avec des filtres.
|
|
153
|
-
* * **FormInput **
|
|
154
|
-
* Uniquement des propriétés classiques d'un input HTML. La prise en compte est ici partielle, par exemple les propriétés *placeholder*, *readonly*, *pattern*, *min* et *max* n'ont pas de sens pour un checkbox.
|
|
155
|
-
* **FormCheckable :**
|
|
156
|
-
* * La propriété checked mise à true si la valeur de la propriété du même nom dans les données du dataprovider associé contient un propriété checked.
|
|
157
|
-
* **Comportements :**
|
|
158
|
-
* * multiple (par défaut):
|
|
159
|
-
* - on peut cocher plusieurs checkbox ayant le même *name*.
|
|
160
|
-
* - la valeur enregistrée dans la propriété nommé du même nom dans formDataProvider est un tableau avec les *value* des cases cochées ayant le même *name*.
|
|
161
|
-
* * unique (Ajouter l'attribute unique au composant a l'intégration):
|
|
162
|
-
* - on ne peut cocher qu'une seule checkbox ayant le même *name*.
|
|
163
|
-
* * radio (Ajouter l'attribute radio au composant a l'intégration):
|
|
164
|
-
* Comme unique, mais on ne peut pas décocher la case sauf en en cochant une autre, comme un bouton radio.
|
|
165
|
-
*/
|
|
166
|
-
export declare class Checkbox extends Checkbox_base {
|
|
167
|
-
static styles: CSSResultGroup[];
|
|
168
|
-
touched: boolean;
|
|
169
|
-
iconName: string;
|
|
170
|
-
indeterminateIconName: string;
|
|
171
|
-
showAsIndeterminate: boolean;
|
|
172
|
-
hasDescription: boolean;
|
|
173
|
-
hasLabel: boolean;
|
|
174
|
-
slotLabelNodes: Array<Node>;
|
|
175
|
-
slotDescriptionNodes: Array<Node>;
|
|
176
|
-
connectedCallback(): void;
|
|
177
|
-
willUpdate(changedProperties: PropertyValues): void;
|
|
178
|
-
hasSlotOrProps(): void;
|
|
179
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
180
|
-
}
|
|
181
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "./legend";
|
|
3
|
-
declare const Fieldset_base: (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface<import("../../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
4
|
-
export declare class Fieldset extends Fieldset_base {
|
|
5
|
-
static styles: import("lit").CSSResult[];
|
|
6
|
-
/**
|
|
7
|
-
* Désactiver le fieldset
|
|
8
|
-
*/
|
|
9
|
-
disabled: true | false;
|
|
10
|
-
/**
|
|
11
|
-
* Lier à un formulaire qui ne serait pas parent du fieldset
|
|
12
|
-
*/
|
|
13
|
-
form?: string;
|
|
14
|
-
label?: string;
|
|
15
|
-
description?: string;
|
|
16
|
-
iconName?: string;
|
|
17
|
-
iconLibrary?: string;
|
|
18
|
-
iconPrefix?: string;
|
|
19
|
-
tight?: boolean;
|
|
20
|
-
variant: "default" | "ghost" | "shadow";
|
|
21
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
22
|
-
}
|
|
23
|
-
export {};
|
|
@@ -1,118 +0,0 @@
|
|
|
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 { html, LitElement, css, nothing } from "lit";
|
|
8
|
-
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
10
|
-
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
11
|
-
import "./legend";
|
|
12
|
-
const tagName = "sonic-fieldset";
|
|
13
|
-
let Fieldset = class Fieldset extends Subscriber(LitElement) {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
// @property({ type: String }) label: String = "";
|
|
17
|
-
/**
|
|
18
|
-
* Désactiver le fieldset
|
|
19
|
-
*/
|
|
20
|
-
this.disabled = false;
|
|
21
|
-
this.variant = "default";
|
|
22
|
-
}
|
|
23
|
-
render() {
|
|
24
|
-
return html `<fieldset form="${ifDefined(this.form)}" ?disabled="${this.disabled}">
|
|
25
|
-
${this.label
|
|
26
|
-
? html ` <sonic-legend
|
|
27
|
-
label=${ifDefined(this.label)}
|
|
28
|
-
description=${ifDefined(this.description)}
|
|
29
|
-
iconName=${ifDefined(this.iconName)}
|
|
30
|
-
iconPrefix=${ifDefined(this.iconPrefix)}
|
|
31
|
-
iconLibrary=${ifDefined(this.iconLibrary)}
|
|
32
|
-
></sonic-legend>`
|
|
33
|
-
: nothing}
|
|
34
|
-
<slot></slot>
|
|
35
|
-
</fieldset>`;
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
Fieldset.styles = [
|
|
39
|
-
css `
|
|
40
|
-
:host {
|
|
41
|
-
--sc-fieldset-mt: 0;
|
|
42
|
-
--sc-fieldset-mb: 1rem;
|
|
43
|
-
--sc-fieldset-border-color: var(--sc-border-color);
|
|
44
|
-
--sc-fieldset-border-width: var(--sc-form-border-width);
|
|
45
|
-
--sc-fieldset-px: 1.25rem;
|
|
46
|
-
--sc-fieldset-py: 1.8rem;
|
|
47
|
-
|
|
48
|
-
margin-top: var(--sc-fieldset-mt);
|
|
49
|
-
margin-bottom: var(--sc-fieldset-mb);
|
|
50
|
-
display: block;
|
|
51
|
-
border: var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color) !important;
|
|
52
|
-
padding: var(--sc-fieldset-py) var(--sc-fieldset-px);
|
|
53
|
-
border-radius: var(--sc-rounded-lg);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
fieldset {
|
|
57
|
-
all: unset;
|
|
58
|
-
display: contents;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
:host([variant="shadow"]),
|
|
62
|
-
:host([variant="ghost"]) {
|
|
63
|
-
--sc-fieldset-border-color: transparent;
|
|
64
|
-
}
|
|
65
|
-
:host([variant="shadow"]) {
|
|
66
|
-
--sc-fieldset-border-color: transparent;
|
|
67
|
-
box-shadow: var(--sc-shadow-lg);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
:host([tight]) {
|
|
71
|
-
--sc-fieldset-px: 0;
|
|
72
|
-
border-left: none !important;
|
|
73
|
-
border-right: none !important;
|
|
74
|
-
border-radius: 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
sonic-legend,
|
|
78
|
-
::slotted(sonic-legend) {
|
|
79
|
-
margin-bottom: 1.5rem;
|
|
80
|
-
display: block;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
::slotted(sonic-legend:last-child) {
|
|
84
|
-
margin-bottom: 0;
|
|
85
|
-
}
|
|
86
|
-
`,
|
|
87
|
-
];
|
|
88
|
-
__decorate([
|
|
89
|
-
property({ type: Boolean, reflect: true })
|
|
90
|
-
], Fieldset.prototype, "disabled", void 0);
|
|
91
|
-
__decorate([
|
|
92
|
-
property({ type: String })
|
|
93
|
-
], Fieldset.prototype, "form", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
property({ type: String })
|
|
96
|
-
], Fieldset.prototype, "label", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
property({ type: String })
|
|
99
|
-
], Fieldset.prototype, "description", void 0);
|
|
100
|
-
__decorate([
|
|
101
|
-
property({ type: String })
|
|
102
|
-
], Fieldset.prototype, "iconName", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
property({ type: String })
|
|
105
|
-
], Fieldset.prototype, "iconLibrary", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
property({ type: String })
|
|
108
|
-
], Fieldset.prototype, "iconPrefix", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
property({ type: Boolean, reflect: true })
|
|
111
|
-
], Fieldset.prototype, "tight", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
property({ type: String, reflect: true })
|
|
114
|
-
], Fieldset.prototype, "variant", void 0);
|
|
115
|
-
Fieldset = __decorate([
|
|
116
|
-
customElement(tagName)
|
|
117
|
-
], Fieldset);
|
|
118
|
-
export { Fieldset };
|
|
@@ -1,30 +0,0 @@
|
|
|
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 { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement } from "lit/decorators.js";
|
|
9
|
-
let LegendDescription = class LegendDescription extends LitElement {
|
|
10
|
-
render() {
|
|
11
|
-
return html `<slot></slot>`;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
LegendDescription.styles = [
|
|
15
|
-
css `
|
|
16
|
-
:host {
|
|
17
|
-
font-size: 1.15rem;
|
|
18
|
-
line-height: 1.2;
|
|
19
|
-
display: block;
|
|
20
|
-
color: var(--sc-base-500);
|
|
21
|
-
font-weight: var(--sc-font-weight-base);
|
|
22
|
-
font-style: var(--sc-font-style-base);
|
|
23
|
-
margin-top: 0.2em;
|
|
24
|
-
}
|
|
25
|
-
`,
|
|
26
|
-
];
|
|
27
|
-
LegendDescription = __decorate([
|
|
28
|
-
customElement("sonic-legend-description")
|
|
29
|
-
], LegendDescription);
|
|
30
|
-
export { LegendDescription };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import "@supersoniks/concorde/core/components/ui/form/fieldset/legend-description";
|
|
3
|
-
export declare class Legend extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
forceAutoFill: boolean;
|
|
6
|
-
_description?: string;
|
|
7
|
-
get description(): string | undefined;
|
|
8
|
-
set description(value: string | undefined);
|
|
9
|
-
_label?: string;
|
|
10
|
-
get label(): string | undefined;
|
|
11
|
-
set label(value: string | undefined);
|
|
12
|
-
iconName?: string;
|
|
13
|
-
iconLibrary?: string;
|
|
14
|
-
iconPrefix?: string;
|
|
15
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
16
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
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 { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
import "@supersoniks/concorde/core/components/ui/form/fieldset/legend-description";
|
|
10
|
-
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
11
|
-
import { ifDefined } from "lit/directives/if-defined.js";
|
|
12
|
-
const tagName = "sonic-legend";
|
|
13
|
-
let Legend = class Legend extends LitElement {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this.forceAutoFill = false;
|
|
17
|
-
}
|
|
18
|
-
get description() {
|
|
19
|
-
return this._description;
|
|
20
|
-
}
|
|
21
|
-
set description(value) {
|
|
22
|
-
if (this.hasAttribute("description") && !this.forceAutoFill)
|
|
23
|
-
value = this.getAttribute("description");
|
|
24
|
-
this._description = value;
|
|
25
|
-
this.requestUpdate();
|
|
26
|
-
}
|
|
27
|
-
get label() {
|
|
28
|
-
return this._label;
|
|
29
|
-
}
|
|
30
|
-
set label(value) {
|
|
31
|
-
if (this.hasAttribute("label") && !this.forceAutoFill)
|
|
32
|
-
value = this.getAttribute("label");
|
|
33
|
-
this._label = value;
|
|
34
|
-
this.requestUpdate();
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
return html `<legend part="legend">
|
|
38
|
-
${this.iconName
|
|
39
|
-
? html `<div class="icon">
|
|
40
|
-
<sonic-icon name=${this.iconName} prefix=${ifDefined(this.iconPrefix)} library=${ifDefined(this.iconLibrary)}></sonic-icon>
|
|
41
|
-
</div>`
|
|
42
|
-
: ""}
|
|
43
|
-
|
|
44
|
-
<div class="legend-content">
|
|
45
|
-
${unsafeHTML(this.label ? this.label : "")}
|
|
46
|
-
${this.description ? html `<sonic-legend-description>${unsafeHTML(this.description)}</sonic-legend-description>` : ""}
|
|
47
|
-
<slot></slot>
|
|
48
|
-
</div>
|
|
49
|
-
<slot name="suffix"></slot>
|
|
50
|
-
</legend>`;
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Legend.styles = [
|
|
54
|
-
css `
|
|
55
|
-
:host {
|
|
56
|
-
--sc-legend-font-size: 1.5rem;
|
|
57
|
-
--sc-legend-font-weight: var(--sc-font-weight-base);
|
|
58
|
-
--sc-legend-font-style: var(--sc-headings-font-style);
|
|
59
|
-
--sc-legend-family: var(--sc-headings-font-family);
|
|
60
|
-
--sc-legend-line-height: var(--sc-headings-line-height);
|
|
61
|
-
--sc-legend-color: var(--sc-base-content);
|
|
62
|
-
display: flex;
|
|
63
|
-
width: 100%;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
legend {
|
|
67
|
-
font-size: var(--sc-legend-font-size);
|
|
68
|
-
font-weight: var(--sc-legend-font-weight);
|
|
69
|
-
font-style: var(--sc-legend-font-style);
|
|
70
|
-
font-family: var(--sc-legend-font-family);
|
|
71
|
-
line-height: var(--sc-legend-line-height);
|
|
72
|
-
color: var(--sc-legend-color);
|
|
73
|
-
padding: 0;
|
|
74
|
-
display: flex;
|
|
75
|
-
width: 100%;
|
|
76
|
-
align-items: flex-start;
|
|
77
|
-
gap: 0.5em;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
slot[name="suffix"] {
|
|
81
|
-
display: block;
|
|
82
|
-
margin-left: auto;
|
|
83
|
-
flex-shrink: 0;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.legend-content {
|
|
87
|
-
flex-grow: 1;
|
|
88
|
-
}
|
|
89
|
-
`,
|
|
90
|
-
];
|
|
91
|
-
__decorate([
|
|
92
|
-
property({ type: Boolean })
|
|
93
|
-
], Legend.prototype, "forceAutoFill", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
property()
|
|
96
|
-
], Legend.prototype, "description", null);
|
|
97
|
-
__decorate([
|
|
98
|
-
property()
|
|
99
|
-
], Legend.prototype, "label", null);
|
|
100
|
-
__decorate([
|
|
101
|
-
property({ type: String })
|
|
102
|
-
], Legend.prototype, "iconName", void 0);
|
|
103
|
-
__decorate([
|
|
104
|
-
property({ type: String })
|
|
105
|
-
], Legend.prototype, "iconLibrary", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
property({ type: String })
|
|
108
|
-
], Legend.prototype, "iconPrefix", void 0);
|
|
109
|
-
Legend = __decorate([
|
|
110
|
-
customElement(tagName)
|
|
111
|
-
], Legend);
|
|
112
|
-
export { Legend };
|
|
@@ -1,46 +0,0 @@
|
|
|
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 { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement, property } from "lit/decorators.js";
|
|
9
|
-
import { styleMap } from "lit/directives/style-map.js";
|
|
10
|
-
const tagName = "sonic-form-actions";
|
|
11
|
-
let FormActions = class FormActions extends LitElement {
|
|
12
|
-
constructor() {
|
|
13
|
-
super(...arguments);
|
|
14
|
-
this.direction = "row";
|
|
15
|
-
this.justify = "flex-start";
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
const styles = {
|
|
19
|
-
flexDirection: this.direction,
|
|
20
|
-
justifyContent: this.justify,
|
|
21
|
-
};
|
|
22
|
-
return html `<slot style=${styleMap(styles)}></slot>`;
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
FormActions.styles = [
|
|
26
|
-
css `
|
|
27
|
-
:host {
|
|
28
|
-
display: block;
|
|
29
|
-
}
|
|
30
|
-
slot {
|
|
31
|
-
display: flex;
|
|
32
|
-
flex-wrap: wrap;
|
|
33
|
-
gap: 0.3rem;
|
|
34
|
-
}
|
|
35
|
-
`,
|
|
36
|
-
];
|
|
37
|
-
__decorate([
|
|
38
|
-
property({ type: String })
|
|
39
|
-
], FormActions.prototype, "direction", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
property({ type: String })
|
|
42
|
-
], FormActions.prototype, "justify", void 0);
|
|
43
|
-
FormActions = __decorate([
|
|
44
|
-
customElement(tagName)
|
|
45
|
-
], FormActions);
|
|
46
|
-
export { FormActions };
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import { ResizeController } from "@lit-labs/observers/resize-controller.js";
|
|
3
|
-
declare const FormLayout_base: (new (...args: any[]) => import("@supersoniks/concorde/core/mixins/Subscriber").SubscriberInterface<import("../../../../_types/types").CoreJSType>) & typeof LitElement;
|
|
4
|
-
export declare class FormLayout extends FormLayout_base {
|
|
5
|
-
static styles: import("lit").CSSResult[];
|
|
6
|
-
_resizeController: ResizeController<unknown>;
|
|
7
|
-
slottedElements: HTMLElement[];
|
|
8
|
-
oneFormElement: boolean;
|
|
9
|
-
onSlotChange(): void;
|
|
10
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
11
|
-
}
|
|
12
|
-
export {};
|
|
@@ -1,83 +0,0 @@
|
|
|
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 { html, LitElement, css } from "lit";
|
|
8
|
-
import { customElement, property, queryAssignedElements } from "lit/decorators.js";
|
|
9
|
-
import { ResizeController } from "@lit-labs/observers/resize-controller.js";
|
|
10
|
-
import { classMap } from "lit/directives/class-map.js";
|
|
11
|
-
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
12
|
-
const tagName = "sonic-form-layout";
|
|
13
|
-
let FormLayout = class FormLayout extends Subscriber(LitElement) {
|
|
14
|
-
constructor() {
|
|
15
|
-
super(...arguments);
|
|
16
|
-
this._resizeController = new ResizeController(this, {});
|
|
17
|
-
this.oneFormElement = false;
|
|
18
|
-
}
|
|
19
|
-
onSlotChange() {
|
|
20
|
-
let elements = this.slottedElements;
|
|
21
|
-
const formElementColumns = ["sonic-input", "sonic-select", "sonic-input-autocomplete", ".form-item-container"];
|
|
22
|
-
// keep only form elements
|
|
23
|
-
elements = elements.filter((elt) => formElementColumns.includes(elt.nodeName.toLowerCase()));
|
|
24
|
-
this.oneFormElement = elements.length == 1;
|
|
25
|
-
}
|
|
26
|
-
render() {
|
|
27
|
-
const classes = {
|
|
28
|
-
"cq--md": this.offsetWidth > 440,
|
|
29
|
-
"one-form-element": this.oneFormElement,
|
|
30
|
-
};
|
|
31
|
-
return html `<div class=${classMap(classes)}>
|
|
32
|
-
<slot @slotchange=${this.onSlotChange}></slot>
|
|
33
|
-
</div>`;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
FormLayout.styles = [
|
|
37
|
-
css `
|
|
38
|
-
:host {
|
|
39
|
-
display: block;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
div {
|
|
43
|
-
display: grid;
|
|
44
|
-
grid-gap: 1.5rem;
|
|
45
|
-
align-items: flex-start;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.cq--md {
|
|
49
|
-
grid-gap: 1.75rem;
|
|
50
|
-
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
51
|
-
}
|
|
52
|
-
.one-form-element {
|
|
53
|
-
grid-template-columns: 1fr;
|
|
54
|
-
}
|
|
55
|
-
/*::slotted(sonic-radio),
|
|
56
|
-
::slotted(sonic-checkbox),
|
|
57
|
-
::slotted(sonic-form-actions),
|
|
58
|
-
::slotted(sonic-divider),
|
|
59
|
-
::slotted(sonic-textarea) {
|
|
60
|
-
grid-column: 1 / -1;
|
|
61
|
-
}*/
|
|
62
|
-
::slotted(sonic-submit) {
|
|
63
|
-
display: contents;
|
|
64
|
-
}
|
|
65
|
-
::slotted(:not(sonic-input):not(sonic-select):not(sonic-input-autocomplete):not(.form-item-container)) {
|
|
66
|
-
grid-column: 1 / -1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
::slotted(sonic-divider) {
|
|
70
|
-
--sc-divider-my: 0;
|
|
71
|
-
}
|
|
72
|
-
`,
|
|
73
|
-
];
|
|
74
|
-
__decorate([
|
|
75
|
-
queryAssignedElements({ flatten: true })
|
|
76
|
-
], FormLayout.prototype, "slottedElements", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
property({ type: Boolean })
|
|
79
|
-
], FormLayout.prototype, "oneFormElement", void 0);
|
|
80
|
-
FormLayout = __decorate([
|
|
81
|
-
customElement(tagName)
|
|
82
|
-
], FormLayout);
|
|
83
|
-
export { FormLayout };
|