@vonage/vivid 3.0.0-next.109 → 3.0.0-next.110
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 +24 -0
- package/accordion/index.js +3 -3
- package/accordion-item/index.js +12 -12
- package/action-group/index.js +3 -7
- package/avatar/index.js +10 -10
- package/badge/index.js +9 -9
- package/banner/index.js +9 -19
- package/breadcrumb/index.js +2 -2
- package/breadcrumb-item/index.js +13 -14
- package/button/index.js +92 -16
- package/calendar/index.js +3 -7
- package/calendar-event/index.js +3 -6
- package/card/index.js +9 -11
- package/checkbox/index.js +11 -12
- package/custom-elements.json +49 -49
- package/dialog/index.js +9 -25
- package/divider/index.js +26 -3
- package/elevation/index.js +25 -3
- package/fab/index.js +12 -14
- package/focus/index.js +4 -4
- package/header/index.js +10 -8
- package/icon/index.js +3 -5
- package/index.js +24 -22
- package/layout/index.js +2 -2
- package/lib/accordion-item/index.d.ts +0 -2
- package/lib/avatar/index.d.ts +0 -1
- package/lib/badge/index.d.ts +0 -1
- package/lib/banner/index.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +0 -2
- package/lib/button/index.d.ts +1 -4
- package/lib/card/index.d.ts +0 -2
- package/lib/checkbox/index.d.ts +0 -2
- package/lib/components.d.ts +1 -1
- package/lib/dialog/index.d.ts +0 -3
- package/lib/fab/index.d.ts +0 -2
- package/lib/header/index.d.ts +0 -1
- package/lib/listbox/index.d.ts +1 -4
- package/lib/menu/index.d.ts +0 -2
- package/lib/menu-item/index.d.ts +0 -1
- package/lib/nav-disclosure/index.d.ts +0 -2
- package/lib/nav-item/index.d.ts +0 -2
- package/lib/note/note.template.d.ts +0 -1
- package/lib/number-field/index.d.ts +0 -2
- package/lib/{listbox-option → option}/index.d.ts +0 -2
- package/lib/{listbox-option/listbox-option.d.ts → option/option.d.ts} +0 -0
- package/lib/{listbox-option/listbox-option.template.d.ts → option/option.template.d.ts} +1 -1
- package/lib/popup/index.d.ts +0 -2
- package/lib/radio/index.d.ts +0 -1
- package/lib/slider/index.d.ts +0 -1
- package/lib/switch/index.d.ts +0 -2
- package/lib/text-area/index.d.ts +0 -2
- package/lib/text-field/index.d.ts +0 -2
- package/lib/text-field/text-field.template.d.ts +0 -1
- package/lib/tooltip/index.d.ts +0 -1
- package/listbox/index.js +14 -18
- package/menu/index.js +12 -26
- package/menu-item/index.js +82 -13
- package/nav/index.js +2 -2
- package/nav-disclosure/index.js +11 -13
- package/nav-item/index.js +11 -13
- package/note/index.js +10 -10
- package/number-field/index.js +14 -15
- package/option/index.js +75 -0
- package/package.json +3 -2
- package/popup/index.js +57 -20
- package/progress/index.js +3 -7
- package/progress-ring/index.js +3 -3
- package/radio/index.js +11 -6
- package/radio-group/index.js +3 -3
- package/shared/affix.js +0 -1
- package/shared/anchor.js +1 -1
- package/shared/apply-mixins.js +1 -1
- package/shared/base-progress.js +1 -1
- package/shared/breadcrumb-item.js +1 -1
- package/shared/button.js +18 -195
- package/shared/button2.js +200 -0
- package/shared/calendar-event.js +1 -1
- package/shared/design-system/index.d.ts +1 -1
- package/shared/{index4.js → divider.js} +2 -24
- package/shared/elevation.js +10 -0
- package/shared/es.object.assign.js +1 -59
- package/shared/es.promise.resolve.js +944 -0
- package/shared/es.regexp.to-string.js +1 -2
- package/shared/focus.js +9 -3
- package/shared/focus2.js +3 -9
- package/shared/form-associated.js +1 -1
- package/shared/form-elements.js +2 -3
- package/shared/icon.js +9 -1098
- package/shared/index.js +3673 -5
- package/shared/index2.js +6 -104
- package/shared/{index5.js → listbox-option.js} +11 -71
- package/shared/{index7.js → menu-item.js} +13 -85
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/{index6.js → popup.js} +3 -43
- package/shared/radio.js +1 -1
- package/shared/ref.js +1 -1
- package/shared/slotted.js +1 -1
- package/shared/string-trim.js +1 -2
- package/shared/text-anchor.template.js +1 -1
- package/shared/utils/index.d.ts +1 -0
- package/side-drawer/index.js +3 -7
- package/slider/index.js +10 -10
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/switch/index.js +11 -11
- package/text-anchor/index.js +4 -8
- package/text-area/index.js +11 -12
- package/text-field/index.js +11 -12
- package/tooltip/index.js +11 -27
- package/vivid.api.json +11 -189
- package/listbox-option/index.js +0 -22
- package/shared/export.js +0 -1017
- package/shared/index3.js +0 -31
- package/shared/iterators.js +0 -61
- package/shared/object-keys.js +0 -13
- package/shared/to-string.js +0 -51
- package/shared/web.dom-collections.iterator.js +0 -472
package/shared/index2.js
CHANGED
|
@@ -1,107 +1,9 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '
|
|
3
|
-
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from './index.js';
|
|
4
|
-
import './web.dom-collections.iterator.js';
|
|
5
|
-
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from './affix.js';
|
|
6
|
-
import { B as Button$1 } from './button.js';
|
|
7
|
-
import { a as applyMixins } from './apply-mixins.js';
|
|
8
|
-
import { f as focusTemplateFactory } from './focus2.js';
|
|
9
|
-
import { r as ref } from './ref.js';
|
|
10
|
-
import { c as classNames } from './class-names.js';
|
|
1
|
+
import './es.promise.resolve.js';
|
|
2
|
+
import './index.js';
|
|
11
3
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
this.stacked = false;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
__decorate([attr, __metadata("design:type", String)], Button.prototype, "connotation", void 0);
|
|
19
|
-
__decorate([attr, __metadata("design:type", String)], Button.prototype, "shape", void 0);
|
|
20
|
-
__decorate([attr, __metadata("design:type", String)], Button.prototype, "appearance", void 0);
|
|
21
|
-
__decorate([attr, __metadata("design:type", String)], Button.prototype, "size", void 0);
|
|
22
|
-
__decorate([attr({
|
|
23
|
-
mode: 'boolean',
|
|
24
|
-
attribute: 'stacked'
|
|
25
|
-
}), __metadata("design:type", Object)], Button.prototype, "stacked", void 0);
|
|
26
|
-
__decorate([attr, __metadata("design:type", String)], Button.prototype, "label", void 0);
|
|
27
|
-
applyMixins(Button, AffixIconWithTrailing);
|
|
28
|
-
|
|
29
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 13:40:32 GMT\n */\n:host {\n display: inline-block;\n}\n\n.control {\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n margin: 0;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_button-block-size);\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n gap: var(--_button-icon-gap);\n vertical-align: middle;\n white-space: nowrap;\n /* Size */\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-cta-600);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n --_connotation-color-fierce: var(--vvd-color-cta-700);\n --_connotation-color-firm: var(--vvd-color-cta-600);\n --_connotation-color-soft: var(--vvd-color-cta-100);\n --_connotation-color-faint: var(--vvd-color-cta-50);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-success-600);\n --_connotation-color-contrast: var(--vvd-color-success-800);\n --_connotation-color-fierce: var(--vvd-color-success-700);\n --_connotation-color-firm: var(--vvd-color-success-600);\n --_connotation-color-soft: var(--vvd-color-success-100);\n --_connotation-color-faint: var(--vvd-color-success-50);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-alert-600);\n --_connotation-color-contrast: var(--vvd-color-alert-800);\n --_connotation-color-fierce: var(--vvd-color-alert-700);\n --_connotation-color-firm: var(--vvd-color-alert-600);\n --_connotation-color-soft: var(--vvd-color-alert-100);\n --_connotation-color-faint: var(--vvd-color-alert-50);\n}\n.control:not(.connotation-cta, .connotation-success, .connotation-alert) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n --_connotation-color-fierce: var(--vvd-color-neutral-700);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n}\n.control.appearance-filled {\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.appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)).appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)).appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled).appearance-filled {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled).appearance-outlined {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)).appearance-filled {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)).appearance-outlined {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .control {\n user-select: none;\n }\n}\n.control:not(:disabled) {\n cursor: pointer;\n}\n.control:disabled {\n cursor: not-allowed;\n}\n.control.icon-only {\n contain: size;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_button-block-size);\n }\n}\n.control:not(.stacked).size-condensed {\n --_button-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 8));\n font: var(--vvd-typography-base-condensed-bold);\n}\n.control:not(.stacked).size-condensed:not(.icon-only) {\n --_button-icon-gap: 8px;\n padding-inline: 12px;\n}\n.control:not(.stacked).size-condensed .icon {\n font-size: 16px;\n}\n.control:not(.stacked).size-expanded {\n --_button-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8));\n font: var(--vvd-typography-base-extended-bold);\n}\n.control:not(.stacked).size-expanded:not(.icon-only) {\n --_button-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:not(.stacked).size-expanded .icon {\n font-size: 24px;\n}\n.control:not(.stacked):not(.size-condensed, .size-expanded) {\n --_button-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n font: var(--vvd-typography-base-bold);\n}\n.control:not(.stacked):not(.size-condensed, .size-expanded):not(.icon-only) {\n --_button-icon-gap: 8px;\n padding-inline: 16px;\n}\n.control:not(.stacked):not(.size-condensed, .size-expanded) .icon {\n font-size: 20px;\n}\n.control.stacked {\n flex-direction: column;\n justify-content: center;\n --_button-block-size: calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) + 8)) + calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2) - 20)));\n font: var(--vvd-typography-base-bold);\n}\n.control.stacked:not(.icon-only) {\n --_button-icon-gap: 10px;\n padding-inline: 16px;\n}\n.control.stacked .icon {\n font-size: 20px;\n}\n\n/* Shape */\n.control:not(.shape-pill:not(.stacked)) {\n border-radius: 6px;\n}\n\n.control.shape-pill:not(.stacked):not(.icon-only) {\n border-radius: 24px;\n}\n.control.shape-pill:not(.stacked).icon-only {\n border-radius: 50%;\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus-visible) > .focus-indicator {\n display: none;\n}\n.appearance-outlined .focus-indicator, .appearance-ghost .focus-indicator {\n --focus-stroke-gap-color: transparent;\n}";
|
|
30
|
-
|
|
31
|
-
let _ = t => t,
|
|
32
|
-
_t;
|
|
33
|
-
const getAppearanceClassName = (appearance, disabled) => {
|
|
34
|
-
let className = `appearance-${appearance}`;
|
|
35
|
-
disabled && (className += ' disabled');
|
|
36
|
-
return className;
|
|
4
|
+
const loadComponentsModules = (components, prefix) => {
|
|
5
|
+
components.forEach(component => import(`../${component}/index.js?prefix=${prefix}`));
|
|
6
|
+
return Promise.all(components.map(component => customElements.whenDefined(`${prefix}-${component}`)));
|
|
37
7
|
};
|
|
38
|
-
const getClasses = ({
|
|
39
|
-
connotation,
|
|
40
|
-
appearance,
|
|
41
|
-
shape,
|
|
42
|
-
iconTrailing,
|
|
43
|
-
icon,
|
|
44
|
-
label,
|
|
45
|
-
disabled,
|
|
46
|
-
stacked,
|
|
47
|
-
size
|
|
48
|
-
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [getAppearanceClassName(appearance, disabled), Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], [`size-${size}`, Boolean(size)], ['icon-only', !label && !!icon], ['icon-trailing', iconTrailing], ['stacked', Boolean(stacked)]);
|
|
49
|
-
const buttonTemplate = context => {
|
|
50
|
-
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
51
|
-
const focusTemplate = focusTemplateFactory(context);
|
|
52
|
-
return html(_t || (_t = _`
|
|
53
|
-
<button
|
|
54
|
-
class="${0}"
|
|
55
|
-
?autofocus="${0}"
|
|
56
|
-
?disabled="${0}"
|
|
57
|
-
form="${0}"
|
|
58
|
-
formaction="${0}"
|
|
59
|
-
formenctype="${0}"
|
|
60
|
-
formmethod="${0}"
|
|
61
|
-
formnovalidate="${0}"
|
|
62
|
-
formtarget="${0}"
|
|
63
|
-
name="${0}"
|
|
64
|
-
type="${0}"
|
|
65
|
-
value="${0}"
|
|
66
|
-
aria-atomic="${0}"
|
|
67
|
-
aria-busy="${0}"
|
|
68
|
-
aria-controls="${0}"
|
|
69
|
-
aria-current="${0}"
|
|
70
|
-
aria-describedby="${0}"
|
|
71
|
-
aria-details="${0}"
|
|
72
|
-
aria-disabled="${0}"
|
|
73
|
-
aria-errormessage="${0}"
|
|
74
|
-
aria-expanded="${0}"
|
|
75
|
-
aria-flowto="${0}"
|
|
76
|
-
aria-haspopup="${0}"
|
|
77
|
-
aria-hidden="${0}"
|
|
78
|
-
aria-invalid="${0}"
|
|
79
|
-
aria-keyshortcuts="${0}"
|
|
80
|
-
aria-label="${0}"
|
|
81
|
-
aria-labelledby="${0}"
|
|
82
|
-
aria-live="${0}"
|
|
83
|
-
aria-owns="${0}"
|
|
84
|
-
aria-pressed="${0}"
|
|
85
|
-
aria-relevant="${0}"
|
|
86
|
-
aria-roledescription="${0}"
|
|
87
|
-
${0}
|
|
88
|
-
>
|
|
89
|
-
${0}
|
|
90
|
-
${0}
|
|
91
|
-
${0}
|
|
92
|
-
</button>
|
|
93
|
-
`), getClasses, x => x.autofocus, x => x.disabled, x => x.formId, x => x.formaction, x => x.formenctype, x => x.formmethod, x => x.formnovalidate, x => x.formtarget, x => x.name, x => x.type, x => x.value, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaExpanded, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaPressed, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, x => affixIconTemplate(x.icon), x => x.label);
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
const vividButton = Button.compose({
|
|
97
|
-
baseName: 'button',
|
|
98
|
-
baseClass: Button$1,
|
|
99
|
-
template: buttonTemplate,
|
|
100
|
-
styles: css_248z,
|
|
101
|
-
shadowOptions: {
|
|
102
|
-
delegatesFocus: true
|
|
103
|
-
}
|
|
104
|
-
});
|
|
105
|
-
designSystem.register(vividButton());
|
|
106
8
|
|
|
107
|
-
export {
|
|
9
|
+
export { loadComponentsModules as l };
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import '../focus/index.js';
|
|
3
|
-
import { F as FoundationElement, O as Observable, _ as __decorate, o as observable, a as attr, b as __metadata, h as html, d as designSystem } from './index.js';
|
|
4
|
-
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from './affix.js';
|
|
1
|
+
import { F as FoundationElement, Z as Observable, _ as __decorate, V as observable, a as attr } from './index.js';
|
|
5
2
|
import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
|
|
6
3
|
import { S as StartEnd } from './start-end.js';
|
|
7
4
|
import { a as applyMixins } from './apply-mixins.js';
|
|
8
5
|
import { i as isHTMLElement } from './dom.js';
|
|
9
|
-
import { f as focusTemplateFactory } from './focus2.js';
|
|
10
|
-
import './web.dom-collections.iterator.js';
|
|
11
|
-
import './icon.js';
|
|
12
|
-
import { w as when } from './when.js';
|
|
13
|
-
import { c as classNames } from './class-names.js';
|
|
14
6
|
|
|
15
7
|
/**
|
|
16
8
|
* Determines if the element is a {@link (ListboxOption:class)}
|
|
@@ -34,7 +26,7 @@ function isListboxOption(el) {
|
|
|
34
26
|
*
|
|
35
27
|
* @public
|
|
36
28
|
*/
|
|
37
|
-
class ListboxOption
|
|
29
|
+
class ListboxOption extends FoundationElement {
|
|
38
30
|
constructor(text, value, defaultSelected, selected) {
|
|
39
31
|
super();
|
|
40
32
|
/**
|
|
@@ -165,25 +157,25 @@ class ListboxOption$1 extends FoundationElement {
|
|
|
165
157
|
}
|
|
166
158
|
__decorate([
|
|
167
159
|
observable
|
|
168
|
-
], ListboxOption
|
|
160
|
+
], ListboxOption.prototype, "checked", void 0);
|
|
169
161
|
__decorate([
|
|
170
162
|
observable
|
|
171
|
-
], ListboxOption
|
|
163
|
+
], ListboxOption.prototype, "content", void 0);
|
|
172
164
|
__decorate([
|
|
173
165
|
observable
|
|
174
|
-
], ListboxOption
|
|
166
|
+
], ListboxOption.prototype, "defaultSelected", void 0);
|
|
175
167
|
__decorate([
|
|
176
168
|
attr({ mode: "boolean" })
|
|
177
|
-
], ListboxOption
|
|
169
|
+
], ListboxOption.prototype, "disabled", void 0);
|
|
178
170
|
__decorate([
|
|
179
171
|
attr({ attribute: "selected", mode: "boolean" })
|
|
180
|
-
], ListboxOption
|
|
172
|
+
], ListboxOption.prototype, "selectedAttribute", void 0);
|
|
181
173
|
__decorate([
|
|
182
174
|
observable
|
|
183
|
-
], ListboxOption
|
|
175
|
+
], ListboxOption.prototype, "selected", void 0);
|
|
184
176
|
__decorate([
|
|
185
177
|
attr({ attribute: "value", mode: "fromView" })
|
|
186
|
-
], ListboxOption
|
|
178
|
+
], ListboxOption.prototype, "initialValue", void 0);
|
|
187
179
|
/**
|
|
188
180
|
* States and properties relating to the ARIA `option` role.
|
|
189
181
|
*
|
|
@@ -204,58 +196,6 @@ __decorate([
|
|
|
204
196
|
observable
|
|
205
197
|
], DelegatesARIAListboxOption.prototype, "ariaSetSize", void 0);
|
|
206
198
|
applyMixins(DelegatesARIAListboxOption, ARIAGlobalStatesAndProperties);
|
|
207
|
-
applyMixins(ListboxOption
|
|
199
|
+
applyMixins(ListboxOption, StartEnd, DelegatesARIAListboxOption);
|
|
208
200
|
|
|
209
|
-
|
|
210
|
-
set text(value) {
|
|
211
|
-
this._text = value;
|
|
212
|
-
}
|
|
213
|
-
get text() {
|
|
214
|
-
var _a;
|
|
215
|
-
return (_a = this._text) !== null && _a !== void 0 ? _a : '';
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
__decorate([attr({
|
|
219
|
-
attribute: 'text'
|
|
220
|
-
}), __metadata("design:type", String)], ListboxOption.prototype, "_text", void 0);
|
|
221
|
-
applyMixins(ListboxOption, AffixIconWithTrailing);
|
|
222
|
-
|
|
223
|
-
let _ = t => t,
|
|
224
|
-
_t,
|
|
225
|
-
_t2;
|
|
226
|
-
const getClasses = ({
|
|
227
|
-
icon,
|
|
228
|
-
disabled,
|
|
229
|
-
selected,
|
|
230
|
-
checked
|
|
231
|
-
}) => classNames('base', ['disabled', disabled], ['selected', Boolean(selected)], ['active', Boolean(checked)], ['icon', Boolean(icon)]);
|
|
232
|
-
const ListboxOptionTemplate = context => {
|
|
233
|
-
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
234
|
-
const focusTemplate = focusTemplateFactory(context);
|
|
235
|
-
return html(_t || (_t = _`
|
|
236
|
-
<template
|
|
237
|
-
aria-checked="${0}"
|
|
238
|
-
aria-disabled="${0}"
|
|
239
|
-
aria-posinset="${0}"
|
|
240
|
-
aria-selected="${0}"
|
|
241
|
-
aria-setsize="${0}"
|
|
242
|
-
role="option">
|
|
243
|
-
<div class="${0}">
|
|
244
|
-
${0}
|
|
245
|
-
${0}
|
|
246
|
-
${0}
|
|
247
|
-
</div>
|
|
248
|
-
</template>
|
|
249
|
-
`), x => x.ariaChecked, x => x.ariaDisabled, x => x.ariaPosInSet, x => x.ariaSelected, x => x.ariaSetSize, getClasses, () => focusTemplate, x => affixIconTemplate(x.icon), when(x => x.text, html(_t2 || (_t2 = _`<div class="text">${0}</div>`), x => x.text)));
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 13:40:32 GMT\n */\n.base {\n position: relative; /* this is needed for the focus */\n display: flex;\n box-sizing: border-box;\n align-items: center;\n background-color: var(--_appearance-color-fill);\n border-radius: 6px;\n box-shadow: inset 0 0 0 1px var(--_appearance-color-outline);\n color: var(--_appearance-color-text);\n font: var(--vvd-typography-base);\n gap: 12px;\n hyphens: auto;\n inline-size: 100%;\n min-block-size: calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density, 0), 2)));\n padding-block: 10px;\n padding-inline: 16px;\n vertical-align: middle;\n word-break: break-word;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: transparent;\n}\n.base:where(.selected, [aria-current]):where(:not(:disabled, .disabled, :hover, .hover)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.base:where(.selected, [aria-current]):where(:hover, .hover) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base:not(.disabled) {\n cursor: pointer;\n}\n.base.disabled {\n cursor: not-allowed;\n}\n.base .text {\n font: var(--vvd-typography-base);\n}\n\n.icon {\n font-size: 20px;\n}\n.base:not(.disabled, .selected) .icon {\n color: var(--vvd-color-neutral-600);\n}\n\n.focus-indicator {\n --focus-stroke-color: var(--vvd-color-neutral-500);\n --focus-stroke-gap-color: transparent;\n}\n:host(:not([aria-checked=true])) .focus-indicator {\n display: none;\n}";
|
|
253
|
-
|
|
254
|
-
const vividListboxOption = ListboxOption.compose({
|
|
255
|
-
baseName: 'option',
|
|
256
|
-
template: ListboxOptionTemplate,
|
|
257
|
-
styles: css_248z
|
|
258
|
-
});
|
|
259
|
-
designSystem.register(vividListboxOption());
|
|
260
|
-
|
|
261
|
-
export { isListboxOption as i, vividListboxOption as v };
|
|
201
|
+
export { ListboxOption as L, isListboxOption as i };
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import { F as FoundationElement, D as DOM, _ as __decorate, a as attr, o as observable, b as __metadata, h as html, d as designSystem } from './index.js';
|
|
3
|
-
import { b as AffixIcon, a as affixIconTemplateFactory } from './affix.js';
|
|
1
|
+
import { F as FoundationElement, a2 as DOM, _ as __decorate, a as attr, V as observable } from './index.js';
|
|
4
2
|
import { S as StartEnd } from './start-end.js';
|
|
5
3
|
import { D as Direction, g as getDirection } from './direction.js';
|
|
6
4
|
import { a as applyMixins } from './apply-mixins.js';
|
|
7
5
|
import { h as keyArrowLeft, i as keyArrowRight, a as keySpace, k as keyEnter } from './key-codes.js';
|
|
8
|
-
import { f as focusTemplateFactory } from './focus2.js';
|
|
9
|
-
import { w as when } from './when.js';
|
|
10
|
-
import { c as classNames } from './class-names.js';
|
|
11
6
|
|
|
12
7
|
/**
|
|
13
8
|
* Menu items roles.
|
|
@@ -59,7 +54,7 @@ const roleForMenuItem = {
|
|
|
59
54
|
*
|
|
60
55
|
* @public
|
|
61
56
|
*/
|
|
62
|
-
class MenuItem
|
|
57
|
+
class MenuItem extends FoundationElement {
|
|
63
58
|
constructor() {
|
|
64
59
|
super(...arguments);
|
|
65
60
|
/**
|
|
@@ -252,98 +247,31 @@ class MenuItem$1 extends FoundationElement {
|
|
|
252
247
|
}
|
|
253
248
|
__decorate([
|
|
254
249
|
attr({ mode: "boolean" })
|
|
255
|
-
], MenuItem
|
|
250
|
+
], MenuItem.prototype, "disabled", void 0);
|
|
256
251
|
__decorate([
|
|
257
252
|
attr({ mode: "boolean" })
|
|
258
|
-
], MenuItem
|
|
253
|
+
], MenuItem.prototype, "expanded", void 0);
|
|
259
254
|
__decorate([
|
|
260
255
|
observable
|
|
261
|
-
], MenuItem
|
|
256
|
+
], MenuItem.prototype, "startColumnCount", void 0);
|
|
262
257
|
__decorate([
|
|
263
258
|
attr
|
|
264
|
-
], MenuItem
|
|
259
|
+
], MenuItem.prototype, "role", void 0);
|
|
265
260
|
__decorate([
|
|
266
261
|
attr({ mode: "boolean" })
|
|
267
|
-
], MenuItem
|
|
262
|
+
], MenuItem.prototype, "checked", void 0);
|
|
268
263
|
__decorate([
|
|
269
264
|
observable
|
|
270
|
-
], MenuItem
|
|
265
|
+
], MenuItem.prototype, "submenuRegion", void 0);
|
|
271
266
|
__decorate([
|
|
272
267
|
observable
|
|
273
|
-
], MenuItem
|
|
268
|
+
], MenuItem.prototype, "hasSubmenu", void 0);
|
|
274
269
|
__decorate([
|
|
275
270
|
observable
|
|
276
|
-
], MenuItem
|
|
271
|
+
], MenuItem.prototype, "currentDirection", void 0);
|
|
277
272
|
__decorate([
|
|
278
273
|
observable
|
|
279
|
-
], MenuItem
|
|
280
|
-
applyMixins(MenuItem
|
|
274
|
+
], MenuItem.prototype, "submenu", void 0);
|
|
275
|
+
applyMixins(MenuItem, StartEnd);
|
|
281
276
|
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
class MenuItem extends MenuItem$1 {}
|
|
285
|
-
__decorate([attr, __metadata("design:type", String)], MenuItem.prototype, "text", void 0);
|
|
286
|
-
applyMixins(MenuItem, AffixIcon);
|
|
287
|
-
|
|
288
|
-
let _ = t => t,
|
|
289
|
-
_t,
|
|
290
|
-
_t2,
|
|
291
|
-
_t3,
|
|
292
|
-
_t4,
|
|
293
|
-
_t5;
|
|
294
|
-
const getClasses = ({
|
|
295
|
-
disabled,
|
|
296
|
-
checked,
|
|
297
|
-
expanded,
|
|
298
|
-
role
|
|
299
|
-
}) => classNames('base', ['disabled', Boolean(disabled)], ['selected', role !== MenuItemRole.menuitem && Boolean(checked)], ['expanded', Boolean(expanded)], ['item-checkbox', role === MenuItemRole.menuitemcheckbox], ['item-radio', role === MenuItemRole.menuitemradio]);
|
|
300
|
-
const MenuItemTemplate = (context, definition) => {
|
|
301
|
-
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
302
|
-
const focusTemplate = focusTemplateFactory(context);
|
|
303
|
-
return html(_t || (_t = _`
|
|
304
|
-
<template
|
|
305
|
-
aria-checked="${0}"
|
|
306
|
-
aria-disabled="${0}"
|
|
307
|
-
aria-expanded="${0}"
|
|
308
|
-
@keydown="${0}"
|
|
309
|
-
@click="${0}"
|
|
310
|
-
@mouseover="${0}"
|
|
311
|
-
@mouseout="${0}"
|
|
312
|
-
>
|
|
313
|
-
<div class="${0}">
|
|
314
|
-
|
|
315
|
-
${0}
|
|
316
|
-
${0}
|
|
317
|
-
|
|
318
|
-
${0}
|
|
319
|
-
|
|
320
|
-
${0}
|
|
321
|
-
|
|
322
|
-
${0}
|
|
323
|
-
|
|
324
|
-
<span class="text">
|
|
325
|
-
${0}
|
|
326
|
-
</span>
|
|
327
|
-
</div>
|
|
328
|
-
</template>
|
|
329
|
-
`), x => x.role !== MenuItemRole.menuitem ? x.checked : void 0, x => x.disabled, x => x.expanded, (x, c) => x.handleMenuItemKeyDown(c.event), (x, c) => x.handleMenuItemClick(c.event), (x, c) => x.handleMouseOver(c.event), (x, c) => x.handleMouseOut(c.event), getClasses, when(x => x.hasSubmenu, html(_t2 || (_t2 = _`
|
|
330
|
-
<div
|
|
331
|
-
class="expand-collapse-glyph-container"
|
|
332
|
-
>
|
|
333
|
-
<span class="expand-collapse">
|
|
334
|
-
<slot name="expand-collapse-indicator">
|
|
335
|
-
${0}
|
|
336
|
-
</slot>
|
|
337
|
-
</span>
|
|
338
|
-
</div>
|
|
339
|
-
`), definition.expandCollapseGlyph || '')), () => focusTemplate, when(x => x.role === MenuItemRole.menuitemcheckbox, html(_t3 || (_t3 = _`${0}`), x => affixIconTemplate(x.checked ? 'checkbox-checked-line' : 'checkbox-unchecked-line'))), when(x => x.role === MenuItemRole.menuitemradio, html(_t4 || (_t4 = _`${0}`), x => affixIconTemplate(x.checked ? 'radio-checked-line' : 'radio-unchecked-line'))), when(x => x.role === MenuItemRole.menuitem && x.icon, html(_t5 || (_t5 = _`${0}`), x => affixIconTemplate(x.icon))), x => x.text);
|
|
340
|
-
};
|
|
341
|
-
|
|
342
|
-
const vividMenuItem = MenuItem.compose({
|
|
343
|
-
baseName: 'menu-item',
|
|
344
|
-
template: MenuItemTemplate,
|
|
345
|
-
styles: css_248z
|
|
346
|
-
});
|
|
347
|
-
designSystem.register(vividMenuItem());
|
|
348
|
-
|
|
349
|
-
export { MenuItem$1 as M, MenuItemRole as a, roleForMenuItem as r, vividMenuItem as v };
|
|
277
|
+
export { MenuItem as M, MenuItemRole as a, roleForMenuItem as r };
|
|
@@ -18,10 +18,10 @@ export declare function formElements<T extends {
|
|
|
18
18
|
successText?: string | undefined;
|
|
19
19
|
charCount: boolean;
|
|
20
20
|
userValid: boolean;
|
|
21
|
-
"__#
|
|
21
|
+
"__#7248@#blurred": boolean;
|
|
22
22
|
readonly errorValidationMessage: any;
|
|
23
23
|
connectedCallback(): void;
|
|
24
|
-
"__#
|
|
24
|
+
"__#7248@#handleInvalidEvent": () => void;
|
|
25
25
|
disconnectedCallback(): void;
|
|
26
26
|
validate: () => void;
|
|
27
27
|
};
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
import './
|
|
2
|
-
import './
|
|
3
|
-
import { F as FoundationElement, c as __classPrivateFieldGet, j as __classPrivateFieldSet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from './index.js';
|
|
4
|
-
import './web.dom-collections.iterator.js';
|
|
5
|
-
import './icon.js';
|
|
1
|
+
import { F as FoundationElement, Y as __classPrivateFieldGet, a9 as __classPrivateFieldSet, _ as __decorate, a as attr, b as __metadata } from './index.js';
|
|
2
|
+
import './es.promise.resolve.js';
|
|
6
3
|
import './es.object.assign.js';
|
|
7
4
|
import { b as keyEscape } from './key-codes.js';
|
|
8
|
-
import { w as when } from './when.js';
|
|
9
|
-
import { r as ref } from './ref.js';
|
|
10
|
-
import { c as classNames } from './class-names.js';
|
|
11
5
|
|
|
12
6
|
function getSide(placement) {
|
|
13
7
|
return placement.split('-')[0];
|
|
@@ -1487,38 +1481,4 @@ __decorate([attr({
|
|
|
1487
1481
|
}), __metadata("design:type", String)], Popup.prototype, "placement", void 0);
|
|
1488
1482
|
__decorate([attr, __metadata("design:type", String)], Popup.prototype, "anchor", void 0);
|
|
1489
1483
|
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
let _ = t => t,
|
|
1493
|
-
_t,
|
|
1494
|
-
_t2,
|
|
1495
|
-
_t3;
|
|
1496
|
-
const getClasses = ({
|
|
1497
|
-
open,
|
|
1498
|
-
dismissible,
|
|
1499
|
-
alternate
|
|
1500
|
-
}) => classNames('control', ['open', Boolean(open)], ['dismissible', Boolean(dismissible)], ['alternate', Boolean(alternate)]);
|
|
1501
|
-
const popupTemplate = () => html(_t || (_t = _`
|
|
1502
|
-
<vwc-elevation>
|
|
1503
|
-
<!--the popup-wrapper is needed for alternating the inside of the popup nd not its shadow-->
|
|
1504
|
-
<div class="popup-wrapper" ${0}>
|
|
1505
|
-
<div class="${0}" aria-hidden="${0}"
|
|
1506
|
-
part="${0}">
|
|
1507
|
-
<div class="popup-content">
|
|
1508
|
-
<slot></slot>
|
|
1509
|
-
${0}
|
|
1510
|
-
</div>
|
|
1511
|
-
${0}
|
|
1512
|
-
</div>
|
|
1513
|
-
</div>
|
|
1514
|
-
</vwc-elevation>`), ref('popupEl'), getClasses, x => x.open ? 'false' : 'true', x => x.alternate ? 'vvd-theme-alternate' : '', when(x => x.dismissible, html(_t2 || (_t2 = _`<vwc-button size="condensed" @click="${0}"
|
|
1515
|
-
class="dismissible-button" icon="close-small-solid" shape="pill"></vwc-button>`), x => x.open = false)), when(x => x.arrow, html(_t3 || (_t3 = _`<div class="arrow" ${0}></div>`), ref('arrowEl'))));
|
|
1516
|
-
|
|
1517
|
-
const vividPopup = Popup.compose({
|
|
1518
|
-
baseName: 'popup',
|
|
1519
|
-
template: popupTemplate,
|
|
1520
|
-
styles: css_248z
|
|
1521
|
-
});
|
|
1522
|
-
designSystem.register(vividPopup());
|
|
1523
|
-
|
|
1524
|
-
export { Popup as P, vividPopup as v };
|
|
1484
|
+
export { Popup as P };
|
package/shared/radio.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr,
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, V as observable, b as __metadata } from './index.js';
|
|
2
2
|
import { C as CheckableFormAssociated } from './form-associated.js';
|
|
3
3
|
import { a as keySpace } from './key-codes.js';
|
|
4
4
|
|
package/shared/ref.js
CHANGED
package/shared/slotted.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Z as Observable, $ as emptyArray, a0 as AttachedBehaviorHTMLDirective } from './index.js';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Creates a function that can be used to filter a Node array, selecting only elements.
|
package/shared/string-trim.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as toString$1 } from './to-string.js';
|
|
1
|
+
import { n as functionUncurryThis, W as requireObjectCoercible$1, X as toString$1 } from './index.js';
|
|
3
2
|
|
|
4
3
|
// a string of all valid unicode whitespaces
|
|
5
4
|
var whitespaces$1 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as affixIconTemplateFactory } from './affix.js';
|
|
2
|
-
import { f as focusTemplateFactory } from './
|
|
2
|
+
import { f as focusTemplateFactory } from './focus.js';
|
|
3
3
|
import { h as html } from './index.js';
|
|
4
4
|
import { r as ref } from './ref.js';
|
|
5
5
|
import { c as classNames } from './class-names.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const loadComponentsModules: (components: string[], prefix: string) => Promise<CustomElementConstructor[]>;
|
package/side-drawer/index.js
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { F as FoundationElement,
|
|
2
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
1
|
+
import { F as FoundationElement, Y as __classPrivateFieldGet, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem, g as getPrefix } from '../shared/index.js';
|
|
3
2
|
import { w as when } from '../shared/when.js';
|
|
4
3
|
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
-
import '../shared/export.js';
|
|
6
|
-
import '../shared/object-keys.js';
|
|
7
|
-
import '../shared/iterators.js';
|
|
8
4
|
|
|
9
5
|
var _SideDrawer_instances, _SideDrawer_close, _SideDrawer_open;
|
|
10
6
|
class SideDrawer extends FoundationElement {
|
|
@@ -44,7 +40,7 @@ __decorate([attr({
|
|
|
44
40
|
mode: 'boolean'
|
|
45
41
|
}), __metadata("design:type", Object)], SideDrawer.prototype, "trailing", void 0);
|
|
46
42
|
|
|
47
|
-
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022
|
|
43
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Sun, 04 Dec 2022 15:37:45 GMT\n */\n.control {\n position: fixed;\n z-index: 1;\n background-color: var(--vvd-color-canvas);\n color: var(--vvd-color-canvas-text);\n inline-size: 280px;\n inset-block: 0;\n overflow-y: auto;\n}\n.control[part~=vvd-theme-alternate] {\n background-color: var(--vvd-color-canvas);\n color: var(--vvd-color-canvas-text);\n color-scheme: var(--vvd-color-scheme);\n}\n.control.trailing {\n inset-inline-end: 0;\n}\n.control:not(.open).trailing {\n transform: translateX(100%);\n}\n.control:not(.open):not(.trailing) {\n transform: translateX(-100%);\n}\n.control.open:not(.modal).trailing + .side-drawer-app-content {\n margin-inline-end: var(--side-drawer-app-content-offset, 280px);\n}\n.control.open:not(.modal):not(.trailing) + .side-drawer-app-content {\n margin-inline-start: var(--side-drawer-app-content-offset, 280px);\n}\n@media (prefers-reduced-motion: no-preference) {\n .control {\n transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n }\n}\n\n.scrim {\n background-color: var(--vvd-color-canvas-text);\n opacity: 0.5;\n position: fixed;\n inset: 0;\n}\n.scrim:not(.open) {\n display: none;\n}";
|
|
48
44
|
|
|
49
45
|
let _ = t => t,
|
|
50
46
|
_t,
|
|
@@ -84,6 +80,6 @@ const vividSideDrawer = SideDrawer.compose({
|
|
|
84
80
|
template: sideDrawerTemplate,
|
|
85
81
|
styles: css_248z
|
|
86
82
|
});
|
|
87
|
-
designSystem.register(vividSideDrawer());
|
|
83
|
+
designSystem.withPrefix(getPrefix(import.meta.url)).register(vividSideDrawer());
|
|
88
84
|
|
|
89
85
|
export { vividSideDrawer };
|
package/slider/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import '../
|
|
2
|
-
import { F as FoundationElement, _ as __decorate, a as attr,
|
|
3
|
-
import '../shared/
|
|
4
|
-
import { g as global$1, e as fails$1, f as functionUncurryThis, _ as _export } from '../shared/export.js';
|
|
5
|
-
import { t as toString$1 } from '../shared/to-string.js';
|
|
1
|
+
import '../shared/es.promise.resolve.js';
|
|
2
|
+
import { F as FoundationElement, _ as __decorate, a as attr, V as observable, a6 as nullableNumberConverter, e as global$1, s as fails$1, n as functionUncurryThis, X as toString$1, E as _export, b as __metadata, h as html, g as getPrefix, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { l as loadComponentsModules } from '../shared/index2.js';
|
|
6
4
|
import { w as whitespaces$1, s as stringTrim } from '../shared/string-trim.js';
|
|
7
5
|
import '../shared/es.regexp.to-string.js';
|
|
8
6
|
import { D as Direction, g as getDirection } from '../shared/direction.js';
|
|
@@ -10,12 +8,10 @@ import { l as limit } from '../shared/numbers.js';
|
|
|
10
8
|
import { F as FormAssociated } from '../shared/form-associated.js';
|
|
11
9
|
import { O as Orientation } from '../shared/aria.js';
|
|
12
10
|
import { g as keyHome, d as keyEnd, f as keyArrowDown, h as keyArrowLeft, e as keyArrowUp, i as keyArrowRight } from '../shared/key-codes.js';
|
|
13
|
-
import { f as focusTemplateFactory } from '../shared/
|
|
11
|
+
import { f as focusTemplateFactory } from '../shared/focus.js';
|
|
14
12
|
import { r as ref } from '../shared/ref.js';
|
|
15
13
|
import { c as classNames } from '../shared/class-names.js';
|
|
16
|
-
import '../shared/
|
|
17
|
-
import '../shared/object-keys.js';
|
|
18
|
-
import '../shared/iterators.js';
|
|
14
|
+
import '../shared/focus2.js';
|
|
19
15
|
|
|
20
16
|
/**
|
|
21
17
|
* Converts a pixel coordinate on the track to a percent of the track's range
|
|
@@ -586,11 +582,15 @@ const SliderTemplate = context => {
|
|
|
586
582
|
</div>`), x => x.disabled ? null : 0, x => x.valueTextFormatter(x.value), x => x.value, x => x.min, x => x.max, x => x.disabled ? true : void 0, x => x.orientation, getClasses, x => x.orientation, ref('track'), x => x.position, x => x.markers ? getMarkersTemplate(x.orientation === Orientation.horizontal, Math.floor((x.max - x.min) / x.step)) : void 0, ref('thumb'), x => x.position, () => focusTemplate);
|
|
587
583
|
};
|
|
588
584
|
|
|
585
|
+
const prefix = getPrefix(import.meta.url);
|
|
589
586
|
const vividSlider = Slider.compose({
|
|
590
587
|
baseName: 'slider',
|
|
591
588
|
template: SliderTemplate,
|
|
592
589
|
styles: css_248z
|
|
593
590
|
});
|
|
594
|
-
|
|
591
|
+
(async () => {
|
|
592
|
+
await loadComponentsModules(['focus'], prefix);
|
|
593
|
+
designSystem.withPrefix(prefix).register(vividSlider());
|
|
594
|
+
})();
|
|
595
595
|
|
|
596
596
|
export { vividSlider };
|
package/styles/core/all.css
CHANGED
package/styles/core/theme.css
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Do not edit directly
|
|
3
|
-
* Generated on Sun, 04 Dec 2022
|
|
3
|
+
* Generated on Sun, 04 Dec 2022 15:37:45 GMT
|
|
4
4
|
*/
|
|
5
5
|
/**
|
|
6
6
|
* Do not edit directly
|
|
7
|
-
* Generated on Sun, 04 Dec 2022
|
|
7
|
+
* Generated on Sun, 04 Dec 2022 15:37:45 GMT
|
|
8
8
|
*/
|
|
9
9
|
/**
|
|
10
10
|
* Do not edit directly
|
|
11
|
-
* Generated on Sun, 04 Dec 2022
|
|
11
|
+
* Generated on Sun, 04 Dec 2022 15:37:45 GMT
|
|
12
12
|
*/
|
|
13
13
|
/**
|
|
14
14
|
* Do not edit directly
|
|
15
|
-
* Generated on Sun, 04 Dec 2022
|
|
15
|
+
* Generated on Sun, 04 Dec 2022 15:37:45 GMT
|
|
16
16
|
*/
|
|
17
17
|
@property --vvd-size-density {
|
|
18
18
|
syntax: "<integer>";
|