@supersoniks/concorde 1.1.42 → 1.1.43
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 +5081 -4317
- package/core/_types/types.d.ts +26 -0
- package/core/_types/types.js +1 -0
- package/core/components/functional/date/date.d.ts +13 -5
- package/core/components/functional/date/date.js +48 -29
- 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 +40 -3
- 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 +32 -8
- package/core/components/functional/list/list.js +33 -40
- package/core/components/functional/mix/mix.d.ts +22 -0
- package/core/components/functional/mix/mix.js +99 -0
- package/core/components/functional/queue/queue.d.ts +16 -3
- package/core/components/functional/queue/queue.js +71 -15
- package/core/components/functional/router/redirect.d.ts +10 -1
- package/core/components/functional/router/redirect.js +5 -6
- package/core/components/functional/router/router.d.ts +15 -1
- package/core/components/functional/router/router.js +1 -6
- package/core/components/functional/sdui/SDUIDescriptorTransformer.d.ts +1 -1
- package/core/components/functional/sdui/SDUIDescriptorTransformer.js +24 -12
- 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 +16 -9
- package/core/components/functional/sdui/sdui.js +52 -25
- package/core/components/functional/sdui/types.d.ts +4 -2
- package/core/components/functional/states/states.d.ts +19 -3
- package/core/components/functional/states/states.js +7 -12
- package/core/components/functional/submit/submit.d.ts +16 -1
- package/core/components/functional/submit/submit.js +87 -17
- 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 +23 -20
- package/core/components/ui/button/button.js +59 -42
- package/core/components/ui/captcha/captcha.d.ts +14 -2
- package/core/components/ui/captcha/captcha.js +17 -12
- 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 +1 -6
- 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 +28 -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 +53 -16
- 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 +15 -18
- 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 +3 -2
- package/core/components/ui/form/input/same-value-helper.d.ts +1 -1
- package/core/components/ui/form/input/same-value-helper.js +1 -0
- 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 +23 -7
- package/core/components/ui/form/select/select.js +69 -38
- package/core/components/ui/form/textarea/textarea.d.ts +13 -13
- 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 +11 -8
- 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.js +2 -8
- 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 +183 -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 +36 -36
- package/core/components/ui/pop/pop.d.ts +6 -5
- package/core/components/ui/pop/pop.js +44 -44
- 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/taxonomy/taxonomy.d.ts +6 -3
- package/core/components/ui/taxonomy/taxonomy.js +9 -9
- 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 +7 -36
- package/core/components/ui/toast/message-subscriber.d.ts +13 -7
- package/core/components/ui/toast/toast-item.js +1 -1
- package/core/components/ui/toast/toast.d.ts +2 -1
- package/core/components/ui/toast/toast.js +29 -14
- package/core/components/ui/tooltip/tooltip.d.ts +1 -0
- package/core/components/ui/tooltip/tooltip.js +35 -14
- package/core/components/ui/ui.js +0 -3
- package/core/core.js +5 -6
- package/core/mixins/Fetcher.d.ts +19 -10
- package/core/mixins/Fetcher.js +26 -10
- package/core/mixins/FormCheckable.d.ts +17 -8
- package/core/mixins/FormCheckable.js +177 -22
- package/core/mixins/FormElement.d.ts +12 -7
- package/core/mixins/FormElement.js +42 -26
- package/core/mixins/FormInput.d.ts +8 -4
- package/core/mixins/FormInput.js +4 -3
- package/core/mixins/Subscriber.d.ts +7 -5
- package/core/mixins/Subscriber.js +34 -32
- package/core/utils/Arrays.d.ts +15 -15
- package/core/utils/DataBindObserver.d.ts +16 -9
- package/core/utils/DataBindObserver.js +23 -28
- 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 +22 -3
- package/core/utils/LocationHandler.d.ts +6 -5
- package/core/utils/LocationHandler.js +19 -8
- package/core/utils/Objects.d.ts +7 -4
- package/core/utils/Objects.js +28 -6
- package/core/utils/{PublisherProxy.d.mts → PublisherProxy.d.ts} +40 -31
- package/core/utils/{PublisherProxy.mjs → PublisherProxy.js} +54 -28
- package/core/utils/Utils.d.ts +3 -0
- package/core/utils/Utils.js +18 -0
- package/core/utils/api.d.ts +39 -7
- package/core/utils/api.js +45 -32
- package/img/concorde-logo.svg +1 -0
- package/img/concorde.png +0 -0
- package/img/concorde_def.png +0 -0
- package/mixins.d.ts +36 -18
- package/mixins.js +3 -4
- package/package.json +45 -10
- 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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supersoniks/concorde",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.43",
|
|
4
4
|
"customElements": "custom-elements.json",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -9,25 +9,38 @@
|
|
|
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",
|
|
19
26
|
"autoprefixer": "^10.4.5",
|
|
27
|
+
"intl": "^1.2.5",
|
|
28
|
+
"jest": "^29.3.1",
|
|
29
|
+
"jest-environment-jsdom": "^29.3.1",
|
|
20
30
|
"postcss": "^8.4.12",
|
|
21
31
|
"rollup-plugin-minify-html-literals": "^1.2.6",
|
|
22
32
|
"rollup-plugin-postcss-lit": "^2.0.0",
|
|
33
|
+
"swagger-typescript-api": "^12.0.2",
|
|
23
34
|
"tailwindcss": "^3.0.23",
|
|
35
|
+
"ts-jest": "^29.0.5",
|
|
36
|
+
"ts-node": "^10.9.1",
|
|
24
37
|
"typescript": "^4.6.4",
|
|
25
|
-
"vite": "^2.6.14"
|
|
38
|
+
"vite": "^2.6.14",
|
|
39
|
+
"vite-jest": "^0.1.4"
|
|
26
40
|
},
|
|
27
41
|
"exports": {
|
|
28
42
|
"./components": "./components.js",
|
|
29
|
-
"./core/
|
|
30
|
-
"./functional/configuration": "./core/components/functional/configuration/configuration.js",
|
|
43
|
+
"./core/_types/types": "./core/_types/types.js",
|
|
31
44
|
"./core/components/functional/date/date": "./core/components/functional/date/date.js",
|
|
32
45
|
"./functional/date": "./core/components/functional/date/date.js",
|
|
33
46
|
"./core/components/functional/example/example": "./core/components/functional/example/example.js",
|
|
@@ -36,10 +49,14 @@
|
|
|
36
49
|
"./functional/fetch": "./core/components/functional/fetch/fetch.js",
|
|
37
50
|
"./core/components/functional/functional": "./core/components/functional/functional.js",
|
|
38
51
|
"./functional": "./core/components/functional/functional.js",
|
|
52
|
+
"./core/components/functional/if/if.test": "./core/components/functional/if/if.test.js",
|
|
53
|
+
"./functional/if/if.test": "./core/components/functional/if/if.test.js",
|
|
39
54
|
"./core/components/functional/if/if": "./core/components/functional/if/if.js",
|
|
40
55
|
"./functional/if": "./core/components/functional/if/if.js",
|
|
41
56
|
"./core/components/functional/list/list": "./core/components/functional/list/list.js",
|
|
42
57
|
"./functional/list": "./core/components/functional/list/list.js",
|
|
58
|
+
"./core/components/functional/mix/mix": "./core/components/functional/mix/mix.js",
|
|
59
|
+
"./functional/mix": "./core/components/functional/mix/mix.js",
|
|
43
60
|
"./core/components/functional/queue/queue": "./core/components/functional/queue/queue.js",
|
|
44
61
|
"./functional/queue": "./core/components/functional/queue/queue.js",
|
|
45
62
|
"./core/components/functional/router/redirect": "./core/components/functional/router/redirect.js",
|
|
@@ -48,6 +65,10 @@
|
|
|
48
65
|
"./functional/router": "./core/components/functional/router/router.js",
|
|
49
66
|
"./core/components/functional/sdui/SDUIDescriptorTransformer": "./core/components/functional/sdui/SDUIDescriptorTransformer.js",
|
|
50
67
|
"./functional/sdui/SDUIDescriptorTransformer": "./core/components/functional/sdui/SDUIDescriptorTransformer.js",
|
|
68
|
+
"./core/components/functional/sdui/default-library.json": "./core/components/functional/sdui/default-library.json",
|
|
69
|
+
"./functional/sdui/default-library.json": "./core/components/functional/sdui/default-library.json",
|
|
70
|
+
"./core/components/functional/sdui/sdui-utils": "./core/components/functional/sdui/sdui-utils.js",
|
|
71
|
+
"./functional/sdui/sdui-utils": "./core/components/functional/sdui/sdui-utils.js",
|
|
51
72
|
"./core/components/functional/sdui/sdui": "./core/components/functional/sdui/sdui.js",
|
|
52
73
|
"./functional/sdui": "./core/components/functional/sdui/sdui.js",
|
|
53
74
|
"./core/components/functional/sdui/types": "./core/components/functional/sdui/types.js",
|
|
@@ -60,6 +81,8 @@
|
|
|
60
81
|
"./functional/submit": "./core/components/functional/submit/submit.js",
|
|
61
82
|
"./core/components/functional/subscriber/subscriber": "./core/components/functional/subscriber/subscriber.js",
|
|
62
83
|
"./functional/subscriber": "./core/components/functional/subscriber/subscriber.js",
|
|
84
|
+
"./core/components/functional/value/value": "./core/components/functional/value/value.js",
|
|
85
|
+
"./functional/value": "./core/components/functional/value/value.js",
|
|
63
86
|
"./core/components/ui/_css/scroll": "./core/components/ui/_css/scroll.js",
|
|
64
87
|
"./ui/_css/scroll": "./core/components/ui/_css/scroll.js",
|
|
65
88
|
"./core/components/ui/_css/size": "./core/components/ui/_css/size.js",
|
|
@@ -168,10 +191,6 @@
|
|
|
168
191
|
"./ui/table/table-tr": "./core/components/ui/table/table-tr.js",
|
|
169
192
|
"./core/components/ui/table/table": "./core/components/ui/table/table.js",
|
|
170
193
|
"./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
194
|
"./core/components/ui/taxonomy/taxonomy": "./core/components/ui/taxonomy/taxonomy.js",
|
|
176
195
|
"./ui/taxonomy": "./core/components/ui/taxonomy/taxonomy.js",
|
|
177
196
|
"./core/components/ui/theme/theme-collection/core-variables": "./core/components/ui/theme/theme-collection/core-variables.js",
|
|
@@ -224,13 +243,29 @@
|
|
|
224
243
|
"./utils/LocationHandler": "./core/utils/LocationHandler.js",
|
|
225
244
|
"./core/utils/Objects": "./core/utils/Objects.js",
|
|
226
245
|
"./utils/Objects": "./core/utils/Objects.js",
|
|
227
|
-
"./core/utils/PublisherProxy
|
|
228
|
-
"./utils/PublisherProxy
|
|
246
|
+
"./core/utils/PublisherProxy": "./core/utils/PublisherProxy.js",
|
|
247
|
+
"./utils/PublisherProxy": "./core/utils/PublisherProxy.js",
|
|
248
|
+
"./core/utils/Utils": "./core/utils/Utils.js",
|
|
249
|
+
"./utils/Utils": "./core/utils/Utils.js",
|
|
229
250
|
"./core/utils/api": "./core/utils/api.js",
|
|
230
251
|
"./utils/api": "./core/utils/api.js",
|
|
252
|
+
"./docs/code": "./docs/code.js",
|
|
253
|
+
"./docs/docs": "./docs/docs.js",
|
|
254
|
+
"./docs": "./docs.js",
|
|
255
|
+
"./docs/example/users": "./docs/example/users.js",
|
|
256
|
+
"./docs/navigation/navigation": "./docs/navigation/navigation.js",
|
|
257
|
+
"./docs/navigation": "./docs/navigation/navigation.js",
|
|
258
|
+
"./docs/prism/index": "./docs/prism/index.js",
|
|
259
|
+
"./docs/search/doc-search.json": "./docs/search/doc-search.json",
|
|
260
|
+
"./docs/search/docs-search.json": "./docs/search/docs-search.json",
|
|
261
|
+
"./docs/search/markdown-renderer": "./docs/search/markdown-renderer.js",
|
|
262
|
+
"./docs/search/page": "./docs/search/page.js",
|
|
263
|
+
"./docs/search/search": "./docs/search/search.js",
|
|
264
|
+
"./docs/search": "./docs/search/search.js",
|
|
231
265
|
"./index-billetterie": "./index-billetterie.js",
|
|
232
266
|
"./index-shared": "./index-shared.js",
|
|
233
267
|
"./index": "./index.js",
|
|
268
|
+
"./test-utils/TestUtils": "./test-utils/TestUtils.js",
|
|
234
269
|
"./utils": "./utils.js",
|
|
235
270
|
".": "./core/core"
|
|
236
271
|
},
|
|
@@ -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
|
-
}
|
|
@@ -1,129 +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, query } from "lit/decorators.js";
|
|
9
|
-
import { ResizeController } from "@lit-labs/observers/resize_controller.js";
|
|
10
|
-
let Tabs = class Tabs extends LitElement {
|
|
11
|
-
constructor() {
|
|
12
|
-
super(...arguments);
|
|
13
|
-
this.size = "md";
|
|
14
|
-
this.direction = "column";
|
|
15
|
-
this.icon = false;
|
|
16
|
-
this.moreShape = "circle";
|
|
17
|
-
this._resizeController = new ResizeController(this, {});
|
|
18
|
-
}
|
|
19
|
-
updated(_changedProperties) {
|
|
20
|
-
super.updated(_changedProperties);
|
|
21
|
-
this._setChildrenSize();
|
|
22
|
-
}
|
|
23
|
-
firstUpdated() {
|
|
24
|
-
const tabsMenu = this.menu;
|
|
25
|
-
let isDown = false;
|
|
26
|
-
let startX;
|
|
27
|
-
let scrollLeft;
|
|
28
|
-
tabsMenu.addEventListener("mousedown", (e) => {
|
|
29
|
-
isDown = true;
|
|
30
|
-
tabsMenu.classList.add("active");
|
|
31
|
-
startX = e.pageX - tabsMenu.offsetLeft;
|
|
32
|
-
scrollLeft = tabsMenu.scrollLeft;
|
|
33
|
-
});
|
|
34
|
-
tabsMenu.addEventListener("mouseleave", () => {
|
|
35
|
-
isDown = false;
|
|
36
|
-
tabsMenu.classList.remove("active");
|
|
37
|
-
});
|
|
38
|
-
tabsMenu.addEventListener("mouseup", () => {
|
|
39
|
-
isDown = false;
|
|
40
|
-
tabsMenu.classList.remove("active");
|
|
41
|
-
});
|
|
42
|
-
tabsMenu.addEventListener("mousemove", (e) => {
|
|
43
|
-
if (!isDown)
|
|
44
|
-
return;
|
|
45
|
-
e.preventDefault();
|
|
46
|
-
const x = e.pageX - tabsMenu.offsetLeft;
|
|
47
|
-
const walk = (x - startX) * 1.5; //scroll-fast
|
|
48
|
-
tabsMenu.scrollLeft = scrollLeft - walk;
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
_setChildrenSize() {
|
|
52
|
-
if (this.size) {
|
|
53
|
-
const children = this.querySelectorAll("sonic-button, sonic-tabs-item");
|
|
54
|
-
children.forEach((elt) => {
|
|
55
|
-
if (!elt.hasAttribute("size")) {
|
|
56
|
-
elt.setAttribute("size", this.size);
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
render() {
|
|
62
|
-
return html `<menu part="tabs"
|
|
63
|
-
><slot></slot>
|
|
64
|
-
<sonic-pop class="flex" >
|
|
65
|
-
<sonic-menu-item shape="square">
|
|
66
|
-
<sonic-icon class="my-auto" size="xl" name="more-vert"></sonic-icon>
|
|
67
|
-
</sonic-menu-item>
|
|
68
|
-
<sonic-menu slot="content"></sonic-menu>
|
|
69
|
-
</sonic-pop>
|
|
70
|
-
</menu>`;
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
Tabs.styles = [
|
|
74
|
-
css `
|
|
75
|
-
:host {
|
|
76
|
-
display: block;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
menu::-webkit-scrollbar {
|
|
80
|
-
display: none;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
menu {
|
|
84
|
-
-ms-overflow-style: none;
|
|
85
|
-
scrollbar-width: none;
|
|
86
|
-
overflow-x: scroll;
|
|
87
|
-
display: flex;
|
|
88
|
-
max-width: 100%;
|
|
89
|
-
flex-direction: row;
|
|
90
|
-
padding: 0.5em;
|
|
91
|
-
margin: 0;
|
|
92
|
-
gap: 0.15rem;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
:host([icon]) {
|
|
96
|
-
--sc-icon-size: 1.6em;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
:host([icon]) ::slotted(sonic-tab) {
|
|
100
|
-
font-size: 85em;
|
|
101
|
-
border: 7px solid;
|
|
102
|
-
text-transform: uppercase;
|
|
103
|
-
}
|
|
104
|
-
`,
|
|
105
|
-
];
|
|
106
|
-
__decorate([
|
|
107
|
-
property({ type: String, reflect: true })
|
|
108
|
-
], Tabs.prototype, "size", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
property({ type: String, reflect: true })
|
|
111
|
-
], Tabs.prototype, "direction", void 0);
|
|
112
|
-
__decorate([
|
|
113
|
-
property({ type: Boolean })
|
|
114
|
-
], Tabs.prototype, "icon", void 0);
|
|
115
|
-
__decorate([
|
|
116
|
-
property({ type: String })
|
|
117
|
-
], Tabs.prototype, "moreShape", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
query("menu")
|
|
120
|
-
], Tabs.prototype, "menu", void 0);
|
|
121
|
-
Tabs = __decorate([
|
|
122
|
-
customElement("sonic-tabs")
|
|
123
|
-
], Tabs);
|
|
124
|
-
export { Tabs };
|
|
125
|
-
//Ajout pour la creation du cem notamment pour Storybook
|
|
126
|
-
try {
|
|
127
|
-
customElements.define("sonic-tabs", Tabs);
|
|
128
|
-
}
|
|
129
|
-
catch (e) { }
|