@vonage/vivid 3.0.0-next.8 → 3.0.0-next.81
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 +141 -4
- package/accordion/index.js +2 -4
- package/accordion-item/index.js +26 -20
- package/action-group/index.js +47 -0
- package/avatar/index.js +70 -0
- package/badge/index.js +17 -21
- package/banner/index.js +23 -87
- package/breadcrumb/index.js +21 -18
- package/breadcrumb-item/index.js +19 -12
- package/button/index.js +19 -757
- package/calendar/index.js +67 -25
- package/calendar-event/index.js +115 -0
- package/card/index.js +132 -0
- package/checkbox/index.js +184 -0
- package/dialog/index.js +281 -0
- package/divider/index.js +3 -0
- package/elevation/index.js +3 -31
- package/fab/index.js +105 -0
- package/focus/index.js +18 -3
- package/header/index.js +66 -0
- package/icon/index.js +9 -5
- package/index.js +53 -20
- package/layout/index.js +4 -6
- package/lib/accordion-item/accordion-item.d.ts +2 -2
- package/lib/accordion-item/index.d.ts +2 -1
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/{sidenav-item/sidenav-item.template.d.ts → action-group/action-group.template.d.ts} +2 -2
- package/lib/{sidenav-item → action-group}/index.d.ts +1 -2
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +5 -5
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +1 -1
- package/lib/banner/banner.template.d.ts +0 -2
- package/lib/banner/index.d.ts +1 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +6 -5
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +3 -1
- package/lib/calendar/index.d.ts +0 -1
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/{text/text.template.d.ts → card/card.template.d.ts} +2 -2
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +27 -10
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +1 -0
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +11 -6
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +4 -3
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/{sidenav-item/sidenav-item.d.ts → nav-item/nav-item.d.ts} +2 -2
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/{text → note}/index.d.ts +1 -1
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/number-field/index.d.ts +4 -0
- package/lib/number-field/number-field.d.ts +16 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/popup/index.d.ts +1 -1
- package/lib/popup/popup.d.ts +2 -1
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +2 -1
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +1 -1
- package/lib/side-drawer/side-drawer.d.ts +3 -2
- package/lib/text-anchor/text-anchor.d.ts +1 -1
- package/lib/text-area/index.d.ts +4 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +16 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/menu/index.js +381 -0
- package/menu-item/index.js +19 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +88 -0
- package/nav-item/index.js +45 -0
- package/note/index.js +66 -0
- package/number-field/index.js +517 -0
- package/package.json +51 -7
- package/popup/index.js +23 -2061
- package/progress/index.js +35 -28
- package/progress-ring/index.js +9 -5
- package/radio/index.js +174 -0
- package/shared/anchor.js +10 -2
- package/shared/aria-global.js +2 -86
- package/shared/base-progress.js +5 -0
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +26 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +7 -6
- package/shared/export.js +995 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +353 -0
- package/shared/icon.js +533 -520
- package/shared/index.js +71 -55
- package/shared/index2.js +110 -13
- package/shared/index3.js +35 -0
- package/shared/index4.js +86 -0
- package/shared/index5.js +2100 -0
- package/shared/index6.js +371 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +90 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +28 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +2 -0
- package/shared/ref.js +41 -0
- package/shared/regexp-flags.js +21 -0
- package/shared/start-end.js +50 -0
- package/shared/text-anchor.js +2 -11
- package/shared/text-anchor.template.js +5 -2
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +78 -1083
- package/side-drawer/index.js +44 -23
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +9 -12
- package/styles/tokens/theme-dark.css +211 -0
- package/styles/tokens/theme-light.css +211 -0
- package/text-anchor/index.js +9 -1
- package/text-area/index.js +294 -0
- package/text-field/index.js +141 -0
- package/tooltip/index.js +23 -16
- package/lib/text/text.d.ts +0 -10
- package/shared/style-inject.es.js +0 -28
- package/sidenav-item/index.js +0 -38
- package/styles/themes/dark.css +0 -205
- package/styles/themes/light.css +0 -205
- package/text/index.js +0 -45
package/banner/index.js
CHANGED
|
@@ -1,98 +1,34 @@
|
|
|
1
|
+
import '../shared/index2.js';
|
|
1
2
|
import { F as FoundationElement, c as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
-
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
3
|
import '../shared/web.dom-collections.iterator.js';
|
|
4
|
+
import { C as Connotation } from '../shared/enums.js';
|
|
4
5
|
import { b as AffixIcon, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
5
6
|
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
6
|
-
import '../button/index.js';
|
|
7
|
-
import '../text-anchor/index.js';
|
|
8
7
|
import { w as when } from '../shared/when.js';
|
|
9
8
|
import { c as classNames } from '../shared/class-names.js';
|
|
9
|
+
import '../icon/index.js';
|
|
10
10
|
import '../shared/icon.js';
|
|
11
|
+
import '../shared/export.js';
|
|
12
|
+
import '../shared/iterators.js';
|
|
13
|
+
import '../shared/to-string.js';
|
|
11
14
|
import '../shared/_has.js';
|
|
12
|
-
import '../
|
|
13
|
-
import '../shared/
|
|
15
|
+
import '../focus/index.js';
|
|
16
|
+
import '../shared/focus.js';
|
|
17
|
+
import '../shared/button.js';
|
|
18
|
+
import '../shared/form-associated.js';
|
|
19
|
+
import '../shared/key-codes.js';
|
|
14
20
|
import '../shared/aria-global.js';
|
|
15
|
-
import '../shared/
|
|
16
|
-
import '../shared/
|
|
17
|
-
import '../shared/
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
var Connotation;
|
|
23
|
-
|
|
24
|
-
(function (Connotation) {
|
|
25
|
-
Connotation["Primary"] = "primary";
|
|
26
|
-
Connotation["CTA"] = "cta";
|
|
27
|
-
Connotation["Success"] = "success";
|
|
28
|
-
Connotation["Alert"] = "alert";
|
|
29
|
-
Connotation["Warning"] = "warning";
|
|
30
|
-
Connotation["Info"] = "info";
|
|
31
|
-
Connotation["Announcement"] = "announcement";
|
|
32
|
-
})(Connotation || (Connotation = {}));
|
|
33
|
-
|
|
34
|
-
var ConnotationDecorative;
|
|
35
|
-
|
|
36
|
-
(function (ConnotationDecorative) {
|
|
37
|
-
ConnotationDecorative["Pacific"] = "pacific";
|
|
38
|
-
})(ConnotationDecorative || (ConnotationDecorative = {}));
|
|
39
|
-
|
|
40
|
-
var Shape;
|
|
41
|
-
|
|
42
|
-
(function (Shape) {
|
|
43
|
-
Shape["Rounded"] = "rounded";
|
|
44
|
-
Shape["Pill"] = "pill";
|
|
45
|
-
Shape["Circled"] = "circled";
|
|
46
|
-
Shape["Sharp"] = "sharp";
|
|
47
|
-
})(Shape || (Shape = {}));
|
|
48
|
-
|
|
49
|
-
var Appearance;
|
|
50
|
-
|
|
51
|
-
(function (Appearance) {
|
|
52
|
-
Appearance["Text"] = "text";
|
|
53
|
-
Appearance["Filled"] = "filled";
|
|
54
|
-
Appearance["Outlined"] = "outlined";
|
|
55
|
-
Appearance["Duotone"] = "duotone";
|
|
56
|
-
Appearance["Subtle"] = "subtle";
|
|
57
|
-
Appearance["Ghost"] = "ghost";
|
|
58
|
-
})(Appearance || (Appearance = {}));
|
|
59
|
-
|
|
60
|
-
var Size;
|
|
61
|
-
|
|
62
|
-
(function (Size) {
|
|
63
|
-
Size["BaseSmall"] = "base-small";
|
|
64
|
-
Size["Base"] = "base";
|
|
65
|
-
Size["BaseLarge"] = "base-large";
|
|
66
|
-
})(Size || (Size = {}));
|
|
67
|
-
|
|
68
|
-
var Position;
|
|
69
|
-
|
|
70
|
-
(function (Position) {
|
|
71
|
-
Position["Top"] = "TOP";
|
|
72
|
-
Position["Bottom"] = "BOTTOM";
|
|
73
|
-
Position["Start"] = "START";
|
|
74
|
-
Position["Center"] = "CENTER";
|
|
75
|
-
Position["End"] = "END";
|
|
76
|
-
})(Position || (Position = {}));
|
|
77
|
-
|
|
78
|
-
var Role;
|
|
79
|
-
|
|
80
|
-
(function (Role) {
|
|
81
|
-
Role["Status"] = "status";
|
|
82
|
-
Role["Alert"] = "alert";
|
|
83
|
-
})(Role || (Role = {}));
|
|
84
|
-
|
|
85
|
-
var AriaLive;
|
|
86
|
-
|
|
87
|
-
(function (AriaLive) {
|
|
88
|
-
AriaLive["Polite"] = "polite";
|
|
89
|
-
AriaLive["Assertive"] = "assertive";
|
|
90
|
-
})(AriaLive || (AriaLive = {}));
|
|
21
|
+
import '../shared/start-end.js';
|
|
22
|
+
import '../shared/ref.js';
|
|
23
|
+
import '../shared/focus2.js';
|
|
24
|
+
import '../shared/object-keys.js';
|
|
25
|
+
|
|
26
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Mon, 24 Oct 2022 13:21:54 GMT\n */\n.control {\n overflow: hidden;\n max-height: 160px;\n background-color: var(--_appearance-color-fill);\n color: var(--_appearance-color-text);\n transition: max-height var(--transition-delay, 200ms);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control.connotation-warning {\n --_connotation-color-primary: var(--vvd-color-warning-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control:not(.connotation-success, .connotation-alert, .connotation-announcement, .connotation-warning) {\n --_connotation-color-primary: var(--vvd-color-information-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control.removing {\n max-height: 0;\n}\n.control > .header {\n display: flex;\n min-height: 60px;\n align-items: center;\n justify-content: flex-start;\n font: var(--vvd-font-base-bold);\n}\n.control > .header > .user-content {\n display: flex;\n flex: 1 0;\n align-items: center;\n justify-content: center;\n padding-inline: 16px;\n}\n.control > .header > .user-content > .icon {\n flex: 0 0 auto;\n font-size: 20px;\n margin-inline-end: 15px;\n}\n.control > .header > .user-content > .action-items {\n display: inline-block;\n flex: 0 0 auto;\n padding-inline-start: 15px;\n}\n.control > .header > .user-content > .message {\n padding: 20px 0;\n}\n.control > .header > .dismiss-button {\n --vvd-icon-button-color: inherit;\n flex: 0 0 auto;\n margin-inline-end: 8px;\n}";
|
|
91
27
|
|
|
92
28
|
var _Banner_handleRemoveEnd, _Banner_closeOnKeyDown;
|
|
93
|
-
const connotationIconMap = new Map([[Connotation.
|
|
29
|
+
const connotationIconMap = new Map([[Connotation.Information, 'info-solid'], [Connotation.Announcement, 'megaphone-solid'], [Connotation.Success, 'check-circle-solid'], [Connotation.Warning, 'warning-solid'], [Connotation.Alert, 'error-solid']]);
|
|
94
30
|
|
|
95
|
-
const defaultConnotation = (connotation = Connotation.
|
|
31
|
+
const defaultConnotation = (connotation = Connotation.Information) => connotationIconMap.get(connotation);
|
|
96
32
|
|
|
97
33
|
class Banner extends FoundationElement {
|
|
98
34
|
constructor() {
|
|
@@ -100,7 +36,7 @@ class Banner extends FoundationElement {
|
|
|
100
36
|
this.removable = false;
|
|
101
37
|
|
|
102
38
|
_Banner_handleRemoveEnd.set(this, () => {
|
|
103
|
-
this.$emit('
|
|
39
|
+
this.$emit('removed');
|
|
104
40
|
this.parentElement && this.parentElement.removeChild(this);
|
|
105
41
|
});
|
|
106
42
|
|
|
@@ -130,7 +66,7 @@ class Banner extends FoundationElement {
|
|
|
130
66
|
}
|
|
131
67
|
|
|
132
68
|
remove() {
|
|
133
|
-
this.$emit('
|
|
69
|
+
this.$emit('removing');
|
|
134
70
|
const banner = this.shadowRoot && this.shadowRoot.querySelector('.banner');
|
|
135
71
|
|
|
136
72
|
if (banner) {
|
|
@@ -175,7 +111,7 @@ const getClasses = _ => classNames('control', [`connotation-${_.connotation}`, !
|
|
|
175
111
|
function renderDismissButton() {
|
|
176
112
|
return html(_t || (_t = _2`
|
|
177
113
|
<vwc-button
|
|
178
|
-
|
|
114
|
+
density="condensed"
|
|
179
115
|
class="dismiss-button"
|
|
180
116
|
icon="close-line"
|
|
181
117
|
@click="${0}">
|
|
@@ -194,7 +130,7 @@ const BannerTemplate = context => {
|
|
|
194
130
|
aria-live="${0}">
|
|
195
131
|
${0}
|
|
196
132
|
</div>
|
|
197
|
-
<slot class="action-items" name="
|
|
133
|
+
<slot class="action-items" name="action-items"></slot>
|
|
198
134
|
</div>
|
|
199
135
|
|
|
200
136
|
${0}
|
package/breadcrumb/index.js
CHANGED
|
@@ -1,27 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
-
import { B as BreadcrumbItem } from '../shared/breadcrumb-item.js';
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, o as observable, h as html, d as designSystem } from '../shared/index.js';
|
|
4
2
|
import { s as slotted, e as elements } from '../shared/slotted.js';
|
|
3
|
+
import { B as BreadcrumbItem } from '../shared/breadcrumb-item.js';
|
|
5
4
|
import '../shared/anchor.js';
|
|
6
5
|
import '../shared/apply-mixins.js';
|
|
7
6
|
import '../shared/aria-global.js';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
* The template for the {@link @microsoft/fast-foundation#Breadcrumb} component.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
const breadcrumbTemplate = (context, definition) => html `
|
|
14
|
-
<template role="navigation">
|
|
15
|
-
<div role="list" class="list" part="list">
|
|
16
|
-
<slot
|
|
17
|
-
${slotted({ property: "slottedBreadcrumbItems", filter: elements() })}
|
|
18
|
-
></slot>
|
|
19
|
-
</div>
|
|
20
|
-
</template>
|
|
21
|
-
`;
|
|
7
|
+
import '../shared/start-end.js';
|
|
8
|
+
import '../shared/ref.js';
|
|
22
9
|
|
|
23
10
|
/**
|
|
24
11
|
* A Breadcrumb Custom HTML Element.
|
|
12
|
+
* @slot - The default slot for the breadcrumb items
|
|
13
|
+
* @csspart list - The element wrapping the slotted items
|
|
25
14
|
*
|
|
26
15
|
* @public
|
|
27
16
|
*/
|
|
@@ -85,8 +74,22 @@ __decorate([
|
|
|
85
74
|
observable
|
|
86
75
|
], Breadcrumb$1.prototype, "slottedBreadcrumbItems", void 0);
|
|
87
76
|
|
|
77
|
+
let _ = t => t,
|
|
78
|
+
_t;
|
|
79
|
+
const breadcrumbTemplate = () => html(_t || (_t = _`
|
|
80
|
+
<nav aria-label="breadcrumbs" class="base">
|
|
81
|
+
<div role="list" class="list">
|
|
82
|
+
<slot
|
|
83
|
+
${0}
|
|
84
|
+
></slot>
|
|
85
|
+
</div>
|
|
86
|
+
</nav>
|
|
87
|
+
`), slotted({
|
|
88
|
+
property: 'slottedBreadcrumbItems',
|
|
89
|
+
filter: elements()
|
|
90
|
+
}));
|
|
91
|
+
|
|
88
92
|
var css_248z = ".list {\n display: flex;\n}";
|
|
89
|
-
styleInject(css_248z);
|
|
90
93
|
|
|
91
94
|
class Breadcrumb extends Breadcrumb$1 {}
|
|
92
95
|
|
package/breadcrumb-item/index.js
CHANGED
|
@@ -1,32 +1,36 @@
|
|
|
1
1
|
import '../icon/index.js';
|
|
2
|
+
import '../focus/index.js';
|
|
2
3
|
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
3
|
-
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
4
|
import { B as BreadcrumbItem$1 } from '../shared/breadcrumb-item.js';
|
|
5
5
|
import { t as textAnchorTemplate } from '../shared/text-anchor.template.js';
|
|
6
6
|
import { w as when } from '../shared/when.js';
|
|
7
7
|
import { c as classNames } from '../shared/class-names.js';
|
|
8
8
|
import '../shared/icon.js';
|
|
9
|
-
import '../shared/
|
|
9
|
+
import '../shared/export.js';
|
|
10
|
+
import '../shared/iterators.js';
|
|
11
|
+
import '../shared/to-string.js';
|
|
10
12
|
import '../shared/_has.js';
|
|
13
|
+
import '../shared/focus.js';
|
|
11
14
|
import '../shared/anchor.js';
|
|
12
15
|
import '../shared/apply-mixins.js';
|
|
13
16
|
import '../shared/aria-global.js';
|
|
17
|
+
import '../shared/start-end.js';
|
|
18
|
+
import '../shared/ref.js';
|
|
14
19
|
import '../shared/affix.js';
|
|
20
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
21
|
+
import '../shared/object-keys.js';
|
|
22
|
+
import '../shared/focus2.js';
|
|
15
23
|
|
|
16
|
-
var css_248z = "
|
|
17
|
-
styleInject(css_248z);
|
|
24
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Mon, 24 Oct 2022 13:21:54 GMT\n */\n.base {\n display: flex;\n align-items: center;\n color: var(--vvd-color-canvas-text);\n font: var(--vvd-font-base);\n}\n.base vwc-icon {\n margin: 0 16px;\n color: var(--vvd-color-neutral-600);\n font-size: 12px;\n}\n\n.control {\n position: relative;\n font: inherit;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n.control:any-link {\n color: var(--vvd-color-cta-600);\n text-decoration: none;\n}\n.control:any-link:hover {\n text-decoration: underline;\n}\n\n.focus-indicator {\n --focus-inset: -4px -8px;\n --focus-stroke-gap-color: transparent;\n border-radius: 6px;\n}\n.control:not(:focus-visible) > .focus-indicator {\n display: none;\n}";
|
|
18
25
|
|
|
19
26
|
class BreadcrumbItem extends BreadcrumbItem$1 {
|
|
20
27
|
constructor() {
|
|
21
28
|
super();
|
|
22
|
-
this.text = '';
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
}
|
|
26
32
|
|
|
27
|
-
__decorate([attr(
|
|
28
|
-
mode: 'fromView'
|
|
29
|
-
}), __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
|
|
33
|
+
__decorate([attr, __metadata("design:type", String)], BreadcrumbItem.prototype, "text", void 0);
|
|
30
34
|
|
|
31
35
|
let _2 = t => t,
|
|
32
36
|
_t,
|
|
@@ -34,21 +38,24 @@ let _2 = t => t,
|
|
|
34
38
|
_t3,
|
|
35
39
|
_t4;
|
|
36
40
|
|
|
37
|
-
const getClasses = _ => classNames('
|
|
41
|
+
const getClasses = _ => classNames('base');
|
|
38
42
|
|
|
39
43
|
const BreadcrumbItemTemplate = (context, definition) => html(_t || (_t = _2`
|
|
40
|
-
<div
|
|
44
|
+
<div role="listitem" class="${0}">
|
|
41
45
|
${0}
|
|
42
46
|
|
|
43
47
|
${0}
|
|
44
48
|
|
|
45
49
|
${0}
|
|
46
|
-
</div>`), getClasses, when(x => x.text && !x.href, html(_t2 || (_t2 = _2`${0}`), x => x.text)), when(x => x.text && x.href && x.href.length > 0, html(_t3 || (_t3 = _2`${0}`), textAnchorTemplate(context))), when(x => x.separator, html(_t4 || (_t4 = _2`<vwc-icon type="chevron-right-
|
|
50
|
+
</div>`), getClasses, when(x => x.text && !x.href, html(_t2 || (_t2 = _2`${0}`), x => x.text)), when(x => x.text && x.href && x.href.length > 0, html(_t3 || (_t3 = _2`${0}`), textAnchorTemplate(context))), when(x => x.separator, html(_t4 || (_t4 = _2`<vwc-icon type="chevron-right-solid"></vwc-icon>`))));
|
|
47
51
|
|
|
48
52
|
const vividBreadcrumbItem = BreadcrumbItem.compose({
|
|
49
53
|
baseName: 'breadcrumb-item',
|
|
50
54
|
template: BreadcrumbItemTemplate,
|
|
51
|
-
styles: css_248z
|
|
55
|
+
styles: css_248z,
|
|
56
|
+
shadowOptions: {
|
|
57
|
+
delegatesFocus: true
|
|
58
|
+
}
|
|
52
59
|
});
|
|
53
60
|
designSystem.register(vividBreadcrumbItem());
|
|
54
61
|
|