@sebgroup/green-core 1.68.4 → 1.69.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.EYXSM3IO.js → chunk.3GQXXIAA.js} +2 -2
- package/chunks/{chunk.ZA7FUZWW.js → chunk.4D6PS3YB.js} +1 -1
- package/chunks/{chunk.EFTM4D5F.js → chunk.4GEYYFIK.js} +11 -5
- package/chunks/{chunk.EDYRAGUL.js → chunk.4KL2SL2I.js} +1 -1
- package/chunks/{chunk.6XYPJFZ5.js → chunk.5PXMD6FN.js} +2 -2
- package/chunks/chunk.6PGW4W5E.js +240 -0
- package/chunks/{chunk.WPD7436F.js → chunk.A7DPHMYA.js} +1 -1
- package/chunks/{chunk.TUSHH76M.js → chunk.BA4XMBLV.js} +1 -1
- package/chunks/{chunk.NAFFMLGK.js → chunk.BR67WBUE.js} +1 -1
- package/chunks/{chunk.C6XGJNM4.js → chunk.CHZ4Z2YY.js} +1 -1
- package/chunks/{chunk.ZWWU5COM.js → chunk.D73543IP.js} +1 -1
- package/chunks/{chunk.LWTVR43C.js → chunk.EPGFD7VH.js} +2 -2
- package/chunks/{chunk.LCNJORVJ.js → chunk.ERTFEGJX.js} +1 -1
- package/chunks/{chunk.TMBUYE3G.js → chunk.FB74W3AW.js} +2 -8
- package/chunks/{chunk.7CRT7WQF.js → chunk.FIRXUEIK.js} +1 -1
- package/chunks/{chunk.45A3E7GA.js → chunk.FV4KNGDE.js} +1 -1
- package/chunks/{chunk.IY2VDC7T.js → chunk.GJ6CZ6UN.js} +2 -2
- package/chunks/{chunk.TQ3TKXVC.js → chunk.GOPGCNDC.js} +1 -1
- package/chunks/{chunk.XUOZ3TKN.js → chunk.GRVFPKOG.js} +1 -1
- package/chunks/{chunk.NOL7ELKS.js → chunk.GVAZGVX2.js} +1 -1
- package/chunks/{chunk.7PVEQR6Y.js → chunk.GZQMA4XI.js} +1 -1
- package/chunks/{chunk.J7EM7GJ6.js → chunk.HBGEHVVS.js} +1 -1
- package/chunks/{chunk.5ZIK4RYR.js → chunk.I2YO744I.js} +2 -2
- package/chunks/{chunk.SXI3P5U5.js → chunk.IT5VVUWI.js} +1 -1
- package/chunks/chunk.ITT4IIHM.js +378 -0
- package/chunks/{chunk.Y65XQQBB.js → chunk.JFJHA6P6.js} +1 -1
- package/chunks/{chunk.ZRPKWV7G.js → chunk.JIL3VXPT.js} +2 -2
- package/chunks/{chunk.WGJELYN3.js → chunk.JLTWJMDP.js} +1 -1
- package/chunks/chunk.LTVUUK5B.js +0 -0
- package/chunks/{chunk.2M44U2K3.js → chunk.LUSRFI2X.js} +2 -2
- package/chunks/{chunk.4DVL6SCE.js → chunk.N6GUDNJV.js} +2 -2
- package/chunks/{chunk.4NEQU7ZK.js → chunk.NHCDT25A.js} +1 -1
- package/chunks/{chunk.JKFDIQUQ.js → chunk.NQQAFN6S.js} +1 -1
- package/chunks/{chunk.WBSBQTTV.js → chunk.NSJATXHH.js} +2 -2
- package/chunks/{chunk.MSVSXABF.js → chunk.OGHRZS7Z.js} +2 -2
- package/chunks/{chunk.MTHVWA5N.js → chunk.OGXYFLYC.js} +6 -6
- package/chunks/chunk.PBKM6LEO.js +0 -0
- package/chunks/{chunk.FYHXXDHZ.js → chunk.Q3QF6FIQ.js} +2 -2
- package/chunks/chunk.QK3R23GV.js +1 -1
- package/chunks/{chunk.DMFM4FHD.js → chunk.ST5QI4XQ.js} +93 -91
- package/chunks/{chunk.GETVG6RJ.js → chunk.UAED2ICJ.js} +1 -1
- package/chunks/{chunk.2OHW47UJ.js → chunk.UR2O7OZR.js} +2 -2
- package/chunks/{chunk.4DRWAIPQ.js → chunk.VDIZOFXQ.js} +1 -1
- package/chunks/chunk.VL6WP6CO.js +113 -0
- package/chunks/{chunk.ZP33HSUL.js → chunk.WDV4K3NB.js} +2 -2
- package/chunks/{chunk.IW324TUB.js → chunk.WSXUN75Q.js} +2 -2
- package/chunks/{chunk.IF5LOTNI.js → chunk.XA77YAN3.js} +1 -1
- package/components/badge/badge.js +4 -4
- package/components/badge/index.js +4 -4
- package/components/button/button.js +4 -4
- package/components/button/button.trans.styles.js +2 -2
- package/components/button/index.js +4 -4
- package/components/calendar/calendar.js +3 -3
- package/components/calendar/calendar.trans.styles.js +2 -2
- package/components/calendar/index.js +3 -3
- package/components/card/card.js +3 -3
- package/components/card/index.js +3 -3
- package/components/container/container.js +3 -3
- package/components/container/index.js +3 -3
- package/components/context-menu/context-menu.js +6 -6
- package/components/context-menu/context-menu.trans.styles.js +2 -2
- package/components/context-menu/index.js +7 -7
- package/components/datepicker/datepicker.js +16 -16
- package/components/datepicker/datepicker.trans.styles.js +2 -2
- package/components/datepicker/index.js +16 -16
- package/components/dialog/dialog.js +7 -7
- package/components/dialog/index.js +7 -7
- package/components/div/div.js +2 -2
- package/components/div/index.js +2 -2
- package/components/divider/divider.js +2 -2
- package/components/divider/index.js +2 -2
- package/components/dropdown/dropdown.js +13 -13
- package/components/dropdown/dropdown.trans.styles.js +2 -2
- package/components/dropdown/index.js +14 -14
- package/components/fab/fab.js +5 -5
- package/components/fab/index.js +5 -5
- package/components/filter-chips/filter-chip/filter-chip.js +5 -5
- package/components/filter-chips/filter-chip/filter-chip.trans.styles.js +2 -2
- 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 +2 -2
- package/components/filter-chips/index.js +5 -5
- package/components/flex/flex.js +3 -3
- package/components/flex/index.js +3 -3
- package/components/form/form-control.d.ts +4 -1
- package/components/form/index.js +6 -6
- package/components/form/summary/index.js +6 -6
- package/components/form/summary/summary.js +6 -6
- package/components/grid/grid.js +3 -3
- package/components/grid/index.js +3 -3
- package/components/grouped-list/grouped-list.js +3 -3
- package/components/grouped-list/grouped-list.trans.styles.js +2 -2
- package/components/grouped-list/index.js +3 -3
- package/components/img/img.js +2 -2
- package/components/img/index.js +2 -2
- package/components/index.d.ts +1 -0
- package/components/index.js +54 -43
- package/components/input/index.js +10 -10
- package/components/input/input.js +10 -10
- package/components/input/input.trans.styles.js +2 -2
- package/components/link/index.js +2 -2
- package/components/link/link.js +2 -2
- package/components/mask/index.js +4 -4
- package/components/mask/mask.js +4 -4
- package/components/menu-button/index.js +2 -2
- package/components/menu-button/menu-button.js +2 -2
- package/components/popover/index.js +3 -3
- package/components/popover/popover.js +3 -3
- package/components/popover/popover.trans.styles.js +2 -2
- package/components/radio/index.d.ts +2 -0
- package/components/radio/index.js +46 -0
- package/components/radio/radio-group/radio-group.d.ts +55 -0
- package/components/radio/radio-group/radio-group.js +39 -0
- package/components/radio/radio-group/radio-group.styles.d.ts +1 -0
- package/components/radio/radio.d.ts +44 -0
- package/components/radio/radio.js +17 -0
- package/components/radio/radio.styles.d.ts +1 -0
- package/components/radio/radio.trans.styles.d.ts +2 -0
- package/components/radio/radio.trans.styles.js +26 -0
- package/components/rich-text/index.js +2 -2
- package/components/rich-text/rich-text.js +2 -2
- 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/select/index.js +10 -10
- package/components/select/select.js +10 -10
- package/components/select/select.trans.styles.js +2 -2
- package/components/signal/index.js +2 -2
- package/components/signal/signal.js +2 -2
- package/components/spacer/index.js +2 -2
- package/components/spacer/spacer.js +2 -2
- package/components/spinner/gds-spinner.js +2 -2
- package/components/spinner/index.js +2 -2
- package/components/text/index.js +3 -3
- package/components/text/text.js +3 -3
- package/components/textarea/index.js +10 -10
- package/components/textarea/textarea.js +10 -10
- package/components/theme/index.js +3 -3
- package/components/theme/theme.js +3 -3
- package/components/theme/theme.trans.styles.js +2 -2
- package/components/video/index.js +2 -2
- package/components/video/video.js +2 -2
- package/index.js +54 -43
- package/package.json +1 -1
- package/primitives/field-base/field-base.js +3 -3
- package/primitives/field-base/index.js +3 -3
- package/primitives/form-control-footer/form-control-footer.js +4 -4
- package/primitives/form-control-footer/index.js +4 -4
- package/primitives/form-control-header/form-control-header.js +6 -6
- package/primitives/form-control-header/index.js +6 -6
- package/primitives/listbox/index.js +4 -4
- package/primitives/listbox/listbox.js +4 -4
- package/primitives/listbox/option.js +3 -3
- package/primitives/menu/index.js +4 -4
- package/primitives/menu/menu-heading.js +3 -3
- package/primitives/menu/menu-item.js +3 -3
- package/primitives/menu/menu.js +4 -4
- package/primitives/ripple/index.js +2 -2
- package/primitives/ripple/ripple.js +2 -2
- package/primitives/selection-controls/index.d.ts +1 -0
- package/primitives/selection-controls/index.js +15 -0
- package/primitives/selection-controls/selection-field-label.d.ts +36 -0
- package/primitives/selection-controls/selection-field-label.js +14 -0
- package/primitives/selection-controls/selection-field-label.styles.d.ts +1 -0
- package/transitional-styles.js +2 -2
- package/components/radio/radio-group.d.ts +0 -13
- package/components/radio/radio-group.js +0 -69
- /package/chunks/{chunk.2PVXNNB5.js → chunk.4S2VQKXS.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GdsDiv
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.FIRXUEIK.js";
|
|
4
4
|
import {
|
|
5
5
|
forSpaceTokens
|
|
6
6
|
} from "./chunk.76QWARGM.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.NUUST5OZ.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.OGXYFLYC.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk.WM7HBMMV.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.NHCDT25A.js";
|
|
7
7
|
import {
|
|
8
8
|
watch
|
|
9
9
|
} from "./chunk.TYGMNHNO.js";
|
|
@@ -30,8 +30,8 @@ import { classMap } from "lit/directives/class-map.js";
|
|
|
30
30
|
import {
|
|
31
31
|
autoUpdate,
|
|
32
32
|
computePosition,
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
offset,
|
|
34
|
+
shift
|
|
35
35
|
} from "@floating-ui/dom";
|
|
36
36
|
|
|
37
37
|
// libs/core/src/components/popover/popover.styles.ts
|
|
@@ -145,9 +145,15 @@ var GdsPopover = class extends GdsElement {
|
|
|
145
145
|
this.calcMinWidth = (referenceEl) => `${referenceEl.offsetWidth}px`;
|
|
146
146
|
this.calcMaxWidth = (_referenceEl) => `auto`;
|
|
147
147
|
this.calcMinHeight = (_referenceEl) => `auto`;
|
|
148
|
-
this.calcMaxHeight = (_referenceEl) =>
|
|
148
|
+
this.calcMaxHeight = (_referenceEl) => `${window.innerHeight - 16}px`;
|
|
149
149
|
this.nonmodal = false;
|
|
150
|
-
this.floatingUIMiddleware = [
|
|
150
|
+
this.floatingUIMiddleware = [
|
|
151
|
+
offset(8),
|
|
152
|
+
shift({
|
|
153
|
+
crossAxis: true,
|
|
154
|
+
padding: 8
|
|
155
|
+
})
|
|
156
|
+
];
|
|
151
157
|
this._trigger = void 0;
|
|
152
158
|
this._anchor = void 0;
|
|
153
159
|
this._isVirtKbVisible = false;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
TransitionalStyles
|
|
3
|
-
} from "./chunk.
|
|
3
|
+
} from "./chunk.NHCDT25A.js";
|
|
4
4
|
import {
|
|
5
5
|
watch
|
|
6
6
|
} from "./chunk.TYGMNHNO.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.OGXYFLYC.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.TMEWQZER.js";
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import {
|
|
2
|
+
watch
|
|
3
|
+
} from "./chunk.TYGMNHNO.js";
|
|
4
|
+
import {
|
|
5
|
+
tokens
|
|
6
|
+
} from "./chunk.OGXYFLYC.js";
|
|
7
|
+
import {
|
|
8
|
+
GdsElement
|
|
9
|
+
} from "./chunk.TMEWQZER.js";
|
|
10
|
+
import {
|
|
11
|
+
gdsCustomElement,
|
|
12
|
+
html
|
|
13
|
+
} from "./chunk.QK3R23GV.js";
|
|
14
|
+
import {
|
|
15
|
+
__decorateClass,
|
|
16
|
+
__privateAdd,
|
|
17
|
+
__privateGet
|
|
18
|
+
} from "./chunk.SEHSDSX2.js";
|
|
19
|
+
|
|
20
|
+
// libs/core/src/components/radio/radio.ts
|
|
21
|
+
import { property, state } from "lit/decorators.js";
|
|
22
|
+
|
|
23
|
+
// libs/core/src/components/radio/radio.styles.ts
|
|
24
|
+
import { css } from "lit";
|
|
25
|
+
var styles = css`
|
|
26
|
+
@layer base, a11y, reset, transitional-styles;
|
|
27
|
+
|
|
28
|
+
@layer a11y {
|
|
29
|
+
@media (prefers-reduced-motion: reduce) {
|
|
30
|
+
.radio {
|
|
31
|
+
transition: none;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
@layer base {
|
|
37
|
+
:host([disabled]) {
|
|
38
|
+
--_radio-label-color: var(--gds-color-l3-content-disabled);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.radio {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
position: relative;
|
|
46
|
+
width: var(--radio-disc-size);
|
|
47
|
+
height: var(--radio-disc-size);
|
|
48
|
+
margin-block-start: calc(var(--radio-border-width) * 2);
|
|
49
|
+
cursor: pointer;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.state {
|
|
53
|
+
display: flex;
|
|
54
|
+
box-sizing: border-box;
|
|
55
|
+
backface-visibility: hidden;
|
|
56
|
+
transition-property: background-color, scale, outline;
|
|
57
|
+
transition-duration: 248ms;
|
|
58
|
+
outline-style: solid;
|
|
59
|
+
outline-offset: calc(-1 * var(--radio-outline-width));
|
|
60
|
+
outline-width: var(--radio-outline-width);
|
|
61
|
+
outline-color: transparent;
|
|
62
|
+
border-radius: var(--radio-radius);
|
|
63
|
+
min-width: var(--radio-size);
|
|
64
|
+
min-height: var(--radio-size);
|
|
65
|
+
position: absolute;
|
|
66
|
+
left: calc(* 1 - calc((var(--radio-size) - var(--radio-disc-size)) / 2));
|
|
67
|
+
top: calc(* 1 - calc((var(--radio-size) - var(--radio-disc-size)) / 2));
|
|
68
|
+
scale: 0.8;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@media (hover: hover) {
|
|
72
|
+
.radio:hover,
|
|
73
|
+
:host(:hover) .radio .state {
|
|
74
|
+
background-color: var(--radio-bg-mix);
|
|
75
|
+
scale: 1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.radio:active .state,
|
|
80
|
+
:host(:active) .radio .state {
|
|
81
|
+
background-color: var(--radio-bg-mix-active);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
:host(:active:not(:focus-visible)) .radio:active .state,
|
|
85
|
+
:host(:active:not(:focus-visible)) .radio .state {
|
|
86
|
+
scale: 0.96;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
:host(:focus) {
|
|
90
|
+
outline: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
:host(:focus) .radio .state {
|
|
94
|
+
outline-color: var(--_radio-outline-color);
|
|
95
|
+
scale: 1;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
:host(:not(:focus-visible)) .radio .state {
|
|
99
|
+
outline-color: transparent;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.disc {
|
|
103
|
+
width: var(--radio-disc-size);
|
|
104
|
+
height: var(--radio-disc-size);
|
|
105
|
+
border-radius: var(--radio-radius);
|
|
106
|
+
box-shadow: inset 0 0 0 var(--radio-border-width)
|
|
107
|
+
var(--radio-border-color);
|
|
108
|
+
background-color: var(--radio-disc-background-color);
|
|
109
|
+
box-sizing: border-box;
|
|
110
|
+
transition-property: box-shadow;
|
|
111
|
+
transition-duration: 248ms;
|
|
112
|
+
will-change: box-shadow;
|
|
113
|
+
position: absolute;
|
|
114
|
+
inset: 0;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
:host([checked]) .disc,
|
|
118
|
+
:host(:active) .disc {
|
|
119
|
+
box-shadow: inset 0 0 0 var(--radio-border-width-selected)
|
|
120
|
+
var(--radio-border-color-selected);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
:host([disabled]) {
|
|
124
|
+
pointer-events: none;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
:host([disabled]) .radio .disc {
|
|
128
|
+
box-shadow: none;
|
|
129
|
+
background-color: var(--gds-color-l3-content-disabled);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
`;
|
|
133
|
+
|
|
134
|
+
// libs/core/src/components/radio/radio.ts
|
|
135
|
+
var _handleClick, _handleKeyDown;
|
|
136
|
+
var GdsRadio = class extends GdsElement {
|
|
137
|
+
constructor() {
|
|
138
|
+
super();
|
|
139
|
+
this.label = "";
|
|
140
|
+
this.supportingText = "";
|
|
141
|
+
this.value = "";
|
|
142
|
+
this.checked = false;
|
|
143
|
+
this.disabled = false;
|
|
144
|
+
this.invalid = false;
|
|
145
|
+
this._isFocused = false;
|
|
146
|
+
__privateAdd(this, _handleClick, (e) => {
|
|
147
|
+
if (this.disabled || !this.value || !this.label)
|
|
148
|
+
return;
|
|
149
|
+
e.preventDefault();
|
|
150
|
+
this.checked = true;
|
|
151
|
+
this.focus();
|
|
152
|
+
this.dispatchEvent(new Event("gds-radio-change", { bubbles: true }));
|
|
153
|
+
});
|
|
154
|
+
__privateAdd(this, _handleKeyDown, (e) => {
|
|
155
|
+
if (this.disabled)
|
|
156
|
+
return;
|
|
157
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
158
|
+
e.preventDefault();
|
|
159
|
+
this.checked = true;
|
|
160
|
+
this.dispatchEvent(new Event("gds-radio-change", { bubbles: true }));
|
|
161
|
+
}
|
|
162
|
+
});
|
|
163
|
+
this.addEventListener("keydown", __privateGet(this, _handleKeyDown));
|
|
164
|
+
this.addEventListener("focus", () => this._isFocused = true);
|
|
165
|
+
this.addEventListener("blur", () => this._isFocused = false);
|
|
166
|
+
}
|
|
167
|
+
connectedCallback() {
|
|
168
|
+
super.connectedCallback();
|
|
169
|
+
this.setAttribute("role", "radio");
|
|
170
|
+
this._updateAriaState();
|
|
171
|
+
this.addEventListener("click", __privateGet(this, _handleClick));
|
|
172
|
+
}
|
|
173
|
+
_updateAriaState() {
|
|
174
|
+
this.setAttribute("aria-checked", this.checked.toString());
|
|
175
|
+
this.setAttribute("aria-disabled", this.disabled.toString());
|
|
176
|
+
this.setAttribute("tabindex", this.disabled ? "-1" : "0");
|
|
177
|
+
this.toggleAttribute("aria-invalid", this.invalid);
|
|
178
|
+
}
|
|
179
|
+
updated(changedProperties) {
|
|
180
|
+
super.updated(changedProperties);
|
|
181
|
+
if (changedProperties.has("checked") || changedProperties.has("disabled") || changedProperties.has("invalid")) {
|
|
182
|
+
this._updateAriaState();
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
_handleDisabledChange() {
|
|
186
|
+
if (this.disabled) {
|
|
187
|
+
this.setAttribute("inert", "");
|
|
188
|
+
} else {
|
|
189
|
+
this.removeAttribute("inert");
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
render() {
|
|
193
|
+
return html`
|
|
194
|
+
<gds-selection-field-label
|
|
195
|
+
supporting-text=${this.supportingText}
|
|
196
|
+
label=${this.label}
|
|
197
|
+
type="radio"
|
|
198
|
+
>
|
|
199
|
+
<div class="radio">
|
|
200
|
+
<div class="state"></div>
|
|
201
|
+
<div class="disc"></div>
|
|
202
|
+
</div>
|
|
203
|
+
</gds-selection-field-label>
|
|
204
|
+
`;
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
_handleClick = new WeakMap();
|
|
208
|
+
_handleKeyDown = new WeakMap();
|
|
209
|
+
GdsRadio.styles = [tokens, styles];
|
|
210
|
+
__decorateClass([
|
|
211
|
+
property()
|
|
212
|
+
], GdsRadio.prototype, "label", 2);
|
|
213
|
+
__decorateClass([
|
|
214
|
+
property({ attribute: "supporting-text" })
|
|
215
|
+
], GdsRadio.prototype, "supportingText", 2);
|
|
216
|
+
__decorateClass([
|
|
217
|
+
property()
|
|
218
|
+
], GdsRadio.prototype, "value", 2);
|
|
219
|
+
__decorateClass([
|
|
220
|
+
property({ type: Boolean, reflect: true })
|
|
221
|
+
], GdsRadio.prototype, "checked", 2);
|
|
222
|
+
__decorateClass([
|
|
223
|
+
property({ type: Boolean, reflect: true })
|
|
224
|
+
], GdsRadio.prototype, "disabled", 2);
|
|
225
|
+
__decorateClass([
|
|
226
|
+
property({ type: Boolean })
|
|
227
|
+
], GdsRadio.prototype, "invalid", 2);
|
|
228
|
+
__decorateClass([
|
|
229
|
+
state()
|
|
230
|
+
], GdsRadio.prototype, "_isFocused", 2);
|
|
231
|
+
__decorateClass([
|
|
232
|
+
watch("disabled")
|
|
233
|
+
], GdsRadio.prototype, "_handleDisabledChange", 1);
|
|
234
|
+
GdsRadio = __decorateClass([
|
|
235
|
+
gdsCustomElement("gds-radio")
|
|
236
|
+
], GdsRadio);
|
|
237
|
+
|
|
238
|
+
export {
|
|
239
|
+
GdsRadio
|
|
240
|
+
};
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
} from "./chunk.TWXTKG4B.js";
|
|
9
9
|
import {
|
|
10
10
|
TransitionalStyles
|
|
11
|
-
} from "./chunk.
|
|
11
|
+
} from "./chunk.NHCDT25A.js";
|
|
12
12
|
import {
|
|
13
13
|
watch
|
|
14
14
|
} from "./chunk.TYGMNHNO.js";
|
|
15
15
|
import {
|
|
16
16
|
tokens
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.OGXYFLYC.js";
|
|
18
18
|
import {
|
|
19
19
|
GdsElement
|
|
20
20
|
} from "./chunk.TMEWQZER.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
} from "./chunk.TYGMNHNO.js";
|
|
10
10
|
import {
|
|
11
11
|
tokens
|
|
12
|
-
} from "./chunk.
|
|
12
|
+
} from "./chunk.OGXYFLYC.js";
|
|
13
13
|
import {
|
|
14
14
|
gdsCustomElement,
|
|
15
15
|
html
|
|
@@ -210,13 +210,7 @@ var GdsDropdown = class extends GdsFormControlElement {
|
|
|
210
210
|
`;
|
|
211
211
|
});
|
|
212
212
|
__privateAdd(this, _calcMaxHeight, (trigger) => {
|
|
213
|
-
const
|
|
214
|
-
const windowHeight = window.innerHeight;
|
|
215
|
-
const bottomSpace = windowHeight - triggerRect.bottom;
|
|
216
|
-
const topSpace = triggerRect.top;
|
|
217
|
-
let height = Math.min(topSpace, this.maxHeight);
|
|
218
|
-
if (bottomSpace > topSpace)
|
|
219
|
-
height = Math.min(bottomSpace, this.maxHeight);
|
|
213
|
+
const height = Math.min(window.innerHeight, this.maxHeight);
|
|
220
214
|
return `${height - 16}px`;
|
|
221
215
|
});
|
|
222
216
|
__privateAdd(this, _dispatchUISateEvent, (toState, reason) => this.dispatchEvent(
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
} from "./chunk.TWXTKG4B.js";
|
|
4
4
|
import {
|
|
5
5
|
TransitionalStyles
|
|
6
|
-
} from "./chunk.
|
|
6
|
+
} from "./chunk.NHCDT25A.js";
|
|
7
7
|
import {
|
|
8
8
|
tokens
|
|
9
|
-
} from "./chunk.
|
|
9
|
+
} from "./chunk.OGXYFLYC.js";
|
|
10
10
|
import {
|
|
11
11
|
GdsElement
|
|
12
12
|
} from "./chunk.TMEWQZER.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
} from "./chunk.TWXTKG4B.js";
|
|
12
12
|
import {
|
|
13
13
|
TransitionalStyles
|
|
14
|
-
} from "./chunk.
|
|
14
|
+
} from "./chunk.NHCDT25A.js";
|
|
15
15
|
import {
|
|
16
16
|
tokens
|
|
17
|
-
} from "./chunk.
|
|
17
|
+
} from "./chunk.OGXYFLYC.js";
|
|
18
18
|
import {
|
|
19
19
|
gdsCustomElement,
|
|
20
20
|
html
|