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