@vonage/vivid 5.23.0 → 5.23.1
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/action-group/index.cjs +1 -1
- package/action-group/index.js +1 -1
- package/alert/definition.cjs +1 -1
- package/alert/definition.js +1 -1
- package/alert/index.cjs +7 -7
- package/alert/index.js +13 -14
- package/audio-player/definition.cjs +1 -1
- package/audio-player/definition.js +1 -1
- package/audio-player/index.cjs +18 -16
- package/audio-player/index.js +21 -19
- package/avatar/definition.cjs +1 -1
- package/avatar/definition.js +1 -1
- package/avatar/index.cjs +4 -4
- package/avatar/index.js +6 -6
- package/badge/definition.cjs +1 -1
- package/badge/definition.js +1 -1
- package/banner/definition.cjs +1 -1
- package/banner/definition.js +1 -1
- package/banner/index.cjs +3 -3
- package/banner/index.js +8 -8
- package/breadcrumb/definition.cjs +1 -1
- package/breadcrumb/definition.js +1 -1
- package/breadcrumb-item/definition.cjs +1 -1
- package/breadcrumb-item/definition.js +1 -1
- package/breadcrumb-item/index.cjs +2 -2
- package/breadcrumb-item/index.js +5 -5
- package/bundled/affix.cjs +1 -1
- package/bundled/affix.js +1 -1
- package/bundled/base-color-picker.cjs +2 -2
- package/bundled/base-color-picker.js +5 -5
- package/bundled/calendar-picker.template.cjs +1 -1
- package/bundled/calendar-picker.template.js +1 -1
- package/bundled/definition11.cjs +4 -4
- package/bundled/definition11.js +5 -5
- package/bundled/definition12.cjs +9 -7
- package/bundled/definition12.js +28 -26
- package/bundled/definition13.cjs +9 -7
- package/bundled/definition13.js +16 -15
- package/bundled/definition15.cjs +6 -6
- package/bundled/definition15.js +17 -17
- package/bundled/definition16.cjs +4 -2
- package/bundled/definition16.js +8 -6
- package/bundled/definition17.cjs +8 -6
- package/bundled/definition17.js +15 -14
- package/bundled/definition18.cjs +23 -23
- package/bundled/definition18.js +51 -52
- package/bundled/definition19.cjs +3 -1
- package/bundled/definition19.js +3 -1
- package/bundled/definition2.cjs +1 -13
- package/bundled/definition2.js +181 -48
- package/bundled/definition20.cjs +11 -9
- package/bundled/definition20.js +25 -23
- package/bundled/definition21.cjs +6 -6
- package/bundled/definition21.js +7 -8
- package/bundled/definition22.cjs +5 -3
- package/bundled/definition22.js +13 -11
- package/bundled/definition23.cjs +1 -1
- package/bundled/definition23.js +2 -2
- package/bundled/definition24.cjs +10 -10
- package/bundled/definition24.js +12 -12
- package/bundled/definition3.cjs +13 -1
- package/bundled/definition3.js +48 -181
- package/bundled/definition4.cjs +9 -7
- package/bundled/definition4.js +18 -16
- package/bundled/definition5.cjs +5 -5
- package/bundled/definition5.js +9 -9
- package/bundled/definition6.cjs +3 -3
- package/bundled/definition6.js +16 -16
- package/bundled/definition7.cjs +1 -1
- package/bundled/definition7.js +1 -1
- package/bundled/definition8.cjs +7 -7
- package/bundled/definition8.js +9 -7
- package/bundled/definition9.cjs +4 -4
- package/bundled/definition9.js +12 -12
- package/bundled/mixins.cjs +3 -3
- package/bundled/mixins.js +5 -5
- package/bundled/numberConverter.cjs +1 -1
- package/bundled/numberConverter.js +36 -1
- package/bundled/picker-field.template.cjs +13 -13
- package/bundled/picker-field.template.js +16 -16
- package/bundled/slider.template.cjs +8 -8
- package/bundled/slider.template.js +9 -9
- package/bundled/text-field.cjs +1 -1
- package/bundled/text-field.js +1 -1
- package/bundled/time-selection-picker.template.cjs +3 -3
- package/bundled/time-selection-picker.template.js +9 -9
- package/bundled/vivid-element.cjs +1 -1
- package/bundled/vivid-element.js +1 -1
- package/button/definition.cjs +1 -1
- package/button/definition.js +1 -1
- package/calendar/definition.cjs +1 -1
- package/calendar/definition.js +1 -1
- package/calendar/index.cjs +9 -9
- package/calendar/index.js +7 -7
- package/calendar-event/definition.cjs +1 -1
- package/calendar-event/definition.js +1 -1
- package/calendar-event/index.cjs +2 -2
- package/calendar-event/index.js +2 -2
- package/card/definition.cjs +1 -1
- package/card/definition.js +1 -1
- package/card/index.cjs +3 -3
- package/card/index.js +6 -6
- package/color-picker/index.cjs +10 -10
- package/color-picker/index.js +52 -52
- package/combobox/index.cjs +14 -11
- package/combobox/index.js +38 -36
- package/custom-elements.json +4235 -4883
- package/data-grid/index.cjs +8 -6
- package/data-grid/index.js +20 -18
- package/dial-pad/index.cjs +22 -20
- package/dial-pad/index.js +36 -34
- package/dialog/index.cjs +14 -14
- package/dialog/index.js +17 -18
- package/elevation/definition.cjs +1 -1
- package/elevation/definition.js +1 -1
- package/empty-state/index.cjs +4 -4
- package/empty-state/index.js +7 -11
- package/fab/index.cjs +4 -4
- package/fab/index.js +9 -13
- package/file-picker/index.cjs +8 -8
- package/file-picker/index.js +19 -19
- package/flag/index.cjs +5 -5
- package/flag/index.js +8 -12
- package/header/index.cjs +5 -5
- package/header/index.js +4 -8
- package/icon/index.cjs +1 -1
- package/icon/index.js +1 -1
- package/index.cjs +15 -14
- package/index.js +16 -16
- package/kbd-key/index.cjs +3 -3
- package/kbd-key/index.js +2 -6
- package/layout/index.cjs +3 -1
- package/layout/index.js +3 -1
- package/lib/accordion/variations.browser-spec.d.ts +1 -0
- package/lib/accordion-item/variations.browser-spec.d.ts +1 -0
- package/lib/action-group/variations.browser-spec.d.ts +1 -0
- package/lib/alert/variations.browser-spec.d.ts +1 -0
- package/lib/audio-player/variations.browser-spec.d.ts +1 -0
- package/lib/avatar/variations.browser-spec.d.ts +1 -0
- package/lib/badge/badge.d.ts +4 -4
- package/lib/badge/badge.template.d.ts +1 -2
- package/lib/badge/variations.browser-spec.d.ts +1 -0
- package/lib/banner/variations.browser-spec.d.ts +1 -0
- package/lib/breadcrumb-item/variations.browser-spec.d.ts +1 -0
- package/lib/button/variations.browser-spec.d.ts +1 -0
- package/lib/calendar/variations.browser-spec.d.ts +1 -0
- package/lib/calendar-event/variations.browser-spec.d.ts +1 -0
- package/lib/card/card.d.ts +4 -4
- package/lib/card/variations.browser-spec.d.ts +1 -0
- package/lib/checkbox/variations.browser-spec.d.ts +1 -0
- package/lib/color-picker/color-picker.d.ts +1 -1
- package/lib/color-picker/variations.browser-spec.d.ts +1 -0
- package/lib/combobox/variations.browser-spec.d.ts +1 -0
- package/lib/contextual-help/variations.browser-spec.d.ts +1 -0
- package/lib/country/variations.browser-spec.d.ts +1 -0
- package/lib/data-grid/variations.browser-spec.d.ts +1 -0
- package/lib/date-picker/variations.browser-spec.d.ts +1 -0
- package/lib/date-range-picker/variations.browser-spec.d.ts +1 -0
- package/lib/date-time-picker/variations.browser-spec.d.ts +1 -0
- package/lib/dial-pad/variations.browser-spec.d.ts +1 -0
- package/lib/dialog/variations.browser-spec.d.ts +1 -0
- package/lib/divider/variations.browser-spec.d.ts +1 -0
- package/lib/empty-state/variations.browser-spec.d.ts +1 -0
- package/lib/fab/fab.d.ts +5 -5
- package/lib/fab/variations.browser-spec.d.ts +1 -0
- package/lib/file-picker/variations.browser-spec.d.ts +1 -0
- package/lib/flag/variations.browser-spec.d.ts +1 -0
- package/lib/header/variations.browser-spec.d.ts +1 -0
- package/lib/icon/variations.browser-spec.d.ts +1 -0
- package/lib/kbd-key/variations.browser-spec.d.ts +1 -0
- package/lib/kbd-shortcut/variations.browser-spec.d.ts +1 -0
- package/lib/layout/variations.browser-spec.d.ts +1 -0
- package/lib/menu/variations.browser-spec.d.ts +1 -0
- package/lib/menu-item/variations.browser-spec.d.ts +1 -0
- package/lib/nav/variations.browser-spec.d.ts +1 -0
- package/lib/nav-disclosure/variations.browser-spec.d.ts +1 -0
- package/lib/nav-item/variations.browser-spec.d.ts +1 -0
- package/lib/note/variations.browser-spec.d.ts +1 -0
- package/lib/number-field/variations.browser-spec.d.ts +1 -0
- package/lib/option/variations.browser-spec.d.ts +1 -0
- package/lib/pagination/variations.browser-spec.d.ts +1 -0
- package/lib/popover/variations.browser-spec.d.ts +1 -0
- package/lib/progress/variations.browser-spec.d.ts +1 -0
- package/lib/progress-ring/variations.browser-spec.d.ts +1 -0
- package/lib/radio/variations.browser-spec.d.ts +1 -0
- package/lib/radio-group/variations.browser-spec.d.ts +1 -0
- package/lib/range-slider/variations.browser-spec.d.ts +1 -0
- package/lib/rich-text-editor/rte/features/internal/cursor-fix.d.ts +6 -1
- package/lib/rich-text-editor/variations.browser-spec.d.ts +1 -0
- package/lib/rich-text-view/variations.browser-spec.d.ts +1 -0
- package/lib/searchable-select/variations.browser-spec.d.ts +1 -0
- package/lib/select/variations.browser-spec.d.ts +1 -0
- package/lib/selectable-box/variations.browser-spec.d.ts +1 -0
- package/lib/side-drawer/variations.browser-spec.d.ts +1 -0
- package/lib/simple-color-picker/simple-color-picker.d.ts +2 -2
- package/lib/simple-color-picker/variations.browser-spec.d.ts +1 -0
- package/lib/slider/variations.browser-spec.d.ts +1 -0
- package/lib/split-button/variations.browser-spec.d.ts +1 -0
- package/lib/status/variations.browser-spec.d.ts +1 -0
- package/lib/switch/variations.browser-spec.d.ts +1 -0
- package/lib/tab/tab.d.ts +12 -12
- package/lib/table/variations.browser-spec.d.ts +1 -0
- package/lib/tabs/variations.browser-spec.d.ts +1 -0
- package/lib/tag/tag.d.ts +12 -12
- package/lib/tag/variations.browser-spec.d.ts +1 -0
- package/lib/text-area/text-area.template.d.ts +1 -2
- package/lib/text-area/variations.browser-spec.d.ts +1 -0
- package/lib/text-field/variations.browser-spec.d.ts +1 -0
- package/lib/time-picker/variations.browser-spec.d.ts +1 -0
- package/lib/toggletip/variations.browser-spec.d.ts +1 -0
- package/lib/tooltip/variations.browser-spec.d.ts +1 -0
- package/lib/tree-item/variations.browser-spec.d.ts +1 -0
- package/lib/video-player/variations.browser-spec.d.ts +1 -0
- package/menu/definition.cjs +1 -1
- package/menu/definition.js +1 -1
- package/menu-item/definition.cjs +1 -1
- package/menu-item/definition.js +1 -1
- package/nav-disclosure/index.cjs +6 -6
- package/nav-disclosure/index.js +11 -15
- package/nav-item/index.cjs +2 -2
- package/nav-item/index.js +11 -15
- package/note/index.cjs +5 -5
- package/note/index.js +10 -11
- package/number-field/index.cjs +12 -12
- package/number-field/index.js +34 -35
- package/package.json +19 -10
- package/popover/index.cjs +8 -8
- package/popover/index.js +11 -15
- package/popup/definition.cjs +1 -1
- package/popup/definition.js +1 -1
- package/progress/index.cjs +8 -8
- package/progress/index.js +9 -10
- package/range-slider/index.cjs +10 -8
- package/range-slider/index.js +26 -24
- package/rich-text-editor/index.cjs +3 -3
- package/rich-text-editor/index.js +758 -747
- package/searchable-select/definition.cjs +1 -0
- package/searchable-select/definition.js +2 -2
- package/searchable-select/index.cjs +30 -27
- package/searchable-select/index.js +80 -76
- package/selectable-box/index.cjs +8 -8
- package/selectable-box/index.js +8 -9
- package/side-drawer/index.cjs +3 -3
- package/side-drawer/index.js +3 -3
- package/simple-color-picker/index.cjs +4 -4
- package/simple-color-picker/index.js +6 -6
- package/slider/definition.cjs +1 -1
- package/slider/definition.js +1 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.cjs +4 -4
- package/split-button/index.js +9 -9
- package/status/index.cjs +7 -5
- package/status/index.js +14 -12
- package/styles/core/all.css +5 -7
- package/styles/core/theme.css +5 -7
- package/styles/core/typography.css +0 -3
- package/styles/tokens/vivid-2-compat.css +1 -6
- package/switch/index.cjs +3 -3
- package/switch/index.js +5 -5
- package/table/index.cjs +10 -10
- package/table/index.js +12 -12
- package/tabs/index.cjs +6 -4
- package/tabs/index.js +10 -9
- package/tag/index.cjs +6 -6
- package/tag/index.js +8 -8
- package/text-area/index.cjs +8 -6
- package/text-area/index.js +20 -19
- package/unbundled/affix.cjs +2 -7
- package/unbundled/affix.js +2 -7
- package/unbundled/anchored.cjs +2 -6
- package/unbundled/anchored.js +2 -6
- package/unbundled/aria-binding-directive.cjs +1 -3
- package/unbundled/aria-binding-directive.js +1 -3
- package/unbundled/base-color-picker.cjs +18 -52
- package/unbundled/base-color-picker.js +18 -52
- package/unbundled/base-progress.cjs +4 -14
- package/unbundled/base-progress.js +4 -14
- package/unbundled/button.cjs +2 -8
- package/unbundled/button.js +2 -8
- package/unbundled/calendar-picker.template.cjs +31 -85
- package/unbundled/calendar-picker.template.js +30 -84
- package/unbundled/char-count.cjs +2 -4
- package/unbundled/char-count.js +2 -4
- package/unbundled/data-grid.options.cjs +3 -19
- package/unbundled/data-grid.options.js +3 -19
- package/unbundled/definition.cjs +3 -8
- package/unbundled/definition.js +3 -8
- package/unbundled/definition10.cjs +316 -211
- package/unbundled/definition10.js +313 -202
- package/unbundled/definition11.cjs +262 -356
- package/unbundled/definition11.js +248 -354
- package/unbundled/definition12.cjs +243 -274
- package/unbundled/definition12.js +241 -260
- package/unbundled/definition13.cjs +341 -255
- package/unbundled/definition13.js +338 -252
- package/unbundled/definition14.cjs +61 -371
- package/unbundled/definition14.js +57 -367
- package/unbundled/definition15.cjs +32 -77
- package/unbundled/definition15.js +28 -73
- package/unbundled/definition16.cjs +120 -32
- package/unbundled/definition16.js +117 -29
- package/unbundled/definition17.cjs +24 -132
- package/unbundled/definition17.js +24 -126
- package/unbundled/definition18.cjs +74 -26
- package/unbundled/definition18.js +67 -25
- package/unbundled/definition19.cjs +33 -79
- package/unbundled/definition19.js +32 -73
- package/unbundled/definition2.cjs +3 -6
- package/unbundled/definition2.js +3 -6
- package/unbundled/definition20.cjs +272 -29
- package/unbundled/definition20.js +264 -27
- package/unbundled/definition21.cjs +135 -263
- package/unbundled/definition21.js +133 -260
- package/unbundled/definition22.cjs +17 -155
- package/unbundled/definition22.js +13 -151
- package/unbundled/definition23.cjs +8 -17
- package/unbundled/definition23.js +8 -17
- package/unbundled/definition24.cjs +4 -10
- package/unbundled/definition24.js +4 -10
- package/unbundled/definition25.cjs +2 -10
- package/unbundled/definition25.js +2 -10
- package/unbundled/definition26.cjs +28 -70
- package/unbundled/definition26.js +28 -70
- package/unbundled/definition27.cjs +6 -13
- package/unbundled/definition27.js +6 -13
- package/unbundled/definition28.cjs +30 -77
- package/unbundled/definition28.js +30 -77
- package/unbundled/definition29.cjs +7 -14
- package/unbundled/definition29.js +7 -14
- package/unbundled/definition3.cjs +5 -16
- package/unbundled/definition3.js +5 -16
- package/unbundled/definition30.cjs +20 -51
- package/unbundled/definition30.js +20 -51
- package/unbundled/definition31.cjs +2 -4
- package/unbundled/definition31.js +2 -4
- package/unbundled/definition32.cjs +7 -17
- package/unbundled/definition32.js +7 -17
- package/unbundled/definition33.cjs +4 -9
- package/unbundled/definition33.js +4 -9
- package/unbundled/definition34.cjs +51 -141
- package/unbundled/definition34.js +51 -141
- package/unbundled/definition35.cjs +4 -5
- package/unbundled/definition35.js +4 -5
- package/unbundled/definition36.cjs +16 -38
- package/unbundled/definition36.js +14 -36
- package/unbundled/definition37.cjs +33 -89
- package/unbundled/definition37.js +31 -87
- package/unbundled/definition38.cjs +18 -44
- package/unbundled/definition38.js +16 -42
- package/unbundled/definition39.cjs +16 -32
- package/unbundled/definition39.js +13 -29
- package/unbundled/definition4.cjs +2 -11
- package/unbundled/definition4.js +2 -7
- package/unbundled/definition40.cjs +9 -20
- package/unbundled/definition40.js +9 -20
- package/unbundled/definition41.cjs +3 -6
- package/unbundled/definition41.js +3 -6
- package/unbundled/definition42.cjs +3 -6
- package/unbundled/definition42.js +3 -6
- package/unbundled/definition43.cjs +24 -67
- package/unbundled/definition43.js +24 -67
- package/unbundled/definition44.cjs +3 -6
- package/unbundled/definition44.js +3 -6
- package/unbundled/definition45.cjs +1 -3
- package/unbundled/definition45.js +1 -3
- package/unbundled/definition46.cjs +5 -14
- package/unbundled/definition46.js +5 -14
- package/unbundled/definition47.cjs +4 -5
- package/unbundled/definition47.js +5 -11
- package/unbundled/definition48.cjs +5 -12
- package/unbundled/definition48.js +5 -12
- package/unbundled/definition49.cjs +3 -7
- package/unbundled/definition49.js +3 -7
- package/unbundled/definition5.cjs +2 -5
- package/unbundled/definition5.js +2 -5
- package/unbundled/definition50.cjs +1 -3
- package/unbundled/definition50.js +1 -3
- package/unbundled/definition51.cjs +2 -5
- package/unbundled/definition51.js +2 -5
- package/unbundled/definition52.cjs +19 -44
- package/unbundled/definition52.js +16 -41
- package/unbundled/definition53.cjs +5 -13
- package/unbundled/definition53.js +5 -13
- package/unbundled/definition54.cjs +2 -6
- package/unbundled/definition54.js +2 -6
- package/unbundled/definition55.cjs +23 -65
- package/unbundled/definition55.js +23 -65
- package/unbundled/definition56.cjs +2 -5
- package/unbundled/definition56.js +2 -5
- package/unbundled/definition57.cjs +11 -24
- package/unbundled/definition57.js +11 -26
- package/unbundled/definition58.cjs +10 -30
- package/unbundled/definition58.js +10 -30
- package/unbundled/definition59.cjs +19 -48
- package/unbundled/definition59.js +19 -48
- package/unbundled/definition6.cjs +179 -17
- package/unbundled/definition6.js +170 -14
- package/unbundled/definition60.cjs +70 -54
- package/unbundled/definition60.js +70 -54
- package/unbundled/definition61.cjs +22 -54
- package/unbundled/definition61.js +22 -54
- package/unbundled/definition62.cjs +3 -9
- package/unbundled/definition62.js +3 -9
- package/unbundled/definition63.cjs +62 -130
- package/unbundled/definition63.js +60 -131
- package/unbundled/definition64.cjs +5 -12
- package/unbundled/definition64.js +5 -12
- package/unbundled/definition65.cjs +6 -14
- package/unbundled/definition65.js +6 -19
- package/unbundled/definition66.cjs +13 -35
- package/unbundled/definition66.js +13 -35
- package/unbundled/definition67.cjs +3 -5
- package/unbundled/definition67.js +3 -5
- package/unbundled/definition68.cjs +4 -5
- package/unbundled/definition68.js +4 -5
- package/unbundled/definition69.cjs +6 -15
- package/unbundled/definition69.js +6 -17
- package/unbundled/definition7.cjs +31 -177
- package/unbundled/definition7.js +24 -170
- package/unbundled/definition70.cjs +1 -3
- package/unbundled/definition70.js +1 -3
- package/unbundled/definition71.cjs +7 -12
- package/unbundled/definition71.js +7 -12
- package/unbundled/definition72.cjs +11 -25
- package/unbundled/definition72.js +11 -25
- package/unbundled/definition73.cjs +15 -39
- package/unbundled/definition73.js +15 -39
- package/unbundled/definition74.cjs +1 -3
- package/unbundled/definition74.js +1 -3
- package/unbundled/definition75.cjs +5 -11
- package/unbundled/definition75.js +5 -11
- package/unbundled/definition76.cjs +24 -59
- package/unbundled/definition76.js +24 -59
- package/unbundled/definition77.cjs +6 -8
- package/unbundled/definition77.js +4 -6
- package/unbundled/definition78.cjs +7 -13
- package/unbundled/definition78.js +7 -13
- package/unbundled/definition79.cjs +5 -15
- package/unbundled/definition79.js +5 -15
- package/unbundled/definition8.cjs +152 -36
- package/unbundled/definition8.js +148 -31
- package/unbundled/definition80.cjs +9 -25
- package/unbundled/definition80.js +9 -25
- package/unbundled/definition9.cjs +200 -135
- package/unbundled/definition9.js +189 -130
- package/unbundled/delegates-aria.cjs +1 -3
- package/unbundled/delegates-aria.js +1 -3
- package/unbundled/divider.cjs +2 -7
- package/unbundled/divider.js +2 -7
- package/unbundled/form-associated.cjs +20 -60
- package/unbundled/form-associated.js +20 -60
- package/unbundled/form-element.cjs +5 -15
- package/unbundled/form-element.js +5 -15
- package/unbundled/host-semantics.cjs +1 -3
- package/unbundled/host-semantics.js +1 -3
- package/unbundled/kbd-shortcut.cjs +1 -3
- package/unbundled/kbd-shortcut.js +1 -3
- package/unbundled/linkable.cjs +1 -3
- package/unbundled/linkable.js +1 -3
- package/unbundled/listbox.cjs +6 -20
- package/unbundled/listbox.js +6 -20
- package/unbundled/localized.cjs +3 -9
- package/unbundled/localized.js +3 -9
- package/unbundled/mixins.cjs +9 -25
- package/unbundled/mixins.js +9 -25
- package/unbundled/numberConverter.cjs +39 -9
- package/unbundled/numberConverter.js +39 -9
- package/unbundled/picker-field.template.cjs +16 -36
- package/unbundled/picker-field.template.js +16 -36
- package/unbundled/platform.cjs +1 -3
- package/unbundled/platform.js +1 -3
- package/unbundled/playbackRates.cjs +1 -3
- package/unbundled/playbackRates.js +1 -3
- package/unbundled/randomId.cjs +1 -3
- package/unbundled/randomId.js +1 -3
- package/unbundled/single-date-picker.cjs +6 -18
- package/unbundled/single-date-picker.js +6 -18
- package/unbundled/single-value-picker.cjs +7 -21
- package/unbundled/single-value-picker.js +7 -21
- package/unbundled/slider.template.cjs +6 -14
- package/unbundled/slider.template.js +6 -14
- package/unbundled/slottable-request.cjs +2 -6
- package/unbundled/slottable-request.js +2 -6
- package/unbundled/text-field.cjs +1 -1
- package/unbundled/text-field.js +1 -1
- package/unbundled/time-selection-picker.template.cjs +27 -79
- package/unbundled/time-selection-picker.template.js +27 -79
- package/unbundled/trapped-focus.cjs +1 -3
- package/unbundled/trapped-focus.js +1 -3
- package/unbundled/vivid-element.cjs +7 -19
- package/unbundled/vivid-element.js +7 -19
- package/unbundled/with-contextual-help.cjs +4 -13
- package/unbundled/with-contextual-help.js +4 -13
- package/unbundled/with-error-text.cjs +2 -6
- package/unbundled/with-error-text.js +2 -6
- package/unbundled/with-success-text.cjs +1 -3
- package/unbundled/with-success-text.js +1 -3
- package/video-player/index.cjs +3 -3
- package/video-player/index.js +5 -5
- package/visually-hidden/definition.cjs +1 -1
- package/visually-hidden/definition.js +1 -1
- package/shared/color-picker/index.d.ts +0 -3
- package/shared/foundation/button/index.d.ts +0 -2
- package/shared/patterns/char-count/index.d.ts +0 -1
- package/shared/patterns/form-elements/index.d.ts +0 -4
- package/shared/patterns/index.d.ts +0 -7
|
@@ -2,10 +2,10 @@ import { d as createRegisterFunction, t as VividElement, u as defineVividCompone
|
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
3
|
import { r as ProgressRing, t as progressRingDefinition } from "./definition5.js";
|
|
4
4
|
import { n as WithObservableLocale } from "./localized.js";
|
|
5
|
-
import { i as Button, t as buttonDefinition } from "./
|
|
6
|
-
import { i as Popup, r as PlacementStrategy, t as popupDefinition } from "./
|
|
7
|
-
import { i as MenuItem, t as menuItemDefinition } from "./
|
|
8
|
-
import { r as Menu, t as menuDefinition } from "./
|
|
5
|
+
import { i as Button, t as buttonDefinition } from "./definition6.js";
|
|
6
|
+
import { i as Popup, r as PlacementStrategy, t as popupDefinition } from "./definition9.js";
|
|
7
|
+
import { i as MenuItem, t as menuItemDefinition } from "./definition11.js";
|
|
8
|
+
import { r as Menu, t as menuDefinition } from "./definition12.js";
|
|
9
9
|
import { t as Divider } from "./divider.js";
|
|
10
10
|
import { t as generateRandomId } from "./randomId.js";
|
|
11
11
|
import { n as textFieldDefinition, r as TextField } from "./definition26.js";
|
|
@@ -28,7 +28,7 @@ import { InputRule, inputRules, undoInputRule } from "prosemirror-inputrules";
|
|
|
28
28
|
import { RemoveMarkStep, ReplaceAroundStep, dropPoint } from "prosemirror-transform";
|
|
29
29
|
import { marks } from "prosemirror-schema-basic";
|
|
30
30
|
//#region src/lib/rich-text-editor/rich-text-editor.scss?inline
|
|
31
|
-
var rich_text_editor_default = ":host{display:block}.rte{--editor-padding-inline:var(--rich-text-editor-padding-inline,16px);--editor-padding-block:var(--rich-text-editor-padding-block,8px);block-size:100%;max-block-size:inherit;min-block-size:inherit;flex-direction:column;display:flex}.editor{display:contents}.editor-viewport{contain:layout;flex-direction:column;flex:1;min-block-size:0;display:flex;position:relative;overflow:hidden}.editor-scroll-area{background-color:var(--vvd-color-canvas);color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in
|
|
31
|
+
var rich_text_editor_default = ":host{display:block}.rte{--editor-padding-inline:var(--rich-text-editor-padding-inline,16px);--editor-padding-block:var(--rich-text-editor-padding-block,8px);block-size:100%;max-block-size:inherit;min-block-size:inherit;flex-direction:column;display:flex}.editor{display:contents}.editor-viewport{contain:layout;flex-direction:column;flex:1;min-block-size:0;display:flex;position:relative;overflow:hidden}.editor-scroll-area{background-color:var(--vvd-color-canvas);color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base);--scrollbar-track-color:transparent;--scrollbar-thumb-color:color-mix(in sRGB, var(--vvd-color-neutral-950), transparent 70%);scrollbar-color:var(--scrollbar-thumb-color) var(--scrollbar-track-color);scrollbar-width:thin;flex-direction:column;flex:1;min-block-size:0;display:flex;overflow-y:auto}.editor-scroll-area ::-webkit-scrollbar{width:4px}.editor-scroll-area ::-webkit-scrollbar-track{background:var(--scrollbar-track-color)}.editor-scroll-area ::-webkit-scrollbar-thumb{background-color:var(--scrollbar-fallback-track-color,var(--scrollbar-thumb-color));border:0;border-radius:4px}.popovers--disabled>*{display:none!important}";
|
|
32
32
|
//#endregion
|
|
33
33
|
//#region src/lib/rich-text-editor/rich-text-editor.ts
|
|
34
34
|
/**
|
|
@@ -44,9 +44,7 @@ var rich_text_editor_default = ":host{display:block}.rte{--editor-padding-inline
|
|
|
44
44
|
* @dynamicSlot `{ id: string }` suggestions-empty - Empty state if no suggestions are found.
|
|
45
45
|
*/
|
|
46
46
|
var RichTextEditor = class extends WithObservableLocale(VividElement) {
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
*/
|
|
47
|
+
/** @internal */
|
|
50
48
|
instanceChanged(prevInstance) {
|
|
51
49
|
prevInstance?.[impl].destroyViewIfNeeded();
|
|
52
50
|
this._initViewIfNeeded();
|
|
@@ -71,9 +69,7 @@ var RichTextEditor = class extends WithObservableLocale(VividElement) {
|
|
|
71
69
|
super.disconnectedCallback();
|
|
72
70
|
this._destroyViewIfNeeded();
|
|
73
71
|
}
|
|
74
|
-
/**
|
|
75
|
-
* @internal
|
|
76
|
-
*/
|
|
72
|
+
/** @internal */
|
|
77
73
|
localeChanged() {
|
|
78
74
|
this._syncStateIfNeeded();
|
|
79
75
|
}
|
|
@@ -245,7 +241,7 @@ var FeatureState = class {
|
|
|
245
241
|
};
|
|
246
242
|
//#endregion
|
|
247
243
|
//#region src/lib/rich-text-editor/rte/features/internal/core.style.scss?inline
|
|
248
|
-
var core_style_default = ".ProseMirror{box-sizing:border-box;padding:var(--editor-padding-block) var(--editor-padding-inline);outline:none;flex:1 0 0}.ProseMirror-selectednode{--focus-stroke-gap-color:transparent;--focus-border-radius:2px;outline:none;position:relative}.ProseMirror-selectednode:after{box-shadow:0 0 0 4px color-mix(in
|
|
244
|
+
var core_style_default = ".ProseMirror{box-sizing:border-box;padding:var(--editor-padding-block) var(--editor-padding-inline);outline:none;flex:1 0 0}.ProseMirror-selectednode{--focus-stroke-gap-color:transparent;--focus-border-radius:2px;outline:none;position:relative}.ProseMirror-selectednode:after{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:var(--focus-border-radius,inherit);block-size:calc(100% + var(--focus-block-size-addition,4px));content:\"\";inline-size:calc(100% + var(--focus-block-size-addition,4px));display:block;position:absolute;inset-block-start:50%;inset-inline-start:50%;transform:translate(-50%,-50%)}.editor--disabled .ProseMirror{color:var(--vvd-color-neutral-300);cursor:not-allowed}";
|
|
249
245
|
//#endregion
|
|
250
246
|
//#region src/lib/rich-text-editor/rte/features/internal/foreign-html.ts
|
|
251
247
|
var RteForeignHtmlFeatureImpl = class extends RteFeatureImpl {
|
|
@@ -273,13 +269,30 @@ var atomCursorFix = ($cursor) => {
|
|
|
273
269
|
if (nodeBefore && nodeBefore.isInline && nodeBefore.isAtom && !nodeBefore.isText) return {};
|
|
274
270
|
return null;
|
|
275
271
|
};
|
|
272
|
+
/**
|
|
273
|
+
* When the cursor is positioned directly before an inline atom node (e.g. an image)
|
|
274
|
+
* that wraps to the next line, browsers may display the cursor on the next line even
|
|
275
|
+
* though typing inserts text on the previous line. A ZWSP between cursor and atom will be
|
|
276
|
+
* layouted to the previous line and therefore fix the cursor position.
|
|
277
|
+
*/
|
|
278
|
+
var beforeAtomCursorFix = ($cursor) => {
|
|
279
|
+
const nodeAfter = $cursor.nodeAfter;
|
|
280
|
+
if (nodeAfter && nodeAfter.isInline && nodeAfter.isAtom && !nodeAfter.isText) return { afterCursor: true };
|
|
281
|
+
return null;
|
|
282
|
+
};
|
|
283
|
+
function createZwspWidget(style) {
|
|
284
|
+
const span = document.createElement("span");
|
|
285
|
+
span.textContent = "";
|
|
286
|
+
for (const [prop, value] of Object.entries(style)) span.style.setProperty(prop, value);
|
|
287
|
+
return span;
|
|
288
|
+
}
|
|
276
289
|
var RteCursorFixFeatureImpl = class extends RteFeatureImpl {
|
|
277
290
|
constructor(..._args) {
|
|
278
291
|
super(..._args);
|
|
279
292
|
this.name = "RteCursorFix";
|
|
280
293
|
}
|
|
281
294
|
getPlugins(rte) {
|
|
282
|
-
const cursorFixes = [atomCursorFix];
|
|
295
|
+
const cursorFixes = [atomCursorFix, beforeAtomCursorFix];
|
|
283
296
|
for (const markType of Object.values(rte.schema.marks)) {
|
|
284
297
|
const spec = markType.spec;
|
|
285
298
|
if (spec.cursorFix) cursorFixes.push(spec.cursorFix);
|
|
@@ -287,27 +300,28 @@ var RteCursorFixFeatureImpl = class extends RteFeatureImpl {
|
|
|
287
300
|
return [this.contribution(new Plugin({ props: { decorations: (state) => {
|
|
288
301
|
const { $cursor } = state.selection;
|
|
289
302
|
if (!$cursor) return null;
|
|
290
|
-
|
|
303
|
+
const decorations = [];
|
|
304
|
+
const cursorFixStyles = {};
|
|
305
|
+
let before = false;
|
|
306
|
+
let after = false;
|
|
291
307
|
for (const fn of cursorFixes) {
|
|
292
308
|
const result = fn($cursor, state);
|
|
293
|
-
if (result)
|
|
309
|
+
if (!result) continue;
|
|
310
|
+
if (result.style) Object.assign(cursorFixStyles, result.style);
|
|
311
|
+
if (result.afterCursor) after = true;
|
|
312
|
+
else before = true;
|
|
294
313
|
}
|
|
295
|
-
if (
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
for (const [prop, value] of Object.entries(cursorFix)) span.style.setProperty(prop, value);
|
|
300
|
-
return span;
|
|
301
|
-
}, { side: -1 })]);
|
|
314
|
+
if (before) decorations.push(Decoration.widget($cursor.pos, () => createZwspWidget(cursorFixStyles), { side: -1 }));
|
|
315
|
+
if (after) decorations.push(Decoration.widget($cursor.pos, () => createZwspWidget(cursorFixStyles), { side: 1 }));
|
|
316
|
+
if (decorations.length === 0) return null;
|
|
317
|
+
return DecorationSet.create(state.doc, decorations);
|
|
302
318
|
} } }))];
|
|
303
319
|
}
|
|
304
320
|
};
|
|
305
321
|
featureFacade(RteCursorFixFeatureImpl);
|
|
306
322
|
//#endregion
|
|
307
323
|
//#region src/lib/rich-text-editor/rte/features/internal/core.ts
|
|
308
|
-
/**
|
|
309
|
-
* Plugin to bring state from the host web component into ProseMirror.
|
|
310
|
-
*/
|
|
324
|
+
/** Plugin to bring state from the host web component into ProseMirror. */
|
|
311
325
|
var hostBridgePlugin = new Plugin({ state: {
|
|
312
326
|
init() {
|
|
313
327
|
return null;
|
|
@@ -334,7 +348,7 @@ var RteCoreImpl = class extends RteFeatureImpl {
|
|
|
334
348
|
];
|
|
335
349
|
}
|
|
336
350
|
getPlugins(rte) {
|
|
337
|
-
const
|
|
351
|
+
const splitFn = splitBlockAs((node, atEnd, $from) => {
|
|
338
352
|
if (!atEnd) return {
|
|
339
353
|
type: node.type,
|
|
340
354
|
attrs: node.attrs
|
|
@@ -343,7 +357,13 @@ var RteCoreImpl = class extends RteFeatureImpl {
|
|
|
343
357
|
type: defaultTextblockForMatch($from.node($from.depth - 1).contentMatchAt($from.indexAfter($from.depth - 1))),
|
|
344
358
|
attrs: rte.textblockAttrs.extractFromNode(node)
|
|
345
359
|
};
|
|
360
|
+
});
|
|
361
|
+
const splitFnKeepMarks = (state, dispatch) => splitFn(state, dispatch && ((tr) => {
|
|
362
|
+
const marks = state.storedMarks || state.selection.$to.parentOffset && state.selection.$from.marks();
|
|
363
|
+
if (marks) tr.ensureMarks(marks);
|
|
364
|
+
dispatch(tr);
|
|
346
365
|
}));
|
|
366
|
+
const enterKeyChainCommands = chainCommands(newlineInCode, createParagraphNear, liftEmptyBlock, splitFnKeepMarks);
|
|
347
367
|
return [
|
|
348
368
|
this.contribution(this.disabled.plugin),
|
|
349
369
|
this.contribution(new Plugin({
|
|
@@ -437,15 +457,11 @@ var RteHtmlParser = class {
|
|
|
437
457
|
constructor(config, options) {
|
|
438
458
|
this[impl] = new RteHtmlParserImpl(config[impl], options);
|
|
439
459
|
}
|
|
440
|
-
/**
|
|
441
|
-
* Converts an HTML string to an RteDocument.
|
|
442
|
-
*/
|
|
460
|
+
/** Converts an HTML string to an RteDocument. */
|
|
443
461
|
parseDocument(html, options) {
|
|
444
462
|
return this[impl].parser.parse(this.parseHtml(html, options), { preserveWhitespace: true }).toJSON();
|
|
445
463
|
}
|
|
446
|
-
/**
|
|
447
|
-
* Converts an HTML string to an RteFragment.
|
|
448
|
-
*/
|
|
464
|
+
/** Converts an HTML string to an RteFragment. */
|
|
449
465
|
parseFragment(html, options) {
|
|
450
466
|
return this[impl].parser.parseSlice(this.parseHtml(html, options), { preserveWhitespace: true }).content.toJSON() ?? [];
|
|
451
467
|
}
|
|
@@ -466,6 +482,7 @@ var RteHtmlParserImpl = class {
|
|
|
466
482
|
options?.modifyParseRules?.(rules);
|
|
467
483
|
this.parser = buildDomParser(config.schema, rules);
|
|
468
484
|
}
|
|
485
|
+
/** Used by the editor when foreign HTML is pasted or dropped */
|
|
469
486
|
transform(html) {
|
|
470
487
|
return DOMPurify.sanitize(html);
|
|
471
488
|
}
|
|
@@ -501,15 +518,11 @@ var RteHtmlSerializer = class {
|
|
|
501
518
|
constructor(config, options) {
|
|
502
519
|
this[impl] = new RteHtmlSerializerImpl(config[impl], options);
|
|
503
520
|
}
|
|
504
|
-
/**
|
|
505
|
-
* Converts an RteDocument to an HTML string.
|
|
506
|
-
*/
|
|
521
|
+
/** Converts an RteDocument to an HTML string. */
|
|
507
522
|
serializeDocument(doc, options) {
|
|
508
523
|
return this[impl].serializeFragment(doc.content, options);
|
|
509
524
|
}
|
|
510
|
-
/**
|
|
511
|
-
* Converts an RteFragment to an HTML string.
|
|
512
|
-
*/
|
|
525
|
+
/** Converts an RteFragment to an HTML string. */
|
|
513
526
|
serializeFragment(fragment, options) {
|
|
514
527
|
return this[impl].serializeFragment(fragment, options);
|
|
515
528
|
}
|
|
@@ -565,15 +578,11 @@ var RteInstance = class {
|
|
|
565
578
|
};
|
|
566
579
|
this[impl] = new RteInstanceImpl(this, config, options);
|
|
567
580
|
}
|
|
568
|
-
/**
|
|
569
|
-
* Returns the current document state.
|
|
570
|
-
*/
|
|
581
|
+
/** Returns the current document state. */
|
|
571
582
|
getDocument() {
|
|
572
583
|
return this[impl].state.doc.toJSON();
|
|
573
584
|
}
|
|
574
|
-
/**
|
|
575
|
-
* Reset the editor to its initial state. Optionally, an initial document can be provided.
|
|
576
|
-
*/
|
|
585
|
+
/** Reset the editor to its initial state. Optionally, an initial document can be provided. */
|
|
577
586
|
reset(initialDocument) {
|
|
578
587
|
this[impl].reset(initialDocument);
|
|
579
588
|
}
|
|
@@ -884,9 +893,11 @@ var UiCtx = class {
|
|
|
884
893
|
this.props = props;
|
|
885
894
|
this.bindings = [];
|
|
886
895
|
}
|
|
896
|
+
/** Evaluates a prop, returning its current value. */
|
|
887
897
|
evalProp(prop) {
|
|
888
898
|
return isPropBinding(prop) ? prop(this) : prop;
|
|
889
899
|
}
|
|
900
|
+
/** On every state change, prop is re-evaluated and passed to bindFn. */
|
|
890
901
|
bindProp(prop, bindFn) {
|
|
891
902
|
if (prop === void 0) return;
|
|
892
903
|
else if (isPropBinding(prop)) {
|
|
@@ -895,12 +906,15 @@ var UiCtx = class {
|
|
|
895
906
|
binding();
|
|
896
907
|
} else bindFn(prop);
|
|
897
908
|
}
|
|
909
|
+
/** To be called on each state update to refresh all bindings. */
|
|
898
910
|
updateBindings() {
|
|
899
911
|
for (const binding of this.bindings) binding();
|
|
900
912
|
}
|
|
913
|
+
/** Whether to return focus to the editor after a toolbar action */
|
|
901
914
|
shouldReturnFocusToEditor() {
|
|
902
915
|
return this.evalProp(this.props.shouldReturnFocusToEditor);
|
|
903
916
|
}
|
|
917
|
+
/** Utility to more conveniently bind props to elements */
|
|
904
918
|
bindToEl(target, props = {}, events = [], children = []) {
|
|
905
919
|
for (const name in props) this.bindProp(props[name], (value) => {
|
|
906
920
|
target[name] = value;
|
|
@@ -1311,15 +1325,11 @@ var RteBasicTextBlocksImpl = class extends RteFeatureImpl {
|
|
|
1311
1325
|
};
|
|
1312
1326
|
//#endregion
|
|
1313
1327
|
//#region src/lib/rich-text-editor/rte/utils/text-before-cursor.ts
|
|
1314
|
-
/**
|
|
1315
|
-
* Get the text content before the cursor position in the current text block.
|
|
1316
|
-
*/
|
|
1328
|
+
/** Get the text content before the cursor position in the current text block. */
|
|
1317
1329
|
var textBeforeCursor = ($cursor) => $cursor.parent.textBetween(0, $cursor.parentOffset, void 0, "");
|
|
1318
1330
|
//#endregion
|
|
1319
1331
|
//#region src/lib/rich-text-editor/rte/features/internal/input-rules.ts
|
|
1320
|
-
/**
|
|
1321
|
-
* Aggregates all input rules from other features.
|
|
1322
|
-
*/
|
|
1332
|
+
/** Aggregates all input rules from other features. */
|
|
1323
1333
|
var RteInputRulesFeatureImpl = class extends RteFeatureImpl {
|
|
1324
1334
|
constructor(..._args) {
|
|
1325
1335
|
super(..._args);
|
|
@@ -1579,7 +1589,10 @@ var RteHardBreakFeatureImpl = class extends RteFeatureImpl {
|
|
|
1579
1589
|
}
|
|
1580
1590
|
getPlugins(_rte) {
|
|
1581
1591
|
const forceBreak = (state, dispatch) => {
|
|
1582
|
-
|
|
1592
|
+
const marks = state.storedMarks || state.selection.$from.marks();
|
|
1593
|
+
const tr = state.tr.replaceSelectionWith(state.schema.nodes.hardBreak.create(), true).scrollIntoView();
|
|
1594
|
+
if (marks.length) tr.setStoredMarks(marks);
|
|
1595
|
+
dispatch?.(tr);
|
|
1583
1596
|
return true;
|
|
1584
1597
|
};
|
|
1585
1598
|
const keyBindings = { "Shift-Enter": forceBreak };
|
|
@@ -1630,10 +1643,10 @@ var RteFontSizePickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
1630
1643
|
const storedMarks = state.storedMarks;
|
|
1631
1644
|
if (!storedMarks) return null;
|
|
1632
1645
|
const fontSizeMark = storedMarks.find((m) => m.type.name === "fontSize");
|
|
1633
|
-
if (fontSizeMark) return { "font-size": fontSizeMark.attrs.size };
|
|
1646
|
+
if (fontSizeMark) return { style: { "font-size": fontSizeMark.attrs.size } };
|
|
1634
1647
|
if (storedMarks.length === 0) {
|
|
1635
1648
|
const defaultSize = this.defaultFontSizeForNode?.[$cursor.parent.type.name];
|
|
1636
|
-
if (defaultSize) return { "font-size": defaultSize };
|
|
1649
|
+
if (defaultSize) return { style: { "font-size": defaultSize } };
|
|
1637
1650
|
}
|
|
1638
1651
|
return null;
|
|
1639
1652
|
}
|
|
@@ -1977,6 +1990,7 @@ var RteTextColorPickerFeatureImpl = class extends RteFeatureImpl {
|
|
|
1977
1990
|
}
|
|
1978
1991
|
}, 6)];
|
|
1979
1992
|
}
|
|
1993
|
+
/** Determine the color of the current selection or null if colors are mixed */
|
|
1980
1994
|
getSelectionColor(state) {
|
|
1981
1995
|
const { selection } = state;
|
|
1982
1996
|
const { textColor } = state.schema.marks;
|
|
@@ -2820,6 +2834,7 @@ var RteInlineImageFeatureImpl = class extends RteFeatureImpl {
|
|
|
2820
2834
|
};
|
|
2821
2835
|
}
|
|
2822
2836
|
}],
|
|
2837
|
+
/** Since we use a NodeView, this is only used for HTML serialization */
|
|
2823
2838
|
toDOM: (node) => {
|
|
2824
2839
|
const { imageUrl, alt, size, naturalWidth, naturalHeight } = node.attrs;
|
|
2825
2840
|
const resolvedUrl = this.config.serializeUrlToHtml ? this.config.serializeUrlToHtml(imageUrl) : imageUrl;
|
|
@@ -3206,6 +3221,7 @@ var RteAtomFeatureImpl = class extends RteFeatureImpl {
|
|
|
3206
3221
|
tag: `span[data-atom-type="${this.atomName}"][data-value]`,
|
|
3207
3222
|
getAttrs: (dom) => ({ value: dom.getAttribute("data-value") })
|
|
3208
3223
|
}],
|
|
3224
|
+
/** Since we use a NodeView, toDOM is only used for Rich Text View */
|
|
3209
3225
|
toDOM: (node) => {
|
|
3210
3226
|
const serializedValue = this.config.serializeValueToHtml ? this.config.serializeValueToHtml(node.attrs.value) : node.attrs.value;
|
|
3211
3227
|
if (serializedValue === null) return document.createDocumentFragment();
|
|
@@ -3281,7 +3297,7 @@ var RteKeyboardShortcutsFeatureImpl = class extends RteFeatureImpl {
|
|
|
3281
3297
|
var RteKeyboardShortcutsFeature = featureFacade(RteKeyboardShortcutsFeatureImpl);
|
|
3282
3298
|
//#endregion
|
|
3283
3299
|
//#region src/lib/rich-text-editor/rte/features/suggest.style.scss?inline
|
|
3284
|
-
var suggest_style_default = ".suggest-popover{flex-direction:column;gap:2px;max-block-size:408px;min-inline-size:128px;max-inline-size:248px;padding:4px;display:flex}.suggest-loading-widget{vertical-align:middle;white-space:normal;align-items:center;margin-inline-start:2px;display:inline-flex}.suggest-empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}.suggest-item--visible-focus{box-shadow:0 0 0 4px color-mix(in
|
|
3300
|
+
var suggest_style_default = ".suggest-popover{flex-direction:column;gap:2px;max-block-size:408px;min-inline-size:128px;max-inline-size:248px;padding:4px;display:flex}.suggest-loading-widget{vertical-align:middle;white-space:normal;align-items:center;margin-inline-start:2px;display:inline-flex}.suggest-empty-message{color:var(--vvd-color-neutral-300);font:var(--vvd-typography-base);text-align:center;justify-content:center;align-items:center;min-block-size:40px;display:flex}.suggest-item--visible-focus{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent}";
|
|
3285
3301
|
//#endregion
|
|
3286
3302
|
//#region src/lib/rich-text-editor/rte/features/suggest.ts
|
|
3287
3303
|
var isPopoverOpen = (state) => Boolean(state?.suggestions && !state.dismissed);
|
|
@@ -4,22 +4,22 @@ const require_definition = require("./definition.cjs");
|
|
|
4
4
|
const require_decorate = require("./decorate.cjs");
|
|
5
5
|
const require_affix = require("./affix.cjs");
|
|
6
6
|
const require_form_associated = require("./form-associated.cjs");
|
|
7
|
-
const require_form_element = require("./form-element.cjs");
|
|
8
|
-
const require_with_success_text = require("./with-success-text.cjs");
|
|
9
|
-
const require_with_error_text = require("./with-error-text.cjs");
|
|
10
|
-
const require_with_contextual_help = require("./with-contextual-help.cjs");
|
|
11
7
|
const require_localized = require("./localized.cjs");
|
|
12
|
-
const require_definition$1 = require("./
|
|
8
|
+
const require_definition$1 = require("./definition6.cjs");
|
|
13
9
|
const require_dialog = require("./dialog.cjs");
|
|
14
|
-
const require_definition$2 = require("./
|
|
10
|
+
const require_definition$2 = require("./definition9.cjs");
|
|
15
11
|
const require_host_semantics = require("./host-semantics.cjs");
|
|
16
12
|
const require_mixins = require("./mixins.cjs");
|
|
13
|
+
const require_form_element = require("./form-element.cjs");
|
|
14
|
+
const require_with_error_text = require("./with-error-text.cjs");
|
|
15
|
+
const require_with_success_text = require("./with-success-text.cjs");
|
|
16
|
+
const require_with_contextual_help = require("./with-contextual-help.cjs");
|
|
17
17
|
const require_definition$3 = require("./definition29.cjs");
|
|
18
18
|
const require_listbox = require("./listbox.cjs");
|
|
19
19
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
20
20
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
21
21
|
//#region src/lib/select/select.scss?inline
|
|
22
|
-
var select_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;display:flex;transform:rotate(0)}@media (prefers-reduced-motion:no-preference){.chevron{transition:transform .2s}}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);--focus-stroke-gap-color:transparent;flex-direction:column;gap:4px;display:inline-flex}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-600);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.control{--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.control.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.control:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.control.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.control:disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.control:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.control.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.control.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.error:where(:not(.disabled,:disabled)){--_appearance-color-text:
|
|
22
|
+
var select_default = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;display:flex;transform:rotate(0)}@media (prefers-reduced-motion:no-preference){.chevron{transition:transform .2s}}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);--focus-stroke-gap-color:transparent;flex-direction:column;gap:4px;display:inline-flex}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-600);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.control{--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.control.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.control:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.control.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.control:disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.control:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.disabled{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.control.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.control.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.error:where(:not(.disabled,:disabled)){--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:var(--vvd-color-alert-500)}.control.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:transparent}.control.success:where(:not(.disabled,:disabled)){--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:var(--vvd-color-success-500)}.control.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notset;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:transparent}.control{--_connotation-color-primary:var(--vvd-select-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-select-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-select-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-select-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-faint:var(--vvd-select-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-select-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-firm:var(--vvd-select-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-select-accent-fierce,var(--vvd-color-neutral-700));border-radius:var(--_select-control-border-radius);block-size:var(--_select-block-size);padding-inline:var(--_select-padding-inline);--_select-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_select-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_select-padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);justify-content:space-between;align-items:center;gap:8px;transition:box-shadow .2s,background-color .2s;display:flex}.control.size-condensed{--_select-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_select-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_select-padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control.size-condensed:not(.shape-pill){--_select-control-border-radius:4px}.control-wrapper{position:relative}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}.control:not(.shape-pill){--_select-control-border-radius:8px}.control.shape-pill{--_select-control-border-radius:24px}.listbox{max-height:var(--select-height,408px);flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}:host([multiple]:focus-visible) .listbox{box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:8px}.selected-value{white-space:nowrap;flex-grow:1;align-items:center;column-gap:12px;display:flex;overflow:hidden}.selected-value .text{text-overflow:ellipsis;max-inline-size:100%;overflow:hidden}.control.shows-placeholder .selected-value .text{color:var(--vvd-color-neutral-600)}.selected-value slot[name=icon]{flex:0 0 var(--_select-icon-size);font-size:var(--_select-icon-size);line-height:1}.control.has-meta .selected-value{padding-inline-end:8px}.feedback-wrapper{display:contents}::part(popup-base){inline-size:max-content;min-inline-size:var(--_select-fixed-width,100%)}:host([multiple]) ::part(popup-base){position:static}@supports selector(:has(*)){:host(:focus-within) .control:not(.has-activedescendant,:has(.clear-button:focus)){--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){:host(:focus-within) .control:not(.has-activedescendant){--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}:host(:not([multiple]):focus-visible) ::slotted([data-vvd-component=option][current-selected]){box-shadow:0 0 0 4px color-mix(in sRGB, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;border-radius:8px}:host([multiple]) .clear-button{margin-inline-start:auto}:host([multiple][clearable]) .label-wrapper{min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}";
|
|
23
23
|
//#endregion
|
|
24
24
|
//#region src/lib/select/select.ts
|
|
25
25
|
/**
|
|
@@ -185,9 +185,7 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
185
185
|
this.activeIndex = previousIndex;
|
|
186
186
|
this.checkActiveIndex();
|
|
187
187
|
}
|
|
188
|
-
/**
|
|
189
|
-
* @internal
|
|
190
|
-
*/
|
|
188
|
+
/** @internal */
|
|
191
189
|
focusAndScrollOptionIntoView() {
|
|
192
190
|
super.focusAndScrollOptionIntoView(this.activeOption);
|
|
193
191
|
}
|
|
@@ -214,11 +212,7 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
214
212
|
}
|
|
215
213
|
this.shouldSkipFocus = false;
|
|
216
214
|
}
|
|
217
|
-
/**
|
|
218
|
-
* Sets an option as selected and gives it focus.
|
|
219
|
-
*
|
|
220
|
-
* @public
|
|
221
|
-
*/
|
|
215
|
+
/** Sets an option as selected and gives it focus. */
|
|
222
216
|
setSelectedOptions() {
|
|
223
217
|
if (!this.multiple) {
|
|
224
218
|
super.setSelectedOptions();
|
|
@@ -245,9 +239,7 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
245
239
|
this.setSelectedOptions();
|
|
246
240
|
this.updateValue(true);
|
|
247
241
|
}
|
|
248
|
-
/**
|
|
249
|
-
* @internal
|
|
250
|
-
*/
|
|
242
|
+
/** @internal */
|
|
251
243
|
typeaheadBufferChanged(prev, next) {
|
|
252
244
|
if (!this.multiple) {
|
|
253
245
|
super.typeaheadBufferChanged(prev, next);
|
|
@@ -305,9 +297,7 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
305
297
|
get collapsible() {
|
|
306
298
|
return !this.multiple;
|
|
307
299
|
}
|
|
308
|
-
/**
|
|
309
|
-
* @internal
|
|
310
|
-
*/
|
|
300
|
+
/** @internal */
|
|
311
301
|
valueChanged(prev, next) {
|
|
312
302
|
const nextSelectedIndex = this.options.findIndex((el) => el.value === next);
|
|
313
303
|
const validNextSelectedIndex = this._validSelectedIndex(nextSelectedIndex);
|
|
@@ -408,9 +398,7 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
408
398
|
if (e.offsetX >= 0 && e.offsetX <= this.listbox.scrollWidth) return super.mousedownHandler(e);
|
|
409
399
|
return this.collapsible;
|
|
410
400
|
}
|
|
411
|
-
/**
|
|
412
|
-
* @internal
|
|
413
|
-
*/
|
|
401
|
+
/** @internal */
|
|
414
402
|
multipleChanged(_, next) {
|
|
415
403
|
this.options.forEach((o) => {
|
|
416
404
|
o.checked = next ? false : void 0;
|
|
@@ -540,10 +528,7 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
540
528
|
this.removeEventListener("contentchange", this.updateDisplayValue);
|
|
541
529
|
super.disconnectedCallback();
|
|
542
530
|
}
|
|
543
|
-
/**
|
|
544
|
-
*
|
|
545
|
-
* @internal
|
|
546
|
-
*/
|
|
531
|
+
/** @internal */
|
|
547
532
|
updateDisplayValue() {
|
|
548
533
|
if (this.collapsible) _microsoft_fast_element.Observable.notify(this, "displayValue");
|
|
549
534
|
}
|
|
@@ -588,37 +573,27 @@ var Select = class extends require_mixins.WithLightDOMFeedback(require_with_cont
|
|
|
588
573
|
this.selectedIndex = this._newDefaultSelectedIndex([], this.options, -1) ?? -1;
|
|
589
574
|
this._isResetting = false;
|
|
590
575
|
}
|
|
591
|
-
/**
|
|
592
|
-
* @internal
|
|
593
|
-
*/
|
|
576
|
+
/** @internal */
|
|
594
577
|
get _shouldShowClearButton() {
|
|
595
578
|
if (!this.clearable) return false;
|
|
596
579
|
if (this.multiple) return this.selectedOptions?.length > 0;
|
|
597
580
|
return this.value !== "";
|
|
598
581
|
}
|
|
599
|
-
/**
|
|
600
|
-
* @internal
|
|
601
|
-
*/
|
|
582
|
+
/** @internal */
|
|
602
583
|
_onClearButtonFocus() {
|
|
603
584
|
this._isClearButtonFocused = true;
|
|
604
585
|
this.activeIndex = -1;
|
|
605
586
|
this.uncheckAllOptions();
|
|
606
587
|
}
|
|
607
|
-
/**
|
|
608
|
-
* @internal
|
|
609
|
-
*/
|
|
588
|
+
/** @internal */
|
|
610
589
|
_onClearButtonBlur() {
|
|
611
590
|
this._isClearButtonFocused = false;
|
|
612
591
|
}
|
|
613
|
-
/**
|
|
614
|
-
* @internal
|
|
615
|
-
*/
|
|
592
|
+
/** @internal */
|
|
616
593
|
get _shouldShowLabelWrapper() {
|
|
617
594
|
return Boolean(this.label || this._hasContextualHelp || this.multiple && this._shouldShowClearButton);
|
|
618
595
|
}
|
|
619
|
-
/**
|
|
620
|
-
* @internal
|
|
621
|
-
*/
|
|
596
|
+
/** @internal */
|
|
622
597
|
_onClearButtonClick() {
|
|
623
598
|
if (this.multiple) this.selectedOptions.forEach((o) => {
|
|
624
599
|
/* v8 ignore else -- @preserve */
|
|
@@ -652,7 +627,6 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean"
|
|
|
652
627
|
require_decorate.__decorate([_microsoft_fast_element.observable], Select.prototype, "_isClearButtonFocused", void 0);
|
|
653
628
|
//#endregion
|
|
654
629
|
//#region src/lib/select/select.template.ts
|
|
655
|
-
var getStateClasses = ({ shape, disabled, appearance, metaSlottedContent, errorValidationMessage, successText, placeholder, value, scale, _activeDescendant, open }) => (0, _microsoft_fast_web_utilities.classNames)(["has-activedescendant", Boolean(_activeDescendant) && open], ["disabled", disabled], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], ["has-meta", Boolean(metaSlottedContent?.length)], ["error", Boolean(errorValidationMessage)], ["success", !!successText], ["shows-placeholder", Boolean(placeholder) && !value], [`size-${scale}`, Boolean(scale)]);
|
|
656
630
|
function renderLabel() {
|
|
657
631
|
return _microsoft_fast_element.html` <label
|
|
658
632
|
for="${(x) => x.multiple ? null : "control"}"
|
|
@@ -704,7 +678,7 @@ function selectValue(context) {
|
|
|
704
678
|
const affixIconTemplate = require_affix.affixIconTemplateFactory(context);
|
|
705
679
|
const chevronTemplate = require_definition$1.chevronTemplateFactory(context);
|
|
706
680
|
return _microsoft_fast_element.html` <div
|
|
707
|
-
class="control ${
|
|
681
|
+
class="control ${(x) => (0, _microsoft_fast_web_utilities.classNames)(["has-activedescendant", Boolean(x._activeDescendant) && x.open], ["disabled", x.disabled], [`appearance-${x.appearance}`, Boolean(x.appearance)], [`shape-${x.shape}`, Boolean(x.shape)], ["has-meta", Boolean(x.metaSlottedContent?.length)], ["error", Boolean(x.errorValidationMessage)], ["success", !!x.successText], ["shows-placeholder", Boolean(x.placeholder) && !x.value], [`size-${x.scale}`, Boolean(x.scale)])}"
|
|
708
682
|
${(0, _microsoft_fast_element.ref)("_anchor")}
|
|
709
683
|
id="control"
|
|
710
684
|
?disabled="${(x) => x.disabled}"
|
|
@@ -721,9 +695,7 @@ function selectValue(context) {
|
|
|
721
695
|
function setFixedDropdownVarWidth(x) {
|
|
722
696
|
return x.open && x.fixedDropdown ? `--_select-fixed-width: ${Math.round(x.getBoundingClientRect().width)}px` : null;
|
|
723
697
|
}
|
|
724
|
-
/**
|
|
725
|
-
* @param context - element definition context
|
|
726
|
-
*/
|
|
698
|
+
/** @param context - element definition context */
|
|
727
699
|
function renderControl(context) {
|
|
728
700
|
const popupTag = context.tagFor(require_definition$2.Popup);
|
|
729
701
|
return _microsoft_fast_element.html`
|
|
@@ -762,9 +734,7 @@ function renderControl(context) {
|
|
|
762
734
|
</div>
|
|
763
735
|
`;
|
|
764
736
|
}
|
|
765
|
-
/**
|
|
766
|
-
* Ignore events that originate from feedback, e.g. a click on link
|
|
767
|
-
*/
|
|
737
|
+
/** Ignore events that originate from feedback, e.g. a click on link */
|
|
768
738
|
function ifNotFromFeedback(handler) {
|
|
769
739
|
return (x, c) => {
|
|
770
740
|
if (!c.event.composedPath().includes(x._feedbackWrapper)) {
|
|
@@ -806,9 +776,7 @@ var SelectTemplate = (context) => {
|
|
|
806
776
|
};
|
|
807
777
|
//#endregion
|
|
808
778
|
//#region src/lib/select/definition.ts
|
|
809
|
-
/**
|
|
810
|
-
* @internal
|
|
811
|
-
*/
|
|
779
|
+
/** @internal */
|
|
812
780
|
var selectDefinition = require_vivid_element.defineVividComponent("select", Select, SelectTemplate, [
|
|
813
781
|
require_definition$2.popupDefinition,
|
|
814
782
|
require_definition.iconDefinition,
|