@supersoniks/concorde 1.1.42 → 1.1.44
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/components.js +2 -3
- package/concorde-core.bundle.js +37 -35
- package/concorde-core.es.js +5283 -4453
- package/core/_types/types.d.ts +31 -0
- package/core/_types/types.js +2 -0
- package/core/components/functional/date/date.d.ts +13 -5
- package/core/components/functional/date/date.js +57 -38
- package/core/components/functional/example/example.d.ts +1 -1
- package/core/components/functional/example/example.js +1 -1
- package/core/components/functional/fetch/fetch.d.ts +45 -6
- package/core/components/functional/fetch/fetch.js +2 -6
- package/core/components/functional/functional.d.ts +2 -0
- package/core/components/functional/functional.js +2 -0
- package/core/components/functional/if/if.d.ts +3 -0
- package/core/components/functional/if/if.js +6 -12
- package/core/components/functional/if/if.test.d.ts +1 -0
- package/core/components/functional/if/if.test.js +44 -0
- package/core/components/functional/list/list.d.ts +44 -12
- package/core/components/functional/list/list.js +54 -49
- package/core/components/functional/mix/mix.d.ts +22 -0
- package/core/components/functional/mix/mix.js +102 -0
- package/core/components/functional/queue/queue.d.ts +27 -5
- package/core/components/functional/queue/queue.js +88 -26
- package/core/components/functional/router/redirect.d.ts +11 -2
- package/core/components/functional/router/redirect.js +7 -12
- package/core/components/functional/router/router.d.ts +15 -1
- package/core/components/functional/router/router.js +11 -16
- package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +1 -2
- package/core/components/functional/sdui/SDUIDescriptorTransformer.js +56 -45
- package/core/components/functional/sdui/default-library.json +108 -0
- package/core/components/functional/sdui/sdui-utils.d.ts +5 -0
- package/core/components/functional/sdui/sdui-utils.js +63 -0
- package/core/components/functional/sdui/sdui.d.ts +21 -13
- package/core/components/functional/sdui/sdui.js +70 -44
- package/core/components/functional/sdui/types.d.ts +10 -8
- package/core/components/functional/states/states.d.ts +20 -4
- package/core/components/functional/states/states.js +15 -20
- package/core/components/functional/submit/submit.d.ts +16 -1
- package/core/components/functional/submit/submit.js +95 -25
- package/core/components/functional/subscriber/subscriber.d.ts +4 -1
- package/core/components/functional/subscriber/subscriber.js +1 -6
- package/core/components/functional/value/value.d.ts +7 -0
- package/core/components/functional/value/value.js +26 -0
- package/core/components/ui/_css/scroll.js +6 -7
- package/core/components/ui/_css/size.d.ts +1 -0
- package/core/components/ui/_css/size.js +3 -1
- package/core/components/ui/alert/alert.d.ts +2 -2
- package/core/components/ui/alert/alert.js +11 -16
- package/core/components/ui/badge/badge.d.ts +3 -1
- package/core/components/ui/badge/badge.js +36 -22
- package/core/components/ui/button/button.d.ts +28 -23
- package/core/components/ui/button/button.js +60 -43
- package/core/components/ui/captcha/captcha.d.ts +14 -2
- package/core/components/ui/captcha/captcha.js +18 -13
- package/core/components/ui/card/card-footer.js +1 -8
- package/core/components/ui/card/card-header-descripton.js +3 -9
- package/core/components/ui/card/card-header.js +6 -7
- package/core/components/ui/card/card-main.js +0 -5
- package/core/components/ui/card/card.d.ts +1 -1
- package/core/components/ui/card/card.js +30 -12
- package/core/components/ui/divider/divider.d.ts +2 -0
- package/core/components/ui/divider/divider.js +43 -16
- package/core/components/ui/form/checkbox/checkbox.d.ts +86 -25
- package/core/components/ui/form/checkbox/checkbox.js +53 -28
- package/core/components/ui/form/css/form-control.d.ts +2 -0
- package/core/components/ui/form/css/form-control.js +145 -67
- package/core/components/ui/form/fieldset/fieldset.d.ts +8 -1
- package/core/components/ui/form/fieldset/fieldset.js +45 -8
- package/core/components/ui/form/fieldset/legend-description.js +0 -5
- package/core/components/ui/form/fieldset/legend.js +3 -6
- package/core/components/ui/form/form-actions/form-actions.d.ts +2 -0
- package/core/components/ui/form/form-actions/form-actions.js +26 -11
- package/core/components/ui/form/form-layout/form-layout.d.ts +5 -2
- package/core/components/ui/form/form-layout/form-layout.js +31 -9
- package/core/components/ui/form/input/input.d.ts +26 -24
- package/core/components/ui/form/input/input.js +87 -52
- package/core/components/ui/form/input/password-helper.d.ts +1 -1
- package/core/components/ui/form/input/password-helper.js +4 -3
- package/core/components/ui/form/input/same-value-helper.d.ts +1 -1
- package/core/components/ui/form/input/same-value-helper.js +3 -2
- package/core/components/ui/form/input-autocomplete/input-autocomplete.d.ts +2 -3
- package/core/components/ui/form/input-autocomplete/input-autocomplete.js +2 -6
- package/core/components/ui/form/radio/radio.d.ts +6 -0
- package/core/components/ui/form/radio/radio.js +7 -12
- package/core/components/ui/form/select/select.d.ts +25 -8
- package/core/components/ui/form/select/select.js +72 -41
- package/core/components/ui/form/textarea/textarea.d.ts +21 -19
- package/core/components/ui/form/textarea/textarea.js +29 -36
- package/core/components/ui/group/group.d.ts +11 -1
- package/core/components/ui/group/group.js +79 -17
- package/core/components/ui/icon/icon.d.ts +10 -3
- package/core/components/ui/icon/icon.js +16 -15
- package/core/components/ui/icon/icons.js +25 -20
- package/core/components/ui/icon/icons.json +1 -1
- package/core/components/ui/image/image.js +0 -5
- package/core/components/ui/link/link.d.ts +1 -1
- package/core/components/ui/link/link.js +2 -6
- package/core/components/ui/loader/loader.d.ts +1 -1
- package/core/components/ui/loader/loader.js +3 -9
- package/core/components/ui/menu/menu-item.js +4 -9
- package/core/components/ui/menu/menu.d.ts +9 -1
- package/core/components/ui/menu/menu.js +182 -27
- package/core/components/ui/modal/modal-actions.js +1 -6
- package/core/components/ui/modal/modal-close.d.ts +1 -0
- package/core/components/ui/modal/modal-close.js +14 -10
- package/core/components/ui/modal/modal-content.js +0 -5
- package/core/components/ui/modal/modal-subtitle.js +2 -6
- package/core/components/ui/modal/modal-title.js +0 -5
- package/core/components/ui/modal/modal.d.ts +7 -7
- package/core/components/ui/modal/modal.js +37 -37
- package/core/components/ui/pop/pop.d.ts +6 -5
- package/core/components/ui/pop/pop.js +57 -57
- package/core/components/ui/progress/progress.js +34 -32
- package/core/components/ui/table/table-caption.js +5 -10
- package/core/components/ui/table/table-tbody.js +10 -14
- package/core/components/ui/table/table-td.d.ts +2 -0
- package/core/components/ui/table/table-td.js +8 -5
- package/core/components/ui/table/table-tfoot.js +5 -7
- package/core/components/ui/table/table-th.d.ts +2 -0
- package/core/components/ui/table/table-th.js +12 -9
- package/core/components/ui/table/table-thead.js +1 -6
- package/core/components/ui/table/table-tr.js +4 -6
- package/core/components/ui/table/table.d.ts +0 -3
- package/core/components/ui/table/table.js +14 -31
- package/core/components/ui/theme/theme-collection/core-variables.js +13 -11
- package/core/components/ui/theme/theme-collection/dark.js +1 -1
- package/core/components/ui/theme/theme.d.ts +1 -6
- package/core/components/ui/theme/theme.js +19 -46
- package/core/components/ui/toast/message-subscriber.d.ts +16 -7
- package/core/components/ui/toast/message-subscriber.js +10 -8
- package/core/components/ui/toast/toast-item.js +1 -1
- package/core/components/ui/toast/toast.d.ts +3 -2
- package/core/components/ui/toast/toast.js +33 -19
- package/core/components/ui/toast/types.d.ts +3 -2
- package/core/components/ui/tooltip/tooltip.d.ts +1 -0
- package/core/components/ui/tooltip/tooltip.js +36 -15
- package/core/components/ui/ui.d.ts +1 -1
- package/core/components/ui/ui.js +1 -4
- package/core/core.js +5 -6
- package/core/mixins/Fetcher.d.ts +20 -13
- package/core/mixins/Fetcher.js +44 -19
- package/core/mixins/FormCheckable.d.ts +25 -13
- package/core/mixins/FormCheckable.js +180 -23
- package/core/mixins/FormElement.d.ts +17 -9
- package/core/mixins/FormElement.js +56 -39
- package/core/mixins/FormInput.d.ts +22 -12
- package/core/mixins/FormInput.js +4 -3
- package/core/mixins/Subscriber.d.ts +12 -8
- package/core/mixins/Subscriber.js +51 -48
- package/core/mixins/TemplatesContainer.d.ts +2 -1
- package/core/mixins/TemplatesContainer.js +2 -2
- package/core/utils/Arrays.d.ts +15 -15
- package/core/utils/Arrays.js +12 -9
- package/core/utils/DataBindObserver.d.ts +18 -11
- package/core/utils/DataBindObserver.js +47 -54
- package/core/utils/Electron.d.ts +5 -1
- package/core/utils/Electron.js +4 -2
- package/core/utils/HTML.d.ts +9 -2
- package/core/utils/HTML.js +24 -5
- package/core/utils/LocationHandler.d.ts +6 -5
- package/core/utils/LocationHandler.js +27 -16
- package/core/utils/Objects.d.ts +7 -4
- package/core/utils/Objects.js +37 -9
- package/core/utils/{PublisherProxy.d.mts → PublisherProxy.d.ts} +49 -34
- package/core/utils/{PublisherProxy.mjs → PublisherProxy.js} +107 -77
- package/core/utils/Utils.d.ts +3 -0
- package/core/utils/Utils.js +18 -0
- package/core/utils/api.d.ts +26 -9
- package/core/utils/api.js +62 -45
- package/img/concorde-logo.svg +1 -0
- package/img/concorde.png +0 -0
- package/img/concorde_def.png +0 -0
- package/mixins.d.ts +53 -29
- package/mixins.js +3 -4
- package/package.json +51 -12
- package/svg/regular/plane.svg +1 -0
- package/svg/solid/plane.svg +1 -0
- package/test-utils/TestUtils.d.ts +4 -0
- package/test-utils/TestUtils.js +12 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -5
- package/core/components/functional/configuration/configuration.d.ts +0 -5
- package/core/components/functional/configuration/configuration.js +0 -22
- package/core/components/ui/tabs/tab.d.ts +0 -6
- package/core/components/ui/tabs/tab.js +0 -46
- package/core/components/ui/tabs/tabs.d.ts +0 -15
- package/core/components/ui/tabs/tabs.js +0 -129
- package/core/components/ui/taxonomy/taxonomy.d.ts +0 -41
- package/core/components/ui/taxonomy/taxonomy.js +0 -115
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="222.442" height="47.558" viewBox="0 0 222.442 47.558"><g transform="translate(-51.885 -25)"><path d="M11.045.384A9.984,9.984,0,0,1,5.862-.9,8.546,8.546,0,0,1,2.538-4.474,11.519,11.519,0,0,1,1.381-9.741a11.462,11.462,0,0,1,1.17-5.3,8.651,8.651,0,0,1,3.33-3.567,9.872,9.872,0,0,1,5.139-1.285,10.228,10.228,0,0,1,4.5.933,7.522,7.522,0,0,1,3.055,2.621,7.7,7.7,0,0,1,1.24,3.963H14.676a4.017,4.017,0,0,0-1.144-2.371,3.328,3.328,0,0,0-2.423-.9,3.647,3.647,0,0,0-2.205.684A4.416,4.416,0,0,0,7.44-12.976a8.472,8.472,0,0,0-.524,3.158,8.75,8.75,0,0,0,.518,3.2A4.393,4.393,0,0,0,8.9-4.615a3.651,3.651,0,0,0,2.212.69,3.63,3.63,0,0,0,1.681-.384,3.279,3.279,0,0,0,1.24-1.119A4.261,4.261,0,0,0,14.676-7.2h5.139a8.049,8.049,0,0,1-1.221,3.957A7.443,7.443,0,0,1,15.584-.575,10.038,10.038,0,0,1,11.045.384Zm19.7,0A9.985,9.985,0,0,1,25.6-.888a8.6,8.6,0,0,1-3.343-3.554,11.411,11.411,0,0,1-1.176-5.3,11.469,11.469,0,0,1,1.176-5.325A8.6,8.6,0,0,1,25.6-18.62a9.985,9.985,0,0,1,5.146-1.272A9.985,9.985,0,0,1,35.9-18.62a8.6,8.6,0,0,1,3.343,3.554,11.469,11.469,0,0,1,1.176,5.325,11.411,11.411,0,0,1-1.176,5.3A8.6,8.6,0,0,1,35.9-.888,9.985,9.985,0,0,1,30.75.384Zm.026-4.219a3.367,3.367,0,0,0,2.263-.773,4.757,4.757,0,0,0,1.374-2.116A9.279,9.279,0,0,0,34.88-9.78a9.279,9.279,0,0,0-.467-3.055,4.8,4.8,0,0,0-1.374-2.122,3.35,3.35,0,0,0-2.263-.78,3.443,3.443,0,0,0-2.295.78,4.726,4.726,0,0,0-1.393,2.122,9.279,9.279,0,0,0-.467,3.055,9.279,9.279,0,0,0,.467,3.055,4.681,4.681,0,0,0,1.393,2.116A3.461,3.461,0,0,0,30.776-3.835Zm17.2-7.517V0H42.529V-19.636h5.19v3.464h.23a5.512,5.512,0,0,1,2.186-2.717,6.647,6.647,0,0,1,3.72-1A6.906,6.906,0,0,1,57.423-19a6.091,6.091,0,0,1,2.365,2.55,8.589,8.589,0,0,1,.844,3.944V0H55.185V-11.531a3.968,3.968,0,0,0-.92-2.819,3.315,3.315,0,0,0-2.57-1.016,3.87,3.87,0,0,0-1.937.473,3.253,3.253,0,0,0-1.3,1.374A4.769,4.769,0,0,0,47.975-11.352ZM72.346.384A9.985,9.985,0,0,1,67.162-.9a8.546,8.546,0,0,1-3.324-3.573,11.519,11.519,0,0,1-1.157-5.267,11.462,11.462,0,0,1,1.17-5.3,8.651,8.651,0,0,1,3.33-3.567,9.872,9.872,0,0,1,5.139-1.285,10.228,10.228,0,0,1,4.5.933,7.522,7.522,0,0,1,3.055,2.621,7.7,7.7,0,0,1,1.24,3.963H75.977a4.017,4.017,0,0,0-1.144-2.371,3.328,3.328,0,0,0-2.423-.9,3.647,3.647,0,0,0-2.205.684,4.416,4.416,0,0,0-1.464,1.988,8.472,8.472,0,0,0-.524,3.158,8.75,8.75,0,0,0,.518,3.2A4.393,4.393,0,0,0,70.2-4.615a3.651,3.651,0,0,0,2.212.69,3.63,3.63,0,0,0,1.681-.384,3.279,3.279,0,0,0,1.24-1.119A4.261,4.261,0,0,0,75.977-7.2h5.139A8.049,8.049,0,0,1,79.9-3.241,7.443,7.443,0,0,1,76.885-.575,10.038,10.038,0,0,1,72.346.384Zm19.7,0A9.985,9.985,0,0,1,86.905-.888a8.6,8.6,0,0,1-3.343-3.554,11.411,11.411,0,0,1-1.176-5.3,11.469,11.469,0,0,1,1.176-5.325,8.6,8.6,0,0,1,3.343-3.554,9.985,9.985,0,0,1,5.146-1.272A9.985,9.985,0,0,1,97.2-18.62a8.6,8.6,0,0,1,3.343,3.554,11.469,11.469,0,0,1,1.176,5.325,11.411,11.411,0,0,1-1.176,5.3A8.6,8.6,0,0,1,97.2-.888,9.985,9.985,0,0,1,92.051.384Zm.026-4.219a3.367,3.367,0,0,0,2.263-.773,4.757,4.757,0,0,0,1.374-2.116A9.279,9.279,0,0,0,96.18-9.78a9.279,9.279,0,0,0-.467-3.055,4.8,4.8,0,0,0-1.374-2.122,3.35,3.35,0,0,0-2.263-.78,3.443,3.443,0,0,0-2.295.78,4.726,4.726,0,0,0-1.393,2.122,9.278,9.278,0,0,0-.467,3.055,9.278,9.278,0,0,0,.467,3.055,4.681,4.681,0,0,0,1.393,2.116A3.461,3.461,0,0,0,92.077-3.835ZM103.83,0V-19.636h5.28v3.426h.2a5.1,5.1,0,0,1,1.8-2.768,4.76,4.76,0,0,1,2.915-.94,8.238,8.238,0,0,1,.882.051,6.212,6.212,0,0,1,.831.141v4.832a7.115,7.115,0,0,0-1.061-.2,9.532,9.532,0,0,0-1.24-.089,4.363,4.363,0,0,0-2.141.518,3.847,3.847,0,0,0-1.483,1.438,4.1,4.1,0,0,0-.543,2.122V0Zm19.59.32a7.351,7.351,0,0,1-4.046-1.157,7.876,7.876,0,0,1-2.864-3.413,13.041,13.041,0,0,1-1.055-5.542,12.858,12.858,0,0,1,1.087-5.619,7.829,7.829,0,0,1,2.9-3.362,7.4,7.4,0,0,1,3.969-1.119,6.1,6.1,0,0,1,2.755.556,5.484,5.484,0,0,1,1.79,1.381,7.22,7.22,0,0,1,1.042,1.617h.166v-9.844h5.433V0h-5.369V-3.145h-.23a7,7,0,0,1-1.08,1.617,5.443,5.443,0,0,1-1.8,1.323A6.249,6.249,0,0,1,123.42.32Zm1.726-4.334a3.487,3.487,0,0,0,2.231-.722,4.56,4.56,0,0,0,1.406-2.026,8.637,8.637,0,0,0,.492-3.055,8.632,8.632,0,0,0-.486-3.043,4.367,4.367,0,0,0-1.406-1.994,3.577,3.577,0,0,0-2.237-.7,3.532,3.532,0,0,0-2.263.729,4.456,4.456,0,0,0-1.393,2.02,8.677,8.677,0,0,0-.473,2.991,8.776,8.776,0,0,0,.479,3.023,4.56,4.56,0,0,0,1.393,2.045A3.485,3.485,0,0,0,125.146-4.014Zm21.418,4.4a10.412,10.412,0,0,1-5.21-1.234A8.345,8.345,0,0,1,138-4.353a11.538,11.538,0,0,1-1.176-5.376A11.479,11.479,0,0,1,138-15.047a8.681,8.681,0,0,1,3.317-3.567,9.628,9.628,0,0,1,5.031-1.278,10.393,10.393,0,0,1,3.624.62,8.169,8.169,0,0,1,2.94,1.86,8.473,8.473,0,0,1,1.962,3.113,12.434,12.434,0,0,1,.7,4.379v1.5H139V-11.8H150.45a4.172,4.172,0,0,0-.511-2.084,3.721,3.721,0,0,0-1.413-1.425,4.122,4.122,0,0,0-2.09-.518,4.193,4.193,0,0,0-2.192.569,4.08,4.08,0,0,0-1.489,1.521,4.333,4.333,0,0,0-.55,2.116v3.209a5.462,5.462,0,0,0,.543,2.518,3.889,3.889,0,0,0,1.54,1.636,4.653,4.653,0,0,0,2.365.575,5.15,5.15,0,0,0,1.662-.256,3.449,3.449,0,0,0,1.291-.767,3.335,3.335,0,0,0,.818-1.253l5.037.332A6.866,6.866,0,0,1,153.9-2.461a7.868,7.868,0,0,1-3.043,2.1A11.435,11.435,0,0,1,146.563.384Zm14.31-.051a2.954,2.954,0,0,1-2.167-.9,2.954,2.954,0,0,1-.9-2.167,2.919,2.919,0,0,1,.9-2.148,2.965,2.965,0,0,1,2.167-.895,2.985,2.985,0,0,1,2.148.895,2.889,2.889,0,0,1,.92,2.148,2.884,2.884,0,0,1-.428,1.54,3.286,3.286,0,0,1-1.119,1.112A2.9,2.9,0,0,1,160.873.332Z" transform="translate(110.385 62)" fill="#2a282d"/><g transform="translate(51.885 25)"><g transform="translate(2.6 2.209)"><path d="M52.661,65.423h-1.4l-.091-.468h-.208l-.078.351-.078.065H49.646l-.065-.169-.091-.338h-.221v.208l-.118.065-3.859-.326L44.5,64.4v-.871a7.436,7.436,0,0,1,.156-1.079c.182-.883.546-1.962,2.833-5.224s3.08-4.481,4.665-10.3l.078-.324c.468-1.975.806-3.132.936-3.547V34.524a25.625,25.625,0,0,1,.312-2.82h0c.143-.923.312-1.754.468-2.4a21.623,21.623,0,0,0,.195,43.218,41.171,41.171,0,0,1-.845-6.8.668.668,0,0,0-.637-.3Z" transform="translate(-33.181 -29.3)" fill="#2a282d"/><path d="M34.658,65.423h1.4l.091-.468h.209l.078.351.078.065h1.157l.065-.169.091-.338h.221v.208l.118.065,3.857-.326.793-.416v-.871a7.436,7.436,0,0,0-.156-1.079c-.182-.883-.546-1.962-2.833-5.224s-3.08-4.481-4.665-10.3l-.078-.324c-.468-1.975-.806-3.132-.936-3.547V34.524a25.63,25.63,0,0,0-.312-2.82h0c-.143-.923-.312-1.754-.468-2.4a21.623,21.623,0,0,1-.195,43.218,41.171,41.171,0,0,0,.845-6.8.668.668,0,0,1,.637-.3Z" transform="translate(-11.738 -29.3)" fill="#2a282d"/></g><path d="M23.779,1.169a22.61,22.61,0,1,0,22.61,22.61,22.61,22.61,0,0,0-22.61-22.61m0-1.169A23.779,23.779,0,1,1,0,23.779,23.779,23.779,0,0,1,23.779,0Z" transform="translate(0 0)" fill="#2a282d"/></g></g></svg>
|
package/img/concorde.png
ADDED
|
Binary file
|
|
Binary file
|
package/mixins.d.ts
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface<PropsType>, PropsType extends import("./core/_types/types").PublisherContentType = import("./core/_types/types").PublisherContentType>(superClass: T, propsType?: PropsType | undefined) => {
|
|
2
3
|
new (...args: any[]): {
|
|
3
4
|
api: import("./core/utils/api").default | null;
|
|
4
|
-
key:
|
|
5
|
+
key: string;
|
|
5
6
|
isFirstLoad: boolean;
|
|
6
7
|
isLoading: boolean;
|
|
7
8
|
iObserver: IntersectionObserver | null;
|
|
8
9
|
isDefaultLoaderEnabled: boolean;
|
|
9
10
|
isFetchEnabled: boolean;
|
|
10
11
|
_endPoint: string;
|
|
12
|
+
props: (PropsType & import("./core/utils/api").ResultTypeInterface) | null;
|
|
11
13
|
endPoint: string;
|
|
14
|
+
requestId: number;
|
|
15
|
+
refetchEveryMs: number;
|
|
16
|
+
refetchTimeOutId?: NodeJS.Timeout | undefined;
|
|
12
17
|
_fetchData(): Promise<void>;
|
|
13
|
-
onInvalidate
|
|
18
|
+
onInvalidate?: (() => void) | undefined;
|
|
14
19
|
disconnectedCallback(): void;
|
|
15
20
|
connectedCallback(): void;
|
|
16
21
|
firstUpdated(): void;
|
|
17
22
|
onIntersection(entries: IntersectionObserverEntry[]): void;
|
|
18
|
-
|
|
19
|
-
propertyMap: Object;
|
|
23
|
+
propertyMap: object;
|
|
20
24
|
isConnected: boolean;
|
|
25
|
+
children: HTMLCollection;
|
|
26
|
+
appendChild(node: Node): Node;
|
|
21
27
|
getAncestorAttributeValue(attributeName: string): string;
|
|
22
28
|
hasAncestorAttribute(attributeName: string): boolean;
|
|
23
29
|
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
@@ -27,6 +33,7 @@ export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.Su
|
|
|
27
33
|
debug: HTMLElement | null;
|
|
28
34
|
defferedDebug: boolean | null;
|
|
29
35
|
displayContents: boolean;
|
|
36
|
+
shadowRoot?: ShadowRoot | undefined;
|
|
30
37
|
dispatchEvent(event: Event): void;
|
|
31
38
|
setAttribute(name: string, value: string): void;
|
|
32
39
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
@@ -36,7 +43,7 @@ export declare const Fetcher: <T extends new (...args: any[]) => mySubscriber.Su
|
|
|
36
43
|
getApiConfiguration(): import("./core/utils/api").APIConfiguration;
|
|
37
44
|
requestUpdate(): void;
|
|
38
45
|
getAttribute(name: string): string;
|
|
39
|
-
hasAttribute(attributeName:
|
|
46
|
+
hasAttribute(attributeName: string): boolean;
|
|
40
47
|
};
|
|
41
48
|
} & T;
|
|
42
49
|
export declare const FormCheckable: <T extends new (...args: any[]) => myFormElement.FormElementInterface>(superClass: T) => {
|
|
@@ -46,27 +53,39 @@ export declare const FormCheckable: <T extends new (...args: any[]) => myFormEle
|
|
|
46
53
|
forceAutoFill: boolean;
|
|
47
54
|
unique: true | null;
|
|
48
55
|
radio: true | null;
|
|
49
|
-
|
|
50
|
-
|
|
56
|
+
unCheckOnDisconnect: boolean;
|
|
57
|
+
_checked: true | "indeterminate" | null;
|
|
58
|
+
checked: true | "indeterminate" | null;
|
|
51
59
|
validateFormElement(): void;
|
|
52
|
-
|
|
60
|
+
checksAll(): boolean;
|
|
61
|
+
setCheckedValue(checked: true | "indeterminate" | null): void;
|
|
53
62
|
handleChange(): void;
|
|
54
63
|
getValueForFormPublisher(): any;
|
|
55
|
-
setFormValueFromPublisher(value:
|
|
56
|
-
|
|
64
|
+
setFormValueFromPublisher(value: string | (string | null)[] | null): void;
|
|
65
|
+
getCheckAllPublisher(): any;
|
|
66
|
+
updateAllChecked: () => void;
|
|
67
|
+
onChecksAllRequest: (value: string) => void;
|
|
68
|
+
disconnectedCallback(): void;
|
|
69
|
+
connectedCallback(): void;
|
|
57
70
|
getFormPublisher(): any;
|
|
58
71
|
updateDataValue(): void;
|
|
59
|
-
handleBlur(e?:
|
|
72
|
+
handleBlur(e?: Event | undefined): void;
|
|
73
|
+
focus?: (() => void) | undefined;
|
|
74
|
+
shadowRoot?: ShadowRoot | undefined;
|
|
60
75
|
error: boolean;
|
|
61
76
|
autofocus: boolean;
|
|
62
77
|
required: boolean;
|
|
63
78
|
disabled: true | null;
|
|
64
79
|
formDataProvider: string;
|
|
80
|
+
ariaLabelledby?: string | undefined;
|
|
81
|
+
ariaLabel?: string | undefined;
|
|
65
82
|
_name: string;
|
|
66
83
|
name: string;
|
|
67
|
-
props:
|
|
68
|
-
propertyMap:
|
|
84
|
+
props: import("./core/_types/types").CoreJSType;
|
|
85
|
+
propertyMap: object;
|
|
69
86
|
isConnected: boolean;
|
|
87
|
+
children: HTMLCollection;
|
|
88
|
+
appendChild(node: Node): Node;
|
|
70
89
|
getAncestorAttributeValue(attributeName: string): string;
|
|
71
90
|
hasAncestorAttribute(attributeName: string): boolean;
|
|
72
91
|
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
@@ -81,22 +100,21 @@ export declare const FormCheckable: <T extends new (...args: any[]) => myFormEle
|
|
|
81
100
|
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions | undefined): void;
|
|
82
101
|
removeEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions | undefined): void;
|
|
83
102
|
removeAttribute(name: string): void;
|
|
103
|
+
initPublisher(): void;
|
|
84
104
|
getApiConfiguration(): import("./core/utils/api").APIConfiguration;
|
|
85
|
-
connectedCallback(): void;
|
|
86
105
|
requestUpdate(): void;
|
|
87
106
|
getAttribute(name: string): string;
|
|
88
|
-
hasAttribute(attributeName:
|
|
89
|
-
disconnectedCallback(): void;
|
|
107
|
+
hasAttribute(attributeName: string): boolean;
|
|
90
108
|
};
|
|
91
109
|
} & T;
|
|
92
110
|
import * as myFormElement from "@supersoniks/concorde/core/mixins/FormElement";
|
|
93
|
-
export declare const FormElement: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface
|
|
111
|
+
export declare const FormElement: <T extends new (...args: any[]) => mySubscriber.SubscriberInterface<import("./core/_types/types").CoreJSType>>(superClass: T) => (new (...args: any[]) => myFormElement.FormElementInterface) & T;
|
|
94
112
|
export declare const FormInput: <T extends new (...args: any[]) => myFormElement.FormElementInterface>(superClass: T) => {
|
|
95
113
|
new (...args: any[]): {
|
|
96
114
|
validateFormElement(): void;
|
|
97
115
|
forceAutoFill: boolean;
|
|
98
|
-
_type: "number" | "search" | "file" | "button" | "
|
|
99
|
-
type: "number" | "search" | "file" | "button" | "
|
|
116
|
+
_type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "time" | "image" | "text" | "reset" | "submit" | "month" | "week" | "checkbox" | "radio" | "range" | "tel" | "email" | "date" | "datetime-local" | "password";
|
|
117
|
+
type: "number" | "search" | "file" | "button" | "url" | "color" | "hidden" | "time" | "image" | "text" | "reset" | "submit" | "month" | "week" | "checkbox" | "radio" | "range" | "tel" | "email" | "date" | "datetime-local" | "password";
|
|
100
118
|
_description?: string | undefined;
|
|
101
119
|
description: string | undefined;
|
|
102
120
|
_label?: string | undefined;
|
|
@@ -105,21 +123,27 @@ export declare const FormInput: <T extends new (...args: any[]) => myFormElement
|
|
|
105
123
|
autocomplete?: "url" | "name" | "language" | "on" | "tel" | "email" | "honorific-prefix" | "given-name" | "additional-name" | "family-name" | "honorific-suffix" | "nickname" | "username" | "new-password" | "current-password" | "one-time-code" | "organization-title" | "organization" | "street-address" | "address-line1" | "address-line2" | "address-line3" | "address-level4" | "address-level3" | "address-level2" | "address-level1" | "country" | "country-name" | "postal-code" | "cc-name" | "cc-given-name" | "cc-additional-name" | "cc-family-name" | "cc-number" | "cc-exp" | "cc-exp-month" | "cc-exp-year" | "cc-csc" | "cc-type" | "transaction-currency" | "transaction-amount" | "bday" | "bday-day" | "bday-month" | "bday-year" | "sex" | "tel-country-code" | "tel-national" | "tel-area-code" | "tel-local" | "tel-extension" | "impp" | "photo" | undefined;
|
|
106
124
|
getFormPublisher(): any;
|
|
107
125
|
updateDataValue(): void;
|
|
108
|
-
handleChange(e?:
|
|
109
|
-
handleBlur(e?:
|
|
110
|
-
getValueForFormPublisher():
|
|
126
|
+
handleChange(e?: Event | undefined): void;
|
|
127
|
+
handleBlur(e?: Event | undefined): void;
|
|
128
|
+
getValueForFormPublisher(): string | object | string[] | null | undefined;
|
|
129
|
+
focus?: (() => void) | undefined;
|
|
130
|
+
shadowRoot?: ShadowRoot | undefined;
|
|
111
131
|
error: boolean;
|
|
112
132
|
autofocus: boolean;
|
|
113
133
|
required: boolean;
|
|
114
134
|
disabled: true | null;
|
|
115
135
|
formDataProvider: string;
|
|
116
|
-
|
|
117
|
-
|
|
136
|
+
ariaLabelledby?: string | undefined;
|
|
137
|
+
ariaLabel?: string | undefined;
|
|
138
|
+
_value: string | object | string[] | null | undefined;
|
|
139
|
+
value: string | object | string[] | null | undefined;
|
|
118
140
|
_name: string;
|
|
119
141
|
name: string;
|
|
120
|
-
props:
|
|
121
|
-
propertyMap:
|
|
142
|
+
props: import("./core/_types/types").CoreJSType;
|
|
143
|
+
propertyMap: object;
|
|
122
144
|
isConnected: boolean;
|
|
145
|
+
children: HTMLCollection;
|
|
146
|
+
appendChild(node: Node): Node;
|
|
123
147
|
getAncestorAttributeValue(attributeName: string): string;
|
|
124
148
|
hasAncestorAttribute(attributeName: string): boolean;
|
|
125
149
|
querySelectorAll(selector: string): NodeListOf<Element>;
|
|
@@ -139,11 +163,11 @@ export declare const FormInput: <T extends new (...args: any[]) => myFormElement
|
|
|
139
163
|
connectedCallback(): void;
|
|
140
164
|
requestUpdate(): void;
|
|
141
165
|
getAttribute(name: string): string;
|
|
142
|
-
hasAttribute(attributeName:
|
|
166
|
+
hasAttribute(attributeName: string): boolean;
|
|
143
167
|
disconnectedCallback(): void;
|
|
144
168
|
};
|
|
145
169
|
} & T;
|
|
146
170
|
import * as mySubscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
147
|
-
export declare const Subscriber: <T extends new (...args: any[]) => import("lit").LitElement>(superClass: T) => (new (...args: any[]) => mySubscriber.SubscriberInterface) & T;
|
|
171
|
+
export declare const Subscriber: <PropsType = import("./core/_types/types").CoreJSType, T extends new (...args: any[]) => import("lit").LitElement = new (...args: any[]) => import("lit").LitElement>(superClass: T, type?: PropsType | undefined) => (new (...args: any[]) => mySubscriber.SubscriberInterface<PropsType>) & T;
|
|
148
172
|
import * as myTemplatesContainer from "@supersoniks/concorde/core/mixins/TemplatesContainer";
|
|
149
173
|
export declare const TemplatesContainer: <T extends new (...args: any[]) => import("lit").LitElement>(superClass: T) => (new (...args: any[]) => myTemplatesContainer.TemplatesContainerInterface) & T;
|
package/mixins.js
CHANGED
|
@@ -11,13 +11,12 @@ import * as mySubscriber from "@supersoniks/concorde/core/mixins/Subscriber";
|
|
|
11
11
|
export const Subscriber = mySubscriber.default;
|
|
12
12
|
import * as myTemplatesContainer from "@supersoniks/concorde/core/mixins/TemplatesContainer";
|
|
13
13
|
export const TemplatesContainer = myTemplatesContainer.default;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
win["concorde-mixins"] = {
|
|
14
|
+
window["concorde-mixins"] = window["concorde-mixins"] || {};
|
|
15
|
+
window["concorde-mixins"] = {
|
|
17
16
|
Fetcher: Fetcher,
|
|
18
17
|
FormCheckable: FormCheckable,
|
|
19
18
|
FormElement: FormElement,
|
|
20
19
|
FormInput: FormInput,
|
|
21
20
|
Subscriber: Subscriber,
|
|
22
|
-
TemplatesContainer: TemplatesContainer
|
|
21
|
+
TemplatesContainer: TemplatesContainer,
|
|
23
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.44",
|
|
4
4
|
"customElements": "custom-elements.json",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,25 +9,44 @@
|
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@lit-labs/motion": "^1.0.1",
|
|
11
11
|
"@lit-labs/observers": "^1.0.1",
|
|
12
|
+
"@types/prismjs": "^1.26.0",
|
|
12
13
|
"chart.js": "^3.9.1",
|
|
14
|
+
"intl": "^1.2.5",
|
|
13
15
|
"jsbarcode": "^3.11.5",
|
|
14
16
|
"lit": "^2.2.3",
|
|
17
|
+
"marked": "^4.2.2",
|
|
18
|
+
"prismjs": "^1.29.0",
|
|
15
19
|
"url-pattern": "^1.0.3"
|
|
16
20
|
},
|
|
17
21
|
"devDependencies": {
|
|
18
22
|
"@tailwindcss/typography": "^0.5.2",
|
|
23
|
+
"@types/intl": "^1.2.0",
|
|
24
|
+
"@types/jest": "^29.2.6",
|
|
25
|
+
"@types/node": "^18.11.18",
|
|
26
|
+
"@typescript-eslint/eslint-plugin": "^5.49.0",
|
|
27
|
+
"@typescript-eslint/parser": "^5.49.0",
|
|
28
|
+
"add": "^2.0.6",
|
|
19
29
|
"autoprefixer": "^10.4.5",
|
|
30
|
+
"eslint": "^8.32.0",
|
|
31
|
+
"eslint-config-prettier": "^8.6.0",
|
|
32
|
+
"intl": "^1.2.5",
|
|
33
|
+
"jest": "^29.3.1",
|
|
34
|
+
"jest-environment-jsdom": "^29.4.1",
|
|
20
35
|
"postcss": "^8.4.12",
|
|
21
36
|
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
22
37
|
"rollup-plugin-postcss-lit": "^2.0.0",
|
|
38
|
+
"swagger-typescript-api": "^12.0.2",
|
|
23
39
|
"tailwindcss": "^3.0.23",
|
|
40
|
+
"ts-jest": "^29.0.5",
|
|
41
|
+
"ts-node": "^10.9.1",
|
|
24
42
|
"typescript": "^4.6.4",
|
|
25
|
-
"vite": "^2.6.14"
|
|
43
|
+
"vite": "^2.6.14",
|
|
44
|
+
"vite-jest": "^0.1.4",
|
|
45
|
+
"yarn": "^1.22.19"
|
|
26
46
|
},
|
|
27
47
|
"exports": {
|
|
28
48
|
"./components": "./components.js",
|
|
29
|
-
"./core/
|
|
30
|
-
"./functional/configuration": "./core/components/functional/configuration/configuration.js",
|
|
49
|
+
"./core/_types/types": "./core/_types/types.js",
|
|
31
50
|
"./core/components/functional/date/date": "./core/components/functional/date/date.js",
|
|
32
51
|
"./functional/date": "./core/components/functional/date/date.js",
|
|
33
52
|
"./core/components/functional/example/example": "./core/components/functional/example/example.js",
|
|
@@ -36,10 +55,14 @@
|
|
|
36
55
|
"./functional/fetch": "./core/components/functional/fetch/fetch.js",
|
|
37
56
|
"./core/components/functional/functional": "./core/components/functional/functional.js",
|
|
38
57
|
"./functional": "./core/components/functional/functional.js",
|
|
58
|
+
"./core/components/functional/if/if.test": "./core/components/functional/if/if.test.js",
|
|
59
|
+
"./functional/if/if.test": "./core/components/functional/if/if.test.js",
|
|
39
60
|
"./core/components/functional/if/if": "./core/components/functional/if/if.js",
|
|
40
61
|
"./functional/if": "./core/components/functional/if/if.js",
|
|
41
62
|
"./core/components/functional/list/list": "./core/components/functional/list/list.js",
|
|
42
63
|
"./functional/list": "./core/components/functional/list/list.js",
|
|
64
|
+
"./core/components/functional/mix/mix": "./core/components/functional/mix/mix.js",
|
|
65
|
+
"./functional/mix": "./core/components/functional/mix/mix.js",
|
|
43
66
|
"./core/components/functional/queue/queue": "./core/components/functional/queue/queue.js",
|
|
44
67
|
"./functional/queue": "./core/components/functional/queue/queue.js",
|
|
45
68
|
"./core/components/functional/router/redirect": "./core/components/functional/router/redirect.js",
|
|
@@ -48,6 +71,10 @@
|
|
|
48
71
|
"./functional/router": "./core/components/functional/router/router.js",
|
|
49
72
|
"./core/components/functional/sdui/SDUIDescriptorTransformer": "./core/components/functional/sdui/SDUIDescriptorTransformer.js",
|
|
50
73
|
"./functional/sdui/SDUIDescriptorTransformer": "./core/components/functional/sdui/SDUIDescriptorTransformer.js",
|
|
74
|
+
"./core/components/functional/sdui/default-library.json": "./core/components/functional/sdui/default-library.json",
|
|
75
|
+
"./functional/sdui/default-library.json": "./core/components/functional/sdui/default-library.json",
|
|
76
|
+
"./core/components/functional/sdui/sdui-utils": "./core/components/functional/sdui/sdui-utils.js",
|
|
77
|
+
"./functional/sdui/sdui-utils": "./core/components/functional/sdui/sdui-utils.js",
|
|
51
78
|
"./core/components/functional/sdui/sdui": "./core/components/functional/sdui/sdui.js",
|
|
52
79
|
"./functional/sdui": "./core/components/functional/sdui/sdui.js",
|
|
53
80
|
"./core/components/functional/sdui/types": "./core/components/functional/sdui/types.js",
|
|
@@ -60,6 +87,8 @@
|
|
|
60
87
|
"./functional/submit": "./core/components/functional/submit/submit.js",
|
|
61
88
|
"./core/components/functional/subscriber/subscriber": "./core/components/functional/subscriber/subscriber.js",
|
|
62
89
|
"./functional/subscriber": "./core/components/functional/subscriber/subscriber.js",
|
|
90
|
+
"./core/components/functional/value/value": "./core/components/functional/value/value.js",
|
|
91
|
+
"./functional/value": "./core/components/functional/value/value.js",
|
|
63
92
|
"./core/components/ui/_css/scroll": "./core/components/ui/_css/scroll.js",
|
|
64
93
|
"./ui/_css/scroll": "./core/components/ui/_css/scroll.js",
|
|
65
94
|
"./core/components/ui/_css/size": "./core/components/ui/_css/size.js",
|
|
@@ -168,12 +197,6 @@
|
|
|
168
197
|
"./ui/table/table-tr": "./core/components/ui/table/table-tr.js",
|
|
169
198
|
"./core/components/ui/table/table": "./core/components/ui/table/table.js",
|
|
170
199
|
"./ui/table": "./core/components/ui/table/table.js",
|
|
171
|
-
"./core/components/ui/tabs/tab": "./core/components/ui/tabs/tab.js",
|
|
172
|
-
"./ui/tabs/tab": "./core/components/ui/tabs/tab.js",
|
|
173
|
-
"./core/components/ui/tabs/tabs": "./core/components/ui/tabs/tabs.js",
|
|
174
|
-
"./ui/tabs": "./core/components/ui/tabs/tabs.js",
|
|
175
|
-
"./core/components/ui/taxonomy/taxonomy": "./core/components/ui/taxonomy/taxonomy.js",
|
|
176
|
-
"./ui/taxonomy": "./core/components/ui/taxonomy/taxonomy.js",
|
|
177
200
|
"./core/components/ui/theme/theme-collection/core-variables": "./core/components/ui/theme/theme-collection/core-variables.js",
|
|
178
201
|
"./ui/theme/theme-collection/core-variables": "./core/components/ui/theme/theme-collection/core-variables.js",
|
|
179
202
|
"./core/components/ui/theme/theme-collection/dark": "./core/components/ui/theme/theme-collection/dark.js",
|
|
@@ -224,13 +247,29 @@
|
|
|
224
247
|
"./utils/LocationHandler": "./core/utils/LocationHandler.js",
|
|
225
248
|
"./core/utils/Objects": "./core/utils/Objects.js",
|
|
226
249
|
"./utils/Objects": "./core/utils/Objects.js",
|
|
227
|
-
"./core/utils/PublisherProxy
|
|
228
|
-
"./utils/PublisherProxy
|
|
250
|
+
"./core/utils/PublisherProxy": "./core/utils/PublisherProxy.js",
|
|
251
|
+
"./utils/PublisherProxy": "./core/utils/PublisherProxy.js",
|
|
252
|
+
"./core/utils/Utils": "./core/utils/Utils.js",
|
|
253
|
+
"./utils/Utils": "./core/utils/Utils.js",
|
|
229
254
|
"./core/utils/api": "./core/utils/api.js",
|
|
230
255
|
"./utils/api": "./core/utils/api.js",
|
|
256
|
+
"./docs/code": "./docs/code.js",
|
|
257
|
+
"./docs/docs": "./docs/docs.js",
|
|
258
|
+
"./docs": "./docs.js",
|
|
259
|
+
"./docs/example/users": "./docs/example/users.js",
|
|
260
|
+
"./docs/navigation/navigation": "./docs/navigation/navigation.js",
|
|
261
|
+
"./docs/navigation": "./docs/navigation/navigation.js",
|
|
262
|
+
"./docs/prism/index": "./docs/prism/index.js",
|
|
263
|
+
"./docs/search/doc-search.json": "./docs/search/doc-search.json",
|
|
264
|
+
"./docs/search/docs-search.json": "./docs/search/docs-search.json",
|
|
265
|
+
"./docs/search/markdown-renderer": "./docs/search/markdown-renderer.js",
|
|
266
|
+
"./docs/search/page": "./docs/search/page.js",
|
|
267
|
+
"./docs/search/search": "./docs/search/search.js",
|
|
268
|
+
"./docs/search": "./docs/search/search.js",
|
|
231
269
|
"./index-billetterie": "./index-billetterie.js",
|
|
232
270
|
"./index-shared": "./index-shared.js",
|
|
233
271
|
"./index": "./index.js",
|
|
272
|
+
"./test-utils/TestUtils": "./test-utils/TestUtils.js",
|
|
234
273
|
"./utils": "./utils.js",
|
|
235
274
|
".": "./core/core"
|
|
236
275
|
},
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M576 256C576 305 502.1 336 464.2 336H382.2L282.4 496C276.4 506 266.4 512 254.4 512H189.5C179.5 512 169.5 508 163.5 500C157.6 492 155.6 480.1 158.6 471L201.5 336H152.5L113.6 388C107.6 396 98.61 400 88.62 400H31.7C22.72 400 12.73 396 6.74 388C.7485 380-1.248 370 1.747 360L31.7 256L.7488 152C-1.248 143 .7488 133 6.74 125C12.73 117 22.72 112 31.7 112H88.62C98.61 112 107.6 117 113.6 125L152.5 176H201.5L158.6 41C155.6 32 157.6 21 163.5 13C169.5 5 179.5 0 189.5 0H254.4C265.4 0 277.4 7 281.4 16L381.2 176H463.2C502.1 176 576 208 576 256H576zM527.1 256C525.1 246 489.1 224 463.2 224H355.3L245.4 48H211.5L266.4 224H128.6L80.63 160H53.67L81.63 256L53.67 352H80.63L128.6 288H266.4L211.5 464H245.4L355.3 288H463.2C490.1 288 526.1 267 527.1 256V256z"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><!--! Font Awesome Pro 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. --><path d="M482.3 192c34.2 0 93.7 29 93.7 64c0 36-59.5 64-93.7 64l-116.6 0L265.2 495.9c-5.7 10-16.3 16.1-27.8 16.1l-56.2 0c-10.6 0-18.3-10.2-15.4-20.4l49-171.6L112 320 68.8 377.6c-3 4-7.8 6.4-12.8 6.4l-42 0c-7.8 0-14-6.3-14-14c0-1.3 .2-2.6 .5-3.9L32 256 .5 145.9c-.4-1.3-.5-2.6-.5-3.9c0-7.8 6.3-14 14-14l42 0c5 0 9.8 2.4 12.8 6.4L112 192l102.9 0-49-171.6C162.9 10.2 170.6 0 181.2 0l56.2 0c11.5 0 22.1 6.2 27.8 16.1L365.7 192l116.6 0z"/></svg>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jest } from "@jest/globals";
|
|
2
|
+
import IntlPolyfill from "intl";
|
|
3
|
+
import "intl/locale-data/jsonp/fr";
|
|
4
|
+
export default class TestUtils {
|
|
5
|
+
static bootstrap(html) {
|
|
6
|
+
jest.spyOn(global.Intl, "DateTimeFormat").mockImplementation(() => new IntlPolyfill.DateTimeFormat());
|
|
7
|
+
const container = document.createElement("div");
|
|
8
|
+
container.innerHTML = html;
|
|
9
|
+
document.body.appendChild(container);
|
|
10
|
+
return container.children;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/utils.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as myUtils from "@supersoniks/concorde/core/utils/Utils";
|
|
2
|
+
export declare const Utils: typeof myUtils.default;
|
|
1
3
|
import * as myArrays from "@supersoniks/concorde/core/utils/Arrays";
|
|
2
4
|
export declare const Arrays: typeof myArrays.default;
|
|
3
5
|
import * as myDataBindObserver from "@supersoniks/concorde/core/utils/DataBindObserver";
|
|
@@ -10,7 +12,7 @@ import * as myLocationHandler from "@supersoniks/concorde/core/utils/LocationHan
|
|
|
10
12
|
export declare const LocationHandler: typeof myLocationHandler.default;
|
|
11
13
|
import * as myObjects from "@supersoniks/concorde/core/utils/Objects";
|
|
12
14
|
export declare const Objects: typeof myObjects.default;
|
|
13
|
-
import * as myPublisherProxy from "@supersoniks/concorde/core/utils/PublisherProxy
|
|
15
|
+
import * as myPublisherProxy from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
14
16
|
export declare const PublisherProxy: typeof myPublisherProxy.default;
|
|
15
17
|
export declare const PublisherManager: typeof myPublisherProxy.PublisherManager;
|
|
16
18
|
import * as myApi from "@supersoniks/concorde/core/utils/api";
|
package/utils.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
//
|
|
2
2
|
//
|
|
3
|
+
import * as myUtils from "@supersoniks/concorde/core/utils/Utils";
|
|
4
|
+
export const Utils = myUtils.default;
|
|
3
5
|
import * as myArrays from "@supersoniks/concorde/core/utils/Arrays";
|
|
4
6
|
export const Arrays = myArrays.default;
|
|
5
7
|
import * as myDataBindObserver from "@supersoniks/concorde/core/utils/DataBindObserver";
|
|
@@ -12,14 +14,14 @@ import * as myLocationHandler from "@supersoniks/concorde/core/utils/LocationHan
|
|
|
12
14
|
export const LocationHandler = myLocationHandler.default;
|
|
13
15
|
import * as myObjects from "@supersoniks/concorde/core/utils/Objects";
|
|
14
16
|
export const Objects = myObjects.default;
|
|
15
|
-
import * as myPublisherProxy from "@supersoniks/concorde/core/utils/PublisherProxy
|
|
17
|
+
import * as myPublisherProxy from "@supersoniks/concorde/core/utils/PublisherProxy";
|
|
16
18
|
export const PublisherProxy = myPublisherProxy.default;
|
|
17
19
|
export const PublisherManager = myPublisherProxy.PublisherManager;
|
|
18
20
|
import * as myApi from "@supersoniks/concorde/core/utils/api";
|
|
19
21
|
export const api = myApi.default;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
22
|
+
window["concorde-utils"] = window["concorde-utils"] || {};
|
|
23
|
+
window["concorde-utils"] = {
|
|
24
|
+
Utils: Utils,
|
|
23
25
|
Arrays: Arrays,
|
|
24
26
|
DataBindObserver: DataBindObserver,
|
|
25
27
|
Format: Format,
|
|
@@ -28,5 +30,5 @@ win["concorde-utils"] = {
|
|
|
28
30
|
Objects: Objects,
|
|
29
31
|
PublisherProxy: PublisherProxy,
|
|
30
32
|
PublisherManager: PublisherManager,
|
|
31
|
-
api: api
|
|
33
|
+
api: api,
|
|
32
34
|
};
|
|
@@ -1,22 +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 } from "lit";
|
|
8
|
-
import { customElement } from "lit/decorators.js";
|
|
9
|
-
const tagName = "sonic-radio";
|
|
10
|
-
let SonicConfiguration = class SonicConfiguration extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.isSonicConfig = true;
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
return html `<slot></slot>`;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
SonicConfiguration = __decorate([
|
|
20
|
-
customElement(tagName)
|
|
21
|
-
], SonicConfiguration);
|
|
22
|
-
export { SonicConfiguration };
|
|
@@ -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 { css } from "lit";
|
|
8
|
-
import { customElement } from "lit/decorators.js";
|
|
9
|
-
import { Button } from "@supersoniks/concorde/core/components/ui/button/button";
|
|
10
|
-
let Tab = class Tab extends Button {
|
|
11
|
-
constructor() {
|
|
12
|
-
super();
|
|
13
|
-
}
|
|
14
|
-
connectedCallback() {
|
|
15
|
-
if (!this.hasAttribute("variant")) {
|
|
16
|
-
this.variant = "ghost";
|
|
17
|
-
}
|
|
18
|
-
super.connectedCallback();
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
Tab.styles = [
|
|
22
|
-
Button.styles,
|
|
23
|
-
css `
|
|
24
|
-
:host {
|
|
25
|
-
--sc-tab-white-space : nowrap;
|
|
26
|
-
--sc-tab-flex-wrap : nowrap ;
|
|
27
|
-
flex-wrap:nowrap;
|
|
28
|
-
scroll-snap-align: start;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
button {
|
|
32
|
-
flex-wrap:var(--sc-tab-flex-wrap) !important;
|
|
33
|
-
white-space:var(--sc-tab-white-space);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
`,
|
|
37
|
-
];
|
|
38
|
-
Tab = __decorate([
|
|
39
|
-
customElement("sonic-tab")
|
|
40
|
-
], Tab);
|
|
41
|
-
export { Tab };
|
|
42
|
-
//Ajout pour Storybook
|
|
43
|
-
try {
|
|
44
|
-
customElements.define("sonic-tab", Tab);
|
|
45
|
-
}
|
|
46
|
-
catch (e) { }
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LitElement, PropertyValues } from "lit";
|
|
2
|
-
import { ResizeController } from "@lit-labs/observers/resize_controller.js";
|
|
3
|
-
export declare class Tabs extends LitElement {
|
|
4
|
-
static styles: import("lit").CSSResult[];
|
|
5
|
-
size: "md" | "xs" | "sm" | "lg";
|
|
6
|
-
direction: "" | "row" | "column";
|
|
7
|
-
icon: boolean;
|
|
8
|
-
moreShape: "square" | "circle";
|
|
9
|
-
menu: HTMLElement;
|
|
10
|
-
_resizeController: ResizeController;
|
|
11
|
-
updated(_changedProperties: PropertyValues): void;
|
|
12
|
-
firstUpdated(): void;
|
|
13
|
-
_setChildrenSize(): void;
|
|
14
|
-
render(): import("lit-html").TemplateResult<1>;
|
|
15
|
-
}
|