@sebgroup/green-core 2.28.1 → 2.28.2-rc.20260203113139123
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/components/calendar/calendar.component.js +3 -2
- package/components/calendar/calendar.styles.js +4 -0
- package/components/dropdown/dropdown.component.js +1 -0
- package/custom-elements.json +12025 -12025
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/generated/react/index.d.ts +8 -8
- package/generated/react/index.js +8 -8
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -148,7 +148,7 @@ let GdsCalendar = class extends GdsElement {
|
|
|
148
148
|
);
|
|
149
149
|
const isOutsideMinMax = (day < this.min || day > this.max) && !isSameDay(day, this.min) && !isSameDay(day, this.max);
|
|
150
150
|
const isWeekend = day.getDay() === 0 || day.getDay() === 6;
|
|
151
|
-
const isDisabled = displayOptions.disabled ||
|
|
151
|
+
const isDisabled = displayOptions.disabled || isOutsideMinMax || this.disabledWeekends && isWeekend;
|
|
152
152
|
const shouldRenderBlank = this.hideExtraneousDays && isOutsideCurrentMonth;
|
|
153
153
|
return shouldRenderBlank ? html`<td inert></td>` : html`
|
|
154
154
|
<td
|
|
@@ -159,7 +159,8 @@ let GdsCalendar = class extends GdsElement {
|
|
|
159
159
|
small: Boolean(this.size === "small"),
|
|
160
160
|
"custom-date": Boolean(customization),
|
|
161
161
|
disabled: Boolean(isDisabled),
|
|
162
|
-
today: isSameDay(currentDate, day)
|
|
162
|
+
today: isSameDay(currentDate, day),
|
|
163
|
+
"outside-month": isOutsideCurrentMonth
|
|
163
164
|
})}"
|
|
164
165
|
?disabled=${isDisabled}
|
|
165
166
|
tabindex="${isSameDay(this.focusedDate, day) ? 0 : -1}"
|
|
@@ -446,6 +446,7 @@ let Dropdown = class extends GdsFormControlElement {
|
|
|
446
446
|
this.options[0] && (this.options[0].selected = true);
|
|
447
447
|
this.value = this.options[0]?.value;
|
|
448
448
|
}
|
|
449
|
+
this._handleValueChange();
|
|
449
450
|
}
|
|
450
451
|
_handleValueChange() {
|
|
451
452
|
this._elListbox.then((listbox) => {
|