@dialpad/dialtone-vue 3.210.0 → 3.211.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/common/constants/index.cjs +1 -1
- package/dist/common/constants/index.cjs.map +1 -1
- package/dist/common/constants/index.js +10 -10
- package/dist/common/constants/index.js.map +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs +1 -1
- package/dist/common/mixins/keyboard-list-navigation.cjs.map +1 -1
- package/dist/common/mixins/keyboard-list-navigation.js +7 -7
- package/dist/common/mixins/keyboard-list-navigation.js.map +1 -1
- package/dist/component-documentation.json +1 -1
- package/dist/dialtone-vue.cjs +1 -1
- package/dist/dialtone-vue.js +425 -387
- package/dist/dialtone-vue.js.map +1 -1
- package/dist/lib/attachment-carousel/attachment-carousel.cjs +1 -1
- package/dist/lib/attachment-carousel/attachment-carousel.cjs.map +1 -1
- package/dist/lib/attachment-carousel/attachment-carousel.js +64 -117
- package/dist/lib/attachment-carousel/attachment-carousel.js.map +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 +169 -43
- 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 +185 -100
- package/dist/lib/avatar/avatar.js.map +1 -1
- package/dist/lib/avatar/index.cjs +1 -1
- package/dist/lib/avatar/index.js +16 -10
- package/dist/lib/badge/badge.cjs +1 -1
- package/dist/lib/badge/badge.cjs.map +1 -1
- package/dist/lib/badge/badge.js +47 -35
- package/dist/lib/badge/badge.js.map +1 -1
- package/dist/lib/banner/banner.cjs +1 -1
- package/dist/lib/banner/banner.cjs.map +1 -1
- package/dist/lib/banner/banner.js +19 -18
- package/dist/lib/banner/banner.js.map +1 -1
- 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 +3 -1
- 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 +21 -18
- 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 +23 -19
- 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 +171 -66
- package/dist/lib/button/button.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 +13 -14
- 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 +42 -30
- 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 +38 -26
- 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 +47 -47
- package/dist/lib/callbox/callbox.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 +97 -43
- package/dist/lib/checkbox/checkbox.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 +1 -1
- 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 +6 -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 +34 -13
- package/dist/lib/codeblock/codeblock.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 +31 -31
- package/dist/lib/combobox-multi-select/combobox-multi-select.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 +33 -33
- 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 +56 -56
- 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 +1 -1
- package/dist/lib/contact-row/contact-row.js.map +1 -1
- package/dist/lib/datepicker/datepicker.cjs +1 -1
- package/dist/lib/datepicker/datepicker.cjs.map +1 -1
- package/dist/lib/datepicker/datepicker.js +13 -17
- package/dist/lib/datepicker/datepicker.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 +29 -18
- package/dist/lib/dropdown/dropdown-list.js.map +1 -1
- package/dist/lib/editor/editor.cjs.map +1 -1
- 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.cjs.map +1 -1
- package/dist/lib/emoji-picker/emoji-picker.js +2 -2
- package/dist/lib/emoji-picker/emoji-picker.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 +28 -16
- 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 +54 -32
- 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 +56 -53
- 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 +11 -11
- 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 +346 -0
- package/dist/lib/filter-pill/filter-pill.js.map +1 -0
- package/dist/lib/filter-pill/index.cjs +2 -0
- package/dist/lib/filter-pill/index.cjs.map +1 -0
- package/dist/lib/filter-pill/index.js +5 -0
- package/dist/lib/filter-pill/index.js.map +1 -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 +153 -99
- package/dist/lib/general-row/general-row.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 +1 -1
- 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 +31 -31
- package/dist/lib/grouped-chip/grouped-chip.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 +17 -22
- 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 +144 -72
- 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 +35 -28
- 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 +74 -39
- package/dist/lib/item-layout/item-layout.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 +56 -43
- 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 +263 -0
- package/dist/lib/kitchen-sink/kitchen-sink-view.js.map +1 -0
- package/dist/lib/link/link.cjs +1 -1
- package/dist/lib/link/link.cjs.map +1 -1
- package/dist/lib/link/link.js +22 -12
- 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 +25 -15
- package/dist/lib/list-item/list-item.js.map +1 -1
- package/dist/lib/loader/loader.cjs +13 -1
- package/dist/lib/loader/loader.cjs.map +1 -1
- package/dist/lib/loader/loader.js +31 -20
- package/dist/lib/loader/loader.js.map +1 -1
- package/dist/lib/message-input/message-input.cjs +1 -1
- package/dist/lib/message-input/message-input.cjs.map +1 -1
- package/dist/lib/message-input/message-input.js +39 -39
- package/dist/lib/message-input/message-input.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 +74 -61
- package/dist/lib/modal/modal.js.map +1 -1
- package/dist/lib/mode-island/index.cjs +2 -0
- package/dist/lib/mode-island/index.cjs.map +1 -0
- package/dist/lib/mode-island/index.js +7 -0
- package/dist/lib/mode-island/index.js.map +1 -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 +12 -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 +130 -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 +32 -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 +12 -0
- package/dist/lib/mode-island/validators.js.map +1 -0
- 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 +7 -7
- package/dist/lib/notice/notice-action.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 +38 -21
- package/dist/lib/notice/notice-content.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 +20 -19
- 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 +15 -14
- package/dist/lib/pagination/pagination.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 +1 -1
- package/dist/lib/popover/popover.js.map +1 -1
- package/dist/lib/progress-circle/index.cjs +2 -0
- package/dist/lib/progress-circle/index.cjs.map +1 -0
- package/dist/lib/progress-circle/index.js +10 -0
- package/dist/lib/progress-circle/index.js.map +1 -0
- package/dist/lib/progress-circle/progress-circle-constants.cjs +2 -0
- package/dist/lib/progress-circle/progress-circle-constants.cjs.map +1 -0
- package/dist/lib/progress-circle/progress-circle-constants.js +25 -0
- package/dist/lib/progress-circle/progress-circle-constants.js.map +1 -0
- package/dist/lib/progress-circle/progress-circle.cjs +2 -0
- package/dist/lib/progress-circle/progress-circle.cjs.map +1 -0
- package/dist/lib/progress-circle/progress-circle.js +136 -0
- package/dist/lib/progress-circle/progress-circle.js.map +1 -0
- package/dist/lib/radio/radio.cjs +1 -1
- package/dist/lib/radio/radio.cjs.map +1 -1
- package/dist/lib/radio/radio.js +103 -41
- package/dist/lib/radio/radio.js.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.cjs +4 -4
- package/dist/lib/rich-text-editor/rich-text-editor.cjs.map +1 -1
- package/dist/lib/rich-text-editor/rich-text-editor.js +607 -560
- package/dist/lib/rich-text-editor/rich-text-editor.js.map +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 +4 -2
- 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 +15 -13
- package/dist/lib/root-layout/root-layout.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 +113 -61
- 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 +14 -15
- package/dist/lib/settings-menu-button/settings-menu-button.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} +13 -13
- 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 +231 -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 +334 -98
- package/dist/lib/split-button/split-button.js.map +1 -1
- package/dist/lib/tab/index.cjs +1 -1
- package/dist/lib/tab/index.js +13 -11
- 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 +107 -46
- 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 +128 -37
- 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 +13 -11
- package/dist/lib/tab/tabs-constants.js.map +1 -1
- package/dist/lib/text/index.cjs +2 -0
- package/dist/lib/text/index.cjs.map +1 -0
- package/dist/lib/text/index.js +20 -0
- package/dist/lib/text/index.js.map +1 -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 +69 -0
- package/dist/lib/text/text-constants.js.map +1 -0
- package/dist/lib/text/text-tone-tokens.cjs +2 -0
- package/dist/lib/text/text-tone-tokens.cjs.map +1 -0
- package/dist/lib/text/text-tone-tokens.js +33 -0
- package/dist/lib/text/text-tone-tokens.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 +203 -0
- package/dist/lib/text/text.js.map +1 -0
- package/dist/lib/toast/toast.cjs +1 -1
- package/dist/lib/toast/toast.cjs.map +1 -1
- package/dist/lib/toast/toast.js +10 -9
- package/dist/lib/toast/toast.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 +37 -33
- package/dist/lib/toggle/toggle.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 +16 -16
- package/dist/lib/top-banner-info/top-banner-info.js.map +1 -1
- package/dist/localization/en-US.cjs +2 -0
- package/dist/localization/en-US.cjs.map +1 -1
- package/dist/localization/en-US.js +2 -0
- package/dist/localization/en-US.js.map +1 -1
- package/dist/localization/es-LA.cjs +1 -1
- package/dist/localization/es-LA.cjs.map +1 -1
- package/dist/localization/es-LA.js +1 -1
- package/dist/localization/es-LA.js.map +1 -1
- package/dist/localization/it-IT.cjs +3 -3
- package/dist/localization/it-IT.cjs.map +1 -1
- package/dist/localization/it-IT.js +3 -3
- package/dist/localization/it-IT.js.map +1 -1
- package/dist/localization/nl-NL.cjs +2 -2
- package/dist/localization/nl-NL.cjs.map +1 -1
- package/dist/localization/nl-NL.js +2 -2
- package/dist/localization/nl-NL.js.map +1 -1
- package/dist/localization/ru-RU.cjs +1 -1
- package/dist/localization/ru-RU.cjs.map +1 -1
- package/dist/localization/ru-RU.js +1 -1
- package/dist/localization/ru-RU.js.map +1 -1
- package/dist/localization/zh-CN.cjs +1 -1
- package/dist/localization/zh-CN.cjs.map +1 -1
- package/dist/localization/zh-CN.js +1 -1
- package/dist/localization/zh-CN.js.map +1 -1
- package/dist/node_modules/@tiptap/vue-3.cjs.map +1 -1
- package/dist/node_modules/@tiptap/vue-3.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/common/mixins/keyboard_list_navigation.d.ts.map +1 -1
- package/dist/types/common/sr_only_close_button.vue.d.ts +38 -2
- package/dist/types/components/avatar/avatar.vue.d.ts +71 -25
- package/dist/types/components/avatar/avatar.vue.d.ts.map +1 -1
- package/dist/types/components/avatar/avatar_constants.d.ts +86 -29
- package/dist/types/components/avatar/avatar_constants.d.ts.map +1 -1
- package/dist/types/components/avatar/index.d.ts +1 -1
- package/dist/types/components/badge/badge.vue.d.ts.map +1 -1
- package/dist/types/components/banner/banner.vue.d.ts +216 -5
- package/dist/types/components/banner/banner.vue.d.ts.map +1 -1
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts +9 -0
- package/dist/types/components/breadcrumbs/breadcrumb_item.vue.d.ts.map +1 -1
- package/dist/types/components/breadcrumbs/breadcrumbs.vue.d.ts +9 -0
- package/dist/types/components/button/button.vue.d.ts +38 -2
- package/dist/types/components/button/button.vue.d.ts.map +1 -1
- package/dist/types/components/button/button_constants.d.ts +4 -0
- package/dist/types/components/button/button_constants.d.ts.map +1 -1
- package/dist/types/components/checkbox/checkbox.vue.d.ts +178 -4
- package/dist/types/components/checkbox/checkbox.vue.d.ts.map +1 -1
- package/dist/types/components/checkbox_group/checkbox_group.vue.d.ts +138 -0
- package/dist/types/components/chip/chip.vue.d.ts +38 -2
- package/dist/types/components/chip/chip.vue.d.ts.map +1 -1
- package/dist/types/components/codeblock/codeblock.vue.d.ts +22 -1
- package/dist/types/components/codeblock/codeblock.vue.d.ts.map +1 -1
- package/dist/types/components/codeblock/codeblock_constants.d.ts +3 -0
- package/dist/types/components/codeblock/codeblock_constants.d.ts.map +1 -0
- package/dist/types/components/collapsible/collapsible.vue.d.ts +38 -2
- package/dist/types/components/collapsible/collapsible.vue.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox.vue.d.ts +81 -15
- package/dist/types/components/combobox/combobox.vue.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts +40 -7
- package/dist/types/components/combobox/combobox_empty-list.vue.d.ts.map +1 -1
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts +40 -7
- package/dist/types/components/combobox/combobox_loading-list.vue.d.ts.map +1 -1
- package/dist/types/components/datepicker/modules/month-year-picker.vue.d.ts.map +1 -1
- package/dist/types/components/dropdown/dropdown.vue.d.ts +76 -4
- package/dist/types/components/dropdown/dropdown.vue.d.ts.map +1 -1
- package/dist/types/components/emoji_picker/emoji_picker.vue.d.ts +190 -0
- package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts +190 -0
- package/dist/types/components/emoji_picker/modules/emoji_search.vue.d.ts.map +1 -1
- package/dist/types/components/empty_state/empty_state.vue.d.ts.map +1 -1
- package/dist/types/components/empty_state/empty_state_constants.d.ts +23 -5
- package/dist/types/components/filter_pill/filter_pill.vue.d.ts +2382 -0
- package/dist/types/components/filter_pill/filter_pill.vue.d.ts.map +1 -0
- package/dist/types/components/filter_pill/index.d.ts +2 -0
- package/dist/types/components/filter_pill/index.d.ts.map +1 -0
- package/dist/types/components/hovercard/hovercard.vue.d.ts +152 -8
- package/dist/types/components/hovercard/hovercard.vue.d.ts.map +1 -1
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts +76 -4
- package/dist/types/components/image_viewer/image_viewer.vue.d.ts.map +1 -1
- package/dist/types/components/input/input.vue.d.ts +182 -0
- package/dist/types/components/input/input.vue.d.ts.map +1 -1
- package/dist/types/components/input/input_constants.d.ts +4 -11
- package/dist/types/components/input_group/input_group.vue.d.ts +138 -0
- package/dist/types/components/input_group/input_group.vue.d.ts.map +1 -1
- package/dist/types/components/item_layout/item_layout.vue.d.ts +37 -6
- package/dist/types/components/item_layout/item_layout.vue.d.ts.map +1 -1
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts +138 -0
- package/dist/types/components/keyboard_shortcut/keyboard_shortcut.vue.d.ts.map +1 -1
- package/dist/types/components/link/link.vue.d.ts +9 -0
- package/dist/types/components/list_item/list_item.vue.d.ts +40 -7
- package/dist/types/components/list_item/list_item.vue.d.ts.map +1 -1
- package/dist/types/components/loader/loader.vue.d.ts +1 -32
- package/dist/types/components/loader/loader.vue.d.ts.map +1 -1
- package/dist/types/components/modal/modal.vue.d.ts +214 -4
- package/dist/types/components/modal/modal.vue.d.ts.map +1 -1
- package/dist/types/components/mode_island/index.d.ts +3 -0
- package/dist/types/components/mode_island/index.d.ts.map +1 -0
- package/dist/types/components/mode_island/mode_island.vue.d.ts +3 -0
- package/dist/types/components/mode_island/mode_island.vue.d.ts.map +1 -0
- package/dist/types/components/mode_island/mode_island_constants.d.ts +10 -0
- package/dist/types/components/mode_island/mode_island_constants.d.ts.map +1 -0
- package/dist/types/components/mode_island/utils.d.ts +12 -0
- package/dist/types/components/mode_island/utils.d.ts.map +1 -0
- package/dist/types/components/mode_island/validators.d.ts +6 -0
- package/dist/types/components/mode_island/validators.d.ts.map +1 -0
- package/dist/types/components/notice/notice.vue.d.ts +216 -5
- package/dist/types/components/notice/notice.vue.d.ts.map +1 -1
- package/dist/types/components/notice/notice_action.vue.d.ts +76 -4
- package/dist/types/components/notice/notice_action.vue.d.ts.map +1 -1
- package/dist/types/components/notice/notice_content.vue.d.ts +140 -1
- package/dist/types/components/notice/notice_content.vue.d.ts.map +1 -1
- package/dist/types/components/pagination/pagination.vue.d.ts +38 -2
- package/dist/types/components/pagination/pagination.vue.d.ts.map +1 -1
- package/dist/types/components/popover/popover.vue.d.ts +76 -4
- package/dist/types/components/popover/popover.vue.d.ts.map +1 -1
- package/dist/types/components/popover/popover_header_footer.vue.d.ts +38 -2
- package/dist/types/components/popover/popover_header_footer.vue.d.ts.map +1 -1
- package/dist/types/components/progress_circle/index.d.ts +3 -0
- package/dist/types/components/progress_circle/index.d.ts.map +1 -0
- package/dist/types/components/progress_circle/progress_circle.vue.d.ts +70 -0
- package/dist/types/components/progress_circle/progress_circle.vue.d.ts.map +1 -0
- package/dist/types/components/progress_circle/progress_circle_constants.d.ts +23 -0
- package/dist/types/components/progress_circle/progress_circle_constants.d.ts.map +1 -0
- package/dist/types/components/radio/radio.vue.d.ts +173 -0
- package/dist/types/components/radio/radio.vue.d.ts.map +1 -1
- package/dist/types/components/radio_group/radio_group.vue.d.ts +138 -0
- package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts +9 -0
- package/dist/types/components/rich_text_editor/extensions/channels/ChannelComponent.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionComponent.vue.d.ts +9 -0
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts +209 -25
- package/dist/types/components/rich_text_editor/extensions/mentions/MentionSuggestion.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts +140 -1
- package/dist/types/components/rich_text_editor/extensions/slash_command/SlashCommandSuggestion.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts +40 -7
- package/dist/types/components/rich_text_editor/extensions/suggestion/SuggestionList.vue.d.ts.map +1 -1
- package/dist/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts +296 -6
- package/dist/types/components/rich_text_editor/extensions/variable/VariableComponent.vue.d.ts.map +1 -1
- package/dist/types/components/root_layout/root_layout_constants.d.ts +2 -0
- package/dist/types/components/root_layout/root_layout_constants.d.ts.map +1 -1
- package/dist/types/components/select_menu/select_menu.vue.d.ts +172 -13
- package/dist/types/components/select_menu/select_menu.vue.d.ts.map +1 -1
- package/dist/types/components/split_button/{split_button-omega.vue.d.ts → split_button-end.vue.d.ts} +39 -3
- package/dist/types/components/split_button/{split_button-omega.vue.d.ts.map → split_button-end.vue.d.ts.map} +1 -1
- package/dist/types/components/split_button/{split_button-alpha.vue.d.ts → split_button-start.vue.d.ts} +103 -4
- package/dist/types/components/split_button/split_button-start.vue.d.ts.map +1 -0
- package/dist/types/components/split_button/split_button.vue.d.ts +443 -34
- package/dist/types/components/split_button/split_button.vue.d.ts.map +1 -1
- package/dist/types/components/tab/index.d.ts +1 -1
- package/dist/types/components/tab/tab.vue.d.ts +73 -7
- package/dist/types/components/tab/tab.vue.d.ts.map +1 -1
- package/dist/types/components/tab/tab_group.vue.d.ts +42 -0
- package/dist/types/components/tab/tab_group.vue.d.ts.map +1 -1
- package/dist/types/components/tab/tabs_constants.d.ts +5 -3
- package/dist/types/components/tab/tabs_constants.d.ts.map +1 -1
- package/dist/types/components/text/index.d.ts +3 -0
- package/dist/types/components/text/index.d.ts.map +1 -0
- package/dist/types/components/text/scripts/update-text-tone-tokens.d.cts +3 -0
- package/dist/types/components/text/scripts/update-text-tone-tokens.d.cts.map +1 -0
- package/dist/types/components/text/scripts/update_text_tone_tokens.d.cts +3 -0
- package/dist/types/components/text/scripts/update_text_tone_tokens.d.cts.map +1 -0
- package/dist/types/components/text/scripts/update_text_tone_tokens.d.ts +1 -0
- package/dist/types/components/text/scripts/update_text_tone_tokens.d.ts.map +1 -0
- package/dist/types/components/text/text.vue.d.ts +141 -0
- package/dist/types/components/text/text.vue.d.ts.map +1 -0
- package/dist/types/components/text/text_constants.d.ts +73 -0
- package/dist/types/components/text/text_constants.d.ts.map +1 -0
- package/dist/types/components/text/text_tone_tokens.d.ts +3 -0
- package/dist/types/components/text/text_tone_tokens.d.ts.map +1 -0
- package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts +216 -5
- package/dist/types/components/toast/layouts/toast_layout_alternate.vue.d.ts.map +1 -1
- package/dist/types/components/toast/layouts/toast_layout_default.vue.d.ts +216 -5
- package/dist/types/components/toast/layouts/toast_layout_default.vue.d.ts.map +1 -1
- package/dist/types/components/toast/toast.vue.d.ts +864 -20
- package/dist/types/components/toast/toast.vue.d.ts.map +1 -1
- package/dist/types/components/toggle/toggle.vue.d.ts +9 -1
- package/dist/types/components/toggle/toggle.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts +38 -2
- package/dist/types/recipes/buttons/callbar_button/callbar_button.vue.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts +152 -8
- package/dist/types/recipes/buttons/callbar_button_with_dropdown/callbar_button_with_dropdown.vue.d.ts.map +1 -1
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts +152 -8
- package/dist/types/recipes/buttons/callbar_button_with_popover/callbar_button_with_popover.vue.d.ts.map +1 -1
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts +114 -6
- package/dist/types/recipes/cards/ivr_node/ivr_node.vue.d.ts.map +1 -1
- package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts +38 -2
- package/dist/types/recipes/chips/grouped_chip/grouped_chip.vue.d.ts.map +1 -1
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts +239 -35
- package/dist/types/recipes/comboboxes/combobox_with_popover/combobox_with_popover.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts +196 -12
- package/dist/types/recipes/conversation_view/attachment_carousel/attachment_carousel.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts +158 -10
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/image_carousel.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/editor/EditorToolbarButton.vue.d.ts +38 -2
- package/dist/types/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts +114 -6
- package/dist/types/recipes/conversation_view/editor/EditorToolbarDropdownButton.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts +114 -6
- package/dist/types/recipes/conversation_view/editor/EditorToolbarPopoverButton.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts +38 -2
- package/dist/types/recipes/conversation_view/emoji_row/emoji_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts +75 -8
- package/dist/types/recipes/conversation_view/feed_item_pill/feed_item_pill.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts +111 -32
- package/dist/types/recipes/conversation_view/feed_item_row/feed_item_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts +75 -8
- package/dist/types/recipes/conversation_view/message_input/extensions/meeting_pill/MeetingPill.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts +176 -2
- package/dist/types/recipes/conversation_view/message_input/message_input_button.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts +472 -8
- package/dist/types/recipes/conversation_view/message_input/message_input_link.vue.d.ts.map +1 -1
- package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts +176 -2
- package/dist/types/recipes/conversation_view/message_input/message_input_topbar.vue.d.ts.map +1 -1
- package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts +38 -2
- package/dist/types/recipes/header/settings_menu_button/settings_menu_button.vue.d.ts.map +1 -1
- package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts +108 -31
- package/dist/types/recipes/item_layout/contact_info/contact_info.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts +71 -25
- package/dist/types/recipes/leftbar/callbox/callbox.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts +38 -2
- package/dist/types/recipes/leftbar/contact_centers_row/contact_centers_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts +467 -28
- package/dist/types/recipes/leftbar/contact_row/contact_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts +396 -3
- package/dist/types/recipes/leftbar/general_row/general_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts +396 -3
- package/dist/types/recipes/leftbar/group_row/group_row.vue.d.ts.map +1 -1
- package/dist/types/recipes/notices/top_banner_info/top_banner_info.vue.d.ts.map +1 -1
- package/package.json +6 -5
- 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 -138
- 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/types/components/split_button/split_button-alpha.vue.d.ts.map +0 -1
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts +0 -30
- package/dist/types/recipes/conversation_view/attachment_carousel/media_components/progress_bar.vue.d.ts.map +0 -1
|
@@ -1,119 +1,120 @@
|
|
|
1
|
-
import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeViewRenderer as mt, EditorContent as
|
|
2
|
-
import { isTextSelection as
|
|
3
|
-
import { Plugin as It, PluginKey as
|
|
4
|
-
import { CellSelection as
|
|
5
|
-
import { defineComponent as le, ref as ce, onMounted as de, nextTick as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { UndoRedo as
|
|
11
|
-
import
|
|
1
|
+
import { nodeViewProps as ft, NodeViewWrapper as pt, VueRenderer as je, VueNodeViewRenderer as mt, EditorContent as Fe, Editor as Ke } from "../../node_modules/@tiptap/vue-3.js";
|
|
2
|
+
import { isTextSelection as We, posToDOMRect as re, getText as qe, getTextSerializersFromSchema as Xe, Node as ae, nodePasteRule as Et, InputRule as Ye, mergeAttributes as it, getMarksBetween as Ge, combineTransactionSteps as Je, getChangedRanges as Ze, findChildrenInRange as Qe, Mark as tn, nodeInputRule as en, Extension as nn } from "@tiptap/core";
|
|
3
|
+
import { Plugin as It, PluginKey as st, NodeSelection as on } from "@tiptap/pm/state";
|
|
4
|
+
import { CellSelection as sn } from "@tiptap/pm/tables";
|
|
5
|
+
import { defineComponent as le, ref as ce, onMounted as de, nextTick as rn, onBeforeUnmount as ue, h as he, resolveComponent as x, openBlock as k, createBlock as E, withCtx as T, createVNode as A, createElementBlock as ut, withDirectives as an, createElementVNode as ct, Fragment as ln, renderList as cn, withModifiers as At, normalizeClass as fe, resolveDynamicComponent as dn, vShow as un, markRaw as hn, createTextVNode as Y, toDisplayString as $, createCommentVNode as ot, withKeys as fn, mergeProps as pe } from "vue";
|
|
6
|
+
import pn from "@tiptap/extension-blockquote";
|
|
7
|
+
import mn from "@tiptap/extension-code-block";
|
|
8
|
+
import gn from "@tiptap/extension-code";
|
|
9
|
+
import yn from "@tiptap/extension-document";
|
|
10
|
+
import { UndoRedo as wn, Placeholder as bn, Gapcursor as vn } from "@tiptap/extensions";
|
|
11
|
+
import xn from "@tiptap/extension-hard-break";
|
|
12
12
|
import me from "@tiptap/extension-paragraph";
|
|
13
|
-
import
|
|
14
|
-
import { BulletList as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import { Table as
|
|
22
|
-
import { TextStyleKit as
|
|
23
|
-
import
|
|
13
|
+
import Tn from "@tiptap/extension-bold";
|
|
14
|
+
import { BulletList as _n, ListItem as kn, OrderedList as Cn } from "@tiptap/extension-list";
|
|
15
|
+
import On from "@tiptap/extension-italic";
|
|
16
|
+
import En from "@tiptap/extension-link";
|
|
17
|
+
import Sn from "@tiptap/extension-strike";
|
|
18
|
+
import Ln from "@tiptap/extension-underline";
|
|
19
|
+
import In from "@tiptap/extension-text";
|
|
20
|
+
import An from "@tiptap/extension-text-align";
|
|
21
|
+
import { Table as Dn, TableRow as Rn, TableHeader as Mn, TableCell as Hn } from "@tiptap/extension-table";
|
|
22
|
+
import { TextStyleKit as $n } from "@tiptap/extension-text-style";
|
|
23
|
+
import Bn from "@tiptap/suggestion";
|
|
24
24
|
import { emojiPattern as ge } from "regex-combined-emojis";
|
|
25
25
|
import { _ as q } from "../../_plugin-vue_export-helper-CHgC5LLL.js";
|
|
26
26
|
import ye from "../emoji/emoji.js";
|
|
27
|
-
import { getEmojiData as
|
|
28
|
-
import
|
|
27
|
+
import { getEmojiData as Nn, emojiRegex as Pn, stringToUnicode as Un, codeToEmojiData as Dt, emojiShortCodeRegex as Vn } from "../../common/emoji/index.js";
|
|
28
|
+
import zn from "../list-item/list-item.js";
|
|
29
29
|
import gt from "../stack/stack.js";
|
|
30
|
-
import { linkRegex as jn, getPhoneNumberRegex as
|
|
31
|
-
import
|
|
30
|
+
import { linkRegex as jn, getPhoneNumberRegex as Fn, warnIfUnmounted as Kn, returnFirstEl as jt } from "../../common/utils/index.js";
|
|
31
|
+
import Wn from "@tiptap/extension-image";
|
|
32
32
|
import Rt from "@tiptap/extension-mention";
|
|
33
33
|
import we from "../link/link.js";
|
|
34
|
-
import { DtIconLock as
|
|
34
|
+
import { DtIconLock as qn } from "@dialpad/dialtone-icons/vue3";
|
|
35
35
|
import { DialtoneLocalization as be } from "../../localization/index.js";
|
|
36
|
-
import
|
|
37
|
-
import
|
|
36
|
+
import Xn from "../input/input.js";
|
|
37
|
+
import Yn from "../popover/popover.js";
|
|
38
38
|
import ve from "../button/button.js";
|
|
39
|
-
import
|
|
40
|
-
import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as Ft, RICH_TEXT_EDITOR_OUTPUT_FORMATS as
|
|
41
|
-
import
|
|
42
|
-
import Qn from "
|
|
43
|
-
import to from "@dialpad/dialtone-icons/vue3/
|
|
44
|
-
import eo from "
|
|
45
|
-
|
|
39
|
+
import Gn from "../badge/badge.js";
|
|
40
|
+
import { RICH_TEXT_EDITOR_SUPPORTED_LINK_PROTOCOLS as Ft, RICH_TEXT_EDITOR_OUTPUT_FORMATS as Jn, RICH_TEXT_EDITOR_AUTOFOCUS_TYPES as Zn } from "./rich-text-editor-constants.js";
|
|
41
|
+
import xe from "../text/text.js";
|
|
42
|
+
import Qn from "../avatar/avatar.js";
|
|
43
|
+
import to from "@dialpad/dialtone-icons/vue3/hash";
|
|
44
|
+
import eo from "@dialpad/dialtone-icons/vue3/lock";
|
|
45
|
+
import no from "deep-equal";
|
|
46
|
+
const Te = ["top", "right", "bottom", "left"], Kt = ["start", "end"], Wt = /* @__PURE__ */ Te.reduce((t, e) => t.concat(e, e + "-" + Kt[0], e + "-" + Kt[1]), []), J = Math.min, M = Math.max, wt = Math.round, G = (t) => ({
|
|
46
47
|
x: t,
|
|
47
48
|
y: t
|
|
48
|
-
}),
|
|
49
|
+
}), oo = {
|
|
49
50
|
left: "right",
|
|
50
51
|
right: "left",
|
|
51
52
|
bottom: "top",
|
|
52
53
|
top: "bottom"
|
|
53
|
-
},
|
|
54
|
+
}, io = {
|
|
54
55
|
start: "end",
|
|
55
56
|
end: "start"
|
|
56
57
|
};
|
|
57
58
|
function St(t, e, o) {
|
|
58
|
-
return
|
|
59
|
+
return M(t, J(e, o));
|
|
59
60
|
}
|
|
60
|
-
function
|
|
61
|
+
function Q(t, e) {
|
|
61
62
|
return typeof t == "function" ? t(e) : t;
|
|
62
63
|
}
|
|
63
|
-
function
|
|
64
|
+
function z(t) {
|
|
64
65
|
return t.split("-")[0];
|
|
65
66
|
}
|
|
66
67
|
function F(t) {
|
|
67
68
|
return t.split("-")[1];
|
|
68
69
|
}
|
|
69
|
-
function
|
|
70
|
+
function _e(t) {
|
|
70
71
|
return t === "x" ? "y" : "x";
|
|
71
72
|
}
|
|
72
73
|
function Mt(t) {
|
|
73
74
|
return t === "y" ? "height" : "width";
|
|
74
75
|
}
|
|
75
|
-
const
|
|
76
|
+
const so = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
76
77
|
function X(t) {
|
|
77
|
-
return
|
|
78
|
+
return so.has(z(t)) ? "y" : "x";
|
|
78
79
|
}
|
|
79
80
|
function Ht(t) {
|
|
80
|
-
return
|
|
81
|
+
return _e(X(t));
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
+
function ke(t, e, o) {
|
|
83
84
|
o === void 0 && (o = !1);
|
|
84
85
|
const n = F(t), i = Ht(t), s = Mt(i);
|
|
85
86
|
let r = i === "x" ? n === (o ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
86
87
|
return e.reference[s] > e.floating[s] && (r = vt(r)), [r, vt(r)];
|
|
87
88
|
}
|
|
88
|
-
function
|
|
89
|
+
function ro(t) {
|
|
89
90
|
const e = vt(t);
|
|
90
91
|
return [bt(t), e, bt(e)];
|
|
91
92
|
}
|
|
92
93
|
function bt(t) {
|
|
93
|
-
return t.replace(/start|end/g, (e) =>
|
|
94
|
+
return t.replace(/start|end/g, (e) => io[e]);
|
|
94
95
|
}
|
|
95
|
-
const qt = ["left", "right"], Xt = ["right", "left"],
|
|
96
|
-
function
|
|
96
|
+
const qt = ["left", "right"], Xt = ["right", "left"], ao = ["top", "bottom"], lo = ["bottom", "top"];
|
|
97
|
+
function co(t, e, o) {
|
|
97
98
|
switch (t) {
|
|
98
99
|
case "top":
|
|
99
100
|
case "bottom":
|
|
100
101
|
return o ? e ? Xt : qt : e ? qt : Xt;
|
|
101
102
|
case "left":
|
|
102
103
|
case "right":
|
|
103
|
-
return e ?
|
|
104
|
+
return e ? ao : lo;
|
|
104
105
|
default:
|
|
105
106
|
return [];
|
|
106
107
|
}
|
|
107
108
|
}
|
|
108
|
-
function
|
|
109
|
+
function uo(t, e, o, n) {
|
|
109
110
|
const i = F(t);
|
|
110
|
-
let s =
|
|
111
|
+
let s = co(z(t), o === "start", n);
|
|
111
112
|
return i && (s = s.map((r) => r + "-" + i), e && (s = s.concat(s.map(bt)))), s;
|
|
112
113
|
}
|
|
113
114
|
function vt(t) {
|
|
114
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
115
|
+
return t.replace(/left|right|bottom|top/g, (e) => oo[e]);
|
|
115
116
|
}
|
|
116
|
-
function
|
|
117
|
+
function ho(t) {
|
|
117
118
|
return {
|
|
118
119
|
top: 0,
|
|
119
120
|
right: 0,
|
|
@@ -123,14 +124,14 @@ function uo(t) {
|
|
|
123
124
|
};
|
|
124
125
|
}
|
|
125
126
|
function $t(t) {
|
|
126
|
-
return typeof t != "number" ?
|
|
127
|
+
return typeof t != "number" ? ho(t) : {
|
|
127
128
|
top: t,
|
|
128
129
|
right: t,
|
|
129
130
|
bottom: t,
|
|
130
131
|
left: t
|
|
131
132
|
};
|
|
132
133
|
}
|
|
133
|
-
function
|
|
134
|
+
function at(t) {
|
|
134
135
|
const {
|
|
135
136
|
x: e,
|
|
136
137
|
y: o,
|
|
@@ -153,7 +154,7 @@ function Yt(t, e, o) {
|
|
|
153
154
|
reference: n,
|
|
154
155
|
floating: i
|
|
155
156
|
} = t;
|
|
156
|
-
const s = X(e), r = Ht(e), a = Mt(r), l =
|
|
157
|
+
const s = X(e), r = Ht(e), a = Mt(r), l = z(e), u = s === "y", d = n.x + n.width / 2 - i.width / 2, c = n.y + n.height / 2 - i.height / 2, h = n[a] / 2 - i[a] / 2;
|
|
157
158
|
let f;
|
|
158
159
|
switch (l) {
|
|
159
160
|
case "top":
|
|
@@ -196,7 +197,7 @@ function Yt(t, e, o) {
|
|
|
196
197
|
}
|
|
197
198
|
return f;
|
|
198
199
|
}
|
|
199
|
-
async function
|
|
200
|
+
async function fo(t, e) {
|
|
200
201
|
var o;
|
|
201
202
|
e === void 0 && (e = {});
|
|
202
203
|
const {
|
|
@@ -212,7 +213,7 @@ async function ho(t, e) {
|
|
|
212
213
|
elementContext: c = "floating",
|
|
213
214
|
altBoundary: h = !1,
|
|
214
215
|
padding: f = 0
|
|
215
|
-
} =
|
|
216
|
+
} = Q(e, t), p = $t(f), g = a[h ? c === "floating" ? "reference" : "floating" : c], y = at(await s.getClippingRect({
|
|
216
217
|
element: (o = await (s.isElement == null ? void 0 : s.isElement(g))) == null || o ? g : g.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
217
218
|
boundary: u,
|
|
218
219
|
rootBoundary: d,
|
|
@@ -222,26 +223,26 @@ async function ho(t, e) {
|
|
|
222
223
|
y: i,
|
|
223
224
|
width: r.floating.width,
|
|
224
225
|
height: r.floating.height
|
|
225
|
-
} : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)),
|
|
226
|
+
} : r.reference, v = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), _ = await (s.isElement == null ? void 0 : s.isElement(v)) ? await (s.getScale == null ? void 0 : s.getScale(v)) || {
|
|
226
227
|
x: 1,
|
|
227
228
|
y: 1
|
|
228
229
|
} : {
|
|
229
230
|
x: 1,
|
|
230
231
|
y: 1
|
|
231
|
-
}, O =
|
|
232
|
+
}, O = at(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
232
233
|
elements: a,
|
|
233
234
|
rect: b,
|
|
234
235
|
offsetParent: v,
|
|
235
236
|
strategy: l
|
|
236
237
|
}) : b);
|
|
237
238
|
return {
|
|
238
|
-
top: (y.top - O.top + p.top) /
|
|
239
|
-
bottom: (O.bottom - y.bottom + p.bottom) /
|
|
240
|
-
left: (y.left - O.left + p.left) /
|
|
241
|
-
right: (O.right - y.right + p.right) /
|
|
239
|
+
top: (y.top - O.top + p.top) / _.y,
|
|
240
|
+
bottom: (O.bottom - y.bottom + p.bottom) / _.y,
|
|
241
|
+
left: (y.left - O.left + p.left) / _.x,
|
|
242
|
+
right: (O.right - y.right + p.right) / _.x
|
|
242
243
|
};
|
|
243
244
|
}
|
|
244
|
-
const
|
|
245
|
+
const po = async (t, e, o) => {
|
|
245
246
|
const {
|
|
246
247
|
placement: n = "bottom",
|
|
247
248
|
strategy: i = "absolute",
|
|
@@ -263,9 +264,9 @@ const fo = async (t, e, o) => {
|
|
|
263
264
|
fn: b
|
|
264
265
|
} = a[g], {
|
|
265
266
|
x: v,
|
|
266
|
-
y:
|
|
267
|
+
y: _,
|
|
267
268
|
data: O,
|
|
268
|
-
reset:
|
|
269
|
+
reset: C
|
|
269
270
|
} = await b({
|
|
270
271
|
x: d,
|
|
271
272
|
y: c,
|
|
@@ -276,24 +277,24 @@ const fo = async (t, e, o) => {
|
|
|
276
277
|
rects: u,
|
|
277
278
|
platform: {
|
|
278
279
|
...r,
|
|
279
|
-
detectOverflow: (m = r.detectOverflow) != null ? m :
|
|
280
|
+
detectOverflow: (m = r.detectOverflow) != null ? m : fo
|
|
280
281
|
},
|
|
281
282
|
elements: {
|
|
282
283
|
reference: t,
|
|
283
284
|
floating: e
|
|
284
285
|
}
|
|
285
286
|
});
|
|
286
|
-
d = v ?? d, c =
|
|
287
|
+
d = v ?? d, c = _ ?? c, f = {
|
|
287
288
|
...f,
|
|
288
289
|
[y]: {
|
|
289
290
|
...f[y],
|
|
290
291
|
...O
|
|
291
292
|
}
|
|
292
|
-
},
|
|
293
|
+
}, C && p <= 50 && (p++, typeof C == "object" && (C.placement && (h = C.placement), C.rects && (u = C.rects === !0 ? await r.getElementRects({
|
|
293
294
|
reference: t,
|
|
294
295
|
floating: e,
|
|
295
296
|
strategy: i
|
|
296
|
-
}) :
|
|
297
|
+
}) : C.rects), {
|
|
297
298
|
x: d,
|
|
298
299
|
y: c
|
|
299
300
|
} = Yt(u, h, l)), g = -1);
|
|
@@ -305,7 +306,7 @@ const fo = async (t, e, o) => {
|
|
|
305
306
|
strategy: i,
|
|
306
307
|
middlewareData: f
|
|
307
308
|
};
|
|
308
|
-
},
|
|
309
|
+
}, mo = (t) => ({
|
|
309
310
|
name: "arrow",
|
|
310
311
|
options: t,
|
|
311
312
|
async fn(e) {
|
|
@@ -320,21 +321,21 @@ const fo = async (t, e, o) => {
|
|
|
320
321
|
} = e, {
|
|
321
322
|
element: u,
|
|
322
323
|
padding: d = 0
|
|
323
|
-
} =
|
|
324
|
+
} = Q(t, e) || {};
|
|
324
325
|
if (u == null)
|
|
325
326
|
return {};
|
|
326
327
|
const c = $t(d), h = {
|
|
327
328
|
x: o,
|
|
328
329
|
y: n
|
|
329
|
-
}, f = Ht(i), p = Mt(f), m = await r.getDimensions(u), g = f === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth",
|
|
330
|
-
let
|
|
331
|
-
(!
|
|
332
|
-
const U =
|
|
330
|
+
}, f = Ht(i), p = Mt(f), m = await r.getDimensions(u), g = f === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", v = g ? "clientHeight" : "clientWidth", _ = s.reference[p] + s.reference[f] - h[f] - s.floating[p], O = h[f] - s.reference[f], C = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(u));
|
|
331
|
+
let I = C ? C[v] : 0;
|
|
332
|
+
(!I || !await (r.isElement == null ? void 0 : r.isElement(C))) && (I = a.floating[v] || s.floating[p]);
|
|
333
|
+
const U = _ / 2 - O / 2, D = I / 2 - m[p] / 2 - 1, w = J(c[y], D), S = J(c[b], D), R = w, H = I - m[p] - S, L = I / 2 - m[p] / 2 + U, j = St(R, L, H), V = !l.arrow && F(i) != null && L !== j && s.reference[p] / 2 - (L < R ? w : S) - m[p] / 2 < 0, B = V ? L < R ? L - R : L - H : 0;
|
|
333
334
|
return {
|
|
334
335
|
[f]: h[f] + B,
|
|
335
336
|
data: {
|
|
336
|
-
[f]:
|
|
337
|
-
centerOffset:
|
|
337
|
+
[f]: j,
|
|
338
|
+
centerOffset: L - j - B,
|
|
338
339
|
...V && {
|
|
339
340
|
alignmentOffset: B
|
|
340
341
|
}
|
|
@@ -343,10 +344,10 @@ const fo = async (t, e, o) => {
|
|
|
343
344
|
};
|
|
344
345
|
}
|
|
345
346
|
});
|
|
346
|
-
function
|
|
347
|
-
return (t ? [...o.filter((i) => F(i) === t), ...o.filter((i) => F(i) !== t)] : o.filter((i) =>
|
|
347
|
+
function go(t, e, o) {
|
|
348
|
+
return (t ? [...o.filter((i) => F(i) === t), ...o.filter((i) => F(i) !== t)] : o.filter((i) => z(i) === i)).filter((i) => t ? F(i) === t || (e ? bt(i) !== i : !1) : !0);
|
|
348
349
|
}
|
|
349
|
-
const
|
|
350
|
+
const yo = function(t) {
|
|
350
351
|
return t === void 0 && (t = {}), {
|
|
351
352
|
name: "autoPlacement",
|
|
352
353
|
options: t,
|
|
@@ -364,57 +365,57 @@ const go = function(t) {
|
|
|
364
365
|
allowedPlacements: h = Wt,
|
|
365
366
|
autoAlignment: f = !0,
|
|
366
367
|
...p
|
|
367
|
-
} =
|
|
368
|
+
} = Q(t, e), m = c !== void 0 || h === Wt ? go(c || null, f, h) : h, g = await l.detectOverflow(e, p), y = ((o = r.autoPlacement) == null ? void 0 : o.index) || 0, b = m[y];
|
|
368
369
|
if (b == null)
|
|
369
370
|
return {};
|
|
370
|
-
const v =
|
|
371
|
+
const v = ke(b, s, await (l.isRTL == null ? void 0 : l.isRTL(u.floating)));
|
|
371
372
|
if (a !== b)
|
|
372
373
|
return {
|
|
373
374
|
reset: {
|
|
374
375
|
placement: m[0]
|
|
375
376
|
}
|
|
376
377
|
};
|
|
377
|
-
const
|
|
378
|
+
const _ = [g[z(b)], g[v[0]], g[v[1]]], O = [...((n = r.autoPlacement) == null ? void 0 : n.overflows) || [], {
|
|
378
379
|
placement: b,
|
|
379
|
-
overflows:
|
|
380
|
-
}],
|
|
381
|
-
if (
|
|
380
|
+
overflows: _
|
|
381
|
+
}], C = m[y + 1];
|
|
382
|
+
if (C)
|
|
382
383
|
return {
|
|
383
384
|
data: {
|
|
384
385
|
index: y + 1,
|
|
385
386
|
overflows: O
|
|
386
387
|
},
|
|
387
388
|
reset: {
|
|
388
|
-
placement:
|
|
389
|
+
placement: C
|
|
389
390
|
}
|
|
390
391
|
};
|
|
391
|
-
const
|
|
392
|
-
const
|
|
393
|
-
return [w.placement,
|
|
392
|
+
const I = O.map((w) => {
|
|
393
|
+
const S = F(w.placement);
|
|
394
|
+
return [w.placement, S && d ? (
|
|
394
395
|
// Check along the mainAxis and main crossAxis side.
|
|
395
|
-
w.overflows.slice(0, 2).reduce((
|
|
396
|
+
w.overflows.slice(0, 2).reduce((R, H) => R + H, 0)
|
|
396
397
|
) : (
|
|
397
398
|
// Check only the mainAxis.
|
|
398
399
|
w.overflows[0]
|
|
399
400
|
), w.overflows];
|
|
400
|
-
}).sort((w,
|
|
401
|
+
}).sort((w, S) => w[1] - S[1]), D = ((i = I.filter((w) => w[2].slice(
|
|
401
402
|
0,
|
|
402
403
|
// Aligned placements should not check their opposite crossAxis
|
|
403
404
|
// side.
|
|
404
405
|
F(w[0]) ? 2 : 3
|
|
405
|
-
).every((
|
|
406
|
-
return
|
|
406
|
+
).every((S) => S <= 0))[0]) == null ? void 0 : i[0]) || I[0][0];
|
|
407
|
+
return D !== a ? {
|
|
407
408
|
data: {
|
|
408
409
|
index: y + 1,
|
|
409
410
|
overflows: O
|
|
410
411
|
},
|
|
411
412
|
reset: {
|
|
412
|
-
placement:
|
|
413
|
+
placement: D
|
|
413
414
|
}
|
|
414
415
|
} : {};
|
|
415
416
|
}
|
|
416
417
|
};
|
|
417
|
-
},
|
|
418
|
+
}, wo = function(t) {
|
|
418
419
|
return t === void 0 && (t = {}), {
|
|
419
420
|
name: "flip",
|
|
420
421
|
options: t,
|
|
@@ -435,49 +436,49 @@ const go = function(t) {
|
|
|
435
436
|
fallbackAxisSideDirection: p = "none",
|
|
436
437
|
flipAlignment: m = !0,
|
|
437
438
|
...g
|
|
438
|
-
} =
|
|
439
|
+
} = Q(t, e);
|
|
439
440
|
if ((o = s.arrow) != null && o.alignmentOffset)
|
|
440
441
|
return {};
|
|
441
|
-
const y =
|
|
442
|
-
!h &&
|
|
443
|
-
const
|
|
442
|
+
const y = z(i), b = X(a), v = z(a) === a, _ = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), O = h || (v || !m ? [vt(a)] : ro(a)), C = p !== "none";
|
|
443
|
+
!h && C && O.push(...uo(a, m, p, _));
|
|
444
|
+
const I = [a, ...O], U = await l.detectOverflow(e, g), D = [];
|
|
444
445
|
let w = ((n = s.flip) == null ? void 0 : n.overflows) || [];
|
|
445
|
-
if (d &&
|
|
446
|
-
const
|
|
447
|
-
|
|
446
|
+
if (d && D.push(U[y]), c) {
|
|
447
|
+
const L = ke(i, r, _);
|
|
448
|
+
D.push(U[L[0]], U[L[1]]);
|
|
448
449
|
}
|
|
449
450
|
if (w = [...w, {
|
|
450
451
|
placement: i,
|
|
451
|
-
overflows:
|
|
452
|
-
}], !
|
|
453
|
-
var
|
|
454
|
-
const
|
|
455
|
-
if (
|
|
452
|
+
overflows: D
|
|
453
|
+
}], !D.every((L) => L <= 0)) {
|
|
454
|
+
var S, R;
|
|
455
|
+
const L = (((S = s.flip) == null ? void 0 : S.index) || 0) + 1, j = I[L];
|
|
456
|
+
if (j && (!(c === "alignment" ? b !== X(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
456
457
|
// overflows the main axis.
|
|
457
458
|
w.every((N) => X(N.placement) === b ? N.overflows[0] > 0 : !0)))
|
|
458
459
|
return {
|
|
459
460
|
data: {
|
|
460
|
-
index:
|
|
461
|
+
index: L,
|
|
461
462
|
overflows: w
|
|
462
463
|
},
|
|
463
464
|
reset: {
|
|
464
|
-
placement:
|
|
465
|
+
placement: j
|
|
465
466
|
}
|
|
466
467
|
};
|
|
467
|
-
let V = (
|
|
468
|
+
let V = (R = w.filter((B) => B.overflows[0] <= 0).sort((B, N) => B.overflows[1] - N.overflows[1])[0]) == null ? void 0 : R.placement;
|
|
468
469
|
if (!V)
|
|
469
470
|
switch (f) {
|
|
470
471
|
case "bestFit": {
|
|
471
472
|
var H;
|
|
472
473
|
const B = (H = w.filter((N) => {
|
|
473
|
-
if (
|
|
474
|
-
const
|
|
475
|
-
return
|
|
474
|
+
if (C) {
|
|
475
|
+
const et = X(N.placement);
|
|
476
|
+
return et === b || // Create a bias to the `y` side axis due to horizontal
|
|
476
477
|
// reading directions favoring greater width.
|
|
477
|
-
|
|
478
|
+
et === "y";
|
|
478
479
|
}
|
|
479
480
|
return !0;
|
|
480
|
-
}).map((N) => [N.placement, N.overflows.filter((
|
|
481
|
+
}).map((N) => [N.placement, N.overflows.filter((et) => et > 0).reduce((et, ze) => et + ze, 0)]).sort((N, et) => N[1] - et[1])[0]) == null ? void 0 : H[0];
|
|
481
482
|
B && (V = B);
|
|
482
483
|
break;
|
|
483
484
|
}
|
|
@@ -505,9 +506,9 @@ function Gt(t, e) {
|
|
|
505
506
|
};
|
|
506
507
|
}
|
|
507
508
|
function Jt(t) {
|
|
508
|
-
return
|
|
509
|
+
return Te.some((e) => t[e] >= 0);
|
|
509
510
|
}
|
|
510
|
-
const
|
|
511
|
+
const bo = function(t) {
|
|
511
512
|
return t === void 0 && (t = {}), {
|
|
512
513
|
name: "hide",
|
|
513
514
|
options: t,
|
|
@@ -518,7 +519,7 @@ const wo = function(t) {
|
|
|
518
519
|
} = e, {
|
|
519
520
|
strategy: i = "referenceHidden",
|
|
520
521
|
...s
|
|
521
|
-
} =
|
|
522
|
+
} = Q(t, e);
|
|
522
523
|
switch (i) {
|
|
523
524
|
case "referenceHidden": {
|
|
524
525
|
const r = await n.detectOverflow(e, {
|
|
@@ -550,8 +551,8 @@ const wo = function(t) {
|
|
|
550
551
|
}
|
|
551
552
|
};
|
|
552
553
|
};
|
|
553
|
-
function
|
|
554
|
-
const e =
|
|
554
|
+
function Ce(t) {
|
|
555
|
+
const e = J(...t.map((s) => s.left)), o = J(...t.map((s) => s.top)), n = M(...t.map((s) => s.right)), i = M(...t.map((s) => s.bottom));
|
|
555
556
|
return {
|
|
556
557
|
x: e,
|
|
557
558
|
y: o,
|
|
@@ -559,16 +560,16 @@ function ke(t) {
|
|
|
559
560
|
height: i - o
|
|
560
561
|
};
|
|
561
562
|
}
|
|
562
|
-
function
|
|
563
|
+
function vo(t) {
|
|
563
564
|
const e = t.slice().sort((i, s) => i.y - s.y), o = [];
|
|
564
565
|
let n = null;
|
|
565
566
|
for (let i = 0; i < e.length; i++) {
|
|
566
567
|
const s = e[i];
|
|
567
568
|
!n || s.y - n.y > n.height / 2 ? o.push([s]) : o[o.length - 1].push(s), n = s;
|
|
568
569
|
}
|
|
569
|
-
return o.map((i) =>
|
|
570
|
+
return o.map((i) => at(Ce(i)));
|
|
570
571
|
}
|
|
571
|
-
const
|
|
572
|
+
const xo = function(t) {
|
|
572
573
|
return t === void 0 && (t = {}), {
|
|
573
574
|
name: "inline",
|
|
574
575
|
options: t,
|
|
@@ -583,34 +584,34 @@ const vo = function(t) {
|
|
|
583
584
|
padding: a = 2,
|
|
584
585
|
x: l,
|
|
585
586
|
y: u
|
|
586
|
-
} =
|
|
587
|
+
} = Q(t, e), d = Array.from(await (s.getClientRects == null ? void 0 : s.getClientRects(n.reference)) || []), c = vo(d), h = at(Ce(d)), f = $t(a);
|
|
587
588
|
function p() {
|
|
588
589
|
if (c.length === 2 && c[0].left > c[1].right && l != null && u != null)
|
|
589
590
|
return c.find((g) => l > g.left - f.left && l < g.right + f.right && u > g.top - f.top && u < g.bottom + f.bottom) || h;
|
|
590
591
|
if (c.length >= 2) {
|
|
591
592
|
if (X(o) === "y") {
|
|
592
|
-
const w = c[0],
|
|
593
|
+
const w = c[0], S = c[c.length - 1], R = z(o) === "top", H = w.top, L = S.bottom, j = R ? w.left : S.left, V = R ? w.right : S.right, B = V - j, N = L - H;
|
|
593
594
|
return {
|
|
594
595
|
top: H,
|
|
595
|
-
bottom:
|
|
596
|
-
left:
|
|
596
|
+
bottom: L,
|
|
597
|
+
left: j,
|
|
597
598
|
right: V,
|
|
598
599
|
width: B,
|
|
599
600
|
height: N,
|
|
600
|
-
x:
|
|
601
|
+
x: j,
|
|
601
602
|
y: H
|
|
602
603
|
};
|
|
603
604
|
}
|
|
604
|
-
const g =
|
|
605
|
+
const g = z(o) === "left", y = M(...c.map((w) => w.right)), b = J(...c.map((w) => w.left)), v = c.filter((w) => g ? w.left === b : w.right === y), _ = v[0].top, O = v[v.length - 1].bottom, C = b, I = y, U = I - C, D = O - _;
|
|
605
606
|
return {
|
|
606
|
-
top:
|
|
607
|
+
top: _,
|
|
607
608
|
bottom: O,
|
|
608
|
-
left:
|
|
609
|
-
right:
|
|
609
|
+
left: C,
|
|
610
|
+
right: I,
|
|
610
611
|
width: U,
|
|
611
|
-
height:
|
|
612
|
-
x:
|
|
613
|
-
y:
|
|
612
|
+
height: D,
|
|
613
|
+
x: C,
|
|
614
|
+
y: _
|
|
614
615
|
};
|
|
615
616
|
}
|
|
616
617
|
return h;
|
|
@@ -629,13 +630,13 @@ const vo = function(t) {
|
|
|
629
630
|
} : {};
|
|
630
631
|
}
|
|
631
632
|
};
|
|
632
|
-
},
|
|
633
|
-
async function
|
|
633
|
+
}, To = /* @__PURE__ */ new Set(["left", "top"]);
|
|
634
|
+
async function _o(t, e) {
|
|
634
635
|
const {
|
|
635
636
|
placement: o,
|
|
636
637
|
platform: n,
|
|
637
638
|
elements: i
|
|
638
|
-
} = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r =
|
|
639
|
+
} = t, s = await (n.isRTL == null ? void 0 : n.isRTL(i.floating)), r = z(o), a = F(o), l = X(o) === "y", u = To.has(r) ? -1 : 1, d = s && l ? -1 : 1, c = Q(e, t);
|
|
639
640
|
let {
|
|
640
641
|
mainAxis: h,
|
|
641
642
|
crossAxis: f,
|
|
@@ -657,7 +658,7 @@ async function To(t, e) {
|
|
|
657
658
|
y: f * d
|
|
658
659
|
};
|
|
659
660
|
}
|
|
660
|
-
const
|
|
661
|
+
const ko = function(t) {
|
|
661
662
|
return t === void 0 && (t = 0), {
|
|
662
663
|
name: "offset",
|
|
663
664
|
options: t,
|
|
@@ -668,7 +669,7 @@ const _o = function(t) {
|
|
|
668
669
|
y: s,
|
|
669
670
|
placement: r,
|
|
670
671
|
middlewareData: a
|
|
671
|
-
} = e, l = await
|
|
672
|
+
} = e, l = await _o(e, t);
|
|
672
673
|
return r === ((o = a.offset) == null ? void 0 : o.placement) && (n = a.arrow) != null && n.alignmentOffset ? {} : {
|
|
673
674
|
x: i + l.x,
|
|
674
675
|
y: s + l.y,
|
|
@@ -679,7 +680,7 @@ const _o = function(t) {
|
|
|
679
680
|
};
|
|
680
681
|
}
|
|
681
682
|
};
|
|
682
|
-
},
|
|
683
|
+
}, Co = function(t) {
|
|
683
684
|
return t === void 0 && (t = {}), {
|
|
684
685
|
name: "shift",
|
|
685
686
|
options: t,
|
|
@@ -705,18 +706,18 @@ const _o = function(t) {
|
|
|
705
706
|
}
|
|
706
707
|
},
|
|
707
708
|
...u
|
|
708
|
-
} =
|
|
709
|
+
} = Q(t, e), d = {
|
|
709
710
|
x: o,
|
|
710
711
|
y: n
|
|
711
|
-
}, c = await s.detectOverflow(e, u), h = X(
|
|
712
|
+
}, c = await s.detectOverflow(e, u), h = X(z(i)), f = _e(h);
|
|
712
713
|
let p = d[f], m = d[h];
|
|
713
714
|
if (r) {
|
|
714
|
-
const y = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", v = p + c[y],
|
|
715
|
-
p = St(v, p,
|
|
715
|
+
const y = f === "y" ? "top" : "left", b = f === "y" ? "bottom" : "right", v = p + c[y], _ = p - c[b];
|
|
716
|
+
p = St(v, p, _);
|
|
716
717
|
}
|
|
717
718
|
if (a) {
|
|
718
|
-
const y = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", v = m + c[y],
|
|
719
|
-
m = St(v, m,
|
|
719
|
+
const y = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", v = m + c[y], _ = m - c[b];
|
|
720
|
+
m = St(v, m, _);
|
|
720
721
|
}
|
|
721
722
|
const g = l.fn({
|
|
722
723
|
...e,
|
|
@@ -736,7 +737,7 @@ const _o = function(t) {
|
|
|
736
737
|
};
|
|
737
738
|
}
|
|
738
739
|
};
|
|
739
|
-
},
|
|
740
|
+
}, Oo = function(t) {
|
|
740
741
|
return t === void 0 && (t = {}), {
|
|
741
742
|
name: "size",
|
|
742
743
|
options: t,
|
|
@@ -751,25 +752,25 @@ const _o = function(t) {
|
|
|
751
752
|
apply: l = () => {
|
|
752
753
|
},
|
|
753
754
|
...u
|
|
754
|
-
} =
|
|
755
|
+
} = Q(t, e), d = await r.detectOverflow(e, u), c = z(i), h = F(i), f = X(i) === "y", {
|
|
755
756
|
width: p,
|
|
756
757
|
height: m
|
|
757
758
|
} = s.floating;
|
|
758
759
|
let g, y;
|
|
759
760
|
c === "top" || c === "bottom" ? (g = c, y = h === (await (r.isRTL == null ? void 0 : r.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (y = c, g = h === "end" ? "top" : "bottom");
|
|
760
|
-
const b = m - d.top - d.bottom, v = p - d.left - d.right,
|
|
761
|
-
let
|
|
762
|
-
if ((o = e.middlewareData.shift) != null && o.enabled.x && (U = v), (n = e.middlewareData.shift) != null && n.enabled.y && (
|
|
763
|
-
const w =
|
|
764
|
-
f ? U = p - 2 * (w !== 0 ||
|
|
761
|
+
const b = m - d.top - d.bottom, v = p - d.left - d.right, _ = J(m - d[g], b), O = J(p - d[y], v), C = !e.middlewareData.shift;
|
|
762
|
+
let I = _, U = O;
|
|
763
|
+
if ((o = e.middlewareData.shift) != null && o.enabled.x && (U = v), (n = e.middlewareData.shift) != null && n.enabled.y && (I = b), C && !h) {
|
|
764
|
+
const w = M(d.left, 0), S = M(d.right, 0), R = M(d.top, 0), H = M(d.bottom, 0);
|
|
765
|
+
f ? U = p - 2 * (w !== 0 || S !== 0 ? w + S : M(d.left, d.right)) : I = m - 2 * (R !== 0 || H !== 0 ? R + H : M(d.top, d.bottom));
|
|
765
766
|
}
|
|
766
767
|
await l({
|
|
767
768
|
...e,
|
|
768
769
|
availableWidth: U,
|
|
769
|
-
availableHeight:
|
|
770
|
+
availableHeight: I
|
|
770
771
|
});
|
|
771
|
-
const
|
|
772
|
-
return p !==
|
|
772
|
+
const D = await r.getDimensions(a.floating);
|
|
773
|
+
return p !== D.width || m !== D.height ? {
|
|
773
774
|
reset: {
|
|
774
775
|
rects: !0
|
|
775
776
|
}
|
|
@@ -780,30 +781,30 @@ const _o = function(t) {
|
|
|
780
781
|
function xt() {
|
|
781
782
|
return typeof window < "u";
|
|
782
783
|
}
|
|
783
|
-
function
|
|
784
|
-
return
|
|
784
|
+
function dt(t) {
|
|
785
|
+
return Oe(t) ? (t.nodeName || "").toLowerCase() : "#document";
|
|
785
786
|
}
|
|
786
787
|
function P(t) {
|
|
787
788
|
var e;
|
|
788
789
|
return (t == null || (e = t.ownerDocument) == null ? void 0 : e.defaultView) || window;
|
|
789
790
|
}
|
|
790
|
-
function
|
|
791
|
+
function tt(t) {
|
|
791
792
|
var e;
|
|
792
|
-
return (e = (
|
|
793
|
+
return (e = (Oe(t) ? t.ownerDocument : t.document) || window.document) == null ? void 0 : e.documentElement;
|
|
793
794
|
}
|
|
794
|
-
function
|
|
795
|
+
function Oe(t) {
|
|
795
796
|
return xt() ? t instanceof Node || t instanceof P(t).Node : !1;
|
|
796
797
|
}
|
|
797
798
|
function K(t) {
|
|
798
799
|
return xt() ? t instanceof Element || t instanceof P(t).Element : !1;
|
|
799
800
|
}
|
|
800
|
-
function
|
|
801
|
+
function Z(t) {
|
|
801
802
|
return xt() ? t instanceof HTMLElement || t instanceof P(t).HTMLElement : !1;
|
|
802
803
|
}
|
|
803
804
|
function Zt(t) {
|
|
804
805
|
return !xt() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof P(t).ShadowRoot;
|
|
805
806
|
}
|
|
806
|
-
const
|
|
807
|
+
const Eo = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
807
808
|
function yt(t) {
|
|
808
809
|
const {
|
|
809
810
|
overflow: e,
|
|
@@ -811,15 +812,15 @@ function yt(t) {
|
|
|
811
812
|
overflowY: n,
|
|
812
813
|
display: i
|
|
813
814
|
} = W(t);
|
|
814
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !
|
|
815
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + n + o) && !Eo.has(i);
|
|
815
816
|
}
|
|
816
|
-
const
|
|
817
|
-
function
|
|
818
|
-
return
|
|
817
|
+
const So = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
818
|
+
function Lo(t) {
|
|
819
|
+
return So.has(dt(t));
|
|
819
820
|
}
|
|
820
|
-
const
|
|
821
|
+
const Io = [":popover-open", ":modal"];
|
|
821
822
|
function Tt(t) {
|
|
822
|
-
return
|
|
823
|
+
return Io.some((e) => {
|
|
823
824
|
try {
|
|
824
825
|
return t.matches(e);
|
|
825
826
|
} catch {
|
|
@@ -827,28 +828,28 @@ function Tt(t) {
|
|
|
827
828
|
}
|
|
828
829
|
});
|
|
829
830
|
}
|
|
830
|
-
const
|
|
831
|
+
const Ao = ["transform", "translate", "scale", "rotate", "perspective"], Do = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Ro = ["paint", "layout", "strict", "content"];
|
|
831
832
|
function Bt(t) {
|
|
832
833
|
const e = Nt(), o = K(t) ? W(t) : t;
|
|
833
|
-
return
|
|
834
|
+
return Ao.some((n) => o[n] ? o[n] !== "none" : !1) || (o.containerType ? o.containerType !== "normal" : !1) || !e && (o.backdropFilter ? o.backdropFilter !== "none" : !1) || !e && (o.filter ? o.filter !== "none" : !1) || Do.some((n) => (o.willChange || "").includes(n)) || Ro.some((n) => (o.contain || "").includes(n));
|
|
834
835
|
}
|
|
835
|
-
function
|
|
836
|
-
let e =
|
|
837
|
-
for (;
|
|
836
|
+
function Mo(t) {
|
|
837
|
+
let e = nt(t);
|
|
838
|
+
for (; Z(e) && !lt(e); ) {
|
|
838
839
|
if (Bt(e))
|
|
839
840
|
return e;
|
|
840
841
|
if (Tt(e))
|
|
841
842
|
return null;
|
|
842
|
-
e =
|
|
843
|
+
e = nt(e);
|
|
843
844
|
}
|
|
844
845
|
return null;
|
|
845
846
|
}
|
|
846
847
|
function Nt() {
|
|
847
848
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
848
849
|
}
|
|
849
|
-
const
|
|
850
|
-
function
|
|
851
|
-
return
|
|
850
|
+
const Ho = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
851
|
+
function lt(t) {
|
|
852
|
+
return Ho.has(dt(t));
|
|
852
853
|
}
|
|
853
854
|
function W(t) {
|
|
854
855
|
return P(t).getComputedStyle(t);
|
|
@@ -862,86 +863,86 @@ function _t(t) {
|
|
|
862
863
|
scrollTop: t.scrollY
|
|
863
864
|
};
|
|
864
865
|
}
|
|
865
|
-
function
|
|
866
|
-
if (
|
|
866
|
+
function nt(t) {
|
|
867
|
+
if (dt(t) === "html")
|
|
867
868
|
return t;
|
|
868
869
|
const e = (
|
|
869
870
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
870
871
|
t.assignedSlot || // DOM Element detected.
|
|
871
872
|
t.parentNode || // ShadowRoot detected.
|
|
872
873
|
Zt(t) && t.host || // Fallback.
|
|
873
|
-
|
|
874
|
+
tt(t)
|
|
874
875
|
);
|
|
875
876
|
return Zt(e) ? e.host : e;
|
|
876
877
|
}
|
|
877
|
-
function
|
|
878
|
-
const e =
|
|
879
|
-
return
|
|
878
|
+
function Ee(t) {
|
|
879
|
+
const e = nt(t);
|
|
880
|
+
return lt(e) ? t.ownerDocument ? t.ownerDocument.body : t.body : Z(e) && yt(e) ? e : Ee(e);
|
|
880
881
|
}
|
|
881
|
-
function
|
|
882
|
+
function Se(t, e, o) {
|
|
882
883
|
var n;
|
|
883
884
|
e === void 0 && (e = []);
|
|
884
|
-
const i =
|
|
885
|
-
return s ? e.concat(r, r.visualViewport || [], yt(i) ? i : [], []) : e.concat(i,
|
|
885
|
+
const i = Ee(t), s = i === ((n = t.ownerDocument) == null ? void 0 : n.body), r = P(i);
|
|
886
|
+
return s ? e.concat(r, r.visualViewport || [], yt(i) ? i : [], []) : e.concat(i, Se(i, []));
|
|
886
887
|
}
|
|
887
888
|
function Qt(t) {
|
|
888
889
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
889
890
|
}
|
|
890
|
-
function
|
|
891
|
+
function Le(t) {
|
|
891
892
|
const e = W(t);
|
|
892
893
|
let o = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
|
893
|
-
const i =
|
|
894
|
+
const i = Z(t), s = i ? t.offsetWidth : o, r = i ? t.offsetHeight : n, a = wt(o) !== s || wt(n) !== r;
|
|
894
895
|
return a && (o = s, n = r), {
|
|
895
896
|
width: o,
|
|
896
897
|
height: n,
|
|
897
898
|
$: a
|
|
898
899
|
};
|
|
899
900
|
}
|
|
900
|
-
function
|
|
901
|
+
function Ie(t) {
|
|
901
902
|
return K(t) ? t : t.contextElement;
|
|
902
903
|
}
|
|
903
|
-
function
|
|
904
|
-
const e =
|
|
905
|
-
if (!
|
|
906
|
-
return
|
|
904
|
+
function rt(t) {
|
|
905
|
+
const e = Ie(t);
|
|
906
|
+
if (!Z(e))
|
|
907
|
+
return G(1);
|
|
907
908
|
const o = e.getBoundingClientRect(), {
|
|
908
909
|
width: n,
|
|
909
910
|
height: i,
|
|
910
911
|
$: s
|
|
911
|
-
} =
|
|
912
|
+
} = Le(e);
|
|
912
913
|
let r = (s ? wt(o.width) : o.width) / n, a = (s ? wt(o.height) : o.height) / i;
|
|
913
914
|
return (!r || !Number.isFinite(r)) && (r = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
914
915
|
x: r,
|
|
915
916
|
y: a
|
|
916
917
|
};
|
|
917
918
|
}
|
|
918
|
-
const
|
|
919
|
-
function
|
|
919
|
+
const $o = /* @__PURE__ */ G(0);
|
|
920
|
+
function Ae(t) {
|
|
920
921
|
const e = P(t);
|
|
921
|
-
return !Nt() || !e.visualViewport ?
|
|
922
|
+
return !Nt() || !e.visualViewport ? $o : {
|
|
922
923
|
x: e.visualViewport.offsetLeft,
|
|
923
924
|
y: e.visualViewport.offsetTop
|
|
924
925
|
};
|
|
925
926
|
}
|
|
926
|
-
function
|
|
927
|
+
function Bo(t, e, o) {
|
|
927
928
|
return e === void 0 && (e = !1), !o || e && o !== P(t) ? !1 : e;
|
|
928
929
|
}
|
|
929
930
|
function ht(t, e, o, n) {
|
|
930
931
|
e === void 0 && (e = !1), o === void 0 && (o = !1);
|
|
931
|
-
const i = t.getBoundingClientRect(), s =
|
|
932
|
-
let r =
|
|
933
|
-
e && (n ? K(n) && (r =
|
|
934
|
-
const a =
|
|
932
|
+
const i = t.getBoundingClientRect(), s = Ie(t);
|
|
933
|
+
let r = G(1);
|
|
934
|
+
e && (n ? K(n) && (r = rt(n)) : r = rt(t));
|
|
935
|
+
const a = Bo(s, o, n) ? Ae(s) : G(0);
|
|
935
936
|
let l = (i.left + a.x) / r.x, u = (i.top + a.y) / r.y, d = i.width / r.x, c = i.height / r.y;
|
|
936
937
|
if (s) {
|
|
937
938
|
const h = P(s), f = n && K(n) ? P(n) : n;
|
|
938
939
|
let p = h, m = Qt(p);
|
|
939
940
|
for (; m && n && f !== p; ) {
|
|
940
|
-
const g =
|
|
941
|
-
l *= g.x, u *= g.y, d *= g.x, c *= g.y, l += v, u +=
|
|
941
|
+
const g = rt(m), y = m.getBoundingClientRect(), b = W(m), v = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, _ = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
|
|
942
|
+
l *= g.x, u *= g.y, d *= g.x, c *= g.y, l += v, u += _, p = P(m), m = Qt(p);
|
|
942
943
|
}
|
|
943
944
|
}
|
|
944
|
-
return
|
|
945
|
+
return at({
|
|
945
946
|
width: d,
|
|
946
947
|
height: c,
|
|
947
948
|
x: l,
|
|
@@ -950,35 +951,35 @@ function ht(t, e, o, n) {
|
|
|
950
951
|
}
|
|
951
952
|
function kt(t, e) {
|
|
952
953
|
const o = _t(t).scrollLeft;
|
|
953
|
-
return e ? e.left + o : ht(
|
|
954
|
+
return e ? e.left + o : ht(tt(t)).left + o;
|
|
954
955
|
}
|
|
955
|
-
function
|
|
956
|
+
function De(t, e) {
|
|
956
957
|
const o = t.getBoundingClientRect(), n = o.left + e.scrollLeft - kt(t, o), i = o.top + e.scrollTop;
|
|
957
958
|
return {
|
|
958
959
|
x: n,
|
|
959
960
|
y: i
|
|
960
961
|
};
|
|
961
962
|
}
|
|
962
|
-
function
|
|
963
|
+
function No(t) {
|
|
963
964
|
let {
|
|
964
965
|
elements: e,
|
|
965
966
|
rect: o,
|
|
966
967
|
offsetParent: n,
|
|
967
968
|
strategy: i
|
|
968
969
|
} = t;
|
|
969
|
-
const s = i === "fixed", r =
|
|
970
|
+
const s = i === "fixed", r = tt(n), a = e ? Tt(e.floating) : !1;
|
|
970
971
|
if (n === r || a && s)
|
|
971
972
|
return o;
|
|
972
973
|
let l = {
|
|
973
974
|
scrollLeft: 0,
|
|
974
975
|
scrollTop: 0
|
|
975
|
-
}, u =
|
|
976
|
-
const d =
|
|
977
|
-
if ((c || !c && !s) && ((
|
|
976
|
+
}, u = G(1);
|
|
977
|
+
const d = G(0), c = Z(n);
|
|
978
|
+
if ((c || !c && !s) && ((dt(n) !== "body" || yt(r)) && (l = _t(n)), Z(n))) {
|
|
978
979
|
const f = ht(n);
|
|
979
|
-
u =
|
|
980
|
+
u = rt(n), d.x = f.x + n.clientLeft, d.y = f.y + n.clientTop;
|
|
980
981
|
}
|
|
981
|
-
const h = r && !c && !s ?
|
|
982
|
+
const h = r && !c && !s ? De(r, l) : G(0);
|
|
982
983
|
return {
|
|
983
984
|
width: o.width * u.x,
|
|
984
985
|
height: o.height * u.y,
|
|
@@ -986,14 +987,14 @@ function Bo(t) {
|
|
|
986
987
|
y: o.y * u.y - l.scrollTop * u.y + d.y + h.y
|
|
987
988
|
};
|
|
988
989
|
}
|
|
989
|
-
function
|
|
990
|
+
function Po(t) {
|
|
990
991
|
return Array.from(t.getClientRects());
|
|
991
992
|
}
|
|
992
|
-
function
|
|
993
|
-
const e =
|
|
993
|
+
function Uo(t) {
|
|
994
|
+
const e = tt(t), o = _t(t), n = t.ownerDocument.body, i = M(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), s = M(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
994
995
|
let r = -o.scrollLeft + kt(t);
|
|
995
996
|
const a = -o.scrollTop;
|
|
996
|
-
return W(n).direction === "rtl" && (r +=
|
|
997
|
+
return W(n).direction === "rtl" && (r += M(e.clientWidth, n.clientWidth) - i), {
|
|
997
998
|
width: i,
|
|
998
999
|
height: s,
|
|
999
1000
|
x: r,
|
|
@@ -1001,8 +1002,8 @@ function Po(t) {
|
|
|
1001
1002
|
};
|
|
1002
1003
|
}
|
|
1003
1004
|
const te = 25;
|
|
1004
|
-
function
|
|
1005
|
-
const o = P(t), n =
|
|
1005
|
+
function Vo(t, e) {
|
|
1006
|
+
const o = P(t), n = tt(t), i = o.visualViewport;
|
|
1006
1007
|
let s = n.clientWidth, r = n.clientHeight, a = 0, l = 0;
|
|
1007
1008
|
if (i) {
|
|
1008
1009
|
s = i.width, r = i.height;
|
|
@@ -1021,9 +1022,9 @@ function Uo(t, e) {
|
|
|
1021
1022
|
y: l
|
|
1022
1023
|
};
|
|
1023
1024
|
}
|
|
1024
|
-
const
|
|
1025
|
+
const zo = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
1025
1026
|
function jo(t, e) {
|
|
1026
|
-
const o = ht(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, s =
|
|
1027
|
+
const o = ht(t, !0, e === "fixed"), n = o.top + t.clientTop, i = o.left + t.clientLeft, s = Z(t) ? rt(t) : G(1), r = t.clientWidth * s.x, a = t.clientHeight * s.y, l = i * s.x, u = n * s.y;
|
|
1027
1028
|
return {
|
|
1028
1029
|
width: r,
|
|
1029
1030
|
height: a,
|
|
@@ -1034,13 +1035,13 @@ function jo(t, e) {
|
|
|
1034
1035
|
function ee(t, e, o) {
|
|
1035
1036
|
let n;
|
|
1036
1037
|
if (e === "viewport")
|
|
1037
|
-
n =
|
|
1038
|
+
n = Vo(t, o);
|
|
1038
1039
|
else if (e === "document")
|
|
1039
|
-
n =
|
|
1040
|
+
n = Uo(tt(t));
|
|
1040
1041
|
else if (K(e))
|
|
1041
1042
|
n = jo(e, o);
|
|
1042
1043
|
else {
|
|
1043
|
-
const i =
|
|
1044
|
+
const i = Ae(t);
|
|
1044
1045
|
n = {
|
|
1045
1046
|
x: e.x - i.x,
|
|
1046
1047
|
y: e.y - i.y,
|
|
@@ -1048,35 +1049,35 @@ function ee(t, e, o) {
|
|
|
1048
1049
|
height: e.height
|
|
1049
1050
|
};
|
|
1050
1051
|
}
|
|
1051
|
-
return
|
|
1052
|
+
return at(n);
|
|
1052
1053
|
}
|
|
1053
|
-
function
|
|
1054
|
-
const o =
|
|
1055
|
-
return o === e || !K(o) ||
|
|
1054
|
+
function Re(t, e) {
|
|
1055
|
+
const o = nt(t);
|
|
1056
|
+
return o === e || !K(o) || lt(o) ? !1 : W(o).position === "fixed" || Re(o, e);
|
|
1056
1057
|
}
|
|
1057
|
-
function
|
|
1058
|
+
function Fo(t, e) {
|
|
1058
1059
|
const o = e.get(t);
|
|
1059
1060
|
if (o)
|
|
1060
1061
|
return o;
|
|
1061
|
-
let n =
|
|
1062
|
+
let n = Se(t, []).filter((a) => K(a) && dt(a) !== "body"), i = null;
|
|
1062
1063
|
const s = W(t).position === "fixed";
|
|
1063
|
-
let r = s ?
|
|
1064
|
-
for (; K(r) && !
|
|
1064
|
+
let r = s ? nt(t) : t;
|
|
1065
|
+
for (; K(r) && !lt(r); ) {
|
|
1065
1066
|
const a = W(r), l = Bt(r);
|
|
1066
|
-
!l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i &&
|
|
1067
|
+
!l && a.position === "fixed" && (i = null), (s ? !l && !i : !l && a.position === "static" && !!i && zo.has(i.position) || yt(r) && !l && Re(t, r)) ? n = n.filter((d) => d !== r) : i = a, r = nt(r);
|
|
1067
1068
|
}
|
|
1068
1069
|
return e.set(t, n), n;
|
|
1069
1070
|
}
|
|
1070
|
-
function
|
|
1071
|
+
function Ko(t) {
|
|
1071
1072
|
let {
|
|
1072
1073
|
element: e,
|
|
1073
1074
|
boundary: o,
|
|
1074
1075
|
rootBoundary: n,
|
|
1075
1076
|
strategy: i
|
|
1076
1077
|
} = t;
|
|
1077
|
-
const r = [...o === "clippingAncestors" ? Tt(e) ? [] :
|
|
1078
|
+
const r = [...o === "clippingAncestors" ? Tt(e) ? [] : Fo(e, this._c) : [].concat(o), n], a = r[0], l = r.reduce((u, d) => {
|
|
1078
1079
|
const c = ee(e, d, i);
|
|
1079
|
-
return u.top =
|
|
1080
|
+
return u.top = M(c.top, u.top), u.right = J(c.right, u.right), u.bottom = J(c.bottom, u.bottom), u.left = M(c.left, u.left), u;
|
|
1080
1081
|
}, ee(e, a, i));
|
|
1081
1082
|
return {
|
|
1082
1083
|
width: l.right - l.left,
|
|
@@ -1085,33 +1086,33 @@ function Fo(t) {
|
|
|
1085
1086
|
y: l.top
|
|
1086
1087
|
};
|
|
1087
1088
|
}
|
|
1088
|
-
function
|
|
1089
|
+
function Wo(t) {
|
|
1089
1090
|
const {
|
|
1090
1091
|
width: e,
|
|
1091
1092
|
height: o
|
|
1092
|
-
} =
|
|
1093
|
+
} = Le(t);
|
|
1093
1094
|
return {
|
|
1094
1095
|
width: e,
|
|
1095
1096
|
height: o
|
|
1096
1097
|
};
|
|
1097
1098
|
}
|
|
1098
|
-
function
|
|
1099
|
-
const n =
|
|
1099
|
+
function qo(t, e, o) {
|
|
1100
|
+
const n = Z(e), i = tt(e), s = o === "fixed", r = ht(t, !0, s, e);
|
|
1100
1101
|
let a = {
|
|
1101
1102
|
scrollLeft: 0,
|
|
1102
1103
|
scrollTop: 0
|
|
1103
1104
|
};
|
|
1104
|
-
const l =
|
|
1105
|
+
const l = G(0);
|
|
1105
1106
|
function u() {
|
|
1106
1107
|
l.x = kt(i);
|
|
1107
1108
|
}
|
|
1108
1109
|
if (n || !n && !s)
|
|
1109
|
-
if ((
|
|
1110
|
+
if ((dt(e) !== "body" || yt(i)) && (a = _t(e)), n) {
|
|
1110
1111
|
const f = ht(e, !0, s, e);
|
|
1111
1112
|
l.x = f.x + e.clientLeft, l.y = f.y + e.clientTop;
|
|
1112
1113
|
} else i && u();
|
|
1113
1114
|
s && !n && i && u();
|
|
1114
|
-
const d = i && !n && !s ?
|
|
1115
|
+
const d = i && !n && !s ? De(i, a) : G(0), c = r.left + a.scrollLeft - l.x - d.x, h = r.top + a.scrollTop - l.y - d.y;
|
|
1115
1116
|
return {
|
|
1116
1117
|
x: c,
|
|
1117
1118
|
y: h,
|
|
@@ -1123,35 +1124,35 @@ function Ot(t) {
|
|
|
1123
1124
|
return W(t).position === "static";
|
|
1124
1125
|
}
|
|
1125
1126
|
function ne(t, e) {
|
|
1126
|
-
if (!
|
|
1127
|
+
if (!Z(t) || W(t).position === "fixed")
|
|
1127
1128
|
return null;
|
|
1128
1129
|
if (e)
|
|
1129
1130
|
return e(t);
|
|
1130
1131
|
let o = t.offsetParent;
|
|
1131
|
-
return
|
|
1132
|
+
return tt(t) === o && (o = o.ownerDocument.body), o;
|
|
1132
1133
|
}
|
|
1133
|
-
function
|
|
1134
|
+
function Me(t, e) {
|
|
1134
1135
|
const o = P(t);
|
|
1135
1136
|
if (Tt(t))
|
|
1136
1137
|
return o;
|
|
1137
|
-
if (!
|
|
1138
|
-
let i =
|
|
1139
|
-
for (; i && !
|
|
1138
|
+
if (!Z(t)) {
|
|
1139
|
+
let i = nt(t);
|
|
1140
|
+
for (; i && !lt(i); ) {
|
|
1140
1141
|
if (K(i) && !Ot(i))
|
|
1141
1142
|
return i;
|
|
1142
|
-
i =
|
|
1143
|
+
i = nt(i);
|
|
1143
1144
|
}
|
|
1144
1145
|
return o;
|
|
1145
1146
|
}
|
|
1146
1147
|
let n = ne(t, e);
|
|
1147
|
-
for (; n &&
|
|
1148
|
+
for (; n && Lo(n) && Ot(n); )
|
|
1148
1149
|
n = ne(n, e);
|
|
1149
|
-
return n &&
|
|
1150
|
+
return n && lt(n) && Ot(n) && !Bt(n) ? o : n || Mo(t) || o;
|
|
1150
1151
|
}
|
|
1151
|
-
const
|
|
1152
|
-
const e = this.getOffsetParent ||
|
|
1152
|
+
const Xo = async function(t) {
|
|
1153
|
+
const e = this.getOffsetParent || Me, o = this.getDimensions, n = await o(t.floating);
|
|
1153
1154
|
return {
|
|
1154
|
-
reference:
|
|
1155
|
+
reference: qo(t.reference, await e(t.floating), t.strategy),
|
|
1155
1156
|
floating: {
|
|
1156
1157
|
x: 0,
|
|
1157
1158
|
y: 0,
|
|
@@ -1160,38 +1161,38 @@ const qo = async function(t) {
|
|
|
1160
1161
|
}
|
|
1161
1162
|
};
|
|
1162
1163
|
};
|
|
1163
|
-
function
|
|
1164
|
+
function Yo(t) {
|
|
1164
1165
|
return W(t).direction === "rtl";
|
|
1165
1166
|
}
|
|
1166
|
-
const
|
|
1167
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
1168
|
-
getDocumentElement:
|
|
1169
|
-
getClippingRect:
|
|
1170
|
-
getOffsetParent:
|
|
1171
|
-
getElementRects:
|
|
1172
|
-
getClientRects:
|
|
1173
|
-
getDimensions:
|
|
1174
|
-
getScale:
|
|
1167
|
+
const Go = {
|
|
1168
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: No,
|
|
1169
|
+
getDocumentElement: tt,
|
|
1170
|
+
getClippingRect: Ko,
|
|
1171
|
+
getOffsetParent: Me,
|
|
1172
|
+
getElementRects: Xo,
|
|
1173
|
+
getClientRects: Po,
|
|
1174
|
+
getDimensions: Wo,
|
|
1175
|
+
getScale: rt,
|
|
1175
1176
|
isElement: K,
|
|
1176
|
-
isRTL:
|
|
1177
|
-
}, Pt =
|
|
1177
|
+
isRTL: Yo
|
|
1178
|
+
}, Pt = ko, He = yo, Ut = Co, Vt = wo, $e = Oo, Be = bo, Ne = mo, Pe = xo, zt = (t, e, o) => {
|
|
1178
1179
|
const n = /* @__PURE__ */ new Map(), i = {
|
|
1179
|
-
platform:
|
|
1180
|
+
platform: Go,
|
|
1180
1181
|
...o
|
|
1181
1182
|
}, s = {
|
|
1182
1183
|
...i.platform,
|
|
1183
1184
|
_c: n
|
|
1184
1185
|
};
|
|
1185
|
-
return
|
|
1186
|
+
return po(t, e, {
|
|
1186
1187
|
...i,
|
|
1187
1188
|
platform: s
|
|
1188
1189
|
});
|
|
1189
1190
|
};
|
|
1190
|
-
function
|
|
1191
|
+
function Jo(t, e) {
|
|
1191
1192
|
const o = Math.min(t.top, e.top), n = Math.max(t.bottom, e.bottom), i = Math.min(t.left, e.left), r = Math.max(t.right, e.right) - i, a = n - o, l = i, u = o;
|
|
1192
1193
|
return new DOMRect(l, u, r, a);
|
|
1193
1194
|
}
|
|
1194
|
-
var
|
|
1195
|
+
var Zo = class {
|
|
1195
1196
|
constructor({
|
|
1196
1197
|
editor: t,
|
|
1197
1198
|
element: e,
|
|
@@ -1219,7 +1220,7 @@ var Jo = class {
|
|
|
1219
1220
|
onUpdate: void 0,
|
|
1220
1221
|
onDestroy: void 0
|
|
1221
1222
|
}, this.shouldShow = ({ view: d, state: c, from: h, to: f }) => {
|
|
1222
|
-
const { doc: p, selection: m } = c, { empty: g } = m, y = !p.textBetween(h, f).length &&
|
|
1223
|
+
const { doc: p, selection: m } = c, { empty: g } = m, y = !p.textBetween(h, f).length && We(c.selection), b = this.element.contains(document.activeElement);
|
|
1223
1224
|
return !(!(d.hasFocus() || b) || g || y || !this.editor.isEditable);
|
|
1224
1225
|
}, this.mousedownHandler = () => {
|
|
1225
1226
|
this.preventHide = !0;
|
|
@@ -1272,12 +1273,12 @@ var Jo = class {
|
|
|
1272
1273
|
Ut(typeof this.floatingUIOptions.shift != "boolean" ? this.floatingUIOptions.shift : void 0)
|
|
1273
1274
|
), this.floatingUIOptions.offset && t.push(
|
|
1274
1275
|
Pt(typeof this.floatingUIOptions.offset != "boolean" ? this.floatingUIOptions.offset : void 0)
|
|
1275
|
-
), this.floatingUIOptions.arrow && t.push(
|
|
1276
|
-
|
|
1276
|
+
), this.floatingUIOptions.arrow && t.push(Ne(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && t.push($e(typeof this.floatingUIOptions.size != "boolean" ? this.floatingUIOptions.size : void 0)), this.floatingUIOptions.autoPlacement && t.push(
|
|
1277
|
+
He(
|
|
1277
1278
|
typeof this.floatingUIOptions.autoPlacement != "boolean" ? this.floatingUIOptions.autoPlacement : void 0
|
|
1278
1279
|
)
|
|
1279
|
-
), this.floatingUIOptions.hide && t.push(
|
|
1280
|
-
|
|
1280
|
+
), this.floatingUIOptions.hide && t.push(Be(typeof this.floatingUIOptions.hide != "boolean" ? this.floatingUIOptions.hide : void 0)), this.floatingUIOptions.inline && t.push(
|
|
1281
|
+
Pe(typeof this.floatingUIOptions.inline != "boolean" ? this.floatingUIOptions.inline : void 0)
|
|
1281
1282
|
), t;
|
|
1282
1283
|
}
|
|
1283
1284
|
get virtualElement() {
|
|
@@ -1292,7 +1293,7 @@ var Jo = class {
|
|
|
1292
1293
|
getBoundingClientRect: () => s,
|
|
1293
1294
|
getClientRects: () => [s]
|
|
1294
1295
|
};
|
|
1295
|
-
if (n instanceof
|
|
1296
|
+
if (n instanceof on) {
|
|
1296
1297
|
let a = this.view.nodeDOM(n.from);
|
|
1297
1298
|
const l = a.dataset.nodeViewWrapper ? a : a.querySelector("[data-node-view-wrapper]");
|
|
1298
1299
|
l && (a = l), a && (r = {
|
|
@@ -1300,11 +1301,11 @@ var Jo = class {
|
|
|
1300
1301
|
getClientRects: () => [a.getBoundingClientRect()]
|
|
1301
1302
|
});
|
|
1302
1303
|
}
|
|
1303
|
-
if (n instanceof
|
|
1304
|
+
if (n instanceof sn) {
|
|
1304
1305
|
const { $anchorCell: a, $headCell: l } = n, u = a ? a.pos : l.pos, d = l ? l.pos : a.pos, c = this.view.nodeDOM(u), h = this.view.nodeDOM(d);
|
|
1305
1306
|
if (!c || !h)
|
|
1306
1307
|
return;
|
|
1307
|
-
const f = c === h ? c.getBoundingClientRect() :
|
|
1308
|
+
const f = c === h ? c.getBoundingClientRect() : Jo(
|
|
1308
1309
|
c.getBoundingClientRect(),
|
|
1309
1310
|
h.getBoundingClientRect()
|
|
1310
1311
|
);
|
|
@@ -1317,7 +1318,7 @@ var Jo = class {
|
|
|
1317
1318
|
}
|
|
1318
1319
|
updatePosition() {
|
|
1319
1320
|
const t = this.virtualElement;
|
|
1320
|
-
t &&
|
|
1321
|
+
t && zt(t, this.element, {
|
|
1321
1322
|
placement: this.floatingUIOptions.placement,
|
|
1322
1323
|
strategy: this.floatingUIOptions.strategy,
|
|
1323
1324
|
middleware: this.middlewares
|
|
@@ -1376,10 +1377,10 @@ var Jo = class {
|
|
|
1376
1377
|
destroy() {
|
|
1377
1378
|
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();
|
|
1378
1379
|
}
|
|
1379
|
-
},
|
|
1380
|
-
key: typeof t.pluginKey == "string" ? new
|
|
1381
|
-
view: (e) => new
|
|
1382
|
-
}),
|
|
1380
|
+
}, Qo = (t) => new It({
|
|
1381
|
+
key: typeof t.pluginKey == "string" ? new st(t.pluginKey) : t.pluginKey,
|
|
1382
|
+
view: (e) => new Zo({ view: e, ...t })
|
|
1383
|
+
}), ti = le({
|
|
1383
1384
|
name: "BubbleMenu",
|
|
1384
1385
|
inheritAttrs: !1,
|
|
1385
1386
|
props: {
|
|
@@ -1429,9 +1430,9 @@ var Jo = class {
|
|
|
1429
1430
|
getReferencedVirtualElement: d,
|
|
1430
1431
|
updateDelay: c
|
|
1431
1432
|
} = t, h = n.value;
|
|
1432
|
-
h && (h.style.visibility = "hidden", h.style.position = "absolute", h.remove(),
|
|
1433
|
+
h && (h.style.visibility = "hidden", h.style.position = "absolute", h.remove(), rn(() => {
|
|
1433
1434
|
i.registerPlugin(
|
|
1434
|
-
|
|
1435
|
+
Qo({
|
|
1435
1436
|
editor: i,
|
|
1436
1437
|
element: h,
|
|
1437
1438
|
options: s,
|
|
@@ -1452,7 +1453,7 @@ var Jo = class {
|
|
|
1452
1453
|
return he("div", { ref: n, ...o }, (i = e.default) == null ? void 0 : i.call(e));
|
|
1453
1454
|
};
|
|
1454
1455
|
}
|
|
1455
|
-
}),
|
|
1456
|
+
}), ei = class {
|
|
1456
1457
|
constructor({
|
|
1457
1458
|
editor: t,
|
|
1458
1459
|
element: e,
|
|
@@ -1512,7 +1513,7 @@ var Jo = class {
|
|
|
1512
1513
|
}, this.element.tabIndex = 0, a && (this.shouldShow = a), 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(o, o.state), this.getShouldShow() && (this.show(), this.updatePosition());
|
|
1513
1514
|
}
|
|
1514
1515
|
getTextContent(t) {
|
|
1515
|
-
return
|
|
1516
|
+
return qe(t, { textSerializers: Xe(this.editor.schema) });
|
|
1516
1517
|
}
|
|
1517
1518
|
get middlewares() {
|
|
1518
1519
|
const t = [];
|
|
@@ -1520,12 +1521,12 @@ var Jo = class {
|
|
|
1520
1521
|
Ut(typeof this.floatingUIOptions.shift != "boolean" ? this.floatingUIOptions.shift : void 0)
|
|
1521
1522
|
), this.floatingUIOptions.offset && t.push(
|
|
1522
1523
|
Pt(typeof this.floatingUIOptions.offset != "boolean" ? this.floatingUIOptions.offset : void 0)
|
|
1523
|
-
), this.floatingUIOptions.arrow && t.push(
|
|
1524
|
-
|
|
1524
|
+
), this.floatingUIOptions.arrow && t.push(Ne(this.floatingUIOptions.arrow)), this.floatingUIOptions.size && t.push($e(typeof this.floatingUIOptions.size != "boolean" ? this.floatingUIOptions.size : void 0)), this.floatingUIOptions.autoPlacement && t.push(
|
|
1525
|
+
He(
|
|
1525
1526
|
typeof this.floatingUIOptions.autoPlacement != "boolean" ? this.floatingUIOptions.autoPlacement : void 0
|
|
1526
1527
|
)
|
|
1527
|
-
), this.floatingUIOptions.hide && t.push(
|
|
1528
|
-
|
|
1528
|
+
), this.floatingUIOptions.hide && t.push(Be(typeof this.floatingUIOptions.hide != "boolean" ? this.floatingUIOptions.hide : void 0)), this.floatingUIOptions.inline && t.push(
|
|
1529
|
+
Pe(typeof this.floatingUIOptions.inline != "boolean" ? this.floatingUIOptions.inline : void 0)
|
|
1529
1530
|
), t;
|
|
1530
1531
|
}
|
|
1531
1532
|
getShouldShow(t) {
|
|
@@ -1552,7 +1553,7 @@ var Jo = class {
|
|
|
1552
1553
|
}
|
|
1553
1554
|
updatePosition() {
|
|
1554
1555
|
const { selection: t } = this.editor.state, e = re(this.view, t.from, t.to);
|
|
1555
|
-
|
|
1556
|
+
zt({
|
|
1556
1557
|
getBoundingClientRect: () => e,
|
|
1557
1558
|
getClientRects: () => [e]
|
|
1558
1559
|
}, this.element, {
|
|
@@ -1586,9 +1587,9 @@ var Jo = class {
|
|
|
1586
1587
|
destroy() {
|
|
1587
1588
|
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();
|
|
1588
1589
|
}
|
|
1589
|
-
},
|
|
1590
|
-
key: typeof t.pluginKey == "string" ? new
|
|
1591
|
-
view: (e) => new
|
|
1590
|
+
}, ni = (t) => new It({
|
|
1591
|
+
key: typeof t.pluginKey == "string" ? new st(t.pluginKey) : t.pluginKey,
|
|
1592
|
+
view: (e) => new ei({ view: e, ...t })
|
|
1592
1593
|
});
|
|
1593
1594
|
le({
|
|
1594
1595
|
name: "FloatingMenu",
|
|
@@ -1630,7 +1631,7 @@ le({
|
|
|
1630
1631
|
return de(() => {
|
|
1631
1632
|
const { pluginKey: i, editor: s, updateDelay: r, resizeDelay: a, options: l, appendTo: u, shouldShow: d } = t, c = n.value;
|
|
1632
1633
|
c && (c.style.visibility = "hidden", c.style.position = "absolute", c.remove(), s.registerPlugin(
|
|
1633
|
-
|
|
1634
|
+
ni({
|
|
1634
1635
|
pluginKey: i,
|
|
1635
1636
|
editor: s,
|
|
1636
1637
|
element: c,
|
|
@@ -1650,7 +1651,7 @@ le({
|
|
|
1650
1651
|
};
|
|
1651
1652
|
}
|
|
1652
1653
|
});
|
|
1653
|
-
const
|
|
1654
|
+
const oi = {
|
|
1654
1655
|
compatConfig: { MODE: 3 },
|
|
1655
1656
|
name: "EmojiComponent",
|
|
1656
1657
|
components: {
|
|
@@ -1659,11 +1660,11 @@ const ni = {
|
|
|
1659
1660
|
},
|
|
1660
1661
|
props: ft
|
|
1661
1662
|
};
|
|
1662
|
-
function
|
|
1663
|
-
const r =
|
|
1664
|
-
return
|
|
1665
|
-
default:
|
|
1666
|
-
|
|
1663
|
+
function ii(t, e, o, n, i, s) {
|
|
1664
|
+
const r = x("dt-emoji"), a = x("node-view-wrapper");
|
|
1665
|
+
return k(), E(a, { class: "d-d-inline-block d-va-bottom d-lh0" }, {
|
|
1666
|
+
default: T(() => [
|
|
1667
|
+
A(r, {
|
|
1667
1668
|
size: "500",
|
|
1668
1669
|
code: t.node.attrs.code
|
|
1669
1670
|
}, null, 8, ["code"])
|
|
@@ -1671,11 +1672,11 @@ function oi(t, e, o, n, i, s) {
|
|
|
1671
1672
|
_: 1
|
|
1672
1673
|
});
|
|
1673
1674
|
}
|
|
1674
|
-
const
|
|
1675
|
+
const si = /* @__PURE__ */ q(oi, [["render", ii]]), ri = {
|
|
1675
1676
|
compatConfig: { MODE: 3 },
|
|
1676
1677
|
name: "SuggestionList",
|
|
1677
1678
|
components: {
|
|
1678
|
-
DtListItem:
|
|
1679
|
+
DtListItem: zn
|
|
1679
1680
|
},
|
|
1680
1681
|
props: {
|
|
1681
1682
|
items: {
|
|
@@ -1744,15 +1745,15 @@ const ii = /* @__PURE__ */ q(ni, [["render", oi]]), si = {
|
|
|
1744
1745
|
}
|
|
1745
1746
|
}
|
|
1746
1747
|
}
|
|
1747
|
-
},
|
|
1748
|
+
}, ai = { class: "d-popover__dialog d-suggestion-list__container" }, li = {
|
|
1748
1749
|
ref: "suggestionList",
|
|
1749
1750
|
class: "d-suggestion-list"
|
|
1750
1751
|
};
|
|
1751
|
-
function
|
|
1752
|
-
const r =
|
|
1753
|
-
return
|
|
1754
|
-
|
|
1755
|
-
(
|
|
1752
|
+
function ci(t, e, o, n, i, s) {
|
|
1753
|
+
const r = x("dt-list-item");
|
|
1754
|
+
return k(), ut("div", ai, [
|
|
1755
|
+
an(ct("ul", li, [
|
|
1756
|
+
(k(!0), ut(ln, null, cn(o.items, (a, l) => (k(), E(r, {
|
|
1756
1757
|
key: a.id,
|
|
1757
1758
|
class: fe([
|
|
1758
1759
|
"d-suggestion-list__item",
|
|
@@ -1762,18 +1763,18 @@ function li(t, e, o, n, i, s) {
|
|
|
1762
1763
|
onClick: (u) => s.selectItem(l),
|
|
1763
1764
|
onKeydown: At(s.onKeyDown, ["prevent"])
|
|
1764
1765
|
}, {
|
|
1765
|
-
default:
|
|
1766
|
-
(
|
|
1766
|
+
default: T(() => [
|
|
1767
|
+
(k(), E(dn(o.itemComponent), { item: a }, null, 8, ["item"]))
|
|
1767
1768
|
]),
|
|
1768
1769
|
_: 2
|
|
1769
1770
|
}, 1032, ["class", "onClick", "onKeydown"]))), 128))
|
|
1770
1771
|
], 512), [
|
|
1771
|
-
[
|
|
1772
|
+
[un, o.items.length]
|
|
1772
1773
|
])
|
|
1773
1774
|
]);
|
|
1774
1775
|
}
|
|
1775
|
-
const
|
|
1776
|
-
function
|
|
1776
|
+
const di = /* @__PURE__ */ q(ri, [["render", ci]]), Ue = "top-start", Ve = "650";
|
|
1777
|
+
function ui() {
|
|
1777
1778
|
return {
|
|
1778
1779
|
getBoundingClientRect: () => ({
|
|
1779
1780
|
width: 0,
|
|
@@ -1790,12 +1791,12 @@ function di() {
|
|
|
1790
1791
|
function oe(t) {
|
|
1791
1792
|
return { getBoundingClientRect: t };
|
|
1792
1793
|
}
|
|
1793
|
-
async function
|
|
1794
|
+
async function hi(t, e, o = {}) {
|
|
1794
1795
|
if (!t || !(e != null && e.getBoundingClientRect)) return;
|
|
1795
1796
|
const {
|
|
1796
|
-
placement: n =
|
|
1797
|
+
placement: n = Ue,
|
|
1797
1798
|
middleware: i = [Pt(0), Vt(), Ut({ padding: 8 })]
|
|
1798
|
-
} = o, { x: s, y: r } = await
|
|
1799
|
+
} = o, { x: s, y: r } = await zt(e, t, {
|
|
1799
1800
|
placement: n,
|
|
1800
1801
|
middleware: i
|
|
1801
1802
|
});
|
|
@@ -1804,61 +1805,61 @@ async function ui(t, e, o = {}) {
|
|
|
1804
1805
|
top: `${r}px`
|
|
1805
1806
|
});
|
|
1806
1807
|
}
|
|
1807
|
-
function
|
|
1808
|
-
const { zIndex: o =
|
|
1808
|
+
function fi(t, e = {}) {
|
|
1809
|
+
const { zIndex: o = Ve } = e;
|
|
1809
1810
|
t.style.position = "absolute", t.style.zIndex = o, t.style.display = "none";
|
|
1810
1811
|
}
|
|
1811
|
-
function
|
|
1812
|
+
function pi(t) {
|
|
1812
1813
|
t && (t.style.display = "block");
|
|
1813
1814
|
}
|
|
1814
|
-
function
|
|
1815
|
+
function mi(t) {
|
|
1815
1816
|
t && (t.style.display = "none");
|
|
1816
1817
|
}
|
|
1817
|
-
function
|
|
1818
|
+
function gi(t, e) {
|
|
1818
1819
|
return (o) => {
|
|
1819
1820
|
o.key === "Escape" && e() && t();
|
|
1820
1821
|
};
|
|
1821
1822
|
}
|
|
1822
|
-
function
|
|
1823
|
+
function yi(t) {
|
|
1823
1824
|
document.addEventListener("keydown", t);
|
|
1824
1825
|
}
|
|
1825
|
-
function
|
|
1826
|
+
function wi(t) {
|
|
1826
1827
|
document.removeEventListener("keydown", t);
|
|
1827
1828
|
}
|
|
1828
|
-
function
|
|
1829
|
+
function bi(t, e, o, n) {
|
|
1829
1830
|
return new je(t, {
|
|
1830
1831
|
props: {
|
|
1831
|
-
itemComponent:
|
|
1832
|
+
itemComponent: hn(e),
|
|
1832
1833
|
itemType: o,
|
|
1833
1834
|
...n
|
|
1834
1835
|
},
|
|
1835
1836
|
editor: n.editor
|
|
1836
1837
|
});
|
|
1837
1838
|
}
|
|
1838
|
-
function
|
|
1839
|
+
function vi(t) {
|
|
1839
1840
|
var e, o;
|
|
1840
|
-
t.escHandler &&
|
|
1841
|
+
t.escHandler && wi(t.escHandler), (e = t.floatingEl) == null || e.remove(), (o = t.component) == null || o.destroy();
|
|
1841
1842
|
}
|
|
1842
1843
|
function Ct(t, e, o = {}) {
|
|
1843
1844
|
const {
|
|
1844
|
-
listComponent: n =
|
|
1845
|
-
placement: i =
|
|
1846
|
-
zIndex: s =
|
|
1845
|
+
listComponent: n = di,
|
|
1846
|
+
placement: i = Ue,
|
|
1847
|
+
zIndex: s = Ve
|
|
1847
1848
|
} = o;
|
|
1848
1849
|
return () => {
|
|
1849
|
-
let r = null, a = null, l = !1, u =
|
|
1850
|
+
let r = null, a = null, l = !1, u = ui(), d = null;
|
|
1850
1851
|
function c() {
|
|
1851
|
-
|
|
1852
|
+
hi(a, u, { placement: i });
|
|
1852
1853
|
}
|
|
1853
1854
|
function h() {
|
|
1854
|
-
a && (
|
|
1855
|
+
a && (pi(a), l = !0, c());
|
|
1855
1856
|
}
|
|
1856
1857
|
function f() {
|
|
1857
|
-
a && (
|
|
1858
|
+
a && (mi(a), l = !1);
|
|
1858
1859
|
}
|
|
1859
1860
|
return {
|
|
1860
1861
|
onStart: (p) => {
|
|
1861
|
-
r =
|
|
1862
|
+
r = bi(n, t, e, p), p.clientRect && (a = r.element, fi(a, { zIndex: s }), document.body.appendChild(a), u = oe(p.clientRect), d = gi(f, () => l), yi(d), p.items.length > 0 && h());
|
|
1862
1863
|
},
|
|
1863
1864
|
onUpdate(p) {
|
|
1864
1865
|
r == null || r.updateProps(p), p.items.length > 0 ? h() : f(), p.clientRect && (u = oe(p.clientRect), c());
|
|
@@ -1869,12 +1870,12 @@ function Ct(t, e, o = {}) {
|
|
|
1869
1870
|
return (m = r == null ? void 0 : r.ref) == null ? void 0 : m.onKeyDown(p);
|
|
1870
1871
|
},
|
|
1871
1872
|
onExit() {
|
|
1872
|
-
|
|
1873
|
+
vi({ escHandler: d, floatingEl: a, component: r }), d = null, a = null, r = null;
|
|
1873
1874
|
}
|
|
1874
1875
|
};
|
|
1875
1876
|
};
|
|
1876
1877
|
}
|
|
1877
|
-
const
|
|
1878
|
+
const xi = {
|
|
1878
1879
|
compatConfig: { MODE: 3 },
|
|
1879
1880
|
name: "EmojiSuggestion",
|
|
1880
1881
|
components: {
|
|
@@ -1888,31 +1889,31 @@ const vi = {
|
|
|
1888
1889
|
}
|
|
1889
1890
|
}
|
|
1890
1891
|
};
|
|
1891
|
-
function
|
|
1892
|
-
const r =
|
|
1893
|
-
return
|
|
1892
|
+
function Ti(t, e, o, n, i, s) {
|
|
1893
|
+
const r = x("dt-emoji"), a = x("dt-stack");
|
|
1894
|
+
return k(), E(a, {
|
|
1894
1895
|
direction: "row",
|
|
1895
1896
|
gap: "400"
|
|
1896
1897
|
}, {
|
|
1897
|
-
default:
|
|
1898
|
-
|
|
1898
|
+
default: T(() => [
|
|
1899
|
+
A(r, {
|
|
1899
1900
|
size: "200",
|
|
1900
1901
|
code: o.item.code
|
|
1901
1902
|
}, null, 8, ["code"]),
|
|
1902
|
-
|
|
1903
|
+
Y(" " + $(o.item.code), 1)
|
|
1903
1904
|
]),
|
|
1904
1905
|
_: 1
|
|
1905
1906
|
});
|
|
1906
1907
|
}
|
|
1907
|
-
const
|
|
1908
|
+
const _i = /* @__PURE__ */ q(xi, [["render", Ti]]), ki = 20, Ci = (t, e, o) => {
|
|
1908
1909
|
var a, l;
|
|
1909
1910
|
const n = (a = t.shortname) == null ? void 0 : a.replaceAll(":", ""), i = (l = e.shortname) == null ? void 0 : l.replaceAll(":", ""), s = n.startsWith(o), r = i.startsWith(o);
|
|
1910
1911
|
return s && !r ? -1 : !s && r ? 1 : n.localeCompare(i);
|
|
1911
|
-
},
|
|
1912
|
+
}, Oi = {
|
|
1912
1913
|
items: ({ query: t }) => {
|
|
1913
1914
|
if (t.length < 2)
|
|
1914
1915
|
return [];
|
|
1915
|
-
const e = Object.values(
|
|
1916
|
+
const e = Object.values(Nn());
|
|
1916
1917
|
return t = t.toLowerCase(), e.filter(
|
|
1917
1918
|
(n) => {
|
|
1918
1919
|
var i;
|
|
@@ -1922,7 +1923,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
1922
1923
|
...n.keywords || []
|
|
1923
1924
|
].some((s) => s && s.startsWith(t));
|
|
1924
1925
|
}
|
|
1925
|
-
).splice(0,
|
|
1926
|
+
).splice(0, ki).sort((n, i) => Ci(n, i, t)).map((n) => ({ code: n.shortname }));
|
|
1926
1927
|
},
|
|
1927
1928
|
command: ({ editor: t, range: e, props: o }) => {
|
|
1928
1929
|
var s, r;
|
|
@@ -1934,15 +1935,15 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
1934
1935
|
}
|
|
1935
1936
|
]).run(), (r = window.getSelection()) == null || r.collapseToEnd();
|
|
1936
1937
|
},
|
|
1937
|
-
render: Ct(
|
|
1938
|
-
},
|
|
1938
|
+
render: Ct(_i, "emoji")
|
|
1939
|
+
}, Ei = /(:\w+:)$/, Si = new RegExp(ge + "$"), Li = (t) => {
|
|
1939
1940
|
if (t && Dt(t[0]))
|
|
1940
1941
|
return { text: t[2] || t[0] };
|
|
1941
|
-
},
|
|
1942
|
+
}, Ii = (t) => [...t.matchAll(Vn)].filter((o) => Dt(o[0])).map((o) => ({
|
|
1942
1943
|
index: o.index,
|
|
1943
1944
|
text: o[0],
|
|
1944
1945
|
match: o
|
|
1945
|
-
})),
|
|
1946
|
+
})), Ai = ae.create({
|
|
1946
1947
|
name: "emoji",
|
|
1947
1948
|
addOptions() {
|
|
1948
1949
|
return {
|
|
@@ -1954,7 +1955,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
1954
1955
|
selectable: !1,
|
|
1955
1956
|
atom: !0,
|
|
1956
1957
|
addNodeView() {
|
|
1957
|
-
return mt(
|
|
1958
|
+
return mt(si);
|
|
1958
1959
|
},
|
|
1959
1960
|
addAttributes() {
|
|
1960
1961
|
return {
|
|
@@ -1971,18 +1972,18 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
1971
1972
|
];
|
|
1972
1973
|
},
|
|
1973
1974
|
renderText({ node: t }) {
|
|
1974
|
-
return
|
|
1975
|
+
return Un(Dt(t.attrs.code).unicode_output);
|
|
1975
1976
|
},
|
|
1976
1977
|
renderHTML({ HTMLAttributes: t }) {
|
|
1977
|
-
return ["emoji-component",
|
|
1978
|
+
return ["emoji-component", it(this.options.HTMLAttributes, t)];
|
|
1978
1979
|
},
|
|
1979
1980
|
addInputRules() {
|
|
1980
1981
|
return [
|
|
1981
|
-
new
|
|
1982
|
+
new Ye({
|
|
1982
1983
|
find: (t) => {
|
|
1983
|
-
const e = t.match(
|
|
1984
|
+
const e = t.match(Ei) || t.match(Si);
|
|
1984
1985
|
if (e)
|
|
1985
|
-
return
|
|
1986
|
+
return Li(e);
|
|
1986
1987
|
},
|
|
1987
1988
|
handler: ({ state: t, range: e, match: o }) => {
|
|
1988
1989
|
const { tr: n } = t, i = e.from, s = e.to;
|
|
@@ -1994,7 +1995,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
1994
1995
|
addPasteRules() {
|
|
1995
1996
|
return [
|
|
1996
1997
|
Et({
|
|
1997
|
-
find:
|
|
1998
|
+
find: Ii,
|
|
1998
1999
|
type: this.type,
|
|
1999
2000
|
getAttributes(t) {
|
|
2000
2001
|
return {
|
|
@@ -2003,7 +2004,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
2003
2004
|
}
|
|
2004
2005
|
}),
|
|
2005
2006
|
Et({
|
|
2006
|
-
find:
|
|
2007
|
+
find: Pn,
|
|
2007
2008
|
type: this.type,
|
|
2008
2009
|
getAttributes(t) {
|
|
2009
2010
|
return {
|
|
@@ -2015,12 +2016,12 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
2015
2016
|
},
|
|
2016
2017
|
addProseMirrorPlugins() {
|
|
2017
2018
|
return [
|
|
2018
|
-
|
|
2019
|
+
Bn({
|
|
2019
2020
|
char: ":",
|
|
2020
|
-
pluginKey: new
|
|
2021
|
+
pluginKey: new st("emoji"),
|
|
2021
2022
|
editor: this.editor,
|
|
2022
2023
|
...this.options.suggestion,
|
|
2023
|
-
...
|
|
2024
|
+
...Oi
|
|
2024
2025
|
})
|
|
2025
2026
|
];
|
|
2026
2027
|
},
|
|
@@ -2037,7 +2038,7 @@ const Ti = /* @__PURE__ */ q(vi, [["render", xi]]), _i = 20, ki = (t, e, o) => {
|
|
|
2037
2038
|
};
|
|
2038
2039
|
}
|
|
2039
2040
|
});
|
|
2040
|
-
function
|
|
2041
|
+
function Di(t, e, o = () => !0) {
|
|
2041
2042
|
const n = [];
|
|
2042
2043
|
e.lastIndex = 0;
|
|
2043
2044
|
let i;
|
|
@@ -2045,10 +2046,10 @@ function Ai(t, e, o = () => !0) {
|
|
|
2045
2046
|
o(t, i) && n.push(i);
|
|
2046
2047
|
return n;
|
|
2047
2048
|
}
|
|
2048
|
-
function
|
|
2049
|
+
function Ri(t, e) {
|
|
2049
2050
|
return !["#", "@"].includes(t.charAt(e.index)) && !["#", "@"].includes(t.charAt(e.index - 1));
|
|
2050
2051
|
}
|
|
2051
|
-
function
|
|
2052
|
+
function Mi(t) {
|
|
2052
2053
|
const e = new RegExp(
|
|
2053
2054
|
"(?:" + [
|
|
2054
2055
|
`[!?.,:;'"]`,
|
|
@@ -2058,7 +2059,7 @@ function Ri(t) {
|
|
|
2058
2059
|
);
|
|
2059
2060
|
return t.replace(e, "");
|
|
2060
2061
|
}
|
|
2061
|
-
function
|
|
2062
|
+
function Hi(t, e) {
|
|
2062
2063
|
const o = t.slice(0, e + 1).search(/\S+\s*$/), n = t.slice(e).search(/\s/);
|
|
2063
2064
|
if (n < 0) {
|
|
2064
2065
|
const i = t.slice(o);
|
|
@@ -2075,18 +2076,18 @@ function Mi(t, e) {
|
|
|
2075
2076
|
};
|
|
2076
2077
|
}
|
|
2077
2078
|
function Lt(t, e, o, n) {
|
|
2078
|
-
const i =
|
|
2079
|
+
const i = Hi(t, e);
|
|
2079
2080
|
if (n.lastIndex = 0, !n.test(i.text))
|
|
2080
2081
|
return i;
|
|
2081
2082
|
const s = o === "left" ? i.from - 1 : i.to + 1;
|
|
2082
2083
|
return s <= 0 || s >= t.length || s === e ? i : Lt(t, s, o, n);
|
|
2083
2084
|
}
|
|
2084
|
-
function
|
|
2085
|
-
const i = Math.max(t.from - 1, 0), s = Math.min(t.to + 1, e.content.size), r =
|
|
2085
|
+
function $i(t, e, o, n) {
|
|
2086
|
+
const i = Math.max(t.from - 1, 0), s = Math.min(t.to + 1, e.content.size), r = Ge(i, s, e);
|
|
2086
2087
|
for (const a of r)
|
|
2087
2088
|
a.mark.type === n && o.removeMark(a.from, a.to, n);
|
|
2088
2089
|
}
|
|
2089
|
-
const ie =
|
|
2090
|
+
const ie = Fn(1, 15);
|
|
2090
2091
|
function se(t, e, o, n, i, s) {
|
|
2091
2092
|
if (!t)
|
|
2092
2093
|
return;
|
|
@@ -2103,27 +2104,27 @@ function se(t, e, o, n, i, s) {
|
|
|
2103
2104
|
"right",
|
|
2104
2105
|
ie
|
|
2105
2106
|
), d = t.slice(l.from, u.to);
|
|
2106
|
-
|
|
2107
|
-
const f =
|
|
2107
|
+
Di(d, jn, Ri).forEach((h) => {
|
|
2108
|
+
const f = Mi(h[0]), p = e + l.from + h.index + 1, m = p + f.length;
|
|
2108
2109
|
i.addMark(p, m, s.create());
|
|
2109
2110
|
});
|
|
2110
2111
|
}
|
|
2111
|
-
function
|
|
2112
|
+
function Bi(t) {
|
|
2112
2113
|
let e = !1;
|
|
2113
2114
|
return new It({
|
|
2114
|
-
key: new
|
|
2115
|
+
key: new st("autolink"),
|
|
2115
2116
|
appendTransaction: (o, n, i) => {
|
|
2116
2117
|
const s = o.some((d) => d.docChanged) && !n.doc.eq(i.doc);
|
|
2117
2118
|
if (e && !s)
|
|
2118
2119
|
return;
|
|
2119
2120
|
const { tr: r } = i, { textContent: a } = i.doc;
|
|
2120
2121
|
e || se(a, 0, 0, a.length, r, t.type), e = !0;
|
|
2121
|
-
const l =
|
|
2122
|
+
const l = Je(
|
|
2122
2123
|
n.doc,
|
|
2123
2124
|
[...o]
|
|
2124
2125
|
);
|
|
2125
|
-
return
|
|
2126
|
-
|
|
2126
|
+
return Ze(l).forEach(({ oldRange: d, newRange: c }) => {
|
|
2127
|
+
$i(c, i.doc, r, t.type), Qe(
|
|
2127
2128
|
i.doc,
|
|
2128
2129
|
c,
|
|
2129
2130
|
(f) => f.isTextblock
|
|
@@ -2141,18 +2142,18 @@ function $i(t) {
|
|
|
2141
2142
|
}
|
|
2142
2143
|
});
|
|
2143
2144
|
}
|
|
2144
|
-
const
|
|
2145
|
+
const Ni = {
|
|
2145
2146
|
class: "d-link d-c-text d-d-inline-block d-wb-break-all",
|
|
2146
2147
|
rel: "noopener noreferrer nofollow"
|
|
2147
|
-
},
|
|
2148
|
+
}, Pi = tn.create({
|
|
2148
2149
|
name: "CustomLink",
|
|
2149
2150
|
renderHTML({ HTMLAttributes: t }) {
|
|
2150
2151
|
return [
|
|
2151
2152
|
"a",
|
|
2152
|
-
|
|
2153
|
+
it(
|
|
2153
2154
|
this.options.HTMLAttributes,
|
|
2154
2155
|
t,
|
|
2155
|
-
|
|
2156
|
+
Ni
|
|
2156
2157
|
)
|
|
2157
2158
|
];
|
|
2158
2159
|
},
|
|
@@ -2161,10 +2162,10 @@ const Bi = {
|
|
|
2161
2162
|
},
|
|
2162
2163
|
addProseMirrorPlugins() {
|
|
2163
2164
|
return [
|
|
2164
|
-
|
|
2165
|
+
Bi({ type: this.type })
|
|
2165
2166
|
];
|
|
2166
2167
|
}
|
|
2167
|
-
}),
|
|
2168
|
+
}), Ui = Wn.extend({
|
|
2168
2169
|
name: "ConfigurableImage",
|
|
2169
2170
|
addAttributes() {
|
|
2170
2171
|
return {
|
|
@@ -2188,14 +2189,14 @@ const Bi = {
|
|
|
2188
2189
|
}
|
|
2189
2190
|
};
|
|
2190
2191
|
}
|
|
2191
|
-
}).configure({ inline: !0, allowBase64: !0 }),
|
|
2192
|
+
}).configure({ inline: !0, allowBase64: !0 }), Vi = me.extend({
|
|
2192
2193
|
parseHTML() {
|
|
2193
2194
|
return [{ tag: "div" }];
|
|
2194
2195
|
},
|
|
2195
2196
|
renderHTML({ HTMLAttributes: t }) {
|
|
2196
|
-
return ["div",
|
|
2197
|
+
return ["div", it(this.options.HTMLAttributes, t), 0];
|
|
2197
2198
|
}
|
|
2198
|
-
}),
|
|
2199
|
+
}), zi = {
|
|
2199
2200
|
compatConfig: { MODE: 3 },
|
|
2200
2201
|
name: "MentionComponent",
|
|
2201
2202
|
components: {
|
|
@@ -2229,10 +2230,10 @@ const Bi = {
|
|
|
2229
2230
|
}
|
|
2230
2231
|
};
|
|
2231
2232
|
function ji(t, e, o, n, i, s) {
|
|
2232
|
-
const r =
|
|
2233
|
-
return
|
|
2234
|
-
default:
|
|
2235
|
-
|
|
2233
|
+
const r = x("dt-link"), a = x("node-view-wrapper");
|
|
2234
|
+
return k(), E(a, { class: "d-d-inline-block" }, {
|
|
2235
|
+
default: T(() => [
|
|
2236
|
+
A(r, {
|
|
2236
2237
|
kind: "mention",
|
|
2237
2238
|
onClick: At(s.handleClick, ["prevent"]),
|
|
2238
2239
|
onMouseenter: s.handleMouseEnter,
|
|
@@ -2240,8 +2241,8 @@ function ji(t, e, o, n, i, s) {
|
|
|
2240
2241
|
onFocusin: s.handleMouseEnter,
|
|
2241
2242
|
onFocusout: s.handleMouseLeave
|
|
2242
2243
|
}, {
|
|
2243
|
-
default:
|
|
2244
|
-
|
|
2244
|
+
default: T(() => [
|
|
2245
|
+
Y($(s.text), 1)
|
|
2245
2246
|
]),
|
|
2246
2247
|
_: 1
|
|
2247
2248
|
}, 8, ["onClick", "onMouseenter", "onMouseleave", "onFocusin", "onFocusout"])
|
|
@@ -2249,9 +2250,9 @@ function ji(t, e, o, n, i, s) {
|
|
|
2249
2250
|
_: 1
|
|
2250
2251
|
});
|
|
2251
2252
|
}
|
|
2252
|
-
const
|
|
2253
|
+
const Fi = /* @__PURE__ */ q(zi, [["render", ji]]), Ki = Rt.extend({
|
|
2253
2254
|
addNodeView() {
|
|
2254
|
-
return mt(
|
|
2255
|
+
return mt(Fi);
|
|
2255
2256
|
},
|
|
2256
2257
|
parseHTML() {
|
|
2257
2258
|
return [
|
|
@@ -2280,20 +2281,20 @@ const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = Rt.extend({
|
|
|
2280
2281
|
return `@${t.attrs.id}`;
|
|
2281
2282
|
},
|
|
2282
2283
|
renderHTML({ HTMLAttributes: t }) {
|
|
2283
|
-
return ["mention-component",
|
|
2284
|
+
return ["mention-component", it(this.options.HTMLAttributes, t)];
|
|
2284
2285
|
}
|
|
2285
2286
|
}).configure({
|
|
2286
2287
|
suggestion: {
|
|
2287
2288
|
char: "@",
|
|
2288
|
-
pluginKey: new
|
|
2289
|
+
pluginKey: new st("mentionSuggestion")
|
|
2289
2290
|
}
|
|
2290
|
-
}),
|
|
2291
|
+
}), Wi = {
|
|
2291
2292
|
compatConfig: { MODE: 3 },
|
|
2292
2293
|
name: "ChannelComponent",
|
|
2293
2294
|
components: {
|
|
2294
2295
|
NodeViewWrapper: pt,
|
|
2295
2296
|
DtLink: we,
|
|
2296
|
-
DtIconLock:
|
|
2297
|
+
DtIconLock: qn,
|
|
2297
2298
|
DtStack: gt
|
|
2298
2299
|
},
|
|
2299
2300
|
props: ft,
|
|
@@ -2314,25 +2315,25 @@ const zi = /* @__PURE__ */ q(Vi, [["render", ji]]), Fi = Rt.extend({
|
|
|
2314
2315
|
}
|
|
2315
2316
|
}
|
|
2316
2317
|
};
|
|
2317
|
-
function
|
|
2318
|
-
const r =
|
|
2319
|
-
return
|
|
2320
|
-
default:
|
|
2321
|
-
|
|
2318
|
+
function qi(t, e, o, n, i, s) {
|
|
2319
|
+
const r = x("dt-icon-lock"), a = x("dt-stack"), l = x("dt-link"), u = x("node-view-wrapper");
|
|
2320
|
+
return k(), E(u, { class: "d-d-inline-block" }, {
|
|
2321
|
+
default: T(() => [
|
|
2322
|
+
A(l, {
|
|
2322
2323
|
kind: "mention",
|
|
2323
2324
|
onClick: At(s.handleClick, ["prevent"])
|
|
2324
2325
|
}, {
|
|
2325
|
-
default:
|
|
2326
|
-
|
|
2326
|
+
default: T(() => [
|
|
2327
|
+
A(a, {
|
|
2327
2328
|
direction: "row",
|
|
2328
2329
|
gap: "0"
|
|
2329
2330
|
}, {
|
|
2330
|
-
default:
|
|
2331
|
-
t.$props.node.attrs.locked ? (
|
|
2331
|
+
default: T(() => [
|
|
2332
|
+
t.$props.node.attrs.locked ? (k(), E(r, {
|
|
2332
2333
|
key: 0,
|
|
2333
2334
|
size: "200"
|
|
2334
|
-
})) :
|
|
2335
|
-
|
|
2335
|
+
})) : ot("", !0),
|
|
2336
|
+
ct("span", null, $(s.text), 1)
|
|
2336
2337
|
]),
|
|
2337
2338
|
_: 1
|
|
2338
2339
|
})
|
|
@@ -2343,10 +2344,10 @@ function Wi(t, e, o, n, i, s) {
|
|
|
2343
2344
|
_: 1
|
|
2344
2345
|
});
|
|
2345
2346
|
}
|
|
2346
|
-
const
|
|
2347
|
+
const Xi = /* @__PURE__ */ q(Wi, [["render", qi]]), Yi = Rt.extend({
|
|
2347
2348
|
name: "channel",
|
|
2348
2349
|
addNodeView() {
|
|
2349
|
-
return mt(
|
|
2350
|
+
return mt(Xi);
|
|
2350
2351
|
},
|
|
2351
2352
|
parseHTML() {
|
|
2352
2353
|
return [
|
|
@@ -2375,14 +2376,14 @@ const qi = /* @__PURE__ */ q(Ki, [["render", Wi]]), Xi = Rt.extend({
|
|
|
2375
2376
|
return `#${t.attrs.id}`;
|
|
2376
2377
|
},
|
|
2377
2378
|
renderHTML({ HTMLAttributes: t }) {
|
|
2378
|
-
return ["channel-component",
|
|
2379
|
+
return ["channel-component", it(this.options.HTMLAttributes, t)];
|
|
2379
2380
|
}
|
|
2380
2381
|
}).configure({
|
|
2381
2382
|
suggestion: {
|
|
2382
2383
|
char: "#",
|
|
2383
|
-
pluginKey: new
|
|
2384
|
+
pluginKey: new st("channelSuggestion")
|
|
2384
2385
|
}
|
|
2385
|
-
}),
|
|
2386
|
+
}), Gi = {
|
|
2386
2387
|
compatConfig: { MODE: 3 },
|
|
2387
2388
|
name: "SlashCommandsComponent",
|
|
2388
2389
|
components: {
|
|
@@ -2405,23 +2406,23 @@ const qi = /* @__PURE__ */ q(Ki, [["render", Wi]]), Xi = Rt.extend({
|
|
|
2405
2406
|
e && typeof e == "function" && e(t);
|
|
2406
2407
|
}
|
|
2407
2408
|
};
|
|
2408
|
-
function
|
|
2409
|
-
const r =
|
|
2410
|
-
return
|
|
2411
|
-
default:
|
|
2412
|
-
|
|
2409
|
+
function Ji(t, e, o, n, i, s) {
|
|
2410
|
+
const r = x("node-view-wrapper");
|
|
2411
|
+
return k(), E(r, { class: "d-d-inline-block" }, {
|
|
2412
|
+
default: T(() => [
|
|
2413
|
+
Y($(s.text), 1)
|
|
2413
2414
|
]),
|
|
2414
2415
|
_: 1
|
|
2415
2416
|
});
|
|
2416
2417
|
}
|
|
2417
|
-
const
|
|
2418
|
+
const Zi = /* @__PURE__ */ q(Gi, [["render", Ji]]), Qi = (t, e) => [...t.matchAll(e)].map((n) => {
|
|
2418
2419
|
let i = n[2];
|
|
2419
2420
|
return i.endsWith(" ") || (i += " "), {
|
|
2420
2421
|
index: n.index,
|
|
2421
2422
|
text: i,
|
|
2422
2423
|
match: n
|
|
2423
2424
|
};
|
|
2424
|
-
}),
|
|
2425
|
+
}), ts = Rt.extend({
|
|
2425
2426
|
name: "slash-commands",
|
|
2426
2427
|
group: "inline",
|
|
2427
2428
|
inline: !0,
|
|
@@ -2438,7 +2439,7 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
|
|
|
2438
2439
|
};
|
|
2439
2440
|
},
|
|
2440
2441
|
addNodeView() {
|
|
2441
|
-
return mt(
|
|
2442
|
+
return mt(Zi);
|
|
2442
2443
|
},
|
|
2443
2444
|
parseHTML() {
|
|
2444
2445
|
return [
|
|
@@ -2464,13 +2465,13 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
|
|
|
2464
2465
|
return `/${t.attrs.command}`;
|
|
2465
2466
|
},
|
|
2466
2467
|
renderHTML({ HTMLAttributes: t }) {
|
|
2467
|
-
return ["command-component",
|
|
2468
|
+
return ["command-component", it(this.options.HTMLAttributes, t)];
|
|
2468
2469
|
},
|
|
2469
2470
|
addInputRules() {
|
|
2470
2471
|
var o;
|
|
2471
2472
|
const t = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) $`);
|
|
2472
2473
|
return [
|
|
2473
|
-
|
|
2474
|
+
en({
|
|
2474
2475
|
find: e,
|
|
2475
2476
|
type: this.type,
|
|
2476
2477
|
getAttributes(n) {
|
|
@@ -2484,7 +2485,7 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
|
|
|
2484
2485
|
const t = (o = this.options.suggestion) == null ? void 0 : o.items({ query: "" }).map((n) => n.command), e = new RegExp(`^((?:\\/)(${t.join("|")})) ?$`, "g");
|
|
2485
2486
|
return [
|
|
2486
2487
|
Et({
|
|
2487
|
-
find: (n) =>
|
|
2488
|
+
find: (n) => Qi(n, e),
|
|
2488
2489
|
type: this.type,
|
|
2489
2490
|
getAttributes(n) {
|
|
2490
2491
|
return { command: n[0].trim() };
|
|
@@ -2495,22 +2496,22 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
|
|
|
2495
2496
|
}).configure({
|
|
2496
2497
|
suggestion: {
|
|
2497
2498
|
char: "/",
|
|
2498
|
-
pluginKey: new
|
|
2499
|
+
pluginKey: new st("slashCommandSuggestion")
|
|
2499
2500
|
}
|
|
2500
|
-
}),
|
|
2501
|
+
}), es = 100, ns = {
|
|
2501
2502
|
name: "VariableComponent",
|
|
2502
2503
|
components: {
|
|
2503
|
-
DtBadge:
|
|
2504
|
+
DtBadge: Gn,
|
|
2504
2505
|
DtButton: ve,
|
|
2505
|
-
DtPopover:
|
|
2506
|
-
DtInput:
|
|
2506
|
+
DtPopover: Yn,
|
|
2507
|
+
DtInput: Xn,
|
|
2507
2508
|
NodeViewWrapper: pt
|
|
2508
2509
|
},
|
|
2509
2510
|
props: ft,
|
|
2510
2511
|
data() {
|
|
2511
2512
|
return {
|
|
2512
2513
|
i18n: new be(),
|
|
2513
|
-
MAX_VARIABLE_ALT_LENGTH:
|
|
2514
|
+
MAX_VARIABLE_ALT_LENGTH: es
|
|
2514
2515
|
};
|
|
2515
2516
|
},
|
|
2516
2517
|
computed: {
|
|
@@ -2550,21 +2551,21 @@ const Ji = /* @__PURE__ */ q(Yi, [["render", Gi]]), Zi = (t, e) => [...t.matchAl
|
|
|
2550
2551
|
}
|
|
2551
2552
|
}
|
|
2552
2553
|
};
|
|
2553
|
-
function
|
|
2554
|
-
const r =
|
|
2555
|
-
return
|
|
2556
|
-
default:
|
|
2557
|
-
s.enableAltText ? (
|
|
2554
|
+
function os(t, e, o, n, i, s) {
|
|
2555
|
+
const r = x("dt-badge"), a = x("dt-button"), l = x("dt-input"), u = x("dt-popover"), d = x("node-view-wrapper");
|
|
2556
|
+
return k(), E(d, { class: "d-d-inline-block" }, {
|
|
2557
|
+
default: T(() => [
|
|
2558
|
+
s.enableAltText ? (k(), E(u, {
|
|
2558
2559
|
key: 0,
|
|
2559
2560
|
padding: "small",
|
|
2560
2561
|
"navigation-type": "arrow-keys",
|
|
2561
2562
|
placement: "top-start",
|
|
2562
2563
|
modal: !1
|
|
2563
2564
|
}, {
|
|
2564
|
-
anchor:
|
|
2565
|
-
|
|
2566
|
-
default:
|
|
2567
|
-
|
|
2565
|
+
anchor: T(({ attrs: c }) => [
|
|
2566
|
+
A(a, pe(c, { kind: "unstyled" }), {
|
|
2567
|
+
default: T(() => [
|
|
2568
|
+
A(r, {
|
|
2568
2569
|
text: s.badgeLabel,
|
|
2569
2570
|
contenteditable: "false"
|
|
2570
2571
|
}, null, 8, ["text"])
|
|
@@ -2572,8 +2573,8 @@ function ns(t, e, o, n, i, s) {
|
|
|
2572
2573
|
_: 1
|
|
2573
2574
|
}, 16)
|
|
2574
2575
|
]),
|
|
2575
|
-
content:
|
|
2576
|
-
|
|
2576
|
+
content: T(({ close: c }) => [
|
|
2577
|
+
A(l, {
|
|
2577
2578
|
modelValue: s.altText,
|
|
2578
2579
|
"onUpdate:modelValue": e[0] || (e[0] = (h) => s.altText = h),
|
|
2579
2580
|
"root-class": "d-p8 d-w332",
|
|
@@ -2588,11 +2589,11 @@ function ns(t, e, o, n, i, s) {
|
|
|
2588
2589
|
limitMaxLength: !0
|
|
2589
2590
|
}
|
|
2590
2591
|
},
|
|
2591
|
-
onKeyup:
|
|
2592
|
+
onKeyup: fn((h) => c(), ["enter"])
|
|
2592
2593
|
}, null, 8, ["modelValue", "label", "placeholder", "validate", "onKeyup"])
|
|
2593
2594
|
]),
|
|
2594
2595
|
_: 1
|
|
2595
|
-
})) : (
|
|
2596
|
+
})) : (k(), E(r, {
|
|
2596
2597
|
key: 1,
|
|
2597
2598
|
text: s.badgeLabel,
|
|
2598
2599
|
contenteditable: "false"
|
|
@@ -2601,7 +2602,7 @@ function ns(t, e, o, n, i, s) {
|
|
|
2601
2602
|
_: 1
|
|
2602
2603
|
});
|
|
2603
2604
|
}
|
|
2604
|
-
const
|
|
2605
|
+
const is = /* @__PURE__ */ q(ns, [["render", os]]), ss = ae.create({
|
|
2605
2606
|
name: "variable",
|
|
2606
2607
|
group: "inline",
|
|
2607
2608
|
inline: !0,
|
|
@@ -2614,7 +2615,7 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
|
|
|
2614
2615
|
};
|
|
2615
2616
|
},
|
|
2616
2617
|
addNodeView() {
|
|
2617
|
-
return mt(
|
|
2618
|
+
return mt(is);
|
|
2618
2619
|
},
|
|
2619
2620
|
addAttributes() {
|
|
2620
2621
|
return {
|
|
@@ -2654,7 +2655,7 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
|
|
|
2654
2655
|
renderHTML({ node: t, HTMLAttributes: e }) {
|
|
2655
2656
|
return [
|
|
2656
2657
|
"variable",
|
|
2657
|
-
|
|
2658
|
+
it(this.options.HTMLAttributes, e, {
|
|
2658
2659
|
"data-variable-id": t.attrs.id,
|
|
2659
2660
|
"data-alt-text": t.attrs.altText,
|
|
2660
2661
|
"data-enable-alt-text": String(t.attrs.enableAltText)
|
|
@@ -2673,12 +2674,13 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
|
|
|
2673
2674
|
})
|
|
2674
2675
|
};
|
|
2675
2676
|
}
|
|
2676
|
-
}),
|
|
2677
|
+
}), rs = {
|
|
2677
2678
|
compatConfig: { MODE: 3 },
|
|
2678
2679
|
name: "MentionSuggestion",
|
|
2679
2680
|
components: {
|
|
2680
|
-
DtAvatar:
|
|
2681
|
-
DtStack: gt
|
|
2681
|
+
DtAvatar: Qn,
|
|
2682
|
+
DtStack: gt,
|
|
2683
|
+
DtText: xe
|
|
2682
2684
|
},
|
|
2683
2685
|
props: {
|
|
2684
2686
|
item: {
|
|
@@ -2714,22 +2716,16 @@ const os = /* @__PURE__ */ q(es, [["render", ns]]), is = ae.create({
|
|
|
2714
2716
|
return this.item.showDetails;
|
|
2715
2717
|
}
|
|
2716
2718
|
}
|
|
2717
|
-
},
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
key: 2,
|
|
2722
|
-
class: "d-mention-suggestion__status"
|
|
2723
|
-
};
|
|
2724
|
-
function cs(t, e, o, n, i, s) {
|
|
2725
|
-
const r = T("dt-avatar"), a = T("dt-stack");
|
|
2726
|
-
return _(), I(a, {
|
|
2719
|
+
}, as = { class: "d-mention-suggestion__name" };
|
|
2720
|
+
function ls(t, e, o, n, i, s) {
|
|
2721
|
+
const r = x("dt-avatar"), a = x("dt-text"), l = x("dt-stack");
|
|
2722
|
+
return k(), E(l, {
|
|
2727
2723
|
direction: "row",
|
|
2728
2724
|
class: "d-mention-suggestion__container",
|
|
2729
2725
|
gap: "400"
|
|
2730
2726
|
}, {
|
|
2731
|
-
default:
|
|
2732
|
-
|
|
2727
|
+
default: T(() => [
|
|
2728
|
+
A(r, {
|
|
2733
2729
|
"full-name": s.name,
|
|
2734
2730
|
"image-src": s.avatarSrc,
|
|
2735
2731
|
"image-alt": s.name,
|
|
@@ -2737,28 +2733,59 @@ function cs(t, e, o, n, i, s) {
|
|
|
2737
2733
|
presence: s.presence,
|
|
2738
2734
|
size: "sm"
|
|
2739
2735
|
}, null, 8, ["full-name", "image-src", "image-alt", "show-presence", "presence"]),
|
|
2740
|
-
|
|
2736
|
+
A(l, {
|
|
2741
2737
|
class: "d-mention-suggestion__details-container",
|
|
2742
2738
|
gap: "100"
|
|
2743
2739
|
}, {
|
|
2744
|
-
default:
|
|
2745
|
-
|
|
2746
|
-
s.showDetails ? (
|
|
2740
|
+
default: T(() => [
|
|
2741
|
+
ct("span", as, $(s.name), 1),
|
|
2742
|
+
s.showDetails ? (k(), E(l, {
|
|
2747
2743
|
key: 0,
|
|
2748
2744
|
direction: "row",
|
|
2749
|
-
gap: "300"
|
|
2750
|
-
class: "d-label--sm-plain"
|
|
2745
|
+
gap: "300"
|
|
2751
2746
|
}, {
|
|
2752
|
-
default:
|
|
2753
|
-
s.presenceText ? (
|
|
2747
|
+
default: T(() => [
|
|
2748
|
+
s.presenceText ? (k(), E(a, {
|
|
2754
2749
|
key: 0,
|
|
2750
|
+
kind: "label",
|
|
2751
|
+
size: "sm",
|
|
2752
|
+
strength: "normal",
|
|
2755
2753
|
class: fe(["d-mention-suggestion__presence", [s.presenceFontColorClass]])
|
|
2756
|
-
},
|
|
2757
|
-
|
|
2758
|
-
|
|
2754
|
+
}, {
|
|
2755
|
+
default: T(() => [
|
|
2756
|
+
Y($(s.presenceText), 1)
|
|
2757
|
+
]),
|
|
2758
|
+
_: 1
|
|
2759
|
+
}, 8, ["class"])) : ot("", !0),
|
|
2760
|
+
s.status && s.presenceText ? (k(), E(a, {
|
|
2761
|
+
key: 1,
|
|
2762
|
+
kind: "label",
|
|
2763
|
+
size: "sm",
|
|
2764
|
+
strength: "normal",
|
|
2765
|
+
as: "div",
|
|
2766
|
+
class: "d-mention-suggestion__divider"
|
|
2767
|
+
}, {
|
|
2768
|
+
default: T(() => [...e[0] || (e[0] = [
|
|
2769
|
+
Y(" • ", -1)
|
|
2770
|
+
])]),
|
|
2771
|
+
_: 1
|
|
2772
|
+
})) : ot("", !0),
|
|
2773
|
+
s.status ? (k(), E(a, {
|
|
2774
|
+
key: 2,
|
|
2775
|
+
kind: "label",
|
|
2776
|
+
size: "sm",
|
|
2777
|
+
strength: "normal",
|
|
2778
|
+
as: "div",
|
|
2779
|
+
class: "d-mention-suggestion__status"
|
|
2780
|
+
}, {
|
|
2781
|
+
default: T(() => [
|
|
2782
|
+
Y($(s.status), 1)
|
|
2783
|
+
]),
|
|
2784
|
+
_: 1
|
|
2785
|
+
})) : ot("", !0)
|
|
2759
2786
|
]),
|
|
2760
2787
|
_: 1
|
|
2761
|
-
})) :
|
|
2788
|
+
})) : ot("", !0)
|
|
2762
2789
|
]),
|
|
2763
2790
|
_: 1
|
|
2764
2791
|
})
|
|
@@ -2766,19 +2793,19 @@ function cs(t, e, o, n, i, s) {
|
|
|
2766
2793
|
_: 1
|
|
2767
2794
|
});
|
|
2768
2795
|
}
|
|
2769
|
-
const
|
|
2796
|
+
const cs = /* @__PURE__ */ q(rs, [["render", ls]]), ds = {
|
|
2770
2797
|
// This function comes from the user and passed to the editor directly.
|
|
2771
2798
|
// This will also activate the mention plugin on the editor
|
|
2772
2799
|
// items: ({ query }) => { return [] },
|
|
2773
2800
|
allowSpaces: !0,
|
|
2774
|
-
render: Ct(
|
|
2775
|
-
},
|
|
2801
|
+
render: Ct(cs, "mention")
|
|
2802
|
+
}, us = {
|
|
2776
2803
|
compatConfig: { MODE: 3 },
|
|
2777
2804
|
name: "ChannelSuggestion",
|
|
2778
2805
|
components: {
|
|
2779
2806
|
DtStack: gt,
|
|
2780
|
-
DtIconHash:
|
|
2781
|
-
DtIconLock:
|
|
2807
|
+
DtIconHash: to,
|
|
2808
|
+
DtIconLock: eo
|
|
2782
2809
|
},
|
|
2783
2810
|
props: {
|
|
2784
2811
|
item: {
|
|
@@ -2792,34 +2819,35 @@ const ds = /* @__PURE__ */ q(ss, [["render", cs]]), us = {
|
|
|
2792
2819
|
}
|
|
2793
2820
|
}
|
|
2794
2821
|
};
|
|
2795
|
-
function
|
|
2796
|
-
const r =
|
|
2797
|
-
return
|
|
2822
|
+
function hs(t, e, o, n, i, s) {
|
|
2823
|
+
const r = x("dt-icon-hash"), a = x("dt-icon-lock"), l = x("dt-stack");
|
|
2824
|
+
return k(), E(l, {
|
|
2798
2825
|
direction: "row",
|
|
2799
2826
|
gap: "400"
|
|
2800
2827
|
}, {
|
|
2801
|
-
default:
|
|
2802
|
-
o.item.locked ? (
|
|
2828
|
+
default: T(() => [
|
|
2829
|
+
o.item.locked ? (k(), E(a, {
|
|
2803
2830
|
key: 1,
|
|
2804
2831
|
size: "300"
|
|
2805
|
-
})) : (
|
|
2832
|
+
})) : (k(), E(r, {
|
|
2806
2833
|
key: 0,
|
|
2807
2834
|
size: "300"
|
|
2808
2835
|
})),
|
|
2809
|
-
|
|
2836
|
+
ct("span", null, $(s.name), 1)
|
|
2810
2837
|
]),
|
|
2811
2838
|
_: 1
|
|
2812
2839
|
});
|
|
2813
2840
|
}
|
|
2814
|
-
const
|
|
2841
|
+
const fs = /* @__PURE__ */ q(us, [["render", hs]]), ps = {
|
|
2815
2842
|
// This function comes from the user and passed to the editor directly.
|
|
2816
2843
|
// This will also activate the mention plugin on the editor
|
|
2817
2844
|
// items: ({ query }) => { return [] },
|
|
2818
2845
|
allowSpaces: !0,
|
|
2819
|
-
render: Ct(
|
|
2820
|
-
},
|
|
2846
|
+
render: Ct(fs, "channel")
|
|
2847
|
+
}, ms = {
|
|
2821
2848
|
compatConfig: { MODE: 3 },
|
|
2822
2849
|
name: "SlashCommandSuggestion",
|
|
2850
|
+
components: { DtText: xe },
|
|
2823
2851
|
props: {
|
|
2824
2852
|
item: {
|
|
2825
2853
|
type: Object,
|
|
@@ -2837,29 +2865,48 @@ const ps = /* @__PURE__ */ q(hs, [["render", fs]]), ms = {
|
|
|
2837
2865
|
return this.item.parametersExample;
|
|
2838
2866
|
}
|
|
2839
2867
|
}
|
|
2840
|
-
},
|
|
2841
|
-
function
|
|
2842
|
-
|
|
2843
|
-
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
|
|
2868
|
+
}, gs = { key: 0 };
|
|
2869
|
+
function ys(t, e, o, n, i, s) {
|
|
2870
|
+
const r = x("dt-text");
|
|
2871
|
+
return k(), ut("div", null, [
|
|
2872
|
+
A(r, {
|
|
2873
|
+
kind: "body",
|
|
2874
|
+
size: "md",
|
|
2875
|
+
density: 300,
|
|
2876
|
+
as: "div"
|
|
2877
|
+
}, {
|
|
2878
|
+
default: T(() => [
|
|
2879
|
+
ct("span", null, "/" + $(s.command), 1),
|
|
2880
|
+
s.parametersExample ? (k(), ut("span", gs, $(s.parametersExample), 1)) : ot("", !0)
|
|
2881
|
+
]),
|
|
2882
|
+
_: 1
|
|
2883
|
+
}),
|
|
2884
|
+
A(r, {
|
|
2885
|
+
kind: "body",
|
|
2886
|
+
size: "sm",
|
|
2887
|
+
tone: "tertiary",
|
|
2888
|
+
as: "div"
|
|
2889
|
+
}, {
|
|
2890
|
+
default: T(() => [
|
|
2891
|
+
Y($(s.description), 1)
|
|
2892
|
+
]),
|
|
2893
|
+
_: 1
|
|
2894
|
+
})
|
|
2848
2895
|
]);
|
|
2849
2896
|
}
|
|
2850
|
-
const
|
|
2897
|
+
const ws = /* @__PURE__ */ q(ms, [["render", ys]]), bs = {
|
|
2851
2898
|
// This function comes from the user and passed to the editor directly.
|
|
2852
2899
|
// This will also activate the mention plugin on the editor
|
|
2853
2900
|
// items: ({ query }) => { return [] },
|
|
2854
2901
|
allowSpaces: !0,
|
|
2855
2902
|
startOfLine: !0,
|
|
2856
|
-
render: Ct(
|
|
2857
|
-
},
|
|
2903
|
+
render: Ct(ws, "slash-command")
|
|
2904
|
+
}, vs = {
|
|
2858
2905
|
compatConfig: { MODE: 3 },
|
|
2859
2906
|
name: "DtRichTextEditor",
|
|
2860
2907
|
components: {
|
|
2861
|
-
EditorContent:
|
|
2862
|
-
BubbleMenu:
|
|
2908
|
+
EditorContent: Fe,
|
|
2909
|
+
BubbleMenu: ti,
|
|
2863
2910
|
DtButton: ve,
|
|
2864
2911
|
DtStack: gt
|
|
2865
2912
|
},
|
|
@@ -2933,7 +2980,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
|
|
|
2933
2980
|
type: [Boolean, String, Number],
|
|
2934
2981
|
default: !1,
|
|
2935
2982
|
validator(t) {
|
|
2936
|
-
return typeof t == "string" ?
|
|
2983
|
+
return typeof t == "string" ? Zn.includes(t) : !0;
|
|
2937
2984
|
}
|
|
2938
2985
|
},
|
|
2939
2986
|
/**
|
|
@@ -2946,7 +2993,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
|
|
|
2946
2993
|
type: String,
|
|
2947
2994
|
default: "html",
|
|
2948
2995
|
validator(t) {
|
|
2949
|
-
return
|
|
2996
|
+
return Jn.includes(t);
|
|
2950
2997
|
}
|
|
2951
2998
|
},
|
|
2952
2999
|
/**
|
|
@@ -3273,7 +3320,7 @@ const xs = /* @__PURE__ */ q(gs, [["render", vs]]), Ts = {
|
|
|
3273
3320
|
editor: null,
|
|
3274
3321
|
appendTo: () => {
|
|
3275
3322
|
var t;
|
|
3276
|
-
return (t =
|
|
3323
|
+
return (t = jt(this.$refs.editor.$el).getRootNode()) == null ? void 0 : t.querySelector("body");
|
|
3277
3324
|
},
|
|
3278
3325
|
floatingOptions: {
|
|
3279
3326
|
placement: "top-start"
|
|
@@ -3418,15 +3465,15 @@ ${this.processNodeContent(t)}
|
|
|
3418
3465
|
},
|
|
3419
3466
|
// eslint-disable-next-line complexity
|
|
3420
3467
|
extensions() {
|
|
3421
|
-
const t = [
|
|
3422
|
-
t.push(this.useDivTags ?
|
|
3468
|
+
const t = [yn, In, wn, xn];
|
|
3469
|
+
t.push(this.useDivTags ? Vi : me), this.allowBold && t.push(Tn), this.allowBlockquote && t.push(pn), this.allowBulletList && (t.push(_n), t.push(kn.extend({
|
|
3423
3470
|
renderText({ node: n }) {
|
|
3424
3471
|
return n.textContent;
|
|
3425
3472
|
}
|
|
3426
|
-
})), t.push(
|
|
3427
|
-
|
|
3473
|
+
})), t.push(Cn)), this.allowItalic && t.push(On), this.allowStrike && t.push(Sn), this.allowUnderline && t.push(Ln), this.placeholder && t.push(
|
|
3474
|
+
bn.configure({ placeholder: this.placeholder })
|
|
3428
3475
|
);
|
|
3429
|
-
const e = this, o =
|
|
3476
|
+
const e = this, o = nn.create({
|
|
3430
3477
|
addKeyboardShortcuts() {
|
|
3431
3478
|
return {
|
|
3432
3479
|
"Shift-Enter": ({ editor: n }) => e.allowLineBreaks ? !1 : (n.commands.first(({ commands: i }) => [
|
|
@@ -3440,7 +3487,7 @@ ${this.processNodeContent(t)}
|
|
|
3440
3487
|
};
|
|
3441
3488
|
}
|
|
3442
3489
|
});
|
|
3443
|
-
if (t.push(o), this.link && t.push(
|
|
3490
|
+
if (t.push(o), this.link && t.push(En.extend({
|
|
3444
3491
|
inclusive: !1,
|
|
3445
3492
|
addKeyboardShortcuts() {
|
|
3446
3493
|
return {
|
|
@@ -3454,28 +3501,28 @@ ${this.processNodeContent(t)}
|
|
|
3454
3501
|
openOnClick: !1,
|
|
3455
3502
|
autolink: !0,
|
|
3456
3503
|
protocols: Ft
|
|
3457
|
-
})), this.customLink && t.push(this.getExtension(
|
|
3458
|
-
const n = { ...this.mentionSuggestion, ...
|
|
3459
|
-
t.push(
|
|
3504
|
+
})), this.customLink && t.push(this.getExtension(Pi, this.customLink)), this.mentionSuggestion) {
|
|
3505
|
+
const n = { ...this.mentionSuggestion, ...ds };
|
|
3506
|
+
t.push(Ki.configure({ suggestion: n }));
|
|
3460
3507
|
}
|
|
3461
3508
|
if (this.channelSuggestion) {
|
|
3462
|
-
const n = { ...this.channelSuggestion, ...
|
|
3463
|
-
t.push(
|
|
3509
|
+
const n = { ...this.channelSuggestion, ...ps };
|
|
3510
|
+
t.push(Yi.configure({ suggestion: n }));
|
|
3464
3511
|
}
|
|
3465
3512
|
if (this.slashCommandSuggestion) {
|
|
3466
|
-
const n = { ...this.slashCommandSuggestion, ...
|
|
3467
|
-
t.push(
|
|
3513
|
+
const n = { ...this.slashCommandSuggestion, ...bs };
|
|
3514
|
+
t.push(ts.configure({
|
|
3468
3515
|
suggestion: n,
|
|
3469
3516
|
onSelectedCommand: (i) => {
|
|
3470
3517
|
this.$emit("selected-command", i);
|
|
3471
3518
|
}
|
|
3472
3519
|
}));
|
|
3473
3520
|
}
|
|
3474
|
-
return this.allowVariable && t.push(
|
|
3521
|
+
return this.allowVariable && t.push(ss.configure({
|
|
3475
3522
|
variableItems: this.variableItems
|
|
3476
|
-
})), t.push(
|
|
3523
|
+
})), t.push(Ai), t.push(An.configure({
|
|
3477
3524
|
types: ["paragraph"]
|
|
3478
|
-
})), this.allowCode && t.push(
|
|
3525
|
+
})), this.allowCode && t.push(gn), this.allowCodeblock && t.push(mn.extend({
|
|
3479
3526
|
renderText({ node: n }) {
|
|
3480
3527
|
return `\`\`\`
|
|
3481
3528
|
${n.textContent}
|
|
@@ -3485,18 +3532,18 @@ ${n.textContent}
|
|
|
3485
3532
|
HTMLAttributes: {
|
|
3486
3533
|
class: "d-rich-text-editor__code-block"
|
|
3487
3534
|
}
|
|
3488
|
-
})), this.allowInlineImages && t.push(
|
|
3535
|
+
})), this.allowInlineImages && t.push(Ui.configure({
|
|
3489
3536
|
resize: {
|
|
3490
3537
|
enabled: this.allowImageResize,
|
|
3491
3538
|
alwaysPreserveAspectRatio: !0
|
|
3492
3539
|
}
|
|
3493
|
-
})), (this.allowFontFamily || this.allowFontColor || this.allowFontSize) && t.push(
|
|
3540
|
+
})), (this.allowFontFamily || this.allowFontColor || this.allowFontSize) && t.push($n.configure({
|
|
3494
3541
|
color: this.allowFontColor,
|
|
3495
3542
|
backgroundColor: !1,
|
|
3496
3543
|
fontFamily: this.allowFontFamily,
|
|
3497
3544
|
fontSize: this.allowFontSize,
|
|
3498
3545
|
lineHeight: !1
|
|
3499
|
-
})), this.additionalExtensions.length && t.push(...this.additionalExtensions), this.allowTables && t.push(
|
|
3546
|
+
})), this.additionalExtensions.length && t.push(...this.additionalExtensions), this.allowTables && t.push(Dn.configure({ resizable: !0 }), Rn, Mn, Hn, vn), t;
|
|
3500
3547
|
},
|
|
3501
3548
|
inputAttrs() {
|
|
3502
3549
|
const t = {
|
|
@@ -3536,11 +3583,11 @@ ${n.textContent}
|
|
|
3536
3583
|
this.destroyEditor();
|
|
3537
3584
|
},
|
|
3538
3585
|
mounted() {
|
|
3539
|
-
|
|
3586
|
+
Kn(jt(this.$el), this.$options.name), this.processValue(this.modelValue, !1);
|
|
3540
3587
|
},
|
|
3541
3588
|
methods: {
|
|
3542
3589
|
createEditor() {
|
|
3543
|
-
this.editor = new
|
|
3590
|
+
this.editor = new Ke({
|
|
3544
3591
|
autofocus: this.autoFocus,
|
|
3545
3592
|
content: this.modelValue,
|
|
3546
3593
|
editable: this.editable,
|
|
@@ -3614,7 +3661,7 @@ ${n.textContent}
|
|
|
3614
3661
|
processValue(t, e = !0) {
|
|
3615
3662
|
if (!this.editor) return;
|
|
3616
3663
|
const o = this.getOutput();
|
|
3617
|
-
if (!(e &&
|
|
3664
|
+
if (!(e && no(t, o))) {
|
|
3618
3665
|
if (typeof t == "string" && this.outputFormat === "text") {
|
|
3619
3666
|
const n = new RegExp(`(${ge})`, "g");
|
|
3620
3667
|
t = t == null ? void 0 : t.replace(n, '<emoji-component code="$1"></emoji-component>');
|
|
@@ -3759,11 +3806,11 @@ ${n.textContent}
|
|
|
3759
3806
|
this.editor.commands.focus();
|
|
3760
3807
|
}
|
|
3761
3808
|
}
|
|
3762
|
-
},
|
|
3763
|
-
function
|
|
3764
|
-
const r =
|
|
3765
|
-
return
|
|
3766
|
-
i.editor && o.link && !o.hideLinkBubbleMenu ? (
|
|
3809
|
+
}, xs = { class: "d-popover__dialog" };
|
|
3810
|
+
function Ts(t, e, o, n, i, s) {
|
|
3811
|
+
const r = x("dt-button"), a = x("dt-stack"), l = x("bubble-menu"), u = x("editor-content");
|
|
3812
|
+
return k(), ut("div", null, [
|
|
3813
|
+
i.editor && o.link && !o.hideLinkBubbleMenu ? (k(), E(l, {
|
|
3767
3814
|
key: 0,
|
|
3768
3815
|
editor: i.editor,
|
|
3769
3816
|
"should-show": s.bubbleMenuShouldShow,
|
|
@@ -3771,41 +3818,41 @@ function Cs(t, e, o, n, i, s) {
|
|
|
3771
3818
|
"append-to": i.appendTo,
|
|
3772
3819
|
style: { visibility: "visible" }
|
|
3773
3820
|
}, {
|
|
3774
|
-
default:
|
|
3775
|
-
|
|
3776
|
-
|
|
3821
|
+
default: T(() => [
|
|
3822
|
+
ct("div", xs, [
|
|
3823
|
+
A(a, {
|
|
3777
3824
|
direction: "row",
|
|
3778
3825
|
class: "d-rich-text-editor-bubble-menu__button-stack",
|
|
3779
3826
|
gap: "0"
|
|
3780
3827
|
}, {
|
|
3781
|
-
default:
|
|
3782
|
-
|
|
3828
|
+
default: T(() => [
|
|
3829
|
+
A(r, {
|
|
3783
3830
|
kind: "muted",
|
|
3784
3831
|
importance: "clear",
|
|
3785
3832
|
onClick: s.editLink
|
|
3786
3833
|
}, {
|
|
3787
|
-
default:
|
|
3788
|
-
|
|
3834
|
+
default: T(() => [
|
|
3835
|
+
Y($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_EDIT_BUTTON_LABEL")), 1)
|
|
3789
3836
|
]),
|
|
3790
3837
|
_: 1
|
|
3791
3838
|
}, 8, ["onClick"]),
|
|
3792
|
-
|
|
3839
|
+
A(r, {
|
|
3793
3840
|
kind: "muted",
|
|
3794
3841
|
importance: "clear",
|
|
3795
3842
|
onClick: s.openLink
|
|
3796
3843
|
}, {
|
|
3797
|
-
default:
|
|
3798
|
-
|
|
3844
|
+
default: T(() => [
|
|
3845
|
+
Y($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_OPEN_LINK_BUTTON_LABEL")), 1)
|
|
3799
3846
|
]),
|
|
3800
3847
|
_: 1
|
|
3801
3848
|
}, 8, ["onClick"]),
|
|
3802
|
-
|
|
3849
|
+
A(r, {
|
|
3803
3850
|
kind: "danger",
|
|
3804
3851
|
importance: "clear",
|
|
3805
3852
|
onClick: s.removeLink
|
|
3806
3853
|
}, {
|
|
3807
|
-
default:
|
|
3808
|
-
|
|
3854
|
+
default: T(() => [
|
|
3855
|
+
Y($(i.i18n.$t("DIALTONE_RICH_TEXT_EDITOR_REMOVE_BUTTON_LABEL")), 1)
|
|
3809
3856
|
]),
|
|
3810
3857
|
_: 1
|
|
3811
3858
|
}, 8, ["onClick"])
|
|
@@ -3815,8 +3862,8 @@ function Cs(t, e, o, n, i, s) {
|
|
|
3815
3862
|
])
|
|
3816
3863
|
]),
|
|
3817
3864
|
_: 1
|
|
3818
|
-
}, 8, ["editor", "should-show", "options", "append-to"])) :
|
|
3819
|
-
|
|
3865
|
+
}, 8, ["editor", "should-show", "options", "append-to"])) : ot("", !0),
|
|
3866
|
+
A(u, pe({
|
|
3820
3867
|
ref: "editor",
|
|
3821
3868
|
editor: i.editor,
|
|
3822
3869
|
class: "d-rich-text-editor",
|
|
@@ -3824,8 +3871,8 @@ function Cs(t, e, o, n, i, s) {
|
|
|
3824
3871
|
}, s.attrs), null, 16, ["editor"])
|
|
3825
3872
|
]);
|
|
3826
3873
|
}
|
|
3827
|
-
const
|
|
3874
|
+
const pr = /* @__PURE__ */ q(vs, [["render", Ts]]);
|
|
3828
3875
|
export {
|
|
3829
|
-
|
|
3876
|
+
pr as default
|
|
3830
3877
|
};
|
|
3831
3878
|
//# sourceMappingURL=rich-text-editor.js.map
|