@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
|
@@ -5,43 +5,30 @@ const require_decorate = require("./decorate.cjs");
|
|
|
5
5
|
const require_affix = require("./affix.cjs");
|
|
6
6
|
const require_delegates_aria = require("./delegates-aria.cjs");
|
|
7
7
|
const require_form_associated = require("./form-associated.cjs");
|
|
8
|
+
const require_definition$1 = require("./definition22.cjs");
|
|
9
|
+
const require_mixins = require("./mixins.cjs");
|
|
8
10
|
const require_form_element = require("./form-element.cjs");
|
|
9
|
-
const require_with_success_text = require("./with-success-text.cjs");
|
|
10
11
|
const require_with_error_text = require("./with-error-text.cjs");
|
|
11
|
-
const
|
|
12
|
-
const require_definition$1 = require("./definition6.cjs");
|
|
13
|
-
const require_char_count = require("./char-count.cjs");
|
|
14
|
-
const require_mixins = require("./mixins.cjs");
|
|
12
|
+
const require_with_success_text = require("./with-success-text.cjs");
|
|
15
13
|
const require_randomId = require("./randomId.cjs");
|
|
16
14
|
const require_definition$2 = require("./definition25.cjs");
|
|
15
|
+
const require_char_count = require("./char-count.cjs");
|
|
16
|
+
const require_with_contextual_help = require("./with-contextual-help.cjs");
|
|
17
17
|
const require_text_field = require("./text-field.cjs");
|
|
18
18
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
19
19
|
let _microsoft_fast_web_utilities = require("@microsoft/fast-web-utilities");
|
|
20
20
|
//#region src/lib/text-field/text-field.ts
|
|
21
|
-
/**
|
|
22
|
-
* Text field sub-types
|
|
23
|
-
* @public
|
|
24
|
-
*/
|
|
21
|
+
/** Text field sub-types */
|
|
25
22
|
var TextFieldType = {
|
|
26
|
-
/**
|
|
27
|
-
* An email TextField
|
|
28
|
-
*/
|
|
23
|
+
/** An email TextField */
|
|
29
24
|
email: "email",
|
|
30
|
-
/**
|
|
31
|
-
* A password TextField
|
|
32
|
-
*/
|
|
25
|
+
/** A password TextField */
|
|
33
26
|
password: "password",
|
|
34
|
-
/**
|
|
35
|
-
* A telephone TextField
|
|
36
|
-
*/
|
|
27
|
+
/** A telephone TextField */
|
|
37
28
|
tel: "tel",
|
|
38
|
-
/**
|
|
39
|
-
* A text TextField
|
|
40
|
-
*/
|
|
29
|
+
/** A text TextField */
|
|
41
30
|
text: "text",
|
|
42
|
-
/**
|
|
43
|
-
* A URL TextField
|
|
44
|
-
*/
|
|
31
|
+
/** A URL TextField */
|
|
45
32
|
url: "url"
|
|
46
33
|
};
|
|
47
34
|
var safariWorkaroundStyles = new _microsoft_fast_element.ElementStyles([`
|
|
@@ -77,9 +64,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
77
64
|
this.type = TextFieldType.text;
|
|
78
65
|
this.#randomId = require_randomId.generateRandomId();
|
|
79
66
|
}
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
67
|
+
/** @internal */
|
|
83
68
|
readOnlyChanged() {
|
|
84
69
|
/* v8 ignore if -- @preserve */
|
|
85
70
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -87,9 +72,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
87
72
|
this.validate();
|
|
88
73
|
}
|
|
89
74
|
}
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
*/
|
|
75
|
+
/** @internal */
|
|
93
76
|
autofocusChanged() {
|
|
94
77
|
/* v8 ignore if -- @preserve */
|
|
95
78
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -97,16 +80,12 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
97
80
|
this.validate();
|
|
98
81
|
}
|
|
99
82
|
}
|
|
100
|
-
/**
|
|
101
|
-
* @internal
|
|
102
|
-
*/
|
|
83
|
+
/** @internal */
|
|
103
84
|
placeholderChanged() {
|
|
104
85
|
/* v8 ignore if -- @preserve */
|
|
105
86
|
if (this.proxy instanceof HTMLInputElement) this.proxy.placeholder = this.placeholder;
|
|
106
87
|
}
|
|
107
|
-
/**
|
|
108
|
-
* @internal
|
|
109
|
-
*/
|
|
88
|
+
/** @internal */
|
|
110
89
|
typeChanged() {
|
|
111
90
|
/* v8 ignore if -- @preserve */
|
|
112
91
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -114,9 +93,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
114
93
|
this.validate();
|
|
115
94
|
}
|
|
116
95
|
}
|
|
117
|
-
/**
|
|
118
|
-
* @internal
|
|
119
|
-
*/
|
|
96
|
+
/** @internal */
|
|
120
97
|
listChanged() {
|
|
121
98
|
/* v8 ignore if -- @preserve */
|
|
122
99
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -124,9 +101,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
124
101
|
this.validate();
|
|
125
102
|
}
|
|
126
103
|
}
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
104
|
+
/** @internal */
|
|
130
105
|
maxlengthChanged() {
|
|
131
106
|
/* v8 ignore if -- @preserve */
|
|
132
107
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -134,9 +109,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
134
109
|
this.validate();
|
|
135
110
|
}
|
|
136
111
|
}
|
|
137
|
-
/**
|
|
138
|
-
* @internal
|
|
139
|
-
*/
|
|
112
|
+
/** @internal */
|
|
140
113
|
minlengthChanged() {
|
|
141
114
|
/* v8 ignore if -- @preserve */
|
|
142
115
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -144,9 +117,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
144
117
|
this.validate();
|
|
145
118
|
}
|
|
146
119
|
}
|
|
147
|
-
/**
|
|
148
|
-
* @internal
|
|
149
|
-
*/
|
|
120
|
+
/** @internal */
|
|
150
121
|
patternChanged() {
|
|
151
122
|
/* v8 ignore if -- @preserve */
|
|
152
123
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -154,23 +125,17 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
154
125
|
this.validate();
|
|
155
126
|
}
|
|
156
127
|
}
|
|
157
|
-
/**
|
|
158
|
-
* @internal
|
|
159
|
-
*/
|
|
128
|
+
/** @internal */
|
|
160
129
|
sizeChanged() {
|
|
161
130
|
/* v8 ignore if -- @preserve */
|
|
162
131
|
if (this.proxy instanceof HTMLInputElement) this.proxy.size = this.size;
|
|
163
132
|
}
|
|
164
|
-
/**
|
|
165
|
-
* @internal
|
|
166
|
-
*/
|
|
133
|
+
/** @internal */
|
|
167
134
|
spellcheckChanged() {
|
|
168
135
|
/* v8 ignore if -- @preserve */
|
|
169
136
|
if (this.proxy instanceof HTMLInputElement) this.proxy.spellcheck = this.spellcheck;
|
|
170
137
|
}
|
|
171
|
-
/**
|
|
172
|
-
* @internal
|
|
173
|
-
*/
|
|
138
|
+
/** @internal */
|
|
174
139
|
valueChanged(previous, next) {
|
|
175
140
|
super.valueChanged(previous, next);
|
|
176
141
|
this._updateControlValueIfNeeded();
|
|
@@ -185,11 +150,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
185
150
|
_updateControlValueIfNeeded() {
|
|
186
151
|
if (this.control && this.control.value !== this.value) this.control.value = this.value;
|
|
187
152
|
}
|
|
188
|
-
/**
|
|
189
|
-
* Selects all the text in the text field
|
|
190
|
-
*
|
|
191
|
-
* @public
|
|
192
|
-
*/
|
|
153
|
+
/** Selects all the text in the text field */
|
|
193
154
|
select() {
|
|
194
155
|
this.control.select();
|
|
195
156
|
}
|
|
@@ -233,9 +194,7 @@ var TextField = class extends require_with_contextual_help.WithContextualHelp(re
|
|
|
233
194
|
this.control?.focus();
|
|
234
195
|
}
|
|
235
196
|
#randomId;
|
|
236
|
-
/**
|
|
237
|
-
* @internal
|
|
238
|
-
*/
|
|
197
|
+
/** @internal */
|
|
239
198
|
get _uniqueId() {
|
|
240
199
|
return this.id || this.#randomId;
|
|
241
200
|
}
|
|
@@ -263,11 +222,12 @@ require_decorate.__decorate([_microsoft_fast_element.observable], TextField.prot
|
|
|
263
222
|
//#endregion
|
|
264
223
|
//#region src/lib/text-field/text-field.template.ts
|
|
265
224
|
var getControlId = (id) => `vvd-text-field-control-${id}`;
|
|
266
|
-
var getStateClasses = ({ errorValidationMessage, disabled, value, readOnly, placeholder, appearance, shape, label, successText, actionItemsSlottedContent, leadingActionItemsSlottedContent, icon, scale }) => (0, _microsoft_fast_web_utilities.classNames)(["error", Boolean(errorValidationMessage)], ["disabled", disabled], ["has-value", Boolean(value)], ["readonly", readOnly], ["placeholder", Boolean(placeholder)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], ["no-label", !label], ["has-icon", !!icon], ["success", Boolean(successText)], ["action-items", !!actionItemsSlottedContent?.length], ["leading-action-items", !!leadingActionItemsSlottedContent?.length], ["no-leading", !(leadingActionItemsSlottedContent?.length || icon)], [`size-${scale}`, Boolean(scale)]);
|
|
267
225
|
var TextfieldTemplate = (context) => {
|
|
268
226
|
const affixIconTemplate = require_affix.affixIconTemplateFactory(context);
|
|
269
227
|
return _microsoft_fast_element.html`
|
|
270
|
-
<div
|
|
228
|
+
<div
|
|
229
|
+
class="base ${(x) => (0, _microsoft_fast_web_utilities.classNames)(["error", Boolean(x.errorValidationMessage)], ["disabled", x.disabled], ["has-value", Boolean(x.value)], ["readonly", x.readOnly], ["placeholder", Boolean(x.placeholder)], [`appearance-${x.appearance}`, Boolean(x.appearance)], [`shape-${x.shape}`, Boolean(x.shape)], ["no-label", !x.label], ["has-icon", !!x.icon], ["success", Boolean(x.successText)], ["action-items", !!x.actionItemsSlottedContent?.length], ["leading-action-items", !!x.leadingActionItemsSlottedContent?.length], ["no-leading", !(x.leadingActionItemsSlottedContent?.length || x.icon)], [`size-${x.scale}`, Boolean(x.scale)])}"
|
|
230
|
+
>
|
|
271
231
|
${(0, _microsoft_fast_element.when)((x) => x.charCount && x.maxlength, (x) => x._getCharCountTemplate(context))}
|
|
272
232
|
<div
|
|
273
233
|
class="label-wrapper"
|
|
@@ -340,9 +300,7 @@ var TextfieldTemplate = (context) => {
|
|
|
340
300
|
};
|
|
341
301
|
//#endregion
|
|
342
302
|
//#region src/lib/text-field/definition.ts
|
|
343
|
-
/**
|
|
344
|
-
* @internal
|
|
345
|
-
*/
|
|
303
|
+
/** @internal */
|
|
346
304
|
var textFieldDefinition = require_vivid_element.defineVividComponent("text-field", TextField, TextfieldTemplate, [
|
|
347
305
|
require_definition.iconDefinition,
|
|
348
306
|
require_mixins.feedbackMessageDefinition,
|
|
@@ -4,43 +4,30 @@ import { t as __decorate } from "./decorate.js";
|
|
|
4
4
|
import { a as affixIconTemplateFactory, t as AffixIcon } from "./affix.js";
|
|
5
5
|
import { n as delegateAria, t as DelegatesAria } from "./delegates-aria.js";
|
|
6
6
|
import { n as FormAssociated } from "./form-associated.js";
|
|
7
|
+
import { n as visuallyHiddenDefinition } from "./definition22.js";
|
|
8
|
+
import { n as WithLightDOMFeedback, r as feedbackMessageDefinition } from "./mixins.js";
|
|
7
9
|
import { t as FormElement } from "./form-element.js";
|
|
8
|
-
import { t as WithSuccessText } from "./with-success-text.js";
|
|
9
10
|
import { t as WithErrorText } from "./with-error-text.js";
|
|
10
|
-
import { t as
|
|
11
|
-
import { n as visuallyHiddenDefinition } from "./definition6.js";
|
|
12
|
-
import { t as WithCharCount } from "./char-count.js";
|
|
13
|
-
import { n as WithLightDOMFeedback, r as feedbackMessageDefinition } from "./mixins.js";
|
|
11
|
+
import { t as WithSuccessText } from "./with-success-text.js";
|
|
14
12
|
import { n as renderInLightDOM, t as generateRandomId } from "./randomId.js";
|
|
15
13
|
import { t as contextualHelpDefinition } from "./definition25.js";
|
|
14
|
+
import { t as WithCharCount } from "./char-count.js";
|
|
15
|
+
import { t as WithContextualHelp } from "./with-contextual-help.js";
|
|
16
16
|
import { t as text_field_default } from "./text-field.js";
|
|
17
17
|
import { ElementStyles, Updates, attr, html, nullableNumberConverter, observable, ref, slotted, when } from "@microsoft/fast-element";
|
|
18
18
|
import { classNames } from "@microsoft/fast-web-utilities";
|
|
19
19
|
//#region src/lib/text-field/text-field.ts
|
|
20
|
-
/**
|
|
21
|
-
* Text field sub-types
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
20
|
+
/** Text field sub-types */
|
|
24
21
|
var TextFieldType = {
|
|
25
|
-
/**
|
|
26
|
-
* An email TextField
|
|
27
|
-
*/
|
|
22
|
+
/** An email TextField */
|
|
28
23
|
email: "email",
|
|
29
|
-
/**
|
|
30
|
-
* A password TextField
|
|
31
|
-
*/
|
|
24
|
+
/** A password TextField */
|
|
32
25
|
password: "password",
|
|
33
|
-
/**
|
|
34
|
-
* A telephone TextField
|
|
35
|
-
*/
|
|
26
|
+
/** A telephone TextField */
|
|
36
27
|
tel: "tel",
|
|
37
|
-
/**
|
|
38
|
-
* A text TextField
|
|
39
|
-
*/
|
|
28
|
+
/** A text TextField */
|
|
40
29
|
text: "text",
|
|
41
|
-
/**
|
|
42
|
-
* A URL TextField
|
|
43
|
-
*/
|
|
30
|
+
/** A URL TextField */
|
|
44
31
|
url: "url"
|
|
45
32
|
};
|
|
46
33
|
var safariWorkaroundStyles = new ElementStyles([`
|
|
@@ -76,9 +63,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
76
63
|
this.type = TextFieldType.text;
|
|
77
64
|
this.#randomId = generateRandomId();
|
|
78
65
|
}
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
66
|
+
/** @internal */
|
|
82
67
|
readOnlyChanged() {
|
|
83
68
|
/* v8 ignore if -- @preserve */
|
|
84
69
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -86,9 +71,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
86
71
|
this.validate();
|
|
87
72
|
}
|
|
88
73
|
}
|
|
89
|
-
/**
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
74
|
+
/** @internal */
|
|
92
75
|
autofocusChanged() {
|
|
93
76
|
/* v8 ignore if -- @preserve */
|
|
94
77
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -96,16 +79,12 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
96
79
|
this.validate();
|
|
97
80
|
}
|
|
98
81
|
}
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
82
|
+
/** @internal */
|
|
102
83
|
placeholderChanged() {
|
|
103
84
|
/* v8 ignore if -- @preserve */
|
|
104
85
|
if (this.proxy instanceof HTMLInputElement) this.proxy.placeholder = this.placeholder;
|
|
105
86
|
}
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
87
|
+
/** @internal */
|
|
109
88
|
typeChanged() {
|
|
110
89
|
/* v8 ignore if -- @preserve */
|
|
111
90
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -113,9 +92,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
113
92
|
this.validate();
|
|
114
93
|
}
|
|
115
94
|
}
|
|
116
|
-
/**
|
|
117
|
-
* @internal
|
|
118
|
-
*/
|
|
95
|
+
/** @internal */
|
|
119
96
|
listChanged() {
|
|
120
97
|
/* v8 ignore if -- @preserve */
|
|
121
98
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -123,9 +100,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
123
100
|
this.validate();
|
|
124
101
|
}
|
|
125
102
|
}
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
103
|
+
/** @internal */
|
|
129
104
|
maxlengthChanged() {
|
|
130
105
|
/* v8 ignore if -- @preserve */
|
|
131
106
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -133,9 +108,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
133
108
|
this.validate();
|
|
134
109
|
}
|
|
135
110
|
}
|
|
136
|
-
/**
|
|
137
|
-
* @internal
|
|
138
|
-
*/
|
|
111
|
+
/** @internal */
|
|
139
112
|
minlengthChanged() {
|
|
140
113
|
/* v8 ignore if -- @preserve */
|
|
141
114
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -143,9 +116,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
143
116
|
this.validate();
|
|
144
117
|
}
|
|
145
118
|
}
|
|
146
|
-
/**
|
|
147
|
-
* @internal
|
|
148
|
-
*/
|
|
119
|
+
/** @internal */
|
|
149
120
|
patternChanged() {
|
|
150
121
|
/* v8 ignore if -- @preserve */
|
|
151
122
|
if (this.proxy instanceof HTMLInputElement) {
|
|
@@ -153,23 +124,17 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
153
124
|
this.validate();
|
|
154
125
|
}
|
|
155
126
|
}
|
|
156
|
-
/**
|
|
157
|
-
* @internal
|
|
158
|
-
*/
|
|
127
|
+
/** @internal */
|
|
159
128
|
sizeChanged() {
|
|
160
129
|
/* v8 ignore if -- @preserve */
|
|
161
130
|
if (this.proxy instanceof HTMLInputElement) this.proxy.size = this.size;
|
|
162
131
|
}
|
|
163
|
-
/**
|
|
164
|
-
* @internal
|
|
165
|
-
*/
|
|
132
|
+
/** @internal */
|
|
166
133
|
spellcheckChanged() {
|
|
167
134
|
/* v8 ignore if -- @preserve */
|
|
168
135
|
if (this.proxy instanceof HTMLInputElement) this.proxy.spellcheck = this.spellcheck;
|
|
169
136
|
}
|
|
170
|
-
/**
|
|
171
|
-
* @internal
|
|
172
|
-
*/
|
|
137
|
+
/** @internal */
|
|
173
138
|
valueChanged(previous, next) {
|
|
174
139
|
super.valueChanged(previous, next);
|
|
175
140
|
this._updateControlValueIfNeeded();
|
|
@@ -184,11 +149,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
184
149
|
_updateControlValueIfNeeded() {
|
|
185
150
|
if (this.control && this.control.value !== this.value) this.control.value = this.value;
|
|
186
151
|
}
|
|
187
|
-
/**
|
|
188
|
-
* Selects all the text in the text field
|
|
189
|
-
*
|
|
190
|
-
* @public
|
|
191
|
-
*/
|
|
152
|
+
/** Selects all the text in the text field */
|
|
192
153
|
select() {
|
|
193
154
|
this.control.select();
|
|
194
155
|
}
|
|
@@ -232,9 +193,7 @@ var TextField = class extends WithContextualHelp(WithLightDOMFeedback(WithCharCo
|
|
|
232
193
|
this.control?.focus();
|
|
233
194
|
}
|
|
234
195
|
#randomId;
|
|
235
|
-
/**
|
|
236
|
-
* @internal
|
|
237
|
-
*/
|
|
196
|
+
/** @internal */
|
|
238
197
|
get _uniqueId() {
|
|
239
198
|
return this.id || this.#randomId;
|
|
240
199
|
}
|
|
@@ -262,11 +221,12 @@ __decorate([observable], TextField.prototype, "leadingActionItemsSlottedContent"
|
|
|
262
221
|
//#endregion
|
|
263
222
|
//#region src/lib/text-field/text-field.template.ts
|
|
264
223
|
var getControlId = (id) => `vvd-text-field-control-${id}`;
|
|
265
|
-
var getStateClasses = ({ errorValidationMessage, disabled, value, readOnly, placeholder, appearance, shape, label, successText, actionItemsSlottedContent, leadingActionItemsSlottedContent, icon, scale }) => classNames(["error", Boolean(errorValidationMessage)], ["disabled", disabled], ["has-value", Boolean(value)], ["readonly", readOnly], ["placeholder", Boolean(placeholder)], [`appearance-${appearance}`, Boolean(appearance)], [`shape-${shape}`, Boolean(shape)], ["no-label", !label], ["has-icon", !!icon], ["success", Boolean(successText)], ["action-items", !!actionItemsSlottedContent?.length], ["leading-action-items", !!leadingActionItemsSlottedContent?.length], ["no-leading", !(leadingActionItemsSlottedContent?.length || icon)], [`size-${scale}`, Boolean(scale)]);
|
|
266
224
|
var TextfieldTemplate = (context) => {
|
|
267
225
|
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
268
226
|
return html`
|
|
269
|
-
<div
|
|
227
|
+
<div
|
|
228
|
+
class="base ${(x) => classNames(["error", Boolean(x.errorValidationMessage)], ["disabled", x.disabled], ["has-value", Boolean(x.value)], ["readonly", x.readOnly], ["placeholder", Boolean(x.placeholder)], [`appearance-${x.appearance}`, Boolean(x.appearance)], [`shape-${x.shape}`, Boolean(x.shape)], ["no-label", !x.label], ["has-icon", !!x.icon], ["success", Boolean(x.successText)], ["action-items", !!x.actionItemsSlottedContent?.length], ["leading-action-items", !!x.leadingActionItemsSlottedContent?.length], ["no-leading", !(x.leadingActionItemsSlottedContent?.length || x.icon)], [`size-${x.scale}`, Boolean(x.scale)])}"
|
|
229
|
+
>
|
|
270
230
|
${when((x) => x.charCount && x.maxlength, (x) => x._getCharCountTemplate(context))}
|
|
271
231
|
<div
|
|
272
232
|
class="label-wrapper"
|
|
@@ -339,9 +299,7 @@ var TextfieldTemplate = (context) => {
|
|
|
339
299
|
};
|
|
340
300
|
//#endregion
|
|
341
301
|
//#region src/lib/text-field/definition.ts
|
|
342
|
-
/**
|
|
343
|
-
* @internal
|
|
344
|
-
*/
|
|
302
|
+
/** @internal */
|
|
345
303
|
var textFieldDefinition = defineVividComponent("text-field", TextField, TextfieldTemplate, [
|
|
346
304
|
iconDefinition,
|
|
347
305
|
feedbackMessageDefinition,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
require("./chunk.cjs");
|
|
2
2
|
const require_vivid_element = require("./vivid-element.cjs");
|
|
3
3
|
const require_decorate = require("./decorate.cjs");
|
|
4
|
-
const require_kbd_shortcut = require("./kbd-shortcut.cjs");
|
|
5
4
|
const require_dialog = require("./dialog.cjs");
|
|
6
|
-
const require_definition = require("./
|
|
5
|
+
const require_definition = require("./definition9.cjs");
|
|
6
|
+
const require_kbd_shortcut = require("./kbd-shortcut.cjs");
|
|
7
7
|
const require_anchored = require("./anchored.cjs");
|
|
8
8
|
const require_randomId = require("./randomId.cjs");
|
|
9
9
|
let _microsoft_fast_element = require("@microsoft/fast-element");
|
|
@@ -49,9 +49,7 @@ var Tooltip = class extends require_kbd_shortcut.WithKbdShortcut(require_anchore
|
|
|
49
49
|
super.disconnectedCallback();
|
|
50
50
|
this.#updateListeners();
|
|
51
51
|
}
|
|
52
|
-
/**
|
|
53
|
-
* @internal
|
|
54
|
-
*/
|
|
52
|
+
/** @internal */
|
|
55
53
|
_anchorElChanged(oldValue, newValue) {
|
|
56
54
|
if (oldValue) this.#cleanupAnchor(oldValue);
|
|
57
55
|
if (newValue) this.#setupAnchor(newValue);
|
|
@@ -83,9 +81,7 @@ var Tooltip = class extends require_kbd_shortcut.WithKbdShortcut(require_anchore
|
|
|
83
81
|
if (this.open && this.isConnected) document.addEventListener("keydown", this.#closeOnEscape);
|
|
84
82
|
}
|
|
85
83
|
#closeOnEscape;
|
|
86
|
-
/**
|
|
87
|
-
* @internal
|
|
88
|
-
*/
|
|
84
|
+
/** @internal */
|
|
89
85
|
openChanged(oldValue) {
|
|
90
86
|
if (oldValue === void 0) return;
|
|
91
87
|
this.#updateListeners();
|
|
@@ -96,13 +92,12 @@ require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "fromView
|
|
|
96
92
|
require_decorate.__decorate([(0, _microsoft_fast_element.attr)({ mode: "boolean" })], Tooltip.prototype, "open", void 0);
|
|
97
93
|
//#endregion
|
|
98
94
|
//#region src/lib/tooltip/tooltip.template.ts
|
|
99
|
-
var getClasses = ({ open }) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open", open]);
|
|
100
95
|
var TooltipTemplate = (context) => {
|
|
101
96
|
const popupTag = context.tagFor(require_definition.Popup);
|
|
102
97
|
return _microsoft_fast_element.html`
|
|
103
98
|
${require_anchored.anchorSlotTemplateFactory()}
|
|
104
99
|
${require_randomId.renderInLightDOM(_microsoft_fast_element.html`<span slot="_description" id="${(x) => x._descriptionId}">${(x) => x.text}</span>`)}
|
|
105
|
-
<${popupTag} class="${
|
|
100
|
+
<${popupTag} class="${(x) => (0, _microsoft_fast_web_utilities.classNames)("control", ["open", x.open])}" arrow alternate
|
|
106
101
|
:placement=${(x) => x.placement}
|
|
107
102
|
:anchor="${(x) => x._anchorEl}"
|
|
108
103
|
:open="${(x) => x.open}"
|
|
@@ -123,9 +118,7 @@ ${require_randomId.renderInLightDOM(_microsoft_fast_element.html`<span slot="_de
|
|
|
123
118
|
};
|
|
124
119
|
//#endregion
|
|
125
120
|
//#region src/lib/tooltip/definition.ts
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
*/
|
|
121
|
+
/** @internal */
|
|
129
122
|
var tooltipDefinition = require_vivid_element.defineVividComponent("tooltip", Tooltip, TooltipTemplate, [require_definition.popupDefinition], { styles: tooltip_default });
|
|
130
123
|
/**
|
|
131
124
|
* Registers the tooltip elements with the design system.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { d as createRegisterFunction, t as VividElement, u as defineVividComponent } from "./vivid-element.js";
|
|
2
2
|
import { t as __decorate } from "./decorate.js";
|
|
3
|
-
import { t as WithKbdShortcut } from "./kbd-shortcut.js";
|
|
4
3
|
import { t as handleEscapeKeyAndStopPropogation } from "./dialog.js";
|
|
5
|
-
import { i as Popup, t as popupDefinition } from "./
|
|
4
|
+
import { i as Popup, t as popupDefinition } from "./definition9.js";
|
|
5
|
+
import { t as WithKbdShortcut } from "./kbd-shortcut.js";
|
|
6
6
|
import { n as anchorSlotTemplateFactory, t as Anchored } from "./anchored.js";
|
|
7
7
|
import { n as renderInLightDOM, t as generateRandomId } from "./randomId.js";
|
|
8
8
|
import { DOM, attr, elements, html, slotted } from "@microsoft/fast-element";
|
|
@@ -48,9 +48,7 @@ var Tooltip = class extends WithKbdShortcut(Anchored(VividElement)) {
|
|
|
48
48
|
super.disconnectedCallback();
|
|
49
49
|
this.#updateListeners();
|
|
50
50
|
}
|
|
51
|
-
/**
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
51
|
+
/** @internal */
|
|
54
52
|
_anchorElChanged(oldValue, newValue) {
|
|
55
53
|
if (oldValue) this.#cleanupAnchor(oldValue);
|
|
56
54
|
if (newValue) this.#setupAnchor(newValue);
|
|
@@ -82,9 +80,7 @@ var Tooltip = class extends WithKbdShortcut(Anchored(VividElement)) {
|
|
|
82
80
|
if (this.open && this.isConnected) document.addEventListener("keydown", this.#closeOnEscape);
|
|
83
81
|
}
|
|
84
82
|
#closeOnEscape;
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
83
|
+
/** @internal */
|
|
88
84
|
openChanged(oldValue) {
|
|
89
85
|
if (oldValue === void 0) return;
|
|
90
86
|
this.#updateListeners();
|
|
@@ -95,13 +91,12 @@ __decorate([attr({ mode: "fromView" })], Tooltip.prototype, "placement", void 0)
|
|
|
95
91
|
__decorate([attr({ mode: "boolean" })], Tooltip.prototype, "open", void 0);
|
|
96
92
|
//#endregion
|
|
97
93
|
//#region src/lib/tooltip/tooltip.template.ts
|
|
98
|
-
var getClasses = ({ open }) => classNames("control", ["open", open]);
|
|
99
94
|
var TooltipTemplate = (context) => {
|
|
100
95
|
const popupTag = context.tagFor(Popup);
|
|
101
96
|
return html`
|
|
102
97
|
${anchorSlotTemplateFactory()}
|
|
103
98
|
${renderInLightDOM(html`<span slot="_description" id="${(x) => x._descriptionId}">${(x) => x.text}</span>`)}
|
|
104
|
-
<${popupTag} class="${
|
|
99
|
+
<${popupTag} class="${(x) => classNames("control", ["open", x.open])}" arrow alternate
|
|
105
100
|
:placement=${(x) => x.placement}
|
|
106
101
|
:anchor="${(x) => x._anchorEl}"
|
|
107
102
|
:open="${(x) => x.open}"
|
|
@@ -122,9 +117,7 @@ ${renderInLightDOM(html`<span slot="_description" id="${(x) => x._descriptionId}
|
|
|
122
117
|
};
|
|
123
118
|
//#endregion
|
|
124
119
|
//#region src/lib/tooltip/definition.ts
|
|
125
|
-
/**
|
|
126
|
-
* @internal
|
|
127
|
-
*/
|
|
120
|
+
/** @internal */
|
|
128
121
|
var tooltipDefinition = defineVividComponent("tooltip", Tooltip, TooltipTemplate, [popupDefinition], { styles: tooltip_default });
|
|
129
122
|
/**
|
|
130
123
|
* Registers the tooltip elements with the design system.
|