@onereach/ui-components 4.4.0-beta.2691.0 → 4.4.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/v2/components/OrCode/OrCode.js +3792 -6
- package/dist/bundled/v2/components/OrCode/index.js +2 -6
- package/dist/bundled/v2/components/OrCode/lang.js +3 -3941
- package/dist/bundled/v2/components/OrCode/theme.js +1 -2
- package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -4
- package/dist/bundled/v2/components/OrConfirm/index.js +1 -2
- package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
- package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -1
- package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +3 -1
- package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
- package/dist/bundled/v2/components/OrModal/OrModal.js +1346 -3
- package/dist/bundled/v2/components/OrModal/index.js +0 -1
- package/dist/bundled/v2/components/OrSidebarV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrTagV3/OrTag.vue.d.ts +5 -5
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +163 -0
- package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +80 -0
- package/dist/bundled/v2/components/OrTagsV3/index.d.ts +1 -0
- package/dist/bundled/v2/components/OrTagsV3/index.js +37 -0
- package/dist/bundled/v2/components/OrTagsV3/styles.d.ts +4 -0
- package/dist/bundled/v2/components/OrTagsV3/styles.js +26 -0
- package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
- 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.vue.d.ts +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/OrToastV3/OrToast.vue.d.ts +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/index.d.ts +4 -1
- package/dist/bundled/v2/components/index.js +13 -17
- package/dist/bundled/v2/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
- package/dist/bundled/v2/index.js +16 -21
- package/dist/bundled/{v3/index-e9f6b2d8.js → v2/lang-0fb8f78b.js} +4009 -73
- package/dist/bundled/v3/OrCheckboxGroup.vue_vue_type_script_lang-1e71771d.js +60 -0
- package/dist/bundled/v3/{index-d92d0b48.js → OrCode.vue_vue_type_script_lang-74060519.js} +235 -14
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-dca252a7.js → OrConfirm.vue_vue_type_script_lang-23e4ce08.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4eaa8470.js → OrConfirm.vue_vue_type_script_lang-e5a8f92a.js} +2 -2
- package/dist/bundled/{v2/useFocusTrap-48767a70.js → v3/OrModal.vue_vue_type_script_lang-ae842e5b.js} +106 -3
- package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-dfffdd80.js +59 -0
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-264914d3.js → OrSelect.vue_vue_type_script_lang-2c4c9f9d.js} +2 -2
- package/dist/bundled/v3/OrTags.vue_vue_type_script_lang-e75444b5.js +70 -0
- package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +11 -26
- package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +8 -24
- package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +20 -33
- package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +16 -51
- package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +20 -57
- package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +15 -35
- package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +7 -15
- package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +21 -47
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +22 -70
- package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +4 -7
- package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +126 -676
- package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
- package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +15 -35
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +9 -60
- package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +6 -24
- package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
- package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +17 -43
- package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
- package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +23 -53
- package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +9 -25
- package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +24 -51
- package/dist/bundled/v3/components/OrCode/OrCode.js +6 -10
- package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +24 -69
- package/dist/bundled/v3/components/OrCode/index.js +4 -8
- package/dist/bundled/v3/components/OrCode/lang.js +3 -3941
- package/dist/bundled/v3/components/OrCode/theme.js +1 -2
- package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +17 -39
- package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +13 -31
- package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +8 -30
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +5 -6
- package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +23 -84
- package/dist/bundled/v3/components/OrConfirm/index.js +3 -4
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +29 -91
- package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +25 -81
- package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +68 -177
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +31 -105
- package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +11 -28
- package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +4 -8
- package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +4 -7
- package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +9 -18
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
- package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +14 -35
- package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
- package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +3 -1
- package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +8 -20
- package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +15 -46
- package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +10 -30
- package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +4 -8
- package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +9 -18
- package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +16 -44
- package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +13 -43
- package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +16 -52
- package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +7 -18
- package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +7 -16
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +39 -83
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +43 -95
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +39 -79
- package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +36 -87
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +7 -22
- package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +34 -85
- package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +9 -20
- package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +9 -24
- package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +7 -24
- package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +21 -47
- package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +11 -27
- package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +10 -26
- package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +13 -34
- package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +13 -34
- package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +16 -43
- package/dist/bundled/v3/components/OrModal/OrModal.js +2 -3
- package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +14 -38
- package/dist/bundled/v3/components/OrModal/index.js +1 -2
- package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +15 -31
- package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +9 -27
- package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +9 -20
- package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +24 -70
- package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +13 -31
- package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +6 -16
- package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +7 -14
- package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +27 -75
- package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +22 -63
- package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +27 -74
- package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +20 -56
- package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +25 -62
- package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +13 -35
- package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +9 -26
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +9 -60
- package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +6 -32
- package/dist/bundled/v3/components/OrRadioGroupV3/index.js +1 -1
- package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +21 -49
- package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +23 -65
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +17 -41
- package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +9 -25
- package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +28 -77
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +37 -115
- package/dist/bundled/v3/components/OrSelectV3/index.js +2 -2
- package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +14 -33
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
- package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +28 -63
- package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
- package/dist/bundled/v3/components/OrSidebarV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +9 -20
- package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +13 -28
- package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +9 -22
- package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +11 -26
- package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +10 -26
- package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +16 -40
- package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +35 -91
- package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +13 -25
- package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +16 -43
- package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +12 -33
- package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +22 -53
- package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +9 -22
- package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +13 -29
- package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +10 -17
- package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +4 -17
- package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +24 -69
- package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +10 -27
- package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +15 -26
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +101 -0
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +36 -0
- package/dist/bundled/v3/components/OrTagsV3/index.d.ts +1 -0
- package/dist/bundled/v3/components/OrTagsV3/index.js +46 -0
- package/dist/bundled/v3/components/OrTagsV3/styles.d.ts +4 -0
- package/dist/bundled/v3/components/OrTagsV3/styles.js +26 -0
- package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +4 -10
- package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +4 -10
- package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +11 -24
- package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +37 -85
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +32 -73
- package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +55 -137
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +25 -79
- package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +11 -31
- package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +25 -55
- package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +24 -54
- package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +16 -38
- package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +14 -33
- package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +4 -10
- package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +13 -37
- package/dist/bundled/v3/components/index.d.ts +4 -1
- package/dist/bundled/v3/components/index.js +24 -26
- package/dist/bundled/v3/directives/dropdown-close.d.ts +3 -1
- package/dist/bundled/v3/directives/dropdown-open.d.ts +3 -1
- package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/bundled/v3/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
- package/dist/bundled/v3/index.js +33 -33
- package/dist/bundled/{v2/index-e9f6b2d8.js → v3/lang-0fb8f78b.js} +4009 -73
- package/dist/esm/v2/OrCheckboxGroup-f470f938.js +121 -0
- package/dist/esm/v2/{OrCheckboxTree-df80d4ab.js → OrCheckboxTree-1304ae59.js} +6 -2
- package/dist/esm/v2/{OrConfirm-b62d9ce4.js → OrConfirm-d0d9d56c.js} +2 -2
- package/dist/esm/v2/{OrExpansionPanel-7c359bb0.js → OrExpansionPanel-d3a2218d.js} +3 -1
- package/dist/esm/v2/OrInlineTextEdit-601163c3.js +400 -0
- package/dist/esm/v2/OrRadioGroup-0de37d76.js +120 -0
- package/dist/esm/v2/{OrSelect-9d6b3363.js → OrSelect-a4c34099.js} +1 -1
- package/dist/esm/v2/{OrSidebar-b8387abe.js → OrSidebar-de938772.js} +1 -1
- package/dist/esm/v2/OrTags-4ffaa13b.js +159 -0
- package/dist/esm/v2/components/index.d.ts +4 -1
- package/dist/esm/v2/components/index.js +10 -29
- package/dist/esm/v2/components/or-checkbox-group-v3/index.js +6 -122
- package/dist/esm/v2/components/or-checkbox-tree-v3/index.js +1 -2
- package/dist/esm/v2/components/or-confirm/index.js +1 -1
- package/dist/esm/v2/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-text-edit/index.js +1 -1
- package/dist/esm/v2/components/or-radio-group-v3/index.js +6 -120
- package/dist/esm/v2/components/or-select-v3/index.js +2 -2
- package/dist/esm/v2/components/or-sidebar-v3/index.js +1 -1
- package/dist/esm/v2/components/or-tag-v3/OrTag.vue.d.ts +5 -5
- package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +80 -0
- package/dist/esm/v2/components/or-tags-v3/index.d.ts +1 -0
- package/dist/esm/v2/components/or-tags-v3/index.js +19 -0
- package/dist/esm/v2/components/or-tags-v3/styles.d.ts +4 -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/index.js +10 -30
- package/dist/esm/v3/OrCheckboxGroup-c41a99ba.js +88 -0
- package/dist/esm/v3/{OrCheckboxTree-4a85b9b3.js → OrCheckboxTree-fa6288af.js} +6 -2
- package/dist/esm/v3/{OrConfirm-1a94bdea.js → OrConfirm-410da5b4.js} +1 -1
- package/dist/esm/v3/{OrExpansionPanel-99ca7ed7.js → OrExpansionPanel-c016d8fa.js} +3 -1
- package/dist/esm/v3/OrInlineTextEdit-42d59fb9.js +356 -0
- package/dist/esm/v3/OrRadioGroup-5d1fe6fd.js +87 -0
- package/dist/esm/v3/{OrSelect-3dbddc6b.js → OrSelect-046e8e36.js} +1 -1
- package/dist/esm/v3/{OrSidebar-bfd19c4c.js → OrSidebar-3f2502fb.js} +1 -1
- package/dist/esm/v3/OrTags-a082de82.js +147 -0
- package/dist/esm/v3/components/index.d.ts +4 -1
- package/dist/esm/v3/components/index.js +10 -29
- package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +11 -26
- package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +8 -24
- package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +20 -33
- package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +16 -51
- package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +20 -57
- package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +15 -35
- package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +7 -15
- package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +21 -47
- package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -70
- package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +6 -14
- package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +4 -7
- package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +126 -676
- package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
- package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +15 -35
- package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +6 -24
- package/dist/esm/v3/components/or-checkbox-group-v3/index.js +6 -89
- package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +17 -43
- package/dist/esm/v3/components/or-checkbox-tree-v3/index.js +1 -2
- package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +23 -53
- package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +24 -51
- package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +9 -25
- package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +17 -37
- package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +24 -69
- package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +17 -39
- package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +13 -31
- package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +8 -30
- package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +23 -84
- package/dist/esm/v3/components/or-confirm/index.js +1 -1
- package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +29 -91
- package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +25 -81
- package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +68 -177
- package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +12 -33
- package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +31 -105
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +11 -28
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +17 -39
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +7 -15
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +23 -85
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +7 -11
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +4 -7
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +11 -28
- package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +15 -37
- package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +11 -28
- package/dist/esm/v3/components/or-error/OrError.vue.d.ts +4 -8
- package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +4 -7
- package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +9 -18
- package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +14 -35
- package/dist/esm/v3/components/or-expansion-panel-v3/index.js +1 -1
- package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +8 -20
- package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +15 -46
- package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +10 -30
- package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +4 -8
- package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +9 -18
- package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +16 -44
- package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +13 -43
- package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +8 -10
- package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +16 -52
- package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +7 -18
- package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +7 -16
- package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +39 -83
- package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +43 -95
- package/dist/esm/v3/components/or-inline-text-edit/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +39 -79
- package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +36 -87
- package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +7 -22
- package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +34 -85
- package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +9 -20
- package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +9 -24
- package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +7 -24
- package/dist/esm/v3/components/or-list/OrList.vue.d.ts +21 -47
- package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +11 -27
- package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +10 -26
- package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +13 -34
- package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +13 -34
- package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +16 -43
- package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +14 -38
- package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +15 -31
- package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +9 -27
- package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +9 -20
- package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +24 -70
- package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +13 -31
- package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +7 -23
- package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +6 -16
- package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +7 -14
- package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +27 -75
- package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +22 -63
- package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +27 -74
- package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +20 -56
- package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +25 -62
- package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +13 -35
- package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +9 -26
- package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +6 -32
- package/dist/esm/v3/components/or-radio-group-v3/index.js +6 -87
- package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +21 -49
- package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +23 -65
- package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +17 -41
- package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +9 -25
- package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +8 -20
- package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +28 -77
- package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +18 -49
- package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +4 -16
- package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +13 -67
- package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +16 -41
- package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +16 -35
- package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +24 -71
- package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +7 -19
- package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +11 -24
- package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +37 -115
- package/dist/esm/v3/components/or-select-v3/index.js +2 -2
- package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +14 -33
- package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +28 -63
- package/dist/esm/v3/components/or-sidebar-v3/index.js +1 -1
- package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +10 -23
- package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +9 -20
- package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +9 -22
- package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +10 -26
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +13 -28
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +11 -26
- package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +16 -40
- package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +35 -91
- package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +13 -25
- package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +16 -43
- package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +4 -20
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +4 -26
- package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +4 -26
- package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +6 -22
- package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +6 -12
- package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +12 -33
- package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +22 -53
- package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +9 -22
- package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +13 -29
- package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +10 -17
- package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +4 -17
- package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +24 -69
- package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +10 -27
- package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +15 -26
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +36 -0
- package/dist/esm/v3/components/or-tags-v3/index.d.ts +1 -0
- package/dist/esm/v3/components/or-tags-v3/index.js +18 -0
- package/dist/esm/v3/components/or-tags-v3/styles.d.ts +4 -0
- package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +4 -10
- package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +4 -10
- package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +11 -24
- package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +37 -85
- package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +32 -73
- package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +55 -137
- package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +25 -79
- package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +11 -31
- package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +25 -55
- package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +16 -38
- package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +24 -54
- package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +14 -33
- package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +4 -10
- package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +13 -37
- package/dist/esm/v3/directives/dropdown-close.d.ts +3 -1
- package/dist/esm/v3/directives/dropdown-open.d.ts +3 -1
- package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
- package/dist/esm/v3/index.js +10 -30
- package/package.json +5 -25
- package/src/components/index.ts +4 -1
- package/src/components/or-confirm/OrConfirm.vue +1 -1
- package/src/components/or-expansion-panel-v3/styles.ts +4 -1
- package/src/components/or-inline-text-edit/OrInlineTextEdit.vue +6 -6
- package/src/components/or-sidebar-v3/styles.ts +1 -1
- package/src/components/or-tag-v3/OrTag.vue +3 -2
- package/src/components/or-tags-v3/OrTags.docs.mdx +7 -0
- package/src/components/or-tags-v3/OrTags.stories3.ts +101 -0
- package/src/components/or-tags-v3/OrTags.vue +129 -0
- package/src/components/or-tags-v3/index.ts +1 -0
- package/src/components/or-tags-v3/styles.ts +41 -0
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -2178
- package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -70
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +0 -4
- package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +0 -7
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -46
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v2/index-1182caa8.js +0 -9633
- package/dist/bundled/v2/index-85c2efe8.js +0 -7122
- package/dist/bundled/v2/index-d92d0b48.js +0 -3805
- package/dist/bundled/v2/index.es-3f39f316.js +0 -115
- package/dist/bundled/v2/markdown-d43767b0.js +0 -17980
- package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-7e29b3d0.js +0 -237
- package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-2c009ee0.js +0 -108
- package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-8bc72542.js +0 -1869
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -283
- package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -86
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -4
- package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
- package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -46
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
- package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
- package/dist/bundled/v3/index-1182caa8.js +0 -9633
- package/dist/bundled/v3/index-85c2efe8.js +0 -7122
- package/dist/bundled/v3/index.es-3f39f316.js +0 -115
- package/dist/bundled/v3/markdown-d43767b0.js +0 -17980
- package/dist/bundled/v3/useFocusTrap-48767a70.js +0 -1348
- package/dist/esm/v2/OrInlineTextEdit-a129aaf1.js +0 -400
- package/dist/esm/v2/OrRichTextEditor-95d1070d.js +0 -901
- package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -59
- package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +0 -4
- package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v2/flattenDeep-fe0af413.js +0 -6
- package/dist/esm/v3/OrInlineTextEdit-4f4ecba4.js +0 -356
- package/dist/esm/v3/OrRichTextEditor-bdee1f41.js +0 -834
- package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
- package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -220
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -57
- package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +0 -4
- package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
- package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
- package/dist/esm/v3/flattenDeep-fe0af413.js +0 -6
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.docs.mdx +0 -7
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.stories3.ts +0 -142
- package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -749
- package/src/components/or-rich-text-editor-v3/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/props.ts +0 -4
- package/src/components/or-rich-text-editor-v3/styles.ts +0 -56
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
- package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
- package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
- package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -213
- package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
- package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -120
- package/dist/bundled/v2/{index-f6664cb1.js → index-968c331a.js} +0 -0
- package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-528dd4d5.js → OrCheckboxTree.vue_vue_type_script_lang-46436cf3.js} +1 -1
- /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-f1b6ff7d.js → OrExpansionPanel.vue_vue_type_script_lang-d4ed6199.js} +0 -0
- /package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-d7f700de.js → OrSidebar.vue_vue_type_script_lang-5723e223.js} +0 -0
- /package/dist/bundled/v3/{index-f6664cb1.js → index-968c331a.js} +0 -0
|
@@ -1,749 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div
|
|
3
|
-
ref="root"
|
|
4
|
-
:class="rootStyles"
|
|
5
|
-
>
|
|
6
|
-
<or-label>
|
|
7
|
-
{{ description }}
|
|
8
|
-
</or-label>
|
|
9
|
-
<div
|
|
10
|
-
ref="containerRef"
|
|
11
|
-
:class="containerStyles"
|
|
12
|
-
@click="handleEditorClick()"
|
|
13
|
-
>
|
|
14
|
-
<div
|
|
15
|
-
ref="toolbarRef"
|
|
16
|
-
:class="toolbarContainerStyles"
|
|
17
|
-
>
|
|
18
|
-
<div
|
|
19
|
-
v-for="(tools, index) in toolbar"
|
|
20
|
-
:key="index"
|
|
21
|
-
:class="[...toolbarStyles, { 'hidden': isVisible(tools)}]"
|
|
22
|
-
>
|
|
23
|
-
<div
|
|
24
|
-
v-for="item in tools"
|
|
25
|
-
:key="item"
|
|
26
|
-
:class="['flex gap-md', { 'hidden': !isVisible(item)}]"
|
|
27
|
-
>
|
|
28
|
-
<or-icon-button
|
|
29
|
-
v-if="item==='heading'"
|
|
30
|
-
ref="toolbarButtonRef"
|
|
31
|
-
:selected="isActive[item]"
|
|
32
|
-
:disabled="!isFocused"
|
|
33
|
-
:tooltip="{text: item, placement: 'top'}"
|
|
34
|
-
:icon="{icon: headingIcon, variant: 'inherit', size: 'm'}"
|
|
35
|
-
@click="menuRef.open()"
|
|
36
|
-
/>
|
|
37
|
-
<or-icon-button
|
|
38
|
-
v-else-if="isVisible(item)"
|
|
39
|
-
:tooltip="{text: iconTooltipsEnum[item], placement: 'top'}"
|
|
40
|
-
:selected="isActive[item]"
|
|
41
|
-
:disabled="!isFocused"
|
|
42
|
-
:icon="{icon: iconsEnum[item], variant: 'inherit', size: 'm'}"
|
|
43
|
-
@click="handleToolbarClick(item)"
|
|
44
|
-
/>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
<or-icon-button
|
|
48
|
-
v-if="countOfNotVisibleTools > 0"
|
|
49
|
-
ref="moreButtonRef"
|
|
50
|
-
:disabled="!isFocused"
|
|
51
|
-
:icon="{icon: 'more_horiz', variant: 'inherit', size: 'm'}"
|
|
52
|
-
class="px-sm"
|
|
53
|
-
@click="moreRef.open()"
|
|
54
|
-
/>
|
|
55
|
-
</div>
|
|
56
|
-
<div :class="['p-sm', { 'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': fullHeight }]">
|
|
57
|
-
<textarea
|
|
58
|
-
v-show="disableMarkdown"
|
|
59
|
-
ref="textareaRef"
|
|
60
|
-
v-model="sourceValue"
|
|
61
|
-
:activated="disableMarkdown"
|
|
62
|
-
class="w-full h-full resize-none border-none outline-none bg-transparent"
|
|
63
|
-
@input="handleInput"
|
|
64
|
-
/>
|
|
65
|
-
<div
|
|
66
|
-
v-show="!disableMarkdown"
|
|
67
|
-
ref="editorRef"
|
|
68
|
-
:class="editorInputStyles"
|
|
69
|
-
/>
|
|
70
|
-
<slot name="files" />
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
<or-menu
|
|
74
|
-
v-if="moreButtonRef"
|
|
75
|
-
ref="moreRef"
|
|
76
|
-
:trigger="moreButtonRef.root"
|
|
77
|
-
>
|
|
78
|
-
<or-menu-item
|
|
79
|
-
v-for="item in notVisibleTools"
|
|
80
|
-
:key="item"
|
|
81
|
-
@click="handleToolbarClick(item)"
|
|
82
|
-
>
|
|
83
|
-
<or-icon-button
|
|
84
|
-
:tooltip="{text: iconTooltipsEnum[item], placement: 'top'}"
|
|
85
|
-
:selected="isActive[item]"
|
|
86
|
-
:disabled="!isFocused"
|
|
87
|
-
:icon="{icon: iconsEnum[item], variant: 'inherit', size: 'm'}"
|
|
88
|
-
/>
|
|
89
|
-
</or-menu-item>
|
|
90
|
-
</or-menu>
|
|
91
|
-
<or-menu
|
|
92
|
-
v-if="toolbarButtonRef"
|
|
93
|
-
ref="menuRef"
|
|
94
|
-
:trigger="toolbarButtonRef[getIndexOfHeading].root"
|
|
95
|
-
placement="bottom-start"
|
|
96
|
-
>
|
|
97
|
-
<or-menu-item
|
|
98
|
-
v-for="heading in headingLevels"
|
|
99
|
-
:key="heading"
|
|
100
|
-
@click="handleToolbarClick('heading', heading)"
|
|
101
|
-
>
|
|
102
|
-
Heading {{ heading }}
|
|
103
|
-
</or-menu-item>
|
|
104
|
-
<or-menu-item
|
|
105
|
-
@click="handleToolbarClick('heading')"
|
|
106
|
-
>
|
|
107
|
-
None
|
|
108
|
-
</or-menu-item>
|
|
109
|
-
</or-menu>
|
|
110
|
-
<or-modal
|
|
111
|
-
:is-open="isOpenLinkModal"
|
|
112
|
-
size="s"
|
|
113
|
-
>
|
|
114
|
-
<template v-slot:header>
|
|
115
|
-
<p class="text-headline-2">
|
|
116
|
-
Add Link
|
|
117
|
-
</p>
|
|
118
|
-
</template>
|
|
119
|
-
<div>
|
|
120
|
-
<or-label>
|
|
121
|
-
Text
|
|
122
|
-
</or-label>
|
|
123
|
-
<or-input
|
|
124
|
-
v-model="text"
|
|
125
|
-
placeholder="Placeholder"
|
|
126
|
-
class="pb-md"
|
|
127
|
-
/>
|
|
128
|
-
<or-label>
|
|
129
|
-
Link
|
|
130
|
-
</or-label>
|
|
131
|
-
<or-input
|
|
132
|
-
v-model="link"
|
|
133
|
-
placeholder="Placeholder"
|
|
134
|
-
/>
|
|
135
|
-
</div>
|
|
136
|
-
<template v-slot:footer>
|
|
137
|
-
<div class="flex ml-auto gap-md">
|
|
138
|
-
<or-button
|
|
139
|
-
variant="outlined"
|
|
140
|
-
@click="discardLink"
|
|
141
|
-
>
|
|
142
|
-
<p>Cancel</p>
|
|
143
|
-
</or-button>
|
|
144
|
-
<or-button
|
|
145
|
-
@click="attachLink"
|
|
146
|
-
>
|
|
147
|
-
<p>Save</p>
|
|
148
|
-
</or-button>
|
|
149
|
-
</div>
|
|
150
|
-
</template>
|
|
151
|
-
</or-modal>
|
|
152
|
-
</div>
|
|
153
|
-
</template>
|
|
154
|
-
|
|
155
|
-
<script lang="ts">
|
|
156
|
-
import { defineComponent, ref, computed, onBeforeUnmount, onMounted, watch, ComponentPublicInstance, PropType } from 'vue-demi';
|
|
157
|
-
import { useFocusTrap, UseFocusTrapReturn } from '@vueuse/integrations/useFocusTrap';
|
|
158
|
-
import { onClickOutside, useResizeObserver } from '@vueuse/core';
|
|
159
|
-
import { serialize, deserialize } from './utils/markdown';
|
|
160
|
-
|
|
161
|
-
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3';
|
|
162
|
-
import { OrLabelV3 as OrLabel } from '../or-label-v3';
|
|
163
|
-
import { OrMenuV3 as OrMenu } from '../or-menu-v3';
|
|
164
|
-
import { OrMenuItemV3 as OrMenuItem } from '../or-menu-item-v3';
|
|
165
|
-
import { OrModalV3 as OrModal } from '../or-modal-v3';
|
|
166
|
-
import { OrInputV3 as OrInput } from '../or-input-v3';
|
|
167
|
-
import { OrButtonV3 as OrButton } from '../or-button-v3';
|
|
168
|
-
|
|
169
|
-
import {
|
|
170
|
-
EditorContainer,
|
|
171
|
-
ToolbarContainer,
|
|
172
|
-
Toolbar,
|
|
173
|
-
ToolbarButtonFocused,
|
|
174
|
-
ToolbarButton,
|
|
175
|
-
EditorInput,
|
|
176
|
-
} from './styles';
|
|
177
|
-
|
|
178
|
-
import { Formats } from './props';
|
|
179
|
-
|
|
180
|
-
import { Editor, mergeAttributes } from '@tiptap/core';
|
|
181
|
-
import StarterKit from '@tiptap/starter-kit';
|
|
182
|
-
import Underline from '@tiptap/extension-underline';
|
|
183
|
-
import Link from '@tiptap/extension-link';
|
|
184
|
-
import Highlight from '@tiptap/extension-highlight';
|
|
185
|
-
import Heading, { Level } from '@tiptap/extension-heading';
|
|
186
|
-
import Placeholder from '@tiptap/extension-placeholder';
|
|
187
|
-
|
|
188
|
-
import codemirrorNode from './utils/codemirror/codemirrorNode';
|
|
189
|
-
|
|
190
|
-
export default defineComponent({
|
|
191
|
-
name: 'OrRichTextEditor',
|
|
192
|
-
|
|
193
|
-
components: {
|
|
194
|
-
OrIconButton,
|
|
195
|
-
OrLabel,
|
|
196
|
-
OrMenuItem,
|
|
197
|
-
OrMenu,
|
|
198
|
-
OrModal,
|
|
199
|
-
OrInput,
|
|
200
|
-
OrButton,
|
|
201
|
-
},
|
|
202
|
-
|
|
203
|
-
inheritAttrs: false,
|
|
204
|
-
|
|
205
|
-
model: {
|
|
206
|
-
prop: 'modelValue',
|
|
207
|
-
event: 'update:modelValue',
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
props: {
|
|
211
|
-
modelValue: {
|
|
212
|
-
type: String,
|
|
213
|
-
default: undefined,
|
|
214
|
-
},
|
|
215
|
-
toolbar: {
|
|
216
|
-
type: Array <string[]>,
|
|
217
|
-
default: () => [],
|
|
218
|
-
},
|
|
219
|
-
description: {
|
|
220
|
-
type: String,
|
|
221
|
-
default: '',
|
|
222
|
-
},
|
|
223
|
-
placeholder: {
|
|
224
|
-
type: String,
|
|
225
|
-
default: '',
|
|
226
|
-
},
|
|
227
|
-
autofocus: {
|
|
228
|
-
type: Boolean,
|
|
229
|
-
default: false,
|
|
230
|
-
},
|
|
231
|
-
format: {
|
|
232
|
-
type: String as PropType<Formats>,
|
|
233
|
-
default: Formats.Markup,
|
|
234
|
-
},
|
|
235
|
-
fullHeight: {
|
|
236
|
-
type: Boolean,
|
|
237
|
-
default: false,
|
|
238
|
-
},
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
emits: [
|
|
242
|
-
'update:modelValue',
|
|
243
|
-
|
|
244
|
-
'input',
|
|
245
|
-
'file-upload',
|
|
246
|
-
],
|
|
247
|
-
|
|
248
|
-
expose: [
|
|
249
|
-
'root',
|
|
250
|
-
],
|
|
251
|
-
|
|
252
|
-
setup(props, context) {
|
|
253
|
-
// Refs
|
|
254
|
-
const root = ref<HTMLElement>();
|
|
255
|
-
let editor = null as Editor | null;
|
|
256
|
-
const editorRef = ref<HTMLDivElement>();
|
|
257
|
-
const textareaRef = ref<HTMLTextAreaElement>();
|
|
258
|
-
const containerRef = ref<ComponentPublicInstance<HTMLInputElement>>();
|
|
259
|
-
const toolbarRef = ref<ComponentPublicInstance<HTMLInputElement>>();
|
|
260
|
-
const moreButtonRef = ref<HTMLDivElement>();
|
|
261
|
-
const moreRef = ref<HTMLDivElement>();
|
|
262
|
-
const toolbarButtonRef = ref<InstanceType<typeof OrIconButton>>();
|
|
263
|
-
const menuRef = ref<InstanceType<typeof OrMenu>>();
|
|
264
|
-
const isActive = ref<{[key: string]: boolean;}>({});
|
|
265
|
-
const isFocused = ref<boolean>(props.autofocus);
|
|
266
|
-
const headingLevels = [1, 2, 3, 4] as Level[];
|
|
267
|
-
const activeHeadingLevel = ref<number>(0);
|
|
268
|
-
const markdownOutput = ref<string>('');
|
|
269
|
-
const isOpenLinkModal = ref<boolean>(false);
|
|
270
|
-
const disableMarkdown = ref<boolean>(false);
|
|
271
|
-
const text = ref<string>('');
|
|
272
|
-
const link = ref<string>('');
|
|
273
|
-
const countOfNotVisibleTools = ref<number>(0);
|
|
274
|
-
const sourceValue = ref<string>('');
|
|
275
|
-
|
|
276
|
-
let trap: UseFocusTrapReturn = useFocusTrap(editorRef, {
|
|
277
|
-
immediate: true,
|
|
278
|
-
fallbackFocus: '.container',
|
|
279
|
-
allowOutsideClick: true,
|
|
280
|
-
});
|
|
281
|
-
|
|
282
|
-
const iconsEnum = ref<{[key: string]: string;}>({
|
|
283
|
-
bold: 'format_bold',
|
|
284
|
-
italic: 'format_italic',
|
|
285
|
-
underline: 'format_underlined',
|
|
286
|
-
strike: 'format_strikethrough',
|
|
287
|
-
bulletList: 'format_list_bulleted',
|
|
288
|
-
orderedList: 'format_list_numbered',
|
|
289
|
-
link: 'link',
|
|
290
|
-
highlight: 'highlight',
|
|
291
|
-
redo: 'redo',
|
|
292
|
-
undo: 'undo',
|
|
293
|
-
codeBlock: 'code_blocks',
|
|
294
|
-
blockquote: 'format_quote',
|
|
295
|
-
file: 'attach_file',
|
|
296
|
-
source: 'source_notes',
|
|
297
|
-
});
|
|
298
|
-
const iconTooltipsEnum = ref<{[key: string]: string;}>({
|
|
299
|
-
bold: 'Bold',
|
|
300
|
-
italic: 'Italic',
|
|
301
|
-
underline: 'Underline',
|
|
302
|
-
strike: 'Strike',
|
|
303
|
-
bulletList: 'Bulleted List',
|
|
304
|
-
orderedList: 'Numbered List',
|
|
305
|
-
link: 'Link',
|
|
306
|
-
highlight: 'Highlight',
|
|
307
|
-
redo: 'Redo',
|
|
308
|
-
undo: 'Undo',
|
|
309
|
-
codeBlock: 'Code Block',
|
|
310
|
-
blockquote: 'Quote',
|
|
311
|
-
file: 'File',
|
|
312
|
-
source: 'Source',
|
|
313
|
-
});
|
|
314
|
-
|
|
315
|
-
useResizeObserver(root, (entries) => {
|
|
316
|
-
const entry = entries[0];
|
|
317
|
-
const { width } = entry.contentRect;
|
|
318
|
-
if (containerRef.value && toolbarRef.value && toolbarLength.value) {
|
|
319
|
-
let lengthOfItem = 0;
|
|
320
|
-
lengthOfItem = (toolbarRef.value.firstElementChild?.firstElementChild as HTMLDivElement)?.offsetWidth + 16;
|
|
321
|
-
|
|
322
|
-
const lengthOfToolbar = lengthOfItem * toolbarLength.value;
|
|
323
|
-
|
|
324
|
-
if (lengthOfToolbar >= width) {
|
|
325
|
-
const count = (width / lengthOfItem) - 2;
|
|
326
|
-
countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
onMounted(() => {
|
|
332
|
-
editor = new Editor({
|
|
333
|
-
onUpdate: ({ editor }) => {
|
|
334
|
-
isFocused.value = true;
|
|
335
|
-
setActiveFormats();
|
|
336
|
-
const html = editor.getHTML();
|
|
337
|
-
const text = editor.getText();
|
|
338
|
-
if (props.format === 'markdown') {
|
|
339
|
-
markdownOutput.value = disableMarkdown.value ? text : serialize(editor.schema, editor.getJSON());
|
|
340
|
-
proxyModelValue.value = markdownOutput.value;
|
|
341
|
-
} else {
|
|
342
|
-
proxyModelValue.value = text === '' ? text : html;
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
onCreate: ({ editor }) => {
|
|
346
|
-
if (props.format === 'markdown') {
|
|
347
|
-
const deserialized = deserialize(editor.schema, proxyModelValue.value);
|
|
348
|
-
editor.commands.setContent(deserialized);
|
|
349
|
-
} else {
|
|
350
|
-
editor.commands.setContent(proxyModelValue.value as string);
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
element: editorRef.value,
|
|
354
|
-
autofocus: props.autofocus,
|
|
355
|
-
enableInputRules: true,
|
|
356
|
-
enablePasteRules: true,
|
|
357
|
-
extensions: [
|
|
358
|
-
codemirrorNode,
|
|
359
|
-
StarterKit.configure({
|
|
360
|
-
heading: false,
|
|
361
|
-
codeBlock: false,
|
|
362
|
-
}),
|
|
363
|
-
Heading.configure({ levels: headingLevels }).extend({
|
|
364
|
-
levels: headingLevels,
|
|
365
|
-
renderHTML({ node, HTMLAttributes }) {
|
|
366
|
-
return [
|
|
367
|
-
'h' + node.attrs.level,
|
|
368
|
-
mergeAttributes(HTMLAttributes, {
|
|
369
|
-
class: `typography-headline-${node.attrs.level}`,
|
|
370
|
-
}),
|
|
371
|
-
0,
|
|
372
|
-
];
|
|
373
|
-
},
|
|
374
|
-
}),
|
|
375
|
-
Underline,
|
|
376
|
-
Link.configure({
|
|
377
|
-
openOnClick: true,
|
|
378
|
-
linkOnPaste: true,
|
|
379
|
-
autolink: false,
|
|
380
|
-
protocols: ['ftp', 'mailto', 'http', 'https'],
|
|
381
|
-
validate: href => /^https?:\/\//.test(href),
|
|
382
|
-
HTMLAttributes: {
|
|
383
|
-
class: 'text-primary cursor-pointer',
|
|
384
|
-
},
|
|
385
|
-
}),
|
|
386
|
-
Highlight,
|
|
387
|
-
Placeholder
|
|
388
|
-
.configure({
|
|
389
|
-
placeholder: props.placeholder,
|
|
390
|
-
emptyEditorClass: 'is-editor-empty text-outline',
|
|
391
|
-
}),
|
|
392
|
-
],
|
|
393
|
-
editorProps: {
|
|
394
|
-
attributes: {
|
|
395
|
-
class: 'flex flex-col focus:outline-none gap-xs',
|
|
396
|
-
},
|
|
397
|
-
},
|
|
398
|
-
parseOptions: {
|
|
399
|
-
preserveWhitespace: true,
|
|
400
|
-
},
|
|
401
|
-
});
|
|
402
|
-
setActiveFormats();
|
|
403
|
-
trap.activate();
|
|
404
|
-
});
|
|
405
|
-
|
|
406
|
-
onBeforeUnmount(() => {
|
|
407
|
-
editor?.destroy();
|
|
408
|
-
});
|
|
409
|
-
|
|
410
|
-
onClickOutside(root, () => {
|
|
411
|
-
isFocused.value = false;
|
|
412
|
-
trap.deactivate();
|
|
413
|
-
});
|
|
414
|
-
|
|
415
|
-
// Computed
|
|
416
|
-
const proxyModelValue = computed({
|
|
417
|
-
get: () => {
|
|
418
|
-
return props.modelValue;
|
|
419
|
-
},
|
|
420
|
-
|
|
421
|
-
set: (value) => {
|
|
422
|
-
context.emit('input', value);
|
|
423
|
-
context.emit('update:modelValue', value);
|
|
424
|
-
},
|
|
425
|
-
});
|
|
426
|
-
|
|
427
|
-
const getIndexOfHeading = computed(() => {
|
|
428
|
-
return props.toolbar.flat().indexOf('heading');
|
|
429
|
-
});
|
|
430
|
-
|
|
431
|
-
const headingIcon = computed(() => {
|
|
432
|
-
if (activeHeadingLevel.value && isActive.value.heading) {
|
|
433
|
-
return `format_h${activeHeadingLevel.value}`;
|
|
434
|
-
}
|
|
435
|
-
return 'format_paragraph';
|
|
436
|
-
});
|
|
437
|
-
|
|
438
|
-
const toolbarLength = computed(() => {
|
|
439
|
-
return props.toolbar.flat().length;
|
|
440
|
-
});
|
|
441
|
-
|
|
442
|
-
const notVisibleTools = computed(() => {
|
|
443
|
-
const count = countOfNotVisibleTools.value;
|
|
444
|
-
const toolbar = props.toolbar.flat();
|
|
445
|
-
let notVisible = toolbar.slice(toolbar.length - count, toolbar.length);
|
|
446
|
-
props.toolbar.forEach(tools => {
|
|
447
|
-
if (tools.some(item => notVisible.includes(item))) {
|
|
448
|
-
notVisible = [...notVisible, ...tools];
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
return notVisible;
|
|
452
|
-
});
|
|
453
|
-
|
|
454
|
-
//Methods
|
|
455
|
-
const handleEditorClick = () => {
|
|
456
|
-
setActiveFormats();
|
|
457
|
-
isFocused.value = true;
|
|
458
|
-
editor?.commands.focus();
|
|
459
|
-
activeHeadingLevel.value = editor?.getAttributes('heading')?.level || 0;
|
|
460
|
-
};
|
|
461
|
-
|
|
462
|
-
const isVisible = (value: string | Array<string>) => {
|
|
463
|
-
if (Array.isArray(value)) {
|
|
464
|
-
const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.includes(item));
|
|
465
|
-
return isHaveNotVisibleTools;
|
|
466
|
-
}
|
|
467
|
-
return !notVisibleTools.value.includes(value);
|
|
468
|
-
};
|
|
469
|
-
|
|
470
|
-
const handleInput = (event: InputEvent) => {
|
|
471
|
-
const target = event.target as HTMLTextAreaElement;
|
|
472
|
-
const value = target.value;
|
|
473
|
-
editor?.commands.setContent(deserialize(editor?.schema, value));
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
const handleToolbarClick = (item: string, level?: number) => {
|
|
477
|
-
switch (item) {
|
|
478
|
-
case 'source':
|
|
479
|
-
disableMarkdown.value = !disableMarkdown.value;
|
|
480
|
-
textareaRef.value?.focus();
|
|
481
|
-
sourceValue.value = serialize(editor?.schema, editor?.getJSON());
|
|
482
|
-
break;
|
|
483
|
-
case 'bulletList':
|
|
484
|
-
case 'orderedList':
|
|
485
|
-
item === 'bulletList' ? editor?.commands.toggleBulletList() : editor?.commands.toggleOrderedList();
|
|
486
|
-
break;
|
|
487
|
-
case 'link':
|
|
488
|
-
if (editor) {
|
|
489
|
-
const cursorPosition = editor?.state.selection.$anchor.pos || 0;
|
|
490
|
-
const { from, to, empty } = editor.state.selection;
|
|
491
|
-
const isLink = editor.view.state.doc.nodeAt(cursorPosition)?.marks.filter((mark) => mark.type.name === 'link');
|
|
492
|
-
const existedText = isLink?.length ? editor.view.state.doc.nodeAt(cursorPosition)?.text || '' : '';
|
|
493
|
-
|
|
494
|
-
text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
|
|
495
|
-
link.value = editor.getAttributes('link').href || '';
|
|
496
|
-
}
|
|
497
|
-
isOpenLinkModal.value = !isOpenLinkModal.value;
|
|
498
|
-
break;
|
|
499
|
-
case 'blockquote':
|
|
500
|
-
editor?.chain().focus().toggleBlockquote().run();
|
|
501
|
-
break;
|
|
502
|
-
case 'codeBlock':
|
|
503
|
-
if (!isActive.value['codeBlock']) {
|
|
504
|
-
editor?.commands.setNode(item, { language: 'javascript' });
|
|
505
|
-
} else {
|
|
506
|
-
editor?.commands.setNode('paragraph');
|
|
507
|
-
}
|
|
508
|
-
break;
|
|
509
|
-
case 'heading':
|
|
510
|
-
if (!level) {
|
|
511
|
-
editor?.commands.toggleHeading({ level: 0 as Level });
|
|
512
|
-
activeHeadingLevel.value = 0;
|
|
513
|
-
} else {
|
|
514
|
-
activeHeadingLevel.value = level;
|
|
515
|
-
editor?.commands.toggleHeading({ level: level as Level });
|
|
516
|
-
}
|
|
517
|
-
editor?.commands.focus();
|
|
518
|
-
break;
|
|
519
|
-
case 'undo':
|
|
520
|
-
case 'redo':
|
|
521
|
-
item === 'undo' ? editor?.commands.undo() : editor?.commands.redo();
|
|
522
|
-
break;
|
|
523
|
-
case 'file':
|
|
524
|
-
context.emit('file-upload');
|
|
525
|
-
break;
|
|
526
|
-
default:
|
|
527
|
-
editor?.chain().focus().toggleMark(item).run();
|
|
528
|
-
break;
|
|
529
|
-
}
|
|
530
|
-
};
|
|
531
|
-
|
|
532
|
-
const attachLink = async () => {
|
|
533
|
-
// empty
|
|
534
|
-
if (link.value === '') {
|
|
535
|
-
editor?.chain().focus().extendMarkRange('link').unsetLink().run();
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
const isEmptySelection = editor?.state.selection.empty;
|
|
539
|
-
const cursorPosition = editor?.state.selection.$anchor.pos || 0;
|
|
540
|
-
const isLink = editor?.view.state.doc.nodeAt(cursorPosition)?.marks.filter((mark) => mark.type.name === 'link');
|
|
541
|
-
const existedText = isLink?.length ? editor?.view.state.doc.nodeAt(cursorPosition)?.text : '';
|
|
542
|
-
|
|
543
|
-
if (link.value && isEmptySelection && !existedText) {
|
|
544
|
-
editor?.chain()
|
|
545
|
-
.focus()
|
|
546
|
-
.setMark('link', {
|
|
547
|
-
href: link.value,
|
|
548
|
-
target: '__blank',
|
|
549
|
-
})
|
|
550
|
-
.command(({ tr }) => {
|
|
551
|
-
const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
|
|
552
|
-
tr.insertText(preparedValue);
|
|
553
|
-
return true;
|
|
554
|
-
})
|
|
555
|
-
.run();
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
if (link.value && existedText === text.value && isEmptySelection) {
|
|
559
|
-
editor?.chain()
|
|
560
|
-
.extendMarkRange('link')
|
|
561
|
-
.updateAttributes('link', {
|
|
562
|
-
href: link.value,
|
|
563
|
-
})
|
|
564
|
-
.run();
|
|
565
|
-
}
|
|
566
|
-
|
|
567
|
-
if (link.value && !isEmptySelection) {
|
|
568
|
-
editor?.chain()
|
|
569
|
-
.focus()
|
|
570
|
-
.setMark('link', {
|
|
571
|
-
href: link.value,
|
|
572
|
-
target: '__blank',
|
|
573
|
-
})
|
|
574
|
-
.run();
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
text.value = '';
|
|
578
|
-
link.value = '';
|
|
579
|
-
|
|
580
|
-
isOpenLinkModal.value = false;
|
|
581
|
-
};
|
|
582
|
-
|
|
583
|
-
const discardLink = () => {
|
|
584
|
-
isOpenLinkModal.value = false;
|
|
585
|
-
};
|
|
586
|
-
|
|
587
|
-
const setActiveFormats = () => {
|
|
588
|
-
const toolbarList = props.toolbar.flat() as string[];
|
|
589
|
-
toolbarList.forEach((item) => {
|
|
590
|
-
if (item === 'source') {
|
|
591
|
-
isActive.value[item] = disableMarkdown.value;
|
|
592
|
-
} else {
|
|
593
|
-
isActive.value[item] = editor?.isActive(item) || false;
|
|
594
|
-
}
|
|
595
|
-
});
|
|
596
|
-
};
|
|
597
|
-
|
|
598
|
-
// Styles
|
|
599
|
-
const rootStyles = computed(() => {
|
|
600
|
-
return [
|
|
601
|
-
'or-rich-text-editor',
|
|
602
|
-
...props.fullHeight ? ['h-full'] : [],
|
|
603
|
-
];
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
const containerStyles = computed(() => {
|
|
607
|
-
return [
|
|
608
|
-
...EditorContainer,
|
|
609
|
-
...props.fullHeight ? ['h-full'] : [],
|
|
610
|
-
];
|
|
611
|
-
});
|
|
612
|
-
|
|
613
|
-
const toolbarContainerStyles = computed(() => {
|
|
614
|
-
return [
|
|
615
|
-
...ToolbarContainer,
|
|
616
|
-
];
|
|
617
|
-
});
|
|
618
|
-
|
|
619
|
-
const toolbarStyles = computed(() => {
|
|
620
|
-
return [
|
|
621
|
-
...Toolbar,
|
|
622
|
-
// 'overflow-x-hidden',
|
|
623
|
-
...isFocused.value ? ToolbarButtonFocused : ToolbarButton,
|
|
624
|
-
];
|
|
625
|
-
});
|
|
626
|
-
|
|
627
|
-
const editorInputStyles = computed(() => {
|
|
628
|
-
return [
|
|
629
|
-
'tiptap-editor-v3',
|
|
630
|
-
...props.fullHeight ? ['h-full overflow-y-auto'] : [],
|
|
631
|
-
...EditorInput,
|
|
632
|
-
];
|
|
633
|
-
});
|
|
634
|
-
|
|
635
|
-
//Effects
|
|
636
|
-
watch(proxyModelValue, (value) => {
|
|
637
|
-
if (value !== editor?.getHTML() && props.format !== 'markdown') {
|
|
638
|
-
editor?.commands.setContent(value as string);
|
|
639
|
-
}
|
|
640
|
-
if (props.format === 'markdown' && value !== markdownOutput.value) {
|
|
641
|
-
// const deserialized = deserialize(editor?.schema, value);
|
|
642
|
-
editor?.commands.setContent(value as string);
|
|
643
|
-
}
|
|
644
|
-
});
|
|
645
|
-
|
|
646
|
-
return {
|
|
647
|
-
editor,
|
|
648
|
-
editorRef,
|
|
649
|
-
toolbarRef,
|
|
650
|
-
containerRef,
|
|
651
|
-
toolbarButtonRef,
|
|
652
|
-
moreButtonRef,
|
|
653
|
-
textareaRef,
|
|
654
|
-
moreRef,
|
|
655
|
-
menuRef,
|
|
656
|
-
iconsEnum,
|
|
657
|
-
handleToolbarClick,
|
|
658
|
-
handleEditorClick,
|
|
659
|
-
isActive,
|
|
660
|
-
iconTooltipsEnum,
|
|
661
|
-
containerStyles,
|
|
662
|
-
toolbarContainerStyles,
|
|
663
|
-
toolbarStyles,
|
|
664
|
-
rootStyles,
|
|
665
|
-
root,
|
|
666
|
-
editorInputStyles,
|
|
667
|
-
getIndexOfHeading,
|
|
668
|
-
headingLevels,
|
|
669
|
-
headingIcon,
|
|
670
|
-
attachLink,
|
|
671
|
-
discardLink,
|
|
672
|
-
isOpenLinkModal,
|
|
673
|
-
text,
|
|
674
|
-
link,
|
|
675
|
-
isFocused,
|
|
676
|
-
isVisible,
|
|
677
|
-
countOfNotVisibleTools,
|
|
678
|
-
notVisibleTools,
|
|
679
|
-
handleInput,
|
|
680
|
-
proxyModelValue,
|
|
681
|
-
disableMarkdown,
|
|
682
|
-
sourceValue,
|
|
683
|
-
};
|
|
684
|
-
},
|
|
685
|
-
});
|
|
686
|
-
</script>
|
|
687
|
-
|
|
688
|
-
<style lang="scss">
|
|
689
|
-
.tiptap-editor-v3 {
|
|
690
|
-
ol { //see if editor can not inherit it
|
|
691
|
-
margin: 0 24px;
|
|
692
|
-
list-style: decimal;
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
.ProseMirror {
|
|
696
|
-
p {
|
|
697
|
-
margin: 4px;
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
h1, h2, h3, h4, h5, h6 {
|
|
701
|
-
margin: 4px;
|
|
702
|
-
}
|
|
703
|
-
}
|
|
704
|
-
|
|
705
|
-
ul {
|
|
706
|
-
margin: 0 24px;
|
|
707
|
-
list-style: initial;
|
|
708
|
-
}
|
|
709
|
-
|
|
710
|
-
blockquote {
|
|
711
|
-
margin: 8px 24px;
|
|
712
|
-
padding: 0 24px;
|
|
713
|
-
border-left: 4px solid theme('borderColor.primary-opacity-0-16');
|
|
714
|
-
}
|
|
715
|
-
|
|
716
|
-
.is-editor-empty::before {
|
|
717
|
-
content: attr(data-placeholder);
|
|
718
|
-
height: 0;
|
|
719
|
-
pointer-events: none;
|
|
720
|
-
float: left;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
.cm-editor {
|
|
724
|
-
border: none;
|
|
725
|
-
border-radius: 4px;
|
|
726
|
-
|
|
727
|
-
.cm-scroller {
|
|
728
|
-
border-radius: 4px;
|
|
729
|
-
}
|
|
730
|
-
|
|
731
|
-
&.cm-focused {
|
|
732
|
-
outline: none;
|
|
733
|
-
}
|
|
734
|
-
|
|
735
|
-
.cm-gutters {
|
|
736
|
-
background-color: theme('backgroundColor.primary-opacity-0-12');
|
|
737
|
-
border: none;
|
|
738
|
-
|
|
739
|
-
.cm-gutterElement {
|
|
740
|
-
padding: 0 10px;
|
|
741
|
-
|
|
742
|
-
&.cm-activeLineGutter {
|
|
743
|
-
background-color: theme('backgroundColor.primary-opacity-0-16');
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
</style>
|