@sebgroup/green-core 1.22.5 → 1.22.7
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/chunks/{chunk.M6PNMIPM.js → chunk.2CTAOHSQ.js} +4 -4
- package/chunks/{chunk.3HOISE7A.js → chunk.2R2O3KFW.js} +2 -2
- package/chunks/{chunk.RDF7HAMB.js → chunk.3H33XVWJ.js} +1 -1
- package/chunks/{chunk.5BE45XSY.js → chunk.444NQSRC.js} +1 -1
- package/chunks/{chunk.7TKBL5FI.js → chunk.BBK7KTSS.js} +5 -4
- package/chunks/{chunk.CQEVE6G2.js → chunk.CJGXQ3NY.js} +1 -1
- package/chunks/{chunk.RZYLEJ2B.js → chunk.H6RXRLUS.js} +1 -1
- package/chunks/{chunk.LUVWPGEZ.js → chunk.HTO27AN6.js} +60 -51
- package/chunks/{chunk.SADQVU55.js → chunk.I42JFNWU.js} +1 -1
- package/chunks/{chunk.B3BW3PBO.js → chunk.INUGPDLT.js} +1 -1
- package/chunks/{chunk.JTHC55GT.js → chunk.MH7NZ2OW.js} +2 -2
- package/chunks/{chunk.4GV3GZDR.js → chunk.OTGTPZKJ.js} +1 -1
- package/chunks/{chunk.BBNXIM5R.js → chunk.P5AVETBK.js} +1 -1
- package/chunks/{chunk.7L57YQRC.js → chunk.R2WCFDOE.js} +1 -1
- package/chunks/{chunk.IZCUWVP7.js → chunk.RR6KZWRK.js} +3 -3
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/{chunk.RLQGNXDH.js → chunk.WQBUZSDG.js} +1 -1
- package/chunks/{chunk.2GUDH3ZQ.js → chunk.X2C3WXAI.js} +1 -1
- package/chunks/{chunk.BLUA5Y6H.js → chunk.XESWJ5HC.js} +1 -1
- package/chunks/{chunk.N6CHLBTX.js → chunk.ZD44G2F3.js} +1 -1
- package/chunks/{chunk.VHMTUAA4.js → chunk.ZL5JAD2L.js} +30 -19
- package/components/button/button.js +4 -4
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/index.js +4 -4
- package/components/context-menu/context-menu.js +5 -5
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/context-menu/index.js +6 -6
- package/components/datepicker/datepicker.js +11 -11
- package/components/datepicker/datepicker.trans.styles.js +1 -1
- package/components/datepicker/index.js +11 -11
- package/components/dropdown/dropdown.js +5 -5
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/index.js +6 -6
- package/components/filter-chips/filter-chip/filter-chip.js +5 -5
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +1 -1
- package/components/filter-chips/filter-chip/index.js +5 -5
- package/components/filter-chips/filter-chips.js +5 -5
- package/components/filter-chips/filter-chips.trans.styles.js +1 -1
- package/components/filter-chips/index.js +5 -5
- package/components/grid/grid.js +2 -2
- package/components/grid/index.js +2 -2
- package/components/grouped-list/grouped-list.js +2 -2
- package/components/grouped-list/grouped-list.trans.styles.js +1 -1
- package/components/grouped-list/index.js +2 -2
- package/components/index.js +20 -20
- package/components/popover/index.js +2 -2
- package/components/popover/popover.js +2 -2
- package/components/popover/popover.trans.styles.js +1 -1
- package/components/segmented-control/index.js +4 -4
- package/components/segmented-control/segment/index.js +3 -3
- package/components/segmented-control/segment/segment.js +3 -3
- package/components/segmented-control/segment/segment.trans.styles.js +1 -1
- package/components/segmented-control/segmented-control.js +4 -4
- package/components/segmented-control/segmented-control.trans.styles.js +1 -1
- package/components/theme/index.js +2 -2
- package/components/theme/theme.js +2 -2
- package/components/theme/theme.trans.styles.js +1 -1
- package/index.js +20 -20
- package/package.json +1 -1
- package/primitives/calendar/calendar.js +2 -2
- package/primitives/calendar/index.js +2 -2
- package/primitives/listbox/index.js +3 -3
- package/primitives/listbox/listbox.js +3 -3
- package/primitives/listbox/option.js +2 -2
- package/primitives/menu/index.js +3 -3
- package/primitives/menu/menu-heading.js +2 -2
- package/primitives/menu/menu-item.js +2 -2
- package/primitives/menu/menu.js +3 -3
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/transitional-styles.js +1 -1
|
@@ -4,7 +4,7 @@ import { unsafeCSS } from "lit";
|
|
|
4
4
|
// dist/libs/tokens/internal/pallet.css?inline
|
|
5
5
|
var pallet_default = `/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on
|
|
7
|
+
* Generated on Fri, 14 Jun 2024 12:52:45 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
:host {
|
|
@@ -165,7 +165,7 @@ var pallet_default = `/**
|
|
|
165
165
|
// dist/libs/tokens/internal/theme/light.css?inline
|
|
166
166
|
var light_default = `/**
|
|
167
167
|
* Do not edit directly
|
|
168
|
-
* Generated on
|
|
168
|
+
* Generated on Fri, 14 Jun 2024 12:52:45 GMT
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
171
|
:host {
|
|
@@ -286,7 +286,7 @@ var light_default = `/**
|
|
|
286
286
|
// dist/libs/tokens/internal/size.css?inline
|
|
287
287
|
var size_default = `/**
|
|
288
288
|
* Do not edit directly
|
|
289
|
-
* Generated on
|
|
289
|
+
* Generated on Fri, 14 Jun 2024 12:52:45 GMT
|
|
290
290
|
*/
|
|
291
291
|
|
|
292
292
|
:host {
|
|
@@ -532,7 +532,7 @@ var size_default = `/**
|
|
|
532
532
|
// dist/libs/tokens/internal/motion.css?inline
|
|
533
533
|
var motion_default = `/**
|
|
534
534
|
* Do not edit directly
|
|
535
|
-
* Generated on
|
|
535
|
+
* Generated on Fri, 14 Jun 2024 12:52:45 GMT
|
|
536
536
|
*/
|
|
537
537
|
|
|
538
538
|
:host {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.NNJ6DJO2.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.HTO27AN6.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsElement
|
|
9
9
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -160,15 +160,16 @@ var GdsCalendar = class extends GdsElement {
|
|
|
160
160
|
id="dateCell-${day.getDate()}"
|
|
161
161
|
>
|
|
162
162
|
<span
|
|
163
|
-
|
|
163
|
+
class="number"
|
|
164
|
+
style="--_color: ${customization ? customization == null ? void 0 : customization.color : ""}"
|
|
164
165
|
>${day.getDate()}</span
|
|
165
166
|
>
|
|
166
167
|
|
|
167
168
|
${when(
|
|
168
169
|
customization.indicator,
|
|
169
170
|
() => html`<span
|
|
170
|
-
class="
|
|
171
|
-
style="
|
|
171
|
+
class="indicator-${customization == null ? void 0 : customization.indicator}"
|
|
172
|
+
style="--_color: ${customization == null ? void 0 : customization.color}"
|
|
172
173
|
></span>`
|
|
173
174
|
)}
|
|
174
175
|
</td>
|
|
@@ -787,12 +787,13 @@ function register2() {
|
|
|
787
787
|
var popover_trans_styles_default2 = register2;
|
|
788
788
|
|
|
789
789
|
// libs/core/src/components/dropdown/dropdown.trans.styles.ts
|
|
790
|
-
function
|
|
790
|
+
function register4() {
|
|
791
791
|
register();
|
|
792
792
|
register2();
|
|
793
|
+
register3();
|
|
793
794
|
TransitionalStyles.instance.register("gds-dropdown", dropdown_trans_styles_default.toString());
|
|
794
795
|
}
|
|
795
|
-
var dropdown_trans_styles_default2 =
|
|
796
|
+
var dropdown_trans_styles_default2 = register4;
|
|
796
797
|
|
|
797
798
|
// libs/core/src/components/context-menu/context-menu.trans.styles.scss?inline
|
|
798
799
|
var context_menu_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
@@ -987,12 +988,12 @@ i.sg-icon.sg-icon-ellipsis::before {
|
|
|
987
988
|
}`;
|
|
988
989
|
|
|
989
990
|
// libs/core/src/components/context-menu/context-menu.trans.styles.ts
|
|
990
|
-
function
|
|
991
|
+
function register5() {
|
|
991
992
|
TransitionalStyles.instance.register("gds-context-menu", context_menu_trans_styles_default.toString());
|
|
992
993
|
register2();
|
|
993
994
|
register();
|
|
994
995
|
}
|
|
995
|
-
var context_menu_trans_styles_default2 =
|
|
996
|
+
var context_menu_trans_styles_default2 = register5;
|
|
996
997
|
|
|
997
998
|
// libs/core/src/components/datepicker/datepicker.trans.styles.scss?inline
|
|
998
999
|
var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
@@ -1256,35 +1257,35 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1256
1257
|
:host table {
|
|
1257
1258
|
border-spacing: 0;
|
|
1258
1259
|
}
|
|
1259
|
-
:host
|
|
1260
|
-
:host
|
|
1260
|
+
:host th,
|
|
1261
|
+
:host td {
|
|
1261
1262
|
box-sizing: border-box;
|
|
1262
1263
|
height: 2.75rem;
|
|
1263
1264
|
text-align: center;
|
|
1264
1265
|
width: 2.75rem;
|
|
1265
1266
|
}
|
|
1266
|
-
:host
|
|
1267
|
+
:host thead {
|
|
1267
1268
|
/* days */
|
|
1268
1269
|
}
|
|
1269
|
-
:host
|
|
1270
|
+
:host thead th {
|
|
1270
1271
|
background: var(--sg-bg-level-2);
|
|
1271
1272
|
border-bottom: solid 1px var(--sg-grey-300);
|
|
1272
1273
|
font-weight: 400;
|
|
1273
1274
|
top: 0;
|
|
1274
1275
|
}
|
|
1275
1276
|
@media (max-width: 35.98em) {
|
|
1276
|
-
:host
|
|
1277
|
+
:host thead th {
|
|
1277
1278
|
position: sticky;
|
|
1278
1279
|
}
|
|
1279
1280
|
}
|
|
1280
|
-
:host
|
|
1281
|
+
:host tbody {
|
|
1281
1282
|
/* week numbers */
|
|
1282
1283
|
/* dates */
|
|
1283
1284
|
}
|
|
1284
|
-
:host
|
|
1285
|
+
:host tbody th {
|
|
1285
1286
|
font-weight: 400;
|
|
1286
1287
|
}
|
|
1287
|
-
:host
|
|
1288
|
+
:host tbody td {
|
|
1288
1289
|
border: solid 1px transparent;
|
|
1289
1290
|
font-weight: 500;
|
|
1290
1291
|
-webkit-user-select: none;
|
|
@@ -1299,56 +1300,56 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1299
1300
|
/* active (pressed) */
|
|
1300
1301
|
/* disabled */
|
|
1301
1302
|
}
|
|
1302
|
-
:host
|
|
1303
|
+
:host tbody td.sg-date-holiday:not(.disabled) {
|
|
1303
1304
|
background: var(--sg-bg-level-2);
|
|
1304
1305
|
color: hsl(var(--sg-hsl-red-2));
|
|
1305
1306
|
}
|
|
1306
|
-
:host
|
|
1307
|
+
:host tbody td.today {
|
|
1307
1308
|
background: transparent;
|
|
1308
1309
|
border-radius: 4px;
|
|
1309
1310
|
box-shadow: inset 0 0 0 2px var(--grey-1000);
|
|
1310
1311
|
color: var(--grey-1000);
|
|
1311
1312
|
}
|
|
1312
|
-
:host
|
|
1313
|
+
:host tbody td:hover:not(.disabled) {
|
|
1313
1314
|
background: var(--grey-500);
|
|
1314
1315
|
border: solid 1px var(--sg-bg-level-2);
|
|
1315
1316
|
border-radius: 4px;
|
|
1316
1317
|
color: var(--gds-sys-color-font);
|
|
1317
1318
|
cursor: pointer;
|
|
1318
1319
|
}
|
|
1319
|
-
:host
|
|
1320
|
+
:host tbody td:focus-visible:focus:not(:focus-visible) {
|
|
1320
1321
|
box-shadow: none;
|
|
1321
1322
|
outline: 0;
|
|
1322
1323
|
}
|
|
1323
|
-
:host
|
|
1324
|
+
:host tbody td:focus-visible:focus, :host tbody td:focus-visible:focus-visible {
|
|
1324
1325
|
outline-color: var(--gds-sys-color-focus-outline);
|
|
1325
1326
|
outline-style: solid;
|
|
1326
1327
|
outline-width: 0.125rem;
|
|
1327
1328
|
outline-offset: 0.125rem;
|
|
1328
1329
|
}
|
|
1329
|
-
:host
|
|
1330
|
+
:host tbody td:focus-visible:not(.disabled) {
|
|
1330
1331
|
border: solid 1px var(--sg-bg-level-2);
|
|
1331
1332
|
border-radius: 4px;
|
|
1332
1333
|
cursor: pointer;
|
|
1333
1334
|
position: relative;
|
|
1334
1335
|
z-index: 0;
|
|
1335
1336
|
}
|
|
1336
|
-
:host
|
|
1337
|
+
:host tbody td[aria-selected=true] {
|
|
1337
1338
|
background: var(--grey-1000);
|
|
1338
1339
|
border: solid 1px var(--sg-bg-level-2);
|
|
1339
1340
|
border-radius: 4px;
|
|
1340
1341
|
color: hsl(var(--sg-hsl-white));
|
|
1341
1342
|
}
|
|
1342
|
-
:host
|
|
1343
|
+
:host tbody td[tabindex="0"] {
|
|
1343
1344
|
border-radius: 4px;
|
|
1344
1345
|
}
|
|
1345
|
-
:host
|
|
1346
|
+
:host tbody td:hover:active:not(.disabled) {
|
|
1346
1347
|
background: var(--grey-1000);
|
|
1347
1348
|
border: solid 1px var(--sg-bg-level-2);
|
|
1348
1349
|
border-radius: 4px;
|
|
1349
1350
|
color: hsl(var(--sg-hsl-white));
|
|
1350
1351
|
}
|
|
1351
|
-
:host
|
|
1352
|
+
:host tbody td.disabled {
|
|
1352
1353
|
background: hsl(var(--sg-hsl-disabled-background));
|
|
1353
1354
|
border: solid 1px var(--sg-bg-level-2);
|
|
1354
1355
|
border-radius: 4px;
|
|
@@ -1356,13 +1357,20 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1356
1357
|
cursor: not-allowed;
|
|
1357
1358
|
font-weight: 400;
|
|
1358
1359
|
}
|
|
1359
|
-
:host
|
|
1360
|
+
:host tbody td.disabled.sg-date-holiday {
|
|
1360
1361
|
color: hsla(var(--sg-hsl-red-2), 0.25);
|
|
1361
1362
|
}
|
|
1362
|
-
:host
|
|
1363
|
+
:host tbody td.disabled .number,
|
|
1364
|
+
:host tbody td.disabled .indicator-dot {
|
|
1365
|
+
--_color: hsl(var(--sg-hsl-disabled-color)) !important;
|
|
1366
|
+
}
|
|
1367
|
+
:host tbody td.custom-date {
|
|
1363
1368
|
position: relative;
|
|
1364
1369
|
}
|
|
1365
|
-
:host
|
|
1370
|
+
:host tbody .number {
|
|
1371
|
+
color: var(--_color, "currentColor");
|
|
1372
|
+
}
|
|
1373
|
+
:host tbody .indicator-dot {
|
|
1366
1374
|
display: block;
|
|
1367
1375
|
width: 0.375rem;
|
|
1368
1376
|
height: 0.375rem;
|
|
@@ -1372,6 +1380,7 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1372
1380
|
position: absolute;
|
|
1373
1381
|
inset-block-end: 0.125rem;
|
|
1374
1382
|
inset-inline: 0;
|
|
1383
|
+
background-color: var(--_color);
|
|
1375
1384
|
}
|
|
1376
1385
|
table {
|
|
1377
1386
|
flex-grow: 1;
|
|
@@ -1388,18 +1397,18 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1388
1397
|
}`;
|
|
1389
1398
|
|
|
1390
1399
|
// libs/core/src/primitives/calendar/calendar.trans.styles.ts
|
|
1391
|
-
function
|
|
1400
|
+
function register6() {
|
|
1392
1401
|
TransitionalStyles.instance.register("gds-calendar", calendar_trans_styles_default.toString());
|
|
1393
1402
|
}
|
|
1394
1403
|
|
|
1395
1404
|
// libs/core/src/components/datepicker/datepicker.trans.styles.ts
|
|
1396
|
-
function
|
|
1405
|
+
function register7() {
|
|
1397
1406
|
TransitionalStyles.instance.register("gds-datepicker", datepicker_trans_styles_default.toString());
|
|
1398
|
-
|
|
1407
|
+
register4();
|
|
1399
1408
|
register2();
|
|
1400
|
-
|
|
1409
|
+
register6();
|
|
1401
1410
|
}
|
|
1402
|
-
var datepicker_trans_styles_default2 =
|
|
1411
|
+
var datepicker_trans_styles_default2 = register7;
|
|
1403
1412
|
|
|
1404
1413
|
// libs/core/src/components/grouped-list/grouped-list.trans.styles.scss?inline
|
|
1405
1414
|
var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
@@ -1428,10 +1437,10 @@ var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles
|
|
|
1428
1437
|
}`;
|
|
1429
1438
|
|
|
1430
1439
|
// libs/core/src/components/grouped-list/grouped-list.trans.styles.ts
|
|
1431
|
-
function
|
|
1440
|
+
function register8() {
|
|
1432
1441
|
TransitionalStyles.instance.register("gds-grouped-list", grouped_list_trans_styles_default.toString());
|
|
1433
1442
|
}
|
|
1434
|
-
var grouped_list_trans_styles_default2 =
|
|
1443
|
+
var grouped_list_trans_styles_default2 = register8;
|
|
1435
1444
|
|
|
1436
1445
|
// libs/core/src/components/segmented-control/segmented-control.trans.styles.css?inline
|
|
1437
1446
|
var segmented_control_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
@@ -1588,20 +1597,20 @@ var segment_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
|
1588
1597
|
`;
|
|
1589
1598
|
|
|
1590
1599
|
// libs/core/src/components/segmented-control/segment/segment.trans.styles.ts
|
|
1591
|
-
function
|
|
1600
|
+
function register9() {
|
|
1592
1601
|
TransitionalStyles.instance.register("gds-segmented", segment_trans_styles_default.toString());
|
|
1593
1602
|
}
|
|
1594
|
-
var segment_trans_styles_default2 =
|
|
1603
|
+
var segment_trans_styles_default2 = register9;
|
|
1595
1604
|
|
|
1596
1605
|
// libs/core/src/components/segmented-control/segmented-control.trans.styles.ts
|
|
1597
|
-
function
|
|
1606
|
+
function register10() {
|
|
1598
1607
|
TransitionalStyles.instance.register(
|
|
1599
1608
|
"gds-segmented-control",
|
|
1600
1609
|
segmented_control_trans_styles_default.toString()
|
|
1601
1610
|
);
|
|
1602
|
-
|
|
1611
|
+
register9();
|
|
1603
1612
|
}
|
|
1604
|
-
var segmented_control_trans_styles_default2 =
|
|
1613
|
+
var segmented_control_trans_styles_default2 = register10;
|
|
1605
1614
|
|
|
1606
1615
|
// libs/core/src/components/filter-chips/filter-chips.trans.styles.scss?inline
|
|
1607
1616
|
var filter_chips_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
@@ -1628,7 +1637,7 @@ var filter_chip_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
|
1628
1637
|
// libs/core/src/components/filter-chips/filter-chip/filter-chip.trans.styles.ts
|
|
1629
1638
|
function register11() {
|
|
1630
1639
|
TransitionalStyles.instance.register("gds-filter-chip", filter_chip_trans_styles_default.toString());
|
|
1631
|
-
|
|
1640
|
+
register3();
|
|
1632
1641
|
}
|
|
1633
1642
|
var filter_chip_trans_styles_default2 = register11;
|
|
1634
1643
|
|
|
@@ -2235,13 +2244,13 @@ var theme_trans_styles_default = register13;
|
|
|
2235
2244
|
// libs/core/src/utils/transitional-styles/transitional-styles.ts
|
|
2236
2245
|
var registerTransitionalStyles = () => {
|
|
2237
2246
|
register13();
|
|
2238
|
-
register3();
|
|
2239
2247
|
register4();
|
|
2240
|
-
|
|
2248
|
+
register5();
|
|
2241
2249
|
register7();
|
|
2242
|
-
|
|
2243
|
-
register12();
|
|
2250
|
+
register8();
|
|
2244
2251
|
register10();
|
|
2252
|
+
register12();
|
|
2253
|
+
register3();
|
|
2245
2254
|
};
|
|
2246
2255
|
var _styles, _elements, _useLegacyStylesheets;
|
|
2247
2256
|
var _TransitionalStyles = class _TransitionalStyles {
|
|
@@ -2742,27 +2751,27 @@ i.sg-icon.sg-icon-ellipsis::before {
|
|
|
2742
2751
|
}`;
|
|
2743
2752
|
|
|
2744
2753
|
// libs/core/src/components/button/button.trans.styles.ts
|
|
2745
|
-
function
|
|
2754
|
+
function register3() {
|
|
2746
2755
|
TransitionalStyles.instance.register("gds-button", button_trans_styles_default.toString());
|
|
2747
2756
|
}
|
|
2748
|
-
var button_trans_styles_default2 =
|
|
2757
|
+
var button_trans_styles_default2 = register3;
|
|
2749
2758
|
|
|
2750
2759
|
export {
|
|
2751
|
-
|
|
2760
|
+
register3 as register,
|
|
2752
2761
|
button_trans_styles_default2 as button_trans_styles_default,
|
|
2753
2762
|
register2,
|
|
2754
2763
|
popover_trans_styles_default2 as popover_trans_styles_default,
|
|
2755
|
-
register3,
|
|
2764
|
+
register4 as register3,
|
|
2756
2765
|
dropdown_trans_styles_default2 as dropdown_trans_styles_default,
|
|
2757
|
-
register4,
|
|
2766
|
+
register5 as register4,
|
|
2758
2767
|
context_menu_trans_styles_default2 as context_menu_trans_styles_default,
|
|
2759
|
-
|
|
2768
|
+
register7 as register5,
|
|
2760
2769
|
datepicker_trans_styles_default2 as datepicker_trans_styles_default,
|
|
2761
|
-
|
|
2770
|
+
register8 as register6,
|
|
2762
2771
|
grouped_list_trans_styles_default2 as grouped_list_trans_styles_default,
|
|
2763
|
-
|
|
2772
|
+
register9 as register7,
|
|
2764
2773
|
segment_trans_styles_default2 as segment_trans_styles_default,
|
|
2765
|
-
|
|
2774
|
+
register10 as register8,
|
|
2766
2775
|
segmented_control_trans_styles_default2 as segmented_control_trans_styles_default,
|
|
2767
2776
|
register11 as register9,
|
|
2768
2777
|
filter_chip_trans_styles_default2 as filter_chip_trans_styles_default,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokens
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2CTAOHSQ.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsFormControlElement
|
|
6
6
|
} from "./chunk.MZSK66DN.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.KBYQYDL3.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.HTO27AN6.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.2R2O3KFW.js";
|
|
4
4
|
import {
|
|
5
5
|
resizeObserver
|
|
6
6
|
} from "./chunk.VHN4JEZC.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.2CTAOHSQ.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.HTO27AN6.js";
|
|
13
13
|
import {
|
|
14
14
|
GdsElement
|
|
15
15
|
} from "./chunk.ZQ4D5K7J.js";
|
package/chunks/chunk.VOYMQ322.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// libs/core/src/utils/helpers/custom-element-scoping.ts
|
|
2
2
|
import { html as litHtml } from "lit";
|
|
3
3
|
import { customElement } from "lit/decorators.js";
|
|
4
|
-
var VER_SUFFIX = "-
|
|
4
|
+
var VER_SUFFIX = "-f014f7";
|
|
5
5
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
6
6
|
var gdsCustomElement = (tagName) => {
|
|
7
7
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk.MZSK66DN.js";
|
|
8
8
|
import {
|
|
9
9
|
TransitionalStyles
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.HTO27AN6.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -116,20 +116,23 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
116
116
|
const pasted = (_a = e.clipboardData) == null ? void 0 : _a.getData("text/plain");
|
|
117
117
|
if (!pasted)
|
|
118
118
|
return;
|
|
119
|
-
let pastedDate = new Date(
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
}
|
|
119
|
+
let pastedDate = /* @__PURE__ */ new Date("-");
|
|
120
|
+
const invalid = "Invalid Date";
|
|
121
|
+
const parts = pasted.split(this._dateFormatLayout.delimiter);
|
|
122
|
+
if (parts.length === 3) {
|
|
123
|
+
const layout = this._dateFormatLayout.layout;
|
|
124
|
+
const year = parseInt(parts[layout.findIndex((f) => f.token === "y")]);
|
|
125
|
+
const month = parseInt(parts[layout.findIndex((f) => f.token === "m")]) - 1;
|
|
126
|
+
const day = parseInt(parts[layout.findIndex((f) => f.token === "d")]);
|
|
127
|
+
if (!isNaN(year) && !isNaN(month) && !isNaN(day)) {
|
|
128
|
+
pastedDate = /* @__PURE__ */ new Date(`${year}-${month + 1}-${day}`);
|
|
130
129
|
}
|
|
131
|
-
|
|
130
|
+
}
|
|
131
|
+
if (pastedDate.toString() === invalid) {
|
|
132
|
+
pastedDate = new Date(pasted);
|
|
133
|
+
if (pastedDate.toString() === invalid) {
|
|
132
134
|
return;
|
|
135
|
+
}
|
|
133
136
|
}
|
|
134
137
|
this.value = pastedDate;
|
|
135
138
|
__privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
|
|
@@ -413,7 +416,8 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
413
416
|
<gds-button
|
|
414
417
|
rank="tertiary"
|
|
415
418
|
size="small"
|
|
416
|
-
@click=${() => {
|
|
419
|
+
@click=${(e) => {
|
|
420
|
+
e.stopPropagation();
|
|
417
421
|
this.value = void 0;
|
|
418
422
|
this.open = false;
|
|
419
423
|
__privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
|
|
@@ -425,7 +429,8 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
425
429
|
<gds-button
|
|
426
430
|
rank="tertiary"
|
|
427
431
|
size="small"
|
|
428
|
-
@click=${() => {
|
|
432
|
+
@click=${(e) => {
|
|
433
|
+
e.stopPropagation();
|
|
429
434
|
__privateMethod(this, _focusDate, focusDate_fn).call(this, /* @__PURE__ */ new Date());
|
|
430
435
|
}}
|
|
431
436
|
>
|
|
@@ -466,10 +471,16 @@ renderBackToValidRangeButton_fn = async function() {
|
|
|
466
471
|
let buttonAction;
|
|
467
472
|
if (focusedDate && focusedDate > this.max) {
|
|
468
473
|
buttonTxt = msg("Last available date");
|
|
469
|
-
buttonAction = () =>
|
|
474
|
+
buttonAction = (e) => {
|
|
475
|
+
e.stopPropagation();
|
|
476
|
+
__privateMethod(this, _focusDate, focusDate_fn).call(this, this.max);
|
|
477
|
+
};
|
|
470
478
|
} else if (focusedDate && focusedDate < this.min) {
|
|
471
479
|
buttonTxt = msg("First available date");
|
|
472
|
-
buttonAction = () =>
|
|
480
|
+
buttonAction = (e) => {
|
|
481
|
+
e.stopPropagation();
|
|
482
|
+
__privateMethod(this, _focusDate, focusDate_fn).call(this, this.min);
|
|
483
|
+
};
|
|
473
484
|
}
|
|
474
485
|
return html`${when(
|
|
475
486
|
buttonTxt.length > 0,
|
|
@@ -481,8 +492,8 @@ renderBackToValidRangeButton_fn = async function() {
|
|
|
481
492
|
};
|
|
482
493
|
_focusDate = new WeakSet();
|
|
483
494
|
focusDate_fn = function(d) {
|
|
484
|
-
const
|
|
485
|
-
this._elCalendar.then((el) => el.focusedDate =
|
|
495
|
+
const focusDate = new Date(d);
|
|
496
|
+
this._elCalendar.then((el) => el.focusedDate = focusDate).then(__privateGet(this, _handleCalendarFocusChange));
|
|
486
497
|
};
|
|
487
498
|
_getSpinnerLabel = new WeakSet();
|
|
488
499
|
getSpinnerLabel_fn = function(name) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsButton
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.MH7NZ2OW.js";
|
|
4
4
|
import "../../chunks/chunk.TX64TTBN.js";
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.WQBUZSDG.js";
|
|
6
|
+
import "../../chunks/chunk.2CTAOHSQ.js";
|
|
7
7
|
import "../../chunks/chunk.MZSK66DN.js";
|
|
8
8
|
import "../../chunks/chunk.KBYQYDL3.js";
|
|
9
|
-
import "../../chunks/chunk.
|
|
9
|
+
import "../../chunks/chunk.HTO27AN6.js";
|
|
10
10
|
import "../../chunks/chunk.WM7HBMMV.js";
|
|
11
11
|
import "../../chunks/chunk.ZQ4D5K7J.js";
|
|
12
12
|
import "../../chunks/chunk.W7CV3QYI.js";
|