@ds-autonomie/web-components 1.4.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +17 -0
- package/dist/chunks/{chunk.N7ZCXHGU.js → chunk.2FVPNPAG.js} +2 -1
- package/dist/chunks/{chunk.F6FCZQ67.js → chunk.2PVIV5ZH.js} +2 -2
- package/dist/chunks/{chunk.C7CCBBLF.js → chunk.3QQPH6YB.js} +3 -1
- package/dist/chunks/chunk.5QKVQDMN.js +49 -0
- package/dist/chunks/{chunk.A3UKO7AU.js → chunk.7WQVFO44.js} +24 -3
- package/dist/chunks/{chunk.MTZZV3NB.js → chunk.AQC66RY2.js} +1 -1
- package/dist/chunks/{chunk.3RBCYA4F.js → chunk.AXG2LFB3.js} +55 -4
- package/dist/chunks/{chunk.O4XPNLT4.js → chunk.B6CXFMFM.js} +1 -1
- package/dist/chunks/{chunk.4TRQBTMY.js → chunk.CWD6PMVD.js} +1 -1
- package/dist/chunks/{chunk.YRBTSDUN.js → chunk.DQNPP74X.js} +53 -36
- package/dist/chunks/chunk.DX25IW4S.js +35 -0
- package/dist/chunks/{chunk.3GJ3KGGY.js → chunk.DXQY7NLW.js} +17 -0
- package/dist/chunks/{chunk.YY6AEXJK.js → chunk.HXH4JLAN.js} +1 -1
- package/dist/chunks/{chunk.XCG5TV7T.js → chunk.INCMVGXU.js} +1 -1
- package/dist/chunks/{chunk.EXIGM5NV.js → chunk.K2ICEURU.js} +10 -1
- package/dist/chunks/chunk.KTY3ESVG.js +88 -0
- package/dist/chunks/{chunk.JT7UJED5.js → chunk.LSECPSSR.js} +1 -1
- package/dist/chunks/chunk.OIS5HMFT.js +55 -0
- package/dist/chunks/{chunk.5324JGM4.js → chunk.OUVQZNJQ.js} +28 -3
- package/dist/chunks/{chunk.IV2XMACC.js → chunk.OVCI74KS.js} +2 -2
- package/dist/chunks/{chunk.N3ADQCT7.js → chunk.PZTXAAW2.js} +27 -3
- package/dist/chunks/{chunk.2WSMYCPC.js → chunk.QATKXCGU.js} +4 -0
- package/dist/chunks/{chunk.WE6IG5XG.js → chunk.R4PCVUXB.js} +1 -1
- package/dist/chunks/{chunk.BL4IZFBA.js → chunk.RNLKSRKQ.js} +2 -1
- package/dist/chunks/{chunk.UQYPPFBJ.js → chunk.TMG7TJJO.js} +2 -1
- package/dist/chunks/{chunk.3Y56GJS7.js → chunk.TUZ72ZDQ.js} +28 -3
- package/dist/chunks/chunk.U24CXNHC.js +38 -0
- package/dist/chunks/{chunk.2HV2U4RQ.js → chunk.XRHDURFE.js} +1 -1
- package/dist/chunks/chunk.YDCBGMSA.js +161 -0
- package/dist/chunks/{chunk.VRY3E2XG.js → chunk.YZ66DKLU.js} +1 -1
- package/dist/chunks/{chunk.GY5KJYSY.js → chunk.YZHYOXYA.js} +10 -5
- package/dist/chunks/{chunk.D6DEGG4H.js → chunk.Z2QW2HUR.js} +1 -1
- package/dist/chunks/{chunk.5NO4YOTV.js → chunk.ZI2RZQPZ.js} +26 -18
- package/dist/chunks/{chunk.NHYFVEGM.js → chunk.ZR7AGQFC.js} +1 -1
- package/dist/chunks/{chunk.TSK67ZZE.js → chunk.ZU3MRZA4.js} +1 -1
- package/dist/components/alert/alert.js +2 -2
- package/dist/components/animation/animation.d.ts +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +2 -2
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/checkbox/checkbox.js +3 -3
- package/dist/components/checkbox/checkbox.styles.js +2 -2
- package/dist/components/checkbox-button/checkbox-button.d.ts +1 -1
- package/dist/components/checkbox-button/checkbox-button.js +3 -3
- package/dist/components/checkbox-button/checkbox-button.styles.js +2 -2
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/checkbox-group/checkbox-group.styles.js +2 -2
- package/dist/components/combobox/combobox.js +5 -5
- package/dist/components/combobox/combobox.styles.js +2 -2
- package/dist/components/dialog/dialog.js +2 -2
- package/dist/components/drawer/drawer.js +2 -2
- package/dist/components/icon-button/icon-button.d.ts +3 -1
- package/dist/components/icon-button/icon-button.js +2 -2
- package/dist/components/icon-button/icon-button.styles.js +1 -1
- package/dist/components/input/input.d.ts +3 -0
- package/dist/components/input/input.js +3 -3
- package/dist/components/input/input.styles.js +2 -2
- package/dist/components/input-mask/input-mask.js +3 -3
- package/dist/components/input-mask/input-mask.styles.js +2 -2
- package/dist/components/input-phone/input-phone.js +9 -9
- package/dist/components/input-phone/input-phone.styles.js +2 -2
- package/dist/components/radio-button/radio-button.d.ts +1 -1
- package/dist/components/radio-button/radio-button.js +3 -3
- package/dist/components/radio-button/radio-button.styles.js +2 -2
- package/dist/components/radio-group/radio-group.js +3 -3
- package/dist/components/radio-group/radio-group.styles.js +2 -2
- package/dist/components/select/select.js +5 -5
- package/dist/components/select/select.styles.js +2 -2
- package/dist/components/skip-link-item/skip-link-item.d.ts +21 -0
- package/dist/components/skip-link-item/skip-link-item.js +10 -0
- package/dist/components/skip-link-item/skip-link-item.styles.d.ts +2 -0
- package/dist/components/skip-link-item/skip-link-item.styles.js +8 -0
- package/dist/components/skip-links/skip-links.d.ts +22 -0
- package/dist/components/skip-links/skip-links.js +10 -0
- package/dist/components/skip-links/skip-links.styles.d.ts +2 -0
- package/dist/components/skip-links/skip-links.styles.js +8 -0
- package/dist/components/step/step.d.ts +3 -1
- package/dist/components/step/step.js +2 -2
- package/dist/components/step/step.styles.js +1 -1
- package/dist/components/stepper/stepper.d.ts +5 -1
- package/dist/components/stepper/stepper.js +3 -2
- package/dist/components/stepper/stepper.styles.js +1 -1
- package/dist/components/tag/tag.js +2 -2
- package/dist/components/textarea/textarea.d.ts +3 -0
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/textarea/textarea.styles.js +2 -2
- package/dist/components/tree/tree.js +3 -3
- package/dist/components/tree-item/tree-item.js +3 -3
- package/dist/custom-elements.json +257 -8
- package/dist/design-system.d.ts +2 -0
- package/dist/design-system.js +58 -48
- package/dist/events/dsa-focus-in.d.ts +7 -0
- package/dist/events/dsa-focus-in.js +1 -0
- package/dist/events/dsa-focus-out.d.ts +7 -0
- package/dist/events/dsa-focus-out.js +1 -0
- package/dist/internal/components/button-group/button-group.d.ts +1 -0
- package/dist/internal/components/button-group/button-group.js +9 -1
- package/dist/internal/components/button-group/button-group.styles.js +10 -0
- package/dist/styles/form-control.styles.js +55 -4
- package/dist/themes/dsa-wc-theme.css +88 -8
- package/dist/themes/dsa-wc-theme.min.css +1 -1
- package/dist/themes/dsa-wc-theme.styles.js +88 -8
- package/dist/utilities/storybook.d.ts +2 -1
- package/dist/utilities/storybook.js +12 -0
- package/dist/vscode.html-custom-data.json +52 -2
- package/dist/web-types.json +146 -7
- package/package.json +2 -2
- package/dist/chunks/chunk.QFJA3MTV.js +0 -66
- package/dist/chunks/chunk.QSNJ4FV6.js +0 -54
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@ds-autonomie/web-components",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.5.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework-config": {
|
|
7
7
|
"enable-when": {
|
|
@@ -512,7 +512,7 @@
|
|
|
512
512
|
"name": "currentTime",
|
|
513
513
|
"description": "Gets and sets the current animation time.",
|
|
514
514
|
"value": {
|
|
515
|
-
"type": "number"
|
|
515
|
+
"type": "number | CSSNumberish"
|
|
516
516
|
}
|
|
517
517
|
},
|
|
518
518
|
{
|
|
@@ -3854,6 +3854,13 @@
|
|
|
3854
3854
|
"type": "boolean"
|
|
3855
3855
|
}
|
|
3856
3856
|
},
|
|
3857
|
+
{
|
|
3858
|
+
"name": "variant",
|
|
3859
|
+
"description": "The icon button's theme variant.",
|
|
3860
|
+
"value": {
|
|
3861
|
+
"type": "| 'default'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'danger'"
|
|
3862
|
+
}
|
|
3863
|
+
},
|
|
3857
3864
|
{
|
|
3858
3865
|
"name": "handleBlur",
|
|
3859
3866
|
"value": {}
|
|
@@ -3949,6 +3956,13 @@
|
|
|
3949
3956
|
"value": {
|
|
3950
3957
|
"type": "boolean"
|
|
3951
3958
|
}
|
|
3959
|
+
},
|
|
3960
|
+
{
|
|
3961
|
+
"name": "variant",
|
|
3962
|
+
"description": "The icon button's theme variant.",
|
|
3963
|
+
"value": {
|
|
3964
|
+
"type": "| 'default'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'danger'"
|
|
3965
|
+
}
|
|
3952
3966
|
}
|
|
3953
3967
|
]
|
|
3954
3968
|
},
|
|
@@ -4206,6 +4220,13 @@
|
|
|
4206
4220
|
"type": "number"
|
|
4207
4221
|
}
|
|
4208
4222
|
},
|
|
4223
|
+
{
|
|
4224
|
+
"name": "counter",
|
|
4225
|
+
"description": "Display the counter if maxlength is provided",
|
|
4226
|
+
"value": {
|
|
4227
|
+
"type": "boolean"
|
|
4228
|
+
}
|
|
4229
|
+
},
|
|
4209
4230
|
{
|
|
4210
4231
|
"name": "min",
|
|
4211
4232
|
"description": "The input's minimum value. Only applies to date and number input types.",
|
|
@@ -4328,6 +4349,10 @@
|
|
|
4328
4349
|
"name": "handlePasswordToggle",
|
|
4329
4350
|
"value": {}
|
|
4330
4351
|
},
|
|
4352
|
+
{
|
|
4353
|
+
"name": "getDescriptionIds",
|
|
4354
|
+
"value": {}
|
|
4355
|
+
},
|
|
4331
4356
|
{
|
|
4332
4357
|
"name": "handleErrorChange",
|
|
4333
4358
|
"value": {}
|
|
@@ -4573,6 +4598,13 @@
|
|
|
4573
4598
|
"type": "number"
|
|
4574
4599
|
}
|
|
4575
4600
|
},
|
|
4601
|
+
{
|
|
4602
|
+
"name": "counter",
|
|
4603
|
+
"description": "Display the counter if maxlength is provided",
|
|
4604
|
+
"value": {
|
|
4605
|
+
"type": "boolean"
|
|
4606
|
+
}
|
|
4607
|
+
},
|
|
4576
4608
|
{
|
|
4577
4609
|
"name": "min",
|
|
4578
4610
|
"description": "The input's minimum value. Only applies to date and number input types.",
|
|
@@ -7977,6 +8009,59 @@
|
|
|
7977
8009
|
}
|
|
7978
8010
|
]
|
|
7979
8011
|
},
|
|
8012
|
+
{
|
|
8013
|
+
"name": "dsa-skip-link-item",
|
|
8014
|
+
"description": "",
|
|
8015
|
+
"js": {
|
|
8016
|
+
"properties": [
|
|
8017
|
+
{
|
|
8018
|
+
"name": "href",
|
|
8019
|
+
"description": "Specifies the URL of the page or the section the link goes to.",
|
|
8020
|
+
"value": {
|
|
8021
|
+
"type": "string"
|
|
8022
|
+
}
|
|
8023
|
+
},
|
|
8024
|
+
{
|
|
8025
|
+
"name": "handleFocus",
|
|
8026
|
+
"value": {}
|
|
8027
|
+
},
|
|
8028
|
+
{
|
|
8029
|
+
"name": "handleBlur",
|
|
8030
|
+
"value": {}
|
|
8031
|
+
}
|
|
8032
|
+
],
|
|
8033
|
+
"events": []
|
|
8034
|
+
},
|
|
8035
|
+
"attributes": [
|
|
8036
|
+
{
|
|
8037
|
+
"name": "href",
|
|
8038
|
+
"description": "Specifies the URL of the page or the section the link goes to.",
|
|
8039
|
+
"value": {
|
|
8040
|
+
"type": "string"
|
|
8041
|
+
}
|
|
8042
|
+
}
|
|
8043
|
+
]
|
|
8044
|
+
},
|
|
8045
|
+
{
|
|
8046
|
+
"name": "dsa-skip-links",
|
|
8047
|
+
"description": "",
|
|
8048
|
+
"js": {
|
|
8049
|
+
"properties": [
|
|
8050
|
+
{
|
|
8051
|
+
"name": "allLinks",
|
|
8052
|
+
"value": {
|
|
8053
|
+
"type": "DSASkipLinkItem[]"
|
|
8054
|
+
}
|
|
8055
|
+
},
|
|
8056
|
+
{
|
|
8057
|
+
"name": "getAllLinks",
|
|
8058
|
+
"value": {}
|
|
8059
|
+
}
|
|
8060
|
+
],
|
|
8061
|
+
"events": []
|
|
8062
|
+
},
|
|
8063
|
+
"attributes": []
|
|
8064
|
+
},
|
|
7980
8065
|
{
|
|
7981
8066
|
"name": "dsa-spinner",
|
|
7982
8067
|
"description": "",
|
|
@@ -8044,7 +8129,14 @@
|
|
|
8044
8129
|
"name": "index",
|
|
8045
8130
|
"description": "Sets the step's index",
|
|
8046
8131
|
"value": {
|
|
8047
|
-
"type": "number"
|
|
8132
|
+
"type": "number | undefined"
|
|
8133
|
+
}
|
|
8134
|
+
},
|
|
8135
|
+
{
|
|
8136
|
+
"name": "vertical",
|
|
8137
|
+
"description": "When set to true, put the step in vertical mode",
|
|
8138
|
+
"value": {
|
|
8139
|
+
"type": "boolean"
|
|
8048
8140
|
}
|
|
8049
8141
|
},
|
|
8050
8142
|
{
|
|
@@ -8080,7 +8172,14 @@
|
|
|
8080
8172
|
"name": "index",
|
|
8081
8173
|
"description": "Sets the step's index",
|
|
8082
8174
|
"value": {
|
|
8083
|
-
"type": "number"
|
|
8175
|
+
"type": "number | undefined"
|
|
8176
|
+
}
|
|
8177
|
+
},
|
|
8178
|
+
{
|
|
8179
|
+
"name": "vertical",
|
|
8180
|
+
"description": "When set to true, put the step in vertical mode",
|
|
8181
|
+
"value": {
|
|
8182
|
+
"type": "boolean"
|
|
8084
8183
|
}
|
|
8085
8184
|
}
|
|
8086
8185
|
]
|
|
@@ -8101,7 +8200,14 @@
|
|
|
8101
8200
|
"name": "hideLabel",
|
|
8102
8201
|
"description": "When set to true, it hides all steps's label.",
|
|
8103
8202
|
"value": {
|
|
8104
|
-
"type": "
|
|
8203
|
+
"type": "boolean"
|
|
8204
|
+
}
|
|
8205
|
+
},
|
|
8206
|
+
{
|
|
8207
|
+
"name": "vertical",
|
|
8208
|
+
"description": "When set to true, put the stepper in vertical mode",
|
|
8209
|
+
"value": {
|
|
8210
|
+
"type": "boolean"
|
|
8105
8211
|
}
|
|
8106
8212
|
},
|
|
8107
8213
|
{
|
|
@@ -8111,16 +8217,31 @@
|
|
|
8111
8217
|
{
|
|
8112
8218
|
"name": "handleDefaultSlotChange",
|
|
8113
8219
|
"value": {}
|
|
8220
|
+
},
|
|
8221
|
+
{
|
|
8222
|
+
"name": "handleHideLabelChange",
|
|
8223
|
+
"value": {}
|
|
8224
|
+
},
|
|
8225
|
+
{
|
|
8226
|
+
"name": "handleVerticalChange",
|
|
8227
|
+
"value": {}
|
|
8114
8228
|
}
|
|
8115
8229
|
],
|
|
8116
8230
|
"events": []
|
|
8117
8231
|
},
|
|
8118
8232
|
"attributes": [
|
|
8119
8233
|
{
|
|
8120
|
-
"name": "
|
|
8234
|
+
"name": "hide-label",
|
|
8121
8235
|
"description": "When set to true, it hides all steps's label.",
|
|
8122
8236
|
"value": {
|
|
8123
|
-
"type": "
|
|
8237
|
+
"type": "boolean"
|
|
8238
|
+
}
|
|
8239
|
+
},
|
|
8240
|
+
{
|
|
8241
|
+
"name": "vertical",
|
|
8242
|
+
"description": "When set to true, put the stepper in vertical mode",
|
|
8243
|
+
"value": {
|
|
8244
|
+
"type": "boolean"
|
|
8124
8245
|
}
|
|
8125
8246
|
}
|
|
8126
8247
|
]
|
|
@@ -8694,6 +8815,13 @@
|
|
|
8694
8815
|
"type": "number"
|
|
8695
8816
|
}
|
|
8696
8817
|
},
|
|
8818
|
+
{
|
|
8819
|
+
"name": "counter",
|
|
8820
|
+
"description": "Display the counter if maxlength is provided",
|
|
8821
|
+
"value": {
|
|
8822
|
+
"type": "boolean"
|
|
8823
|
+
}
|
|
8824
|
+
},
|
|
8697
8825
|
{
|
|
8698
8826
|
"name": "autocapitalize",
|
|
8699
8827
|
"description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
|
|
@@ -8784,6 +8912,10 @@
|
|
|
8784
8912
|
"name": "setTextareaHeight",
|
|
8785
8913
|
"value": {}
|
|
8786
8914
|
},
|
|
8915
|
+
{
|
|
8916
|
+
"name": "getDescriptionIds",
|
|
8917
|
+
"value": {}
|
|
8918
|
+
},
|
|
8787
8919
|
{
|
|
8788
8920
|
"name": "handleErrorChange",
|
|
8789
8921
|
"value": {}
|
|
@@ -9000,6 +9132,13 @@
|
|
|
9000
9132
|
"type": "number"
|
|
9001
9133
|
}
|
|
9002
9134
|
},
|
|
9135
|
+
{
|
|
9136
|
+
"name": "counter",
|
|
9137
|
+
"description": "Display the counter if maxlength is provided",
|
|
9138
|
+
"value": {
|
|
9139
|
+
"type": "boolean"
|
|
9140
|
+
}
|
|
9141
|
+
},
|
|
9003
9142
|
{
|
|
9004
9143
|
"name": "autocapitalize",
|
|
9005
9144
|
"description": "Controls whether and how text input is automatically capitalized as it is entered by the user.",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-autonomie/web-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"author": "CNSA",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"customElements": "dist/custom-elements.json",
|
|
@@ -92,7 +92,7 @@
|
|
|
92
92
|
"user-agent-data-types": "0.3.0",
|
|
93
93
|
"vite": "4.4.9",
|
|
94
94
|
"vite-plugin-turbosnap": "1.0.2",
|
|
95
|
-
"@ds-autonomie/eslint-config": "2.
|
|
95
|
+
"@ds-autonomie/eslint-config": "2.1.0"
|
|
96
96
|
},
|
|
97
97
|
"scripts": {
|
|
98
98
|
"start": "node scripts/build.js --watch",
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
component_styles_default
|
|
3
|
-
} from "./chunk.TUVJKY7S.js";
|
|
4
|
-
|
|
5
|
-
// src/components/icon-button/icon-button.styles.ts
|
|
6
|
-
import { css } from "lit";
|
|
7
|
-
var icon_button_styles_default = css`
|
|
8
|
-
${component_styles_default}
|
|
9
|
-
|
|
10
|
-
:host {
|
|
11
|
-
--padding: var(
|
|
12
|
-
--dsa-wc-internal-icon-button-padding,
|
|
13
|
-
--dsa-wc-icon-button-padding
|
|
14
|
-
);
|
|
15
|
-
display: inline-block;
|
|
16
|
-
color: var(--dsa-wc-icon-button-color);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.icon-button {
|
|
20
|
-
flex: 0 0 auto;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
background: none;
|
|
24
|
-
border: none;
|
|
25
|
-
border-radius: var(--dsa-wc-icon-button-border-radius);
|
|
26
|
-
font-size: inherit;
|
|
27
|
-
color: inherit;
|
|
28
|
-
padding: var(--padding);
|
|
29
|
-
cursor: pointer;
|
|
30
|
-
transition: var(--dsa-wc-transition-x-fast) color;
|
|
31
|
-
-webkit-appearance: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.icon-button--focused:hover,
|
|
35
|
-
.icon-button:hover:not(.icon-button--disabled),
|
|
36
|
-
.icon-button:focus-visible:not(.icon-button--disabled) {
|
|
37
|
-
color: var(--dsa-wc-icon-button-color-hover);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.icon-button:active:not(.icon-button--disabled) {
|
|
41
|
-
color: var(--dsa-wc-icon-button-color-active);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.icon-button:focus {
|
|
45
|
-
outline: none;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.icon-button--disabled {
|
|
49
|
-
color: var(--dsa-wc-icon-button-color-disabled);
|
|
50
|
-
cursor: not-allowed;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.icon-button:focus-visible {
|
|
54
|
-
outline: var(--dsa-wc-focus-ring);
|
|
55
|
-
outline-offset: var(--dsa-wc-focus-ring-offset);
|
|
56
|
-
border-radius: var(--dsa-wc-focus-ring-radius);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.icon-button__icon {
|
|
60
|
-
pointer-events: none;
|
|
61
|
-
}
|
|
62
|
-
`;
|
|
63
|
-
|
|
64
|
-
export {
|
|
65
|
-
icon_button_styles_default
|
|
66
|
-
};
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
stepper_styles_default
|
|
3
|
-
} from "./chunk.2WSMYCPC.js";
|
|
4
|
-
import {
|
|
5
|
-
ShoelaceElement
|
|
6
|
-
} from "./chunk.YCXTCVAZ.js";
|
|
7
|
-
import {
|
|
8
|
-
__decorateClass
|
|
9
|
-
} from "./chunk.6M63UXML.js";
|
|
10
|
-
|
|
11
|
-
// src/components/stepper/stepper.ts
|
|
12
|
-
import { html } from "lit";
|
|
13
|
-
import { customElement, property } from "lit/decorators.js";
|
|
14
|
-
var STEP_TAG = "dsa-step";
|
|
15
|
-
var DSAStepper = class extends ShoelaceElement {
|
|
16
|
-
connectedCallback() {
|
|
17
|
-
super.connectedCallback();
|
|
18
|
-
}
|
|
19
|
-
// Gets an array of all <dsa-step> elements
|
|
20
|
-
getAllSteps() {
|
|
21
|
-
return [...this.querySelectorAll(STEP_TAG)];
|
|
22
|
-
}
|
|
23
|
-
handleDefaultSlotChange() {
|
|
24
|
-
const allSteps = this.getAllSteps();
|
|
25
|
-
if (customElements.get(STEP_TAG)) {
|
|
26
|
-
if (this.hideLabel) {
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
allSteps.forEach((step, index) => {
|
|
30
|
-
step.index = index;
|
|
31
|
-
});
|
|
32
|
-
} else {
|
|
33
|
-
customElements.whenDefined(STEP_TAG).then(() => this.handleDefaultSlotChange());
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
render() {
|
|
37
|
-
return html`
|
|
38
|
-
<div role="list" class="stepper">
|
|
39
|
-
<slot @slotchange=${this.handleDefaultSlotChange}> </slot>
|
|
40
|
-
</div>
|
|
41
|
-
`;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
DSAStepper.styles = stepper_styles_default;
|
|
45
|
-
__decorateClass([
|
|
46
|
-
property()
|
|
47
|
-
], DSAStepper.prototype, "hideLabel", 2);
|
|
48
|
-
DSAStepper = __decorateClass([
|
|
49
|
-
customElement("dsa-stepper")
|
|
50
|
-
], DSAStepper);
|
|
51
|
-
|
|
52
|
-
export {
|
|
53
|
-
DSAStepper
|
|
54
|
-
};
|