@sebgroup/green-core 1.83.0 → 1.83.1

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.
@@ -137,7 +137,7 @@ let Datepicker = class extends GdsFormControlElement {
137
137
  });
138
138
  __privateAdd(this, _handleCalendarChange, (e) => {
139
139
  e.stopPropagation();
140
- this.value = e.detail;
140
+ this.value = new Date(e.detail);
141
141
  this.open = false;
142
142
  __privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
143
143
  __privateMethod(this, _dispatchInputEvent, dispatchInputEvent_fn).call(this);
@@ -169,7 +169,7 @@ let Datepicker = class extends GdsFormControlElement {
169
169
  __privateAdd(this, _handleCalendarFocusChange, async () => {
170
170
  this._focusedMonth = (await this._elCalendar).focusedMonth;
171
171
  this._focusedYear = (await this._elCalendar).focusedYear;
172
- this.value = (await this._elCalendar).focusedDate;
172
+ this.value = new Date((await this._elCalendar).focusedDate);
173
173
  this.requestUpdate();
174
174
  __privateMethod(this, _dispatchInputEvent, dispatchInputEvent_fn).call(this);
175
175
  });
@@ -179,12 +179,17 @@ let Datepicker = class extends GdsFormControlElement {
179
179
  this.open = e.detail.open;
180
180
  if (e.detail.reason === "close") {
181
181
  const calValue = (await this._elCalendar).value;
182
+ if (!calValue) {
183
+ this.value = void 0;
184
+ __privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
185
+ return;
186
+ }
182
187
  const hasChanged = !isSameDay(
183
188
  calValue || /* @__PURE__ */ new Date(0),
184
189
  __privateGet(this, _valueOnOpen) || /* @__PURE__ */ new Date(0)
185
190
  );
186
191
  if (hasChanged) {
187
- this.value = calValue;
192
+ this.value = new Date(calValue);
188
193
  __privateMethod(this, _dispatchChangeEvent, dispatchChangeEvent_fn).call(this);
189
194
  }
190
195
  if (this.value) {
@@ -239,11 +244,7 @@ let Datepicker = class extends GdsFormControlElement {
239
244
  return "gds-datepicker";
240
245
  }
241
246
  get value() {
242
- const dateValue = super.value;
243
- if (dateValue instanceof Date) {
244
- return new Date(dateValue);
245
- }
246
- return void 0;
247
+ return super.value;
247
248
  }
248
249
  set value(value) {
249
250
  super.value = value;
@@ -2,6 +2,8 @@ import { GdsFlex } from '../flex/flex.component';
2
2
  /**
3
3
  * @element gds-mask
4
4
  * @status beta
5
+ *
6
+ * The `gds-mask` component is a container that applies gradient background for contrast. This component is experimental, and may change name or be removed in the future.
5
7
  */
6
8
  export declare class GdsMask extends GdsFlex {
7
9
  static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
@@ -18,9 +18,9 @@ export * from './fab/index.js';
18
18
  export * from './filter-chips/index.js';
19
19
  export * from './flex/index.js';
20
20
  export * from './form-summary/index.js';
21
+ export * from './grid/index.js';
21
22
  export * from './grouped-list/index.js';
22
23
  export * from './list-item/index.js';
23
- export * from './grid/index.js';
24
24
  export * from './icons/icon/index.js';
25
25
  export * from './img/index.js';
26
26
  export * from './input/index.js';
@@ -50,6 +50,11 @@ export * from './filter-chip/index.js';
50
50
  export * from './formatted-account/index.js';
51
51
  export * from './formatted-date/index.js';
52
52
  export * from './formatted-number/index.js';
53
+ export * from './radio-group/index.js';
54
+ export * from './segment/index.js';
55
+ export * from './sensitive-account/index.js';
56
+ export * from './sensitive-date/index.js';
57
+ export * from './sensitive-number/index.js';
53
58
  export * from './icons/icon-ai/index.js';
54
59
  export * from './icons/icon-airplane-up/index.js';
55
60
  export * from './icons/icon-archive/index.js';
@@ -337,8 +342,3 @@ export * from './icons/icon-youtube/index.js';
337
342
  export * from './icons/icon-zap/index.js';
338
343
  export * from './icons/icon-zoom-in/index.js';
339
344
  export * from './icons/icon-zoom-out/index.js';
340
- export * from './radio-group/index.js';
341
- export * from './segment/index.js';
342
- export * from './sensitive-account/index.js';
343
- export * from './sensitive-date/index.js';
344
- export * from './sensitive-number/index.js';
@@ -18,9 +18,9 @@ export * from "./fab/index.js";
18
18
  export * from "./filter-chips/index.js";
19
19
  export * from "./flex/index.js";
20
20
  export * from "./form-summary/index.js";
21
+ export * from "./grid/index.js";
21
22
  export * from "./grouped-list/index.js";
22
23
  export * from "./list-item/index.js";
23
- export * from "./grid/index.js";
24
24
  export * from "./icons/icon/index.js";
25
25
  export * from "./img/index.js";
26
26
  export * from "./input/index.js";
@@ -50,6 +50,11 @@ export * from "./filter-chip/index.js";
50
50
  export * from "./formatted-account/index.js";
51
51
  export * from "./formatted-date/index.js";
52
52
  export * from "./formatted-number/index.js";
53
+ export * from "./radio-group/index.js";
54
+ export * from "./segment/index.js";
55
+ export * from "./sensitive-account/index.js";
56
+ export * from "./sensitive-date/index.js";
57
+ export * from "./sensitive-number/index.js";
53
58
  export * from "./icons/icon-ai/index.js";
54
59
  export * from "./icons/icon-airplane-up/index.js";
55
60
  export * from "./icons/icon-archive/index.js";
@@ -337,8 +342,3 @@ export * from "./icons/icon-youtube/index.js";
337
342
  export * from "./icons/icon-zap/index.js";
338
343
  export * from "./icons/icon-zoom-in/index.js";
339
344
  export * from "./icons/icon-zoom-out/index.js";
340
- export * from "./radio-group/index.js";
341
- export * from "./segment/index.js";
342
- export * from "./sensitive-account/index.js";
343
- export * from "./sensitive-date/index.js";
344
- export * from "./sensitive-number/index.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sebgroup/green-core",
3
3
  "description": "A carefully crafted set of Web Components, laying the foundation of the Green Design System.",
4
- "version": "1.83.0",
4
+ "version": "1.83.1",
5
5
  "main": "index.js",
6
6
  "module": "index.js",
7
7
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  import "../../chunks/chunk.QTSIPXV3.js";
2
2
  import { html as litHtml } from "lit";
3
- const VER_SUFFIX = "-5f736a";
3
+ const VER_SUFFIX = "-747401";
4
4
  class ScopedElementRegistry {
5
5
  static get instance() {
6
6
  if (!globalThis.__gdsElementLookupTable?.[VER_SUFFIX])