@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.cjs
CHANGED
|
@@ -1,2 +1,579 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const common_constants = require("../common/constants.cjs");
|
|
4
|
+
const common_utils = require("../common/utils.cjs");
|
|
5
|
+
const input = require("../chunks/input-ttnte8zB.js");
|
|
6
|
+
const vue = require("vue");
|
|
7
|
+
const _pluginVue_exportHelper = require("../chunks/_plugin-vue_export-helper-fhnQq0tA.js");
|
|
8
|
+
const lib_validationMessages = require("./validation-messages.cjs");
|
|
9
|
+
require("../common/validators.cjs");
|
|
10
|
+
const INPUT_TYPES = {
|
|
11
|
+
TEXT: "text",
|
|
12
|
+
TEXTAREA: "textarea",
|
|
13
|
+
PASSWORD: "password",
|
|
14
|
+
EMAIL: "email",
|
|
15
|
+
NUMBER: "number",
|
|
16
|
+
DATE: "date",
|
|
17
|
+
TIME: "time",
|
|
18
|
+
FILE: "file"
|
|
19
|
+
};
|
|
20
|
+
const INPUT_SIZES = {
|
|
21
|
+
EXTRA_SMALL: "xs",
|
|
22
|
+
SMALL: "sm",
|
|
23
|
+
DEFAULT: "md",
|
|
24
|
+
LARGE: "lg",
|
|
25
|
+
EXTRA_LARGE: "xl"
|
|
26
|
+
};
|
|
27
|
+
const _sfc_main = {
|
|
28
|
+
name: "DtInput",
|
|
29
|
+
components: { DtValidationMessages: lib_validationMessages.DtValidationMessages },
|
|
30
|
+
mixins: [input.MessagesMixin],
|
|
31
|
+
inheritAttrs: false,
|
|
32
|
+
props: {
|
|
33
|
+
/**
|
|
34
|
+
* Name property of the input element
|
|
35
|
+
*/
|
|
36
|
+
name: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: ""
|
|
39
|
+
},
|
|
40
|
+
/**
|
|
41
|
+
* Type of the input, one of: `text`, `password`, `email`, `number`, `textarea`, 'date', 'time'.
|
|
42
|
+
* When `textarea` a `<textarea>` element will be rendered instead of an `<input>` element.
|
|
43
|
+
* @values text, password, email, number, textarea, date, time
|
|
44
|
+
*/
|
|
45
|
+
type: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: INPUT_TYPES.TEXT,
|
|
48
|
+
validator: (t) => Object.values(INPUT_TYPES).includes(t)
|
|
49
|
+
},
|
|
50
|
+
/**
|
|
51
|
+
* Value of the input
|
|
52
|
+
*/
|
|
53
|
+
modelValue: {
|
|
54
|
+
type: [String, Number],
|
|
55
|
+
default: ""
|
|
56
|
+
},
|
|
57
|
+
/**
|
|
58
|
+
* Disables the input
|
|
59
|
+
* @values true, false
|
|
60
|
+
*/
|
|
61
|
+
disabled: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
default: false
|
|
64
|
+
},
|
|
65
|
+
/**
|
|
66
|
+
* Label for the input
|
|
67
|
+
*/
|
|
68
|
+
label: {
|
|
69
|
+
type: String,
|
|
70
|
+
default: ""
|
|
71
|
+
},
|
|
72
|
+
/**
|
|
73
|
+
* Determines visibility of input label.
|
|
74
|
+
* @values true, false
|
|
75
|
+
*/
|
|
76
|
+
labelVisible: {
|
|
77
|
+
type: Boolean,
|
|
78
|
+
default: true
|
|
79
|
+
},
|
|
80
|
+
/**
|
|
81
|
+
* Description for the input
|
|
82
|
+
*/
|
|
83
|
+
description: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: ""
|
|
86
|
+
},
|
|
87
|
+
/**
|
|
88
|
+
* Size of the input, one of `xs`, `sm`, `md`, `lg`, `xl`
|
|
89
|
+
* @values null, xs, sm, md, lg, xl
|
|
90
|
+
*/
|
|
91
|
+
size: {
|
|
92
|
+
type: String,
|
|
93
|
+
default: null,
|
|
94
|
+
validator: (t) => Object.values(INPUT_SIZES).includes(t)
|
|
95
|
+
},
|
|
96
|
+
/**
|
|
97
|
+
* Size of the icon. One of `xs`, `sm`, `md`, `lg`, `xl`. If you do not set this the icon will size relative
|
|
98
|
+
* to the input size
|
|
99
|
+
* @values null, xs, sm, md, lg, xl
|
|
100
|
+
*/
|
|
101
|
+
iconSize: {
|
|
102
|
+
type: String,
|
|
103
|
+
default: null,
|
|
104
|
+
validator: (t) => Object.values(INPUT_SIZES).includes(t)
|
|
105
|
+
},
|
|
106
|
+
/**
|
|
107
|
+
* Additional class name for the input element.
|
|
108
|
+
* Can accept String, Object, and Array, i.e. has the
|
|
109
|
+
* same API as Vue's built-in handling of the class attribute.
|
|
110
|
+
*/
|
|
111
|
+
inputClass: {
|
|
112
|
+
type: [String, Object, Array],
|
|
113
|
+
default: ""
|
|
114
|
+
},
|
|
115
|
+
/**
|
|
116
|
+
* Additional class name for the input wrapper element.
|
|
117
|
+
* Can accept all of String, Object, and Array, i.e. has the
|
|
118
|
+
* same api as Vue's built-in handling of the class attribute.
|
|
119
|
+
*/
|
|
120
|
+
inputWrapperClass: {
|
|
121
|
+
type: [String, Object, Array],
|
|
122
|
+
default: ""
|
|
123
|
+
},
|
|
124
|
+
/**
|
|
125
|
+
* The current character length that the user has entered into the input.
|
|
126
|
+
* This will only need to be used if you are using `validate.length` and
|
|
127
|
+
* the string contains abnormal characters.
|
|
128
|
+
* For example, an emoji could take up many characters in the input, but should only count as 1 character.
|
|
129
|
+
* If no number is provided, a built-in length calculation will be used for the length validation.
|
|
130
|
+
*/
|
|
131
|
+
currentLength: {
|
|
132
|
+
type: Number,
|
|
133
|
+
default: null
|
|
134
|
+
},
|
|
135
|
+
/**
|
|
136
|
+
* Whether the input will continue to display a warning validation message even if the input has lost focus.
|
|
137
|
+
*/
|
|
138
|
+
retainWarning: {
|
|
139
|
+
type: Boolean,
|
|
140
|
+
default: false
|
|
141
|
+
},
|
|
142
|
+
/**
|
|
143
|
+
* Validation for the input. Supports maximum length validation with the structure:
|
|
144
|
+
* `{ "length": {"description": string, "max": number, "warn": number, "message": string,
|
|
145
|
+
* "limitMaxLength": boolean }}`
|
|
146
|
+
*/
|
|
147
|
+
validate: {
|
|
148
|
+
type: Object,
|
|
149
|
+
default: null
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
* hidden allows to use input without the element visually present in DOM
|
|
153
|
+
*/
|
|
154
|
+
hidden: {
|
|
155
|
+
type: Boolean,
|
|
156
|
+
default: false
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
emits: [
|
|
160
|
+
/**
|
|
161
|
+
* Native input event
|
|
162
|
+
*
|
|
163
|
+
* @event input
|
|
164
|
+
* @type {String}
|
|
165
|
+
*/
|
|
166
|
+
"input",
|
|
167
|
+
/**
|
|
168
|
+
* Native input blur event
|
|
169
|
+
*
|
|
170
|
+
* @event blur
|
|
171
|
+
* @type {FocusEvent}
|
|
172
|
+
*/
|
|
173
|
+
"blur",
|
|
174
|
+
/**
|
|
175
|
+
* Input clear event
|
|
176
|
+
*
|
|
177
|
+
* @event clear
|
|
178
|
+
*/
|
|
179
|
+
"clear",
|
|
180
|
+
/**
|
|
181
|
+
* Native input focus event
|
|
182
|
+
*
|
|
183
|
+
* @event focus
|
|
184
|
+
* @type {FocusEvent}
|
|
185
|
+
*/
|
|
186
|
+
"focus",
|
|
187
|
+
/**
|
|
188
|
+
* Native input focusin event
|
|
189
|
+
*
|
|
190
|
+
* @event focusin
|
|
191
|
+
* @type {FocusEvent}
|
|
192
|
+
*/
|
|
193
|
+
"focusin",
|
|
194
|
+
/**
|
|
195
|
+
* Native input focusout event
|
|
196
|
+
*
|
|
197
|
+
* @event focusout
|
|
198
|
+
* @type {FocusEvent}
|
|
199
|
+
*/
|
|
200
|
+
"focusout",
|
|
201
|
+
/**
|
|
202
|
+
* Event fired to sync the modelValue prop with the parent component
|
|
203
|
+
* @event update:modelValue
|
|
204
|
+
*/
|
|
205
|
+
"update:modelValue",
|
|
206
|
+
/**
|
|
207
|
+
* Length of the input when currentLength prop is not passed
|
|
208
|
+
*
|
|
209
|
+
* @event update:length
|
|
210
|
+
* @type {Number}
|
|
211
|
+
*/
|
|
212
|
+
"update:length",
|
|
213
|
+
/**
|
|
214
|
+
* Result of the input validation
|
|
215
|
+
*
|
|
216
|
+
* @event update:invalid
|
|
217
|
+
* @type {Boolean}
|
|
218
|
+
*/
|
|
219
|
+
"update:invalid"
|
|
220
|
+
],
|
|
221
|
+
data() {
|
|
222
|
+
return {
|
|
223
|
+
descriptionSizeClasses: {
|
|
224
|
+
lg: "d-description--lg",
|
|
225
|
+
xl: "d-description--xl"
|
|
226
|
+
},
|
|
227
|
+
labelSizeClasses: {
|
|
228
|
+
xs: "d-label--xs",
|
|
229
|
+
sm: "d-label--sm",
|
|
230
|
+
md: "d-label--md",
|
|
231
|
+
lg: "d-label--lg",
|
|
232
|
+
xl: "d-label--xl"
|
|
233
|
+
},
|
|
234
|
+
isInputFocused: false,
|
|
235
|
+
isInvalid: false,
|
|
236
|
+
defaultLength: 0,
|
|
237
|
+
hasSlotContent: common_utils.hasSlotContent
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
computed: {
|
|
241
|
+
isTextarea() {
|
|
242
|
+
return this.type === INPUT_TYPES.TEXTAREA;
|
|
243
|
+
},
|
|
244
|
+
isDefaultSize() {
|
|
245
|
+
return this.size === INPUT_SIZES.DEFAULT;
|
|
246
|
+
},
|
|
247
|
+
isDefaultIconSize() {
|
|
248
|
+
return this.iconSizeComputed === INPUT_SIZES.DEFAULT;
|
|
249
|
+
},
|
|
250
|
+
iconSizeComputed() {
|
|
251
|
+
return this.iconSize ? this.iconSize : this.size;
|
|
252
|
+
},
|
|
253
|
+
isValidSize() {
|
|
254
|
+
return Object.values(INPUT_SIZES).includes(this.size);
|
|
255
|
+
},
|
|
256
|
+
isValidDescriptionSize() {
|
|
257
|
+
return Object.values(common_constants.DESCRIPTION_SIZE_TYPES).includes(this.size);
|
|
258
|
+
},
|
|
259
|
+
inputComponent() {
|
|
260
|
+
if (this.isTextarea) {
|
|
261
|
+
return "textarea";
|
|
262
|
+
}
|
|
263
|
+
return "input";
|
|
264
|
+
},
|
|
265
|
+
inputListeners() {
|
|
266
|
+
return {
|
|
267
|
+
input: async (event) => {
|
|
268
|
+
let val = event.target.value;
|
|
269
|
+
if (this.type === INPUT_TYPES.FILE) {
|
|
270
|
+
const files = Array.from(event.target.files);
|
|
271
|
+
val = files.map((file) => file.name);
|
|
272
|
+
}
|
|
273
|
+
this.$emit("input", val);
|
|
274
|
+
this.$emit("update:modelValue", val);
|
|
275
|
+
},
|
|
276
|
+
blur: (event) => {
|
|
277
|
+
this.isInputFocused = false;
|
|
278
|
+
this.onBlur(event);
|
|
279
|
+
},
|
|
280
|
+
focus: (event) => {
|
|
281
|
+
this.isInputFocused = true;
|
|
282
|
+
this.$emit("focus", event);
|
|
283
|
+
},
|
|
284
|
+
focusin: (event) => this.$emit("focusin", event),
|
|
285
|
+
focusout: (event) => this.$emit("focusout", event)
|
|
286
|
+
};
|
|
287
|
+
},
|
|
288
|
+
descriptionKey() {
|
|
289
|
+
return `input-description-${common_utils.getUniqueString()}`;
|
|
290
|
+
},
|
|
291
|
+
inputState() {
|
|
292
|
+
return common_utils.getValidationState(this.validationMessages);
|
|
293
|
+
},
|
|
294
|
+
defaultLengthCalculation() {
|
|
295
|
+
return this.calculateLength(this.modelValue);
|
|
296
|
+
},
|
|
297
|
+
validationProps() {
|
|
298
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
|
299
|
+
return {
|
|
300
|
+
length: {
|
|
301
|
+
description: (_b = (_a = this == null ? void 0 : this.validate) == null ? void 0 : _a.length) == null ? void 0 : _b.description,
|
|
302
|
+
max: (_d = (_c = this == null ? void 0 : this.validate) == null ? void 0 : _c.length) == null ? void 0 : _d.max,
|
|
303
|
+
warn: (_f = (_e = this == null ? void 0 : this.validate) == null ? void 0 : _e.length) == null ? void 0 : _f.warn,
|
|
304
|
+
message: (_h = (_g = this == null ? void 0 : this.validate) == null ? void 0 : _g.length) == null ? void 0 : _h.message,
|
|
305
|
+
limitMaxLength: ((_j = (_i = this == null ? void 0 : this.validate) == null ? void 0 : _i.length) == null ? void 0 : _j.limitMaxLength) ? this.validate.length.limitMaxLength : false
|
|
306
|
+
}
|
|
307
|
+
};
|
|
308
|
+
},
|
|
309
|
+
validationMessages() {
|
|
310
|
+
if (this.showLengthLimitValidation) {
|
|
311
|
+
return this.formattedMessages.concat([this.inputLengthErrorMessage()]);
|
|
312
|
+
}
|
|
313
|
+
return this.formattedMessages;
|
|
314
|
+
},
|
|
315
|
+
showInputState() {
|
|
316
|
+
return this.showMessages && this.inputState;
|
|
317
|
+
},
|
|
318
|
+
inputLength() {
|
|
319
|
+
return this.currentLength ? this.currentLength : this.defaultLengthCalculation;
|
|
320
|
+
},
|
|
321
|
+
inputLengthState() {
|
|
322
|
+
if (this.inputLength < this.validationProps.length.warn) {
|
|
323
|
+
return null;
|
|
324
|
+
} else if (this.inputLength <= this.validationProps.length.max) {
|
|
325
|
+
return this.validationProps.length.warn ? common_constants.VALIDATION_MESSAGE_TYPES.WARNING : null;
|
|
326
|
+
} else {
|
|
327
|
+
return common_constants.VALIDATION_MESSAGE_TYPES.ERROR;
|
|
328
|
+
}
|
|
329
|
+
},
|
|
330
|
+
shouldValidateLength() {
|
|
331
|
+
return !!(this.validationProps.length.description && this.validationProps.length.max);
|
|
332
|
+
},
|
|
333
|
+
shouldLimitMaxLength() {
|
|
334
|
+
return this.shouldValidateLength && this.validationProps.length.limitMaxLength;
|
|
335
|
+
},
|
|
336
|
+
// eslint-disable-next-line complexity
|
|
337
|
+
showLengthLimitValidation() {
|
|
338
|
+
return this.shouldValidateLength && this.inputLengthState !== null && this.validationProps.length.message && (this.retainWarning || this.isInputFocused || this.isInvalid);
|
|
339
|
+
},
|
|
340
|
+
sizeModifierClass() {
|
|
341
|
+
if (this.isDefaultSize || !this.isValidSize) {
|
|
342
|
+
return "";
|
|
343
|
+
}
|
|
344
|
+
const sizeClasses = {
|
|
345
|
+
input: {
|
|
346
|
+
xs: "d-input--xs",
|
|
347
|
+
sm: "d-input--sm",
|
|
348
|
+
lg: "d-input--lg",
|
|
349
|
+
xl: "d-input--xl"
|
|
350
|
+
},
|
|
351
|
+
textarea: {
|
|
352
|
+
xs: "d-textarea--xs",
|
|
353
|
+
sm: "d-textarea--sm",
|
|
354
|
+
lg: "d-textarea--lg",
|
|
355
|
+
xl: "d-textarea--xl"
|
|
356
|
+
}
|
|
357
|
+
};
|
|
358
|
+
return sizeClasses[this.inputComponent][this.size];
|
|
359
|
+
},
|
|
360
|
+
stateClass() {
|
|
361
|
+
const inputStateClasses = {
|
|
362
|
+
input: {
|
|
363
|
+
error: "d-input--error base-input__input--error",
|
|
364
|
+
warning: "d-input--warning base-input__input--warning",
|
|
365
|
+
success: "d-input--success base-input__input--success"
|
|
366
|
+
},
|
|
367
|
+
textarea: {
|
|
368
|
+
error: "d-textarea--error base-input__input--error",
|
|
369
|
+
warning: "d-textarea--warning base-input__input--warning",
|
|
370
|
+
success: "d-textarea--success base-input__input--success"
|
|
371
|
+
}
|
|
372
|
+
};
|
|
373
|
+
return [inputStateClasses[this.inputComponent][this.inputState]];
|
|
374
|
+
}
|
|
375
|
+
},
|
|
376
|
+
watch: {
|
|
377
|
+
isInvalid(val) {
|
|
378
|
+
this.$emit("update:invalid", val);
|
|
379
|
+
},
|
|
380
|
+
modelValue: {
|
|
381
|
+
immediate: true,
|
|
382
|
+
handler(newValue) {
|
|
383
|
+
if (this.shouldValidateLength) {
|
|
384
|
+
this.validateLength(this.inputLength);
|
|
385
|
+
}
|
|
386
|
+
if (this.currentLength == null) {
|
|
387
|
+
this.$emit("update:length", this.calculateLength(newValue));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
methods: {
|
|
393
|
+
inputClasses() {
|
|
394
|
+
return [
|
|
395
|
+
"base-input__input",
|
|
396
|
+
this.inputComponent === "input" ? "d-input" : "d-textarea",
|
|
397
|
+
{
|
|
398
|
+
[this.stateClass]: this.showInputState,
|
|
399
|
+
"d-input-icon--left": this.$slots.leftIcon,
|
|
400
|
+
"d-input-icon--right": this.$slots.rightIcon
|
|
401
|
+
},
|
|
402
|
+
this.sizeModifierClass,
|
|
403
|
+
this.inputClass
|
|
404
|
+
];
|
|
405
|
+
},
|
|
406
|
+
inputWrapperClasses() {
|
|
407
|
+
if (this.hidden) {
|
|
408
|
+
return [];
|
|
409
|
+
}
|
|
410
|
+
return [
|
|
411
|
+
"d-input__wrapper",
|
|
412
|
+
{ [this.stateClass]: this.showInputState },
|
|
413
|
+
this.inputWrapperClass
|
|
414
|
+
];
|
|
415
|
+
},
|
|
416
|
+
calculateLength(value) {
|
|
417
|
+
if (typeof value !== "string") {
|
|
418
|
+
return 0;
|
|
419
|
+
}
|
|
420
|
+
return [...value].length;
|
|
421
|
+
},
|
|
422
|
+
inputLengthErrorMessage() {
|
|
423
|
+
return {
|
|
424
|
+
message: this.validationProps.length.message,
|
|
425
|
+
type: this.inputLengthState
|
|
426
|
+
};
|
|
427
|
+
},
|
|
428
|
+
inputIconClasses(side) {
|
|
429
|
+
const iconSizeClasses = {
|
|
430
|
+
xs: "d-input-icon--xs",
|
|
431
|
+
sm: "d-input-icon--sm",
|
|
432
|
+
lg: "d-input-icon--lg",
|
|
433
|
+
xl: "d-input-icon--xl"
|
|
434
|
+
};
|
|
435
|
+
const iconOrientationClasses = {
|
|
436
|
+
left: "base-input__icon--left d-input-icon--left",
|
|
437
|
+
right: "base-input__icon--right d-input-icon--right"
|
|
438
|
+
};
|
|
439
|
+
return [
|
|
440
|
+
iconOrientationClasses[side],
|
|
441
|
+
"d-input-icon",
|
|
442
|
+
{ [iconSizeClasses[this.iconSizeComputed]]: !this.isDefaultIconSize },
|
|
443
|
+
this.sizeModifierClass
|
|
444
|
+
];
|
|
445
|
+
},
|
|
446
|
+
onBlur(e) {
|
|
447
|
+
var _a;
|
|
448
|
+
if (!((_a = this.$refs.container) == null ? void 0 : _a.contains(e.relatedTarget))) {
|
|
449
|
+
this.$emit("blur", e);
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
clear() {
|
|
453
|
+
this.$emit("input", "");
|
|
454
|
+
this.$emit("clear");
|
|
455
|
+
},
|
|
456
|
+
blur() {
|
|
457
|
+
this.$refs.input.blur();
|
|
458
|
+
},
|
|
459
|
+
focus() {
|
|
460
|
+
this.$refs.input.focus();
|
|
461
|
+
},
|
|
462
|
+
select() {
|
|
463
|
+
this.$refs.input.select();
|
|
464
|
+
},
|
|
465
|
+
getMessageKey(type, index) {
|
|
466
|
+
return `message-${type}-${index}`;
|
|
467
|
+
},
|
|
468
|
+
validateLength(length) {
|
|
469
|
+
this.isInvalid = length > this.validationProps.length.max;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
};
|
|
473
|
+
const _hoisted_1 = ["aria-details"];
|
|
474
|
+
const _hoisted_2 = ["id"];
|
|
475
|
+
const _hoisted_3 = { key: 0 };
|
|
476
|
+
const _hoisted_4 = {
|
|
477
|
+
key: 1,
|
|
478
|
+
"data-qa": "dt-input-length-description",
|
|
479
|
+
class: "d-input__length-description"
|
|
480
|
+
};
|
|
481
|
+
const _hoisted_5 = ["read-only"];
|
|
482
|
+
const _hoisted_6 = ["value", "name", "disabled", "maxlength"];
|
|
483
|
+
const _hoisted_7 = ["value", "name", "type", "disabled", "maxlength"];
|
|
484
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
485
|
+
const _component_dt_validation_messages = vue.resolveComponent("dt-validation-messages");
|
|
486
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
487
|
+
ref: "container",
|
|
488
|
+
class: vue.normalizeClass(["base-input", { "d-vi-hidden": $props.hidden }]),
|
|
489
|
+
"data-qa": "dt-input"
|
|
490
|
+
}, [
|
|
491
|
+
vue.createElementVNode("label", {
|
|
492
|
+
class: "base-input__label",
|
|
493
|
+
"aria-details": _ctx.$slots.description || $props.description ? $options.descriptionKey : void 0,
|
|
494
|
+
"data-qa": "dt-input-label-wrapper"
|
|
495
|
+
}, [
|
|
496
|
+
vue.renderSlot(_ctx.$slots, "labelSlot", {}, () => [
|
|
497
|
+
$props.labelVisible && $props.label ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
498
|
+
key: 0,
|
|
499
|
+
ref: "label",
|
|
500
|
+
"data-qa": "dt-input-label",
|
|
501
|
+
class: vue.normalizeClass([
|
|
502
|
+
"base-input__label-text",
|
|
503
|
+
"d-label",
|
|
504
|
+
$data.labelSizeClasses[$props.size]
|
|
505
|
+
])
|
|
506
|
+
}, vue.toDisplayString($props.label), 3)) : vue.createCommentVNode("", true)
|
|
507
|
+
]),
|
|
508
|
+
$data.hasSlotContent(_ctx.$slots.description) || $props.description || $options.shouldValidateLength ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
509
|
+
key: 0,
|
|
510
|
+
id: $options.descriptionKey,
|
|
511
|
+
ref: "description",
|
|
512
|
+
class: vue.normalizeClass([
|
|
513
|
+
"base-input__description",
|
|
514
|
+
"d-description",
|
|
515
|
+
$data.descriptionSizeClasses[$props.size]
|
|
516
|
+
]),
|
|
517
|
+
"data-qa": "dt-input-description"
|
|
518
|
+
}, [
|
|
519
|
+
$data.hasSlotContent(_ctx.$slots.description) || $props.description ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3, [
|
|
520
|
+
vue.renderSlot(_ctx.$slots, "description", {}, () => [
|
|
521
|
+
vue.createTextVNode(vue.toDisplayString($props.description), 1)
|
|
522
|
+
])
|
|
523
|
+
])) : vue.createCommentVNode("", true),
|
|
524
|
+
$options.shouldValidateLength ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4, vue.toDisplayString($options.validationProps.length.description), 1)) : vue.createCommentVNode("", true)
|
|
525
|
+
], 10, _hoisted_2)) : vue.createCommentVNode("", true),
|
|
526
|
+
vue.createElementVNode("div", {
|
|
527
|
+
class: vue.normalizeClass($options.inputWrapperClasses()),
|
|
528
|
+
"read-only": $props.disabled === true ? true : void 0
|
|
529
|
+
}, [
|
|
530
|
+
$data.hasSlotContent(_ctx.$slots.leftIcon) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
531
|
+
key: 0,
|
|
532
|
+
class: vue.normalizeClass($options.inputIconClasses("left")),
|
|
533
|
+
"data-qa": "dt-input-left-icon-wrapper",
|
|
534
|
+
onFocusout: _cache[0] || (_cache[0] = (...args) => $options.onBlur && $options.onBlur(...args))
|
|
535
|
+
}, [
|
|
536
|
+
vue.renderSlot(_ctx.$slots, "leftIcon")
|
|
537
|
+
], 34)) : vue.createCommentVNode("", true),
|
|
538
|
+
$options.isTextarea ? (vue.openBlock(), vue.createElementBlock("textarea", vue.mergeProps({
|
|
539
|
+
key: 1,
|
|
540
|
+
ref: "input",
|
|
541
|
+
value: $props.modelValue,
|
|
542
|
+
name: $props.name,
|
|
543
|
+
disabled: $props.disabled,
|
|
544
|
+
class: $options.inputClasses(),
|
|
545
|
+
maxlength: $options.shouldLimitMaxLength ? $options.validationProps.length.max : null,
|
|
546
|
+
"data-qa": "dt-input-input"
|
|
547
|
+
}, _ctx.$attrs, vue.toHandlers($options.inputListeners, true)), null, 16, _hoisted_6)) : (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
|
|
548
|
+
key: 2,
|
|
549
|
+
ref: "input",
|
|
550
|
+
value: $props.modelValue,
|
|
551
|
+
name: $props.name,
|
|
552
|
+
type: $props.type,
|
|
553
|
+
disabled: $props.disabled,
|
|
554
|
+
class: $options.inputClasses(),
|
|
555
|
+
maxlength: $options.shouldLimitMaxLength ? $options.validationProps.length.max : null,
|
|
556
|
+
"data-qa": "dt-input-input"
|
|
557
|
+
}, _ctx.$attrs, vue.toHandlers($options.inputListeners, true)), null, 16, _hoisted_7)),
|
|
558
|
+
$data.hasSlotContent(_ctx.$slots.rightIcon) ? (vue.openBlock(), vue.createElementBlock("span", {
|
|
559
|
+
key: 3,
|
|
560
|
+
class: vue.normalizeClass($options.inputIconClasses("right")),
|
|
561
|
+
"data-qa": "dt-input-right-icon-wrapper",
|
|
562
|
+
onFocusout: _cache[1] || (_cache[1] = (...args) => $options.onBlur && $options.onBlur(...args))
|
|
563
|
+
}, [
|
|
564
|
+
vue.renderSlot(_ctx.$slots, "rightIcon")
|
|
565
|
+
], 34)) : vue.createCommentVNode("", true)
|
|
566
|
+
], 10, _hoisted_5)
|
|
567
|
+
], 8, _hoisted_1),
|
|
568
|
+
vue.createVNode(_component_dt_validation_messages, vue.mergeProps({
|
|
569
|
+
"validation-messages": $options.validationMessages,
|
|
570
|
+
"show-messages": _ctx.showMessages,
|
|
571
|
+
class: _ctx.messagesClass
|
|
572
|
+
}, _ctx.messagesChildProps, { "data-qa": "dt-input-messages" }), null, 16, ["validation-messages", "show-messages", "class"])
|
|
573
|
+
], 2);
|
|
574
|
+
}
|
|
575
|
+
const DtInput = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
576
|
+
exports.DtInput = DtInput;
|
|
577
|
+
exports.INPUT_SIZES = INPUT_SIZES;
|
|
578
|
+
exports.INPUT_TYPES = INPUT_TYPES;
|
|
2
579
|
//# sourceMappingURL=input.cjs.map
|