scb-wc 0.1.78 → 0.1.80
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/README.md +41 -22
- package/all.js +0 -2
- package/index.js +88 -90
- package/mvc/components/all.js +0 -2
- package/mvc/components/scb-accordion/scb-accordion-item.js +3 -173
- package/mvc/components/scb-accordion/scb-accordion.js +4 -33
- package/mvc/components/scb-app-bar/scb-app-bar.js +2 -110
- package/mvc/components/scb-avatar/scb-avatar.js +2 -94
- package/mvc/components/scb-badge/scb-badge.js +2 -72
- package/mvc/components/scb-breadcrumb/scb-breadcrumb-item.js +2 -12
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +4 -91
- package/mvc/components/scb-button/scb-button.js +47 -309
- package/mvc/components/scb-calendar/scb-calendar-event.js +2 -6
- package/mvc/components/scb-calendar/scb-calendar.js +6 -120
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +21 -350
- package/mvc/components/scb-card/scb-card.js +54 -819
- package/mvc/components/scb-checkbox/scb-checkbox-group.js +3 -31
- package/mvc/components/scb-checkbox/scb-checkbox.js +5 -127
- package/mvc/components/scb-chip/scb-chip.js +2 -76
- package/mvc/components/scb-collapse/scb-collapse.js +2 -44
- package/mvc/components/scb-cookies-consent/scb-cookies-consent.js +7 -73
- package/mvc/components/scb-dialog/scb-dialog.js +2 -213
- package/mvc/components/scb-divider/scb-divider.js +1 -69
- package/mvc/components/scb-drawer/scb-drawer.js +6 -102
- package/mvc/components/scb-drop-zone/scb-drop-zone.js +2 -410
- package/mvc/components/scb-dropdown/scb-dropdown.js +17 -222
- package/mvc/components/scb-fab/scb-fab.js +7 -95
- package/mvc/components/scb-fact-card/scb-fact-card-content.js +2 -69
- package/mvc/components/scb-fact-card/scb-fact-card.js +2 -214
- package/mvc/components/scb-footer/scb-footer-section.js +1 -3
- package/mvc/components/scb-footer/scb-footer.js +3 -172
- package/mvc/components/scb-gallery-grid/scb-gallery-grid.js +2 -112
- package/mvc/components/scb-grid/scb-grid-item.js +1 -32
- package/mvc/components/scb-grid/scb-grid.js +1 -99
- package/mvc/components/scb-grid/scb-stack.js +1 -33
- package/mvc/components/scb-header/scb-header-menu-item.js +1 -5
- package/mvc/components/scb-header/scb-header-tab.js +1 -5
- package/mvc/components/scb-header/scb-header.js +75 -888
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +43 -168
- package/mvc/components/scb-icon-button/scb-icon-button.js +59 -171
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +17 -218
- package/mvc/components/scb-link/scb-link.js +4 -55
- package/mvc/components/scb-list/scb-list-item.js +23 -126
- package/mvc/components/scb-list/scb-list.js +5 -26
- package/mvc/components/scb-menu/scb-menu-item.js +16 -190
- package/mvc/components/scb-menu/scb-menu-section.js +4 -36
- package/mvc/components/scb-menu/scb-menu.js +5 -69
- package/mvc/components/scb-menu/scb-sub-menu.js +2 -7
- package/mvc/components/scb-nav/scb-nav-item.js +1 -28
- package/mvc/components/scb-nav/scb-nav.js +5 -98
- package/mvc/components/scb-notification-card/scb-notification-card.js +7 -364
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +3 -50
- package/mvc/components/scb-options-menu/scb-options-menu.js +2 -82
- package/mvc/components/scb-options-menu/scb-options-sub-menu.js +2 -31
- package/mvc/components/scb-overlay/scb-overlay.js +3 -43
- package/mvc/components/scb-pagination/scb-pagination.js +19 -221
- package/mvc/components/scb-progress-indicator/scb-progress-indicator.js +2 -67
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +4 -121
- package/mvc/components/scb-progress-stepper/scb-progress-stepper.js +2 -56
- package/mvc/components/scb-radio-button/scb-radio-button.js +5 -116
- package/mvc/components/scb-radio-button/scb-radio-group.js +2 -32
- package/mvc/components/scb-scrollspy/scb-scrollspy.js +2 -61
- package/mvc/components/scb-search/scb-search.js +5 -249
- package/mvc/components/scb-segmented-button/scb-segmented-button.js +1 -32
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +2 -70
- package/mvc/components/scb-select/scb-select-option.js +2 -54
- package/mvc/components/scb-select/scb-select.js +4 -244
- package/mvc/components/scb-skeleton/scb-skeleton.js +2 -35
- package/mvc/components/scb-slider/scb-slider.js +5 -9
- package/mvc/components/scb-snackbar/scb-snackbar.js +9 -84
- package/mvc/components/scb-status-pill/scb-status-pill.js +2 -43
- package/mvc/components/scb-stepper/scb-step.js +8 -186
- package/mvc/components/scb-stepper/scb-stepper.js +2 -130
- package/mvc/components/scb-switch/scb-switch.js +4 -49
- package/mvc/components/scb-table/scb-table.js +2 -48
- package/mvc/components/scb-table-advanced/scb-table-advanced.js +2 -53
- package/mvc/components/scb-tabs/scb-primary-tab.js +2 -7
- package/mvc/components/scb-tabs/scb-secondary-tab.js +2 -7
- package/mvc/components/scb-tabs/scb-tabs.js +4 -31
- package/mvc/components/scb-textfield/scb-textfield.js +142 -388
- package/mvc/components/scb-toc/scb-toc-item.js +3 -251
- package/mvc/components/scb-toc/scb-toc.js +2 -16
- package/mvc/components/scb-tooltip/scb-tooltip.js +8 -155
- package/mvc/components/scb-viz/scb-viz.js +4 -619
- package/mvc/scb-wc-core.css +1 -1
- package/mvc/scb-wc-selfhost.css +1 -1
- package/mvc/scb-wc.css +1 -1
- package/mvc/vendor/assist-chip.js +3 -3
- package/mvc/vendor/chip-set.js +1 -1
- package/mvc/vendor/chip.js +2 -2
- package/mvc/vendor/elevation.js +2 -2
- package/mvc/vendor/filter-chip.js +1 -1
- package/mvc/vendor/focusable.js +1 -1
- package/mvc/vendor/form-associated.js +1 -1
- package/mvc/vendor/icon.js +2 -2
- package/mvc/vendor/lazy-focus-ring.js +2 -0
- package/mvc/vendor/lazy-ripple.js +2 -0
- package/mvc/vendor/md-focus-ring.js +2 -2
- package/mvc/vendor/ripple.js +2 -2
- package/mvc/vendor/scb-card-variants.internal.js +284 -0
- package/mvc/vendor/scb-chevron.js +10 -0
- package/mvc/vendor/scb-header-drawer.internal.js +71 -0
- package/mvc/vendor/shared-styles.js +1 -1
- package/mvc/vendor/tab-styles.js +3 -3
- package/mvc/vendor/validator.js +1 -1
- package/mvc/vendor/vendor.js +3 -4
- package/package.json +2 -2
- package/scb-accordion/scb-accordion-item.js +33 -32
- package/scb-app-bar/scb-app-bar.js +1 -1
- package/scb-button/scb-button.js +287 -259
- package/scb-calendar/scb-calendar.js +49 -49
- package/scb-calendar-card/scb-calendar-card.js +105 -59
- package/scb-card/scb-card-variants.internal.js +230 -0
- package/scb-card/scb-card.js +387 -528
- package/scb-checkbox/scb-checkbox.js +0 -1
- package/scb-chevron/scb-chevron.js +0 -1
- package/scb-components/scb-button/scb-button.d.ts +14 -2
- package/scb-components/scb-calendar/scb-calendar.d.ts +1 -0
- package/scb-components/scb-calendar-card/scb-calendar-card.d.ts +16 -4
- package/scb-components/scb-card/scb-card-variants.internal.d.ts +15 -0
- package/scb-components/scb-card/scb-card.d.ts +26 -9
- package/scb-components/scb-cookies-consent/scb-cookies-consent.d.ts +3 -0
- package/scb-components/scb-header/scb-header-drawer.internal.d.ts +31 -0
- package/scb-components/scb-header/scb-header.d.ts +1 -2
- package/scb-components/scb-horizontal-scroller/scb-horizontal-scroller.d.ts +6 -1
- package/scb-components/scb-icon-button/scb-icon-button.d.ts +28 -29
- package/scb-components/scb-keyfigure-card/scb-keyfigure-card.d.ts +13 -4
- package/scb-components/scb-list/scb-list-item.d.ts +20 -2
- package/scb-components/scb-list/scb-list.d.ts +1 -2
- package/scb-components/scb-nav/scb-nav.d.ts +2 -0
- package/scb-components/scb-segmented-button/scb-segmented-item.d.ts +1 -0
- package/scb-components/scb-select/scb-select-option.d.ts +2 -0
- package/scb-components/scb-toc/scb-toc-item.d.ts +1 -0
- package/scb-components/scb-tooltip/scb-tooltip.d.ts +2 -0
- package/scb-cookies-consent/scb-cookies-consent.js +43 -31
- package/scb-datepicker/scb-datepicker.js +27 -25
- package/scb-dialog/scb-dialog.js +1 -1
- package/scb-dropdown/scb-dropdown.js +29 -28
- package/scb-header/scb-header-drawer.internal.js +78 -0
- package/scb-header/scb-header.js +41 -89
- package/scb-horizontal-scroller/scb-horizontal-scroller.js +181 -88
- package/scb-icon-button/scb-icon-button.js +293 -205
- package/scb-keyfigure-card/scb-keyfigure-card.js +96 -43
- package/scb-list/scb-list-item.js +117 -52
- package/scb-list/scb-list.js +9 -9
- package/scb-nav/scb-nav.js +26 -23
- package/scb-notification-card/scb-notification-card.js +0 -2
- package/scb-options-menu/scb-options-menu-item.js +20 -20
- package/scb-pagination/scb-pagination.js +0 -1
- package/scb-progress-stepper/scb-progress-step.js +19 -17
- package/scb-radio-button/scb-radio-button.js +0 -1
- package/scb-search/scb-search.js +29 -28
- package/scb-segmented-button/scb-segmented-item.js +22 -19
- package/scb-select/scb-select-option.js +20 -14
- package/scb-select/scb-select.js +26 -26
- package/scb-stepper/scb-step.js +34 -31
- package/scb-textfield/scb-textfield.js +39 -39
- package/scb-toc/scb-toc-item.js +26 -26
- package/scb-tooltip/scb-tooltip.js +5 -4
- package/scb-viz/scb-viz.js +1 -1
- package/scb-wc-core.css +1 -1
- package/scb-wc-public-entry/index.d.ts +97 -0
- package/scb-wc-selfhost.css +1 -1
- package/scb-wc.bundle.js +1873 -1476
- package/scb-wc.css +1 -1
- package/scb-wc.d.ts +194 -198
- package/mvc/components/scb-chevron/scb-chevron.js +0 -41
- package/mvc/components/scb-datepicker/scb-datepicker.js +0 -296
- package/mvc/vendor/element-internals.js +0 -1
- package/mvc/vendor/filled-icon-button.js +0 -2
- package/mvc/vendor/filled-tonal-icon-button.js +0 -2
- package/mvc/vendor/form-label-activation.js +0 -1
- package/mvc/vendor/form-submitter.js +0 -1
- package/mvc/vendor/icon-button.js +0 -2
- package/mvc/vendor/list.js +0 -8
- package/mvc/vendor/outlined-icon-button.js +0 -2
- package/mvc/vendor/shared-styles2.js +0 -30
- package/scb-components/index.d.ts +0 -99
- package/scb-components/scb-chevron/scb-chevron.d.ts +0 -11
- package/scb-components/scb-datepicker/scb-datepicker.d.ts +0 -39
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../
|
|
1
|
+
import { addLazyFocusRingListeners as e } from "../shared/lazy-focus-ring.js";
|
|
2
|
+
import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
|
|
3
3
|
import "../scb-icon-button/scb-icon-button.js";
|
|
4
4
|
import "./scb-calendar-event.js";
|
|
5
5
|
import "../scb-dialog/scb-dialog.js";
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import "
|
|
6
|
+
import "../scb-list/scb-list.js";
|
|
7
|
+
import { LitElement as n, css as r, html as i } from "lit";
|
|
8
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
9
9
|
//#region src/scb-components/scb-calendar/scb-calendar.ts
|
|
10
|
-
var
|
|
10
|
+
var s = { fromAttribute(e) {
|
|
11
11
|
if (e === null) return !1;
|
|
12
12
|
let t = e.trim().toLowerCase();
|
|
13
13
|
return t !== "false" && t !== "0" && t !== "no";
|
|
14
|
-
} },
|
|
14
|
+
} }, c = class extends n {
|
|
15
15
|
constructor(...e) {
|
|
16
16
|
super(...e), this._lastActiveDay = null, this.lang = "sv", this.disableWeekend = !1, this.publicHolidays = !0, this.displayYear = (/* @__PURE__ */ new Date()).getFullYear(), this.displayMonth = (/* @__PURE__ */ new Date()).getMonth() + 1, this.selectedDate = "", this.eventsJson = void 0, this._eventsFromJson = null, this._eventsJsonLast = void 0, this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this._mutationObserver = null, this._syncingDisplay = !1, this._onCalendarKeyDown = (e) => {
|
|
17
17
|
let t = Array.from(this.shadowRoot?.querySelectorAll(".calendar-day.has-event") ?? []), n = this.shadowRoot?.activeElement, r = n && t.includes(n) ? n : document.activeElement, i = t.indexOf(r);
|
|
@@ -57,7 +57,7 @@ var o = { fromAttribute(e) {
|
|
|
57
57
|
super.attributeChangedCallback(e, t, n), e === "value" && (this.value = n ?? "");
|
|
58
58
|
}
|
|
59
59
|
static {
|
|
60
|
-
this.styles =
|
|
60
|
+
this.styles = r`
|
|
61
61
|
:host {
|
|
62
62
|
display: block;
|
|
63
63
|
margin-block-start: var(--scb-calendar-spacing-block-start, 0);
|
|
@@ -174,14 +174,14 @@ var o = { fromAttribute(e) {
|
|
|
174
174
|
`;
|
|
175
175
|
}
|
|
176
176
|
connectedCallback() {
|
|
177
|
-
super.connectedCallback(), this.#e();
|
|
178
|
-
let
|
|
179
|
-
!Number.isNaN(
|
|
177
|
+
super.connectedCallback(), this._removeLazyFocusRingListeners = e(this, this.renderRoot), this.#e();
|
|
178
|
+
let t = Number(this.displayYear), n = Number(this.displayMonth);
|
|
179
|
+
!Number.isNaN(t) && !Number.isNaN(n) && n >= 1 && n <= 12 && (this._current = new Date(t, n - 1, 1)), this._syncDisplayFromCurrent(!1), this.addEventListener("change", this._onEventChanged), this._mutationObserver = new MutationObserver(() => {
|
|
180
180
|
this.requestUpdate();
|
|
181
181
|
}), this._mutationObserver.observe(this, { childList: !0 }), this.addEventListener("keydown", this._onCalendarKeyDown);
|
|
182
182
|
}
|
|
183
183
|
disconnectedCallback() {
|
|
184
|
-
this.removeEventListener("change", this._onEventChanged), super.disconnectedCallback(), this._mutationObserver &&= (this._mutationObserver.disconnect(), null), this.removeEventListener("keydown", this._onCalendarKeyDown);
|
|
184
|
+
this.removeEventListener("change", this._onEventChanged), this._removeLazyFocusRingListeners?.(), this._removeLazyFocusRingListeners = void 0, super.disconnectedCallback(), this._mutationObserver &&= (this._mutationObserver.disconnect(), null), this.removeEventListener("keydown", this._onCalendarKeyDown);
|
|
185
185
|
}
|
|
186
186
|
mapSpacingToken(e) {
|
|
187
187
|
if (!e) return;
|
|
@@ -485,7 +485,7 @@ var o = { fromAttribute(e) {
|
|
|
485
485
|
return null;
|
|
486
486
|
}
|
|
487
487
|
render() {
|
|
488
|
-
let e = this._current.getFullYear(), t = this._current.getMonth(), n = this._daysInMonth(e, t),
|
|
488
|
+
let e = this._current.getFullYear(), t = this._current.getMonth(), n = this._daysInMonth(e, t), r = this._firstDayOfWeek(e, t), a = this._today, o = this.lang === "en", s = o ? [
|
|
489
489
|
"January",
|
|
490
490
|
"February",
|
|
491
491
|
"March",
|
|
@@ -548,21 +548,21 @@ var o = { fromAttribute(e) {
|
|
|
548
548
|
], p = f;
|
|
549
549
|
for (let d = 0; d < l.length; d++) {
|
|
550
550
|
let f = l[d];
|
|
551
|
-
if (s === 0 && f <
|
|
551
|
+
if (s === 0 && f < r) {
|
|
552
552
|
if (!this.disableWeekend || f < 5) {
|
|
553
|
-
let n = t === 0 ? 11 : t - 1, a = t === 0 ? e - 1 : e, o = this._daysInMonth(a, n) - (
|
|
554
|
-
c.push(
|
|
553
|
+
let n = t === 0 ? 11 : t - 1, a = t === 0 ? e - 1 : e, o = this._daysInMonth(a, n) - (r - f - 1);
|
|
554
|
+
c.push(i`
|
|
555
555
|
<div class="calendar-day calendar-day--other">
|
|
556
556
|
<span class="calendar-day-number">${o}</span>
|
|
557
557
|
</div>
|
|
558
558
|
`);
|
|
559
559
|
}
|
|
560
|
-
} else if (p > n) c.push(
|
|
560
|
+
} else if (p > n) c.push(i`<div></div>`);
|
|
561
561
|
else {
|
|
562
|
-
let
|
|
563
|
-
if (this.disableWeekend) for (;
|
|
562
|
+
let r = new Date(e, t, p);
|
|
563
|
+
if (this.disableWeekend) for (; r.getDay() === 0 || r.getDay() === 6;) p++, r = new Date(e, t, p);
|
|
564
564
|
if (p > n) {
|
|
565
|
-
c.push(
|
|
565
|
+
c.push(i`<div></div>`);
|
|
566
566
|
continue;
|
|
567
567
|
}
|
|
568
568
|
let s = a.getFullYear() === e && a.getMonth() === t && a.getDate() === p, l = `${e}-${String(t + 1).padStart(2, "0")}-${String(p).padStart(2, "0")}`, d = new Date(e, t, p), f = !1, m = null;
|
|
@@ -584,7 +584,7 @@ var o = { fromAttribute(e) {
|
|
|
584
584
|
prefix: n
|
|
585
585
|
};
|
|
586
586
|
});
|
|
587
|
-
c.push(
|
|
587
|
+
c.push(i`
|
|
588
588
|
<div
|
|
589
589
|
class="calendar-day${s ? " today" : ""}${h.length ? " has-event" : ""}${f ? " calendar-day--holiday" : ""}"
|
|
590
590
|
tabindex=${h.length ? "0" : void 0}
|
|
@@ -603,51 +603,51 @@ var o = { fromAttribute(e) {
|
|
|
603
603
|
aria-label=${m || (h.length ? h.length === 1 ? h[0].title : h.map((e) => e.title).join(", ") : void 0)}
|
|
604
604
|
>
|
|
605
605
|
<md-focus-ring inward></md-focus-ring>
|
|
606
|
-
<span class="calendar-day-number">${p} ${m ?
|
|
606
|
+
<span class="calendar-day-number">${p} ${m ? i`<span class="calendar-day-holiday-name">${m}</span>` : ""}</span>
|
|
607
607
|
<div class="calendar-titles-wrapper">
|
|
608
|
-
${g.map((e) =>
|
|
608
|
+
${g.map((e) => i`<span class="calendar-day-event-title">${e.prefix || ""}${e.title}</span>`)}
|
|
609
609
|
</div>
|
|
610
610
|
</div>
|
|
611
611
|
`), p++;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
if (f = p, d.push(
|
|
614
|
+
if (f = p, d.push(i`<div class="calendar-grid">${c}</div>`), f > n) break;
|
|
615
615
|
}
|
|
616
|
-
return
|
|
616
|
+
return i`
|
|
617
617
|
<div class="calendar-header">
|
|
618
618
|
<scb-icon-button @click=${this._prevMonth} icon="chevron_left" aria-label="${o ? "Previous month" : "Föregående månad"}"></scb-icon-button>
|
|
619
619
|
<span>${s[t]} ${e}</span>
|
|
620
620
|
<scb-icon-button @click=${this._nextMonth} icon="chevron_right" aria-label="${o ? "Next month" : "Nästa månad"}"></scb-icon-button>
|
|
621
621
|
</div>
|
|
622
622
|
<div class="calendar-grid calendar-grid-days">
|
|
623
|
-
${c.map((e) =>
|
|
623
|
+
${c.map((e) => i`<div>${e}</div>`)}
|
|
624
624
|
</div>
|
|
625
625
|
<div class="calendar-weeks">
|
|
626
626
|
${d}
|
|
627
627
|
</div>
|
|
628
|
-
${this._popupEvent && Array.isArray(this._popupEvent.events) ?
|
|
628
|
+
${this._popupEvent && Array.isArray(this._popupEvent.events) ? i`
|
|
629
629
|
<scb-dialog variant="floating" open label="${o ? "Events" : "Händelser"} ${this._popupEvent.date}">
|
|
630
630
|
<scb-list>
|
|
631
631
|
${[...this._popupEvent.events].sort((e, t) => {
|
|
632
632
|
let n = e.start && e.start.includes("T") ? e.start : e.end && e.end.includes("T") ? e.end : "", r = t.start && t.start.includes("T") ? t.start : t.end && t.end.includes("T") ? t.end : "", i = n && n.includes("T"), a = r && r.includes("T");
|
|
633
633
|
return i && a ? n.localeCompare(r) : i ? -1 : a ? 1 : e.title.localeCompare(t.title);
|
|
634
634
|
}).map((e) => {
|
|
635
|
-
let t = this._popupEvent?.date ?? "", n = "",
|
|
635
|
+
let t = this._popupEvent?.date ?? "", n = "", r = "", a = "";
|
|
636
636
|
if (e.start && e.end) {
|
|
637
|
-
let
|
|
638
|
-
|
|
637
|
+
let i = e.start.split("T")[0], s = e.end.split("T")[0];
|
|
638
|
+
i === s && e.start.includes("T") && e.end.includes("T") ? n = e.start.split("T")[1].substring(0, 5) + " – " + e.end.split("T")[1].substring(0, 5) : t === i && e.start.includes("T") && (n = "Start: " + e.start.split("T")[1].substring(0, 5) + (o ? " (Extended event) " : " (Flerdagsevenemang) ")), t === s && e.end.includes("T") && i !== s && (a = (o ? "End: " : "Slut: ") + e.end.split("T")[1].substring(0, 5)), t !== i && (r = o ? "cont. " : "fort. ");
|
|
639
639
|
} else e.start && e.start.includes("T") && (n = e.start.split("T")[1].substring(0, 5));
|
|
640
|
-
return e.href ?
|
|
640
|
+
return e.href ? i`
|
|
641
641
|
<scb-list-item
|
|
642
642
|
type="link"
|
|
643
643
|
item-href="${e.href}"
|
|
644
|
-
label="${
|
|
644
|
+
label="${r}${e.title}"
|
|
645
645
|
supporting-text="${e.description ? e.description : ""}"
|
|
646
646
|
overline="${n || ""}${a || ""}"
|
|
647
647
|
>
|
|
648
|
-
</scb-list-item>` :
|
|
648
|
+
</scb-list-item>` : i`
|
|
649
649
|
<scb-list-item
|
|
650
|
-
label="${
|
|
650
|
+
label="${r}${e.title}"
|
|
651
651
|
supporting-text="${e.description ? e.description : ""}"
|
|
652
652
|
overline="${n || ""}${a || ""}"
|
|
653
653
|
>
|
|
@@ -659,49 +659,49 @@ var o = { fromAttribute(e) {
|
|
|
659
659
|
`;
|
|
660
660
|
}
|
|
661
661
|
};
|
|
662
|
-
|
|
662
|
+
t([o({ type: String })], c.prototype, "lang", void 0), t([o({
|
|
663
663
|
type: Boolean,
|
|
664
664
|
attribute: "disable-weekend",
|
|
665
665
|
reflect: !0,
|
|
666
|
-
converter:
|
|
667
|
-
})],
|
|
666
|
+
converter: s
|
|
667
|
+
})], c.prototype, "disableWeekend", void 0), t([o({
|
|
668
668
|
type: Boolean,
|
|
669
669
|
attribute: "public-holidays",
|
|
670
|
-
converter:
|
|
671
|
-
})],
|
|
670
|
+
converter: s
|
|
671
|
+
})], c.prototype, "publicHolidays", void 0), t([o({
|
|
672
672
|
type: Number,
|
|
673
673
|
attribute: "display-year",
|
|
674
674
|
reflect: !0
|
|
675
|
-
})],
|
|
675
|
+
})], c.prototype, "displayYear", void 0), t([o({
|
|
676
676
|
type: Number,
|
|
677
677
|
attribute: "display-month",
|
|
678
678
|
reflect: !0
|
|
679
|
-
})],
|
|
679
|
+
})], c.prototype, "displayMonth", void 0), t([o({
|
|
680
680
|
type: String,
|
|
681
681
|
attribute: "selected-date",
|
|
682
682
|
reflect: !0
|
|
683
|
-
})],
|
|
683
|
+
})], c.prototype, "selectedDate", void 0), t([o({ attribute: !1 })], c.prototype, "events", void 0), t([o({
|
|
684
684
|
type: String,
|
|
685
685
|
attribute: "events-json"
|
|
686
|
-
})],
|
|
686
|
+
})], c.prototype, "eventsJson", void 0), t([o({
|
|
687
687
|
type: String,
|
|
688
688
|
reflect: !0
|
|
689
|
-
})],
|
|
689
|
+
})], c.prototype, "spacing", void 0), t([o({
|
|
690
690
|
type: String,
|
|
691
691
|
attribute: "spacing-top",
|
|
692
692
|
reflect: !0
|
|
693
|
-
})],
|
|
693
|
+
})], c.prototype, "spacingTop", void 0), t([o({
|
|
694
694
|
type: String,
|
|
695
695
|
attribute: "spacing-bottom",
|
|
696
696
|
reflect: !0
|
|
697
|
-
})],
|
|
697
|
+
})], c.prototype, "spacingBottom", void 0), t([o({
|
|
698
698
|
type: String,
|
|
699
699
|
attribute: "spacing-left",
|
|
700
700
|
reflect: !0
|
|
701
|
-
})],
|
|
701
|
+
})], c.prototype, "spacingLeft", void 0), t([o({
|
|
702
702
|
type: String,
|
|
703
703
|
attribute: "spacing-right",
|
|
704
704
|
reflect: !0
|
|
705
|
-
})],
|
|
705
|
+
})], c.prototype, "spacingRight", void 0), c = t([a("scb-calendar")], c);
|
|
706
706
|
//#endregion
|
|
707
|
-
export {
|
|
707
|
+
export { c as ScbCalendar };
|
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
|
|
2
2
|
import { LitElement as t, css as n, html as r } from "lit";
|
|
3
3
|
import { customElement as i, property as a } from "lit/decorators.js";
|
|
4
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
5
4
|
//#region src/scb-components/scb-calendar-card/scb-calendar-card.ts
|
|
6
|
-
var o, s = {
|
|
5
|
+
var o = new Intl.DateTimeFormat("sv-SE", { month: "short" }), s = {
|
|
7
6
|
fromAttribute: (e) => e ?? "",
|
|
8
7
|
toAttribute: (e) => typeof e == "string" ? e.trim() === "" ? null : e : null
|
|
9
|
-
}, c
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
}, c, l;
|
|
9
|
+
function u() {
|
|
10
|
+
return c ??= import("../shared/lazy-focus-ring.js"), c;
|
|
11
|
+
}
|
|
12
|
+
function d() {
|
|
13
|
+
return l ??= import("../shared/lazy-ripple.js"), l;
|
|
14
|
+
}
|
|
15
|
+
var f = class extends t {
|
|
13
16
|
constructor(...e) {
|
|
14
|
-
super(...e), this.variant = "default", this.size = "medium", this.date = null, this.direction = "horizontal", this.title = "", this.calendarCardTitle = "", this.subtitle = "", this.supportingText = "", this.cardHref = "", this.cardHrefNav = "", this.showMedia = null, this.mediaWidth = "", this.mediaHeight = "", this.mediaAspect = "", this.width = "", this.maxWidth = "", this.minWidth = "", this.height = "", this.maxHeight = "", this.minHeight = "", this.sizing = "", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
super(...e), this.variant = "default", this.size = "medium", this.date = null, this.direction = "horizontal", this.title = "", this.calendarCardTitle = "", this.subtitle = "", this.supportingText = "", this.cardHref = "", this.cardHrefNav = "", this.showMedia = null, this.mediaWidth = "", this.mediaHeight = "", this.mediaAspect = "", this.width = "", this.maxWidth = "", this.minWidth = "", this.height = "", this.maxHeight = "", this.minHeight = "", this.sizing = "", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.__focusRingRequested = !1, this.__focusRingLoaded = !1, this.__rippleRequested = !1, this.__rippleLoaded = !1, this.__pendingRippleClick = !1, this.__onPointerInteraction = (e) => {
|
|
18
|
+
this.__ensureRipple(e);
|
|
19
|
+
}, this.__ensureFocusRingOnFocusVisible = () => {
|
|
20
|
+
this.__focusRingLoaded || this.__focusRingRequested || (this.__focusRingRequested = !0, u().then(({ ensureFocusRingReady: e }) => e()).then(() => {
|
|
21
|
+
this.__focusRingLoaded = !0, this.requestUpdate();
|
|
22
|
+
}));
|
|
23
|
+
};
|
|
21
24
|
}
|
|
22
25
|
__hasSlottedContent(e) {
|
|
23
26
|
return !!this.querySelector(`[slot="${e}"]`);
|
|
@@ -25,17 +28,17 @@ var o, s = {
|
|
|
25
28
|
__getSlottedText(e) {
|
|
26
29
|
return this.querySelector(`[slot="${e}"]`)?.textContent?.trim() ?? "";
|
|
27
30
|
}
|
|
28
|
-
get
|
|
31
|
+
get __resolvedTitle() {
|
|
29
32
|
return this.__getSlottedText("heading") || this.calendarCardTitle || this.title;
|
|
30
33
|
}
|
|
31
|
-
get
|
|
34
|
+
get __resolvedSubtitle() {
|
|
32
35
|
return this.__getSlottedText("subtitle") || this.subtitle;
|
|
33
36
|
}
|
|
34
|
-
get
|
|
35
|
-
return this
|
|
37
|
+
get __resolvedLabel() {
|
|
38
|
+
return this.__resolvedTitle || this.__resolvedSubtitle || "Kalenderkort";
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
40
|
+
firstUpdated() {
|
|
41
|
+
this.__applyInnerSizing(), this.__applySpacing();
|
|
39
42
|
}
|
|
40
43
|
static {
|
|
41
44
|
this.styles = n`
|
|
@@ -182,7 +185,6 @@ var o, s = {
|
|
|
182
185
|
align-items: flex-start;
|
|
183
186
|
gap: var(--scb-calendar-card-gap);
|
|
184
187
|
align-self: stretch;
|
|
185
|
-
cursor: pointer;
|
|
186
188
|
transition:
|
|
187
189
|
box-shadow 0.18s ease,
|
|
188
190
|
transform 0.18s ease,
|
|
@@ -192,6 +194,9 @@ var o, s = {
|
|
|
192
194
|
inline-size: 100%;
|
|
193
195
|
max-inline-size: 100%;
|
|
194
196
|
}
|
|
197
|
+
.calendar-card.clickable {
|
|
198
|
+
cursor: pointer;
|
|
199
|
+
}
|
|
195
200
|
|
|
196
201
|
/* Lås standard till proportionella siffror i kortet */
|
|
197
202
|
.calendar-card,
|
|
@@ -313,7 +318,7 @@ var o, s = {
|
|
|
313
318
|
text-overflow: clip;
|
|
314
319
|
}
|
|
315
320
|
|
|
316
|
-
.title-container
|
|
321
|
+
.title-container .calendar-card-icon {
|
|
317
322
|
inline-size: var(--scb-calendar-card-icon-size);
|
|
318
323
|
block-size: var(--scb-calendar-card-icon-size);
|
|
319
324
|
flex: 0 0 auto;
|
|
@@ -327,6 +332,28 @@ var o, s = {
|
|
|
327
332
|
justify-content: center;
|
|
328
333
|
}
|
|
329
334
|
|
|
335
|
+
.calendar-card-icon {
|
|
336
|
+
display: inline-flex;
|
|
337
|
+
align-items: center;
|
|
338
|
+
justify-content: center;
|
|
339
|
+
overflow: hidden;
|
|
340
|
+
font-family: 'Material Symbols Outlined';
|
|
341
|
+
font-size: var(--icon-size-medium, 24px);
|
|
342
|
+
line-height: 1;
|
|
343
|
+
white-space: nowrap;
|
|
344
|
+
text-transform: none;
|
|
345
|
+
word-wrap: normal;
|
|
346
|
+
direction: ltr;
|
|
347
|
+
font-variation-settings: normal;
|
|
348
|
+
text-rendering: optimizeLegibility;
|
|
349
|
+
-webkit-font-smoothing: antialiased;
|
|
350
|
+
-moz-osx-font-smoothing: grayscale;
|
|
351
|
+
}
|
|
352
|
+
.calendar-card-icon.scb-svg-icon {
|
|
353
|
+
fill: currentColor;
|
|
354
|
+
font: inherit;
|
|
355
|
+
}
|
|
356
|
+
|
|
330
357
|
.subtitle {
|
|
331
358
|
font-family: var(--brand-font, var(--brand, "Inter"), sans-serif);
|
|
332
359
|
font-size: var(--scb-calendar-card-subtitle-font-size);
|
|
@@ -371,19 +398,38 @@ var o, s = {
|
|
|
371
398
|
}
|
|
372
399
|
`;
|
|
373
400
|
}
|
|
401
|
+
__ensureRipple(e) {
|
|
402
|
+
if (this.cardHref) {
|
|
403
|
+
if (e && (this.__pendingRippleEvent = e), this.__rippleLoaded) {
|
|
404
|
+
this.__syncRipple();
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
this.__rippleRequested || (this.__rippleRequested = !0, d().then(({ ensureRippleReady: e }) => e()).then(() => {
|
|
408
|
+
this.__rippleLoaded = !0, this.requestUpdate(), this.updateComplete.then(() => this.__syncRipple());
|
|
409
|
+
}));
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
async __syncRipple() {
|
|
413
|
+
let e = this.renderRoot.querySelector("md-ripple"), t = this.renderRoot.querySelector(".calendar-card"), n = this.__pendingRippleEvent, r = this.__pendingRippleClick;
|
|
414
|
+
this.__pendingRippleEvent = void 0, this.__pendingRippleClick = !1;
|
|
415
|
+
let { syncRippleToControl: i } = await d();
|
|
416
|
+
await i(e, t, n, r);
|
|
417
|
+
}
|
|
374
418
|
render() {
|
|
375
|
-
let e = this.variant ? `${this.variant.toLowerCase()}` : "", t = this.direction ? `${this.direction.toLowerCase()}` : "", n = this.cardHref ? "clickable" : "", i = this.__hasSlottedContent("heading"), a = this.__hasSlottedContent("subtitle"), o = this.__hasSlottedContent("supporting-text"), s = this.calendarCardTitle || this.title, c = this.subtitle, l = this.supportingText, u = i || !!s, d = a || !!c, f = o || !!l, { day: p, month: m } = this
|
|
419
|
+
let e = this.variant ? `${this.variant.toLowerCase()}` : "", t = this.direction ? `${this.direction.toLowerCase()}` : "", n = this.cardHref ? "clickable" : "", i = this.__hasSlottedContent("heading"), a = this.__hasSlottedContent("subtitle"), o = this.__hasSlottedContent("supporting-text"), s = this.calendarCardTitle || this.title, c = this.subtitle, l = this.supportingText, u = i || !!s, d = a || !!c, f = o || !!l, { day: p, month: m } = this.__getDateParts(), h = this.mediaWidth && this.mediaWidth.trim() !== "" ? this.mediaWidth : "", g = this.mediaHeight && this.mediaHeight.trim() !== "" ? this.mediaHeight : "", _ = this.mediaAspect && this.mediaAspect.trim() !== "" ? this.mediaAspect : "", v = `${h ? `inline-size:${h};` : ""}${g ? `block-size:${g};` : ""}${_ ? `aspect-ratio:${_};` : ""}`;
|
|
376
420
|
return r`
|
|
377
421
|
<div
|
|
378
422
|
class="calendar-card ${t} ${n} ${e}"
|
|
379
423
|
role="${this.cardHref ? "link" : "group"}"
|
|
380
|
-
aria-label="${this
|
|
424
|
+
aria-label="${this.__resolvedLabel}"
|
|
381
425
|
tabindex="${this.cardHref ? "0" : "-1"}"
|
|
382
426
|
@click=${this.cardHref ? this._handleHrefNavigation : null}
|
|
383
427
|
@keydown=${this.cardHref ? this._onKeyDown : null}
|
|
384
|
-
|
|
428
|
+
@focusin=${this.cardHref ? this.__ensureFocusRingOnFocusVisible : null}
|
|
429
|
+
@pointerenter=${this.cardHref ? this.__onPointerInteraction : null}
|
|
430
|
+
@pointerdown=${this.cardHref ? this.__onPointerInteraction : null}
|
|
385
431
|
>
|
|
386
|
-
${this.cardHref ? r`<md-ripple></md-ripple>` : ""}
|
|
432
|
+
${this.cardHref && this.__rippleLoaded ? r`<md-ripple></md-ripple>` : ""}
|
|
387
433
|
${this.showMedia ? r`
|
|
388
434
|
<div class="media" style="${v}" aria-label="Datum: ${p} ${m}">
|
|
389
435
|
<div class="day">${p}</div>
|
|
@@ -396,7 +442,7 @@ var o, s = {
|
|
|
396
442
|
${u ? r`
|
|
397
443
|
<div class="title-container">
|
|
398
444
|
<div class="title">${i ? r`<slot name="heading"></slot>` : s}</div>
|
|
399
|
-
${this.cardHref ? r`<div class="icon-container"><md-icon>arrow_forward</md-icon></div>` : ""}
|
|
445
|
+
${this.cardHref ? r`<div class="icon-container"><md-icon class="calendar-card-icon" aria-hidden="true">arrow_forward</md-icon></div>` : ""}
|
|
400
446
|
</div>
|
|
401
447
|
` : ""}
|
|
402
448
|
${d ? r`<div class="subtitle">${a ? r`<slot name="subtitle"></slot>` : c}</div>` : ""}
|
|
@@ -409,10 +455,10 @@ var o, s = {
|
|
|
409
455
|
` : ""}
|
|
410
456
|
</div>
|
|
411
457
|
</div>
|
|
412
|
-
${this.cardHref ? r`<md-focus-ring></md-focus-ring>` : ""}
|
|
458
|
+
${this.cardHref && this.__focusRingLoaded ? r`<md-focus-ring></md-focus-ring>` : ""}
|
|
413
459
|
`;
|
|
414
460
|
}
|
|
415
|
-
|
|
461
|
+
__getDateParts() {
|
|
416
462
|
let e = {
|
|
417
463
|
day: 1,
|
|
418
464
|
month: "Jan"
|
|
@@ -423,7 +469,7 @@ var o, s = {
|
|
|
423
469
|
return Number.isNaN(e.getTime()) ? null : e;
|
|
424
470
|
})();
|
|
425
471
|
if (!t) return e;
|
|
426
|
-
let n = t.getDate(), r =
|
|
472
|
+
let n = t.getDate(), r = o.format(t).replace(".", "").trim();
|
|
427
473
|
return {
|
|
428
474
|
day: n,
|
|
429
475
|
month: r.charAt(0).toUpperCase() + r.slice(1)
|
|
@@ -437,113 +483,113 @@ var o, s = {
|
|
|
437
483
|
(e.key === "Enter" || e.key === " ") && this.cardHref && (window.open(this.cardHref, "_self"), e.preventDefault());
|
|
438
484
|
}
|
|
439
485
|
_handleHrefNavigation() {
|
|
440
|
-
this.cardHref && (this.cardHrefNav === "tab" ? window.open(this.cardHref, "_blank") : this.cardHrefNav === "window" ? window.open(this.cardHref, "_blank", "noopener,noreferrer,width=800,height=600") : window.open(this.cardHref, "_self"));
|
|
486
|
+
this.cardHref && ((!this.__rippleLoaded || this.__pendingRippleEvent) && (this.__pendingRippleClick = !0, this.__ensureRipple()), this.cardHrefNav === "tab" ? window.open(this.cardHref, "_blank") : this.cardHrefNav === "window" ? window.open(this.cardHref, "_blank", "noopener,noreferrer,width=800,height=600") : window.open(this.cardHref, "_self"));
|
|
441
487
|
}
|
|
442
488
|
mapSpacingToken(e) {
|
|
443
489
|
if (!e) return;
|
|
444
490
|
let t = String(e).trim();
|
|
445
491
|
if (t) return /^\d+$/.test(t) ? `var(--spacing-${Math.max(0, Math.min(14, parseInt(t, 10)))})` : t;
|
|
446
492
|
}
|
|
447
|
-
|
|
493
|
+
__applySpacing() {
|
|
448
494
|
let e = this.mapSpacingToken(this.spacing), t = this.mapSpacingToken(this.spacingTop) ?? e, n = this.mapSpacingToken(this.spacingBottom) ?? e, r = this.mapSpacingToken(this.spacingLeft), i = this.mapSpacingToken(this.spacingRight);
|
|
449
495
|
t ? this.style.setProperty("--scb-calendar-card-spacing-block-start", t) : this.style.removeProperty("--scb-calendar-card-spacing-block-start"), n ? this.style.setProperty("--scb-calendar-card-spacing-block-end", n) : this.style.removeProperty("--scb-calendar-card-spacing-block-end"), r ? this.style.setProperty("--scb-calendar-card-spacing-inline-start", r) : this.style.removeProperty("--scb-calendar-card-spacing-inline-start"), i ? this.style.setProperty("--scb-calendar-card-spacing-inline-end", i) : this.style.removeProperty("--scb-calendar-card-spacing-inline-end");
|
|
450
496
|
}
|
|
451
497
|
updated(e) {
|
|
452
|
-
e.has("width") && (this.width ? this.style.inlineSize = this.width : this.style.removeProperty("inline-size")), e.has("maxWidth") && (this.maxWidth ? this.style.maxInlineSize = this.maxWidth : this.style.removeProperty("max-inline-size")), e.has("minWidth") && (this.minWidth ? this.style.minInlineSize = this.minWidth : this.style.removeProperty("min-inline-size")), e.has("height") && (this.height ? this.style.blockSize = this.height : this.style.removeProperty("block-size")), e.has("maxHeight") && (this.maxHeight ? this.style.maxBlockSize = this.maxHeight : this.style.removeProperty("max-block-size")), e.has("minHeight") && (this.minHeight ? this.style.minBlockSize = this.minHeight : this.style.removeProperty("min-block-size")), (e.has("width") || e.has("height") || e.has("maxHeight") || e.has("sizing")) && this.__applyInnerSizing(), (e.has("spacing") || e.has("spacingTop") || e.has("spacingBottom") || e.has("spacingLeft") || e.has("spacingRight")) && this
|
|
498
|
+
e.has("width") && (this.width ? this.style.inlineSize = this.width : this.style.removeProperty("inline-size")), e.has("maxWidth") && (this.maxWidth ? this.style.maxInlineSize = this.maxWidth : this.style.removeProperty("max-inline-size")), e.has("minWidth") && (this.minWidth ? this.style.minInlineSize = this.minWidth : this.style.removeProperty("min-inline-size")), e.has("height") && (this.height ? this.style.blockSize = this.height : this.style.removeProperty("block-size")), e.has("maxHeight") && (this.maxHeight ? this.style.maxBlockSize = this.maxHeight : this.style.removeProperty("max-block-size")), e.has("minHeight") && (this.minHeight ? this.style.minBlockSize = this.minHeight : this.style.removeProperty("min-block-size")), (e.has("width") || e.has("height") || e.has("maxHeight") || e.has("sizing")) && this.__applyInnerSizing(), (e.has("spacing") || e.has("spacingTop") || e.has("spacingBottom") || e.has("spacingLeft") || e.has("spacingRight")) && this.__applySpacing();
|
|
453
499
|
}
|
|
454
500
|
};
|
|
455
501
|
e([a({
|
|
456
502
|
type: String,
|
|
457
503
|
reflect: !0
|
|
458
|
-
})],
|
|
504
|
+
})], f.prototype, "variant", void 0), e([a({
|
|
459
505
|
type: String,
|
|
460
506
|
reflect: !0
|
|
461
|
-
})],
|
|
507
|
+
})], f.prototype, "size", void 0), e([a({
|
|
462
508
|
type: String,
|
|
463
509
|
attribute: "date"
|
|
464
|
-
})],
|
|
510
|
+
})], f.prototype, "date", void 0), e([a({
|
|
465
511
|
type: String,
|
|
466
512
|
reflect: !0
|
|
467
|
-
})],
|
|
513
|
+
})], f.prototype, "direction", void 0), e([a({
|
|
468
514
|
type: String,
|
|
469
515
|
reflect: !0,
|
|
470
516
|
converter: s
|
|
471
|
-
})],
|
|
517
|
+
})], f.prototype, "title", void 0), e([a({
|
|
472
518
|
type: String,
|
|
473
519
|
attribute: "calendar-card-title",
|
|
474
520
|
reflect: !0,
|
|
475
521
|
converter: s
|
|
476
|
-
})],
|
|
522
|
+
})], f.prototype, "calendarCardTitle", void 0), e([a({
|
|
477
523
|
type: String,
|
|
478
524
|
reflect: !0,
|
|
479
525
|
converter: s
|
|
480
|
-
})],
|
|
526
|
+
})], f.prototype, "subtitle", void 0), e([a({
|
|
481
527
|
type: String,
|
|
482
528
|
attribute: "supporting-text",
|
|
483
529
|
reflect: !0,
|
|
484
530
|
converter: s
|
|
485
|
-
})],
|
|
531
|
+
})], f.prototype, "supportingText", void 0), e([a({
|
|
486
532
|
type: String,
|
|
487
533
|
attribute: "card-href"
|
|
488
|
-
})],
|
|
534
|
+
})], f.prototype, "cardHref", void 0), e([a({
|
|
489
535
|
type: String,
|
|
490
536
|
attribute: "card-href-nav"
|
|
491
|
-
})],
|
|
537
|
+
})], f.prototype, "cardHrefNav", void 0), e([a({
|
|
492
538
|
type: Boolean,
|
|
493
539
|
reflect: !0,
|
|
494
540
|
attribute: "show-media"
|
|
495
|
-
})],
|
|
541
|
+
})], f.prototype, "showMedia", void 0), e([a({
|
|
496
542
|
type: String,
|
|
497
543
|
attribute: "media-width"
|
|
498
|
-
})],
|
|
544
|
+
})], f.prototype, "mediaWidth", void 0), e([a({
|
|
499
545
|
type: String,
|
|
500
546
|
attribute: "media-height"
|
|
501
|
-
})],
|
|
547
|
+
})], f.prototype, "mediaHeight", void 0), e([a({
|
|
502
548
|
type: String,
|
|
503
549
|
attribute: "media-aspect"
|
|
504
|
-
})],
|
|
550
|
+
})], f.prototype, "mediaAspect", void 0), e([a({
|
|
505
551
|
type: String,
|
|
506
552
|
reflect: !0
|
|
507
|
-
})],
|
|
553
|
+
})], f.prototype, "width", void 0), e([a({
|
|
508
554
|
type: String,
|
|
509
555
|
reflect: !0,
|
|
510
556
|
attribute: "max-width"
|
|
511
|
-
})],
|
|
557
|
+
})], f.prototype, "maxWidth", void 0), e([a({
|
|
512
558
|
type: String,
|
|
513
559
|
attribute: "min-width"
|
|
514
|
-
})],
|
|
560
|
+
})], f.prototype, "minWidth", void 0), e([a({
|
|
515
561
|
type: String,
|
|
516
562
|
reflect: !0
|
|
517
|
-
})],
|
|
563
|
+
})], f.prototype, "height", void 0), e([a({
|
|
518
564
|
type: String,
|
|
519
565
|
reflect: !0,
|
|
520
566
|
attribute: "max-height"
|
|
521
|
-
})],
|
|
567
|
+
})], f.prototype, "maxHeight", void 0), e([a({
|
|
522
568
|
type: String,
|
|
523
569
|
attribute: "min-height"
|
|
524
|
-
})],
|
|
570
|
+
})], f.prototype, "minHeight", void 0), e([a({
|
|
525
571
|
type: String,
|
|
526
572
|
reflect: !0,
|
|
527
573
|
converter: s
|
|
528
|
-
})],
|
|
574
|
+
})], f.prototype, "sizing", void 0), e([a({
|
|
529
575
|
type: String,
|
|
530
576
|
reflect: !0
|
|
531
|
-
})],
|
|
577
|
+
})], f.prototype, "spacing", void 0), e([a({
|
|
532
578
|
type: String,
|
|
533
579
|
attribute: "spacing-top",
|
|
534
580
|
reflect: !0
|
|
535
|
-
})],
|
|
581
|
+
})], f.prototype, "spacingTop", void 0), e([a({
|
|
536
582
|
type: String,
|
|
537
583
|
attribute: "spacing-bottom",
|
|
538
584
|
reflect: !0
|
|
539
|
-
})],
|
|
585
|
+
})], f.prototype, "spacingBottom", void 0), e([a({
|
|
540
586
|
type: String,
|
|
541
587
|
attribute: "spacing-left",
|
|
542
588
|
reflect: !0
|
|
543
|
-
})],
|
|
589
|
+
})], f.prototype, "spacingLeft", void 0), e([a({
|
|
544
590
|
type: String,
|
|
545
591
|
attribute: "spacing-right",
|
|
546
592
|
reflect: !0
|
|
547
|
-
})],
|
|
593
|
+
})], f.prototype, "spacingRight", void 0), f = e([i("scb-calendar-card")], f);
|
|
548
594
|
//#endregion
|
|
549
|
-
export {
|
|
595
|
+
export { f as ScbCalendarCard };
|