@dialpad/dialtone-vue 3.120.0 → 3.120.2
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/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js +11 -0
- package/dist/chunks/_plugin-vue_export-helper-caHeSgYY.js.map +1 -0
- package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js +10 -0
- package/dist/chunks/_plugin-vue_export-helper-fhnQq0tA.js.map +1 -0
- package/dist/chunks/{dropdown-eWOvBvwq.js → dropdown-Hn-TeTvZ.js} +151 -104
- package/dist/chunks/{dropdown-UO3UJalk.js.map → dropdown-Hn-TeTvZ.js.map} +1 -1
- package/dist/chunks/dropdown-w8Do29L5.js +442 -0
- package/dist/chunks/{dropdown-eWOvBvwq.js.map → dropdown-w8Do29L5.js.map} +1 -1
- package/dist/chunks/dropdown_constants-2pGCXy7m.js +8 -0
- package/dist/chunks/dropdown_constants-2pGCXy7m.js.map +1 -0
- package/dist/chunks/dropdown_constants-w1MXGC3Z.js +9 -0
- package/dist/chunks/dropdown_constants-w1MXGC3Z.js.map +1 -0
- package/dist/chunks/{icon_constants-OpYAAKwF.js → icon_constants-Dy4MEUJL.js} +7 -6
- package/dist/chunks/{icon_constants-2S_OSQ1t.js.map → icon_constants-Dy4MEUJL.js.map} +1 -1
- package/dist/chunks/icon_constants-QYpmdE0R.js +16 -0
- package/dist/chunks/{icon_constants-OpYAAKwF.js.map → icon_constants-QYpmdE0R.js.map} +1 -1
- package/dist/chunks/index-4qgKeErp.js +446 -0
- package/dist/chunks/{index-b4iXYvId.js.map → index-4qgKeErp.js.map} +1 -1
- package/dist/chunks/index-b_MgDylR.js +447 -0
- package/dist/chunks/{index-6tYeqbgP.js.map → index-b_MgDylR.js.map} +1 -1
- package/dist/chunks/{input-4UQWegUk.js → input-NmYDD5bn.js} +83 -60
- package/dist/chunks/{input-0Uksk4DP.js.map → input-NmYDD5bn.js.map} +1 -1
- package/dist/chunks/input-ttnte8zB.js +295 -0
- package/dist/chunks/{input-4UQWegUk.js.map → input-ttnte8zB.js.map} +1 -1
- package/dist/chunks/input_group-M-D25pOJ.js +152 -0
- package/dist/chunks/{input_group-bBKaq3Wi.js.map → input_group-M-D25pOJ.js.map} +1 -1
- package/dist/chunks/{input_group-bBKaq3Wi.js → input_group-jWnq2DJT.js} +27 -24
- package/dist/chunks/{input_group-AS760Cp7.js.map → input_group-jWnq2DJT.js.map} +1 -1
- package/dist/chunks/keyboard_list_navigation-ScXhrxya.js +284 -0
- package/dist/chunks/{keyboard_list_navigation-N74Bpdq7.js.map → keyboard_list_navigation-ScXhrxya.js.map} +1 -1
- package/dist/chunks/keyboard_list_navigation-fJnl_Iox.js +283 -0
- package/dist/chunks/{keyboard_list_navigation-F0O8nht0.js.map → keyboard_list_navigation-fJnl_Iox.js.map} +1 -1
- package/dist/chunks/link_constants-Huj7D_hm.js +22 -0
- package/dist/chunks/{link_constants-Kn6kP4i1.js.map → link_constants-Huj7D_hm.js.map} +1 -1
- package/dist/chunks/link_constants-nWVlXQBs.js +23 -0
- package/dist/chunks/{link_constants-vIUB92L4.js.map → link_constants-nWVlXQBs.js.map} +1 -1
- package/dist/chunks/list_item_constants-EiqkqZvP.js +13 -0
- package/dist/chunks/{list_item_constants-Tsz5CO1m.js.map → list_item_constants-EiqkqZvP.js.map} +1 -1
- package/dist/chunks/list_item_constants-u1xcN9Dd.js +14 -0
- package/dist/chunks/{list_item_constants-LTUc74pD.js.map → list_item_constants-u1xcN9Dd.js.map} +1 -1
- package/dist/chunks/modal-VgxXAQFP.js +105 -0
- package/dist/chunks/{modal-qEzlo0Sj.js.map → modal-VgxXAQFP.js.map} +1 -1
- package/dist/chunks/modal-XOr4kiNZ.js +106 -0
- package/dist/chunks/{modal-VuMFkZFH.js.map → modal-XOr4kiNZ.js.map} +1 -1
- package/dist/chunks/notice_action-WTucGhvr.js +222 -0
- package/dist/chunks/{notice_action-tJfD5Qw1.js.map → notice_action-WTucGhvr.js.map} +1 -1
- package/dist/chunks/notice_action-p-ePanW_.js +223 -0
- package/dist/chunks/{notice_action-jO199emq.js.map → notice_action-p-ePanW_.js.map} +1 -1
- package/dist/chunks/notice_constants-7Qt2CQEY.js +7 -0
- package/dist/chunks/{notice_constants-mC6al2Dm.js.map → notice_constants-7Qt2CQEY.js.map} +1 -1
- package/dist/chunks/notice_constants-UXo9e3bS.js +6 -0
- package/dist/chunks/{notice_constants-c--hBFQw.js.map → notice_constants-UXo9e3bS.js.map} +1 -1
- package/dist/chunks/popover_constants-JwBF9h1Z.js +143 -0
- package/dist/chunks/{popover_constants-hOEhklvr.js.map → popover_constants-JwBF9h1Z.js.map} +1 -1
- package/dist/chunks/popover_constants-Qkpb0yh2.js +144 -0
- package/dist/chunks/{popover_constants-qjlEkroB.js.map → popover_constants-Qkpb0yh2.js.map} +1 -1
- package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js → sr_only_close_button-3EdsV-dH.js} +28 -24
- package/dist/chunks/{sr_only_close_button-iD7s1Pbj.js.map → sr_only_close_button-3EdsV-dH.js.map} +1 -1
- package/dist/chunks/sr_only_close_button-xGrHFjwA.js +91 -0
- package/dist/chunks/{sr_only_close_button-7O-Ev8uM.js.map → sr_only_close_button-xGrHFjwA.js.map} +1 -1
- package/dist/chunks/stack_constants-HraCekPm.js +15 -0
- package/dist/chunks/{stack_constants-m9Ickqw0.js.map → stack_constants-HraCekPm.js.map} +1 -1
- package/dist/chunks/stack_constants-SMzMWnAQ.js +14 -0
- package/dist/chunks/{stack_constants-u7tNqGtc.js.map → stack_constants-SMzMWnAQ.js.map} +1 -1
- package/dist/chunks/tab-RTDgnD9-.js +391 -0
- package/dist/chunks/{tab-at7WWglk.js.map → tab-RTDgnD9-.js.map} +1 -1
- package/dist/chunks/tab-qc3f42Yp.js +390 -0
- package/dist/chunks/{tab-GQZFMq83.js.map → tab-qc3f42Yp.js.map} +1 -1
- package/dist/common/constants.cjs +60 -0
- package/dist/{lib → common}/constants.cjs.map +1 -1
- package/dist/{lib → common}/constants.js +25 -18
- package/dist/{lib → common}/constants.js.map +1 -1
- package/dist/common/dates.cjs +72 -0
- package/dist/{lib → common}/dates.cjs.map +1 -1
- package/dist/common/dates.js +72 -0
- package/dist/{lib → common}/dates.js.map +1 -1
- package/dist/common/emoji.cjs +163 -0
- package/dist/common/emoji.cjs.map +1 -0
- package/dist/common/emoji.js +168 -0
- package/dist/common/emoji.js.map +1 -0
- package/dist/common/mixins.cjs +17 -0
- package/dist/{lib → common}/mixins.cjs.map +1 -1
- package/dist/common/mixins.js +17 -0
- package/dist/common/utils.cjs +243 -0
- package/dist/{lib → common}/utils.cjs.map +1 -1
- package/dist/common/utils.js +243 -0
- package/dist/{lib → common}/utils.js.map +1 -1
- package/dist/common/validators.cjs +23 -0
- package/dist/{lib → common}/validators.cjs.map +1 -1
- package/dist/common/validators.js +23 -0
- package/dist/{lib → common}/validators.js.map +1 -1
- package/dist/dialtone-vue.cjs +373 -1
- package/dist/dialtone-vue.cjs.map +1 -1
- package/dist/dialtone-vue.js +328 -327
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/attachment-carousel.cjs +345 -1
- package/dist/lib/attachment-carousel.cjs.map +1 -1
- package/dist/lib/attachment-carousel.js +126 -108
- package/dist/lib/attachment-carousel.js.map +1 -1
- package/dist/lib/avatar.cjs +447 -1
- package/dist/lib/avatar.cjs.map +1 -1
- package/dist/lib/avatar.js +135 -101
- package/dist/lib/avatar.js.map +1 -1
- package/dist/lib/badge.cjs +206 -1
- package/dist/lib/badge.cjs.map +1 -1
- package/dist/lib/badge.js +64 -48
- package/dist/lib/badge.js.map +1 -1
- package/dist/lib/banner.cjs +242 -2
- package/dist/lib/banner.cjs.map +1 -1
- package/dist/lib/banner.js +81 -71
- package/dist/lib/banner.js.map +1 -1
- package/dist/lib/breadcrumbs.cjs +150 -1
- package/dist/lib/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs.js +60 -52
- package/dist/lib/breadcrumbs.js.map +1 -1
- package/dist/lib/button-group.cjs +41 -1
- package/dist/lib/button-group.cjs.map +1 -1
- package/dist/lib/button-group.js +15 -14
- package/dist/lib/button-group.js.map +1 -1
- package/dist/lib/button.cjs +356 -1
- package/dist/lib/button.cjs.map +1 -1
- package/dist/lib/button.js +108 -88
- package/dist/lib/button.js.map +1 -1
- package/dist/lib/callbar-button-with-popover.cjs +322 -1
- package/dist/lib/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover.js +101 -83
- package/dist/lib/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbar-button.cjs +200 -1
- package/dist/lib/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button.js +52 -45
- package/dist/lib/callbar-button.js.map +1 -1
- package/dist/lib/callbox.cjs +217 -1
- package/dist/lib/callbox.cjs.map +1 -1
- package/dist/lib/callbox.js +80 -67
- package/dist/lib/callbox.js.map +1 -1
- package/dist/lib/card.cjs +91 -1
- package/dist/lib/card.cjs.map +1 -1
- package/dist/lib/card.js +27 -27
- package/dist/lib/card.js.map +1 -1
- package/dist/lib/checkbox-group.cjs +115 -1
- package/dist/lib/checkbox-group.cjs.map +1 -1
- package/dist/lib/checkbox-group.js +34 -23
- package/dist/lib/checkbox-group.js.map +1 -1
- package/dist/lib/checkbox.cjs +156 -1
- package/dist/lib/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox.js +72 -60
- package/dist/lib/checkbox.js.map +1 -1
- package/dist/lib/chip.cjs +235 -1
- package/dist/lib/chip.cjs.map +1 -1
- package/dist/lib/chip.js +84 -67
- package/dist/lib/chip.js.map +1 -1
- package/dist/lib/codeblock.cjs +23 -2
- package/dist/lib/codeblock.cjs.map +1 -1
- package/dist/lib/codeblock.js +13 -13
- package/dist/lib/codeblock.js.map +1 -1
- package/dist/lib/collapsible.cjs +398 -1
- package/dist/lib/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible.js +123 -100
- package/dist/lib/collapsible.js.map +1 -1
- package/dist/lib/combobox-multi-select.cjs +589 -1
- package/dist/lib/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select.js +270 -177
- package/dist/lib/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover.cjs +452 -1
- package/dist/lib/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover.js +172 -127
- package/dist/lib/combobox-with-popover.js.map +1 -1
- package/dist/lib/combobox.cjs +18 -1
- package/dist/lib/combobox.cjs.map +1 -1
- package/dist/lib/combobox.js +9 -9
- package/dist/lib/contact-info.cjs +205 -1
- package/dist/lib/contact-info.cjs.map +1 -1
- package/dist/lib/contact-info.js +69 -60
- package/dist/lib/contact-info.js.map +1 -1
- package/dist/lib/contact-row.cjs +246 -1
- package/dist/lib/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row.js +67 -63
- package/dist/lib/contact-row.js.map +1 -1
- package/dist/lib/datepicker.cjs +854 -1
- package/dist/lib/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker.js +585 -441
- package/dist/lib/datepicker.js.map +1 -1
- package/dist/lib/description-list.cjs +116 -1
- package/dist/lib/description-list.cjs.map +1 -1
- package/dist/lib/description-list.js +56 -24
- package/dist/lib/description-list.js.map +1 -1
- package/dist/lib/dropdown.cjs +36 -1
- package/dist/lib/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown.js +22 -21
- package/dist/lib/dropdown.js.map +1 -1
- package/dist/lib/editor.cjs +711 -1
- package/dist/lib/editor.cjs.map +1 -1
- package/dist/lib/editor.js +271 -235
- package/dist/lib/editor.js.map +1 -1
- package/dist/lib/emoji-picker.cjs +1277 -1
- package/dist/lib/emoji-picker.cjs.map +1 -1
- package/dist/lib/emoji-picker.js +859 -569
- package/dist/lib/emoji-picker.js.map +1 -1
- package/dist/lib/emoji-row.cjs +128 -1
- package/dist/lib/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row.js +89 -75
- package/dist/lib/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper.cjs +102 -1
- package/dist/lib/emoji-text-wrapper.cjs.map +1 -1
- package/dist/lib/emoji-text-wrapper.js +42 -31
- package/dist/lib/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/emoji.cjs +158 -1
- package/dist/lib/emoji.cjs.map +1 -1
- package/dist/lib/emoji.js +153 -6
- package/dist/lib/emoji.js.map +1 -1
- package/dist/lib/feed-item-row.cjs +296 -1
- package/dist/lib/feed-item-row.cjs.map +1 -1
- package/dist/lib/feed-item-row.js +119 -100
- package/dist/lib/feed-item-row.js.map +1 -1
- package/dist/lib/feed-pill.cjs +173 -1
- package/dist/lib/feed-pill.cjs.map +1 -1
- package/dist/lib/feed-pill.js +70 -57
- package/dist/lib/feed-pill.js.map +1 -1
- package/dist/lib/general-row.cjs +518 -1
- package/dist/lib/general-row.cjs.map +1 -1
- package/dist/lib/general-row.js +186 -148
- package/dist/lib/general-row.js.map +1 -1
- package/dist/lib/group-row.cjs +116 -1
- package/dist/lib/group-row.cjs.map +1 -1
- package/dist/lib/group-row.js +37 -35
- package/dist/lib/group-row.js.map +1 -1
- package/dist/lib/grouped-chip.cjs +96 -1
- package/dist/lib/grouped-chip.cjs.map +1 -1
- package/dist/lib/grouped-chip.js +51 -46
- package/dist/lib/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard.cjs +223 -1
- package/dist/lib/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard.js +115 -80
- package/dist/lib/hovercard.js.map +1 -1
- package/dist/lib/icon.cjs +58 -1
- package/dist/lib/icon.cjs.map +1 -1
- package/dist/lib/icon.js +20 -20
- package/dist/lib/icon.js.map +1 -1
- package/dist/lib/image-viewer.cjs +243 -1
- package/dist/lib/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer.js +104 -80
- package/dist/lib/image-viewer.js.map +1 -1
- package/dist/lib/input-group.cjs +91 -1
- package/dist/lib/input-group.cjs.map +1 -1
- package/dist/lib/input-group.js +41 -39
- package/dist/lib/input-group.js.map +1 -1
- package/dist/lib/input.cjs +578 -1
- package/dist/lib/input.cjs.map +1 -1
- package/dist/lib/input.js +185 -137
- package/dist/lib/input.js.map +1 -1
- package/dist/lib/item-layout.cjs +91 -1
- package/dist/lib/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout.js +45 -39
- package/dist/lib/item-layout.js.map +1 -1
- package/dist/lib/ivr-node.cjs +263 -1
- package/dist/lib/ivr-node.cjs.map +1 -1
- package/dist/lib/ivr-node.js +130 -112
- package/dist/lib/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut.cjs +119 -1
- package/dist/lib/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut.js +58 -48
- package/dist/lib/keyboard-shortcut.js.map +1 -1
- package/dist/lib/lazy-show.cjs +82 -1
- package/dist/lib/lazy-show.cjs.map +1 -1
- package/dist/lib/lazy-show.js +21 -19
- package/dist/lib/lazy-show.js.map +1 -1
- package/dist/lib/link.cjs +43 -1
- package/dist/lib/link.cjs.map +1 -1
- package/dist/lib/link.js +20 -19
- package/dist/lib/link.js.map +1 -1
- package/dist/lib/list-item-group.cjs +67 -1
- package/dist/lib/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group.js +24 -22
- package/dist/lib/list-item-group.js.map +1 -1
- package/dist/lib/list-item.cjs +216 -1
- package/dist/lib/list-item.cjs.map +1 -1
- package/dist/lib/list-item.js +71 -60
- package/dist/lib/list-item.js.map +1 -1
- package/dist/lib/message-input.cjs +708 -1
- package/dist/lib/message-input.cjs.map +1 -1
- package/dist/lib/message-input.js +232 -206
- package/dist/lib/message-input.js.map +1 -1
- package/dist/lib/modal.cjs +444 -2
- package/dist/lib/modal.cjs.map +1 -1
- package/dist/lib/modal.js +153 -120
- package/dist/lib/modal.js.map +1 -1
- package/dist/lib/notice.cjs +197 -1
- package/dist/lib/notice.cjs.map +1 -1
- package/dist/lib/notice.js +66 -63
- package/dist/lib/notice.js.map +1 -1
- package/dist/lib/pagination.cjs +205 -1
- package/dist/lib/pagination.cjs.map +1 -1
- package/dist/lib/pagination.js +96 -81
- package/dist/lib/pagination.js.map +1 -1
- package/dist/lib/popover.cjs +1080 -1
- package/dist/lib/popover.cjs.map +1 -1
- package/dist/lib/popover.js +447 -267
- package/dist/lib/popover.js.map +1 -1
- package/dist/lib/presence.cjs +70 -1
- package/dist/lib/presence.cjs.map +1 -1
- package/dist/lib/presence.js +33 -27
- package/dist/lib/presence.js.map +1 -1
- package/dist/lib/radio-group.cjs +88 -1
- package/dist/lib/radio-group.cjs.map +1 -1
- package/dist/lib/radio-group.js +18 -18
- package/dist/lib/radio-group.js.map +1 -1
- package/dist/lib/radio.cjs +162 -1
- package/dist/lib/radio.cjs.map +1 -1
- package/dist/lib/radio.js +66 -57
- package/dist/lib/radio.js.map +1 -1
- package/dist/lib/rich-text-editor.cjs +1137 -1
- package/dist/lib/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor.js +567 -386
- package/dist/lib/rich-text-editor.js.map +1 -1
- package/dist/lib/root-layout.cjs +158 -1
- package/dist/lib/root-layout.cjs.map +1 -1
- package/dist/lib/root-layout.js +33 -31
- package/dist/lib/root-layout.js.map +1 -1
- package/dist/lib/scroller.cjs +1090 -1
- package/dist/lib/scroller.cjs.map +1 -1
- package/dist/lib/scroller.js +668 -345
- package/dist/lib/scroller.js.map +1 -1
- package/dist/lib/select-menu.cjs +312 -1
- package/dist/lib/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu.js +124 -79
- package/dist/lib/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button.cjs +77 -1
- package/dist/lib/settings-menu-button.cjs.map +1 -1
- package/dist/lib/settings-menu-button.js +31 -30
- package/dist/lib/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton.cjs +635 -1
- package/dist/lib/skeleton.cjs.map +1 -1
- package/dist/lib/skeleton.js +189 -152
- package/dist/lib/skeleton.js.map +1 -1
- package/dist/lib/stack.cjs +123 -1
- package/dist/lib/stack.cjs.map +1 -1
- package/dist/lib/stack.js +61 -53
- package/dist/lib/stack.js.map +1 -1
- package/dist/lib/tabs.cjs +102 -1
- package/dist/lib/tabs.cjs.map +1 -1
- package/dist/lib/tabs.js +47 -41
- package/dist/lib/tabs.js.map +1 -1
- package/dist/lib/time-pill.cjs +41 -1
- package/dist/lib/time-pill.cjs.map +1 -1
- package/dist/lib/time-pill.js +18 -14
- package/dist/lib/time-pill.js.map +1 -1
- package/dist/lib/toast.cjs +281 -1
- package/dist/lib/toast.cjs.map +1 -1
- package/dist/lib/toast.js +96 -74
- package/dist/lib/toast.js.map +1 -1
- package/dist/lib/toggle.cjs +192 -1
- package/dist/lib/toggle.cjs.map +1 -1
- package/dist/lib/toggle.js +60 -49
- package/dist/lib/toggle.js.map +1 -1
- package/dist/lib/tooltip-directive.cjs +84 -1
- package/dist/lib/tooltip-directive.cjs.map +1 -1
- package/dist/lib/tooltip-directive.js +56 -42
- package/dist/lib/tooltip-directive.js.map +1 -1
- package/dist/lib/tooltip.cjs +460 -1
- package/dist/lib/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip.js +162 -103
- package/dist/lib/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info.cjs +71 -1
- package/dist/lib/top-banner-info.cjs.map +1 -1
- package/dist/lib/top-banner-info.js +27 -22
- package/dist/lib/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill.cjs +73 -1
- package/dist/lib/unread-pill.cjs.map +1 -1
- package/dist/lib/unread-pill.js +28 -25
- package/dist/lib/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages.cjs +89 -1
- package/dist/lib/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages.js +41 -36
- package/dist/lib/validation-messages.js.map +1 -1
- package/dist/style.css +1257 -1
- package/dist/types/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +2 -2
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +2 -2
- package/package.json +30 -29
- package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js +0 -2
- package/dist/chunks/_plugin-vue_export-helper-6_y-gaV6.js.map +0 -1
- package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js +0 -10
- package/dist/chunks/_plugin-vue_export-helper-hUChTQA_.js.map +0 -1
- package/dist/chunks/dropdown-UO3UJalk.js +0 -2
- package/dist/chunks/dropdown_constants-EUcDxBrX.js +0 -9
- package/dist/chunks/dropdown_constants-EUcDxBrX.js.map +0 -1
- package/dist/chunks/dropdown_constants-KHFvVI2L.js +0 -2
- package/dist/chunks/dropdown_constants-KHFvVI2L.js.map +0 -1
- package/dist/chunks/icon_constants-2S_OSQ1t.js +0 -2
- package/dist/chunks/index-6tYeqbgP.js +0 -3
- package/dist/chunks/index-IBtQ5jRJ.js +0 -2
- package/dist/chunks/index-IBtQ5jRJ.js.map +0 -1
- package/dist/chunks/index-b4iXYvId.js +0 -399
- package/dist/chunks/index-mRmwpCBG.js +0 -256
- package/dist/chunks/index-mRmwpCBG.js.map +0 -1
- package/dist/chunks/input-0Uksk4DP.js +0 -2
- package/dist/chunks/input_group-AS760Cp7.js +0 -2
- package/dist/chunks/keyboard_list_navigation-F0O8nht0.js +0 -197
- package/dist/chunks/keyboard_list_navigation-N74Bpdq7.js +0 -2
- package/dist/chunks/link_constants-Kn6kP4i1.js +0 -2
- package/dist/chunks/link_constants-vIUB92L4.js +0 -16
- package/dist/chunks/list_item_constants-LTUc74pD.js +0 -13
- package/dist/chunks/list_item_constants-Tsz5CO1m.js +0 -2
- package/dist/chunks/modal-VuMFkZFH.js +0 -82
- package/dist/chunks/modal-qEzlo0Sj.js +0 -2
- package/dist/chunks/notice_action-jO199emq.js +0 -2
- package/dist/chunks/notice_action-tJfD5Qw1.js +0 -209
- package/dist/chunks/notice_constants-c--hBFQw.js +0 -6
- package/dist/chunks/notice_constants-mC6al2Dm.js +0 -2
- package/dist/chunks/popover_constants-hOEhklvr.js +0 -2
- package/dist/chunks/popover_constants-qjlEkroB.js +0 -114
- package/dist/chunks/sr_only_close_button-iD7s1Pbj.js +0 -3
- package/dist/chunks/stack_constants-m9Ickqw0.js +0 -2
- package/dist/chunks/stack_constants-u7tNqGtc.js +0 -13
- package/dist/chunks/tab-GQZFMq83.js +0 -367
- package/dist/chunks/tab-at7WWglk.js +0 -2
- package/dist/lib/constants.cjs +0 -2
- package/dist/lib/dates.cjs +0 -2
- package/dist/lib/dates.js +0 -57
- package/dist/lib/mixins.cjs +0 -2
- package/dist/lib/mixins.js +0 -17
- package/dist/lib/utils.cjs +0 -2
- package/dist/lib/utils.js +0 -171
- package/dist/lib/validators.cjs +0 -2
- package/dist/lib/validators.js +0 -12
- /package/dist/{lib → common}/mixins.js.map +0 -0
package/dist/lib/input.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { DESCRIPTION_SIZE_TYPES
|
|
2
|
-
import { hasSlotContent
|
|
3
|
-
import {
|
|
4
|
-
import { resolveComponent
|
|
5
|
-
import {
|
|
6
|
-
import { DtValidationMessages
|
|
7
|
-
import "
|
|
8
|
-
const
|
|
1
|
+
import { DESCRIPTION_SIZE_TYPES, VALIDATION_MESSAGE_TYPES } from "../common/constants.js";
|
|
2
|
+
import { hasSlotContent, getUniqueString, getValidationState } from "../common/utils.js";
|
|
3
|
+
import { MessagesMixin } from "../chunks/input-NmYDD5bn.js";
|
|
4
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, renderSlot, toDisplayString, createCommentVNode, createTextVNode, mergeProps, toHandlers, createVNode } from "vue";
|
|
5
|
+
import { _export_sfc } from "../chunks/_plugin-vue_export-helper-caHeSgYY.js";
|
|
6
|
+
import { DtValidationMessages } from "./validation-messages.js";
|
|
7
|
+
import "../common/validators.js";
|
|
8
|
+
const INPUT_TYPES = {
|
|
9
9
|
TEXT: "text",
|
|
10
10
|
TEXTAREA: "textarea",
|
|
11
11
|
PASSWORD: "password",
|
|
@@ -14,17 +14,19 @@ const g = {
|
|
|
14
14
|
DATE: "date",
|
|
15
15
|
TIME: "time",
|
|
16
16
|
FILE: "file"
|
|
17
|
-
}
|
|
17
|
+
};
|
|
18
|
+
const INPUT_SIZES = {
|
|
18
19
|
EXTRA_SMALL: "xs",
|
|
19
20
|
SMALL: "sm",
|
|
20
21
|
DEFAULT: "md",
|
|
21
22
|
LARGE: "lg",
|
|
22
23
|
EXTRA_LARGE: "xl"
|
|
23
|
-
}
|
|
24
|
+
};
|
|
25
|
+
const _sfc_main = {
|
|
24
26
|
name: "DtInput",
|
|
25
|
-
components: { DtValidationMessages
|
|
26
|
-
mixins: [
|
|
27
|
-
inheritAttrs:
|
|
27
|
+
components: { DtValidationMessages },
|
|
28
|
+
mixins: [MessagesMixin],
|
|
29
|
+
inheritAttrs: false,
|
|
28
30
|
props: {
|
|
29
31
|
/**
|
|
30
32
|
* Name property of the input element
|
|
@@ -40,8 +42,8 @@ const g = {
|
|
|
40
42
|
*/
|
|
41
43
|
type: {
|
|
42
44
|
type: String,
|
|
43
|
-
default:
|
|
44
|
-
validator: (t) => Object.values(
|
|
45
|
+
default: INPUT_TYPES.TEXT,
|
|
46
|
+
validator: (t) => Object.values(INPUT_TYPES).includes(t)
|
|
45
47
|
},
|
|
46
48
|
/**
|
|
47
49
|
* Value of the input
|
|
@@ -56,7 +58,7 @@ const g = {
|
|
|
56
58
|
*/
|
|
57
59
|
disabled: {
|
|
58
60
|
type: Boolean,
|
|
59
|
-
default:
|
|
61
|
+
default: false
|
|
60
62
|
},
|
|
61
63
|
/**
|
|
62
64
|
* Label for the input
|
|
@@ -71,7 +73,7 @@ const g = {
|
|
|
71
73
|
*/
|
|
72
74
|
labelVisible: {
|
|
73
75
|
type: Boolean,
|
|
74
|
-
default:
|
|
76
|
+
default: true
|
|
75
77
|
},
|
|
76
78
|
/**
|
|
77
79
|
* Description for the input
|
|
@@ -87,7 +89,7 @@ const g = {
|
|
|
87
89
|
size: {
|
|
88
90
|
type: String,
|
|
89
91
|
default: null,
|
|
90
|
-
validator: (t) => Object.values(
|
|
92
|
+
validator: (t) => Object.values(INPUT_SIZES).includes(t)
|
|
91
93
|
},
|
|
92
94
|
/**
|
|
93
95
|
* Size of the icon. One of `xs`, `sm`, `md`, `lg`, `xl`. If you do not set this the icon will size relative
|
|
@@ -97,7 +99,7 @@ const g = {
|
|
|
97
99
|
iconSize: {
|
|
98
100
|
type: String,
|
|
99
101
|
default: null,
|
|
100
|
-
validator: (t) => Object.values(
|
|
102
|
+
validator: (t) => Object.values(INPUT_SIZES).includes(t)
|
|
101
103
|
},
|
|
102
104
|
/**
|
|
103
105
|
* Additional class name for the input element.
|
|
@@ -133,7 +135,7 @@ const g = {
|
|
|
133
135
|
*/
|
|
134
136
|
retainWarning: {
|
|
135
137
|
type: Boolean,
|
|
136
|
-
default:
|
|
138
|
+
default: false
|
|
137
139
|
},
|
|
138
140
|
/**
|
|
139
141
|
* Validation for the input. Supports maximum length validation with the structure:
|
|
@@ -149,7 +151,7 @@ const g = {
|
|
|
149
151
|
*/
|
|
150
152
|
hidden: {
|
|
151
153
|
type: Boolean,
|
|
152
|
-
default:
|
|
154
|
+
default: false
|
|
153
155
|
}
|
|
154
156
|
},
|
|
155
157
|
emits: [
|
|
@@ -227,73 +229,86 @@ const g = {
|
|
|
227
229
|
lg: "d-label--lg",
|
|
228
230
|
xl: "d-label--xl"
|
|
229
231
|
},
|
|
230
|
-
isInputFocused:
|
|
231
|
-
isInvalid:
|
|
232
|
+
isInputFocused: false,
|
|
233
|
+
isInvalid: false,
|
|
232
234
|
defaultLength: 0,
|
|
233
|
-
hasSlotContent
|
|
235
|
+
hasSlotContent
|
|
234
236
|
};
|
|
235
237
|
},
|
|
236
238
|
computed: {
|
|
237
239
|
isTextarea() {
|
|
238
|
-
return this.type ===
|
|
240
|
+
return this.type === INPUT_TYPES.TEXTAREA;
|
|
239
241
|
},
|
|
240
242
|
isDefaultSize() {
|
|
241
|
-
return this.size ===
|
|
243
|
+
return this.size === INPUT_SIZES.DEFAULT;
|
|
242
244
|
},
|
|
243
245
|
isDefaultIconSize() {
|
|
244
|
-
return this.iconSizeComputed ===
|
|
246
|
+
return this.iconSizeComputed === INPUT_SIZES.DEFAULT;
|
|
245
247
|
},
|
|
246
248
|
iconSizeComputed() {
|
|
247
249
|
return this.iconSize ? this.iconSize : this.size;
|
|
248
250
|
},
|
|
249
251
|
isValidSize() {
|
|
250
|
-
return Object.values(
|
|
252
|
+
return Object.values(INPUT_SIZES).includes(this.size);
|
|
251
253
|
},
|
|
252
254
|
isValidDescriptionSize() {
|
|
253
|
-
return Object.values(
|
|
255
|
+
return Object.values(DESCRIPTION_SIZE_TYPES).includes(this.size);
|
|
254
256
|
},
|
|
255
257
|
inputComponent() {
|
|
256
|
-
|
|
258
|
+
if (this.isTextarea) {
|
|
259
|
+
return "textarea";
|
|
260
|
+
}
|
|
261
|
+
return "input";
|
|
257
262
|
},
|
|
258
263
|
inputListeners() {
|
|
259
264
|
return {
|
|
260
|
-
input: async (
|
|
261
|
-
let
|
|
262
|
-
this.type ===
|
|
265
|
+
input: async (event) => {
|
|
266
|
+
let val = event.target.value;
|
|
267
|
+
if (this.type === INPUT_TYPES.FILE) {
|
|
268
|
+
const files = Array.from(event.target.files);
|
|
269
|
+
val = files.map((file) => file.name);
|
|
270
|
+
}
|
|
271
|
+
this.$emit("input", val);
|
|
272
|
+
this.$emit("update:modelValue", val);
|
|
263
273
|
},
|
|
264
|
-
blur: (
|
|
265
|
-
this.isInputFocused =
|
|
274
|
+
blur: (event) => {
|
|
275
|
+
this.isInputFocused = false;
|
|
276
|
+
this.onBlur(event);
|
|
266
277
|
},
|
|
267
|
-
focus: (
|
|
268
|
-
this.isInputFocused =
|
|
278
|
+
focus: (event) => {
|
|
279
|
+
this.isInputFocused = true;
|
|
280
|
+
this.$emit("focus", event);
|
|
269
281
|
},
|
|
270
|
-
focusin: (
|
|
271
|
-
focusout: (
|
|
282
|
+
focusin: (event) => this.$emit("focusin", event),
|
|
283
|
+
focusout: (event) => this.$emit("focusout", event)
|
|
272
284
|
};
|
|
273
285
|
},
|
|
274
286
|
descriptionKey() {
|
|
275
|
-
return `input-description-${
|
|
287
|
+
return `input-description-${getUniqueString()}`;
|
|
276
288
|
},
|
|
277
289
|
inputState() {
|
|
278
|
-
return
|
|
290
|
+
return getValidationState(this.validationMessages);
|
|
279
291
|
},
|
|
280
292
|
defaultLengthCalculation() {
|
|
281
293
|
return this.calculateLength(this.modelValue);
|
|
282
294
|
},
|
|
283
295
|
validationProps() {
|
|
284
|
-
var
|
|
296
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
285
297
|
return {
|
|
286
298
|
length: {
|
|
287
|
-
description: (
|
|
288
|
-
max: (
|
|
289
|
-
warn: (
|
|
290
|
-
message: (
|
|
291
|
-
limitMaxLength: (
|
|
299
|
+
description: (_b = (_a = this == null ? void 0 : this.validate) == null ? void 0 : _a.length) == null ? void 0 : _b.description,
|
|
300
|
+
max: (_d = (_c = this == null ? void 0 : this.validate) == null ? void 0 : _c.length) == null ? void 0 : _d.max,
|
|
301
|
+
warn: (_f = (_e = this == null ? void 0 : this.validate) == null ? void 0 : _e.length) == null ? void 0 : _f.warn,
|
|
302
|
+
message: (_h = (_g = this == null ? void 0 : this.validate) == null ? void 0 : _g.length) == null ? void 0 : _h.message,
|
|
303
|
+
limitMaxLength: ((_j = (_i = this == null ? void 0 : this.validate) == null ? void 0 : _i.length) == null ? void 0 : _j.limitMaxLength) ? this.validate.length.limitMaxLength : false
|
|
292
304
|
}
|
|
293
305
|
};
|
|
294
306
|
},
|
|
295
307
|
validationMessages() {
|
|
296
|
-
|
|
308
|
+
if (this.showLengthLimitValidation) {
|
|
309
|
+
return this.formattedMessages.concat([this.inputLengthErrorMessage()]);
|
|
310
|
+
}
|
|
311
|
+
return this.formattedMessages;
|
|
297
312
|
},
|
|
298
313
|
showInputState() {
|
|
299
314
|
return this.showMessages && this.inputState;
|
|
@@ -302,7 +317,13 @@ const g = {
|
|
|
302
317
|
return this.currentLength ? this.currentLength : this.defaultLengthCalculation;
|
|
303
318
|
},
|
|
304
319
|
inputLengthState() {
|
|
305
|
-
|
|
320
|
+
if (this.inputLength < this.validationProps.length.warn) {
|
|
321
|
+
return null;
|
|
322
|
+
} else if (this.inputLength <= this.validationProps.length.max) {
|
|
323
|
+
return this.validationProps.length.warn ? VALIDATION_MESSAGE_TYPES.WARNING : null;
|
|
324
|
+
} else {
|
|
325
|
+
return VALIDATION_MESSAGE_TYPES.ERROR;
|
|
326
|
+
}
|
|
306
327
|
},
|
|
307
328
|
shouldValidateLength() {
|
|
308
329
|
return !!(this.validationProps.length.description && this.validationProps.length.max);
|
|
@@ -315,7 +336,10 @@ const g = {
|
|
|
315
336
|
return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.retainWarning || this.isInputFocused || this.isInvalid);
|
|
316
337
|
},
|
|
317
338
|
sizeModifierClass() {
|
|
318
|
-
|
|
339
|
+
if (this.isDefaultSize || !this.isValidSize) {
|
|
340
|
+
return "";
|
|
341
|
+
}
|
|
342
|
+
const sizeClasses = {
|
|
319
343
|
input: {
|
|
320
344
|
xs: "d-input--xs",
|
|
321
345
|
sm: "d-input--sm",
|
|
@@ -328,10 +352,11 @@ const g = {
|
|
|
328
352
|
lg: "d-textarea--lg",
|
|
329
353
|
xl: "d-textarea--xl"
|
|
330
354
|
}
|
|
331
|
-
}
|
|
355
|
+
};
|
|
356
|
+
return sizeClasses[this.inputComponent][this.size];
|
|
332
357
|
},
|
|
333
358
|
stateClass() {
|
|
334
|
-
|
|
359
|
+
const inputStateClasses = {
|
|
335
360
|
input: {
|
|
336
361
|
error: "d-input--error base-input__input--error",
|
|
337
362
|
warning: "d-input--warning base-input__input--warning",
|
|
@@ -342,17 +367,23 @@ const g = {
|
|
|
342
367
|
warning: "d-textarea--warning base-input__input--warning",
|
|
343
368
|
success: "d-textarea--success base-input__input--success"
|
|
344
369
|
}
|
|
345
|
-
}
|
|
370
|
+
};
|
|
371
|
+
return [inputStateClasses[this.inputComponent][this.inputState]];
|
|
346
372
|
}
|
|
347
373
|
},
|
|
348
374
|
watch: {
|
|
349
|
-
isInvalid(
|
|
350
|
-
this.$emit("update:invalid",
|
|
375
|
+
isInvalid(val) {
|
|
376
|
+
this.$emit("update:invalid", val);
|
|
351
377
|
},
|
|
352
378
|
modelValue: {
|
|
353
|
-
immediate:
|
|
354
|
-
handler(
|
|
355
|
-
|
|
379
|
+
immediate: true,
|
|
380
|
+
handler(newValue) {
|
|
381
|
+
if (this.shouldValidateLength) {
|
|
382
|
+
this.validateLength(this.inputLength);
|
|
383
|
+
}
|
|
384
|
+
if (this.currentLength == null) {
|
|
385
|
+
this.$emit("update:length", this.calculateLength(newValue));
|
|
386
|
+
}
|
|
356
387
|
}
|
|
357
388
|
}
|
|
358
389
|
},
|
|
@@ -371,14 +402,20 @@ const g = {
|
|
|
371
402
|
];
|
|
372
403
|
},
|
|
373
404
|
inputWrapperClasses() {
|
|
374
|
-
|
|
405
|
+
if (this.hidden) {
|
|
406
|
+
return [];
|
|
407
|
+
}
|
|
408
|
+
return [
|
|
375
409
|
"d-input__wrapper",
|
|
376
410
|
{ [this.stateClass]: this.showInputState },
|
|
377
411
|
this.inputWrapperClass
|
|
378
412
|
];
|
|
379
413
|
},
|
|
380
|
-
calculateLength(
|
|
381
|
-
|
|
414
|
+
calculateLength(value) {
|
|
415
|
+
if (typeof value !== "string") {
|
|
416
|
+
return 0;
|
|
417
|
+
}
|
|
418
|
+
return [...value].length;
|
|
382
419
|
},
|
|
383
420
|
inputLengthErrorMessage() {
|
|
384
421
|
return {
|
|
@@ -386,29 +423,33 @@ const g = {
|
|
|
386
423
|
type: this.inputLengthState
|
|
387
424
|
};
|
|
388
425
|
},
|
|
389
|
-
inputIconClasses(
|
|
390
|
-
const
|
|
426
|
+
inputIconClasses(side) {
|
|
427
|
+
const iconSizeClasses = {
|
|
391
428
|
xs: "d-input-icon--xs",
|
|
392
429
|
sm: "d-input-icon--sm",
|
|
393
430
|
lg: "d-input-icon--lg",
|
|
394
431
|
xl: "d-input-icon--xl"
|
|
395
432
|
};
|
|
433
|
+
const iconOrientationClasses = {
|
|
434
|
+
left: "base-input__icon--left d-input-icon--left",
|
|
435
|
+
right: "base-input__icon--right d-input-icon--right"
|
|
436
|
+
};
|
|
396
437
|
return [
|
|
397
|
-
|
|
398
|
-
left: "base-input__icon--left d-input-icon--left",
|
|
399
|
-
right: "base-input__icon--right d-input-icon--right"
|
|
400
|
-
}[t],
|
|
438
|
+
iconOrientationClasses[side],
|
|
401
439
|
"d-input-icon",
|
|
402
|
-
{ [
|
|
440
|
+
{ [iconSizeClasses[this.iconSizeComputed]]: !this.isDefaultIconSize },
|
|
403
441
|
this.sizeModifierClass
|
|
404
442
|
];
|
|
405
443
|
},
|
|
406
|
-
onBlur(
|
|
407
|
-
var
|
|
408
|
-
(
|
|
444
|
+
onBlur(e) {
|
|
445
|
+
var _a;
|
|
446
|
+
if (!((_a = this.$refs.container) == null ? void 0 : _a.contains(e.relatedTarget))) {
|
|
447
|
+
this.$emit("blur", e);
|
|
448
|
+
}
|
|
409
449
|
},
|
|
410
450
|
clear() {
|
|
411
|
-
this.$emit("input", "")
|
|
451
|
+
this.$emit("input", "");
|
|
452
|
+
this.$emit("clear");
|
|
412
453
|
},
|
|
413
454
|
blur() {
|
|
414
455
|
this.$refs.input.blur();
|
|
@@ -419,113 +460,120 @@ const g = {
|
|
|
419
460
|
select() {
|
|
420
461
|
this.$refs.input.select();
|
|
421
462
|
},
|
|
422
|
-
getMessageKey(
|
|
423
|
-
return `message-${
|
|
463
|
+
getMessageKey(type, index) {
|
|
464
|
+
return `message-${type}-${index}`;
|
|
424
465
|
},
|
|
425
|
-
validateLength(
|
|
426
|
-
this.isInvalid =
|
|
466
|
+
validateLength(length) {
|
|
467
|
+
this.isInvalid = length > this.validationProps.length.max;
|
|
427
468
|
}
|
|
428
469
|
}
|
|
429
|
-
}
|
|
470
|
+
};
|
|
471
|
+
const _hoisted_1 = ["aria-details"];
|
|
472
|
+
const _hoisted_2 = ["id"];
|
|
473
|
+
const _hoisted_3 = { key: 0 };
|
|
474
|
+
const _hoisted_4 = {
|
|
430
475
|
key: 1,
|
|
431
476
|
"data-qa": "dt-input-length-description",
|
|
432
477
|
class: "d-input__length-description"
|
|
433
|
-
}
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
478
|
+
};
|
|
479
|
+
const _hoisted_5 = ["read-only"];
|
|
480
|
+
const _hoisted_6 = ["value", "name", "disabled", "maxlength"];
|
|
481
|
+
const _hoisted_7 = ["value", "name", "type", "disabled", "maxlength"];
|
|
482
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
483
|
+
const _component_dt_validation_messages = resolveComponent("dt-validation-messages");
|
|
484
|
+
return openBlock(), createElementBlock("div", {
|
|
437
485
|
ref: "container",
|
|
438
|
-
class:
|
|
486
|
+
class: normalizeClass(["base-input", { "d-vi-hidden": $props.hidden }]),
|
|
439
487
|
"data-qa": "dt-input"
|
|
440
488
|
}, [
|
|
441
|
-
|
|
489
|
+
createElementVNode("label", {
|
|
442
490
|
class: "base-input__label",
|
|
443
|
-
"aria-details":
|
|
491
|
+
"aria-details": _ctx.$slots.description || $props.description ? $options.descriptionKey : void 0,
|
|
444
492
|
"data-qa": "dt-input-label-wrapper"
|
|
445
493
|
}, [
|
|
446
|
-
|
|
447
|
-
|
|
494
|
+
renderSlot(_ctx.$slots, "labelSlot", {}, () => [
|
|
495
|
+
$props.labelVisible && $props.label ? (openBlock(), createElementBlock("div", {
|
|
448
496
|
key: 0,
|
|
449
497
|
ref: "label",
|
|
450
498
|
"data-qa": "dt-input-label",
|
|
451
|
-
class:
|
|
499
|
+
class: normalizeClass([
|
|
452
500
|
"base-input__label-text",
|
|
453
501
|
"d-label",
|
|
454
|
-
|
|
502
|
+
$data.labelSizeClasses[$props.size]
|
|
455
503
|
])
|
|
456
|
-
},
|
|
504
|
+
}, toDisplayString($props.label), 3)) : createCommentVNode("", true)
|
|
457
505
|
]),
|
|
458
|
-
|
|
506
|
+
$data.hasSlotContent(_ctx.$slots.description) || $props.description || $options.shouldValidateLength ? (openBlock(), createElementBlock("div", {
|
|
459
507
|
key: 0,
|
|
460
|
-
id:
|
|
508
|
+
id: $options.descriptionKey,
|
|
461
509
|
ref: "description",
|
|
462
|
-
class:
|
|
510
|
+
class: normalizeClass([
|
|
463
511
|
"base-input__description",
|
|
464
512
|
"d-description",
|
|
465
|
-
|
|
513
|
+
$data.descriptionSizeClasses[$props.size]
|
|
466
514
|
]),
|
|
467
515
|
"data-qa": "dt-input-description"
|
|
468
516
|
}, [
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
517
|
+
$data.hasSlotContent(_ctx.$slots.description) || $props.description ? (openBlock(), createElementBlock("div", _hoisted_3, [
|
|
518
|
+
renderSlot(_ctx.$slots, "description", {}, () => [
|
|
519
|
+
createTextVNode(toDisplayString($props.description), 1)
|
|
472
520
|
])
|
|
473
|
-
])) :
|
|
474
|
-
|
|
475
|
-
], 10,
|
|
476
|
-
|
|
477
|
-
class:
|
|
478
|
-
"read-only":
|
|
521
|
+
])) : createCommentVNode("", true),
|
|
522
|
+
$options.shouldValidateLength ? (openBlock(), createElementBlock("div", _hoisted_4, toDisplayString($options.validationProps.length.description), 1)) : createCommentVNode("", true)
|
|
523
|
+
], 10, _hoisted_2)) : createCommentVNode("", true),
|
|
524
|
+
createElementVNode("div", {
|
|
525
|
+
class: normalizeClass($options.inputWrapperClasses()),
|
|
526
|
+
"read-only": $props.disabled === true ? true : void 0
|
|
479
527
|
}, [
|
|
480
|
-
|
|
528
|
+
$data.hasSlotContent(_ctx.$slots.leftIcon) ? (openBlock(), createElementBlock("span", {
|
|
481
529
|
key: 0,
|
|
482
|
-
class:
|
|
530
|
+
class: normalizeClass($options.inputIconClasses("left")),
|
|
483
531
|
"data-qa": "dt-input-left-icon-wrapper",
|
|
484
|
-
onFocusout:
|
|
532
|
+
onFocusout: _cache[0] || (_cache[0] = (...args) => $options.onBlur && $options.onBlur(...args))
|
|
485
533
|
}, [
|
|
486
|
-
|
|
487
|
-
], 34)) :
|
|
488
|
-
|
|
534
|
+
renderSlot(_ctx.$slots, "leftIcon")
|
|
535
|
+
], 34)) : createCommentVNode("", true),
|
|
536
|
+
$options.isTextarea ? (openBlock(), createElementBlock("textarea", mergeProps({
|
|
489
537
|
key: 1,
|
|
490
538
|
ref: "input",
|
|
491
|
-
value:
|
|
492
|
-
name:
|
|
493
|
-
disabled:
|
|
494
|
-
class:
|
|
495
|
-
maxlength:
|
|
539
|
+
value: $props.modelValue,
|
|
540
|
+
name: $props.name,
|
|
541
|
+
disabled: $props.disabled,
|
|
542
|
+
class: $options.inputClasses(),
|
|
543
|
+
maxlength: $options.shouldLimitMaxLength ? $options.validationProps.length.max : null,
|
|
496
544
|
"data-qa": "dt-input-input"
|
|
497
|
-
},
|
|
545
|
+
}, _ctx.$attrs, toHandlers($options.inputListeners, true)), null, 16, _hoisted_6)) : (openBlock(), createElementBlock("input", mergeProps({
|
|
498
546
|
key: 2,
|
|
499
547
|
ref: "input",
|
|
500
|
-
value:
|
|
501
|
-
name:
|
|
502
|
-
type:
|
|
503
|
-
disabled:
|
|
504
|
-
class:
|
|
505
|
-
maxlength:
|
|
548
|
+
value: $props.modelValue,
|
|
549
|
+
name: $props.name,
|
|
550
|
+
type: $props.type,
|
|
551
|
+
disabled: $props.disabled,
|
|
552
|
+
class: $options.inputClasses(),
|
|
553
|
+
maxlength: $options.shouldLimitMaxLength ? $options.validationProps.length.max : null,
|
|
506
554
|
"data-qa": "dt-input-input"
|
|
507
|
-
},
|
|
508
|
-
|
|
555
|
+
}, _ctx.$attrs, toHandlers($options.inputListeners, true)), null, 16, _hoisted_7)),
|
|
556
|
+
$data.hasSlotContent(_ctx.$slots.rightIcon) ? (openBlock(), createElementBlock("span", {
|
|
509
557
|
key: 3,
|
|
510
|
-
class:
|
|
558
|
+
class: normalizeClass($options.inputIconClasses("right")),
|
|
511
559
|
"data-qa": "dt-input-right-icon-wrapper",
|
|
512
|
-
onFocusout:
|
|
560
|
+
onFocusout: _cache[1] || (_cache[1] = (...args) => $options.onBlur && $options.onBlur(...args))
|
|
513
561
|
}, [
|
|
514
|
-
|
|
515
|
-
], 34)) :
|
|
516
|
-
], 10,
|
|
517
|
-
], 8,
|
|
518
|
-
|
|
519
|
-
"validation-messages":
|
|
520
|
-
"show-messages":
|
|
521
|
-
class:
|
|
522
|
-
},
|
|
562
|
+
renderSlot(_ctx.$slots, "rightIcon")
|
|
563
|
+
], 34)) : createCommentVNode("", true)
|
|
564
|
+
], 10, _hoisted_5)
|
|
565
|
+
], 8, _hoisted_1),
|
|
566
|
+
createVNode(_component_dt_validation_messages, mergeProps({
|
|
567
|
+
"validation-messages": $options.validationMessages,
|
|
568
|
+
"show-messages": _ctx.showMessages,
|
|
569
|
+
class: _ctx.messagesClass
|
|
570
|
+
}, _ctx.messagesChildProps, { "data-qa": "dt-input-messages" }), null, 16, ["validation-messages", "show-messages", "class"])
|
|
523
571
|
], 2);
|
|
524
572
|
}
|
|
525
|
-
const
|
|
573
|
+
const DtInput = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
526
574
|
export {
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
575
|
+
DtInput,
|
|
576
|
+
INPUT_SIZES,
|
|
577
|
+
INPUT_TYPES
|
|
530
578
|
};
|
|
531
579
|
//# sourceMappingURL=input.js.map
|