@sebgroup/green-core 1.18.0 → 1.19.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.WD3QGIEJ.js → chunk.2V3RCC4W.js} +3 -3
- package/chunks/{chunk.CHEU4C5J.js → chunk.3WOE3WRP.js} +2 -2
- package/chunks/{chunk.VDWYFSGX.js → chunk.6DIOCJEK.js} +4 -8
- package/chunks/{chunk.IYCENQZG.js → chunk.7ET5U6M4.js} +1 -1
- package/chunks/{chunk.2LQSDOD4.js → chunk.ATDR2LQS.js} +5 -1
- package/chunks/{chunk.Q6AEDXQF.js → chunk.BXQSEF47.js} +18 -22
- package/chunks/{chunk.W7SFAX2D.js → chunk.E557RFML.js} +3 -3
- package/chunks/{chunk.DBTRYFAB.js → chunk.EVCXHZZV.js} +4 -7
- package/chunks/{chunk.XXIQLCV7.js → chunk.F2QPH4SQ.js} +41 -45
- package/chunks/{chunk.7ZCWP4FY.js → chunk.H3RHSZBE.js} +2 -2
- package/chunks/{chunk.H7YA5KO4.js → chunk.HQQWYXGV.js} +3 -7
- package/chunks/{chunk.ZEJDA4NS.js → chunk.JRQ6R42T.js} +4 -8
- package/chunks/{chunk.ZKE3WNWY.js → chunk.MSPF6KFQ.js} +1 -1
- package/chunks/{chunk.XMPBXAGB.js → chunk.NBEFLQNK.js} +0 -1
- package/chunks/{chunk.YIQIH4RW.js → chunk.OBMJAQII.js} +1 -1
- package/chunks/{chunk.2Y3BHFKO.js → chunk.PUECQM7D.js} +1 -1
- package/chunks/{chunk.URP77GWW.js → chunk.SPH3C7EL.js} +3 -8
- package/chunks/{chunk.WEE5C637.js → chunk.TQNYJ3ZV.js} +3 -7
- package/chunks/chunk.VOYMQ322.js +1 -1
- package/chunks/{chunk.DWSGVBRK.js → chunk.W25MKPJZ.js} +5 -9
- package/chunks/chunk.W7CV3QYI.js +105 -0
- package/chunks/{chunk.XQ3SZZAO.js → chunk.WD3OOHSN.js} +29 -60
- package/chunks/chunk.WDBWUEJJ.js +196 -0
- package/chunks/{chunk.MVCYVB3S.js → chunk.WJ5KHFD2.js} +4 -7
- package/chunks/{chunk.MMVYFXTU.js → chunk.X2SAPDS5.js} +4 -4
- package/chunks/{chunk.I2IU2N5F.js → chunk.XJBBISJT.js} +3 -7
- package/components/button/button.js +8 -7
- package/components/button/button.trans.styles.js +2 -1
- package/components/button/index.js +8 -7
- package/components/context-menu/context-menu.d.ts +0 -1
- package/components/context-menu/context-menu.js +8 -7
- package/components/context-menu/context-menu.trans.styles.js +2 -1
- package/components/context-menu/index.js +9 -8
- package/components/datepicker/date-part-spinner.js +1 -1
- package/components/datepicker/datepicker.d.ts +0 -1
- package/components/datepicker/datepicker.js +12 -11
- package/components/datepicker/datepicker.trans.styles.js +2 -1
- package/components/datepicker/index.js +12 -11
- package/components/dropdown/dropdown.d.ts +0 -1
- package/components/dropdown/dropdown.js +9 -8
- package/components/dropdown/dropdown.trans.styles.js +2 -1
- package/components/dropdown/index.js +10 -9
- package/components/form-control.js +4 -3
- package/components/grid/grid.d.ts +5 -12
- package/components/grid/grid.js +6 -3
- package/components/grid/grid.style.css.js +1 -1
- package/components/grid/index.js +6 -3
- package/components/grouped-list/grouped-list.d.ts +0 -1
- package/components/grouped-list/grouped-list.js +5 -4
- package/components/grouped-list/grouped-list.trans.styles.js +2 -1
- package/components/grouped-list/index.js +5 -4
- package/components/grouped-list/list-item.js +3 -2
- package/components/icon/icon.js +3 -2
- package/components/icon/index.js +3 -2
- package/components/index.js +26 -25
- package/components/input/input.js +5 -4
- package/components/segmented-control/index.js +7 -6
- package/components/segmented-control/segment/index.js +5 -4
- package/components/segmented-control/segment/segment.js +5 -4
- package/components/segmented-control/segment/segment.trans.styles.js +2 -1
- package/components/segmented-control/segmented-control.d.ts +0 -1
- package/components/segmented-control/segmented-control.js +7 -6
- package/components/segmented-control/segmented-control.trans.styles.js +2 -1
- package/components/theme/index.js +4 -3
- package/components/theme/theme.js +4 -3
- package/components/theme/theme.trans.styles.js +2 -1
- package/controllers/dynamic-styles-controller.d.ts +23 -0
- package/dynamic-styles.d.ts +1 -0
- package/gds-element.d.ts +3 -0
- package/index.js +26 -25
- package/package.json +2 -2
- package/primitives/calendar/calendar.d.ts +0 -1
- package/primitives/calendar/calendar.js +5 -4
- package/primitives/calendar/index.js +5 -4
- package/primitives/listbox/index.js +6 -5
- package/primitives/listbox/listbox.d.ts +0 -1
- package/primitives/listbox/listbox.js +6 -5
- package/primitives/listbox/option.d.ts +0 -1
- package/primitives/listbox/option.js +5 -4
- package/primitives/menu/index.js +5 -4
- package/primitives/menu/menu-heading.js +4 -3
- package/primitives/menu/menu-item.d.ts +0 -1
- package/primitives/menu/menu-item.js +4 -3
- package/primitives/menu/menu.d.ts +0 -1
- package/primitives/menu/menu.js +5 -4
- package/primitives/popover/index.js +5 -4
- package/primitives/popover/popover.d.ts +0 -1
- package/primitives/popover/popover.js +5 -4
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/transitional-styles.js +2 -1
- package/utils/transitional-styles/transitional-styles.d.ts +4 -8
- package/chunks/chunk.WIWIGJID.js +0 -244
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsFormControlElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OBMJAQII.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.X2SAPDS5.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WD3OOHSN.js";
|
|
10
10
|
import {
|
|
11
11
|
constrainSlots
|
|
12
12
|
} from "./chunk.6NM7ENKA.js";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WD3OOHSN.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsElement
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.ATDR2LQS.js";
|
|
7
7
|
import {
|
|
8
8
|
constrainSlots
|
|
9
9
|
} from "./chunk.6NM7ENKA.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
import { nothing } from "lit";
|
|
22
22
|
import { msg } from "@lit/localize";
|
|
23
23
|
import { classMap } from "lit-html/directives/class-map.js";
|
|
24
|
-
import { property, queryAsync
|
|
24
|
+
import { property, queryAsync } from "lit/decorators.js";
|
|
25
25
|
|
|
26
26
|
// libs/core/src/components/context-menu/context-menu.styles.ts
|
|
27
27
|
import { css } from "lit";
|
|
@@ -73,8 +73,7 @@ var GdsContextMenu = class extends GdsElement {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
var _a, _b, _c;
|
|
76
|
-
return html
|
|
77
|
-
<button
|
|
76
|
+
return html`<button
|
|
78
77
|
id="trigger"
|
|
79
78
|
class="icon border-0 small ${classMap({ highlighted: this.open })}"
|
|
80
79
|
aria-label=${(_a = this.buttonLabel) != null ? _a : this.label}
|
|
@@ -138,9 +137,6 @@ __decorateClass([
|
|
|
138
137
|
__decorateClass([
|
|
139
138
|
property()
|
|
140
139
|
], GdsContextMenu.prototype, "placement", 2);
|
|
141
|
-
__decorateClass([
|
|
142
|
-
state()
|
|
143
|
-
], GdsContextMenu.prototype, "_tStyles", 2);
|
|
144
140
|
__decorateClass([
|
|
145
141
|
queryAsync("#trigger")
|
|
146
142
|
], GdsContextMenu.prototype, "elTriggerBtn", 2);
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DynamicStylesController
|
|
3
|
+
} from "./chunk.W7CV3QYI.js";
|
|
1
4
|
import {
|
|
2
5
|
getUnscopedTagName
|
|
3
6
|
} from "./chunk.VOYMQ322.js";
|
|
@@ -6,7 +9,7 @@ import {
|
|
|
6
9
|
import { LitElement } from "lit";
|
|
7
10
|
var GdsElement = class extends LitElement {
|
|
8
11
|
constructor() {
|
|
9
|
-
super(
|
|
12
|
+
super();
|
|
10
13
|
/**
|
|
11
14
|
* The unscoped name of this element.
|
|
12
15
|
*/
|
|
@@ -16,6 +19,7 @@ var GdsElement = class extends LitElement {
|
|
|
16
19
|
* @internal
|
|
17
20
|
*/
|
|
18
21
|
this._isUsingTransitionalStyles = false;
|
|
22
|
+
this._dynamicStylesController = new DynamicStylesController(this);
|
|
19
23
|
}
|
|
20
24
|
connectedCallback() {
|
|
21
25
|
super.connectedCallback();
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WD3OOHSN.js";
|
|
4
4
|
import {
|
|
5
5
|
watchMediaQuery
|
|
6
6
|
} from "./chunk.WM7HBMMV.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsElement
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ATDR2LQS.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -195,23 +195,22 @@ var GdsPopover = class extends GdsElement {
|
|
|
195
195
|
__privateMethod(this, _unregisterTriggerEvents, unregisterTriggerEvents_fn).call(this);
|
|
196
196
|
}
|
|
197
197
|
render() {
|
|
198
|
-
return html
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
>
|
|
203
|
-
<
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
>
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
</dialog>`;
|
|
198
|
+
return html`<dialog
|
|
199
|
+
class="${classMap({ "v-kb-visible": this._isVirtKbVisible })}"
|
|
200
|
+
${ref(__privateGet(this, _dialogElementRef))}
|
|
201
|
+
>
|
|
202
|
+
<header>
|
|
203
|
+
<h2>${this.label}</h2>
|
|
204
|
+
<button
|
|
205
|
+
class="close"
|
|
206
|
+
@click=${__privateGet(this, _handleCloseButton)}
|
|
207
|
+
aria-label="${msg("Close")}"
|
|
208
|
+
>
|
|
209
|
+
<i></i>
|
|
210
|
+
</button>
|
|
211
|
+
</header>
|
|
212
|
+
<slot></slot>
|
|
213
|
+
</dialog>`;
|
|
215
214
|
}
|
|
216
215
|
_handleOpenChange() {
|
|
217
216
|
this.setAttribute("aria-hidden", String(!this.open));
|
|
@@ -342,9 +341,6 @@ __decorateClass([
|
|
|
342
341
|
__decorateClass([
|
|
343
342
|
watch("_trigger")
|
|
344
343
|
], GdsPopover.prototype, "_handleTriggerChanged", 1);
|
|
345
|
-
__decorateClass([
|
|
346
|
-
state()
|
|
347
|
-
], GdsPopover.prototype, "_tStyles", 2);
|
|
348
344
|
__decorateClass([
|
|
349
345
|
watch("open")
|
|
350
346
|
], GdsPopover.prototype, "_handleOpenChange", 1);
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
tokens
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.X2SAPDS5.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WD3OOHSN.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsElement
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ATDR2LQS.js";
|
|
10
10
|
import {
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.WD3OOHSN.js";
|
|
4
4
|
import {
|
|
5
5
|
GdsElement
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.ATDR2LQS.js";
|
|
7
7
|
import {
|
|
8
8
|
constrainSlots
|
|
9
9
|
} from "./chunk.6NM7ENKA.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk.5VURDMKE.js";
|
|
17
17
|
|
|
18
18
|
// libs/core/src/components/grouped-list/grouped-list.ts
|
|
19
|
-
import {
|
|
19
|
+
import { property } from "lit/decorators.js";
|
|
20
20
|
import { when } from "lit/directives/when.js";
|
|
21
21
|
var GdsGroupedList = class extends GdsElement {
|
|
22
22
|
constructor() {
|
|
@@ -29,7 +29,7 @@ var GdsGroupedList = class extends GdsElement {
|
|
|
29
29
|
TransitionalStyles.instance.apply(this, "gds-grouped-list");
|
|
30
30
|
}
|
|
31
31
|
render() {
|
|
32
|
-
return html`${
|
|
32
|
+
return html`${when(
|
|
33
33
|
this.label,
|
|
34
34
|
() => html`<div class="gds-list-heading" aria-hidden="true" id="label">
|
|
35
35
|
${this.label}
|
|
@@ -40,9 +40,6 @@ var GdsGroupedList = class extends GdsElement {
|
|
|
40
40
|
</div>`;
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
|
-
__decorateClass([
|
|
44
|
-
state()
|
|
45
|
-
], GdsGroupedList.prototype, "_tStyles", 2);
|
|
46
43
|
__decorateClass([
|
|
47
44
|
property()
|
|
48
45
|
], GdsGroupedList.prototype, "label", 2);
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.375BWME4.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WD3OOHSN.js";
|
|
7
7
|
import {
|
|
8
8
|
GdsElement
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.ATDR2LQS.js";
|
|
10
10
|
import {
|
|
11
11
|
watch
|
|
12
12
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import { html } from "lit";
|
|
24
24
|
import { classMap } from "lit/directives/class-map.js";
|
|
25
25
|
import { when } from "lit/directives/when.js";
|
|
26
|
-
import { property, query
|
|
26
|
+
import { property, query } from "lit/decorators.js";
|
|
27
27
|
import { msg } from "@lit/localize";
|
|
28
28
|
import {
|
|
29
29
|
addDays,
|
|
@@ -97,61 +97,60 @@ var GdsCalendar = class extends GdsElement {
|
|
|
97
97
|
}
|
|
98
98
|
render() {
|
|
99
99
|
const currentDate = /* @__PURE__ */ new Date();
|
|
100
|
-
return html
|
|
101
|
-
<
|
|
102
|
-
<
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
${renderMonthGridView(
|
|
100
|
+
return html`<table>
|
|
101
|
+
<thead>
|
|
102
|
+
<tr>
|
|
103
|
+
${when(this.showWeekNumbers, () => html`<th></th>`)}
|
|
104
|
+
<th>${msg("Mon")}</th>
|
|
105
|
+
<th>${msg("Tue")}</th>
|
|
106
|
+
<th>${msg("Wed")}</th>
|
|
107
|
+
<th>${msg("Thu")}</th>
|
|
108
|
+
<th>${msg("Fri")}</th>
|
|
109
|
+
<th>${msg("Sat")}</th>
|
|
110
|
+
<th>${msg("Sun")}</th>
|
|
111
|
+
</tr>
|
|
112
|
+
</thead>
|
|
113
|
+
<tbody>
|
|
114
|
+
${renderMonthGridView(
|
|
116
115
|
this.focusedDate,
|
|
117
116
|
(weeks) => html`
|
|
118
|
-
|
|
117
|
+
${weeks.map(
|
|
119
118
|
(week) => html`
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
<tr>
|
|
120
|
+
${when(
|
|
122
121
|
this.showWeekNumbers,
|
|
123
122
|
() => html`<td class="week-number">
|
|
124
|
-
|
|
125
|
-
|
|
123
|
+
${getWeek(week.days[0])}
|
|
124
|
+
</td>`
|
|
126
125
|
)}
|
|
127
|
-
|
|
126
|
+
${week.days.map((day) => {
|
|
128
127
|
const isOutsideCurrentMonth = !isSameMonth(this.focusedDate, day) || day < this.min || day > this.max;
|
|
129
128
|
const isWeekend = day.getDay() === 0 || day.getDay() === 6;
|
|
130
129
|
const isDisabled = isOutsideCurrentMonth || this.disabledWeekends && isWeekend || this.disabledDates && this.disabledDates.some((d) => isSameDay(d, day));
|
|
131
130
|
return html`
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
<td
|
|
132
|
+
class="${classMap({
|
|
134
133
|
disabled: Boolean(isDisabled),
|
|
135
134
|
today: isSameDay(currentDate, day)
|
|
136
135
|
})}"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
136
|
+
?disabled=${isDisabled}
|
|
137
|
+
tabindex="${isSameDay(this.focusedDate, day) ? 0 : -1}"
|
|
138
|
+
aria-selected="${this.value && isSameDay(this.value, day)}"
|
|
139
|
+
aria-label="${day.toDateString()}"
|
|
140
|
+
@click=${() => isDisabled ? null : __privateMethod(this, _setSelectedDate, setSelectedDate_fn).call(this, day)}
|
|
141
|
+
id="dateCell-${day.getDate()}"
|
|
142
|
+
>
|
|
143
|
+
${day.getDate()}
|
|
144
|
+
</td>
|
|
145
|
+
`;
|
|
147
146
|
})}
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
</tr>
|
|
148
|
+
`
|
|
150
149
|
)}
|
|
151
|
-
|
|
150
|
+
`
|
|
152
151
|
)}
|
|
153
|
-
|
|
154
|
-
|
|
152
|
+
</tbody>
|
|
153
|
+
</table>`;
|
|
155
154
|
}
|
|
156
155
|
_valueChanged() {
|
|
157
156
|
if (!this.value)
|
|
@@ -259,9 +258,6 @@ __decorateClass([
|
|
|
259
258
|
__decorateClass([
|
|
260
259
|
query('td[tabindex="0"]')
|
|
261
260
|
], GdsCalendar.prototype, "_elFocusedCell", 2);
|
|
262
|
-
__decorateClass([
|
|
263
|
-
state()
|
|
264
|
-
], GdsCalendar.prototype, "_tStyles", 2);
|
|
265
261
|
__decorateClass([
|
|
266
262
|
watch("value")
|
|
267
263
|
], GdsCalendar.prototype, "_valueChanged", 1);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsFormControlElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OBMJAQII.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WD3OOHSN.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -263,8 +263,7 @@ var GdsDatepicker = class extends GdsFormControlElement {
|
|
|
263
263
|
TransitionalStyles.instance.apply(this, "gds-datepicker");
|
|
264
264
|
}
|
|
265
265
|
render() {
|
|
266
|
-
return html`${
|
|
267
|
-
${when(
|
|
266
|
+
return html`${when(
|
|
268
267
|
this.label && !this.hideLabel,
|
|
269
268
|
() => html`<label for="spinner-0" id="label">${this.label}</label>`
|
|
270
269
|
)}
|
|
@@ -637,9 +636,6 @@ __decorateClass([
|
|
|
637
636
|
__decorateClass([
|
|
638
637
|
query(".input")
|
|
639
638
|
], GdsDatepicker.prototype, "_elInput", 2);
|
|
640
|
-
__decorateClass([
|
|
641
|
-
state()
|
|
642
|
-
], GdsDatepicker.prototype, "_tStyles", 2);
|
|
643
639
|
__decorateClass([
|
|
644
640
|
watch("value")
|
|
645
641
|
], GdsDatepicker.prototype, "_handleValueChange", 1);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk.2ND5EWHE.js";
|
|
5
5
|
import {
|
|
6
6
|
TransitionalStyles
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.WD3OOHSN.js";
|
|
8
8
|
import {
|
|
9
9
|
GdsElement
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.ATDR2LQS.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
|
|
25
25
|
// libs/core/src/primitives/listbox/option.ts
|
|
26
26
|
import { html } from "lit";
|
|
27
|
-
import { property
|
|
27
|
+
import { property } from "lit/decorators.js";
|
|
28
28
|
import { when } from "lit/directives/when.js";
|
|
29
29
|
import { classMap } from "lit/directives/class-map.js";
|
|
30
30
|
import "reflect-metadata";
|
|
@@ -88,8 +88,7 @@ var GdsOption = class extends Focusable(GdsElement) {
|
|
|
88
88
|
else
|
|
89
89
|
this.removeAttribute("highlighted");
|
|
90
90
|
}
|
|
91
|
-
return html
|
|
92
|
-
<div>${when(isMultiple, () => checkbox)} <slot></slot></div>`;
|
|
91
|
+
return html`<div>${when(isMultiple, () => checkbox)} <slot></slot></div>`;
|
|
93
92
|
}
|
|
94
93
|
};
|
|
95
94
|
_hidden = new WeakMap();
|
|
@@ -125,9 +124,6 @@ __decorateClass([
|
|
|
125
124
|
__decorateClass([
|
|
126
125
|
property({ type: Boolean, reflect: true })
|
|
127
126
|
], GdsOption.prototype, "isPlaceholder", 2);
|
|
128
|
-
__decorateClass([
|
|
129
|
-
state()
|
|
130
|
-
], GdsOption.prototype, "_tStyles", 2);
|
|
131
127
|
__decorateClass([
|
|
132
128
|
watch("isplaceholder")
|
|
133
129
|
], GdsOption.prototype, "_handlePlaceholderStatusChange", 1);
|
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk.2ND5EWHE.js";
|
|
5
5
|
import {
|
|
6
6
|
TransitionalStyles
|
|
7
|
-
} from "./chunk.
|
|
7
|
+
} from "./chunk.WD3OOHSN.js";
|
|
8
8
|
import {
|
|
9
9
|
GdsElement
|
|
10
|
-
} from "./chunk.
|
|
10
|
+
} from "./chunk.ATDR2LQS.js";
|
|
11
11
|
import {
|
|
12
12
|
gdsCustomElement,
|
|
13
13
|
html
|
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
} from "./chunk.5VURDMKE.js";
|
|
20
20
|
|
|
21
21
|
// libs/core/src/primitives/menu/menu-item.ts
|
|
22
|
-
import { state } from "lit/decorators.js";
|
|
23
22
|
var _handleOnClick;
|
|
24
23
|
var GdsMenuItem = class extends Focusable(GdsElement) {
|
|
25
24
|
constructor() {
|
|
@@ -46,15 +45,11 @@ var GdsMenuItem = class extends Focusable(GdsElement) {
|
|
|
46
45
|
TransitionalStyles.instance.apply(this, "gds-option");
|
|
47
46
|
}
|
|
48
47
|
render() {
|
|
49
|
-
return html
|
|
50
|
-
<div><slot></slot></div>`;
|
|
48
|
+
return html`<div><slot></slot></div>`;
|
|
51
49
|
}
|
|
52
50
|
};
|
|
53
51
|
_handleOnClick = new WeakMap();
|
|
54
52
|
GdsMenuItem.styles = [option_styles_default];
|
|
55
|
-
__decorateClass([
|
|
56
|
-
state()
|
|
57
|
-
], GdsMenuItem.prototype, "_tStyles", 2);
|
|
58
53
|
GdsMenuItem = __decorateClass([
|
|
59
54
|
gdsCustomElement("gds-menu-item")
|
|
60
55
|
], GdsMenuItem);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsFormControlElement
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.OBMJAQII.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.WD3OOHSN.js";
|
|
7
7
|
import {
|
|
8
8
|
observeLightDOM
|
|
9
9
|
} from "./chunk.WM7HBMMV.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
} from "./chunk.5VURDMKE.js";
|
|
28
28
|
|
|
29
29
|
// libs/core/src/components/dropdown/dropdown.ts
|
|
30
|
-
import { property, query, queryAsync
|
|
30
|
+
import { property, query, queryAsync } from "lit/decorators.js";
|
|
31
31
|
import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
32
32
|
import { when } from "lit/directives/when.js";
|
|
33
33
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
@@ -199,7 +199,6 @@ var GdsDropdown = class extends GdsFormControlElement {
|
|
|
199
199
|
}
|
|
200
200
|
render() {
|
|
201
201
|
return html`
|
|
202
|
-
${this._tStyles}
|
|
203
202
|
${when(
|
|
204
203
|
this.label && !this.hideLabel,
|
|
205
204
|
() => html`<label for="trigger">${this.label}</label>`
|
|
@@ -382,9 +381,6 @@ __decorateClass([
|
|
|
382
381
|
__decorateClass([
|
|
383
382
|
property({ type: Boolean, attribute: "hide-label" })
|
|
384
383
|
], GdsDropdown.prototype, "hideLabel", 2);
|
|
385
|
-
__decorateClass([
|
|
386
|
-
state()
|
|
387
|
-
], GdsDropdown.prototype, "_tStyles", 2);
|
|
388
384
|
__decorateClass([
|
|
389
385
|
query("#trigger")
|
|
390
386
|
], GdsDropdown.prototype, "_elTriggerBtn", 2);
|
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 = "-914809";
|
|
5
5
|
var elementLookupTable = /* @__PURE__ */ new Map();
|
|
6
6
|
var gdsCustomElement = (tagName) => {
|
|
7
7
|
if (globalThis.GDS_DISABLE_VERSIONED_ELEMENTS) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsSegment
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.E557RFML.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.X2SAPDS5.js";
|
|
7
7
|
import {
|
|
8
8
|
TransitionalStyles
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.WD3OOHSN.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.ATDR2LQS.js";
|
|
13
13
|
import {
|
|
14
14
|
watch
|
|
15
15
|
} from "./chunk.2WO4NHJ2.js";
|
|
@@ -335,8 +335,7 @@ var GdsSegmentedControl = class extends GdsElement {
|
|
|
335
335
|
__privateGet(this, _resizeObserver).unobserve(this);
|
|
336
336
|
}
|
|
337
337
|
render() {
|
|
338
|
-
return html`${
|
|
339
|
-
${when(
|
|
338
|
+
return html`${when(
|
|
340
339
|
this._showPrevButton,
|
|
341
340
|
() => html`<button
|
|
342
341
|
id="btn-prev"
|
|
@@ -427,9 +426,6 @@ __decorateClass([
|
|
|
427
426
|
__decorateClass([
|
|
428
427
|
property()
|
|
429
428
|
], GdsSegmentedControl.prototype, "value", 1);
|
|
430
|
-
__decorateClass([
|
|
431
|
-
state()
|
|
432
|
-
], GdsSegmentedControl.prototype, "_tStyles", 2);
|
|
433
429
|
__decorateClass([
|
|
434
430
|
query("slot")
|
|
435
431
|
], GdsSegmentedControl.prototype, "_elSlot", 2);
|