@dialpad/dialtone-vue 3.219.0 → 3.220.0-next.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/{attachment_carousel-CouFqFMw.js → attachment_carousel-1qxTI-NN.js} +5 -5
- package/dist/attachment_carousel-1qxTI-NN.js.map +1 -0
- package/dist/attachment_carousel-wnZS3vEt.cjs +2 -0
- package/dist/attachment_carousel-wnZS3vEt.cjs.map +1 -0
- package/dist/{combobox-DgClbLOg.js → combobox-BQBKrDTW.js} +36 -35
- package/dist/combobox-BQBKrDTW.js.map +1 -0
- package/dist/combobox-Da7wBh3G.cjs +3 -0
- package/dist/combobox-Da7wBh3G.cjs.map +1 -0
- package/dist/common/composables/useIndicatorAnimation.cjs +2 -0
- package/dist/common/composables/useIndicatorAnimation.cjs.map +1 -0
- package/dist/common/composables/useIndicatorAnimation.d.ts +18 -0
- package/dist/common/composables/useIndicatorAnimation.d.ts.map +1 -0
- package/dist/common/composables/useIndicatorAnimation.js +78 -0
- package/dist/common/composables/useIndicatorAnimation.js.map +1 -0
- package/dist/common/constants/index.cjs +1 -1
- package/dist/common/constants/index.cjs.map +1 -1
- package/dist/common/constants/index.d.ts +27 -21
- package/dist/common/constants/index.d.ts.map +1 -1
- package/dist/common/constants/index.js +25 -14
- package/dist/common/constants/index.js.map +1 -1
- package/dist/common/constants/sizes.cjs +2 -0
- package/dist/common/constants/sizes.cjs.map +1 -0
- package/dist/common/constants/sizes.d.ts +22 -0
- package/dist/common/constants/sizes.d.ts.map +1 -0
- package/dist/common/constants/sizes.js +19 -0
- package/dist/common/constants/sizes.js.map +1 -0
- package/dist/common/mixins/index.cjs +1 -1
- package/dist/common/mixins/index.d.ts +1 -0
- package/dist/common/mixins/index.js +2 -1
- package/dist/common/mixins/input.cjs +1 -1
- package/dist/common/mixins/input.cjs.map +1 -1
- package/dist/common/mixins/input.d.ts +27 -33
- package/dist/common/mixins/input.d.ts.map +1 -1
- package/dist/common/mixins/input.js +0 -8
- package/dist/common/mixins/input.js.map +1 -1
- package/dist/common/mixins/mode.cjs +2 -0
- package/dist/common/mixins/mode.cjs.map +1 -0
- package/dist/common/mixins/mode.d.ts +25 -0
- package/dist/common/mixins/mode.d.ts.map +1 -0
- package/dist/common/mixins/mode.js +62 -0
- package/dist/common/mixins/mode.js.map +1 -0
- package/dist/common/mode_constants.d.ts +37 -0
- package/dist/common/mode_constants.d.ts.map +1 -0
- package/dist/common/sr_only_close_button.vue.d.ts +53 -7
- package/dist/common/sr_only_close_button.vue.d.ts.map +1 -1
- package/dist/common/utils/index.cjs +1 -1
- package/dist/common/utils/index.cjs.map +1 -1
- package/dist/common/utils/index.d.ts +2 -8
- package/dist/common/utils/index.d.ts.map +1 -1
- package/dist/common/utils/index.js +79 -88
- package/dist/common/utils/index.js.map +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/components/avatar/avatar.vue.d.ts +85 -27
- package/dist/components/avatar/avatar.vue.d.ts.map +1 -1
- package/dist/components/avatar/avatar_constants.d.ts +86 -29
- package/dist/components/avatar/avatar_constants.d.ts.map +1 -1
- package/dist/components/avatar/index.d.ts +1 -1
- package/dist/components/badge/badge.vue.d.ts +1 -1
- package/dist/components/badge/badge.vue.d.ts.map +1 -1
- package/dist/components/badge/badge_constants.d.ts +1 -1
- package/dist/components/banner/banner.vue.d.ts +269 -34
- package/dist/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/components/box/box.vue.d.ts +73 -0
- package/dist/components/box/box.vue.d.ts.map +1 -0
- package/dist/components/box/box_constants.d.ts +11 -0
- package/dist/components/box/box_constants.d.ts.map +1 -0
- package/dist/components/box/index.d.ts +3 -0
- package/dist/components/box/index.d.ts.map +1 -0
- package/dist/components/box/validators.d.ts +11 -0
- package/dist/components/box/validators.d.ts.map +1 -0
- package/dist/components/breadcrumbs/breadcrumb_item.vue.d.ts +26 -17
- package/dist/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
- package/dist/components/breadcrumbs/breadcrumbs.vue.d.ts +25 -16
- package/dist/components/button/button.vue.d.ts +53 -7
- package/dist/components/button/button.vue.d.ts.map +1 -1
- package/dist/components/button/button_constants.d.ts +29 -20
- package/dist/components/button/button_constants.d.ts.map +1 -1
- package/dist/components/card/card.vue.d.ts +0 -9
- package/dist/components/card/card.vue.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.vue.d.ts +183 -10
- package/dist/components/checkbox/checkbox.vue.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox_constants.d.ts +2 -2
- package/dist/components/checkbox_group/checkbox_group.vue.d.ts +142 -0
- package/dist/components/chip/chip.vue.d.ts +62 -16
- package/dist/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/components/chip/chip_constants.d.ts +24 -21
- package/dist/components/chip/chip_constants.d.ts.map +1 -1
- package/dist/components/codeblock/codeblock.vue.d.ts +25 -2
- package/dist/components/codeblock/codeblock.vue.d.ts.map +1 -1
- package/dist/components/codeblock/codeblock_constants.d.ts +9 -0
- package/dist/components/codeblock/codeblock_constants.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.vue.d.ts +53 -7
- package/dist/components/collapsible/collapsible.vue.d.ts.map +1 -1
- package/dist/components/combobox/combobox.vue.d.ts +113 -38
- package/dist/components/combobox/combobox.vue.d.ts.map +1 -1
- package/dist/components/combobox/combobox_empty-list.vue.d.ts +40 -7
- package/dist/components/combobox/combobox_empty-list.vue.d.ts.map +1 -1
- package/dist/components/combobox/combobox_loading-list.vue.d.ts +64 -22
- package/dist/components/combobox/combobox_loading-list.vue.d.ts.map +1 -1
- package/dist/components/combobox_multi_select/combobox_multi_select_constants.d.ts +16 -13
- package/dist/components/combobox_multi_select/combobox_multi_select_constants.d.ts.map +1 -1
- package/dist/components/combobox_with_popover/combobox_with_popover.vue.d.ts +399 -93
- package/dist/components/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.vue.d.ts +175 -19
- package/dist/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/components/emoji/emoji.vue.d.ts +24 -15
- package/dist/components/emoji_picker/emoji_picker.vue.d.ts +204 -22
- package/dist/components/emoji_picker/modules/emoji_search.vue.d.ts +204 -22
- package/dist/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
- package/dist/components/emoji_picker/modules/emoji_tabset.vue.d.ts.map +1 -1
- package/dist/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts +24 -15
- package/dist/components/emoji_text_wrapper/emoji_text_wrapper.vue.d.ts.map +1 -1
- package/dist/components/empty_state/empty_state.vue.d.ts.map +1 -1
- package/dist/components/empty_state/empty_state_constants.d.ts +52 -31
- package/dist/components/empty_state/empty_state_constants.d.ts.map +1 -1
- package/dist/components/filter_pill/filter_pill.vue.d.ts +4491 -0
- package/dist/components/filter_pill/filter_pill.vue.d.ts.map +1 -0
- package/dist/components/filter_pill/index.d.ts +2 -0
- package/dist/components/filter_pill/index.d.ts.map +1 -0
- package/dist/components/hovercard/hovercard.vue.d.ts +380 -41
- package/dist/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/components/image_viewer/image_viewer.vue.d.ts +131 -14
- package/dist/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/components/input/input.vue.d.ts +195 -19
- package/dist/components/input/input.vue.d.ts.map +1 -1
- package/dist/components/input/input_constants.d.ts +46 -48
- package/dist/components/input/input_constants.d.ts.map +1 -1
- package/dist/components/input_group/input_group.vue.d.ts +142 -0
- package/dist/components/input_group/input_group.vue.d.ts.map +1 -1
- package/dist/components/item_layout/item_layout.vue.d.ts +37 -6
- package/dist/components/item_layout/item_layout.vue.d.ts.map +1 -1
- package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +142 -0
- package/dist/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
- package/dist/components/link/index.d.ts +1 -1
- package/dist/components/link/link.vue.d.ts +25 -6
- package/dist/components/link/link_constants.d.ts +4 -4
- package/dist/components/link/link_constants.d.ts.map +1 -1
- package/dist/components/list_item/list_item.vue.d.ts +40 -7
- package/dist/components/list_item/list_item.vue.d.ts.map +1 -1
- package/dist/components/modal/modal.vue.d.ts +292 -97
- package/dist/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/components/modal/modal_constants.d.ts +7 -6
- package/dist/components/mode_island/index.d.ts +3 -0
- package/dist/components/mode_island/index.d.ts.map +1 -0
- package/dist/components/mode_island/mode_island.vue.d.ts +3 -0
- package/dist/components/mode_island/mode_island.vue.d.ts.map +1 -0
- package/dist/components/mode_island/mode_island_constants.d.ts +10 -0
- package/dist/components/mode_island/mode_island_constants.d.ts.map +1 -0
- package/dist/components/mode_island/utils.d.ts +12 -0
- package/dist/components/mode_island/utils.d.ts.map +1 -0
- package/dist/components/mode_island/validators.d.ts +6 -0
- package/dist/components/mode_island/validators.d.ts.map +1 -0
- package/dist/components/motion_text/motion_text_constants.d.ts +27 -23
- package/dist/components/motion_text/motion_text_constants.d.ts.map +1 -1
- package/dist/components/notice/notice.vue.d.ts +269 -34
- package/dist/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/components/notice/notice_action.vue.d.ts +112 -20
- package/dist/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/components/notice/notice_constants.d.ts.map +1 -1
- package/dist/components/notice/notice_content.vue.d.ts +144 -1
- package/dist/components/notice/notice_content.vue.d.ts.map +1 -1
- package/dist/components/notice/notice_icon.vue.d.ts +2 -2
- package/dist/components/notice/notice_icon.vue.d.ts.map +1 -1
- package/dist/components/pagination/pagination.vue.d.ts +56 -10
- package/dist/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/components/popover/popover.vue.d.ts +163 -18
- package/dist/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/components/popover/popover_header_footer.vue.d.ts +62 -7
- package/dist/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/components/radio/radio.vue.d.ts +178 -6
- package/dist/components/radio/radio.vue.d.ts.map +1 -1
- package/dist/components/radio/radio_constants.d.ts +2 -2
- package/dist/components/radio_group/radio_group.vue.d.ts +142 -0
- package/dist/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +25 -6
- package/dist/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/channels/ChannelSuggestion.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/emoji/EmojiComponent.vue.d.ts +24 -15
- package/dist/components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue.d.ts +24 -15
- package/dist/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +25 -6
- package/dist/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +227 -27
- package/dist/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +144 -1
- package/dist/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +40 -7
- package/dist/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +411 -44
- package/dist/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/components/rich_text_editor/rich_text_editor.vue.d.ts +59 -13
- package/dist/components/rich_text_editor/rich_text_editor.vue.d.ts.map +1 -1
- package/dist/components/root_layout/root_layout_constants.d.ts +2 -0
- package/dist/components/root_layout/root_layout_constants.d.ts.map +1 -1
- package/dist/components/scroller/modules/core_scroller.vue.d.ts +2 -2
- package/dist/components/scroller/modules/dynamic_scroller.vue.d.ts +12 -12
- package/dist/components/scroller/scroller.vue.d.ts +18 -18
- package/dist/components/segmented_control/index.d.ts +4 -0
- package/dist/components/segmented_control/index.d.ts.map +1 -0
- package/dist/components/segmented_control/segmented_control.vue.d.ts +226 -0
- package/dist/components/segmented_control/segmented_control.vue.d.ts.map +1 -0
- package/dist/components/segmented_control/segmented_control_constants.d.ts +41 -0
- package/dist/components/segmented_control/segmented_control_constants.d.ts.map +1 -0
- package/dist/components/segmented_control/segmented_control_item.vue.d.ts +35 -0
- package/dist/components/segmented_control/segmented_control_item.vue.d.ts.map +1 -0
- package/dist/components/select_menu/select_menu.vue.d.ts +189 -31
- package/dist/components/select_menu/select_menu.vue.d.ts.map +1 -1
- package/dist/components/select_menu/select_menu_constants.d.ts +14 -9
- package/dist/components/select_menu/select_menu_constants.d.ts.map +1 -1
- package/dist/components/skeleton/skeleton-list-item.vue.d.ts +13 -10
- package/dist/components/skeleton/skeleton-paragraph.vue.d.ts +3 -0
- package/dist/components/skeleton/skeleton-shape.vue.d.ts +5 -5
- package/dist/components/skeleton/skeleton-text.vue.d.ts +3 -0
- package/dist/components/skeleton/skeleton.vue.d.ts +24 -15
- package/dist/components/skeleton/skeleton_constants.d.ts +18 -13
- package/dist/components/skeleton/skeleton_constants.d.ts.map +1 -1
- package/dist/components/split_button/{split_button-omega.vue.d.ts → split_button-end.vue.d.ts} +64 -13
- package/dist/components/split_button/{split_button-omega.vue.d.ts.map → split_button-end.vue.d.ts.map} +1 -1
- package/dist/components/split_button/{split_button-alpha.vue.d.ts → split_button-start.vue.d.ts} +125 -11
- package/dist/components/split_button/split_button-start.vue.d.ts.map +1 -0
- package/dist/components/split_button/split_button.vue.d.ts +602 -78
- package/dist/components/split_button/split_button.vue.d.ts.map +1 -1
- package/dist/components/split_button/split_button_constants.d.ts +12 -7
- package/dist/components/split_button/split_button_constants.d.ts.map +1 -1
- package/dist/components/stack/stack_constants.d.ts.map +1 -1
- package/dist/components/tab/index.d.ts +1 -1
- package/dist/components/tab/tab.vue.d.ts +86 -11
- package/dist/components/tab/tab.vue.d.ts.map +1 -1
- package/dist/components/tab/tab_group.vue.d.ts +125 -10
- package/dist/components/tab/tab_group.vue.d.ts.map +1 -1
- package/dist/components/tab/tabs_constants.d.ts +23 -5
- package/dist/components/tab/tabs_constants.d.ts.map +1 -1
- package/dist/components/text/index.d.ts +3 -0
- package/dist/components/text/index.d.ts.map +1 -0
- package/dist/components/text/text.vue.d.ts +145 -0
- package/dist/components/text/text.vue.d.ts.map +1 -0
- package/dist/components/text/text_constants.d.ts +93 -0
- package/dist/components/text/text_constants.d.ts.map +1 -0
- package/dist/components/toast/layouts/toast_layout_alternate.vue.d.ts +264 -29
- package/dist/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/components/toast/layouts/toast_layout_alternate_icon.vue.d.ts +2 -2
- package/dist/components/toast/layouts/toast_layout_alternate_icon.vue.d.ts.map +1 -1
- package/dist/components/toast/layouts/toast_layout_default.vue.d.ts +267 -32
- package/dist/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/components/toast/toast.vue.d.ts +1125 -185
- package/dist/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/components/toggle/toggle.vue.d.ts +19 -19
- package/dist/components/toggle/toggle.vue.d.ts.map +1 -1
- package/dist/components/toggle/toggle_constants.d.ts +6 -4
- package/dist/components/toggle/toggle_constants.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.vue.d.ts +31 -5
- package/dist/components/tooltip/tooltip.vue.d.ts.map +1 -1
- package/dist/{datepicker-LVDRC6Lf.js → datepicker-B2nhxiCg.js} +20 -24
- package/dist/datepicker-B2nhxiCg.js.map +1 -0
- package/dist/datepicker-CZrNL0Yn.cjs +2 -0
- package/dist/datepicker-CZrNL0Yn.cjs.map +1 -0
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.css +1 -1
- package/dist/dialtone-vue.js +170 -150
- package/dist/directives/focusgroup_directive/focusgroup.d.ts +6 -0
- package/dist/directives/focusgroup_directive/focusgroup.d.ts.map +1 -0
- package/dist/directives/focusgroup_directive/focusgroup_constants.d.ts +74 -0
- package/dist/directives/focusgroup_directive/focusgroup_constants.d.ts.map +1 -0
- package/dist/directives/focusgroup_directive/focusgroup_utils.d.ts +15 -0
- package/dist/directives/focusgroup_directive/focusgroup_utils.d.ts.map +1 -0
- package/dist/directives/focusgroup_directive/index.d.ts +2 -0
- package/dist/directives/focusgroup_directive/index.d.ts.map +1 -0
- package/dist/directives/focustrap_directive/focustrap.d.ts +6 -0
- package/dist/directives/focustrap_directive/focustrap.d.ts.map +1 -0
- package/dist/directives/focustrap_directive/focustrap_constants.d.ts +7 -0
- package/dist/directives/focustrap_directive/focustrap_constants.d.ts.map +1 -0
- package/dist/directives/focustrap_directive/focustrap_utils.d.ts +5 -0
- package/dist/directives/focustrap_directive/focustrap_utils.d.ts.map +1 -0
- package/dist/directives/focustrap_directive/index.d.ts +2 -0
- package/dist/directives/focustrap_directive/index.d.ts.map +1 -0
- package/dist/directives/mode_directive/index.d.ts +2 -0
- package/dist/directives/mode_directive/index.d.ts.map +1 -0
- package/dist/directives/mode_directive/mode.d.ts +6 -0
- package/dist/directives/mode_directive/mode.d.ts.map +1 -0
- package/dist/directives/tooltip_directive/tooltip.d.ts.map +1 -1
- package/dist/emoji_picker-BQW4qRFg.cjs +2 -0
- package/dist/emoji_picker-BQW4qRFg.cjs.map +1 -0
- package/dist/{emoji_picker-tVHfpHDk.js → emoji_picker-BjgAohQy.js} +9 -8
- package/dist/emoji_picker-BjgAohQy.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/lib/attachment-carousel/attachment-carousel.js +1 -1
- package/dist/lib/attachment-carousel/index.cjs +1 -1
- package/dist/lib/attachment-carousel/index.js +1 -1
- package/dist/lib/avatar/avatar-constants.cjs +1 -1
- package/dist/lib/avatar/avatar-constants.cjs.map +1 -1
- package/dist/lib/avatar/avatar-constants.js +111 -24
- package/dist/lib/avatar/avatar-constants.js.map +1 -1
- package/dist/lib/avatar/avatar.cjs +1 -1
- package/dist/lib/avatar/avatar.cjs.map +1 -1
- package/dist/lib/avatar/avatar.js +145 -84
- package/dist/lib/avatar/avatar.js.map +1 -1
- package/dist/lib/avatar/index.cjs +1 -1
- package/dist/lib/avatar/index.js +3 -3
- package/dist/lib/badge/badge-constants.cjs +1 -1
- package/dist/lib/badge/badge-constants.cjs.map +1 -1
- package/dist/lib/badge/badge-constants.js +1 -1
- package/dist/lib/badge/badge-constants.js.map +1 -1
- package/dist/lib/badge/badge.cjs +1 -1
- package/dist/lib/badge/badge.cjs.map +1 -1
- package/dist/lib/badge/badge.js +26 -14
- package/dist/lib/badge/badge.js.map +1 -1
- package/dist/lib/banner/banner.cjs +2 -2
- package/dist/lib/banner/banner.cjs.map +1 -1
- package/dist/lib/banner/banner.js +17 -16
- package/dist/lib/banner/banner.js.map +1 -1
- package/dist/lib/box/box-constants.cjs +2 -0
- package/dist/lib/box/box-constants.cjs.map +1 -0
- package/dist/lib/box/box-constants.js +103 -0
- package/dist/lib/box/box-constants.js.map +1 -0
- package/dist/lib/box/box.cjs +2 -0
- package/dist/lib/box/box.cjs.map +1 -0
- package/dist/lib/box/box.js +229 -0
- package/dist/lib/box/box.js.map +1 -0
- package/dist/lib/box/index.cjs +1 -0
- package/dist/lib/box/index.js +3 -0
- package/dist/lib/box/validators.cjs +2 -0
- package/dist/lib/box/validators.cjs.map +1 -0
- package/dist/lib/box/validators.js +7 -0
- package/dist/lib/box/validators.js.map +1 -0
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.cjs.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumb-item.js +29 -38
- package/dist/lib/breadcrumbs/breadcrumb-item.js.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.cjs +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.cjs.map +1 -1
- package/dist/lib/breadcrumbs/breadcrumbs.js +6 -6
- package/dist/lib/breadcrumbs/breadcrumbs.js.map +1 -1
- package/dist/lib/button/button-constants.cjs +1 -1
- package/dist/lib/button/button-constants.cjs.map +1 -1
- package/dist/lib/button/button-constants.js +17 -3
- package/dist/lib/button/button-constants.js.map +1 -1
- package/dist/lib/button/button.cjs +1 -1
- package/dist/lib/button/button.cjs.map +1 -1
- package/dist/lib/button/button.js +98 -15
- package/dist/lib/button/button.js.map +1 -1
- package/dist/lib/button-group/button-group.cjs.map +1 -1
- package/dist/lib/button-group/button-group.js.map +1 -1
- package/dist/lib/callbar-button/callbar-button.cjs +1 -1
- package/dist/lib/callbar-button/callbar-button.cjs.map +1 -1
- package/dist/lib/callbar-button/callbar-button.js +26 -27
- package/dist/lib/callbar-button/callbar-button.js.map +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.cjs.map +1 -1
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js +45 -36
- package/dist/lib/callbar-button-with-dropdown/callbar-button-with-dropdown.js.map +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.cjs.map +1 -1
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js +47 -38
- package/dist/lib/callbar-button-with-popover/callbar-button-with-popover.js.map +1 -1
- package/dist/lib/callbox/callbox.cjs +1 -1
- package/dist/lib/callbox/callbox.cjs.map +1 -1
- package/dist/lib/callbox/callbox.js +4 -4
- package/dist/lib/callbox/callbox.js.map +1 -1
- package/dist/lib/card/card.cjs +1 -1
- package/dist/lib/card/card.cjs.map +1 -1
- package/dist/lib/card/card.js +10 -18
- package/dist/lib/card/card.js.map +1 -1
- package/dist/lib/checkbox/checkbox-constants.cjs +1 -1
- package/dist/lib/checkbox/checkbox-constants.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox-constants.js +2 -2
- package/dist/lib/checkbox/checkbox-constants.js.map +1 -1
- package/dist/lib/checkbox/checkbox.cjs +1 -1
- package/dist/lib/checkbox/checkbox.cjs.map +1 -1
- package/dist/lib/checkbox/checkbox.js +79 -28
- package/dist/lib/checkbox/checkbox.js.map +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.cjs.map +1 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.js +0 -1
- package/dist/lib/checkbox-group/checkboxes-decorator.js.map +1 -1
- package/dist/lib/chip/chip-constants.cjs +1 -1
- package/dist/lib/chip/chip-constants.cjs.map +1 -1
- package/dist/lib/chip/chip-constants.js +9 -0
- package/dist/lib/chip/chip-constants.js.map +1 -1
- package/dist/lib/chip/chip.cjs +1 -1
- package/dist/lib/chip/chip.cjs.map +1 -1
- package/dist/lib/chip/chip.js +13 -13
- package/dist/lib/chip/chip.js.map +1 -1
- package/dist/lib/codeblock/codeblock-constants.cjs +2 -0
- package/dist/lib/codeblock/codeblock-constants.cjs.map +1 -0
- package/dist/lib/codeblock/codeblock-constants.js +20 -0
- package/dist/lib/codeblock/codeblock-constants.js.map +1 -0
- package/dist/lib/codeblock/codeblock.cjs +1 -2
- package/dist/lib/codeblock/codeblock.cjs.map +1 -1
- package/dist/lib/codeblock/codeblock.js +25 -14
- package/dist/lib/codeblock/codeblock.js.map +1 -1
- package/dist/lib/collapsible/collapsible.cjs +1 -1
- package/dist/lib/collapsible/collapsible.cjs.map +1 -1
- package/dist/lib/collapsible/collapsible.js +1 -1
- package/dist/lib/collapsible/collapsible.js.map +1 -1
- package/dist/lib/combobox/combobox.cjs +1 -1
- package/dist/lib/combobox/combobox.js +1 -1
- package/dist/lib/combobox/index.cjs +1 -1
- package/dist/lib/combobox/index.js +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.js +6 -0
- package/dist/lib/combobox-multi-select/combobox-multi-select-constants.js.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.cjs.map +1 -1
- package/dist/lib/combobox-multi-select/combobox-multi-select.js +34 -33
- package/dist/lib/combobox-multi-select/combobox-multi-select.js.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.cjs.map +1 -1
- package/dist/lib/combobox-with-popover/combobox-with-popover.js +51 -46
- package/dist/lib/combobox-with-popover/combobox-with-popover.js.map +1 -1
- package/dist/lib/contact-centers-row/contact-centers-row.cjs +1 -1
- package/dist/lib/contact-centers-row/contact-centers-row.cjs.map +1 -1
- package/dist/lib/contact-centers-row/contact-centers-row.js +51 -45
- package/dist/lib/contact-centers-row/contact-centers-row.js.map +1 -1
- package/dist/lib/contact-info/contact-info.cjs +1 -1
- package/dist/lib/contact-info/contact-info.cjs.map +1 -1
- package/dist/lib/contact-info/contact-info.js +8 -8
- package/dist/lib/contact-info/contact-info.js.map +1 -1
- package/dist/lib/contact-row/contact-row.cjs +1 -1
- package/dist/lib/contact-row/contact-row.cjs.map +1 -1
- package/dist/lib/contact-row/contact-row.js +3 -3
- package/dist/lib/contact-row/contact-row.js.map +1 -1
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.js +1 -1
- package/dist/lib/datepicker/index.cjs +1 -1
- package/dist/lib/datepicker/index.js +1 -1
- package/dist/lib/description-list/description-list.cjs +1 -1
- package/dist/lib/description-list/description-list.cjs.map +1 -1
- package/dist/lib/description-list/description-list.js +1 -1
- package/dist/lib/description-list/description-list.js.map +1 -1
- package/dist/lib/dropdown/dropdown-constants.cjs +1 -1
- package/dist/lib/dropdown/dropdown-constants.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown-constants.js +2 -2
- package/dist/lib/dropdown/dropdown-constants.js.map +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs +1 -1
- package/dist/lib/dropdown/dropdown-list.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown-list.js +28 -16
- package/dist/lib/dropdown/dropdown-list.js.map +1 -1
- package/dist/lib/dropdown/dropdown.cjs +1 -1
- package/dist/lib/dropdown/dropdown.cjs.map +1 -1
- package/dist/lib/dropdown/dropdown.js +30 -26
- package/dist/lib/dropdown/dropdown.js.map +1 -1
- package/dist/lib/editor/EditorToolbarButton.cjs +1 -1
- package/dist/lib/editor/EditorToolbarButton.cjs.map +1 -1
- package/dist/lib/editor/EditorToolbarButton.js +1 -1
- package/dist/lib/editor/EditorToolbarButton.js.map +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.cjs +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.cjs.map +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.js +1 -1
- package/dist/lib/editor/EditorToolbarDropdownButton.js.map +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.cjs +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.cjs.map +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.js +1 -1
- package/dist/lib/editor/EditorToolbarPopoverButton.js.map +1 -1
- package/dist/lib/editor/editor.cjs +1 -1
- package/dist/lib/editor/editor.cjs.map +1 -1
- package/dist/lib/editor/editor.js +134 -135
- package/dist/lib/editor/editor.js.map +1 -1
- package/dist/lib/emoji-picker/emoji-picker.cjs +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +1 -1
- package/dist/lib/emoji-picker/index.cjs +1 -1
- package/dist/lib/emoji-picker/index.js +1 -1
- package/dist/lib/emoji-row/emoji-row.cjs +1 -1
- package/dist/lib/emoji-row/emoji-row.cjs.map +1 -1
- package/dist/lib/emoji-row/emoji-row.js +1 -1
- package/dist/lib/emoji-row/emoji-row.js.map +1 -1
- package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.cjs.map +1 -1
- package/dist/lib/emoji-text-wrapper/emoji-text-wrapper.js.map +1 -1
- package/dist/lib/empty-state/empty-state-constants.cjs +1 -1
- package/dist/lib/empty-state/empty-state-constants.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state-constants.js +37 -9
- package/dist/lib/empty-state/empty-state-constants.js.map +1 -1
- package/dist/lib/empty-state/empty-state.cjs +1 -1
- package/dist/lib/empty-state/empty-state.cjs.map +1 -1
- package/dist/lib/empty-state/empty-state.js +46 -26
- package/dist/lib/empty-state/empty-state.js.map +1 -1
- package/dist/lib/feed-item-pill/feed-item-pill.cjs +1 -1
- package/dist/lib/feed-item-pill/feed-item-pill.cjs.map +1 -1
- package/dist/lib/feed-item-pill/feed-item-pill.js +40 -42
- package/dist/lib/feed-item-pill/feed-item-pill.js.map +1 -1
- package/dist/lib/feed-item-row/feed-item-row.cjs +1 -1
- package/dist/lib/feed-item-row/feed-item-row.cjs.map +1 -1
- package/dist/lib/feed-item-row/feed-item-row.js +3 -3
- package/dist/lib/feed-item-row/feed-item-row.js.map +1 -1
- package/dist/lib/filter-pill/filter-pill.cjs +2 -0
- package/dist/lib/filter-pill/filter-pill.cjs.map +1 -0
- package/dist/lib/filter-pill/filter-pill.js +433 -0
- package/dist/lib/filter-pill/filter-pill.js.map +1 -0
- package/dist/lib/filter-pill/index.cjs +1 -0
- package/dist/lib/filter-pill/index.js +2 -0
- package/dist/lib/focusgroup-directive/focusgroup-constants.cjs +2 -0
- package/dist/lib/focusgroup-directive/focusgroup-constants.cjs.map +1 -0
- package/dist/lib/focusgroup-directive/focusgroup-constants.js +77 -0
- package/dist/lib/focusgroup-directive/focusgroup-constants.js.map +1 -0
- package/dist/lib/focusgroup-directive/focusgroup-utils.cjs +2 -0
- package/dist/lib/focusgroup-directive/focusgroup-utils.cjs.map +1 -0
- package/dist/lib/focusgroup-directive/focusgroup-utils.js +33 -0
- package/dist/lib/focusgroup-directive/focusgroup-utils.js.map +1 -0
- package/dist/lib/focusgroup-directive/focusgroup.cjs +2 -0
- package/dist/lib/focusgroup-directive/focusgroup.cjs.map +1 -0
- package/dist/lib/focusgroup-directive/focusgroup.js +143 -0
- package/dist/lib/focusgroup-directive/focusgroup.js.map +1 -0
- package/dist/lib/focusgroup-directive/index.cjs +1 -0
- package/dist/lib/focusgroup-directive/index.js +2 -0
- package/dist/lib/focustrap-directive/focustrap-constants.cjs +2 -0
- package/dist/lib/focustrap-directive/focustrap-constants.cjs.map +1 -0
- package/dist/lib/focustrap-directive/focustrap-constants.js +10 -0
- package/dist/lib/focustrap-directive/focustrap-constants.js.map +1 -0
- package/dist/lib/focustrap-directive/focustrap-utils.cjs +2 -0
- package/dist/lib/focustrap-directive/focustrap-utils.cjs.map +1 -0
- package/dist/lib/focustrap-directive/focustrap-utils.js +19 -0
- package/dist/lib/focustrap-directive/focustrap-utils.js.map +1 -0
- package/dist/lib/focustrap-directive/focustrap.cjs +2 -0
- package/dist/lib/focustrap-directive/focustrap.cjs.map +1 -0
- package/dist/lib/focustrap-directive/focustrap.js +96 -0
- package/dist/lib/focustrap-directive/focustrap.js.map +1 -0
- package/dist/lib/focustrap-directive/index.cjs +1 -0
- package/dist/lib/focustrap-directive/index.js +2 -0
- package/dist/lib/general-row/general-row.cjs +1 -1
- package/dist/lib/general-row/general-row.cjs.map +1 -1
- package/dist/lib/general-row/general-row.js +105 -61
- package/dist/lib/general-row/general-row.js.map +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.cjs +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.cjs.map +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.js +1 -1
- package/dist/lib/general-row/leftbar-general-row-icon.js.map +1 -1
- package/dist/lib/group-row/group-row.cjs +1 -1
- package/dist/lib/group-row/group-row.cjs.map +1 -1
- package/dist/lib/group-row/group-row.js +2 -2
- package/dist/lib/group-row/group-row.js.map +1 -1
- package/dist/lib/grouped-chip/grouped-chip.cjs +1 -1
- package/dist/lib/grouped-chip/grouped-chip.cjs.map +1 -1
- package/dist/lib/grouped-chip/grouped-chip.js +9 -9
- package/dist/lib/grouped-chip/grouped-chip.js.map +1 -1
- package/dist/lib/hovercard/hovercard.cjs +1 -1
- package/dist/lib/hovercard/hovercard.cjs.map +1 -1
- package/dist/lib/hovercard/hovercard.js +28 -24
- package/dist/lib/hovercard/hovercard.js.map +1 -1
- package/dist/lib/icon/icon.cjs +1 -1
- package/dist/lib/icon/icon.cjs.map +1 -1
- package/dist/lib/icon/icon.js +1 -1
- package/dist/lib/icon/icon.js.map +1 -1
- package/dist/lib/illustration/illustration.cjs +1 -1
- package/dist/lib/illustration/illustration.cjs.map +1 -1
- package/dist/lib/illustration/illustration.js +1 -1
- package/dist/lib/illustration/illustration.js.map +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs +1 -1
- package/dist/lib/image-viewer/image-viewer.cjs.map +1 -1
- package/dist/lib/image-viewer/image-viewer.js +32 -31
- package/dist/lib/image-viewer/image-viewer.js.map +1 -1
- package/dist/lib/input/input-constants.cjs +1 -1
- package/dist/lib/input/input-constants.cjs.map +1 -1
- package/dist/lib/input/input-constants.js +25 -11
- package/dist/lib/input/input-constants.js.map +1 -1
- package/dist/lib/input/input.cjs +1 -1
- package/dist/lib/input/input.cjs.map +1 -1
- package/dist/lib/input/input.js +161 -79
- package/dist/lib/input/input.js.map +1 -1
- package/dist/lib/input-group/input-group.cjs +1 -1
- package/dist/lib/input-group/input-group.cjs.map +1 -1
- package/dist/lib/input-group/input-group.js +25 -15
- package/dist/lib/input-group/input-group.js.map +1 -1
- package/dist/lib/item-layout/item-layout.cjs +3 -3
- package/dist/lib/item-layout/item-layout.cjs.map +1 -1
- package/dist/lib/item-layout/item-layout.js +35 -12
- package/dist/lib/item-layout/item-layout.js.map +1 -1
- package/dist/lib/ivr-node/ivr-node.cjs +1 -1
- package/dist/lib/ivr-node/ivr-node.cjs.map +1 -1
- package/dist/lib/ivr-node/ivr-node.js +1 -1
- package/dist/lib/ivr-node/ivr-node.js.map +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.cjs.map +1 -1
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js +48 -38
- package/dist/lib/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs +2 -0
- package/dist/lib/kitchen-sink/kitchen-sink-view.cjs.map +1 -0
- package/dist/lib/kitchen-sink/kitchen-sink-view.js +205 -0
- package/dist/lib/kitchen-sink/kitchen-sink-view.js.map +1 -0
- package/dist/lib/link/index.cjs +1 -1
- package/dist/lib/link/index.js +2 -2
- package/dist/lib/link/link-constants.cjs +1 -1
- package/dist/lib/link/link-constants.cjs.map +1 -1
- package/dist/lib/link/link-constants.js +7 -7
- package/dist/lib/link/link-constants.js.map +1 -1
- package/dist/lib/link/link.cjs +1 -1
- package/dist/lib/link/link.cjs.map +1 -1
- package/dist/lib/link/link.js +17 -2
- package/dist/lib/link/link.js.map +1 -1
- package/dist/lib/list-item/list-item.cjs +1 -1
- package/dist/lib/list-item/list-item.cjs.map +1 -1
- package/dist/lib/list-item/list-item.js +9 -5
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/list-item-group/list-item-group.cjs +1 -1
- package/dist/lib/list-item-group/list-item-group.cjs.map +1 -1
- package/dist/lib/list-item-group/list-item-group.js +1 -1
- package/dist/lib/list-item-group/list-item-group.js.map +1 -1
- package/dist/lib/message-input/index.cjs +1 -1
- package/dist/lib/message-input/index.js +1 -1
- package/dist/lib/message-input/message-input-button.cjs +1 -1
- package/dist/lib/message-input/message-input-button.cjs.map +1 -1
- package/dist/lib/message-input/message-input-button.js +1 -1
- package/dist/lib/message-input/message-input-button.js.map +1 -1
- package/dist/lib/message-input/message-input-link.cjs +1 -1
- package/dist/lib/message-input/message-input-link.cjs.map +1 -1
- package/dist/lib/message-input/message-input-link.js +9 -9
- package/dist/lib/message-input/message-input-link.js.map +1 -1
- package/dist/lib/message-input/message-input-topbar.cjs +1 -1
- package/dist/lib/message-input/message-input-topbar.cjs.map +1 -1
- package/dist/lib/message-input/message-input-topbar.js +2 -2
- package/dist/lib/message-input/message-input-topbar.js.map +1 -1
- package/dist/lib/message-input/message-input.cjs +1 -1
- package/dist/lib/message-input/message-input.js +1 -1
- package/dist/lib/modal/modal-constants.cjs +1 -1
- package/dist/lib/modal/modal-constants.cjs.map +1 -1
- package/dist/lib/modal/modal-constants.js +3 -3
- package/dist/lib/modal/modal-constants.js.map +1 -1
- package/dist/lib/modal/modal.cjs +1 -1
- package/dist/lib/modal/modal.cjs.map +1 -1
- package/dist/lib/modal/modal.js +158 -157
- package/dist/lib/modal/modal.js.map +1 -1
- package/dist/lib/mode-directive/index.cjs +1 -0
- package/dist/lib/mode-directive/index.js +2 -0
- package/dist/lib/mode-directive/mode.cjs +2 -0
- package/dist/lib/mode-directive/mode.cjs.map +1 -0
- package/dist/lib/mode-directive/mode.js +67 -0
- package/dist/lib/mode-directive/mode.js.map +1 -0
- package/dist/lib/mode-island/index.cjs +1 -0
- package/dist/lib/mode-island/index.js +3 -0
- package/dist/lib/mode-island/mode-island-constants.cjs +2 -0
- package/dist/lib/mode-island/mode-island-constants.cjs.map +1 -0
- package/dist/lib/mode-island/mode-island-constants.js +10 -0
- package/dist/lib/mode-island/mode-island-constants.js.map +1 -0
- package/dist/lib/mode-island/mode-island.cjs +2 -0
- package/dist/lib/mode-island/mode-island.cjs.map +1 -0
- package/dist/lib/mode-island/mode-island.js +102 -0
- package/dist/lib/mode-island/mode-island.js.map +1 -0
- package/dist/lib/mode-island/utils.cjs +2 -0
- package/dist/lib/mode-island/utils.cjs.map +1 -0
- package/dist/lib/mode-island/utils.js +28 -0
- package/dist/lib/mode-island/utils.js.map +1 -0
- package/dist/lib/mode-island/validators.cjs +2 -0
- package/dist/lib/mode-island/validators.cjs.map +1 -0
- package/dist/lib/mode-island/validators.js +10 -0
- package/dist/lib/mode-island/validators.js.map +1 -0
- package/dist/lib/motion-text/motion-text-constants.cjs +1 -1
- package/dist/lib/motion-text/motion-text-constants.cjs.map +1 -1
- package/dist/lib/motion-text/motion-text-constants.js +18 -6
- package/dist/lib/motion-text/motion-text-constants.js.map +1 -1
- package/dist/lib/motion-text/motion-text.cjs +1 -1
- package/dist/lib/motion-text/motion-text.cjs.map +1 -1
- package/dist/lib/motion-text/motion-text.js +5 -7
- package/dist/lib/motion-text/motion-text.js.map +1 -1
- package/dist/lib/notice/notice-action.cjs +1 -1
- package/dist/lib/notice/notice-action.cjs.map +1 -1
- package/dist/lib/notice/notice-action.js +14 -14
- package/dist/lib/notice/notice-action.js.map +1 -1
- package/dist/lib/notice/notice-constants.cjs +1 -1
- package/dist/lib/notice/notice-constants.cjs.map +1 -1
- package/dist/lib/notice/notice-constants.js +2 -2
- package/dist/lib/notice/notice-constants.js.map +1 -1
- package/dist/lib/notice/notice-content.cjs +1 -1
- package/dist/lib/notice/notice-content.cjs.map +1 -1
- package/dist/lib/notice/notice-content.js +29 -12
- package/dist/lib/notice/notice-content.js.map +1 -1
- package/dist/lib/notice/notice-icon.cjs +1 -1
- package/dist/lib/notice/notice-icon.cjs.map +1 -1
- package/dist/lib/notice/notice-icon.js +4 -4
- package/dist/lib/notice/notice-icon.js.map +1 -1
- package/dist/lib/notice/notice.cjs +1 -1
- package/dist/lib/notice/notice.cjs.map +1 -1
- package/dist/lib/notice/notice.js +17 -16
- package/dist/lib/notice/notice.js.map +1 -1
- package/dist/lib/pagination/pagination.cjs +1 -1
- package/dist/lib/pagination/pagination.cjs.map +1 -1
- package/dist/lib/pagination/pagination.js +13 -12
- package/dist/lib/pagination/pagination.js.map +1 -1
- package/dist/lib/popover/popover-constants.cjs +1 -1
- package/dist/lib/popover/popover-constants.cjs.map +1 -1
- package/dist/lib/popover/popover-constants.js +6 -6
- package/dist/lib/popover/popover-constants.js.map +1 -1
- package/dist/lib/popover/popover-header-footer.cjs +1 -1
- package/dist/lib/popover/popover-header-footer.cjs.map +1 -1
- package/dist/lib/popover/popover-header-footer.js +11 -3
- package/dist/lib/popover/popover-header-footer.js.map +1 -1
- package/dist/lib/popover/popover.cjs +1 -1
- package/dist/lib/popover/popover.cjs.map +1 -1
- package/dist/lib/popover/popover.js +78 -58
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/radio/radio-constants.cjs +1 -1
- package/dist/lib/radio/radio-constants.cjs.map +1 -1
- package/dist/lib/radio/radio-constants.js +2 -2
- package/dist/lib/radio/radio-constants.js.map +1 -1
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +94 -31
- package/dist/lib/radio/radio.js.map +1 -1
- package/dist/lib/resizable/index.cjs +1 -1
- package/dist/lib/resizable/index.js +3 -3
- package/dist/lib/resizable/resizable-handle.cjs +1 -1
- package/dist/lib/resizable/resizable-handle.js +1 -1
- package/dist/lib/resizable/resizable-panel.cjs +1 -1
- package/dist/lib/resizable/resizable-panel.js +1 -1
- package/dist/lib/resizable/resizable.cjs +1 -1
- package/dist/lib/resizable/resizable.js +1 -1
- package/dist/lib/rich-text-editor/index.cjs +1 -1
- package/dist/lib/rich-text-editor/index.js +1 -1
- package/dist/lib/rich-text-editor/markdownRenderer.cjs +1 -1
- package/dist/lib/rich-text-editor/markdownRenderer.js +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +1 -1
- package/dist/lib/root-layout/root-layout-constants.cjs +1 -1
- package/dist/lib/root-layout/root-layout-constants.cjs.map +1 -1
- package/dist/lib/root-layout/root-layout-constants.js +2 -0
- package/dist/lib/root-layout/root-layout-constants.js.map +1 -1
- package/dist/lib/root-layout/root-layout.cjs +1 -1
- package/dist/lib/root-layout/root-layout.cjs.map +1 -1
- package/dist/lib/root-layout/root-layout.js +2 -2
- package/dist/lib/root-layout/root-layout.js.map +1 -1
- package/dist/lib/scroller/index.cjs +1 -1
- package/dist/lib/scroller/index.js +1 -1
- package/dist/lib/scroller/scroller.cjs +1 -1
- package/dist/lib/scroller/scroller.js +1 -1
- package/dist/lib/segmented-control/index.cjs +1 -0
- package/dist/lib/segmented-control/index.js +4 -0
- package/dist/lib/segmented-control/segmented-control-constants.cjs +2 -0
- package/dist/lib/segmented-control/segmented-control-constants.cjs.map +1 -0
- package/dist/lib/segmented-control/segmented-control-constants.js +41 -0
- package/dist/lib/segmented-control/segmented-control-constants.js.map +1 -0
- package/dist/lib/segmented-control/segmented-control-item.cjs +2 -0
- package/dist/lib/segmented-control/segmented-control-item.cjs.map +1 -0
- package/dist/lib/segmented-control/segmented-control-item.js +104 -0
- package/dist/lib/segmented-control/segmented-control-item.js.map +1 -0
- package/dist/lib/segmented-control/segmented-control.cjs +2 -0
- package/dist/lib/segmented-control/segmented-control.cjs.map +1 -0
- package/dist/lib/segmented-control/segmented-control.js +204 -0
- package/dist/lib/segmented-control/segmented-control.js.map +1 -0
- package/dist/lib/select-menu/select-menu-constants.cjs +1 -1
- package/dist/lib/select-menu/select-menu-constants.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu-constants.js +7 -2
- package/dist/lib/select-menu/select-menu-constants.js.map +1 -1
- package/dist/lib/select-menu/select-menu.cjs +1 -1
- package/dist/lib/select-menu/select-menu.cjs.map +1 -1
- package/dist/lib/select-menu/select-menu.js +117 -58
- package/dist/lib/select-menu/select-menu.js.map +1 -1
- package/dist/lib/settings-menu-button/settings-menu-button.cjs +1 -1
- package/dist/lib/settings-menu-button/settings-menu-button.cjs.map +1 -1
- package/dist/lib/settings-menu-button/settings-menu-button.js +5 -5
- package/dist/lib/settings-menu-button/settings-menu-button.js.map +1 -1
- package/dist/lib/skeleton/skeleton-constants.cjs +1 -1
- package/dist/lib/skeleton/skeleton-constants.cjs.map +1 -1
- package/dist/lib/skeleton/skeleton-constants.js +10 -2
- package/dist/lib/skeleton/skeleton-constants.js.map +1 -1
- package/dist/lib/skeleton/skeleton-list-item.cjs +1 -1
- package/dist/lib/skeleton/skeleton-list-item.cjs.map +1 -1
- package/dist/lib/skeleton/skeleton-list-item.js +2 -2
- package/dist/lib/skeleton/skeleton-list-item.js.map +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs +1 -1
- package/dist/lib/skeleton/skeleton-shape.cjs.map +1 -1
- package/dist/lib/skeleton/skeleton-shape.js +3 -3
- package/dist/lib/skeleton/skeleton-shape.js.map +1 -1
- package/dist/lib/split-button/split-button-constants.cjs +1 -1
- package/dist/lib/split-button/split-button-constants.cjs.map +1 -1
- package/dist/lib/split-button/split-button-constants.js +5 -0
- package/dist/lib/split-button/split-button-constants.js.map +1 -1
- package/dist/lib/split-button/split-button-end.cjs +2 -0
- package/dist/lib/split-button/split-button-end.cjs.map +1 -0
- package/dist/lib/split-button/{split-button-omega.js → split-button-end.js} +9 -9
- package/dist/lib/split-button/split-button-end.js.map +1 -0
- package/dist/lib/split-button/split-button-start.cjs +2 -0
- package/dist/lib/split-button/split-button-start.cjs.map +1 -0
- package/dist/lib/split-button/split-button-start.js +182 -0
- package/dist/lib/split-button/split-button-start.js.map +1 -0
- package/dist/lib/split-button/split-button.cjs +1 -1
- package/dist/lib/split-button/split-button.cjs.map +1 -1
- package/dist/lib/split-button/split-button.js +246 -71
- package/dist/lib/split-button/split-button.js.map +1 -1
- package/dist/lib/stack/stack-constants.cjs +1 -1
- package/dist/lib/stack/stack-constants.cjs.map +1 -1
- package/dist/lib/stack/stack-constants.js +10 -2
- package/dist/lib/stack/stack-constants.js.map +1 -1
- package/dist/lib/stack/stack.cjs.map +1 -1
- package/dist/lib/stack/stack.js.map +1 -1
- package/dist/lib/tab/index.cjs +1 -1
- package/dist/lib/tab/index.js +5 -5
- package/dist/lib/tab/tab-group.cjs +1 -1
- package/dist/lib/tab/tab-group.cjs.map +1 -1
- package/dist/lib/tab/tab-group.js +173 -50
- package/dist/lib/tab/tab-group.js.map +1 -1
- package/dist/lib/tab/tab.cjs +1 -1
- package/dist/lib/tab/tab.cjs.map +1 -1
- package/dist/lib/tab/tab.js +108 -23
- package/dist/lib/tab/tab.js.map +1 -1
- package/dist/lib/tab/tabs-constants.cjs +1 -1
- package/dist/lib/tab/tabs-constants.cjs.map +1 -1
- package/dist/lib/tab/tabs-constants.js +33 -2
- package/dist/lib/tab/tabs-constants.js.map +1 -1
- package/dist/lib/text/index.cjs +1 -0
- package/dist/lib/text/index.js +3 -0
- package/dist/lib/text/text-constants.cjs +2 -0
- package/dist/lib/text/text-constants.cjs.map +1 -0
- package/dist/lib/text/text-constants.js +126 -0
- package/dist/lib/text/text-constants.js.map +1 -0
- package/dist/lib/text/text.cjs +2 -0
- package/dist/lib/text/text.cjs.map +1 -0
- package/dist/lib/text/text.js +150 -0
- package/dist/lib/text/text.js.map +1 -0
- package/dist/lib/toast/index.cjs +1 -1
- package/dist/lib/toast/index.js +1 -1
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.js +1 -1
- package/dist/lib/toggle/toggle-constants.cjs +1 -1
- package/dist/lib/toggle/toggle-constants.cjs.map +1 -1
- package/dist/lib/toggle/toggle-constants.js +2 -0
- package/dist/lib/toggle/toggle-constants.js.map +1 -1
- package/dist/lib/toggle/toggle.cjs +1 -1
- package/dist/lib/toggle/toggle.cjs.map +1 -1
- package/dist/lib/toggle/toggle.js +24 -29
- package/dist/lib/toggle/toggle.js.map +1 -1
- package/dist/lib/tooltip/tooltip.cjs +1 -4
- package/dist/lib/tooltip/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip/tooltip.js +36 -31
- package/dist/lib/tooltip/tooltip.js.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs +1 -1
- package/dist/lib/tooltip-directive/tooltip.cjs.map +1 -1
- package/dist/lib/tooltip-directive/tooltip.js +36 -35
- package/dist/lib/tooltip-directive/tooltip.js.map +1 -1
- package/dist/lib/top-banner-info/top-banner-info.cjs +1 -1
- package/dist/lib/top-banner-info/top-banner-info.cjs.map +1 -1
- package/dist/lib/top-banner-info/top-banner-info.js +4 -4
- package/dist/lib/top-banner-info/top-banner-info.js.map +1 -1
- package/dist/lib/unread-pill/unread-pill.cjs +1 -1
- package/dist/lib/unread-pill/unread-pill.cjs.map +1 -1
- package/dist/lib/unread-pill/unread-pill.js +1 -1
- package/dist/lib/unread-pill/unread-pill.js.map +1 -1
- package/dist/lib/validation-messages/validation-messages.cjs +1 -1
- package/dist/lib/validation-messages/validation-messages.cjs.map +1 -1
- package/dist/lib/validation-messages/validation-messages.js +2 -2
- package/dist/lib/validation-messages/validation-messages.js.map +1 -1
- package/dist/localization/en-US.cjs +5 -0
- package/dist/localization/en-US.cjs.map +1 -1
- package/dist/localization/en-US.js +1 -1
- package/dist/localization/en-US.js.map +1 -1
- package/dist/{markdownRenderer-DCgGQseq.cjs → markdownRenderer-Dsq-CiH9.cjs} +1 -1
- package/dist/{markdownRenderer-DCgGQseq.cjs.map → markdownRenderer-Dsq-CiH9.cjs.map} +1 -1
- package/dist/{markdownRenderer-D_P94RyM.js → markdownRenderer-k7_rQkox.js} +1 -1
- package/dist/{markdownRenderer-D_P94RyM.js.map → markdownRenderer-k7_rQkox.js.map} +1 -1
- package/dist/{message_input-CHlTsBGK.js → message_input-BYy1xKCy.js} +129 -130
- package/dist/message_input-BYy1xKCy.js.map +1 -0
- package/dist/message_input-sSCHhaeC.cjs +2 -0
- package/dist/message_input-sSCHhaeC.cjs.map +1 -0
- package/dist/mode_constants-CzYJW9ua.cjs +2 -0
- package/dist/mode_constants-CzYJW9ua.cjs.map +1 -0
- package/dist/mode_constants-tb7TL85q.js +14 -0
- package/dist/mode_constants-tb7TL85q.js.map +1 -0
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.d.ts +85 -14
- package/dist/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
- package/dist/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +313 -41
- package/dist/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +302 -41
- package/dist/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/recipes/cards/ivr_node/ivr_node.vue.d.ts +228 -35
- package/dist/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +62 -16
- package/dist/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +237 -28
- package/dist/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +184 -21
- package/dist/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/editor/EditorToolbarButton.vue.d.ts +53 -7
- package/dist/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts +228 -26
- package/dist/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts +216 -25
- package/dist/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/editor/editor.vue.d.ts +1163 -178
- package/dist/recipes/conversation_view/editor/editor.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +132 -42
- package/dist/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +91 -23
- package/dist/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +126 -35
- package/dist/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +90 -13
- package/dist/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input.vue.d.ts +1622 -207
- package/dist/recipes/conversation_view/message_input/message_input.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_button.vue.d.ts +226 -12
- package/dist/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_link.vue.d.ts +636 -55
- package/dist/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +226 -12
- package/dist/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +53 -7
- package/dist/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
- package/dist/recipes/item_layout/contact_info/contact_info.vue.d.ts +122 -33
- package/dist/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/callbox/callbox.vue.d.ts +87 -29
- package/dist/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +82 -28
- package/dist/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/contact_row/contact_row.vue.d.ts +588 -72
- package/dist/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/general_row/general_row.vue.d.ts +480 -31
- package/dist/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/general_row/leftbar_general_row_icon.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/group_row/group_row.vue.d.ts +479 -30
- package/dist/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/recipes/leftbar/unread_pill/unread_pill.vue.d.ts.map +1 -1
- package/dist/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +1 -1
- package/dist/{resizable-aOVGO_Os.cjs → resizable-DhowneUp.cjs} +2 -2
- package/dist/{resizable-aOVGO_Os.cjs.map → resizable-DhowneUp.cjs.map} +1 -1
- package/dist/{resizable-D4-peBOl.js → resizable-xcOu-0_w.js} +3 -3
- package/dist/{resizable-D4-peBOl.js.map → resizable-xcOu-0_w.js.map} +1 -1
- package/dist/{resizable_handle-BlKBiWnx.js → resizable_handle-BAZzCA_i.js} +3 -3
- package/dist/{resizable_handle-BlKBiWnx.js.map → resizable_handle-BAZzCA_i.js.map} +1 -1
- package/dist/{resizable_handle-RIKS8frB.cjs → resizable_handle-fjKg48eY.cjs} +2 -2
- package/dist/{resizable_handle-RIKS8frB.cjs.map → resizable_handle-fjKg48eY.cjs.map} +1 -1
- package/dist/{resizable_utils-DhuzXRdP.cjs → resizable_utils-BE4lK07_.cjs} +1 -1
- package/dist/{resizable_utils-DhuzXRdP.cjs.map → resizable_utils-BE4lK07_.cjs.map} +1 -1
- package/dist/{resizable_utils-BComtrMV.js → resizable_utils-DsKnGHKW.js} +1 -1
- package/dist/{resizable_utils-BComtrMV.js.map → resizable_utils-DsKnGHKW.js.map} +1 -1
- package/dist/{rich_text_editor-Ba67C4Uk.js → rich_text_editor-CEW74QNe.js} +637 -598
- package/dist/{rich_text_editor-Ba67C4Uk.js.map → rich_text_editor-CEW74QNe.js.map} +1 -1
- package/dist/rich_text_editor-immDiKq_.cjs +10 -0
- package/dist/{rich_text_editor-DMP5eTlf.cjs.map → rich_text_editor-immDiKq_.cjs.map} +1 -1
- package/dist/scroller-C15VLKNK.cjs +2 -0
- package/dist/scroller-C15VLKNK.cjs.map +1 -0
- package/dist/{scroller-BGVDh3sq.js → scroller-DPqcc_Wl.js} +6 -6
- package/dist/scroller-DPqcc_Wl.js.map +1 -0
- package/dist/shared/sr_only_close_button.cjs +1 -1
- package/dist/shared/sr_only_close_button.cjs.map +1 -1
- package/dist/shared/sr_only_close_button.js +1 -1
- package/dist/shared/sr_only_close_button.js.map +1 -1
- package/dist/toast-B1WZNMAm.cjs +2 -0
- package/dist/toast-B1WZNMAm.cjs.map +1 -0
- package/dist/{toast-DvPN-bCi.js → toast-DaH2KF7B.js} +52 -51
- package/dist/toast-DaH2KF7B.js.map +1 -0
- package/dist/{useResizableCalculations-DAajatT4.js → useResizableCalculations-2UpEXvfY.js} +2 -2
- package/dist/{useResizableCalculations-DAajatT4.js.map → useResizableCalculations-2UpEXvfY.js.map} +1 -1
- package/dist/{useResizableCalculations-BDITle3Q.cjs → useResizableCalculations-DPBjAFWQ.cjs} +2 -2
- package/dist/{useResizableCalculations-BDITle3Q.cjs.map → useResizableCalculations-DPBjAFWQ.cjs.map} +1 -1
- package/package.json +9 -7
- package/dist/attachment_carousel-BHxR7A76.cjs +0 -2
- package/dist/attachment_carousel-BHxR7A76.cjs.map +0 -1
- package/dist/attachment_carousel-CouFqFMw.js.map +0 -1
- package/dist/combobox-DgClbLOg.js.map +0 -1
- package/dist/combobox-DhjZxfUw.cjs +0 -3
- package/dist/combobox-DhjZxfUw.cjs.map +0 -1
- package/dist/components/split_button/split_button-alpha.vue.d.ts.map +0 -1
- package/dist/datepicker-DprRX9AH.cjs +0 -2
- package/dist/datepicker-DprRX9AH.cjs.map +0 -1
- package/dist/datepicker-LVDRC6Lf.js.map +0 -1
- package/dist/emoji_picker-Cl-T4BXK.cjs +0 -2
- package/dist/emoji_picker-Cl-T4BXK.cjs.map +0 -1
- package/dist/emoji_picker-tVHfpHDk.js.map +0 -1
- package/dist/lib/split-button/split-button-alpha.cjs +0 -2
- package/dist/lib/split-button/split-button-alpha.cjs.map +0 -1
- package/dist/lib/split-button/split-button-alpha.js +0 -107
- package/dist/lib/split-button/split-button-alpha.js.map +0 -1
- package/dist/lib/split-button/split-button-omega.cjs +0 -2
- package/dist/lib/split-button/split-button-omega.cjs.map +0 -1
- package/dist/lib/split-button/split-button-omega.js.map +0 -1
- package/dist/message_input-AWgvtwMV.cjs +0 -2
- package/dist/message_input-AWgvtwMV.cjs.map +0 -1
- package/dist/message_input-CHlTsBGK.js.map +0 -1
- package/dist/rich_text_editor-DMP5eTlf.cjs +0 -10
- package/dist/scroller-BGVDh3sq.js.map +0 -1
- package/dist/scroller-CjAsgjl9.cjs +0 -2
- package/dist/scroller-CjAsgjl9.cjs.map +0 -1
- package/dist/toast-DvPN-bCi.js.map +0 -1
- package/dist/toast-d8_zmgkL.cjs +0 -2
- package/dist/toast-d8_zmgkL.cjs.map +0 -1
|
@@ -3,121 +3,122 @@ import { t as i } from "./_plugin-vue_export-helper-BTgDAbhb.js";
|
|
|
3
3
|
import { codeToEmojiData as a, emojiRegex as o, emojiShortCodeRegex as s, getEmojiData as c, stringToUnicode as l } from "./common/emoji/index.js";
|
|
4
4
|
import u from "./lib/avatar/avatar.js";
|
|
5
5
|
import d from "./lib/badge/badge.js";
|
|
6
|
-
import f from "./lib/
|
|
7
|
-
import
|
|
8
|
-
import m from "./
|
|
9
|
-
import h from "./lib/
|
|
10
|
-
import g from "./lib/
|
|
11
|
-
import _ from "./lib/
|
|
12
|
-
import v from "./lib/
|
|
13
|
-
import y from "./lib/
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import Ge from "@tiptap/
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import Ze from "@tiptap/extension-
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import {
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
6
|
+
import f from "./lib/text/text.js";
|
|
7
|
+
import p from "./lib/link/link.js";
|
|
8
|
+
import { DialtoneLocalization as m } from "./localization/index.js";
|
|
9
|
+
import h from "./lib/button/button.js";
|
|
10
|
+
import g from "./lib/list-item/list-item.js";
|
|
11
|
+
import _ from "./lib/stack/stack.js";
|
|
12
|
+
import v from "./lib/popover/popover.js";
|
|
13
|
+
import y from "./lib/emoji/emoji.js";
|
|
14
|
+
import b from "./lib/input/input.js";
|
|
15
|
+
import { Editor as x, EditorContent as ee, NodeViewWrapper as S, VueNodeViewRenderer as C, VueRenderer as w, nodeViewProps as T } from "./node_modules/@tiptap/vue-3.js";
|
|
16
|
+
import { RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as te, RICH_TEXT_EDITOR_OUTPUT_FORMATS as ne, RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as re } from "./lib/rich-text-editor/rich-text-editor-constants.js";
|
|
17
|
+
import { t as E } from "./markdownRenderer-k7_rQkox.js";
|
|
18
|
+
import { Fragment as ie, createBlock as D, createCommentVNode as O, createElementBlock as ae, createElementVNode as oe, createTextVNode as k, createVNode as A, defineComponent as se, h as ce, markRaw as le, mergeProps as ue, nextTick as de, normalizeClass as fe, onBeforeUnmount as pe, onMounted as me, openBlock as j, ref as he, renderList as ge, resolveComponent as M, resolveDynamicComponent as _e, toDisplayString as N, vShow as ve, withCtx as P, withDirectives as ye, withKeys as be, withModifiers as xe } from "vue";
|
|
19
|
+
import { emojiPattern as Se } from "regex-combined-emojis";
|
|
20
|
+
import { DtIconLock as Ce } from "@dialpad/dialtone-icons/vue";
|
|
21
|
+
import { Extension as we, InputRule as Te, Mark as Ee, Node as De, combineTransactionSteps as Oe, findChildrenInRange as ke, getChangedRanges as Ae, getMarksBetween as je, getText as Me, getTextSerializersFromSchema as Ne, isTextSelection as Pe, mergeAttributes as F, nodeInputRule as Fe, nodePasteRule as Ie, posToDOMRect as Le } from "@tiptap/core";
|
|
22
|
+
import { NodeSelection as Re, Plugin as ze, PluginKey as I } from "@tiptap/pm/state";
|
|
23
|
+
import { CellSelection as Be } from "@tiptap/pm/tables";
|
|
24
|
+
import Ve from "@tiptap/extension-blockquote";
|
|
25
|
+
import He from "@tiptap/extension-code-block";
|
|
26
|
+
import Ue from "@tiptap/extension-code";
|
|
27
|
+
import We from "@tiptap/extension-document";
|
|
28
|
+
import { Gapcursor as Ge, Placeholder as Ke, UndoRedo as qe } from "@tiptap/extensions";
|
|
29
|
+
import Je from "@tiptap/extension-hard-break";
|
|
30
|
+
import Ye from "@tiptap/extension-paragraph";
|
|
31
|
+
import Xe from "@tiptap/extension-bold";
|
|
32
|
+
import { BulletList as Ze, ListItem as Qe, OrderedList as $e } from "@tiptap/extension-list";
|
|
33
|
+
import et from "@tiptap/extension-italic";
|
|
34
|
+
import tt from "@tiptap/extension-link";
|
|
35
|
+
import nt from "@tiptap/extension-strike";
|
|
36
|
+
import rt from "@tiptap/extension-underline";
|
|
37
|
+
import it from "@tiptap/extension-text";
|
|
38
|
+
import at from "@tiptap/extension-text-align";
|
|
39
|
+
import { Table as ot, TableCell as st, TableHeader as ct, TableRow as lt } from "@tiptap/extension-table";
|
|
40
|
+
import { TextStyle as ut, TextStyleKit as dt } from "@tiptap/extension-text-style";
|
|
41
|
+
import ft from "@tiptap/suggestion";
|
|
42
|
+
import pt from "@tiptap/extension-image";
|
|
43
|
+
import mt from "@tiptap/extension-mention";
|
|
44
|
+
import ht from "@dialpad/dialtone-icons/vue/hash";
|
|
45
|
+
import gt from "@dialpad/dialtone-icons/vue/lock";
|
|
46
|
+
import _t from "deep-equal";
|
|
46
47
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs
|
|
47
|
-
var
|
|
48
|
+
var vt = [
|
|
48
49
|
"top",
|
|
49
50
|
"right",
|
|
50
51
|
"bottom",
|
|
51
52
|
"left"
|
|
52
|
-
],
|
|
53
|
+
], yt = ["start", "end"], bt = /* @__PURE__ */ vt.reduce((e, t) => e.concat(t, t + "-" + yt[0], t + "-" + yt[1]), []), L = Math.min, R = Math.max, xt = Math.round, z = (e) => ({
|
|
53
54
|
x: e,
|
|
54
55
|
y: e
|
|
55
|
-
}),
|
|
56
|
+
}), St = {
|
|
56
57
|
left: "right",
|
|
57
58
|
right: "left",
|
|
58
59
|
bottom: "top",
|
|
59
60
|
top: "bottom"
|
|
60
61
|
};
|
|
61
|
-
function
|
|
62
|
-
return
|
|
62
|
+
function Ct(e, t, n) {
|
|
63
|
+
return R(e, L(t, n));
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
+
function B(e, t) {
|
|
65
66
|
return typeof e == "function" ? e(t) : e;
|
|
66
67
|
}
|
|
67
|
-
function
|
|
68
|
+
function V(e) {
|
|
68
69
|
return e.split("-")[0];
|
|
69
70
|
}
|
|
70
|
-
function
|
|
71
|
+
function H(e) {
|
|
71
72
|
return e.split("-")[1];
|
|
72
73
|
}
|
|
73
|
-
function
|
|
74
|
+
function wt(e) {
|
|
74
75
|
return e === "x" ? "y" : "x";
|
|
75
76
|
}
|
|
76
|
-
function
|
|
77
|
+
function Tt(e) {
|
|
77
78
|
return e === "y" ? "height" : "width";
|
|
78
79
|
}
|
|
79
|
-
function
|
|
80
|
+
function U(e) {
|
|
80
81
|
let t = e[0];
|
|
81
82
|
return t === "t" || t === "b" ? "y" : "x";
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
-
return
|
|
84
|
+
function Et(e) {
|
|
85
|
+
return wt(U(e));
|
|
85
86
|
}
|
|
86
|
-
function
|
|
87
|
+
function Dt(e, t, n) {
|
|
87
88
|
n === void 0 && (n = !1);
|
|
88
|
-
let r =
|
|
89
|
-
return t.reference[a] > t.floating[a] && (o =
|
|
89
|
+
let r = H(e), i = Et(e), a = Tt(i), o = i === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
90
|
+
return t.reference[a] > t.floating[a] && (o = It(o)), [o, It(o)];
|
|
90
91
|
}
|
|
91
|
-
function
|
|
92
|
-
let t =
|
|
92
|
+
function Ot(e) {
|
|
93
|
+
let t = It(e);
|
|
93
94
|
return [
|
|
94
|
-
|
|
95
|
+
kt(e),
|
|
95
96
|
t,
|
|
96
|
-
|
|
97
|
+
kt(t)
|
|
97
98
|
];
|
|
98
99
|
}
|
|
99
|
-
function
|
|
100
|
+
function kt(e) {
|
|
100
101
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
101
102
|
}
|
|
102
|
-
var
|
|
103
|
-
function
|
|
103
|
+
var At = ["left", "right"], jt = ["right", "left"], Mt = ["top", "bottom"], Nt = ["bottom", "top"];
|
|
104
|
+
function Pt(e, t, n) {
|
|
104
105
|
switch (e) {
|
|
105
106
|
case "top":
|
|
106
|
-
case "bottom": return n ? t ?
|
|
107
|
+
case "bottom": return n ? t ? jt : At : t ? At : jt;
|
|
107
108
|
case "left":
|
|
108
|
-
case "right": return t ?
|
|
109
|
+
case "right": return t ? Mt : Nt;
|
|
109
110
|
default: return [];
|
|
110
111
|
}
|
|
111
112
|
}
|
|
112
|
-
function
|
|
113
|
-
let i =
|
|
114
|
-
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(
|
|
113
|
+
function Ft(e, t, n, r) {
|
|
114
|
+
let i = H(e), a = Pt(V(e), n === "start", r);
|
|
115
|
+
return i && (a = a.map((e) => e + "-" + i), t && (a = a.concat(a.map(kt)))), a;
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
-
let t =
|
|
118
|
-
return
|
|
117
|
+
function It(e) {
|
|
118
|
+
let t = V(e);
|
|
119
|
+
return St[t] + e.slice(t.length);
|
|
119
120
|
}
|
|
120
|
-
function
|
|
121
|
+
function Lt(e) {
|
|
121
122
|
return {
|
|
122
123
|
top: 0,
|
|
123
124
|
right: 0,
|
|
@@ -126,15 +127,15 @@ function Pt(e) {
|
|
|
126
127
|
...e
|
|
127
128
|
};
|
|
128
129
|
}
|
|
129
|
-
function
|
|
130
|
+
function Rt(e) {
|
|
130
131
|
return typeof e == "number" ? {
|
|
131
132
|
top: e,
|
|
132
133
|
right: e,
|
|
133
134
|
bottom: e,
|
|
134
135
|
left: e
|
|
135
|
-
} :
|
|
136
|
+
} : Lt(e);
|
|
136
137
|
}
|
|
137
|
-
function
|
|
138
|
+
function W(e) {
|
|
138
139
|
let { x: t, y: n, width: r, height: i } = e;
|
|
139
140
|
return {
|
|
140
141
|
width: r,
|
|
@@ -149,8 +150,8 @@ function It(e) {
|
|
|
149
150
|
}
|
|
150
151
|
//#endregion
|
|
151
152
|
//#region ../../node_modules/.pnpm/@floating-ui+core@1.7.5/node_modules/@floating-ui/core/dist/floating-ui.core.mjs
|
|
152
|
-
function
|
|
153
|
-
let { reference: r, floating: i } = e, a =
|
|
153
|
+
function zt(e, t, n) {
|
|
154
|
+
let { reference: r, floating: i } = e, a = U(t), o = Et(t), s = Tt(o), c = V(t), l = a === "y", u = r.x + r.width / 2 - i.width / 2, d = r.y + r.height / 2 - i.height / 2, f = r[s] / 2 - i[s] / 2, p;
|
|
154
155
|
switch (c) {
|
|
155
156
|
case "top":
|
|
156
157
|
p = {
|
|
@@ -181,7 +182,7 @@ function Lt(e, t, n) {
|
|
|
181
182
|
y: r.y
|
|
182
183
|
};
|
|
183
184
|
}
|
|
184
|
-
switch (
|
|
185
|
+
switch (H(t)) {
|
|
185
186
|
case "start":
|
|
186
187
|
p[o] -= f * (n && l ? -1 : 1);
|
|
187
188
|
break;
|
|
@@ -191,9 +192,9 @@ function Lt(e, t, n) {
|
|
|
191
192
|
}
|
|
192
193
|
return p;
|
|
193
194
|
}
|
|
194
|
-
async function
|
|
195
|
+
async function Bt(e, t) {
|
|
195
196
|
t === void 0 && (t = {});
|
|
196
|
-
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } =
|
|
197
|
+
let { x: n, y: r, platform: i, rects: a, elements: o, strategy: s } = e, { boundary: c = "clippingAncestors", rootBoundary: l = "viewport", elementContext: u = "floating", altBoundary: d = !1, padding: f = 0 } = B(t, e), p = Rt(f), m = o[d ? u === "floating" ? "reference" : "floating" : u], h = W(await i.getClippingRect({
|
|
197
198
|
element: await (i.isElement == null ? void 0 : i.isElement(m)) ?? !0 ? m : m.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(o.floating)),
|
|
198
199
|
boundary: c,
|
|
199
200
|
rootBoundary: l,
|
|
@@ -206,7 +207,7 @@ async function Rt(e, t) {
|
|
|
206
207
|
} : a.reference, _ = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(o.floating)), v = await (i.isElement == null ? void 0 : i.isElement(_)) && await (i.getScale == null ? void 0 : i.getScale(_)) || {
|
|
207
208
|
x: 1,
|
|
208
209
|
y: 1
|
|
209
|
-
}, y =
|
|
210
|
+
}, y = W(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
210
211
|
elements: o,
|
|
211
212
|
rect: g,
|
|
212
213
|
offsetParent: _,
|
|
@@ -219,15 +220,15 @@ async function Rt(e, t) {
|
|
|
219
220
|
right: (y.right - h.right + p.right) / v.x
|
|
220
221
|
};
|
|
221
222
|
}
|
|
222
|
-
var
|
|
223
|
+
var Vt = 50, Ht = async (e, t, n) => {
|
|
223
224
|
let { placement: r = "bottom", strategy: i = "absolute", middleware: a = [], platform: o } = n, s = o.detectOverflow ? o : {
|
|
224
225
|
...o,
|
|
225
|
-
detectOverflow:
|
|
226
|
+
detectOverflow: Bt
|
|
226
227
|
}, c = await (o.isRTL == null ? void 0 : o.isRTL(t)), l = await o.getElementRects({
|
|
227
228
|
reference: e,
|
|
228
229
|
floating: t,
|
|
229
230
|
strategy: i
|
|
230
|
-
}), { x: u, y: d } =
|
|
231
|
+
}), { x: u, y: d } = zt(l, r, c), f = r, p = 0, m = {};
|
|
231
232
|
for (let n = 0; n < a.length; n++) {
|
|
232
233
|
let h = a[n];
|
|
233
234
|
if (!h) continue;
|
|
@@ -248,11 +249,11 @@ var zt = 50, Bt = async (e, t, n) => {
|
|
|
248
249
|
u = v ?? u, d = y ?? d, m[g] = {
|
|
249
250
|
...m[g],
|
|
250
251
|
...b
|
|
251
|
-
}, x && p <
|
|
252
|
+
}, x && p < Vt && (p++, typeof x == "object" && (x.placement && (f = x.placement), x.rects && (l = x.rects === !0 ? await o.getElementRects({
|
|
252
253
|
reference: e,
|
|
253
254
|
floating: t,
|
|
254
255
|
strategy: i
|
|
255
|
-
}) : x.rects), {x: u, y: d} =
|
|
256
|
+
}) : x.rects), {x: u, y: d} = zt(l, f, c)), n = -1);
|
|
256
257
|
}
|
|
257
258
|
return {
|
|
258
259
|
x: u,
|
|
@@ -261,43 +262,43 @@ var zt = 50, Bt = async (e, t, n) => {
|
|
|
261
262
|
strategy: i,
|
|
262
263
|
middlewareData: m
|
|
263
264
|
};
|
|
264
|
-
},
|
|
265
|
+
}, Ut = (e) => ({
|
|
265
266
|
name: "arrow",
|
|
266
267
|
options: e,
|
|
267
268
|
async fn(t) {
|
|
268
|
-
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } =
|
|
269
|
+
let { x: n, y: r, placement: i, rects: a, platform: o, elements: s, middlewareData: c } = t, { element: l, padding: u = 0 } = B(e, t) || {};
|
|
269
270
|
if (l == null) return {};
|
|
270
|
-
let d =
|
|
271
|
+
let d = Rt(u), f = {
|
|
271
272
|
x: n,
|
|
272
273
|
y: r
|
|
273
|
-
}, p =
|
|
274
|
-
(!
|
|
275
|
-
let
|
|
274
|
+
}, p = Et(i), m = Tt(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], ee = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), S = ee ? ee[y] : 0;
|
|
275
|
+
(!S || !await (o.isElement == null ? void 0 : o.isElement(ee))) && (S = s.floating[y] || a.floating[m]);
|
|
276
|
+
let C = b / 2 - x / 2, w = S / 2 - h[m] / 2 - 1, T = L(d[_], w), te = L(d[v], w), ne = T, re = S - h[m] - te, E = S / 2 - h[m] / 2 + C, ie = Ct(ne, E, re), D = !c.arrow && H(i) != null && E !== ie && a.reference[m] / 2 - (E < ne ? T : te) - h[m] / 2 < 0, O = D ? E < ne ? E - ne : E - re : 0;
|
|
276
277
|
return {
|
|
277
|
-
[p]: f[p] +
|
|
278
|
+
[p]: f[p] + O,
|
|
278
279
|
data: {
|
|
279
|
-
[p]:
|
|
280
|
-
centerOffset:
|
|
281
|
-
...
|
|
280
|
+
[p]: ie,
|
|
281
|
+
centerOffset: E - ie - O,
|
|
282
|
+
...D && { alignmentOffset: O }
|
|
282
283
|
},
|
|
283
|
-
reset:
|
|
284
|
+
reset: D
|
|
284
285
|
};
|
|
285
286
|
}
|
|
286
287
|
});
|
|
287
|
-
function
|
|
288
|
-
return (e ? [...n.filter((t) =>
|
|
288
|
+
function Wt(e, t, n) {
|
|
289
|
+
return (e ? [...n.filter((t) => H(t) === e), ...n.filter((t) => H(t) !== e)] : n.filter((e) => V(e) === e)).filter((n) => e ? H(n) === e || (t ? kt(n) !== n : !1) : !0);
|
|
289
290
|
}
|
|
290
|
-
var
|
|
291
|
+
var Gt = function(e) {
|
|
291
292
|
return e === void 0 && (e = {}), {
|
|
292
293
|
name: "autoPlacement",
|
|
293
294
|
options: e,
|
|
294
295
|
async fn(t) {
|
|
295
|
-
let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l =
|
|
296
|
+
let { rects: n, middlewareData: r, placement: i, platform: a, elements: o } = t, { crossAxis: s = !1, alignment: c, allowedPlacements: l = bt, autoAlignment: u = !0, ...d } = B(e, t), f = c !== void 0 || l === bt ? Wt(c || null, u, l) : l, p = await a.detectOverflow(t, d), m = r.autoPlacement?.index || 0, h = f[m];
|
|
296
297
|
if (h == null) return {};
|
|
297
|
-
let g =
|
|
298
|
+
let g = Dt(h, n, await (a.isRTL == null ? void 0 : a.isRTL(o.floating)));
|
|
298
299
|
if (i !== h) return { reset: { placement: f[0] } };
|
|
299
300
|
let _ = [
|
|
300
|
-
p[
|
|
301
|
+
p[V(h)],
|
|
301
302
|
p[g[0]],
|
|
302
303
|
p[g[1]]
|
|
303
304
|
], v = [...r.autoPlacement?.overflows || [], {
|
|
@@ -312,13 +313,13 @@ var Ut = function(e) {
|
|
|
312
313
|
reset: { placement: y }
|
|
313
314
|
};
|
|
314
315
|
let b = v.map((e) => {
|
|
315
|
-
let t =
|
|
316
|
+
let t = H(e.placement);
|
|
316
317
|
return [
|
|
317
318
|
e.placement,
|
|
318
319
|
t && s ? e.overflows.slice(0, 2).reduce((e, t) => e + t, 0) : e.overflows[0],
|
|
319
320
|
e.overflows
|
|
320
321
|
];
|
|
321
|
-
}).sort((e, t) => e[1] - t[1]), x = b.filter((e) => e[2].slice(0,
|
|
322
|
+
}).sort((e, t) => e[1] - t[1]), x = b.filter((e) => e[2].slice(0, H(e[0]) ? 2 : 3).every((e) => e <= 0))[0]?.[0] || b[0][0];
|
|
322
323
|
return x === i ? {} : {
|
|
323
324
|
data: {
|
|
324
325
|
index: m + 1,
|
|
@@ -328,39 +329,39 @@ var Ut = function(e) {
|
|
|
328
329
|
};
|
|
329
330
|
}
|
|
330
331
|
};
|
|
331
|
-
},
|
|
332
|
+
}, Kt = function(e) {
|
|
332
333
|
return e === void 0 && (e = {}), {
|
|
333
334
|
name: "flip",
|
|
334
335
|
options: e,
|
|
335
336
|
async fn(t) {
|
|
336
337
|
var n;
|
|
337
|
-
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } =
|
|
338
|
+
let { placement: r, middlewareData: i, rects: a, initialPlacement: o, platform: s, elements: c } = t, { mainAxis: l = !0, crossAxis: u = !0, fallbackPlacements: d, fallbackStrategy: f = "bestFit", fallbackAxisSideDirection: p = "none", flipAlignment: m = !0, ...h } = B(e, t);
|
|
338
339
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
339
|
-
let g =
|
|
340
|
-
!d && x && b.push(...
|
|
341
|
-
let
|
|
342
|
-
if (l &&
|
|
343
|
-
let e =
|
|
344
|
-
|
|
340
|
+
let g = V(r), _ = U(o), v = V(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [It(o)] : Ot(o)), x = p !== "none";
|
|
341
|
+
!d && x && b.push(...Ft(o, m, p, y));
|
|
342
|
+
let ee = [o, ...b], S = await s.detectOverflow(t, h), C = [], w = i.flip?.overflows || [];
|
|
343
|
+
if (l && C.push(S[g]), u) {
|
|
344
|
+
let e = Dt(r, a, y);
|
|
345
|
+
C.push(S[e[0]], S[e[1]]);
|
|
345
346
|
}
|
|
346
|
-
if (
|
|
347
|
+
if (w = [...w, {
|
|
347
348
|
placement: r,
|
|
348
|
-
overflows:
|
|
349
|
-
}], !
|
|
350
|
-
let e = (i.flip?.index || 0) + 1, t =
|
|
351
|
-
if (t && (!(u === "alignment" && _ !==
|
|
349
|
+
overflows: C
|
|
350
|
+
}], !C.every((e) => e <= 0)) {
|
|
351
|
+
let e = (i.flip?.index || 0) + 1, t = ee[e];
|
|
352
|
+
if (t && (!(u === "alignment" && _ !== U(t)) || w.every((e) => U(e.placement) === _ ? e.overflows[0] > 0 : !0))) return {
|
|
352
353
|
data: {
|
|
353
354
|
index: e,
|
|
354
|
-
overflows:
|
|
355
|
+
overflows: w
|
|
355
356
|
},
|
|
356
357
|
reset: { placement: t }
|
|
357
358
|
};
|
|
358
|
-
let n =
|
|
359
|
+
let n = w.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
359
360
|
if (!n) switch (f) {
|
|
360
361
|
case "bestFit": {
|
|
361
|
-
let e =
|
|
362
|
+
let e = w.filter((e) => {
|
|
362
363
|
if (x) {
|
|
363
|
-
let t =
|
|
364
|
+
let t = U(e.placement);
|
|
364
365
|
return t === _ || t === "y";
|
|
365
366
|
}
|
|
366
367
|
return !0;
|
|
@@ -378,7 +379,7 @@ var Ut = function(e) {
|
|
|
378
379
|
}
|
|
379
380
|
};
|
|
380
381
|
};
|
|
381
|
-
function
|
|
382
|
+
function qt(e, t) {
|
|
382
383
|
return {
|
|
383
384
|
top: e.top - t.height,
|
|
384
385
|
right: e.right - t.width,
|
|
@@ -386,34 +387,34 @@ function Gt(e, t) {
|
|
|
386
387
|
left: e.left - t.width
|
|
387
388
|
};
|
|
388
389
|
}
|
|
389
|
-
function
|
|
390
|
-
return
|
|
390
|
+
function Jt(e) {
|
|
391
|
+
return vt.some((t) => e[t] >= 0);
|
|
391
392
|
}
|
|
392
|
-
var
|
|
393
|
+
var Yt = function(e) {
|
|
393
394
|
return e === void 0 && (e = {}), {
|
|
394
395
|
name: "hide",
|
|
395
396
|
options: e,
|
|
396
397
|
async fn(t) {
|
|
397
|
-
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } =
|
|
398
|
+
let { rects: n, platform: r } = t, { strategy: i = "referenceHidden", ...a } = B(e, t);
|
|
398
399
|
switch (i) {
|
|
399
400
|
case "referenceHidden": {
|
|
400
|
-
let e =
|
|
401
|
+
let e = qt(await r.detectOverflow(t, {
|
|
401
402
|
...a,
|
|
402
403
|
elementContext: "reference"
|
|
403
404
|
}), n.reference);
|
|
404
405
|
return { data: {
|
|
405
406
|
referenceHiddenOffsets: e,
|
|
406
|
-
referenceHidden:
|
|
407
|
+
referenceHidden: Jt(e)
|
|
407
408
|
} };
|
|
408
409
|
}
|
|
409
410
|
case "escaped": {
|
|
410
|
-
let e =
|
|
411
|
+
let e = qt(await r.detectOverflow(t, {
|
|
411
412
|
...a,
|
|
412
413
|
altBoundary: !0
|
|
413
414
|
}), n.floating);
|
|
414
415
|
return { data: {
|
|
415
416
|
escapedOffsets: e,
|
|
416
|
-
escaped:
|
|
417
|
+
escaped: Jt(e)
|
|
417
418
|
} };
|
|
418
419
|
}
|
|
419
420
|
default: return {};
|
|
@@ -421,8 +422,8 @@ var qt = function(e) {
|
|
|
421
422
|
}
|
|
422
423
|
};
|
|
423
424
|
};
|
|
424
|
-
function
|
|
425
|
-
let t =
|
|
425
|
+
function Xt(e) {
|
|
426
|
+
let t = L(...e.map((e) => e.left)), n = L(...e.map((e) => e.top)), r = R(...e.map((e) => e.right)), i = R(...e.map((e) => e.bottom));
|
|
426
427
|
return {
|
|
427
428
|
x: t,
|
|
428
429
|
y: n,
|
|
@@ -430,25 +431,25 @@ function Jt(e) {
|
|
|
430
431
|
height: i - n
|
|
431
432
|
};
|
|
432
433
|
}
|
|
433
|
-
function
|
|
434
|
+
function Zt(e) {
|
|
434
435
|
let t = e.slice().sort((e, t) => e.y - t.y), n = [], r = null;
|
|
435
436
|
for (let e = 0; e < t.length; e++) {
|
|
436
437
|
let i = t[e];
|
|
437
438
|
!r || i.y - r.y > r.height / 2 ? n.push([i]) : n[n.length - 1].push(i), r = i;
|
|
438
439
|
}
|
|
439
|
-
return n.map((e) =>
|
|
440
|
+
return n.map((e) => W(Xt(e)));
|
|
440
441
|
}
|
|
441
|
-
var
|
|
442
|
+
var Qt = function(e) {
|
|
442
443
|
return e === void 0 && (e = {}), {
|
|
443
444
|
name: "inline",
|
|
444
445
|
options: e,
|
|
445
446
|
async fn(t) {
|
|
446
|
-
let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } =
|
|
447
|
+
let { placement: n, elements: r, rects: i, platform: a, strategy: o } = t, { padding: s = 2, x: c, y: l } = B(e, t), u = Array.from(await (a.getClientRects == null ? void 0 : a.getClientRects(r.reference)) || []), d = Zt(u), f = W(Xt(u)), p = Rt(s);
|
|
447
448
|
function m() {
|
|
448
449
|
if (d.length === 2 && d[0].left > d[1].right && c != null && l != null) return d.find((e) => c > e.left - p.left && c < e.right + p.right && l > e.top - p.top && l < e.bottom + p.bottom) || f;
|
|
449
450
|
if (d.length >= 2) {
|
|
450
|
-
if (
|
|
451
|
-
let e = d[0], t = d[d.length - 1], r =
|
|
451
|
+
if (U(n) === "y") {
|
|
452
|
+
let e = d[0], t = d[d.length - 1], r = V(n) === "top", i = e.top, a = t.bottom, o = r ? e.left : t.left, s = r ? e.right : t.right;
|
|
452
453
|
return {
|
|
453
454
|
top: i,
|
|
454
455
|
bottom: a,
|
|
@@ -460,7 +461,7 @@ var Xt = function(e) {
|
|
|
460
461
|
y: i
|
|
461
462
|
};
|
|
462
463
|
}
|
|
463
|
-
let e =
|
|
464
|
+
let e = V(n) === "left", t = R(...d.map((e) => e.right)), r = L(...d.map((e) => e.left)), i = d.filter((n) => e ? n.left === r : n.right === t), a = i[0].top, o = i[i.length - 1].bottom, s = r, c = t;
|
|
464
465
|
return {
|
|
465
466
|
top: a,
|
|
466
467
|
bottom: o,
|
|
@@ -482,9 +483,9 @@ var Xt = function(e) {
|
|
|
482
483
|
return i.reference.x !== h.reference.x || i.reference.y !== h.reference.y || i.reference.width !== h.reference.width || i.reference.height !== h.reference.height ? { reset: { rects: h } } : {};
|
|
483
484
|
}
|
|
484
485
|
};
|
|
485
|
-
},
|
|
486
|
-
async function
|
|
487
|
-
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o =
|
|
486
|
+
}, $t = /* @__PURE__ */ new Set(["left", "top"]);
|
|
487
|
+
async function en(e, t) {
|
|
488
|
+
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = V(n), s = H(n), c = U(n) === "y", l = $t.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = B(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
488
489
|
mainAxis: d,
|
|
489
490
|
crossAxis: 0,
|
|
490
491
|
alignmentAxis: null
|
|
@@ -501,13 +502,13 @@ async function Qt(e, t) {
|
|
|
501
502
|
y: p * u
|
|
502
503
|
};
|
|
503
504
|
}
|
|
504
|
-
var
|
|
505
|
+
var tn = function(e) {
|
|
505
506
|
return e === void 0 && (e = 0), {
|
|
506
507
|
name: "offset",
|
|
507
508
|
options: e,
|
|
508
509
|
async fn(t) {
|
|
509
510
|
var n;
|
|
510
|
-
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await
|
|
511
|
+
let { x: r, y: i, placement: a, middlewareData: o } = t, s = await en(t, e);
|
|
511
512
|
return a === o.offset?.placement && (n = o.arrow) != null && n.alignmentOffset ? {} : {
|
|
512
513
|
x: r + s.x,
|
|
513
514
|
y: i + s.y,
|
|
@@ -518,7 +519,7 @@ var $t = function(e) {
|
|
|
518
519
|
};
|
|
519
520
|
}
|
|
520
521
|
};
|
|
521
|
-
},
|
|
522
|
+
}, nn = function(e) {
|
|
522
523
|
return e === void 0 && (e = {}), {
|
|
523
524
|
name: "shift",
|
|
524
525
|
options: e,
|
|
@@ -529,17 +530,17 @@ var $t = function(e) {
|
|
|
529
530
|
x: t,
|
|
530
531
|
y: n
|
|
531
532
|
};
|
|
532
|
-
} }, ...l } =
|
|
533
|
+
} }, ...l } = B(e, t), u = {
|
|
533
534
|
x: n,
|
|
534
535
|
y: r
|
|
535
|
-
}, d = await a.detectOverflow(t, l), f =
|
|
536
|
+
}, d = await a.detectOverflow(t, l), f = U(V(i)), p = wt(f), m = u[p], h = u[f];
|
|
536
537
|
if (o) {
|
|
537
538
|
let e = p === "y" ? "top" : "left", t = p === "y" ? "bottom" : "right", n = m + d[e], r = m - d[t];
|
|
538
|
-
m =
|
|
539
|
+
m = Ct(n, m, r);
|
|
539
540
|
}
|
|
540
541
|
if (s) {
|
|
541
542
|
let e = f === "y" ? "top" : "left", t = f === "y" ? "bottom" : "right", n = h + d[e], r = h - d[t];
|
|
542
|
-
h =
|
|
543
|
+
h = Ct(n, h, r);
|
|
543
544
|
}
|
|
544
545
|
let g = c.fn({
|
|
545
546
|
...t,
|
|
@@ -559,64 +560,64 @@ var $t = function(e) {
|
|
|
559
560
|
};
|
|
560
561
|
}
|
|
561
562
|
};
|
|
562
|
-
},
|
|
563
|
+
}, rn = function(e) {
|
|
563
564
|
return e === void 0 && (e = {}), {
|
|
564
565
|
name: "size",
|
|
565
566
|
options: e,
|
|
566
567
|
async fn(t) {
|
|
567
568
|
var n, r;
|
|
568
|
-
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } =
|
|
569
|
+
let { placement: i, rects: a, platform: o, elements: s } = t, { apply: c = () => {}, ...l } = B(e, t), u = await o.detectOverflow(t, l), d = V(i), f = H(i), p = U(i) === "y", { width: m, height: h } = a.floating, g, _;
|
|
569
570
|
d === "top" || d === "bottom" ? (g = d, _ = f === (await (o.isRTL == null ? void 0 : o.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (_ = d, g = f === "end" ? "top" : "bottom");
|
|
570
|
-
let v = h - u.top - u.bottom, y = m - u.left - u.right, b =
|
|
571
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
572
|
-
let e =
|
|
573
|
-
p ?
|
|
571
|
+
let v = h - u.top - u.bottom, y = m - u.left - u.right, b = L(h - u[g], v), x = L(m - u[_], y), ee = !t.middlewareData.shift, S = b, C = x;
|
|
572
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (C = y), (r = t.middlewareData.shift) != null && r.enabled.y && (S = v), ee && !f) {
|
|
573
|
+
let e = R(u.left, 0), t = R(u.right, 0), n = R(u.top, 0), r = R(u.bottom, 0);
|
|
574
|
+
p ? C = m - 2 * (e !== 0 || t !== 0 ? e + t : R(u.left, u.right)) : S = h - 2 * (n !== 0 || r !== 0 ? n + r : R(u.top, u.bottom));
|
|
574
575
|
}
|
|
575
576
|
await c({
|
|
576
577
|
...t,
|
|
577
|
-
availableWidth:
|
|
578
|
-
availableHeight:
|
|
578
|
+
availableWidth: C,
|
|
579
|
+
availableHeight: S
|
|
579
580
|
});
|
|
580
|
-
let
|
|
581
|
-
return m !==
|
|
581
|
+
let w = await o.getDimensions(s.floating);
|
|
582
|
+
return m !== w.width || h !== w.height ? { reset: { rects: !0 } } : {};
|
|
582
583
|
}
|
|
583
584
|
};
|
|
584
585
|
};
|
|
585
586
|
//#endregion
|
|
586
587
|
//#region ../../node_modules/.pnpm/@floating-ui+utils@0.2.11/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs
|
|
587
|
-
function
|
|
588
|
+
function an() {
|
|
588
589
|
return typeof window < "u";
|
|
589
590
|
}
|
|
590
|
-
function
|
|
591
|
-
return
|
|
591
|
+
function G(e) {
|
|
592
|
+
return on(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
592
593
|
}
|
|
593
594
|
function K(e) {
|
|
594
595
|
var t;
|
|
595
596
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
596
597
|
}
|
|
597
598
|
function q(e) {
|
|
598
|
-
return ((
|
|
599
|
+
return ((on(e) ? e.ownerDocument : e.document) || window.document)?.documentElement;
|
|
599
600
|
}
|
|
600
|
-
function
|
|
601
|
-
return
|
|
601
|
+
function on(e) {
|
|
602
|
+
return an() ? e instanceof Node || e instanceof K(e).Node : !1;
|
|
602
603
|
}
|
|
603
604
|
function J(e) {
|
|
604
|
-
return
|
|
605
|
+
return an() ? e instanceof Element || e instanceof K(e).Element : !1;
|
|
605
606
|
}
|
|
606
607
|
function Y(e) {
|
|
607
|
-
return
|
|
608
|
-
}
|
|
609
|
-
function on(e) {
|
|
610
|
-
return !nn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
608
|
+
return an() ? e instanceof HTMLElement || e instanceof K(e).HTMLElement : !1;
|
|
611
609
|
}
|
|
612
610
|
function sn(e) {
|
|
613
|
-
|
|
614
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
611
|
+
return !an() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof K(e).ShadowRoot;
|
|
615
612
|
}
|
|
616
613
|
function cn(e) {
|
|
617
|
-
|
|
614
|
+
let { overflow: t, overflowX: n, overflowY: r, display: i } = Z(e);
|
|
615
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && i !== "inline" && i !== "contents";
|
|
618
616
|
}
|
|
619
617
|
function ln(e) {
|
|
618
|
+
return /^(table|td|th)$/.test(G(e));
|
|
619
|
+
}
|
|
620
|
+
function un(e) {
|
|
620
621
|
try {
|
|
621
622
|
if (e.matches(":popover-open")) return !0;
|
|
622
623
|
} catch {}
|
|
@@ -626,30 +627,30 @@ function ln(e) {
|
|
|
626
627
|
return !1;
|
|
627
628
|
}
|
|
628
629
|
}
|
|
629
|
-
var
|
|
630
|
-
function
|
|
630
|
+
var dn = /transform|translate|scale|rotate|perspective|filter/, fn = /paint|layout|strict|content/, X = (e) => !!e && e !== "none", pn;
|
|
631
|
+
function mn(e) {
|
|
631
632
|
let t = J(e) ? Z(e) : e;
|
|
632
|
-
return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !
|
|
633
|
+
return X(t.transform) || X(t.translate) || X(t.scale) || X(t.rotate) || X(t.perspective) || !gn() && (X(t.backdropFilter) || X(t.filter)) || dn.test(t.willChange || "") || fn.test(t.contain || "");
|
|
633
634
|
}
|
|
634
|
-
function
|
|
635
|
+
function hn(e) {
|
|
635
636
|
let t = Q(e);
|
|
636
|
-
for (; Y(t) && !
|
|
637
|
-
if (
|
|
638
|
-
if (
|
|
637
|
+
for (; Y(t) && !_n(t);) {
|
|
638
|
+
if (mn(t)) return t;
|
|
639
|
+
if (un(t)) return null;
|
|
639
640
|
t = Q(t);
|
|
640
641
|
}
|
|
641
642
|
return null;
|
|
642
643
|
}
|
|
643
|
-
function
|
|
644
|
-
return
|
|
644
|
+
function gn() {
|
|
645
|
+
return pn ?? (pn = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), pn;
|
|
645
646
|
}
|
|
646
|
-
function
|
|
647
|
-
return /^(html|body|#document)$/.test(
|
|
647
|
+
function _n(e) {
|
|
648
|
+
return /^(html|body|#document)$/.test(G(e));
|
|
648
649
|
}
|
|
649
650
|
function Z(e) {
|
|
650
651
|
return K(e).getComputedStyle(e);
|
|
651
652
|
}
|
|
652
|
-
function
|
|
653
|
+
function vn(e) {
|
|
653
654
|
return J(e) ? {
|
|
654
655
|
scrollLeft: e.scrollLeft,
|
|
655
656
|
scrollTop: e.scrollTop
|
|
@@ -659,100 +660,100 @@ function _n(e) {
|
|
|
659
660
|
};
|
|
660
661
|
}
|
|
661
662
|
function Q(e) {
|
|
662
|
-
if (
|
|
663
|
-
let t = e.assignedSlot || e.parentNode ||
|
|
664
|
-
return
|
|
663
|
+
if (G(e) === "html") return e;
|
|
664
|
+
let t = e.assignedSlot || e.parentNode || sn(e) && e.host || q(e);
|
|
665
|
+
return sn(t) ? t.host : t;
|
|
665
666
|
}
|
|
666
|
-
function
|
|
667
|
+
function yn(e) {
|
|
667
668
|
let t = Q(e);
|
|
668
|
-
return
|
|
669
|
+
return _n(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Y(t) && cn(t) ? t : yn(t);
|
|
669
670
|
}
|
|
670
|
-
function
|
|
671
|
+
function bn(e, t, n) {
|
|
671
672
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
672
|
-
let r =
|
|
673
|
+
let r = yn(e), i = r === e.ownerDocument?.body, a = K(r);
|
|
673
674
|
if (i) {
|
|
674
|
-
let e =
|
|
675
|
-
return t.concat(a, a.visualViewport || [],
|
|
676
|
-
} else return t.concat(r,
|
|
675
|
+
let e = xn(a);
|
|
676
|
+
return t.concat(a, a.visualViewport || [], cn(r) ? r : [], e && n ? bn(e) : []);
|
|
677
|
+
} else return t.concat(r, bn(r, [], n));
|
|
677
678
|
}
|
|
678
|
-
function
|
|
679
|
+
function xn(e) {
|
|
679
680
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
680
681
|
}
|
|
681
682
|
//#endregion
|
|
682
683
|
//#region ../../node_modules/.pnpm/@floating-ui+dom@1.7.6/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs
|
|
683
|
-
function
|
|
684
|
-
let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s =
|
|
684
|
+
function Sn(e) {
|
|
685
|
+
let t = Z(e), n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0, i = Y(e), a = i ? e.offsetWidth : n, o = i ? e.offsetHeight : r, s = xt(n) !== a || xt(r) !== o;
|
|
685
686
|
return s && (n = a, r = o), {
|
|
686
687
|
width: n,
|
|
687
688
|
height: r,
|
|
688
689
|
$: s
|
|
689
690
|
};
|
|
690
691
|
}
|
|
691
|
-
function
|
|
692
|
+
function Cn(e) {
|
|
692
693
|
return J(e) ? e : e.contextElement;
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
-
let t =
|
|
696
|
-
if (!Y(t)) return
|
|
697
|
-
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } =
|
|
695
|
+
function wn(e) {
|
|
696
|
+
let t = Cn(e);
|
|
697
|
+
if (!Y(t)) return z(1);
|
|
698
|
+
let n = t.getBoundingClientRect(), { width: r, height: i, $: a } = Sn(t), o = (a ? xt(n.width) : n.width) / r, s = (a ? xt(n.height) : n.height) / i;
|
|
698
699
|
return (!o || !Number.isFinite(o)) && (o = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
699
700
|
x: o,
|
|
700
701
|
y: s
|
|
701
702
|
};
|
|
702
703
|
}
|
|
703
|
-
var
|
|
704
|
-
function
|
|
704
|
+
var Tn = /* @__PURE__ */ z(0);
|
|
705
|
+
function En(e) {
|
|
705
706
|
let t = K(e);
|
|
706
|
-
return !
|
|
707
|
+
return !gn() || !t.visualViewport ? Tn : {
|
|
707
708
|
x: t.visualViewport.offsetLeft,
|
|
708
709
|
y: t.visualViewport.offsetTop
|
|
709
710
|
};
|
|
710
711
|
}
|
|
711
|
-
function
|
|
712
|
+
function Dn(e, t, n) {
|
|
712
713
|
return t === void 0 && (t = !1), !n || t && n !== K(e) ? !1 : t;
|
|
713
714
|
}
|
|
714
|
-
function
|
|
715
|
+
function On(e, t, n, r) {
|
|
715
716
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
716
|
-
let i = e.getBoundingClientRect(), a =
|
|
717
|
-
t && (r ? J(r) && (o =
|
|
718
|
-
let s =
|
|
717
|
+
let i = e.getBoundingClientRect(), a = Cn(e), o = z(1);
|
|
718
|
+
t && (r ? J(r) && (o = wn(r)) : o = wn(e));
|
|
719
|
+
let s = Dn(a, n, r) ? En(a) : z(0), c = (i.left + s.x) / o.x, l = (i.top + s.y) / o.y, u = i.width / o.x, d = i.height / o.y;
|
|
719
720
|
if (a) {
|
|
720
|
-
let e = K(a), t = r && J(r) ? K(r) : r, n = e, i =
|
|
721
|
+
let e = K(a), t = r && J(r) ? K(r) : r, n = e, i = xn(n);
|
|
721
722
|
for (; i && r && t !== n;) {
|
|
722
|
-
let e =
|
|
723
|
-
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i =
|
|
723
|
+
let e = wn(i), t = i.getBoundingClientRect(), r = Z(i), a = t.left + (i.clientLeft + parseFloat(r.paddingLeft)) * e.x, o = t.top + (i.clientTop + parseFloat(r.paddingTop)) * e.y;
|
|
724
|
+
c *= e.x, l *= e.y, u *= e.x, d *= e.y, c += a, l += o, n = K(i), i = xn(n);
|
|
724
725
|
}
|
|
725
726
|
}
|
|
726
|
-
return
|
|
727
|
+
return W({
|
|
727
728
|
width: u,
|
|
728
729
|
height: d,
|
|
729
730
|
x: c,
|
|
730
731
|
y: l
|
|
731
732
|
});
|
|
732
733
|
}
|
|
733
|
-
function On(e, t) {
|
|
734
|
-
let n = _n(e).scrollLeft;
|
|
735
|
-
return t ? t.left + n : Dn(q(e)).left + n;
|
|
736
|
-
}
|
|
737
734
|
function kn(e, t) {
|
|
735
|
+
let n = vn(e).scrollLeft;
|
|
736
|
+
return t ? t.left + n : On(q(e)).left + n;
|
|
737
|
+
}
|
|
738
|
+
function An(e, t) {
|
|
738
739
|
let n = e.getBoundingClientRect();
|
|
739
740
|
return {
|
|
740
|
-
x: n.left + t.scrollLeft -
|
|
741
|
+
x: n.left + t.scrollLeft - kn(e, n),
|
|
741
742
|
y: n.top + t.scrollTop
|
|
742
743
|
};
|
|
743
744
|
}
|
|
744
|
-
function
|
|
745
|
-
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ?
|
|
745
|
+
function jn(e) {
|
|
746
|
+
let { elements: t, rect: n, offsetParent: r, strategy: i } = e, a = i === "fixed", o = q(r), s = t ? un(t.floating) : !1;
|
|
746
747
|
if (r === o || s && a) return n;
|
|
747
748
|
let c = {
|
|
748
749
|
scrollLeft: 0,
|
|
749
750
|
scrollTop: 0
|
|
750
|
-
}, l =
|
|
751
|
-
if ((d || !d && !a) && ((
|
|
752
|
-
let e =
|
|
753
|
-
l =
|
|
751
|
+
}, l = z(1), u = z(0), d = Y(r);
|
|
752
|
+
if ((d || !d && !a) && ((G(r) !== "body" || cn(o)) && (c = vn(r)), d)) {
|
|
753
|
+
let e = On(r);
|
|
754
|
+
l = wn(r), u.x = e.x + r.clientLeft, u.y = e.y + r.clientTop;
|
|
754
755
|
}
|
|
755
|
-
let f = o && !d && !a ?
|
|
756
|
+
let f = o && !d && !a ? An(o, c) : z(0);
|
|
756
757
|
return {
|
|
757
758
|
width: n.width * l.x,
|
|
758
759
|
height: n.height * l.y,
|
|
@@ -760,31 +761,31 @@ function An(e) {
|
|
|
760
761
|
y: n.y * l.y - c.scrollTop * l.y + u.y + f.y
|
|
761
762
|
};
|
|
762
763
|
}
|
|
763
|
-
function
|
|
764
|
+
function Mn(e) {
|
|
764
765
|
return Array.from(e.getClientRects());
|
|
765
766
|
}
|
|
766
|
-
function
|
|
767
|
-
let t = q(e), n =
|
|
768
|
-
return Z(r).direction === "rtl" && (o +=
|
|
767
|
+
function Nn(e) {
|
|
768
|
+
let t = q(e), n = vn(e), r = e.ownerDocument.body, i = R(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = R(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight), o = -n.scrollLeft + kn(e), s = -n.scrollTop;
|
|
769
|
+
return Z(r).direction === "rtl" && (o += R(t.clientWidth, r.clientWidth) - i), {
|
|
769
770
|
width: i,
|
|
770
771
|
height: a,
|
|
771
772
|
x: o,
|
|
772
773
|
y: s
|
|
773
774
|
};
|
|
774
775
|
}
|
|
775
|
-
var
|
|
776
|
-
function
|
|
776
|
+
var Pn = 25;
|
|
777
|
+
function Fn(e, t) {
|
|
777
778
|
let n = K(e), r = q(e), i = n.visualViewport, a = r.clientWidth, o = r.clientHeight, s = 0, c = 0;
|
|
778
779
|
if (i) {
|
|
779
780
|
a = i.width, o = i.height;
|
|
780
|
-
let e =
|
|
781
|
+
let e = gn();
|
|
781
782
|
(!e || e && t === "fixed") && (s = i.offsetLeft, c = i.offsetTop);
|
|
782
783
|
}
|
|
783
|
-
let l =
|
|
784
|
+
let l = kn(r);
|
|
784
785
|
if (l <= 0) {
|
|
785
786
|
let e = r.ownerDocument, t = e.body, n = getComputedStyle(t), i = e.compatMode === "CSS1Compat" && parseFloat(n.marginLeft) + parseFloat(n.marginRight) || 0, o = Math.abs(r.clientWidth - t.clientWidth - i);
|
|
786
|
-
o <=
|
|
787
|
-
} else l <=
|
|
787
|
+
o <= Pn && (a -= o);
|
|
788
|
+
} else l <= Pn && (a += l);
|
|
788
789
|
return {
|
|
789
790
|
width: a,
|
|
790
791
|
height: o,
|
|
@@ -792,8 +793,8 @@ function Pn(e, t) {
|
|
|
792
793
|
y: c
|
|
793
794
|
};
|
|
794
795
|
}
|
|
795
|
-
function
|
|
796
|
-
let n =
|
|
796
|
+
function In(e, t) {
|
|
797
|
+
let n = On(e, !0, t === "fixed"), r = n.top + e.clientTop, i = n.left + e.clientLeft, a = Y(e) ? wn(e) : z(1);
|
|
797
798
|
return {
|
|
798
799
|
width: e.clientWidth * a.x,
|
|
799
800
|
height: e.clientHeight * a.y,
|
|
@@ -801,13 +802,13 @@ function Fn(e, t) {
|
|
|
801
802
|
y: r * a.y
|
|
802
803
|
};
|
|
803
804
|
}
|
|
804
|
-
function
|
|
805
|
+
function Ln(e, t, n) {
|
|
805
806
|
let r;
|
|
806
|
-
if (t === "viewport") r =
|
|
807
|
-
else if (t === "document") r =
|
|
808
|
-
else if (J(t)) r =
|
|
807
|
+
if (t === "viewport") r = Fn(e, n);
|
|
808
|
+
else if (t === "document") r = Nn(q(e));
|
|
809
|
+
else if (J(t)) r = In(t, n);
|
|
809
810
|
else {
|
|
810
|
-
let n =
|
|
811
|
+
let n = En(e);
|
|
811
812
|
r = {
|
|
812
813
|
x: t.x - n.x,
|
|
813
814
|
y: t.y - n.y,
|
|
@@ -815,27 +816,27 @@ function In(e, t, n) {
|
|
|
815
816
|
height: t.height
|
|
816
817
|
};
|
|
817
818
|
}
|
|
818
|
-
return
|
|
819
|
+
return W(r);
|
|
819
820
|
}
|
|
820
|
-
function
|
|
821
|
+
function Rn(e, t) {
|
|
821
822
|
let n = Q(e);
|
|
822
|
-
return n === t || !J(n) ||
|
|
823
|
+
return n === t || !J(n) || _n(n) ? !1 : Z(n).position === "fixed" || Rn(n, t);
|
|
823
824
|
}
|
|
824
|
-
function
|
|
825
|
+
function zn(e, t) {
|
|
825
826
|
let n = t.get(e);
|
|
826
827
|
if (n) return n;
|
|
827
|
-
let r =
|
|
828
|
-
for (; J(o) && !
|
|
829
|
-
let t = Z(o), n =
|
|
830
|
-
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") ||
|
|
828
|
+
let r = bn(e, [], !1).filter((e) => J(e) && G(e) !== "body"), i = null, a = Z(e).position === "fixed", o = a ? Q(e) : e;
|
|
829
|
+
for (; J(o) && !_n(o);) {
|
|
830
|
+
let t = Z(o), n = mn(o);
|
|
831
|
+
!n && t.position === "fixed" && (i = null), (a ? !n && !i : !n && t.position === "static" && i && (i.position === "absolute" || i.position === "fixed") || cn(o) && !n && Rn(e, o)) ? r = r.filter((e) => e !== o) : i = t, o = Q(o);
|
|
831
832
|
}
|
|
832
833
|
return t.set(e, r), r;
|
|
833
834
|
}
|
|
834
|
-
function
|
|
835
|
-
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ?
|
|
835
|
+
function Bn(e) {
|
|
836
|
+
let { element: t, boundary: n, rootBoundary: r, strategy: i } = e, a = [...n === "clippingAncestors" ? un(t) ? [] : zn(t, this._c) : [].concat(n), r], o = Ln(t, a[0], i), s = o.top, c = o.right, l = o.bottom, u = o.left;
|
|
836
837
|
for (let e = 1; e < a.length; e++) {
|
|
837
|
-
let n =
|
|
838
|
-
s =
|
|
838
|
+
let n = Ln(t, a[e], i);
|
|
839
|
+
s = R(n.top, s), c = L(n.right, c), l = L(n.bottom, l), u = R(n.left, u);
|
|
839
840
|
}
|
|
840
841
|
return {
|
|
841
842
|
width: c - u,
|
|
@@ -844,27 +845,27 @@ function zn(e) {
|
|
|
844
845
|
y: s
|
|
845
846
|
};
|
|
846
847
|
}
|
|
847
|
-
function
|
|
848
|
-
let { width: t, height: n } =
|
|
848
|
+
function Vn(e) {
|
|
849
|
+
let { width: t, height: n } = Sn(e);
|
|
849
850
|
return {
|
|
850
851
|
width: t,
|
|
851
852
|
height: n
|
|
852
853
|
};
|
|
853
854
|
}
|
|
854
|
-
function
|
|
855
|
-
let r = Y(t), i = q(t), a = n === "fixed", o =
|
|
855
|
+
function Hn(e, t, n) {
|
|
856
|
+
let r = Y(t), i = q(t), a = n === "fixed", o = On(e, !0, a, t), s = {
|
|
856
857
|
scrollLeft: 0,
|
|
857
858
|
scrollTop: 0
|
|
858
|
-
}, c =
|
|
859
|
+
}, c = z(0);
|
|
859
860
|
function l() {
|
|
860
|
-
c.x =
|
|
861
|
+
c.x = kn(i);
|
|
861
862
|
}
|
|
862
|
-
if (r || !r && !a) if ((
|
|
863
|
-
let e =
|
|
863
|
+
if (r || !r && !a) if ((G(t) !== "body" || cn(i)) && (s = vn(t)), r) {
|
|
864
|
+
let e = On(t, !0, a, t);
|
|
864
865
|
c.x = e.x + t.clientLeft, c.y = e.y + t.clientTop;
|
|
865
866
|
} else i && l();
|
|
866
867
|
a && !r && i && l();
|
|
867
|
-
let u = i && !r && !a ?
|
|
868
|
+
let u = i && !r && !a ? An(i, s) : z(0);
|
|
868
869
|
return {
|
|
869
870
|
x: o.left + s.scrollLeft - c.x - u.x,
|
|
870
871
|
y: o.top + s.scrollTop - c.y - u.y,
|
|
@@ -872,34 +873,34 @@ function Vn(e, t, n) {
|
|
|
872
873
|
height: o.height
|
|
873
874
|
};
|
|
874
875
|
}
|
|
875
|
-
function
|
|
876
|
+
function Un(e) {
|
|
876
877
|
return Z(e).position === "static";
|
|
877
878
|
}
|
|
878
|
-
function
|
|
879
|
+
function Wn(e, t) {
|
|
879
880
|
if (!Y(e) || Z(e).position === "fixed") return null;
|
|
880
881
|
if (t) return t(e);
|
|
881
882
|
let n = e.offsetParent;
|
|
882
883
|
return q(e) === n && (n = n.ownerDocument.body), n;
|
|
883
884
|
}
|
|
884
|
-
function
|
|
885
|
+
function Gn(e, t) {
|
|
885
886
|
let n = K(e);
|
|
886
|
-
if (
|
|
887
|
+
if (un(e)) return n;
|
|
887
888
|
if (!Y(e)) {
|
|
888
889
|
let t = Q(e);
|
|
889
|
-
for (; t && !
|
|
890
|
-
if (J(t) && !
|
|
890
|
+
for (; t && !_n(t);) {
|
|
891
|
+
if (J(t) && !Un(t)) return t;
|
|
891
892
|
t = Q(t);
|
|
892
893
|
}
|
|
893
894
|
return n;
|
|
894
895
|
}
|
|
895
|
-
let r =
|
|
896
|
-
for (; r &&
|
|
897
|
-
return r &&
|
|
896
|
+
let r = Wn(e, t);
|
|
897
|
+
for (; r && ln(r) && Un(r);) r = Wn(r, t);
|
|
898
|
+
return r && _n(r) && Un(r) && !mn(r) ? n : r || hn(e) || n;
|
|
898
899
|
}
|
|
899
|
-
var
|
|
900
|
-
let t = this.getOffsetParent ||
|
|
900
|
+
var Kn = async function(e) {
|
|
901
|
+
let t = this.getOffsetParent || Gn, n = this.getDimensions, r = await n(e.floating);
|
|
901
902
|
return {
|
|
902
|
-
reference:
|
|
903
|
+
reference: Hn(e.reference, await t(e.floating), e.strategy),
|
|
903
904
|
floating: {
|
|
904
905
|
x: 0,
|
|
905
906
|
y: 0,
|
|
@@ -908,40 +909,40 @@ var Gn = async function(e) {
|
|
|
908
909
|
}
|
|
909
910
|
};
|
|
910
911
|
};
|
|
911
|
-
function
|
|
912
|
+
function qn(e) {
|
|
912
913
|
return Z(e).direction === "rtl";
|
|
913
914
|
}
|
|
914
|
-
var
|
|
915
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
915
|
+
var Jn = {
|
|
916
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: jn,
|
|
916
917
|
getDocumentElement: q,
|
|
917
|
-
getClippingRect:
|
|
918
|
-
getOffsetParent:
|
|
919
|
-
getElementRects:
|
|
920
|
-
getClientRects:
|
|
921
|
-
getDimensions:
|
|
922
|
-
getScale:
|
|
918
|
+
getClippingRect: Bn,
|
|
919
|
+
getOffsetParent: Gn,
|
|
920
|
+
getElementRects: Kn,
|
|
921
|
+
getClientRects: Mn,
|
|
922
|
+
getDimensions: Vn,
|
|
923
|
+
getScale: wn,
|
|
923
924
|
isElement: J,
|
|
924
|
-
isRTL:
|
|
925
|
-
},
|
|
925
|
+
isRTL: qn
|
|
926
|
+
}, Yn = tn, Xn = Gt, Zn = nn, Qn = Kt, $n = rn, er = Yt, tr = Ut, nr = Qt, rr = (e, t, n) => {
|
|
926
927
|
let r = /* @__PURE__ */ new Map(), i = {
|
|
927
|
-
platform:
|
|
928
|
+
platform: Jn,
|
|
928
929
|
...n
|
|
929
930
|
}, a = {
|
|
930
931
|
...i.platform,
|
|
931
932
|
_c: r
|
|
932
933
|
};
|
|
933
|
-
return
|
|
934
|
+
return Ht(e, t, {
|
|
934
935
|
...i,
|
|
935
936
|
platform: a
|
|
936
937
|
});
|
|
937
938
|
};
|
|
938
939
|
//#endregion
|
|
939
940
|
//#region ../../node_modules/.pnpm/@tiptap+vue-3@3.19.0_patch_hash=hlk524tqy4svh2bbayevihx324_@floating-ui+dom@1.7.6_@tiptap+cor_kpexihlfm3sl2tcft5dydpfypm/node_modules/@tiptap/vue-3/dist/menus/index.js
|
|
940
|
-
function
|
|
941
|
+
function ir(e, t) {
|
|
941
942
|
let n = Math.min(e.top, t.top), r = Math.max(e.bottom, t.bottom), i = Math.min(e.left, t.left), a = Math.max(e.right, t.right) - i, o = r - n;
|
|
942
943
|
return new DOMRect(i, n, a, o);
|
|
943
944
|
}
|
|
944
|
-
var
|
|
945
|
+
var ar = class {
|
|
945
946
|
constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, shouldShow: a, appendTo: o, getReferencedVirtualElement: s, options: c }) {
|
|
946
947
|
this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.floatingUIOptions = {
|
|
947
948
|
strategy: "absolute",
|
|
@@ -959,7 +960,7 @@ var ir = class {
|
|
|
959
960
|
onUpdate: void 0,
|
|
960
961
|
onDestroy: void 0
|
|
961
962
|
}, this.shouldShow = ({ view: e, state: t, from: n, to: r }) => {
|
|
962
|
-
let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length &&
|
|
963
|
+
let { doc: i, selection: a } = t, { empty: o } = a, s = !i.textBetween(n, r).length && Pe(t.selection), c = this.element.contains(document.activeElement);
|
|
963
964
|
return !(!(e.hasFocus() || c) || o || s || !this.editor.isEditable);
|
|
964
965
|
}, this.mousedownHandler = () => {
|
|
965
966
|
this.preventHide = !0;
|
|
@@ -1005,27 +1006,27 @@ var ir = class {
|
|
|
1005
1006
|
}
|
|
1006
1007
|
get middlewares() {
|
|
1007
1008
|
let e = [];
|
|
1008
|
-
return this.floatingUIOptions.flip && e.push(
|
|
1009
|
+
return this.floatingUIOptions.flip && e.push(Qn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Zn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Yn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(tr(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push($n(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Xn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(er(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(nr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
|
|
1009
1010
|
}
|
|
1010
1011
|
get virtualElement() {
|
|
1011
1012
|
let { selection: e } = this.editor.state, t = this.getReferencedVirtualElement?.call(this);
|
|
1012
1013
|
if (t) return t;
|
|
1013
1014
|
if (!this.view?.dom?.parentNode) return;
|
|
1014
|
-
let n =
|
|
1015
|
+
let n = Le(this.view, e.from, e.to), r = {
|
|
1015
1016
|
getBoundingClientRect: () => n,
|
|
1016
1017
|
getClientRects: () => [n]
|
|
1017
1018
|
};
|
|
1018
|
-
if (e instanceof
|
|
1019
|
+
if (e instanceof Re) {
|
|
1019
1020
|
let t = this.view.nodeDOM(e.from), n = t.dataset.nodeViewWrapper ? t : t.querySelector("[data-node-view-wrapper]");
|
|
1020
1021
|
n && (t = n), t && (r = {
|
|
1021
1022
|
getBoundingClientRect: () => t.getBoundingClientRect(),
|
|
1022
1023
|
getClientRects: () => [t.getBoundingClientRect()]
|
|
1023
1024
|
});
|
|
1024
1025
|
}
|
|
1025
|
-
if (e instanceof
|
|
1026
|
+
if (e instanceof Be) {
|
|
1026
1027
|
let { $anchorCell: t, $headCell: n } = e, i = t ? t.pos : n.pos, a = n ? n.pos : t.pos, o = this.view.nodeDOM(i), s = this.view.nodeDOM(a);
|
|
1027
1028
|
if (!o || !s) return;
|
|
1028
|
-
let c = o === s ? o.getBoundingClientRect() :
|
|
1029
|
+
let c = o === s ? o.getBoundingClientRect() : ir(o.getBoundingClientRect(), s.getBoundingClientRect());
|
|
1029
1030
|
r = {
|
|
1030
1031
|
getBoundingClientRect: () => c,
|
|
1031
1032
|
getClientRects: () => [c]
|
|
@@ -1035,7 +1036,7 @@ var ir = class {
|
|
|
1035
1036
|
}
|
|
1036
1037
|
updatePosition() {
|
|
1037
1038
|
let e = this.virtualElement;
|
|
1038
|
-
e &&
|
|
1039
|
+
e && rr(e, this.element, {
|
|
1039
1040
|
placement: this.floatingUIOptions.placement,
|
|
1040
1041
|
strategy: this.floatingUIOptions.strategy,
|
|
1041
1042
|
middleware: this.middlewares
|
|
@@ -1087,13 +1088,13 @@ var ir = class {
|
|
|
1087
1088
|
destroy() {
|
|
1088
1089
|
this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.view.dom.removeEventListener("dragstart", this.dragstartHandler), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
|
|
1089
1090
|
}
|
|
1090
|
-
},
|
|
1091
|
-
key: typeof e.pluginKey == "string" ? new
|
|
1092
|
-
view: (t) => new
|
|
1091
|
+
}, or = (e) => new ze({
|
|
1092
|
+
key: typeof e.pluginKey == "string" ? new I(e.pluginKey) : e.pluginKey,
|
|
1093
|
+
view: (t) => new ar({
|
|
1093
1094
|
view: t,
|
|
1094
1095
|
...e
|
|
1095
1096
|
})
|
|
1096
|
-
}),
|
|
1097
|
+
}), sr = se({
|
|
1097
1098
|
name: "BubbleMenu",
|
|
1098
1099
|
inheritAttrs: !1,
|
|
1099
1100
|
props: {
|
|
@@ -1131,11 +1132,11 @@ var ir = class {
|
|
|
1131
1132
|
}
|
|
1132
1133
|
},
|
|
1133
1134
|
setup(e, { slots: t, attrs: n }) {
|
|
1134
|
-
let r =
|
|
1135
|
-
return
|
|
1135
|
+
let r = he(null);
|
|
1136
|
+
return me(() => {
|
|
1136
1137
|
let { editor: t, options: n, pluginKey: i, resizeDelay: a, appendTo: o, shouldShow: s, getReferencedVirtualElement: c, updateDelay: l } = e, u = r.value;
|
|
1137
|
-
u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(),
|
|
1138
|
-
t.registerPlugin(
|
|
1138
|
+
u && (u.style.visibility = "hidden", u.style.position = "absolute", u.remove(), de(() => {
|
|
1139
|
+
t.registerPlugin(or({
|
|
1139
1140
|
editor: t,
|
|
1140
1141
|
element: u,
|
|
1141
1142
|
options: n,
|
|
@@ -1147,15 +1148,15 @@ var ir = class {
|
|
|
1147
1148
|
updateDelay: l
|
|
1148
1149
|
}));
|
|
1149
1150
|
}));
|
|
1150
|
-
}),
|
|
1151
|
+
}), pe(() => {
|
|
1151
1152
|
let { pluginKey: t, editor: n } = e;
|
|
1152
1153
|
n.unregisterPlugin(t);
|
|
1153
|
-
}), () =>
|
|
1154
|
+
}), () => ce("div", {
|
|
1154
1155
|
ref: r,
|
|
1155
1156
|
...n
|
|
1156
1157
|
}, t.default?.call(t));
|
|
1157
1158
|
}
|
|
1158
|
-
}),
|
|
1159
|
+
}), cr = class {
|
|
1159
1160
|
constructor({ editor: e, element: t, view: n, updateDelay: r = 250, resizeDelay: i = 60, options: a, appendTo: o, shouldShow: s }) {
|
|
1160
1161
|
this.preventHide = !1, this.isVisible = !1, this.scrollTarget = window, this.shouldShow = ({ view: e, state: t }) => {
|
|
1161
1162
|
let { selection: n } = t, { $anchor: r, empty: i } = n, a = r.depth === 1, o = r.parent.isTextblock && !r.parent.type.spec.code && !r.parent.textContent && r.parent.childCount === 0 && !this.getTextContent(r.parent);
|
|
@@ -1203,11 +1204,11 @@ var ir = class {
|
|
|
1203
1204
|
}, this.element.tabIndex = 0, s && (this.shouldShow = s), this.element.addEventListener("mousedown", this.mousedownHandler, { capture: !0 }), this.editor.on("focus", this.focusHandler), this.editor.on("blur", this.blurHandler), this.editor.on("transaction", this.transactionHandler), window.addEventListener("resize", this.resizeHandler), this.scrollTarget.addEventListener("scroll", this.resizeHandler), this.update(n, n.state), this.getShouldShow() && (this.show(), this.updatePosition());
|
|
1204
1205
|
}
|
|
1205
1206
|
getTextContent(e) {
|
|
1206
|
-
return
|
|
1207
|
+
return Me(e, { textSerializers: Ne(this.editor.schema) });
|
|
1207
1208
|
}
|
|
1208
1209
|
get middlewares() {
|
|
1209
1210
|
let e = [];
|
|
1210
|
-
return this.floatingUIOptions.flip && e.push(
|
|
1211
|
+
return this.floatingUIOptions.flip && e.push(Qn(typeof this.floatingUIOptions.flip == "boolean" ? void 0 : this.floatingUIOptions.flip)), this.floatingUIOptions.shift && e.push(Zn(typeof this.floatingUIOptions.shift == "boolean" ? void 0 : this.floatingUIOptions.shift)), this.floatingUIOptions.offset && e.push(Yn(typeof this.floatingUIOptions.offset == "boolean" ? void 0 : this.floatingUIOptions.offset)), this.floatingUIOptions.arrow && e.push(tr(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && e.push($n(typeof this.floatingUIOptions.size == "boolean" ? void 0 : this.floatingUIOptions.size)), this.floatingUIOptions.autoPlacement && e.push(Xn(typeof this.floatingUIOptions.autoPlacement == "boolean" ? void 0 : this.floatingUIOptions.autoPlacement)), this.floatingUIOptions.hide && e.push(er(typeof this.floatingUIOptions.hide == "boolean" ? void 0 : this.floatingUIOptions.hide)), this.floatingUIOptions.inline && e.push(nr(typeof this.floatingUIOptions.inline == "boolean" ? void 0 : this.floatingUIOptions.inline)), e;
|
|
1211
1212
|
}
|
|
1212
1213
|
getShouldShow(e) {
|
|
1213
1214
|
let { state: t } = this.view, { selection: n } = t, { ranges: r } = n, i = Math.min(...r.map((e) => e.$from.pos)), a = Math.max(...r.map((e) => e.$to.pos));
|
|
@@ -1230,8 +1231,8 @@ var ir = class {
|
|
|
1230
1231
|
}
|
|
1231
1232
|
}
|
|
1232
1233
|
updatePosition() {
|
|
1233
|
-
let { selection: e } = this.editor.state, t =
|
|
1234
|
-
|
|
1234
|
+
let { selection: e } = this.editor.state, t = Le(this.view, e.from, e.to);
|
|
1235
|
+
rr({
|
|
1235
1236
|
getBoundingClientRect: () => t,
|
|
1236
1237
|
getClientRects: () => [t]
|
|
1237
1238
|
}, this.element, {
|
|
@@ -1260,14 +1261,14 @@ var ir = class {
|
|
|
1260
1261
|
destroy() {
|
|
1261
1262
|
this.hide(), this.element.removeEventListener("mousedown", this.mousedownHandler, { capture: !0 }), window.removeEventListener("resize", this.resizeHandler), this.scrollTarget.removeEventListener("scroll", this.resizeHandler), this.editor.off("focus", this.focusHandler), this.editor.off("blur", this.blurHandler), this.editor.off("transaction", this.transactionHandler), this.floatingUIOptions.onDestroy && this.floatingUIOptions.onDestroy();
|
|
1262
1263
|
}
|
|
1263
|
-
},
|
|
1264
|
-
key: typeof e.pluginKey == "string" ? new
|
|
1265
|
-
view: (t) => new
|
|
1264
|
+
}, lr = (e) => new ze({
|
|
1265
|
+
key: typeof e.pluginKey == "string" ? new I(e.pluginKey) : e.pluginKey,
|
|
1266
|
+
view: (t) => new cr({
|
|
1266
1267
|
view: t,
|
|
1267
1268
|
...e
|
|
1268
1269
|
})
|
|
1269
1270
|
});
|
|
1270
|
-
|
|
1271
|
+
se({
|
|
1271
1272
|
name: "FloatingMenu",
|
|
1272
1273
|
inheritAttrs: !1,
|
|
1273
1274
|
props: {
|
|
@@ -1301,10 +1302,10 @@ ie({
|
|
|
1301
1302
|
}
|
|
1302
1303
|
},
|
|
1303
1304
|
setup(e, { slots: t, attrs: n }) {
|
|
1304
|
-
let r =
|
|
1305
|
-
return
|
|
1305
|
+
let r = he(null);
|
|
1306
|
+
return me(() => {
|
|
1306
1307
|
let { pluginKey: t, editor: n, updateDelay: i, resizeDelay: a, options: o, appendTo: s, shouldShow: c } = e, l = r.value;
|
|
1307
|
-
l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(
|
|
1308
|
+
l && (l.style.visibility = "hidden", l.style.position = "absolute", l.remove(), n.registerPlugin(lr({
|
|
1308
1309
|
pluginKey: t,
|
|
1309
1310
|
editor: n,
|
|
1310
1311
|
element: l,
|
|
@@ -1314,10 +1315,10 @@ ie({
|
|
|
1314
1315
|
appendTo: s,
|
|
1315
1316
|
shouldShow: c
|
|
1316
1317
|
})));
|
|
1317
|
-
}),
|
|
1318
|
+
}), pe(() => {
|
|
1318
1319
|
let { pluginKey: t, editor: n } = e;
|
|
1319
1320
|
n.unregisterPlugin(t);
|
|
1320
|
-
}), () =>
|
|
1321
|
+
}), () => ce("div", {
|
|
1321
1322
|
ref: r,
|
|
1322
1323
|
...n
|
|
1323
1324
|
}, t.default?.call(t));
|
|
@@ -1329,50 +1330,50 @@ var $ = (e) => ({
|
|
|
1329
1330
|
default: null,
|
|
1330
1331
|
parseHTML: (t) => t.getAttribute(e),
|
|
1331
1332
|
renderHTML: (t) => t[e] ? { [e]: t[e] } : {}
|
|
1332
|
-
}),
|
|
1333
|
+
}), ur = () => {
|
|
1333
1334
|
let e = $("style");
|
|
1334
|
-
return e.renderHTML = (e) => e.style ? { style:
|
|
1335
|
+
return e.renderHTML = (e) => e.style ? { style: dr(e.style) } : {}, e;
|
|
1335
1336
|
};
|
|
1336
|
-
function
|
|
1337
|
+
function dr(e) {
|
|
1337
1338
|
return e.replace(/(?<![a-z-])width\s*:\s*([^;]+);?/gi, (e, t) => /^\s*0\s*[a-z%]*\s*(!important)?\s*$/i.test(t) ? "width: 100%;" : e);
|
|
1338
1339
|
}
|
|
1339
|
-
var
|
|
1340
|
+
var fr = ot.extend({
|
|
1340
1341
|
addAttributes() {
|
|
1341
1342
|
return {
|
|
1342
1343
|
...this.parent?.(),
|
|
1343
1344
|
border: $("border"),
|
|
1344
1345
|
cellpadding: $("cellpadding"),
|
|
1345
1346
|
cellspacing: $("cellspacing"),
|
|
1346
|
-
style:
|
|
1347
|
+
style: ur()
|
|
1347
1348
|
};
|
|
1348
1349
|
},
|
|
1349
1350
|
renderHTML({ HTMLAttributes: e }) {
|
|
1350
1351
|
return [
|
|
1351
1352
|
"table",
|
|
1352
|
-
|
|
1353
|
+
F(this.options.HTMLAttributes, e),
|
|
1353
1354
|
["tbody", 0]
|
|
1354
1355
|
];
|
|
1355
1356
|
}
|
|
1356
|
-
}),
|
|
1357
|
+
}), pr = lt.extend({ addAttributes() {
|
|
1357
1358
|
return {
|
|
1358
1359
|
...this.parent?.(),
|
|
1359
1360
|
style: $("style")
|
|
1360
1361
|
};
|
|
1361
|
-
} }),
|
|
1362
|
+
} }), mr = {
|
|
1362
1363
|
style: $("style"),
|
|
1363
1364
|
valign: $("valign"),
|
|
1364
1365
|
width: $("width")
|
|
1365
|
-
},
|
|
1366
|
+
}, hr = st.extend({ addAttributes() {
|
|
1366
1367
|
return {
|
|
1367
1368
|
...this.parent?.(),
|
|
1368
|
-
...
|
|
1369
|
+
...mr
|
|
1369
1370
|
};
|
|
1370
|
-
} }),
|
|
1371
|
+
} }), gr = ct.extend({ addAttributes() {
|
|
1371
1372
|
return {
|
|
1372
1373
|
...this.parent?.(),
|
|
1373
|
-
...
|
|
1374
|
+
...mr
|
|
1374
1375
|
};
|
|
1375
|
-
} }),
|
|
1376
|
+
} }), _r = ut.extend({ parseHTML() {
|
|
1376
1377
|
return [
|
|
1377
1378
|
...this.parent?.() || [],
|
|
1378
1379
|
{
|
|
@@ -1386,29 +1387,29 @@ var dr = rt.extend({
|
|
|
1386
1387
|
getAttrs: (e) => e.hasAttribute("style") ? {} : !1
|
|
1387
1388
|
}
|
|
1388
1389
|
];
|
|
1389
|
-
} }),
|
|
1390
|
+
} }), vr = {
|
|
1390
1391
|
compatConfig: { MODE: 3 },
|
|
1391
1392
|
name: "EmojiComponent",
|
|
1392
1393
|
components: {
|
|
1393
1394
|
NodeViewWrapper: S,
|
|
1394
|
-
DtEmoji:
|
|
1395
|
+
DtEmoji: y
|
|
1395
1396
|
},
|
|
1396
1397
|
props: T
|
|
1397
1398
|
};
|
|
1398
|
-
function
|
|
1399
|
-
let o =
|
|
1400
|
-
return
|
|
1401
|
-
default:
|
|
1399
|
+
function yr(e, t, n, r, i, a) {
|
|
1400
|
+
let o = M("dt-emoji"), s = M("node-view-wrapper");
|
|
1401
|
+
return j(), D(s, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
1402
|
+
default: P(() => [A(o, {
|
|
1402
1403
|
size: "500",
|
|
1403
1404
|
code: e.node.attrs.code
|
|
1404
1405
|
}, null, 8, ["code"])]),
|
|
1405
1406
|
_: 1
|
|
1406
1407
|
});
|
|
1407
1408
|
}
|
|
1408
|
-
var
|
|
1409
|
+
var br = /* @__PURE__ */ i(vr, [["render", yr]]), xr = {
|
|
1409
1410
|
compatConfig: { MODE: 3 },
|
|
1410
1411
|
name: "SuggestionList",
|
|
1411
|
-
components: { DtListItem:
|
|
1412
|
+
components: { DtListItem: g },
|
|
1412
1413
|
props: {
|
|
1413
1414
|
items: {
|
|
1414
1415
|
type: Array,
|
|
@@ -1482,29 +1483,29 @@ var yr = /* @__PURE__ */ i(_r, [["render", vr]]), br = {
|
|
|
1482
1483
|
}
|
|
1483
1484
|
}
|
|
1484
1485
|
}
|
|
1485
|
-
},
|
|
1486
|
+
}, Sr = { class: "d-popover__dialog d-suggestion-list__container" }, Cr = {
|
|
1486
1487
|
ref: "suggestionList",
|
|
1487
1488
|
class: "d-suggestion-list"
|
|
1488
1489
|
};
|
|
1489
|
-
function
|
|
1490
|
-
let o =
|
|
1491
|
-
return
|
|
1490
|
+
function wr(e, t, n, r, i, a) {
|
|
1491
|
+
let o = M("dt-list-item");
|
|
1492
|
+
return j(), ae("div", Sr, [ye(oe("ul", Cr, [(j(!0), ae(ie, null, ge(n.items, (e, t) => (j(), D(o, {
|
|
1492
1493
|
key: e.id,
|
|
1493
|
-
class:
|
|
1494
|
+
class: fe(["d-suggestion-list__item", { "d-list-item--highlighted": t === i.selectedIndex }]),
|
|
1494
1495
|
"navigation-type": "arrow-keys",
|
|
1495
1496
|
onClick: (e) => a.selectItem(t),
|
|
1496
|
-
onKeydown:
|
|
1497
|
+
onKeydown: xe(a.onKeyDown, ["prevent"])
|
|
1497
1498
|
}, {
|
|
1498
|
-
default:
|
|
1499
|
+
default: P(() => [(j(), D(_e(n.itemComponent), { item: e }, null, 8, ["item"]))]),
|
|
1499
1500
|
_: 2
|
|
1500
1501
|
}, 1032, [
|
|
1501
1502
|
"class",
|
|
1502
1503
|
"onClick",
|
|
1503
1504
|
"onKeydown"
|
|
1504
|
-
]))), 128))], 512), [[
|
|
1505
|
+
]))), 128))], 512), [[ve, n.items.length]])]);
|
|
1505
1506
|
}
|
|
1506
|
-
var
|
|
1507
|
-
function
|
|
1507
|
+
var Tr = /* @__PURE__ */ i(xr, [["render", wr]]), Er = "top-start";
|
|
1508
|
+
function Dr() {
|
|
1508
1509
|
return { getBoundingClientRect: () => ({
|
|
1509
1510
|
width: 0,
|
|
1510
1511
|
height: 0,
|
|
@@ -1516,16 +1517,16 @@ function Er() {
|
|
|
1516
1517
|
bottom: 0
|
|
1517
1518
|
}) };
|
|
1518
1519
|
}
|
|
1519
|
-
function
|
|
1520
|
+
function Or(e) {
|
|
1520
1521
|
return { getBoundingClientRect: e };
|
|
1521
1522
|
}
|
|
1522
|
-
async function
|
|
1523
|
+
async function kr(e, t, n = {}) {
|
|
1523
1524
|
if (!e || !t?.getBoundingClientRect) return;
|
|
1524
|
-
let { placement: r =
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
] } = n, { x: a, y: o } = await
|
|
1525
|
+
let { placement: r = Er, middleware: i = [
|
|
1526
|
+
Yn(0),
|
|
1527
|
+
Qn(),
|
|
1528
|
+
Zn({ padding: 8 })
|
|
1529
|
+
] } = n, { x: a, y: o } = await rr(t, e, {
|
|
1529
1530
|
placement: r,
|
|
1530
1531
|
middleware: i
|
|
1531
1532
|
});
|
|
@@ -1534,65 +1535,65 @@ async function Or(e, t, n = {}) {
|
|
|
1534
1535
|
top: `${o}px`
|
|
1535
1536
|
});
|
|
1536
1537
|
}
|
|
1537
|
-
function
|
|
1538
|
+
function Ar(e, t = {}) {
|
|
1538
1539
|
let { zIndex: n = "650" } = t;
|
|
1539
1540
|
e.style.position = "absolute", e.style.zIndex = n, e.style.display = "none";
|
|
1540
1541
|
}
|
|
1541
|
-
function
|
|
1542
|
+
function jr(e) {
|
|
1542
1543
|
e && (e.style.display = "block");
|
|
1543
1544
|
}
|
|
1544
|
-
function
|
|
1545
|
+
function Mr(e) {
|
|
1545
1546
|
e && (e.style.display = "none");
|
|
1546
1547
|
}
|
|
1547
|
-
function
|
|
1548
|
+
function Nr(e, t) {
|
|
1548
1549
|
return (n) => {
|
|
1549
1550
|
n.key === "Escape" && t() && e();
|
|
1550
1551
|
};
|
|
1551
1552
|
}
|
|
1552
|
-
function
|
|
1553
|
+
function Pr(e) {
|
|
1553
1554
|
document.addEventListener("keydown", e);
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
+
function Fr(e) {
|
|
1556
1557
|
document.removeEventListener("keydown", e);
|
|
1557
1558
|
}
|
|
1558
|
-
function
|
|
1559
|
+
function Ir(e, t, n, r) {
|
|
1559
1560
|
return new w(e, {
|
|
1560
1561
|
props: {
|
|
1561
|
-
itemComponent:
|
|
1562
|
+
itemComponent: le(t),
|
|
1562
1563
|
itemType: n,
|
|
1563
1564
|
...r
|
|
1564
1565
|
},
|
|
1565
1566
|
editor: r.editor
|
|
1566
1567
|
});
|
|
1567
1568
|
}
|
|
1568
|
-
function
|
|
1569
|
-
e.escHandler &&
|
|
1569
|
+
function Lr(e) {
|
|
1570
|
+
e.escHandler && Fr(e.escHandler), e.floatingEl?.remove(), e.component?.destroy();
|
|
1570
1571
|
}
|
|
1571
|
-
function
|
|
1572
|
-
let { listComponent: r =
|
|
1572
|
+
function Rr(e, t, n = {}) {
|
|
1573
|
+
let { listComponent: r = Tr, placement: i = Er, zIndex: a = "650" } = n;
|
|
1573
1574
|
return () => {
|
|
1574
|
-
let n = null, o = null, s = !1, c =
|
|
1575
|
+
let n = null, o = null, s = !1, c = Dr(), l = null;
|
|
1575
1576
|
function u() {
|
|
1576
|
-
|
|
1577
|
+
kr(o, c, { placement: i });
|
|
1577
1578
|
}
|
|
1578
1579
|
function d() {
|
|
1579
|
-
o && (
|
|
1580
|
+
o && (jr(o), s = !0, u());
|
|
1580
1581
|
}
|
|
1581
1582
|
function f() {
|
|
1582
|
-
o && (
|
|
1583
|
+
o && (Mr(o), s = !1);
|
|
1583
1584
|
}
|
|
1584
1585
|
return {
|
|
1585
1586
|
onStart: (i) => {
|
|
1586
|
-
n =
|
|
1587
|
+
n = Ir(r, e, t, i), i.clientRect && (o = n.element, Ar(o, { zIndex: a }), document.body.appendChild(o), c = Or(i.clientRect), l = Nr(f, () => s), Pr(l), i.items.length > 0 && d());
|
|
1587
1588
|
},
|
|
1588
1589
|
onUpdate(e) {
|
|
1589
|
-
n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c =
|
|
1590
|
+
n?.updateProps(e), e.items.length > 0 ? d() : f(), e.clientRect && (c = Or(e.clientRect), u());
|
|
1590
1591
|
},
|
|
1591
1592
|
onKeyDown(e) {
|
|
1592
1593
|
if (s) return n?.ref?.onKeyDown(e);
|
|
1593
1594
|
},
|
|
1594
1595
|
onExit() {
|
|
1595
|
-
|
|
1596
|
+
Lr({
|
|
1596
1597
|
escHandler: l,
|
|
1597
1598
|
floatingEl: o,
|
|
1598
1599
|
component: n
|
|
@@ -1603,35 +1604,35 @@ function Lr(e, t, n = {}) {
|
|
|
1603
1604
|
}
|
|
1604
1605
|
//#endregion
|
|
1605
1606
|
//#region components/rich_text_editor/extensions/emoji/EmojiSuggestion.vue
|
|
1606
|
-
var
|
|
1607
|
+
var zr = {
|
|
1607
1608
|
compatConfig: { MODE: 3 },
|
|
1608
1609
|
name: "EmojiSuggestion",
|
|
1609
1610
|
components: {
|
|
1610
|
-
DtEmoji:
|
|
1611
|
-
DtStack:
|
|
1611
|
+
DtEmoji: y,
|
|
1612
|
+
DtStack: _
|
|
1612
1613
|
},
|
|
1613
1614
|
props: { item: {
|
|
1614
1615
|
type: Object,
|
|
1615
1616
|
required: !0
|
|
1616
1617
|
} }
|
|
1617
1618
|
};
|
|
1618
|
-
function
|
|
1619
|
-
let o =
|
|
1620
|
-
return
|
|
1619
|
+
function Br(e, t, n, r, i, a) {
|
|
1620
|
+
let o = M("dt-emoji"), s = M("dt-stack");
|
|
1621
|
+
return j(), D(s, {
|
|
1621
1622
|
direction: "row",
|
|
1622
|
-
gap: "
|
|
1623
|
+
gap: "100"
|
|
1623
1624
|
}, {
|
|
1624
|
-
default:
|
|
1625
|
+
default: P(() => [A(o, {
|
|
1625
1626
|
size: "200",
|
|
1626
1627
|
code: n.item.code
|
|
1627
|
-
}, null, 8, ["code"]),
|
|
1628
|
+
}, null, 8, ["code"]), k(" " + N(n.item.code), 1)]),
|
|
1628
1629
|
_: 1
|
|
1629
1630
|
});
|
|
1630
1631
|
}
|
|
1631
|
-
var
|
|
1632
|
+
var Vr = /* @__PURE__ */ i(zr, [["render", Br]]), Hr = 20, Ur = (e, t, n) => {
|
|
1632
1633
|
let r = e.shortname?.replaceAll(":", ""), i = t.shortname?.replaceAll(":", ""), a = r.startsWith(n), o = i.startsWith(n);
|
|
1633
1634
|
return a && !o ? -1 : !a && o ? 1 : r.localeCompare(i);
|
|
1634
|
-
},
|
|
1635
|
+
}, Wr = {
|
|
1635
1636
|
items: ({ query: e }) => {
|
|
1636
1637
|
if (e.length < 2) return [];
|
|
1637
1638
|
let t = Object.values(c());
|
|
@@ -1639,7 +1640,7 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1639
1640
|
t.name,
|
|
1640
1641
|
t.shortname?.replaceAll(":", ""),
|
|
1641
1642
|
...t.keywords || []
|
|
1642
|
-
].some((t) => t && t.startsWith(e))).splice(0,
|
|
1643
|
+
].some((t) => t && t.startsWith(e))).splice(0, Hr).sort((t, n) => Ur(t, n, e)).map((e) => ({ code: e.shortname }));
|
|
1643
1644
|
},
|
|
1644
1645
|
command: ({ editor: e, range: t, props: n }) => {
|
|
1645
1646
|
e.view.state.selection.$to.nodeAfter?.text?.startsWith(" ") && (t.to += 1), e.chain().focus().insertContentAt(t, [{
|
|
@@ -1647,14 +1648,14 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1647
1648
|
attrs: n
|
|
1648
1649
|
}]).run(), window.getSelection()?.collapseToEnd();
|
|
1649
1650
|
},
|
|
1650
|
-
render:
|
|
1651
|
-
},
|
|
1651
|
+
render: Rr(Vr, "emoji")
|
|
1652
|
+
}, Gr = /(:\w+:)$/, Kr = RegExp(Se + "$"), qr = (e) => {
|
|
1652
1653
|
if (e && a(e[0])) return { text: e[2] || e[0] };
|
|
1653
|
-
},
|
|
1654
|
+
}, Jr = (e) => [...e.matchAll(s)].filter((e) => a(e[0])).map((e) => ({
|
|
1654
1655
|
index: e.index,
|
|
1655
1656
|
text: e[0],
|
|
1656
1657
|
match: e
|
|
1657
|
-
})),
|
|
1658
|
+
})), Yr = De.create({
|
|
1658
1659
|
name: "emoji",
|
|
1659
1660
|
addOptions() {
|
|
1660
1661
|
return { HTMLAttributes: {} };
|
|
@@ -1664,7 +1665,7 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1664
1665
|
selectable: !1,
|
|
1665
1666
|
atom: !0,
|
|
1666
1667
|
addNodeView() {
|
|
1667
|
-
return C(
|
|
1668
|
+
return C(br);
|
|
1668
1669
|
},
|
|
1669
1670
|
addAttributes() {
|
|
1670
1671
|
return { code: { default: null } };
|
|
@@ -1676,13 +1677,13 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1676
1677
|
return l(a(e.attrs.code).unicode_output);
|
|
1677
1678
|
},
|
|
1678
1679
|
renderHTML({ HTMLAttributes: e }) {
|
|
1679
|
-
return ["emoji-component",
|
|
1680
|
+
return ["emoji-component", F(this.options.HTMLAttributes, e)];
|
|
1680
1681
|
},
|
|
1681
1682
|
addInputRules() {
|
|
1682
|
-
return [new
|
|
1683
|
+
return [new Te({
|
|
1683
1684
|
find: (e) => {
|
|
1684
|
-
let t = e.match(
|
|
1685
|
-
if (t) return
|
|
1685
|
+
let t = e.match(Gr) || e.match(Kr);
|
|
1686
|
+
if (t) return qr(t);
|
|
1686
1687
|
},
|
|
1687
1688
|
handler: ({ state: e, range: t, match: n }) => {
|
|
1688
1689
|
let { tr: r } = e, i = t.from, a = t.to;
|
|
@@ -1691,13 +1692,13 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1691
1692
|
})];
|
|
1692
1693
|
},
|
|
1693
1694
|
addPasteRules() {
|
|
1694
|
-
return [
|
|
1695
|
-
find:
|
|
1695
|
+
return [Ie({
|
|
1696
|
+
find: Jr,
|
|
1696
1697
|
type: this.type,
|
|
1697
1698
|
getAttributes(e) {
|
|
1698
1699
|
return { code: e[0] };
|
|
1699
1700
|
}
|
|
1700
|
-
}),
|
|
1701
|
+
}), Ie({
|
|
1701
1702
|
find: o,
|
|
1702
1703
|
type: this.type,
|
|
1703
1704
|
getAttributes(e) {
|
|
@@ -1706,12 +1707,12 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1706
1707
|
})];
|
|
1707
1708
|
},
|
|
1708
1709
|
addProseMirrorPlugins() {
|
|
1709
|
-
return [
|
|
1710
|
+
return [ft({
|
|
1710
1711
|
char: ":",
|
|
1711
|
-
pluginKey: new
|
|
1712
|
+
pluginKey: new I("emoji"),
|
|
1712
1713
|
editor: this.editor,
|
|
1713
1714
|
...this.options.suggestion,
|
|
1714
|
-
...
|
|
1715
|
+
...Wr
|
|
1715
1716
|
})];
|
|
1716
1717
|
},
|
|
1717
1718
|
addKeyboardShortcuts() {
|
|
@@ -1725,21 +1726,21 @@ var Br = /* @__PURE__ */ i(Rr, [["render", zr]]), Vr = 20, Hr = (e, t, n) => {
|
|
|
1725
1726
|
});
|
|
1726
1727
|
//#endregion
|
|
1727
1728
|
//#region components/rich_text_editor/extensions/custom_link/utils.js
|
|
1728
|
-
function
|
|
1729
|
+
function Xr(e, t, n = () => !0) {
|
|
1729
1730
|
let r = [];
|
|
1730
1731
|
t.lastIndex = 0;
|
|
1731
1732
|
let i;
|
|
1732
1733
|
for (; i = t.exec(e);) n(e, i) && r.push(i);
|
|
1733
1734
|
return r;
|
|
1734
1735
|
}
|
|
1735
|
-
function
|
|
1736
|
+
function Zr(e, t) {
|
|
1736
1737
|
return !["#", "@"].includes(e.charAt(t.index)) && !["#", "@"].includes(e.charAt(t.index - 1));
|
|
1737
1738
|
}
|
|
1738
|
-
function
|
|
1739
|
+
function Qr(e) {
|
|
1739
1740
|
let t = RegExp("(?:" + ["[!?.,:;'\"]", "(?:&|&)(?:lt|gt|quot|apos|raquo|laquo|rsaquo|lsaquo);)+$"].join("|"), "g");
|
|
1740
1741
|
return e.replace(t, "");
|
|
1741
1742
|
}
|
|
1742
|
-
function
|
|
1743
|
+
function $r(e, t) {
|
|
1743
1744
|
let n = e.slice(0, t + 1).search(/\S+\s*$/), r = e.slice(t).search(/\s/);
|
|
1744
1745
|
if (r < 0) {
|
|
1745
1746
|
let t = e.slice(n);
|
|
@@ -1755,40 +1756,40 @@ function Qr(e, t) {
|
|
|
1755
1756
|
to: r + t
|
|
1756
1757
|
};
|
|
1757
1758
|
}
|
|
1758
|
-
function
|
|
1759
|
-
let i =
|
|
1759
|
+
function ei(e, t, n, r) {
|
|
1760
|
+
let i = $r(e, t);
|
|
1760
1761
|
if (r.lastIndex = 0, !r.test(i.text)) return i;
|
|
1761
1762
|
let a = n === "left" ? i.from - 1 : i.to + 1;
|
|
1762
|
-
return a <= 0 || a >= e.length || a === t ? i :
|
|
1763
|
+
return a <= 0 || a >= e.length || a === t ? i : ei(e, a, n, r);
|
|
1763
1764
|
}
|
|
1764
|
-
function
|
|
1765
|
-
let i =
|
|
1765
|
+
function ti(e, t, n, r) {
|
|
1766
|
+
let i = je(Math.max(e.from - 1, 0), Math.min(e.to + 1, t.content.size), t);
|
|
1766
1767
|
for (let e of i) e.mark.type === r && n.removeMark(e.from, e.to, r);
|
|
1767
1768
|
}
|
|
1768
|
-
var
|
|
1769
|
-
function
|
|
1769
|
+
var ni = e(1, 15);
|
|
1770
|
+
function ri(e, n, r, i, a, o) {
|
|
1770
1771
|
if (!e) return;
|
|
1771
1772
|
let s = r - n - 1;
|
|
1772
1773
|
s = s < 0 ? 0 : s;
|
|
1773
|
-
let c = i - n, l =
|
|
1774
|
-
|
|
1775
|
-
let t =
|
|
1774
|
+
let c = i - n, l = ei(e, s, "left", ni), u = ei(e, c, "right", ni);
|
|
1775
|
+
Xr(e.slice(l.from, u.to), t, Zr).forEach((e) => {
|
|
1776
|
+
let t = Qr(e[0]), r = n + l.from + e.index + 1, i = r + t.length;
|
|
1776
1777
|
a.addMark(r, i, o.create());
|
|
1777
1778
|
});
|
|
1778
1779
|
}
|
|
1779
1780
|
//#endregion
|
|
1780
1781
|
//#region components/rich_text_editor/extensions/custom_link/autolink.js
|
|
1781
|
-
function
|
|
1782
|
+
function ii(e) {
|
|
1782
1783
|
let t = !1;
|
|
1783
|
-
return new
|
|
1784
|
-
key: new
|
|
1784
|
+
return new ze({
|
|
1785
|
+
key: new I("autolink"),
|
|
1785
1786
|
appendTransaction: (n, r, i) => {
|
|
1786
1787
|
let a = n.some((e) => e.docChanged) && !r.doc.eq(i.doc);
|
|
1787
1788
|
if (t && !a) return;
|
|
1788
1789
|
let { tr: o } = i, { textContent: s } = i.doc;
|
|
1789
|
-
return t ||
|
|
1790
|
-
|
|
1791
|
-
|
|
1790
|
+
return t || ri(s, 0, 0, s.length, o, e.type), t = !0, Ae(Oe(r.doc, [...n])).forEach(({ oldRange: t, newRange: n }) => {
|
|
1791
|
+
ti(n, i.doc, o, e.type), ke(i.doc, n, (e) => e.isTextblock).forEach(({ node: r, pos: i }) => {
|
|
1792
|
+
ri(r.textContent, i, t.from, n.to, o, e.type);
|
|
1792
1793
|
});
|
|
1793
1794
|
}), o;
|
|
1794
1795
|
}
|
|
@@ -1796,21 +1797,21 @@ function ri(e) {
|
|
|
1796
1797
|
}
|
|
1797
1798
|
//#endregion
|
|
1798
1799
|
//#region components/rich_text_editor/extensions/custom_link/custom_link.js
|
|
1799
|
-
var
|
|
1800
|
+
var ai = {
|
|
1800
1801
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
1801
1802
|
rel: "noopener noreferrer nofollow"
|
|
1802
|
-
},
|
|
1803
|
+
}, oi = Ee.create({
|
|
1803
1804
|
name: "CustomLink",
|
|
1804
1805
|
renderHTML({ HTMLAttributes: e }) {
|
|
1805
|
-
return ["a",
|
|
1806
|
+
return ["a", F(this.options.HTMLAttributes, e, ai)];
|
|
1806
1807
|
},
|
|
1807
1808
|
renderText({ node: e }) {
|
|
1808
1809
|
return e.attrs.text;
|
|
1809
1810
|
},
|
|
1810
1811
|
addProseMirrorPlugins() {
|
|
1811
|
-
return [
|
|
1812
|
+
return [ii({ type: this.type })];
|
|
1812
1813
|
}
|
|
1813
|
-
}),
|
|
1814
|
+
}), si = pt.extend({
|
|
1814
1815
|
name: "ConfigurableImage",
|
|
1815
1816
|
addAttributes() {
|
|
1816
1817
|
return {
|
|
@@ -1825,12 +1826,12 @@ var ii = {
|
|
|
1825
1826
|
}).configure({
|
|
1826
1827
|
inline: !0,
|
|
1827
1828
|
allowBase64: !0
|
|
1828
|
-
}),
|
|
1829
|
+
}), ci = new Set(/* @__PURE__ */ "address.article.aside.blockquote.dd.details.dialog.div.dl.dt.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.header.hgroup.hr.li.main.nav.ol.p.pre.section.table.ul".split(".")), li = Ye.extend({
|
|
1829
1830
|
parseHTML() {
|
|
1830
1831
|
return [{
|
|
1831
1832
|
tag: "div",
|
|
1832
1833
|
getAttrs: (e) => {
|
|
1833
|
-
for (let t of e.children) if (
|
|
1834
|
+
for (let t of e.children) if (ci.has(t.tagName.toLowerCase())) return !1;
|
|
1834
1835
|
return null;
|
|
1835
1836
|
}
|
|
1836
1837
|
}];
|
|
@@ -1838,16 +1839,16 @@ var ii = {
|
|
|
1838
1839
|
renderHTML({ HTMLAttributes: e }) {
|
|
1839
1840
|
return [
|
|
1840
1841
|
"div",
|
|
1841
|
-
|
|
1842
|
+
F(this.options.HTMLAttributes, e),
|
|
1842
1843
|
0
|
|
1843
1844
|
];
|
|
1844
1845
|
}
|
|
1845
|
-
}),
|
|
1846
|
+
}), ui = {
|
|
1846
1847
|
compatConfig: { MODE: 3 },
|
|
1847
1848
|
name: "MentionComponent",
|
|
1848
1849
|
components: {
|
|
1849
1850
|
NodeViewWrapper: S,
|
|
1850
|
-
DtLink:
|
|
1851
|
+
DtLink: p
|
|
1851
1852
|
},
|
|
1852
1853
|
props: T,
|
|
1853
1854
|
computed: { text() {
|
|
@@ -1879,18 +1880,18 @@ var ii = {
|
|
|
1879
1880
|
}
|
|
1880
1881
|
}
|
|
1881
1882
|
};
|
|
1882
|
-
function
|
|
1883
|
-
let o =
|
|
1884
|
-
return
|
|
1885
|
-
default:
|
|
1883
|
+
function di(e, t, n, r, i, a) {
|
|
1884
|
+
let o = M("dt-link"), s = M("node-view-wrapper");
|
|
1885
|
+
return j(), D(s, { class: "d-d-inline-block" }, {
|
|
1886
|
+
default: P(() => [A(o, {
|
|
1886
1887
|
kind: "mention",
|
|
1887
|
-
onClick:
|
|
1888
|
+
onClick: xe(a.handleClick, ["prevent"]),
|
|
1888
1889
|
onMouseenter: a.handleMouseEnter,
|
|
1889
1890
|
onMouseleave: a.handleMouseLeave,
|
|
1890
1891
|
onFocusin: a.handleMouseEnter,
|
|
1891
1892
|
onFocusout: a.handleMouseLeave
|
|
1892
1893
|
}, {
|
|
1893
|
-
default:
|
|
1894
|
+
default: P(() => [k(N(a.text), 1)]),
|
|
1894
1895
|
_: 1
|
|
1895
1896
|
}, 8, [
|
|
1896
1897
|
"onClick",
|
|
@@ -1902,9 +1903,9 @@ function ui(e, t, n, r, i, a) {
|
|
|
1902
1903
|
_: 1
|
|
1903
1904
|
});
|
|
1904
1905
|
}
|
|
1905
|
-
var
|
|
1906
|
+
var fi = /* @__PURE__ */ i(ui, [["render", di]]), pi = mt.extend({
|
|
1906
1907
|
addNodeView() {
|
|
1907
|
-
return C(
|
|
1908
|
+
return C(fi);
|
|
1908
1909
|
},
|
|
1909
1910
|
parseHTML() {
|
|
1910
1911
|
return [{ tag: "mention-component" }];
|
|
@@ -1921,19 +1922,19 @@ var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
|
|
|
1921
1922
|
return `@${e.attrs.id}`;
|
|
1922
1923
|
},
|
|
1923
1924
|
renderHTML({ HTMLAttributes: e }) {
|
|
1924
|
-
return ["mention-component",
|
|
1925
|
+
return ["mention-component", F(this.options.HTMLAttributes, e)];
|
|
1925
1926
|
}
|
|
1926
1927
|
}).configure({ suggestion: {
|
|
1927
1928
|
char: "@",
|
|
1928
|
-
pluginKey: new
|
|
1929
|
-
} }),
|
|
1929
|
+
pluginKey: new I("mentionSuggestion")
|
|
1930
|
+
} }), mi = {
|
|
1930
1931
|
compatConfig: { MODE: 3 },
|
|
1931
1932
|
name: "ChannelComponent",
|
|
1932
1933
|
components: {
|
|
1933
1934
|
NodeViewWrapper: S,
|
|
1934
|
-
DtLink:
|
|
1935
|
-
DtIconLock:
|
|
1936
|
-
DtStack:
|
|
1935
|
+
DtLink: p,
|
|
1936
|
+
DtIconLock: Ce,
|
|
1937
|
+
DtStack: _
|
|
1937
1938
|
},
|
|
1938
1939
|
props: T,
|
|
1939
1940
|
computed: { text() {
|
|
@@ -1949,21 +1950,21 @@ var di = /* @__PURE__ */ i(li, [["render", ui]]), fi = dt.extend({
|
|
|
1949
1950
|
this.$props.editor.emit("channel-click", e);
|
|
1950
1951
|
} }
|
|
1951
1952
|
};
|
|
1952
|
-
function
|
|
1953
|
-
let o =
|
|
1954
|
-
return
|
|
1955
|
-
default:
|
|
1953
|
+
function hi(e, t, n, r, i, a) {
|
|
1954
|
+
let o = M("dt-icon-lock"), s = M("dt-stack"), c = M("dt-link"), l = M("node-view-wrapper");
|
|
1955
|
+
return j(), D(l, { class: "d-d-inline-block" }, {
|
|
1956
|
+
default: P(() => [A(c, {
|
|
1956
1957
|
kind: "mention",
|
|
1957
|
-
onClick:
|
|
1958
|
+
onClick: xe(a.handleClick, ["prevent"])
|
|
1958
1959
|
}, {
|
|
1959
|
-
default:
|
|
1960
|
+
default: P(() => [A(s, {
|
|
1960
1961
|
direction: "row",
|
|
1961
1962
|
gap: "0"
|
|
1962
1963
|
}, {
|
|
1963
|
-
default:
|
|
1964
|
+
default: P(() => [e.$props.node.attrs.locked ? (j(), D(o, {
|
|
1964
1965
|
key: 0,
|
|
1965
1966
|
size: "200"
|
|
1966
|
-
})) :
|
|
1967
|
+
})) : O("", !0), oe("span", null, N(a.text), 1)]),
|
|
1967
1968
|
_: 1
|
|
1968
1969
|
})]),
|
|
1969
1970
|
_: 1
|
|
@@ -1971,10 +1972,10 @@ function mi(e, t, n, r, i, a) {
|
|
|
1971
1972
|
_: 1
|
|
1972
1973
|
});
|
|
1973
1974
|
}
|
|
1974
|
-
var
|
|
1975
|
+
var gi = /* @__PURE__ */ i(mi, [["render", hi]]), _i = mt.extend({
|
|
1975
1976
|
name: "channel",
|
|
1976
1977
|
addNodeView() {
|
|
1977
|
-
return C(
|
|
1978
|
+
return C(gi);
|
|
1978
1979
|
},
|
|
1979
1980
|
parseHTML() {
|
|
1980
1981
|
return [{ tag: "channel-component" }];
|
|
@@ -1991,12 +1992,12 @@ var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
|
|
|
1991
1992
|
return `#${e.attrs.id}`;
|
|
1992
1993
|
},
|
|
1993
1994
|
renderHTML({ HTMLAttributes: e }) {
|
|
1994
|
-
return ["channel-component",
|
|
1995
|
+
return ["channel-component", F(this.options.HTMLAttributes, e)];
|
|
1995
1996
|
}
|
|
1996
1997
|
}).configure({ suggestion: {
|
|
1997
1998
|
char: "#",
|
|
1998
|
-
pluginKey: new
|
|
1999
|
-
} }),
|
|
1999
|
+
pluginKey: new I("channelSuggestion")
|
|
2000
|
+
} }), vi = {
|
|
2000
2001
|
compatConfig: { MODE: 3 },
|
|
2001
2002
|
name: "SlashCommandsComponent",
|
|
2002
2003
|
components: { NodeViewWrapper: S },
|
|
@@ -2012,21 +2013,21 @@ var hi = /* @__PURE__ */ i(pi, [["render", mi]]), gi = dt.extend({
|
|
|
2012
2013
|
t && typeof t == "function" && t(e);
|
|
2013
2014
|
}
|
|
2014
2015
|
};
|
|
2015
|
-
function
|
|
2016
|
-
let o =
|
|
2017
|
-
return
|
|
2018
|
-
default:
|
|
2016
|
+
function yi(e, t, n, r, i, a) {
|
|
2017
|
+
let o = M("node-view-wrapper");
|
|
2018
|
+
return j(), D(o, { class: "d-d-inline-block" }, {
|
|
2019
|
+
default: P(() => [k(N(a.text), 1)]),
|
|
2019
2020
|
_: 1
|
|
2020
2021
|
});
|
|
2021
2022
|
}
|
|
2022
|
-
var
|
|
2023
|
+
var bi = /* @__PURE__ */ i(vi, [["render", yi]]), xi = (e, t) => [...e.matchAll(t)].map((e) => {
|
|
2023
2024
|
let t = e[2];
|
|
2024
2025
|
return t.endsWith(" ") || (t += " "), {
|
|
2025
2026
|
index: e.index,
|
|
2026
2027
|
text: t,
|
|
2027
2028
|
match: e
|
|
2028
2029
|
};
|
|
2029
|
-
}),
|
|
2030
|
+
}), Si = mt.extend({
|
|
2030
2031
|
name: "slash-commands",
|
|
2031
2032
|
group: "inline",
|
|
2032
2033
|
inline: !0,
|
|
@@ -2040,7 +2041,7 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
|
|
|
2040
2041
|
return { onSelectedCommand: this.options.onSelectedCommand };
|
|
2041
2042
|
},
|
|
2042
2043
|
addNodeView() {
|
|
2043
|
-
return C(
|
|
2044
|
+
return C(bi);
|
|
2044
2045
|
},
|
|
2045
2046
|
parseHTML() {
|
|
2046
2047
|
return [{ tag: "command-component" }];
|
|
@@ -2056,11 +2057,11 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
|
|
|
2056
2057
|
return `/${e.attrs.command}`;
|
|
2057
2058
|
},
|
|
2058
2059
|
renderHTML({ HTMLAttributes: e }) {
|
|
2059
|
-
return ["command-component",
|
|
2060
|
+
return ["command-component", F(this.options.HTMLAttributes, e)];
|
|
2060
2061
|
},
|
|
2061
2062
|
addInputRules() {
|
|
2062
2063
|
let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command);
|
|
2063
|
-
return [
|
|
2064
|
+
return [Fe({
|
|
2064
2065
|
find: RegExp(`^((?:\\/)(${e.join("|")})) $`),
|
|
2065
2066
|
type: this.type,
|
|
2066
2067
|
getAttributes(e) {
|
|
@@ -2070,8 +2071,8 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
|
|
|
2070
2071
|
},
|
|
2071
2072
|
addPasteRules() {
|
|
2072
2073
|
let e = this.options.suggestion?.items({ query: "" }).map((e) => e.command), t = RegExp(`^((?:\\/)(${e.join("|")})) ?$`, "g");
|
|
2073
|
-
return [
|
|
2074
|
-
find: (e) =>
|
|
2074
|
+
return [Ie({
|
|
2075
|
+
find: (e) => xi(e, t),
|
|
2075
2076
|
type: this.type,
|
|
2076
2077
|
getAttributes(e) {
|
|
2077
2078
|
return { command: e[0].trim() };
|
|
@@ -2080,21 +2081,21 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
|
|
|
2080
2081
|
}
|
|
2081
2082
|
}).configure({ suggestion: {
|
|
2082
2083
|
char: "/",
|
|
2083
|
-
pluginKey: new
|
|
2084
|
-
} }),
|
|
2084
|
+
pluginKey: new I("slashCommandSuggestion")
|
|
2085
|
+
} }), Ci = 100, wi = {
|
|
2085
2086
|
name: "VariableComponent",
|
|
2086
2087
|
components: {
|
|
2087
2088
|
DtBadge: d,
|
|
2088
|
-
DtButton:
|
|
2089
|
-
DtPopover:
|
|
2090
|
-
DtInput:
|
|
2089
|
+
DtButton: h,
|
|
2090
|
+
DtPopover: v,
|
|
2091
|
+
DtInput: b,
|
|
2091
2092
|
NodeViewWrapper: S
|
|
2092
2093
|
},
|
|
2093
2094
|
props: T,
|
|
2094
2095
|
data() {
|
|
2095
2096
|
return {
|
|
2096
|
-
i18n: new
|
|
2097
|
-
MAX_VARIABLE_ALT_LENGTH:
|
|
2097
|
+
i18n: new m(),
|
|
2098
|
+
MAX_VARIABLE_ALT_LENGTH: Ci
|
|
2098
2099
|
};
|
|
2099
2100
|
},
|
|
2100
2101
|
computed: {
|
|
@@ -2129,27 +2130,27 @@ var yi = /* @__PURE__ */ i(_i, [["render", vi]]), bi = (e, t) => [...e.matchAll(
|
|
|
2129
2130
|
}
|
|
2130
2131
|
}
|
|
2131
2132
|
};
|
|
2132
|
-
function
|
|
2133
|
-
let o =
|
|
2134
|
-
return
|
|
2135
|
-
default:
|
|
2133
|
+
function Ti(e, t, n, r, i, a) {
|
|
2134
|
+
let o = M("dt-badge"), s = M("dt-button"), c = M("dt-input"), l = M("dt-popover"), u = M("node-view-wrapper");
|
|
2135
|
+
return j(), D(u, { class: "d-d-inline-block" }, {
|
|
2136
|
+
default: P(() => [a.enableAltText ? (j(), D(l, {
|
|
2136
2137
|
key: 0,
|
|
2137
2138
|
padding: "small",
|
|
2138
2139
|
"navigation-type": "arrow-keys",
|
|
2139
2140
|
placement: "top-start",
|
|
2140
2141
|
modal: !1
|
|
2141
2142
|
}, {
|
|
2142
|
-
anchor:
|
|
2143
|
-
default:
|
|
2143
|
+
anchor: P(({ attrs: e }) => [A(s, ue(e, { kind: "unstyled" }), {
|
|
2144
|
+
default: P(() => [A(o, {
|
|
2144
2145
|
text: a.badgeLabel,
|
|
2145
2146
|
contenteditable: "false"
|
|
2146
2147
|
}, null, 8, ["text"])]),
|
|
2147
2148
|
_: 1
|
|
2148
2149
|
}, 16)]),
|
|
2149
|
-
content:
|
|
2150
|
+
content: P(({ close: e }) => [A(c, {
|
|
2150
2151
|
modelValue: a.altText,
|
|
2151
2152
|
"onUpdate:modelValue": t[0] || (t[0] = (e) => a.altText = e),
|
|
2152
|
-
|
|
2153
|
+
class: "d-p-100 d-w332",
|
|
2153
2154
|
label: i.i18n.$t("DIALTONE_EDITOR_VARIABLE_LABEL"),
|
|
2154
2155
|
placeholder: a.placeholderText,
|
|
2155
2156
|
validate: { length: {
|
|
@@ -2159,7 +2160,7 @@ function wi(e, t, n, r, i, a) {
|
|
|
2159
2160
|
warn: i.MAX_VARIABLE_ALT_LENGTH,
|
|
2160
2161
|
limitMaxLength: !0
|
|
2161
2162
|
} },
|
|
2162
|
-
onKeyup:
|
|
2163
|
+
onKeyup: be((t) => e(), ["enter"])
|
|
2163
2164
|
}, null, 8, [
|
|
2164
2165
|
"modelValue",
|
|
2165
2166
|
"label",
|
|
@@ -2168,7 +2169,7 @@ function wi(e, t, n, r, i, a) {
|
|
|
2168
2169
|
"onKeyup"
|
|
2169
2170
|
])]),
|
|
2170
2171
|
_: 1
|
|
2171
|
-
})) : (
|
|
2172
|
+
})) : (j(), D(o, {
|
|
2172
2173
|
key: 1,
|
|
2173
2174
|
text: a.badgeLabel,
|
|
2174
2175
|
contenteditable: "false"
|
|
@@ -2176,7 +2177,7 @@ function wi(e, t, n, r, i, a) {
|
|
|
2176
2177
|
_: 1
|
|
2177
2178
|
});
|
|
2178
2179
|
}
|
|
2179
|
-
var
|
|
2180
|
+
var Ei = /* @__PURE__ */ i(wi, [["render", Ti]]), Di = De.create({
|
|
2180
2181
|
name: "variable",
|
|
2181
2182
|
group: "inline",
|
|
2182
2183
|
inline: !0,
|
|
@@ -2189,7 +2190,7 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
|
|
|
2189
2190
|
};
|
|
2190
2191
|
},
|
|
2191
2192
|
addNodeView() {
|
|
2192
|
-
return C(
|
|
2193
|
+
return C(Ei);
|
|
2193
2194
|
},
|
|
2194
2195
|
addAttributes() {
|
|
2195
2196
|
return {
|
|
@@ -2217,7 +2218,7 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
|
|
|
2217
2218
|
return e.attrs.altText;
|
|
2218
2219
|
},
|
|
2219
2220
|
renderHTML({ node: e, HTMLAttributes: t }) {
|
|
2220
|
-
return ["variable",
|
|
2221
|
+
return ["variable", F(this.options.HTMLAttributes, t, {
|
|
2221
2222
|
"data-variable-id": e.attrs.id,
|
|
2222
2223
|
"data-alt-text": e.attrs.altText,
|
|
2223
2224
|
"data-enable-alt-text": String(e.attrs.enableAltText)
|
|
@@ -2233,12 +2234,13 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
|
|
|
2233
2234
|
}
|
|
2234
2235
|
}) };
|
|
2235
2236
|
}
|
|
2236
|
-
}),
|
|
2237
|
+
}), Oi = {
|
|
2237
2238
|
compatConfig: { MODE: 3 },
|
|
2238
2239
|
name: "MentionSuggestion",
|
|
2239
2240
|
components: {
|
|
2240
2241
|
DtAvatar: u,
|
|
2241
|
-
DtStack:
|
|
2242
|
+
DtStack: _,
|
|
2243
|
+
DtText: f
|
|
2242
2244
|
},
|
|
2243
2245
|
props: { item: {
|
|
2244
2246
|
type: Object,
|
|
@@ -2272,53 +2274,72 @@ var Ti = /* @__PURE__ */ i(Ci, [["render", wi]]), Ei = we.create({
|
|
|
2272
2274
|
return this.item.showDetails;
|
|
2273
2275
|
}
|
|
2274
2276
|
}
|
|
2275
|
-
},
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
key: 2,
|
|
2280
|
-
class: "d-mention-suggestion__status"
|
|
2281
|
-
};
|
|
2282
|
-
function ji(e, t, n, r, i, a) {
|
|
2283
|
-
let o = P("dt-avatar"), s = P("dt-stack");
|
|
2284
|
-
return N(), O(s, {
|
|
2277
|
+
}, ki = { class: "d-mention-suggestion__name" };
|
|
2278
|
+
function Ai(e, t, n, r, i, a) {
|
|
2279
|
+
let o = M("dt-avatar"), s = M("dt-text"), c = M("dt-stack");
|
|
2280
|
+
return j(), D(c, {
|
|
2285
2281
|
direction: "row",
|
|
2286
2282
|
class: "d-mention-suggestion__container",
|
|
2287
|
-
gap: "
|
|
2283
|
+
gap: "100"
|
|
2288
2284
|
}, {
|
|
2289
|
-
default:
|
|
2285
|
+
default: P(() => [A(o, {
|
|
2290
2286
|
"full-name": a.name,
|
|
2291
2287
|
"image-src": a.avatarSrc,
|
|
2292
2288
|
"image-alt": a.name,
|
|
2293
2289
|
"show-presence": a.showDetails,
|
|
2294
2290
|
presence: a.presence,
|
|
2295
|
-
size:
|
|
2291
|
+
size: 200
|
|
2296
2292
|
}, null, 8, [
|
|
2297
2293
|
"full-name",
|
|
2298
2294
|
"image-src",
|
|
2299
2295
|
"image-alt",
|
|
2300
2296
|
"show-presence",
|
|
2301
2297
|
"presence"
|
|
2302
|
-
]),
|
|
2298
|
+
]), A(c, {
|
|
2303
2299
|
class: "d-mention-suggestion__details-container",
|
|
2304
|
-
gap: "
|
|
2300
|
+
gap: "1"
|
|
2305
2301
|
}, {
|
|
2306
|
-
default:
|
|
2302
|
+
default: P(() => [oe("span", ki, N(a.name), 1), a.showDetails ? (j(), D(c, {
|
|
2307
2303
|
key: 0,
|
|
2308
2304
|
direction: "row",
|
|
2309
|
-
gap: "
|
|
2310
|
-
class: "d-label--sm-plain"
|
|
2305
|
+
gap: "50"
|
|
2311
2306
|
}, {
|
|
2312
|
-
default:
|
|
2313
|
-
a.presenceText ? (
|
|
2307
|
+
default: P(() => [
|
|
2308
|
+
a.presenceText ? (j(), D(s, {
|
|
2314
2309
|
key: 0,
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2310
|
+
kind: "label",
|
|
2311
|
+
size: 200,
|
|
2312
|
+
strength: "normal",
|
|
2313
|
+
class: fe(["d-mention-suggestion__presence", [a.presenceFontColorClass]])
|
|
2314
|
+
}, {
|
|
2315
|
+
default: P(() => [k(N(a.presenceText), 1)]),
|
|
2316
|
+
_: 1
|
|
2317
|
+
}, 8, ["class"])) : O("", !0),
|
|
2318
|
+
a.status && a.presenceText ? (j(), D(s, {
|
|
2319
|
+
key: 1,
|
|
2320
|
+
kind: "label",
|
|
2321
|
+
size: 200,
|
|
2322
|
+
strength: "normal",
|
|
2323
|
+
as: "div",
|
|
2324
|
+
class: "d-mention-suggestion__divider"
|
|
2325
|
+
}, {
|
|
2326
|
+
default: P(() => [...t[0] || (t[0] = [k(" • ", -1)])]),
|
|
2327
|
+
_: 1
|
|
2328
|
+
})) : O("", !0),
|
|
2329
|
+
a.status ? (j(), D(s, {
|
|
2330
|
+
key: 2,
|
|
2331
|
+
kind: "label",
|
|
2332
|
+
size: 200,
|
|
2333
|
+
strength: "normal",
|
|
2334
|
+
as: "div",
|
|
2335
|
+
class: "d-mention-suggestion__status"
|
|
2336
|
+
}, {
|
|
2337
|
+
default: P(() => [k(N(a.status), 1)]),
|
|
2338
|
+
_: 1
|
|
2339
|
+
})) : O("", !0)
|
|
2319
2340
|
]),
|
|
2320
2341
|
_: 1
|
|
2321
|
-
})) :
|
|
2342
|
+
})) : O("", !0)]),
|
|
2322
2343
|
_: 1
|
|
2323
2344
|
})]),
|
|
2324
2345
|
_: 1
|
|
@@ -2326,16 +2347,16 @@ function ji(e, t, n, r, i, a) {
|
|
|
2326
2347
|
}
|
|
2327
2348
|
//#endregion
|
|
2328
2349
|
//#region components/rich_text_editor/extensions/mentions/suggestion.js
|
|
2329
|
-
var
|
|
2350
|
+
var ji = {
|
|
2330
2351
|
allowSpaces: !0,
|
|
2331
|
-
render:
|
|
2332
|
-
},
|
|
2352
|
+
render: Rr(/* @__PURE__ */ i(Oi, [["render", Ai]]), "mention")
|
|
2353
|
+
}, Mi = {
|
|
2333
2354
|
compatConfig: { MODE: 3 },
|
|
2334
2355
|
name: "ChannelSuggestion",
|
|
2335
2356
|
components: {
|
|
2336
|
-
DtStack:
|
|
2337
|
-
DtIconHash:
|
|
2338
|
-
DtIconLock:
|
|
2357
|
+
DtStack: _,
|
|
2358
|
+
DtIconHash: ht,
|
|
2359
|
+
DtIconLock: gt
|
|
2339
2360
|
},
|
|
2340
2361
|
props: { item: {
|
|
2341
2362
|
type: Object,
|
|
@@ -2345,30 +2366,31 @@ var Mi = {
|
|
|
2345
2366
|
return this.item.name;
|
|
2346
2367
|
} }
|
|
2347
2368
|
};
|
|
2348
|
-
function
|
|
2349
|
-
let o =
|
|
2350
|
-
return
|
|
2369
|
+
function Ni(e, t, n, r, i, a) {
|
|
2370
|
+
let o = M("dt-icon-hash"), s = M("dt-icon-lock"), c = M("dt-stack");
|
|
2371
|
+
return j(), D(c, {
|
|
2351
2372
|
direction: "row",
|
|
2352
2373
|
gap: "400"
|
|
2353
2374
|
}, {
|
|
2354
|
-
default:
|
|
2375
|
+
default: P(() => [n.item.locked ? (j(), D(s, {
|
|
2355
2376
|
key: 1,
|
|
2356
2377
|
size: "300"
|
|
2357
|
-
})) : (
|
|
2378
|
+
})) : (j(), D(o, {
|
|
2358
2379
|
key: 0,
|
|
2359
2380
|
size: "300"
|
|
2360
|
-
})),
|
|
2381
|
+
})), oe("span", null, N(a.name), 1)]),
|
|
2361
2382
|
_: 1
|
|
2362
2383
|
});
|
|
2363
2384
|
}
|
|
2364
2385
|
//#endregion
|
|
2365
2386
|
//#region components/rich_text_editor/extensions/channels/suggestion.js
|
|
2366
|
-
var
|
|
2387
|
+
var Pi = {
|
|
2367
2388
|
allowSpaces: !0,
|
|
2368
|
-
render:
|
|
2369
|
-
},
|
|
2389
|
+
render: Rr(/* @__PURE__ */ i(Mi, [["render", Ni]]), "channel")
|
|
2390
|
+
}, Fi = {
|
|
2370
2391
|
compatConfig: { MODE: 3 },
|
|
2371
2392
|
name: "SlashCommandSuggestion",
|
|
2393
|
+
components: { DtText: f },
|
|
2372
2394
|
props: { item: {
|
|
2373
2395
|
type: Object,
|
|
2374
2396
|
required: !0
|
|
@@ -2384,24 +2406,41 @@ var Fi = {
|
|
|
2384
2406
|
return this.item.parametersExample;
|
|
2385
2407
|
}
|
|
2386
2408
|
}
|
|
2387
|
-
},
|
|
2388
|
-
function
|
|
2389
|
-
|
|
2409
|
+
}, Ii = { key: 0 };
|
|
2410
|
+
function Li(e, t, n, r, i, a) {
|
|
2411
|
+
let o = M("dt-text");
|
|
2412
|
+
return j(), ae("div", null, [A(o, {
|
|
2413
|
+
kind: "body",
|
|
2414
|
+
size: 300,
|
|
2415
|
+
density: 300,
|
|
2416
|
+
as: "div"
|
|
2417
|
+
}, {
|
|
2418
|
+
default: P(() => [oe("span", null, "/" + N(a.command), 1), a.parametersExample ? (j(), ae("span", Ii, N(a.parametersExample), 1)) : O("", !0)]),
|
|
2419
|
+
_: 1
|
|
2420
|
+
}), A(o, {
|
|
2421
|
+
kind: "body",
|
|
2422
|
+
size: 200,
|
|
2423
|
+
tone: "tertiary",
|
|
2424
|
+
as: "div"
|
|
2425
|
+
}, {
|
|
2426
|
+
default: P(() => [k(N(a.description), 1)]),
|
|
2427
|
+
_: 1
|
|
2428
|
+
})]);
|
|
2390
2429
|
}
|
|
2391
2430
|
//#endregion
|
|
2392
2431
|
//#region components/rich_text_editor/extensions/slash_command/suggestion.js
|
|
2393
|
-
var
|
|
2432
|
+
var Ri = {
|
|
2394
2433
|
allowSpaces: !0,
|
|
2395
2434
|
startOfLine: !0,
|
|
2396
|
-
render:
|
|
2397
|
-
},
|
|
2435
|
+
render: Rr(/* @__PURE__ */ i(Fi, [["render", Li]]), "slash-command")
|
|
2436
|
+
}, zi = {
|
|
2398
2437
|
compatConfig: { MODE: 3 },
|
|
2399
2438
|
name: "DtRichTextEditor",
|
|
2400
2439
|
components: {
|
|
2401
|
-
EditorContent:
|
|
2402
|
-
BubbleMenu:
|
|
2403
|
-
DtButton:
|
|
2404
|
-
DtStack:
|
|
2440
|
+
EditorContent: ee,
|
|
2441
|
+
BubbleMenu: sr,
|
|
2442
|
+
DtButton: h,
|
|
2443
|
+
DtStack: _
|
|
2405
2444
|
},
|
|
2406
2445
|
props: {
|
|
2407
2446
|
modelValue: {
|
|
@@ -2412,9 +2451,9 @@ var Vi = {
|
|
|
2412
2451
|
type: Boolean,
|
|
2413
2452
|
default: !0
|
|
2414
2453
|
},
|
|
2415
|
-
|
|
2454
|
+
allowTyping: {
|
|
2416
2455
|
type: Boolean,
|
|
2417
|
-
default: !
|
|
2456
|
+
default: !0
|
|
2418
2457
|
},
|
|
2419
2458
|
pasteRichText: {
|
|
2420
2459
|
type: Boolean,
|
|
@@ -2440,14 +2479,14 @@ var Vi = {
|
|
|
2440
2479
|
],
|
|
2441
2480
|
default: !1,
|
|
2442
2481
|
validator(e) {
|
|
2443
|
-
return typeof e == "string" ?
|
|
2482
|
+
return typeof e == "string" ? te.includes(e) : !0;
|
|
2444
2483
|
}
|
|
2445
2484
|
},
|
|
2446
2485
|
outputFormat: {
|
|
2447
2486
|
type: String,
|
|
2448
2487
|
default: "html",
|
|
2449
2488
|
validator(e) {
|
|
2450
|
-
return
|
|
2489
|
+
return ne.includes(e);
|
|
2451
2490
|
}
|
|
2452
2491
|
},
|
|
2453
2492
|
placeholder: {
|
|
@@ -2542,9 +2581,9 @@ var Vi = {
|
|
|
2542
2581
|
type: Array,
|
|
2543
2582
|
default: () => []
|
|
2544
2583
|
},
|
|
2545
|
-
|
|
2584
|
+
showLinkBubbleMenu: {
|
|
2546
2585
|
type: Boolean,
|
|
2547
|
-
default: !
|
|
2586
|
+
default: !0
|
|
2548
2587
|
},
|
|
2549
2588
|
preserveWhitespace: {
|
|
2550
2589
|
type: [Boolean, String],
|
|
@@ -2586,7 +2625,7 @@ var Vi = {
|
|
|
2586
2625
|
editor: null,
|
|
2587
2626
|
appendTo: () => n(this.$refs.editor.$el).getRootNode()?.querySelector("body"),
|
|
2588
2627
|
floatingOptions: { placement: "top-start" },
|
|
2589
|
-
i18n: new
|
|
2628
|
+
i18n: new m()
|
|
2590
2629
|
};
|
|
2591
2630
|
},
|
|
2592
2631
|
computed: {
|
|
@@ -2600,15 +2639,15 @@ var Vi = {
|
|
|
2600
2639
|
},
|
|
2601
2640
|
extensions() {
|
|
2602
2641
|
let e = [
|
|
2603
|
-
Ve,
|
|
2604
|
-
tt,
|
|
2605
2642
|
We,
|
|
2606
|
-
|
|
2643
|
+
it,
|
|
2644
|
+
qe,
|
|
2645
|
+
Je
|
|
2607
2646
|
];
|
|
2608
|
-
e.push(this.useDivTags ?
|
|
2647
|
+
e.push(this.useDivTags ? li : Ye), this.allowBold && e.push(Xe), this.allowBlockquote && e.push(Ve), this.allowBulletList && (e.push(Ze), e.push(Qe.extend({ renderText({ node: e }) {
|
|
2609
2648
|
return e.textContent;
|
|
2610
|
-
} })), e.push(
|
|
2611
|
-
let t = this, n =
|
|
2649
|
+
} })), e.push($e)), this.allowItalic && e.push(et), this.allowStrike && e.push(nt), this.allowUnderline && e.push(rt), this.placeholder && e.push(Ke.configure({ placeholder: this.placeholder }));
|
|
2650
|
+
let t = this, n = we.create({ addKeyboardShortcuts() {
|
|
2612
2651
|
return {
|
|
2613
2652
|
"Shift-Enter": ({ editor: e }) => t.allowLineBreaks ? !1 : (e.commands.first(({ commands: e }) => [
|
|
2614
2653
|
() => e.newlineInCode(),
|
|
@@ -2620,7 +2659,7 @@ var Vi = {
|
|
|
2620
2659
|
Enter: () => t.allowLineBreaks ? !1 : (t.$emit("enter"), !0)
|
|
2621
2660
|
};
|
|
2622
2661
|
} });
|
|
2623
|
-
if (e.push(n), this.link && e.push(
|
|
2662
|
+
if (e.push(n), this.link && e.push(tt.extend({
|
|
2624
2663
|
inclusive: !1,
|
|
2625
2664
|
addKeyboardShortcuts() {
|
|
2626
2665
|
return { "Mod-k": () => (t.$emit("edit-link"), !0) };
|
|
@@ -2629,45 +2668,45 @@ var Vi = {
|
|
|
2629
2668
|
HTMLAttributes: { class: "d-link d-wb-break-all" },
|
|
2630
2669
|
openOnClick: !1,
|
|
2631
2670
|
autolink: !0,
|
|
2632
|
-
protocols:
|
|
2633
|
-
})), this.customLink && e.push(this.getExtension(
|
|
2671
|
+
protocols: re
|
|
2672
|
+
})), this.customLink && e.push(this.getExtension(oi, this.customLink)), this.mentionSuggestion) {
|
|
2634
2673
|
let t = {
|
|
2635
2674
|
...this.mentionSuggestion,
|
|
2636
|
-
...
|
|
2675
|
+
...ji
|
|
2637
2676
|
};
|
|
2638
|
-
e.push(
|
|
2677
|
+
e.push(pi.configure({ suggestion: t }));
|
|
2639
2678
|
}
|
|
2640
2679
|
if (this.channelSuggestion) {
|
|
2641
2680
|
let t = {
|
|
2642
2681
|
...this.channelSuggestion,
|
|
2643
|
-
...
|
|
2682
|
+
...Pi
|
|
2644
2683
|
};
|
|
2645
|
-
e.push(
|
|
2684
|
+
e.push(_i.configure({ suggestion: t }));
|
|
2646
2685
|
}
|
|
2647
2686
|
if (this.slashCommandSuggestion) {
|
|
2648
2687
|
let t = {
|
|
2649
2688
|
...this.slashCommandSuggestion,
|
|
2650
|
-
...
|
|
2689
|
+
...Ri
|
|
2651
2690
|
};
|
|
2652
|
-
e.push(
|
|
2691
|
+
e.push(Si.configure({
|
|
2653
2692
|
suggestion: t,
|
|
2654
2693
|
onSelectedCommand: (e) => {
|
|
2655
2694
|
this.$emit("selected-command", e);
|
|
2656
2695
|
}
|
|
2657
2696
|
}));
|
|
2658
2697
|
}
|
|
2659
|
-
return this.allowVariable && e.push(
|
|
2698
|
+
return this.allowVariable && e.push(Di.configure({ variableItems: this.variableItems })), e.push(Yr), e.push(at.configure({ types: ["paragraph"] })), this.allowCode && e.push(Ue), this.allowCodeblock && e.push(He.extend({ renderText({ node: e }) {
|
|
2660
2699
|
return `\`\`\`\n${e.textContent}\n\`\`\``;
|
|
2661
|
-
} }).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(
|
|
2700
|
+
} }).configure({ HTMLAttributes: { class: "d-rich-text-editor__code-block" } })), this.allowInlineImages && e.push(si.configure({ resize: {
|
|
2662
2701
|
enabled: this.allowImageResize,
|
|
2663
2702
|
alwaysPreserveAspectRatio: !0
|
|
2664
|
-
} })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(
|
|
2703
|
+
} })), (this.allowFontFamily || this.allowFontColor || this.allowFontSize || this.allowBackgroundColor || this.allowLineHeight) && (e.push(dt.configure({
|
|
2665
2704
|
color: this.allowFontColor,
|
|
2666
2705
|
backgroundColor: this.allowBackgroundColor,
|
|
2667
2706
|
fontFamily: this.allowFontFamily,
|
|
2668
2707
|
fontSize: this.allowFontSize,
|
|
2669
2708
|
lineHeight: this.allowLineHeight
|
|
2670
|
-
})), e.push(
|
|
2709
|
+
})), e.push(_r)), this.additionalExtensions.length && e.push(...this.additionalExtensions), this.allowTables && e.push(fr.configure({ resizable: !0 }), pr, gr, hr, Ge), e;
|
|
2671
2710
|
},
|
|
2672
2711
|
inputAttrs() {
|
|
2673
2712
|
let e = {
|
|
@@ -2706,7 +2745,7 @@ var Vi = {
|
|
|
2706
2745
|
},
|
|
2707
2746
|
methods: {
|
|
2708
2747
|
createEditor() {
|
|
2709
|
-
this.editor = new
|
|
2748
|
+
this.editor = new x({
|
|
2710
2749
|
autofocus: this.autoFocus,
|
|
2711
2750
|
content: this.modelValue,
|
|
2712
2751
|
editable: this.editable,
|
|
@@ -2719,7 +2758,7 @@ var Vi = {
|
|
|
2719
2758
|
class: this.inputClass
|
|
2720
2759
|
},
|
|
2721
2760
|
handleKeyDown: (e, t) => {
|
|
2722
|
-
if (
|
|
2761
|
+
if (this.allowTyping) return !1;
|
|
2723
2762
|
let n = ["Backspace"];
|
|
2724
2763
|
return !this.allowLineBreaks && !t.shiftKey && n.push("Enter"), !n.includes(t.key);
|
|
2725
2764
|
},
|
|
@@ -2755,7 +2794,7 @@ var Vi = {
|
|
|
2755
2794
|
let e = this.editor.getAttributes("link").href;
|
|
2756
2795
|
window.open(e, "_blank");
|
|
2757
2796
|
},
|
|
2758
|
-
setLink(e, t, n, r =
|
|
2797
|
+
setLink(e, t, n, r = re, i) {
|
|
2759
2798
|
if (!e) {
|
|
2760
2799
|
this.removeLink();
|
|
2761
2800
|
return;
|
|
@@ -2773,9 +2812,9 @@ var Vi = {
|
|
|
2773
2812
|
processValue(e, t = !0) {
|
|
2774
2813
|
if (!this.editor) return;
|
|
2775
2814
|
let n = this.getOutput();
|
|
2776
|
-
if (!(t &&
|
|
2815
|
+
if (!(t && _t(e, n))) {
|
|
2777
2816
|
if (typeof e == "string" && this.outputFormat === "text") {
|
|
2778
|
-
let t = RegExp(`(${
|
|
2817
|
+
let t = RegExp(`(${Se})`, "g");
|
|
2779
2818
|
e = e?.replace(t, "<emoji-component code=\"$1\"></emoji-component>");
|
|
2780
2819
|
}
|
|
2781
2820
|
this.editor.commands.setContent(e, {
|
|
@@ -2846,7 +2885,7 @@ var Vi = {
|
|
|
2846
2885
|
this.$emit("html-input", n);
|
|
2847
2886
|
let r = this.editor.getText({ blockSeparator: "\n" });
|
|
2848
2887
|
this.$emit("text-input", r);
|
|
2849
|
-
let i =
|
|
2888
|
+
let i = E(t, this.extensions);
|
|
2850
2889
|
this.$emit("markdown-input", i);
|
|
2851
2890
|
},
|
|
2852
2891
|
addEditorListeners() {
|
|
@@ -2874,7 +2913,7 @@ var Vi = {
|
|
|
2874
2913
|
switch (this.outputFormat) {
|
|
2875
2914
|
case "json": return this.editor.getJSON();
|
|
2876
2915
|
case "html": return this.editor.getHTML();
|
|
2877
|
-
case "markdown": return
|
|
2916
|
+
case "markdown": return E(this.editor.getJSON(), this.extensions);
|
|
2878
2917
|
default: return this.editor.getText({ blockSeparator: "\n" });
|
|
2879
2918
|
}
|
|
2880
2919
|
},
|
|
@@ -2892,10 +2931,10 @@ var Vi = {
|
|
|
2892
2931
|
this.editor.commands.focus();
|
|
2893
2932
|
}
|
|
2894
2933
|
}
|
|
2895
|
-
},
|
|
2896
|
-
function
|
|
2897
|
-
let o =
|
|
2898
|
-
return
|
|
2934
|
+
}, Bi = { class: "d-popover__dialog" };
|
|
2935
|
+
function Vi(e, t, n, r, i, a) {
|
|
2936
|
+
let o = M("dt-button"), s = M("dt-stack"), c = M("bubble-menu"), l = M("editor-content");
|
|
2937
|
+
return j(), ae("div", null, [i.editor && n.link && n.showLinkBubbleMenu ? (j(), D(c, {
|
|
2899
2938
|
key: 0,
|
|
2900
2939
|
editor: i.editor,
|
|
2901
2940
|
"should-show": a.bubbleMenuShouldShow,
|
|
@@ -2903,34 +2942,34 @@ function Wi(e, t, n, r, i, a) {
|
|
|
2903
2942
|
"append-to": i.appendTo,
|
|
2904
2943
|
style: { visibility: "visible" }
|
|
2905
2944
|
}, {
|
|
2906
|
-
default:
|
|
2945
|
+
default: P(() => [oe("div", Bi, [A(s, {
|
|
2907
2946
|
direction: "row",
|
|
2908
2947
|
class: "d-rich-text-editor-bubble-menu__button-stack",
|
|
2909
2948
|
gap: "0"
|
|
2910
2949
|
}, {
|
|
2911
|
-
default:
|
|
2912
|
-
|
|
2950
|
+
default: P(() => [
|
|
2951
|
+
A(o, {
|
|
2913
2952
|
kind: "muted",
|
|
2914
2953
|
importance: "clear",
|
|
2915
2954
|
onClick: a.editLink
|
|
2916
2955
|
}, {
|
|
2917
|
-
default:
|
|
2956
|
+
default: P(() => [k(N(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)]),
|
|
2918
2957
|
_: 1
|
|
2919
2958
|
}, 8, ["onClick"]),
|
|
2920
|
-
|
|
2959
|
+
A(o, {
|
|
2921
2960
|
kind: "muted",
|
|
2922
2961
|
importance: "clear",
|
|
2923
2962
|
onClick: a.openLink
|
|
2924
2963
|
}, {
|
|
2925
|
-
default:
|
|
2964
|
+
default: P(() => [k(N(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)]),
|
|
2926
2965
|
_: 1
|
|
2927
2966
|
}, 8, ["onClick"]),
|
|
2928
|
-
|
|
2929
|
-
kind: "
|
|
2967
|
+
A(o, {
|
|
2968
|
+
kind: "critical",
|
|
2930
2969
|
importance: "clear",
|
|
2931
2970
|
onClick: a.removeLink
|
|
2932
2971
|
}, {
|
|
2933
|
-
default:
|
|
2972
|
+
default: P(() => [k(N(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)]),
|
|
2934
2973
|
_: 1
|
|
2935
2974
|
}, 8, ["onClick"])
|
|
2936
2975
|
]),
|
|
@@ -2942,15 +2981,15 @@ function Wi(e, t, n, r, i, a) {
|
|
|
2942
2981
|
"should-show",
|
|
2943
2982
|
"options",
|
|
2944
2983
|
"append-to"
|
|
2945
|
-
])) :
|
|
2984
|
+
])) : O("", !0), A(l, ue({
|
|
2946
2985
|
ref: "editor",
|
|
2947
2986
|
editor: i.editor,
|
|
2948
2987
|
class: "d-rich-text-editor",
|
|
2949
2988
|
"data-qa": "dt-rich-text-editor"
|
|
2950
2989
|
}, a.attrs), null, 16, ["editor"])]);
|
|
2951
2990
|
}
|
|
2952
|
-
var
|
|
2991
|
+
var Hi = /* @__PURE__ */ i(zi, [["render", Vi]]);
|
|
2953
2992
|
//#endregion
|
|
2954
|
-
export {
|
|
2993
|
+
export { Hi as t };
|
|
2955
2994
|
|
|
2956
|
-
//# sourceMappingURL=rich_text_editor-
|
|
2995
|
+
//# sourceMappingURL=rich_text_editor-CEW74QNe.js.map
|