scb-wc 0.1.74 → 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/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 +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 +319 -24
- 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/{components/scb-chevron → vendor}/scb-chevron.js +1 -1
- 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-chevron/scb-chevron.js +0 -1
- package/scb-components/scb-header/scb-header.d.ts +11 -4
- package/scb-datepicker/scb-datepicker.js +0 -1
- package/scb-header/scb-header.js +512 -156
- package/scb-link/scb-link.js +24 -20
- package/scb-wc-public-entry/index.d.ts +97 -0
- package/scb-wc.bundle.js +728 -358
- package/scb-wc.d.ts +194 -198
- package/mvc/components/scb-datepicker/scb-datepicker.js +0 -296
- package/mvc/vendor/vendor-material.js +0 -364
- 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-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 };
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
export * from '../scb-components/scb-accordion/scb-accordion-item';
|
|
2
|
+
export * from '../scb-components/scb-accordion/scb-accordion';
|
|
3
|
+
export * from '../scb-components/scb-action-card/scb-action-card';
|
|
4
|
+
export * from '../scb-components/scb-app-bar/scb-app-bar';
|
|
5
|
+
export * from '../scb-components/scb-avatar/scb-avatar';
|
|
6
|
+
export * from '../scb-components/scb-badge/scb-badge';
|
|
7
|
+
export * from '../scb-components/scb-breadcrumb/scb-breadcrumb-item';
|
|
8
|
+
export * from '../scb-components/scb-breadcrumb/scb-breadcrumb';
|
|
9
|
+
export * from '../scb-components/scb-button/scb-button';
|
|
10
|
+
export * from '../scb-components/scb-calendar/scb-calendar-event';
|
|
11
|
+
export * from '../scb-components/scb-calendar/scb-calendar';
|
|
12
|
+
export * from '../scb-components/scb-calendar-card/scb-calendar-card';
|
|
13
|
+
export * from '../scb-components/scb-card/scb-action-card';
|
|
14
|
+
export * from '../scb-components/scb-card/scb-card';
|
|
15
|
+
export * from '../scb-components/scb-card/scb-container-card';
|
|
16
|
+
export * from '../scb-components/scb-card/scb-link-card';
|
|
17
|
+
export * from '../scb-components/scb-card/scb-list-card';
|
|
18
|
+
export * from '../scb-components/scb-card/scb-social-card';
|
|
19
|
+
export * from '../scb-components/scb-checkbox/scb-checkbox-group';
|
|
20
|
+
export * from '../scb-components/scb-checkbox/scb-checkbox';
|
|
21
|
+
export * from '../scb-components/scb-chip/scb-chip';
|
|
22
|
+
export * from '../scb-components/scb-collapse/scb-collapse';
|
|
23
|
+
export * from '../scb-components/scb-container-card/scb-container-card';
|
|
24
|
+
export * from '../scb-components/scb-cookies-consent/scb-cookies-consent';
|
|
25
|
+
export * from '../scb-components/scb-dialog/scb-dialog';
|
|
26
|
+
export * from '../scb-components/scb-divider/scb-divider';
|
|
27
|
+
export * from '../scb-components/scb-drawer/scb-drawer';
|
|
28
|
+
export * from '../scb-components/scb-drop-zone/scb-drop-zone';
|
|
29
|
+
export * from '../scb-components/scb-dropdown/scb-dropdown';
|
|
30
|
+
export * from '../scb-components/scb-fab/scb-fab';
|
|
31
|
+
export * from '../scb-components/scb-fact-card/scb-fact-card-content';
|
|
32
|
+
export * from '../scb-components/scb-fact-card/scb-fact-card';
|
|
33
|
+
export * from '../scb-components/scb-footer/scb-footer-section';
|
|
34
|
+
export * from '../scb-components/scb-footer/scb-footer';
|
|
35
|
+
export * from '../scb-components/scb-gallery-grid/scb-gallery-grid';
|
|
36
|
+
export * from '../scb-components/scb-grid/scb-grid-item';
|
|
37
|
+
export * from '../scb-components/scb-grid/scb-grid';
|
|
38
|
+
export * from '../scb-components/scb-grid/scb-stack';
|
|
39
|
+
export * from '../scb-components/scb-header/scb-header-menu-group';
|
|
40
|
+
export * from '../scb-components/scb-header/scb-header-menu-item';
|
|
41
|
+
export * from '../scb-components/scb-header/scb-header-tab';
|
|
42
|
+
export * from '../scb-components/scb-header/scb-header-utility';
|
|
43
|
+
export * from '../scb-components/scb-header/scb-header';
|
|
44
|
+
export * from '../scb-components/scb-horizontal-scroller/scb-horizontal-scroller';
|
|
45
|
+
export * from '../scb-components/scb-icon-button/scb-icon-button';
|
|
46
|
+
export * from '../scb-components/scb-keyfigure-card/scb-keyfigure-card';
|
|
47
|
+
export * from '../scb-components/scb-link/scb-link';
|
|
48
|
+
export * from '../scb-components/scb-link-card/scb-link-card';
|
|
49
|
+
export * from '../scb-components/scb-list/scb-list-item';
|
|
50
|
+
export * from '../scb-components/scb-list/scb-list';
|
|
51
|
+
export * from '../scb-components/scb-list-card/scb-list-card';
|
|
52
|
+
export * from '../scb-components/scb-menu/scb-menu-item';
|
|
53
|
+
export * from '../scb-components/scb-menu/scb-menu-section';
|
|
54
|
+
export * from '../scb-components/scb-menu/scb-menu';
|
|
55
|
+
export * from '../scb-components/scb-menu/scb-sub-menu';
|
|
56
|
+
export * from '../scb-components/scb-nav/scb-nav-item';
|
|
57
|
+
export * from '../scb-components/scb-nav/scb-nav';
|
|
58
|
+
export * from '../scb-components/scb-notification-card/scb-notification-card';
|
|
59
|
+
export * from '../scb-components/scb-options-menu/scb-options-menu-item';
|
|
60
|
+
export * from '../scb-components/scb-options-menu/scb-options-menu';
|
|
61
|
+
export * from '../scb-components/scb-options-menu/scb-options-sub-menu';
|
|
62
|
+
export * from '../scb-components/scb-overlay/scb-overlay';
|
|
63
|
+
export * from '../scb-components/scb-pagination/scb-pagination';
|
|
64
|
+
export * from '../scb-components/scb-progress-indicator/scb-progress-indicator';
|
|
65
|
+
export * from '../scb-components/scb-progress-stepper/scb-progress-step';
|
|
66
|
+
export * from '../scb-components/scb-progress-stepper/scb-progress-stepper';
|
|
67
|
+
export * from '../scb-components/scb-radio-button/scb-radio-button';
|
|
68
|
+
export * from '../scb-components/scb-radio-button/scb-radio-group';
|
|
69
|
+
export * from '../scb-components/scb-scrollspy/scb-scrollspy';
|
|
70
|
+
export * from '../scb-components/scb-search/scb-search';
|
|
71
|
+
export * from '../scb-components/scb-segmented-button/scb-segmented-button';
|
|
72
|
+
export * from '../scb-components/scb-segmented-button/scb-segmented-item';
|
|
73
|
+
export * from '../scb-components/scb-select/scb-select-option';
|
|
74
|
+
export * from '../scb-components/scb-select/scb-select';
|
|
75
|
+
export * from '../scb-components/scb-skeleton/scb-skeleton';
|
|
76
|
+
export * from '../scb-components/scb-slider/scb-slider';
|
|
77
|
+
export * from '../scb-components/scb-snackbar/scb-snackbar';
|
|
78
|
+
export * from '../scb-components/scb-social-card/scb-social-card';
|
|
79
|
+
export * from '../scb-components/scb-status-pill/scb-status-pill';
|
|
80
|
+
export * from '../scb-components/scb-stepper/scb-step';
|
|
81
|
+
export * from '../scb-components/scb-stepper/scb-stepper';
|
|
82
|
+
export * from '../scb-components/scb-switch/scb-switch';
|
|
83
|
+
export * from '../scb-components/scb-table/scb-table';
|
|
84
|
+
export * from '../scb-components/scb-table-advanced/scb-table-advanced';
|
|
85
|
+
export * from '../scb-components/scb-tabs/scb-primary-tab';
|
|
86
|
+
export * from '../scb-components/scb-tabs/scb-secondary-tab';
|
|
87
|
+
export * from '../scb-components/scb-tabs/scb-tabs';
|
|
88
|
+
export * from '../scb-components/scb-textfield/scb-textfield';
|
|
89
|
+
export * from '../scb-components/scb-toc/scb-toc-item';
|
|
90
|
+
export * from '../scb-components/scb-toc/scb-toc';
|
|
91
|
+
export * from '../scb-components/scb-tooltip/scb-tooltip';
|
|
92
|
+
export * from '../scb-components/scb-viz/scb-viz-actions-runtime';
|
|
93
|
+
export * from '../scb-components/scb-viz/scb-viz-print-runtime';
|
|
94
|
+
export * from '../scb-components/scb-viz/scb-viz-series-differentiation-registry';
|
|
95
|
+
export * from '../scb-components/scb-viz/scb-viz-series-differentiation-runtime';
|
|
96
|
+
export * from '../scb-components/scb-viz/scb-viz-table-runtime';
|
|
97
|
+
export * from '../scb-components/scb-viz/scb-viz';
|