@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
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
import { NOTICE_KINDS } from "./notice_constants-7Qt2CQEY.js";
|
|
2
|
+
import { hasSlotContent } from "../common/utils.js";
|
|
3
|
+
import { resolveComponent, openBlock, createElementBlock, renderSlot, createVNode, createCommentVNode, createTextVNode, toDisplayString, createElementVNode, createBlock, mergeProps, withCtx } from "vue";
|
|
4
|
+
import { _export_sfc } from "./_plugin-vue_export-helper-caHeSgYY.js";
|
|
5
|
+
import { DtIcon } from "../lib/icon.js";
|
|
6
|
+
import { SrOnlyCloseButton, SrOnlyCloseButtonMixin } from "./sr_only_close_button-3EdsV-dH.js";
|
|
7
|
+
import { DtButton } from "../lib/button.js";
|
|
8
|
+
const kindToIcon = /* @__PURE__ */ new Map([
|
|
9
|
+
["info", "info"],
|
|
10
|
+
["success", "check-circle"],
|
|
11
|
+
["warning", "alert-triangle"],
|
|
12
|
+
["error", "alert-circle"],
|
|
13
|
+
["base", "bell"]
|
|
14
|
+
]);
|
|
15
|
+
const _sfc_main$2 = {
|
|
16
|
+
name: "DtNoticeIcon",
|
|
17
|
+
components: {
|
|
18
|
+
DtIcon
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
/**
|
|
22
|
+
* Kind of icon
|
|
23
|
+
* @values base, error, info, success, warning
|
|
24
|
+
*/
|
|
25
|
+
kind: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "base",
|
|
28
|
+
validate(kind) {
|
|
29
|
+
return NOTICE_KINDS.includes(kind);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
hasSlotContent
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
defaultIcon() {
|
|
40
|
+
return kindToIcon.get(this.kind);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const _hoisted_1$2 = {
|
|
45
|
+
key: 0,
|
|
46
|
+
"aria-hidden": "true",
|
|
47
|
+
class: "d-notice__icon"
|
|
48
|
+
};
|
|
49
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
50
|
+
const _component_dt_icon = resolveComponent("dt-icon");
|
|
51
|
+
return $options.defaultIcon || $data.hasSlotContent(_ctx.$slots.default) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
52
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
53
|
+
createVNode(_component_dt_icon, {
|
|
54
|
+
name: $options.defaultIcon,
|
|
55
|
+
size: "400"
|
|
56
|
+
}, null, 8, ["name"])
|
|
57
|
+
])
|
|
58
|
+
])) : createCommentVNode("", true);
|
|
59
|
+
}
|
|
60
|
+
const DtNoticeIcon = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
61
|
+
const _sfc_main$1 = {
|
|
62
|
+
name: "DtNoticeContent",
|
|
63
|
+
props: {
|
|
64
|
+
/**
|
|
65
|
+
* Title header of the notice. This can be left blank to remove the title from the notice entirely.
|
|
66
|
+
*/
|
|
67
|
+
title: {
|
|
68
|
+
type: String,
|
|
69
|
+
default: ""
|
|
70
|
+
},
|
|
71
|
+
/**
|
|
72
|
+
* ID for the title element of the component. Useful for aria-describedby
|
|
73
|
+
* or aria-labelledby or any other reason you may need an id to refer to the title.
|
|
74
|
+
*/
|
|
75
|
+
titleId: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: void 0
|
|
78
|
+
},
|
|
79
|
+
/**
|
|
80
|
+
* ID for the content element of the component. Useful for aria-describedby
|
|
81
|
+
* or aria-labelledby or any other reason you may need an id to refer to the content.
|
|
82
|
+
*/
|
|
83
|
+
contentId: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: void 0
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
data() {
|
|
89
|
+
return {
|
|
90
|
+
hasSlotContent
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
const _hoisted_1$1 = {
|
|
95
|
+
class: "d-notice__content",
|
|
96
|
+
"data-qa": "notice-content"
|
|
97
|
+
};
|
|
98
|
+
const _hoisted_2 = ["id"];
|
|
99
|
+
const _hoisted_3 = ["id"];
|
|
100
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
101
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
102
|
+
$props.title || $data.hasSlotContent(_ctx.$slots.titleOverride) ? (openBlock(), createElementBlock("p", {
|
|
103
|
+
key: 0,
|
|
104
|
+
id: $props.titleId,
|
|
105
|
+
class: "d-notice__title",
|
|
106
|
+
"data-qa": "notice-content-title"
|
|
107
|
+
}, [
|
|
108
|
+
renderSlot(_ctx.$slots, "titleOverride", {}, () => [
|
|
109
|
+
createTextVNode(toDisplayString($props.title), 1)
|
|
110
|
+
])
|
|
111
|
+
], 8, _hoisted_2)) : createCommentVNode("", true),
|
|
112
|
+
createElementVNode("p", {
|
|
113
|
+
id: $props.contentId,
|
|
114
|
+
class: "d-notice__message",
|
|
115
|
+
"data-qa": "notice-content-message"
|
|
116
|
+
}, [
|
|
117
|
+
renderSlot(_ctx.$slots, "default")
|
|
118
|
+
], 8, _hoisted_3)
|
|
119
|
+
]);
|
|
120
|
+
}
|
|
121
|
+
const DtNoticeContent = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
122
|
+
const _sfc_main = {
|
|
123
|
+
name: "DtNoticeAction",
|
|
124
|
+
components: {
|
|
125
|
+
DtIcon,
|
|
126
|
+
DtButton,
|
|
127
|
+
SrOnlyCloseButton
|
|
128
|
+
},
|
|
129
|
+
mixins: [SrOnlyCloseButtonMixin],
|
|
130
|
+
props: {
|
|
131
|
+
/**
|
|
132
|
+
* Props for the notice close button.
|
|
133
|
+
*/
|
|
134
|
+
closeButtonProps: {
|
|
135
|
+
type: Object,
|
|
136
|
+
default: () => ({})
|
|
137
|
+
},
|
|
138
|
+
/**
|
|
139
|
+
* Hides the close button from the notice
|
|
140
|
+
* @values true, false
|
|
141
|
+
*/
|
|
142
|
+
hideClose: {
|
|
143
|
+
type: Boolean,
|
|
144
|
+
default: false
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Hides the action from the notice
|
|
148
|
+
* @values true, false
|
|
149
|
+
*/
|
|
150
|
+
hideAction: {
|
|
151
|
+
type: Boolean,
|
|
152
|
+
default: false
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
emits: [
|
|
156
|
+
/**
|
|
157
|
+
* Close button click event
|
|
158
|
+
*
|
|
159
|
+
* @event close
|
|
160
|
+
*/
|
|
161
|
+
"close"
|
|
162
|
+
],
|
|
163
|
+
created() {
|
|
164
|
+
if (!this.hideClose && !this.closeButtonProps.ariaLabel) {
|
|
165
|
+
console.error("Invalid props: you must pass in closeButtonProps.ariaLabel if the close button is displayed.");
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
mounted() {
|
|
169
|
+
if (!this.hideClose) {
|
|
170
|
+
this.lastFocusedElement = document.activeElement;
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
beforeUnmount() {
|
|
174
|
+
var _a;
|
|
175
|
+
(_a = this.lastFocusedElement) == null ? void 0 : _a.focus();
|
|
176
|
+
},
|
|
177
|
+
methods: {
|
|
178
|
+
close() {
|
|
179
|
+
this.$emit("close");
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
const _hoisted_1 = {
|
|
184
|
+
class: "d-notice__actions",
|
|
185
|
+
"data-qa": "notice-content-actions"
|
|
186
|
+
};
|
|
187
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
188
|
+
const _component_dt_icon = resolveComponent("dt-icon");
|
|
189
|
+
const _component_dt_button = resolveComponent("dt-button");
|
|
190
|
+
const _component_sr_only_close_button = resolveComponent("sr-only-close-button");
|
|
191
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
192
|
+
!$props.hideAction ? renderSlot(_ctx.$slots, "default", { key: 0 }) : createCommentVNode("", true),
|
|
193
|
+
!$props.hideClose ? (openBlock(), createBlock(_component_dt_button, mergeProps({
|
|
194
|
+
key: 1,
|
|
195
|
+
ref: "closeButton",
|
|
196
|
+
"data-qa": "dt-notice-action-close-button",
|
|
197
|
+
size: "sm",
|
|
198
|
+
importance: "clear",
|
|
199
|
+
circle: "",
|
|
200
|
+
"aria-label": $props.closeButtonProps.ariaLabel ? $props.closeButtonProps.ariaLabel : "Close"
|
|
201
|
+
}, $props.closeButtonProps, { onClick: $options.close }), {
|
|
202
|
+
icon: withCtx(() => [
|
|
203
|
+
createVNode(_component_dt_icon, {
|
|
204
|
+
name: "close",
|
|
205
|
+
size: "200"
|
|
206
|
+
})
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
}, 16, ["aria-label", "onClick"])) : createCommentVNode("", true),
|
|
210
|
+
_ctx.showVisuallyHiddenClose ? (openBlock(), createBlock(_component_sr_only_close_button, {
|
|
211
|
+
key: 2,
|
|
212
|
+
"visually-hidden-close-label": _ctx.visuallyHiddenCloseLabel,
|
|
213
|
+
onClose: $options.close
|
|
214
|
+
}, null, 8, ["visually-hidden-close-label", "onClose"])) : createCommentVNode("", true)
|
|
215
|
+
]);
|
|
216
|
+
}
|
|
217
|
+
const DtNoticeAction = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
218
|
+
export {
|
|
219
|
+
DtNoticeAction,
|
|
220
|
+
DtNoticeContent,
|
|
221
|
+
DtNoticeIcon
|
|
222
|
+
};
|
|
223
|
+
//# sourceMappingURL=notice_action-p-ePanW_.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notice_action-
|
|
1
|
+
{"version":3,"file":"notice_action-p-ePanW_.js","sources":["../../components/notice/notice_icon.vue","../../components/notice/notice_content.vue","../../components/notice/notice_action.vue"],"sourcesContent":["<template>\n <div\n v-if=\"defaultIcon || hasSlotContent($slots.default)\"\n aria-hidden=\"true\"\n class=\"d-notice__icon\"\n >\n <!-- @slot Slot for the main content -->\n <slot>\n <dt-icon\n :name=\"defaultIcon\"\n size=\"400\"\n />\n </slot>\n </div>\n</template>\n\n<script>\nimport { DtIcon } from '@/components/icon';\nimport { NOTICE_KINDS } from './notice_constants.js';\nimport { hasSlotContent } from '@/common/utils';\n\nconst kindToIcon = new Map([\n ['info', 'info'],\n ['success', 'check-circle'],\n ['warning', 'alert-triangle'],\n ['error', 'alert-circle'],\n ['base', 'bell'],\n]);\n\nexport default {\n name: 'DtNoticeIcon',\n\n components: {\n DtIcon,\n },\n\n props: {\n /**\n * Kind of icon\n * @values base, error, info, success, warning\n */\n kind: {\n type: String,\n default: 'base',\n validate (kind) {\n return NOTICE_KINDS.includes(kind);\n },\n },\n },\n\n data () {\n return {\n hasSlotContent,\n };\n },\n\n computed: {\n defaultIcon () {\n return kindToIcon.get(this.kind);\n },\n },\n};\n</script>\n","<template>\n <div\n class=\"d-notice__content\"\n data-qa=\"notice-content\"\n >\n <p\n v-if=\"title || hasSlotContent($slots.titleOverride)\"\n :id=\"titleId\"\n class=\"d-notice__title\"\n data-qa=\"notice-content-title\"\n >\n <!-- @slot Slot for the title -->\n <slot name=\"titleOverride\">\n {{ title }}\n </slot>\n </p>\n <p\n :id=\"contentId\"\n class=\"d-notice__message\"\n data-qa=\"notice-content-message\"\n >\n <!-- @slot Slot for main content -->\n <slot />\n </p>\n </div>\n</template>\n\n<script>\nimport { hasSlotContent } from '@/common/utils';\n\nexport default {\n name: 'DtNoticeContent',\n\n props: {\n /**\n * Title header of the notice. This can be left blank to remove the title from the notice entirely.\n */\n title: {\n type: String,\n default: '',\n },\n\n /**\n * ID for the title element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the title.\n */\n titleId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID for the content element of the component. Useful for aria-describedby\n * or aria-labelledby or any other reason you may need an id to refer to the content.\n */\n contentId: {\n type: String,\n default: undefined,\n },\n },\n\n data () {\n return {\n hasSlotContent,\n };\n },\n};\n</script>\n","<template>\n <div\n class=\"d-notice__actions\"\n data-qa=\"notice-content-actions\"\n >\n <!-- @slot Slot for main content -->\n <slot v-if=\"!hideAction\" />\n <dt-button\n v-if=\"!hideClose\"\n ref=\"closeButton\"\n data-qa=\"dt-notice-action-close-button\"\n size=\"sm\"\n importance=\"clear\"\n circle\n :aria-label=\"closeButtonProps.ariaLabel ? closeButtonProps.ariaLabel : 'Close'\"\n v-bind=\"closeButtonProps\"\n @click=\"close\"\n >\n <template #icon>\n <dt-icon\n name=\"close\"\n size=\"200\"\n />\n </template>\n </dt-button>\n <sr-only-close-button\n v-if=\"showVisuallyHiddenClose\"\n :visually-hidden-close-label=\"visuallyHiddenCloseLabel\"\n @close=\"close\"\n />\n </div>\n</template>\n\n<script>\nimport { DtIcon } from '@/components/icon';\nimport { DtButton } from '@/components/button';\nimport SrOnlyCloseButtonMixin from '@/common/mixins/sr_only_close_button';\nimport SrOnlyCloseButton from '@/common/sr_only_close_button.vue';\n\nexport default {\n name: 'DtNoticeAction',\n\n components: {\n DtIcon,\n DtButton,\n SrOnlyCloseButton,\n },\n\n mixins: [SrOnlyCloseButtonMixin],\n\n props: {\n /**\n * Props for the notice close button.\n */\n closeButtonProps: {\n type: Object,\n default: () => ({}),\n },\n\n /**\n * Hides the close button from the notice\n * @values true, false\n */\n hideClose: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Hides the action from the notice\n * @values true, false\n */\n hideAction: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n /**\n * Close button click event\n *\n * @event close\n */\n 'close',\n ],\n\n created () {\n if (!this.hideClose && !this.closeButtonProps.ariaLabel) {\n console.error('Invalid props: you must pass in closeButtonProps.ariaLabel if the close button is displayed.');\n }\n },\n\n mounted () {\n if (!this.hideClose) {\n this.lastFocusedElement = document.activeElement;\n }\n },\n\n beforeUnmount () {\n this.lastFocusedElement?.focus();\n },\n\n methods: {\n close () {\n this.$emit('close');\n },\n },\n};\n</script>\n"],"names":["_sfc_main","_openBlock","_createElementBlock","_hoisted_1","_renderSlot","_createVNode","_createElementVNode","_createBlock","_mergeProps"],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notice_constants-
|
|
1
|
+
{"version":3,"file":"notice_constants-7Qt2CQEY.js","sources":["../../components/notice/notice_constants.js"],"sourcesContent":["export const NOTICE_KINDS = ['base', 'error', 'info', 'success', 'warning'];\nexport const NOTICE_ROLES = ['alert', 'alertdialog', 'status'];\n\nexport default {\n NOTICE_KINDS,\n NOTICE_ROLES,\n};\n"],"names":[],"mappings":"AAAY,MAAC,eAAe,CAAC,QAAQ,SAAS,QAAQ,WAAW,SAAS;AAC9D,MAAC,eAAe,CAAC,SAAS,eAAe,QAAQ;"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const NOTICE_KINDS = ["base", "error", "info", "success", "warning"];
|
|
3
|
+
const NOTICE_ROLES = ["alert", "alertdialog", "status"];
|
|
4
|
+
exports.NOTICE_KINDS = NOTICE_KINDS;
|
|
5
|
+
exports.NOTICE_ROLES = NOTICE_ROLES;
|
|
6
|
+
//# sourceMappingURL=notice_constants-UXo9e3bS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notice_constants-
|
|
1
|
+
{"version":3,"file":"notice_constants-UXo9e3bS.js","sources":["../../components/notice/notice_constants.js"],"sourcesContent":["export const NOTICE_KINDS = ['base', 'error', 'info', 'success', 'warning'];\nexport const NOTICE_ROLES = ['alert', 'alertdialog', 'status'];\n\nexport default {\n NOTICE_KINDS,\n NOTICE_ROLES,\n};\n"],"names":[],"mappings":";AAAY,MAAC,eAAe,CAAC,QAAQ,SAAS,QAAQ,WAAW,SAAS;AAC9D,MAAC,eAAe,CAAC,SAAS,eAAe,QAAQ;;;"}
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const tippy = require("tippy.js");
|
|
3
|
+
const getArrowDetected = (fn) => ({
|
|
4
|
+
name: "arrowDetected",
|
|
5
|
+
enabled: true,
|
|
6
|
+
phase: "main",
|
|
7
|
+
fn,
|
|
8
|
+
requiresIfExists: ["offset"]
|
|
9
|
+
});
|
|
10
|
+
const BASE_TIPPY_DIRECTIONS = [
|
|
11
|
+
"bottom",
|
|
12
|
+
"bottom-start",
|
|
13
|
+
"bottom-end",
|
|
14
|
+
"right",
|
|
15
|
+
"right-start",
|
|
16
|
+
"right-end",
|
|
17
|
+
"left",
|
|
18
|
+
"left-start",
|
|
19
|
+
"left-end",
|
|
20
|
+
"top",
|
|
21
|
+
"top-start",
|
|
22
|
+
"top-end"
|
|
23
|
+
];
|
|
24
|
+
const TIPPY_STICKY_VALUES = [true, false, "reference", "popper"];
|
|
25
|
+
const createTippy = (anchorElement, options) => {
|
|
26
|
+
const { contentElement } = { ...options };
|
|
27
|
+
delete options.contentElement;
|
|
28
|
+
return tippy(anchorElement, {
|
|
29
|
+
...options,
|
|
30
|
+
plugins: [tippy.sticky],
|
|
31
|
+
render: () => getContentWrapper(contentElement)
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const getPopperOptions = ({
|
|
35
|
+
boundary = "clippingParents",
|
|
36
|
+
fallbackPlacements = [],
|
|
37
|
+
onChangePlacement = () => {
|
|
38
|
+
},
|
|
39
|
+
hasHideModifierEnabled = false,
|
|
40
|
+
// If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
41
|
+
// if set to true it will never move from its position relative to the anchor and will clip instead.
|
|
42
|
+
tether = true
|
|
43
|
+
} = {}) => {
|
|
44
|
+
return {
|
|
45
|
+
modifiers: [
|
|
46
|
+
{
|
|
47
|
+
name: "flip",
|
|
48
|
+
options: {
|
|
49
|
+
fallbackPlacements,
|
|
50
|
+
boundary
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
name: "hide",
|
|
55
|
+
enabled: hasHideModifierEnabled
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "preventOverflow",
|
|
59
|
+
options: {
|
|
60
|
+
altAxis: !tether,
|
|
61
|
+
tether
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
getArrowDetected(({ state }) => {
|
|
65
|
+
onChangePlacement(state.placement);
|
|
66
|
+
})
|
|
67
|
+
]
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
const createAnchor = (anchorWrapper) => {
|
|
71
|
+
const span = document.createElement("span");
|
|
72
|
+
span.innerText = anchorWrapper.innerText || "";
|
|
73
|
+
anchorWrapper.innerText = "";
|
|
74
|
+
anchorWrapper.appendChild(span);
|
|
75
|
+
return span;
|
|
76
|
+
};
|
|
77
|
+
const getAnchor = (anchorWrapper) => {
|
|
78
|
+
const anchor = anchorWrapper == null ? void 0 : anchorWrapper.children[0];
|
|
79
|
+
if (!anchor)
|
|
80
|
+
return createAnchor(anchorWrapper);
|
|
81
|
+
return anchor;
|
|
82
|
+
};
|
|
83
|
+
const getContentWrapper = (content) => {
|
|
84
|
+
const popper = document.createElement("div");
|
|
85
|
+
popper.className = "tippy-box d-ps-absolute";
|
|
86
|
+
popper.appendChild(content);
|
|
87
|
+
return {
|
|
88
|
+
popper
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
const TOOLTIP_DIRECTIONS = [
|
|
92
|
+
...BASE_TIPPY_DIRECTIONS
|
|
93
|
+
];
|
|
94
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
95
|
+
const TOOLTIP_KIND_MODIFIERS = {
|
|
96
|
+
hover: `d-tooltip--hover`,
|
|
97
|
+
show: `d-tooltip--show`,
|
|
98
|
+
inverted: `d-tooltip--inverted`,
|
|
99
|
+
hide: `d-tooltip--hide`
|
|
100
|
+
};
|
|
101
|
+
const TOOLTIP_STICKY_VALUES = [
|
|
102
|
+
...TIPPY_STICKY_VALUES
|
|
103
|
+
];
|
|
104
|
+
const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, "toggle"];
|
|
105
|
+
const POPOVER_PADDING_CLASSES = {
|
|
106
|
+
none: void 0,
|
|
107
|
+
small: "d-p4",
|
|
108
|
+
medium: "d-p8",
|
|
109
|
+
large: "d-p16"
|
|
110
|
+
};
|
|
111
|
+
const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
112
|
+
none: void 0,
|
|
113
|
+
small: "d-pl4",
|
|
114
|
+
medium: "d-pl8",
|
|
115
|
+
large: "d-pl16"
|
|
116
|
+
};
|
|
117
|
+
const POPOVER_ROLES = ["dialog", "menu", "listbox", "tree", "grid"];
|
|
118
|
+
const POPOVER_CONTENT_WIDTHS = ["", "anchor"];
|
|
119
|
+
const POPOVER_INITIAL_FOCUS_STRINGS = ["none", "dialog", "first"];
|
|
120
|
+
const POPOVER_APPEND_TO_VALUES = ["parent", "body"];
|
|
121
|
+
const POPOVER_STICKY_VALUES = [
|
|
122
|
+
...TIPPY_STICKY_VALUES
|
|
123
|
+
];
|
|
124
|
+
const POPOVER_DIRECTIONS = [
|
|
125
|
+
...BASE_TIPPY_DIRECTIONS
|
|
126
|
+
];
|
|
127
|
+
exports.POPOVER_APPEND_TO_VALUES = POPOVER_APPEND_TO_VALUES;
|
|
128
|
+
exports.POPOVER_CONTENT_WIDTHS = POPOVER_CONTENT_WIDTHS;
|
|
129
|
+
exports.POPOVER_DIRECTIONS = POPOVER_DIRECTIONS;
|
|
130
|
+
exports.POPOVER_HEADER_FOOTER_PADDING_CLASSES = POPOVER_HEADER_FOOTER_PADDING_CLASSES;
|
|
131
|
+
exports.POPOVER_INITIAL_FOCUS_STRINGS = POPOVER_INITIAL_FOCUS_STRINGS;
|
|
132
|
+
exports.POPOVER_PADDING_CLASSES = POPOVER_PADDING_CLASSES;
|
|
133
|
+
exports.POPOVER_ROLES = POPOVER_ROLES;
|
|
134
|
+
exports.POPOVER_STICKY_VALUES = POPOVER_STICKY_VALUES;
|
|
135
|
+
exports.TOOLTIP_DELAY_MS = TOOLTIP_DELAY_MS;
|
|
136
|
+
exports.TOOLTIP_DIRECTIONS = TOOLTIP_DIRECTIONS;
|
|
137
|
+
exports.TOOLTIP_HIDE_ON_CLICK_VARIANTS = TOOLTIP_HIDE_ON_CLICK_VARIANTS;
|
|
138
|
+
exports.TOOLTIP_KIND_MODIFIERS = TOOLTIP_KIND_MODIFIERS;
|
|
139
|
+
exports.TOOLTIP_STICKY_VALUES = TOOLTIP_STICKY_VALUES;
|
|
140
|
+
exports.createTippy = createTippy;
|
|
141
|
+
exports.getAnchor = getAnchor;
|
|
142
|
+
exports.getPopperOptions = getPopperOptions;
|
|
143
|
+
//# sourceMappingURL=popover_constants-JwBF9h1Z.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popover_constants-
|
|
1
|
+
{"version":3,"file":"popover_constants-JwBF9h1Z.js","sources":["../../components/tooltip/modifiers.js","../../components/popover/tippy_utils.js","../../components/tooltip/tooltip_constants.js","../../components/popover/popover_constants.js"],"sourcesContent":["export const getArrowDetected = fn => ({\n name: 'arrowDetected',\n enabled: true,\n phase: 'main',\n fn,\n requiresIfExists: ['offset'],\n});\n","import tippy, { sticky } from 'tippy.js';\nimport { getArrowDetected } from '../tooltip/modifiers';\n\nexport const BASE_TIPPY_DIRECTIONS = [\n 'bottom', 'bottom-start', 'bottom-end',\n 'right', 'right-start', 'right-end',\n 'left', 'left-start', 'left-end',\n 'top', 'top-start', 'top-end',\n];\n\nexport const TIPPY_STICKY_VALUES = [true, false, 'reference', 'popper'];\n\nexport const createTippy = (anchorElement, options) => {\n const { contentElement } = { ...options };\n delete options.contentElement;\n return tippy(anchorElement, {\n ...options,\n plugins: [sticky],\n render: () => getContentWrapper(contentElement),\n });\n};\n\nexport const getPopperOptions = ({\n boundary = 'clippingParents',\n fallbackPlacements = [],\n onChangePlacement = () => {},\n hasHideModifierEnabled = false,\n // If set to false the dialog will display over top of the anchor when there is insufficient space.\n // if set to true it will never move from its position relative to the anchor and will clip instead.\n tether = true,\n} = {}) => {\n return {\n modifiers: [\n {\n name: 'flip',\n options: {\n fallbackPlacements,\n boundary,\n },\n },\n {\n name: 'hide',\n enabled: hasHideModifierEnabled,\n },\n {\n name: 'preventOverflow',\n options: {\n altAxis: !tether,\n tether,\n },\n },\n getArrowDetected(({ state }) => {\n onChangePlacement(state.placement);\n }),\n ],\n };\n};\n\nconst createAnchor = (anchorWrapper) => {\n const span = document.createElement('span');\n span.innerText = anchorWrapper.innerText || '';\n anchorWrapper.innerText = '';\n anchorWrapper.appendChild(span);\n return span;\n};\n\nexport const getAnchor = (anchorWrapper) => {\n const anchor = anchorWrapper?.children[0];\n if (!anchor) return createAnchor(anchorWrapper);\n return anchor;\n};\n\nexport const getContentWrapper = content => {\n // The recommended structure is to use the popper as an outer wrapper\n const popper = document.createElement('div');\n popper.className = 'tippy-box d-ps-absolute';\n popper.appendChild(content);\n return {\n popper,\n };\n};\n","/*\n* Tippy directions - https://atomiks.github.io/tippyjs/v6/all-props/#placement\n* */\nimport { BASE_TIPPY_DIRECTIONS, TIPPY_STICKY_VALUES } from '@/components/popover/tippy_utils';\n\nexport const TOOLTIP_DIRECTIONS = [\n ...BASE_TIPPY_DIRECTIONS,\n];\n\nexport const TOOLTIP_DELAY_MS = 300;\n\nexport const TOOLTIP_KIND_MODIFIERS = {\n hover: `d-tooltip--hover`,\n show: `d-tooltip--show`,\n inverted: `d-tooltip--inverted`,\n hide: `d-tooltip--hide`,\n};\n\nexport const TOOLTIP_STICKY_VALUES = [\n ...TIPPY_STICKY_VALUES,\n];\n\nexport const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, 'toggle'];\n\nexport default {\n TOOLTIP_DIRECTIONS,\n TOOLTIP_DELAY_MS,\n TOOLTIP_KIND_MODIFIERS,\n TOOLTIP_STICKY_VALUES,\n TOOLTIP_HIDE_ON_CLICK_VARIANTS,\n};\n","import { BASE_TIPPY_DIRECTIONS, TIPPY_STICKY_VALUES } from './tippy_utils';\n\nexport const POPOVER_PADDING_CLASSES = {\n none: undefined,\n small: 'd-p4',\n medium: 'd-p8',\n large: 'd-p16',\n};\nexport const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {\n none: undefined,\n small: 'd-pl4',\n medium: 'd-pl8',\n large: 'd-pl16',\n};\nexport const POPOVER_ROLES = ['dialog', 'menu', 'listbox', 'tree', 'grid'];\nexport const POPOVER_CONTENT_WIDTHS = ['', 'anchor'];\nexport const POPOVER_INITIAL_FOCUS_STRINGS = ['none', 'dialog', 'first'];\nexport const POPOVER_APPEND_TO_VALUES = ['parent', 'body'];\nexport const POPOVER_STICKY_VALUES = [\n ...TIPPY_STICKY_VALUES,\n];\nexport const POPOVER_DIRECTIONS = [\n ...BASE_TIPPY_DIRECTIONS,\n];\n\nexport default {\n POPOVER_PADDING_CLASSES,\n POPOVER_HEADER_FOOTER_PADDING_CLASSES,\n POPOVER_ROLES,\n POPOVER_CONTENT_WIDTHS,\n POPOVER_INITIAL_FOCUS_STRINGS,\n POPOVER_APPEND_TO_VALUES,\n POPOVER_STICKY_VALUES,\n POPOVER_DIRECTIONS,\n};\n"],"names":["sticky"],"mappings":"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"}
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import tippy, { sticky } from "tippy.js";
|
|
2
|
+
const getArrowDetected = (fn) => ({
|
|
3
|
+
name: "arrowDetected",
|
|
4
|
+
enabled: true,
|
|
5
|
+
phase: "main",
|
|
6
|
+
fn,
|
|
7
|
+
requiresIfExists: ["offset"]
|
|
8
|
+
});
|
|
9
|
+
const BASE_TIPPY_DIRECTIONS = [
|
|
10
|
+
"bottom",
|
|
11
|
+
"bottom-start",
|
|
12
|
+
"bottom-end",
|
|
13
|
+
"right",
|
|
14
|
+
"right-start",
|
|
15
|
+
"right-end",
|
|
16
|
+
"left",
|
|
17
|
+
"left-start",
|
|
18
|
+
"left-end",
|
|
19
|
+
"top",
|
|
20
|
+
"top-start",
|
|
21
|
+
"top-end"
|
|
22
|
+
];
|
|
23
|
+
const TIPPY_STICKY_VALUES = [true, false, "reference", "popper"];
|
|
24
|
+
const createTippy = (anchorElement, options) => {
|
|
25
|
+
const { contentElement } = { ...options };
|
|
26
|
+
delete options.contentElement;
|
|
27
|
+
return tippy(anchorElement, {
|
|
28
|
+
...options,
|
|
29
|
+
plugins: [sticky],
|
|
30
|
+
render: () => getContentWrapper(contentElement)
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
const getPopperOptions = ({
|
|
34
|
+
boundary = "clippingParents",
|
|
35
|
+
fallbackPlacements = [],
|
|
36
|
+
onChangePlacement = () => {
|
|
37
|
+
},
|
|
38
|
+
hasHideModifierEnabled = false,
|
|
39
|
+
// If set to false the dialog will display over top of the anchor when there is insufficient space.
|
|
40
|
+
// if set to true it will never move from its position relative to the anchor and will clip instead.
|
|
41
|
+
tether = true
|
|
42
|
+
} = {}) => {
|
|
43
|
+
return {
|
|
44
|
+
modifiers: [
|
|
45
|
+
{
|
|
46
|
+
name: "flip",
|
|
47
|
+
options: {
|
|
48
|
+
fallbackPlacements,
|
|
49
|
+
boundary
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: "hide",
|
|
54
|
+
enabled: hasHideModifierEnabled
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
name: "preventOverflow",
|
|
58
|
+
options: {
|
|
59
|
+
altAxis: !tether,
|
|
60
|
+
tether
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
getArrowDetected(({ state }) => {
|
|
64
|
+
onChangePlacement(state.placement);
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
const createAnchor = (anchorWrapper) => {
|
|
70
|
+
const span = document.createElement("span");
|
|
71
|
+
span.innerText = anchorWrapper.innerText || "";
|
|
72
|
+
anchorWrapper.innerText = "";
|
|
73
|
+
anchorWrapper.appendChild(span);
|
|
74
|
+
return span;
|
|
75
|
+
};
|
|
76
|
+
const getAnchor = (anchorWrapper) => {
|
|
77
|
+
const anchor = anchorWrapper == null ? void 0 : anchorWrapper.children[0];
|
|
78
|
+
if (!anchor)
|
|
79
|
+
return createAnchor(anchorWrapper);
|
|
80
|
+
return anchor;
|
|
81
|
+
};
|
|
82
|
+
const getContentWrapper = (content) => {
|
|
83
|
+
const popper = document.createElement("div");
|
|
84
|
+
popper.className = "tippy-box d-ps-absolute";
|
|
85
|
+
popper.appendChild(content);
|
|
86
|
+
return {
|
|
87
|
+
popper
|
|
88
|
+
};
|
|
89
|
+
};
|
|
90
|
+
const TOOLTIP_DIRECTIONS = [
|
|
91
|
+
...BASE_TIPPY_DIRECTIONS
|
|
92
|
+
];
|
|
93
|
+
const TOOLTIP_DELAY_MS = 300;
|
|
94
|
+
const TOOLTIP_KIND_MODIFIERS = {
|
|
95
|
+
hover: `d-tooltip--hover`,
|
|
96
|
+
show: `d-tooltip--show`,
|
|
97
|
+
inverted: `d-tooltip--inverted`,
|
|
98
|
+
hide: `d-tooltip--hide`
|
|
99
|
+
};
|
|
100
|
+
const TOOLTIP_STICKY_VALUES = [
|
|
101
|
+
...TIPPY_STICKY_VALUES
|
|
102
|
+
];
|
|
103
|
+
const TOOLTIP_HIDE_ON_CLICK_VARIANTS = [true, false, "toggle"];
|
|
104
|
+
const POPOVER_PADDING_CLASSES = {
|
|
105
|
+
none: void 0,
|
|
106
|
+
small: "d-p4",
|
|
107
|
+
medium: "d-p8",
|
|
108
|
+
large: "d-p16"
|
|
109
|
+
};
|
|
110
|
+
const POPOVER_HEADER_FOOTER_PADDING_CLASSES = {
|
|
111
|
+
none: void 0,
|
|
112
|
+
small: "d-pl4",
|
|
113
|
+
medium: "d-pl8",
|
|
114
|
+
large: "d-pl16"
|
|
115
|
+
};
|
|
116
|
+
const POPOVER_ROLES = ["dialog", "menu", "listbox", "tree", "grid"];
|
|
117
|
+
const POPOVER_CONTENT_WIDTHS = ["", "anchor"];
|
|
118
|
+
const POPOVER_INITIAL_FOCUS_STRINGS = ["none", "dialog", "first"];
|
|
119
|
+
const POPOVER_APPEND_TO_VALUES = ["parent", "body"];
|
|
120
|
+
const POPOVER_STICKY_VALUES = [
|
|
121
|
+
...TIPPY_STICKY_VALUES
|
|
122
|
+
];
|
|
123
|
+
const POPOVER_DIRECTIONS = [
|
|
124
|
+
...BASE_TIPPY_DIRECTIONS
|
|
125
|
+
];
|
|
126
|
+
export {
|
|
127
|
+
POPOVER_APPEND_TO_VALUES,
|
|
128
|
+
POPOVER_CONTENT_WIDTHS,
|
|
129
|
+
POPOVER_DIRECTIONS,
|
|
130
|
+
POPOVER_HEADER_FOOTER_PADDING_CLASSES,
|
|
131
|
+
POPOVER_INITIAL_FOCUS_STRINGS,
|
|
132
|
+
POPOVER_PADDING_CLASSES,
|
|
133
|
+
POPOVER_ROLES,
|
|
134
|
+
POPOVER_STICKY_VALUES,
|
|
135
|
+
TOOLTIP_DELAY_MS,
|
|
136
|
+
TOOLTIP_DIRECTIONS,
|
|
137
|
+
TOOLTIP_HIDE_ON_CLICK_VARIANTS,
|
|
138
|
+
TOOLTIP_KIND_MODIFIERS,
|
|
139
|
+
TOOLTIP_STICKY_VALUES,
|
|
140
|
+
createTippy,
|
|
141
|
+
getAnchor,
|
|
142
|
+
getPopperOptions
|
|
143
|
+
};
|
|
144
|
+
//# sourceMappingURL=popover_constants-Qkpb0yh2.js.map
|