@vonage/vivid 5.21.0 → 5.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/accordion/index.cjs +1 -1
- package/accordion/index.js +2 -2
- package/alert/index.cjs +1 -1
- package/alert/index.js +1 -1
- package/audio-player/index.cjs +3 -5
- package/audio-player/index.js +30 -32
- package/avatar/index.cjs +1 -1
- package/avatar/index.js +1 -1
- package/banner/index.cjs +1 -1
- package/banner/index.js +1 -1
- package/bundled/affix.cjs +4 -4
- package/bundled/affix.js +4 -4
- package/bundled/base-color-picker.cjs +2 -2
- package/bundled/base-color-picker.js +2 -2
- package/bundled/button.cjs +1 -1
- package/bundled/button.js +1 -1
- package/bundled/definition10.cjs +1 -1
- package/bundled/definition10.js +1 -1
- package/bundled/definition13.cjs +1 -1
- package/bundled/definition13.js +1 -1
- package/bundled/definition15.cjs +1 -1
- package/bundled/definition15.js +2 -2
- package/bundled/definition16.cjs +2 -2
- package/bundled/definition16.js +2 -2
- package/bundled/definition17.cjs +1 -1
- package/bundled/definition17.js +1 -1
- package/bundled/definition18.cjs +2 -2
- package/bundled/definition18.js +14 -5
- package/bundled/definition19.cjs +1 -1
- package/bundled/definition19.js +1 -1
- package/bundled/definition20.cjs +1 -1
- package/bundled/definition20.js +1 -1
- package/bundled/definition21.cjs +1 -1
- package/bundled/definition21.js +2 -2
- package/bundled/definition24.cjs +1 -1
- package/bundled/definition24.js +1 -1
- package/bundled/definition3.cjs +1 -1
- package/bundled/definition3.js +3 -3
- package/bundled/definition4.cjs +1 -1
- package/bundled/definition4.js +1 -1
- package/bundled/definition5.cjs +1 -1
- package/bundled/definition5.js +1 -1
- package/bundled/definition6.cjs +1 -1
- package/bundled/definition6.js +2 -1
- package/bundled/definition8.cjs +1 -1
- package/bundled/definition8.js +12 -6
- package/bundled/definition9.cjs +1 -1
- package/bundled/definition9.js +1 -1
- package/bundled/form-associated.cjs +1 -1
- package/bundled/form-associated.js +2 -2
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +5 -5
- package/bundled/numberConverter.cjs +1 -1
- package/bundled/numberConverter.js +2 -2
- package/bundled/slider.template.cjs +1 -1
- package/bundled/slider.template.js +1 -1
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +1 -1
- package/bundled/with-contextual-help.cjs +1 -1
- package/bundled/with-contextual-help.js +1 -1
- package/calendar/index.cjs +1 -1
- package/calendar/index.js +3 -3
- package/color-picker/index.cjs +20 -20
- package/color-picker/index.js +22 -22
- package/combobox/index.cjs +1 -1
- package/combobox/index.js +6 -6
- package/country-group/index.cjs +1 -1
- package/country-group/index.js +1 -1
- package/custom-elements.json +1270 -1228
- package/data-grid/index.cjs +2 -2
- package/data-grid/index.js +12 -10
- package/dial-pad/index.cjs +1 -1
- package/dial-pad/index.js +2 -2
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -1
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -0
- package/header/index.cjs +1 -1
- package/header/index.js +1 -1
- package/lib/audio-player/audio-player.d.ts +0 -1
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +16 -16
- package/lib/color-picker/color-picker.d.ts +16 -16
- package/lib/combobox/combobox.d.ts +21 -21
- package/lib/date-picker/date-picker.d.ts +26 -26
- package/lib/date-range-picker/date-range-picker.d.ts +14 -14
- package/lib/date-time-picker/date-time-picker.d.ts +24 -24
- package/lib/dial-pad/dial-pad.d.ts +1 -1
- package/lib/file-picker/file-picker.d.ts +21 -21
- package/lib/menu/menu.d.ts +1 -1
- package/lib/number-field/number-field.d.ts +22 -22
- package/lib/popup/popup.d.ts +2 -1
- package/lib/radio/radio.d.ts +16 -16
- package/lib/range-slider/range-slider.d.ts +10 -10
- package/lib/rich-text-editor/popover.d.ts +1 -1
- package/lib/rich-text-editor/rte/exports.d.ts +1 -0
- package/lib/rich-text-editor/rte/feature.d.ts +5 -5
- package/lib/rich-text-editor/rte/features/drop-handler.d.ts +1 -2
- package/lib/rich-text-editor/rte/features/internal/core.d.ts +8 -0
- package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
- package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
- package/lib/rich-text-editor/rte/instance.d.ts +1 -0
- package/lib/rich-text-editor/rte/public-interface.d.ts +3 -0
- package/lib/rich-text-editor/rte/utils/ui.d.ts +1 -1
- package/lib/searchable-select/searchable-select.d.ts +21 -21
- package/lib/select/select.d.ts +22 -22
- package/lib/simple-color-picker/simple-color-picker.d.ts +5 -5
- package/lib/slider/slider.d.ts +5 -5
- package/lib/switch/switch.d.ts +5 -5
- package/lib/table/table-body.template.d.ts +1 -2
- package/lib/table/table-cell.template.d.ts +1 -2
- package/lib/table/table-head.template.d.ts +1 -2
- package/lib/table/table-row.template.d.ts +1 -2
- package/lib/table/table.template.d.ts +1 -2
- package/lib/text-area/text-area.d.ts +21 -21
- package/lib/text-field/text-field.d.ts +22 -22
- package/lib/time-picker/time-picker.d.ts +12 -12
- package/nav-disclosure/index.cjs +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +1 -1
- package/package.json +9 -7
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +9 -2
- package/popover/index.cjs +1 -1
- package/popover/index.js +1 -1
- package/progress/index.cjs +1 -1
- package/progress/index.js +1 -1
- package/radio-group/index.cjs +1 -1
- package/radio-group/index.js +21 -19
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/index.cjs +4 -3
- package/rich-text-editor/index.js +55 -27
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +6 -1
- package/shared/color-picker/base-color-picker.d.ts +5 -5
- package/shared/feedback/mixins.d.ts +1 -1
- package/shared/foundation/button/button.d.ts +5 -5
- package/shared/foundation/form-associated/form-associated.d.ts +10 -10
- package/shared/foundation/listbox/listbox.d.ts +1 -1
- package/shared/patterns/form-elements/form-element.d.ts +5 -5
- package/shared/patterns/form-elements/with-contextual-help.d.ts +5 -5
- package/shared/patterns/form-elements/with-error-text.d.ts +6 -6
- package/shared/picker-field/mixins/calendar-picker.d.ts +6 -6
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +6 -6
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +8 -8
- package/shared/picker-field/mixins/single-date-picker.d.ts +6 -6
- package/shared/picker-field/mixins/single-value-picker.d.ts +6 -6
- package/shared/picker-field/mixins/time-selection-picker.d.ts +6 -6
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +12 -12
- package/shared/picker-field/picker-field.d.ts +21 -21
- package/shared/utils/slottable-request.d.ts +1 -1
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +2 -0
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -1
- package/table/index.cjs +5 -5
- package/table/index.js +5 -5
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +2 -2
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +0 -2
- package/unbundled/affix.cjs +4 -4
- package/unbundled/affix.js +4 -4
- package/unbundled/base-color-picker.cjs +3 -3
- package/unbundled/base-color-picker.js +3 -3
- package/unbundled/button.cjs +5 -5
- package/unbundled/button.js +5 -5
- package/unbundled/definition10.cjs +15 -4
- package/unbundled/definition10.js +15 -4
- package/unbundled/definition11.cjs +3 -3
- package/unbundled/definition11.js +3 -3
- package/unbundled/definition12.cjs +1 -1
- package/unbundled/definition12.js +1 -1
- package/unbundled/definition13.cjs +2 -2
- package/unbundled/definition13.js +2 -2
- package/unbundled/definition14.cjs +73 -76
- package/unbundled/definition14.js +73 -76
- package/unbundled/definition15.cjs +1 -1
- package/unbundled/definition15.js +1 -1
- package/unbundled/definition17.cjs +1 -1
- package/unbundled/definition17.js +1 -1
- package/unbundled/definition19.cjs +2 -1
- package/unbundled/definition19.js +2 -1
- package/unbundled/definition2.cjs +1 -1
- package/unbundled/definition2.js +1 -1
- package/unbundled/definition21.cjs +3 -3
- package/unbundled/definition21.js +3 -3
- package/unbundled/definition23.cjs +2 -2
- package/unbundled/definition23.js +2 -2
- package/unbundled/definition24.cjs +1 -1
- package/unbundled/definition24.js +1 -1
- package/unbundled/definition27.cjs +1 -1
- package/unbundled/definition27.js +1 -1
- package/unbundled/definition28.cjs +23 -23
- package/unbundled/definition28.js +23 -23
- package/unbundled/definition29.cjs +1 -1
- package/unbundled/definition29.js +1 -1
- package/unbundled/definition3.cjs +2 -2
- package/unbundled/definition3.js +2 -2
- package/unbundled/definition30.cjs +7 -7
- package/unbundled/definition30.js +7 -7
- package/unbundled/definition32.cjs +1 -1
- package/unbundled/definition32.js +1 -1
- package/unbundled/definition34.cjs +9 -8
- package/unbundled/definition34.js +9 -8
- package/unbundled/definition35.cjs +1 -1
- package/unbundled/definition35.js +1 -1
- package/unbundled/definition39.cjs +2 -2
- package/unbundled/definition39.js +2 -2
- package/unbundled/definition40.cjs +1 -1
- package/unbundled/definition40.js +1 -1
- package/unbundled/definition42.cjs +1 -0
- package/unbundled/definition42.js +1 -0
- package/unbundled/definition44.cjs +1 -1
- package/unbundled/definition44.js +1 -1
- package/unbundled/definition48.cjs +1 -1
- package/unbundled/definition48.js +1 -1
- package/unbundled/definition49.cjs +1 -1
- package/unbundled/definition49.js +1 -1
- package/unbundled/definition5.cjs +1 -1
- package/unbundled/definition5.js +1 -1
- package/unbundled/definition53.cjs +10 -3
- package/unbundled/definition53.js +10 -3
- package/unbundled/definition55.cjs +1 -1
- package/unbundled/definition55.js +1 -1
- package/unbundled/definition56.cjs +1 -1
- package/unbundled/definition56.js +1 -1
- package/unbundled/definition57.cjs +4 -5
- package/unbundled/definition57.js +4 -5
- package/unbundled/definition58.cjs +20 -19
- package/unbundled/definition58.js +20 -19
- package/unbundled/definition59.cjs +1 -1
- package/unbundled/definition59.js +1 -1
- package/unbundled/definition60.cjs +47 -9
- package/unbundled/definition60.js +47 -9
- package/unbundled/definition61.cjs +12 -6
- package/unbundled/definition61.js +12 -6
- package/unbundled/definition64.cjs +4 -1
- package/unbundled/definition64.js +4 -1
- package/unbundled/definition65.cjs +2 -1
- package/unbundled/definition65.js +2 -1
- package/unbundled/definition67.cjs +2 -0
- package/unbundled/definition67.js +2 -0
- package/unbundled/definition69.cjs +3 -2
- package/unbundled/definition69.js +3 -2
- package/unbundled/definition7.cjs +2 -1
- package/unbundled/definition7.js +2 -1
- package/unbundled/definition71.cjs +1 -1
- package/unbundled/definition71.js +1 -1
- package/unbundled/definition72.cjs +5 -5
- package/unbundled/definition72.js +5 -5
- package/unbundled/definition73.cjs +2 -2
- package/unbundled/definition73.js +2 -2
- package/unbundled/definition75.cjs +1 -1
- package/unbundled/definition75.js +1 -1
- package/unbundled/definition78.cjs +1 -1
- package/unbundled/definition78.js +1 -1
- package/unbundled/definition79.cjs +0 -2
- package/unbundled/definition79.js +0 -2
- package/unbundled/definition80.cjs +1 -1
- package/unbundled/definition80.js +1 -1
- package/unbundled/definition9.cjs +1 -1
- package/unbundled/definition9.js +1 -1
- package/unbundled/form-associated.cjs +2 -2
- package/unbundled/form-associated.js +2 -2
- package/unbundled/listbox.cjs +7 -7
- package/unbundled/listbox.js +7 -7
- package/unbundled/numberConverter.cjs +2 -2
- package/unbundled/numberConverter.js +2 -2
- package/unbundled/slider.template.cjs +1 -1
- package/unbundled/slider.template.js +1 -1
- package/unbundled/slottable-request.cjs +5 -5
- package/unbundled/slottable-request.js +5 -5
- package/unbundled/vivid-element.cjs +1 -1
- package/unbundled/vivid-element.js +1 -1
- package/unbundled/with-contextual-help.cjs +4 -1
- package/unbundled/with-contextual-help.js +4 -1
- package/video-player/index.cjs +1 -1
- package/video-player/index.js +1 -1
- package/vivid.api.json +60 -18
|
@@ -29,7 +29,7 @@ __decorate([attr({
|
|
|
29
29
|
__decorate([attr({ mode: "boolean" })], Header.prototype, "alternate", void 0);
|
|
30
30
|
//#endregion
|
|
31
31
|
//#region src/lib/header/header.template.ts
|
|
32
|
-
var getPartAlternate = ({ alternate }) => classNames(["vvd-theme-alternate",
|
|
32
|
+
var getPartAlternate = ({ alternate }) => classNames(["vvd-theme-alternate", alternate]);
|
|
33
33
|
var headerTemplate = (context) => {
|
|
34
34
|
const elevationTag = context.tagFor(Elevation);
|
|
35
35
|
return html`
|
|
@@ -67,7 +67,7 @@ require_decorate.__decorate([require_vivid_element.replaces({
|
|
|
67
67
|
})], NavDisclosure.prototype, "current", void 0);
|
|
68
68
|
//#endregion
|
|
69
69
|
//#region src/lib/nav-disclosure/nav-disclosure.template.ts
|
|
70
|
-
var getClasses = ({ appearance, connotation, current, open }) => (0, _microsoft_fast_web_utilities.classNames)("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected",
|
|
70
|
+
var getClasses = ({ appearance, connotation, current, open }) => (0, _microsoft_fast_web_utilities.classNames)("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected", current && !open]);
|
|
71
71
|
var NavDisclosureTemplate = (context) => {
|
|
72
72
|
const affixIconTemplate = require_affix.affixIconTemplateFactory(context);
|
|
73
73
|
const iconTag = context.tagFor(require_definition.Icon);
|
|
@@ -66,7 +66,7 @@ __decorate([replaces({
|
|
|
66
66
|
})], NavDisclosure.prototype, "current", void 0);
|
|
67
67
|
//#endregion
|
|
68
68
|
//#region src/lib/nav-disclosure/nav-disclosure.template.ts
|
|
69
|
-
var getClasses = ({ appearance, connotation, current, open }) => classNames("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected",
|
|
69
|
+
var getClasses = ({ appearance, connotation, current, open }) => classNames("control", [`appearance-${appearance}`, Boolean(appearance)], [`connotation-${connotation}`, Boolean(connotation)], ["current-closed selected", current && !open]);
|
|
70
70
|
var NavDisclosureTemplate = (context) => {
|
|
71
71
|
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
72
72
|
const iconTag = context.tagFor(Icon);
|
|
@@ -43,7 +43,7 @@ require_decorate.__decorate([require_vivid_element.replaces({
|
|
|
43
43
|
})], NavItem.prototype, "current", void 0);
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region src/lib/nav-item/nav-item.template.ts
|
|
46
|
-
var getClasses = ({ text, connotation, appearance, current }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected",
|
|
46
|
+
var getClasses = ({ text, connotation, appearance, current }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected", current]);
|
|
47
47
|
var NavItemTemplate = (context) => {
|
|
48
48
|
const affixIconTemplate = require_affix.affixIconTemplateFactory(context);
|
|
49
49
|
return _microsoft_fast_element.html`${(x) => x._renderLinkElement(_microsoft_fast_element.html`${(x) => affixIconTemplate(x.icon, require_affix.IconWrapper.Slot)}
|
|
@@ -42,7 +42,7 @@ __decorate([replaces({
|
|
|
42
42
|
})], NavItem.prototype, "current", void 0);
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/lib/nav-item/nav-item.template.ts
|
|
45
|
-
var getClasses = ({ text, connotation, appearance, current }) => classNames("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected",
|
|
45
|
+
var getClasses = ({ text, connotation, appearance, current }) => classNames("control", ["icon-only", !text], [`connotation-${connotation}`, Boolean(connotation)], [`appearance-${appearance}`, Boolean(appearance)], ["current selected", current]);
|
|
46
46
|
var NavItemTemplate = (context) => {
|
|
47
47
|
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
48
48
|
return html`${(x) => x._renderLinkElement(html`${(x) => affixIconTemplate(x.icon, IconWrapper.Slot)}
|
|
@@ -18,7 +18,7 @@ require_decorate.__decorate([_microsoft_fast_element.attr], ProgressRing.prototy
|
|
|
18
18
|
require_decorate.__decorate([_microsoft_fast_element.attr], ProgressRing.prototype, "size", void 0);
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/lib/progress-ring/progress-ring.template.ts
|
|
21
|
-
var getClasses = ({ connotation, size, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["disabled",
|
|
21
|
+
var getClasses = ({ connotation, size, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", ["disabled", paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
|
|
22
22
|
var progressSegments = 44;
|
|
23
23
|
var ProgressRingTemplate = _microsoft_fast_element.html`<template>
|
|
24
24
|
<div
|
package/unbundled/definition5.js
CHANGED
|
@@ -17,7 +17,7 @@ __decorate([attr], ProgressRing.prototype, "connotation", void 0);
|
|
|
17
17
|
__decorate([attr], ProgressRing.prototype, "size", void 0);
|
|
18
18
|
//#endregion
|
|
19
19
|
//#region src/lib/progress-ring/progress-ring.template.ts
|
|
20
|
-
var getClasses = ({ connotation, size, paused }) => classNames("base", ["disabled",
|
|
20
|
+
var getClasses = ({ connotation, size, paused }) => classNames("base", ["disabled", paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
|
|
21
21
|
var progressSegments = 44;
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/lib/progress-ring/definition.ts
|
|
@@ -61,9 +61,16 @@ var Pagination = class extends require_localized.Localized(require_vivid_element
|
|
|
61
61
|
const index = this.paginationButtons.findIndex((button) => Number(button.label) === currentLabel);
|
|
62
62
|
const focusDirection = shiftKey ? -1 : 1;
|
|
63
63
|
const newIndex = index + focusDirection;
|
|
64
|
-
if (newIndex < 0)
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
if (newIndex < 0) {
|
|
65
|
+
this.prevButton.focus();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
if (newIndex > this.paginationButtons.length - 1) {
|
|
69
|
+
this.nextButton.focus();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
/* v8 ignore else -- @preserve */
|
|
73
|
+
if (this.paginationButtons) this.paginationButtons[index + focusDirection].focus();
|
|
67
74
|
});
|
|
68
75
|
}
|
|
69
76
|
/**
|
|
@@ -60,9 +60,16 @@ var Pagination = class extends Localized(VividElement) {
|
|
|
60
60
|
const index = this.paginationButtons.findIndex((button) => Number(button.label) === currentLabel);
|
|
61
61
|
const focusDirection = shiftKey ? -1 : 1;
|
|
62
62
|
const newIndex = index + focusDirection;
|
|
63
|
-
if (newIndex < 0)
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
if (newIndex < 0) {
|
|
64
|
+
this.prevButton.focus();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (newIndex > this.paginationButtons.length - 1) {
|
|
68
|
+
this.nextButton.focus();
|
|
69
|
+
return;
|
|
70
|
+
}
|
|
71
|
+
/* v8 ignore else -- @preserve */
|
|
72
|
+
if (this.paginationButtons) this.paginationButtons[index + focusDirection].focus();
|
|
66
73
|
});
|
|
67
74
|
}
|
|
68
75
|
/**
|
|
@@ -262,7 +262,7 @@ require_decorate.__decorate([_microsoft_fast_element.observable], Popover.protot
|
|
|
262
262
|
require_decorate.__decorate([_microsoft_fast_element.observable], Popover.prototype, "_slottedAnchor", void 0);
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region src/lib/popover/popover.template.ts
|
|
265
|
-
var getClasses = ({ open, manual, layout }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open",
|
|
265
|
+
var getClasses = ({ open, manual, layout }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open", open], ["manual", manual], ["condensed", layout === "condensed"]);
|
|
266
266
|
/**
|
|
267
267
|
* The template for the Popover component.
|
|
268
268
|
*
|
|
@@ -261,7 +261,7 @@ __decorate([observable], Popover.prototype, "anchor", void 0);
|
|
|
261
261
|
__decorate([observable], Popover.prototype, "_slottedAnchor", void 0);
|
|
262
262
|
//#endregion
|
|
263
263
|
//#region src/lib/popover/popover.template.ts
|
|
264
|
-
var getClasses = ({ open, manual, layout }) => classNames("control", ["open",
|
|
264
|
+
var getClasses = ({ open, manual, layout }) => classNames("control", ["open", open], ["manual", manual], ["condensed", layout === "condensed"]);
|
|
265
265
|
/**
|
|
266
266
|
* The template for the Popover component.
|
|
267
267
|
*
|
|
@@ -24,7 +24,7 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)()], Progress.prot
|
|
|
24
24
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Progress.prototype, "reverse", void 0);
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/lib/progress/progress.template.ts
|
|
27
|
-
var getClasses = ({ connotation, shape, reverse, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse",
|
|
27
|
+
var getClasses = ({ connotation, shape, reverse, paused }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse", reverse], ["paused", paused]);
|
|
28
28
|
function determinate() {
|
|
29
29
|
return _microsoft_fast_element.html` <span
|
|
30
30
|
class="determinate"
|
|
@@ -23,7 +23,7 @@ __decorate([attr()], Progress.prototype, "connotation", void 0);
|
|
|
23
23
|
__decorate([attr({ mode: "boolean" })], Progress.prototype, "reverse", void 0);
|
|
24
24
|
//#endregion
|
|
25
25
|
//#region src/lib/progress/progress.template.ts
|
|
26
|
-
var getClasses = ({ connotation, shape, reverse, paused }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse",
|
|
26
|
+
var getClasses = ({ connotation, shape, reverse, paused }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ["reverse", reverse], ["paused", paused]);
|
|
27
27
|
function determinate() {
|
|
28
28
|
return html` <span
|
|
29
29
|
class="determinate"
|
|
@@ -84,7 +84,8 @@ var Radio = class extends require_with_error_text.WithErrorText(require_form_ele
|
|
|
84
84
|
*/
|
|
85
85
|
nameChanged(previous, next) {
|
|
86
86
|
super.nameChanged(previous, next);
|
|
87
|
-
next !== null
|
|
87
|
+
if (next !== null) this.proxy.setAttribute("name", this.name);
|
|
88
|
+
else this.proxy.removeAttribute("name");
|
|
88
89
|
_microsoft_fast_element.Updates.enqueue(this.validate);
|
|
89
90
|
}
|
|
90
91
|
/**
|
|
@@ -122,9 +123,7 @@ var Radio = class extends require_with_error_text.WithErrorText(require_form_ele
|
|
|
122
123
|
return [];
|
|
123
124
|
}
|
|
124
125
|
get #radioGroup() {
|
|
125
|
-
|
|
126
|
-
if (parentGroup) return parentGroup;
|
|
127
|
-
return null;
|
|
126
|
+
return this.closest(`${this.tagName.toLocaleLowerCase()}-group[name="${this.name}"]`);
|
|
128
127
|
}
|
|
129
128
|
#validateValueMissingWithSiblings;
|
|
130
129
|
#syncSiblingsRequiredValidationStatus;
|
|
@@ -148,7 +147,7 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({
|
|
|
148
147
|
require_decorate.__decorate([_microsoft_fast_element.observable], Radio.prototype, "defaultSlottedNodes", void 0);
|
|
149
148
|
//#endregion
|
|
150
149
|
//#region src/lib/radio/radio.template.ts
|
|
151
|
-
var getClasses = ({ connotation, checked, readOnly, disabled }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked",
|
|
150
|
+
var getClasses = ({ connotation, checked, readOnly, disabled }) => (0, _microsoft_fast_web_utilities.classNames)("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked", checked], ["readonly", readOnly], ["disabled", disabled]);
|
|
152
151
|
var RadioTemplate = _microsoft_fast_element.html`<template
|
|
153
152
|
aria-checked="${(x) => x?.checked}"
|
|
154
153
|
aria-disabled="${(x) => x?.disabled}"
|
|
@@ -83,7 +83,8 @@ var Radio = class extends WithErrorText(FormElement(CheckableFormAssociated(Vivi
|
|
|
83
83
|
*/
|
|
84
84
|
nameChanged(previous, next) {
|
|
85
85
|
super.nameChanged(previous, next);
|
|
86
|
-
next !== null
|
|
86
|
+
if (next !== null) this.proxy.setAttribute("name", this.name);
|
|
87
|
+
else this.proxy.removeAttribute("name");
|
|
87
88
|
Updates.enqueue(this.validate);
|
|
88
89
|
}
|
|
89
90
|
/**
|
|
@@ -121,9 +122,7 @@ var Radio = class extends WithErrorText(FormElement(CheckableFormAssociated(Vivi
|
|
|
121
122
|
return [];
|
|
122
123
|
}
|
|
123
124
|
get #radioGroup() {
|
|
124
|
-
|
|
125
|
-
if (parentGroup) return parentGroup;
|
|
126
|
-
return null;
|
|
125
|
+
return this.closest(`${this.tagName.toLocaleLowerCase()}-group[name="${this.name}"]`);
|
|
127
126
|
}
|
|
128
127
|
#validateValueMissingWithSiblings;
|
|
129
128
|
#syncSiblingsRequiredValidationStatus;
|
|
@@ -147,7 +146,7 @@ __decorate([attr({
|
|
|
147
146
|
__decorate([observable], Radio.prototype, "defaultSlottedNodes", void 0);
|
|
148
147
|
//#endregion
|
|
149
148
|
//#region src/lib/radio/radio.template.ts
|
|
150
|
-
var getClasses = ({ connotation, checked, readOnly, disabled }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked",
|
|
149
|
+
var getClasses = ({ connotation, checked, readOnly, disabled }) => classNames("base", [`connotation-${connotation}`, Boolean(connotation)], ["checked", checked], ["readonly", readOnly], ["disabled", disabled]);
|
|
151
150
|
//#endregion
|
|
152
151
|
//#region src/lib/radio/definition.ts
|
|
153
152
|
/**
|
|
@@ -32,7 +32,7 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
32
32
|
this.radioChangeHandler = (e) => {
|
|
33
33
|
const changedRadio = e.target;
|
|
34
34
|
if (changedRadio.checked) {
|
|
35
|
-
this.slottedRadioButtons
|
|
35
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
36
36
|
if (radio !== changedRadio) radio.checked = false;
|
|
37
37
|
});
|
|
38
38
|
this.value = changedRadio.value;
|
|
@@ -46,16 +46,17 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
46
46
|
radio.focus();
|
|
47
47
|
};
|
|
48
48
|
this.moveRightOffGroup = () => {
|
|
49
|
-
this.nextElementSibling
|
|
49
|
+
const next = this.nextElementSibling;
|
|
50
|
+
if (next instanceof HTMLElement) next.focus();
|
|
50
51
|
};
|
|
51
52
|
this.moveLeftOffGroup = () => {
|
|
52
|
-
this.previousElementSibling
|
|
53
|
+
const prev = this.previousElementSibling;
|
|
54
|
+
if (prev instanceof HTMLElement) prev.focus();
|
|
53
55
|
};
|
|
54
56
|
this.moveRight = (e) => {
|
|
55
57
|
const radio = e.target;
|
|
56
58
|
const group = this.#focusableRadioButtons;
|
|
57
|
-
let index =
|
|
58
|
-
index = group.indexOf(radio) + 1;
|
|
59
|
+
let index = group.indexOf(radio) + 1;
|
|
59
60
|
if (index === group.length && this.isInsideToolbar && e.key === "ArrowRight") {
|
|
60
61
|
this.moveRightOffGroup();
|
|
61
62
|
return;
|
|
@@ -78,15 +79,15 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
78
79
|
switch (e.key) {
|
|
79
80
|
case _microsoft_fast_web_utilities.keyEnter:
|
|
80
81
|
this.checkFocusedRadio(e.target);
|
|
81
|
-
|
|
82
|
+
return;
|
|
82
83
|
case require_key_codes.keyArrowRight:
|
|
83
84
|
case _microsoft_fast_web_utilities.keyArrowDown:
|
|
84
85
|
this.moveRight(e);
|
|
85
|
-
|
|
86
|
+
return;
|
|
86
87
|
case require_key_codes.keyArrowLeft:
|
|
87
88
|
case _microsoft_fast_web_utilities.keyArrowUp:
|
|
88
89
|
this.moveLeft(e);
|
|
89
|
-
|
|
90
|
+
return;
|
|
90
91
|
default: return true;
|
|
91
92
|
}
|
|
92
93
|
};
|
|
@@ -95,7 +96,7 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
95
96
|
* @internal
|
|
96
97
|
*/
|
|
97
98
|
requiredChanged() {
|
|
98
|
-
this.slottedRadioButtons
|
|
99
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
99
100
|
if (this.required) radio.required = true;
|
|
100
101
|
else radio.required = false;
|
|
101
102
|
});
|
|
@@ -104,7 +105,7 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
104
105
|
* @internal
|
|
105
106
|
*/
|
|
106
107
|
readOnlyChanged() {
|
|
107
|
-
this.slottedRadioButtons
|
|
108
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
108
109
|
if (this.readOnly) radio.readOnly = true;
|
|
109
110
|
else radio.readOnly = false;
|
|
110
111
|
});
|
|
@@ -113,13 +114,13 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
113
114
|
* @internal
|
|
114
115
|
*/
|
|
115
116
|
disabledChanged() {
|
|
116
|
-
this.slottedRadioButtons
|
|
117
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
117
118
|
if (this.disabled) radio.disabled = true;
|
|
118
119
|
else radio.disabled = false;
|
|
119
120
|
});
|
|
120
121
|
}
|
|
121
122
|
nameChanged() {
|
|
122
|
-
this.slottedRadioButtons
|
|
123
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
123
124
|
radio.setAttribute("name", this.name);
|
|
124
125
|
});
|
|
125
126
|
}
|
|
@@ -127,7 +128,7 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
127
128
|
* @internal
|
|
128
129
|
*/
|
|
129
130
|
valueChanged() {
|
|
130
|
-
this.slottedRadioButtons
|
|
131
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
131
132
|
if (radio.value === this.value) radio.checked = true;
|
|
132
133
|
});
|
|
133
134
|
this.$emit("change");
|
|
@@ -136,7 +137,7 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
136
137
|
* @internal
|
|
137
138
|
*/
|
|
138
139
|
handleSlotChange() {
|
|
139
|
-
if (this.errorText) this.slottedRadioButtons
|
|
140
|
+
if (this.errorText) this.slottedRadioButtons.forEach((radio) => {
|
|
140
141
|
radio.errorText = this.errorText;
|
|
141
142
|
});
|
|
142
143
|
}
|
|
@@ -148,13 +149,13 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
148
149
|
else this.errorValidationMessage = "";
|
|
149
150
|
}
|
|
150
151
|
get #focusableRadioButtons() {
|
|
151
|
-
return this.slottedRadioButtons
|
|
152
|
+
return this.slottedRadioButtons.filter((radio) => !radio.disabled);
|
|
152
153
|
}
|
|
153
154
|
/**
|
|
154
155
|
* @internal
|
|
155
156
|
*/
|
|
156
157
|
slottedRadioButtonsChanged() {
|
|
157
|
-
if (this.slottedRadioButtons
|
|
158
|
+
if (this.slottedRadioButtons.length > 0) this.setupRadioButtons();
|
|
158
159
|
}
|
|
159
160
|
get isInsideToolbar() {
|
|
160
161
|
return !!this.closest("[role=\"toolbar\"]");
|
|
@@ -167,7 +168,7 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
167
168
|
this.setupRadioButtons();
|
|
168
169
|
}
|
|
169
170
|
disconnectedCallback() {
|
|
170
|
-
this.slottedRadioButtons
|
|
171
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
171
172
|
radio.removeEventListener("change", this.radioChangeHandler);
|
|
172
173
|
radio.removeEventListener("invalid", this.radioErrorHandler);
|
|
173
174
|
});
|
|
@@ -187,8 +188,8 @@ var RadioGroup = class extends require_mixins.WithFeedback(require_vivid_element
|
|
|
187
188
|
radio.addEventListener("change", this.radioChangeHandler);
|
|
188
189
|
radio.addEventListener("invalid", this.radioErrorHandler);
|
|
189
190
|
}
|
|
190
|
-
if (this.value === void 0 && this.slottedRadioButtons
|
|
191
|
-
const checkedRadios = this.slottedRadioButtons
|
|
191
|
+
if (this.value === void 0 && this.slottedRadioButtons.length > 0) {
|
|
192
|
+
const checkedRadios = this.slottedRadioButtons.filter((radio) => radio.hasAttribute("checked"));
|
|
192
193
|
if (checkedRadios.length > 0 && !foundMatchingVal) {
|
|
193
194
|
const lastCheckedRadio = checkedRadios[checkedRadios.length - 1];
|
|
194
195
|
lastCheckedRadio.checked = true;
|
|
@@ -31,7 +31,7 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
31
31
|
this.radioChangeHandler = (e) => {
|
|
32
32
|
const changedRadio = e.target;
|
|
33
33
|
if (changedRadio.checked) {
|
|
34
|
-
this.slottedRadioButtons
|
|
34
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
35
35
|
if (radio !== changedRadio) radio.checked = false;
|
|
36
36
|
});
|
|
37
37
|
this.value = changedRadio.value;
|
|
@@ -45,16 +45,17 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
45
45
|
radio.focus();
|
|
46
46
|
};
|
|
47
47
|
this.moveRightOffGroup = () => {
|
|
48
|
-
this.nextElementSibling
|
|
48
|
+
const next = this.nextElementSibling;
|
|
49
|
+
if (next instanceof HTMLElement) next.focus();
|
|
49
50
|
};
|
|
50
51
|
this.moveLeftOffGroup = () => {
|
|
51
|
-
this.previousElementSibling
|
|
52
|
+
const prev = this.previousElementSibling;
|
|
53
|
+
if (prev instanceof HTMLElement) prev.focus();
|
|
52
54
|
};
|
|
53
55
|
this.moveRight = (e) => {
|
|
54
56
|
const radio = e.target;
|
|
55
57
|
const group = this.#focusableRadioButtons;
|
|
56
|
-
let index =
|
|
57
|
-
index = group.indexOf(radio) + 1;
|
|
58
|
+
let index = group.indexOf(radio) + 1;
|
|
58
59
|
if (index === group.length && this.isInsideToolbar && e.key === "ArrowRight") {
|
|
59
60
|
this.moveRightOffGroup();
|
|
60
61
|
return;
|
|
@@ -77,15 +78,15 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
77
78
|
switch (e.key) {
|
|
78
79
|
case keyEnter:
|
|
79
80
|
this.checkFocusedRadio(e.target);
|
|
80
|
-
|
|
81
|
+
return;
|
|
81
82
|
case keyArrowRight$1:
|
|
82
83
|
case keyArrowDown:
|
|
83
84
|
this.moveRight(e);
|
|
84
|
-
|
|
85
|
+
return;
|
|
85
86
|
case keyArrowLeft$1:
|
|
86
87
|
case keyArrowUp:
|
|
87
88
|
this.moveLeft(e);
|
|
88
|
-
|
|
89
|
+
return;
|
|
89
90
|
default: return true;
|
|
90
91
|
}
|
|
91
92
|
};
|
|
@@ -94,7 +95,7 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
94
95
|
* @internal
|
|
95
96
|
*/
|
|
96
97
|
requiredChanged() {
|
|
97
|
-
this.slottedRadioButtons
|
|
98
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
98
99
|
if (this.required) radio.required = true;
|
|
99
100
|
else radio.required = false;
|
|
100
101
|
});
|
|
@@ -103,7 +104,7 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
103
104
|
* @internal
|
|
104
105
|
*/
|
|
105
106
|
readOnlyChanged() {
|
|
106
|
-
this.slottedRadioButtons
|
|
107
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
107
108
|
if (this.readOnly) radio.readOnly = true;
|
|
108
109
|
else radio.readOnly = false;
|
|
109
110
|
});
|
|
@@ -112,13 +113,13 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
112
113
|
* @internal
|
|
113
114
|
*/
|
|
114
115
|
disabledChanged() {
|
|
115
|
-
this.slottedRadioButtons
|
|
116
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
116
117
|
if (this.disabled) radio.disabled = true;
|
|
117
118
|
else radio.disabled = false;
|
|
118
119
|
});
|
|
119
120
|
}
|
|
120
121
|
nameChanged() {
|
|
121
|
-
this.slottedRadioButtons
|
|
122
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
122
123
|
radio.setAttribute("name", this.name);
|
|
123
124
|
});
|
|
124
125
|
}
|
|
@@ -126,7 +127,7 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
126
127
|
* @internal
|
|
127
128
|
*/
|
|
128
129
|
valueChanged() {
|
|
129
|
-
this.slottedRadioButtons
|
|
130
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
130
131
|
if (radio.value === this.value) radio.checked = true;
|
|
131
132
|
});
|
|
132
133
|
this.$emit("change");
|
|
@@ -135,7 +136,7 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
135
136
|
* @internal
|
|
136
137
|
*/
|
|
137
138
|
handleSlotChange() {
|
|
138
|
-
if (this.errorText) this.slottedRadioButtons
|
|
139
|
+
if (this.errorText) this.slottedRadioButtons.forEach((radio) => {
|
|
139
140
|
radio.errorText = this.errorText;
|
|
140
141
|
});
|
|
141
142
|
}
|
|
@@ -147,13 +148,13 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
147
148
|
else this.errorValidationMessage = "";
|
|
148
149
|
}
|
|
149
150
|
get #focusableRadioButtons() {
|
|
150
|
-
return this.slottedRadioButtons
|
|
151
|
+
return this.slottedRadioButtons.filter((radio) => !radio.disabled);
|
|
151
152
|
}
|
|
152
153
|
/**
|
|
153
154
|
* @internal
|
|
154
155
|
*/
|
|
155
156
|
slottedRadioButtonsChanged() {
|
|
156
|
-
if (this.slottedRadioButtons
|
|
157
|
+
if (this.slottedRadioButtons.length > 0) this.setupRadioButtons();
|
|
157
158
|
}
|
|
158
159
|
get isInsideToolbar() {
|
|
159
160
|
return !!this.closest("[role=\"toolbar\"]");
|
|
@@ -166,7 +167,7 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
166
167
|
this.setupRadioButtons();
|
|
167
168
|
}
|
|
168
169
|
disconnectedCallback() {
|
|
169
|
-
this.slottedRadioButtons
|
|
170
|
+
this.slottedRadioButtons.forEach((radio) => {
|
|
170
171
|
radio.removeEventListener("change", this.radioChangeHandler);
|
|
171
172
|
radio.removeEventListener("invalid", this.radioErrorHandler);
|
|
172
173
|
});
|
|
@@ -186,8 +187,8 @@ var RadioGroup = class extends WithFeedback(VividElement) {
|
|
|
186
187
|
radio.addEventListener("change", this.radioChangeHandler);
|
|
187
188
|
radio.addEventListener("invalid", this.radioErrorHandler);
|
|
188
189
|
}
|
|
189
|
-
if (this.value === void 0 && this.slottedRadioButtons
|
|
190
|
-
const checkedRadios = this.slottedRadioButtons
|
|
190
|
+
if (this.value === void 0 && this.slottedRadioButtons.length > 0) {
|
|
191
|
+
const checkedRadios = this.slottedRadioButtons.filter((radio) => radio.hasAttribute("checked"));
|
|
191
192
|
if (checkedRadios.length > 0 && !foundMatchingVal) {
|
|
192
193
|
const lastCheckedRadio = checkedRadios[checkedRadios.length - 1];
|
|
193
194
|
lastCheckedRadio.checked = true;
|
|
@@ -418,7 +418,7 @@ require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.pr
|
|
|
418
418
|
require_decorate.__decorate([_microsoft_fast_element.observable], RangeSlider.prototype, "_selectedRangeCss", void 0);
|
|
419
419
|
//#endregion
|
|
420
420
|
//#region src/lib/range-slider/range-slider.template.ts
|
|
421
|
-
var getClasses = ({ disabled, connotation }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["disabled",
|
|
421
|
+
var getClasses = ({ disabled, connotation }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["disabled", disabled], [`connotation-${connotation}`, Boolean(connotation)]);
|
|
422
422
|
var getThumbClassesFor = (thumb) => ({ _visiblyFocusedThumb }) => (0, _microsoft_fast_web_utilities.classNames)("thumb-container", ["focus-visible", _visiblyFocusedThumb === thumb]);
|
|
423
423
|
var RangeSliderTemplate = (context) => {
|
|
424
424
|
const popupTag = context.tagFor(require_definition.Popup);
|
|
@@ -417,7 +417,7 @@ __decorate([observable], RangeSlider.prototype, "_endThumbCss", void 0);
|
|
|
417
417
|
__decorate([observable], RangeSlider.prototype, "_selectedRangeCss", void 0);
|
|
418
418
|
//#endregion
|
|
419
419
|
//#region src/lib/range-slider/range-slider.template.ts
|
|
420
|
-
var getClasses = ({ disabled, connotation }) => classNames("control", ["disabled",
|
|
420
|
+
var getClasses = ({ disabled, connotation }) => classNames("control", ["disabled", disabled], [`connotation-${connotation}`, Boolean(connotation)]);
|
|
421
421
|
var getThumbClassesFor = (thumb) => ({ _visiblyFocusedThumb }) => classNames("thumb-container", ["focus-visible", _visiblyFocusedThumb === thumb]);
|
|
422
422
|
var RangeSliderTemplate = (context) => {
|
|
423
423
|
const popupTag = context.tagFor(Popup);
|