scb-wc 0.1.75 → 0.1.76
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/index.js +20 -20
- package/mvc/components/scb-accordion/scb-accordion-item.js +2 -2
- package/mvc/components/scb-avatar/scb-avatar.js +2 -2
- package/mvc/components/scb-breadcrumb/scb-breadcrumb.js +33 -15
- package/mvc/components/scb-button/scb-button.js +80 -41
- package/mvc/components/scb-calendar/scb-calendar.js +1 -1
- package/mvc/components/scb-calendar-card/scb-calendar-card.js +4 -4
- package/mvc/components/scb-card/scb-card.js +3 -3
- package/mvc/components/scb-checkbox/scb-checkbox.js +32 -7
- package/mvc/components/scb-chip/scb-chip.js +6 -6
- package/mvc/components/scb-dialog/scb-dialog.js +1 -1
- package/mvc/components/scb-dropdown/scb-dropdown.js +1 -1
- package/mvc/components/scb-fab/scb-fab.js +24 -6
- package/mvc/components/scb-fact-card/scb-fact-card.js +4 -4
- package/mvc/components/scb-header/scb-header.js +474 -124
- package/mvc/components/scb-horizontal-scroller/scb-horizontal-scroller.js +1 -1
- package/mvc/components/scb-icon-button/scb-icon-button.js +2 -2
- package/mvc/components/scb-keyfigure-card/scb-keyfigure-card.js +2 -2
- package/mvc/components/scb-link/scb-link.js +14 -10
- package/mvc/components/scb-list/scb-list-item.js +5 -5
- package/mvc/components/scb-list/scb-list.js +3 -3
- package/mvc/components/scb-menu/scb-menu-item.js +2 -2
- package/mvc/components/scb-nav/scb-nav.js +1 -1
- package/mvc/components/scb-notification-card/scb-notification-card.js +1 -1
- package/mvc/components/scb-options-menu/scb-options-menu-item.js +1 -1
- package/mvc/components/scb-pagination/scb-pagination.js +1 -1
- package/mvc/components/scb-progress-stepper/scb-progress-step.js +1 -1
- package/mvc/components/scb-radio-button/scb-radio-button.js +39 -9
- package/mvc/components/scb-search/scb-search.js +3 -3
- package/mvc/components/scb-segmented-button/scb-segmented-item.js +1 -1
- package/mvc/components/scb-select/scb-select-option.js +3 -3
- package/mvc/components/scb-select/scb-select.js +1 -1
- package/mvc/components/scb-slider/scb-slider.js +58 -4
- package/mvc/components/scb-status-pill/scb-status-pill.js +1 -1
- package/mvc/components/scb-stepper/scb-step.js +1 -1
- package/mvc/components/scb-switch/scb-switch.js +51 -6
- package/mvc/components/scb-tabs/scb-primary-tab.js +3 -2
- package/mvc/components/scb-tabs/scb-secondary-tab.js +3 -2
- package/mvc/components/scb-tabs/scb-tabs.js +11 -2
- package/mvc/components/scb-textfield/scb-textfield.js +1 -1
- package/mvc/components/scb-toc/scb-toc-item.js +1 -1
- package/mvc/components/scb-tooltip/scb-tooltip.js +1 -1
- package/mvc/vendor/assist-chip.js +20 -0
- package/mvc/vendor/attachable-controller.js +1 -0
- package/mvc/vendor/checkbox-validator.js +1 -0
- package/mvc/vendor/chip-set.js +2 -0
- package/mvc/vendor/chip.js +18 -0
- package/mvc/vendor/delegate.js +1 -0
- package/mvc/vendor/element-internals.js +1 -0
- package/mvc/vendor/elevation.js +2 -0
- package/mvc/vendor/filled-icon-button.js +2 -0
- package/mvc/vendor/filled-tonal-icon-button.js +2 -0
- package/mvc/vendor/filter-chip.js +43 -0
- package/mvc/vendor/focusable.js +1 -0
- package/mvc/vendor/form-associated.js +1 -0
- package/mvc/vendor/form-label-activation.js +1 -0
- package/mvc/vendor/form-submitter.js +1 -0
- package/mvc/vendor/icon-button.js +2 -0
- package/mvc/vendor/icon.js +2 -0
- package/mvc/vendor/list.js +8 -0
- package/mvc/vendor/md-focus-ring.js +2 -0
- package/mvc/vendor/outlined-icon-button.js +2 -0
- package/mvc/vendor/redispatch-event.js +1 -0
- package/mvc/vendor/ripple.js +2 -0
- package/mvc/vendor/rolldown-runtime.js +1 -0
- package/mvc/vendor/shared-styles.js +3 -0
- package/mvc/vendor/shared-styles2.js +30 -0
- package/mvc/vendor/tab-styles.js +17 -0
- package/mvc/vendor/validator.js +1 -0
- package/package.json +2 -2
- package/scb-breadcrumb/scb-breadcrumb.js +38 -21
- package/scb-components/scb-header/scb-header.d.ts +11 -4
- package/scb-header/scb-header.js +512 -156
- package/scb-link/scb-link.js +24 -20
- package/scb-wc.bundle.js +602 -232
- package/mvc/vendor/vendor-material.js +0 -364
package/scb-link/scb-link.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
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
|
import { ifDefined as o } from "lit/directives/if-defined.js";
|
|
6
5
|
//#region src/scb-components/scb-link/scb-link.ts
|
|
7
|
-
var s =
|
|
6
|
+
var s, c = () => {
|
|
7
|
+
customElements.get("md-focus-ring") || (s ??= import("@material/web/focus/md-focus-ring.js").then(() => void 0));
|
|
8
|
+
}, l = class extends t {
|
|
8
9
|
constructor(...e) {
|
|
9
10
|
super(...e), this.href = "", this.disabled = !1, this.ariaLabel = "", this.spacing = void 0, this.spacingTop = void 0, this.spacingBottom = void 0, this.spacingLeft = void 0, this.spacingRight = void 0, this.#t = (e) => {
|
|
10
11
|
this.disabled && (e.preventDefault(), e.stopPropagation());
|
|
@@ -33,7 +34,10 @@ var s = class extends t {
|
|
|
33
34
|
inset: 0;
|
|
34
35
|
pointer-events: none;
|
|
35
36
|
display: none;
|
|
36
|
-
border-radius: var(
|
|
37
|
+
border-radius: var(
|
|
38
|
+
--scb-link-focus-ring-radius,
|
|
39
|
+
var(--md-sys-shape-corner-small, 1px)
|
|
40
|
+
);
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
a {
|
|
@@ -51,6 +55,9 @@ var s = class extends t {
|
|
|
51
55
|
}
|
|
52
56
|
a:hover { text-decoration-thickness: var(--scb-link-hover-thickness, 2px); }
|
|
53
57
|
a:focus { outline: none; }
|
|
58
|
+
a:focus-visible + md-focus-ring {
|
|
59
|
+
display: block;
|
|
60
|
+
}
|
|
54
61
|
|
|
55
62
|
:host([disabled]) a {
|
|
56
63
|
pointer-events: none;
|
|
@@ -58,9 +65,6 @@ var s = class extends t {
|
|
|
58
65
|
text-decoration: none;
|
|
59
66
|
cursor: default;
|
|
60
67
|
}
|
|
61
|
-
a:focus-visible + md-focus-ring {
|
|
62
|
-
display: block;
|
|
63
|
-
}
|
|
64
68
|
`;
|
|
65
69
|
}
|
|
66
70
|
firstUpdated() {
|
|
@@ -89,10 +93,10 @@ var s = class extends t {
|
|
|
89
93
|
download=${o(this.download)}
|
|
90
94
|
aria-disabled=${this.disabled ? "true" : "false"}
|
|
91
95
|
aria-label=${o(this.ariaLabel || void 0)}
|
|
96
|
+
@focusin=${c}
|
|
92
97
|
@click=${this.#t}
|
|
93
98
|
><slot></slot></a>
|
|
94
|
-
|
|
95
|
-
<md-focus-ring></md-focus-ring>
|
|
99
|
+
<md-focus-ring aria-hidden="true"></md-focus-ring>
|
|
96
100
|
`;
|
|
97
101
|
}
|
|
98
102
|
#t;
|
|
@@ -100,40 +104,40 @@ var s = class extends t {
|
|
|
100
104
|
e([a({
|
|
101
105
|
type: String,
|
|
102
106
|
reflect: !0
|
|
103
|
-
})],
|
|
107
|
+
})], l.prototype, "href", void 0), e([a({
|
|
104
108
|
type: String,
|
|
105
109
|
reflect: !0
|
|
106
|
-
})],
|
|
110
|
+
})], l.prototype, "target", void 0), e([a({
|
|
107
111
|
type: String,
|
|
108
112
|
reflect: !0
|
|
109
|
-
})],
|
|
113
|
+
})], l.prototype, "rel", void 0), e([a({
|
|
110
114
|
type: String,
|
|
111
115
|
reflect: !0
|
|
112
|
-
})],
|
|
116
|
+
})], l.prototype, "download", void 0), e([a({
|
|
113
117
|
type: Boolean,
|
|
114
118
|
reflect: !0
|
|
115
|
-
})],
|
|
119
|
+
})], l.prototype, "disabled", void 0), e([a({
|
|
116
120
|
type: String,
|
|
117
121
|
attribute: "aria-label"
|
|
118
|
-
})],
|
|
122
|
+
})], l.prototype, "ariaLabel", void 0), e([a({
|
|
119
123
|
type: String,
|
|
120
124
|
reflect: !0
|
|
121
|
-
})],
|
|
125
|
+
})], l.prototype, "spacing", void 0), e([a({
|
|
122
126
|
type: String,
|
|
123
127
|
attribute: "spacing-top",
|
|
124
128
|
reflect: !0
|
|
125
|
-
})],
|
|
129
|
+
})], l.prototype, "spacingTop", void 0), e([a({
|
|
126
130
|
type: String,
|
|
127
131
|
attribute: "spacing-bottom",
|
|
128
132
|
reflect: !0
|
|
129
|
-
})],
|
|
133
|
+
})], l.prototype, "spacingBottom", void 0), e([a({
|
|
130
134
|
type: String,
|
|
131
135
|
attribute: "spacing-left",
|
|
132
136
|
reflect: !0
|
|
133
|
-
})],
|
|
137
|
+
})], l.prototype, "spacingLeft", void 0), e([a({
|
|
134
138
|
type: String,
|
|
135
139
|
attribute: "spacing-right",
|
|
136
140
|
reflect: !0
|
|
137
|
-
})],
|
|
141
|
+
})], l.prototype, "spacingRight", void 0), l = e([i("scb-link")], l);
|
|
138
142
|
//#endregion
|
|
139
|
-
export {
|
|
143
|
+
export { l as ScbLink };
|