@onereach/ui-components 6.1.2 → 6.2.0-beta.3261.0
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/bundled/{v3/_baseAssignValue-22e630c1.js → v2/_baseAssignValue-2250dbc9.js} +1 -1
- package/dist/bundled/v2/{_baseIsEqual-a1cc156c.js → _baseIsEqual-fe2002b6.js} +5 -5
- package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +7 -0
- package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
- package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
- package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
- package/dist/bundled/v2/components/OrCode/index.js +3 -2
- package/dist/bundled/v2/components/OrCode/lang.js +3 -2
- package/dist/bundled/v2/components/OrCode/libs.js +3 -2
- package/dist/bundled/v2/components/OrCode/theme.js +1 -1
- package/dist/bundled/v2/components/OrCodeV3/OrCode.js +5 -4
- package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +1 -1
- package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +4 -4
- package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v2/components/OrFloating/OrFloating.js +1 -1
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v2/components/OrInput/OrInput.js +1 -1
- package/dist/bundled/v2/components/OrList/OrList.js +8 -8
- package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
- package/dist/bundled/v2/components/OrModal/OrModal.js +3 -1347
- package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
- package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
- package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v2/components/OrProgress/OrProgress.js +1 -1
- package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v2/components/OrRadio/OrRadio.js +2 -2
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2169 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +2 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +5 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +42 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +183 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +17 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +199 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +2 -0
- package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
- package/dist/bundled/v2/components/OrSelect/OrSelect.js +7 -7
- package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -1
- package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +1 -1
- package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +1 -1
- package/dist/bundled/v2/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +1 -1
- package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +1 -1
- package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
- package/dist/bundled/v2/components/OrTreeV3/OrTree.js +1 -1
- package/dist/bundled/v2/components/OrTreeV3/OrTree.vue.d.ts +2 -2
- package/dist/bundled/v2/components/index.d.ts +1 -0
- package/dist/bundled/v2/components/index.js +5 -2
- package/dist/bundled/{v3/dom-bb55b42a.js → v2/dom-cec392f3.js} +2 -2
- package/dist/bundled/v2/{eq-95cd2573.js → eq-44ea4d70.js} +1 -1
- package/dist/bundled/{v3/get-ab1b7d93.js → v2/get-34aa21f4.js} +3 -3
- package/dist/bundled/v2/hooks/useOverflow.js +1 -1
- package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v2/{index-ec92055d.js → index-06f6bbe4.js} +1 -1
- package/dist/bundled/{v3/index-3d38888c.js → v2/index-0c287ab6.js} +2 -2
- package/dist/bundled/v2/index-1b2cfcc1.js +9715 -0
- package/dist/bundled/v2/{index-509d77a1.js → index-2b20f5f5.js} +2 -2
- package/dist/bundled/v2/{index-6617e2a7.js → index-3cae2d25.js} +2 -114
- package/dist/bundled/v2/index-3e178101.js +1817 -0
- package/dist/bundled/v2/{index-5915e78f.js → index-666dfe59.js} +70 -1882
- package/dist/bundled/v2/index-9444e0d2.js +115 -0
- package/dist/bundled/v2/{index-15e8c1f3.js → index-dac0fb7c.js} +1 -1
- package/dist/bundled/v2/{index-02646e58.js → index-de4975a3.js} +14 -3
- package/dist/bundled/v2/index-f671afe5.js +7127 -0
- package/dist/bundled/v2/index.js +7 -4
- package/dist/bundled/v2/{isArrayLike-e46b8eac.js → isArrayLike-e7fb5cae.js} +1 -1
- package/dist/bundled/v2/{isEqual-44382965.js → isEqual-7a8e6106.js} +1 -1
- package/dist/bundled/{v3/isObject-fe8b81fd.js → v2/isObject-b7415fc1.js} +1 -1
- package/dist/bundled/v2/markdown-119394e1.js +15365 -0
- package/dist/bundled/{v3/range-6f26eda4.js → v2/range-82efa3d4.js} +4 -4
- package/dist/bundled/{v3/round-f34440f4.js → v2/round-567ede34.js} +4 -4
- package/dist/bundled/{v3/toFinite-74227610.js → v2/toFinite-bc59ffb0.js} +1 -1
- package/dist/bundled/v2/{toInteger-2fd112a9.js → toInteger-9fa0151c.js} +1 -1
- package/dist/bundled/{v3/toString-f3196832.js → v2/toString-b6e4472a.js} +1 -1
- package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-089dd5fd.js → v2/useFocusTrap-d1b2c0b4.js} +4 -100
- package/dist/bundled/v2/utils/functions/dom.js +2 -2
- package/dist/bundled/v2/utils/index.js +1 -1
- package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-058f42b8.js → OrAvatar.vue_vue_type_script_lang-9024e842.js} +1 -1
- package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-4adbc880.js → OrBottomSheet.vue_vue_type_script_lang-aca902f2.js} +2 -2
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-04789919.js → OrButton.vue_vue_type_script_lang-34c69de5.js} +1 -1
- package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-22b24f8b.js → OrButton.vue_vue_type_script_lang-db6595f6.js} +1 -1
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-b49e1183.js → OrCardCollection.vue_vue_type_script_lang-d0d332ba.js} +3 -3
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-084e3a6c.js → OrCardCollection.vue_vue_type_script_lang-df1b372d.js} +3 -3
- package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-ab56a97e.js → OrCheckbox.vue_vue_type_script_lang-2d3ae971.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-ca6ba786.js → OrCheckboxGroup.vue_vue_type_script_lang-2d4980de.js} +1 -1
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-d3ed803b.js → OrCheckboxTree.vue_vue_type_script_lang-8d9ed718.js} +2 -2
- package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-1f55d1a7.js → OrChip.vue_vue_type_script_lang-bcdb6058.js} +1 -1
- package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-be1e7c30.js → OrChips.vue_vue_type_script_lang-8f63c2f0.js} +1 -1
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-28b94dd1.js → OrCode.vue_vue_type_script_lang-5666b26f.js} +7 -6
- package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-dce07d9f.js → OrCode.vue_vue_type_script_lang-81ea5cf0.js} +5 -5
- package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-69503c45.js → OrCollapse.vue_vue_type_script_lang-be1c8c66.js} +1 -1
- package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-250f679e.js → OrColorPicker.vue_vue_type_script_lang-1fe11508.js} +3 -3
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-5218eed6.js → OrConfirm.vue_vue_type_script_lang-ac0a345b.js} +6 -6
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-05c54fee.js → OrConfirm.vue_vue_type_script_lang-bd01b878.js} +6 -6
- package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-f9c94c76.js → OrContextMenu.vue_vue_type_script_lang-8fa8823b.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-f0c601e9.js → OrDatePicker.vue_vue_type_script_lang-f5a656f1.js} +4 -4
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-65c11848.js → OrDateTimePicker.vue_vue_type_script_lang-187e1c2b.js} +5 -5
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-3329d4d8.js → OrDateTimePicker.vue_vue_type_script_lang-1b953be7.js} +7 -7
- package/dist/bundled/v3/{OrDateTimePickerMonthSelect-3d1478af.js → OrDateTimePickerMonthSelect-12b65874.js} +3 -3
- package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-daa7e47b.js → OrDateTimePickerPopoverHeader-135da975.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePickerTimeSelect-96c4d657.js → OrDateTimePickerTimeSelect-fe701e75.js} +1 -1
- package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-6be13add.js → OrFloating.vue_vue_type_script_lang-3fa1df9f.js} +1 -1
- package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-ac8f9d3e.js → OrIcon.vue_vue_type_script_lang-78ac61a5.js} +1 -1
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-7c9e5033.js → OrIconButton.vue_vue_type_script_lang-85f1498b.js} +2 -2
- package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e6c61cfd.js → OrIconButton.vue_vue_type_script_lang-d8ff36fb.js} +1 -1
- package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-47e464e3.js → OrInlineInput.vue_vue_type_script_lang-709c00b7.js} +1 -1
- package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-c9474fbe.js → OrInlineTextEdit.vue_vue_type_script_lang-1f854f02.js} +4 -4
- package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-2785a182.js → OrInlineTextarea.vue_vue_type_script_lang-3db49cfa.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-caf9e3f3.js → OrInput.vue_vue_type_script_lang-28e2c7b8.js} +2 -2
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-863d3195.js → OrInput.vue_vue_type_script_lang-515ff78a.js} +2 -2
- package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-8622ae68.js → OrList.vue_vue_type_script_lang-9e670b9d.js} +11 -11
- package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-43cf4a6e.js → OrListOfInputs.vue_vue_type_script_lang-2705c3b7.js} +4 -4
- package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-0395ad21.js → OrLoader.vue_vue_type_script_lang-0ea76e45.js} +1 -1
- package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-fa75c5f9.js → OrMenu.vue_vue_type_script_lang-d3fd1507.js} +1 -1
- package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-46c6e9a0.js → OrModal.vue_vue_type_script_lang-59146f56.js} +2 -2
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-896a12c0.js +101 -0
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-e8d9e29d.js → OrNotification.vue_vue_type_script_lang-2d1d8063.js} +1 -1
- package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-d5cd06d6.js → OrNotification.vue_vue_type_script_lang-f7a1bedd.js} +2 -2
- package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-4cc194fc.js → OrNumberInput.vue_vue_type_script_lang-b832e611.js} +1 -1
- package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-8976c7cb.js → OrOverflowMenu.vue_vue_type_script_lang-d1162f59.js} +5 -5
- package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-2da128a3.js → OrOverlay.vue_vue_type_script_lang-2b256188.js} +1 -1
- package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-f203e797.js → OrPagination.vue_vue_type_script_lang-7d1fbc59.js} +2 -2
- package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-801df81f.js → OrPassword.vue_vue_type_script_lang-69655c43.js} +3 -3
- package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-1b2cb592.js → OrPopover.vue_vue_type_script_lang-8b17e94e.js} +3 -3
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-32e6da23.js → OrProgress.vue_vue_type_script_lang-56b4a5da.js} +2 -2
- package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-a99362ae.js → OrProgress.vue_vue_type_script_lang-c4bd7133.js} +1 -1
- package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-3a551734.js → OrRadio.vue_vue_type_script_lang-a4f043e9.js} +2 -2
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-0b0d7afe.js +1909 -0
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-db238842.js → OrSearch.vue_vue_type_script_lang-09597177.js} +2 -2
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-a1d47bfb.js → OrSearch.vue_vue_type_script_lang-ccd97657.js} +3 -3
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-6bdb35b4.js → OrSelect.vue_vue_type_script_lang-16b3f823.js} +5 -5
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-0e16c49d.js → OrSelect.vue_vue_type_script_lang-5e93d6de.js} +11 -11
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-5e39e11c.js → OrSidebar.vue_vue_type_script_lang-8c24f12e.js} +2 -2
- package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-81941fe6.js → OrSidebar.vue_vue_type_script_lang-bd864765.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js → OrSkeletonText.vue_vue_type_script_lang-502607ef.js} +1 -1
- package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js → OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js} +1 -1
- package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-ddeb981a.js → OrSlider.vue_vue_type_script_lang-137b7a6d.js} +3 -3
- package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-a47a6c7c.js → OrSorting.vue_vue_type_script_lang-4b045a2f.js} +2 -2
- package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-35b3f789.js → OrStepper.vue_vue_type_script_lang-51a6aac8.js} +1 -1
- package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-a2f28112.js → OrSwitch.vue_vue_type_script_lang-fe6a5512.js} +1 -1
- package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-d53cdbc8.js → OrTabs.vue_vue_type_script_lang-3334d9cd.js} +2 -2
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-db85a592.js → OrTag.vue_vue_type_script_lang-36747a19.js} +1 -1
- package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-e3c6c3ea.js → OrTag.vue_vue_type_script_lang-4059630f.js} +1 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-aad1679e.js → OrTagInput.vue_vue_type_script_lang-276c07eb.js} +2 -2
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-34c8b8ea.js → OrTags.vue_vue_type_script_lang-d2e076f1.js} +3 -3
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-325050eb.js → OrTextarea.vue_vue_type_script_lang-5624556c.js} +2 -2
- package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-12a5099f.js → OrTextbox.vue_vue_type_script_lang-fdb184f3.js} +3 -3
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-ffafa6f3.js → OrTimePicker.vue_vue_type_script_lang-c64c8efc.js} +4 -4
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-4b586b65.js → OrToastContainer.vue_vue_type_script_lang-33eb865e.js} +1 -1
- package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-619af0a2.js → OrToastContainer.vue_vue_type_script_lang-e66ec8a5.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-e18e400d.js → OrTooltip.vue_vue_type_script_lang-21382d48.js} +1 -1
- package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-d59653b0.js → OrTooltip.vue_vue_type_script_lang-5e53867b.js} +1 -1
- package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-ffd5fbc3.js → OrTree.vue_vue_type_script_lang-ce5b0577.js} +2 -2
- package/dist/bundled/{v2/_baseAssignValue-22e630c1.js → v3/_baseAssignValue-2250dbc9.js} +1 -1
- package/dist/bundled/v3/{_baseIsEqual-a1cc156c.js → _baseIsEqual-fe2002b6.js} +5 -5
- package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +7 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +2 -2
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrAvatar/index.js +1 -1
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +568 -25
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.d.ts +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
- package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
- package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
- package/dist/bundled/v3/components/OrButtonV2/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
- package/dist/bundled/v3/components/OrButtonV2/index.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +44 -17
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +2 -2
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
- package/dist/bundled/v3/components/OrChip/OrChip.js +2 -2
- package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrChip/index.js +1 -1
- package/dist/bundled/v3/components/OrChips/OrChips.js +2 -2
- package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
- package/dist/bundled/v3/components/OrChips/index.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
- package/dist/bundled/v3/components/OrCode/index.js +4 -3
- package/dist/bundled/v3/components/OrCode/lang.js +3 -2
- package/dist/bundled/v3/components/OrCode/libs.js +3 -2
- package/dist/bundled/v3/components/OrCode/theme.js +1 -1
- package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
- package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +83 -33
- package/dist/bundled/v3/components/OrCodeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +2 -2
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
- package/dist/bundled/v3/components/OrCollapse/index.js +1 -1
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
- package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -30
- package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
- package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.vue.d.ts +27 -13
- package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +83 -88
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +109 -94
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
- package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
- package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +39 -16
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
- package/dist/bundled/v3/components/OrFloating/OrFloating.js +2 -2
- package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
- package/dist/bundled/v3/components/OrFloating/index.js +1 -1
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
- package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
- package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
- package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
- package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
- package/dist/bundled/v3/components/OrIcon/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
- package/dist/bundled/v3/components/OrIconButtonV2/index.js +1 -1
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +54 -16
- package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInput/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
- package/dist/bundled/v3/components/OrInput/index.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +88 -38
- package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
- package/dist/bundled/v3/components/OrList/OrList.js +2 -2
- package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
- package/dist/bundled/v3/components/OrList/index.js +1 -1
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
- package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +33 -15
- package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
- package/dist/bundled/v3/components/OrModal/index.js +1 -1
- package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +25 -13
- package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNotification/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
- package/dist/bundled/v3/components/OrNotification/index.js +1 -1
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +2 -2
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
- package/dist/bundled/v3/components/OrNumberInput/index.js +1 -1
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
- package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
- package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
- package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
- package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
- package/dist/bundled/v3/components/OrPassword/index.js +1 -1
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +78 -25
- package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
- package/dist/bundled/v3/components/OrProgress/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
- package/dist/bundled/v3/components/OrProgress/index.js +1 -1
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
- package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRadio/OrRadio.js +2 -2
- package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
- package/dist/bundled/v3/components/OrRadio/index.js +1 -1
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +202 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +2 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +5 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +42 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +183 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +17 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +199 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +2 -0
- package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
- package/dist/bundled/v3/components/OrSearch/index.js +1 -1
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
- package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
- package/dist/bundled/v3/components/OrSelect/index.js +1 -1
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +133 -44
- package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeleton/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +2 -2
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
- package/dist/bundled/v3/components/OrSkeletonText/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +2 -2
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
- package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
- package/dist/bundled/v3/components/OrSlider/index.js +1 -1
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
- package/dist/bundled/v3/components/OrSortingV3/OrSorting.vue.d.ts +45 -13
- package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
- package/dist/bundled/v3/components/OrStepper/OrStepper.js +2 -2
- package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
- package/dist/bundled/v3/components/OrStepper/index.js +1 -1
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
- package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
- package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +73 -26
- package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTag/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
- package/dist/bundled/v3/components/OrTag/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
- package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
- package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +68 -23
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +2 -2
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
- package/dist/bundled/v3/components/OrTextarea/index.js +1 -1
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +2 -2
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
- package/dist/bundled/v3/components/OrTextbox/index.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +83 -88
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToast/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
- package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToast/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
- package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
- package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
- package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
- package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
- package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +33 -15
- package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
- package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +19 -13
- package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/index.d.ts +1 -0
- package/dist/bundled/v3/components/index.js +78 -75
- package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/bundled/{v2/dom-bb55b42a.js → v3/dom-cec392f3.js} +2 -2
- package/dist/bundled/v3/{eq-95cd2573.js → eq-44ea4d70.js} +1 -1
- package/dist/bundled/{v2/get-ab1b7d93.js → v3/get-34aa21f4.js} +3 -3
- package/dist/bundled/v3/hooks/useOverflow.js +1 -1
- package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
- package/dist/bundled/v3/{index-929e224a.js → index-0a01982b.js} +2 -2
- package/dist/bundled/{v2/index-3d38888c.js → v3/index-0c287ab6.js} +2 -2
- package/dist/bundled/v3/index-1b2cfcc1.js +9715 -0
- package/dist/bundled/v3/{index-6617e2a7.js → index-3cae2d25.js} +2 -114
- package/dist/bundled/v3/index-3e178101.js +1817 -0
- package/dist/bundled/v3/{index-f4d8e24c.js → index-40b35d94.js} +1 -1
- package/dist/bundled/v3/{index-5915e78f.js → index-666dfe59.js} +70 -1882
- package/dist/bundled/v3/{index-500b3ace.js → index-749f3444.js} +1 -1
- package/dist/bundled/v3/index-9444e0d2.js +115 -0
- package/dist/bundled/v3/{index-02646e58.js → index-de4975a3.js} +14 -3
- package/dist/bundled/v3/index-f671afe5.js +7127 -0
- package/dist/bundled/v3/index.js +81 -77
- package/dist/bundled/v3/{isArrayLike-e46b8eac.js → isArrayLike-e7fb5cae.js} +1 -1
- package/dist/bundled/v3/{isEqual-44382965.js → isEqual-7a8e6106.js} +1 -1
- package/dist/bundled/{v2/isObject-fe8b81fd.js → v3/isObject-b7415fc1.js} +1 -1
- package/dist/bundled/v3/markdown-119394e1.js +15365 -0
- package/dist/bundled/{v2/range-6f26eda4.js → v3/range-82efa3d4.js} +4 -4
- package/dist/bundled/{v2/round-f34440f4.js → v3/round-567ede34.js} +4 -4
- package/dist/bundled/{v2/toFinite-74227610.js → v3/toFinite-bc59ffb0.js} +1 -1
- package/dist/bundled/v3/{toInteger-2fd112a9.js → toInteger-9fa0151c.js} +1 -1
- package/dist/bundled/{v2/toString-f3196832.js → v3/toString-b6e4472a.js} +1 -1
- package/dist/bundled/v3/useFocusTrap-2302b843.js +1349 -0
- package/dist/bundled/v3/utils/functions/dom.js +2 -2
- package/dist/bundled/v3/utils/index.js +1 -1
- package/dist/esm/v2/OrRichTextEditor-ade23e24.js +980 -0
- package/dist/esm/v2/codemirrorView-020fe885.js +357 -0
- package/dist/esm/v2/components/index.d.ts +1 -0
- package/dist/esm/v2/components/index.js +23 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +66 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +5 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +9 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +17 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tree-v3/OrTree.vue.d.ts +2 -2
- package/dist/esm/v2/index.js +23 -0
- package/dist/esm/v3/OrRichTextEditor-d59ba053.js +912 -0
- package/dist/esm/v3/codemirrorView-020fe885.js +357 -0
- package/dist/esm/v3/components/index.d.ts +1 -0
- package/dist/esm/v3/components/index.js +23 -0
- package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +568 -25
- package/dist/esm/v3/components/or-bottom-sheet-v3/hooks/useBottomSheetSwipeState.d.ts +1 -1
- package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
- package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +44 -17
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
- package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
- package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
- package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +83 -33
- package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
- package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -30
- package/dist/esm/v3/components/or-context-menu-v3/OrContextMenu.vue.d.ts +27 -13
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +83 -88
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +109 -94
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +17 -9
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +30 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +43 -17
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
- package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +39 -16
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
- package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
- package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +54 -16
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
- package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
- package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
- package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +18 -7
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +88 -38
- package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
- package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
- package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
- package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +33 -15
- package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +25 -13
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +7 -4
- package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +11 -6
- package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
- package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
- package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
- package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +78 -25
- package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
- package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
- package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +64 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +5 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +9 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +17 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
- package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
- package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
- package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
- package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +133 -44
- package/dist/esm/v3/components/or-select-v3/partials/or-select-placeholder/OrSelectPlaceholder.vue.d.ts +14 -7
- package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
- package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
- package/dist/esm/v3/components/or-sorting-v3/OrSorting.vue.d.ts +45 -13
- package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
- package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
- package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
- package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
- package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
- package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
- package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
- package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +73 -26
- package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +68 -23
- package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
- package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
- package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +83 -88
- package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
- package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +33 -15
- package/dist/esm/v3/components/or-tree-v3/OrTree.vue.d.ts +19 -13
- package/dist/esm/v3/components/or-tree-v3/partials/or-tree-node/OrTreeNode.vue.d.ts +63 -31
- package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
- package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v3/index.js +23 -0
- package/package.json +23 -5
- package/src/components/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +743 -0
- package/src/components/or-rich-text-editor-v3/index.ts +2 -0
- package/src/components/or-rich-text-editor-v3/props.ts +6 -0
- package/src/components/or-rich-text-editor-v3/styles.ts +53 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +238 -0
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +172 -0
- /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-31a5687d.js → OrDateTimePickerMonthSelect-cc8c2a84.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-2c7e113b.js → OrDateTimePickerPopoverHeader-146c2f16.js} +0 -0
- /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-7fd83e23.js → OrDateTimePickerTimeSelect-7286977a.js} +0 -0
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-de05b51f.js → OrExpansionPanel.vue_vue_type_script_lang-94976ae9.js} +0 -0
|
@@ -0,0 +1,912 @@
|
|
|
1
|
+
import { defineComponent, ref, onMounted, onBeforeUnmount, computed, watch, nextTick } from 'vue-demi';
|
|
2
|
+
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap';
|
|
3
|
+
import { useResizeObserver, onClickOutside } from '@vueuse/core';
|
|
4
|
+
import { defaultMarkdownSerializer, MarkdownSerializer } from 'prosemirror-markdown';
|
|
5
|
+
import { DOMParser as DOMParser$1 } from 'prosemirror-model';
|
|
6
|
+
import Paragraph from '@tiptap/extension-paragraph';
|
|
7
|
+
import BulletList from '@tiptap/extension-bullet-list';
|
|
8
|
+
import ListItem from '@tiptap/extension-list-item';
|
|
9
|
+
import OrderedList from '@tiptap/extension-ordered-list';
|
|
10
|
+
import Strike from '@tiptap/extension-strike';
|
|
11
|
+
import Italic from '@tiptap/extension-italic';
|
|
12
|
+
import HardBreak from '@tiptap/extension-hard-break';
|
|
13
|
+
import Bold from '@tiptap/extension-bold';
|
|
14
|
+
import CodeBlock from '@tiptap/extension-code-block';
|
|
15
|
+
import Blockquote from '@tiptap/extension-blockquote';
|
|
16
|
+
import Link from '@tiptap/extension-link';
|
|
17
|
+
import Highlight from '@tiptap/extension-highlight';
|
|
18
|
+
import Underline from '@tiptap/extension-underline';
|
|
19
|
+
import { s as script$1 } from './OrIconButton-ea5d740f.js';
|
|
20
|
+
import { s as script$2 } from './OrLabel-d4c46bb6.js';
|
|
21
|
+
import { s as script$4 } from './OrMenu-ddaa657e.js';
|
|
22
|
+
import { s as script$8 } from './OrPopover-83a576ee.js';
|
|
23
|
+
import { s as script$3 } from './OrMenuItem-54062d59.js';
|
|
24
|
+
import { s as script$5 } from './OrModal-de9f5953.js';
|
|
25
|
+
import { s as script$6 } from './OrInput-bbb237e5.js';
|
|
26
|
+
import { s as script$7 } from './OrButton-4a3c3e7b.js';
|
|
27
|
+
import { Node, Editor, mergeAttributes } from '@tiptap/core';
|
|
28
|
+
import StarterKit from '@tiptap/starter-kit';
|
|
29
|
+
import Heading from '@tiptap/extension-heading';
|
|
30
|
+
import Placeholder from '@tiptap/extension-placeholder';
|
|
31
|
+
import { C as CodeMirrorView } from './codemirrorView-020fe885.js';
|
|
32
|
+
import { minimalSetup } from 'codemirror';
|
|
33
|
+
import { javascript } from '@codemirror/lang-javascript';
|
|
34
|
+
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, withDirectives, vShow, vModelText, renderSlot } from 'vue';
|
|
35
|
+
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
36
|
+
|
|
37
|
+
const serializerNodes = {
|
|
38
|
+
...defaultMarkdownSerializer.nodes,
|
|
39
|
+
[Paragraph.name]: defaultMarkdownSerializer.nodes.paragraph,
|
|
40
|
+
[BulletList.name]: defaultMarkdownSerializer.nodes.bullet_list,
|
|
41
|
+
[ListItem.name]: defaultMarkdownSerializer.nodes.list_item,
|
|
42
|
+
[OrderedList.name]: defaultMarkdownSerializer.nodes.ordered_list,
|
|
43
|
+
[HardBreak.name]: defaultMarkdownSerializer.nodes.hard_break,
|
|
44
|
+
[CodeBlock.name]: defaultMarkdownSerializer.nodes.code_block,
|
|
45
|
+
[Blockquote.name]: defaultMarkdownSerializer.nodes.blockquote
|
|
46
|
+
};
|
|
47
|
+
const serializerMarks = {
|
|
48
|
+
...defaultMarkdownSerializer.marks,
|
|
49
|
+
[Bold.name]: defaultMarkdownSerializer.marks.strong,
|
|
50
|
+
[Strike.name]: {
|
|
51
|
+
open: '~~',
|
|
52
|
+
close: '~~',
|
|
53
|
+
mixable: true,
|
|
54
|
+
expelEnclosingWhitespace: true
|
|
55
|
+
},
|
|
56
|
+
[Italic.name]: {
|
|
57
|
+
open: ' _',
|
|
58
|
+
close: '_ ',
|
|
59
|
+
mixable: true,
|
|
60
|
+
expelEnclosingWhitespace: true
|
|
61
|
+
},
|
|
62
|
+
[Highlight.name]: {
|
|
63
|
+
open: '==',
|
|
64
|
+
close: '==',
|
|
65
|
+
mixable: true,
|
|
66
|
+
expelEnclosingWhitespace: true
|
|
67
|
+
},
|
|
68
|
+
[Underline.name]: {
|
|
69
|
+
open: '',
|
|
70
|
+
close: '',
|
|
71
|
+
mixable: true,
|
|
72
|
+
expelEnclosingWhitespace: true
|
|
73
|
+
},
|
|
74
|
+
[Link.name]: {
|
|
75
|
+
open(state, mark, parent, index) {
|
|
76
|
+
return isPlainURL(mark, parent, index, 1) ? '<' : '[';
|
|
77
|
+
},
|
|
78
|
+
close(state, mark, parent, index) {
|
|
79
|
+
const href = mark.attrs.canonicalSrc || mark.attrs.href;
|
|
80
|
+
return isPlainURL(mark, parent, index, -1) ? '>' : `](${state.esc(href)}${mark.attrs.title ? ` ${state.quote(mark.attrs.title)}` : ''})`;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
const isPlainURL = (link, parent, index, side) => {
|
|
85
|
+
if (link.attrs.title || !/^\w+:/.test(link.attrs.href)) return false;
|
|
86
|
+
const content = parent.child(index + (side < 0 ? -1 : 0));
|
|
87
|
+
if (!content.isText || content.text !== link.attrs.href || content.marks[content.marks.length - 1] !== link) return false;
|
|
88
|
+
if (index === (side < 0 ? 1 : parent.childCount - 1)) return true;
|
|
89
|
+
const next = parent.child(index + (side < 0 ? -2 : 1));
|
|
90
|
+
return !link.isInSet(next.marks);
|
|
91
|
+
};
|
|
92
|
+
const parseMd = md => {
|
|
93
|
+
//ul
|
|
94
|
+
md = md.replace(/^\s*\n\*/gm, '<ul>\n*');
|
|
95
|
+
md = md.replace(/^(\*.+)\s*\n([^*])/gm, '$1\n</ul>\n\n$2');
|
|
96
|
+
md = md.replace(/^\*(.+)/gm, '<li>$1</li>');
|
|
97
|
+
//ol
|
|
98
|
+
md = md.replace(/^\s*\n\d\./gm, '<ol>\n1.');
|
|
99
|
+
md = md.replace(/^(\d\..+)\s*\n([^\d.])/gm, '$1\n</ol>\n\n$2');
|
|
100
|
+
md = md.replace(/^\d\.(.+)/gm, '<li>$1</li>');
|
|
101
|
+
//blockquote
|
|
102
|
+
md = md.replace(/^>(.+)/gm, '<blockquote>$1</blockquote>');
|
|
103
|
+
//h
|
|
104
|
+
md = md.replace(/[#]{6}(.+)/g, '<h6>$1</h6>');
|
|
105
|
+
md = md.replace(/[#]{5}(.+)/g, '<h5>$1</h5>');
|
|
106
|
+
md = md.replace(/[#]{4}(.+)/g, '<h4>$1</h4>');
|
|
107
|
+
md = md.replace(/[#]{3}(.+)/g, '<h3>$1</h3>');
|
|
108
|
+
md = md.replace(/[#]{2}(.+)/g, '<h2>$1</h2>');
|
|
109
|
+
md = md.replace(/[#]{1}(.+)/g, '<h1>$1</h1>');
|
|
110
|
+
//alt h
|
|
111
|
+
md = md.replace(/^(.+)\n=+/gm, '<h1>$1</h1>');
|
|
112
|
+
md = md.replace(/^(.+)\n-+/gm, '<h2>$1</h2>');
|
|
113
|
+
//images
|
|
114
|
+
md = md.replace(/!\[([^\]]+)\]\(([^)]+)\)/g, '<img src="$2" alt="$1" />');
|
|
115
|
+
//links
|
|
116
|
+
md = md.replace(/[[]{1}([^\]]+)[\]]{1}[(]{1}([^)"]+)("(.+)")?[)]{1}/g, '<a href="$2" title="$4">$1</a>');
|
|
117
|
+
//font styles
|
|
118
|
+
md = md.replace(/[*_]{2}([^*_]+)[*_]{2}/g, '<b>$1</b>');
|
|
119
|
+
md = md.replace(/[*_]{1}([^*_]+)[*_]{1}/g, '<i>$1</i>');
|
|
120
|
+
md = md.replace(/[=]{2}([^=]+)[=]{2}/g, '<mark>$1</mark>');
|
|
121
|
+
md = md.replace(/[~]{2}([^~]+)[~]{2}/g, '<del>$1</del>');
|
|
122
|
+
//pre
|
|
123
|
+
md = md.replace(/^\s*\n```(([^\s]+))?/gm, '<pre class="$2">');
|
|
124
|
+
md = md.replace(/^```\s*\n/gm, '</pre>\n\n');
|
|
125
|
+
//code
|
|
126
|
+
md = md.replace(/[`]{1}([^`]+)[`]{1}/g, '<code>$1</code>');
|
|
127
|
+
//p
|
|
128
|
+
md = md.replace(/^\s*(\n)?(.+)/gm, function (m) {
|
|
129
|
+
return /<(\/)?(h\d|ul|ol|li|blockquote|pre|img)/.test(m) ? m : '<p>' + m + '</p>';
|
|
130
|
+
});
|
|
131
|
+
//strip p from pre
|
|
132
|
+
md = md.replace(/(<pre.+>)\s*\n<p>(.+)<\/p>/gm, '$1$2');
|
|
133
|
+
return md;
|
|
134
|
+
};
|
|
135
|
+
const serialize = (schema, content) => {
|
|
136
|
+
const proseMirrorDocument = schema.nodeFromJSON(content);
|
|
137
|
+
const serializer = new MarkdownSerializer(serializerNodes, serializerMarks);
|
|
138
|
+
return serializer.serialize(proseMirrorDocument, {
|
|
139
|
+
tightLists: true
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
const deserialize = (schema, content) => {
|
|
143
|
+
if (!content) return null;
|
|
144
|
+
const html = parseMd(content);
|
|
145
|
+
if (!html) return null;
|
|
146
|
+
const parser = new DOMParser();
|
|
147
|
+
const {
|
|
148
|
+
body
|
|
149
|
+
} = parser.parseFromString(html, 'text/html');
|
|
150
|
+
// append original source as a comment that nodes can access
|
|
151
|
+
body.append(document.createComment(content));
|
|
152
|
+
const state = DOMParser$1.fromSchema(schema).parse(body);
|
|
153
|
+
return state.toJSON();
|
|
154
|
+
};
|
|
155
|
+
|
|
156
|
+
const EditorContainer = [
|
|
157
|
+
// Colors
|
|
158
|
+
'border-outline', 'focus-within:theme-background-primary-translucent', 'focus-within:theme-border-1-primary', 'focus-within:theme-outline-2-primary',
|
|
159
|
+
// Sizing
|
|
160
|
+
'border-1', 'rounded-md', 'w-full'];
|
|
161
|
+
const ToolbarContainer = [
|
|
162
|
+
// Layout
|
|
163
|
+
'flex',
|
|
164
|
+
//Spacing
|
|
165
|
+
'py-sm',
|
|
166
|
+
//Sizing
|
|
167
|
+
'border-b-1',
|
|
168
|
+
//Colors
|
|
169
|
+
'border-b-outline'];
|
|
170
|
+
const Toolbar = [
|
|
171
|
+
// Layout
|
|
172
|
+
'flex',
|
|
173
|
+
// Spacing
|
|
174
|
+
'px-sm', 'gap-md',
|
|
175
|
+
// Sizing
|
|
176
|
+
'border-l-1',
|
|
177
|
+
//Colors
|
|
178
|
+
'border-r-disabled',
|
|
179
|
+
// Last child
|
|
180
|
+
'first-of-type:border-none'];
|
|
181
|
+
const ToolbarButton = [
|
|
182
|
+
// Typography
|
|
183
|
+
'text-on-disabled'];
|
|
184
|
+
const ToolbarButtonFocused = [
|
|
185
|
+
// Typography
|
|
186
|
+
'text-outline'];
|
|
187
|
+
const EditorInput = [
|
|
188
|
+
// Typography
|
|
189
|
+
'typography-body-2-regular',
|
|
190
|
+
// Sizing
|
|
191
|
+
'min-h-[88px]'];
|
|
192
|
+
|
|
193
|
+
var Formats;
|
|
194
|
+
(function (Formats) {
|
|
195
|
+
Formats["Markdown"] = "markdown";
|
|
196
|
+
Formats["Markup"] = "markup";
|
|
197
|
+
})(Formats || (Formats = {}));
|
|
198
|
+
|
|
199
|
+
var codemirrorNode = Node.create({
|
|
200
|
+
name: 'codeBlock',
|
|
201
|
+
content: 'text*',
|
|
202
|
+
marks: '',
|
|
203
|
+
group: 'block',
|
|
204
|
+
code: true,
|
|
205
|
+
defining: true,
|
|
206
|
+
isolating: true,
|
|
207
|
+
parseHTML() {
|
|
208
|
+
return [{
|
|
209
|
+
tag: 'pre',
|
|
210
|
+
preserveWhitespace: 'full'
|
|
211
|
+
}];
|
|
212
|
+
},
|
|
213
|
+
renderHTML() {
|
|
214
|
+
return ['pre', ['code', 0]];
|
|
215
|
+
},
|
|
216
|
+
addNodeView() {
|
|
217
|
+
return _ref => {
|
|
218
|
+
let {
|
|
219
|
+
node,
|
|
220
|
+
editor,
|
|
221
|
+
getPos
|
|
222
|
+
} = _ref;
|
|
223
|
+
return new CodeMirrorView({
|
|
224
|
+
node,
|
|
225
|
+
view: editor.view,
|
|
226
|
+
getPos: getPos,
|
|
227
|
+
cmOptions: {
|
|
228
|
+
extensions: [minimalSetup, javascript()]
|
|
229
|
+
}
|
|
230
|
+
});
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
|
|
235
|
+
var script = defineComponent({
|
|
236
|
+
name: 'OrRichTextEditor',
|
|
237
|
+
components: {
|
|
238
|
+
OrIconButton: script$1,
|
|
239
|
+
OrLabel: script$2,
|
|
240
|
+
OrMenuItem: script$3,
|
|
241
|
+
OrMenu: script$4,
|
|
242
|
+
OrModal: script$5,
|
|
243
|
+
OrInput: script$6,
|
|
244
|
+
OrButton: script$7,
|
|
245
|
+
OrPopover: script$8
|
|
246
|
+
},
|
|
247
|
+
inheritAttrs: false,
|
|
248
|
+
model: {
|
|
249
|
+
prop: 'modelValue',
|
|
250
|
+
event: 'update:modelValue'
|
|
251
|
+
},
|
|
252
|
+
props: {
|
|
253
|
+
modelValue: {
|
|
254
|
+
type: String,
|
|
255
|
+
default: undefined
|
|
256
|
+
},
|
|
257
|
+
toolbar: {
|
|
258
|
+
type: Array,
|
|
259
|
+
default: () => []
|
|
260
|
+
},
|
|
261
|
+
description: {
|
|
262
|
+
type: String,
|
|
263
|
+
default: ''
|
|
264
|
+
},
|
|
265
|
+
placeholder: {
|
|
266
|
+
type: String,
|
|
267
|
+
default: ''
|
|
268
|
+
},
|
|
269
|
+
autofocus: {
|
|
270
|
+
type: Boolean,
|
|
271
|
+
default: false
|
|
272
|
+
},
|
|
273
|
+
format: {
|
|
274
|
+
type: String,
|
|
275
|
+
default: Formats.Markup
|
|
276
|
+
},
|
|
277
|
+
fullHeight: {
|
|
278
|
+
type: Boolean,
|
|
279
|
+
default: false
|
|
280
|
+
}
|
|
281
|
+
},
|
|
282
|
+
emits: ['update:modelValue', 'input', 'file-upload'],
|
|
283
|
+
expose: ['root'],
|
|
284
|
+
setup(props, context) {
|
|
285
|
+
// Refs
|
|
286
|
+
const root = ref();
|
|
287
|
+
let editor = null;
|
|
288
|
+
const editorRef = ref();
|
|
289
|
+
const textareaRef = ref();
|
|
290
|
+
const containerRef = ref();
|
|
291
|
+
const toolbarRef = ref();
|
|
292
|
+
const moreButtonRef = ref();
|
|
293
|
+
const moreRef = ref();
|
|
294
|
+
const toolbarButtonRef = ref();
|
|
295
|
+
const menuRef = ref();
|
|
296
|
+
// isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
|
|
297
|
+
const isActive = ref({
|
|
298
|
+
bold: false,
|
|
299
|
+
italic: false,
|
|
300
|
+
underline: false,
|
|
301
|
+
strike: false,
|
|
302
|
+
bulletList: false,
|
|
303
|
+
orderedList: false,
|
|
304
|
+
link: false,
|
|
305
|
+
highlight: false,
|
|
306
|
+
redo: false,
|
|
307
|
+
undo: false,
|
|
308
|
+
codeBlock: false,
|
|
309
|
+
blockquote: false,
|
|
310
|
+
file: false,
|
|
311
|
+
source: false
|
|
312
|
+
});
|
|
313
|
+
const isFocused = ref(props.autofocus);
|
|
314
|
+
const headingLevels = [1, 2, 3, 4];
|
|
315
|
+
const activeHeadingLevel = ref(0);
|
|
316
|
+
const markdownOutput = ref('');
|
|
317
|
+
const isOpenLinkModal = ref(false);
|
|
318
|
+
const disableMarkdown = ref(false);
|
|
319
|
+
const text = ref('');
|
|
320
|
+
const link = ref('');
|
|
321
|
+
const countOfNotVisibleTools = ref(0);
|
|
322
|
+
const sourceValue = ref('');
|
|
323
|
+
let trap = useFocusTrap(editorRef, {
|
|
324
|
+
immediate: true,
|
|
325
|
+
fallbackFocus: '.container',
|
|
326
|
+
allowOutsideClick: true
|
|
327
|
+
});
|
|
328
|
+
const iconsEnum = ref({
|
|
329
|
+
bold: 'format_bold',
|
|
330
|
+
italic: 'format_italic',
|
|
331
|
+
underline: 'format_underlined',
|
|
332
|
+
strike: 'format_strikethrough',
|
|
333
|
+
bulletList: 'format_list_bulleted',
|
|
334
|
+
orderedList: 'format_list_numbered',
|
|
335
|
+
link: 'link',
|
|
336
|
+
highlight: 'highlight',
|
|
337
|
+
redo: 'redo',
|
|
338
|
+
undo: 'undo',
|
|
339
|
+
codeBlock: 'code_blocks',
|
|
340
|
+
blockquote: 'format_quote',
|
|
341
|
+
file: 'attach_file',
|
|
342
|
+
source: 'source_notes'
|
|
343
|
+
});
|
|
344
|
+
const iconTooltipsEnum = ref({
|
|
345
|
+
bold: 'Bold',
|
|
346
|
+
italic: 'Italic',
|
|
347
|
+
underline: 'Underline',
|
|
348
|
+
strike: 'Strike',
|
|
349
|
+
bulletList: 'Bulleted List',
|
|
350
|
+
orderedList: 'Numbered List',
|
|
351
|
+
link: 'Link',
|
|
352
|
+
highlight: 'Highlight',
|
|
353
|
+
redo: 'Redo',
|
|
354
|
+
undo: 'Undo',
|
|
355
|
+
codeBlock: 'Code Block',
|
|
356
|
+
blockquote: 'Quote',
|
|
357
|
+
file: 'File',
|
|
358
|
+
source: 'Source'
|
|
359
|
+
});
|
|
360
|
+
useResizeObserver(root, entries => {
|
|
361
|
+
var _a, _b;
|
|
362
|
+
const entry = entries[0];
|
|
363
|
+
const {
|
|
364
|
+
width
|
|
365
|
+
} = entry.contentRect;
|
|
366
|
+
if (containerRef.value && toolbarRef.value && toolbarLength.value) {
|
|
367
|
+
let lengthOfItem = 0;
|
|
368
|
+
lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
|
|
369
|
+
const count = width / lengthOfItem - 2;
|
|
370
|
+
countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
|
|
371
|
+
}
|
|
372
|
+
});
|
|
373
|
+
onMounted(() => {
|
|
374
|
+
editor = new Editor({
|
|
375
|
+
onUpdate: _ref => {
|
|
376
|
+
let {
|
|
377
|
+
editor
|
|
378
|
+
} = _ref;
|
|
379
|
+
isFocused.value = true;
|
|
380
|
+
setActiveFormats();
|
|
381
|
+
const html = editor.getHTML();
|
|
382
|
+
const text = editor.getText();
|
|
383
|
+
if (props.format === 'markdown') {
|
|
384
|
+
markdownOutput.value = serialize(editor.schema, editor.getJSON());
|
|
385
|
+
proxyModelValue.value = markdownOutput.value;
|
|
386
|
+
} else {
|
|
387
|
+
proxyModelValue.value = text === '' ? text : html;
|
|
388
|
+
}
|
|
389
|
+
},
|
|
390
|
+
onCreate: _ref2 => {
|
|
391
|
+
let {
|
|
392
|
+
editor
|
|
393
|
+
} = _ref2;
|
|
394
|
+
if (props.format === 'markdown') {
|
|
395
|
+
const deserialized = deserialize(editor.schema, proxyModelValue.value);
|
|
396
|
+
editor.commands.setContent(deserialized);
|
|
397
|
+
} else {
|
|
398
|
+
editor.commands.setContent(proxyModelValue.value);
|
|
399
|
+
}
|
|
400
|
+
},
|
|
401
|
+
element: editorRef.value,
|
|
402
|
+
autofocus: props.autofocus,
|
|
403
|
+
enableInputRules: true,
|
|
404
|
+
enablePasteRules: true,
|
|
405
|
+
extensions: [codemirrorNode, StarterKit.configure({
|
|
406
|
+
heading: false,
|
|
407
|
+
codeBlock: false,
|
|
408
|
+
paragraph: false,
|
|
409
|
+
bulletList: false,
|
|
410
|
+
orderedList: false,
|
|
411
|
+
blockquote: false
|
|
412
|
+
}), Paragraph.configure({
|
|
413
|
+
HTMLAttributes: {
|
|
414
|
+
class: 'my-xs'
|
|
415
|
+
}
|
|
416
|
+
}), BulletList.configure({
|
|
417
|
+
HTMLAttributes: {
|
|
418
|
+
class: 'mx-lg my-xs list-disc'
|
|
419
|
+
}
|
|
420
|
+
}), OrderedList.configure({
|
|
421
|
+
HTMLAttributes: {
|
|
422
|
+
class: 'mx-lg my-xs list-decimal'
|
|
423
|
+
}
|
|
424
|
+
}), Blockquote.configure({
|
|
425
|
+
HTMLAttributes: {
|
|
426
|
+
class: 'my-sm mx-lg px-lg border-l-2 border-outline'
|
|
427
|
+
}
|
|
428
|
+
}), Heading.configure({
|
|
429
|
+
levels: headingLevels
|
|
430
|
+
}).extend({
|
|
431
|
+
levels: headingLevels,
|
|
432
|
+
renderHTML(_ref3) {
|
|
433
|
+
let {
|
|
434
|
+
node,
|
|
435
|
+
HTMLAttributes
|
|
436
|
+
} = _ref3;
|
|
437
|
+
return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
|
|
438
|
+
class: `typography-headline-${node.attrs.level} my-xs`
|
|
439
|
+
}), 0];
|
|
440
|
+
}
|
|
441
|
+
}), Underline, Link.configure({
|
|
442
|
+
openOnClick: true,
|
|
443
|
+
linkOnPaste: true,
|
|
444
|
+
autolink: false,
|
|
445
|
+
protocols: ['ftp', 'mailto', 'http', 'https'],
|
|
446
|
+
validate: href => /^https?:\/\//.test(href),
|
|
447
|
+
HTMLAttributes: {
|
|
448
|
+
class: 'text-primary cursor-pointer'
|
|
449
|
+
}
|
|
450
|
+
}), Highlight, Placeholder.configure({
|
|
451
|
+
placeholder: props.placeholder,
|
|
452
|
+
emptyEditorClass: 'is-editor-empty text-outline'
|
|
453
|
+
})],
|
|
454
|
+
editorProps: {
|
|
455
|
+
attributes: {
|
|
456
|
+
class: 'flex flex-col focus:outline-none gap-xs'
|
|
457
|
+
}
|
|
458
|
+
},
|
|
459
|
+
parseOptions: {
|
|
460
|
+
preserveWhitespace: true
|
|
461
|
+
}
|
|
462
|
+
});
|
|
463
|
+
setActiveFormats();
|
|
464
|
+
trap.activate();
|
|
465
|
+
});
|
|
466
|
+
onBeforeUnmount(() => {
|
|
467
|
+
editor === null || editor === void 0 ? void 0 : editor.destroy();
|
|
468
|
+
});
|
|
469
|
+
onClickOutside(root, () => {
|
|
470
|
+
isFocused.value = false;
|
|
471
|
+
trap.deactivate();
|
|
472
|
+
});
|
|
473
|
+
// Computed
|
|
474
|
+
const proxyModelValue = computed({
|
|
475
|
+
get: () => {
|
|
476
|
+
return props.modelValue;
|
|
477
|
+
},
|
|
478
|
+
set: value => {
|
|
479
|
+
context.emit('input', value);
|
|
480
|
+
context.emit('update:modelValue', value);
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
const getIndexOfHeading = computed(() => {
|
|
484
|
+
return props.toolbar.flat().indexOf('heading');
|
|
485
|
+
});
|
|
486
|
+
const headingIcon = computed(() => {
|
|
487
|
+
if (activeHeadingLevel.value && isActive.value.heading) {
|
|
488
|
+
return `format_h${activeHeadingLevel.value}`;
|
|
489
|
+
}
|
|
490
|
+
return 'format_paragraph';
|
|
491
|
+
});
|
|
492
|
+
const toolbarLength = computed(() => {
|
|
493
|
+
return props.toolbar.flat().length;
|
|
494
|
+
});
|
|
495
|
+
const notVisibleTools = computed(() => {
|
|
496
|
+
const count = countOfNotVisibleTools.value;
|
|
497
|
+
const toolbar = props.toolbar.flat();
|
|
498
|
+
let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
|
|
499
|
+
props.toolbar.forEach(tools => {
|
|
500
|
+
if (tools.some(item => notVisible.has(item))) {
|
|
501
|
+
tools.forEach(item => notVisible.add(item));
|
|
502
|
+
}
|
|
503
|
+
});
|
|
504
|
+
return notVisible;
|
|
505
|
+
});
|
|
506
|
+
//Methods
|
|
507
|
+
const handleEditorClick = () => {
|
|
508
|
+
var _a;
|
|
509
|
+
setActiveFormats();
|
|
510
|
+
isFocused.value = true;
|
|
511
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
512
|
+
activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
|
|
513
|
+
};
|
|
514
|
+
const isVisible = value => {
|
|
515
|
+
if (Array.isArray(value)) {
|
|
516
|
+
const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
|
|
517
|
+
return isHaveNotVisibleTools;
|
|
518
|
+
}
|
|
519
|
+
return !notVisibleTools.value.has(value);
|
|
520
|
+
};
|
|
521
|
+
const handleInput = event => {
|
|
522
|
+
const target = event.target;
|
|
523
|
+
const value = target.value;
|
|
524
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
|
|
525
|
+
markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
526
|
+
proxyModelValue.value = markdownOutput.value;
|
|
527
|
+
};
|
|
528
|
+
const handleToolbarClick = (item, level) => {
|
|
529
|
+
var _a, _b;
|
|
530
|
+
switch (item) {
|
|
531
|
+
case 'source':
|
|
532
|
+
disableMarkdown.value = !disableMarkdown.value;
|
|
533
|
+
sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
|
|
534
|
+
nextTick(() => {
|
|
535
|
+
var _a;
|
|
536
|
+
return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
537
|
+
});
|
|
538
|
+
break;
|
|
539
|
+
case 'bulletList':
|
|
540
|
+
case 'orderedList':
|
|
541
|
+
item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
|
|
542
|
+
break;
|
|
543
|
+
case 'link':
|
|
544
|
+
if (editor) {
|
|
545
|
+
const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
|
|
546
|
+
const {
|
|
547
|
+
from,
|
|
548
|
+
to,
|
|
549
|
+
empty
|
|
550
|
+
} = editor.state.selection;
|
|
551
|
+
const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
|
|
552
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? ((_b = editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.text) || '' : '';
|
|
553
|
+
text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
|
|
554
|
+
link.value = editor.getAttributes('link').href || '';
|
|
555
|
+
}
|
|
556
|
+
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
557
|
+
break;
|
|
558
|
+
case 'blockquote':
|
|
559
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
|
|
560
|
+
break;
|
|
561
|
+
case 'codeBlock':
|
|
562
|
+
if (!isActive.value['codeBlock']) {
|
|
563
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
|
|
564
|
+
language: 'javascript'
|
|
565
|
+
});
|
|
566
|
+
} else {
|
|
567
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
|
|
568
|
+
}
|
|
569
|
+
break;
|
|
570
|
+
case 'heading':
|
|
571
|
+
if (!level) {
|
|
572
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setParagraph();
|
|
573
|
+
activeHeadingLevel.value = 0;
|
|
574
|
+
} else {
|
|
575
|
+
activeHeadingLevel.value = level;
|
|
576
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
|
|
577
|
+
level: level
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.focus();
|
|
581
|
+
break;
|
|
582
|
+
case 'undo':
|
|
583
|
+
case 'redo':
|
|
584
|
+
item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
|
|
585
|
+
break;
|
|
586
|
+
case 'file':
|
|
587
|
+
context.emit('file-upload');
|
|
588
|
+
break;
|
|
589
|
+
default:
|
|
590
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
|
|
591
|
+
break;
|
|
592
|
+
}
|
|
593
|
+
};
|
|
594
|
+
const attachLink = async () => {
|
|
595
|
+
var _a, _b;
|
|
596
|
+
// empty
|
|
597
|
+
if (link.value === '') {
|
|
598
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
599
|
+
}
|
|
600
|
+
const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
|
|
601
|
+
const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
|
|
602
|
+
const isLink = (_a = editor === null || editor === void 0 ? void 0 : editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
|
|
603
|
+
const existedText = (isLink === null || isLink === void 0 ? void 0 : isLink.length) ? (_b = editor === null || editor === void 0 ? void 0 : editor.view.state.doc.nodeAt(cursorPosition)) === null || _b === void 0 ? void 0 : _b.text : '';
|
|
604
|
+
if (link.value && isEmptySelection && !existedText) {
|
|
605
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
|
|
606
|
+
href: link.value,
|
|
607
|
+
target: '__blank'
|
|
608
|
+
}).command(_ref4 => {
|
|
609
|
+
let {
|
|
610
|
+
tr
|
|
611
|
+
} = _ref4;
|
|
612
|
+
const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
|
|
613
|
+
tr.insertText(preparedValue);
|
|
614
|
+
return true;
|
|
615
|
+
}).run();
|
|
616
|
+
}
|
|
617
|
+
if (link.value && existedText === text.value && isEmptySelection) {
|
|
618
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
|
|
619
|
+
href: link.value
|
|
620
|
+
}).run();
|
|
621
|
+
}
|
|
622
|
+
if (link.value && !isEmptySelection) {
|
|
623
|
+
editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
|
|
624
|
+
href: link.value,
|
|
625
|
+
target: '__blank'
|
|
626
|
+
}).run();
|
|
627
|
+
}
|
|
628
|
+
text.value = '';
|
|
629
|
+
link.value = '';
|
|
630
|
+
isOpenLinkModal.value = false;
|
|
631
|
+
};
|
|
632
|
+
const discardLink = () => {
|
|
633
|
+
isOpenLinkModal.value = false;
|
|
634
|
+
};
|
|
635
|
+
const setActiveFormats = () => {
|
|
636
|
+
const toolbarList = props.toolbar.flat();
|
|
637
|
+
toolbarList.forEach(item => {
|
|
638
|
+
if (item === 'source') {
|
|
639
|
+
isActive.value[item] = disableMarkdown.value;
|
|
640
|
+
} else {
|
|
641
|
+
isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
|
|
642
|
+
}
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
// Styles
|
|
646
|
+
const rootStyles = computed(() => {
|
|
647
|
+
return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
|
|
648
|
+
});
|
|
649
|
+
const containerStyles = computed(() => {
|
|
650
|
+
return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
|
|
651
|
+
});
|
|
652
|
+
const toolbarContainerStyles = computed(() => {
|
|
653
|
+
return [...ToolbarContainer];
|
|
654
|
+
});
|
|
655
|
+
const toolbarStyles = computed(() => {
|
|
656
|
+
return [...Toolbar,
|
|
657
|
+
// 'overflow-x-hidden',
|
|
658
|
+
...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
|
|
659
|
+
});
|
|
660
|
+
const editorInputStyles = computed(() => {
|
|
661
|
+
return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
|
|
662
|
+
});
|
|
663
|
+
//Effects
|
|
664
|
+
watch(proxyModelValue, value => {
|
|
665
|
+
if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
|
|
666
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
|
|
667
|
+
}
|
|
668
|
+
if (props.format === 'markdown' && value !== markdownOutput.value) {
|
|
669
|
+
//TODO: const deserialized = deserialize(editor?.schema, value);
|
|
670
|
+
editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
|
|
671
|
+
}
|
|
672
|
+
});
|
|
673
|
+
return {
|
|
674
|
+
editor,
|
|
675
|
+
editorRef,
|
|
676
|
+
toolbarRef,
|
|
677
|
+
containerRef,
|
|
678
|
+
toolbarButtonRef,
|
|
679
|
+
moreButtonRef,
|
|
680
|
+
textareaRef,
|
|
681
|
+
moreRef,
|
|
682
|
+
menuRef,
|
|
683
|
+
iconsEnum,
|
|
684
|
+
handleToolbarClick,
|
|
685
|
+
handleEditorClick,
|
|
686
|
+
isActive,
|
|
687
|
+
iconTooltipsEnum,
|
|
688
|
+
containerStyles,
|
|
689
|
+
toolbarContainerStyles,
|
|
690
|
+
toolbarStyles,
|
|
691
|
+
rootStyles,
|
|
692
|
+
root,
|
|
693
|
+
editorInputStyles,
|
|
694
|
+
getIndexOfHeading,
|
|
695
|
+
headingLevels,
|
|
696
|
+
headingIcon,
|
|
697
|
+
attachLink,
|
|
698
|
+
discardLink,
|
|
699
|
+
isOpenLinkModal,
|
|
700
|
+
text,
|
|
701
|
+
link,
|
|
702
|
+
isFocused,
|
|
703
|
+
isVisible,
|
|
704
|
+
countOfNotVisibleTools,
|
|
705
|
+
notVisibleTools,
|
|
706
|
+
handleInput,
|
|
707
|
+
proxyModelValue,
|
|
708
|
+
disableMarkdown,
|
|
709
|
+
sourceValue
|
|
710
|
+
};
|
|
711
|
+
}
|
|
712
|
+
});
|
|
713
|
+
|
|
714
|
+
const _hoisted_1 = ["activated"];
|
|
715
|
+
const _hoisted_2 = {
|
|
716
|
+
class: "flex p-sm gap-md bg-on-primary"
|
|
717
|
+
};
|
|
718
|
+
const _hoisted_3 = /*#__PURE__*/createElementVNode("p", {
|
|
719
|
+
class: "text-headline-2"
|
|
720
|
+
}, " Add Link ", -1 /* HOISTED */);
|
|
721
|
+
const _hoisted_4 = {
|
|
722
|
+
class: "flex ml-auto gap-md"
|
|
723
|
+
};
|
|
724
|
+
const _hoisted_5 = /*#__PURE__*/createElementVNode("p", null, "Cancel", -1 /* HOISTED */);
|
|
725
|
+
const _hoisted_6 = /*#__PURE__*/createElementVNode("p", null, "Save", -1 /* HOISTED */);
|
|
726
|
+
|
|
727
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
728
|
+
const _component_or_label = resolveComponent("or-label");
|
|
729
|
+
const _component_or_icon_button = resolveComponent("or-icon-button");
|
|
730
|
+
const _component_or_popover = resolveComponent("or-popover");
|
|
731
|
+
const _component_or_menu_item = resolveComponent("or-menu-item");
|
|
732
|
+
const _component_or_menu = resolveComponent("or-menu");
|
|
733
|
+
const _component_or_input = resolveComponent("or-input");
|
|
734
|
+
const _component_or_button = resolveComponent("or-button");
|
|
735
|
+
const _component_or_modal = resolveComponent("or-modal");
|
|
736
|
+
return openBlock(), createElementBlock("div", {
|
|
737
|
+
ref: "root",
|
|
738
|
+
class: normalizeClass(_ctx.rootStyles)
|
|
739
|
+
}, [createVNode(_component_or_label, null, {
|
|
740
|
+
default: withCtx(() => [createTextVNode(toDisplayString(_ctx.description), 1 /* TEXT */)]),
|
|
741
|
+
|
|
742
|
+
_: 1 /* STABLE */
|
|
743
|
+
}), createElementVNode("div", {
|
|
744
|
+
ref: "containerRef",
|
|
745
|
+
class: normalizeClass(_ctx.containerStyles),
|
|
746
|
+
onClick: _cache[4] || (_cache[4] = $event => _ctx.handleEditorClick())
|
|
747
|
+
}, [createElementVNode("div", {
|
|
748
|
+
ref: "toolbarRef",
|
|
749
|
+
class: normalizeClass(_ctx.toolbarContainerStyles)
|
|
750
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.toolbar, (tools, index) => {
|
|
751
|
+
return openBlock(), createElementBlock("div", {
|
|
752
|
+
key: index,
|
|
753
|
+
class: normalizeClass([..._ctx.toolbarStyles, {
|
|
754
|
+
'hidden': _ctx.isVisible(tools)
|
|
755
|
+
}])
|
|
756
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(tools, item => {
|
|
757
|
+
return openBlock(), createElementBlock("div", {
|
|
758
|
+
key: item,
|
|
759
|
+
class: normalizeClass(['flex gap-md', {
|
|
760
|
+
'hidden': !_ctx.isVisible(item)
|
|
761
|
+
}])
|
|
762
|
+
}, [item === 'heading' ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
763
|
+
key: 0,
|
|
764
|
+
ref_for: true,
|
|
765
|
+
ref: "toolbarButtonRef",
|
|
766
|
+
selected: _ctx.isActive[item],
|
|
767
|
+
disabled: !_ctx.isFocused,
|
|
768
|
+
tooltip: {
|
|
769
|
+
text: item,
|
|
770
|
+
placement: 'top'
|
|
771
|
+
},
|
|
772
|
+
icon: {
|
|
773
|
+
icon: _ctx.headingIcon,
|
|
774
|
+
variant: 'inherit',
|
|
775
|
+
size: 'm'
|
|
776
|
+
},
|
|
777
|
+
onClick: _cache[0] || (_cache[0] = $event => _ctx.menuRef.open())
|
|
778
|
+
}, null, 8 /* PROPS */, ["selected", "disabled", "tooltip", "icon"])) : _ctx.isVisible(item) ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
779
|
+
key: 1,
|
|
780
|
+
tooltip: {
|
|
781
|
+
text: _ctx.iconTooltipsEnum[item],
|
|
782
|
+
placement: 'top'
|
|
783
|
+
},
|
|
784
|
+
selected: _ctx.isActive[item],
|
|
785
|
+
disabled: !_ctx.isFocused,
|
|
786
|
+
icon: {
|
|
787
|
+
icon: _ctx.iconsEnum[item],
|
|
788
|
+
variant: 'inherit',
|
|
789
|
+
size: 'm'
|
|
790
|
+
},
|
|
791
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
792
|
+
}, null, 8 /* PROPS */, ["tooltip", "selected", "disabled", "icon", "onClick"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
|
|
793
|
+
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
|
|
794
|
+
}), 128 /* KEYED_FRAGMENT */)), _ctx.countOfNotVisibleTools > 0 ? (openBlock(), createBlock(_component_or_icon_button, {
|
|
795
|
+
key: 0,
|
|
796
|
+
ref: "moreButtonRef",
|
|
797
|
+
disabled: !_ctx.isFocused,
|
|
798
|
+
icon: {
|
|
799
|
+
icon: 'more_horiz',
|
|
800
|
+
variant: 'inherit',
|
|
801
|
+
size: 'm'
|
|
802
|
+
},
|
|
803
|
+
class: "px-sm",
|
|
804
|
+
onClick: _cache[1] || (_cache[1] = $event => _ctx.moreRef.open())
|
|
805
|
+
}, null, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
|
|
806
|
+
class: normalizeClass(['p-sm', {
|
|
807
|
+
'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _ctx.fullHeight
|
|
808
|
+
}])
|
|
809
|
+
}, [withDirectives(createElementVNode("textarea", {
|
|
810
|
+
ref: "textareaRef",
|
|
811
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.sourceValue = $event),
|
|
812
|
+
"auto-focus": "",
|
|
813
|
+
activated: _ctx.disableMarkdown,
|
|
814
|
+
class: "w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
|
|
815
|
+
onInput: _cache[3] || (_cache[3] = function () {
|
|
816
|
+
return _ctx.handleInput && _ctx.handleInput(...arguments);
|
|
817
|
+
})
|
|
818
|
+
}, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1), [[vShow, _ctx.disableMarkdown], [vModelText, _ctx.sourceValue]]), withDirectives(createElementVNode("div", {
|
|
819
|
+
ref: "editorRef",
|
|
820
|
+
class: normalizeClass(_ctx.editorInputStyles)
|
|
821
|
+
}, null, 2 /* CLASS */), [[vShow, !_ctx.disableMarkdown]]), renderSlot(_ctx.$slots, "files")], 2 /* CLASS */)], 2 /* CLASS */), _ctx.moreButtonRef ? (openBlock(), createBlock(_component_or_popover, {
|
|
822
|
+
key: 0,
|
|
823
|
+
ref: "moreRef",
|
|
824
|
+
trigger: _ctx.moreButtonRef.root,
|
|
825
|
+
placement: "top-end"
|
|
826
|
+
}, {
|
|
827
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.notVisibleTools, item => {
|
|
828
|
+
return openBlock(), createBlock(_component_or_icon_button, {
|
|
829
|
+
key: item,
|
|
830
|
+
tooltip: {
|
|
831
|
+
text: _ctx.iconTooltipsEnum[item],
|
|
832
|
+
placement: 'top'
|
|
833
|
+
},
|
|
834
|
+
selected: _ctx.isActive[item],
|
|
835
|
+
icon: {
|
|
836
|
+
icon: _ctx.iconsEnum[item],
|
|
837
|
+
variant: 'inherit',
|
|
838
|
+
size: 'm'
|
|
839
|
+
},
|
|
840
|
+
onClick: $event => _ctx.handleToolbarClick(item)
|
|
841
|
+
}, null, 8 /* PROPS */, ["tooltip", "selected", "icon", "onClick"]);
|
|
842
|
+
}), 128 /* KEYED_FRAGMENT */))])]),
|
|
843
|
+
|
|
844
|
+
_: 1 /* STABLE */
|
|
845
|
+
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), _ctx.toolbarButtonRef ? (openBlock(), createBlock(_component_or_menu, {
|
|
846
|
+
key: 1,
|
|
847
|
+
ref: "menuRef",
|
|
848
|
+
trigger: _ctx.toolbarButtonRef[_ctx.getIndexOfHeading].root,
|
|
849
|
+
placement: "bottom-start",
|
|
850
|
+
class: "bg-on-primary"
|
|
851
|
+
}, {
|
|
852
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headingLevels, heading => {
|
|
853
|
+
return openBlock(), createBlock(_component_or_menu_item, {
|
|
854
|
+
key: heading,
|
|
855
|
+
onClick: $event => _ctx.handleToolbarClick('heading', heading)
|
|
856
|
+
}, {
|
|
857
|
+
default: withCtx(() => [createTextVNode(" Heading " + toDisplayString(heading), 1 /* TEXT */)]),
|
|
858
|
+
|
|
859
|
+
_: 2 /* DYNAMIC */
|
|
860
|
+
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
|
|
861
|
+
}), 128 /* KEYED_FRAGMENT */)), createVNode(_component_or_menu_item, {
|
|
862
|
+
onClick: _cache[5] || (_cache[5] = $event => _ctx.handleToolbarClick('heading'))
|
|
863
|
+
}, {
|
|
864
|
+
default: withCtx(() => [createTextVNode(" None ")]),
|
|
865
|
+
_: 1 /* STABLE */
|
|
866
|
+
})]),
|
|
867
|
+
|
|
868
|
+
_: 1 /* STABLE */
|
|
869
|
+
}, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), createVNode(_component_or_modal, {
|
|
870
|
+
"is-open": _ctx.isOpenLinkModal,
|
|
871
|
+
size: "s"
|
|
872
|
+
}, {
|
|
873
|
+
header: withCtx(() => [_hoisted_3]),
|
|
874
|
+
footer: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(_component_or_button, {
|
|
875
|
+
variant: "outlined",
|
|
876
|
+
onClick: _ctx.discardLink
|
|
877
|
+
}, {
|
|
878
|
+
default: withCtx(() => [_hoisted_5]),
|
|
879
|
+
_: 1 /* STABLE */
|
|
880
|
+
}, 8 /* PROPS */, ["onClick"]), createVNode(_component_or_button, {
|
|
881
|
+
onClick: _ctx.attachLink
|
|
882
|
+
}, {
|
|
883
|
+
default: withCtx(() => [_hoisted_6]),
|
|
884
|
+
_: 1 /* STABLE */
|
|
885
|
+
}, 8 /* PROPS */, ["onClick"])])]),
|
|
886
|
+
default: withCtx(() => [createElementVNode("div", null, [createVNode(_component_or_label, null, {
|
|
887
|
+
default: withCtx(() => [createTextVNode(" Text ")]),
|
|
888
|
+
_: 1 /* STABLE */
|
|
889
|
+
}), createVNode(_component_or_input, {
|
|
890
|
+
modelValue: _ctx.text,
|
|
891
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.text = $event),
|
|
892
|
+
placeholder: "Placeholder",
|
|
893
|
+
class: "pb-md"
|
|
894
|
+
}, null, 8 /* PROPS */, ["modelValue"]), createVNode(_component_or_label, null, {
|
|
895
|
+
default: withCtx(() => [createTextVNode(" Link ")]),
|
|
896
|
+
_: 1 /* STABLE */
|
|
897
|
+
}), createVNode(_component_or_input, {
|
|
898
|
+
modelValue: _ctx.link,
|
|
899
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.link = $event),
|
|
900
|
+
placeholder: "Placeholder"
|
|
901
|
+
}, null, 8 /* PROPS */, ["modelValue"])])]),
|
|
902
|
+
_: 1 /* STABLE */
|
|
903
|
+
}, 8 /* PROPS */, ["is-open"])], 2 /* CLASS */);
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
var css_248z = ".tiptap-editor-v3 .is-editor-empty::before {\n float: left;\n height: 0;\n pointer-events: none;\n content: attr(data-placeholder);\n}";
|
|
907
|
+
styleInject(css_248z);
|
|
908
|
+
|
|
909
|
+
script.render = render;
|
|
910
|
+
script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
|
|
911
|
+
|
|
912
|
+
export { Formats as F, script as s };
|