@vonage/vivid 4.22.0 → 4.23.0
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/custom-elements.json +1987 -631
- package/lib/accordion-item/accordion-item.d.ts +11 -5
- package/lib/action-group/action-group.d.ts +8 -6
- package/lib/alert/alert.d.ts +21 -9
- package/lib/audio-player/audio-player.d.ts +11 -5
- package/lib/badge/badge.d.ts +11 -5
- package/lib/banner/banner.d.ts +26 -12
- package/lib/breadcrumb/breadcrumb.d.ts +333 -1
- package/lib/breadcrumb/breadcrumb.template.d.ts +2 -3
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +8 -6
- package/lib/button/button.d.ts +11 -5
- package/lib/calendar-event/calendar-event.d.ts +333 -1
- package/lib/checkbox/checkbox.d.ts +8 -6
- package/lib/combobox/combobox.d.ts +11 -5
- package/lib/date-picker/date-picker.d.ts +74 -50
- package/lib/date-range-picker/date-range-picker.d.ts +38 -26
- package/lib/date-time-picker/date-time-picker.d.ts +76 -52
- package/lib/dial-pad/dial-pad.d.ts +11 -5
- package/lib/dialog/dialog.d.ts +16 -8
- package/lib/divider/divider.d.ts +8 -6
- package/lib/fab/fab.d.ts +11 -5
- package/lib/file-picker/file-picker.d.ts +339 -3
- package/lib/header/header.d.ts +333 -1
- package/lib/menu/menu.d.ts +16 -8
- package/lib/menu-item/menu-item.d.ts +338 -2
- package/lib/nav/nav.d.ts +333 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +16 -8
- package/lib/nav-item/nav-item.d.ts +11 -5
- package/lib/note/note.d.ts +11 -5
- package/lib/number-field/number-field.d.ts +26 -12
- package/lib/option/option.d.ts +339 -3
- package/lib/progress/progress.d.ts +8 -6
- package/lib/progress-ring/progress-ring.d.ts +8 -6
- package/lib/radio-group/radio-group.d.ts +333 -1
- package/lib/range-slider/range-slider.d.ts +11 -5
- package/lib/rich-text-editor/facades/prose-mirror-vivid.schema.d.ts +1 -1
- package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +7 -1
- package/lib/rich-text-editor/menubar/consts.d.ts +18 -0
- package/lib/rich-text-editor/menubar/menubar.d.ts +3 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +10 -0
- package/lib/searchable-select/option-tag.d.ts +11 -5
- package/lib/searchable-select/searchable-select.d.ts +349 -7
- package/lib/select/select.d.ts +339 -3
- package/lib/selectable-box/selectable-box.d.ts +8 -6
- package/lib/slider/slider.d.ts +16 -8
- package/lib/split-button/split-button.d.ts +26 -12
- package/lib/switch/switch.d.ts +8 -6
- package/lib/tab/tab.d.ts +349 -7
- package/lib/tab-panel/tab-panel.d.ts +333 -1
- package/lib/tag/tag.d.ts +338 -2
- package/lib/tag-group/tag-group.d.ts +8 -6
- package/lib/text-anchor/text-anchor.d.ts +16 -8
- package/lib/text-area/text-area.d.ts +8 -6
- package/lib/text-field/text-field.d.ts +16 -8
- package/lib/time-picker/time-picker.d.ts +38 -26
- package/lib/toggletip/toggletip.d.ts +9 -3
- package/lib/tooltip/tooltip.d.ts +9 -3
- package/lib/tree-item/tree-item.d.ts +338 -2
- package/lib/tree-view/tree-view.d.ts +333 -1
- package/lib/video-player/video-player.d.ts +11 -5
- package/package.json +1 -1
- package/shared/affix.js +1 -1
- package/shared/aria/aria-change-subscription.d.ts +6 -0
- package/shared/aria/aria-mixin.d.ts +338 -0
- package/shared/aria/delegate-aria-behavior.d.ts +31 -0
- package/shared/aria/delegates-aria.d.ts +14 -9
- package/shared/aria/host-semantics-behavior.d.ts +22 -0
- package/shared/aria/host-semantics.d.ts +337 -0
- package/shared/attribute-binding-behaviour.cjs +41 -0
- package/shared/attribute-binding-behaviour.js +39 -0
- package/shared/calendar-event.cjs +2 -1
- package/shared/calendar-event.js +2 -1
- package/shared/definition.js +1 -1
- package/shared/definition10.cjs +8 -2
- package/shared/definition10.js +9 -3
- package/shared/definition11.cjs +4 -28
- package/shared/definition11.js +5 -29
- package/shared/definition12.cjs +4 -1
- package/shared/definition12.js +5 -2
- package/shared/definition13.js +1 -1
- package/shared/definition14.js +1 -1
- package/shared/definition15.cjs +8 -7
- package/shared/definition15.js +10 -9
- package/shared/definition16.js +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition18.js +1 -1
- package/shared/definition19.js +1 -1
- package/shared/definition2.js +1 -1
- package/shared/definition20.js +1 -1
- package/shared/definition21.js +1 -1
- package/shared/definition22.cjs +3 -2
- package/shared/definition22.js +5 -4
- package/shared/definition23.cjs +4 -2
- package/shared/definition23.js +6 -4
- package/shared/definition24.js +1 -1
- package/shared/definition25.cjs +2 -14
- package/shared/definition25.js +3 -15
- package/shared/definition26.cjs +7 -2
- package/shared/definition26.js +8 -3
- package/shared/definition27.cjs +3 -2
- package/shared/definition27.js +4 -3
- package/shared/definition28.js +1 -1
- package/shared/definition29.js +1 -1
- package/shared/definition3.cjs +3 -2
- package/shared/definition3.js +5 -4
- package/shared/definition30.cjs +33 -34
- package/shared/definition30.js +35 -36
- package/shared/definition31.cjs +6 -4
- package/shared/definition31.js +8 -6
- package/shared/definition32.js +1 -1
- package/shared/definition33.cjs +7 -2
- package/shared/definition33.js +8 -3
- package/shared/definition34.js +1 -1
- package/shared/definition35.cjs +2 -13
- package/shared/definition35.js +4 -15
- package/shared/definition36.cjs +8 -5
- package/shared/definition36.js +9 -6
- package/shared/definition37.js +1 -1
- package/shared/definition38.cjs +7 -8
- package/shared/definition38.js +9 -10
- package/shared/definition39.cjs +7 -8
- package/shared/definition39.js +9 -10
- package/shared/definition4.js +1 -1
- package/shared/definition40.cjs +8 -5
- package/shared/definition40.js +9 -6
- package/shared/definition41.js +1 -1
- package/shared/definition42.js +1 -1
- package/shared/definition43.cjs +465 -105
- package/shared/definition43.js +457 -97
- package/shared/definition44.cjs +9 -6
- package/shared/definition44.js +10 -7
- package/shared/definition45.cjs +13 -7
- package/shared/definition45.js +14 -8
- package/shared/definition46.cjs +18 -6
- package/shared/definition46.js +20 -8
- package/shared/definition47.js +1 -1
- package/shared/definition48.js +1 -1
- package/shared/definition49.cjs +10 -3
- package/shared/definition49.js +12 -5
- package/shared/definition5.cjs +7 -2
- package/shared/definition5.js +8 -3
- package/shared/definition50.cjs +7 -6
- package/shared/definition50.js +9 -8
- package/shared/definition51.cjs +3 -2
- package/shared/definition51.js +4 -3
- package/shared/definition52.cjs +8 -4
- package/shared/definition52.js +9 -5
- package/shared/definition53.js +1 -1
- package/shared/definition54.cjs +4 -3
- package/shared/definition54.js +6 -5
- package/shared/definition55.cjs +7 -4
- package/shared/definition55.js +8 -5
- package/shared/definition56.cjs +68 -14
- package/shared/definition56.js +69 -15
- package/shared/definition57.cjs +163 -112
- package/shared/definition57.js +165 -114
- package/shared/definition58.js +1 -1
- package/shared/definition59.js +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition60.js +1 -1
- package/shared/definition61.cjs +8 -5
- package/shared/definition61.js +9 -6
- package/shared/definition62.cjs +5 -2
- package/shared/definition62.js +6 -3
- package/shared/definition63.js +1 -1
- package/shared/definition64.js +1 -1
- package/shared/definition65.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.cjs +4 -2
- package/shared/definition8.js +6 -4
- package/shared/definition9.js +1 -1
- package/shared/delegates-aria.cjs +106 -56
- package/shared/delegates-aria.js +107 -58
- package/shared/foundation/button/button.d.ts +8 -6
- package/shared/foundation/vivid-element/vivid-element.d.ts +339 -1
- package/shared/host-semantics.cjs +65 -0
- package/shared/host-semantics.js +62 -0
- package/shared/option.cjs +4 -1
- package/shared/option.js +4 -1
- package/shared/patterns/affix.d.ts +22 -10
- package/shared/patterns/anchored.d.ts +18 -6
- package/shared/patterns/localized.d.ts +11 -5
- package/shared/patterns/trapped-focus.d.ts +11 -5
- package/shared/picker-field/mixins/calendar-picker.d.ts +19 -13
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +19 -13
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +11 -5
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +38 -26
- package/shared/picker-field/mixins/single-date-picker.d.ts +55 -37
- package/shared/picker-field/mixins/single-value-picker.d.ts +17 -11
- package/shared/picker-field/mixins/time-selection-picker.d.ts +38 -26
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +38 -26
- package/shared/picker-field/picker-field.d.ts +21 -9
- package/shared/picker-field.template.js +1 -1
- package/shared/repeat.js +1 -1
- package/shared/slider.template.cjs +10 -9
- package/shared/slider.template.js +10 -9
- package/shared/templating/attribute-binding-behaviour.d.ts +15 -0
- package/shared/templating/render-in-light-dom.d.ts +22 -0
- package/shared/text-anchor.template.cjs +2 -13
- package/shared/text-anchor.template.js +2 -13
- package/shared/time-selection-picker.template.js +1 -1
- package/shared/vivid-element.cjs +96 -2
- package/shared/vivid-element.js +93 -3
- 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/styles/tokens/vivid-2-compat.css +1 -1
- package/text-anchor/index.js +1 -1
- package/vivid.api.json +155 -14
- package/shared/Reflector.cjs +0 -71
- package/shared/Reflector.js +0 -69
package/shared/definition12.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { h as html,
|
|
1
|
+
import { h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { C as CalendarEvent } from './calendar-event.js';
|
|
3
|
+
import { d as delegateAria } from './delegates-aria.js';
|
|
3
4
|
import { c as classNames } from './class-names.js';
|
|
4
5
|
import { w as when } from './when.js';
|
|
5
6
|
|
|
@@ -23,8 +24,10 @@ const getStyles = ({ start, duration, overlapCount }) => {
|
|
|
23
24
|
const CalendarEventTemplate = html` <div
|
|
24
25
|
style="${getStyles}"
|
|
25
26
|
class="${getClasses}"
|
|
26
|
-
role="button"
|
|
27
27
|
tabindex="0"
|
|
28
|
+
${delegateAria({
|
|
29
|
+
role: "button"
|
|
30
|
+
})}
|
|
28
31
|
>
|
|
29
32
|
${when((x) => x.heading, html`<h2><strong>${(x) => x.heading}</strong></h2>`)}
|
|
30
33
|
${when((x) => x.description, html`<p>${(x) => x.description}</p>`)}
|
package/shared/definition13.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, h as html,
|
|
1
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { d as Sticky } from './enums.js';
|
|
3
3
|
import { C as CalendarEvent } from './calendar-event.js';
|
|
4
4
|
import { b as _has, _ as _curry1, a as _curry2 } from './_has.js';
|
package/shared/definition14.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
2
2
|
import { E as Elevation, e as elevationDefinition } from './definition64.js';
|
|
3
|
-
import { V as VividElement, a as attr, o as observable, h as html,
|
|
3
|
+
import { V as VividElement, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
4
4
|
import { A as Appearance } from './enums.js';
|
|
5
5
|
import { w as when } from './when.js';
|
|
6
6
|
import { c as classNames } from './class-names.js';
|
package/shared/definition15.cjs
CHANGED
|
@@ -159,15 +159,16 @@ const getClasses = ({
|
|
|
159
159
|
);
|
|
160
160
|
const CheckboxTemplate = (context) => {
|
|
161
161
|
const iconTag = context.tagFor(definition.Icon);
|
|
162
|
-
return vividElement.html`<template
|
|
162
|
+
return vividElement.html`<template>
|
|
163
163
|
<div
|
|
164
164
|
class="${getClasses}"
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
165
|
+
${delegatesAria.delegateAria({
|
|
166
|
+
role: "checkbox",
|
|
167
|
+
ariaChecked: (x) => x.indeterminate ? "mixed" : x.checked,
|
|
168
|
+
ariaRequired: (x) => x.required,
|
|
169
|
+
ariaDisabled: (x) => x.disabled,
|
|
170
|
+
ariaReadOnly: (x) => x.readOnly
|
|
171
|
+
})}
|
|
171
172
|
tabindex="${(x) => x.tabindex !== null ? x.tabindex : x.disabled ? null : 0}"
|
|
172
173
|
@keypress="${(x, c) => x.keypressHandler(c.event)}"
|
|
173
174
|
@click="${(x, c) => x.clickHandler(c.event)}"
|
package/shared/definition15.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
2
|
-
import { V as VividElement, a as attr, o as observable, h as html,
|
|
2
|
+
import { V as VividElement, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
3
3
|
import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
|
|
4
|
-
import { D as DelegatesAria } from './delegates-aria.js';
|
|
4
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
5
5
|
import { C as CheckableFormAssociated } from './form-associated.js';
|
|
6
6
|
import { e as errorText, f as formElements, F as FormElementSuccessText, a as FormElementHelperText, g as getFeedbackTemplate } from './form-elements.js';
|
|
7
7
|
import { c as classNames } from './class-names.js';
|
|
@@ -157,15 +157,16 @@ const getClasses = ({
|
|
|
157
157
|
);
|
|
158
158
|
const CheckboxTemplate = (context) => {
|
|
159
159
|
const iconTag = context.tagFor(Icon);
|
|
160
|
-
return html`<template
|
|
160
|
+
return html`<template>
|
|
161
161
|
<div
|
|
162
162
|
class="${getClasses}"
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
163
|
+
${delegateAria({
|
|
164
|
+
role: "checkbox",
|
|
165
|
+
ariaChecked: (x) => x.indeterminate ? "mixed" : x.checked,
|
|
166
|
+
ariaRequired: (x) => x.required,
|
|
167
|
+
ariaDisabled: (x) => x.disabled,
|
|
168
|
+
ariaReadOnly: (x) => x.readOnly
|
|
169
|
+
})}
|
|
169
170
|
tabindex="${(x) => x.tabindex !== null ? x.tabindex : x.disabled ? null : 0}"
|
|
170
171
|
@keypress="${(x, c) => x.keypressHandler(c.event)}"
|
|
171
172
|
@click="${(x, c) => x.clickHandler(c.event)}"
|
package/shared/definition16.js
CHANGED
|
@@ -2,7 +2,7 @@ import { i as iconDefinition } from './definition28.js';
|
|
|
2
2
|
import { P as Popup, p as popupDefinition } from './definition65.js';
|
|
3
3
|
import { l as listboxOptionDefinition } from './definition36.js';
|
|
4
4
|
import { s as styles$1 } from './text-field.js';
|
|
5
|
-
import { D as DOM, O as Observable, a as attr, o as observable, h as html,
|
|
5
|
+
import { D as DOM, O as Observable, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
6
6
|
import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
|
|
7
7
|
import { L as Listbox } from './listbox.js';
|
|
8
8
|
import { F as FormAssociated } from './form-associated.js';
|
package/shared/definition17.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
2
|
-
import { V as VividElement, D as DOM, O as Observable, a as attr, o as observable, h as html,
|
|
2
|
+
import { V as VividElement, D as DOM, O as Observable, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
3
3
|
import { R as RepeatDirective } from './repeat.js';
|
|
4
4
|
import { d as keyEnd, g as keyHome, j as keyPageDown, l as keyPageUp, f as keyArrowDown, e as keyArrowUp, i as keyArrowRight, h as keyArrowLeft, b as keyEscape, m as keyFunction2, k as keyEnter, a as keySpace } from './key-codes.js';
|
|
5
5
|
import { c as children } from './children.js';
|
package/shared/definition18.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as textFieldDefinition } from './definition57.js';
|
|
|
4
4
|
import { d as dividerDefinition } from './definition23.js';
|
|
5
5
|
import { a as PickerField, P as PickerFieldTemplate, p as pickerFieldStyles } from './picker-field.template.js';
|
|
6
6
|
import { M as MinMaxCalendarPicker, C as CalendarPicker, i as isValidDateStr, f as formatPresentationDate, p as parsePresentationDate, a as CalendarPickerTemplate, c as calendarStyles } from './calendar-picker.template.js';
|
|
7
|
-
import { v as volatile,
|
|
7
|
+
import { v as volatile, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
8
8
|
import { S as SingleValuePicker } from './single-value-picker.js';
|
|
9
9
|
import { S as SingleDatePickerMixin } from './single-date-picker.js';
|
|
10
10
|
import { e as errorText, f as formElements } from './form-elements.js';
|
package/shared/definition19.js
CHANGED
|
@@ -2,7 +2,7 @@ import { b as buttonDefinition } from './definition11.js';
|
|
|
2
2
|
import { p as popupDefinition } from './definition65.js';
|
|
3
3
|
import { t as textFieldDefinition } from './definition57.js';
|
|
4
4
|
import { d as dividerDefinition } from './definition23.js';
|
|
5
|
-
import { a as attr, o as observable, v as volatile,
|
|
5
|
+
import { a as attr, o as observable, v as volatile, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
6
6
|
import { a as PickerField, P as PickerFieldTemplate, p as pickerFieldStyles } from './picker-field.template.js';
|
|
7
7
|
import { f as formatPresentationDate, p as parsePresentationDate, M as MinMaxCalendarPicker, C as CalendarPicker, i as isValidDateStr, b as compareDateStr, a as CalendarPickerTemplate, c as calendarStyles } from './calendar-picker.template.js';
|
|
8
8
|
import { e as errorText, f as formElements } from './form-elements.js';
|
package/shared/definition2.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, o as observable, h as html,
|
|
1
|
+
import { V as VividElement, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { A as AccordionItem, a as accordionItemDefinition } from './definition.js';
|
|
3
3
|
import { d as keyEnd, g as keyHome, f as keyArrowDown, e as keyArrowUp } from './key-codes.js';
|
|
4
4
|
import { w as wrapInBounds } from './numbers.js';
|
package/shared/definition20.js
CHANGED
|
@@ -4,7 +4,7 @@ import { t as textFieldDefinition } from './definition57.js';
|
|
|
4
4
|
import { d as dividerDefinition } from './definition23.js';
|
|
5
5
|
import { a as PickerField, P as PickerFieldTemplate, p as pickerFieldStyles } from './picker-field.template.js';
|
|
6
6
|
import { i as isValidDateStr, f as formatPresentationDate, p as parsePresentationDate, C as CalendarPicker, d as currentDateStr, b as compareDateStr, V as ValidDateFilter, a as CalendarPickerTemplate, c as calendarStyles } from './calendar-picker.template.js';
|
|
7
|
-
import { a as attr, h as html,
|
|
7
|
+
import { a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
8
8
|
import { b as isValidTimeStr, f as formatPresentationTime, p as parsePresentationTime, c as TimeSelectionPicker, d as compareTimeStr, V as ValidTimeFilter, a as TimeSelectionPickerTemplate, i as inlineTimePickerDefinition } from './time-selection-picker.template.js';
|
|
9
9
|
import { S as SingleValuePicker } from './single-value-picker.js';
|
|
10
10
|
import { S as SingleDatePickerMixin } from './single-date-picker.js';
|
package/shared/definition21.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { B as Button, b as buttonDefinition } from './definition11.js';
|
|
2
2
|
import { T as TextField, t as textFieldDefinition } from './definition57.js';
|
|
3
|
-
import { V as VividElement, a as attr, h as html,
|
|
3
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
4
4
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
5
5
|
import { L as Localized } from './localized.js';
|
|
6
6
|
import { c as classNames } from './class-names.js';
|
package/shared/definition22.cjs
CHANGED
|
@@ -286,8 +286,9 @@ const DialogTemplate = (context) => {
|
|
|
286
286
|
<dialog class="${getClasses}"
|
|
287
287
|
@keydown="${(x, c) => x._onKeyDown(c.event)}"
|
|
288
288
|
@cancel="${(_, c) => c.event.preventDefault()}"
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
${delegatesAria.delegateAria({
|
|
290
|
+
ariaModal: (x) => String(x._openedAsModal)
|
|
291
|
+
})}
|
|
291
292
|
>
|
|
292
293
|
<slot name="main">
|
|
293
294
|
<div class="main-wrapper">
|
package/shared/definition22.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
2
2
|
import { B as Button, b as buttonDefinition } from './definition11.js';
|
|
3
3
|
import { E as Elevation, e as elevationDefinition } from './definition64.js';
|
|
4
|
-
import { V as VividElement, a as attr, o as observable, h as html,
|
|
4
|
+
import { V as VividElement, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
5
5
|
import { h as handleEscapeKeyAndStopPropogation } from './index.js';
|
|
6
|
-
import { D as DelegatesAria } from './delegates-aria.js';
|
|
6
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
7
7
|
import { L as Localized } from './localized.js';
|
|
8
8
|
import { c as classNames } from './class-names.js';
|
|
9
9
|
import { w as when } from './when.js';
|
|
@@ -284,8 +284,9 @@ const DialogTemplate = (context) => {
|
|
|
284
284
|
<dialog class="${getClasses}"
|
|
285
285
|
@keydown="${(x, c) => x._onKeyDown(c.event)}"
|
|
286
286
|
@cancel="${(_, c) => c.event.preventDefault()}"
|
|
287
|
-
|
|
288
|
-
|
|
287
|
+
${delegateAria({
|
|
288
|
+
ariaModal: (x) => String(x._openedAsModal)
|
|
289
|
+
})}
|
|
289
290
|
>
|
|
290
291
|
<slot name="main">
|
|
291
292
|
<div class="main-wrapper">
|
package/shared/definition23.cjs
CHANGED
|
@@ -44,8 +44,10 @@ const getClasses = ({ orientation }) => classNames.classNames("base", [`${orient
|
|
|
44
44
|
const getAriaOrientation = ({ role, orientation }) => role === DividerRole.presentation ? null : orientation;
|
|
45
45
|
const DividerTemplate = vividElement.html` <span
|
|
46
46
|
class="${getClasses}"
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
${delegatesAria.delegateAria({
|
|
48
|
+
role: (x) => x.role || DividerRole.separator,
|
|
49
|
+
ariaOrientation: getAriaOrientation
|
|
50
|
+
})}
|
|
49
51
|
></span>`;
|
|
50
52
|
|
|
51
53
|
const dividerDefinition = vividElement.defineVividComponent(
|
package/shared/definition23.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, h as html,
|
|
2
|
-
import { D as DelegatesAria } from './delegates-aria.js';
|
|
1
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
3
3
|
import { O as Orientation } from './aria.js';
|
|
4
4
|
import { c as classNames } from './class-names.js';
|
|
5
5
|
|
|
@@ -42,8 +42,10 @@ const getClasses = ({ orientation }) => classNames("base", [`${orientation}`, Bo
|
|
|
42
42
|
const getAriaOrientation = ({ role, orientation }) => role === DividerRole.presentation ? null : orientation;
|
|
43
43
|
const DividerTemplate = html` <span
|
|
44
44
|
class="${getClasses}"
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
${delegateAria({
|
|
46
|
+
role: (x) => x.role || DividerRole.separator,
|
|
47
|
+
ariaOrientation: getAriaOrientation
|
|
48
|
+
})}
|
|
47
49
|
></span>`;
|
|
48
50
|
|
|
49
51
|
const dividerDefinition = defineVividComponent(
|
package/shared/definition24.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
2
|
-
import { V as VividElement, a as attr, o as observable, h as html,
|
|
2
|
+
import { V as VividElement, a as attr, o as observable, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
3
3
|
import { c as classNames } from './class-names.js';
|
|
4
4
|
import { w as when } from './when.js';
|
|
5
5
|
import { s as slotted } from './slotted.js';
|
package/shared/definition25.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const definition = require('./definition28.cjs');
|
|
|
4
4
|
const vividElement = require('./vivid-element.cjs');
|
|
5
5
|
const affix = require('./affix.cjs');
|
|
6
6
|
const button = require('./button.cjs');
|
|
7
|
+
const delegatesAria = require('./delegates-aria.cjs');
|
|
7
8
|
const classNames = require('./class-names.cjs');
|
|
8
9
|
const ref = require('./ref.cjs');
|
|
9
10
|
|
|
@@ -62,20 +63,7 @@ const FabTemplate = (context) => {
|
|
|
62
63
|
name="${(x) => x.name}"
|
|
63
64
|
type="${(x) => x.type}"
|
|
64
65
|
value="${(x) => x.value}"
|
|
65
|
-
|
|
66
|
-
aria-busy="${(x) => x.ariaBusy}"
|
|
67
|
-
aria-current="${(x) => x.ariaCurrent}"
|
|
68
|
-
aria-disabled="${(x) => x.ariaDisabled}"
|
|
69
|
-
aria-expanded="${(x) => x.ariaExpanded}"
|
|
70
|
-
aria-haspopup="${(x) => x.ariaHasPopup}"
|
|
71
|
-
aria-hidden="${(x) => x.ariaHidden}"
|
|
72
|
-
aria-invalid="${(x) => x.ariaInvalid}"
|
|
73
|
-
aria-keyshortcuts="${(x) => x.ariaKeyShortcuts}"
|
|
74
|
-
aria-label="${(x) => x.ariaLabel}"
|
|
75
|
-
aria-live="${(x) => x.ariaLive}"
|
|
76
|
-
aria-pressed="${(x) => x.ariaPressed}"
|
|
77
|
-
aria-relevant="${(x) => x.ariaRelevant}"
|
|
78
|
-
aria-roledescription="${(x) => x.ariaRoleDescription}"
|
|
66
|
+
${delegatesAria.delegateAria()}
|
|
79
67
|
${ref.ref("control")}
|
|
80
68
|
>
|
|
81
69
|
${(x) => affixIconTemplate(x.icon, affix.IconWrapper.Slot)} ${(x) => x.label}
|
package/shared/definition25.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { i as iconDefinition } from './definition28.js';
|
|
2
|
-
import { a as attr, h as html,
|
|
2
|
+
import { a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
3
3
|
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
|
|
4
4
|
import { V as VividFoundationButton } from './button.js';
|
|
5
|
+
import { d as delegateAria } from './delegates-aria.js';
|
|
5
6
|
import { c as classNames } from './class-names.js';
|
|
6
7
|
import { r as ref } from './ref.js';
|
|
7
8
|
|
|
@@ -60,20 +61,7 @@ const FabTemplate = (context) => {
|
|
|
60
61
|
name="${(x) => x.name}"
|
|
61
62
|
type="${(x) => x.type}"
|
|
62
63
|
value="${(x) => x.value}"
|
|
63
|
-
|
|
64
|
-
aria-busy="${(x) => x.ariaBusy}"
|
|
65
|
-
aria-current="${(x) => x.ariaCurrent}"
|
|
66
|
-
aria-disabled="${(x) => x.ariaDisabled}"
|
|
67
|
-
aria-expanded="${(x) => x.ariaExpanded}"
|
|
68
|
-
aria-haspopup="${(x) => x.ariaHasPopup}"
|
|
69
|
-
aria-hidden="${(x) => x.ariaHidden}"
|
|
70
|
-
aria-invalid="${(x) => x.ariaInvalid}"
|
|
71
|
-
aria-keyshortcuts="${(x) => x.ariaKeyShortcuts}"
|
|
72
|
-
aria-label="${(x) => x.ariaLabel}"
|
|
73
|
-
aria-live="${(x) => x.ariaLive}"
|
|
74
|
-
aria-pressed="${(x) => x.ariaPressed}"
|
|
75
|
-
aria-relevant="${(x) => x.ariaRelevant}"
|
|
76
|
-
aria-roledescription="${(x) => x.ariaRoleDescription}"
|
|
64
|
+
${delegateAria()}
|
|
77
65
|
${ref("control")}
|
|
78
66
|
>
|
|
79
67
|
${(x) => affixIconTemplate(x.icon, IconWrapper.Slot)} ${(x) => x.label}
|
package/shared/definition26.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const definition$1 = require('./definition28.cjs');
|
|
|
4
4
|
const definition = require('./definition11.cjs');
|
|
5
5
|
const vividElement = require('./vivid-element.cjs');
|
|
6
6
|
const applyMixinsWithObservables = require('./applyMixinsWithObservables.cjs');
|
|
7
|
+
const delegatesAria = require('./delegates-aria.cjs');
|
|
7
8
|
const formAssociated = require('./form-associated.cjs');
|
|
8
9
|
const localized = require('./localized.cjs');
|
|
9
10
|
const formElements = require('./form-elements.cjs');
|
|
@@ -2181,7 +2182,9 @@ const generateFilePreviewTemplate = (buttonTag, iconTag, locale) => {
|
|
|
2181
2182
|
<${buttonTag} class="remove-btn" icon="delete-line" appearance="ghost-light" size="condensed" aria-label="${locale.filePicker.removeFileLabel}"></${buttonTag}>
|
|
2182
2183
|
</div>`;
|
|
2183
2184
|
};
|
|
2184
|
-
exports.FilePicker = class FilePicker extends
|
|
2185
|
+
exports.FilePicker = class FilePicker extends delegatesAria.DelegatesAria(
|
|
2186
|
+
localized.Localized(FormAssociatedFilePicker)
|
|
2187
|
+
) {
|
|
2185
2188
|
constructor() {
|
|
2186
2189
|
super();
|
|
2187
2190
|
__privateAdd(this, _FilePicker_instances);
|
|
@@ -2483,8 +2486,10 @@ const FilePickerTemplate = (context) => {
|
|
|
2483
2486
|
${ref.ref("control")}
|
|
2484
2487
|
class="${getClasses}"
|
|
2485
2488
|
tabindex="0"
|
|
2486
|
-
role="button"
|
|
2487
2489
|
@keydown="${(x, c) => x.handleKeydown(c.event)}"
|
|
2490
|
+
${delegatesAria.delegateAria({
|
|
2491
|
+
role: "button"
|
|
2492
|
+
})}
|
|
2488
2493
|
>
|
|
2489
2494
|
<slot class="main"></slot>
|
|
2490
2495
|
</div>
|
package/shared/definition26.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { I as Icon, i as iconDefinition } from './definition28.js';
|
|
2
2
|
import { B as Button, b as buttonDefinition } from './definition11.js';
|
|
3
|
-
import { V as VividElement, a as attr, h as html,
|
|
3
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
4
4
|
import { a as applyMixinsWithObservables } from './applyMixinsWithObservables.js';
|
|
5
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
5
6
|
import { F as FormAssociated } from './form-associated.js';
|
|
6
7
|
import { L as Localized } from './localized.js';
|
|
7
8
|
import { a as FormElementHelperText, e as errorText, f as formElements, g as getFeedbackTemplate } from './form-elements.js';
|
|
@@ -2179,7 +2180,9 @@ const generateFilePreviewTemplate = (buttonTag, iconTag, locale) => {
|
|
|
2179
2180
|
<${buttonTag} class="remove-btn" icon="delete-line" appearance="ghost-light" size="condensed" aria-label="${locale.filePicker.removeFileLabel}"></${buttonTag}>
|
|
2180
2181
|
</div>`;
|
|
2181
2182
|
};
|
|
2182
|
-
let FilePicker = class extends
|
|
2183
|
+
let FilePicker = class extends DelegatesAria(
|
|
2184
|
+
Localized(FormAssociatedFilePicker)
|
|
2185
|
+
) {
|
|
2183
2186
|
constructor() {
|
|
2184
2187
|
super();
|
|
2185
2188
|
__privateAdd(this, _FilePicker_instances);
|
|
@@ -2481,8 +2484,10 @@ const FilePickerTemplate = (context) => {
|
|
|
2481
2484
|
${ref("control")}
|
|
2482
2485
|
class="${getClasses}"
|
|
2483
2486
|
tabindex="0"
|
|
2484
|
-
role="button"
|
|
2485
2487
|
@keydown="${(x, c) => x.handleKeydown(c.event)}"
|
|
2488
|
+
${delegateAria({
|
|
2489
|
+
role: "button"
|
|
2490
|
+
})}
|
|
2486
2491
|
>
|
|
2487
2492
|
<slot class="main"></slot>
|
|
2488
2493
|
</div>
|
package/shared/definition27.cjs
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const definition = require('./definition64.cjs');
|
|
4
4
|
const vividElement = require('./vivid-element.cjs');
|
|
5
|
+
const delegatesAria = require('./delegates-aria.cjs');
|
|
5
6
|
const classNames = require('./class-names.cjs');
|
|
6
7
|
|
|
7
8
|
const styles = ".base{z-index:1;block-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2)) + 1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));font:var(--vvd-typography-heading-4);inline-size:100%}.base .header-content{display:inline-flex;align-items:center;column-gap:4px}.container{display:flex;box-sizing:border-box;justify-content:space-between;background-color:var(--header-bg-color, var(--vvd-color-canvas));block-size:inherit;color:var(--vvd-color-canvas-text);column-gap:12px;padding-block:8px;padding-inline:16px}.container[part~=vvd-theme-alternate]{color-scheme:var(--vvd-color-scheme)}.app-content{--vvd-header-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)) + 1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }";
|
|
@@ -15,7 +16,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
15
16
|
if (result) __defProp(target, key, result);
|
|
16
17
|
return result;
|
|
17
18
|
};
|
|
18
|
-
class Header extends vividElement.VividElement {
|
|
19
|
+
class Header extends delegatesAria.DelegatesAria(vividElement.VividElement) {
|
|
19
20
|
constructor() {
|
|
20
21
|
super(...arguments);
|
|
21
22
|
this.elevationShadow = false;
|
|
@@ -39,7 +40,7 @@ const headerTemplate = (context) => {
|
|
|
39
40
|
const elevationTag = context.tagFor(definition.Elevation);
|
|
40
41
|
return vividElement.html`
|
|
41
42
|
<${elevationTag} dp="4" ?no-shadow=${(x) => !x.elevationShadow}>
|
|
42
|
-
<header class="base" part="base">
|
|
43
|
+
<header class="base" part="base" ${delegatesAria.delegateAria()}>
|
|
43
44
|
<!-- a container is needed to distinguish the surface background color of the
|
|
44
45
|
element from its shadow when applying elevation with alternate -->
|
|
45
46
|
<div class="container" part="${getPartAlternate}">
|
package/shared/definition27.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { E as Elevation, e as elevationDefinition } from './definition64.js';
|
|
2
|
-
import { V as VividElement, a as attr, h as html,
|
|
2
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
3
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
3
4
|
import { c as classNames } from './class-names.js';
|
|
4
5
|
|
|
5
6
|
const styles = ".base{z-index:1;block-size:calc(1px*(40 + 4*clamp(-1,var(--vvd-size-density, 0),2)) + 1px*(24 + 4*clamp(-1,var(--vvd-size-density, 0),2)));font:var(--vvd-typography-heading-4);inline-size:100%}.base .header-content{display:inline-flex;align-items:center;column-gap:4px}.container{display:flex;box-sizing:border-box;justify-content:space-between;background-color:var(--header-bg-color, var(--vvd-color-canvas));block-size:inherit;color:var(--vvd-color-canvas-text);column-gap:12px;padding-block:8px;padding-inline:16px}.container[part~=vvd-theme-alternate]{color-scheme:var(--vvd-color-scheme)}.app-content{--vvd-header-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2)) + 1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) }";
|
|
@@ -13,7 +14,7 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
|
13
14
|
if (result) __defProp(target, key, result);
|
|
14
15
|
return result;
|
|
15
16
|
};
|
|
16
|
-
class Header extends VividElement {
|
|
17
|
+
class Header extends DelegatesAria(VividElement) {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
19
20
|
this.elevationShadow = false;
|
|
@@ -37,7 +38,7 @@ const headerTemplate = (context) => {
|
|
|
37
38
|
const elevationTag = context.tagFor(Elevation);
|
|
38
39
|
return html`
|
|
39
40
|
<${elevationTag} dp="4" ?no-shadow=${(x) => !x.elevationShadow}>
|
|
40
|
-
<header class="base" part="base">
|
|
41
|
+
<header class="base" part="base" ${delegateAria()}>
|
|
41
42
|
<!-- a container is needed to distinguish the surface background color of the
|
|
42
43
|
element from its shadow when applying elevation with alternate -->
|
|
43
44
|
<div class="container" part="${getPartAlternate}">
|
package/shared/definition28.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, o as observable, v as volatile, h as html,
|
|
1
|
+
import { V as VividElement, a as attr, o as observable, v as volatile, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { _ as _curry1, a as _curry2, b as _has } from './_has.js';
|
|
3
3
|
import { c as classNames } from './class-names.js';
|
|
4
4
|
import { w as when } from './when.js';
|
package/shared/definition29.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, h as html,
|
|
1
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
2
|
import { c as classNames } from './class-names.js';
|
|
3
3
|
|
|
4
4
|
var __defProp = Object.defineProperty;
|
package/shared/definition3.cjs
CHANGED
|
@@ -41,8 +41,9 @@ const getClasses = ({ appearance, shape, tight }) => classNames.classNames(
|
|
|
41
41
|
);
|
|
42
42
|
const ActionGroupTemplate = vividElement.html`<div
|
|
43
43
|
class="${getClasses}"
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
${delegatesAria.delegateAria({
|
|
45
|
+
role: (x) => x.role ? x.role : "group"
|
|
46
|
+
})}
|
|
46
47
|
>
|
|
47
48
|
<slot></slot>
|
|
48
49
|
</div>`;
|
package/shared/definition3.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { V as VividElement, a as attr, h as html,
|
|
2
|
-
import { D as DelegatesAria } from './delegates-aria.js';
|
|
1
|
+
import { V as VividElement, a as attr, h as html, g as createRegisterFunction, i as defineVividComponent } from './vivid-element.js';
|
|
2
|
+
import { D as DelegatesAria, d as delegateAria } from './delegates-aria.js';
|
|
3
3
|
import { c as classNames } from './class-names.js';
|
|
4
4
|
|
|
5
5
|
const styles = ":host{display:inline-block}.base{--_connotation-color-primary: var(--vvd-action-group-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-intermediate: var(--vvd-action-group-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-faint: var(--vvd-action-group-accent-faint, var(--vvd-color-neutral-50))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--vvd-color-neutral-500)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base{position:relative;display:flex;box-sizing:border-box;align-items:center;background-color:var(--_appearance-color-fill);inline-size:inherit;vertical-align:middle}.base:before{position:absolute;z-index:1;border-radius:inherit;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";inset:0;pointer-events:none}.base:not(.tight){padding:4px;column-gap:4px}.base:not(.shape-pill){border-radius:8px}.base.shape-pill{border-radius:24px}::slotted([role=separator]){align-self:stretch;margin-block:4px}";
|
|
@@ -39,8 +39,9 @@ const getClasses = ({ appearance, shape, tight }) => classNames(
|
|
|
39
39
|
);
|
|
40
40
|
const ActionGroupTemplate = html`<div
|
|
41
41
|
class="${getClasses}"
|
|
42
|
-
|
|
43
|
-
|
|
42
|
+
${delegateAria({
|
|
43
|
+
role: (x) => x.role ? x.role : "group"
|
|
44
|
+
})}
|
|
44
45
|
>
|
|
45
46
|
<slot></slot>
|
|
46
47
|
</div>`;
|