@onereach/ui-components 6.2.0-beta.3289.0 → 6.2.0-beta.3294.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 (588) hide show
  1. package/dist/bundled/{v3/_baseAssignValue-2250dbc9.js → v2/_baseAssignValue-22e630c1.js} +1 -1
  2. package/dist/bundled/v2/{_baseIsEqual-fe2002b6.js → _baseIsEqual-a1cc156c.js} +5 -5
  3. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +1 -1
  4. package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
  5. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +1 -1
  6. package/dist/bundled/v2/components/OrCode/OrCode.js +3 -3
  7. package/dist/bundled/v2/components/OrCode/index.js +5 -3
  8. package/dist/bundled/v2/components/OrCode/lang.js +5 -3
  9. package/dist/bundled/v2/components/OrCode/libs.js +5 -3
  10. package/dist/bundled/v2/components/OrCode/theme.js +1 -1
  11. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +46 -30
  12. package/dist/bundled/v2/components/OrCodeV3/OrCode.vue.d.ts +4 -3
  13. package/dist/bundled/v2/components/OrCodeV3/index.d.ts +1 -0
  14. package/dist/bundled/v2/components/OrCodeV3/index.js +3 -0
  15. package/dist/bundled/v2/components/OrCodeV3/libs.d.ts +3 -0
  16. package/dist/bundled/v2/components/OrCodeV3/libs.js +3 -0
  17. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +1 -1
  18. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -2
  19. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +3 -3
  20. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
  21. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -2
  22. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +4 -4
  23. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
  24. package/dist/bundled/v2/components/OrFloating/OrFloating.js +1 -1
  25. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
  26. package/dist/bundled/v2/components/OrInput/OrInput.js +1 -1
  27. package/dist/bundled/v2/components/OrList/OrList.js +8 -8
  28. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +1 -1
  29. package/dist/bundled/v2/components/OrModal/OrModal.js +1347 -3
  30. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
  31. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +1 -1
  32. package/dist/bundled/v2/components/OrPassword/OrPassword.js +1 -1
  33. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
  34. package/dist/bundled/v2/components/OrProgress/OrProgress.js +1 -1
  35. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -2
  36. package/dist/bundled/v2/components/OrRadio/OrRadio.js +2 -2
  37. package/dist/bundled/v2/components/OrSearch/OrSearch.js +1 -1
  38. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +1 -1
  39. package/dist/bundled/v2/components/OrSelect/OrSelect.js +7 -7
  40. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +1 -1
  41. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +1 -1
  42. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +1 -1
  43. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +1 -1
  44. package/dist/bundled/v2/components/OrSlider/OrSlider.js +2 -2
  45. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +1 -1
  46. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +1 -1
  47. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +1 -1
  48. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -2
  49. package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
  50. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
  51. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +1 -1
  52. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +1 -1
  53. package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
  54. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
  55. package/dist/bundled/v2/components/OrTreeV3/OrTree.js +1 -1
  56. package/dist/bundled/v2/components/index.d.ts +0 -1
  57. package/dist/bundled/v2/components/index.js +6 -5
  58. package/dist/bundled/{v3/dom-cec392f3.js → v2/dom-bb55b42a.js} +2 -2
  59. package/dist/bundled/v2/{eq-44ea4d70.js → eq-95cd2573.js} +1 -1
  60. package/dist/bundled/{v3/get-34aa21f4.js → v2/get-ab1b7d93.js} +3 -3
  61. package/dist/bundled/v2/hooks/useOverflow.js +2 -2
  62. package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
  63. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +1 -1
  64. package/dist/bundled/v2/{index-2b20f5f5.js → index-048e41ad.js} +2 -2
  65. package/dist/bundled/v2/{index-0c287ab6.js → index-0789b976.js} +3 -3
  66. package/dist/bundled/v2/index-0ad0f605.js +826 -0
  67. package/dist/bundled/{v3/index-de4975a3.js → v2/index-379ec85d.js} +10 -842
  68. package/dist/bundled/v2/index-5e5d18d5.js +759 -0
  69. package/dist/bundled/v2/index-7211e1c5.js +361 -0
  70. package/dist/bundled/{v3/index-749f3444.js → v2/index-82718479.js} +1 -1
  71. package/dist/bundled/v2/{index-06f6bbe4.js → index-8a1b5b9c.js} +1 -1
  72. package/dist/bundled/v2/index-9e0bdde8.js +94 -0
  73. package/dist/bundled/v2/{index-3cae2d25.js → index-b261a47e.js} +462 -294
  74. package/dist/bundled/v2/index-c321391a.js +1892 -0
  75. package/dist/bundled/v2/index-d02cdc81.js +1598 -0
  76. package/dist/bundled/{v3/index-3e178101.js → v2/index-ea7a689d.js} +32 -471
  77. package/dist/bundled/v2/index.js +8 -7
  78. package/dist/bundled/{v3/isArrayLike-e7fb5cae.js → v2/isArrayLike-e46b8eac.js} +1 -1
  79. package/dist/bundled/v2/{isEqual-7a8e6106.js → isEqual-44382965.js} +1 -1
  80. package/dist/bundled/{v3/isObject-b7415fc1.js → v2/isObject-fe8b81fd.js} +1 -1
  81. package/dist/bundled/{v3/range-82efa3d4.js → v2/range-6f26eda4.js} +4 -4
  82. package/dist/bundled/v2/{round-567ede34.js → round-f34440f4.js} +4 -4
  83. package/dist/bundled/v2/{toFinite-bc59ffb0.js → toFinite-74227610.js} +1 -1
  84. package/dist/bundled/v2/{toInteger-9fa0151c.js → toInteger-2fd112a9.js} +1 -1
  85. package/dist/bundled/v2/{toString-b6e4472a.js → toString-f3196832.js} +1 -1
  86. package/dist/bundled/v2/utils/functions/dom.js +2 -2
  87. package/dist/bundled/v2/utils/index.js +1 -1
  88. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-10c2add0.js → OrAvatar.vue_vue_type_script_lang-95fe92f9.js} +1 -1
  89. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-aca902f2.js → OrBottomSheet.vue_vue_type_script_lang-33bfe3c4.js} +2 -2
  90. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-db6595f6.js → OrButton.vue_vue_type_script_lang-85f1cb3f.js} +1 -1
  91. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-0fb2b270.js → OrButton.vue_vue_type_script_lang-9d4ac135.js} +1 -1
  92. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-bf9018d5.js → OrCardCollection.vue_vue_type_script_lang-0ba13713.js} +3 -3
  93. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-02606ec6.js → OrCardCollection.vue_vue_type_script_lang-fe769106.js} +3 -3
  94. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-de28fcaf.js → OrCheckbox.vue_vue_type_script_lang-576b5f5d.js} +1 -1
  95. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-2d4980de.js → OrCheckboxGroup.vue_vue_type_script_lang-c05088ee.js} +1 -1
  96. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-8d9ed718.js → OrCheckboxTree.vue_vue_type_script_lang-bd0fa916.js} +2 -2
  97. package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-cacd81e5.js → OrChip.vue_vue_type_script_lang-8ccf3d2d.js} +1 -1
  98. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-e1f37564.js → OrChips.vue_vue_type_script_lang-70be98b5.js} +1 -1
  99. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-2300b956.js → OrCode.vue_vue_type_script_lang-1df17839.js} +5 -5
  100. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-52b0ab4c.js → OrCode.vue_vue_type_script_lang-ad985f8f.js} +48 -32
  101. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-be1c8c66.js → OrCollapse.vue_vue_type_script_lang-69503c45.js} +1 -1
  102. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-95d92da0.js → OrColorPicker.vue_vue_type_script_lang-153ef60d.js} +3 -3
  103. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-19922dd5.js → OrConfirm.vue_vue_type_script_lang-808367f7.js} +6 -6
  104. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-4e9966f2.js → OrConfirm.vue_vue_type_script_lang-cf909881.js} +6 -6
  105. package/dist/bundled/v3/{OrContextMenu.vue_vue_type_script_lang-f40c0d92.js → OrContextMenu.vue_vue_type_script_lang-b4e0569b.js} +1 -1
  106. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-04273abb.js → OrDatePicker.vue_vue_type_script_lang-b1130337.js} +4 -4
  107. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-66b3611e.js → OrDateTimePicker.vue_vue_type_script_lang-37b1996e.js} +5 -5
  108. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-73b5c809.js → OrDateTimePicker.vue_vue_type_script_lang-98f80113.js} +7 -7
  109. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-2ff0e8f9.js → OrDateTimePickerMonthSelect-7fcfccdf.js} +3 -3
  110. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-135da975.js → OrDateTimePickerPopoverHeader-78fe6852.js} +1 -1
  111. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-fe701e75.js → OrDateTimePickerTimeSelect-56bff361.js} +1 -1
  112. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-38aa1d83.js → OrFloating.vue_vue_type_script_lang-d579c010.js} +1 -1
  113. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-f3cbff23.js → OrIcon.vue_vue_type_script_lang-23dad121.js} +1 -1
  114. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-64e7b6ab.js → OrIconButton.vue_vue_type_script_lang-20210ebe.js} +1 -1
  115. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-f6bf7dda.js → OrIconButton.vue_vue_type_script_lang-85c7ef74.js} +2 -2
  116. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-0bdbf730.js → OrInlineInput.vue_vue_type_script_lang-e78cacec.js} +1 -1
  117. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-72c9e44e.js → OrInlineTextEdit.vue_vue_type_script_lang-d7f24fd6.js} +4 -4
  118. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-81430067.js → OrInlineTextarea.vue_vue_type_script_lang-e69604e1.js} +1 -1
  119. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-39d1a293.js → OrInput.vue_vue_type_script_lang-4c9af1b9.js} +2 -2
  120. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-515ff78a.js → OrInput.vue_vue_type_script_lang-863d3195.js} +2 -2
  121. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-bc49c1ff.js → OrList.vue_vue_type_script_lang-cb637c9e.js} +11 -11
  122. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-3d17e3d2.js → OrListOfInputs.vue_vue_type_script_lang-31f604eb.js} +4 -4
  123. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-0ea76e45.js → OrLoader.vue_vue_type_script_lang-b0347c70.js} +1 -1
  124. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-edc12857.js → OrMenu.vue_vue_type_script_lang-80d3a47b.js} +1 -1
  125. package/dist/bundled/v3/{useFocusTrap-2302b843.js → OrModal.vue_vue_type_script_lang-22ca96e3.js} +100 -4
  126. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-d2339f74.js → OrModal.vue_vue_type_script_lang-fe9b0d62.js} +2 -2
  127. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-81d7cfef.js → OrNotification.vue_vue_type_script_lang-17ae96e3.js} +2 -2
  128. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-8dafacd3.js → OrNotification.vue_vue_type_script_lang-bb93ca64.js} +1 -1
  129. package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-b832e611.js → OrNumberInput.vue_vue_type_script_lang-4cc194fc.js} +1 -1
  130. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-0c84fa14.js → OrOverflowMenu.vue_vue_type_script_lang-ab2d6d33.js} +5 -5
  131. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-2b256188.js → OrOverlay.vue_vue_type_script_lang-7e9b1817.js} +1 -1
  132. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-91dec212.js → OrPagination.vue_vue_type_script_lang-6e3a561d.js} +2 -2
  133. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-9228b54e.js → OrPassword.vue_vue_type_script_lang-fc8438a8.js} +3 -3
  134. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-2fba84de.js → OrPopover.vue_vue_type_script_lang-b6dba09f.js} +3 -3
  135. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-56b4a5da.js → OrProgress.vue_vue_type_script_lang-78c933d7.js} +2 -2
  136. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-c4bd7133.js → OrProgress.vue_vue_type_script_lang-a99362ae.js} +1 -1
  137. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-a4f043e9.js → OrRadio.vue_vue_type_script_lang-3a551734.js} +2 -2
  138. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-6a34ea7a.js → OrSearch.vue_vue_type_script_lang-981f3cf0.js} +3 -3
  139. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-47c2a5b0.js → OrSearch.vue_vue_type_script_lang-9e5da97d.js} +2 -2
  140. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-0edae1cf.js → OrSelect.vue_vue_type_script_lang-d496bc7b.js} +11 -11
  141. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-8b59bb49.js → OrSelect.vue_vue_type_script_lang-f651614d.js} +5 -5
  142. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-cb96511d.js → OrSidebar.vue_vue_type_script_lang-3ea9752f.js} +2 -2
  143. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-bd864765.js → OrSidebar.vue_vue_type_script_lang-f5d46ede.js} +1 -1
  144. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-502607ef.js → OrSkeletonText.vue_vue_type_script_lang-26b3cfd1.js} +1 -1
  145. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js → OrSkeletonText.vue_vue_type_script_lang-c2a5ab96.js} +1 -1
  146. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-79cca9e2.js → OrSlider.vue_vue_type_script_lang-ef8699ca.js} +3 -3
  147. package/dist/bundled/v3/{OrSorting.vue_vue_type_script_lang-8ea37e10.js → OrSorting.vue_vue_type_script_lang-7496f136.js} +2 -2
  148. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-33639493.js → OrStepper.vue_vue_type_script_lang-c7f9582b.js} +1 -1
  149. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-fe6a5512.js → OrSwitch.vue_vue_type_script_lang-51b857e2.js} +1 -1
  150. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-97da5baa.js → OrTabs.vue_vue_type_script_lang-2e57804a.js} +2 -2
  151. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-b62c0b79.js → OrTag.vue_vue_type_script_lang-0a36cba8.js} +1 -1
  152. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-62e1f5a7.js → OrTag.vue_vue_type_script_lang-b66887dd.js} +1 -1
  153. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-bdbe85c7.js → OrTagInput.vue_vue_type_script_lang-a00eb885.js} +2 -2
  154. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-cb8c3c31.js → OrTags.vue_vue_type_script_lang-938b34b7.js} +3 -3
  155. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-5624556c.js → OrTextarea.vue_vue_type_script_lang-325050eb.js} +2 -2
  156. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-d0db6077.js → OrTextbox.vue_vue_type_script_lang-5c706917.js} +3 -3
  157. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-25e5dd01.js → OrTimePicker.vue_vue_type_script_lang-8c297fdd.js} +4 -4
  158. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-ad659b6a.js → OrToastContainer.vue_vue_type_script_lang-07b75b00.js} +1 -1
  159. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-9a3e66a2.js → OrToastContainer.vue_vue_type_script_lang-8d3ed93a.js} +1 -1
  160. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-c0cc67c5.js → OrTooltip.vue_vue_type_script_lang-81dbde5d.js} +1 -1
  161. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-288c978f.js → OrTooltip.vue_vue_type_script_lang-b201e580.js} +1 -1
  162. package/dist/bundled/v3/{OrTree.vue_vue_type_script_lang-ce5b0577.js → OrTree.vue_vue_type_script_lang-bd439beb.js} +2 -2
  163. package/dist/bundled/{v2/_baseAssignValue-2250dbc9.js → v3/_baseAssignValue-22e630c1.js} +1 -1
  164. package/dist/bundled/v3/{_baseIsEqual-fe2002b6.js → _baseIsEqual-a1cc156c.js} +5 -5
  165. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +2 -2
  166. package/dist/bundled/v3/components/OrAvatar/index.js +1 -1
  167. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
  168. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +1 -1
  169. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +1 -1
  170. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +2 -2
  171. package/dist/bundled/v3/components/OrButtonV2/index.js +2 -2
  172. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +2 -2
  173. package/dist/bundled/v3/components/OrButtonV3/index.js +1 -1
  174. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +2 -2
  175. package/dist/bundled/v3/components/OrCardCollection/index.js +1 -1
  176. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  177. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +1 -1
  178. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +2 -2
  179. package/dist/bundled/v3/components/OrCheckbox/index.js +1 -1
  180. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
  181. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +1 -1
  182. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
  183. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +1 -1
  184. package/dist/bundled/v3/components/OrChip/OrChip.js +2 -2
  185. package/dist/bundled/v3/components/OrChip/index.js +1 -1
  186. package/dist/bundled/v3/components/OrChips/OrChips.js +2 -2
  187. package/dist/bundled/v3/components/OrChips/index.js +2 -2
  188. package/dist/bundled/v3/components/OrCode/OrCode.js +2 -2
  189. package/dist/bundled/v3/components/OrCode/index.js +6 -4
  190. package/dist/bundled/v3/components/OrCode/lang.js +5 -3
  191. package/dist/bundled/v3/components/OrCode/libs.js +5 -3
  192. package/dist/bundled/v3/components/OrCode/theme.js +1 -1
  193. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +2 -2
  194. package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +4 -3
  195. package/dist/bundled/v3/components/OrCodeV3/index.d.ts +1 -0
  196. package/dist/bundled/v3/components/OrCodeV3/index.js +4 -1
  197. package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +3 -0
  198. package/dist/bundled/v3/components/OrCodeV3/libs.js +3 -0
  199. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +2 -2
  200. package/dist/bundled/v3/components/OrCollapse/index.js +1 -1
  201. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +2 -2
  202. package/dist/bundled/v3/components/OrColorPicker/index.js +1 -1
  203. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +2 -2
  204. package/dist/bundled/v3/components/OrConfirm/index.js +1 -1
  205. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +2 -2
  206. package/dist/bundled/v3/components/OrConfirmV3/index.js +1 -1
  207. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +2 -2
  208. package/dist/bundled/v3/components/OrContextMenuV3/index.js +1 -1
  209. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +2 -2
  210. package/dist/bundled/v3/components/OrDatePickerV3/index.js +1 -1
  211. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +2 -2
  212. package/dist/bundled/v3/components/OrDateTimePicker/index.js +1 -1
  213. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -2
  214. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +1 -1
  215. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -2
  216. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +1 -1
  217. package/dist/bundled/v3/components/OrFloating/OrFloating.js +2 -2
  218. package/dist/bundled/v3/components/OrFloating/index.js +1 -1
  219. package/dist/bundled/v3/components/OrIcon/OrIcon.js +2 -2
  220. package/dist/bundled/v3/components/OrIcon/index.js +1 -1
  221. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +2 -2
  222. package/dist/bundled/v3/components/OrIconButtonV2/index.js +1 -1
  223. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +2 -2
  224. package/dist/bundled/v3/components/OrIconButtonV3/index.js +1 -1
  225. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
  226. package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
  227. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -2
  228. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +1 -1
  229. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  230. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
  231. package/dist/bundled/v3/components/OrInput/OrInput.js +2 -2
  232. package/dist/bundled/v3/components/OrInput/index.js +1 -1
  233. package/dist/bundled/v3/components/OrInputV3/OrInput.js +2 -2
  234. package/dist/bundled/v3/components/OrInputV3/index.js +1 -1
  235. package/dist/bundled/v3/components/OrList/OrList.js +2 -2
  236. package/dist/bundled/v3/components/OrList/index.js +1 -1
  237. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +2 -2
  238. package/dist/bundled/v3/components/OrListOfInputs/index.js +1 -1
  239. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +2 -2
  240. package/dist/bundled/v3/components/OrLoaderV3/index.js +1 -1
  241. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +2 -2
  242. package/dist/bundled/v3/components/OrMenuV3/index.js +1 -1
  243. package/dist/bundled/v3/components/OrModal/OrModal.js +2 -2
  244. package/dist/bundled/v3/components/OrModal/index.js +1 -1
  245. package/dist/bundled/v3/components/OrModalV3/OrModal.js +2 -2
  246. package/dist/bundled/v3/components/OrModalV3/index.js +1 -1
  247. package/dist/bundled/v3/components/OrNotification/OrNotification.js +2 -2
  248. package/dist/bundled/v3/components/OrNotification/index.js +1 -1
  249. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +2 -2
  250. package/dist/bundled/v3/components/OrNotificationV3/index.js +1 -1
  251. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +2 -2
  252. package/dist/bundled/v3/components/OrNumberInput/index.js +1 -1
  253. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +2 -2
  254. package/dist/bundled/v3/components/OrOverflowMenu/index.js +1 -1
  255. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +2 -2
  256. package/dist/bundled/v3/components/OrOverlayV3/index.js +1 -1
  257. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +2 -2
  258. package/dist/bundled/v3/components/OrPaginationV3/index.js +1 -1
  259. package/dist/bundled/v3/components/OrPassword/OrPassword.js +2 -2
  260. package/dist/bundled/v3/components/OrPassword/index.js +1 -1
  261. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +2 -2
  262. package/dist/bundled/v3/components/OrPopoverV3/index.js +1 -1
  263. package/dist/bundled/v3/components/OrProgress/OrProgress.js +2 -2
  264. package/dist/bundled/v3/components/OrProgress/index.js +1 -1
  265. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +2 -2
  266. package/dist/bundled/v3/components/OrProgressV3/index.js +1 -1
  267. package/dist/bundled/v3/components/OrRadio/OrRadio.js +2 -2
  268. package/dist/bundled/v3/components/OrRadio/index.js +1 -1
  269. package/dist/bundled/v3/components/OrSearch/OrSearch.js +2 -2
  270. package/dist/bundled/v3/components/OrSearch/index.js +1 -1
  271. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +2 -2
  272. package/dist/bundled/v3/components/OrSearchV3/index.js +1 -1
  273. package/dist/bundled/v3/components/OrSelect/OrSelect.js +2 -2
  274. package/dist/bundled/v3/components/OrSelect/index.js +1 -1
  275. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +2 -2
  276. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  277. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +2 -2
  278. package/dist/bundled/v3/components/OrSidebar/index.js +1 -1
  279. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +2 -2
  280. package/dist/bundled/v3/components/OrSidebarV3/index.js +1 -1
  281. package/dist/bundled/v3/components/OrSkeleton/index.js +1 -1
  282. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +2 -2
  283. package/dist/bundled/v3/components/OrSkeletonText/index.js +1 -1
  284. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +2 -2
  285. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +1 -1
  286. package/dist/bundled/v3/components/OrSkeletonV3/index.js +1 -1
  287. package/dist/bundled/v3/components/OrSlider/OrSlider.js +2 -2
  288. package/dist/bundled/v3/components/OrSlider/index.js +1 -1
  289. package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +2 -2
  290. package/dist/bundled/v3/components/OrSortingV3/index.js +1 -1
  291. package/dist/bundled/v3/components/OrStepper/OrStepper.js +2 -2
  292. package/dist/bundled/v3/components/OrStepper/index.js +1 -1
  293. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +2 -2
  294. package/dist/bundled/v3/components/OrSwitchV3/index.js +1 -1
  295. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +2 -2
  296. package/dist/bundled/v3/components/OrTabsV3/index.js +1 -1
  297. package/dist/bundled/v3/components/OrTag/OrTag.js +2 -2
  298. package/dist/bundled/v3/components/OrTag/index.js +1 -1
  299. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +2 -2
  300. package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
  301. package/dist/bundled/v3/components/OrTagV3/OrTag.js +2 -2
  302. package/dist/bundled/v3/components/OrTagV3/index.js +1 -1
  303. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +2 -2
  304. package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
  305. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +2 -2
  306. package/dist/bundled/v3/components/OrTextarea/index.js +1 -1
  307. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +2 -2
  308. package/dist/bundled/v3/components/OrTextbox/index.js +1 -1
  309. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +2 -2
  310. package/dist/bundled/v3/components/OrTimePickerV3/index.js +1 -1
  311. package/dist/bundled/v3/components/OrToast/OrToast.js +2 -2
  312. package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
  313. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
  314. package/dist/bundled/v3/components/OrToast/index.js +1 -1
  315. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +2 -2
  316. package/dist/bundled/v3/components/OrToastContainer/index.js +1 -1
  317. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +2 -2
  318. package/dist/bundled/v3/components/OrToastContainerV3/index.js +1 -1
  319. package/dist/bundled/v3/components/OrToastV3/OrToast.js +2 -2
  320. package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
  321. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
  322. package/dist/bundled/v3/components/OrToastV3/index.js +1 -1
  323. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +2 -2
  324. package/dist/bundled/v3/components/OrTooltip/index.js +1 -1
  325. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +2 -2
  326. package/dist/bundled/v3/components/OrTooltipV3/index.js +1 -1
  327. package/dist/bundled/v3/components/OrTreeV3/OrTree.js +2 -2
  328. package/dist/bundled/v3/components/OrTreeV3/index.js +1 -1
  329. package/dist/bundled/v3/components/index.d.ts +0 -1
  330. package/dist/bundled/v3/components/index.js +79 -78
  331. package/dist/bundled/{v2/dom-cec392f3.js → v3/dom-bb55b42a.js} +2 -2
  332. package/dist/bundled/v3/{eq-44ea4d70.js → eq-95cd2573.js} +1 -1
  333. package/dist/bundled/{v2/get-34aa21f4.js → v3/get-ab1b7d93.js} +3 -3
  334. package/dist/bundled/v3/hooks/useOverflow.js +2 -2
  335. package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
  336. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +1 -1
  337. package/dist/bundled/v3/index-168d8a72.js +826 -0
  338. package/dist/bundled/v3/{index-0a01982b.js → index-2db1212e.js} +2 -2
  339. package/dist/bundled/{v2/index-de4975a3.js → v3/index-3074ab3c.js} +10 -842
  340. package/dist/bundled/v3/index-3de4069f.js +361 -0
  341. package/dist/bundled/{v2/index-dac0fb7c.js → v3/index-51eb57bd.js} +1 -1
  342. package/dist/bundled/v3/index-540ed5cb.js +1892 -0
  343. package/dist/bundled/v3/{index-40b35d94.js → index-5e8e7a46.js} +1 -1
  344. package/dist/bundled/v3/{index-3cae2d25.js → index-73699920.js} +462 -294
  345. package/dist/bundled/v3/index-a59e89b4.js +94 -0
  346. package/dist/bundled/v3/index-c661340a.js +759 -0
  347. package/dist/bundled/v3/index-ce11b31b.js +1598 -0
  348. package/dist/bundled/v3/{index-0c287ab6.js → index-e0aaa8dc.js} +3 -3
  349. package/dist/bundled/{v2/index-3e178101.js → v3/index-fdffd536.js} +32 -471
  350. package/dist/bundled/v3/index.js +81 -81
  351. package/dist/bundled/{v2/isArrayLike-e7fb5cae.js → v3/isArrayLike-e46b8eac.js} +1 -1
  352. package/dist/bundled/v3/{isEqual-7a8e6106.js → isEqual-44382965.js} +1 -1
  353. package/dist/bundled/{v2/isObject-b7415fc1.js → v3/isObject-fe8b81fd.js} +1 -1
  354. package/dist/bundled/{v2/range-82efa3d4.js → v3/range-6f26eda4.js} +4 -4
  355. package/dist/bundled/v3/{round-567ede34.js → round-f34440f4.js} +4 -4
  356. package/dist/bundled/v3/{toFinite-bc59ffb0.js → toFinite-74227610.js} +1 -1
  357. package/dist/bundled/v3/{toInteger-9fa0151c.js → toInteger-2fd112a9.js} +1 -1
  358. package/dist/bundled/v3/{toString-b6e4472a.js → toString-f3196832.js} +1 -1
  359. package/dist/bundled/v3/utils/functions/dom.js +2 -2
  360. package/dist/bundled/v3/utils/index.js +1 -1
  361. package/dist/esm/v2/{OrCardCollection-c27ae76f.js → OrCardCollection-63ab1dc4.js} +3 -3
  362. package/dist/esm/v2/{OrCode-4501e2df.js → OrCode-adb9790d.js} +50 -36
  363. package/dist/esm/v2/{OrConfirm-4841e1eb.js → OrConfirm-f92dc7b5.js} +1 -1
  364. package/dist/esm/v2/{OrContextMenu-01efdb43.js → OrContextMenu-abf0c884.js} +2 -2
  365. package/dist/esm/v2/{OrDatePicker-528b55ec.js → OrDatePicker-c93e57ae.js} +3 -3
  366. package/dist/esm/v2/{OrDateTimePicker-80bd401a.js → OrDateTimePicker-0bbe653c.js} +1 -1
  367. package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-8e987b8d.js → OrDateTimePicker.vue_rollup-plugin-vue_script-353b70fe.js} +3 -3
  368. package/dist/esm/v2/{OrDateTimePickerPopoverHeader-835e4e49.js → OrDateTimePickerPopoverHeader-6a40de37.js} +3 -3
  369. package/dist/esm/v2/{OrIconButton-6eda233c.js → OrIconButton-996aba66.js} +2 -2
  370. package/dist/esm/v2/{OrInlineInput-9f88fff9.js → OrInlineInput-c3329db5.js} +1 -1
  371. package/dist/esm/v2/{OrInlineTextarea-03e8b8a6.js → OrInlineTextarea-e9de4f1e.js} +1 -1
  372. package/dist/esm/v2/{OrInput-54abe165.js → OrInput-0d01816c.js} +1 -1
  373. package/dist/esm/v2/{OrMenu-c2c6473f.js → OrMenu-c7b05c91.js} +1 -1
  374. package/dist/esm/v2/{OrModal-8ea08182.js → OrModal-c6c922fd.js} +1 -1
  375. package/dist/esm/v2/{OrNotification-9875c55d.js → OrNotification-c119fcff.js} +1 -1
  376. package/dist/esm/v2/{OrPagination-c5058980.js → OrPagination-3f1b7a65.js} +2 -2
  377. package/dist/esm/v2/{OrPopover-f6114169.js → OrPopover-58fefa76.js} +1 -1
  378. package/dist/esm/v2/{OrSearch-8a834099.js → OrSearch-175c25d3.js} +1 -1
  379. package/dist/esm/v2/{OrSelect-cd37db8d.js → OrSelect-85acd45f.js} +4 -4
  380. package/dist/esm/v2/{OrSidebar-a5608742.js → OrSidebar-055f2c89.js} +1 -1
  381. package/dist/esm/v2/{OrSidebarCollapseButton-c999d09a.js → OrSidebarCollapseButton-12d111c5.js} +1 -1
  382. package/dist/esm/v2/{OrSorting-82557def.js → OrSorting-b350c4d3.js} +2 -2
  383. package/dist/esm/v2/{OrTabs-92ccb30f.js → OrTabs-f736863c.js} +2 -2
  384. package/dist/esm/v2/{OrTag-15cd89e8.js → OrTag-8ec63b23.js} +1 -1
  385. package/dist/esm/v2/{OrTagInput-f443f295.js → OrTagInput-7088d62f.js} +2 -2
  386. package/dist/esm/v2/{OrTags-b34c628e.js → OrTags-5ad71efd.js} +2 -2
  387. package/dist/esm/v2/{OrTimePicker-e711a256.js → OrTimePicker-3d65dc1b.js} +4 -4
  388. package/dist/esm/v2/{OrTooltip-a4e679bb.js → OrTooltip-17f8a7ff.js} +1 -1
  389. package/dist/esm/v2/components/index.d.ts +0 -1
  390. package/dist/esm/v2/components/index.js +30 -54
  391. package/dist/esm/v2/components/or-card-collection-v3/index.js +8 -8
  392. package/dist/esm/v2/components/or-code-v3/OrCode.vue.d.ts +4 -3
  393. package/dist/esm/v2/components/or-code-v3/index.d.ts +1 -0
  394. package/dist/esm/v2/components/or-code-v3/index.js +11 -14
  395. package/dist/esm/v2/components/or-code-v3/libs.d.ts +3 -0
  396. package/dist/esm/v2/components/or-confirm-v3/index.js +5 -5
  397. package/dist/esm/v2/components/or-context-menu-v3/index.js +3 -3
  398. package/dist/esm/v2/components/or-date-picker-v3/index.js +6 -6
  399. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +7 -7
  400. package/dist/esm/v2/components/or-icon-button-v3/index.js +3 -3
  401. package/dist/esm/v2/components/or-inline-input-v3/index.js +4 -4
  402. package/dist/esm/v2/components/or-inline-textarea-v3/index.js +4 -4
  403. package/dist/esm/v2/components/or-input-v3/index.js +4 -4
  404. package/dist/esm/v2/components/or-menu-v3/index.js +2 -2
  405. package/dist/esm/v2/components/or-modal-v3/index.js +4 -4
  406. package/dist/esm/v2/components/or-notification-v3/index.js +4 -4
  407. package/dist/esm/v2/components/or-pagination-v3/index.js +3 -3
  408. package/dist/esm/v2/components/or-popover-v3/index.js +1 -1
  409. package/dist/esm/v2/components/or-search-v3/index.js +5 -5
  410. package/dist/esm/v2/components/or-select-v3/index.js +6 -6
  411. package/dist/esm/v2/components/or-sidebar-v3/index.js +5 -5
  412. package/dist/esm/v2/components/or-sidebar-v3/partials/index.js +4 -4
  413. package/dist/esm/v2/components/or-sorting-v3/index.js +3 -3
  414. package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
  415. package/dist/esm/v2/components/or-tag-input-v3/index.js +6 -6
  416. package/dist/esm/v2/components/or-tag-v3/index.js +4 -4
  417. package/dist/esm/v2/components/or-tags-v3/index.js +5 -5
  418. package/dist/esm/v2/components/or-time-picker-v3/index.js +7 -7
  419. package/dist/esm/v2/components/or-toast-v3/index.js +4 -4
  420. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/index.js +4 -4
  421. package/dist/esm/v2/components/or-tooltip-v3/index.js +2 -2
  422. package/dist/esm/v2/index.js +30 -54
  423. package/dist/esm/v2/{types-635157b1.js → types-b3ec7224.js} +1 -1
  424. package/dist/esm/v3/{OrCardCollection-bddf72ef.js → OrCardCollection-2b5f1d79.js} +3 -3
  425. package/dist/esm/v3/{OrCode-a63c3a7b.js → OrCode-5457417e.js} +50 -36
  426. package/dist/esm/v3/{OrConfirm-d304e9a4.js → OrConfirm-bf771b4d.js} +1 -1
  427. package/dist/esm/v3/{OrContextMenu-bf1e07ae.js → OrContextMenu-2d8d26e9.js} +2 -2
  428. package/dist/esm/v3/{OrDatePicker-87aef206.js → OrDatePicker-88b59005.js} +3 -3
  429. package/dist/esm/v3/{OrDateTimePicker-738f9cd3.js → OrDateTimePicker-f9e46f7e.js} +3 -3
  430. package/dist/esm/v3/{OrDateTimePickerPopoverHeader-03ae7d09.js → OrDateTimePickerPopoverHeader-d3058267.js} +3 -3
  431. package/dist/esm/v3/{OrIconButton-a69c7775.js → OrIconButton-c72e1a04.js} +2 -2
  432. package/dist/esm/v3/{OrInlineInput-246d88ca.js → OrInlineInput-19a4ac87.js} +1 -1
  433. package/dist/esm/v3/{OrInlineTextarea-c9febb84.js → OrInlineTextarea-0853564b.js} +1 -1
  434. package/dist/esm/v3/{OrInput-e12b0489.js → OrInput-7729da3b.js} +1 -1
  435. package/dist/esm/v3/{OrMenu-9a82f18f.js → OrMenu-3bcc528b.js} +1 -1
  436. package/dist/esm/v3/{OrModal-fc3bb76e.js → OrModal-fb37e638.js} +1 -1
  437. package/dist/esm/v3/{OrNotification-c8cd9f3d.js → OrNotification-5d385b61.js} +1 -1
  438. package/dist/esm/v3/{OrPagination-cc0b041a.js → OrPagination-d7acbb6b.js} +2 -2
  439. package/dist/esm/v3/{OrPopover-7b2af064.js → OrPopover-2132e8b9.js} +1 -1
  440. package/dist/esm/v3/{OrSearch-bc259374.js → OrSearch-16664742.js} +1 -1
  441. package/dist/esm/v3/{OrSelect-a7d3c84d.js → OrSelect-9001a22a.js} +4 -4
  442. package/dist/esm/v3/{OrSidebar-8837a93e.js → OrSidebar-83432ba3.js} +1 -1
  443. package/dist/esm/v3/{OrSidebarCollapseButton-f44951ac.js → OrSidebarCollapseButton-463aa3a0.js} +1 -1
  444. package/dist/esm/v3/{OrSorting-6baec1ab.js → OrSorting-aa200e88.js} +2 -2
  445. package/dist/esm/v3/{OrTabs-2ab1aefa.js → OrTabs-63ce33ae.js} +2 -2
  446. package/dist/esm/v3/{OrTag-2a3d7293.js → OrTag-5d7c0e75.js} +1 -1
  447. package/dist/esm/v3/{OrTagInput-ccb72239.js → OrTagInput-649f9b50.js} +2 -2
  448. package/dist/esm/v3/{OrTags-69e90412.js → OrTags-cb152033.js} +2 -2
  449. package/dist/esm/v3/{OrTimePicker-a3870a62.js → OrTimePicker-f942db00.js} +4 -4
  450. package/dist/esm/v3/{OrTooltip-5bf6890a.js → OrTooltip-ad6e08ab.js} +1 -1
  451. package/dist/esm/v3/components/index.d.ts +0 -1
  452. package/dist/esm/v3/components/index.js +29 -53
  453. package/dist/esm/v3/components/or-card-collection-v3/index.js +8 -8
  454. package/dist/esm/v3/components/or-code-v3/OrCode.vue.d.ts +4 -3
  455. package/dist/esm/v3/components/or-code-v3/index.d.ts +1 -0
  456. package/dist/esm/v3/components/or-code-v3/index.js +11 -14
  457. package/dist/esm/v3/components/or-code-v3/libs.d.ts +3 -0
  458. package/dist/esm/v3/components/or-confirm-v3/index.js +5 -5
  459. package/dist/esm/v3/components/or-context-menu-v3/index.js +3 -3
  460. package/dist/esm/v3/components/or-date-picker-v3/index.js +6 -6
  461. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +6 -6
  462. package/dist/esm/v3/components/or-icon-button-v3/index.js +3 -3
  463. package/dist/esm/v3/components/or-inline-input-v3/index.js +4 -4
  464. package/dist/esm/v3/components/or-inline-textarea-v3/index.js +4 -4
  465. package/dist/esm/v3/components/or-input-v3/index.js +4 -4
  466. package/dist/esm/v3/components/or-menu-v3/index.js +2 -2
  467. package/dist/esm/v3/components/or-modal-v3/index.js +4 -4
  468. package/dist/esm/v3/components/or-notification-v3/index.js +4 -4
  469. package/dist/esm/v3/components/or-pagination-v3/index.js +3 -3
  470. package/dist/esm/v3/components/or-popover-v3/index.js +1 -1
  471. package/dist/esm/v3/components/or-search-v3/index.js +5 -5
  472. package/dist/esm/v3/components/or-select-v3/index.js +6 -6
  473. package/dist/esm/v3/components/or-sidebar-v3/index.js +5 -5
  474. package/dist/esm/v3/components/or-sidebar-v3/partials/index.js +4 -4
  475. package/dist/esm/v3/components/or-sorting-v3/index.js +3 -3
  476. package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
  477. package/dist/esm/v3/components/or-tag-input-v3/index.js +6 -6
  478. package/dist/esm/v3/components/or-tag-v3/index.js +4 -4
  479. package/dist/esm/v3/components/or-tags-v3/index.js +5 -5
  480. package/dist/esm/v3/components/or-time-picker-v3/index.js +7 -7
  481. package/dist/esm/v3/components/or-toast-v3/index.js +4 -4
  482. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/index.js +4 -4
  483. package/dist/esm/v3/components/or-tooltip-v3/index.js +2 -2
  484. package/dist/esm/v3/index.js +29 -53
  485. package/dist/esm/v3/{types-c4c1e2cc.js → types-777d6e58.js} +1 -1
  486. package/package.json +6 -22
  487. package/src/components/index.ts +0 -1
  488. package/src/components/or-code-v3/OrCode.vue +64 -50
  489. package/src/components/or-code-v3/index.ts +1 -0
  490. package/src/components/or-code-v3/libs.ts +6 -0
  491. package/src/components/or-popover-v3/OrPopover.vue +1 -1
  492. package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +0 -7
  493. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -11640
  494. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -194
  495. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +0 -2
  496. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +0 -2
  497. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +0 -5
  498. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +0 -7
  499. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +0 -6
  500. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +0 -38
  501. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
  502. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -42
  503. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
  504. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -183
  505. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
  506. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -1
  507. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -17
  508. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -199
  509. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
  510. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  511. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
  512. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +0 -2
  513. package/dist/bundled/v2/index-1b2cfcc1.js +0 -9715
  514. package/dist/bundled/v2/index-666dfe59.js +0 -4048
  515. package/dist/bundled/v2/index-9444e0d2.js +0 -115
  516. package/dist/bundled/v2/index-f671afe5.js +0 -7127
  517. package/dist/bundled/v2/markdown-119394e1.js +0 -15365
  518. package/dist/bundled/v2/useFocusTrap-d1b2c0b4.js +0 -1349
  519. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-f1e9175d.js +0 -101
  520. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-b01b8ae3.js +0 -11380
  521. package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +0 -7
  522. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -202
  523. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -194
  524. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -2
  525. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -2
  526. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -5
  527. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
  528. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
  529. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
  530. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
  531. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -42
  532. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
  533. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -183
  534. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
  535. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -1
  536. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -17
  537. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -199
  538. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
  539. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  540. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
  541. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -2
  542. package/dist/bundled/v3/index-1b2cfcc1.js +0 -9715
  543. package/dist/bundled/v3/index-666dfe59.js +0 -4048
  544. package/dist/bundled/v3/index-9444e0d2.js +0 -115
  545. package/dist/bundled/v3/index-f671afe5.js +0 -7127
  546. package/dist/bundled/v3/markdown-119394e1.js +0 -15365
  547. package/dist/esm/v2/OrRichTextEditor-6fb5d647.js +0 -981
  548. package/dist/esm/v2/codemirrorView-020fe885.js +0 -357
  549. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -194
  550. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +0 -2
  551. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +0 -67
  552. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +0 -5
  553. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  554. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
  555. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
  556. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
  557. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -9
  558. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -17
  559. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
  560. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
  561. package/dist/esm/v3/OrRichTextEditor-d21645c2.js +0 -913
  562. package/dist/esm/v3/codemirrorView-020fe885.js +0 -357
  563. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +0 -194
  564. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +0 -2
  565. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +0 -65
  566. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +0 -5
  567. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +0 -6
  568. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +0 -3
  569. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +0 -27
  570. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +0 -1
  571. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +0 -9
  572. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +0 -17
  573. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +0 -19
  574. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +0 -3
  575. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +0 -745
  576. package/src/components/or-rich-text-editor-v3/index.ts +0 -2
  577. package/src/components/or-rich-text-editor-v3/props.ts +0 -6
  578. package/src/components/or-rich-text-editor-v3/styles.ts +0 -53
  579. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +0 -40
  580. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +0 -254
  581. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +0 -1
  582. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.ts +0 -238
  583. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +0 -22
  584. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +0 -172
  585. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-c329e727.js → OrDateTimePickerMonthSelect-5c7d6cc7.js} +0 -0
  586. /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-146c2f16.js → OrDateTimePickerPopoverHeader-922f203c.js} +0 -0
  587. /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-7286977a.js → OrDateTimePickerTimeSelect-fc9d4e29.js} +0 -0
  588. /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-94976ae9.js → OrExpansionPanel.vue_vue_type_script_lang-e09daea9.js} +0 -0
@@ -1,913 +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 Paragraph from '@tiptap/extension-paragraph';
7
- import BulletList from '@tiptap/extension-bullet-list';
8
- import ListItem from '@tiptap/extension-list-item';
9
- import OrderedList from '@tiptap/extension-ordered-list';
10
- import Strike from '@tiptap/extension-strike';
11
- import Italic from '@tiptap/extension-italic';
12
- import HardBreak from '@tiptap/extension-hard-break';
13
- import Bold from '@tiptap/extension-bold';
14
- import CodeBlock from '@tiptap/extension-code-block';
15
- import Blockquote from '@tiptap/extension-blockquote';
16
- import Link from '@tiptap/extension-link';
17
- import Highlight from '@tiptap/extension-highlight';
18
- import Underline from '@tiptap/extension-underline';
19
- import { s as script$1 } from './OrIconButton-a69c7775.js';
20
- import { s as script$2 } from './OrLabel-d4c46bb6.js';
21
- import { s as script$4 } from './OrMenu-9a82f18f.js';
22
- import { s as script$8 } from './OrPopover-7b2af064.js';
23
- import { s as script$3 } from './OrMenuItem-54062d59.js';
24
- import { s as script$5 } from './OrModal-fc3bb76e.js';
25
- import { s as script$6 } from './OrInput-e12b0489.js';
26
- import { s as script$7 } from './OrButton-4a3c3e7b.js';
27
- import _ from 'lodash';
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-020fe885.js';
33
- import { minimalSetup } from 'codemirror';
34
- import { javascript } from '@codemirror/lang-javascript';
35
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, createVNode, withCtx, createTextVNode, toDisplayString, createElementVNode, Fragment, renderList, createBlock, createCommentVNode, withDirectives, vShow, vModelText, renderSlot } from 'vue';
36
- import { s as styleInject } from './style-inject.es-4c6f2515.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 parseMd = md => {
94
- //ul
95
- md = md.replace(/^\s*\n\*/gm, '<ul>\n*');
96
- md = md.replace(/^(\*.+)\s*\n([^*])/gm, '$1\n</ul>\n\n$2');
97
- md = md.replace(/^\*(.+)/gm, '<li>$1</li>');
98
- //ol
99
- md = md.replace(/^\s*\n\d\./gm, '<ol>\n1.');
100
- md = md.replace(/^(\d\..+)\s*\n([^\d.])/gm, '$1\n</ol>\n\n$2');
101
- md = md.replace(/^\d\.(.+)/gm, '<li>$1</li>');
102
- //blockquote
103
- md = md.replace(/^>(.+)/gm, '<blockquote>$1</blockquote>');
104
- //h
105
- md = md.replace(/[#]{6}(.+)/g, '<h6>$1</h6>');
106
- md = md.replace(/[#]{5}(.+)/g, '<h5>$1</h5>');
107
- md = md.replace(/[#]{4}(.+)/g, '<h4>$1</h4>');
108
- md = md.replace(/[#]{3}(.+)/g, '<h3>$1</h3>');
109
- md = md.replace(/[#]{2}(.+)/g, '<h2>$1</h2>');
110
- md = md.replace(/[#]{1}(.+)/g, '<h1>$1</h1>');
111
- //alt h
112
- md = md.replace(/^(.+)\n=+/gm, '<h1>$1</h1>');
113
- md = md.replace(/^(.+)\n-+/gm, '<h2>$1</h2>');
114
- //images
115
- md = md.replace(/!\[([^\]]+)\]\(([^)]+)\)/g, '<img src="$2" alt="$1" />');
116
- //links
117
- md = md.replace(/[[]{1}([^\]]+)[\]]{1}[(]{1}([^)"]+)("(.+)")?[)]{1}/g, '<a href="$2" title="$4">$1</a>');
118
- //font styles
119
- md = md.replace(/[*_]{2}([^*_]+)[*_]{2}/g, '<b>$1</b>');
120
- md = md.replace(/[*_]{1}([^*_]+)[*_]{1}/g, '<i>$1</i>');
121
- md = md.replace(/[=]{2}([^=]+)[=]{2}/g, '<mark>$1</mark>');
122
- md = md.replace(/[~]{2}([^~]+)[~]{2}/g, '<del>$1</del>');
123
- //pre
124
- md = md.replace(/^\s*\n```(([^\s]+))?/gm, '<pre class="$2">');
125
- md = md.replace(/^```\s*\n/gm, '</pre>\n\n');
126
- //code
127
- md = md.replace(/[`]{1}([^`]+)[`]{1}/g, '<code>$1</code>');
128
- //p
129
- md = md.replace(/^\s*(\n)?(.+)/gm, function (m) {
130
- return /<(\/)?(h\d|ul|ol|li|blockquote|pre|img)/.test(m) ? m : '<p>' + m + '</p>';
131
- });
132
- //strip p from pre
133
- md = md.replace(/(<pre.+>)\s*\n<p>(.+)<\/p>/gm, '$1$2');
134
- return md;
135
- };
136
- const serialize = (schema, content) => {
137
- const proseMirrorDocument = schema.nodeFromJSON(content);
138
- const serializer = new MarkdownSerializer(serializerNodes, serializerMarks);
139
- return serializer.serialize(proseMirrorDocument, {
140
- tightLists: true
141
- });
142
- };
143
- const deserialize = (schema, content) => {
144
- if (!content) return null;
145
- const html = parseMd(content);
146
- if (!html) return null;
147
- const parser = new DOMParser();
148
- const {
149
- body
150
- } = parser.parseFromString(html, 'text/html');
151
- // append original source as a comment that nodes can access
152
- body.append(document.createComment(content));
153
- const state = DOMParser$1.fromSchema(schema).parse(body);
154
- return state.toJSON();
155
- };
156
-
157
- const EditorContainer = [
158
- // Colors
159
- 'border-outline', 'focus-within:theme-background-primary-translucent', 'focus-within:theme-border-1-primary', 'focus-within:theme-outline-2-primary',
160
- // Sizing
161
- 'border-1', 'rounded-md', 'w-full'];
162
- const ToolbarContainer = [
163
- // Layout
164
- 'flex',
165
- //Spacing
166
- 'py-sm',
167
- //Sizing
168
- 'border-b-1',
169
- //Colors
170
- 'border-b-outline'];
171
- const Toolbar = [
172
- // Layout
173
- 'flex',
174
- // Spacing
175
- 'px-sm', 'gap-md',
176
- // Sizing
177
- 'border-l-1',
178
- //Colors
179
- 'border-r-disabled',
180
- // Last child
181
- 'first-of-type:border-none'];
182
- const ToolbarButton = [
183
- // Typography
184
- 'text-on-disabled'];
185
- const ToolbarButtonFocused = [
186
- // Typography
187
- 'text-outline'];
188
- const EditorInput = [
189
- // Typography
190
- 'typography-body-2-regular',
191
- // Sizing
192
- 'min-h-[88px]'];
193
-
194
- var Formats;
195
- (function (Formats) {
196
- Formats["Markdown"] = "markdown";
197
- Formats["Markup"] = "markup";
198
- })(Formats || (Formats = {}));
199
-
200
- var codemirrorNode = Node.create({
201
- name: 'codeBlock',
202
- content: 'text*',
203
- marks: '',
204
- group: 'block',
205
- code: true,
206
- defining: true,
207
- isolating: true,
208
- parseHTML() {
209
- return [{
210
- tag: 'pre',
211
- preserveWhitespace: 'full'
212
- }];
213
- },
214
- renderHTML() {
215
- return ['pre', ['code', 0]];
216
- },
217
- addNodeView() {
218
- return _ref => {
219
- let {
220
- node,
221
- editor,
222
- getPos
223
- } = _ref;
224
- return new CodeMirrorView({
225
- node,
226
- view: editor.view,
227
- getPos: getPos,
228
- cmOptions: {
229
- extensions: [minimalSetup, javascript()]
230
- }
231
- });
232
- };
233
- }
234
- });
235
-
236
- var script = defineComponent({
237
- name: 'OrRichTextEditor',
238
- components: {
239
- OrIconButton: script$1,
240
- OrLabel: script$2,
241
- OrMenuItem: script$3,
242
- OrMenu: script$4,
243
- OrModal: script$5,
244
- OrInput: script$6,
245
- OrButton: script$7,
246
- OrPopover: script$8
247
- },
248
- inheritAttrs: false,
249
- model: {
250
- prop: 'modelValue',
251
- event: 'update:modelValue'
252
- },
253
- props: {
254
- modelValue: {
255
- type: String,
256
- default: undefined
257
- },
258
- toolbar: {
259
- type: Array,
260
- default: () => []
261
- },
262
- description: {
263
- type: String,
264
- default: ''
265
- },
266
- placeholder: {
267
- type: String,
268
- default: ''
269
- },
270
- autofocus: {
271
- type: Boolean,
272
- default: false
273
- },
274
- format: {
275
- type: String,
276
- default: Formats.Markup
277
- },
278
- fullHeight: {
279
- type: Boolean,
280
- default: false
281
- }
282
- },
283
- emits: ['update:modelValue', 'input', 'file-upload'],
284
- expose: ['root'],
285
- setup(props, context) {
286
- // Refs
287
- const root = ref();
288
- let editor = null;
289
- const editorRef = ref();
290
- const textareaRef = ref();
291
- const containerRef = ref();
292
- const toolbarRef = ref();
293
- const moreButtonRef = ref();
294
- const moreRef = ref();
295
- const toolbarButtonRef = ref();
296
- const menuRef = ref();
297
- // isActive should be set with default values for all toolbar buttons, otherwise it will not work in vue2
298
- const isActive = ref({
299
- bold: false,
300
- italic: false,
301
- underline: false,
302
- strike: false,
303
- bulletList: false,
304
- orderedList: false,
305
- link: false,
306
- highlight: false,
307
- redo: false,
308
- undo: false,
309
- codeBlock: false,
310
- blockquote: false,
311
- file: false,
312
- source: false
313
- });
314
- const isFocused = ref(props.autofocus);
315
- const headingLevels = [1, 2, 3, 4];
316
- const activeHeadingLevel = ref(0);
317
- const markdownOutput = ref('');
318
- const isOpenLinkModal = ref(false);
319
- const disableMarkdown = ref(false);
320
- const text = ref('');
321
- const link = ref('');
322
- const countOfNotVisibleTools = ref(0);
323
- const sourceValue = ref('');
324
- let trap = useFocusTrap(editorRef, {
325
- immediate: true,
326
- fallbackFocus: '.container',
327
- allowOutsideClick: true
328
- });
329
- const iconsEnum = ref({
330
- bold: 'format_bold',
331
- italic: 'format_italic',
332
- underline: 'format_underlined',
333
- strike: 'format_strikethrough',
334
- bulletList: 'format_list_bulleted',
335
- orderedList: 'format_list_numbered',
336
- link: 'link',
337
- highlight: 'highlight',
338
- redo: 'redo',
339
- undo: 'undo',
340
- codeBlock: 'code_blocks',
341
- blockquote: 'format_quote',
342
- file: 'attach_file',
343
- source: 'source_notes'
344
- });
345
- const iconTooltipsEnum = ref({
346
- bold: 'Bold',
347
- italic: 'Italic',
348
- underline: 'Underline',
349
- strike: 'Strike',
350
- bulletList: 'Bulleted List',
351
- orderedList: 'Numbered List',
352
- link: 'Link',
353
- highlight: 'Highlight',
354
- redo: 'Redo',
355
- undo: 'Undo',
356
- codeBlock: 'Code Block',
357
- blockquote: 'Quote',
358
- file: 'File',
359
- source: 'Source'
360
- });
361
- useResizeObserver(root, _.debounce(entries => {
362
- var _a, _b;
363
- const entry = entries[0];
364
- const {
365
- width
366
- } = entry.contentRect;
367
- if (containerRef.value && toolbarRef.value && toolbarLength.value) {
368
- let lengthOfItem = 0;
369
- lengthOfItem = ((_b = (_a = toolbarRef.value.firstElementChild) === null || _a === void 0 ? void 0 : _a.firstElementChild) === null || _b === void 0 ? void 0 : _b.offsetWidth) + 16;
370
- const count = width / lengthOfItem - 2;
371
- countOfNotVisibleTools.value = Math.round(toolbarLength.value - count);
372
- }
373
- }, 10));
374
- onMounted(() => {
375
- editor = new Editor({
376
- onUpdate: _ref => {
377
- let {
378
- editor
379
- } = _ref;
380
- isFocused.value = true;
381
- setActiveFormats();
382
- const html = editor.getHTML();
383
- const text = editor.getText();
384
- if (props.format === 'markdown') {
385
- markdownOutput.value = serialize(editor.schema, editor.getJSON());
386
- proxyModelValue.value = markdownOutput.value;
387
- } else {
388
- proxyModelValue.value = text === '' ? text : html;
389
- }
390
- },
391
- onCreate: _ref2 => {
392
- let {
393
- editor
394
- } = _ref2;
395
- if (props.format === 'markdown') {
396
- const deserialized = deserialize(editor.schema, proxyModelValue.value);
397
- editor.commands.setContent(deserialized);
398
- } else {
399
- editor.commands.setContent(proxyModelValue.value);
400
- }
401
- },
402
- element: editorRef.value,
403
- autofocus: props.autofocus,
404
- enableInputRules: true,
405
- enablePasteRules: true,
406
- extensions: [codemirrorNode, StarterKit.configure({
407
- heading: false,
408
- codeBlock: false,
409
- paragraph: false,
410
- bulletList: false,
411
- orderedList: false,
412
- blockquote: false
413
- }), Paragraph.configure({
414
- HTMLAttributes: {
415
- class: 'my-xs'
416
- }
417
- }), BulletList.configure({
418
- HTMLAttributes: {
419
- class: 'mx-lg my-xs list-disc'
420
- }
421
- }), OrderedList.configure({
422
- HTMLAttributes: {
423
- class: 'mx-lg my-xs list-decimal'
424
- }
425
- }), Blockquote.configure({
426
- HTMLAttributes: {
427
- class: 'my-sm mx-lg px-lg border-l-2 border-outline'
428
- }
429
- }), Heading.configure({
430
- levels: headingLevels
431
- }).extend({
432
- levels: headingLevels,
433
- renderHTML(_ref3) {
434
- let {
435
- node,
436
- HTMLAttributes
437
- } = _ref3;
438
- return ['h' + node.attrs.level, mergeAttributes(HTMLAttributes, {
439
- class: `typography-headline-${node.attrs.level} my-xs`
440
- }), 0];
441
- }
442
- }), Underline, Link.configure({
443
- openOnClick: true,
444
- linkOnPaste: true,
445
- autolink: false,
446
- protocols: ['ftp', 'mailto', 'http', 'https'],
447
- validate: href => /^https?:\/\//.test(href),
448
- HTMLAttributes: {
449
- class: 'text-primary cursor-pointer'
450
- }
451
- }), Highlight, Placeholder.configure({
452
- placeholder: props.placeholder,
453
- emptyEditorClass: 'is-editor-empty text-outline'
454
- })],
455
- editorProps: {
456
- attributes: {
457
- class: 'flex flex-col focus:outline-none gap-xs'
458
- }
459
- },
460
- parseOptions: {
461
- preserveWhitespace: true
462
- }
463
- });
464
- setActiveFormats();
465
- trap.activate();
466
- });
467
- onBeforeUnmount(() => {
468
- editor === null || editor === void 0 ? void 0 : editor.destroy();
469
- });
470
- onClickOutside(root, () => {
471
- isFocused.value = false;
472
- trap.deactivate();
473
- });
474
- // Computed
475
- const proxyModelValue = computed({
476
- get: () => {
477
- return props.modelValue;
478
- },
479
- set: value => {
480
- context.emit('input', value);
481
- context.emit('update:modelValue', value);
482
- }
483
- });
484
- const getIndexOfHeading = computed(() => {
485
- return props.toolbar.flat().indexOf('heading');
486
- });
487
- const headingIcon = computed(() => {
488
- if (activeHeadingLevel.value && isActive.value.heading) {
489
- return `format_h${activeHeadingLevel.value}`;
490
- }
491
- return 'format_paragraph';
492
- });
493
- const toolbarLength = computed(() => {
494
- return props.toolbar.flat().length;
495
- });
496
- const notVisibleTools = computed(() => {
497
- const count = countOfNotVisibleTools.value;
498
- const toolbar = props.toolbar.flat();
499
- let notVisible = new Set(toolbar.slice(toolbar.length - count, toolbar.length));
500
- props.toolbar.forEach(tools => {
501
- if (tools.some(item => notVisible.has(item))) {
502
- tools.forEach(item => notVisible.add(item));
503
- }
504
- });
505
- return notVisible;
506
- });
507
- //Methods
508
- const handleEditorClick = () => {
509
- var _a;
510
- setActiveFormats();
511
- isFocused.value = true;
512
- editor === null || editor === void 0 ? void 0 : editor.commands.focus();
513
- activeHeadingLevel.value = ((_a = editor === null || editor === void 0 ? void 0 : editor.getAttributes('heading')) === null || _a === void 0 ? void 0 : _a.level) || 0;
514
- };
515
- const isVisible = value => {
516
- if (Array.isArray(value)) {
517
- const isHaveNotVisibleTools = value.some(item => notVisibleTools.value.has(item));
518
- return isHaveNotVisibleTools;
519
- }
520
- return !notVisibleTools.value.has(value);
521
- };
522
- const handleInput = event => {
523
- const target = event.target;
524
- const value = target.value;
525
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(deserialize(editor === null || editor === void 0 ? void 0 : editor.schema, value));
526
- markdownOutput.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
527
- proxyModelValue.value = markdownOutput.value;
528
- };
529
- const handleToolbarClick = (item, level) => {
530
- var _a, _b;
531
- switch (item) {
532
- case 'source':
533
- disableMarkdown.value = !disableMarkdown.value;
534
- sourceValue.value = serialize(editor === null || editor === void 0 ? void 0 : editor.schema, editor === null || editor === void 0 ? void 0 : editor.getJSON());
535
- nextTick(() => {
536
- var _a;
537
- return (_a = textareaRef.value) === null || _a === void 0 ? void 0 : _a.focus();
538
- });
539
- break;
540
- case 'bulletList':
541
- case 'orderedList':
542
- item === 'bulletList' ? editor === null || editor === void 0 ? void 0 : editor.commands.toggleBulletList() : editor === null || editor === void 0 ? void 0 : editor.commands.toggleOrderedList();
543
- break;
544
- case 'link':
545
- if (editor) {
546
- const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
547
- const {
548
- from,
549
- to,
550
- empty
551
- } = editor.state.selection;
552
- const isLink = (_a = editor.view.state.doc.nodeAt(cursorPosition)) === null || _a === void 0 ? void 0 : _a.marks.filter(mark => mark.type.name === 'link');
553
- 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) || '' : '';
554
- text.value = empty ? existedText : editor.state.doc.textBetween(from, to, ' ');
555
- link.value = editor.getAttributes('link').href || '';
556
- }
557
- isOpenLinkModal.value = !isOpenLinkModal.value;
558
- break;
559
- case 'blockquote':
560
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleBlockquote().run();
561
- break;
562
- case 'codeBlock':
563
- if (!isActive.value['codeBlock']) {
564
- editor === null || editor === void 0 ? void 0 : editor.commands.setNode(item, {
565
- language: 'javascript'
566
- });
567
- } else {
568
- editor === null || editor === void 0 ? void 0 : editor.commands.setNode('paragraph');
569
- }
570
- break;
571
- case 'heading':
572
- if (!level) {
573
- editor === null || editor === void 0 ? void 0 : editor.commands.setParagraph();
574
- activeHeadingLevel.value = 0;
575
- } else {
576
- activeHeadingLevel.value = level;
577
- editor === null || editor === void 0 ? void 0 : editor.commands.toggleHeading({
578
- level: level
579
- });
580
- }
581
- editor === null || editor === void 0 ? void 0 : editor.commands.focus();
582
- break;
583
- case 'undo':
584
- case 'redo':
585
- item === 'undo' ? editor === null || editor === void 0 ? void 0 : editor.commands.undo() : editor === null || editor === void 0 ? void 0 : editor.commands.redo();
586
- break;
587
- case 'file':
588
- context.emit('file-upload');
589
- break;
590
- default:
591
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().toggleMark(item).run();
592
- break;
593
- }
594
- };
595
- const attachLink = async () => {
596
- var _a, _b;
597
- // empty
598
- if (link.value === '') {
599
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().extendMarkRange('link').unsetLink().run();
600
- }
601
- const isEmptySelection = editor === null || editor === void 0 ? void 0 : editor.state.selection.empty;
602
- const cursorPosition = (editor === null || editor === void 0 ? void 0 : editor.state.selection.$anchor.pos) || 0;
603
- 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');
604
- 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 : '';
605
- if (link.value && isEmptySelection && !existedText) {
606
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
607
- href: link.value,
608
- target: '__blank'
609
- }).command(_ref4 => {
610
- let {
611
- tr
612
- } = _ref4;
613
- const preparedValue = text.value[text.value.length - 1] === ' ' ? text.value : `${text.value} `;
614
- tr.insertText(preparedValue);
615
- return true;
616
- }).run();
617
- }
618
- if (link.value && existedText === text.value && isEmptySelection) {
619
- editor === null || editor === void 0 ? void 0 : editor.chain().extendMarkRange('link').updateAttributes('link', {
620
- href: link.value
621
- }).run();
622
- }
623
- if (link.value && !isEmptySelection) {
624
- editor === null || editor === void 0 ? void 0 : editor.chain().focus().setMark('link', {
625
- href: link.value,
626
- target: '__blank'
627
- }).run();
628
- }
629
- text.value = '';
630
- link.value = '';
631
- isOpenLinkModal.value = false;
632
- };
633
- const discardLink = () => {
634
- isOpenLinkModal.value = false;
635
- };
636
- const setActiveFormats = () => {
637
- const toolbarList = props.toolbar.flat();
638
- toolbarList.forEach(item => {
639
- if (item === 'source') {
640
- isActive.value[item] = disableMarkdown.value;
641
- } else {
642
- isActive.value[item] = (editor === null || editor === void 0 ? void 0 : editor.isActive(item)) || false;
643
- }
644
- });
645
- };
646
- // Styles
647
- const rootStyles = computed(() => {
648
- return ['or-rich-text-editor', ...(props.fullHeight ? ['h-full'] : [])];
649
- });
650
- const containerStyles = computed(() => {
651
- return [...EditorContainer, ...(props.fullHeight ? ['h-full'] : [])];
652
- });
653
- const toolbarContainerStyles = computed(() => {
654
- return [...ToolbarContainer];
655
- });
656
- const toolbarStyles = computed(() => {
657
- return [...Toolbar,
658
- // 'overflow-x-hidden',
659
- ...(isFocused.value ? ToolbarButtonFocused : ToolbarButton)];
660
- });
661
- const editorInputStyles = computed(() => {
662
- return ['tiptap-editor-v3', ...(props.fullHeight ? ['h-full overflow-y-auto'] : []), ...EditorInput];
663
- });
664
- //Effects
665
- watch(proxyModelValue, value => {
666
- if (value !== (editor === null || editor === void 0 ? void 0 : editor.getHTML()) && props.format !== 'markdown') {
667
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
668
- }
669
- if (props.format === 'markdown' && value !== markdownOutput.value) {
670
- //TODO: const deserialized = deserialize(editor?.schema, value);
671
- editor === null || editor === void 0 ? void 0 : editor.commands.setContent(value);
672
- }
673
- });
674
- return {
675
- editor,
676
- editorRef,
677
- toolbarRef,
678
- containerRef,
679
- toolbarButtonRef,
680
- moreButtonRef,
681
- textareaRef,
682
- moreRef,
683
- menuRef,
684
- iconsEnum,
685
- handleToolbarClick,
686
- handleEditorClick,
687
- isActive,
688
- iconTooltipsEnum,
689
- containerStyles,
690
- toolbarContainerStyles,
691
- toolbarStyles,
692
- rootStyles,
693
- root,
694
- editorInputStyles,
695
- getIndexOfHeading,
696
- headingLevels,
697
- headingIcon,
698
- attachLink,
699
- discardLink,
700
- isOpenLinkModal,
701
- text,
702
- link,
703
- isFocused,
704
- isVisible,
705
- countOfNotVisibleTools,
706
- notVisibleTools,
707
- handleInput,
708
- proxyModelValue,
709
- disableMarkdown,
710
- sourceValue
711
- };
712
- }
713
- });
714
-
715
- const _hoisted_1 = ["activated"];
716
- const _hoisted_2 = {
717
- class: "flex p-sm gap-md bg-on-primary"
718
- };
719
- const _hoisted_3 = /*#__PURE__*/createElementVNode("p", {
720
- class: "text-headline-2"
721
- }, " Add Link ", -1 /* HOISTED */);
722
- const _hoisted_4 = {
723
- class: "flex ml-auto gap-md"
724
- };
725
- const _hoisted_5 = /*#__PURE__*/createElementVNode("p", null, "Cancel", -1 /* HOISTED */);
726
- const _hoisted_6 = /*#__PURE__*/createElementVNode("p", null, "Save", -1 /* HOISTED */);
727
-
728
- function render(_ctx, _cache, $props, $setup, $data, $options) {
729
- const _component_or_label = resolveComponent("or-label");
730
- const _component_or_icon_button = resolveComponent("or-icon-button");
731
- const _component_or_popover = resolveComponent("or-popover");
732
- const _component_or_menu_item = resolveComponent("or-menu-item");
733
- const _component_or_menu = resolveComponent("or-menu");
734
- const _component_or_input = resolveComponent("or-input");
735
- const _component_or_button = resolveComponent("or-button");
736
- const _component_or_modal = resolveComponent("or-modal");
737
- return openBlock(), createElementBlock("div", {
738
- ref: "root",
739
- class: normalizeClass(_ctx.rootStyles)
740
- }, [createVNode(_component_or_label, null, {
741
- default: withCtx(() => [createTextVNode(toDisplayString(_ctx.description), 1 /* TEXT */)]),
742
-
743
- _: 1 /* STABLE */
744
- }), createElementVNode("div", {
745
- ref: "containerRef",
746
- class: normalizeClass(_ctx.containerStyles),
747
- onClick: _cache[4] || (_cache[4] = $event => _ctx.handleEditorClick())
748
- }, [createElementVNode("div", {
749
- ref: "toolbarRef",
750
- class: normalizeClass(_ctx.toolbarContainerStyles)
751
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.toolbar, (tools, index) => {
752
- return openBlock(), createElementBlock("div", {
753
- key: index,
754
- class: normalizeClass([..._ctx.toolbarStyles, {
755
- 'hidden': _ctx.isVisible(tools)
756
- }])
757
- }, [(openBlock(true), createElementBlock(Fragment, null, renderList(tools, item => {
758
- return openBlock(), createElementBlock("div", {
759
- key: item,
760
- class: normalizeClass(['flex gap-md', {
761
- 'hidden': !_ctx.isVisible(item)
762
- }])
763
- }, [item === 'heading' ? (openBlock(), createBlock(_component_or_icon_button, {
764
- key: 0,
765
- ref_for: true,
766
- ref: "toolbarButtonRef",
767
- selected: _ctx.isActive[item],
768
- disabled: !_ctx.isFocused,
769
- tooltip: {
770
- text: item,
771
- placement: 'top'
772
- },
773
- icon: {
774
- icon: _ctx.headingIcon,
775
- variant: 'inherit',
776
- size: 'm'
777
- },
778
- onClick: _cache[0] || (_cache[0] = $event => _ctx.menuRef.open())
779
- }, null, 8 /* PROPS */, ["selected", "disabled", "tooltip", "icon"])) : _ctx.isVisible(item) ? (openBlock(), createBlock(_component_or_icon_button, {
780
- key: 1,
781
- tooltip: {
782
- text: _ctx.iconTooltipsEnum[item],
783
- placement: 'top'
784
- },
785
- selected: _ctx.isActive[item],
786
- disabled: !_ctx.isFocused,
787
- icon: {
788
- icon: _ctx.iconsEnum[item],
789
- variant: 'inherit',
790
- size: 'm'
791
- },
792
- onClick: $event => _ctx.handleToolbarClick(item)
793
- }, null, 8 /* PROPS */, ["tooltip", "selected", "disabled", "icon", "onClick"])) : createCommentVNode("v-if", true)], 2 /* CLASS */);
794
- }), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */);
795
- }), 128 /* KEYED_FRAGMENT */)), _ctx.countOfNotVisibleTools > 0 ? (openBlock(), createBlock(_component_or_icon_button, {
796
- key: 0,
797
- ref: "moreButtonRef",
798
- disabled: !_ctx.isFocused,
799
- icon: {
800
- icon: 'more_horiz',
801
- variant: 'inherit',
802
- size: 'm'
803
- },
804
- class: "px-sm",
805
- onClick: _cache[1] || (_cache[1] = $event => _ctx.moreRef.open())
806
- }, null, 8 /* PROPS */, ["disabled"])) : createCommentVNode("v-if", true)], 2 /* CLASS */), createElementVNode("div", {
807
- class: normalizeClass(['p-sm', {
808
- 'h-[calc(100%-32px)] md:h-[calc(100%-36px)]': _ctx.fullHeight
809
- }])
810
- }, [withDirectives(createElementVNode("textarea", {
811
- ref: "textareaRef",
812
- "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => _ctx.sourceValue = $event),
813
- "auto-focus": "",
814
- activated: _ctx.disableMarkdown,
815
- class: "w-full h-full resize-none border-none outline-none bg-transparent typography-body-2-regular",
816
- onInput: _cache[3] || (_cache[3] = function () {
817
- return _ctx.handleInput && _ctx.handleInput(...arguments);
818
- })
819
- }, null, 40 /* PROPS, HYDRATE_EVENTS */, _hoisted_1), [[vShow, _ctx.disableMarkdown], [vModelText, _ctx.sourceValue]]), withDirectives(createElementVNode("div", {
820
- ref: "editorRef",
821
- class: normalizeClass(_ctx.editorInputStyles)
822
- }, null, 2 /* CLASS */), [[vShow, !_ctx.disableMarkdown]]), renderSlot(_ctx.$slots, "files")], 2 /* CLASS */)], 2 /* CLASS */), _ctx.moreButtonRef ? (openBlock(), createBlock(_component_or_popover, {
823
- key: 0,
824
- ref: "moreRef",
825
- trigger: _ctx.moreButtonRef.root,
826
- placement: "top-end"
827
- }, {
828
- default: withCtx(() => [createElementVNode("div", _hoisted_2, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.notVisibleTools, item => {
829
- return openBlock(), createBlock(_component_or_icon_button, {
830
- key: item,
831
- tooltip: {
832
- text: _ctx.iconTooltipsEnum[item],
833
- placement: 'top'
834
- },
835
- selected: _ctx.isActive[item],
836
- icon: {
837
- icon: _ctx.iconsEnum[item],
838
- variant: 'inherit',
839
- size: 'm'
840
- },
841
- onClick: $event => _ctx.handleToolbarClick(item)
842
- }, null, 8 /* PROPS */, ["tooltip", "selected", "icon", "onClick"]);
843
- }), 128 /* KEYED_FRAGMENT */))])]),
844
-
845
- _: 1 /* STABLE */
846
- }, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), _ctx.toolbarButtonRef ? (openBlock(), createBlock(_component_or_menu, {
847
- key: 1,
848
- ref: "menuRef",
849
- trigger: _ctx.toolbarButtonRef[_ctx.getIndexOfHeading].root,
850
- placement: "bottom-start",
851
- class: "bg-on-primary"
852
- }, {
853
- default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.headingLevels, heading => {
854
- return openBlock(), createBlock(_component_or_menu_item, {
855
- key: heading,
856
- onClick: $event => _ctx.handleToolbarClick('heading', heading)
857
- }, {
858
- default: withCtx(() => [createTextVNode(" Heading " + toDisplayString(heading), 1 /* TEXT */)]),
859
-
860
- _: 2 /* DYNAMIC */
861
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"]);
862
- }), 128 /* KEYED_FRAGMENT */)), createVNode(_component_or_menu_item, {
863
- onClick: _cache[5] || (_cache[5] = $event => _ctx.handleToolbarClick('heading'))
864
- }, {
865
- default: withCtx(() => [createTextVNode(" None ")]),
866
- _: 1 /* STABLE */
867
- })]),
868
-
869
- _: 1 /* STABLE */
870
- }, 8 /* PROPS */, ["trigger"])) : createCommentVNode("v-if", true), createVNode(_component_or_modal, {
871
- "is-open": _ctx.isOpenLinkModal,
872
- size: "s"
873
- }, {
874
- header: withCtx(() => [_hoisted_3]),
875
- footer: withCtx(() => [createElementVNode("div", _hoisted_4, [createVNode(_component_or_button, {
876
- variant: "outlined",
877
- onClick: _ctx.discardLink
878
- }, {
879
- default: withCtx(() => [_hoisted_5]),
880
- _: 1 /* STABLE */
881
- }, 8 /* PROPS */, ["onClick"]), createVNode(_component_or_button, {
882
- onClick: _ctx.attachLink
883
- }, {
884
- default: withCtx(() => [_hoisted_6]),
885
- _: 1 /* STABLE */
886
- }, 8 /* PROPS */, ["onClick"])])]),
887
- default: withCtx(() => [createElementVNode("div", null, [createVNode(_component_or_label, null, {
888
- default: withCtx(() => [createTextVNode(" Text ")]),
889
- _: 1 /* STABLE */
890
- }), createVNode(_component_or_input, {
891
- modelValue: _ctx.text,
892
- "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => _ctx.text = $event),
893
- placeholder: "Placeholder",
894
- class: "pb-md"
895
- }, null, 8 /* PROPS */, ["modelValue"]), createVNode(_component_or_label, null, {
896
- default: withCtx(() => [createTextVNode(" Link ")]),
897
- _: 1 /* STABLE */
898
- }), createVNode(_component_or_input, {
899
- modelValue: _ctx.link,
900
- "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => _ctx.link = $event),
901
- placeholder: "Placeholder"
902
- }, null, 8 /* PROPS */, ["modelValue"])])]),
903
- _: 1 /* STABLE */
904
- }, 8 /* PROPS */, ["is-open"])], 2 /* CLASS */);
905
- }
906
-
907
- var css_248z = ".tiptap-editor-v3 .is-editor-empty::before {\n float: left;\n height: 0;\n pointer-events: none;\n content: attr(data-placeholder);\n}";
908
- styleInject(css_248z);
909
-
910
- script.render = render;
911
- script.__file = "src/components/or-rich-text-editor-v3/OrRichTextEditor.vue";
912
-
913
- export { Formats as F, script as s };