@ds-autonomie/web-components 2.3.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/cdn/chunks/{chunk.ERQYJQKU.js → chunk.2P3IVRMK.js} +3 -2
- package/cdn/chunks/{chunk.D2LMY47K.js → chunk.3OSWL542.js} +9 -0
- package/cdn/chunks/{chunk.G7UC5QGP.js → chunk.55Y4QE5R.js} +1 -1
- package/cdn/chunks/{chunk.OMBOQURT.js → chunk.5BWMYJNC.js} +1 -1
- package/{dist/chunks/chunk.6BXZEG5L.js → cdn/chunks/chunk.6YEPFMKU.js} +3 -3
- package/cdn/chunks/{chunk.LYPHJJYB.js → chunk.AATBJDAH.js} +3 -3
- package/cdn/chunks/{chunk.IZ6KYT7R.js → chunk.AVH4JYLK.js} +17 -16
- package/cdn/chunks/{chunk.ZVQQ7DON.js → chunk.EEKS3ZN7.js} +0 -2
- package/cdn/chunks/{chunk.2T2ABKP4.js → chunk.EHSLOI5L.js} +1 -1
- package/cdn/chunks/{chunk.2QGLZHHF.js → chunk.GS6TNOKD.js} +1 -1
- package/cdn/chunks/{chunk.DKFGG7WX.js → chunk.ISEH6AO6.js} +10 -3
- package/cdn/chunks/{chunk.LLZPEDQW.js → chunk.JHXMD4L2.js} +1 -1
- package/cdn/chunks/{chunk.WOKVCL7Q.js → chunk.JIUJNSW6.js} +1 -1
- package/cdn/chunks/{chunk.I4EWJGZZ.js → chunk.KS7QG726.js} +10 -3
- package/cdn/chunks/{chunk.CL4C4BFH.js → chunk.LBM4RHMA.js} +2 -0
- package/cdn/chunks/{chunk.74QWC4UR.js → chunk.M53HNM5Y.js} +9 -8
- package/cdn/chunks/{chunk.DNQJR4KR.js → chunk.OMPBUYUW.js} +1 -3
- package/cdn/chunks/{chunk.WE7BT7PI.js → chunk.QEPPYDSN.js} +1 -1
- package/cdn/chunks/{chunk.5AKIIMXP.js → chunk.RJUKDJQG.js} +6 -1
- package/cdn/chunks/{chunk.YWD53U3T.js → chunk.S3G2QBTA.js} +3 -3
- package/cdn/chunks/{chunk.ITHTXYNC.js → chunk.TGMW5D2F.js} +1 -0
- package/cdn/chunks/{chunk.SF3YU6PZ.js → chunk.TOWWOPMH.js} +0 -3
- package/cdn/chunks/{chunk.WCF4VYWI.js → chunk.VZPL3NCB.js} +3 -3
- package/cdn/chunks/{chunk.PQYUBPRU.js → chunk.W6N2ZQTH.js} +3 -2
- package/cdn/chunks/{chunk.CKDGFB52.js → chunk.WYBADVDH.js} +22 -16
- package/cdn/chunks/{core-js.JQALWJRI.js → core-js.TKFIM466.js} +1 -1
- package/cdn/chunks/{dom.47DVCSJV.js → dom.6JFLMPA6.js} +1 -1
- package/cdn/chunks/{wc-datepicker.entry.XBA7YLCU.js → wc-datepicker.entry.Y6YDPVTT.js} +3 -3
- package/cdn/components/calendar/calendar.js +3 -3
- package/cdn/components/checkbox-card/checkbox-card.js +1 -1
- package/cdn/components/combobox/combobox.js +3 -3
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/file-upload/file-upload.js +1 -1
- package/cdn/components/file-upload-item/file-upload-item.js +2 -1
- package/cdn/components/filter-base/filter-base.js +1 -1
- package/cdn/components/filter-counter/filter-counter.js +10 -10
- package/cdn/components/filter-date/filter-date.js +6 -6
- package/cdn/components/filter-range/filter-range.js +10 -10
- package/cdn/components/filter-select/filter-select.js +11 -11
- package/cdn/components/input/input.js +10 -10
- package/cdn/components/input-date/input-date.js +7 -7
- package/cdn/components/input-mask/input-mask.js +2 -2
- package/cdn/components/input-otp/input-otp.js +2 -2
- package/cdn/components/input-phone/input-phone.js +4 -4
- package/cdn/components/input-time/input-time.js +4 -4
- package/cdn/components/input-time/input-time.styles.js +1 -1
- package/cdn/components/menu-item/menu-item.js +1 -1
- package/cdn/components/navbar-menu/navbar-menu.js +1 -1
- package/cdn/components/pagination/pagination.js +11 -11
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/profile-button/profile-button.js +1 -1
- package/cdn/components/progress-bar/progress-bar.d.ts +1 -1
- package/cdn/components/progress-ring/progress-ring.d.ts +2 -2
- package/cdn/components/progress-ring/progress-ring.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-card/radio-card.js +1 -1
- package/cdn/components/select/select.js +3 -3
- package/cdn/components/table-of-contents/table-of-contents.js +1 -1
- package/cdn/components/textarea/textarea.js +2 -2
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/custom-elements.json +171 -170
- package/cdn/design-system.js +25 -25
- package/cdn/internal/components/date-field/date-field.js +16 -13
- package/cdn/internal/components/form-control/form-control-layout.d.ts +0 -1
- package/cdn/internal/components/form-control/form-control-layout.js +0 -3
- package/cdn/internal/components/radio-icon/radio-icon.styles.js +9 -0
- package/cdn/utilities/date.js +1 -1
- package/cdn/vscode.html-custom-data.json +28 -28
- package/cdn/web-types.json +79 -79
- package/dist/chunks/{chunk.XDEXZL3R.js → chunk.2BZBH3CX.js} +9 -0
- package/dist/chunks/{chunk.I2PWWNDZ.js → chunk.2KECVLQH.js} +3 -3
- package/dist/chunks/{chunk.Z2YO6E64.js → chunk.2YE5HPSL.js} +4 -3
- package/dist/chunks/{chunk.P5DC3N5P.js → chunk.3JLROK74.js} +22 -16
- package/dist/chunks/{chunk.CN6TUCPE.js → chunk.4C3EA7WT.js} +1 -1
- package/dist/chunks/{chunk.UL2XNE5X.js → chunk.4YOAT5R7.js} +1 -1
- package/dist/chunks/{chunk.52V3WTR3.js → chunk.52CUBOF2.js} +1 -1
- package/dist/chunks/{chunk.D6SKE3AF.js → chunk.6UCJKKYR.js} +1 -1
- package/{cdn/chunks/chunk.6BXZEG5L.js → dist/chunks/chunk.6YEPFMKU.js} +3 -3
- package/dist/chunks/{chunk.GGBIEJ25.js → chunk.7BE555XS.js} +1 -1
- package/dist/chunks/{chunk.DLACE2NU.js → chunk.BALZ7HK5.js} +2 -0
- package/dist/chunks/{chunk.AFRAGNLK.js → chunk.GZO5TQGU.js} +3 -2
- package/dist/chunks/{chunk.L2EOSD7N.js → chunk.IHTWK22H.js} +1 -3
- package/dist/chunks/{chunk.WELYJWNG.js → chunk.JNZTWND7.js} +6 -1
- package/dist/chunks/{chunk.BQEHELQ5.js → chunk.KGZLC7FO.js} +1 -0
- package/dist/chunks/{chunk.7YIOE3D2.js → chunk.KQJQQDCQ.js} +3 -2
- package/dist/chunks/{chunk.5EBCNG2J.js → chunk.LGDM46D4.js} +0 -3
- package/dist/chunks/{chunk.4P7DDUA4.js → chunk.NHPMJYPM.js} +4 -1
- package/dist/chunks/{chunk.GW2MJTCT.js → chunk.RCN745RS.js} +1 -1
- package/dist/chunks/{chunk.KQ224IDT.js → chunk.SP5JKDHH.js} +0 -2
- package/dist/chunks/{chunk.IDGKF6AP.js → chunk.THO67JP2.js} +1 -1
- package/dist/chunks/{chunk.O4WGPUE5.js → chunk.UJAK75R6.js} +3 -3
- package/dist/chunks/{chunk.B4SMUSVU.js → chunk.XE37RME4.js} +17 -16
- package/dist/components/calendar/calendar.js +2 -2
- package/dist/components/checkbox-card/checkbox-card.js +1 -1
- package/dist/components/combobox/combobox.js +2 -2
- package/dist/components/file-upload/file-upload.js +1 -1
- package/dist/components/file-upload-item/file-upload-item.js +1 -1
- package/dist/components/filter-counter/filter-counter.js +8 -8
- package/dist/components/filter-date/filter-date.js +4 -4
- package/dist/components/filter-range/filter-range.js +8 -8
- package/dist/components/filter-select/filter-select.js +9 -9
- package/dist/components/input/input.js +8 -8
- package/dist/components/input-date/input-date.js +5 -5
- package/dist/components/input-mask/input-mask.js +2 -2
- package/dist/components/input-otp/input-otp.js +2 -2
- package/dist/components/input-phone/input-phone.js +3 -3
- package/dist/components/input-time/input-time.js +3 -3
- package/dist/components/input-time/input-time.styles.js +1 -1
- package/dist/components/menu-item/menu-item.js +1 -1
- package/dist/components/pagination/pagination.js +9 -9
- package/dist/components/progress-bar/progress-bar.d.ts +1 -1
- package/dist/components/progress-ring/progress-ring.d.ts +2 -2
- package/dist/components/progress-ring/progress-ring.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-card/radio-card.js +1 -1
- package/dist/components/select/select.js +2 -2
- package/dist/components/table-of-contents/table-of-contents.js +1 -1
- package/dist/components/textarea/textarea.js +2 -2
- package/dist/custom-elements.json +171 -170
- package/dist/design-system.js +23 -23
- package/dist/internal/components/date-field/date-field.js +16 -13
- package/dist/internal/components/form-control/form-control-layout.d.ts +0 -1
- package/dist/internal/components/form-control/form-control-layout.js +0 -3
- package/dist/internal/components/radio-icon/radio-icon.styles.js +9 -0
- package/dist/utilities/date.js +1 -1
- package/dist/vscode.html-custom-data.json +28 -28
- package/dist/web-types.json +79 -79
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @ds-autonomie/web-components
|
|
2
2
|
|
|
3
|
+
## 2.3.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a10fedd: `tree-item`, `progress-circle`, `table-of-contents` : amélioration du cycle de vie
|
|
8
|
+
- 1810325: `input` : résolution du bug du type="date" avec les fuseaux horaires
|
|
9
|
+
- 4678044: `radio` : amélioration de l'affichage en mode contraste élevé
|
|
10
|
+
- 98a161a: Mise à jour des dépendances
|
|
11
|
+
- de9d030: `input-time`: retrait de la scrollbar verticale sur la page
|
|
12
|
+
|
|
3
13
|
## 2.3.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSASelect
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.QEPPYDSN.js";
|
|
4
4
|
import {
|
|
5
5
|
getPhoneConfig
|
|
6
6
|
} from "./chunk.65HTBW2L.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk.7OLEA3GQ.js";
|
|
19
19
|
import {
|
|
20
20
|
FormControlLayout
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.TOWWOPMH.js";
|
|
22
22
|
import {
|
|
23
23
|
l
|
|
24
24
|
} from "./chunk.7PPSHHT2.js";
|
|
@@ -377,6 +377,7 @@ var DSAInputPhone = class extends FormControlLayout {
|
|
|
377
377
|
name=${ifDefinedAndNotEmpty(this.name)}
|
|
378
378
|
?disabled=${this.disabled}
|
|
379
379
|
?readonly=${this.readonly}
|
|
380
|
+
aria-disabled=${o(this.readonly ? "true" : void 0)}
|
|
380
381
|
?required=${this.required}
|
|
381
382
|
minlength=${o(this.placeholder.length)}
|
|
382
383
|
maxlength=${o(this.placeholder.length)}
|
|
@@ -101,6 +101,15 @@ var radio_icon_styles_default = i`
|
|
|
101
101
|
border-color: var(--dsa-wc-radio-border-color-readonly);
|
|
102
102
|
background-color: var(--dsa-wc-radio-color-readonly);
|
|
103
103
|
}
|
|
104
|
+
|
|
105
|
+
@media (forced-colors: active) {
|
|
106
|
+
.radio__control--checked {
|
|
107
|
+
border-color: Highlight;
|
|
108
|
+
}
|
|
109
|
+
.radio__control--checked .radio__inner {
|
|
110
|
+
background-color: Highlight;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
104
113
|
`;
|
|
105
114
|
|
|
106
115
|
// src/internal/components/radio-icon/radio-icon.ts
|
|
@@ -20,7 +20,7 @@ function getLocaleDateFromISO(isoDate, lang) {
|
|
|
20
20
|
if (isoDate === "") {
|
|
21
21
|
return "";
|
|
22
22
|
} else {
|
|
23
|
-
return
|
|
23
|
+
return getDateFromISO(isoDate).toLocaleDateString(lang !== "" ? lang : "");
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
function isISODate(date) {
|
|
@@ -29,7 +29,7 @@ function isISODate(date) {
|
|
|
29
29
|
}
|
|
30
30
|
function isValidDate(isoDate) {
|
|
31
31
|
const [year, month, day] = isoDate.split("-");
|
|
32
|
-
const d = new Date(
|
|
32
|
+
const d = new Date(Number(year), Number(month) - 1, Number(day));
|
|
33
33
|
d.setUTCFullYear(Number(year));
|
|
34
34
|
if ([year, month, day].includes("")) {
|
|
35
35
|
return false;
|
|
@@ -50,7 +50,7 @@ function getISOFormattedDate(date) {
|
|
|
50
50
|
}
|
|
51
51
|
function getDateFromISO(isoDate) {
|
|
52
52
|
const [year, month, day] = isoDate.split("-");
|
|
53
|
-
const date = new Date(
|
|
53
|
+
const date = new Date(Number(year), Number(month) - 1, Number(day));
|
|
54
54
|
date.setUTCFullYear(Number(year));
|
|
55
55
|
return date;
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DSAInputTime
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.W6N2ZQTH.js";
|
|
4
4
|
import {
|
|
5
5
|
big_default,
|
|
6
6
|
getOverridenIconDetails,
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./chunk.EF2VOGBL.js";
|
|
13
13
|
import {
|
|
14
14
|
DSAInputDate
|
|
15
|
-
} from "./chunk.
|
|
15
|
+
} from "./chunk.WYBADVDH.js";
|
|
16
16
|
import {
|
|
17
17
|
input_styles_default
|
|
18
18
|
} from "./chunk.T56ZOKTF.js";
|
|
19
19
|
import {
|
|
20
20
|
FormControlLayout
|
|
21
|
-
} from "./chunk.
|
|
21
|
+
} from "./chunk.TOWWOPMH.js";
|
|
22
22
|
import {
|
|
23
23
|
l
|
|
24
24
|
} from "./chunk.7PPSHHT2.js";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
+
getDateFromISO,
|
|
2
3
|
isValidDate,
|
|
3
4
|
monthLength
|
|
4
|
-
} from "./chunk.
|
|
5
|
+
} from "./chunk.6YEPFMKU.js";
|
|
5
6
|
import {
|
|
6
7
|
l
|
|
7
8
|
} from "./chunk.7PPSHHT2.js";
|
|
@@ -226,14 +227,14 @@ var DSAInternalDateField = class extends ShoelaceElement {
|
|
|
226
227
|
}
|
|
227
228
|
handleChange() {
|
|
228
229
|
const previousValue = this.value;
|
|
229
|
-
|
|
230
|
-
const
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
this.selectedDay = this.dayInput.max;
|
|
230
|
+
let tempSelectedDay = this.dayInput.value;
|
|
231
|
+
const tempSelectedMonth = this.monthInput.value;
|
|
232
|
+
const tempSelectedYear = this.yearInput.value;
|
|
233
|
+
if (tempSelectedDay > this.dayInput.max) {
|
|
234
|
+
tempSelectedDay = this.dayInput.max;
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
const tentativeDate = `${tempSelectedYear}-${tempSelectedMonth}-${tempSelectedDay}`;
|
|
237
|
+
if (tempSelectedDay === "" && tempSelectedMonth === "" && tempSelectedYear === "") {
|
|
237
238
|
this.setCustomValidity("");
|
|
238
239
|
this.value = "";
|
|
239
240
|
} else if (!isValidDate(tentativeDate)) {
|
|
@@ -360,15 +361,14 @@ var DSAInternalDateField = class extends ShoelaceElement {
|
|
|
360
361
|
this.selectedMonth = "";
|
|
361
362
|
this.selectedYear = "";
|
|
362
363
|
} else {
|
|
363
|
-
this.selectedDay = `${
|
|
364
|
-
this.selectedMonth = `${new Date(this.value).getMonth() + 1}`.padStart(
|
|
364
|
+
this.selectedDay = `${getDateFromISO(this.value).getDate()}`.padStart(
|
|
365
365
|
2,
|
|
366
366
|
"0"
|
|
367
367
|
);
|
|
368
|
-
this.
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
);
|
|
368
|
+
this.selectedMonth = `${getDateFromISO(this.value).getMonth() + 1}`.padStart(2, "0");
|
|
369
|
+
this.selectedYear = `${getDateFromISO(
|
|
370
|
+
this.value
|
|
371
|
+
).getFullYear()}`.padStart(4, "0");
|
|
372
372
|
}
|
|
373
373
|
await this.updateComplete;
|
|
374
374
|
this.setCustomValidity("");
|
|
@@ -420,14 +420,15 @@ var DSAInternalDateField = class extends ShoelaceElement {
|
|
|
420
420
|
this.formControlController.updateValidity();
|
|
421
421
|
}
|
|
422
422
|
renderSpinbutton(part) {
|
|
423
|
+
var _a, _b;
|
|
423
424
|
let className = "";
|
|
424
425
|
let ariaLabel = "";
|
|
425
426
|
let min = 1;
|
|
426
427
|
let max;
|
|
427
428
|
let placeholder;
|
|
428
429
|
let value;
|
|
429
|
-
const minDate =
|
|
430
|
-
const maxDate =
|
|
430
|
+
const minDate = getDateFromISO((_a = this.min) != null ? _a : "");
|
|
431
|
+
const maxDate = getDateFromISO((_b = this.max) != null ? _b : "");
|
|
431
432
|
const minYear = this.min ? minDate.getFullYear() : 1900;
|
|
432
433
|
const maxYear = this.max ? maxDate.getFullYear() : 2500;
|
|
433
434
|
const minMonth = minYear === maxYear ? minDate.getMonth() + 1 : 1;
|
|
@@ -64,8 +64,6 @@ var DSATableOfContents = class extends ShoelaceElement {
|
|
|
64
64
|
document.removeEventListener("mousedown", this.handleDocumentMouseDown);
|
|
65
65
|
}
|
|
66
66
|
async firstUpdated() {
|
|
67
|
-
this.allLinks = this.cloneSlottedLinks();
|
|
68
|
-
this.updateCurrentSection();
|
|
69
67
|
this.observeAttributeChanges();
|
|
70
68
|
if (this.mobile) {
|
|
71
69
|
this.content.hidden = !this.open;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
-
o
|
|
2
|
+
o as o2
|
|
3
3
|
} from "./chunk.6OFBSNBH.js";
|
|
4
4
|
import {
|
|
5
5
|
file_upload_item_styles_default
|
|
@@ -10,6 +10,9 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
LocalizeController
|
|
12
12
|
} from "./chunk.CAMVBH5H.js";
|
|
13
|
+
import {
|
|
14
|
+
o
|
|
15
|
+
} from "./chunk.YQLIIKLI.js";
|
|
13
16
|
import {
|
|
14
17
|
e
|
|
15
18
|
} from "./chunk.IKHG7XGO.js";
|
|
@@ -62,7 +65,11 @@ var DSAFileUploadItem = class extends ShoelaceElement {
|
|
|
62
65
|
"file-item-container--large": this.size === "large"
|
|
63
66
|
})}
|
|
64
67
|
>
|
|
65
|
-
<article
|
|
68
|
+
<article
|
|
69
|
+
part="file-item"
|
|
70
|
+
aria-describedby="error-text"
|
|
71
|
+
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
72
|
+
>
|
|
66
73
|
<slot part="label" @slotchange=${this.handleDefaultSlotChange}></slot>
|
|
67
74
|
<slot
|
|
68
75
|
part="upload-indicator"
|
|
@@ -95,7 +102,7 @@ var DSAFileUploadItem = class extends ShoelaceElement {
|
|
|
95
102
|
>
|
|
96
103
|
<div
|
|
97
104
|
part="progress-bar-indicator"
|
|
98
|
-
style=${
|
|
105
|
+
style=${o2({ width: `${(_a = this.uploadProgress) != null ? _a : 0}%` })}
|
|
99
106
|
></div>
|
|
100
107
|
</div>
|
|
101
108
|
</article>
|
|
@@ -324,7 +324,7 @@ __decorateClass([
|
|
|
324
324
|
n({ attribute: "navigation-type" })
|
|
325
325
|
], DSAPagination.prototype, "navigationType", 2);
|
|
326
326
|
__decorateClass([
|
|
327
|
-
n({ type: Boolean })
|
|
327
|
+
n({ type: Boolean, reflect: true })
|
|
328
328
|
], DSAPagination.prototype, "compact", 2);
|
|
329
329
|
__decorateClass([
|
|
330
330
|
n({ type: Boolean })
|
|
@@ -875,7 +875,7 @@ function getFrameElement(win) {
|
|
|
875
875
|
return win.parent && Object.getPrototypeOf(win.parent) ? win.frameElement : null;
|
|
876
876
|
}
|
|
877
877
|
|
|
878
|
-
// ../../node_modules/.pnpm/@floating-ui+dom@1.6.
|
|
878
|
+
// ../../node_modules/.pnpm/@floating-ui+dom@1.6.13/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
879
879
|
function getCssDimensions(element) {
|
|
880
880
|
const css = getComputedStyle2(element);
|
|
881
881
|
let width = parseFloat(css.width) || 0;
|
|
@@ -1303,6 +1303,9 @@ var platform = {
|
|
|
1303
1303
|
isElement,
|
|
1304
1304
|
isRTL
|
|
1305
1305
|
};
|
|
1306
|
+
function rectsAreEqual(a, b) {
|
|
1307
|
+
return a.x === b.x && a.y === b.y && a.width === b.width && a.height === b.height;
|
|
1308
|
+
}
|
|
1306
1309
|
function observeMove(element, onMove) {
|
|
1307
1310
|
let io = null;
|
|
1308
1311
|
let timeoutId;
|
|
@@ -1321,12 +1324,13 @@ function observeMove(element, onMove) {
|
|
|
1321
1324
|
threshold = 1;
|
|
1322
1325
|
}
|
|
1323
1326
|
cleanup();
|
|
1327
|
+
const elementRectForRootMargin = element.getBoundingClientRect();
|
|
1324
1328
|
const {
|
|
1325
1329
|
left,
|
|
1326
1330
|
top,
|
|
1327
1331
|
width,
|
|
1328
1332
|
height
|
|
1329
|
-
} =
|
|
1333
|
+
} = elementRectForRootMargin;
|
|
1330
1334
|
if (!skip) {
|
|
1331
1335
|
onMove();
|
|
1332
1336
|
}
|
|
@@ -1357,6 +1361,9 @@ function observeMove(element, onMove) {
|
|
|
1357
1361
|
refresh(false, ratio);
|
|
1358
1362
|
}
|
|
1359
1363
|
}
|
|
1364
|
+
if (ratio === 1 && !rectsAreEqual(elementRectForRootMargin, element.getBoundingClientRect())) {
|
|
1365
|
+
refresh();
|
|
1366
|
+
}
|
|
1360
1367
|
isFirstUpdate = false;
|
|
1361
1368
|
}
|
|
1362
1369
|
try {
|
|
@@ -1419,7 +1426,7 @@ function autoUpdate(reference, floating, update, options) {
|
|
|
1419
1426
|
}
|
|
1420
1427
|
function frameLoop() {
|
|
1421
1428
|
const nextRefRect = getBoundingClientRect(reference);
|
|
1422
|
-
if (prevRefRect && (
|
|
1429
|
+
if (prevRefRect && !rectsAreEqual(prevRefRect, nextRefRect)) {
|
|
1423
1430
|
update();
|
|
1424
1431
|
}
|
|
1425
1432
|
prevRefRect = nextRefRect;
|
|
@@ -171,6 +171,8 @@ var DSAFileUpload = class extends ShoelaceElement {
|
|
|
171
171
|
})}
|
|
172
172
|
?disabled=${this.disabled}
|
|
173
173
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
174
|
+
aria-required=${o(this.required ? "true" : void 0)}
|
|
175
|
+
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
174
176
|
tabindex=${this.disabled ? "-1" : "0"}
|
|
175
177
|
aria-describedby=${this.error ? "error-text description help-text slot_files" : "description help-text slot_files"}
|
|
176
178
|
@click=${this.handleClick}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bootstrapLazy,
|
|
3
3
|
promiseResolve
|
|
4
|
-
} from "./chunk.
|
|
4
|
+
} from "./chunk.VZPL3NCB.js";
|
|
5
5
|
import {
|
|
6
|
+
getDateFromISO,
|
|
6
7
|
getISOFormattedDate
|
|
7
|
-
} from "./chunk.
|
|
8
|
+
} from "./chunk.6YEPFMKU.js";
|
|
8
9
|
import {
|
|
9
10
|
calendar_styles_default
|
|
10
11
|
} from "./chunk.WOGTGKIT.js";
|
|
@@ -1989,7 +1990,7 @@ var flush = () => {
|
|
|
1989
1990
|
var nextTick = (cb) => promiseResolve2().then(cb);
|
|
1990
1991
|
var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
|
|
1991
1992
|
|
|
1992
|
-
// ../../node_modules/.pnpm/wc-datepicker@0.
|
|
1993
|
+
// ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/components/wc-datepicker.js
|
|
1993
1994
|
function addDays(date, days) {
|
|
1994
1995
|
const newDate = new Date(date);
|
|
1995
1996
|
newDate.setDate(newDate.getDate() + days);
|
|
@@ -2508,7 +2509,7 @@ var WCDatepicker = /* @__PURE__ */ proxyCustomElement(class extends H {
|
|
|
2508
2509
|
[this.getClassName("date--end")]: isEnd
|
|
2509
2510
|
};
|
|
2510
2511
|
const Tag = isSelected ? "strong" : isToday ? "em" : "span";
|
|
2511
|
-
return h("td", { "aria-disabled": String(isDisabled), "aria-selected": isSelected ? "true" : void 0, class: className, "data-date": getISODateString(day), key: cellKey, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: isSameDay(day, this.currentDate) && !isDisabled && !this.disabled ? 0 : -1 }, h(Tag, { "aria-hidden": "true" }, day.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
|
|
2512
|
+
return h("td", { "aria-disabled": String(isDisabled), "aria-selected": isSelected ? "true" : void 0, "aria-current": isToday ? "date" : void 0, class: className, "data-date": getISODateString(day), key: cellKey, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: isSameDay(day, this.currentDate) && !isDisabled && !this.disabled ? 0 : -1 }, h(Tag, { "aria-hidden": "true" }, day.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
|
|
2512
2513
|
day: "numeric",
|
|
2513
2514
|
month: "long"
|
|
2514
2515
|
}).format(day)));
|
|
@@ -2557,7 +2558,7 @@ var WCDatepicker = /* @__PURE__ */ proxyCustomElement(class extends H {
|
|
|
2557
2558
|
}]);
|
|
2558
2559
|
var WcDatepicker = WCDatepicker;
|
|
2559
2560
|
|
|
2560
|
-
// ../../node_modules/.pnpm/wc-datepicker@0.
|
|
2561
|
+
// ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/esm/loader.js
|
|
2561
2562
|
var patchEsm = () => {
|
|
2562
2563
|
return promiseResolve();
|
|
2563
2564
|
};
|
|
@@ -2568,7 +2569,7 @@ var defineCustomElements = (win2, options) => {
|
|
|
2568
2569
|
});
|
|
2569
2570
|
};
|
|
2570
2571
|
|
|
2571
|
-
// ../../node_modules/.pnpm/wc-datepicker@0.
|
|
2572
|
+
// ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/loader/index.js
|
|
2572
2573
|
(function() {
|
|
2573
2574
|
if ("undefined" !== typeof window && void 0 !== window.Reflect && void 0 !== window.customElements) {
|
|
2574
2575
|
var a = HTMLElement;
|
|
@@ -2609,14 +2610,14 @@ var DSACalendar = class extends ShoelaceElement {
|
|
|
2609
2610
|
if (this.value === "") {
|
|
2610
2611
|
return [];
|
|
2611
2612
|
}
|
|
2612
|
-
return this.value.split(",").filter((dateString) => dateString !== "").map((dateString) =>
|
|
2613
|
+
return this.value.split(",").filter((dateString) => dateString !== "").map((dateString) => getDateFromISO(dateString));
|
|
2613
2614
|
}
|
|
2614
2615
|
handleDateSelection(event) {
|
|
2615
2616
|
const { detail } = event;
|
|
2616
2617
|
if (detail === void 0) {
|
|
2617
2618
|
return;
|
|
2618
2619
|
}
|
|
2619
|
-
const dates = Array.isArray(detail) ? detail.map((dateString) =>
|
|
2620
|
+
const dates = Array.isArray(detail) ? detail.map((dateString) => getDateFromISO(dateString)) : [getDateFromISO(detail)];
|
|
2620
2621
|
this.emit("dsa-date-selected", { detail: { dates } });
|
|
2621
2622
|
}
|
|
2622
2623
|
handleMonthSelection(event) {
|
|
@@ -105,9 +105,7 @@ var DSAMenuItem = class extends ShoelaceElement {
|
|
|
105
105
|
aria-current=${o(
|
|
106
106
|
this.type === "link" ? this.current : void 0
|
|
107
107
|
)}
|
|
108
|
-
tabindex=${o(
|
|
109
|
-
["button", "link"].includes(this.type) && this.disabled ? "-1" : void 0
|
|
110
|
-
)}
|
|
108
|
+
tabindex=${o(this.disabled ? "-1" : void 0)}
|
|
111
109
|
|
|
112
110
|
>
|
|
113
111
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.O4MZVDWB.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlLayout
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.TOWWOPMH.js";
|
|
7
7
|
import {
|
|
8
8
|
combobox_styles_default
|
|
9
9
|
} from "./chunk.7FRA5H32.js";
|
|
@@ -36,6 +36,9 @@ import {
|
|
|
36
36
|
import {
|
|
37
37
|
ifDefinedAndNotEmpty
|
|
38
38
|
} from "./chunk.B6GVVW66.js";
|
|
39
|
+
import {
|
|
40
|
+
o
|
|
41
|
+
} from "./chunk.YQLIIKLI.js";
|
|
39
42
|
import {
|
|
40
43
|
e as e2
|
|
41
44
|
} from "./chunk.IKHG7XGO.js";
|
|
@@ -651,6 +654,8 @@ var DSACombobox = class extends FormControlLayout {
|
|
|
651
654
|
aria-disabled=${isDisabledOrReadonly ? "true" : "false"}
|
|
652
655
|
aria-describedby=${ariaDescribedBy}
|
|
653
656
|
aria-activedescendant=${(_b = (_a = this.currentOption) == null ? void 0 : _a.id) != null ? _b : ""}
|
|
657
|
+
aria-invalid=${o(this.error ? "true" : void 0)}
|
|
658
|
+
aria-required=${o(this.required ? "true" : void 0)}
|
|
654
659
|
role="combobox"
|
|
655
660
|
tabindex="0"
|
|
656
661
|
@change=${this.handleChange}
|
|
@@ -29,9 +29,9 @@ var DSAProgressRing = class extends ShoelaceElement {
|
|
|
29
29
|
this.label = "";
|
|
30
30
|
this.size = "medium";
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
super.
|
|
34
|
-
if (
|
|
32
|
+
requestUpdate(name, oldValue, options) {
|
|
33
|
+
super.requestUpdate(name, oldValue, options);
|
|
34
|
+
if (name === "value" && this.indicator) {
|
|
35
35
|
const radius = parseFloat(
|
|
36
36
|
getComputedStyle(this.indicator).getPropertyValue("r")
|
|
37
37
|
);
|
|
@@ -137,9 +137,6 @@ __decorateClass([
|
|
|
137
137
|
__decorateClass([
|
|
138
138
|
n({ type: Boolean, reflect: true })
|
|
139
139
|
], FormControlLayout.prototype, "disabled", 2);
|
|
140
|
-
__decorateClass([
|
|
141
|
-
n()
|
|
142
|
-
], FormControlLayout.prototype, "lang", 2);
|
|
143
140
|
__decorateClass([
|
|
144
141
|
n()
|
|
145
142
|
], FormControlLayout.prototype, "placeholder", 2);
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
__glob
|
|
3
3
|
} from "./chunk.4ZGVANML.js";
|
|
4
4
|
|
|
5
|
-
// import("./**/*.entry.js") in ../../node_modules/.pnpm/wc-datepicker@0.
|
|
5
|
+
// import("./**/*.entry.js") in ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/esm/index-2c898150.js
|
|
6
6
|
var globImport_entry_js = __glob({
|
|
7
|
-
"./wc-datepicker.entry.js": () => import("./wc-datepicker.entry.
|
|
7
|
+
"./wc-datepicker.entry.js": () => import("./wc-datepicker.entry.Y6YDPVTT.js")
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/wc-datepicker@0.
|
|
10
|
+
// ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/esm/index-2c898150.js
|
|
11
11
|
var NAMESPACE = "wc-datepicker";
|
|
12
12
|
var scopeId;
|
|
13
13
|
var isSvgMode = false;
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
} from "./chunk.IONY2GZF.js";
|
|
6
6
|
import {
|
|
7
7
|
input_time_styles_default
|
|
8
|
-
} from "./chunk.
|
|
8
|
+
} from "./chunk.TGMW5D2F.js";
|
|
9
9
|
import {
|
|
10
10
|
FormControlLayout
|
|
11
|
-
} from "./chunk.
|
|
11
|
+
} from "./chunk.TOWWOPMH.js";
|
|
12
12
|
import {
|
|
13
13
|
scrollIntoView
|
|
14
14
|
} from "./chunk.EMIT7S33.js";
|
|
@@ -444,6 +444,7 @@ var DSAInputTime = class extends FormControlLayout {
|
|
|
444
444
|
class="time-popup--unit-container"
|
|
445
445
|
role="listbox"
|
|
446
446
|
aria-label=${this.localize.term(unitType, "")}
|
|
447
|
+
tabindex="-1"
|
|
447
448
|
>
|
|
448
449
|
${valuesArray.map(
|
|
449
450
|
(value) => x`
|
|
@@ -3,11 +3,11 @@ import {
|
|
|
3
3
|
} from "./chunk.DDRUVCZW.js";
|
|
4
4
|
import {
|
|
5
5
|
FormControlLayout
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.TOWWOPMH.js";
|
|
7
7
|
import {
|
|
8
8
|
getDateFromISO,
|
|
9
9
|
getISOFormattedDate
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.6YEPFMKU.js";
|
|
11
11
|
import {
|
|
12
12
|
defaultValue
|
|
13
13
|
} from "./chunk.YY5FKN3H.js";
|
|
@@ -181,13 +181,16 @@ var DSAInputDate = class extends FormControlLayout {
|
|
|
181
181
|
}
|
|
182
182
|
getDateFieldDescription() {
|
|
183
183
|
const errorMessage = typeof this.errorMessage === "string" ? this.errorMessage : this.errorMessage.join(", ");
|
|
184
|
-
const selectedDateLabel = `${this.localize.term(
|
|
185
|
-
|
|
186
|
-
)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
184
|
+
const selectedDateLabel = `${this.localize.term(
|
|
185
|
+
"selectedDate"
|
|
186
|
+
)}${getDateFromISO(this.value).toLocaleDateString(
|
|
187
|
+
this.lang || this.localize.lang(),
|
|
188
|
+
{
|
|
189
|
+
year: "numeric",
|
|
190
|
+
month: "long",
|
|
191
|
+
day: "numeric"
|
|
192
|
+
}
|
|
193
|
+
)}`;
|
|
191
194
|
const descriptions = [
|
|
192
195
|
...this.error ? [errorMessage] : [],
|
|
193
196
|
...this.value ? [selectedDateLabel] : [],
|
|
@@ -284,13 +287,16 @@ var DSAInputDate = class extends FormControlLayout {
|
|
|
284
287
|
var _a, _b;
|
|
285
288
|
const hasPrefixIcon = this.hasSlotController.test("prefix");
|
|
286
289
|
const hasClearIcon = this.clearable && !this.disabled && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
287
|
-
const selectedDateLabel = `${this.localize.term(
|
|
288
|
-
|
|
289
|
-
)
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
290
|
+
const selectedDateLabel = `${this.localize.term(
|
|
291
|
+
"selectedDate"
|
|
292
|
+
)}${getDateFromISO(this.value).toLocaleDateString(
|
|
293
|
+
this.lang || this.localize.lang(),
|
|
294
|
+
{
|
|
295
|
+
year: "numeric",
|
|
296
|
+
month: "long",
|
|
297
|
+
day: "numeric"
|
|
298
|
+
}
|
|
299
|
+
)}`;
|
|
294
300
|
return x`
|
|
295
301
|
<div
|
|
296
302
|
part="base"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/.pnpm/wc-datepicker@0.
|
|
1
|
+
// ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/esm/polyfills/dom.js
|
|
2
2
|
(function() {
|
|
3
3
|
"use strict";
|
|
4
4
|
var aa = new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
getElement,
|
|
5
5
|
h,
|
|
6
6
|
registerInstance
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.VZPL3NCB.js";
|
|
8
8
|
import "./chunk.4ZGVANML.js";
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/wc-datepicker@0.
|
|
10
|
+
// ../../node_modules/.pnpm/wc-datepicker@0.7.0/node_modules/wc-datepicker/dist/esm/wc-datepicker.entry.js
|
|
11
11
|
function addDays(date, days) {
|
|
12
12
|
const newDate = new Date(date);
|
|
13
13
|
newDate.setDate(newDate.getDate() + days);
|
|
@@ -525,7 +525,7 @@ var WCDatepicker = class {
|
|
|
525
525
|
[this.getClassName("date--end")]: isEnd
|
|
526
526
|
};
|
|
527
527
|
const Tag = isSelected ? "strong" : isToday ? "em" : "span";
|
|
528
|
-
return h("td", { "aria-disabled": String(isDisabled), "aria-selected": isSelected ? "true" : void 0, class: className, "data-date": getISODateString(day), key: cellKey, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: isSameDay(day, this.currentDate) && !isDisabled && !this.disabled ? 0 : -1 }, h(Tag, { "aria-hidden": "true" }, day.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
|
|
528
|
+
return h("td", { "aria-disabled": String(isDisabled), "aria-selected": isSelected ? "true" : void 0, "aria-current": isToday ? "date" : void 0, class: className, "data-date": getISODateString(day), key: cellKey, onClick: this.onClick, onMouseEnter: this.onMouseEnter, onMouseLeave: this.onMouseLeave, role: "gridcell", tabIndex: isSameDay(day, this.currentDate) && !isDisabled && !this.disabled ? 0 : -1 }, h(Tag, { "aria-hidden": "true" }, day.getDate()), h("span", { class: "visually-hidden" }, Intl.DateTimeFormat(this.locale, {
|
|
529
529
|
day: "numeric",
|
|
530
530
|
month: "long"
|
|
531
531
|
}).format(day)));
|