@supersoniks/concorde 3.1.15 → 3.1.16
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/index.html +0 -0
- package/notes de migration.md +0 -0
- package/package.json +1 -1
- package/postcss.config.cjs +0 -0
- package/public/css/docs.css +0 -0
- package/public/fonts/ClashGrotesk-Bold.eot +0 -0
- package/public/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/public/fonts/ClashGrotesk-Bold.woff +0 -0
- package/public/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/public/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/public/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/public/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Light.eot +0 -0
- package/public/fonts/ClashGrotesk-Light.ttf +0 -0
- package/public/fonts/ClashGrotesk-Light.woff +0 -0
- package/public/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Medium.eot +0 -0
- package/public/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/public/fonts/ClashGrotesk-Medium.woff +0 -0
- package/public/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Regular.eot +0 -0
- package/public/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/public/fonts/ClashGrotesk-Regular.woff +0 -0
- package/public/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/public/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/public/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/public/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/public/fonts/ClashGrotesk-Variable.eot +0 -0
- package/public/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/public/fonts/ClashGrotesk-Variable.woff +0 -0
- package/public/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/public/img/concorde-icon.svg +0 -0
- package/public/img/concorde-logo.svg +0 -0
- package/public/img/concorde.png +0 -0
- package/public/img/concorde_def.png +0 -0
- package/public/img/concorde_seuil.png.webp +0 -0
- package/public/img/concorde_seuil_invert.png +0 -0
- package/public/img/paul_metrand.jpg +0 -0
- package/public/img/paul_metrand_xs.jpg +0 -0
- package/public/svg/regular/plane.svg +0 -0
- package/public/svg/solid/plane.svg +0 -0
- package/scripts/create-search.js +0 -0
- package/scripts/post-build-docs.js +0 -0
- package/scripts/post-build.mjs +0 -0
- package/scripts/pre-build.mjs +0 -0
- package/src/components.ts +0 -0
- package/src/concorde-loaded.ts +0 -0
- package/src/core/_types/types.ts +0 -0
- package/src/core/components/functional/date/date.md +0 -0
- package/src/core/components/functional/date/date.ts +0 -0
- package/src/core/components/functional/example/example.ts +0 -0
- package/src/core/components/functional/fetch/fetch.md +0 -0
- package/src/core/components/functional/fetch/fetch.ts +0 -0
- package/src/core/components/functional/functional.ts +0 -0
- package/src/core/components/functional/if/if.md +0 -0
- package/src/core/components/functional/if/if.test.ts +0 -0
- package/src/core/components/functional/if/if.ts +0 -0
- package/src/core/components/functional/list/list.md +0 -0
- package/src/core/components/functional/list/list.ts +0 -0
- package/src/core/components/functional/mix/mix.md +0 -0
- package/src/core/components/functional/mix/mix.ts +0 -0
- package/src/core/components/functional/queue/queue.md +0 -0
- package/src/core/components/functional/queue/queue.ts +0 -0
- package/src/core/components/functional/router/redirect.ts +0 -0
- package/src/core/components/functional/router/router.md +0 -0
- package/src/core/components/functional/router/router.ts +0 -0
- package/src/core/components/functional/sdui/SDUIDescriptorTransformer.ts +0 -0
- package/src/core/components/functional/sdui/default-library.json +0 -0
- package/src/core/components/functional/sdui/example.json +0 -0
- package/src/core/components/functional/sdui/sdui-utils.ts +0 -0
- package/src/core/components/functional/sdui/sdui.md +0 -0
- package/src/core/components/functional/sdui/sdui.ts +0 -0
- package/src/core/components/functional/sdui/types.ts +0 -0
- package/src/core/components/functional/sonic-scope/sonic-scope.ts +0 -0
- package/src/core/components/functional/states/states.md +0 -0
- package/src/core/components/functional/states/states.ts +0 -0
- package/src/core/components/functional/submit/submit.md +0 -0
- package/src/core/components/functional/submit/submit.ts +0 -0
- package/src/core/components/functional/subscriber/subscriber.md +0 -0
- package/src/core/components/functional/subscriber/subscriber.ts +0 -0
- package/src/core/components/functional/value/value.md +0 -0
- package/src/core/components/functional/value/value.ts +0 -0
- package/src/core/components/ui/_css/scroll.ts +0 -0
- package/src/core/components/ui/_css/size.ts +0 -0
- package/src/core/components/ui/_css/type.ts +0 -0
- package/src/core/components/ui/alert/alert.md +0 -0
- package/src/core/components/ui/alert/alert.ts +0 -0
- package/src/core/components/ui/badge/badge.md +0 -0
- package/src/core/components/ui/badge/badge.ts +0 -0
- package/src/core/components/ui/button/button.md +0 -0
- package/src/core/components/ui/button/button.ts +0 -0
- package/src/core/components/ui/captcha/captcha.md +0 -0
- package/src/core/components/ui/captcha/captcha.ts +0 -0
- package/src/core/components/ui/card/card-footer.ts +0 -0
- package/src/core/components/ui/card/card-header-descripton.ts +0 -0
- package/src/core/components/ui/card/card-header.ts +0 -0
- package/src/core/components/ui/card/card-main.ts +0 -0
- package/src/core/components/ui/card/card.md +0 -0
- package/src/core/components/ui/card/card.ts +0 -0
- package/src/core/components/ui/divider/divider.md +0 -0
- package/src/core/components/ui/divider/divider.ts +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.md +0 -0
- package/src/core/components/ui/form/checkbox/checkbox.ts +0 -0
- package/src/core/components/ui/form/css/form-control.ts +0 -0
- package/src/core/components/ui/form/fieldset/fieldset.md +0 -0
- package/src/core/components/ui/form/fieldset/fieldset.ts +22 -14
- package/src/core/components/ui/form/fieldset/legend-description.ts +0 -0
- package/src/core/components/ui/form/fieldset/legend.ts +0 -0
- package/src/core/components/ui/form/form-actions/form-actions.md +0 -0
- package/src/core/components/ui/form/form-actions/form-actions.ts +0 -0
- package/src/core/components/ui/form/form-layout/form-layout.md +0 -0
- package/src/core/components/ui/form/form-layout/form-layout.ts +0 -0
- package/src/core/components/ui/form/input/input.md +0 -0
- package/src/core/components/ui/form/input/input.ts +0 -0
- package/src/core/components/ui/form/input/password-helper.ts +0 -0
- package/src/core/components/ui/form/input/same-value-helper.ts +0 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -0
- package/src/core/components/ui/form/input-autocomplete/input-autocomplete.ts +0 -0
- package/src/core/components/ui/form/radio/radio.md +0 -0
- package/src/core/components/ui/form/radio/radio.ts +0 -0
- package/src/core/components/ui/form/select/select.md +0 -0
- package/src/core/components/ui/form/select/select.ts +0 -0
- package/src/core/components/ui/form/textarea/textarea.md +0 -0
- package/src/core/components/ui/form/textarea/textarea.ts +0 -0
- package/src/core/components/ui/group/group.md +0 -0
- package/src/core/components/ui/group/group.ts +0 -0
- package/src/core/components/ui/icon/icon.md +0 -0
- package/src/core/components/ui/icon/icon.stories.ts +0 -0
- package/src/core/components/ui/icon/icon.ts +0 -0
- package/src/core/components/ui/icon/icons.json +0 -0
- package/src/core/components/ui/icon/icons.ts +0 -0
- package/src/core/components/ui/icon/svgs/cancel.svg +0 -0
- package/src/core/components/ui/icon/svgs/check-circled-outline.svg +0 -0
- package/src/core/components/ui/icon/svgs/check.svg +0 -0
- package/src/core/components/ui/icon/svgs/emoji-puzzled.svg +0 -0
- package/src/core/components/ui/icon/svgs/info-empty.svg +0 -0
- package/src/core/components/ui/icon/svgs/loader.svg +0 -0
- package/src/core/components/ui/icon/svgs/minus-small.svg +0 -0
- package/src/core/components/ui/icon/svgs/more-horiz.svg +0 -0
- package/src/core/components/ui/icon/svgs/more-vert.svg +0 -0
- package/src/core/components/ui/icon/svgs/nav-arrow-down.svg +0 -0
- package/src/core/components/ui/icon/svgs/warning-circled-outline.svg +0 -0
- package/src/core/components/ui/image/image.md +0 -0
- package/src/core/components/ui/image/image.ts +0 -0
- package/src/core/components/ui/link/link.md +0 -0
- package/src/core/components/ui/link/link.ts +0 -0
- package/src/core/components/ui/loader/loader.md +0 -0
- package/src/core/components/ui/loader/loader.stories.ts +0 -0
- package/src/core/components/ui/loader/loader.ts +0 -0
- package/src/core/components/ui/loader/styles/fixed.ts +0 -0
- package/src/core/components/ui/loader/styles/inline.ts +0 -0
- package/src/core/components/ui/menu/menu-item.ts +0 -0
- package/src/core/components/ui/menu/menu.md +0 -0
- package/src/core/components/ui/menu/menu.ts +0 -0
- package/src/core/components/ui/modal/modal-actions.ts +0 -0
- package/src/core/components/ui/modal/modal-close.ts +0 -0
- package/src/core/components/ui/modal/modal-content.ts +0 -0
- package/src/core/components/ui/modal/modal-subtitle.ts +0 -0
- package/src/core/components/ui/modal/modal-title.ts +0 -0
- package/src/core/components/ui/modal/modal.md +0 -0
- package/src/core/components/ui/modal/modal.stories.ts +0 -0
- package/src/core/components/ui/modal/modal.ts +74 -41
- package/src/core/components/ui/pop/pop.md +0 -0
- package/src/core/components/ui/pop/pop.ts +0 -0
- package/src/core/components/ui/progress/progress.md +0 -0
- package/src/core/components/ui/progress/progress.ts +0 -0
- package/src/core/components/ui/table/table-caption.ts +0 -0
- package/src/core/components/ui/table/table-tbody.ts +0 -0
- package/src/core/components/ui/table/table-td.ts +0 -0
- package/src/core/components/ui/table/table-tfoot.ts +0 -0
- package/src/core/components/ui/table/table-th.ts +0 -0
- package/src/core/components/ui/table/table-thead.ts +0 -0
- package/src/core/components/ui/table/table-tr.ts +0 -0
- package/src/core/components/ui/table/table.md +0 -0
- package/src/core/components/ui/table/table.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/core-variables.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/dark.ts +0 -0
- package/src/core/components/ui/theme/theme-collection/light.ts +0 -0
- package/src/core/components/ui/theme/theme.ts +0 -0
- package/src/core/components/ui/toast/message-subscriber.stories.ts +0 -0
- package/src/core/components/ui/toast/message-subscriber.ts +0 -0
- package/src/core/components/ui/toast/toast-item.ts +0 -0
- package/src/core/components/ui/toast/toast.ts +0 -0
- package/src/core/components/ui/toast/types.ts +0 -0
- package/src/core/components/ui/tooltip/tooltip.md +0 -0
- package/src/core/components/ui/tooltip/tooltip.ts +0 -0
- package/src/core/components/ui/ui.ts +0 -0
- package/src/core/core.ts +0 -0
- package/src/core/decorators/Subscriber.ts +0 -0
- package/src/core/directives/DataProvider.ts +0 -0
- package/src/core/directives/Wording.ts +0 -0
- package/src/core/mixins/Fetcher.ts +0 -0
- package/src/core/mixins/FormCheckable.ts +0 -0
- package/src/core/mixins/FormElement.ts +0 -0
- package/src/core/mixins/FormInput.ts +0 -0
- package/src/core/mixins/Subscriber.ts +0 -0
- package/src/core/mixins/TemplatesContainer.ts +0 -0
- package/src/core/mixins/mixins.ts +0 -0
- package/src/core/utils/Arrays.ts +0 -0
- package/src/core/utils/DataBindObserver.ts +0 -0
- package/src/core/utils/Electron.ts +0 -0
- package/src/core/utils/Format.ts +0 -0
- package/src/core/utils/HTML.ts +0 -0
- package/src/core/utils/LocationHandler.ts +0 -0
- package/src/core/utils/Objects.ts +0 -0
- package/src/core/utils/PublisherProxy.ts +0 -0
- package/src/core/utils/Utils.ts +0 -0
- package/src/core/utils/api.ts +0 -0
- package/src/core/utils/route.ts +0 -0
- package/src/core/utils/url-pattern.ts +0 -0
- package/src/decorators.ts +0 -0
- package/src/directives.ts +0 -0
- package/src/docs/_core-concept/overview.md +0 -0
- package/src/docs/_core-concept/subscriber.md +0 -0
- package/src/docs/_getting-started/concorde-outside.md +0 -0
- package/src/docs/_getting-started/create-a-component.md +0 -0
- package/src/docs/_getting-started/my-first-subscriber.md +0 -0
- package/src/docs/_getting-started/pubsub.md +0 -0
- package/src/docs/_getting-started/start.md +0 -0
- package/src/docs/_getting-started/theming.md +0 -0
- package/src/docs/code.ts +0 -0
- package/src/docs/docs.ts +0 -0
- package/src/docs/example/users.ts +0 -0
- package/src/docs/header/header.ts +0 -0
- package/src/docs/navigation/navigation.ts +0 -0
- package/src/docs/prism/index.ts +0 -0
- package/src/docs/prism/prism.css +0 -0
- package/src/docs/prism/prism.js +0 -0
- package/src/docs/search/docs-search.json +0 -0
- package/src/docs/search/markdown-renderer.ts +0 -0
- package/src/docs/search/page.ts +0 -0
- package/src/docs/search/search.ts +0 -0
- package/src/docs/tailwind/css/tailwind.css +0 -0
- package/src/docs/tailwind/css/tailwind.d.ts +0 -0
- package/src/docs/tailwind/index.ts +0 -0
- package/src/docs.ts +0 -0
- package/src/index.ts +0 -0
- package/src/mixins.ts +0 -0
- package/src/tag-list.json +0 -0
- package/src/test-utils/TestUtils.ts +0 -0
- package/src/tsconfig-model.json +0 -0
- package/src/tsconfig.json +0 -0
- package/src/utils.ts +0 -0
- package/tailwind.config.js +0 -0
- package/test-utils/TestUtils.ts +0 -0
- package/vite/config.js +3 -0
- package/vite.config.mts +0 -0
- package/concorde-core.bundle.js +0 -3683
- package/concorde-core.es.js +0 -11787
- package/dist/concorde-core.bundle.js +0 -3683
- package/dist/concorde-core.es.js +0 -11787
- package/dist/css/docs.css +0 -0
- package/dist/fonts/ClashGrotesk-Bold.eot +0 -0
- package/dist/fonts/ClashGrotesk-Bold.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Bold.woff +0 -0
- package/dist/fonts/ClashGrotesk-Bold.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.eot +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.woff +0 -0
- package/dist/fonts/ClashGrotesk-Extralight.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Light.eot +0 -0
- package/dist/fonts/ClashGrotesk-Light.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Light.woff +0 -0
- package/dist/fonts/ClashGrotesk-Light.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Medium.eot +0 -0
- package/dist/fonts/ClashGrotesk-Medium.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Medium.woff +0 -0
- package/dist/fonts/ClashGrotesk-Medium.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Regular.eot +0 -0
- package/dist/fonts/ClashGrotesk-Regular.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Regular.woff +0 -0
- package/dist/fonts/ClashGrotesk-Regular.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.eot +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.woff +0 -0
- package/dist/fonts/ClashGrotesk-Semibold.woff2 +0 -0
- package/dist/fonts/ClashGrotesk-Variable.eot +0 -0
- package/dist/fonts/ClashGrotesk-Variable.ttf +0 -0
- package/dist/fonts/ClashGrotesk-Variable.woff +0 -0
- package/dist/fonts/ClashGrotesk-Variable.woff2 +0 -0
- package/dist/img/concorde-icon.svg +0 -5
- package/dist/img/concorde-logo.svg +0 -1
- package/dist/img/concorde.png +0 -0
- package/dist/img/concorde_def.png +0 -0
- package/dist/img/concorde_seuil.png.webp +0 -0
- package/dist/img/concorde_seuil_invert.png +0 -0
- package/dist/img/paul_metrand.jpg +0 -0
- package/dist/img/paul_metrand_xs.jpg +0 -0
- package/dist/svg/regular/plane.svg +0 -1
- package/dist/svg/solid/plane.svg +0 -1
- package/docs/assets/index--bDsd7qW.css +0 -1
- package/docs/assets/index-Ce3mr_lI.js +0 -4040
- package/docs/css/docs.css +0 -0
- package/docs/img/concorde-logo.svg +0 -1
- package/docs/img/concorde.png +0 -0
- package/docs/img/concorde_def.png +0 -0
- package/docs/index.html +0 -132
- package/docs/src/core/components/functional/date/date.md +0 -290
- package/docs/src/core/components/functional/fetch/fetch.md +0 -117
- package/docs/src/core/components/functional/if/if.md +0 -16
- package/docs/src/core/components/functional/list/list.md +0 -194
- package/docs/src/core/components/functional/mix/mix.md +0 -41
- package/docs/src/core/components/functional/queue/queue.md +0 -87
- package/docs/src/core/components/functional/router/router.md +0 -112
- package/docs/src/core/components/functional/sdui/default-library.json +0 -108
- package/docs/src/core/components/functional/sdui/example.json +0 -99
- package/docs/src/core/components/functional/sdui/sdui.md +0 -356
- package/docs/src/core/components/functional/states/states.md +0 -87
- package/docs/src/core/components/functional/submit/submit.md +0 -48
- package/docs/src/core/components/functional/subscriber/subscriber.md +0 -91
- package/docs/src/core/components/functional/value/value.md +0 -35
- package/docs/src/core/components/ui/alert/alert.md +0 -121
- package/docs/src/core/components/ui/badge/badge.md +0 -102
- package/docs/src/core/components/ui/button/button.md +0 -184
- package/docs/src/core/components/ui/captcha/captcha.md +0 -12
- package/docs/src/core/components/ui/card/card.md +0 -96
- package/docs/src/core/components/ui/divider/divider.md +0 -35
- package/docs/src/core/components/ui/form/checkbox/checkbox.md +0 -96
- package/docs/src/core/components/ui/form/fieldset/fieldset.md +0 -129
- package/docs/src/core/components/ui/form/form-actions/form-actions.md +0 -77
- package/docs/src/core/components/ui/form/form-layout/form-layout.md +0 -43
- package/docs/src/core/components/ui/form/input/input.md +0 -168
- package/docs/src/core/components/ui/form/input-autocomplete/input-autocomplete.md +0 -130
- package/docs/src/core/components/ui/form/radio/radio.md +0 -86
- package/docs/src/core/components/ui/form/select/select.md +0 -99
- package/docs/src/core/components/ui/form/textarea/textarea.md +0 -66
- package/docs/src/core/components/ui/group/group.md +0 -75
- package/docs/src/core/components/ui/icon/icon.md +0 -125
- package/docs/src/core/components/ui/icon/icons.json +0 -1
- package/docs/src/core/components/ui/image/image.md +0 -107
- package/docs/src/core/components/ui/link/link.md +0 -43
- package/docs/src/core/components/ui/loader/loader.md +0 -37
- package/docs/src/core/components/ui/menu/menu.md +0 -288
- package/docs/src/core/components/ui/modal/modal.md +0 -123
- package/docs/src/core/components/ui/pop/pop.md +0 -79
- package/docs/src/core/components/ui/progress/progress.md +0 -65
- package/docs/src/core/components/ui/table/table.md +0 -467
- package/docs/src/core/components/ui/tooltip/tooltip.md +0 -37
- package/docs/src/docs/_core-concept/overview.md +0 -57
- package/docs/src/docs/_core-concept/subscriber.md +0 -76
- package/docs/src/docs/_getting-started/concorde-outside.md +0 -141
- package/docs/src/docs/_getting-started/create-a-component.md +0 -137
- package/docs/src/docs/_getting-started/pubsub.md +0 -150
- package/docs/src/docs/_getting-started/start.md +0 -37
- package/docs/src/docs/_getting-started/theming.md +0 -91
- package/docs/src/docs/search/docs-search.json +0 -3737
- package/docs/src/tag-list.json +0 -1
- package/docs/src/tsconfig.json +0 -113
- package/docs/svg/regular/plane.svg +0 -1
- package/docs/svg/solid/plane.svg +0 -1
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import {animate, fadeIn, fadeOut} from "@lit-labs/motion";
|
|
2
|
-
import {customScroll} from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
1
|
+
import { animate, fadeIn, fadeOut } from "@lit-labs/motion";
|
|
2
|
+
import { customScroll } from "@supersoniks/concorde/core/components/ui/_css/scroll";
|
|
3
3
|
import Subscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
4
|
-
import {css, html, LitElement, nothing, PropertyValues} from "lit";
|
|
5
|
-
import {
|
|
6
|
-
|
|
4
|
+
import { css, html, LitElement, nothing, PropertyValues } from "lit";
|
|
5
|
+
import {
|
|
6
|
+
customElement,
|
|
7
|
+
property,
|
|
8
|
+
query,
|
|
9
|
+
queryAssignedElements,
|
|
10
|
+
} from "lit/decorators.js";
|
|
11
|
+
import { styleMap } from "lit/directives/style-map.js";
|
|
7
12
|
|
|
8
13
|
import "@supersoniks/concorde/core/components/ui/modal/modal-actions";
|
|
9
14
|
import "@supersoniks/concorde/core/components/ui/modal/modal-close";
|
|
10
15
|
import "@supersoniks/concorde/core/components/ui/modal/modal-content";
|
|
11
16
|
import "@supersoniks/concorde/core/components/ui/modal/modal-subtitle";
|
|
12
17
|
import "@supersoniks/concorde/core/components/ui/modal/modal-title";
|
|
13
|
-
import {PublisherManager} from "@supersoniks/concorde/utils";
|
|
14
|
-
import {ConcordeWindow} from "@supersoniks/concorde/core/_types/types";
|
|
15
|
-
import {Theme} from "@supersoniks/concorde/core/components/ui/theme/theme";
|
|
16
|
-
import {PrimitiveType} from "@supersoniks/concorde/core/_types/types";
|
|
17
|
-
import {DirectiveResult} from "lit/directive.js";
|
|
18
|
+
import { PublisherManager } from "@supersoniks/concorde/utils";
|
|
19
|
+
import { ConcordeWindow } from "@supersoniks/concorde/core/_types/types";
|
|
20
|
+
import { Theme } from "@supersoniks/concorde/core/components/ui/theme/theme";
|
|
21
|
+
import { PrimitiveType } from "@supersoniks/concorde/core/_types/types";
|
|
22
|
+
import { DirectiveResult } from "lit/directive.js";
|
|
18
23
|
|
|
19
|
-
import {unsafeHTML} from "lit/directives/unsafe-html.js";
|
|
24
|
+
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
20
25
|
|
|
21
26
|
declare const window: ConcordeWindow;
|
|
22
27
|
declare type ModalCreateOptions = {
|
|
@@ -97,14 +102,17 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
97
102
|
position: fixed;
|
|
98
103
|
}
|
|
99
104
|
|
|
100
|
-
::slotted(sonic-modal-title)
|
|
105
|
+
::slotted(sonic-modal-title),
|
|
106
|
+
sonic-modal-title {
|
|
101
107
|
margin-bottom: 1.25rem;
|
|
102
108
|
}
|
|
103
|
-
:host([align="left"]) ::slotted(sonic-modal-title)
|
|
109
|
+
:host([align="left"]) ::slotted(sonic-modal-title),
|
|
110
|
+
:host([align="left"]) sonic-modal-title {
|
|
104
111
|
padding-right: 1em;
|
|
105
112
|
}
|
|
106
113
|
|
|
107
|
-
::slotted(sonic-modal-subtitle)
|
|
114
|
+
::slotted(sonic-modal-subtitle),
|
|
115
|
+
sonic-modal-subtitle {
|
|
108
116
|
margin-top: -0.9rem;
|
|
109
117
|
margin-bottom: 1.25rem;
|
|
110
118
|
}
|
|
@@ -158,33 +166,38 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
158
166
|
];
|
|
159
167
|
static modals: Array<Modal> = [];
|
|
160
168
|
|
|
161
|
-
@property({type: Boolean}) forceAction = false;
|
|
162
|
-
@property({type: Boolean}) removeOnHide = false;
|
|
163
|
-
@property({type: Boolean}) removeHashOnHide = false;
|
|
164
|
-
@property({type: String, reflect: true}) align:
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
@property({type: String})
|
|
170
|
-
@property({type: String})
|
|
171
|
-
@property({type: String})
|
|
172
|
-
@property({type:
|
|
173
|
-
@property({type:
|
|
174
|
-
@property({type:
|
|
169
|
+
@property({ type: Boolean }) forceAction = false;
|
|
170
|
+
@property({ type: Boolean }) removeOnHide = false;
|
|
171
|
+
@property({ type: Boolean }) removeHashOnHide = false;
|
|
172
|
+
@property({ type: String, reflect: true }) align:
|
|
173
|
+
| "center"
|
|
174
|
+
| "right"
|
|
175
|
+
| "left" = "left";
|
|
176
|
+
|
|
177
|
+
@property({ type: String }) padding = "var(--sc-modal-py) var(--sc-modal-px)";
|
|
178
|
+
@property({ type: String }) maxWidth = "var(--sc-modal-max-w) ";
|
|
179
|
+
@property({ type: String }) maxHeight = "var(--sc-modal-max-h) ";
|
|
180
|
+
@property({ type: String }) width = "100%";
|
|
181
|
+
@property({ type: String }) height = "auto";
|
|
182
|
+
@property({ type: String }) zIndex = "var(--sc-modal-z-index)";
|
|
183
|
+
@property({ type: Object }) options?: ModalCreateOptions;
|
|
184
|
+
@property({ type: Boolean, reflect: true }) fullScreen = false;
|
|
185
|
+
@property({ type: Boolean, reflect: true }) visible = false;
|
|
175
186
|
|
|
176
187
|
@query(".modal-wrapper") modalWrapper!: HTMLDivElement;
|
|
177
188
|
@query(".modal") modalElement!: HTMLDivElement;
|
|
178
189
|
|
|
179
|
-
@queryAssignedElements({selector: "sonic-modal-close"})
|
|
190
|
+
@queryAssignedElements({ selector: "sonic-modal-close" })
|
|
180
191
|
closeBtn!: Array<HTMLElement>;
|
|
181
192
|
static create(options: ModalCreateOptions): Modal {
|
|
182
193
|
const modal = document.createElement(tagName) as Modal;
|
|
183
194
|
// modal styles
|
|
184
195
|
modal.options = options;
|
|
185
196
|
|
|
186
|
-
if (options.removeHashOnHide === true)
|
|
187
|
-
|
|
197
|
+
if (options.removeHashOnHide === true)
|
|
198
|
+
modal.setAttribute("removeHashOnHide", "true");
|
|
199
|
+
if (options.removeOnHide === true)
|
|
200
|
+
modal.setAttribute("removeOnHide", "true");
|
|
188
201
|
|
|
189
202
|
if (options.maxWidth) modal.maxWidth = options?.maxWidth;
|
|
190
203
|
if (options.width) modal.width = options?.width;
|
|
@@ -192,9 +205,12 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
192
205
|
if (options.height) modal.height = options?.height;
|
|
193
206
|
if (options.forceAction) modal.forceAction = true;
|
|
194
207
|
|
|
195
|
-
if (options.paddingX)
|
|
196
|
-
|
|
197
|
-
if (options.
|
|
208
|
+
if (options.paddingX)
|
|
209
|
+
modal.style.setProperty("--sc-modal-px", options?.paddingX);
|
|
210
|
+
if (options.paddingY)
|
|
211
|
+
modal.style.setProperty("--sc-modal-py", options?.paddingY);
|
|
212
|
+
if (options.zIndex)
|
|
213
|
+
modal.style.setProperty("--sc-modal-z-index", options?.zIndex);
|
|
198
214
|
|
|
199
215
|
const container = Theme.getPopContainer();
|
|
200
216
|
container.appendChild(modal);
|
|
@@ -223,7 +239,7 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
223
239
|
function () {
|
|
224
240
|
currentModal.hide();
|
|
225
241
|
},
|
|
226
|
-
{once: true}
|
|
242
|
+
{ once: true }
|
|
227
243
|
);
|
|
228
244
|
});
|
|
229
245
|
}
|
|
@@ -273,13 +289,28 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
273
289
|
duration: 400,
|
|
274
290
|
easing: `cubic-bezier(0.250, 0.250, 0.420, 1.225)`,
|
|
275
291
|
},
|
|
276
|
-
in: [
|
|
277
|
-
|
|
292
|
+
in: [
|
|
293
|
+
{
|
|
294
|
+
transform: "translateY(25%) scale(1)",
|
|
295
|
+
boxShadow: "0 0 0 rgba(0,0,0,0)",
|
|
296
|
+
opacity: 0,
|
|
297
|
+
},
|
|
298
|
+
],
|
|
299
|
+
out: [
|
|
300
|
+
{
|
|
301
|
+
transform: "translateY(20%) scale(1)",
|
|
302
|
+
boxShadow: "0 0 0 rgba(0,0,0,0)",
|
|
303
|
+
opacity: 0,
|
|
304
|
+
},
|
|
305
|
+
],
|
|
278
306
|
})}
|
|
279
307
|
>
|
|
280
308
|
<div class="modal-content">
|
|
281
|
-
${!this.options?.forceAction
|
|
282
|
-
|
|
309
|
+
${!this.options?.forceAction
|
|
310
|
+
? html`<sonic-modal-close></sonic-modal-close>`
|
|
311
|
+
: nothing}
|
|
312
|
+
${this.modalFragment("title")} ${this.modalFragment("subtitle")}
|
|
313
|
+
${this.modalFragment("content")} ${this.modalFragment("actions")}
|
|
283
314
|
|
|
284
315
|
<slot></slot>
|
|
285
316
|
</div>
|
|
@@ -293,7 +324,7 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
293
324
|
duration: 500,
|
|
294
325
|
},
|
|
295
326
|
in: fadeIn,
|
|
296
|
-
out: [{opacity: 0, pointerEvents: "none"}],
|
|
327
|
+
out: [{ opacity: 0, pointerEvents: "none" }],
|
|
297
328
|
})}
|
|
298
329
|
></div>`;
|
|
299
330
|
}
|
|
@@ -337,7 +368,9 @@ export class Modal extends Subscriber(LitElement) {
|
|
|
337
368
|
this.modalElement?.setAttribute("tabindex", "-1");
|
|
338
369
|
this.dispatchEvent(new CustomEvent("hide"));
|
|
339
370
|
if (this.hasAttribute("resetDataProviderOnHide")) {
|
|
340
|
-
PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set(
|
|
371
|
+
PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set(
|
|
372
|
+
{}
|
|
373
|
+
);
|
|
341
374
|
}
|
|
342
375
|
if (this.removeOnHide) {
|
|
343
376
|
this.remove();
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/core/core.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/core/utils/Arrays.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/core/utils/Format.ts
CHANGED
|
File without changes
|
package/src/core/utils/HTML.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/core/utils/Utils.ts
CHANGED
|
File without changes
|
package/src/core/utils/api.ts
CHANGED
|
File without changes
|
package/src/core/utils/route.ts
CHANGED
|
File without changes
|
|
File without changes
|
package/src/decorators.ts
CHANGED
|
File without changes
|
package/src/directives.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/docs/code.ts
CHANGED
|
File without changes
|
package/src/docs/docs.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/docs/prism/index.ts
CHANGED
|
File without changes
|
package/src/docs/prism/prism.css
CHANGED
|
File without changes
|
package/src/docs/prism/prism.js
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/docs/search/page.ts
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/src/docs.ts
CHANGED
|
File without changes
|
package/src/index.ts
CHANGED
|
File without changes
|
package/src/mixins.ts
CHANGED
|
File without changes
|
package/src/tag-list.json
CHANGED
|
File without changes
|
|
File without changes
|
package/src/tsconfig-model.json
CHANGED
|
File without changes
|
package/src/tsconfig.json
CHANGED
|
File without changes
|
package/src/utils.ts
CHANGED
|
File without changes
|
package/tailwind.config.js
CHANGED
|
File without changes
|
package/test-utils/TestUtils.ts
CHANGED
|
File without changes
|
package/vite/config.js
CHANGED
|
@@ -164,6 +164,7 @@ const scopeComponents = (prefix, filesFilter) => {
|
|
|
164
164
|
resolveId(source) {
|
|
165
165
|
const source0 = source;
|
|
166
166
|
if (shortPathMapping[source]) {
|
|
167
|
+
console.log("shortPathMapping", shortPathMapping[source]);
|
|
167
168
|
return shortPathMapping[source][0];
|
|
168
169
|
}
|
|
169
170
|
/** old way */
|
|
@@ -200,6 +201,8 @@ const scopeComponents = (prefix, filesFilter) => {
|
|
|
200
201
|
source.replace("@supersoniks/concorde", __dirname + "/../src") +
|
|
201
202
|
extension
|
|
202
203
|
);
|
|
204
|
+
// console.log("longPathMapping", result);
|
|
205
|
+
|
|
203
206
|
return result;
|
|
204
207
|
// return resolveURI(source0);
|
|
205
208
|
},
|
package/vite.config.mts
CHANGED
|
File without changes
|