@onereach/ui-components 4.6.0-beta.2751.0 → 4.6.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.
Files changed (428) hide show
  1. package/dist/bundled/v2/components/OrCode/OrCode.js +3792 -6
  2. package/dist/bundled/v2/components/OrCode/index.js +2 -6
  3. package/dist/bundled/v2/components/OrCode/lang.js +3 -3941
  4. package/dist/bundled/v2/components/OrCode/theme.js +1 -2
  5. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +1 -2
  6. package/dist/bundled/v2/components/OrConfirm/index.js +1 -2
  7. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +1 -1
  8. package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -1
  9. package/dist/bundled/v2/components/OrModal/OrModal.js +1346 -3
  10. package/dist/bundled/v2/components/OrModal/index.js +0 -1
  11. package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
  12. package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
  13. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
  14. package/dist/bundled/v2/components/OrTextareaV3/styles.js +2 -0
  15. package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
  16. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
  17. package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
  18. package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
  19. package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
  20. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
  21. package/dist/bundled/v2/components/index.d.ts +0 -1
  22. package/dist/bundled/v2/components/index.js +3 -17
  23. package/dist/bundled/v2/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
  24. package/dist/bundled/v2/index.js +6 -20
  25. package/dist/bundled/{v3/index-e9f6b2d8.js → v2/lang-0fb8f78b.js} +4009 -73
  26. package/dist/bundled/v3/{index-d92d0b48.js → OrCode.vue_vue_type_script_lang-74060519.js} +235 -14
  27. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-13397889.js → OrConfirm.vue_vue_type_script_lang-e1390930.js} +1 -1
  28. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4eaa8470.js → OrConfirm.vue_vue_type_script_lang-e5a8f92a.js} +2 -2
  29. package/dist/bundled/{v2/useFocusTrap-48767a70.js → v3/OrModal.vue_vue_type_script_lang-ae842e5b.js} +106 -3
  30. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +11 -26
  31. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +8 -24
  32. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +20 -33
  33. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +16 -51
  34. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +20 -57
  35. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +15 -35
  36. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +7 -15
  37. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +21 -47
  38. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +22 -70
  39. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +4 -7
  40. package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +126 -676
  41. package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
  42. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +15 -35
  43. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +6 -24
  44. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +17 -43
  45. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +23 -53
  46. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +9 -25
  47. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +24 -51
  48. package/dist/bundled/v3/components/OrCode/OrCode.js +6 -10
  49. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +24 -69
  50. package/dist/bundled/v3/components/OrCode/index.js +4 -8
  51. package/dist/bundled/v3/components/OrCode/lang.js +3 -3941
  52. package/dist/bundled/v3/components/OrCode/theme.js +1 -2
  53. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +17 -39
  54. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +13 -31
  55. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +8 -30
  56. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +4 -5
  57. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +23 -84
  58. package/dist/bundled/v3/components/OrConfirm/index.js +3 -4
  59. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +3 -3
  60. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +29 -91
  61. package/dist/bundled/v3/components/OrConfirmV3/index.js +2 -2
  62. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +25 -81
  63. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +68 -177
  64. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +31 -105
  65. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +11 -28
  66. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +4 -8
  67. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +4 -7
  68. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +9 -18
  69. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +14 -35
  70. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +8 -20
  71. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +15 -46
  72. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +10 -30
  73. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +4 -8
  74. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +9 -18
  75. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +16 -44
  76. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +13 -43
  77. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +16 -52
  78. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +7 -18
  79. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +7 -16
  80. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +39 -83
  81. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +43 -95
  82. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +39 -79
  83. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +36 -87
  84. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +7 -22
  85. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +34 -85
  86. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +9 -20
  87. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +9 -24
  88. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +7 -24
  89. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +21 -47
  90. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +11 -27
  91. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +10 -26
  92. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +13 -34
  93. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +13 -34
  94. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +16 -43
  95. package/dist/bundled/v3/components/OrModal/OrModal.js +2 -3
  96. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +14 -38
  97. package/dist/bundled/v3/components/OrModal/index.js +1 -2
  98. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +15 -31
  99. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +9 -27
  100. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +9 -20
  101. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +24 -70
  102. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +13 -31
  103. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +6 -16
  104. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +7 -14
  105. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +27 -75
  106. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +22 -63
  107. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +28 -76
  108. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +20 -56
  109. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +25 -62
  110. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +13 -35
  111. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +9 -26
  112. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +6 -32
  113. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +21 -49
  114. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +23 -65
  115. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +17 -41
  116. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +9 -25
  117. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +28 -77
  118. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +37 -115
  119. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +14 -33
  120. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +28 -63
  121. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +9 -20
  122. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +13 -28
  123. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +9 -22
  124. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +11 -26
  125. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +10 -26
  126. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +16 -40
  127. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +35 -91
  128. package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +13 -25
  129. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +16 -43
  130. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +12 -33
  131. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +22 -53
  132. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +9 -22
  133. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +13 -29
  134. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +10 -17
  135. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +4 -17
  136. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +25 -71
  137. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +10 -27
  138. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +12 -23
  139. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +19 -63
  140. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +4 -10
  141. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +4 -10
  142. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +11 -24
  143. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +37 -85
  144. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +2 -2
  145. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +32 -73
  146. package/dist/bundled/v3/components/OrTextareaV3/index.js +1 -1
  147. package/dist/bundled/v3/components/OrTextareaV3/styles.js +2 -0
  148. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +55 -137
  149. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +25 -79
  150. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +11 -31
  151. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +25 -55
  152. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +24 -54
  153. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +16 -38
  154. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +14 -33
  155. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +4 -10
  156. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +13 -37
  157. package/dist/bundled/v3/components/index.d.ts +0 -1
  158. package/dist/bundled/v3/components/index.js +8 -23
  159. package/dist/bundled/v3/directives/dropdown-close.d.ts +3 -1
  160. package/dist/bundled/v3/directives/dropdown-open.d.ts +3 -1
  161. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  162. package/dist/bundled/v3/{index-0d224ae5.js → index-cf2c3c27.js} +115 -3
  163. package/dist/bundled/v3/index.js +12 -27
  164. package/dist/bundled/{v2/index-e9f6b2d8.js → v3/lang-0fb8f78b.js} +4009 -73
  165. package/dist/esm/v2/{OrTextarea-800f63d4.js → OrTextarea-eaadb85f.js} +2 -0
  166. package/dist/esm/v2/components/index.d.ts +0 -1
  167. package/dist/esm/v2/components/index.js +1 -25
  168. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  169. package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
  170. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
  171. package/dist/esm/v2/components/or-textarea-v3/index.js +1 -1
  172. package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
  173. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
  174. package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
  175. package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
  176. package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
  177. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
  178. package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
  179. package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
  180. package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
  181. package/dist/esm/v2/index.js +1 -25
  182. package/dist/esm/v3/{OrTextarea-fa1454e3.js → OrTextarea-d9d355ce.js} +2 -0
  183. package/dist/esm/v3/components/index.d.ts +0 -1
  184. package/dist/esm/v3/components/index.js +1 -25
  185. package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +11 -26
  186. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +8 -24
  187. package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +20 -33
  188. package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +16 -51
  189. package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +20 -57
  190. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +15 -35
  191. package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +7 -15
  192. package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +21 -47
  193. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +22 -70
  194. package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +6 -14
  195. package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +4 -7
  196. package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +126 -676
  197. package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
  198. package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +15 -35
  199. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +6 -24
  200. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +17 -43
  201. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +23 -53
  202. package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +24 -51
  203. package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +9 -25
  204. package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +17 -37
  205. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +24 -69
  206. package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +17 -39
  207. package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +13 -31
  208. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +8 -30
  209. package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +23 -84
  210. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +29 -91
  211. package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +25 -81
  212. package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +68 -177
  213. package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +12 -33
  214. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +31 -105
  215. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +11 -28
  216. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +17 -39
  217. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +7 -15
  218. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +23 -85
  219. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +7 -11
  220. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +4 -7
  221. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +11 -28
  222. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +15 -37
  223. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +11 -28
  224. package/dist/esm/v3/components/or-error/OrError.vue.d.ts +4 -8
  225. package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +4 -7
  226. package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +9 -18
  227. package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +14 -35
  228. package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +8 -20
  229. package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +15 -46
  230. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +10 -30
  231. package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +4 -8
  232. package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +9 -18
  233. package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +16 -44
  234. package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +13 -43
  235. package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +8 -10
  236. package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +16 -52
  237. package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +7 -18
  238. package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +7 -16
  239. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +39 -83
  240. package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +43 -95
  241. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +39 -79
  242. package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +36 -87
  243. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +7 -22
  244. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +34 -85
  245. package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +9 -20
  246. package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +9 -24
  247. package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +7 -24
  248. package/dist/esm/v3/components/or-list/OrList.vue.d.ts +21 -47
  249. package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +11 -27
  250. package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +10 -26
  251. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +13 -34
  252. package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +13 -34
  253. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +16 -43
  254. package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +14 -38
  255. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +15 -31
  256. package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +9 -27
  257. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +9 -20
  258. package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +24 -70
  259. package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +13 -31
  260. package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +7 -23
  261. package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +6 -16
  262. package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +7 -14
  263. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +27 -75
  264. package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +22 -63
  265. package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +28 -76
  266. package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +20 -56
  267. package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +25 -62
  268. package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +13 -35
  269. package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +9 -26
  270. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +6 -32
  271. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +21 -49
  272. package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +23 -65
  273. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +17 -41
  274. package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +9 -25
  275. package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +8 -20
  276. package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +28 -77
  277. package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +18 -49
  278. package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +4 -16
  279. package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +13 -67
  280. package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +16 -41
  281. package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +16 -35
  282. package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +24 -71
  283. package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +7 -19
  284. package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +11 -24
  285. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +37 -115
  286. package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +14 -33
  287. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +28 -63
  288. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +10 -23
  289. package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +9 -20
  290. package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +9 -22
  291. package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +10 -26
  292. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +13 -28
  293. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +11 -26
  294. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +16 -40
  295. package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +35 -91
  296. package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +13 -25
  297. package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +16 -43
  298. package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +4 -20
  299. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +4 -26
  300. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +4 -26
  301. package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +6 -22
  302. package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +6 -12
  303. package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +12 -33
  304. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +22 -53
  305. package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +9 -22
  306. package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +13 -29
  307. package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +10 -17
  308. package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +4 -17
  309. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +25 -71
  310. package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +10 -27
  311. package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +12 -23
  312. package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +19 -63
  313. package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +4 -10
  314. package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +4 -10
  315. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +11 -24
  316. package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +37 -85
  317. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +32 -73
  318. package/dist/esm/v3/components/or-textarea-v3/index.js +1 -1
  319. package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +55 -137
  320. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +25 -79
  321. package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +11 -31
  322. package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +25 -55
  323. package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +16 -38
  324. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +24 -54
  325. package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +14 -33
  326. package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +4 -10
  327. package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +13 -37
  328. package/dist/esm/v3/directives/dropdown-close.d.ts +3 -1
  329. package/dist/esm/v3/directives/dropdown-open.d.ts +3 -1
  330. package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  331. package/dist/esm/v3/index.js +1 -25
  332. package/package.json +5 -25
  333. package/src/components/index.ts +0 -1
  334. package/src/components/or-textarea-v3/styles.ts +6 -0
  335. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -2196
  336. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -220
  337. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -2
  338. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -70
  339. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +0 -4
  340. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +0 -7
  341. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
  342. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
  343. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
  344. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -46
  345. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
  346. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
  347. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
  348. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
  349. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
  350. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
  351. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
  352. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  353. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
  354. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -5
  355. package/dist/bundled/v2/index-418d5c0d.js +0 -9633
  356. package/dist/bundled/v2/index-85c2efe8.js +0 -7122
  357. package/dist/bundled/v2/index-d92d0b48.js +0 -3805
  358. package/dist/bundled/v2/index.es-3f39f316.js +0 -115
  359. package/dist/bundled/v2/markdown-7c7c4ca6.js +0 -17980
  360. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-7e29b3d0.js +0 -237
  361. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-2c009ee0.js +0 -108
  362. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-da618771.js +0 -1887
  363. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -283
  364. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -220
  365. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -2
  366. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -86
  367. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -4
  368. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
  369. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
  370. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
  371. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
  372. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -46
  373. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
  374. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -184
  375. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
  376. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -5
  377. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -24
  378. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -190
  379. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
  380. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  381. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
  382. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -5
  383. package/dist/bundled/v3/index-418d5c0d.js +0 -9633
  384. package/dist/bundled/v3/index-85c2efe8.js +0 -7122
  385. package/dist/bundled/v3/index.es-3f39f316.js +0 -115
  386. package/dist/bundled/v3/markdown-7c7c4ca6.js +0 -17980
  387. package/dist/bundled/v3/useFocusTrap-48767a70.js +0 -1348
  388. package/dist/esm/v2/OrRichTextEditor-f95ca8c6.js +0 -919
  389. package/dist/esm/v2/codemirrorView-be2c7423.js +0 -353
  390. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -220
  391. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -2
  392. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -59
  393. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +0 -4
  394. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  395. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
  396. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
  397. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
  398. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
  399. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
  400. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
  401. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
  402. package/dist/esm/v3/OrRichTextEditor-065797b2.js +0 -852
  403. package/dist/esm/v3/codemirrorView-be2c7423.js +0 -353
  404. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -220
  405. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -2
  406. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -57
  407. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +0 -4
  408. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  409. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
  410. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
  411. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
  412. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -7
  413. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -24
  414. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
  415. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
  416. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -761
  417. package/src/components/or-rich-text-editor-v3/index.ts +0 -2
  418. package/src/components/or-rich-text-editor-v3/props.ts +0 -4
  419. package/src/components/or-rich-text-editor-v3/styles.ts +0 -53
  420. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
  421. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
  422. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
  423. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -213
  424. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
  425. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -120
  426. /package/dist/bundled/v2/{index-f6664cb1.js → index-968c331a.js} +0 -0
  427. /package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-f287189f.js → OrTextarea.vue_vue_type_script_lang-7b74a80e.js} +0 -0
  428. /package/dist/bundled/v3/{index-f6664cb1.js → index-968c331a.js} +0 -0
@@ -1,919 +0,0 @@
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 { marked } from 'marked';
7
- import Paragraph from '@tiptap/extension-paragraph';
8
- import BulletList from '@tiptap/extension-bullet-list';
9
- import ListItem from '@tiptap/extension-list-item';
10
- import OrderedList from '@tiptap/extension-ordered-list';
11
- import Strike from '@tiptap/extension-strike';
12
- import Italic from '@tiptap/extension-italic';
13
- import HardBreak from '@tiptap/extension-hard-break';
14
- import Bold from '@tiptap/extension-bold';
15
- import CodeBlock from '@tiptap/extension-code-block';
16
- import Blockquote from '@tiptap/extension-blockquote';
17
- import Link from '@tiptap/extension-link';
18
- import Highlight from '@tiptap/extension-highlight';
19
- import Underline from '@tiptap/extension-underline';
20
- import { _ as __vue_component__$1 } from './OrIconButton-ee747c71.js';
21
- import { _ as __vue_component__$2 } from './OrLabel-63380256.js';
22
- import { _ as __vue_component__$4 } from './OrMenu-8b902c22.js';
23
- import './OrPopover-80459663.js';
24
- import { _ as __vue_component__$3 } from './OrMenuItem-6f9b8a93.js';
25
- import { _ as __vue_component__$5 } from './OrModal-1f80d87f.js';
26
- import { _ as __vue_component__$6 } from './OrInput-8c7b3cce.js';
27
- import { _ as __vue_component__$7 } from './OrButton-9622e713.js';
28
- import { Node, Editor, mergeAttributes } from '@tiptap/core';
29
- import StarterKit from '@tiptap/starter-kit';
30
- import Heading from '@tiptap/extension-heading';
31
- import Placeholder from '@tiptap/extension-placeholder';
32
- import { C as CodeMirrorView } from './codemirrorView-be2c7423.js';
33
- import { minimalSetup } from 'codemirror';
34
- import { javascript } from '@codemirror/lang-javascript';
35
- import { s as styleInject } from './style-inject.es-4c6f2515.js';
36
- import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
37
-
38
- const serializerNodes = {
39
- ...defaultMarkdownSerializer.nodes,
40
- [Paragraph.name]: defaultMarkdownSerializer.nodes.paragraph,
41
- [BulletList.name]: defaultMarkdownSerializer.nodes.bullet_list,
42
- [ListItem.name]: defaultMarkdownSerializer.nodes.list_item,
43
- [OrderedList.name]: defaultMarkdownSerializer.nodes.ordered_list,
44
- [HardBreak.name]: defaultMarkdownSerializer.nodes.hard_break,
45
- [CodeBlock.name]: defaultMarkdownSerializer.nodes.code_block,
46
- [Blockquote.name]: defaultMarkdownSerializer.nodes.blockquote
47
- };
48
- const serializerMarks = {
49
- ...defaultMarkdownSerializer.marks,
50
- [Bold.name]: defaultMarkdownSerializer.marks.strong,
51
- [Strike.name]: {
52
- open: '~~',
53
- close: '~~',
54
- mixable: true,
55
- expelEnclosingWhitespace: true
56
- },
57
- [Italic.name]: {
58
- open: ' _',
59
- close: '_ ',
60
- mixable: true,
61
- expelEnclosingWhitespace: true
62
- },
63
- [Highlight.name]: {
64
- open: '==',
65
- close: '==',
66
- mixable: true,
67
- expelEnclosingWhitespace: true
68
- },
69
- [Underline.name]: {
70
- open: '',
71
- close: '',
72
- mixable: true,
73
- expelEnclosingWhitespace: true
74
- },
75
- [Link.name]: {
76
- open(state, mark, parent, index) {
77
- return isPlainURL(mark, parent, index, 1) ? '<' : '[';
78
- },
79
- close(state, mark, parent, index) {
80
- const href = mark.attrs.canonicalSrc || mark.attrs.href;
81
- return isPlainURL(mark, parent, index, -1) ? '>' : `](${state.esc(href)}${mark.attrs.title ? ` ${state.quote(mark.attrs.title)}` : ''})`;
82
- }
83
- }
84
- };
85
- const isPlainURL = (link, parent, index, side) => {
86
- if (link.attrs.title || !/^\w+:/.test(link.attrs.href)) return false;
87
- const content = parent.child(index + (side < 0 ? -1 : 0));
88
- if (!content.isText || content.text !== link.attrs.href || content.marks[content.marks.length - 1] !== link) return false;
89
- if (index === (side < 0 ? 1 : parent.childCount - 1)) return true;
90
- const next = parent.child(index + (side < 0 ? -2 : 1));
91
- return !link.isInSet(next.marks);
92
- };
93
- const serialize = (schema, content) => {
94
- const proseMirrorDocument = schema.nodeFromJSON(content);
95
- const serializer = new MarkdownSerializer(serializerNodes, serializerMarks);
96
- return serializer.serialize(proseMirrorDocument, {
97
- tightLists: true
98
- });
99
- };
100
- const deserialize = (schema, content) => {
101
- if (!content) return null;
102
- const html = marked(content, {
103
- gfm: true,
104
- breaks: true
105
- });
106
- if (!html) return null;
107
- const parser = new DOMParser();
108
- const {
109
- body
110
- } = parser.parseFromString(html, 'text/html');
111
- // append original source as a comment that nodes can access
112
- body.append(document.createComment(content));
113
- const state = DOMParser$1.fromSchema(schema).parse(body);
114
- return state.toJSON();
115
- };
116
-
117
- const EditorContainer = [
118
- // Colors
119
- 'border-outline', 'focus-within:theme-background-primary-translucent', 'focus-within:theme-border-1-primary', 'focus-within:theme-outline-2-primary',
120
- // Sizing
121
- 'border-1', 'rounded-md', 'w-full'];
122
- const ToolbarContainer = [
123
- // Layout
124
- 'flex',
125
- //Spacing
126
- 'py-sm',
127
- //Sizing
128
- 'border-b-1',
129
- //Colors
130
- 'border-b-outline'];
131
- const Toolbar = [
132
- // Layout
133
- 'flex',
134
- // Spacing
135
- 'px-sm', 'gap-md',
136
- // Sizing
137
- 'border-l-1',
138
- //Colors
139
- 'border-r-disabled',
140
- // Last child
141
- 'first-of-type:border-none'];
142
- const ToolbarButton = [
143
- // Typography
144
- 'text-on-disabled'];
145
- const ToolbarButtonFocused = [
146
- // Typography
147
- 'text-outline'];
148
- const EditorInput = [
149
- // Typography
150
- 'typography-body-2-regular',
151
- // Sizing
152
- 'min-h-[88px]'];
153
-
154
- var Formats;
155
- (function (Formats) {
156
- Formats["Markdown"] = "markdown";
157
- Formats["Markup"] = "markup";
158
- })(Formats || (Formats = {}));
159
-
160
- var codemirrorNode = Node.create({
161
- name: 'codeBlock',
162
- content: 'text*',
163
- marks: '',
164
- group: 'block',
165
- code: true,
166
- defining: true,
167
- isolating: true,
168
- parseHTML() {
169
- return [{
170
- tag: 'pre',
171
- preserveWhitespace: 'full'
172
- }];
173
- },
174
- renderHTML() {
175
- return ['pre', ['code', 0]];
176
- },
177
- addNodeView() {
178
- return _ref => {
179
- let {
180
- node,
181
- editor,
182
- getPos
183
- } = _ref;
184
- return new CodeMirrorView({
185
- node,
186
- view: editor.view,
187
- getPos: getPos,
188
- cmOptions: {
189
- extensions: [minimalSetup, javascript()]
190
- }
191
- });
192
- };
193
- }
194
- });
195
-
196
- var script = defineComponent({
197
- name: 'OrRichTextEditor',
198
- components: {
199
- OrIconButton: __vue_component__$1,
200
- OrLabel: __vue_component__$2,
201
- OrMenuItem: __vue_component__$3,
202
- OrMenu: __vue_component__$4,
203
- OrModal: __vue_component__$5,
204
- OrInput: __vue_component__$6,
205
- OrButton: __vue_component__$7
206
- },
207
- inheritAttrs: false,
208
- model: {
209
- prop: 'modelValue',
210
- event: 'update:modelValue'
211
- },
212
- props: {
213
- modelValue: {
214
- type: String,
215
- default: undefined
216
- },
217
- toolbar: {
218
- type: Array,
219
- default: () => []
220
- },
221
- description: {
222
- type: String,
223
- default: ''
224
- },
225
- placeholder: {
226
- type: String,
227
- default: ''
228
- },
229
- autofocus: {
230
- type: Boolean,
231
- default: false
232
- },
233
- format: {
234
- type: String,
235
- default: Formats.Markup
236
- },
237
- fullHeight: {
238
- type: Boolean,
239
- default: false
240
- }
241
- },
242
- emits: ['update:modelValue', 'input', 'file-upload'],
243
- expose: ['root'],
244
- setup(props, context) {
245
- // Refs
246
- const root = ref();
247
- let editor = null;
248
- const editorRef = ref();
249
- const textareaRef = ref();
250
- const containerRef = ref();
251
- const toolbarRef = ref();
252
- const moreButtonRef = ref();
253
- const moreRef = ref();
254
- const toolbarButtonRef = ref();
255
- const menuRef = ref();
256
- // isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
257
- const isActive = ref({
258
- bold: false,
259
- italic: false,
260
- underline: false,
261
- strike: false,
262
- bulletList: false,
263
- orderedList: false,
264
- link: false,
265
- highlight: false,
266
- redo: false,
267
- undo: false,
268
- codeBlock: false,
269
- blockquote: false,
270
- file: false,
271
- source: false
272
- });
273
- const isFocused = ref(props.autofocus);
274
- const headingLevels = [1, 2, 3, 4];
275
- const activeHeadingLevel = ref(0);
276
- const markdownOutput = ref('');
277
- const isOpenLinkModal = ref(false);
278
- const disableMarkdown = ref(false);
279
- const text = ref('');
280
- const link = ref('');
281
- const countOfNotVisibleTools = ref(0);
282
- const sourceValue = ref('');
283
- let trap = useFocusTrap(editorRef, {
284
- immediate: true,
285
- fallbackFocus: '.container',
286
- allowOutsideClick: true
287
- });
288
- const iconsEnum = ref({
289
- bold: 'format_bold',
290
- italic: 'format_italic',
291
- underline: 'format_underlined',
292
- strike: 'format_strikethrough',
293
- bulletList: 'format_list_bulleted',
294
- orderedList: 'format_list_numbered',
295
- link: 'link',
296
- highlight: 'highlight',
297
- redo: 'redo',
298
- undo: 'undo',
299
- codeBlock: 'code_blocks',
300
- blockquote: 'format_quote',
301
- file: 'attach_file',
302
- source: 'source_notes'
303
- });
304
- const iconTooltipsEnum = ref({
305
- bold: 'Bold',
306
- italic: 'Italic',
307
- underline: 'Underline',
308
- strike: 'Strike',
309
- bulletList: 'Bulleted List',
310
- orderedList: 'Numbered List',
311
- link: 'Link',
312
- highlight: 'Highlight',
313
- redo: 'Redo',
314
- undo: 'Undo',
315
- codeBlock: 'Code Block',
316
- blockquote: 'Quote',
317
- file: 'File',
318
- source: 'Source'
319
- });
320
- useResizeObserver(root, entries => {
321
- var _a, _b;
322
- const entry = entries[0];
323
- const {
324
- width
325
- } = entry.contentRect;
326
- if (containerRef.value && toolbarRef.value && toolbarLength.value) {
327
- let lengthOfItem = 0;
328
- lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
329
- const count = width / lengthOfItem - 2;
330
- countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
331
- }
332
- });
333
- onMounted(() => {
334
- editor = new Editor({
335
- onUpdate: _ref => {
336
- let {
337
- editor
338
- } = _ref;
339
- isFocused.value = true;
340
- setActiveFormats();
341
- const html = editor.getHTML();
342
- const text = editor.getText();
343
- if (props.format === 'markdown') {
344
- markdownOutput.value = serialize(editor.schema, editor.getJSON());
345
- proxyModelValue.value = markdownOutput.value;
346
- } else {
347
- proxyModelValue.value = text === '' ? text : html;
348
- }
349
- },
350
- onCreate: _ref2 => {
351
- let {
352
- editor
353
- } = _ref2;
354
- if (props.format === 'markdown') {
355
- const deserialized = deserialize(editor.schema, proxyModelValue.value);
356
- editor.commands.setContent(deserialized);
357
- } else {
358
- editor.commands.setContent(proxyModelValue.value);
359
- }
360
- },
361
- element: editorRef.value,
362
- autofocus: props.autofocus,
363
- enableInputRules: true,
364
- enablePasteRules: true,
365
- extensions: [codemirrorNode, StarterKit.configure({
366
- heading: false,
367
- codeBlock: false
368
- }), Heading.configure({
369
- levels: headingLevels
370
- }).extend({
371
- levels: headingLevels,
372
- renderHTML(_ref3) {
373
- let {
374
- node,
375
- HTMLAttributes
376
- } = _ref3;
377
- return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
378
- class: `typography-headline-${node.attrs.level}`
379
- }), 0];
380
- }
381
- }), Underline, Link.configure({
382
- openOnClick: true,
383
- linkOnPaste: true,
384
- autolink: false,
385
- protocols: ['ftp', 'mailto', 'http', 'https'],
386
- validate: href => /^https?:\/\//.test(href),
387
- HTMLAttributes: {
388
- class: 'text-primary cursor-pointer'
389
- }
390
- }), Highlight, Placeholder.configure({
391
- placeholder: props.placeholder,
392
- emptyEditorClass: 'is-editor-empty text-outline'
393
- })],
394
- editorProps: {
395
- attributes: {
396
- class: 'flex flex-col focus:outline-none gap-xs'
397
- }
398
- },
399
- parseOptions: {
400
- preserveWhitespace: true
401
- }
402
- });
403
- setActiveFormats();
404
- trap.activate();
405
- });
406
- onBeforeUnmount(() => {
407
- editor === null || editor === void 0 ? void 0 : editor.destroy();
408
- });
409
- onClickOutside(root, () => {
410
- isFocused.value = false;
411
- trap.deactivate();
412
- });
413
- // Computed
414
- const proxyModelValue = computed({
415
- get: () => {
416
- return props.modelValue;
417
- },
418
- set: value => {
419
- context.emit('input', value);
420
- context.emit('update:modelValue', value);
421
- }
422
- });
423
- const getIndexOfHeading = computed(() => {
424
- return props.toolbar.flat().indexOf('heading');
425
- });
426
- const headingIcon = computed(() => {
427
- if (activeHeadingLevel.value && isActive.value.heading) {
428
- return `format_h${activeHeadingLevel.value}`;
429
- }
430
- return 'format_paragraph';
431
- });
432
- const toolbarLength = computed(() => {
433
- return props.toolbar.flat().length;
434
- });
435
- const notVisibleTools = computed(() => {
436
- const count = countOfNotVisibleTools.value;
437
- const toolbar = props.toolbar.flat();
438
- let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
439
- props.toolbar.forEach(tools => {
440
- if (tools.some(item => notVisible.has(item))) {
441
- tools.forEach(item => notVisible.add(item));
442
- }
443
- });
444
- return notVisible;
445
- });
446
- //Methods
447
- const handleEditorClick = () => {
448
- var _a;
449
- setActiveFormats();
450
- isFocused.value = true;
451
- editor === null || editor === void 0 ? void 0 : editor.commands.focus();
452
- activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
453
- };
454
- const isVisible = value => {
455
- if (Array.isArray(value)) {
456
- const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
457
- return isHaveNotVisibleTools;
458
- }
459
- return !notVisibleTools.value.has(value);
460
- };
461
- const handleInput = event => {
462
- const target = event.target;
463
- const value = target.value;
464
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
465
- markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
466
- proxyModelValue.value = markdownOutput.value;
467
- };
468
- const handleToolbarClick = (item, level) => {
469
- var _a, _b;
470
- switch (item) {
471
- case 'source':
472
- disableMarkdown.value = !disableMarkdown.value;
473
- sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
474
- nextTick(() => {
475
- var _a;
476
- return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
477
- });
478
- break;
479
- case 'bulletList':
480
- case 'orderedList':
481
- item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
482
- break;
483
- case 'link':
484
- if (editor) {
485
- const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
486
- const {
487
- from,
488
- to,
489
- empty
490
- } = editor.state.selection;
491
- const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
492
- 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) || '' : '';
493
- text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
494
- link.value = editor.getAttributes('link').href || '';
495
- }
496
- isOpenLinkModal.value = !isOpenLinkModal.value;
497
- break;
498
- case 'blockquote':
499
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
500
- break;
501
- case 'codeBlock':
502
- if (!isActive.value['codeBlock']) {
503
- editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
504
- language: 'javascript'
505
- });
506
- } else {
507
- editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
508
- }
509
- break;
510
- case 'heading':
511
- if (!level) {
512
- editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
513
- level: 0
514
- });
515
- activeHeadingLevel.value = 0;
516
- } else {
517
- activeHeadingLevel.value = level;
518
- editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
519
- level: level
520
- });
521
- }
522
- editor === null || editor === void 0 ? void 0 : editor.commands.focus();
523
- break;
524
- case 'undo':
525
- case 'redo':
526
- item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
527
- break;
528
- case 'file':
529
- context.emit('file-upload');
530
- break;
531
- default:
532
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
533
- break;
534
- }
535
- };
536
- const attachLink = async () => {
537
- var _a, _b;
538
- // empty
539
- if (link.value === '') {
540
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
541
- }
542
- const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
543
- const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
544
- 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');
545
- 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 : '';
546
- if (link.value && isEmptySelection && !existedText) {
547
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
548
- href: link.value,
549
- target: '__blank'
550
- }).command(_ref4 => {
551
- let {
552
- tr
553
- } = _ref4;
554
- const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
555
- tr.insertText(preparedValue);
556
- return true;
557
- }).run();
558
- }
559
- if (link.value && existedText === text.value && isEmptySelection) {
560
- editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
561
- href: link.value
562
- }).run();
563
- }
564
- if (link.value && !isEmptySelection) {
565
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
566
- href: link.value,
567
- target: '__blank'
568
- }).run();
569
- }
570
- text.value = '';
571
- link.value = '';
572
- isOpenLinkModal.value = false;
573
- };
574
- const discardLink = () => {
575
- isOpenLinkModal.value = false;
576
- };
577
- const setActiveFormats = () => {
578
- const toolbarList = props.toolbar.flat();
579
- toolbarList.forEach(item => {
580
- if (item === 'source') {
581
- isActive.value[item] = disableMarkdown.value;
582
- } else {
583
- isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
584
- }
585
- });
586
- };
587
- // Styles
588
- const rootStyles = computed(() => {
589
- return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
590
- });
591
- const containerStyles = computed(() => {
592
- return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
593
- });
594
- const toolbarContainerStyles = computed(() => {
595
- return [...ToolbarContainer];
596
- });
597
- const toolbarStyles = computed(() => {
598
- return [...Toolbar,
599
- // 'overflow-x-hidden',
600
- ...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
601
- });
602
- const editorInputStyles = computed(() => {
603
- return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
604
- });
605
- //Effects
606
- watch(proxyModelValue, value => {
607
- if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
608
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
609
- }
610
- if (props.format === 'markdown' && value !== markdownOutput.value) {
611
- // const deserialized = deserialize(editor?.schema, value);
612
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
613
- }
614
- });
615
- return {
616
- editor,
617
- editorRef,
618
- toolbarRef,
619
- containerRef,
620
- toolbarButtonRef,
621
- moreButtonRef,
622
- textareaRef,
623
- moreRef,
624
- menuRef,
625
- iconsEnum,
626
- handleToolbarClick,
627
- handleEditorClick,
628
- isActive,
629
- iconTooltipsEnum,
630
- containerStyles,
631
- toolbarContainerStyles,
632
- toolbarStyles,
633
- rootStyles,
634
- root,
635
- editorInputStyles,
636
- getIndexOfHeading,
637
- headingLevels,
638
- headingIcon,
639
- attachLink,
640
- discardLink,
641
- isOpenLinkModal,
642
- text,
643
- link,
644
- isFocused,
645
- isVisible,
646
- countOfNotVisibleTools,
647
- notVisibleTools,
648
- handleInput,
649
- proxyModelValue,
650
- disableMarkdown,
651
- sourceValue
652
- };
653
- }
654
- });
655
-
656
- var css_248z = ".tiptap-editor-v3 ol{@apply mx-lg;list-style:decimal}.tiptap-editor-v3 .ProseMirror h1,.tiptap-editor-v3 .ProseMirror h2,.tiptap-editor-v3 .ProseMirror h3,.tiptap-editor-v3 .ProseMirror h4,.tiptap-editor-v3 .ProseMirror h5,.tiptap-editor-v3 .ProseMirror h6,.tiptap-editor-v3 .ProseMirror p{@apply m-xs;}.tiptap-editor-v3 ul{@apply mx-lg;list-style:initial}.tiptap-editor-v3 blockquote{@apply mx-lg;@apply my-sm;@apply px-lg;border-left:4px solid theme(\"borderColor.primary-opacity-0-16\")}.tiptap-editor-v3 .is-editor-empty::before{content:attr(data-placeholder);height:0;pointer-events:none;float:left}.tiptap-editor-v3 .cm-editor{border:none;@apply rounded-md;}.tiptap-editor-v3 .cm-editor .cm-scroller{@apply rounded-md;}.tiptap-editor-v3 .cm-editor.cm-focused{outline:0}.tiptap-editor-v3 .cm-editor .cm-gutters{background-color:theme(\"backgroundColor.primary-opacity-0-12\");border:none}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement{@apply px-sm+*;}.tiptap-editor-v3 .cm-editor .cm-gutters .cm-gutterElement.cm-activeLineGutter{background-color:theme(\"backgroundColor.primary-opacity-0-16\")}";
657
- styleInject(css_248z);
658
-
659
- /* script */
660
- const __vue_script__ = script;
661
- /* template */
662
- var __vue_render__ = function () {
663
- var _vm = this;
664
- var _h = _vm.$createElement;
665
- var _c = _vm._self._c || _h;
666
- return _c('div', {
667
- ref: "root",
668
- class: _vm.rootStyles
669
- }, [_c('or-label', [_vm._v("\n " + _vm._s(_vm.description) + "\n ")]), _vm._v(" "), _c('div', {
670
- ref: "containerRef",
671
- class: _vm.containerStyles,
672
- on: {
673
- "click": function ($event) {
674
- return _vm.handleEditorClick();
675
- }
676
- }
677
- }, [_c('div', {
678
- ref: "toolbarRef",
679
- class: _vm.toolbarContainerStyles
680
- }, [_vm._l(_vm.toolbar, function (tools, index) {
681
- return _c('div', {
682
- key: index,
683
- class: _vm.toolbarStyles.concat([{
684
- 'hidden': _vm.isVisible(tools)
685
- }])
686
- }, _vm._l(tools, function (item) {
687
- return _c('div', {
688
- key: item,
689
- class: ['flex gap-md', {
690
- 'hidden': !_vm.isVisible(item)
691
- }]
692
- }, [item === 'heading' ? _c('or-icon-button', {
693
- ref: "toolbarButtonRef",
694
- refInFor: true,
695
- attrs: {
696
- "selected": _vm.isActive[item],
697
- "disabled": !_vm.isFocused,
698
- "tooltip": {
699
- text: item,
700
- placement: 'top'
701
- },
702
- "icon": {
703
- icon: _vm.headingIcon,
704
- variant: 'inherit',
705
- size: 'm'
706
- }
707
- },
708
- on: {
709
- "click": function ($event) {
710
- return _vm.menuRef.open();
711
- }
712
- }
713
- }) : _vm.isVisible(item) ? _c('or-icon-button', {
714
- attrs: {
715
- "tooltip": {
716
- text: _vm.iconTooltipsEnum[item],
717
- placement: 'top'
718
- },
719
- "selected": _vm.isActive[item],
720
- "disabled": !_vm.isFocused,
721
- "icon": {
722
- icon: _vm.iconsEnum[item],
723
- variant: 'inherit',
724
- size: 'm'
725
- }
726
- },
727
- on: {
728
- "click": function ($event) {
729
- return _vm.handleToolbarClick(item);
730
- }
731
- }
732
- }) : _vm._e()], 1);
733
- }), 0);
734
- }), _vm._v(" "), _vm.countOfNotVisibleTools > 0 ? _c('or-icon-button', {
735
- ref: "moreButtonRef",
736
- staticClass: "px-sm",
737
- attrs: {
738
- "disabled": !_vm.isFocused,
739
- "icon": {
740
- icon: 'more_horiz',
741
- variant: 'inherit',
742
- size: 'm'
743
- }
744
- },
745
- on: {
746
- "click": function ($event) {
747
- return _vm.moreRef.open();
748
- }
749
- }
750
- }) : _vm._e()], 2), _vm._v(" "), _c('div', {
751
- class: ['p-sm', {
752
- 'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _vm.fullHeight
753
- }]
754
- }, [_c('textarea', {
755
- directives: [{
756
- name: "show",
757
- rawName: "v-show",
758
- value: _vm.disableMarkdown,
759
- expression: "disableMarkdown"
760
- }, {
761
- name: "model",
762
- rawName: "v-model",
763
- value: _vm.sourceValue,
764
- expression: "sourceValue"
765
- }],
766
- ref: "textareaRef",
767
- staticClass: "w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
768
- attrs: {
769
- "auto-focus": "",
770
- "activated": _vm.disableMarkdown
771
- },
772
- domProps: {
773
- "value": _vm.sourceValue
774
- },
775
- on: {
776
- "input": [function ($event) {
777
- if ($event.target.composing) {
778
- return;
779
- }
780
- _vm.sourceValue = $event.target.value;
781
- }, _vm.handleInput]
782
- }
783
- }), _vm._v(" "), _c('div', {
784
- directives: [{
785
- name: "show",
786
- rawName: "v-show",
787
- value: !_vm.disableMarkdown,
788
- expression: "!disableMarkdown"
789
- }],
790
- ref: "editorRef",
791
- class: _vm.editorInputStyles
792
- }), _vm._v(" "), _vm._t("files")], 2)]), _vm._v(" "), _vm.moreButtonRef ? _c('or-menu', {
793
- ref: "moreRef",
794
- attrs: {
795
- "trigger": _vm.moreButtonRef.root
796
- }
797
- }, _vm._l(_vm.notVisibleTools, function (item) {
798
- return _c('or-menu-item', {
799
- key: item,
800
- on: {
801
- "click": function ($event) {
802
- return _vm.handleToolbarClick(item);
803
- }
804
- }
805
- }, [_c('or-icon-button', {
806
- attrs: {
807
- "tooltip": {
808
- text: _vm.iconTooltipsEnum[item],
809
- placement: 'top'
810
- },
811
- "selected": _vm.isActive[item],
812
- "icon": {
813
- icon: _vm.iconsEnum[item],
814
- variant: 'inherit',
815
- size: 'm'
816
- }
817
- }
818
- })], 1);
819
- }), 1) : _vm._e(), _vm._v(" "), _vm.toolbarButtonRef ? _c('or-menu', {
820
- ref: "menuRef",
821
- attrs: {
822
- "trigger": _vm.toolbarButtonRef[_vm.getIndexOfHeading].root,
823
- "placement": "bottom-start"
824
- }
825
- }, [_vm._l(_vm.headingLevels, function (heading) {
826
- return _c('or-menu-item', {
827
- key: heading,
828
- on: {
829
- "click": function ($event) {
830
- return _vm.handleToolbarClick('heading', heading);
831
- }
832
- }
833
- }, [_vm._v("\n Heading " + _vm._s(heading) + "\n ")]);
834
- }), _vm._v(" "), _c('or-menu-item', {
835
- on: {
836
- "click": function ($event) {
837
- return _vm.handleToolbarClick('heading');
838
- }
839
- }
840
- }, [_vm._v("\n None\n ")])], 2) : _vm._e(), _vm._v(" "), _c('or-modal', {
841
- attrs: {
842
- "is-open": _vm.isOpenLinkModal,
843
- "size": "s"
844
- },
845
- scopedSlots: _vm._u([{
846
- key: "header",
847
- fn: function () {
848
- return [_c('p', {
849
- staticClass: "text-headline-2"
850
- }, [_vm._v("\n Add Link\n ")])];
851
- },
852
- proxy: true
853
- }, {
854
- key: "footer",
855
- fn: function () {
856
- return [_c('div', {
857
- staticClass: "flex ml-auto gap-md"
858
- }, [_c('or-button', {
859
- attrs: {
860
- "variant": "outlined"
861
- },
862
- on: {
863
- "click": _vm.discardLink
864
- }
865
- }, [_c('p', [_vm._v("Cancel")])]), _vm._v(" "), _c('or-button', {
866
- on: {
867
- "click": _vm.attachLink
868
- }
869
- }, [_c('p', [_vm._v("Save")])])], 1)];
870
- },
871
- proxy: true
872
- }])
873
- }, [_vm._v(" "), _c('div', [_c('or-label', [_vm._v("\n Text\n ")]), _vm._v(" "), _c('or-input', {
874
- staticClass: "pb-md",
875
- attrs: {
876
- "placeholder": "Placeholder"
877
- },
878
- model: {
879
- value: _vm.text,
880
- callback: function ($$v) {
881
- _vm.text = $$v;
882
- },
883
- expression: "text"
884
- }
885
- }), _vm._v(" "), _c('or-label', [_vm._v("\n Link\n ")]), _vm._v(" "), _c('or-input', {
886
- attrs: {
887
- "placeholder": "Placeholder"
888
- },
889
- model: {
890
- value: _vm.link,
891
- callback: function ($$v) {
892
- _vm.link = $$v;
893
- },
894
- expression: "link"
895
- }
896
- })], 1)])], 1);
897
- };
898
- var __vue_staticRenderFns__ = [];
899
-
900
- /* style */
901
- const __vue_inject_styles__ = undefined;
902
- /* scoped */
903
- const __vue_scope_id__ = undefined;
904
- /* module identifier */
905
- const __vue_module_identifier__ = undefined;
906
- /* functional template */
907
- const __vue_is_functional_template__ = false;
908
- /* style inject */
909
-
910
- /* style inject SSR */
911
-
912
- /* style inject shadow dom */
913
-
914
- const __vue_component__ = /*#__PURE__*/normalizeComponent({
915
- render: __vue_render__,
916
- staticRenderFns: __vue_staticRenderFns__
917
- }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
918
-
919
- export { Formats as F, __vue_component__ as _ };