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
package/scb-nav/scb-nav.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
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";
|
|
2
3
|
import "./scb-nav-item.js";
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import { customElement as
|
|
5
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
4
|
+
import { LitElement as n, css as r, html as i } from "lit";
|
|
5
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
6
6
|
import "@material/web/ripple/ripple.js";
|
|
7
7
|
//#region src/scb-components/scb-nav/scb-nav.ts
|
|
8
|
-
var
|
|
8
|
+
var s = { fromAttribute(e) {
|
|
9
9
|
return e === null ? !1 : e.toLowerCase() !== "false";
|
|
10
|
-
} },
|
|
10
|
+
} }, c = class extends n {
|
|
11
11
|
constructor(...e) {
|
|
12
12
|
super(...e), this.label = "", this.activeHref = "", this.activateOnClick = !0, this.sticky = !1, this.stickyTop = "0px", this.stickyZIndex = 5, this.stickyBackground = "", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.__autoAriaLabel = !1, this.__itemIdPrefix = `scb-nav-${Math.random().toString(36).slice(2)}`, this.__itemIdCounter = 0, this.__onSlotChange = async () => {
|
|
13
13
|
await this.__decorateItems(), this.__applyActiveHref();
|
|
@@ -33,7 +33,7 @@ var o = { fromAttribute(e) {
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
static {
|
|
36
|
-
this.styles =
|
|
36
|
+
this.styles = r`
|
|
37
37
|
:host {
|
|
38
38
|
display: block;
|
|
39
39
|
color: var(--md-sys-color-on-surface);
|
|
@@ -161,7 +161,10 @@ var o = { fromAttribute(e) {
|
|
|
161
161
|
this.style.setProperty("--_scb-nav-sticky-background", r);
|
|
162
162
|
}
|
|
163
163
|
connectedCallback() {
|
|
164
|
-
super.connectedCallback(), this.hasAttribute("role") || this.setAttribute("role", "navigation"), this.__syncStickyStyles(), this.__syncAriaLabel();
|
|
164
|
+
super.connectedCallback(), this.__removeLazyFocusRingListeners = e(this, this.renderRoot), this.hasAttribute("role") || this.setAttribute("role", "navigation"), this.__syncStickyStyles(), this.__syncAriaLabel();
|
|
165
|
+
}
|
|
166
|
+
disconnectedCallback() {
|
|
167
|
+
this.__removeLazyFocusRingListeners?.(), this.__removeLazyFocusRingListeners = void 0, super.disconnectedCallback();
|
|
165
168
|
}
|
|
166
169
|
async firstUpdated() {
|
|
167
170
|
await this.__decorateItems(), this.__applyActiveHref(), this.__applySpacing();
|
|
@@ -216,7 +219,7 @@ var o = { fromAttribute(e) {
|
|
|
216
219
|
}
|
|
217
220
|
}
|
|
218
221
|
render() {
|
|
219
|
-
return
|
|
222
|
+
return i`
|
|
220
223
|
<div class="scb-nav">
|
|
221
224
|
<div class="scb-nav__items" @click=${this.__onClick}>
|
|
222
225
|
<slot @slotchange=${this.__onSlotChange}></slot>
|
|
@@ -225,44 +228,44 @@ var o = { fromAttribute(e) {
|
|
|
225
228
|
`;
|
|
226
229
|
}
|
|
227
230
|
};
|
|
228
|
-
|
|
231
|
+
t([o({ type: String })], c.prototype, "label", void 0), t([o({
|
|
229
232
|
type: String,
|
|
230
233
|
attribute: "active-href"
|
|
231
|
-
})],
|
|
234
|
+
})], c.prototype, "activeHref", void 0), t([o({
|
|
232
235
|
type: Boolean,
|
|
233
236
|
attribute: "activate-on-click",
|
|
234
|
-
converter:
|
|
235
|
-
})],
|
|
237
|
+
converter: s
|
|
238
|
+
})], c.prototype, "activateOnClick", void 0), t([o({
|
|
236
239
|
type: Boolean,
|
|
237
240
|
reflect: !0
|
|
238
|
-
})],
|
|
241
|
+
})], c.prototype, "sticky", void 0), t([o({
|
|
239
242
|
type: String,
|
|
240
243
|
attribute: "sticky-top"
|
|
241
|
-
})],
|
|
244
|
+
})], c.prototype, "stickyTop", void 0), t([o({
|
|
242
245
|
type: Number,
|
|
243
246
|
attribute: "sticky-z-index"
|
|
244
|
-
})],
|
|
247
|
+
})], c.prototype, "stickyZIndex", void 0), t([o({
|
|
245
248
|
type: String,
|
|
246
249
|
attribute: "sticky-background"
|
|
247
|
-
})],
|
|
250
|
+
})], c.prototype, "stickyBackground", void 0), t([o({
|
|
248
251
|
type: String,
|
|
249
252
|
reflect: !0
|
|
250
|
-
})],
|
|
253
|
+
})], c.prototype, "spacing", void 0), t([o({
|
|
251
254
|
type: String,
|
|
252
255
|
attribute: "spacing-top",
|
|
253
256
|
reflect: !0
|
|
254
|
-
})],
|
|
257
|
+
})], c.prototype, "spacingTop", void 0), t([o({
|
|
255
258
|
type: String,
|
|
256
259
|
attribute: "spacing-bottom",
|
|
257
260
|
reflect: !0
|
|
258
|
-
})],
|
|
261
|
+
})], c.prototype, "spacingBottom", void 0), t([o({
|
|
259
262
|
type: String,
|
|
260
263
|
attribute: "spacing-left",
|
|
261
264
|
reflect: !0
|
|
262
|
-
})],
|
|
265
|
+
})], c.prototype, "spacingLeft", void 0), t([o({
|
|
263
266
|
type: String,
|
|
264
267
|
attribute: "spacing-right",
|
|
265
268
|
reflect: !0
|
|
266
|
-
})],
|
|
269
|
+
})], c.prototype, "spacingRight", void 0), c = t([a("scb-nav")], c);
|
|
267
270
|
//#endregion
|
|
268
|
-
export {
|
|
271
|
+
export { c as ScbNav };
|
|
@@ -2,7 +2,6 @@ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpe
|
|
|
2
2
|
import "../scb-icon-button/scb-icon-button.js";
|
|
3
3
|
import { LitElement as t, css as n, html as r } from "lit";
|
|
4
4
|
import { customElement as i, property as a, state as o } from "lit/decorators.js";
|
|
5
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
6
5
|
import "@material/web/icon/icon.js";
|
|
7
6
|
//#region src/scb-components/scb-notification-card/scb-notification-card.ts
|
|
8
7
|
var s = {
|
|
@@ -472,7 +471,6 @@ var s = {
|
|
|
472
471
|
</div>
|
|
473
472
|
` : null}
|
|
474
473
|
</div>
|
|
475
|
-
<md-focus-ring></md-focus-ring>
|
|
476
474
|
`;
|
|
477
475
|
}
|
|
478
476
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ensureFocusRingOnFocusVisible as e } from "../shared/lazy-focus-ring.js";
|
|
2
|
+
import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
|
|
2
3
|
import "../scb-divider/scb-divider.js";
|
|
3
|
-
import { LitElement as
|
|
4
|
-
import { customElement as
|
|
5
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
4
|
+
import { LitElement as n, css as r, html as i } from "lit";
|
|
5
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
6
6
|
import "@material/web/icon/icon.js";
|
|
7
7
|
import "@material/web/ripple/ripple.js";
|
|
8
8
|
//#region src/scb-components/scb-options-menu/scb-options-menu-item.ts
|
|
9
|
-
var
|
|
9
|
+
var s = class extends n {
|
|
10
10
|
constructor(...e) {
|
|
11
11
|
super(...e), this.label = "", this.hasSubMenu = !1, this.openLeft = !1, this.divider = !1, this.leadingIcon = "", this.trailingIcon = "", this.itemHref = "", this.href = "", this._observedSubMenu = null, this._syncSubMenuFlags = () => {
|
|
12
12
|
let e = this.nextElementSibling, t = !!(e && e.tagName === "SCB-OPTIONS-SUB-MENU"), n = !!(t && e.hasAttribute("open-left"));
|
|
@@ -90,7 +90,7 @@ var o = class extends t {
|
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
92
|
static {
|
|
93
|
-
this.styles =
|
|
93
|
+
this.styles = r`
|
|
94
94
|
:host {
|
|
95
95
|
display: block;
|
|
96
96
|
}
|
|
@@ -151,21 +151,21 @@ var o = class extends t {
|
|
|
151
151
|
this._subMenuChildObserver?.disconnect(), this._subMenuAttrObserver?.disconnect(), this._subMenuChildObserver = void 0, this._subMenuAttrObserver = void 0, this._observedSubMenu = null, super.disconnectedCallback();
|
|
152
152
|
}
|
|
153
153
|
render() {
|
|
154
|
-
return
|
|
155
|
-
${this.divider ?
|
|
156
|
-
<li @click=${this.handleClick} @keydown=${this._onKeyDown} @blur=${this._onBlur} @focus=${this._onFocus} role="menuitem" tabindex="0">
|
|
154
|
+
return i`
|
|
155
|
+
${this.divider ? i`<scb-divider></scb-divider>` : ""}
|
|
156
|
+
<li @click=${this.handleClick} @keydown=${this._onKeyDown} @blur=${this._onBlur} @focus=${this._onFocus} @focusin=${e} role="menuitem" tabindex="0">
|
|
157
157
|
|
|
158
158
|
|
|
159
159
|
<md-focus-ring inward></md-focus-ring>
|
|
160
|
-
${this._effectiveHref ?
|
|
161
|
-
${this.leadingIcon ?
|
|
160
|
+
${this._effectiveHref ? i`<a href="${this._effectiveHref}">
|
|
161
|
+
${this.leadingIcon ? i`<md-icon>${this.leadingIcon}</md-icon>` : ""}
|
|
162
162
|
<div class="label">${this.label}</div>
|
|
163
|
-
${this.trailingIcon ?
|
|
163
|
+
${this.trailingIcon ? i`<md-icon class="ti">${this.trailingIcon}</md-icon>` : ""}
|
|
164
164
|
<md-ripple></md-ripple>
|
|
165
|
-
</a>` :
|
|
166
|
-
${this.leadingIcon ?
|
|
165
|
+
</a>` : i`
|
|
166
|
+
${this.leadingIcon ? i`<md-icon>${this.leadingIcon}</md-icon>` : ""}
|
|
167
167
|
<div class="label">${this.label}</div>
|
|
168
|
-
${this.trailingIcon ?
|
|
168
|
+
${this.trailingIcon ? i`<md-icon class="ti">${this.trailingIcon}</md-icon>` : ""}
|
|
169
169
|
<md-ripple></md-ripple>
|
|
170
170
|
`}
|
|
171
171
|
</li>
|
|
@@ -204,15 +204,15 @@ var o = class extends t {
|
|
|
204
204
|
}))));
|
|
205
205
|
}
|
|
206
206
|
};
|
|
207
|
-
|
|
207
|
+
t([o({ type: String })], s.prototype, "label", void 0), t([o({ type: Boolean })], s.prototype, "hasSubMenu", void 0), t([o({ type: Boolean })], s.prototype, "openLeft", void 0), t([o({ type: Boolean })], s.prototype, "divider", void 0), t([o({
|
|
208
208
|
type: String,
|
|
209
209
|
attribute: "leading-icon"
|
|
210
|
-
})],
|
|
210
|
+
})], s.prototype, "leadingIcon", void 0), t([o({
|
|
211
211
|
type: String,
|
|
212
212
|
attribute: "trailing-icon"
|
|
213
|
-
})],
|
|
213
|
+
})], s.prototype, "trailingIcon", void 0), t([o({
|
|
214
214
|
type: String,
|
|
215
215
|
attribute: "item-href"
|
|
216
|
-
})],
|
|
216
|
+
})], s.prototype, "itemHref", void 0), t([o({ type: String })], s.prototype, "href", void 0), s = t([a("scb-options-menu-item")], s);
|
|
217
217
|
//#endregion
|
|
218
|
-
export {
|
|
218
|
+
export { s as ScbOptionsMenuItem };
|
|
@@ -4,7 +4,6 @@ import "../scb-icon-button/scb-icon-button.js";
|
|
|
4
4
|
import "../scb-link/scb-link.js";
|
|
5
5
|
import { LitElement as t, css as n, html as r } from "lit";
|
|
6
6
|
import { customElement as i, property as a } from "lit/decorators.js";
|
|
7
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
8
7
|
import "@material/web/icon/icon.js";
|
|
9
8
|
//#region src/scb-components/scb-pagination/scb-pagination.ts
|
|
10
9
|
var o = class extends t {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
1
|
+
import { ensureFocusRingOnFocusVisible 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
|
+
import { LitElement as n, css as r, html as i } from "lit";
|
|
4
|
+
import { customElement as a, property as o, state as s } from "lit/decorators.js";
|
|
5
5
|
import "@material/web/ripple/ripple.js";
|
|
6
6
|
//#region src/scb-components/scb-progress-stepper/scb-progress-step.ts
|
|
7
|
-
var
|
|
7
|
+
var c = class extends n {
|
|
8
8
|
constructor(...e) {
|
|
9
9
|
super(...e), this.width = "100%", this.active = !1, this.disabled = !1, this.href = "", this.label = "", this.position = "top", this._stepId = `scb-step-${Math.random().toString(36).slice(2)}`;
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
|
-
this.styles =
|
|
12
|
+
this.styles = r`
|
|
13
13
|
:host {
|
|
14
14
|
display: block;
|
|
15
15
|
width: var(--progress-step-width, 100%);
|
|
@@ -169,45 +169,47 @@ var s = class extends t {
|
|
|
169
169
|
t.right > window.innerWidth - 8 && (e.style.left = "auto", e.style.right = "8px", e.style.transform = "none", e.classList.add("tooltip-right")), t.left < 8 && (e.style.left = "8px", e.style.right = "auto", e.style.transform = "none", e.classList.add("tooltip-left"));
|
|
170
170
|
}
|
|
171
171
|
render() {
|
|
172
|
-
return
|
|
173
|
-
${this.href && !this.disabled ?
|
|
172
|
+
return i`
|
|
173
|
+
${this.href && !this.disabled ? i`
|
|
174
174
|
<a
|
|
175
175
|
id=${this._stepId}
|
|
176
176
|
class="progress-step"
|
|
177
177
|
href=${this.href}
|
|
178
178
|
@click=${this._onClick}
|
|
179
|
+
@focusin=${e}
|
|
179
180
|
tabindex="0"
|
|
180
181
|
role="link"
|
|
181
182
|
aria-disabled="false"
|
|
182
183
|
>
|
|
183
184
|
<md-ripple></md-ripple>
|
|
184
185
|
</a>
|
|
185
|
-
` :
|
|
186
|
+
` : i`
|
|
186
187
|
<div
|
|
187
188
|
id=${this._stepId}
|
|
188
189
|
class="progress-step"
|
|
189
190
|
@click=${this._onClick}
|
|
191
|
+
@focusin=${e}
|
|
190
192
|
tabindex=${this.disabled ? -1 : 0}
|
|
191
193
|
role="button"
|
|
192
194
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
193
195
|
>
|
|
194
|
-
${this.disabled ? "" :
|
|
196
|
+
${this.disabled ? "" : i`<md-ripple></md-ripple>`}
|
|
195
197
|
</div>
|
|
196
198
|
`}
|
|
197
|
-
${this.disabled ? "" :
|
|
198
|
-
${this.label && !this.disabled ?
|
|
199
|
+
${this.disabled ? "" : i`<md-focus-ring for="${this._stepId}"></md-focus-ring>`}
|
|
200
|
+
${this.label && !this.disabled ? i`<div class="tooltip ${this.position === "bottom" ? "bottom" : "top"}">${this.label}</div>` : ""}
|
|
199
201
|
`;
|
|
200
202
|
}
|
|
201
203
|
};
|
|
202
|
-
|
|
204
|
+
t([o({ type: String })], c.prototype, "width", void 0), t([o({
|
|
203
205
|
type: Boolean,
|
|
204
206
|
reflect: !0
|
|
205
|
-
})],
|
|
207
|
+
})], c.prototype, "active", void 0), t([o({
|
|
206
208
|
type: Boolean,
|
|
207
209
|
reflect: !0
|
|
208
|
-
})],
|
|
210
|
+
})], c.prototype, "disabled", void 0), t([o({
|
|
209
211
|
type: String,
|
|
210
212
|
reflect: !0
|
|
211
|
-
})],
|
|
213
|
+
})], c.prototype, "href", void 0), t([o({ type: String })], c.prototype, "label", void 0), t([o({ type: String })], c.prototype, "position", void 0), t([s()], c.prototype, "_stepId", void 0), c = t([a("scb-progress-step")], c);
|
|
212
214
|
//#endregion
|
|
213
|
-
export {
|
|
215
|
+
export { c as ScbProgressStep };
|
|
@@ -2,7 +2,6 @@ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpe
|
|
|
2
2
|
import "./scb-radio-group.js";
|
|
3
3
|
import { LitElement as t, css as n, html as r, nothing as i } from "lit";
|
|
4
4
|
import { customElement as a, property as o } from "lit/decorators.js";
|
|
5
|
-
import "@material/web/focus/md-focus-ring.js";
|
|
6
5
|
import "@material/web/radio/radio.js";
|
|
7
6
|
//#region src/scb-components/scb-radio-button/scb-radio-button.ts
|
|
8
7
|
var s = !1, c = 0, l = (e) => {
|
package/scb-search/scb-search.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
1
|
+
import { ensureFocusRingReady 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
|
+
import { LitElement as n, css as r, html as i, nothing as a } from "lit";
|
|
4
|
+
import { customElement as o, property as s, state as c } from "lit/decorators.js";
|
|
5
5
|
import "@material/web/icon/icon.js";
|
|
6
6
|
import "@material/web/ripple/ripple.js";
|
|
7
7
|
//#region src/scb-components/scb-search/scb-search.ts
|
|
8
|
-
var
|
|
8
|
+
var l = 0, u = class extends n {
|
|
9
9
|
static {
|
|
10
10
|
this.formAssociated = !0;
|
|
11
11
|
}
|
|
@@ -19,8 +19,8 @@ var c = 0, l = class extends t {
|
|
|
19
19
|
!this._inputFocused || !e || !this._hasSuggestions || this._ensureListDepsLoaded().then(() => this.requestUpdate());
|
|
20
20
|
}
|
|
21
21
|
constructor() {
|
|
22
|
-
super(), this._internals = null, this.supportingText = "", this.value = "", this.name = "", this.disabled = !1, this.required = !1, this.autocomplete = !1, this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.size = "large", this.fullScreen = !1, this._inputFocused = !1, this._visibleSuggestions = 0, this._listDepsLoaded = !1, this._activeIndex = -1, this._listboxId = `scb-search-listbox-${++
|
|
23
|
-
|
|
22
|
+
super(), this._internals = null, this.supportingText = "", this.value = "", this.name = "", this.disabled = !1, this.required = !1, this.autocomplete = !1, this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.size = "large", this.fullScreen = !1, this._inputFocused = !1, this._visibleSuggestions = 0, this._listDepsLoaded = !1, this._activeIndex = -1, this._listboxId = `scb-search-listbox-${++l}`, this._kbMode = !1, this._valueOnFocus = "", this._lastChangeValue = "", this._kbShouldShowRing = !1, this._onGlobalKeydown = (t) => {
|
|
23
|
+
t.key === "Tab" && (e(), this._kbShouldShowRing = !0, this._inputFocused && this._updateInputRingVisibility());
|
|
24
24
|
}, this._onGlobalPointerDown = () => {
|
|
25
25
|
this._kbShouldShowRing = !1, this._inputFocused && this._updateInputRingVisibility();
|
|
26
26
|
}, this._form = null, this._formResetHandler = null, this._formSubmitHandler = null, this._initialValue = "", this._customValidationMessage = "", this._listScrollHandler = () => {
|
|
@@ -29,7 +29,7 @@ var c = 0, l = class extends t {
|
|
|
29
29
|
}, "attachInternals" in this && (this._internals = this.attachInternals());
|
|
30
30
|
}
|
|
31
31
|
static {
|
|
32
|
-
this.styles =
|
|
32
|
+
this.styles = r`
|
|
33
33
|
:host {
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
@@ -236,6 +236,7 @@ var c = 0, l = class extends t {
|
|
|
236
236
|
}
|
|
237
237
|
|
|
238
238
|
scb-list.suggestion-list {
|
|
239
|
+
--scb-list-container-padding-block: 0px;
|
|
239
240
|
position: absolute;
|
|
240
241
|
top: 100%;
|
|
241
242
|
left: 0;
|
|
@@ -310,7 +311,7 @@ var c = 0, l = class extends t {
|
|
|
310
311
|
}
|
|
311
312
|
render() {
|
|
312
313
|
let e = (this.value ?? "").trim().length > 0, t = this._inputFocused && e && this._hasSuggestions && this._listDepsLoaded;
|
|
313
|
-
return
|
|
314
|
+
return i`
|
|
314
315
|
<div class="ripple-wrapper">
|
|
315
316
|
<md-icon class="leading">${e ? "arrow_back" : "search"}</md-icon>
|
|
316
317
|
|
|
@@ -330,7 +331,7 @@ var c = 0, l = class extends t {
|
|
|
330
331
|
aria-label=${this.supportingText || "Sök"}
|
|
331
332
|
/>
|
|
332
333
|
|
|
333
|
-
${e ?
|
|
334
|
+
${e ? i`<button
|
|
334
335
|
class="clear-btn"
|
|
335
336
|
type="button"
|
|
336
337
|
?disabled=${this.disabled}
|
|
@@ -339,7 +340,7 @@ var c = 0, l = class extends t {
|
|
|
339
340
|
aria-label="Rensa sökfält"
|
|
340
341
|
>
|
|
341
342
|
<md-icon>close</md-icon>
|
|
342
|
-
</button>` : this.trailingIcon ?
|
|
343
|
+
</button>` : this.trailingIcon ? i`<span class="trailing"><md-icon>${this.trailingIcon}</md-icon></span>` : a}
|
|
343
344
|
|
|
344
345
|
<md-ripple></md-ripple>
|
|
345
346
|
<md-focus-ring class="input-ring"></md-focus-ring>
|
|
@@ -347,12 +348,12 @@ var c = 0, l = class extends t {
|
|
|
347
348
|
|
|
348
349
|
<div class="list-divider" aria-hidden=${String(!(this.fullScreen && t))}></div>
|
|
349
350
|
|
|
350
|
-
${t ?
|
|
351
|
+
${t ? i`
|
|
351
352
|
<scb-list class="suggestion-list" id=${this._listboxId}>
|
|
352
353
|
<slot @slotchange=${this._onSlotChange}></slot>
|
|
353
354
|
</scb-list>
|
|
354
355
|
<md-focus-ring id="optionRing" class="option-ring"></md-focus-ring>
|
|
355
|
-
` :
|
|
356
|
+
` : a}
|
|
356
357
|
`;
|
|
357
358
|
}
|
|
358
359
|
formDisabledCallback(e) {
|
|
@@ -613,50 +614,50 @@ var c = 0, l = class extends t {
|
|
|
613
614
|
this._internals.setFormValue(e);
|
|
614
615
|
}
|
|
615
616
|
};
|
|
616
|
-
|
|
617
|
+
t([s({
|
|
617
618
|
type: String,
|
|
618
619
|
attribute: "trailing-icon"
|
|
619
|
-
})],
|
|
620
|
+
})], u.prototype, "trailingIcon", void 0), t([s({
|
|
620
621
|
type: String,
|
|
621
622
|
attribute: "supporting-text"
|
|
622
|
-
})],
|
|
623
|
+
})], u.prototype, "supportingText", void 0), t([s({ type: String })], u.prototype, "value", void 0), t([s({
|
|
623
624
|
type: String,
|
|
624
625
|
reflect: !0
|
|
625
|
-
})],
|
|
626
|
+
})], u.prototype, "name", void 0), t([s({
|
|
626
627
|
type: Boolean,
|
|
627
628
|
reflect: !0
|
|
628
|
-
})],
|
|
629
|
+
})], u.prototype, "disabled", void 0), t([s({
|
|
629
630
|
type: Boolean,
|
|
630
631
|
reflect: !0
|
|
631
|
-
})],
|
|
632
|
+
})], u.prototype, "required", void 0), t([s({
|
|
632
633
|
type: Boolean,
|
|
633
634
|
reflect: !0
|
|
634
|
-
})],
|
|
635
|
+
})], u.prototype, "autocomplete", void 0), t([s({
|
|
635
636
|
type: String,
|
|
636
637
|
reflect: !0
|
|
637
|
-
})],
|
|
638
|
+
})], u.prototype, "spacing", void 0), t([s({
|
|
638
639
|
type: String,
|
|
639
640
|
attribute: "spacing-top",
|
|
640
641
|
reflect: !0
|
|
641
|
-
})],
|
|
642
|
+
})], u.prototype, "spacingTop", void 0), t([s({
|
|
642
643
|
type: String,
|
|
643
644
|
attribute: "spacing-bottom",
|
|
644
645
|
reflect: !0
|
|
645
|
-
})],
|
|
646
|
+
})], u.prototype, "spacingBottom", void 0), t([s({
|
|
646
647
|
type: String,
|
|
647
648
|
attribute: "spacing-left",
|
|
648
649
|
reflect: !0
|
|
649
|
-
})],
|
|
650
|
+
})], u.prototype, "spacingLeft", void 0), t([s({
|
|
650
651
|
type: String,
|
|
651
652
|
attribute: "spacing-right",
|
|
652
653
|
reflect: !0
|
|
653
|
-
})],
|
|
654
|
+
})], u.prototype, "spacingRight", void 0), t([s({
|
|
654
655
|
type: String,
|
|
655
656
|
reflect: !0
|
|
656
|
-
})],
|
|
657
|
+
})], u.prototype, "size", void 0), t([s({
|
|
657
658
|
type: Boolean,
|
|
658
659
|
attribute: "full-screen",
|
|
659
660
|
reflect: !0
|
|
660
|
-
})],
|
|
661
|
+
})], u.prototype, "fullScreen", void 0), t([c()], u.prototype, "_listDepsLoaded", void 0), u = t([o("scb-search")], u);
|
|
661
662
|
//#endregion
|
|
662
|
-
export {
|
|
663
|
+
export { u as ScbSearch };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
1
|
+
import { ensureFocusRingOnFocusVisible 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
|
+
import { LitElement as n, css as r, html as i } from "lit";
|
|
4
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
5
5
|
import "@material/web/icon/icon.js";
|
|
6
6
|
import "@material/web/ripple/ripple.js";
|
|
7
7
|
//#region src/scb-components/scb-segmented-button/scb-segmented-item.ts
|
|
8
|
-
var
|
|
8
|
+
var s = class extends n {
|
|
9
9
|
constructor(...e) {
|
|
10
10
|
super(...e), this.label = "", this.value = "", this.selected = !1, this.icon = "", this.href = "", this.disabled = !1, this.onHostKeydown = (e) => {
|
|
11
11
|
if (!this.href || this.isEffectivelyDisabled || e.code !== "Space" && e.code !== "Enter" && e.code !== "NumpadEnter") return;
|
|
@@ -20,8 +20,11 @@ var o = class extends t {
|
|
|
20
20
|
get hasDefaultSlotContent() {
|
|
21
21
|
return Array.from(this.childNodes).some((e) => e.nodeType === 1 ? !0 : e.nodeType === 3 ? (e.textContent ?? "").trim() !== "" : !1);
|
|
22
22
|
}
|
|
23
|
+
connectedCallback() {
|
|
24
|
+
super.connectedCallback(), this.addEventListener("focusin", e);
|
|
25
|
+
}
|
|
23
26
|
static {
|
|
24
|
-
this.styles =
|
|
27
|
+
this.styles = r`
|
|
25
28
|
.segmented-item {
|
|
26
29
|
display: flex;
|
|
27
30
|
gap: var(--spacing-3);
|
|
@@ -92,13 +95,13 @@ var o = class extends t {
|
|
|
92
95
|
`;
|
|
93
96
|
}
|
|
94
97
|
render() {
|
|
95
|
-
let e = this.isEffectivelyDisabled, t = !!this.icon, n = !!this.label || this.hasDefaultSlotContent,
|
|
98
|
+
let e = this.isEffectivelyDisabled, t = !!this.icon, n = !!this.label || this.hasDefaultSlotContent, r = this.label ? i`${this.label}` : i`<slot></slot>`, a = `segmented-item${t || this.selected ? " has-icon" : ""}${n ? "" : " no-label"}`, o = i`
|
|
96
99
|
<md-ripple ?disabled="${e}"></md-ripple>
|
|
97
|
-
${this.selected ? t && n ?
|
|
98
|
-
${n ?
|
|
100
|
+
${this.selected ? t && n ? i`<md-icon>check</md-icon>` : t ? i`<md-icon>check</md-icon><md-icon>${this.icon}</md-icon>` : i`<md-icon>check</md-icon>` : t ? i`<md-icon>${this.icon}</md-icon>` : ""}
|
|
101
|
+
${n ? i`<span>${r}</span>` : ""}
|
|
99
102
|
<md-focus-ring inward></md-focus-ring>
|
|
100
103
|
`;
|
|
101
|
-
return this.href ?
|
|
104
|
+
return this.href ? i`<a class="${a}" href="${this.href}" aria-disabled="${e ? "true" : "false"}" tabindex="-1">${o}</a>` : i`<div class="${a}" aria-disabled="${e ? "true" : "false"}">${o}</div>`;
|
|
102
105
|
}
|
|
103
106
|
updateInteractiveAttributes() {
|
|
104
107
|
this.setAttribute("tabindex", this.disabled ? "-1" : "0"), this.setAttribute("role", this.href ? "link" : "button");
|
|
@@ -107,30 +110,30 @@ var o = class extends t {
|
|
|
107
110
|
this.addEventListener("keydown", this.onHostKeydown), this.updateInteractiveAttributes();
|
|
108
111
|
}
|
|
109
112
|
disconnectedCallback() {
|
|
110
|
-
this.removeEventListener("keydown", this.onHostKeydown), super.disconnectedCallback();
|
|
113
|
+
this.removeEventListener("focusin", e), this.removeEventListener("keydown", this.onHostKeydown), super.disconnectedCallback();
|
|
111
114
|
}
|
|
112
115
|
updated(e) {
|
|
113
116
|
super.updated(e), (e.has("disabled") || e.has("href")) && this.updateInteractiveAttributes();
|
|
114
117
|
}
|
|
115
118
|
};
|
|
116
|
-
|
|
119
|
+
t([o({
|
|
117
120
|
type: String,
|
|
118
121
|
reflect: !0
|
|
119
|
-
})],
|
|
122
|
+
})], s.prototype, "label", void 0), t([o({
|
|
120
123
|
type: String,
|
|
121
124
|
reflect: !0
|
|
122
|
-
})],
|
|
125
|
+
})], s.prototype, "value", void 0), t([o({
|
|
123
126
|
type: Boolean,
|
|
124
127
|
reflect: !0
|
|
125
|
-
})],
|
|
128
|
+
})], s.prototype, "selected", void 0), t([o({
|
|
126
129
|
type: String,
|
|
127
130
|
reflect: !0
|
|
128
|
-
})],
|
|
131
|
+
})], s.prototype, "icon", void 0), t([o({
|
|
129
132
|
type: String,
|
|
130
133
|
reflect: !0
|
|
131
|
-
})],
|
|
134
|
+
})], s.prototype, "href", void 0), t([o({
|
|
132
135
|
type: Boolean,
|
|
133
136
|
reflect: !0
|
|
134
|
-
})],
|
|
137
|
+
})], s.prototype, "disabled", void 0), s = t([a("scb-segmented-item")], s);
|
|
135
138
|
//#endregion
|
|
136
|
-
export {
|
|
139
|
+
export { s as ScbSegmentedItem };
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
1
|
+
import { ensureFocusRingOnFocusVisible 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
|
+
import { LitElement as n, css as r, html as i } from "lit";
|
|
4
|
+
import { customElement as a, property as o } from "lit/decorators.js";
|
|
5
5
|
import "@material/web/icon/icon.js";
|
|
6
6
|
import "@material/web/ripple/ripple.js";
|
|
7
7
|
//#region src/scb-components/scb-select/scb-select-option.ts
|
|
8
|
-
var
|
|
8
|
+
var s = class extends n {
|
|
9
9
|
constructor(...e) {
|
|
10
10
|
super(...e), this.value = "", this.disabled = !1, this.showCheckbox = !1, this.checked = !1, this.showRadio = !1, this.label = "", this.noHighlightSelected = !1;
|
|
11
11
|
}
|
|
12
|
+
connectedCallback() {
|
|
13
|
+
super.connectedCallback(), this.addEventListener("focusin", e);
|
|
14
|
+
}
|
|
15
|
+
disconnectedCallback() {
|
|
16
|
+
this.removeEventListener("focusin", e), super.disconnectedCallback();
|
|
17
|
+
}
|
|
12
18
|
static {
|
|
13
|
-
this.styles =
|
|
19
|
+
this.styles = r`
|
|
14
20
|
:host {
|
|
15
21
|
display: block;
|
|
16
22
|
outline: none;
|
|
@@ -65,24 +71,24 @@ var o = class extends t {
|
|
|
65
71
|
`;
|
|
66
72
|
}
|
|
67
73
|
render() {
|
|
68
|
-
return
|
|
74
|
+
return i`
|
|
69
75
|
<div class="item ${this.checked ? "checked" : ""}" ?aria-disabled=${this.disabled}>
|
|
70
76
|
<md-ripple></md-ripple>
|
|
71
|
-
${this.showCheckbox ?
|
|
72
|
-
${this.showRadio ?
|
|
73
|
-
<div class="label">${this.label ? this.label :
|
|
77
|
+
${this.showCheckbox ? i`<md-icon class="${this.checked ? "checkbox-checked" : ""}" aria-hidden="true">${this.checked ? "check_box" : "check_box_outline_blank"}</md-icon>` : null}
|
|
78
|
+
${this.showRadio ? i`<md-icon class="${this.checked ? "radio-checked" : ""}" aria-hidden="true">${this.checked ? "radio_button_checked" : "radio_button_unchecked"}</md-icon>` : null}
|
|
79
|
+
<div class="label">${this.label ? this.label : i`<slot></slot>`}</div>
|
|
74
80
|
<md-focus-ring inward></md-focus-ring>
|
|
75
81
|
</div>
|
|
76
82
|
`;
|
|
77
83
|
}
|
|
78
84
|
};
|
|
79
|
-
|
|
85
|
+
t([o({ type: String })], s.prototype, "value", void 0), t([o({
|
|
80
86
|
type: Boolean,
|
|
81
87
|
reflect: !0
|
|
82
|
-
})],
|
|
88
|
+
})], s.prototype, "disabled", void 0), t([o({ type: Boolean })], s.prototype, "showCheckbox", void 0), t([o({ type: Boolean })], s.prototype, "checked", void 0), t([o({ type: Boolean })], s.prototype, "showRadio", void 0), t([o({ type: String })], s.prototype, "label", void 0), t([o({
|
|
83
89
|
type: Boolean,
|
|
84
90
|
attribute: "no-highlight-selected",
|
|
85
91
|
reflect: !0
|
|
86
|
-
})],
|
|
92
|
+
})], s.prototype, "noHighlightSelected", void 0), s = t([a("scb-select-option")], s);
|
|
87
93
|
//#endregion
|
|
88
|
-
export {
|
|
94
|
+
export { s as ScbSelectOption };
|