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 {
|
|
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-chevron/scb-chevron.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, nothing as a } from "lit";
|
|
5
|
+
import { customElement as o, property as s } 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-accordion/scb-accordion-item.ts
|
|
9
|
-
var
|
|
9
|
+
var c, l = class extends n {
|
|
10
10
|
static {
|
|
11
|
-
|
|
11
|
+
c = this;
|
|
12
12
|
}
|
|
13
13
|
constructor(...e) {
|
|
14
|
-
super(...e), this.open = !1, this.title = "", this.content = "", this.overline = "", this.supportingText = "", this.leading = !1, this.leadingVariant = "", this.leadingIcon = "", this.imgHrefImage = "", this.avatarLabel = "", this.avatarAlt = "", this.avatarVariant = "icon", this.avatarSrc = "", this.density = 0, this._unique =
|
|
14
|
+
super(...e), this.open = !1, this.title = "", this.content = "", this.overline = "", this.supportingText = "", this.leading = !1, this.leadingVariant = "", this.leadingIcon = "", this.imgHrefImage = "", this.avatarLabel = "", this.avatarAlt = "", this.avatarVariant = "icon", this.avatarSrc = "", this.density = 0, this._unique = c._uid(), this._ignoreNextNativeTitleAttrChange = !1, this._onSummaryClick = (e) => {
|
|
15
15
|
e.preventDefault();
|
|
16
16
|
let t = !this.open;
|
|
17
17
|
this.closest("scb-accordion")?.onItemToggled?.(this, t), this.setOpen(t);
|
|
@@ -27,7 +27,7 @@ var s, c = class extends t {
|
|
|
27
27
|
this._uidSeq = 0;
|
|
28
28
|
}
|
|
29
29
|
static _uid() {
|
|
30
|
-
return globalThis.crypto?.randomUUID?.() ?? `${
|
|
30
|
+
return globalThis.crypto?.randomUUID?.() ?? `${c._uidPrefix}-${++c._uidSeq}`;
|
|
31
31
|
}
|
|
32
32
|
static get observedAttributes() {
|
|
33
33
|
let e = super.observedAttributes || [];
|
|
@@ -44,7 +44,7 @@ var s, c = class extends t {
|
|
|
44
44
|
this._applyInertByOpen();
|
|
45
45
|
}
|
|
46
46
|
static {
|
|
47
|
-
this.styles = [
|
|
47
|
+
this.styles = [r`
|
|
48
48
|
:host {
|
|
49
49
|
display: block;
|
|
50
50
|
position: relative;
|
|
@@ -257,7 +257,7 @@ var s, c = class extends t {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
render() {
|
|
260
|
-
let
|
|
260
|
+
let t = `bottom-${this._unique}`, n = `header-${this._unique}`, r = this.leading ? this.leadingVariant === "image" && this.imgHrefImage ? i`<img part="leading-image" class="img" src="${this.imgHrefImage}" alt="" />` : this.leadingVariant === "avatar" ? i`
|
|
261
261
|
<scb-avatar
|
|
262
262
|
label=${this.avatarLabel}
|
|
263
263
|
alt=${this.avatarAlt}
|
|
@@ -266,75 +266,76 @@ var s, c = class extends t {
|
|
|
266
266
|
shape="circular"
|
|
267
267
|
variant=${this.avatarVariant}
|
|
268
268
|
></scb-avatar>
|
|
269
|
-
` : this.leadingVariant === "icon" ?
|
|
270
|
-
return
|
|
269
|
+
` : this.leadingVariant === "icon" ? i`<md-icon>${this.leadingIcon}</md-icon>` : a : a;
|
|
270
|
+
return i`
|
|
271
271
|
<details class="scb-accordion-item" open @toggle=${this._onToggle}>
|
|
272
272
|
<summary
|
|
273
|
-
id=${
|
|
273
|
+
id=${n}
|
|
274
274
|
class="scb-accordion-top"
|
|
275
|
-
aria-controls=${
|
|
275
|
+
aria-controls=${t}
|
|
276
276
|
@click=${this._onSummaryClick}
|
|
277
277
|
@keydown=${this._onKeyDown}
|
|
278
|
+
@focusin=${e}
|
|
278
279
|
>
|
|
279
280
|
<md-ripple></md-ripple>
|
|
280
281
|
|
|
281
|
-
${this.leading ?
|
|
282
|
+
${this.leading ? i`<div class="leading">${r}</div>` : a}
|
|
282
283
|
|
|
283
284
|
<div class="texts">
|
|
284
|
-
${this.overline ?
|
|
285
|
+
${this.overline ? i`<div class="overline">${this.overline}</div>` : a}
|
|
285
286
|
<div class="title">${this.title}</div>
|
|
286
|
-
${this.supportingText ?
|
|
287
|
+
${this.supportingText ? i`<div class="supporting-text">${this.supportingText}</div>` : a}
|
|
287
288
|
</div>
|
|
288
289
|
|
|
289
290
|
<scb-chevron class="chevron" .open=${this.open}></scb-chevron>
|
|
290
291
|
</summary>
|
|
291
292
|
|
|
292
|
-
<div id=${
|
|
293
|
+
<div id=${t} class="scb-accordion-bottom" role="region" aria-labelledby=${n}>
|
|
293
294
|
<div class="bottom-inner">
|
|
294
295
|
<slot>${this.content}</slot>
|
|
295
296
|
</div>
|
|
296
297
|
</div>
|
|
297
298
|
</details>
|
|
298
299
|
|
|
299
|
-
<md-focus-ring for=${
|
|
300
|
+
<md-focus-ring for=${n} inward></md-focus-ring>
|
|
300
301
|
`;
|
|
301
302
|
}
|
|
302
303
|
};
|
|
303
|
-
|
|
304
|
+
t([s({
|
|
304
305
|
type: Boolean,
|
|
305
306
|
reflect: !0
|
|
306
|
-
})],
|
|
307
|
+
})], l.prototype, "open", void 0), t([s({ type: String })], l.prototype, "title", void 0), t([s({ type: String })], l.prototype, "content", void 0), t([s({
|
|
307
308
|
type: String,
|
|
308
309
|
attribute: "overline"
|
|
309
|
-
})],
|
|
310
|
+
})], l.prototype, "overline", void 0), t([s({
|
|
310
311
|
type: String,
|
|
311
312
|
attribute: "supporting-text"
|
|
312
|
-
})],
|
|
313
|
+
})], l.prototype, "supportingText", void 0), t([s({ type: Boolean })], l.prototype, "leading", void 0), t([s({
|
|
313
314
|
type: String,
|
|
314
315
|
attribute: "leading-variant",
|
|
315
316
|
reflect: !0
|
|
316
|
-
})],
|
|
317
|
+
})], l.prototype, "leadingVariant", void 0), t([s({
|
|
317
318
|
type: String,
|
|
318
319
|
attribute: "leading-icon"
|
|
319
|
-
})],
|
|
320
|
+
})], l.prototype, "leadingIcon", void 0), t([s({
|
|
320
321
|
type: String,
|
|
321
322
|
attribute: "img-href-image",
|
|
322
323
|
reflect: !0
|
|
323
|
-
})],
|
|
324
|
+
})], l.prototype, "imgHrefImage", void 0), t([s({
|
|
324
325
|
type: String,
|
|
325
326
|
attribute: "avatar-label"
|
|
326
|
-
})],
|
|
327
|
+
})], l.prototype, "avatarLabel", void 0), t([s({
|
|
327
328
|
type: String,
|
|
328
329
|
attribute: "avatar-alt"
|
|
329
|
-
})],
|
|
330
|
+
})], l.prototype, "avatarAlt", void 0), t([s({
|
|
330
331
|
type: String,
|
|
331
332
|
attribute: "avatar-variant"
|
|
332
|
-
})],
|
|
333
|
+
})], l.prototype, "avatarVariant", void 0), t([s({
|
|
333
334
|
type: String,
|
|
334
335
|
attribute: "avatar-src"
|
|
335
|
-
})],
|
|
336
|
+
})], l.prototype, "avatarSrc", void 0), t([s({
|
|
336
337
|
type: Number,
|
|
337
338
|
reflect: !0
|
|
338
|
-
})],
|
|
339
|
+
})], l.prototype, "density", void 0), l = c = t([o("scb-accordion-item")], l);
|
|
339
340
|
//#endregion
|
|
340
|
-
export {
|
|
341
|
+
export { l as ScbAccordionItem };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.126.0/helpers/decorate.js";
|
|
2
2
|
import "../scb-button/scb-button.js";
|
|
3
3
|
import "../scb-icon-button/scb-icon-button.js";
|
|
4
|
-
import "../scb-avatar/scb-avatar.js";
|
|
5
4
|
import "../scb-search/scb-search.js";
|
|
5
|
+
import "../scb-avatar/scb-avatar.js";
|
|
6
6
|
import { LitElement as t, css as n, html as r } from "lit";
|
|
7
7
|
import { customElement as i, property as a } from "lit/decorators.js";
|
|
8
8
|
//#region src/scb-components/scb-app-bar/scb-app-bar.ts
|