@vonage/vivid 5.23.1 → 5.24.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 +1 -1
- package/accordion-item/index.cjs +1 -1
- package/accordion-item/index.js +1 -1
- package/audio-player/index.cjs +2 -2
- package/audio-player/index.js +3 -3
- package/badge/index.cjs +1 -1
- package/badge/index.js +1 -1
- package/bundled/definition15.cjs +8 -7
- package/bundled/definition15.js +26 -24
- package/bundled/definition17.cjs +2 -2
- package/bundled/definition17.js +2 -2
- package/bundled/definition18.cjs +12 -83
- package/bundled/definition18.js +35 -419
- package/bundled/definition19.cjs +87 -7
- package/bundled/definition19.js +432 -16
- package/bundled/definition20.cjs +7 -37
- package/bundled/definition20.js +17 -172
- package/bundled/definition21.cjs +35 -27
- package/bundled/definition21.js +154 -154
- package/bundled/definition22.cjs +29 -6
- package/bundled/definition22.js +172 -20
- package/bundled/definition23.cjs +6 -12
- package/bundled/definition23.js +17 -32
- package/bundled/definition24.cjs +12 -39
- package/bundled/definition24.js +32 -67
- package/bundled/definition25.cjs +44 -0
- package/bundled/definition25.js +77 -0
- package/bundled/extractOptions.cjs +1 -0
- package/bundled/extractOptions.js +11 -0
- package/bundled/listbox.cjs +1 -1
- package/bundled/listbox.js +24 -11
- package/bundled/render-in-light-dom.cjs +1 -1
- package/bundled/render-in-light-dom.js +16 -19
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +9 -1
- package/combobox/definition.cjs +1 -1
- package/combobox/definition.js +1 -1
- package/combobox/index.cjs +7 -7
- package/combobox/index.js +29 -21
- package/country/definition.cjs +1 -1
- package/country/definition.js +1 -1
- package/country/index.cjs +1 -1
- package/country/index.js +1 -1
- package/country-group/definition.cjs +1 -1
- package/country-group/definition.js +1 -1
- package/country-group/index.cjs +1 -1
- package/country-group/index.js +2 -2
- package/custom-elements.json +3102 -2842
- package/data-grid/definition.cjs +1 -1
- package/data-grid/definition.js +1 -1
- package/data-grid/index.cjs +4 -4
- package/data-grid/index.js +5 -5
- package/date-picker/definition.cjs +1 -1
- package/date-picker/definition.js +1 -1
- package/date-picker/index.cjs +1 -1
- package/date-picker/index.js +1 -1
- package/date-range-picker/definition.cjs +1 -1
- package/date-range-picker/definition.js +1 -1
- package/date-range-picker/index.cjs +1 -1
- package/date-range-picker/index.js +1 -1
- package/date-time-picker/definition.cjs +1 -1
- package/date-time-picker/definition.js +1 -1
- package/date-time-picker/index.cjs +1 -1
- package/date-time-picker/index.js +1 -1
- package/dial-pad/definition.cjs +1 -1
- package/dial-pad/definition.js +1 -1
- package/dial-pad/index.cjs +24 -24
- package/dial-pad/index.js +120 -51
- package/dialog/definition.cjs +1 -1
- package/dialog/definition.js +1 -1
- package/divider/definition.cjs +1 -1
- package/divider/definition.js +1 -1
- package/divider/index.cjs +1 -1
- package/divider/index.js +1 -1
- package/empty-state/definition.cjs +1 -1
- package/empty-state/definition.js +1 -1
- package/fab/definition.cjs +1 -1
- package/fab/definition.js +1 -1
- package/file-picker/definition.cjs +1 -1
- package/file-picker/definition.js +1 -1
- package/flag/definition.cjs +1 -1
- package/flag/definition.js +1 -1
- package/header/definition.cjs +1 -1
- package/header/definition.js +1 -1
- package/header/index.cjs +3 -3
- package/header/index.js +3 -3
- package/index.cjs +200 -196
- package/index.js +53 -52
- package/kbd-key/definition.cjs +1 -1
- package/kbd-key/definition.js +1 -1
- package/kbd-shortcut/definition.cjs +1 -1
- package/kbd-shortcut/definition.js +1 -1
- package/layout/definition.cjs +1 -1
- package/layout/definition.js +1 -1
- package/lib/accordion-item/accordion-item.d.ts +2 -1
- package/lib/action-group/action-group.d.ts +1 -1
- package/lib/alert/alert.d.ts +2 -2
- package/lib/audio-player/audio-player.d.ts +1 -1
- package/lib/avatar/avatar.d.ts +1 -1
- package/lib/badge/badge.d.ts +1 -1
- package/lib/banner/banner.d.ts +3 -3
- package/lib/breadcrumb/breadcrumb.d.ts +1 -1
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +1 -1
- package/lib/button/button.d.ts +3 -3
- package/lib/calendar-event/calendar-event.d.ts +1 -1
- package/lib/card/card.d.ts +1 -1
- package/lib/checkbox/checkbox.d.ts +6 -6
- package/lib/color-picker/color-picker.d.ts +7 -7
- package/lib/combobox/combobox.d.ts +7 -7
- package/lib/components.d.ts +1 -0
- package/lib/country-group/country-group.d.ts +2 -2
- package/lib/data-grid/data-grid-cell.d.ts +4 -3
- package/lib/data-grid/data-grid-row.d.ts +3 -2
- package/lib/data-grid/data-grid.options.d.ts +5 -0
- package/lib/date-picker/date-picker.d.ts +8 -8
- package/lib/date-range-picker/date-range-picker.d.ts +4 -4
- package/lib/date-time-picker/date-time-picker.d.ts +8 -8
- package/lib/dial-pad/dial-pad.d.ts +2 -1
- package/lib/dialog/dialog.d.ts +2 -2
- package/lib/divider/divider.d.ts +1 -1
- package/lib/fab/fab.d.ts +1 -1
- package/lib/file-picker/file-picker.d.ts +7 -7
- package/lib/header/header.d.ts +1 -1
- package/lib/menu/menu.d.ts +2 -2
- package/lib/menu-item/menu-item.d.ts +3 -3
- package/lib/nav/nav.d.ts +1 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +2 -2
- package/lib/nav-item/nav-item.d.ts +2 -2
- package/lib/note/note.d.ts +1 -1
- package/lib/number-field/number-field.d.ts +9 -9
- package/lib/optgroup/definition.d.ts +3 -0
- package/lib/optgroup/index.d.ts +1 -0
- package/lib/optgroup/optgroup.d.ts +430 -0
- package/lib/optgroup/optgroup.template.d.ts +2 -0
- package/lib/optgroup/variations.browser-spec.d.ts +1 -0
- package/lib/option/option.d.ts +2 -2
- package/lib/pagination/pagination.d.ts +1 -1
- package/lib/popover/popover.d.ts +2 -2
- package/lib/progress/progress.d.ts +1 -1
- package/lib/progress-ring/progress-ring.d.ts +1 -1
- package/lib/radio/radio.d.ts +3 -3
- package/lib/radio-group/radio-group.d.ts +1 -1
- package/lib/range-slider/range-slider.d.ts +3 -3
- package/lib/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/lib/searchable-select/option-tag.d.ts +1 -1
- package/lib/searchable-select/searchable-select.d.ts +47 -47
- package/lib/select/select.d.ts +9 -9
- package/lib/selectable-box/selectable-box.d.ts +1 -1
- package/lib/simple-color-picker/simple-color-picker.d.ts +2 -2
- package/lib/slider/slider.d.ts +3 -3
- package/lib/split-button/split-button.d.ts +3 -3
- package/lib/status/status.d.ts +1 -1
- package/lib/switch/switch.d.ts +2 -2
- package/lib/tab/tab.d.ts +3 -3
- package/lib/tab-panel/tab-panel.d.ts +1 -1
- package/lib/table/table-cell.d.ts +1 -1
- package/lib/table/table-header-cell.d.ts +1 -1
- package/lib/table/table-row.d.ts +1 -1
- package/lib/table/table-sorting-button.d.ts +1 -1
- package/lib/tag/tag.d.ts +3 -3
- package/lib/tag-group/tag-group.d.ts +1 -1
- package/lib/tag-name-map.d.ts +2 -1
- package/lib/text-area/text-area.d.ts +8 -8
- package/lib/text-field/text-field.d.ts +9 -9
- package/lib/time-picker/time-picker.d.ts +4 -4
- package/lib/toggletip/toggletip.d.ts +2 -2
- package/lib/tooltip/tooltip.d.ts +2 -2
- package/lib/tree-item/tree-item.d.ts +2 -2
- package/lib/tree-view/tree-view.d.ts +1 -1
- package/lib/video-player/video-player.d.ts +1 -1
- package/menu/index.cjs +1 -1
- package/menu/index.js +1 -1
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +1 -1
- package/nav/definition.cjs +1 -1
- package/nav/definition.js +1 -1
- package/nav-disclosure/definition.cjs +1 -1
- package/nav-disclosure/definition.js +1 -1
- package/nav-item/definition.cjs +1 -1
- package/nav-item/definition.js +1 -1
- package/note/definition.cjs +1 -1
- package/note/definition.js +1 -1
- package/number-field/definition.cjs +1 -1
- package/number-field/definition.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/optgroup/definition.cjs +5 -0
- package/optgroup/definition.js +2 -0
- package/optgroup/index.cjs +1 -0
- package/optgroup/index.js +4 -0
- package/package.json +6 -6
- package/pagination/definition.cjs +1 -1
- package/pagination/definition.js +1 -1
- package/platform-switch/definition.cjs +1 -1
- package/platform-switch/definition.js +1 -1
- package/popover/definition.cjs +1 -1
- package/popover/definition.js +1 -1
- package/progress/definition.cjs +1 -1
- package/progress/definition.js +1 -1
- package/radio/definition.cjs +1 -1
- package/radio/definition.js +1 -1
- package/radio-group/definition.cjs +1 -1
- package/radio-group/definition.js +1 -1
- package/range-slider/definition.cjs +1 -1
- package/range-slider/definition.js +1 -1
- package/rich-text-editor/definition.cjs +1 -1
- package/rich-text-editor/definition.js +1 -1
- package/rich-text-editor/index.cjs +1 -1
- package/rich-text-editor/index.js +4 -4
- package/rich-text-view/definition.cjs +1 -1
- package/rich-text-view/definition.js +1 -1
- package/searchable-select/definition.cjs +1 -1
- package/searchable-select/definition.js +1 -1
- package/searchable-select/index.cjs +19 -19
- package/searchable-select/index.js +60 -45
- package/select/definition.cjs +1 -1
- package/select/definition.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/selectable-box/definition.cjs +1 -1
- package/selectable-box/definition.js +1 -1
- package/shared/aria/delegates-aria.d.ts +1 -1
- package/shared/aria/host-semantics.d.ts +1 -1
- package/shared/color-picker/base-color-picker.d.ts +1 -1
- package/shared/feedback/feedback-message.d.ts +1 -1
- package/shared/feedback/mixins.d.ts +2 -2
- package/shared/foundation/button/button.d.ts +2 -2
- package/shared/foundation/form-associated/form-associated.d.ts +2 -2
- package/shared/foundation/listbox/extractOptions.d.ts +2 -0
- package/shared/foundation/listbox/listbox.d.ts +2 -0
- package/shared/patterns/affix.d.ts +2 -2
- package/shared/patterns/anchored.d.ts +2 -2
- package/shared/patterns/char-count/char-count.d.ts +1 -1
- package/shared/patterns/form-elements/form-element.d.ts +1 -1
- package/shared/patterns/form-elements/with-contextual-help.d.ts +1 -1
- package/shared/patterns/form-elements/with-error-text.d.ts +1 -1
- package/shared/patterns/form-elements/with-success-text.d.ts +1 -1
- package/shared/patterns/kbd-shortcut.d.ts +1 -1
- package/shared/patterns/linkable.d.ts +1 -1
- package/shared/patterns/localized.d.ts +2 -2
- package/shared/patterns/trapped-focus.d.ts +1 -1
- package/shared/picker-field/mixins/calendar-picker.d.ts +2 -2
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +2 -2
- package/shared/picker-field/mixins/inline-time-picker/inline-time-picker.d.ts +1 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +2 -2
- package/shared/picker-field/mixins/single-date-picker.d.ts +2 -2
- package/shared/picker-field/mixins/single-value-picker.d.ts +2 -2
- package/shared/picker-field/mixins/time-selection-picker.d.ts +2 -2
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +4 -4
- package/shared/picker-field/picker-field.d.ts +7 -7
- package/side-drawer/definition.cjs +1 -1
- package/side-drawer/definition.js +1 -1
- package/simple-color-picker/definition.cjs +1 -1
- package/simple-color-picker/definition.js +1 -1
- package/split-button/definition.cjs +1 -1
- package/split-button/definition.js +1 -1
- package/split-button/index.cjs +1 -0
- package/split-button/index.js +1 -0
- package/status/definition.cjs +1 -1
- package/status/definition.js +1 -1
- package/switch/definition.cjs +1 -1
- package/switch/definition.js +1 -1
- package/switch/index.cjs +6 -5
- package/switch/index.js +16 -14
- package/tab/definition.cjs +1 -1
- package/tab/definition.js +1 -1
- package/tab-panel/definition.cjs +1 -1
- package/tab-panel/definition.js +1 -1
- package/table/definition.cjs +1 -1
- package/table/definition.js +1 -1
- package/tabs/definition.cjs +1 -1
- package/tabs/definition.js +1 -1
- package/tag/definition.cjs +1 -1
- package/tag/definition.js +1 -1
- package/tag-group/definition.cjs +1 -1
- package/tag-group/definition.js +1 -1
- package/text-area/definition.cjs +1 -1
- package/text-area/definition.js +1 -1
- package/time-picker/definition.cjs +1 -1
- package/time-picker/definition.js +1 -1
- package/tree-item/definition.cjs +1 -1
- package/tree-item/definition.js +1 -1
- package/tree-view/definition.cjs +1 -1
- package/tree-view/definition.js +1 -1
- package/unbundled/definition13.cjs +1 -1
- package/unbundled/definition13.js +1 -1
- package/unbundled/definition2.cjs +9 -3
- package/unbundled/definition2.js +9 -3
- package/unbundled/definition23.cjs +1 -0
- package/unbundled/definition23.js +2 -1
- package/unbundled/definition29.cjs +2 -2
- package/unbundled/definition29.js +2 -2
- package/unbundled/definition30.cjs +65 -484
- package/unbundled/definition30.js +57 -482
- package/unbundled/definition31.cjs +501 -39
- package/unbundled/definition31.js +499 -37
- package/unbundled/definition32.cjs +38 -239
- package/unbundled/definition32.js +35 -236
- package/unbundled/definition33.cjs +236 -74
- package/unbundled/definition33.js +233 -71
- package/unbundled/definition34.cjs +74 -1968
- package/unbundled/definition34.js +70 -1940
- package/unbundled/definition35.cjs +1992 -26
- package/unbundled/definition35.js +1964 -27
- package/unbundled/definition36.cjs +26 -111
- package/unbundled/definition36.js +23 -103
- package/unbundled/definition37.cjs +53 -294
- package/unbundled/definition37.js +50 -291
- package/unbundled/definition38.cjs +282 -132
- package/unbundled/definition38.js +279 -129
- package/unbundled/definition39.cjs +165 -339
- package/unbundled/definition39.js +163 -337
- package/unbundled/definition40.cjs +394 -228
- package/unbundled/definition40.js +391 -225
- package/unbundled/definition41.cjs +263 -46
- package/unbundled/definition41.js +258 -41
- package/unbundled/definition42.cjs +47 -67
- package/unbundled/definition42.js +45 -65
- package/unbundled/definition43.cjs +56 -383
- package/unbundled/definition43.js +55 -382
- package/unbundled/definition44.cjs +386 -44
- package/unbundled/definition44.js +382 -40
- package/unbundled/definition45.cjs +53 -45
- package/unbundled/definition45.js +49 -41
- package/unbundled/definition46.cjs +40 -164
- package/unbundled/definition46.js +36 -160
- package/unbundled/definition47.cjs +171 -31
- package/unbundled/definition47.js +168 -22
- package/unbundled/definition48.cjs +30 -89
- package/unbundled/definition48.js +22 -87
- package/unbundled/definition49.cjs +70 -33
- package/unbundled/definition49.js +67 -30
- package/unbundled/definition50.cjs +54 -23
- package/unbundled/definition50.js +52 -18
- package/unbundled/definition51.cjs +23 -39
- package/unbundled/definition51.js +17 -36
- package/unbundled/definition52.cjs +29 -314
- package/unbundled/definition52.js +27 -312
- package/unbundled/definition53.cjs +301 -195
- package/unbundled/definition53.js +297 -191
- package/unbundled/definition54.cjs +210 -40
- package/unbundled/definition54.js +206 -36
- package/unbundled/definition55.cjs +42 -266
- package/unbundled/definition55.js +38 -262
- package/unbundled/definition56.cjs +266 -50
- package/unbundled/definition56.js +263 -46
- package/unbundled/definition57.cjs +48 -146
- package/unbundled/definition57.js +47 -143
- package/unbundled/definition58.cjs +127 -225
- package/unbundled/definition58.js +122 -223
- package/unbundled/definition59.cjs +199 -418
- package/unbundled/definition59.js +196 -415
- package/unbundled/definition60.cjs +441 -3738
- package/unbundled/definition60.js +431 -3565
- package/unbundled/definition61.cjs +3712 -728
- package/unbundled/definition61.js +3538 -717
- package/unbundled/definition62.cjs +769 -97
- package/unbundled/definition62.js +766 -94
- package/unbundled/definition63.cjs +100 -981
- package/unbundled/definition63.js +98 -976
- package/unbundled/definition64.cjs +988 -93
- package/unbundled/definition64.js +982 -90
- package/unbundled/definition65.cjs +109 -73
- package/unbundled/definition65.js +105 -63
- package/unbundled/definition66.cjs +69 -155
- package/unbundled/definition66.js +60 -152
- package/unbundled/definition67.cjs +154 -118
- package/unbundled/definition67.js +151 -115
- package/unbundled/definition68.cjs +124 -49
- package/unbundled/definition68.js +120 -45
- package/unbundled/definition69.cjs +51 -84
- package/unbundled/definition69.js +50 -80
- package/unbundled/definition70.cjs +91 -19
- package/unbundled/definition70.js +86 -14
- package/unbundled/definition71.cjs +20 -87
- package/unbundled/definition71.js +14 -84
- package/unbundled/definition72.cjs +76 -294
- package/unbundled/definition72.js +71 -217
- package/unbundled/definition73.cjs +288 -311
- package/unbundled/definition73.js +218 -306
- package/unbundled/definition74.cjs +326 -26
- package/unbundled/definition74.js +317 -23
- package/unbundled/definition75.cjs +27 -122
- package/unbundled/definition75.js +22 -118
- package/unbundled/definition76.cjs +103 -232
- package/unbundled/definition76.js +99 -228
- package/unbundled/definition77.cjs +259 -26
- package/unbundled/definition77.js +249 -23
- package/unbundled/definition78.cjs +29 -148
- package/unbundled/definition78.js +27 -133
- package/unbundled/definition79.cjs +117 -173
- package/unbundled/definition79.js +108 -169
- package/unbundled/definition80.cjs +181 -477
- package/unbundled/definition80.js +176 -471
- package/unbundled/definition81.cjs +517 -0
- package/unbundled/definition81.js +497 -0
- package/unbundled/extractOptions.cjs +21 -0
- package/unbundled/extractOptions.js +16 -0
- package/unbundled/listbox.cjs +23 -6
- package/unbundled/listbox.js +23 -6
- package/unbundled/vivid-element.cjs +10 -1
- package/unbundled/vivid-element.js +10 -1
- package/video-player/definition.cjs +1 -1
- package/video-player/definition.js +1 -1
- package/vivid.api.json +194 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const require_definition = require("./definition29.cjs");
|
|
2
|
+
const require_definition$1 = require("./definition30.cjs");
|
|
3
|
+
//#region src/shared/foundation/listbox/extractOptions.ts
|
|
4
|
+
/**
|
|
5
|
+
* Extracts all options from a list of slotted elements, including options nested inside optgroups.
|
|
6
|
+
*/
|
|
7
|
+
function extractOptions(elements) {
|
|
8
|
+
const options = [];
|
|
9
|
+
for (const item of elements) if (require_definition.isListboxOption(item)) options.push(item);
|
|
10
|
+
else if (require_definition$1.isOptgroup(item)) {
|
|
11
|
+
for (const child of Array.from(item.children)) if (require_definition.isListboxOption(child)) options.push(child);
|
|
12
|
+
}
|
|
13
|
+
return options;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
Object.defineProperty(exports, "extractOptions", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function() {
|
|
19
|
+
return extractOptions;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { i as isListboxOption } from "./definition29.js";
|
|
2
|
+
import { i as isOptgroup } from "./definition30.js";
|
|
3
|
+
//#region src/shared/foundation/listbox/extractOptions.ts
|
|
4
|
+
/**
|
|
5
|
+
* Extracts all options from a list of slotted elements, including options nested inside optgroups.
|
|
6
|
+
*/
|
|
7
|
+
function extractOptions(elements) {
|
|
8
|
+
const options = [];
|
|
9
|
+
for (const item of elements) if (isListboxOption(item)) options.push(item);
|
|
10
|
+
else if (isOptgroup(item)) {
|
|
11
|
+
for (const child of Array.from(item.children)) if (isListboxOption(child)) options.push(child);
|
|
12
|
+
}
|
|
13
|
+
return options;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { extractOptions as t };
|
package/unbundled/listbox.cjs
CHANGED
|
@@ -2,6 +2,8 @@ require("./chunk.cjs");
|
|
|
2
2
|
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
3
|
const require_decorate = require("./decorate.cjs");
|
|
4
4
|
const require_definition = require("./definition29.cjs");
|
|
5
|
+
const require_definition$1 = require("./definition30.cjs");
|
|
6
|
+
const require_extractOptions = require("./extractOptions.cjs");
|
|
5
7
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
6
8
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
7
9
|
//#region src/shared/foundation/listbox/listbox.ts
|
|
@@ -16,6 +18,9 @@ var Listbox = class Listbox extends require_vivid_element.VividElement {
|
|
|
16
18
|
this.typeaheadExpired = true;
|
|
17
19
|
this.typeaheadTimeout = -1;
|
|
18
20
|
this._activeDescendant = null;
|
|
21
|
+
this._onOptgroupChange = () => {
|
|
22
|
+
this.slottedOptionsChanged(void 0, this.slottedOptions);
|
|
23
|
+
};
|
|
19
24
|
}
|
|
20
25
|
/**
|
|
21
26
|
* The first selected option.
|
|
@@ -44,7 +49,7 @@ var Listbox = class Listbox extends require_vivid_element.VividElement {
|
|
|
44
49
|
}
|
|
45
50
|
}
|
|
46
51
|
static {
|
|
47
|
-
this.slottedOptionFilter = (n) => require_definition.isListboxOption(n) && !n.hidden;
|
|
52
|
+
this.slottedOptionFilter = (n) => require_definition.isListboxOption(n) && !n.hidden || require_definition$1.isOptgroup(n);
|
|
48
53
|
}
|
|
49
54
|
static {
|
|
50
55
|
this.TYPE_AHEAD_TIMEOUT_MS = 1e3;
|
|
@@ -300,16 +305,20 @@ var Listbox = class Listbox extends require_vivid_element.VividElement {
|
|
|
300
305
|
this.focusAndScrollOptionIntoView();
|
|
301
306
|
}
|
|
302
307
|
/**
|
|
308
|
+
* Extracts all options from a list of slotted elements, including options nested inside optgroups.
|
|
309
|
+
*
|
|
310
|
+
* @internal
|
|
311
|
+
*/
|
|
312
|
+
static extractOptions(elements) {
|
|
313
|
+
return require_extractOptions.extractOptions(elements);
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
303
316
|
* Updates the list of options and resets the selected option when the slotted option content changes.
|
|
304
317
|
*
|
|
305
318
|
* @internal
|
|
306
319
|
*/
|
|
307
320
|
slottedOptionsChanged(_, next) {
|
|
308
|
-
this.options =
|
|
309
|
-
/* v8 ignore else -- @preserve */
|
|
310
|
-
if (require_definition.isListboxOption(item)) options.push(item);
|
|
311
|
-
return options;
|
|
312
|
-
}, []);
|
|
321
|
+
this.options = Listbox.extractOptions(next);
|
|
313
322
|
const setSize = `${this.options.length}`;
|
|
314
323
|
this.options.forEach((option, index) => {
|
|
315
324
|
if (!option.id) option.id = (0, _microsoft_fast_web_utilities.uniqueId)("option-");
|
|
@@ -334,6 +343,14 @@ var Listbox = class Listbox extends require_vivid_element.VividElement {
|
|
|
334
343
|
this.typeaheadExpired = false;
|
|
335
344
|
}
|
|
336
345
|
}
|
|
346
|
+
connectedCallback() {
|
|
347
|
+
super.connectedCallback();
|
|
348
|
+
this.addEventListener("optgroup-change", this._onOptgroupChange);
|
|
349
|
+
}
|
|
350
|
+
disconnectedCallback() {
|
|
351
|
+
this.removeEventListener("optgroup-change", this._onOptgroupChange);
|
|
352
|
+
super.disconnectedCallback();
|
|
353
|
+
}
|
|
337
354
|
};
|
|
338
355
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Listbox.prototype, "disabled", void 0);
|
|
339
356
|
require_decorate.__decorate([_microsoft_fast_element.observable], Listbox.prototype, "selectedIndex", void 0);
|
package/unbundled/listbox.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { t as VividElement } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { i as isListboxOption } from "./definition29.js";
|
|
4
|
+
import { i as isOptgroup } from "./definition30.js";
|
|
5
|
+
import { t as extractOptions } from "./extractOptions.js";
|
|
4
6
|
import { Observable, attr, observable } from "@microsoft/fast-element";
|
|
5
7
|
import { findLastIndex, keyArrowDown, keyArrowUp, keyEnd, keyEnter, keyEscape, keyHome, keySpace, keyTab, uniqueId } from "@microsoft/fast-web-utilities";
|
|
6
8
|
//#region src/shared/foundation/listbox/listbox.ts
|
|
@@ -15,6 +17,9 @@ var Listbox = class Listbox extends VividElement {
|
|
|
15
17
|
this.typeaheadExpired = true;
|
|
16
18
|
this.typeaheadTimeout = -1;
|
|
17
19
|
this._activeDescendant = null;
|
|
20
|
+
this._onOptgroupChange = () => {
|
|
21
|
+
this.slottedOptionsChanged(void 0, this.slottedOptions);
|
|
22
|
+
};
|
|
18
23
|
}
|
|
19
24
|
/**
|
|
20
25
|
* The first selected option.
|
|
@@ -43,7 +48,7 @@ var Listbox = class Listbox extends VividElement {
|
|
|
43
48
|
}
|
|
44
49
|
}
|
|
45
50
|
static {
|
|
46
|
-
this.slottedOptionFilter = (n) => isListboxOption(n) && !n.hidden;
|
|
51
|
+
this.slottedOptionFilter = (n) => isListboxOption(n) && !n.hidden || isOptgroup(n);
|
|
47
52
|
}
|
|
48
53
|
static {
|
|
49
54
|
this.TYPE_AHEAD_TIMEOUT_MS = 1e3;
|
|
@@ -299,16 +304,20 @@ var Listbox = class Listbox extends VividElement {
|
|
|
299
304
|
this.focusAndScrollOptionIntoView();
|
|
300
305
|
}
|
|
301
306
|
/**
|
|
307
|
+
* Extracts all options from a list of slotted elements, including options nested inside optgroups.
|
|
308
|
+
*
|
|
309
|
+
* @internal
|
|
310
|
+
*/
|
|
311
|
+
static extractOptions(elements) {
|
|
312
|
+
return extractOptions(elements);
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
302
315
|
* Updates the list of options and resets the selected option when the slotted option content changes.
|
|
303
316
|
*
|
|
304
317
|
* @internal
|
|
305
318
|
*/
|
|
306
319
|
slottedOptionsChanged(_, next) {
|
|
307
|
-
this.options =
|
|
308
|
-
/* v8 ignore else -- @preserve */
|
|
309
|
-
if (isListboxOption(item)) options.push(item);
|
|
310
|
-
return options;
|
|
311
|
-
}, []);
|
|
320
|
+
this.options = Listbox.extractOptions(next);
|
|
312
321
|
const setSize = `${this.options.length}`;
|
|
313
322
|
this.options.forEach((option, index) => {
|
|
314
323
|
if (!option.id) option.id = uniqueId("option-");
|
|
@@ -333,6 +342,14 @@ var Listbox = class Listbox extends VividElement {
|
|
|
333
342
|
this.typeaheadExpired = false;
|
|
334
343
|
}
|
|
335
344
|
}
|
|
345
|
+
connectedCallback() {
|
|
346
|
+
super.connectedCallback();
|
|
347
|
+
this.addEventListener("optgroup-change", this._onOptgroupChange);
|
|
348
|
+
}
|
|
349
|
+
disconnectedCallback() {
|
|
350
|
+
this.removeEventListener("optgroup-change", this._onOptgroupChange);
|
|
351
|
+
super.disconnectedCallback();
|
|
352
|
+
}
|
|
336
353
|
};
|
|
337
354
|
__decorate([attr({ mode: "boolean" })], Listbox.prototype, "disabled", void 0);
|
|
338
355
|
__decorate([observable], Listbox.prototype, "selectedIndex", void 0);
|
|
@@ -287,7 +287,7 @@ var ReplacedPropHandling = (Base) => {
|
|
|
287
287
|
*/
|
|
288
288
|
var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControllerHostSupport(_microsoft_fast_element.FASTElement))) {
|
|
289
289
|
static {
|
|
290
|
-
this.VIVID_VERSION = "5.
|
|
290
|
+
this.VIVID_VERSION = "5.24.0";
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
293
293
|
* Add data-vvd-component attribute with component name globally,
|
|
@@ -298,6 +298,15 @@ var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControll
|
|
|
298
298
|
const name = this.constructor.componentName;
|
|
299
299
|
this.setAttribute("data-vvd-component", name);
|
|
300
300
|
}
|
|
301
|
+
/** @internal */
|
|
302
|
+
focus(...args) {
|
|
303
|
+
const controlEl = this.control;
|
|
304
|
+
if (this.$fastController.definition.shadowOptions?.delegatesFocus && controlEl) {
|
|
305
|
+
controlEl.focus(...args);
|
|
306
|
+
return;
|
|
307
|
+
}
|
|
308
|
+
super.focus(...args);
|
|
309
|
+
}
|
|
301
310
|
};
|
|
302
311
|
//#endregion
|
|
303
312
|
Object.defineProperty(exports, "VividElement", {
|
|
@@ -286,7 +286,7 @@ var ReplacedPropHandling = (Base) => {
|
|
|
286
286
|
*/
|
|
287
287
|
var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControllerHostSupport(FASTElement))) {
|
|
288
288
|
static {
|
|
289
|
-
this.VIVID_VERSION = "5.
|
|
289
|
+
this.VIVID_VERSION = "5.24.0";
|
|
290
290
|
}
|
|
291
291
|
/**
|
|
292
292
|
* Add data-vvd-component attribute with component name globally,
|
|
@@ -297,6 +297,15 @@ var VividElement = class extends AriaMixin(ReplacedPropHandling(ReactiveControll
|
|
|
297
297
|
const name = this.constructor.componentName;
|
|
298
298
|
this.setAttribute("data-vvd-component", name);
|
|
299
299
|
}
|
|
300
|
+
/** @internal */
|
|
301
|
+
focus(...args) {
|
|
302
|
+
const controlEl = this.control;
|
|
303
|
+
if (this.$fastController.definition.shadowOptions?.delegatesFocus && controlEl) {
|
|
304
|
+
controlEl.focus(...args);
|
|
305
|
+
return;
|
|
306
|
+
}
|
|
307
|
+
super.focus(...args);
|
|
308
|
+
}
|
|
300
309
|
};
|
|
301
310
|
//#endregion
|
|
302
311
|
export { ariaValueProperties as a, subscribeToAriaPropertyChanges as c, createRegisterFunction as d, ariaIdrefsProperties as i, unsubscribeFromAriaPropertyChanges as l, replaces as n, handleAriaPropertyChange as o, ariaAttributeName as r, publishAriaPropertyChange as s, VividElement as t, defineVividComponent as u };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_definition = require("../unbundled/
|
|
2
|
+
const require_definition = require("../unbundled/definition81.cjs");
|
|
3
3
|
exports.VwcVideoPlayerElement = require_definition.VideoPlayer;
|
|
4
4
|
exports.registerVideoPlayer = require_definition.registerVideoPlayer;
|
|
5
5
|
exports.videoPlayerDefinition = require_definition.videoPlayerDefinition;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as videoPlayerDefinition, r as VideoPlayer, t as registerVideoPlayer } from "../unbundled/
|
|
1
|
+
import { n as videoPlayerDefinition, r as VideoPlayer, t as registerVideoPlayer } from "../unbundled/definition81.js";
|
|
2
2
|
export { VideoPlayer as VwcVideoPlayerElement, registerVideoPlayer, videoPlayerDefinition };
|
package/vivid.api.json
CHANGED
|
@@ -5859,6 +5859,47 @@
|
|
|
5859
5859
|
],
|
|
5860
5860
|
"name": "registerNumberField"
|
|
5861
5861
|
},
|
|
5862
|
+
{
|
|
5863
|
+
"kind": "Function",
|
|
5864
|
+
"canonicalReference": "@vonage/vivid!registerOptgroup:function(1)",
|
|
5865
|
+
"docComment": "",
|
|
5866
|
+
"excerptTokens": [
|
|
5867
|
+
{
|
|
5868
|
+
"kind": "Content",
|
|
5869
|
+
"text": "registerOptgroup: (prefix?: "
|
|
5870
|
+
},
|
|
5871
|
+
{
|
|
5872
|
+
"kind": "Content",
|
|
5873
|
+
"text": "string"
|
|
5874
|
+
},
|
|
5875
|
+
{
|
|
5876
|
+
"kind": "Content",
|
|
5877
|
+
"text": ") => "
|
|
5878
|
+
},
|
|
5879
|
+
{
|
|
5880
|
+
"kind": "Content",
|
|
5881
|
+
"text": "void"
|
|
5882
|
+
}
|
|
5883
|
+
],
|
|
5884
|
+
"fileUrlPath": "dist/lib/optgroup/definition.d.ts",
|
|
5885
|
+
"returnTypeTokenRange": {
|
|
5886
|
+
"startIndex": 3,
|
|
5887
|
+
"endIndex": 4
|
|
5888
|
+
},
|
|
5889
|
+
"releaseTag": "Public",
|
|
5890
|
+
"overloadIndex": 1,
|
|
5891
|
+
"parameters": [
|
|
5892
|
+
{
|
|
5893
|
+
"parameterName": "prefix",
|
|
5894
|
+
"parameterTypeTokenRange": {
|
|
5895
|
+
"startIndex": 1,
|
|
5896
|
+
"endIndex": 2
|
|
5897
|
+
},
|
|
5898
|
+
"isOptional": true
|
|
5899
|
+
}
|
|
5900
|
+
],
|
|
5901
|
+
"name": "registerOptgroup"
|
|
5902
|
+
},
|
|
5862
5903
|
{
|
|
5863
5904
|
"kind": "Function",
|
|
5864
5905
|
"canonicalReference": "@vonage/vivid!registerOption:function(1)",
|
|
@@ -11600,6 +11641,36 @@
|
|
|
11600
11641
|
"isProtected": false,
|
|
11601
11642
|
"isAbstract": false
|
|
11602
11643
|
},
|
|
11644
|
+
{
|
|
11645
|
+
"kind": "Property",
|
|
11646
|
+
"canonicalReference": "@vonage/vivid!VwcAccordionItemElement#secondaryText:member",
|
|
11647
|
+
"docComment": "",
|
|
11648
|
+
"excerptTokens": [
|
|
11649
|
+
{
|
|
11650
|
+
"kind": "Content",
|
|
11651
|
+
"text": "secondaryText?: "
|
|
11652
|
+
},
|
|
11653
|
+
{
|
|
11654
|
+
"kind": "Content",
|
|
11655
|
+
"text": "string"
|
|
11656
|
+
},
|
|
11657
|
+
{
|
|
11658
|
+
"kind": "Content",
|
|
11659
|
+
"text": ";"
|
|
11660
|
+
}
|
|
11661
|
+
],
|
|
11662
|
+
"isReadonly": false,
|
|
11663
|
+
"isOptional": true,
|
|
11664
|
+
"releaseTag": "Public",
|
|
11665
|
+
"name": "secondaryText",
|
|
11666
|
+
"propertyTypeTokenRange": {
|
|
11667
|
+
"startIndex": 1,
|
|
11668
|
+
"endIndex": 2
|
|
11669
|
+
},
|
|
11670
|
+
"isStatic": false,
|
|
11671
|
+
"isProtected": false,
|
|
11672
|
+
"isAbstract": false
|
|
11673
|
+
},
|
|
11603
11674
|
{
|
|
11604
11675
|
"kind": "Property",
|
|
11605
11676
|
"canonicalReference": "@vonage/vivid!VwcAccordionItemElement#size:member",
|
|
@@ -16193,6 +16264,37 @@
|
|
|
16193
16264
|
"isProtected": false,
|
|
16194
16265
|
"isAbstract": false
|
|
16195
16266
|
},
|
|
16267
|
+
{
|
|
16268
|
+
"kind": "Property",
|
|
16269
|
+
"canonicalReference": "@vonage/vivid!VwcDataGridCellElement#connotation:member",
|
|
16270
|
+
"docComment": "",
|
|
16271
|
+
"excerptTokens": [
|
|
16272
|
+
{
|
|
16273
|
+
"kind": "Content",
|
|
16274
|
+
"text": "connotation?: "
|
|
16275
|
+
},
|
|
16276
|
+
{
|
|
16277
|
+
"kind": "Reference",
|
|
16278
|
+
"text": "DataGridConnotation",
|
|
16279
|
+
"canonicalReference": "@vonage/vivid!~DataGridConnotation:type"
|
|
16280
|
+
},
|
|
16281
|
+
{
|
|
16282
|
+
"kind": "Content",
|
|
16283
|
+
"text": ";"
|
|
16284
|
+
}
|
|
16285
|
+
],
|
|
16286
|
+
"isReadonly": false,
|
|
16287
|
+
"isOptional": true,
|
|
16288
|
+
"releaseTag": "Public",
|
|
16289
|
+
"name": "connotation",
|
|
16290
|
+
"propertyTypeTokenRange": {
|
|
16291
|
+
"startIndex": 1,
|
|
16292
|
+
"endIndex": 2
|
|
16293
|
+
},
|
|
16294
|
+
"isStatic": false,
|
|
16295
|
+
"isProtected": false,
|
|
16296
|
+
"isAbstract": false
|
|
16297
|
+
},
|
|
16196
16298
|
{
|
|
16197
16299
|
"kind": "Property",
|
|
16198
16300
|
"canonicalReference": "@vonage/vivid!VwcDataGridCellElement#gridColumn:member",
|
|
@@ -16937,6 +17039,37 @@
|
|
|
16937
17039
|
"isProtected": false,
|
|
16938
17040
|
"isAbstract": false
|
|
16939
17041
|
},
|
|
17042
|
+
{
|
|
17043
|
+
"kind": "Property",
|
|
17044
|
+
"canonicalReference": "@vonage/vivid!VwcDataGridRowElement#connotation:member",
|
|
17045
|
+
"docComment": "",
|
|
17046
|
+
"excerptTokens": [
|
|
17047
|
+
{
|
|
17048
|
+
"kind": "Content",
|
|
17049
|
+
"text": "connotation?: "
|
|
17050
|
+
},
|
|
17051
|
+
{
|
|
17052
|
+
"kind": "Reference",
|
|
17053
|
+
"text": "DataGridConnotation",
|
|
17054
|
+
"canonicalReference": "@vonage/vivid!~DataGridConnotation:type"
|
|
17055
|
+
},
|
|
17056
|
+
{
|
|
17057
|
+
"kind": "Content",
|
|
17058
|
+
"text": ";"
|
|
17059
|
+
}
|
|
17060
|
+
],
|
|
17061
|
+
"isReadonly": false,
|
|
17062
|
+
"isOptional": true,
|
|
17063
|
+
"releaseTag": "Public",
|
|
17064
|
+
"name": "connotation",
|
|
17065
|
+
"propertyTypeTokenRange": {
|
|
17066
|
+
"startIndex": 1,
|
|
17067
|
+
"endIndex": 2
|
|
17068
|
+
},
|
|
17069
|
+
"isStatic": false,
|
|
17070
|
+
"isProtected": false,
|
|
17071
|
+
"isAbstract": false
|
|
17072
|
+
},
|
|
16940
17073
|
{
|
|
16941
17074
|
"kind": "Property",
|
|
16942
17075
|
"canonicalReference": "@vonage/vivid!VwcDataGridRowElement#gridTemplateColumns:member",
|
|
@@ -18546,6 +18679,36 @@
|
|
|
18546
18679
|
"isProtected": false,
|
|
18547
18680
|
"isAbstract": false
|
|
18548
18681
|
},
|
|
18682
|
+
{
|
|
18683
|
+
"kind": "Property",
|
|
18684
|
+
"canonicalReference": "@vonage/vivid!VwcDialPadElement#noLetters:member",
|
|
18685
|
+
"docComment": "",
|
|
18686
|
+
"excerptTokens": [
|
|
18687
|
+
{
|
|
18688
|
+
"kind": "Content",
|
|
18689
|
+
"text": "noLetters: "
|
|
18690
|
+
},
|
|
18691
|
+
{
|
|
18692
|
+
"kind": "Content",
|
|
18693
|
+
"text": "boolean"
|
|
18694
|
+
},
|
|
18695
|
+
{
|
|
18696
|
+
"kind": "Content",
|
|
18697
|
+
"text": ";"
|
|
18698
|
+
}
|
|
18699
|
+
],
|
|
18700
|
+
"isReadonly": false,
|
|
18701
|
+
"isOptional": false,
|
|
18702
|
+
"releaseTag": "Public",
|
|
18703
|
+
"name": "noLetters",
|
|
18704
|
+
"propertyTypeTokenRange": {
|
|
18705
|
+
"startIndex": 1,
|
|
18706
|
+
"endIndex": 2
|
|
18707
|
+
},
|
|
18708
|
+
"isStatic": false,
|
|
18709
|
+
"isProtected": false,
|
|
18710
|
+
"isAbstract": false
|
|
18711
|
+
},
|
|
18549
18712
|
{
|
|
18550
18713
|
"kind": "Property",
|
|
18551
18714
|
"canonicalReference": "@vonage/vivid!VwcDialPadElement#pattern:member",
|
|
@@ -22325,6 +22488,37 @@
|
|
|
22325
22488
|
},
|
|
22326
22489
|
"implementsTokenRanges": []
|
|
22327
22490
|
},
|
|
22491
|
+
{
|
|
22492
|
+
"kind": "Class",
|
|
22493
|
+
"canonicalReference": "@vonage/vivid!VwcOptgroupElement:class",
|
|
22494
|
+
"docComment": "",
|
|
22495
|
+
"excerptTokens": [
|
|
22496
|
+
{
|
|
22497
|
+
"kind": "Content",
|
|
22498
|
+
"text": "export declare class Optgroup extends "
|
|
22499
|
+
},
|
|
22500
|
+
{
|
|
22501
|
+
"kind": "Reference",
|
|
22502
|
+
"text": "Optgroup_base",
|
|
22503
|
+
"canonicalReference": "@vonage/vivid!~Optgroup_base"
|
|
22504
|
+
},
|
|
22505
|
+
{
|
|
22506
|
+
"kind": "Content",
|
|
22507
|
+
"text": " "
|
|
22508
|
+
}
|
|
22509
|
+
],
|
|
22510
|
+
"fileUrlPath": "dist/lib/optgroup/optgroup.d.ts",
|
|
22511
|
+
"releaseTag": "Public",
|
|
22512
|
+
"isAbstract": false,
|
|
22513
|
+
"name": "VwcOptgroupElement",
|
|
22514
|
+
"preserveMemberOrder": false,
|
|
22515
|
+
"members": [],
|
|
22516
|
+
"extendsTokenRange": {
|
|
22517
|
+
"startIndex": 1,
|
|
22518
|
+
"endIndex": 2
|
|
22519
|
+
},
|
|
22520
|
+
"implementsTokenRanges": []
|
|
22521
|
+
},
|
|
22328
22522
|
{
|
|
22329
22523
|
"kind": "Class",
|
|
22330
22524
|
"canonicalReference": "@vonage/vivid!VwcOptionElement:class",
|