@sebgroup/green-core 1.24.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/chunks/{chunk.27R7X3C3.js → chunk.24V4XJDP.js} +3 -3
- package/chunks/{chunk.VJU6J3FA.js → chunk.2YTPPLUR.js} +1 -1
- package/chunks/chunk.3ULLOORV.js +22 -0
- package/chunks/{chunk.CUCCR5I2.js → chunk.5JXFH3CA.js} +77 -240
- package/chunks/chunk.6BQCB4IT.js +12 -0
- package/chunks/chunk.7WY5IUFF.js +38 -0
- package/chunks/chunk.ADPMTWTS.js +148 -0
- package/chunks/{chunk.RP6ZZ4QP.js → chunk.AIIIR7YQ.js} +1 -1
- package/chunks/{chunk.KTHP2O7D.js → chunk.BWE3LWZR.js} +4 -4
- package/chunks/{chunk.PKI5W62Y.js → chunk.F7RPWFJJ.js} +1 -1
- package/chunks/{chunk.JX4Q5BTZ.js → chunk.FMXZ2CBC.js} +1 -1
- package/chunks/chunk.G5CTCHXH.js +61 -0
- package/chunks/{chunk.RG4ALIDZ.js → chunk.GTJ3YNGN.js} +5 -5
- package/chunks/chunk.H4ZSHOXG.js +13 -0
- package/chunks/{chunk.K3GEZRU5.js → chunk.HNQ5BESO.js} +12 -9
- package/chunks/{chunk.5C4NFKBM.js → chunk.HOSMWBJK.js} +28 -24
- package/chunks/{chunk.QHKBUCE7.js → chunk.JWYX2K5T.js} +3 -3
- package/chunks/chunk.JZ7LISSM.js +117 -0
- package/chunks/{chunk.QD3OLQ7I.js → chunk.JZPPDKRE.js} +1 -1
- package/chunks/chunk.K54XRGDL.js +95 -0
- package/chunks/chunk.KK4QVD34.js +29 -0
- package/chunks/chunk.KYBMS7FP.js +31 -0
- package/chunks/{chunk.P2QL4AHI.js → chunk.LA5JE2G2.js} +1 -1
- package/chunks/chunk.LHZ2BQLT.js +65 -0
- package/chunks/{chunk.B35Y6NNU.js → chunk.MYA45ATV.js} +1 -1
- package/chunks/chunk.NKSKWGNM.js +28 -0
- package/chunks/{chunk.HGXKBXR6.js → chunk.NW6QJEJ7.js} +1 -1
- package/chunks/chunk.NY66JKJ2.js +109 -0
- package/chunks/chunk.OJK4O3JQ.js +0 -0
- package/chunks/chunk.P7MYL4LD.js +59 -0
- package/chunks/{chunk.DOKUYRLP.js → chunk.PLBDEP73.js} +3 -3
- package/chunks/chunk.QIZMUQXZ.js +131 -0
- package/chunks/{chunk.NNJ6DJO2.js → chunk.RB5IEYTY.js} +1 -1
- package/chunks/{chunk.CPCAGCFR.js → chunk.S63G7END.js} +1 -1
- package/chunks/chunk.SXGACXKX.js +28 -0
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/chunk.VS5JKIZQ.js +23 -0
- package/chunks/{chunk.YWNV7RJ2.js → chunk.XBQN74WW.js} +4 -4
- package/chunks/{chunk.ZX42RSEL.js → chunk.ZDK6GCF7.js} +1 -1
- package/chunks/chunk.ZLHAIAQU.js +73 -0
- package/chunks/{chunk.Y3RSAFGU.js → chunk.ZY3LVGNB.js} +14 -14
- package/components/button/button.js +5 -5
- package/components/button/button.trans.styles.js +1 -1
- package/components/button/index.js +5 -5
- package/{primitives → components}/calendar/calendar.d.ts +5 -1
- package/{primitives → components}/calendar/calendar.js +3 -3
- package/components/calendar/calendar.trans.styles.js +11 -0
- package/{primitives → components}/calendar/functions.js +1 -1
- package/{primitives → components}/calendar/index.js +4 -4
- package/components/content/divider/divider.d.ts +54 -0
- package/components/content/divider/divider.js +15 -0
- package/components/content/divider/divider.style.css.js +7 -0
- package/components/content/divider/index.d.ts +1 -0
- package/components/content/divider/index.js +15 -0
- package/components/content/spacer/index.d.ts +1 -0
- package/components/content/spacer/index.js +14 -0
- package/components/content/spacer/spacer.d.ts +23 -0
- package/components/content/spacer/spacer.js +14 -0
- package/components/content/text/index.d.ts +1 -0
- package/components/content/text/index.js +15 -0
- package/components/content/text/text.d.ts +122 -0
- package/components/content/text/text.js +15 -0
- package/components/content/text/text.style.css.d.ts +2 -0
- package/components/content/text/text.style.css.js +7 -0
- package/components/context-menu/context-menu.js +6 -6
- package/components/context-menu/context-menu.trans.styles.js +1 -1
- package/components/context-menu/index.js +9 -9
- package/components/datepicker/datepicker.d.ts +1 -1
- package/components/datepicker/datepicker.js +18 -18
- package/components/datepicker/datepicker.trans.styles.js +2 -2
- package/components/datepicker/index.js +18 -18
- package/components/dropdown/dropdown.js +7 -7
- package/components/dropdown/dropdown.trans.styles.js +1 -1
- package/components/dropdown/index.js +8 -8
- package/components/filter-chips/filter-chip/filter-chip.js +8 -8
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +2 -2
- package/components/filter-chips/filter-chip/index.js +8 -8
- package/components/filter-chips/filter-chips.js +9 -9
- package/components/filter-chips/filter-chips.trans.styles.js +2 -2
- package/components/filter-chips/index.js +9 -9
- package/components/grouped-list/grouped-list.js +2 -2
- package/components/grouped-list/grouped-list.trans.styles.js +2 -2
- package/components/grouped-list/index.js +2 -2
- package/components/icon/icons/index.js +3 -3
- package/components/index.d.ts +9 -1
- package/components/index.js +89 -48
- package/components/layout/card/card.d.ts +118 -0
- package/components/layout/card/card.js +18 -0
- package/components/layout/card/card.style.css.d.ts +2 -0
- package/components/layout/card/card.style.css.js +7 -0
- package/components/layout/card/index.d.ts +1 -0
- package/components/layout/card/index.js +18 -0
- package/components/layout/container/container.d.ts +152 -0
- package/components/layout/container/container.js +15 -0
- package/components/layout/container/container.style.css.d.ts +2 -0
- package/components/layout/container/container.style.css.js +7 -0
- package/components/layout/container/index.d.ts +1 -0
- package/components/layout/container/index.js +16 -0
- package/components/layout/flex/flex.d.ts +49 -0
- package/components/layout/flex/flex.js +18 -0
- package/components/layout/flex/flex.style.css.d.ts +2 -0
- package/components/layout/flex/flex.style.css.js +7 -0
- package/components/layout/flex/index.d.ts +1 -0
- package/components/layout/flex/index.js +18 -0
- package/components/layout/grid/grid.d.ts +48 -0
- package/components/layout/grid/grid.js +15 -0
- package/components/layout/grid/grid.style.css.d.ts +2 -0
- package/components/layout/grid/grid.style.css.js +7 -0
- package/components/layout/grid/index.js +15 -0
- package/components/media/img/img.d.ts +137 -0
- package/components/media/img/img.js +15 -0
- package/components/media/img/img.style.css.d.ts +2 -0
- package/components/media/img/img.style.css.js +7 -0
- package/components/media/img/index.d.ts +1 -0
- package/components/media/img/index.js +15 -0
- package/components/media/video/index.d.ts +1 -0
- package/components/media/video/index.js +15 -0
- package/components/media/video/video.d.ts +135 -0
- package/components/media/video/video.js +15 -0
- package/components/media/video/video.style.css.d.ts +2 -0
- package/components/media/video/video.style.css.js +7 -0
- package/components/menu-button/index.js +2 -2
- package/components/menu-button/menu-button.js +2 -2
- 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 +2 -2
- package/components/segmented-control/segmented-control.js +4 -4
- package/components/segmented-control/segmented-control.trans.styles.js +2 -2
- package/components/theme/index.js +2 -2
- package/components/theme/theme.js +2 -2
- package/components/theme/theme.trans.styles.js +2 -2
- package/index.js +90 -49
- package/package.json +1 -1
- 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
- package/utils/decorators/style-expression-property.d.ts +12 -0
- package/utils/helpers/style-expression-parser.d.ts +25 -0
- package/chunks/chunk.GVBFAXSJ.js +0 -196
- package/chunks/chunk.NBEFLQNK.js +0 -79
- package/components/grid/grid.d.ts +0 -90
- package/components/grid/grid.js +0 -14
- package/components/grid/grid.style.css.js +0 -7
- package/components/grid/index.js +0 -14
- /package/chunks/{chunk.4CZBNTGL.js → chunk.65745UGT.js} +0 -0
- /package/chunks/{chunk.TMBQL2RO.js → chunk.DJ2OXJZN.js} +0 -0
- /package/{primitives → components}/calendar/calendar.styles.d.ts +0 -0
- /package/{primitives → components}/calendar/calendar.trans.styles.d.ts +0 -0
- /package/{primitives → components}/calendar/functions.d.ts +0 -0
- /package/{primitives → components}/calendar/index.d.ts +0 -0
- /package/components/{grid/grid.style.css.d.ts → content/divider/divider.style.css.d.ts} +0 -0
- /package/components/{grid → layout/grid}/index.d.ts +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import {
|
|
2
|
+
styleExpressionProperty
|
|
3
|
+
} from "./chunk.ADPMTWTS.js";
|
|
4
|
+
import {
|
|
5
|
+
tokens
|
|
6
|
+
} from "./chunk.5JXFH3CA.js";
|
|
7
|
+
import {
|
|
8
|
+
GdsElement
|
|
9
|
+
} from "./chunk.ZQ4D5K7J.js";
|
|
10
|
+
import {
|
|
11
|
+
gdsCustomElement,
|
|
12
|
+
html
|
|
13
|
+
} from "./chunk.VOYMQ322.js";
|
|
14
|
+
import {
|
|
15
|
+
divider_style_css_default
|
|
16
|
+
} from "./chunk.VS5JKIZQ.js";
|
|
17
|
+
import {
|
|
18
|
+
__decorateClass
|
|
19
|
+
} from "./chunk.5VURDMKE.js";
|
|
20
|
+
|
|
21
|
+
// libs/core/src/components/content/divider/divider.ts
|
|
22
|
+
var GdsDivider = class extends GdsElement {
|
|
23
|
+
render() {
|
|
24
|
+
return html`<hr />`;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
GdsDivider.styles = [tokens, divider_style_css_default];
|
|
28
|
+
__decorateClass([
|
|
29
|
+
styleExpressionProperty({
|
|
30
|
+
property: "color",
|
|
31
|
+
valueTemplate: (v) => {
|
|
32
|
+
const [colorName, transparency] = v.split("/");
|
|
33
|
+
if (transparency) {
|
|
34
|
+
return `color-mix(in srgb, var(--gds-sys-color-${colorName}) ${parseFloat(transparency) * 100}%, transparent 0%)`;
|
|
35
|
+
} else {
|
|
36
|
+
return `var(--gds-sys-color-${colorName})`;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
], GdsDivider.prototype, "color", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
styleExpressionProperty({
|
|
43
|
+
property: "--_size",
|
|
44
|
+
selector: "hr",
|
|
45
|
+
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
46
|
+
})
|
|
47
|
+
], GdsDivider.prototype, "size", 2);
|
|
48
|
+
__decorateClass([
|
|
49
|
+
styleExpressionProperty({
|
|
50
|
+
property: "opacity",
|
|
51
|
+
selector: "hr",
|
|
52
|
+
valueTemplate: (v) => v
|
|
53
|
+
})
|
|
54
|
+
], GdsDivider.prototype, "opacity", 2);
|
|
55
|
+
GdsDivider = __decorateClass([
|
|
56
|
+
gdsCustomElement("gds-divider")
|
|
57
|
+
], GdsDivider);
|
|
58
|
+
|
|
59
|
+
export {
|
|
60
|
+
GdsDivider
|
|
61
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.XBQN74WW.js";
|
|
4
4
|
import {
|
|
5
5
|
resizeObserver
|
|
6
6
|
} from "./chunk.VHN4JEZC.js";
|
|
7
|
-
import {
|
|
8
|
-
tokens
|
|
9
|
-
} from "./chunk.CUCCR5I2.js";
|
|
10
7
|
import {
|
|
11
8
|
TransitionalStyles
|
|
12
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.HNQ5BESO.js";
|
|
10
|
+
import {
|
|
11
|
+
tokens
|
|
12
|
+
} from "./chunk.5JXFH3CA.js";
|
|
13
13
|
import {
|
|
14
14
|
GdsElement
|
|
15
15
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// libs/core/src/components/layout/flex/flex.style.css.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var style = css`
|
|
4
|
+
:host {
|
|
5
|
+
gap: var(--_gap-column) var(--_gap-row);
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
}
|
|
8
|
+
`;
|
|
9
|
+
var flex_style_css_default = style;
|
|
10
|
+
|
|
11
|
+
export {
|
|
12
|
+
flex_style_css_default
|
|
13
|
+
};
|
|
@@ -1210,7 +1210,7 @@ var datepicker_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1210
1210
|
}
|
|
1211
1211
|
}`;
|
|
1212
1212
|
|
|
1213
|
-
// libs/core/src/
|
|
1213
|
+
// libs/core/src/components/calendar/calendar.trans.styles.scss?inline
|
|
1214
1214
|
var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
1215
1215
|
/* stylelint-enable max-nesting-depth */
|
|
1216
1216
|
/**
|
|
@@ -1396,10 +1396,11 @@ var calendar_trans_styles_default = `/* stylelint-disable max-nesting-depth */
|
|
|
1396
1396
|
}
|
|
1397
1397
|
}`;
|
|
1398
1398
|
|
|
1399
|
-
// libs/core/src/
|
|
1399
|
+
// libs/core/src/components/calendar/calendar.trans.styles.ts
|
|
1400
1400
|
function register6() {
|
|
1401
1401
|
TransitionalStyles.instance.register("gds-calendar", calendar_trans_styles_default.toString());
|
|
1402
1402
|
}
|
|
1403
|
+
var calendar_trans_styles_default2 = register6;
|
|
1403
1404
|
|
|
1404
1405
|
// libs/core/src/components/datepicker/datepicker.trans.styles.ts
|
|
1405
1406
|
function register7() {
|
|
@@ -2765,19 +2766,21 @@ export {
|
|
|
2765
2766
|
dropdown_trans_styles_default2 as dropdown_trans_styles_default,
|
|
2766
2767
|
register5 as register4,
|
|
2767
2768
|
context_menu_trans_styles_default2 as context_menu_trans_styles_default,
|
|
2768
|
-
|
|
2769
|
+
register6 as register5,
|
|
2770
|
+
calendar_trans_styles_default2 as calendar_trans_styles_default,
|
|
2771
|
+
register7 as register6,
|
|
2769
2772
|
datepicker_trans_styles_default2 as datepicker_trans_styles_default,
|
|
2770
|
-
register8 as
|
|
2773
|
+
register8 as register7,
|
|
2771
2774
|
grouped_list_trans_styles_default2 as grouped_list_trans_styles_default,
|
|
2772
|
-
register9 as
|
|
2775
|
+
register9 as register8,
|
|
2773
2776
|
segment_trans_styles_default2 as segment_trans_styles_default,
|
|
2774
|
-
register10 as
|
|
2777
|
+
register10 as register9,
|
|
2775
2778
|
segmented_control_trans_styles_default2 as segmented_control_trans_styles_default,
|
|
2776
|
-
register11 as
|
|
2779
|
+
register11 as register10,
|
|
2777
2780
|
filter_chip_trans_styles_default2 as filter_chip_trans_styles_default,
|
|
2778
|
-
register12 as
|
|
2781
|
+
register12 as register11,
|
|
2779
2782
|
filter_chips_trans_styles_default2 as filter_chips_trans_styles_default,
|
|
2780
|
-
register13 as
|
|
2783
|
+
register13 as register12,
|
|
2781
2784
|
theme_trans_styles_default,
|
|
2782
2785
|
registerTransitionalStyles,
|
|
2783
2786
|
TransitionalStyles
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderMonthGridView
|
|
3
|
-
} from "./chunk.NNJ6DJO2.js";
|
|
4
1
|
import {
|
|
5
2
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.HNQ5BESO.js";
|
|
4
|
+
import {
|
|
5
|
+
renderMonthGridView
|
|
6
|
+
} from "./chunk.RB5IEYTY.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsElement
|
|
9
9
|
} from "./chunk.ZQ4D5K7J.js";
|
|
@@ -20,9 +20,10 @@ import {
|
|
|
20
20
|
__spreadValues
|
|
21
21
|
} from "./chunk.5VURDMKE.js";
|
|
22
22
|
|
|
23
|
-
// libs/core/src/
|
|
23
|
+
// libs/core/src/components/calendar/calendar.ts
|
|
24
24
|
import { html } from "lit";
|
|
25
25
|
import { classMap } from "lit/directives/class-map.js";
|
|
26
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
26
27
|
import { when } from "lit/directives/when.js";
|
|
27
28
|
import { property, query } from "lit/decorators.js";
|
|
28
29
|
import { msg } from "@lit/localize";
|
|
@@ -36,13 +37,13 @@ import {
|
|
|
36
37
|
lastDayOfMonth
|
|
37
38
|
} from "date-fns";
|
|
38
39
|
|
|
39
|
-
// libs/core/src/
|
|
40
|
+
// libs/core/src/components/calendar/calendar.styles.ts
|
|
40
41
|
import { css } from "lit";
|
|
41
42
|
var style = css`
|
|
42
43
|
@layer base, reset, transitional-styles;
|
|
43
44
|
@layer base {
|
|
44
45
|
td.disabled {
|
|
45
|
-
color: #
|
|
46
|
+
color: #555;
|
|
46
47
|
cursor: default;
|
|
47
48
|
}
|
|
48
49
|
td.today {
|
|
@@ -52,7 +53,7 @@ var style = css`
|
|
|
52
53
|
`;
|
|
53
54
|
var calendar_styles_default = style;
|
|
54
55
|
|
|
55
|
-
// libs/core/src/
|
|
56
|
+
// libs/core/src/components/calendar/calendar.ts
|
|
56
57
|
var _setSelectedDate, setSelectedDate_fn, _handleKeyDown, handleKeyDown_fn;
|
|
57
58
|
var GdsCalendar = class extends GdsElement {
|
|
58
59
|
constructor() {
|
|
@@ -105,9 +106,9 @@ var GdsCalendar = class extends GdsElement {
|
|
|
105
106
|
}
|
|
106
107
|
render() {
|
|
107
108
|
const currentDate = /* @__PURE__ */ new Date();
|
|
108
|
-
return html`<table>
|
|
109
|
-
<thead>
|
|
110
|
-
<tr>
|
|
109
|
+
return html`<table role="grid" aria-label="${ifDefined(this.label)}">
|
|
110
|
+
<thead role="rowgroup">
|
|
111
|
+
<tr role="row">
|
|
111
112
|
${when(this.showWeekNumbers, () => html`<th></th>`)}
|
|
112
113
|
<th>${msg("Mon")}</th>
|
|
113
114
|
<th>${msg("Tue")}</th>
|
|
@@ -118,35 +119,35 @@ var GdsCalendar = class extends GdsElement {
|
|
|
118
119
|
<th>${msg("Sun")}</th>
|
|
119
120
|
</tr>
|
|
120
121
|
</thead>
|
|
121
|
-
<tbody>
|
|
122
|
+
<tbody role="rowgroup">
|
|
122
123
|
${renderMonthGridView(
|
|
123
124
|
this.focusedDate,
|
|
124
125
|
(weeks) => html`
|
|
125
126
|
${weeks.map(
|
|
126
127
|
(week) => html`
|
|
127
|
-
<tr>
|
|
128
|
+
<tr role="row">
|
|
128
129
|
${when(
|
|
129
130
|
this.showWeekNumbers,
|
|
130
|
-
() => html`<td class="week-number">
|
|
131
|
+
() => html`<td class="week-number" scope="row">
|
|
131
132
|
${getWeek(week.days[0])}
|
|
132
133
|
</td>`
|
|
133
134
|
)}
|
|
134
135
|
${week.days.map((day) => {
|
|
135
|
-
const customization =
|
|
136
|
+
const customization = this.customizedDates && this.customizedDates.find((d) => isSameDay(d.date, day));
|
|
137
|
+
const displayOptions = __spreadValues({
|
|
136
138
|
// Defaults
|
|
137
139
|
color: "currentColor",
|
|
138
140
|
// Get baseline disabled state from the disabledDates prop (or false if unset)
|
|
139
141
|
disabled: Boolean(
|
|
140
142
|
this.disabledDates && this.disabledDates.some((d) => isSameDay(d, day))
|
|
141
143
|
)
|
|
142
|
-
},
|
|
143
|
-
(d) => isSameDay(d.date, day)
|
|
144
|
-
));
|
|
144
|
+
}, customization);
|
|
145
145
|
const isOutsideCurrentMonth = !isSameMonth(this.focusedDate, day) || day < this.min || day > this.max;
|
|
146
146
|
const isWeekend = day.getDay() === 0 || day.getDay() === 6;
|
|
147
|
-
const isDisabled =
|
|
147
|
+
const isDisabled = displayOptions.disabled || isOutsideCurrentMonth || this.disabledWeekends && isWeekend;
|
|
148
148
|
return html`
|
|
149
149
|
<td
|
|
150
|
+
role="${ifDefined(isDisabled ? void 0 : "gridcell")}"
|
|
150
151
|
class="${classMap({
|
|
151
152
|
"custom-date": Boolean(customization),
|
|
152
153
|
disabled: Boolean(isDisabled),
|
|
@@ -154,22 +155,22 @@ var GdsCalendar = class extends GdsElement {
|
|
|
154
155
|
})}"
|
|
155
156
|
?disabled=${isDisabled}
|
|
156
157
|
tabindex="${isSameDay(this.focusedDate, day) ? 0 : -1}"
|
|
157
|
-
aria-selected="${this.value && isSameDay(this.value, day)}"
|
|
158
|
+
aria-selected="${this.value && isSameDay(this.value, day) ? "true" : "false"}"
|
|
158
159
|
aria-label="${day.toDateString()}"
|
|
159
160
|
@click=${() => isDisabled ? null : __privateMethod(this, _setSelectedDate, setSelectedDate_fn).call(this, day)}
|
|
160
161
|
id="dateCell-${day.getDate()}"
|
|
161
162
|
>
|
|
162
163
|
<span
|
|
163
164
|
class="number"
|
|
164
|
-
style="--_color: ${
|
|
165
|
+
style="--_color: ${displayOptions ? displayOptions == null ? void 0 : displayOptions.color : ""}"
|
|
165
166
|
>${day.getDate()}</span
|
|
166
167
|
>
|
|
167
168
|
|
|
168
169
|
${when(
|
|
169
|
-
|
|
170
|
+
displayOptions.indicator,
|
|
170
171
|
() => html`<span
|
|
171
|
-
class="indicator-${
|
|
172
|
-
style="--_color: ${
|
|
172
|
+
class="indicator-${displayOptions == null ? void 0 : displayOptions.indicator}"
|
|
173
|
+
style="--_color: ${displayOptions == null ? void 0 : displayOptions.color}"
|
|
173
174
|
></span>`
|
|
174
175
|
)}
|
|
175
176
|
</td>
|
|
@@ -289,6 +290,9 @@ __decorateClass([
|
|
|
289
290
|
__decorateClass([
|
|
290
291
|
property({ attribute: false })
|
|
291
292
|
], GdsCalendar.prototype, "customizedDates", 2);
|
|
293
|
+
__decorateClass([
|
|
294
|
+
property()
|
|
295
|
+
], GdsCalendar.prototype, "label", 2);
|
|
292
296
|
__decorateClass([
|
|
293
297
|
query('td[tabindex="0"]')
|
|
294
298
|
], GdsCalendar.prototype, "_elFocusedCell", 2);
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import {
|
|
2
|
+
container_style_css_default
|
|
3
|
+
} from "./chunk.6BQCB4IT.js";
|
|
4
|
+
import {
|
|
5
|
+
styleExpressionProperty
|
|
6
|
+
} from "./chunk.ADPMTWTS.js";
|
|
7
|
+
import {
|
|
8
|
+
tokens
|
|
9
|
+
} from "./chunk.5JXFH3CA.js";
|
|
10
|
+
import {
|
|
11
|
+
GdsElement
|
|
12
|
+
} from "./chunk.ZQ4D5K7J.js";
|
|
13
|
+
import {
|
|
14
|
+
gdsCustomElement,
|
|
15
|
+
html
|
|
16
|
+
} from "./chunk.VOYMQ322.js";
|
|
17
|
+
import {
|
|
18
|
+
__decorateClass
|
|
19
|
+
} from "./chunk.5VURDMKE.js";
|
|
20
|
+
|
|
21
|
+
// libs/core/src/components/layout/container/container.ts
|
|
22
|
+
var GdsContainer = class extends GdsElement {
|
|
23
|
+
render() {
|
|
24
|
+
return html`<slot></slot>`;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
GdsContainer.styles = [tokens, container_style_css_default];
|
|
28
|
+
__decorateClass([
|
|
29
|
+
styleExpressionProperty({
|
|
30
|
+
valueTemplate: (v) => v
|
|
31
|
+
})
|
|
32
|
+
], GdsContainer.prototype, "display", 2);
|
|
33
|
+
__decorateClass([
|
|
34
|
+
styleExpressionProperty({
|
|
35
|
+
valueTemplate: (v) => {
|
|
36
|
+
const [colorName, transparency] = v.split("/");
|
|
37
|
+
if (transparency) {
|
|
38
|
+
return `color-mix(in srgb, var(--gds-sys-color-${colorName}) ${parseFloat(transparency) * 100}%, transparent 0%)`;
|
|
39
|
+
} else {
|
|
40
|
+
return `var(--gds-sys-color-${colorName})`;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
], GdsContainer.prototype, "color", 2);
|
|
45
|
+
__decorateClass([
|
|
46
|
+
styleExpressionProperty({
|
|
47
|
+
valueTemplate: (v) => {
|
|
48
|
+
const [colorName, transparency] = v.split("/");
|
|
49
|
+
if (transparency) {
|
|
50
|
+
return `color-mix(in srgb, var(--gds-sys-color-${colorName}) ${parseFloat(transparency) * 100}%, transparent 0%)`;
|
|
51
|
+
} else {
|
|
52
|
+
return `var(--gds-sys-color-${colorName})`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
], GdsContainer.prototype, "background", 2);
|
|
57
|
+
__decorateClass([
|
|
58
|
+
styleExpressionProperty({
|
|
59
|
+
valueTemplate: (v) => v
|
|
60
|
+
})
|
|
61
|
+
], GdsContainer.prototype, "opacity", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
styleExpressionProperty()
|
|
64
|
+
], GdsContainer.prototype, "padding", 2);
|
|
65
|
+
__decorateClass([
|
|
66
|
+
styleExpressionProperty()
|
|
67
|
+
], GdsContainer.prototype, "margin", 2);
|
|
68
|
+
__decorateClass([
|
|
69
|
+
styleExpressionProperty({
|
|
70
|
+
valueTemplate: (v) => v
|
|
71
|
+
})
|
|
72
|
+
], GdsContainer.prototype, "position", 2);
|
|
73
|
+
__decorateClass([
|
|
74
|
+
styleExpressionProperty({
|
|
75
|
+
valueTemplate: (v) => v
|
|
76
|
+
})
|
|
77
|
+
], GdsContainer.prototype, "inset", 2);
|
|
78
|
+
__decorateClass([
|
|
79
|
+
styleExpressionProperty({
|
|
80
|
+
valueTemplate: (v) => v
|
|
81
|
+
})
|
|
82
|
+
], GdsContainer.prototype, "overflow", 2);
|
|
83
|
+
__decorateClass([
|
|
84
|
+
styleExpressionProperty({
|
|
85
|
+
property: "grid-column",
|
|
86
|
+
valueTemplate: (v) => `${v}`
|
|
87
|
+
})
|
|
88
|
+
], GdsContainer.prototype, "column", 2);
|
|
89
|
+
__decorateClass([
|
|
90
|
+
styleExpressionProperty({
|
|
91
|
+
property: "grid-row",
|
|
92
|
+
valueTemplate: (v) => `${v}`
|
|
93
|
+
})
|
|
94
|
+
], GdsContainer.prototype, "row", 2);
|
|
95
|
+
__decorateClass([
|
|
96
|
+
styleExpressionProperty({
|
|
97
|
+
valueTemplate: (v) => v
|
|
98
|
+
})
|
|
99
|
+
], GdsContainer.prototype, "height", 2);
|
|
100
|
+
__decorateClass([
|
|
101
|
+
styleExpressionProperty({
|
|
102
|
+
valueTemplate: (v) => v
|
|
103
|
+
})
|
|
104
|
+
], GdsContainer.prototype, "width", 2);
|
|
105
|
+
__decorateClass([
|
|
106
|
+
styleExpressionProperty({
|
|
107
|
+
property: "z-index",
|
|
108
|
+
valueTemplate: (v) => v
|
|
109
|
+
})
|
|
110
|
+
], GdsContainer.prototype, "stack", 2);
|
|
111
|
+
GdsContainer = __decorateClass([
|
|
112
|
+
gdsCustomElement("gds-container")
|
|
113
|
+
], GdsContainer);
|
|
114
|
+
|
|
115
|
+
export {
|
|
116
|
+
GdsContainer
|
|
117
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import {
|
|
2
|
+
img_style_css_default
|
|
3
|
+
} from "./chunk.NKSKWGNM.js";
|
|
4
|
+
import {
|
|
5
|
+
styleExpressionProperty
|
|
6
|
+
} from "./chunk.ADPMTWTS.js";
|
|
7
|
+
import {
|
|
8
|
+
tokens
|
|
9
|
+
} from "./chunk.5JXFH3CA.js";
|
|
10
|
+
import {
|
|
11
|
+
GdsElement
|
|
12
|
+
} from "./chunk.ZQ4D5K7J.js";
|
|
13
|
+
import {
|
|
14
|
+
gdsCustomElement,
|
|
15
|
+
html
|
|
16
|
+
} from "./chunk.VOYMQ322.js";
|
|
17
|
+
import {
|
|
18
|
+
__decorateClass
|
|
19
|
+
} from "./chunk.5VURDMKE.js";
|
|
20
|
+
|
|
21
|
+
// libs/core/src/components/media/img/img.ts
|
|
22
|
+
import { property } from "lit/decorators.js";
|
|
23
|
+
var GdsImg = class extends GdsElement {
|
|
24
|
+
render() {
|
|
25
|
+
return html`<figure><img src="${this.src}" alt="${this.alt}" /></figure>`;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
GdsImg.styles = [tokens, img_style_css_default];
|
|
29
|
+
__decorateClass([
|
|
30
|
+
styleExpressionProperty({
|
|
31
|
+
property: "aspect-ratio",
|
|
32
|
+
selector: "figure",
|
|
33
|
+
valueTemplate: (v) => v
|
|
34
|
+
})
|
|
35
|
+
], GdsImg.prototype, "ratio", 2);
|
|
36
|
+
__decorateClass([
|
|
37
|
+
styleExpressionProperty({
|
|
38
|
+
property: "object-position",
|
|
39
|
+
selector: "img",
|
|
40
|
+
valueTemplate: (v) => v
|
|
41
|
+
})
|
|
42
|
+
], GdsImg.prototype, "position", 2);
|
|
43
|
+
__decorateClass([
|
|
44
|
+
styleExpressionProperty({
|
|
45
|
+
property: "inset",
|
|
46
|
+
selector: "figure",
|
|
47
|
+
valueTemplate: (v) => v
|
|
48
|
+
})
|
|
49
|
+
], GdsImg.prototype, "inset", 2);
|
|
50
|
+
__decorateClass([
|
|
51
|
+
styleExpressionProperty({
|
|
52
|
+
property: "width",
|
|
53
|
+
valueTemplate: (v) => v
|
|
54
|
+
})
|
|
55
|
+
], GdsImg.prototype, "width", 2);
|
|
56
|
+
__decorateClass([
|
|
57
|
+
styleExpressionProperty({
|
|
58
|
+
property: "height",
|
|
59
|
+
valueTemplate: (v) => v
|
|
60
|
+
})
|
|
61
|
+
], GdsImg.prototype, "height", 2);
|
|
62
|
+
__decorateClass([
|
|
63
|
+
styleExpressionProperty({
|
|
64
|
+
property: "opacity",
|
|
65
|
+
selector: "figure",
|
|
66
|
+
valueTemplate: (v) => v
|
|
67
|
+
})
|
|
68
|
+
], GdsImg.prototype, "opacity", 2);
|
|
69
|
+
__decorateClass([
|
|
70
|
+
styleExpressionProperty({
|
|
71
|
+
property: "object-fit",
|
|
72
|
+
selector: "img",
|
|
73
|
+
valueTemplate: (v) => v
|
|
74
|
+
})
|
|
75
|
+
], GdsImg.prototype, "fit", 2);
|
|
76
|
+
__decorateClass([
|
|
77
|
+
property()
|
|
78
|
+
], GdsImg.prototype, "src", 2);
|
|
79
|
+
__decorateClass([
|
|
80
|
+
property()
|
|
81
|
+
], GdsImg.prototype, "alt", 2);
|
|
82
|
+
__decorateClass([
|
|
83
|
+
styleExpressionProperty({
|
|
84
|
+
property: "border-radius",
|
|
85
|
+
selector: "figure",
|
|
86
|
+
valueTemplate: (v) => `var(--gds-space-${v})`
|
|
87
|
+
})
|
|
88
|
+
], GdsImg.prototype, "radius", 2);
|
|
89
|
+
GdsImg = __decorateClass([
|
|
90
|
+
gdsCustomElement("gds-img")
|
|
91
|
+
], GdsImg);
|
|
92
|
+
|
|
93
|
+
export {
|
|
94
|
+
GdsImg
|
|
95
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// libs/core/src/components/content/text/text.style.css.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var style = css`
|
|
4
|
+
:host {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
* {
|
|
9
|
+
margin: unset;
|
|
10
|
+
font-weight: normal;
|
|
11
|
+
font-size: inherit;
|
|
12
|
+
line-height: inherit;
|
|
13
|
+
text-wrap: inherit;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
:host([lines]) {
|
|
17
|
+
* {
|
|
18
|
+
display: -webkit-box;
|
|
19
|
+
-webkit-box-orient: vertical;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
-webkit-line-clamp: var(--_lines);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
`;
|
|
25
|
+
var text_style_css_default = style;
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
text_style_css_default
|
|
29
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// libs/core/src/components/layout/grid/grid.style.css.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var style = css`
|
|
4
|
+
:host {
|
|
5
|
+
--_c: 12;
|
|
6
|
+
--_grid-col: repeat(var(--_c), 1fr);
|
|
7
|
+
display: grid;
|
|
8
|
+
width: 100%;
|
|
9
|
+
grid-template-columns: var(--_grid-col);
|
|
10
|
+
grid-column-gap: var(--_gap-column, 0px);
|
|
11
|
+
grid-row-gap: var(--_gap-row, 0px);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
:host([auto-columns]) {
|
|
15
|
+
--_col-count: var(--_c, 0);
|
|
16
|
+
--_gap-count: calc(var(--_col-count) - 1);
|
|
17
|
+
--_total-gap-width: calc(var(--_gap-count) * var(--_gap-column, 0px));
|
|
18
|
+
--_col-width-max: calc(
|
|
19
|
+
(100% - var(--_total-gap-width)) / var(--_col-count)
|
|
20
|
+
);
|
|
21
|
+
grid-template-columns: repeat(
|
|
22
|
+
auto-fill,
|
|
23
|
+
minmax(max(var(--_col-width), var(--_col-width-max)), 1fr)
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
`;
|
|
27
|
+
var grid_style_css_default = style;
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
grid_style_css_default
|
|
31
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GdsContainer
|
|
3
|
+
} from "./chunk.JZ7LISSM.js";
|
|
4
|
+
import {
|
|
5
|
+
flex_style_css_default
|
|
6
|
+
} from "./chunk.H4ZSHOXG.js";
|
|
7
|
+
import {
|
|
8
|
+
styleExpressionProperty
|
|
9
|
+
} from "./chunk.ADPMTWTS.js";
|
|
10
|
+
import {
|
|
11
|
+
tokens
|
|
12
|
+
} from "./chunk.5JXFH3CA.js";
|
|
13
|
+
import {
|
|
14
|
+
gdsCustomElement,
|
|
15
|
+
html
|
|
16
|
+
} from "./chunk.VOYMQ322.js";
|
|
17
|
+
import {
|
|
18
|
+
__decorateClass
|
|
19
|
+
} from "./chunk.5VURDMKE.js";
|
|
20
|
+
|
|
21
|
+
// libs/core/src/components/layout/flex/flex.ts
|
|
22
|
+
var GdsFlex = class extends GdsContainer {
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback();
|
|
25
|
+
this.display = "flex";
|
|
26
|
+
}
|
|
27
|
+
render() {
|
|
28
|
+
return html`<slot></slot>`;
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
GdsFlex.styles = [tokens, flex_style_css_default];
|
|
32
|
+
__decorateClass([
|
|
33
|
+
styleExpressionProperty({
|
|
34
|
+
styleTemplate: (_prop, values) => {
|
|
35
|
+
const colGap = values[0];
|
|
36
|
+
const rowGap = values[1] || colGap;
|
|
37
|
+
return `--_gap-column: ${colGap}; --_gap-row: ${rowGap};`;
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
], GdsFlex.prototype, "gap", 2);
|
|
41
|
+
__decorateClass([
|
|
42
|
+
styleExpressionProperty({
|
|
43
|
+
property: "align-items",
|
|
44
|
+
valueTemplate: (v) => v
|
|
45
|
+
})
|
|
46
|
+
], GdsFlex.prototype, "align", 2);
|
|
47
|
+
__decorateClass([
|
|
48
|
+
styleExpressionProperty({
|
|
49
|
+
property: "justify-content",
|
|
50
|
+
valueTemplate: (v) => v
|
|
51
|
+
})
|
|
52
|
+
], GdsFlex.prototype, "justify", 2);
|
|
53
|
+
__decorateClass([
|
|
54
|
+
styleExpressionProperty({
|
|
55
|
+
property: "flex-direction",
|
|
56
|
+
valueTemplate: (v) => v
|
|
57
|
+
})
|
|
58
|
+
], GdsFlex.prototype, "direction", 2);
|
|
59
|
+
GdsFlex = __decorateClass([
|
|
60
|
+
gdsCustomElement("gds-flex")
|
|
61
|
+
], GdsFlex);
|
|
62
|
+
|
|
63
|
+
export {
|
|
64
|
+
GdsFlex
|
|
65
|
+
};
|