@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/skeleton.cjs
CHANGED
|
@@ -1,2 +1,636 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const vue = require("vue");
|
|
4
|
+
const _pluginVue_exportHelper = require("../chunks/_plugin-vue_export-helper-fhnQq0tA.js");
|
|
5
|
+
const SKELETON_RIPPLE_DURATION = 3e6;
|
|
6
|
+
const SKELETON_SHAPES = {
|
|
7
|
+
circle: "d-bar-circle",
|
|
8
|
+
square: "d-bar2"
|
|
9
|
+
};
|
|
10
|
+
const SKELETON_TEXT_TYPES = [
|
|
11
|
+
"body",
|
|
12
|
+
"heading"
|
|
13
|
+
];
|
|
14
|
+
const SKELETON_SHAPE_SIZES = {
|
|
15
|
+
sm: "24px",
|
|
16
|
+
md: "32px",
|
|
17
|
+
lg: "48px"
|
|
18
|
+
};
|
|
19
|
+
const SKELETON_HEADING_HEIGHTS = {
|
|
20
|
+
sm: "d-h16",
|
|
21
|
+
md: "d-h24",
|
|
22
|
+
lg: "d-h32"
|
|
23
|
+
};
|
|
24
|
+
const SkeletonAnimation = {
|
|
25
|
+
computed: {
|
|
26
|
+
skeletonOffset() {
|
|
27
|
+
const skeletonText = this.$refs.skeleton;
|
|
28
|
+
if (!skeletonText) {
|
|
29
|
+
return this.offset;
|
|
30
|
+
}
|
|
31
|
+
const { top, height } = skeletonText.getBoundingClientRect();
|
|
32
|
+
return top + height / 2;
|
|
33
|
+
},
|
|
34
|
+
skeletonStyle() {
|
|
35
|
+
const style = {};
|
|
36
|
+
if (this.skeletonOffset === -1 || !this.animate && this.animationDuration === -1) {
|
|
37
|
+
return style;
|
|
38
|
+
}
|
|
39
|
+
const animationDelay = this.skeletonOffset * SKELETON_RIPPLE_DURATION / 1e3;
|
|
40
|
+
const animationDuration = this.animationDuration === -1 ? 1e3 : this.animationDuration;
|
|
41
|
+
style.animationDelay = `${animationDelay}ms`;
|
|
42
|
+
style.animationDuration = `${animationDuration}ms`;
|
|
43
|
+
return style;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
const _sfc_main$4 = {
|
|
48
|
+
name: "DtSkeletonShape",
|
|
49
|
+
mixins: [SkeletonAnimation],
|
|
50
|
+
props: {
|
|
51
|
+
/**
|
|
52
|
+
* Defines the shape of the skeleton, accepts circle or square.
|
|
53
|
+
* @values circle, square
|
|
54
|
+
*/
|
|
55
|
+
shape: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "circle",
|
|
58
|
+
validator: (shape) => Object.keys(SKELETON_SHAPES).includes(shape)
|
|
59
|
+
},
|
|
60
|
+
/**
|
|
61
|
+
* Size of the shape
|
|
62
|
+
* @values xs, sm, md, lg, xl
|
|
63
|
+
*/
|
|
64
|
+
size: {
|
|
65
|
+
type: String,
|
|
66
|
+
default: "md"
|
|
67
|
+
},
|
|
68
|
+
/**
|
|
69
|
+
* Duration time of the animation (ms), set -1 for an infinite animation.
|
|
70
|
+
*/
|
|
71
|
+
animationDuration: {
|
|
72
|
+
type: Number,
|
|
73
|
+
default: -1
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
* This property has higher priority than "option.animate"
|
|
77
|
+
* @values true, false
|
|
78
|
+
*/
|
|
79
|
+
animate: {
|
|
80
|
+
type: Boolean,
|
|
81
|
+
default: true
|
|
82
|
+
},
|
|
83
|
+
/**
|
|
84
|
+
* RippleDuration controls how long the delay is for the animation of a
|
|
85
|
+
* placeholder 1000 pixels from the top of the page. Each placeholder
|
|
86
|
+
* from the top down will have a delay duration from 0 to this offset.
|
|
87
|
+
* The delay of each placeholder animation is based on how far down the page
|
|
88
|
+
* the placeholder is rendered. This is a linear relationship. The unit
|
|
89
|
+
* is milliseconds.
|
|
90
|
+
*/
|
|
91
|
+
offset: {
|
|
92
|
+
type: Number,
|
|
93
|
+
default: 1
|
|
94
|
+
},
|
|
95
|
+
/**
|
|
96
|
+
* Additional class name for the content.
|
|
97
|
+
*/
|
|
98
|
+
contentClass: {
|
|
99
|
+
type: [String, Object, Array],
|
|
100
|
+
default: ""
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
data() {
|
|
104
|
+
return {
|
|
105
|
+
SKELETON_SHAPES
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
computed: {
|
|
109
|
+
shapeStyles() {
|
|
110
|
+
const size = SKELETON_SHAPE_SIZES[this.size] || this.size;
|
|
111
|
+
return {
|
|
112
|
+
...this.skeletonStyle,
|
|
113
|
+
"min-width": size,
|
|
114
|
+
"max-width": size,
|
|
115
|
+
"min-height": size,
|
|
116
|
+
"max-height": size
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
122
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
123
|
+
ref: "skeleton",
|
|
124
|
+
"data-qa": "skeleton-shape",
|
|
125
|
+
class: vue.normalizeClass([
|
|
126
|
+
"skeleton-placeholder",
|
|
127
|
+
$data.SKELETON_SHAPES[$props.shape],
|
|
128
|
+
{
|
|
129
|
+
"skeleton-placeholder--animate": $props.animate
|
|
130
|
+
},
|
|
131
|
+
$props.contentClass
|
|
132
|
+
]),
|
|
133
|
+
style: vue.normalizeStyle($options.shapeStyles)
|
|
134
|
+
}, null, 6);
|
|
135
|
+
}
|
|
136
|
+
const DtSkeletonShape = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
137
|
+
const _sfc_main$3 = {
|
|
138
|
+
name: "DtSkeletonText",
|
|
139
|
+
mixins: [SkeletonAnimation],
|
|
140
|
+
props: {
|
|
141
|
+
/**
|
|
142
|
+
* Skeleton type
|
|
143
|
+
* @values body, heading
|
|
144
|
+
*/
|
|
145
|
+
type: {
|
|
146
|
+
type: String,
|
|
147
|
+
default: "body",
|
|
148
|
+
validator: (type) => SKELETON_TEXT_TYPES.includes(type)
|
|
149
|
+
},
|
|
150
|
+
/**
|
|
151
|
+
* Heading height
|
|
152
|
+
* @values sm, md, lg
|
|
153
|
+
*/
|
|
154
|
+
headingHeight: {
|
|
155
|
+
type: String,
|
|
156
|
+
default: "md",
|
|
157
|
+
validator: (headingHeight) => Object.keys(SKELETON_HEADING_HEIGHTS).includes(headingHeight)
|
|
158
|
+
},
|
|
159
|
+
/**
|
|
160
|
+
* Width of the skeleton
|
|
161
|
+
*/
|
|
162
|
+
width: {
|
|
163
|
+
type: String,
|
|
164
|
+
default: "100%"
|
|
165
|
+
},
|
|
166
|
+
/**
|
|
167
|
+
* Duration time of the animation (ms), set -1 for an infinite animation.
|
|
168
|
+
*/
|
|
169
|
+
animationDuration: {
|
|
170
|
+
type: Number,
|
|
171
|
+
default: -1
|
|
172
|
+
},
|
|
173
|
+
/**
|
|
174
|
+
* This property has higher priority than "option.animate"
|
|
175
|
+
* @values true, false
|
|
176
|
+
*/
|
|
177
|
+
animate: {
|
|
178
|
+
type: Boolean,
|
|
179
|
+
default: false
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
* RippleDuration controls how long the delay is for the animation of a
|
|
183
|
+
* placeholder 1000 pixels from the top of the page. Each placeholder
|
|
184
|
+
* from the top down will have a delay duration from 0 to this offset.
|
|
185
|
+
* The delay of each placeholder animation is based on how far down the page
|
|
186
|
+
* the placeholder is rendered. This is a linear relationship. The unit
|
|
187
|
+
* is milliseconds.
|
|
188
|
+
*/
|
|
189
|
+
offset: {
|
|
190
|
+
type: Number,
|
|
191
|
+
default: 1
|
|
192
|
+
},
|
|
193
|
+
/**
|
|
194
|
+
* Additional class name for the content.
|
|
195
|
+
*/
|
|
196
|
+
contentClass: {
|
|
197
|
+
type: String,
|
|
198
|
+
default: ""
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
data() {
|
|
202
|
+
return {
|
|
203
|
+
SKELETON_HEADING_HEIGHTS
|
|
204
|
+
};
|
|
205
|
+
}
|
|
206
|
+
};
|
|
207
|
+
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
208
|
+
return $props.type === "body" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
209
|
+
key: 0,
|
|
210
|
+
ref: "skeleton",
|
|
211
|
+
"data-qa": "skeleton-text-body",
|
|
212
|
+
class: vue.normalizeClass([
|
|
213
|
+
"d-skeleton-text",
|
|
214
|
+
"skeleton-placeholder",
|
|
215
|
+
{
|
|
216
|
+
"skeleton-placeholder--animate": $props.animate
|
|
217
|
+
},
|
|
218
|
+
$props.contentClass
|
|
219
|
+
]),
|
|
220
|
+
style: vue.normalizeStyle({
|
|
221
|
+
width: $props.width,
|
|
222
|
+
..._ctx.skeletonStyle
|
|
223
|
+
})
|
|
224
|
+
}, null, 6)) : $props.type === "heading" ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
225
|
+
key: 1,
|
|
226
|
+
ref: "skeleton",
|
|
227
|
+
"data-qa": "skeleton-text-heading",
|
|
228
|
+
class: vue.normalizeClass([
|
|
229
|
+
$data.SKELETON_HEADING_HEIGHTS[$props.headingHeight],
|
|
230
|
+
"d-skeleton-text--heading",
|
|
231
|
+
"skeleton-placeholder",
|
|
232
|
+
{
|
|
233
|
+
"skeleton-placeholder--animate": $props.animate
|
|
234
|
+
},
|
|
235
|
+
$props.contentClass
|
|
236
|
+
]),
|
|
237
|
+
style: vue.normalizeStyle({
|
|
238
|
+
width: $props.width,
|
|
239
|
+
..._ctx.skeletonStyle
|
|
240
|
+
})
|
|
241
|
+
}, null, 6)) : vue.createCommentVNode("", true);
|
|
242
|
+
}
|
|
243
|
+
const DtSkeletonText = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$3, [["render", _sfc_render$3]]);
|
|
244
|
+
const validator = (number) => number !== "" && !Number.isNaN(Number(number));
|
|
245
|
+
const _sfc_main$2 = {
|
|
246
|
+
name: "DtSkeletonParagraph",
|
|
247
|
+
components: {
|
|
248
|
+
DtSkeletonText
|
|
249
|
+
},
|
|
250
|
+
props: {
|
|
251
|
+
/**
|
|
252
|
+
* Quantity of rows to display
|
|
253
|
+
*/
|
|
254
|
+
rows: {
|
|
255
|
+
type: [Number, String],
|
|
256
|
+
default: 3,
|
|
257
|
+
validator
|
|
258
|
+
},
|
|
259
|
+
/**
|
|
260
|
+
* This property has higher priority than "option.animate"
|
|
261
|
+
* @values true, false
|
|
262
|
+
*/
|
|
263
|
+
animate: {
|
|
264
|
+
type: Boolean,
|
|
265
|
+
default: true
|
|
266
|
+
},
|
|
267
|
+
/**
|
|
268
|
+
* Controls the min width of paragraphs
|
|
269
|
+
*/
|
|
270
|
+
minWidth: {
|
|
271
|
+
type: [Number, String],
|
|
272
|
+
default: 30,
|
|
273
|
+
validator
|
|
274
|
+
},
|
|
275
|
+
/**
|
|
276
|
+
* Controls the max width of paragraphs
|
|
277
|
+
*/
|
|
278
|
+
maxWidth: {
|
|
279
|
+
type: [Number, String],
|
|
280
|
+
default: 100,
|
|
281
|
+
validator
|
|
282
|
+
},
|
|
283
|
+
/**
|
|
284
|
+
* Controls the width of paragraphs
|
|
285
|
+
*/
|
|
286
|
+
width: {
|
|
287
|
+
type: [String, Array],
|
|
288
|
+
default: null
|
|
289
|
+
},
|
|
290
|
+
/**
|
|
291
|
+
* If true, row widths will be random
|
|
292
|
+
* @values true, false
|
|
293
|
+
*/
|
|
294
|
+
randomWidth: {
|
|
295
|
+
type: Boolean,
|
|
296
|
+
default: false
|
|
297
|
+
},
|
|
298
|
+
/**
|
|
299
|
+
* RippleDuration controls how long the delay is for the animation of a
|
|
300
|
+
* placeholder 1000 pixels from the top of the page. Each placeholder
|
|
301
|
+
* from the top down will have a delay duration from 0 to this offset.
|
|
302
|
+
* The delay of each placeholder animation is based on how far down the page
|
|
303
|
+
* the placeholder is rendered. This is a linear relationship. The unit
|
|
304
|
+
* is milliseconds.
|
|
305
|
+
*/
|
|
306
|
+
offset: {
|
|
307
|
+
type: Number,
|
|
308
|
+
default: 1
|
|
309
|
+
},
|
|
310
|
+
/**
|
|
311
|
+
* Duration time of the animation (ms), set -1 for an infinite animation.
|
|
312
|
+
*/
|
|
313
|
+
animationDuration: {
|
|
314
|
+
type: Number,
|
|
315
|
+
default: -1
|
|
316
|
+
},
|
|
317
|
+
/**
|
|
318
|
+
* Additional class name for the content.
|
|
319
|
+
*/
|
|
320
|
+
contentClass: {
|
|
321
|
+
type: String,
|
|
322
|
+
default: ""
|
|
323
|
+
},
|
|
324
|
+
/**
|
|
325
|
+
* Additional class name for the row.
|
|
326
|
+
*/
|
|
327
|
+
rowClass: {
|
|
328
|
+
type: String,
|
|
329
|
+
default: ""
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
computed: {
|
|
333
|
+
integerRows() {
|
|
334
|
+
return Number(this.rows);
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
methods: {
|
|
338
|
+
randomWidthPercentage() {
|
|
339
|
+
const min = Math.min(this.minWidth, this.maxWidth);
|
|
340
|
+
const max = Math.max(this.minWidth, this.maxWidth);
|
|
341
|
+
return `${Math.round(Math.random() * (max - min)) + min}%`;
|
|
342
|
+
},
|
|
343
|
+
getSizeParagraphRow(row) {
|
|
344
|
+
const paragraphWidth = this.width;
|
|
345
|
+
const isArrayWidth = Array.isArray(paragraphWidth);
|
|
346
|
+
const currentWidth = paragraphWidth == null ? void 0 : paragraphWidth[row - 1];
|
|
347
|
+
const isLastRow = row === this.rows;
|
|
348
|
+
if (this.randomWidth) {
|
|
349
|
+
return this.randomWidthPercentage();
|
|
350
|
+
}
|
|
351
|
+
if (paragraphWidth && !isArrayWidth) {
|
|
352
|
+
return paragraphWidth;
|
|
353
|
+
}
|
|
354
|
+
if (paragraphWidth && isArrayWidth && currentWidth) {
|
|
355
|
+
return currentWidth;
|
|
356
|
+
}
|
|
357
|
+
return isLastRow ? "38%" : "100%";
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
};
|
|
361
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
362
|
+
const _component_dt_skeleton_text = vue.resolveComponent("dt-skeleton-text");
|
|
363
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
364
|
+
class: vue.normalizeClass([
|
|
365
|
+
"d-skeleton-paragraph",
|
|
366
|
+
$props.contentClass
|
|
367
|
+
]),
|
|
368
|
+
contentClass: "",
|
|
369
|
+
"data-qa": "skeleton-paragraph"
|
|
370
|
+
}, [
|
|
371
|
+
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($options.integerRows, (row) => {
|
|
372
|
+
return vue.openBlock(), vue.createBlock(_component_dt_skeleton_text, {
|
|
373
|
+
key: row,
|
|
374
|
+
"data-qa": "skeleton-paragraph-row",
|
|
375
|
+
"content-class": $props.rowClass,
|
|
376
|
+
animate: $props.animate,
|
|
377
|
+
offset: $props.offset,
|
|
378
|
+
"animation-duration": $props.animationDuration,
|
|
379
|
+
width: $options.getSizeParagraphRow(row)
|
|
380
|
+
}, null, 8, ["content-class", "animate", "offset", "animation-duration", "width"]);
|
|
381
|
+
}), 128))
|
|
382
|
+
], 2);
|
|
383
|
+
}
|
|
384
|
+
const DtSkeletonParagraph = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2]]);
|
|
385
|
+
const _sfc_main$1 = {
|
|
386
|
+
name: "DtSkeletonListItem",
|
|
387
|
+
components: {
|
|
388
|
+
DtSkeletonShape,
|
|
389
|
+
DtSkeletonParagraph
|
|
390
|
+
},
|
|
391
|
+
props: {
|
|
392
|
+
/**
|
|
393
|
+
* Defines the shape of the skeleton, accepts circle or square.
|
|
394
|
+
* @values circle, square
|
|
395
|
+
*/
|
|
396
|
+
shape: {
|
|
397
|
+
type: String,
|
|
398
|
+
default: "circle",
|
|
399
|
+
validator: (shape) => Object.keys(SKELETON_SHAPES).includes(shape)
|
|
400
|
+
},
|
|
401
|
+
/**
|
|
402
|
+
* Size of the shape
|
|
403
|
+
* @values xs, sm, md, lg, xl
|
|
404
|
+
*/
|
|
405
|
+
shapeSize: {
|
|
406
|
+
type: String,
|
|
407
|
+
default: "md"
|
|
408
|
+
},
|
|
409
|
+
/**
|
|
410
|
+
* Object containing quantity of paragraphs to display
|
|
411
|
+
* and a randomWidth boolean.
|
|
412
|
+
*/
|
|
413
|
+
paragraphs: {
|
|
414
|
+
type: Object,
|
|
415
|
+
default: () => ({ rows: 3, randomWidth: true })
|
|
416
|
+
},
|
|
417
|
+
/**
|
|
418
|
+
* Duration time of the animation (ms), set -1 for an infinite animation.
|
|
419
|
+
*/
|
|
420
|
+
animationDuration: {
|
|
421
|
+
type: Number,
|
|
422
|
+
default: -1
|
|
423
|
+
},
|
|
424
|
+
/**
|
|
425
|
+
* This property has higher priority than "option.animate"
|
|
426
|
+
* @values true, false
|
|
427
|
+
*/
|
|
428
|
+
animate: {
|
|
429
|
+
type: Boolean,
|
|
430
|
+
default: true
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* RippleDuration controls how long the delay is for the animation of a
|
|
434
|
+
* placeholder 1000 pixels from the top of the page. Each placeholder
|
|
435
|
+
* from the top down will have a delay duration from 0 to this offset.
|
|
436
|
+
* The delay of each placeholder animation is based on how far down the page
|
|
437
|
+
* the placeholder is rendered. This is a linear relationship. The unit
|
|
438
|
+
* is milliseconds.
|
|
439
|
+
*/
|
|
440
|
+
offset: {
|
|
441
|
+
type: Number,
|
|
442
|
+
default: 1
|
|
443
|
+
},
|
|
444
|
+
/**
|
|
445
|
+
* Additional class name for the shape.
|
|
446
|
+
*/
|
|
447
|
+
shapeClass: {
|
|
448
|
+
type: String,
|
|
449
|
+
default: ""
|
|
450
|
+
},
|
|
451
|
+
/**
|
|
452
|
+
* Additional class name for the content.
|
|
453
|
+
*/
|
|
454
|
+
contentClass: {
|
|
455
|
+
type: String,
|
|
456
|
+
default: ""
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
const _hoisted_1$1 = { class: "d-skeleton-list-item__paragraph-container" };
|
|
461
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
462
|
+
const _component_dt_skeleton_shape = vue.resolveComponent("dt-skeleton-shape");
|
|
463
|
+
const _component_dt_skeleton_paragraph = vue.resolveComponent("dt-skeleton-paragraph");
|
|
464
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
465
|
+
"data-qa": "skeleton-list-item",
|
|
466
|
+
class: vue.normalizeClass([
|
|
467
|
+
"d-skeleton-list-item",
|
|
468
|
+
{
|
|
469
|
+
"d-skeleton-list-item--single": $props.paragraphs.rows === 1
|
|
470
|
+
},
|
|
471
|
+
$props.contentClass
|
|
472
|
+
])
|
|
473
|
+
}, [
|
|
474
|
+
vue.createVNode(_component_dt_skeleton_shape, {
|
|
475
|
+
class: "d-skeleton-list-item__shape",
|
|
476
|
+
size: $props.shapeSize,
|
|
477
|
+
shape: $props.shape,
|
|
478
|
+
"animation-duration": $props.animationDuration,
|
|
479
|
+
animate: $props.animate,
|
|
480
|
+
offset: $props.offset,
|
|
481
|
+
"content-class": $props.shapeClass
|
|
482
|
+
}, null, 8, ["size", "shape", "animation-duration", "animate", "offset", "content-class"]),
|
|
483
|
+
vue.createElementVNode("div", _hoisted_1$1, [
|
|
484
|
+
vue.createVNode(_component_dt_skeleton_paragraph, vue.mergeProps($props.paragraphs, {
|
|
485
|
+
"animation-duration": $props.animationDuration,
|
|
486
|
+
animate: $props.animate,
|
|
487
|
+
offset: $props.offset
|
|
488
|
+
}), null, 16, ["animation-duration", "animate", "offset"])
|
|
489
|
+
])
|
|
490
|
+
], 2);
|
|
491
|
+
}
|
|
492
|
+
const DtSkeletonListItem = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
493
|
+
const _sfc_main = {
|
|
494
|
+
name: "DtSkeleton",
|
|
495
|
+
components: {
|
|
496
|
+
DtSkeletonText,
|
|
497
|
+
DtSkeletonShape,
|
|
498
|
+
DtSkeletonListItem,
|
|
499
|
+
DtSkeletonParagraph
|
|
500
|
+
},
|
|
501
|
+
props: {
|
|
502
|
+
/**
|
|
503
|
+
* Set this prop to have the skeleton render as multiple lines of text.
|
|
504
|
+
* Set only one option prop at a time.
|
|
505
|
+
*/
|
|
506
|
+
paragraphOption: {
|
|
507
|
+
type: [Object, Boolean],
|
|
508
|
+
default: null
|
|
509
|
+
},
|
|
510
|
+
/**
|
|
511
|
+
* Set this prop to have the skeleton render as a list item with an avatar and wrapping text.
|
|
512
|
+
* Set only one option prop at a time.
|
|
513
|
+
*/
|
|
514
|
+
listItemOption: {
|
|
515
|
+
type: [Object, Boolean],
|
|
516
|
+
default: null
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
* Set this prop to have the skeleton render as a single line of text.
|
|
520
|
+
* Set only one option prop at a time.
|
|
521
|
+
*/
|
|
522
|
+
textOption: {
|
|
523
|
+
type: Object,
|
|
524
|
+
default: null
|
|
525
|
+
},
|
|
526
|
+
/**
|
|
527
|
+
* Set this prop to have the skeleton render as a specific shape.
|
|
528
|
+
* Set only one option prop at a time.
|
|
529
|
+
*/
|
|
530
|
+
shapeOption: {
|
|
531
|
+
type: [Object, Boolean],
|
|
532
|
+
default: null
|
|
533
|
+
},
|
|
534
|
+
/**
|
|
535
|
+
* Duration time of the animation (ms), set -1 for an infinite animation.
|
|
536
|
+
*/
|
|
537
|
+
animationDuration: {
|
|
538
|
+
type: Number,
|
|
539
|
+
default: -1
|
|
540
|
+
},
|
|
541
|
+
/**
|
|
542
|
+
* Descriptive label for the content.
|
|
543
|
+
*/
|
|
544
|
+
ariaLabel: {
|
|
545
|
+
type: String,
|
|
546
|
+
default: ""
|
|
547
|
+
},
|
|
548
|
+
/**
|
|
549
|
+
* This property has higher priority than "option.animate"
|
|
550
|
+
* @values true, false
|
|
551
|
+
*/
|
|
552
|
+
animate: {
|
|
553
|
+
type: Boolean,
|
|
554
|
+
default: true
|
|
555
|
+
},
|
|
556
|
+
/**
|
|
557
|
+
* RippleDuration controls how long the delay is for the animation of a
|
|
558
|
+
* placeholder 1000 pixels from the top of the page. Each placeholder
|
|
559
|
+
* from the top down will have a delay duration from 0 to this offset.
|
|
560
|
+
* The delay of each placeholder animation is based on how far down the page
|
|
561
|
+
* the placeholder is rendered. This is a linear relationship. The unit
|
|
562
|
+
* is milliseconds.
|
|
563
|
+
*/
|
|
564
|
+
offset: {
|
|
565
|
+
type: Number,
|
|
566
|
+
default: 1
|
|
567
|
+
}
|
|
568
|
+
},
|
|
569
|
+
computed: {
|
|
570
|
+
validationOptions() {
|
|
571
|
+
return {
|
|
572
|
+
paragraphOption: this.paragraphOption,
|
|
573
|
+
listItemOption: this.listItemOption,
|
|
574
|
+
textOption: this.textOption,
|
|
575
|
+
shapeOption: this.shapeOption
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
watch: {
|
|
580
|
+
$props: {
|
|
581
|
+
immediate: true,
|
|
582
|
+
handler: "validator"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
methods: {
|
|
586
|
+
validator() {
|
|
587
|
+
const filtered = Object.entries(this.validationOptions).filter(([_, option]) => option);
|
|
588
|
+
if (filtered.length >= 2) {
|
|
589
|
+
const errorMessage = `Use only one of ${filtered.map(([key]) => key).join(" | ")} options at the same time`;
|
|
590
|
+
console.error(errorMessage);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
};
|
|
595
|
+
const _hoisted_1 = ["aria-label"];
|
|
596
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
597
|
+
const _component_dt_skeleton_list_item = vue.resolveComponent("dt-skeleton-list-item");
|
|
598
|
+
const _component_dt_skeleton_shape = vue.resolveComponent("dt-skeleton-shape");
|
|
599
|
+
const _component_dt_skeleton_paragraph = vue.resolveComponent("dt-skeleton-paragraph");
|
|
600
|
+
const _component_dt_skeleton_text = vue.resolveComponent("dt-skeleton-text");
|
|
601
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
602
|
+
"aria-busy": "true",
|
|
603
|
+
role: "status",
|
|
604
|
+
"aria-label": $props.ariaLabel
|
|
605
|
+
}, [
|
|
606
|
+
$props.listItemOption ? (vue.openBlock(), vue.createBlock(_component_dt_skeleton_list_item, vue.mergeProps({ key: 0 }, $props.listItemOption === true ? {} : $props.listItemOption, {
|
|
607
|
+
"animation-duration": $props.animationDuration,
|
|
608
|
+
animate: $props.animate,
|
|
609
|
+
offset: $props.offset
|
|
610
|
+
}), null, 16, ["animation-duration", "animate", "offset"])) : $props.shapeOption ? (vue.openBlock(), vue.createBlock(_component_dt_skeleton_shape, vue.mergeProps({ key: 1 }, $props.shapeOption === true ? {} : $props.shapeOption, {
|
|
611
|
+
"animation-duration": $props.animationDuration,
|
|
612
|
+
animate: $props.animate,
|
|
613
|
+
offset: $props.offset
|
|
614
|
+
}), null, 16, ["animation-duration", "animate", "offset"])) : $props.paragraphOption ? (vue.openBlock(), vue.createBlock(_component_dt_skeleton_paragraph, vue.mergeProps({ key: 2 }, $props.paragraphOption === true ? {} : $props.paragraphOption, {
|
|
615
|
+
"animation-duration": $props.animationDuration,
|
|
616
|
+
animate: $props.animate,
|
|
617
|
+
offset: $props.offset
|
|
618
|
+
}), null, 16, ["animation-duration", "animate", "offset"])) : (vue.openBlock(), vue.createBlock(_component_dt_skeleton_text, vue.mergeProps({ key: 3 }, $props.textOption || {}, {
|
|
619
|
+
"animation-duration": $props.animationDuration,
|
|
620
|
+
animate: $props.animate,
|
|
621
|
+
offset: $props.offset
|
|
622
|
+
}), null, 16, ["animation-duration", "animate", "offset"]))
|
|
623
|
+
], 8, _hoisted_1);
|
|
624
|
+
}
|
|
625
|
+
const DtSkeleton = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
626
|
+
exports.DtSkeleton = DtSkeleton;
|
|
627
|
+
exports.DtSkeletonListItem = DtSkeletonListItem;
|
|
628
|
+
exports.DtSkeletonParagraph = DtSkeletonParagraph;
|
|
629
|
+
exports.DtSkeletonShape = DtSkeletonShape;
|
|
630
|
+
exports.DtSkeletonText = DtSkeletonText;
|
|
631
|
+
exports.SKELETON_HEADING_HEIGHTS = SKELETON_HEADING_HEIGHTS;
|
|
632
|
+
exports.SKELETON_RIPPLE_DURATION = SKELETON_RIPPLE_DURATION;
|
|
633
|
+
exports.SKELETON_SHAPES = SKELETON_SHAPES;
|
|
634
|
+
exports.SKELETON_SHAPE_SIZES = SKELETON_SHAPE_SIZES;
|
|
635
|
+
exports.SKELETON_TEXT_TYPES = SKELETON_TEXT_TYPES;
|
|
2
636
|
//# sourceMappingURL=skeleton.cjs.map
|