@maggioli-design-system/magma 1.12.1 → 1.12.2
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/dist/cjs/mds-calendar_2.cjs.entry.js +1 -1
- package/dist/cjs/mds-input-date.cjs.entry.js +1 -1
- package/dist/collection/components/mds-calendar/mds-calendar.css +4 -2
- package/dist/collection/components/mds-input-date/mds-input-date.css +3 -2
- package/dist/components/mds-calendar2.js +1 -1
- package/dist/components/mds-input-date.js +1 -1
- package/dist/documentation.json +1 -1
- package/dist/esm/mds-calendar_2.entry.js +1 -1
- package/dist/esm/mds-input-date.entry.js +1 -1
- package/dist/esm-es5/mds-calendar_2.entry.js +1 -1
- package/dist/esm-es5/mds-input-date.entry.js +1 -1
- package/dist/hydrate/index.js +2 -2
- package/dist/hydrate/index.mjs +2 -2
- package/dist/magma-components/magma-components.esm.js +1 -1
- package/dist/magma-components/{p-20e0f9e3.entry.js → p-19522afa.entry.js} +1 -1
- package/dist/magma-components/p-25c84410.system.entry.js +1 -0
- package/dist/magma-components/p-26cd6ec8.system.js +1 -1
- package/dist/magma-components/{p-c6785782.entry.js → p-3183791a.entry.js} +1 -1
- package/dist/magma-components/p-44889d04.system.entry.js +1 -0
- package/dist/stats.json +27 -27
- package/package.json +1 -1
- package/dist/magma-components/p-a776c78c.system.entry.js +0 -1
- package/dist/magma-components/p-ca4ee5b5.system.entry.js +0 -1
package/dist/stats.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-08-
|
|
2
|
+
"timestamp": "2026-08-31T13:30:50",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "node",
|
|
5
5
|
"version": "22.15.0"
|
|
@@ -1126,6 +1126,7 @@
|
|
|
1126
1126
|
"./dist/magma-components/p-17c05a6e.entry.js",
|
|
1127
1127
|
"./dist/magma-components/p-188c906e.entry.js",
|
|
1128
1128
|
"./dist/magma-components/p-191e79c8.system.entry.js",
|
|
1129
|
+
"./dist/magma-components/p-19522afa.entry.js",
|
|
1129
1130
|
"./dist/magma-components/p-19dab167.js",
|
|
1130
1131
|
"./dist/magma-components/p-1a1dc53d.system.js",
|
|
1131
1132
|
"./dist/magma-components/p-1aa6b055.system.entry.js",
|
|
@@ -1134,7 +1135,6 @@
|
|
|
1134
1135
|
"./dist/magma-components/p-1cd6c3fe.system.entry.js",
|
|
1135
1136
|
"./dist/magma-components/p-1f52a479.system.entry.js",
|
|
1136
1137
|
"./dist/magma-components/p-1f8da1ff.system.entry.js",
|
|
1137
|
-
"./dist/magma-components/p-20e0f9e3.entry.js",
|
|
1138
1138
|
"./dist/magma-components/p-21699215.entry.js",
|
|
1139
1139
|
"./dist/magma-components/p-21b1acec.system.js",
|
|
1140
1140
|
"./dist/magma-components/p-23cd97c2.entry.js",
|
|
@@ -1142,6 +1142,7 @@
|
|
|
1142
1142
|
"./dist/magma-components/p-24ec3f86.js",
|
|
1143
1143
|
"./dist/magma-components/p-2577a204.entry.js",
|
|
1144
1144
|
"./dist/magma-components/p-2598109a.system.entry.js",
|
|
1145
|
+
"./dist/magma-components/p-25c84410.system.entry.js",
|
|
1145
1146
|
"./dist/magma-components/p-269ab10e.system.js",
|
|
1146
1147
|
"./dist/magma-components/p-26cd6ec8.system.js",
|
|
1147
1148
|
"./dist/magma-components/p-26d7b9f1.entry.js",
|
|
@@ -1153,6 +1154,7 @@
|
|
|
1153
1154
|
"./dist/magma-components/p-2d77deaf.js",
|
|
1154
1155
|
"./dist/magma-components/p-2d947462.system.entry.js",
|
|
1155
1156
|
"./dist/magma-components/p-2f99811b.system.entry.js",
|
|
1157
|
+
"./dist/magma-components/p-3183791a.entry.js",
|
|
1156
1158
|
"./dist/magma-components/p-3290bb60.entry.js",
|
|
1157
1159
|
"./dist/magma-components/p-32f55263.system.js",
|
|
1158
1160
|
"./dist/magma-components/p-333510bb.system.entry.js",
|
|
@@ -1181,6 +1183,7 @@
|
|
|
1181
1183
|
"./dist/magma-components/p-43a2f192.system.entry.js",
|
|
1182
1184
|
"./dist/magma-components/p-43f16b11.system.entry.js",
|
|
1183
1185
|
"./dist/magma-components/p-4422e4b7.entry.js",
|
|
1186
|
+
"./dist/magma-components/p-44889d04.system.entry.js",
|
|
1184
1187
|
"./dist/magma-components/p-44ce6dc8.entry.js",
|
|
1185
1188
|
"./dist/magma-components/p-485f2998.system.entry.js",
|
|
1186
1189
|
"./dist/magma-components/p-48a2e8e4.entry.js",
|
|
@@ -1277,7 +1280,6 @@
|
|
|
1277
1280
|
"./dist/magma-components/p-9e61fa6b.entry.js",
|
|
1278
1281
|
"./dist/magma-components/p-a22e8016.system.js",
|
|
1279
1282
|
"./dist/magma-components/p-a3ddaba4.js",
|
|
1280
|
-
"./dist/magma-components/p-a776c78c.system.entry.js",
|
|
1281
1283
|
"./dist/magma-components/p-a8265c47.js",
|
|
1282
1284
|
"./dist/magma-components/p-a89ad0f9.system.entry.js",
|
|
1283
1285
|
"./dist/magma-components/p-aa2e0551.entry.js",
|
|
@@ -1310,12 +1312,10 @@
|
|
|
1310
1312
|
"./dist/magma-components/p-c372fe03.entry.js",
|
|
1311
1313
|
"./dist/magma-components/p-c5730248.entry.js",
|
|
1312
1314
|
"./dist/magma-components/p-c5d2cd00.entry.js",
|
|
1313
|
-
"./dist/magma-components/p-c6785782.entry.js",
|
|
1314
1315
|
"./dist/magma-components/p-c7066d31.system.entry.js",
|
|
1315
1316
|
"./dist/magma-components/p-c7636e4c.entry.js",
|
|
1316
1317
|
"./dist/magma-components/p-c7d99ad5.system.entry.js",
|
|
1317
1318
|
"./dist/magma-components/p-c95d3b63.system.js",
|
|
1318
|
-
"./dist/magma-components/p-ca4ee5b5.system.entry.js",
|
|
1319
1319
|
"./dist/magma-components/p-cae04975.system.entry.js",
|
|
1320
1320
|
"./dist/magma-components/p-cba6ae1b.js",
|
|
1321
1321
|
"./dist/magma-components/p-cd40a2ca.system.entry.js",
|
|
@@ -1399,6 +1399,7 @@
|
|
|
1399
1399
|
"./www/build/p-17c05a6e.entry.js",
|
|
1400
1400
|
"./www/build/p-188c906e.entry.js",
|
|
1401
1401
|
"./www/build/p-191e79c8.system.entry.js",
|
|
1402
|
+
"./www/build/p-19522afa.entry.js",
|
|
1402
1403
|
"./www/build/p-19dab167.js",
|
|
1403
1404
|
"./www/build/p-1a1dc53d.system.js",
|
|
1404
1405
|
"./www/build/p-1aa6b055.system.entry.js",
|
|
@@ -1407,7 +1408,6 @@
|
|
|
1407
1408
|
"./www/build/p-1cd6c3fe.system.entry.js",
|
|
1408
1409
|
"./www/build/p-1f52a479.system.entry.js",
|
|
1409
1410
|
"./www/build/p-1f8da1ff.system.entry.js",
|
|
1410
|
-
"./www/build/p-20e0f9e3.entry.js",
|
|
1411
1411
|
"./www/build/p-21699215.entry.js",
|
|
1412
1412
|
"./www/build/p-21b1acec.system.js",
|
|
1413
1413
|
"./www/build/p-23cd97c2.entry.js",
|
|
@@ -1415,6 +1415,7 @@
|
|
|
1415
1415
|
"./www/build/p-24ec3f86.js",
|
|
1416
1416
|
"./www/build/p-2577a204.entry.js",
|
|
1417
1417
|
"./www/build/p-2598109a.system.entry.js",
|
|
1418
|
+
"./www/build/p-25c84410.system.entry.js",
|
|
1418
1419
|
"./www/build/p-269ab10e.system.js",
|
|
1419
1420
|
"./www/build/p-26cd6ec8.system.js",
|
|
1420
1421
|
"./www/build/p-26d7b9f1.entry.js",
|
|
@@ -1426,6 +1427,7 @@
|
|
|
1426
1427
|
"./www/build/p-2d77deaf.js",
|
|
1427
1428
|
"./www/build/p-2d947462.system.entry.js",
|
|
1428
1429
|
"./www/build/p-2f99811b.system.entry.js",
|
|
1430
|
+
"./www/build/p-3183791a.entry.js",
|
|
1429
1431
|
"./www/build/p-3290bb60.entry.js",
|
|
1430
1432
|
"./www/build/p-32f55263.system.js",
|
|
1431
1433
|
"./www/build/p-333510bb.system.entry.js",
|
|
@@ -1454,6 +1456,7 @@
|
|
|
1454
1456
|
"./www/build/p-43a2f192.system.entry.js",
|
|
1455
1457
|
"./www/build/p-43f16b11.system.entry.js",
|
|
1456
1458
|
"./www/build/p-4422e4b7.entry.js",
|
|
1459
|
+
"./www/build/p-44889d04.system.entry.js",
|
|
1457
1460
|
"./www/build/p-44ce6dc8.entry.js",
|
|
1458
1461
|
"./www/build/p-485f2998.system.entry.js",
|
|
1459
1462
|
"./www/build/p-48a2e8e4.entry.js",
|
|
@@ -1550,7 +1553,6 @@
|
|
|
1550
1553
|
"./www/build/p-9e61fa6b.entry.js",
|
|
1551
1554
|
"./www/build/p-a22e8016.system.js",
|
|
1552
1555
|
"./www/build/p-a3ddaba4.js",
|
|
1553
|
-
"./www/build/p-a776c78c.system.entry.js",
|
|
1554
1556
|
"./www/build/p-a8265c47.js",
|
|
1555
1557
|
"./www/build/p-a89ad0f9.system.entry.js",
|
|
1556
1558
|
"./www/build/p-aa2e0551.entry.js",
|
|
@@ -1583,12 +1585,10 @@
|
|
|
1583
1585
|
"./www/build/p-c372fe03.entry.js",
|
|
1584
1586
|
"./www/build/p-c5730248.entry.js",
|
|
1585
1587
|
"./www/build/p-c5d2cd00.entry.js",
|
|
1586
|
-
"./www/build/p-c6785782.entry.js",
|
|
1587
1588
|
"./www/build/p-c7066d31.system.entry.js",
|
|
1588
1589
|
"./www/build/p-c7636e4c.entry.js",
|
|
1589
1590
|
"./www/build/p-c7d99ad5.system.entry.js",
|
|
1590
1591
|
"./www/build/p-c95d3b63.system.js",
|
|
1591
|
-
"./www/build/p-ca4ee5b5.system.entry.js",
|
|
1592
1592
|
"./www/build/p-cae04975.system.entry.js",
|
|
1593
1593
|
"./www/build/p-cba6ae1b.js",
|
|
1594
1594
|
"./www/build/p-cd40a2ca.system.entry.js",
|
|
@@ -2014,8 +2014,8 @@
|
|
|
2014
2014
|
"components": [
|
|
2015
2015
|
"mds-input-date"
|
|
2016
2016
|
],
|
|
2017
|
-
"bundleId": "p-
|
|
2018
|
-
"fileName": "p-
|
|
2017
|
+
"bundleId": "p-3183791a",
|
|
2018
|
+
"fileName": "p-3183791a.entry.js",
|
|
2019
2019
|
"imports": [
|
|
2020
2020
|
"p-3a6b32e7.js",
|
|
2021
2021
|
"p-d2f61b1f.js",
|
|
@@ -2023,7 +2023,7 @@
|
|
|
2023
2023
|
"p-2d77deaf.js",
|
|
2024
2024
|
"p-85aa8e05.js"
|
|
2025
2025
|
],
|
|
2026
|
-
"originalByteSize":
|
|
2026
|
+
"originalByteSize": 22583
|
|
2027
2027
|
},
|
|
2028
2028
|
{
|
|
2029
2029
|
"key": "mds-input-date-range.entry",
|
|
@@ -2913,8 +2913,8 @@
|
|
|
2913
2913
|
"mds-calendar",
|
|
2914
2914
|
"mds-calendar-cell"
|
|
2915
2915
|
],
|
|
2916
|
-
"bundleId": "p-
|
|
2917
|
-
"fileName": "p-
|
|
2916
|
+
"bundleId": "p-19522afa",
|
|
2917
|
+
"fileName": "p-19522afa.entry.js",
|
|
2918
2918
|
"imports": [
|
|
2919
2919
|
"p-3a6b32e7.js",
|
|
2920
2920
|
"p-3833e170.js",
|
|
@@ -2923,7 +2923,7 @@
|
|
|
2923
2923
|
"p-8a1a6e56.js",
|
|
2924
2924
|
"p-85aa8e05.js"
|
|
2925
2925
|
],
|
|
2926
|
-
"originalByteSize":
|
|
2926
|
+
"originalByteSize": 45258
|
|
2927
2927
|
},
|
|
2928
2928
|
{
|
|
2929
2929
|
"key": "mds-input-switch.mds-table-cell.entry",
|
|
@@ -3461,7 +3461,7 @@
|
|
|
3461
3461
|
"locale-2adad180.js",
|
|
3462
3462
|
"_commonjsHelpers-bdec4bbd.js"
|
|
3463
3463
|
],
|
|
3464
|
-
"originalByteSize":
|
|
3464
|
+
"originalByteSize": 22624
|
|
3465
3465
|
},
|
|
3466
3466
|
{
|
|
3467
3467
|
"key": "mds-input-date-range.entry",
|
|
@@ -4361,7 +4361,7 @@
|
|
|
4361
4361
|
"clsx-297c1ffe.js",
|
|
4362
4362
|
"_commonjsHelpers-bdec4bbd.js"
|
|
4363
4363
|
],
|
|
4364
|
-
"originalByteSize":
|
|
4364
|
+
"originalByteSize": 45292
|
|
4365
4365
|
},
|
|
4366
4366
|
{
|
|
4367
4367
|
"key": "mds-input-switch.mds-table-cell.entry",
|
|
@@ -4899,7 +4899,7 @@
|
|
|
4899
4899
|
"locale-2adad180.js",
|
|
4900
4900
|
"_commonjsHelpers-bdec4bbd.js"
|
|
4901
4901
|
],
|
|
4902
|
-
"originalByteSize":
|
|
4902
|
+
"originalByteSize": 22624
|
|
4903
4903
|
},
|
|
4904
4904
|
{
|
|
4905
4905
|
"key": "mds-input-date-range.entry",
|
|
@@ -5799,7 +5799,7 @@
|
|
|
5799
5799
|
"clsx-297c1ffe.js",
|
|
5800
5800
|
"_commonjsHelpers-bdec4bbd.js"
|
|
5801
5801
|
],
|
|
5802
|
-
"originalByteSize":
|
|
5802
|
+
"originalByteSize": 45292
|
|
5803
5803
|
},
|
|
5804
5804
|
{
|
|
5805
5805
|
"key": "mds-input-switch.mds-table-cell.entry",
|
|
@@ -6328,8 +6328,8 @@
|
|
|
6328
6328
|
"components": [
|
|
6329
6329
|
"mds-input-date"
|
|
6330
6330
|
],
|
|
6331
|
-
"bundleId": "p-
|
|
6332
|
-
"fileName": "p-
|
|
6331
|
+
"bundleId": "p-44889d04.system",
|
|
6332
|
+
"fileName": "p-44889d04.system.entry.js",
|
|
6333
6333
|
"imports": [
|
|
6334
6334
|
"p-2aef517c.system.js",
|
|
6335
6335
|
"p-1a1dc53d.system.js",
|
|
@@ -6337,7 +6337,7 @@
|
|
|
6337
6337
|
"p-0b49b32e.system.js",
|
|
6338
6338
|
"p-21b1acec.system.js"
|
|
6339
6339
|
],
|
|
6340
|
-
"originalByteSize":
|
|
6340
|
+
"originalByteSize": 23994
|
|
6341
6341
|
},
|
|
6342
6342
|
{
|
|
6343
6343
|
"key": "mds-input-date-range.entry",
|
|
@@ -7227,8 +7227,8 @@
|
|
|
7227
7227
|
"mds-calendar",
|
|
7228
7228
|
"mds-calendar-cell"
|
|
7229
7229
|
],
|
|
7230
|
-
"bundleId": "p-
|
|
7231
|
-
"fileName": "p-
|
|
7230
|
+
"bundleId": "p-25c84410.system",
|
|
7231
|
+
"fileName": "p-25c84410.system.entry.js",
|
|
7232
7232
|
"imports": [
|
|
7233
7233
|
"p-2aef517c.system.js",
|
|
7234
7234
|
"p-c95d3b63.system.js",
|
|
@@ -7237,7 +7237,7 @@
|
|
|
7237
7237
|
"p-d68089ba.system.js",
|
|
7238
7238
|
"p-21b1acec.system.js"
|
|
7239
7239
|
],
|
|
7240
|
-
"originalByteSize":
|
|
7240
|
+
"originalByteSize": 49479
|
|
7241
7241
|
},
|
|
7242
7242
|
{
|
|
7243
7243
|
"key": "mds-input-switch.mds-table-cell.entry",
|
|
@@ -7775,7 +7775,7 @@
|
|
|
7775
7775
|
"locale-ff33b626.js",
|
|
7776
7776
|
"_commonjsHelpers-e6ff1d6e.js"
|
|
7777
7777
|
],
|
|
7778
|
-
"originalByteSize":
|
|
7778
|
+
"originalByteSize": 22751
|
|
7779
7779
|
},
|
|
7780
7780
|
{
|
|
7781
7781
|
"key": "mds-input-date-range.entry",
|
|
@@ -8675,7 +8675,7 @@
|
|
|
8675
8675
|
"clsx-fc789adc.js",
|
|
8676
8676
|
"_commonjsHelpers-e6ff1d6e.js"
|
|
8677
8677
|
],
|
|
8678
|
-
"originalByteSize":
|
|
8678
|
+
"originalByteSize": 45687
|
|
8679
8679
|
},
|
|
8680
8680
|
{
|
|
8681
8681
|
"key": "mds-input-switch.mds-table-cell.entry",
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(t,r,e,a){function n(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,i){function d(t){try{s(a.next(t))}catch(t){i(t)}}function o(t){try{s(a["throw"](t))}catch(t){i(t)}}function s(t){t.done?e(t.value):n(t.value).then(d,o)}s((a=a.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},a,n,i,d;return d={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(d[Symbol.iterator]=function(){return this}),d;function o(t){return function(r){return s([t,r])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(d&&(d=0,o[0]&&(e=0)),e)try{if(a=1,n&&(i=o[0]&2?n["return"]:o[0]?n["throw"]||((i=n["return"])&&i.call(n),0):n.next)&&!(i=i.call(n,o[1])).done)return i;if(n=0,i)o=[o[0]&2,i.value];switch(o[0]){case 0:case 1:i=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;n=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(i=e.trys,i=i.length>0&&i[i.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!i||o[1]>i[0]&&o[1]<i[3])){e.label=o[1];break}if(o[0]===6&&e.label<i[1]){e.label=i[1];i=o;break}if(i&&e.label<i[2]){e.label=i[2];e.ops.push(o);break}if(i[2])e.ops.pop();e.trys.pop();continue}o=r.call(t,e)}catch(t){o=[6,t];n=0}finally{a=i=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js","./p-1a1dc53d.system.js","./p-c95d3b63.system.js","./p-0b49b32e.system.js","./p-21b1acec.system.js"],(function(t){"use strict";var r,e,a,n,i,d,o,s;return{setters:[function(t){r=t.r;e=t.c;a=t.h;n=t.H;i=t.g},function(t){d=t.m},function(t){o=t.D},function(t){s=t.L},function(){}],execute:function(){var h='@tailwind utilities; :host{--mds-input-date-background:rgb(var(--tone-neutral));--mds-input-date-field-background-empty:rgb(var(--status-error-10));--mds-input-date-field-color-empty:rgb(var(--status-error-06));--mds-input-date-icon-color:var(--mds-input-date-variant-color);--mds-input-date-ring:0 0 0 1px rgb(var(--mds-input-date-variant-color) / 0.1);--mds-input-date-shadow:0 1px 3px 0 rgb(var(--mds-input-date-variant-color) / 0.1), 0 1px 2px 0 rgb(var(--mds-input-date-variant-color) / 0.06);--mds-input-date-variant-color:0 0 0;min-height:1.5rem;font-family:Karla, system-ui, -apple-system, BlinkMacSystemFont, \'Segoe UI\', sans-serif;font-size:1rem;line-height:1.5rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;gap:0.5rem;color:rgb(var(--tone-neutral-02));container-type:inline-size;display:-ms-flexbox;display:flex;overflow:visible;position:relative}.input::-webkit-calendar-picker-indicator{-webkit-appearance:none;appearance:none;-moz-appearance:textfield;display:none}.input{min-height:1.25rem;font-family:\'Roboto Mono\', \'Courier New\', monospace;font-size:0.875rem;line-height:1.25rem;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;margin:0rem;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:transparent;border:0;border-radius:0.5rem;-webkit-box-sizing:border-box;box-sizing:border-box;color:inherit;overflow:hidden;text-overflow:ellipsis;-webkit-transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, margin, opacity, padding, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform;transition-property:background-color, border-color, box-shadow, color, fill, margin, opacity, padding, transform, -webkit-box-shadow, -webkit-transform;width:-moz-min-content;width:-webkit-min-content;width:min-content}:host([empty]) .input{background-color:var(--mds-input-date-field-background-empty);color:var(--mds-input-date-field-color-empty)}:host([slot]){color:inherit;display:contents}:host([slot]) .input{cursor:text;text-align:center}:host(:not([slot])) .input{border-radius:0.5rem;padding-top:0.75rem;padding-bottom:0.75rem;padding-left:1rem;padding-right:3rem;background-color:var(--mds-input-date-background);-webkit-box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);box-shadow:var(--mds-input-date-ring), var(--mds-input-date-shadow);min-height:3rem;width:100%}:host(:focus-within) .input{outline:2px solid transparent;outline-offset:2px;-webkit-transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, height, margin, opacity, padding, width, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width;transition-property:background-color, border-color, box-shadow, color, fill, height, margin, opacity, padding, transform, width, -webkit-box-shadow, -webkit-transform;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input:focus{outline:2px solid transparent;outline-offset:2px;-webkit-transition-duration:300ms;transition-duration:300ms;-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);--mds-input-date-ring:0 0 0 3px rgb(var(--mds-input-date-variant-color) / 1);--mds-input-date-shadow:0 4px 6px 3px rgb(var(--mds-input-date-variant-color) / 0.1), 0 2px 4px -1px rgb(var(--mds-input-date-variant-color) / 0.06)}.input::-moz-placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-04))}.input:-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::-ms-input-placeholder{color:rgb(var(--tone-neutral-04))}.input::placeholder{color:rgb(var(--tone-neutral-04))}.input::-webkit-outer-spin-button,.input::-webkit-inner-spin-button{-webkit-appearance:none;appearance:none;display:none;margin:0}.input:disabled{background-color:rgb(var(--tone-neutral-10))}.input:disabled::-moz-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-webkit-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled:-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled::-ms-input-placeholder{color:rgb(var(--tone-neutral-05))}.input:disabled,.input:disabled::placeholder{color:rgb(var(--tone-neutral-05))}.action-open-calendar{--mds-button-color:rgb(var(--mds-input-date-icon-color));aspect-ratio:1;bottom:0;position:absolute;right:0;top:0}:host([disabled]:not([disabled="false"])) .action-open-calendar{-webkit-transform:translate(0.625rem, 0.5rem);transform:translate(0.625rem, 0.5rem)}mds-calendar{min-width:-moz-max-content;min-width:-webkit-max-content;min-width:max-content}mds-dropdown{padding:0}:host(:not(:is([hydrated],.hydrated))){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}mds-accordion:not(:is([hydrated],.hydrated)),mds-accordion-item:not(:is([hydrated],.hydrated)),mds-accordion-timer:not(:is([hydrated],.hydrated)),mds-accordion-timer-item:not(:is([hydrated],.hydrated)),mds-author:not(:is([hydrated],.hydrated)),mds-avatar:not(:is([hydrated],.hydrated)),mds-badge:not(:is([hydrated],.hydrated)),mds-banner:not(:is([hydrated],.hydrated)),mds-benchmark-bar:not(:is([hydrated],.hydrated)),mds-bibliography:not(:is([hydrated],.hydrated)),mds-breadcrumb:not(:is([hydrated],.hydrated)),mds-breadcrumb-item:not(:is([hydrated],.hydrated)),mds-button:not(:is([hydrated],.hydrated)),mds-card:not(:is([hydrated],.hydrated)),mds-card-content:not(:is([hydrated],.hydrated)),mds-card-footer:not(:is([hydrated],.hydrated)),mds-card-header:not(:is([hydrated],.hydrated)),mds-card-media:not(:is([hydrated],.hydrated)),mds-chip:not(:is([hydrated],.hydrated)),mds-details:not(:is([hydrated],.hydrated)),mds-dropdown:not(:is([hydrated],.hydrated)),mds-entity:not(:is([hydrated],.hydrated)),mds-file:not(:is([hydrated],.hydrated)),mds-file-preview:not(:is([hydrated],.hydrated)),mds-filter:not(:is([hydrated],.hydrated)),mds-filter-item:not(:is([hydrated],.hydrated)),mds-header:not(:is([hydrated],.hydrated)),mds-header-bar:not(:is([hydrated],.hydrated)),mds-help:not(:is([hydrated],.hydrated)),mds-horizontal-scroll:not(:is([hydrated],.hydrated)),mds-hr:not(:is([hydrated],.hydrated)),mds-icon:not(:is([hydrated],.hydrated)),mds-img:not(:is([hydrated],.hydrated)),mds-input:not(:is([hydrated],.hydrated)),mds-input-field:not(:is([hydrated],.hydrated)),mds-input-range:not(:is([hydrated],.hydrated)),mds-input-select:not(:is([hydrated],.hydrated)),mds-input-switch:not(:is([hydrated],.hydrated)),mds-input-tip:not(:is([hydrated],.hydrated)),mds-input-tip-item:not(:is([hydrated],.hydrated)),mds-input-upload:not(:is([hydrated],.hydrated)),mds-keyboard:not(:is([hydrated],.hydrated)),mds-keyboard-key:not(:is([hydrated],.hydrated)),mds-kpi:not(:is([hydrated],.hydrated)),mds-kpi-item:not(:is([hydrated],.hydrated)),mds-label:not(:is([hydrated],.hydrated)),mds-list:not(:is([hydrated],.hydrated)),mds-list-item:not(:is([hydrated],.hydrated)),mds-modal:not(:is([hydrated],.hydrated)),mds-note:not(:is([hydrated],.hydrated)),mds-notification:not(:is([hydrated],.hydrated)),mds-paginator:not(:is([hydrated],.hydrated)),mds-paginator-item:not(:is([hydrated],.hydrated)),mds-pref:not(:is([hydrated],.hydrated)),mds-pref-animation:not(:is([hydrated],.hydrated)),mds-pref-consumption:not(:is([hydrated],.hydrated)),mds-pref-contrast:not(:is([hydrated],.hydrated)),mds-pref-language:not(:is([hydrated],.hydrated)),mds-pref-language-item:not(:is([hydrated],.hydrated)),mds-pref-theme:not(:is([hydrated],.hydrated)),mds-price-table:not(:is([hydrated],.hydrated)),mds-price-table-features:not(:is([hydrated],.hydrated)),mds-price-table-features-cell:not(:is([hydrated],.hydrated)),mds-price-table-features-row:not(:is([hydrated],.hydrated)),mds-price-table-header:not(:is([hydrated],.hydrated)),mds-price-table-list:not(:is([hydrated],.hydrated)),mds-price-table-list-item:not(:is([hydrated],.hydrated)),mds-progress:not(:is([hydrated],.hydrated)),mds-push-notification:not(:is([hydrated],.hydrated)),mds-push-notifications:not(:is([hydrated],.hydrated)),mds-quote:not(:is([hydrated],.hydrated)),mds-separator:not(:is([hydrated],.hydrated)),mds-spinner:not(:is([hydrated],.hydrated)),mds-stepper-bar:not(:is([hydrated],.hydrated)),mds-stepper-bar-item:not(:is([hydrated],.hydrated)),mds-tab:not(:is([hydrated],.hydrated)),mds-tab-bar:not(:is([hydrated],.hydrated)),mds-tab-bar-item:not(:is([hydrated],.hydrated)),mds-tab-item:not(:is([hydrated],.hydrated)),mds-table:not(:is([hydrated],.hydrated)),mds-table-body:not(:is([hydrated],.hydrated)),mds-table-cell:not(:is([hydrated],.hydrated)),mds-table-footer:not(:is([hydrated],.hydrated)),mds-table-header:not(:is([hydrated],.hydrated)),mds-table-header-cell:not(:is([hydrated],.hydrated)),mds-table-row:not(:is([hydrated],.hydrated)),mds-text:not(:is([hydrated],.hydrated)),mds-toast:not(:is([hydrated],.hydrated)),mds-tooltip:not(:is([hydrated],.hydrated)),mds-tree:not(:is([hydrated],.hydrated)),mds-tree-item:not(:is([hydrated],.hydrated)),mds-url-view:not(:is([hydrated],.hydrated)),mds-usage:not(:is([hydrated],.hydrated)),mds-video-wall:not(:is([hydrated],.hydrated)),mds-zero:not(:is([hydrated],.hydrated)){-webkit-animation-duration:0s;animation-duration:0s;border-color:transparent;-webkit-box-shadow:0 0 0 transparent;box-shadow:0 0 0 transparent;opacity:0;outline-color:transparent;-webkit-transition-delay:0s;transition-delay:0s;-webkit-transition-duration:0s;transition-duration:0s;visibility:hidden}:host-context(.pref-animation-reduce) .input{-webkit-transition-duration:0s;transition-duration:0s}@media (prefers-reduced-motion){:host-context(.pref-animation-system) .input{-webkit-transition-duration:0s;transition-duration:0s}}:host-context(.pref-theme-dark){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-dark) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}@media (prefers-color-scheme: dark){:host-context(.pref-theme-system){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.3);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-06))}:host-context(.pref-theme-system) .counter-button:hover{--mds-button-background:rgb(var(--tone-neutral-08))}}:host-context(.pref-contrast-more){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}@media (prefers-contrast: more){:host-context(.pref-contrast-system){--mds-input-date-ring:0 0 0 2px rgb(var(--tone-neutral-01) / 0.6);--mds-input-date-background:rgb(var(--tone-neutral-09));--mds-input-date-controls-border:2px solid rgb(var(--tone-neutral-05))}:host-context(.pref-contrast-more) .input::-moz-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-webkit-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input:-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::-ms-input-placeholder{color:rgb(var(--tone-neutral-03))}:host-context(.pref-contrast-more) .input::placeholder{color:rgb(var(--tone-neutral-03))}}@supports (-moz-appearance: none){.action-open-calendar{display:none}:host(:not([slot])) .input{padding-right:1rem}}:host{--mds-input-date-icon-color:var(--variant-primary-03);--mds-input-date-variant-color:0 0 0}:host(:focus-within){--mds-input-date-variant-color:var(--variant-primary-04)}:host([variant="info"]){--mds-input-date-icon-color:var(--status-info-05);--mds-input-date-tip-background:var(--status-info-05);--mds-input-date-variant-color:0 0 0}:host([variant="info"]:focus-within){--mds-input-date-icon-color:var(--status-info-04);--mds-input-date-variant-color:var(--status-info-05)}:host([variant="success"]){--mds-input-date-icon-color:var(--status-success-05);--mds-input-date-tip-background:var(--status-success-05);--mds-input-date-variant-color:0 0 0}:host([variant="success"]:focus-within){--mds-input-date-icon-color:var(--status-success-04);--mds-input-date-variant-color:var(--status-success-05)}:host([variant="warning"]){--mds-input-date-icon-color:var(--status-warning-05);--mds-input-date-tip-background:var(--status-warning-05);--mds-input-date-variant-color:0 0 0}:host([variant="warning"]:focus-within){--mds-input-date-icon-color:var(--status-warning-04);--mds-input-date-variant-color:var(--status-warning-05)}:host([variant="error"]){--mds-input-date-icon-color:var(--status-error-05);--mds-input-date-tip-background:var(--status-error-05);--mds-input-date-variant-color:0 0 0}:host([variant="error"]:focus-within){--mds-input-date-icon-color:var(--status-error-04);--mds-input-date-variant-color:var(--status-error-05)}';var c=h;var u=t("mds_input_date",function(){function t(t){var a=this;r(this,t);this.validationEvent=e(this,"mdsInputValidation",7);this.valueChange=e(this,"mdsInputDateSelect",7);if(t.$hostElement$["s-ei"]){this.internals=t.$hostElement$["s-ei"]}else{this.internals=t.$hostElement$.attachInternals();t.$hostElement$["s-ei"]=this.internals}this.isSlotted=false;this.empty=undefined;this.t=new s({el:{},en:{},es:{},it:{}});this.touched=false;this.value="";this.variant="primary";this.min=null;this.max=null;this.delay=500;this.disabled=false;this.readonly=false;this.required=false;this.calendarKey=0;this.hasFocus=false;this.handleChange=function(t){var r=t.target;a.touched=true;if(r.value)a.value=r.value;a.validateValue(r.validity.badInput)};this.onBlur=function(t){var r=t.target;a.hasFocus=false;a.value=r.value;a.validateValue(r.validity.badInput)};this.onFocus=function(t){var r=t.target;a.hasFocus=true;if(a.readonly){setTimeout((function(){r.select()}),10)}}}t.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.language=this.t.lang(this.host);return[2]}))}))};t.prototype.handleValue=function(){this.valueChange.emit(this.value);this.validateValue()};t.prototype.validateValue=function(t){if(t===void 0){t=false}var r=o.fromISO(this.value);var e=Boolean(this.value);var a=e&&!r.isValid;var n=this.required&&!e;var i=r.isValid&&(this.max&&o.fromISO(this.max)<r||this.min&&o.fromISO(this.min)>r);if(t||a||n||i){this.isValid=false;this.variant="error";this.internals.setFormValue(null);this.empty=t||a?true:undefined}else{this.isValid=true;this.variant="primary";this.internals.setFormValue(this.value);this.empty=undefined}this.validationEvent.emit(this.isValid)};t.prototype.focusInput=function(){return __awaiter(this,void 0,void 0,(function(){var t,r;return __generator(this,(function(e){r=(t=this.host.shadowRoot)===null||t===void 0?void 0:t.querySelector(".input");r.focus();return[2]}))}))};t.prototype.setValue=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.value=t;this.validateValue();return[2,Promise.resolve()]}))}))};t.prototype.getErrors=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,Promise.resolve(this.isValid?null:{error:""})]}))}))};t.prototype.formResetCallback=function(){this.internals.setFormValue("")};t.prototype.componentWillLoad=function(){this.isSlotted=!!this.host.getAttribute("slot");this.value=this.value||"";this.language=this.t.lang(this.host);if(this.min&&this.max){var t=o.fromISO(this.min);var r=o.fromISO(this.max);if(r<t){this.max=this.min}}this.validateValue()};t.prototype.render=function(){var t=this;return a(n,{key:"52c3166d9b5401776ff61e0e535571896a9d6ba8",empty:this.empty},a("input",{key:"a4f3f1c9c3602bb977677aa3063f2968c70adf33",value:this.value,id:"dateInput",class:"input",part:"input-date",type:"date",disabled:this.disabled,name:this.name,onBlur:this.onBlur,onFocus:this.onFocus,onInput:this.handleChange,onChange:this.handleChange}),!this.isSlotted&&a("div",{key:"e002daf5efa4367d1519acfb566ce4faf61d4fcd",class:"action-open-calendar-wrapper"},a("mds-button",{key:"e9c6f3191dc6fcb226a3f08d8526d44900816ba5",id:"calendar-dropdown",class:"action-open-calendar",disabled:this.disabled,variant:"dark",tone:"quiet",icon:d,onClick:function(){t.calendarKey+=1}})),a("mds-input-tip",{key:"b4a4308288531dfb0d3b890393d5243b4687d459",lang:this.language,position:"top",active:this.hasFocus},this.disabled&&a("mds-input-tip-item",{key:"4bc411c37bb5da3465443b72db0c7915c5bb5afd",expanded:true,variant:"disabled"}),this.readonly&&a("mds-input-tip-item",{key:"6ba171f9f821354bcfbd7d9e8574dd5681a30a9b",expanded:true,variant:"readonly"}),this.required&&a("mds-input-tip-item",{key:"4f69ccf812baee84c9831f9ce3ac57d74f8a7038",expanded:this.hasFocus,variant:this.isValid?"required-success":"required"})),!this.isSlotted&&a("mds-dropdown",{key:"79f6ffd4fe2f708c9786904406e700c921200356",placement:"bottom-end","auto-placement":false,ref:function(r){return t.dropdownRef=r},target:"#calendar-dropdown"},a("mds-calendar",Object.assign({key:this.calendarKey,rangePicker:false,lang:this.language,onMdsCalendarChange:function(r){t.value=r.detail.startDate;if(t.delay===0)return;var e=t.dropdownRef;if(e){setTimeout((function(){e.visible=false}),t.delay)}},startDate:this.value},this.min?{min:this.min}:{},this.max?{max:this.max}:{}))))};Object.defineProperty(t,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["handleValue"]}},enumerable:false,configurable:true});return t}());u.style=c}}}));
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var __awaiter=this&&this.__awaiter||function(e,r,n,t){function a(e){return e instanceof n?e:new n((function(r){r(e)}))}return new(n||(n=Promise))((function(n,i){function o(e){try{s(t.next(e))}catch(e){i(e)}}function l(e){try{s(t["throw"](e))}catch(e){i(e)}}function s(e){e.done?n(e.value):a(e.value).then(o,l)}s((t=t.apply(e,r||[])).next())}))};var __generator=this&&this.__generator||function(e,r){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},t,a,i,o;return o={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function l(e){return function(r){return s([e,r])}}function s(l){if(t)throw new TypeError("Generator is already executing.");while(o&&(o=0,l[0]&&(n=0)),n)try{if(t=1,a&&(i=l[0]&2?a["return"]:l[0]?a["throw"]||((i=a["return"])&&i.call(a),0):a.next)&&!(i=i.call(a,l[1])).done)return i;if(a=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:n.label++;return{value:l[1],done:false};case 5:n.label++;a=l[1];l=[0];continue;case 7:l=n.ops.pop();n.trys.pop();continue;default:if(!(i=n.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1];i=l;break}if(i&&n.label<i[2]){n.label=i[2];n.ops.push(l);break}if(i[2])n.ops.pop();n.trys.pop();continue}l=r.call(e,n)}catch(e){l=[6,e];a=0}finally{t=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-2aef517c.system.js","./p-c95d3b63.system.js","./p-0b49b32e.system.js","./p-8982c443.system.js","./p-d68089ba.system.js","./p-21b1acec.system.js"],(function(e){"use strict";var r,n,t,a,i,o,l,s,c;return{setters:[function(e){r=e.r;n=e.c;t=e.h;a=e.H;i=e.g},function(e){o=e.D},function(e){l=e.L},function(e){s=e.s},function(e){c=e.c},function(){}],execute:function(){var d='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M6.23 20.23L8 22l10-10L8 2L6.23 3.77L14.46 12z"/></svg>';var h='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M17.77 3.77L16 2L6 12l10 10l1.77-1.77L9.54 12z"/></svg>';var u=":host{--mds-calendar-day-number-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-day-number-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-gap:0.125rem;--mds-calendar-cell-other-month-visibility:visible;--mds-calendar-border-radius:0.5rem;--mds-calendar-background:rgb(var(--tone-neutral));--mds-calendar-padding:1rem;--mds-calendar-select-month-or-year-height:2.25rem;--mds-calendar-select-month-or-year-width:14rem;background-color:rgb(var(--tone-neutral-09));border-radius:var(--mds-calendar-border-radius);cursor:auto;display:-ms-inline-flexbox;display:inline-flex;max-width:380px;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content;overflow:hidden}.calendar-view{background-color:var(--mds-calendar-background);border-radius:inherit;-webkit-box-sizing:border-box;box-sizing:border-box;display:grid;-ms-flex:1 1 auto;flex:1 1 auto;padding:var(--mds-calendar-padding)}.calendar-preselection{display:none;gap:0.125rem;grid-auto-rows:-webkit-min-content;grid-auto-rows:min-content;padding:var(--mds-calendar-padding)}.calendar-preselection--has-preselection{display:grid}nav{display:-ms-flexbox;display:flex;gap:0.5rem;-ms-flex-pack:justify;justify-content:space-between;min-width:0}.action{padding-left:0.5rem;padding-right:0.5rem;-ms-flex-pack:left;justify-content:left;min-width:-moz-min-content;min-width:-webkit-min-content;min-width:min-content}.action-back,.action-forward{-ms-flex-negative:0;flex-shrink:0}.select-month-or-year{-ms-flex-align:stretch;align-items:stretch;background-color:rgb(var(--tone-neutral-09));block-size:var(--mds-calendar-select-month-or-year-height);border-radius:var(--mds-calendar-border-radius);-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex:0 0 var(--mds-calendar-select-month-or-year-width);flex:0 0 var(--mds-calendar-select-month-or-year-width);height:var(--mds-calendar-select-month-or-year-height);-ms-flex-pack:start;justify-content:flex-start;inline-size:var(--mds-calendar-select-month-or-year-width);max-block-size:var(--mds-calendar-select-month-or-year-height);max-height:var(--mds-calendar-select-month-or-year-height);max-inline-size:var(--mds-calendar-select-month-or-year-width);min-block-size:var(--mds-calendar-select-month-or-year-height);min-height:var(--mds-calendar-select-month-or-year-height);min-inline-size:var(--mds-calendar-select-month-or-year-width);overflow:hidden}.action-month,.action-year{--mds-button-radius:0;-ms-flex-item-align:stretch;align-self:stretch;block-size:100%;-webkit-box-sizing:border-box;box-sizing:border-box;cursor:default;height:100%;max-block-size:100%;max-height:100%;min-block-size:0;min-height:0;padding-left:0.5rem;padding-right:0.5rem}.action-month{-ms-flex:1 1 auto;flex:1 1 auto;min-width:0}.action-year{-ms-flex:0 0 4.5rem;flex:0 0 4.5rem}.action-month::part(label),.action-year::part(label){overflow:visible;text-overflow:clip;white-space:nowrap}.week-day-name{-ms-flex-align:center;align-items:center;aspect-ratio:1;min-height:auto;padding:0}.month-view{display:grid}.month-view__days-names,.month-view__cells{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(7, minmax(1px, 100%));min-width:0}.month-view{display:grid}.month-view__month-names,.month-view__years{display:grid;gap:var(--mds-calendar-cell-gap);grid-template-columns:repeat(3, minmax(1px, 100%));min-width:0}";var m=u;var v=e("mds_calendar",function(){function e(e){var t=this;r(this,e);this.datesEmitter=n(this,"mdsCalendarChange",7);this.navigationEmitter=n(this,"mdsCalendarNavigate",7);this.hoverEmitter=n(this,"mdsCalendarHover",7);this.checkPreselectionsEmitter=n(this,"mdsCalendarPreselect",7);this.hasPreselection=false;this.currentDate=o.now();this.weekDaysinMonth=[];this.weekdays=[];this.startDateIdentifier=null;this.endDateIdentifier=null;this.isFirstClick=true;this.currentView="calendar";this.selectedYear=this.currentDate.year;this.t=new l({it:{},en:{},es:{},el:{}});this.rangePicker=true;this.showPreviousButton=true;this.showNextButton=true;this.disableMonthYearSelection=false;this.showPreselection=false;this.viewDate=null;this.hoverDate=null;this.startDate=null;this.endDate=null;this.min=null;this.max=null;this.internalStartDate=this.startDate;this.internalEndDate=this.endDate;this.currentMonth="";this.currentYear="";this.handleMouseOver=function(e){var r=e.target;if(!r.matches("mds-calendar-cell")||!t.rangePicker||!t.internalStartDate||t.internalEndDate){return}var n=r.getAttribute("date");if(n){t.hoverEmitter.emit({hoverDate:n})}};this.handleMouseLeave=function(){if(!t.rangePicker||!t.internalStartDate||t.internalEndDate||!t.hoverDate){return}t.hoverEmitter.emit({hoverDate:null})};this.handleMonthActionClick=function(e){e.stopPropagation();if(t.disableMonthYearSelection){e.preventDefault();return}t.currentView=t.currentView==="months"?"calendar":"months";requestAnimationFrame((function(){t.updateCalendar().then((function(){return t.setDates()}))}))};this.handleYearActionClick=function(e){e.stopPropagation();if(t.disableMonthYearSelection){e.preventDefault();return}t.currentView=t.currentView==="years"?"calendar":"years";requestAnimationFrame((function(){t.updateCalendar().then((function(){return t.setDates()}))}))}}e.prototype.updateLang=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=this.t.lang(this.host);return[2]}))}))};e.prototype.handleStartDate=function(e){if(e!==null&&e!==""){this.internalStartDate=s(e===null||e===void 0?void 0:e.toString());this.startDateTime=o.fromISO(this.internalStartDate);this.startDateIdentifier=this.startDateTime.toISODate();if(this.internalEndDate){var r=o.fromISO(this.internalEndDate);if(this.startDateTime>r){console.warn("startDate is after endDate, swapping values");return}}else if(this.rangePicker){this.isFirstClick=false}this.updateDates()}else if(e===null||e===""){this.internalStartDate=null;this.startDateIdentifier=null;this.startDateTime=null;this.isFirstClick=true;this.updateDates()}};e.prototype.handleEndDate=function(e){if(!this.rangePicker){console.warn("rangePicker is disabled, endDate cannot be set");this.internalEndDate=null}else if(e!==null&&e!==""){this.internalEndDate=s(e===null||e===void 0?void 0:e.toString());this.endDateTime=o.fromISO(this.internalEndDate);this.endDateIdentifier=this.endDateTime.toISODate();if(this.internalStartDate){var r=o.fromISO(this.internalStartDate);if(r>this.endDateTime){console.warn("startDate is after endDate, swapping values");return}}this.updateDates()}else if(e===null||e===""){this.internalEndDate=null;this.endDateIdentifier=null;this.endDateTime=null;this.updateDates()}};e.prototype.handleViewDate=function(e){var r=this;if(e!==null&&e!==""){var n=o.fromISO(e.toString());if(n.isValid){this.currentDate=n;this.updateCalendar().then((function(){requestAnimationFrame((function(){return r.setDates()}))}))}}};e.prototype.handleHoverDate=function(){var e=this;requestAnimationFrame((function(){return e.setDates()}))};e.prototype.componentWillLoad=function(){var e,r;this.language=this.t.lang(this.host);if(this.viewDate){var n=o.fromISO(this.viewDate.toString());if(n.isValid){this.currentDate=n}}else if(this.internalStartDate){this.internalStartDate=s((e=this.internalStartDate)===null||e===void 0?void 0:e.toString());this.startDateTime=o.fromISO(this.internalStartDate);if(this.startDateTime.isValid){this.currentDate=this.startDateTime}}if(this.internalEndDate){this.internalEndDate=s((r=this.internalEndDate)===null||r===void 0?void 0:r.toString());this.endDateTime=o.fromISO(this.internalEndDate)}this.updateCalendar()};e.prototype.componentDidLoad=function(){var e,r,n,t,a;this.hasPreselection=((e=this.host)===null||e===void 0?void 0:e.querySelector(".date-preselection--has-preselection"))!==null;(n=(r=this.host)===null||r===void 0?void 0:r.shadowRoot)===null||n===void 0?void 0:n.addEventListener("mouseover",this.handleMouseOver);(a=(t=this.host)===null||t===void 0?void 0:t.shadowRoot)===null||a===void 0?void 0:a.addEventListener("mouseleave",this.handleMouseLeave);this.setDates()};e.prototype.disconnectedCallback=function(){var e,r,n,t;(r=(e=this.host)===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0?void 0:r.removeEventListener("mouseover",this.handleMouseOver);(t=(n=this.host)===null||n===void 0?void 0:n.shadowRoot)===null||t===void 0?void 0:t.removeEventListener("mouseleave",this.handleMouseLeave)};e.prototype.updateCurrentDate=function(e){return __awaiter(this,void 0,void 0,(function(){var r=this;return __generator(this,(function(n){switch(n.label){case 0:this.currentDate=o.fromISO(e);return[4,this.updateCalendar()];case 1:n.sent();return[4,new Promise((function(e){requestAnimationFrame((function(){r.setDates();e()}))}))];case 2:n.sent();return[2,Promise.resolve()]}}))}))};e.prototype.updateDates=function(){var e=this;this.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))};e.prototype.updateCalendar=function(){return __awaiter(this,void 0,void 0,(function(){var e;var r=this;return __generator(this,(function(n){try{e=this.currentDate.startOf("week");this.weekdays=Array.from({length:7}).map((function(n,t){return e.setLocale(r.language).plus({days:t}).toFormat("ccc")}));this.calculateWeekDaysInMonth();this.currentMonth=this.currentDate.setLocale(this.language).toFormat("MMMM");this.currentMonthNumber=this.currentDate.month;this.currentYear=this.currentDate.toFormat("yyyy")}catch(e){console.error("Error while updating the calendar:",e)}return[2]}))}))};e.prototype.setDates=function(){var e=this.host;if(!e)return;var r=e.shadowRoot;if(!r)return;var n=r.querySelectorAll("mds-calendar-cell[selection], mds-calendar-cell[preview]");if(this.rangePicker){if(this.hoverDate&&!this.internalEndDate){this.setHoverSelection(n,r)}else{this.setRangeSelection(n,r)}}else{this.setSingleSelection(n,r)}};e.prototype.clearSelectionState=function(e){e.forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))};e.prototype.setRangeSelection=function(e,r){var n=this;this.clearSelectionState(e);if(!this.internalStartDate)return;this.startDateTime=o.fromISO(this.internalStartDate.toString());if(!this.internalEndDate){this.startDateIdentifier=this.startDateTime.toISODate();this.isFirstClick=false;var t=r.querySelectorAll("mds-calendar-cell");t.forEach((function(e){if(e.getAttribute("date")===n.startDateTime.toFormat("yyyy-MM-dd")){e.setAttribute("selection","single");e.setAttribute("preview","true")}}));return}this.endDateTime=o.fromISO(this.internalEndDate.toString());this.startDateIdentifier=this.startDateTime.toISODate();this.endDateIdentifier=this.endDateTime.toISODate();var a=r.querySelectorAll("mds-calendar-cell");if(a){var i=void 0;for(var l=0;l<a.length;l++){var s=a[l].getAttribute("date");if(s){var c=o.fromISO(s);if(c.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){a[l].setAttribute("selection","start")}if(c.toFormat("yyyy-MM-dd")===this.endDateTime.toFormat("yyyy-MM-dd")){if(this.startDateTime.equals(this.endDateTime)){a[l].setAttribute("selection","single")}else{a[l].setAttribute("selection","end")}}i=c>this.startDateTime&&c<this.endDateTime;if(i){a[l].setAttribute("selection","middle")}}}}};e.prototype.setHoverSelection=function(e,r){this.clearSelectionState(e);if(!this.internalStartDate||!this.hoverDate){this.setRangeSelection(e,r);return}var n=o.fromISO(this.internalStartDate);var t=o.fromISO(this.hoverDate);if(!n.isValid||!t.isValid){this.setRangeSelection(e,r);return}var a=n<=t;var i=Array.from(r.querySelectorAll("mds-calendar-cell"));i.forEach((function(e){var r=e.getAttribute("date");if(!r)return;var i=o.fromISO(r);if(!i.isValid)return;var l=a?i>=n&&i<=t:i>=t&&i<=n;if(!l)return;e.setAttribute("preview","true");var s="middle";if(n.equals(t)&&i.equals(n)){s="single"}else if(i.equals(n)){s=a?"start":"end"}else if(i.equals(t)){s=a?"end":"start"}e.setAttribute("selection",s)}))};e.prototype.setSingleSelection=function(e,r){this.clearSelectionState(e);if(!this.internalStartDate)return;this.startDateTime=o.fromISO(this.internalStartDate.toString());var n=r.querySelectorAll("mds-calendar-cell");if(n){for(var t=0;t<n.length;t++){var a=n[t].getAttribute("date");if(a){var i=o.fromISO(a);if(i.toFormat("yyyy-MM-dd")===this.startDateTime.toFormat("yyyy-MM-dd")){n[t].setAttribute("selection","single")}}}}};e.prototype.changeMonth=function(e){var r=this;this.currentDate=this.currentDate.plus({months:e});this.updateCalendar().then((function(){requestAnimationFrame((function(){return r.setDates()}))}));this.navigationEmitter.emit({currentDate:this.currentDate.toISODate(),delta:e})};e.prototype.calculateWeekDaysInMonth=function(){var e=this.currentDate.startOf("month");var r=this.currentDate.endOf("month");var n=[];var t=e.weekday;var a=t-1;var i=e.minus({days:a});for(var o=i;o<e;o=o.plus({days:1})){n.push({date:o,isCurrentMonth:false})}for(var o=e;o<=r;o=o.plus({days:1})){n.push({date:o,isCurrentMonth:true})}var l=r.weekday;var s=7-l;var c=r.plus({days:1});for(var o=c;o<c.plus({days:s});o=o.plus({days:1})){n.push({date:o,isCurrentMonth:false})}this.weekDaysinMonth=n};e.prototype.handleRange=function(e,r){var n=this;var t,a;var i=this.startDate||this.host.getAttribute("start-date");if(this.rangePicker&&i&&!this.endDate&&!this.internalEndDate&&this.isFirstClick){this.internalStartDate=s(i.toString());this.startDateTime=o.fromISO(this.internalStartDate);this.startDateIdentifier=this.startDateTime.toISODate();this.isFirstClick=false}var l=function(){n.internalStartDate=null;n.internalEndDate=null;n.startDateIdentifier=null;n.startDateTime=null;n.endDateIdentifier=null;n.endDateTime=null;n.isFirstClick=true;var e=n.host;requestAnimationFrame((function(){var r;(r=e===null||e===void 0?void 0:e.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection");e.removeAttribute("preview")}))}))};if(this.startDateIdentifier&&this.endDateIdentifier){l()}if(this.isFirstClick){this.startDateIdentifier=r.toISODate();this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;var c=this.host;requestAnimationFrame((function(){var e;(e=c===null||c===void 0?void 0:c.shadowRoot)===null||e===void 0?void 0:e.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}))}));requestAnimationFrame((function(){e.setAttribute("selection","single");e.setAttribute("preview","true")}));this.datesEmitter.emit({startDate:this.internalStartDate});return}var d=this.host;var h=(t=d===null||d===void 0?void 0:d.shadowRoot)===null||t===void 0?void 0:t.querySelectorAll("mds-calendar-cell");var u=Array.from(h!==null&&h!==void 0?h:[]).findIndex((function(e){return e.getAttribute("date")===n.startDateIdentifier}));var m=Array.from(h!==null&&h!==void 0?h:[]).indexOf(e);if(this.startDateIdentifier&&o.fromISO(this.startDateIdentifier)<o.fromISO(e.getAttribute("date"))){this.endDateIdentifier=e.getAttribute("date");this.endDateTime=r;this.internalEndDate=this.endDateTime.toISO().split("T")[0]}else{this.endDateIdentifier=this.startDateIdentifier;this.endDateTime=this.startDateTime;this.internalEndDate=this.internalStartDate;this.startDateIdentifier=e.getAttribute("date");this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0]}(a=d===null||d===void 0?void 0:d.shadowRoot)===null||a===void 0?void 0:a.querySelectorAll("mds-calendar-cell[preview]").forEach((function(e){e.removeAttribute("preview")}));if(h&&u!==-1){for(var v=u+1;v<m;v++){h[v].setAttribute("selection","middle")}}if(this.internalStartDate&&this.internalEndDate){this.datesEmitter.emit({startDate:this.internalStartDate,endDate:this.internalEndDate});this.checkPreselectionsEmitter.emit()}};e.prototype.handleSingleSelection=function(e,r){var n;var t=this.host;(n=t===null||t===void 0?void 0:t.shadowRoot)===null||n===void 0?void 0:n.querySelectorAll("mds-calendar-cell[selection]").forEach((function(e){e.removeAttribute("selection")}));this.startDateIdentifier=e.getAttribute("date");this.startDateTime=r;this.internalStartDate=this.startDateTime.toISO().split("T")[0];this.isFirstClick=false;e.setAttribute("selection","single");if(this.internalStartDate){this.datesEmitter.emit({startDate:this.internalStartDate})}};e.prototype.render=function(){var e=this;return t(a,{key:"271209054e3f86d3c167ab6f2d84c801619f7fdb"},t("div",{key:"084902141f92f15f4b62ec34fc826b939f0ff05b",class:c("calendar-preselection",(this.showPreselection||this.hasPreselection)&&"calendar-preselection--has-preselection")},t("slot",{key:"986c1168978cc658b3a7409adafac5651cae7c77",name:"preselection"})),t("div",{key:"bbb9882d52d1fd89758704604c3a52016535561e",class:"calendar-view"},t("nav",{key:"9f993a0c44e484303716cef6530d9d95e84226a1"},this.showPreviousButton&&t("mds-button",{key:"f78027217275a9f0896fdfaa2ed99fd10064f581",class:"action-back",icon:h,variant:"dark",tone:"quiet",onClick:function(r){if(e.currentView==="calendar"){r.stopPropagation();e.changeMonth(-1)}else if(e.currentView==="years"){r.stopPropagation();e.selectedYear-=10}else{r.stopPropagation()}}}),t("div",{key:"e2916642b7072db24f8e800fb033260a9c2a3dcd",class:"select-month-or-year"},(this.currentView==="calendar"||this.currentView==="months")&&t("mds-button",{key:"112c7d69205f2c57587a4ba12ecd7b445ef66170",class:"action-month",truncate:"none",variant:"dark",tone:"quiet",onClick:this.handleMonthActionClick},this.currentMonth),(this.currentView==="calendar"||this.currentView==="years")&&t("mds-button",{key:"91f990cfdafb34e3983f7e375e695dce5fde11fd",class:"action-year",truncate:"none",variant:"dark",tone:"quiet",onClick:this.handleYearActionClick},this.currentYear)),this.showNextButton&&t("mds-button",{key:"d297451100785c186b8ae054fa0203007f218cb7",class:"action-forward",icon:d,variant:"dark",tone:"quiet",onClick:function(r){if(e.currentView==="calendar"){r.stopPropagation();e.changeMonth(1)}else if(e.currentView==="years"){r.stopPropagation();e.selectedYear+=10}else{r.stopPropagation()}}})),this.currentView==="calendar"&&t("section",{key:"bf8eba9f66065c91d0f4feac4ddbc93c1fc63ad4",class:"month-view"},t("header",{key:"c90bf7ed93129ab8bfc3ecaab99fb2d012adab39",class:"month-view__days-names"},this.weekdays.map((function(e){return t("mds-button",{class:"week-day-name",variant:"dark",tone:"quiet"},e)}))),t("div",{key:"6b5fb95ad179b38fefe0986b48a3a12a287ccf61",class:"month-view__cells"},this.weekDaysinMonth.map((function(r,n){return t("mds-calendar-cell",{key:n,today:o.now().toFormat("yyyy-MM-dd")===r.date.toFormat("yyyy-MM-dd"),date:r.date.toFormat("yyyy-MM-dd"),month:r.isCurrentMonth?"current":"other",disabled:function(){if(e.min&&e.min!==""&&r.date<o.fromISO(e.min)){return true}if(e.max&&e.max!==""&&r.date>o.fromISO(e.max)){return true}return undefined}(),onClick:function(n){n.stopPropagation();var t=n.currentTarget;if(e.rangePicker)e.handleRange(t,r.date);else e.handleSingleSelection(t,r.date)},title:r.date.setLocale(e.language).toFormat("cccc d LLLL").replace(/^./,(function(e){return e.toUpperCase()}))},r.date.toFormat("dd"))})))),this.currentView==="months"&&t("section",{key:"5353ed4497b33fb5260cf6c2d1f087b228a0cda3",class:"month-selection"},t("header",{key:"70247928e4a74589900b0acd3b8d02686e41a4d1",class:"month-view__month-names"},Array.from({length:12}).map((function(r,n){var a=o.local().set({month:n+1}).setLocale(e.language).toFormat("MMMM");return t("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentDate=e.currentDate.set({month:n+1});e.currentMonth=e.currentDate.toFormat("MMMM");e.currentView="calendar";e.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}},a)})))),this.currentView==="years"&&t("section",{key:"99dca1c5f3ce083cb3bb117ce8bb705faa83e19c",class:"year-selection"},t("header",{key:"7d479a8c05815560306486bf0825a521c971a6e4",class:"month-view__years"},Array.from({length:12}).map((function(r,n){var a=e.selectedYear+n;return t("mds-button",{class:"action",variant:"dark",tone:"quiet",onClick:function(r){r.stopPropagation();e.currentDate=e.currentDate.set({year:a});e.currentYear=a.toString();e.currentView="calendar";e.updateCalendar().then((function(){requestAnimationFrame((function(){return e.setDates()}))}))}},a)}))))))};Object.defineProperty(e.prototype,"host",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{startDate:["handleStartDate"],endDate:["handleEndDate"],viewDate:["handleViewDate"],hoverDate:["handleHoverDate"]}},enumerable:false,configurable:true});return e}());v.style=m;var b=':host{--mds-calendar-cell-background:transparent;--mds-calendar-cell-boundaries-background:transparent;--mds-calendar-cell-boundaries-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-boundaries-padding:0.25rem;--mds-calendar-cell-color:rgb(var(--tone-neutral-01));--mds-calendar-cell-other-month-background:transparent;--mds-calendar-cell-other-month-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-disabled-background:transparent;--mds-calendar-cell-disabled-color:rgb(var(--tone-neutral-07));--mds-calendar-cell-weekend-background:transparent;--mds-calendar-cell-weekend-color:rgb(var(--tone-neutral-06));--mds-calendar-cell-size:3rem;--mds-calendar-cell-selection-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-selection-week-boundaries-border-radius:calc(var(--mds-calendar-cell-size) / 2);--mds-calendar-cell-preselection-today-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-today-color:rgb(var(--variant-primary-03));--mds-calendar-cell-preselection-current-month-background:rgb(var(--variant-primary-08));--mds-calendar-cell-preselection-current-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-current-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-preselection-other-month-background:rgb(var(--variant-primary-09));--mds-calendar-cell-preselection-other-month-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-color:rgb(var(--tone-neutral-05));--mds-calendar-cell-preselection-other-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-background:rgb(var(--variant-primary-04));--mds-calendar-cell-selection-current-month-color:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-background:rgb(var(--tone-neutral));--mds-calendar-cell-selection-current-month-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-current-month-weekend-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-color:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-current-month-weekend-boundaries-background:rgb(var(--variant-primary-03));--mds-calendar-cell-selection-current-month-weekend-boundaries-color:rgb(var(--tone-neutral-03));--mds-calendar-cell-selection-other-month-background:rgb(var(--variant-primary-07));--mds-calendar-cell-selection-other-month-color:rgb(var(--tone-neutral-04));--mds-calendar-cell-selection-other-month-boundaries-background:rgb(var(--variant-primary-10));--mds-calendar-cell-selection-other-month-boundaries-color:rgb(var(--tone-neutral-05));aspect-ratio:1 / 1;display:-ms-flexbox;display:flex;padding:var(--mds-calendar-cell-boundaries-padding);position:relative}:host([month="other"]){visibility:var(--mds-calendar-cell-other-month-visibility, hidden)}.inner-dot{aspect-ratio:1 / 1;background-color:var(--mds-calendar-cell-inner-background);border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);display:-ms-flexbox;display:flex;min-height:0;min-width:0;width:100%;z-index:1}.area-background{background-color:var(--mds-calendar-cell-background);color:var(--mds-calendar-cell-color);inset:0;position:absolute;z-index:0}.action{-ms-flex-align:center;align-items:center;aspect-ratio:1 / 1;background-color:transparent;border-radius:0;color:var(--mds-calendar-cell-color);display:-ms-flexbox;display:flex;inset:calc(var(--mds-calendar-cell-gap) * -1);-ms-flex-pack:center;justify-content:center;min-height:0;min-width:0;padding:0;position:absolute;width:auto;z-index:2}:host([selection][orientation="horizontal"]) .area-background{margin-left:calc(var(--mds-calendar-cell-gap) * -1);margin-right:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="horizontal"]) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0}:host([selection="end"][orientation="horizontal"]) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-right:0}:host([selection][orientation="vertical"]) .area-background{margin-bottom:calc(var(--mds-calendar-cell-gap) * -1);margin-top:calc(var(--mds-calendar-cell-gap) * -1)}:host([selection="start"][orientation="vertical"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius) 0 0;margin-top:0}:host([selection="end"][orientation="vertical"]) .area-background{border-radius:0 0 var(--mds-calendar-cell-selection-boundaries-border-radius) var(--mds-calendar-cell-selection-boundaries-border-radius);margin-bottom:0}:host([orientation="vertical"]:not([selection="start"],[selection="end"])) .area-background{border-radius:0}:host(:nth-child(7n - 6)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n - 6)) .area-background{border-bottom-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-left-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host(:nth-child(7n)) .area-background,:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-week-boundaries-border-radius)}:host([selection="end"][orientation="horizontal"]:nth-child(7n)) .area-background{border-bottom-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);border-top-right-radius:var(--mds-calendar-cell-selection-boundaries-border-radius)}:host([selection][orientation="horizontal"]:nth-child(7n - 6)) .area-background{margin-left:0}:host([selection][orientation="horizontal"]:nth-child(7n)) .area-background{margin-right:0}:host([selection="single"][orientation="horizontal"]) .area-background{border-radius:var(--mds-calendar-cell-selection-boundaries-border-radius);margin-left:0;margin-right:0}:host(:nth-child(7n - 1)),:host(:nth-child(7n)){--mds-calendar-cell-color:var(--mds-calendar-cell-weekend-color);--mds-calendar-cell-background:var(--mds-calendar-cell-weekend-background)}:host([month="other"]:not([selection])){--mds-calendar-cell-color:var(--mds-calendar-cell-other-month-color);--mds-calendar-cell-background:var(--mds-calendar-cell-other-month-background)}:host([disabled]){--mds-calendar-cell-color:var(--mds-calendar-cell-disabled-color);--mds-calendar-cell-background:var(--mds-calendar-cell-disabled-background);cursor:auto;pointer-events:none}:host(:not([selection])[today]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-today-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-today-color)}:host([selection][month="current"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-color)}:host([selection][month="current"]:nth-child(7n - 1)),:host([selection][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-color)}:host([selection="start"][month="current"]:nth-child(7n - 1)),:host([selection="end"][month="current"]:nth-child(7n - 1)),:host([selection="start"][month="current"]:nth-child(7n)),:host([selection="end"][month="current"]:nth-child(7n)){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-weekend-boundaries-color)}:host([selection][month="other"]){--mds-calendar-cell-background:var(--mds-calendar-cell-selection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-color)}:host([selection="start"][month="current"]),:host([selection="end"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-current-month-boundaries-color)}:host([selection="start"][month="other"]),:host([selection="end"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-selection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-selection-other-month-boundaries-color)}:host([selection][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-current-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-color)}:host([selection][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-background:var(--mds-calendar-cell-preselection-other-month-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-color)}:host([selection="start"][month="current"][preview]:not([preview="false"])),:host([selection="end"][month="current"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="start"][month="other"][preview]:not([preview="false"])),:host([selection="end"][month="other"][preview]:not([preview="false"])){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}:host([selection="single"][month="current"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-current-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-current-month-boundaries-color)}:host([selection="single"][month="other"]){--mds-calendar-cell-inner-background:var(--mds-calendar-cell-preselection-other-month-boundaries-background);--mds-calendar-cell-color:var(--mds-calendar-cell-preselection-other-month-boundaries-color)}';var f=b;var g=e("mds_calendar_cell",function(){function e(e){r(this,e);this.month="current";this.orientation="horizontal";this.preview=false;this.disabled=undefined;this.today=undefined}e.prototype.render=function(){return t(a,{key:"09389f01297dc7e38499fc5783fbe7b5be73cee5"},t("div",{key:"6501ca7b41eed8696e60156abf53f0cbbecae8d5",class:"inner-dot"}),t("div",{key:"34f8e50ba0032d7d9d3dd63aafc5ac536f1a0adf",class:"area-background"}),t("mds-button",{key:"bedafcb2817bfeac6ebee9fa3e0887a41a1bce9b",class:"action",variant:"dark",tone:"quiet",disabled:this.disabled},t("slot",{key:"197f10e47b61a6c6140774cd3e2443df61d9e4a4"})))};return e}());g.style=f}}}));
|