@sebgroup/green-core 1.22.3 → 1.22.5
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.Y3QYM3PT.js → chunk.2GUDH3ZQ.js} +12 -9
- package/chunks/{chunk.G4X44V6L.js → chunk.3HOISE7A.js} +2 -2
- package/chunks/{chunk.2U3TOPJJ.js → chunk.4GV3GZDR.js} +1 -1
- package/chunks/{chunk.R4LI4H4Q.js → chunk.5BE45XSY.js} +1 -1
- package/chunks/{chunk.S7K4GJTN.js → chunk.7L57YQRC.js} +1 -1
- package/chunks/{chunk.V6LS4RAA.js → chunk.7TKBL5FI.js} +1 -1
- package/chunks/{chunk.BRPJSXL7.js → chunk.B3BW3PBO.js} +1 -1
- package/chunks/{chunk.TUFHFRJL.js → chunk.BBNXIM5R.js} +1 -1
- package/chunks/{chunk.UCOIQUXN.js → chunk.BLUA5Y6H.js} +1 -1
- package/chunks/{chunk.BES3ZPRI.js → chunk.CQEVE6G2.js} +1 -1
- package/chunks/{chunk.NHZKTTUU.js → chunk.IZCUWVP7.js} +3 -3
- package/chunks/{chunk.WP6X6OCD.js → chunk.JTHC55GT.js} +3 -3
- package/chunks/{chunk.5LNBEZ2R.js → chunk.LUVWPGEZ.js} +19 -15
- package/chunks/{chunk.7PKWRBYZ.js → chunk.M6PNMIPM.js} +8 -8
- package/chunks/{chunk.XFVCUSEN.js → chunk.N6CHLBTX.js} +1 -1
- package/chunks/{chunk.2ARCMXYK.js → chunk.RDF7HAMB.js} +8 -2
- package/chunks/{chunk.3ORXRC33.js → chunk.RLQGNXDH.js} +2 -2
- package/chunks/{chunk.ABX5MSZM.js → chunk.RZYLEJ2B.js} +1 -1
- package/chunks/{chunk.IRMSZ2MB.js → chunk.SADQVU55.js} +1 -1
- package/chunks/{chunk.PUE4SIJE.js → chunk.VHMTUAA4.js} +21 -9
- package/chunks/chunk.VOYMQ322.js +1 -1
- 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.d.ts +1 -0
- 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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LUVWPGEZ.js";
|
|
4
4
|
import {
|
|
5
5
|
watchMediaQuery
|
|
6
6
|
} from "./chunk.WM7HBMMV.js";
|
|
@@ -78,7 +78,7 @@ var style = css`
|
|
|
78
78
|
var popover_styles_default = style;
|
|
79
79
|
|
|
80
80
|
// libs/core/src/components/popover/popover.ts
|
|
81
|
-
var _handleTriggerSlotChange, handleTriggerSlotChange_fn, _autoPositionCleanupFn, _isMobileViewport, _dispatchUiStateEvent, _handleCloseButton, _registerTriggerEvents, registerTriggerEvents_fn, _unregisterTriggerEvents, unregisterTriggerEvents_fn, _setupTriggerAttributes, setupTriggerAttributes_fn, _registerAutoPositioning, registerAutoPositioning_fn, _handleTriggerKeyDown, _handleTriggerClick, _focusFirstSlottedChild, _handleClickOutside;
|
|
81
|
+
var _handleTriggerSlotChange, handleTriggerSlotChange_fn, _autoPositionCleanupFn, _isMobileViewport, _handleCancel, _dispatchUiStateEvent, _handleCloseButton, _registerTriggerEvents, registerTriggerEvents_fn, _unregisterTriggerEvents, unregisterTriggerEvents_fn, _setupTriggerAttributes, setupTriggerAttributes_fn, _registerAutoPositioning, registerAutoPositioning_fn, _handleTriggerKeyDown, _handleTriggerClick, _focusFirstSlottedChild, _handleClickOutside;
|
|
82
82
|
var GdsPopover = class extends GdsElement {
|
|
83
83
|
constructor() {
|
|
84
84
|
super(...arguments);
|
|
@@ -102,6 +102,10 @@ var GdsPopover = class extends GdsElement {
|
|
|
102
102
|
// A function that removes the Floating UI auto positioning. This gets called when we switch to mobile view layout.
|
|
103
103
|
__privateAdd(this, _autoPositionCleanupFn, void 0);
|
|
104
104
|
__privateAdd(this, _isMobileViewport, false);
|
|
105
|
+
__privateAdd(this, _handleCancel, () => {
|
|
106
|
+
this.open = false;
|
|
107
|
+
__privateGet(this, _dispatchUiStateEvent).call(this, "cancel");
|
|
108
|
+
});
|
|
105
109
|
__privateAdd(this, _dispatchUiStateEvent, (reason) => {
|
|
106
110
|
this.dispatchEvent(
|
|
107
111
|
new CustomEvent("gds-ui-state", {
|
|
@@ -130,9 +134,8 @@ var GdsPopover = class extends GdsElement {
|
|
|
130
134
|
this.open = true;
|
|
131
135
|
__privateGet(this, _dispatchUiStateEvent).call(this, "show");
|
|
132
136
|
}
|
|
133
|
-
if (e.key === "Escape") {
|
|
134
|
-
this.
|
|
135
|
-
__privateGet(this, _dispatchUiStateEvent).call(this, "cancel");
|
|
137
|
+
if (e.key === "Escape" && this.open) {
|
|
138
|
+
__privateGet(this, _handleCancel).call(this);
|
|
136
139
|
}
|
|
137
140
|
});
|
|
138
141
|
__privateAdd(this, _handleTriggerClick, (e) => {
|
|
@@ -192,9 +195,8 @@ var GdsPopover = class extends GdsElement {
|
|
|
192
195
|
__privateMethod(this, _registerTriggerEvents, registerTriggerEvents_fn).call(this);
|
|
193
196
|
this._handleOpenChange();
|
|
194
197
|
this.addEventListener("keydown", (e) => {
|
|
195
|
-
if (e.key === "Escape") {
|
|
196
|
-
this.
|
|
197
|
-
__privateGet(this, _dispatchUiStateEvent).call(this, "cancel");
|
|
198
|
+
if (e.key === "Escape" && this.open) {
|
|
199
|
+
__privateGet(this, _handleCancel).call(this);
|
|
198
200
|
e.stopPropagation();
|
|
199
201
|
e.preventDefault();
|
|
200
202
|
}
|
|
@@ -227,7 +229,7 @@ var GdsPopover = class extends GdsElement {
|
|
|
227
229
|
"use-modal-in-mobile": this.useModalInMobileView
|
|
228
230
|
})}"
|
|
229
231
|
aria-hidden="${String(!this.open)}"
|
|
230
|
-
@close=${() => this.open
|
|
232
|
+
@close=${() => this.open && __privateGet(this, _handleCancel).call(this)}
|
|
231
233
|
>
|
|
232
234
|
<header>
|
|
233
235
|
<h2>${this.label}</h2>
|
|
@@ -295,6 +297,7 @@ handleTriggerSlotChange_fn = function() {
|
|
|
295
297
|
};
|
|
296
298
|
_autoPositionCleanupFn = new WeakMap();
|
|
297
299
|
_isMobileViewport = new WeakMap();
|
|
300
|
+
_handleCancel = new WeakMap();
|
|
298
301
|
_dispatchUiStateEvent = new WeakMap();
|
|
299
302
|
_handleCloseButton = new WeakMap();
|
|
300
303
|
_registerTriggerEvents = new WeakSet();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.3HOISE7A.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.M6PNMIPM.js";
|
|
10
10
|
import {
|
|
11
11
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.LUVWPGEZ.js";
|
|
13
13
|
import {
|
|
14
14
|
GdsElement
|
|
15
15
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokens
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.M6PNMIPM.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.LUVWPGEZ.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -57,7 +57,7 @@ var ForwardAttributesDirective = class extends Directive {
|
|
|
57
57
|
};
|
|
58
58
|
var forwardAttributes = directive(ForwardAttributesDirective);
|
|
59
59
|
|
|
60
|
-
// libs/core/src/components/button/button.style.css
|
|
60
|
+
// libs/core/src/components/button/button.style.css?inline
|
|
61
61
|
var button_style_default = `@layer tokens, a11y, core, ranks, sizes, variants, disabled;
|
|
62
62
|
|
|
63
63
|
@layer tokens {
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
// libs/core/src/utils/transitional-styles/transitional-styles.ts
|
|
15
15
|
import { unsafeCSS } from "lit";
|
|
16
16
|
|
|
17
|
-
// libs/core/src/components/dropdown/dropdown.trans.styles.scss
|
|
17
|
+
// libs/core/src/components/dropdown/dropdown.trans.styles.scss?inline
|
|
18
18
|
var dropdown_trans_styles_default = `/**
|
|
19
19
|
* Calculate the luminance for a color.
|
|
20
20
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -492,7 +492,7 @@ var dropdown_trans_styles_default = `/**
|
|
|
492
492
|
}
|
|
493
493
|
}`;
|
|
494
494
|
|
|
495
|
-
// libs/core/src/primitives/listbox/listbox.trans.styles.scss
|
|
495
|
+
// libs/core/src/primitives/listbox/listbox.trans.styles.scss?inline
|
|
496
496
|
var listbox_trans_styles_default = `/**
|
|
497
497
|
* Calculate the luminance for a color.
|
|
498
498
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -544,7 +544,7 @@ var listbox_trans_styles_default = `/**
|
|
|
544
544
|
}
|
|
545
545
|
}`;
|
|
546
546
|
|
|
547
|
-
// libs/core/src/primitives/listbox/option.trans.styles.scss
|
|
547
|
+
// libs/core/src/primitives/listbox/option.trans.styles.scss?inline
|
|
548
548
|
var option_trans_styles_default = `/**
|
|
549
549
|
* Calculate the luminance for a color.
|
|
550
550
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -638,7 +638,7 @@ var option_trans_styles_default = `/**
|
|
|
638
638
|
}
|
|
639
639
|
}`;
|
|
640
640
|
|
|
641
|
-
// libs/core/src/primitives/menu/menu-heading.trans.styles.scss
|
|
641
|
+
// libs/core/src/primitives/menu/menu-heading.trans.styles.scss?inline
|
|
642
642
|
var menu_heading_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
643
643
|
@layer transitional-styles {
|
|
644
644
|
:host {
|
|
@@ -667,7 +667,7 @@ function register() {
|
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
669
|
|
|
670
|
-
// libs/core/src/components/popover/popover.trans.styles.scss
|
|
670
|
+
// libs/core/src/components/popover/popover.trans.styles.scss?inline
|
|
671
671
|
var popover_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
672
672
|
/* stylelint-enable max-nesting-depth */
|
|
673
673
|
/**
|
|
@@ -794,7 +794,7 @@ function register3() {
|
|
|
794
794
|
}
|
|
795
795
|
var dropdown_trans_styles_default2 = register3;
|
|
796
796
|
|
|
797
|
-
// libs/core/src/components/context-menu/context-menu.trans.styles.scss
|
|
797
|
+
// libs/core/src/components/context-menu/context-menu.trans.styles.scss?inline
|
|
798
798
|
var context_menu_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
799
799
|
/* stylelint-enable max-nesting-depth */
|
|
800
800
|
/**
|
|
@@ -994,7 +994,7 @@ function register4() {
|
|
|
994
994
|
}
|
|
995
995
|
var context_menu_trans_styles_default2 = register4;
|
|
996
996
|
|
|
997
|
-
// libs/core/src/components/datepicker/datepicker.trans.styles.scss
|
|
997
|
+
// libs/core/src/components/datepicker/datepicker.trans.styles.scss?inline
|
|
998
998
|
var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
999
999
|
/* stylelint-enable max-nesting-depth */
|
|
1000
1000
|
/**
|
|
@@ -1209,7 +1209,7 @@ var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1209
1209
|
}
|
|
1210
1210
|
}`;
|
|
1211
1211
|
|
|
1212
|
-
// libs/core/src/primitives/calendar/calendar.trans.styles.scss
|
|
1212
|
+
// libs/core/src/primitives/calendar/calendar.trans.styles.scss?inline
|
|
1213
1213
|
var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
1214
1214
|
/* stylelint-enable max-nesting-depth */
|
|
1215
1215
|
/**
|
|
@@ -1401,7 +1401,7 @@ function register6() {
|
|
|
1401
1401
|
}
|
|
1402
1402
|
var datepicker_trans_styles_default2 = register6;
|
|
1403
1403
|
|
|
1404
|
-
// libs/core/src/components/grouped-list/grouped-list.trans.styles.scss
|
|
1404
|
+
// libs/core/src/components/grouped-list/grouped-list.trans.styles.scss?inline
|
|
1405
1405
|
var grouped_list_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1406
1406
|
@layer transitional-styles {
|
|
1407
1407
|
@layer _base, _overrides;
|
|
@@ -1433,7 +1433,7 @@ function register7() {
|
|
|
1433
1433
|
}
|
|
1434
1434
|
var grouped_list_trans_styles_default2 = register7;
|
|
1435
1435
|
|
|
1436
|
-
// libs/core/src/components/segmented-control/segmented-control.trans.styles.css
|
|
1436
|
+
// libs/core/src/components/segmented-control/segmented-control.trans.styles.css?inline
|
|
1437
1437
|
var segmented_control_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1438
1438
|
|
|
1439
1439
|
@layer transitional-styles {
|
|
@@ -1527,7 +1527,7 @@ var segmented_control_trans_styles_default = `@layer base, reset, transitional-s
|
|
|
1527
1527
|
}
|
|
1528
1528
|
`;
|
|
1529
1529
|
|
|
1530
|
-
// libs/core/src/components/segmented-control/segment/segment.trans.styles.css
|
|
1530
|
+
// libs/core/src/components/segmented-control/segment/segment.trans.styles.css?inline
|
|
1531
1531
|
var segment_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1532
1532
|
|
|
1533
1533
|
@layer transitional-styles {
|
|
@@ -1603,7 +1603,7 @@ function register9() {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
var segmented_control_trans_styles_default2 = register9;
|
|
1605
1605
|
|
|
1606
|
-
// libs/core/src/components/filter-chips/filter-chips.trans.styles.scss
|
|
1606
|
+
// libs/core/src/components/filter-chips/filter-chips.trans.styles.scss?inline
|
|
1607
1607
|
var filter_chips_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1608
1608
|
@layer transitional-styles {
|
|
1609
1609
|
@layer _base, _overrides;
|
|
@@ -1611,7 +1611,7 @@ var filter_chips_trans_styles_default = `@layer base, reset, transitional-styles
|
|
|
1611
1611
|
@layer _overrides {}
|
|
1612
1612
|
}`;
|
|
1613
1613
|
|
|
1614
|
-
// libs/core/src/components/filter-chips/filter-chip/filter-chip.trans.styles.scss
|
|
1614
|
+
// libs/core/src/components/filter-chips/filter-chip/filter-chip.trans.styles.scss?inline
|
|
1615
1615
|
var filter_chip_trans_styles_default = `@layer base, reset, transitional-styles;
|
|
1616
1616
|
@layer transitional-styles {
|
|
1617
1617
|
@layer _base, _overrides;
|
|
@@ -1639,7 +1639,7 @@ function register12() {
|
|
|
1639
1639
|
}
|
|
1640
1640
|
var filter_chips_trans_styles_default2 = register12;
|
|
1641
1641
|
|
|
1642
|
-
// libs/core/src/components/theme/chlorophyll-tokens.scss
|
|
1642
|
+
// libs/core/src/components/theme/chlorophyll-tokens.scss?inline
|
|
1643
1643
|
var chlorophyll_tokens_default = `/**
|
|
1644
1644
|
* Calculate the luminance for a color.
|
|
1645
1645
|
* See https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests
|
|
@@ -1658,6 +1658,10 @@ Themes such as dark-mode, high-contrast mode etc.
|
|
|
1658
1658
|
Values for light mode are used by default.
|
|
1659
1659
|
*/
|
|
1660
1660
|
/* mixin for generating css variables from map with optional prefix */
|
|
1661
|
+
:host {
|
|
1662
|
+
display: contents;
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1661
1665
|
:host([color-scheme=light]) {
|
|
1662
1666
|
--gds-sys-shape-corner-none: 0;
|
|
1663
1667
|
--gds-sys-shape-corner-small: 0.125rem;
|
|
@@ -2290,7 +2294,7 @@ _elements = new WeakMap();
|
|
|
2290
2294
|
_useLegacyStylesheets = new WeakMap();
|
|
2291
2295
|
var TransitionalStyles = _TransitionalStyles;
|
|
2292
2296
|
|
|
2293
|
-
// libs/core/src/components/button/button.trans.styles.scss
|
|
2297
|
+
// libs/core/src/components/button/button.trans.styles.scss?inline
|
|
2294
2298
|
var button_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
2295
2299
|
/* stylelint-enable max-nesting-depth */
|
|
2296
2300
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// libs/core/src/tokens.style.ts
|
|
2
2
|
import { unsafeCSS } from "lit";
|
|
3
3
|
|
|
4
|
-
// dist/libs/tokens/internal/pallet.css
|
|
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 Thu, 13 Jun 2024 14:33:28 GMT
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
:host {
|
|
@@ -162,10 +162,10 @@ var pallet_default = `/**
|
|
|
162
162
|
}
|
|
163
163
|
`;
|
|
164
164
|
|
|
165
|
-
// dist/libs/tokens/internal/theme/light.css
|
|
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 Thu, 13 Jun 2024 14:33:28 GMT
|
|
169
169
|
*/
|
|
170
170
|
|
|
171
171
|
:host {
|
|
@@ -283,10 +283,10 @@ var light_default = `/**
|
|
|
283
283
|
}
|
|
284
284
|
`;
|
|
285
285
|
|
|
286
|
-
// dist/libs/tokens/internal/size.css
|
|
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 Thu, 13 Jun 2024 14:33:28 GMT
|
|
290
290
|
*/
|
|
291
291
|
|
|
292
292
|
:host {
|
|
@@ -529,10 +529,10 @@ var size_default = `/**
|
|
|
529
529
|
}
|
|
530
530
|
`;
|
|
531
531
|
|
|
532
|
-
// dist/libs/tokens/internal/motion.css
|
|
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 Thu, 13 Jun 2024 14:33:28 GMT
|
|
536
536
|
*/
|
|
537
537
|
|
|
538
538
|
:host {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.LUVWPGEZ.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsElement
|
|
6
6
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// libs/core/src/components/theme/theme.ts
|
|
16
16
|
import { property } from "lit/decorators.js";
|
|
17
|
+
import { css } from "lit";
|
|
17
18
|
var GdsTheme = class extends GdsElement {
|
|
18
19
|
constructor() {
|
|
19
20
|
super(...arguments);
|
|
@@ -24,9 +25,14 @@ var GdsTheme = class extends GdsElement {
|
|
|
24
25
|
TransitionalStyles.instance.apply(this, "gds-theme");
|
|
25
26
|
}
|
|
26
27
|
render() {
|
|
27
|
-
return html
|
|
28
|
+
return html`<slot></slot>`;
|
|
28
29
|
}
|
|
29
30
|
};
|
|
31
|
+
GdsTheme.styles = css`
|
|
32
|
+
:host {
|
|
33
|
+
display: contents;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
30
36
|
__decorateClass([
|
|
31
37
|
property({ reflect: true, attribute: "color-scheme" })
|
|
32
38
|
], GdsTheme.prototype, "colorScheme", 2);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokens
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.M6PNMIPM.js";
|
|
4
4
|
import {
|
|
5
5
|
gdsCustomElement
|
|
6
6
|
} from "./chunk.VOYMQ322.js";
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
import { LitElement, html, unsafeCSS } from "lit";
|
|
13
13
|
import { query } from "lit/decorators.js";
|
|
14
14
|
|
|
15
|
-
// libs/core/src/primitives/ripple/ripple.styles.scss
|
|
15
|
+
// libs/core/src/primitives/ripple/ripple.styles.scss?inline
|
|
16
16
|
var ripple_styles_default = `:host {
|
|
17
17
|
--gds-ripple-motion-name: ripple;
|
|
18
18
|
--gds-ripple-motion: var(--gds-ripple-motion-name)
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk.MZSK66DN.js";
|
|
8
8
|
import {
|
|
9
9
|
TransitionalStyles
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.LUVWPGEZ.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -59,7 +59,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
59
59
|
__privateAdd(this, _dispatchChangeEvent);
|
|
60
60
|
__privateAdd(this, _dispatchInputEvent);
|
|
61
61
|
/**
|
|
62
|
-
* Takes a dateformat string from the dateformat attribute and
|
|
62
|
+
* Takes a dateformat string from the dateformat attribute and turns it to a DateFormatLayout object used in rendering the template.
|
|
63
63
|
*/
|
|
64
64
|
__privateAdd(this, _parseDateFormat);
|
|
65
65
|
/**
|
|
@@ -99,7 +99,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
99
99
|
});
|
|
100
100
|
});
|
|
101
101
|
__privateAdd(this, _handleClipboardCopy, (e) => {
|
|
102
|
-
this.
|
|
102
|
+
this._elField.then((field) => {
|
|
103
103
|
var _a;
|
|
104
104
|
if (e.currentTarget !== field)
|
|
105
105
|
return;
|
|
@@ -108,7 +108,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
108
108
|
});
|
|
109
109
|
});
|
|
110
110
|
__privateAdd(this, _handleClipboardPaste, (e) => {
|
|
111
|
-
this.
|
|
111
|
+
this._elField.then((field) => {
|
|
112
112
|
var _a;
|
|
113
113
|
if (e.currentTarget !== field)
|
|
114
114
|
return;
|
|
@@ -116,9 +116,21 @@ 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
|
-
|
|
120
|
-
if (pastedDate.toString() === "Invalid Date")
|
|
121
|
-
|
|
119
|
+
let pastedDate = new Date(pasted);
|
|
120
|
+
if (pastedDate.toString() === "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}`);
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
if (pastedDate.toString() === "Invalid Date")
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
122
134
|
this.value = pastedDate;
|
|
123
135
|
__privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
|
|
124
136
|
});
|
|
@@ -403,6 +415,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
403
415
|
size="small"
|
|
404
416
|
@click=${() => {
|
|
405
417
|
this.value = void 0;
|
|
418
|
+
this.open = false;
|
|
406
419
|
__privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
|
|
407
420
|
}}
|
|
408
421
|
>
|
|
@@ -413,8 +426,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
413
426
|
rank="tertiary"
|
|
414
427
|
size="small"
|
|
415
428
|
@click=${() => {
|
|
416
|
-
this.
|
|
417
|
-
__privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
|
|
429
|
+
__privateMethod(this, _focusDate, focusDate_fn).call(this, /* @__PURE__ */ new Date());
|
|
418
430
|
}}
|
|
419
431
|
>
|
|
420
432
|
${msg("Today")}
|
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 = "-1d55ff";
|
|
5
5
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
6
6
|
var gdsCustomElement = (tagName) => {
|
|
7
7
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsButton
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.JTHC55GT.js";
|
|
4
4
|
import "../../chunks/chunk.TX64TTBN.js";
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.RLQGNXDH.js";
|
|
6
|
+
import "../../chunks/chunk.M6PNMIPM.js";
|
|
7
7
|
import "../../chunks/chunk.MZSK66DN.js";
|
|
8
8
|
import "../../chunks/chunk.KBYQYDL3.js";
|
|
9
|
-
import "../../chunks/chunk.
|
|
9
|
+
import "../../chunks/chunk.LUVWPGEZ.js";
|
|
10
10
|
import "../../chunks/chunk.WM7HBMMV.js";
|
|
11
11
|
import "../../chunks/chunk.ZQ4D5K7J.js";
|
|
12
12
|
import "../../chunks/chunk.W7CV3QYI.js";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "../../chunks/chunk.JGTSJ4J6.js";
|
|
2
2
|
import {
|
|
3
3
|
GdsButton
|
|
4
|
-
} from "../../chunks/chunk.
|
|
4
|
+
} from "../../chunks/chunk.JTHC55GT.js";
|
|
5
5
|
import "../../chunks/chunk.TX64TTBN.js";
|
|
6
|
-
import "../../chunks/chunk.
|
|
7
|
-
import "../../chunks/chunk.
|
|
6
|
+
import "../../chunks/chunk.RLQGNXDH.js";
|
|
7
|
+
import "../../chunks/chunk.M6PNMIPM.js";
|
|
8
8
|
import "../../chunks/chunk.MZSK66DN.js";
|
|
9
9
|
import "../../chunks/chunk.KBYQYDL3.js";
|
|
10
|
-
import "../../chunks/chunk.
|
|
10
|
+
import "../../chunks/chunk.LUVWPGEZ.js";
|
|
11
11
|
import "../../chunks/chunk.WM7HBMMV.js";
|
|
12
12
|
import "../../chunks/chunk.ZQ4D5K7J.js";
|
|
13
13
|
import "../../chunks/chunk.W7CV3QYI.js";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsContextMenu
|
|
3
|
-
} from "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.BBNXIM5R.js";
|
|
4
4
|
import "../../chunks/chunk.UF6IEONX.js";
|
|
5
|
-
import "../../chunks/chunk.
|
|
6
|
-
import "../../chunks/chunk.
|
|
5
|
+
import "../../chunks/chunk.CQEVE6G2.js";
|
|
6
|
+
import "../../chunks/chunk.BLUA5Y6H.js";
|
|
7
7
|
import "../../chunks/chunk.7TCXY7BP.js";
|
|
8
8
|
import "../../chunks/chunk.2X23R32H.js";
|
|
9
9
|
import "../../chunks/chunk.2ND5EWHE.js";
|
|
10
10
|
import "../../chunks/chunk.4HJGQCBX.js";
|
|
11
|
-
import "../../chunks/chunk.
|
|
11
|
+
import "../../chunks/chunk.2GUDH3ZQ.js";
|
|
12
12
|
import "../../chunks/chunk.3BCIYHO6.js";
|
|
13
13
|
import "../../chunks/chunk.M5FNUZ66.js";
|
|
14
14
|
import "../../chunks/chunk.L7I7KHQL.js";
|
|
15
15
|
import "../../chunks/chunk.KBYQYDL3.js";
|
|
16
|
-
import "../../chunks/chunk.
|
|
16
|
+
import "../../chunks/chunk.LUVWPGEZ.js";
|
|
17
17
|
import "../../chunks/chunk.WM7HBMMV.js";
|
|
18
18
|
import "../../chunks/chunk.ZQ4D5K7J.js";
|
|
19
19
|
import "../../chunks/chunk.W7CV3QYI.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
context_menu_trans_styles_default,
|
|
3
3
|
register4 as register
|
|
4
|
-
} from "../../chunks/chunk.
|
|
4
|
+
} from "../../chunks/chunk.LUVWPGEZ.js";
|
|
5
5
|
import "../../chunks/chunk.W7CV3QYI.js";
|
|
6
6
|
import "../../chunks/chunk.VOYMQ322.js";
|
|
7
7
|
import "../../chunks/chunk.5VURDMKE.js";
|