@onereach/ui-components 8.4.1-beta.3657.0 → 8.5.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 (1769) hide show
  1. package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +1 -105
  2. package/dist/bundled/v2/components/OrAvatar/constants.js +1 -8
  3. package/dist/bundled/v2/components/OrAvatar/index.js +1 -2
  4. package/dist/bundled/v2/components/OrAvatar-7d519020.js +209 -0
  5. package/dist/bundled/v2/components/OrAvatarV3/OrAvatar.js +2 -106
  6. package/dist/bundled/v2/components/OrAvatarV3/index.js +1 -2
  7. package/dist/bundled/v2/components/OrAvatarV3/props.js +1 -19
  8. package/dist/bundled/v2/components/OrAvatarV3/styles.js +1 -84
  9. package/dist/bundled/v2/components/OrAvatarV3-fff9d395.js +307 -0
  10. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +2 -137
  11. package/dist/bundled/v2/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +2 -71
  12. package/dist/bundled/v2/components/OrBottomSheetV3/index.js +1 -2
  13. package/dist/bundled/v2/components/OrBottomSheetV3/props.js +1 -7
  14. package/dist/bundled/v2/components/OrBottomSheetV3/styles.js +1 -48
  15. package/dist/bundled/{v3/hooks/useTheme.js → v2/components/OrBottomSheetV3-022aa5f7.js} +3314 -1
  16. package/dist/bundled/v2/components/OrButton/OrButton.js +2 -173
  17. package/dist/bundled/v2/components/OrButton/constants.js +1 -25
  18. package/dist/bundled/v2/components/OrButton/index.js +194 -2
  19. package/dist/bundled/v2/components/OrButtonGroupV3/OrButtonGroup.js +2 -68
  20. package/dist/bundled/v2/components/OrButtonGroupV3/index.js +2 -2
  21. package/dist/bundled/v2/components/OrButtonGroupV3/props.js +1 -1
  22. package/dist/bundled/v2/components/OrButtonGroupV3/styles.js +2 -21
  23. package/dist/bundled/v2/components/OrButtonGroupV3-80d684db.js +85 -0
  24. package/dist/bundled/v2/components/OrButtonV2/OrButton.js +2 -179
  25. package/dist/bundled/v2/components/OrButtonV2/constants.js +1 -43
  26. package/dist/bundled/v2/components/OrButtonV2/index.js +1 -2
  27. package/dist/bundled/v2/components/OrButtonV2-d0c4e061.js +219 -0
  28. package/dist/bundled/v2/components/OrButtonV3/OrButton.js +2 -116
  29. package/dist/bundled/v2/components/OrButtonV3/index.js +1 -2
  30. package/dist/bundled/v2/components/OrButtonV3/props.js +1 -21
  31. package/dist/bundled/v2/components/OrButtonV3/styles.js +1 -75
  32. package/dist/bundled/v2/components/OrButtonV3-b67957f9.js +206 -0
  33. package/dist/bundled/v2/components/OrCard/OrCard.js +1 -2
  34. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +2 -216
  35. package/dist/bundled/v2/components/OrCardCollection/constants.js +1 -7
  36. package/dist/bundled/v2/components/OrCardCollection/index.js +220 -2
  37. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -258
  38. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +1 -2
  39. package/dist/bundled/v2/components/OrCardCollectionV3/props.js +1 -16
  40. package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +1 -38
  41. package/dist/bundled/v2/components/OrCardCollectionV3-a9504b4b.js +306 -0
  42. package/dist/bundled/v2/components/OrCardV3/OrCard.js +2 -71
  43. package/dist/bundled/v2/components/OrCardV3/index.js +1 -2
  44. package/dist/bundled/v2/components/OrCardV3/props.js +1 -8
  45. package/dist/bundled/v2/components/OrCardV3/styles.js +1 -27
  46. package/dist/bundled/v2/components/OrCardV3-be4c65e4.js +100 -0
  47. package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +2 -3
  48. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +4 -5
  49. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -208
  50. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +1 -1
  51. package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +1 -10
  52. package/dist/bundled/v2/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +2 -19
  53. package/dist/bundled/v2/components/OrCheckboxTreeV3-1e00b079.js +230 -0
  54. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -183
  55. package/dist/bundled/v2/components/OrCheckboxV3/index.js +1 -1
  56. package/dist/bundled/v2/components/OrCheckboxV3/styles.js +1 -31
  57. package/dist/bundled/v2/components/OrCheckboxV3-e49916ef.js +207 -0
  58. package/dist/bundled/v2/components/OrChip/OrChip.js +2 -91
  59. package/dist/bundled/v2/components/OrChip/index.js +1 -1
  60. package/dist/bundled/v2/components/OrChips/OrChips.js +2 -311
  61. package/dist/bundled/v2/components/OrChips/constants.js +1 -10
  62. package/dist/bundled/v2/components/OrChips/index.js +1 -2
  63. package/dist/bundled/v2/components/OrChips-477b3b51.js +403 -0
  64. package/dist/bundled/v2/components/OrCode/OrCode.js +2 -354
  65. package/dist/bundled/v2/components/OrCode/constants.js +1 -11
  66. package/dist/bundled/v2/components/OrCode/index.js +1 -7
  67. package/dist/bundled/v2/components/OrCode/lang.js +1 -27
  68. package/dist/bundled/v2/components/OrCode/libs.js +1 -5
  69. package/dist/bundled/v2/components/OrCode/theme.js +1 -189
  70. package/dist/bundled/v2/{index-10711eb4.js → components/OrCode-526b84d1.js} +13223 -99
  71. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +2 -494
  72. package/dist/bundled/v2/components/OrCodeV3/index.js +2 -7
  73. package/dist/bundled/v2/components/OrCodeV3/libs.js +1 -5
  74. package/dist/bundled/v2/components/OrCodeV3/props.js +1 -11
  75. package/dist/bundled/v2/components/OrCodeV3/styles.js +1 -28
  76. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-e8ef6dee.js → v2/components/OrCodeV3-9d7c4a19.js} +236 -86
  77. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +2 -4
  78. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -162
  79. package/dist/bundled/v2/components/OrColorPicker/constants.js +1 -323
  80. package/dist/bundled/v2/components/OrColorPicker/index.js +1 -2
  81. package/dist/bundled/v2/components/OrColorPicker/utils/defultPalette.js +1 -16
  82. package/dist/bundled/v2/components/OrColorPicker-61ed575b.js +492 -0
  83. package/dist/bundled/v2/components/OrCombinedInputV3/OrCombinedInput.js +2 -144
  84. package/dist/bundled/v2/components/OrCombinedInputV3/index.js +2 -2
  85. package/dist/bundled/v2/components/OrCombinedInputV3/props.js +1 -1
  86. package/dist/bundled/v2/components/OrCombinedInputV3/styles.js +1 -16
  87. package/dist/bundled/v2/components/OrCombinedInputV3-f54893ac.js +158 -0
  88. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +2 -261
  89. package/dist/bundled/v2/components/OrConfirm/index.js +1 -1
  90. package/dist/bundled/v2/components/OrConfirm-146c07d4.js +260 -0
  91. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +2 -260
  92. package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -2
  93. package/dist/bundled/v2/components/OrConfirmV3/props.js +1 -7
  94. package/dist/bundled/v2/components/OrConfirmV3/styles.js +1 -47
  95. package/dist/bundled/v2/components/OrConfirmV3-5cb169ba.js +305 -0
  96. package/dist/bundled/v2/components/OrContextMenuV3/OrContextMenu.js +2 -108
  97. package/dist/bundled/v2/components/OrContextMenuV3/index.js +109 -2
  98. package/dist/bundled/v2/components/OrContextMenuV3/props.js +1 -1
  99. package/dist/bundled/v2/components/OrDateFormatV3/OrDateFormat.js +2 -69
  100. package/dist/bundled/v2/components/OrDateFormatV3/index.js +1 -1
  101. package/dist/bundled/v2/components/OrDateFormatV3/styles.js +1 -5
  102. package/dist/bundled/v2/components/OrDateFormatV3-effdf0fd.js +72 -0
  103. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -372
  104. package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -2
  105. package/dist/bundled/v2/components/OrDatePickerV3/props.js +1 -1
  106. package/dist/bundled/v2/components/OrDatePickerV3/styles.js +1 -10
  107. package/dist/bundled/v2/components/OrDatePickerV3-169c5415.js +402 -0
  108. package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +2 -485
  109. package/dist/bundled/v2/components/OrDateRangePickerV3/index.js +2 -2
  110. package/dist/bundled/v2/components/OrDateRangePickerV3/props.js +1 -1
  111. package/dist/bundled/v2/components/OrDateRangePickerV3/styles.js +1 -10
  112. package/dist/bundled/v2/components/OrDateRangePickerV3-6985396d.js +487 -0
  113. package/dist/bundled/v2/components/OrDateTimeFormatV3/OrDateTimeFormat.js +2 -76
  114. package/dist/bundled/v2/components/OrDateTimeFormatV3/index.js +1 -1
  115. package/dist/bundled/v2/components/OrDateTimeFormatV3/styles.js +1 -5
  116. package/dist/bundled/v2/components/OrDateTimeFormatV3-945c7ba1.js +77 -0
  117. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +2 -1062
  118. package/dist/bundled/v2/components/OrDateTimePicker/constants.js +1 -20
  119. package/dist/bundled/v2/components/OrDateTimePicker/index.js +1 -2
  120. package/dist/bundled/v2/components/OrDateTimePicker-e398abc6.js +1262 -0
  121. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -520
  122. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -12
  123. package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +2 -10
  124. package/dist/bundled/v2/components/OrDateTimePickerV3/styles.js +1 -11
  125. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatDate.js +1 -8
  126. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatTime.js +1 -11
  127. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getCurrentDate.js +1 -6
  128. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getDatePlaceholder.js +1 -9
  129. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getNextMonthDate.js +1 -6
  130. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getTimePlaceholder.js +1 -12
  131. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/index.js +1 -6
  132. package/dist/bundled/v2/components/OrDateTimePickerV3-d0b03343.js +1715 -0
  133. package/dist/bundled/v2/components/OrEmptyStateV3/OrEmptyState.js +2 -111
  134. package/dist/bundled/v2/components/OrEmptyStateV3/index.js +1 -2
  135. package/dist/bundled/v2/components/OrEmptyStateV3/props.js +1 -7
  136. package/dist/bundled/v2/components/OrEmptyStateV3/styles.js +1 -46
  137. package/dist/bundled/v2/components/OrEmptyStateV3-72493b90.js +158 -0
  138. package/dist/bundled/v2/components/OrError/OrError.js +1 -2
  139. package/dist/bundled/v2/components/OrErrorTagV3/OrErrorTag.js +2 -65
  140. package/dist/bundled/v2/components/OrErrorTagV3/index.js +1 -1
  141. package/dist/bundled/v2/components/OrErrorTagV3/styles.js +1 -15
  142. package/dist/bundled/v2/components/OrErrorTagV3-a9b05fa1.js +78 -0
  143. package/dist/bundled/v2/components/OrErrorV3/OrError.js +2 -71
  144. package/dist/bundled/v2/components/OrErrorV3/index.js +1 -1
  145. package/dist/bundled/v2/components/OrErrorV3/styles.js +1 -19
  146. package/dist/bundled/v2/components/OrErrorV3-e9243e0b.js +88 -0
  147. package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -136
  148. package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +1 -2
  149. package/dist/bundled/v2/components/OrExpansionPanelV3/props.js +1 -18
  150. package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +1 -69
  151. package/dist/bundled/v2/components/OrExpansionPanelV3-0cc724af.js +219 -0
  152. package/dist/bundled/v2/components/OrFabV3/OrFab.js +2 -82
  153. package/dist/bundled/v2/components/OrFabV3/index.js +1 -2
  154. package/dist/bundled/v2/components/OrFabV3/props.js +1 -7
  155. package/dist/bundled/v2/components/OrFabV3/styles.js +1 -19
  156. package/dist/bundled/v2/components/OrFabV3-743bad82.js +104 -0
  157. package/dist/bundled/v2/components/OrFloating/OrFloating.js +2 -186
  158. package/dist/bundled/v2/components/OrFloating/constants.js +1 -22
  159. package/dist/bundled/v2/components/OrFloating/index.js +1 -2
  160. package/dist/bundled/v2/{floating-ui.dom-d9ef0d1f.js → components/OrFloating-22e3d64d.js} +204 -1
  161. package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.js +2 -123
  162. package/dist/bundled/v2/components/OrFormGroupV3/index.js +1 -2
  163. package/dist/bundled/v2/components/OrFormGroupV3/props.js +1 -7
  164. package/dist/bundled/v2/components/OrFormGroupV3/styles.js +1 -17
  165. package/dist/bundled/v2/components/OrFormGroupV3-cfc26d86.js +141 -0
  166. package/dist/bundled/v2/components/OrHint/OrHint.js +1 -2
  167. package/dist/bundled/v2/components/OrHintV3/OrHint.js +2 -71
  168. package/dist/bundled/v2/components/OrHintV3/index.js +1 -1
  169. package/dist/bundled/v2/components/OrHintV3/styles.js +1 -19
  170. package/dist/bundled/v2/components/OrHintV3-f31f7a39.js +88 -0
  171. package/dist/bundled/v2/components/OrIcon/OrIcon.js +2 -158
  172. package/dist/bundled/v2/components/OrIcon/constants.js +1 -24
  173. package/dist/bundled/v2/components/OrIcon/index.js +178 -2
  174. package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -7
  175. package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -135
  176. package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -3
  177. package/dist/bundled/v2/components/OrIconButtonV3/props.js +2 -11
  178. package/dist/bundled/v2/components/OrIconButtonV3/styles.js +1 -72
  179. package/dist/bundled/v2/components/OrIconButtonV3-331241ce.js +209 -0
  180. package/dist/bundled/v2/components/OrIconV3/OrIcon.js +2 -69
  181. package/dist/bundled/v2/components/OrIconV3/index.js +1 -2
  182. package/dist/bundled/v2/components/OrIconV3/props.js +1 -17
  183. package/dist/bundled/v2/components/OrIconV3/styles.js +1 -44
  184. package/dist/bundled/v2/components/OrIconV3-cbb77e49.js +124 -0
  185. package/dist/bundled/v2/components/OrInlineInputBoxV3/OrInlineInputBox.js +2 -68
  186. package/dist/bundled/v2/components/OrInlineInputBoxV3/index.js +1 -2
  187. package/dist/bundled/v2/components/OrInlineInputBoxV3/props.js +1 -7
  188. package/dist/bundled/v2/components/OrInlineInputBoxV3/styles.js +1 -23
  189. package/dist/bundled/{v3/components/OrInlineInputBoxV3/styles.js → v2/components/OrInlineInputBoxV3-16403e8f.js} +72 -1
  190. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -344
  191. package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -3
  192. package/dist/bundled/v2/components/OrInlineInputV3/props.js +2 -9
  193. package/dist/bundled/v2/components/OrInlineInputV3/styles.js +1 -29
  194. package/dist/bundled/v2/components/OrInlineInputV3-de70d89c.js +371 -0
  195. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -387
  196. package/dist/bundled/v2/components/OrInlineTextEdit/constants.js +1 -13
  197. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +395 -2
  198. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -261
  199. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +1 -1
  200. package/dist/bundled/v2/components/OrInlineTextareaV3/styles.js +1 -21
  201. package/dist/bundled/v2/components/OrInlineTextareaV3-3cccff10.js +276 -0
  202. package/dist/bundled/v2/components/OrInput/OrInput.js +2 -4
  203. package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.js +2 -169
  204. package/dist/bundled/v2/components/OrInputBoxV3/index.js +1 -2
  205. package/dist/bundled/v2/components/OrInputBoxV3/props.js +1 -12
  206. package/dist/bundled/v2/components/OrInputBoxV3/styles.js +1 -49
  207. package/dist/bundled/v2/components/OrInputBoxV3-95cfbd71.js +224 -0
  208. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -417
  209. package/dist/bundled/v2/components/OrInputV3/index.js +2 -3
  210. package/dist/bundled/v2/components/OrInputV3/props.js +2 -11
  211. package/dist/bundled/v2/components/OrInputV3/styles.js +1 -14
  212. package/dist/bundled/v2/components/OrInputV3-ea905e0f.js +430 -0
  213. package/dist/bundled/v2/components/OrLabel/OrLabel.js +1 -2
  214. package/dist/bundled/v2/components/OrLabelV3/OrLabel.js +2 -93
  215. package/dist/bundled/v2/components/OrLabelV3/index.js +1 -2
  216. package/dist/bundled/v2/components/OrLabelV3/props.js +1 -8
  217. package/dist/bundled/v2/components/OrLabelV3/styles.js +1 -38
  218. package/dist/bundled/v2/components/OrLabelV3-1654fb1f.js +133 -0
  219. package/dist/bundled/v2/components/OrLinkV3/OrLink.js +2 -85
  220. package/dist/bundled/v2/components/OrLinkV3/index.js +1 -2
  221. package/dist/bundled/v2/components/OrLinkV3/props.js +1 -10
  222. package/dist/bundled/v2/components/OrLinkV3/styles.js +1 -32
  223. package/dist/bundled/v2/components/OrLinkV3-da45a4b9.js +123 -0
  224. package/dist/bundled/v2/components/OrList/OrList.js +2 -1122
  225. package/dist/bundled/v2/components/OrList/index.js +1 -1
  226. package/dist/bundled/v2/{sortable.esm-11705107.js → components/OrList-0cac1cf2.js} +2566 -1
  227. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +3 -4
  228. package/dist/bundled/v2/components/OrListV3/OrList.js +2 -2
  229. package/dist/bundled/v2/components/OrListV3/index.js +1 -1
  230. package/dist/bundled/v2/components/OrListV3/styles.js +1 -8
  231. package/dist/bundled/v2/{OrList-9dff50b7.js → components/OrListV3-55f5748e.js} +13 -8
  232. package/dist/bundled/v2/components/OrLoader/OrLoader.js +2 -106
  233. package/dist/bundled/v2/components/OrLoader/constants.js +1 -8
  234. package/dist/bundled/v2/components/OrLoader/index.js +111 -2
  235. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +2 -170
  236. package/dist/bundled/v2/components/OrLoaderV3/index.js +1 -2
  237. package/dist/bundled/v2/components/OrLoaderV3/props.js +1 -18
  238. package/dist/bundled/v2/components/OrLoaderV3/styles.js +1 -17
  239. package/dist/bundled/v2/components/OrLoaderV3-98a1a8a8.js +201 -0
  240. package/dist/bundled/v2/components/OrMenuItemV3/OrMenuItem.js +2 -93
  241. package/dist/bundled/v2/components/OrMenuItemV3/index.js +1 -1
  242. package/dist/bundled/v2/components/OrMenuItemV3/styles.js +1 -21
  243. package/dist/bundled/v2/components/OrMenuItemV3-4fe259d2.js +112 -0
  244. package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +2 -131
  245. package/dist/bundled/v2/components/OrMenuV3/index.js +2 -2
  246. package/dist/bundled/v2/components/OrMenuV3/props.js +1 -1
  247. package/dist/bundled/v2/components/OrMenuV3/styles.js +1 -7
  248. package/dist/bundled/v2/components/OrMenuV3-ae616ef0.js +135 -0
  249. package/dist/bundled/v2/components/OrModal/OrModal.js +2 -183
  250. package/dist/bundled/v2/components/OrModal/constants.js +1 -10
  251. package/dist/bundled/v2/components/OrModal/index.js +1 -2
  252. package/dist/bundled/{v3/useFocusTrap-dabc16ec.js → v2/components/OrModal-8420fe3c.js} +188 -4
  253. package/dist/bundled/v2/components/OrModalV3/OrModal.js +2 -287
  254. package/dist/bundled/v2/components/OrModalV3/index.js +1 -2
  255. package/dist/bundled/v2/components/OrModalV3/props.js +1 -8
  256. package/dist/bundled/v2/components/OrModalV3/styles.js +1 -30
  257. package/dist/bundled/v2/components/OrModalV3-1504bf38.js +319 -0
  258. package/dist/bundled/v2/components/OrNotification/OrNotification.js +2 -128
  259. package/dist/bundled/v2/components/OrNotification/constants.js +1 -14
  260. package/dist/bundled/v2/components/OrNotification/index.js +139 -2
  261. package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -107
  262. package/dist/bundled/v2/components/OrNotificationV3/index.js +1 -2
  263. package/dist/bundled/v2/components/OrNotificationV3/props.js +1 -9
  264. package/dist/bundled/v2/components/OrNotificationV3/styles.js +1 -54
  265. package/dist/bundled/v2/components/OrNotificationV3-07c99923.js +166 -0
  266. package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +1 -1
  267. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +4 -7
  268. package/dist/bundled/v2/components/OrOverlay/OrOverlay.js +1 -2
  269. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +2 -78
  270. package/dist/bundled/v2/components/OrOverlayV3/index.js +1 -1
  271. package/dist/bundled/v2/components/OrOverlayV3/styles.js +1 -9
  272. package/dist/bundled/v2/components/OrOverlayV3-58d0580d.js +84 -0
  273. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -307
  274. package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -1
  275. package/dist/bundled/v2/components/OrPaginationV3/styles.js +1 -26
  276. package/dist/bundled/v2/components/OrPaginationV3-8d342e06.js +330 -0
  277. package/dist/bundled/v2/components/OrPassword/OrPassword.js +3 -5
  278. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -217
  279. package/dist/bundled/v2/components/OrPopoverV3/hooks/useFloating.js +3 -137
  280. package/dist/bundled/v2/components/OrPopoverV3/index.js +1 -2
  281. package/dist/bundled/v2/components/OrPopoverV3/props.js +1 -23
  282. package/dist/bundled/v2/components/OrPopoverV3/styles.js +1 -46
  283. package/dist/bundled/v2/components/OrPopoverV3-3af55d28.js +408 -0
  284. package/dist/bundled/v2/components/OrProgress/OrProgress.js +2 -208
  285. package/dist/bundled/v2/components/OrProgress/constants.js +1 -15
  286. package/dist/bundled/v2/components/OrProgress/index.js +1 -2
  287. package/dist/bundled/v2/components/OrProgress-07ca1a3c.js +281 -0
  288. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -244
  289. package/dist/bundled/v2/components/OrProgressV3/index.js +1 -2
  290. package/dist/bundled/v2/components/OrProgressV3/props.js +1 -15
  291. package/dist/bundled/v2/components/OrProgressV3/styles.js +1 -63
  292. package/dist/bundled/v2/components/OrProgressV3-c8e943a0.js +315 -0
  293. package/dist/bundled/v2/components/OrRadio/OrRadio.js +3 -4
  294. package/dist/bundled/v2/components/OrRadioGroup/OrRadioGroup.js +1 -2
  295. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +4 -4
  296. package/dist/bundled/v2/components/OrRadioV3/OrRadio.js +2 -164
  297. package/dist/bundled/v2/components/OrRadioV3/index.js +1 -1
  298. package/dist/bundled/v2/components/OrRadioV3/styles.js +1 -31
  299. package/dist/bundled/v2/components/OrRadioV3-7e249447.js +189 -0
  300. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.js +2 -243
  301. package/dist/bundled/v2/components/OrRangeSliderV3/index.js +2 -2
  302. package/dist/bundled/v2/components/OrRangeSliderV3/props.js +1 -1
  303. package/dist/bundled/v2/components/OrRangeSliderV3/styles.js +2 -97
  304. package/dist/bundled/v2/components/OrRangeSliderV3-784f0cfb.js +334 -0
  305. package/dist/bundled/v2/components/OrResizeablePanelV3/OrResizeablePanel.js +2 -248
  306. package/dist/bundled/v2/components/OrResizeablePanelV3/index.js +1 -2
  307. package/dist/bundled/v2/components/OrResizeablePanelV3/props.js +1 -16
  308. package/dist/bundled/v2/components/OrResizeablePanelV3/styles.js +1 -186
  309. package/dist/bundled/v2/components/OrResizeablePanelV3-8ca96ef2.js +443 -0
  310. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2170
  311. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +1 -2
  312. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +1 -7
  313. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +1 -38
  314. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +2 -42
  315. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +2 -183
  316. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
  317. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +3 -199
  318. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +1 -2
  319. package/dist/bundled/v2/components/OrRichTextEditorV3-569d94ba.js +27734 -0
  320. package/dist/bundled/v2/components/OrSearch/OrSearch.js +3 -4
  321. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +2 -148
  322. package/dist/bundled/v2/components/OrSearchV3/index.js +146 -2
  323. package/dist/bundled/v2/components/OrSearchV3/props.js +1 -1
  324. package/dist/bundled/v2/components/OrSegmentedControlV3/OrSegmentedControl.js +2 -209
  325. package/dist/bundled/v2/components/OrSegmentedControlV3/index.js +1 -2
  326. package/dist/bundled/v2/components/OrSegmentedControlV3/props.js +1 -7
  327. package/dist/bundled/v2/components/OrSegmentedControlV3/styles.js +1 -15
  328. package/dist/bundled/v2/components/OrSegmentedControlV3-b220a9cc.js +227 -0
  329. package/dist/bundled/v2/components/OrSelect/OrSelect.js +2 -1603
  330. package/dist/bundled/v2/components/OrSelect/constants.js +1 -50
  331. package/dist/bundled/v2/components/OrSelect/index.js +1 -1
  332. package/dist/bundled/v2/components/OrSelect-837dfd6b.js +1644 -0
  333. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -1166
  334. package/dist/bundled/v2/components/OrSelectV3/index.js +2 -2
  335. package/dist/bundled/v2/components/OrSelectV3/props.js +1 -1
  336. package/dist/bundled/v2/components/OrSelectV3/styles.js +1 -54
  337. package/dist/bundled/v2/components/OrSelectV3-68059541.js +1211 -0
  338. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +2 -138
  339. package/dist/bundled/v2/components/OrSidebar/constants.js +1 -7
  340. package/dist/bundled/v2/components/OrSidebar/index.js +142 -2
  341. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +2 -198
  342. package/dist/bundled/v2/components/OrSidebarV3/index.js +2 -3
  343. package/dist/bundled/v2/components/OrSidebarV3/props.js +2 -9
  344. package/dist/bundled/v2/components/OrSidebarV3/styles.js +2 -64
  345. package/dist/bundled/v2/components/OrSidebarV3-baa2d778.js +262 -0
  346. package/dist/bundled/v2/components/OrSkeleton/constants.js +1 -12
  347. package/dist/bundled/v2/components/OrSkeleton/index.js +1 -4
  348. package/dist/bundled/v2/components/OrSkeleton-8a1572eb.js +379 -0
  349. package/dist/bundled/v2/components/OrSkeletonCircle/OrSkeletonCircle.js +2 -77
  350. package/dist/bundled/v2/components/OrSkeletonCircle/index.js +1 -2
  351. package/dist/bundled/v2/components/OrSkeletonCircleV3/OrSkeletonCircle.js +2 -80
  352. package/dist/bundled/v2/components/OrSkeletonCircleV3/index.js +1 -1
  353. package/dist/bundled/v2/components/OrSkeletonRect/OrSkeletonRect.js +2 -80
  354. package/dist/bundled/v2/components/OrSkeletonRect/index.js +1 -2
  355. package/dist/bundled/v2/components/OrSkeletonRectV3/OrSkeletonRect.js +2 -83
  356. package/dist/bundled/v2/components/OrSkeletonRectV3/index.js +1 -1
  357. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +2 -94
  358. package/dist/bundled/v2/components/OrSkeletonText/index.js +1 -2
  359. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +2 -113
  360. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +1 -1
  361. package/dist/bundled/v2/components/OrSkeletonV3/index.js +1 -3
  362. package/dist/bundled/v2/components/OrSkeletonV3/styles.js +1 -34
  363. package/dist/bundled/v2/components/OrSkeletonV3-9ef41031.js +296 -0
  364. package/dist/bundled/v2/components/OrSlider/OrSlider.js +3 -5
  365. package/dist/bundled/v2/components/OrSliderV3/OrSlider.js +2 -187
  366. package/dist/bundled/v2/components/OrSliderV3/index.js +1 -2
  367. package/dist/bundled/v2/components/OrSliderV3/props.js +1 -12
  368. package/dist/bundled/v2/components/OrSliderV3/styles.js +1 -92
  369. package/dist/bundled/v2/components/OrSliderV3-bde29d00.js +283 -0
  370. package/dist/bundled/v2/components/OrSortingV3/OrSorting.js +2 -136
  371. package/dist/bundled/v2/components/OrSortingV3/index.js +1 -1
  372. package/dist/bundled/v2/components/OrSortingV3/styles.js +1 -6
  373. package/dist/bundled/v2/components/OrSortingV3-e5706ed8.js +140 -0
  374. package/dist/bundled/v2/components/OrStepper/OrStepper.js +2 -3
  375. package/dist/bundled/v2/components/OrSwitch/OrSwitch.js +2 -3
  376. package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +2 -196
  377. package/dist/bundled/v2/components/OrSwitchV3/index.js +1 -1
  378. package/dist/bundled/v2/components/OrSwitchV3/styles.js +1 -51
  379. package/dist/bundled/v2/components/OrSwitchV3-3ec6db49.js +241 -0
  380. package/dist/bundled/v2/components/OrTab/OrTab.js +2 -3
  381. package/dist/bundled/v2/components/OrTabHeaderItem/OrTabHeaderItem.js +1 -2
  382. package/dist/bundled/v2/components/OrTabV3/OrTab.js +2 -86
  383. package/dist/bundled/v2/components/OrTabV3/OrTab.vue.d.ts +0 -22
  384. package/dist/bundled/v2/components/OrTabV3/index.js +1 -1
  385. package/dist/bundled/v2/components/OrTabV3/styles.d.ts +1 -1
  386. package/dist/bundled/v2/components/OrTabV3/styles.js +1 -25
  387. package/dist/bundled/v2/components/OrTabV3-0c5a1dc9.js +93 -0
  388. package/dist/bundled/v2/components/OrTabs/OrTabs.js +1 -2
  389. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -235
  390. package/dist/bundled/v2/components/OrTabsV3/OrTabs.vue.d.ts +8 -32
  391. package/dist/bundled/v2/components/OrTabsV3/index.js +1 -2
  392. package/dist/bundled/v2/components/OrTabsV3/props.js +1 -7
  393. package/dist/bundled/v2/components/OrTabsV3/styles.d.ts +2 -2
  394. package/dist/bundled/v2/components/OrTabsV3/styles.js +1 -31
  395. package/dist/bundled/v2/components/OrTabsV3-77ba89d8.js +249 -0
  396. package/dist/bundled/v2/components/OrTag/OrTag.js +3 -4
  397. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +2 -386
  398. package/dist/bundled/v2/components/OrTagInputV3/index.js +2 -2
  399. package/dist/bundled/v2/components/OrTagInputV3/props.js +1 -1
  400. package/dist/bundled/v2/components/OrTagInputV3/styles.js +1 -17
  401. package/dist/bundled/v2/components/OrTagInputV3-f72f3c44.js +395 -0
  402. package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -120
  403. package/dist/bundled/v2/components/OrTagV3/index.js +1 -2
  404. package/dist/bundled/v2/components/OrTagV3/props.js +1 -13
  405. package/dist/bundled/v2/components/OrTagV3/styles.js +1 -32
  406. package/dist/bundled/v2/components/OrTagV3-fe412dcd.js +159 -0
  407. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +2 -193
  408. package/dist/bundled/v2/components/OrTagsV3/index.js +1 -2
  409. package/dist/bundled/v2/components/OrTagsV3/props.js +1 -11
  410. package/dist/bundled/v2/components/OrTagsV3/styles.js +1 -46
  411. package/dist/bundled/v2/components/OrTagsV3/utils/castToTag.js +1 -12
  412. package/dist/bundled/v2/components/OrTagsV3-e2af9e7a.js +254 -0
  413. package/dist/bundled/v2/components/OrTeleport/OrTeleport.js +2 -630
  414. package/dist/bundled/v2/components/OrTeleport/constants.js +1 -16
  415. package/dist/bundled/v2/components/OrTeleport/index.js +1 -1
  416. package/dist/bundled/v2/components/OrTeleport-9b04228c.js +644 -0
  417. package/dist/bundled/v2/components/OrTeleportV3/OrTeleport.js +1 -1
  418. package/dist/bundled/v2/components/OrTextV3/OrText.js +2 -117
  419. package/dist/bundled/v2/components/OrTextV3/index.js +1 -1
  420. package/dist/bundled/v2/components/OrTextV3/styles.js +1 -17
  421. package/dist/bundled/{v3/OrText.vue_vue_type_script_lang-6ce019db.js → v2/components/OrTextV3-2874b826.js} +56 -2
  422. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +2 -4
  423. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.js +2 -243
  424. package/dist/bundled/v2/components/OrTextareaV3/index.js +2 -2
  425. package/dist/bundled/v2/components/OrTextareaV3/props.js +1 -1
  426. package/dist/bundled/v2/components/OrTextareaV3/styles.js +1 -16
  427. package/dist/bundled/v2/components/OrTextareaV3-16bee002.js +252 -0
  428. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +2 -499
  429. package/dist/bundled/v2/components/OrTextbox/constants.js +1 -11
  430. package/dist/bundled/v2/components/OrTextbox/index.js +505 -2
  431. package/dist/bundled/v2/components/OrTimeFormatV3/OrTimeFormat.js +2 -74
  432. package/dist/bundled/v2/components/OrTimeFormatV3/index.js +1 -1
  433. package/dist/bundled/v2/components/OrTimeFormatV3/styles.js +1 -5
  434. package/dist/bundled/v2/components/OrTimeFormatV3-c36f26c3.js +76 -0
  435. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -361
  436. package/dist/bundled/v2/components/OrTimePickerV3/index.js +3 -3
  437. package/dist/bundled/v2/components/OrTimePickerV3/props.js +2 -2
  438. package/dist/bundled/v2/components/OrTimePickerV3/styles.js +1 -8
  439. package/dist/bundled/v2/components/OrTimePickerV3-ba195fdf.js +362 -0
  440. package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.js +2 -434
  441. package/dist/bundled/v2/components/OrTimeRangePickerV3/index.js +3 -3
  442. package/dist/bundled/v2/components/OrTimeRangePickerV3/props.js +2 -2
  443. package/dist/bundled/v2/components/OrTimeRangePickerV3/styles.js +1 -8
  444. package/dist/bundled/v2/components/OrTimeRangePickerV3-4a15e963.js +434 -0
  445. package/dist/bundled/v2/components/OrToast/OrToast.js +2 -141
  446. package/dist/bundled/v2/components/OrToast/Timer.js +2 -37
  447. package/dist/bundled/v2/components/OrToast/composable/index.js +1 -2
  448. package/dist/bundled/v2/components/OrToast/composable/useQueue.js +2 -33
  449. package/dist/bundled/v2/components/OrToast/composable/useToast.js +1 -86
  450. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -25
  451. package/dist/bundled/v2/components/OrToast/constants.js +1 -24
  452. package/dist/bundled/v2/components/OrToast/index.js +1 -5
  453. package/dist/bundled/v2/components/OrToast-fc8a6f31.js +520 -0
  454. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +2 -201
  455. package/dist/bundled/v2/components/OrToastContainer/index.js +1 -4
  456. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +2 -223
  457. package/dist/bundled/v2/components/OrToastContainerV3/index.js +1 -5
  458. package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -172
  459. package/dist/bundled/v2/components/OrToastV3/Timer.js +2 -37
  460. package/dist/bundled/v2/components/OrToastV3/composable/index.js +1 -2
  461. package/dist/bundled/v2/components/OrToastV3/composable/useQueue.js +2 -33
  462. package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +1 -86
  463. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -25
  464. package/dist/bundled/v2/components/OrToastV3/index.js +1 -6
  465. package/dist/bundled/v2/components/OrToastV3/props.js +1 -1
  466. package/dist/bundled/v2/components/OrToastV3/styles.js +1 -59
  467. package/dist/bundled/{v3/components/OrToastV3/OrToast.js → v2/components/OrToastV3-f2aebc72.js} +552 -58
  468. package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +2 -180
  469. package/dist/bundled/v2/components/OrTooltip/index.js +240 -2
  470. package/dist/bundled/v2/components/OrTooltipContent/OrTooltipContent.js +2 -68
  471. package/dist/bundled/v2/components/OrTooltipContent/index.js +1 -1
  472. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +2 -139
  473. package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -2
  474. package/dist/bundled/v2/components/OrTooltipV3/props.js +1 -1
  475. package/dist/bundled/v2/components/OrTooltipV3/styles.js +2 -48
  476. package/dist/bundled/v2/components/OrTooltipV3-8df03b27.js +182 -0
  477. package/dist/bundled/v2/components/OrTreeV3/OrTree.js +2 -423
  478. package/dist/bundled/v2/components/OrTreeV3/index.js +429 -2
  479. package/dist/bundled/v2/components/index.js +92 -173
  480. package/dist/bundled/v2/directives/dropdown-close.js +2 -14
  481. package/dist/bundled/v2/directives/dropdown-open.js +2 -19
  482. package/dist/bundled/v2/directives/index.js +1 -2
  483. package/dist/bundled/v2/hooks/index.js +1 -10
  484. package/dist/bundled/v2/hooks/useControlAttributes.js +2 -12
  485. package/dist/bundled/v2/hooks/useElevation.js +2 -25
  486. package/dist/bundled/v2/hooks/useIdAttribute.js +2 -12
  487. package/dist/bundled/v2/hooks/useOverflow.js +2 -75
  488. package/dist/bundled/v2/hooks/usePopoverState.js +2 -42
  489. package/dist/bundled/v2/hooks/useProxyModelValue.js +2 -29
  490. package/dist/bundled/v2/hooks/useResponsive/index.js +1 -1
  491. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -203
  492. package/dist/bundled/v2/hooks/useTheme.js +1 -3753
  493. package/dist/bundled/v2/hooks/useToggle.js +2 -23
  494. package/dist/bundled/v2/hooks/useValidationAttributes.js +2 -16
  495. package/dist/bundled/v2/index.js +94 -199
  496. package/dist/bundled/v2/utils/constants/color.js +1 -16
  497. package/dist/bundled/v2/utils/constants/key-codes.js +1 -16
  498. package/dist/bundled/v2/utils/constants/poper.js +1 -10
  499. package/dist/bundled/v2/utils/constants/regex.js +1 -49
  500. package/dist/bundled/v2/utils/functions/color.js +1 -40
  501. package/dist/bundled/v2/utils/functions/dom.js +1 -2
  502. package/dist/bundled/v2/utils/functions/flattenDeep.js +1 -6
  503. package/dist/bundled/v2/utils/functions/hash.js +1 -8
  504. package/dist/bundled/v2/utils/functions/px-to-rem.js +1 -3
  505. package/dist/bundled/v2/utils/functions/text.js +2 -9
  506. package/dist/bundled/v2/utils/index.js +2 -12
  507. package/dist/bundled/v2/utils/isEmpty.js +1 -5
  508. package/dist/bundled/v2/utils/isEmptyValue.js +1 -5
  509. package/dist/bundled/v2/utils/isEqualValue.js +1 -8
  510. package/dist/bundled/v2/utils/isVisible.js +1 -5
  511. package/dist/esm/v2/{OrCardCollection-b9198c61.js → OrCardCollection-15ac88fa.js} +1 -1
  512. package/dist/esm/v2/{OrDateFormat-90426655.js → OrDateFormat-176aef8b.js} +2 -2
  513. package/dist/esm/v2/{OrDatePicker-40432166.js → OrDatePicker-8784a6a5.js} +2 -2
  514. package/dist/esm/v2/{OrDateRangePicker-0a9adf41.js → OrDateRangePicker-ae6714e2.js} +2 -2
  515. package/dist/esm/v2/{OrDateTimeFormat-56dde766.js → OrDateTimeFormat-c2a54cac.js} +2 -2
  516. package/dist/esm/v2/{OrDateTimePicker-66aa931a.js → OrDateTimePicker-b085ff13.js} +1 -1
  517. package/dist/esm/v2/{OrDateTimePicker.vue_rollup-plugin-vue_script-42488637.js → OrDateTimePicker.vue_rollup-plugin-vue_script-3bed9790.js} +1 -1
  518. package/dist/esm/v2/{OrDateTimePickerTimeSelect-11d972d0.js → OrDateTimePickerTimeSelect-602c5287.js} +1 -1
  519. package/dist/esm/v2/{OrMenuItem-d204cbc7.js → OrMenuItem-f377dc2d.js} +5 -5
  520. package/dist/esm/v2/{OrPagination-65a12cc6.js → OrPagination-f4020a6f.js} +1 -1
  521. package/dist/esm/v2/{OrRichTextEditor-cdbf7790.js → OrRichTextEditor-b7e948b4.js} +1 -1
  522. package/dist/esm/v2/{OrSelect-2c3cc149.js → OrSelect-6d6eec7a.js} +1 -1
  523. package/dist/esm/v2/{OrSorting-faf377cc.js → OrSorting-16f81092.js} +1 -1
  524. package/dist/esm/v2/{OrTab-b0ee117b.js → OrTab-2eea055a.js} +6 -22
  525. package/dist/esm/v2/{OrTabs-c28c758e.js → OrTabs-e3720a8f.js} +20 -39
  526. package/dist/esm/v2/{OrTimeFormat-6d3b87bc.js → OrTimeFormat-770f8be3.js} +2 -2
  527. package/dist/esm/v2/{OrTimePicker-d047d1d9.js → OrTimePicker-70034d60.js} +2 -2
  528. package/dist/esm/v2/{OrTimeRangePicker-da705573.js → OrTimeRangePicker-4e521ac0.js} +2 -2
  529. package/dist/esm/v2/components/index.js +18 -18
  530. package/dist/esm/v2/components/or-card-collection-v3/index.js +3 -3
  531. package/dist/esm/v2/components/or-date-format-v3/index.js +4 -4
  532. package/dist/esm/v2/components/or-date-picker-v3/index.js +4 -4
  533. package/dist/esm/v2/components/or-date-range-picker-v3/index.js +4 -4
  534. package/dist/esm/v2/components/or-date-time-format-v3/index.js +4 -4
  535. package/dist/esm/v2/components/or-date-time-picker-v3/index.js +4 -4
  536. package/dist/esm/v2/components/or-date-time-picker-v3/partials/index.js +2 -2
  537. package/dist/esm/v2/components/or-menu-item-v3/index.js +1 -1
  538. package/dist/esm/v2/components/or-pagination-v3/index.js +2 -2
  539. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +2 -2
  540. package/dist/esm/v2/components/or-select-v3/index.js +2 -2
  541. package/dist/esm/v2/components/or-sorting-v3/index.js +2 -2
  542. package/dist/esm/v2/components/or-tab-v3/OrTab.vue.d.ts +0 -22
  543. package/dist/esm/v2/components/or-tab-v3/index.js +1 -1
  544. package/dist/esm/v2/components/or-tab-v3/styles.d.ts +1 -1
  545. package/dist/esm/v2/components/or-tabs-v3/OrTabs.vue.d.ts +8 -32
  546. package/dist/esm/v2/components/or-tabs-v3/index.js +3 -3
  547. package/dist/esm/v2/components/or-tabs-v3/styles.d.ts +2 -2
  548. package/dist/esm/v2/components/or-time-format-v3/index.js +4 -4
  549. package/dist/esm/v2/components/or-time-picker-v3/index.js +4 -4
  550. package/dist/esm/v2/components/or-time-range-picker-v3/index.js +4 -4
  551. package/dist/esm/v2/index.js +18 -18
  552. package/dist/esm/v3/{OrCardCollection-549e5f80.js → OrCardCollection-8bbbbe26.js} +1 -1
  553. package/dist/esm/v3/{OrDateFormat-36ba02e5.js → OrDateFormat-8c9095ca.js} +2 -2
  554. package/dist/esm/v3/{OrDatePicker-7b626917.js → OrDatePicker-be607573.js} +2 -2
  555. package/dist/esm/v3/{OrDateRangePicker-c7570324.js → OrDateRangePicker-a16dcb30.js} +2 -2
  556. package/dist/esm/v3/{OrDateTimeFormat-c8076fb8.js → OrDateTimeFormat-88ba723e.js} +2 -2
  557. package/dist/esm/v3/{OrDateTimePicker-b1ec68a8.js → OrDateTimePicker-eccf252e.js} +1 -1
  558. package/dist/esm/v3/{OrDateTimePickerTimeSelect-c97af8c7.js → OrDateTimePickerTimeSelect-bc9342dd.js} +1 -1
  559. package/dist/esm/v3/{OrMenuItem-77e47b3b.js → OrMenuItem-c5d2a427.js} +5 -5
  560. package/dist/esm/v3/{OrPagination-18243eb9.js → OrPagination-4d9fa9a6.js} +1 -1
  561. package/dist/esm/v3/{OrRichTextEditor-eda0097a.js → OrRichTextEditor-995c5f4e.js} +1 -1
  562. package/dist/esm/v3/{OrSelect-02223247.js → OrSelect-e3032afb.js} +1 -1
  563. package/dist/esm/v3/{OrSorting-bfe2200c.js → OrSorting-4cf454bb.js} +1 -1
  564. package/dist/esm/v3/{OrTab-280dbc79.js → OrTab-276ea81d.js} +7 -23
  565. package/dist/esm/v3/{OrTabs-386a7ea8.js → OrTabs-c68c8be3.js} +21 -38
  566. package/dist/esm/v3/{OrTimeFormat-26cfaafd.js → OrTimeFormat-fc7a59f2.js} +2 -2
  567. package/dist/esm/v3/{OrTimePicker-ebfff3ab.js → OrTimePicker-7e4a8000.js} +2 -2
  568. package/dist/esm/v3/{OrTimeRangePicker-477cadab.js → OrTimeRangePicker-2d5a72ce.js} +2 -2
  569. package/dist/esm/v3/components/index.js +17 -17
  570. package/dist/esm/v3/components/or-card-collection-v3/index.js +3 -3
  571. package/dist/esm/v3/components/or-date-format-v3/index.js +4 -4
  572. package/dist/esm/v3/components/or-date-picker-v3/index.js +4 -4
  573. package/dist/esm/v3/components/or-date-range-picker-v3/index.js +4 -4
  574. package/dist/esm/v3/components/or-date-time-format-v3/index.js +4 -4
  575. package/dist/esm/v3/components/or-date-time-picker-v3/index.js +3 -3
  576. package/dist/esm/v3/components/or-date-time-picker-v3/partials/index.js +2 -2
  577. package/dist/esm/v3/components/or-menu-item-v3/index.js +1 -1
  578. package/dist/esm/v3/components/or-pagination-v3/index.js +2 -2
  579. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +2 -2
  580. package/dist/esm/v3/components/or-select-v3/index.js +2 -2
  581. package/dist/esm/v3/components/or-sorting-v3/index.js +2 -2
  582. package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +0 -18
  583. package/dist/esm/v3/components/or-tab-v3/index.js +1 -1
  584. package/dist/esm/v3/components/or-tab-v3/styles.d.ts +1 -1
  585. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +7 -26
  586. package/dist/esm/v3/components/or-tabs-v3/index.js +3 -3
  587. package/dist/esm/v3/components/or-tabs-v3/styles.d.ts +2 -2
  588. package/dist/esm/v3/components/or-time-format-v3/index.js +4 -4
  589. package/dist/esm/v3/components/or-time-picker-v3/index.js +4 -4
  590. package/dist/esm/v3/components/or-time-range-picker-v3/index.js +4 -4
  591. package/dist/esm/v3/index.js +17 -17
  592. package/package.json +15 -13
  593. package/src/components/or-menu-item-v3/OrMenuItem.vue +2 -2
  594. package/src/components/or-menu-item-v3/styles.ts +3 -4
  595. package/src/components/or-tab-v3/OrTab.vue +3 -15
  596. package/src/components/or-tab-v3/styles.ts +7 -25
  597. package/src/components/or-tabs-v3/OrTabs.vue +13 -34
  598. package/src/components/or-tabs-v3/styles.ts +13 -13
  599. package/dist/bundled/v2/OrDateTimePickerMonthSelect-7e3ffd97.js +0 -574
  600. package/dist/bundled/v2/OrDateTimePickerPopoverHeader-13a1f9e3.js +0 -235
  601. package/dist/bundled/v2/OrDateTimePickerTimeSelect-7ce1b97d.js +0 -359
  602. package/dist/bundled/v2/_baseAssignValue-2250dbc9.js +0 -38
  603. package/dist/bundled/v2/_baseIsEqual-fe2002b6.js +0 -1237
  604. package/dist/bundled/v2/_baseProperty-a52739e9.js +0 -15
  605. package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +0 -7
  606. package/dist/bundled/v2/components/OrCardCollection/types.js +0 -1
  607. package/dist/bundled/v2/components/OrCardCollectionV3/types.js +0 -1
  608. package/dist/bundled/v2/components/OrCheckboxTreeV3/types.js +0 -1
  609. package/dist/bundled/v2/components/OrColorPicker/types.js +0 -1
  610. package/dist/bundled/v2/components/OrDateTimePickerV3/types.js +0 -1
  611. package/dist/bundled/v2/components/OrEmptyStateV3/types.js +0 -1
  612. package/dist/bundled/v2/components/OrListV3/types.js +0 -1
  613. package/dist/bundled/v2/components/OrLoader/types.js +0 -1
  614. package/dist/bundled/v2/components/OrOverflowMenu/types.js +0 -1
  615. package/dist/bundled/v2/components/OrPaginationV3/types.js +0 -1
  616. package/dist/bundled/v2/components/OrPopoverV3/hooks/types.js +0 -1
  617. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  618. package/dist/bundled/v2/components/OrSegmentedControlV3/types.js +0 -1
  619. package/dist/bundled/v2/components/OrSelect/types.js +0 -1
  620. package/dist/bundled/v2/components/OrSelectV3/types.js +0 -1
  621. package/dist/bundled/v2/components/OrSortingV3/types.js +0 -1
  622. package/dist/bundled/v2/components/OrTabsV3/types.js +0 -1
  623. package/dist/bundled/v2/components/OrTagsV3/types.js +0 -1
  624. package/dist/bundled/v2/components/OrToast/types.js +0 -1
  625. package/dist/bundled/v2/components/OrToastV3/types.js +0 -1
  626. package/dist/bundled/v2/components/OrTreeV3/types.js +0 -8
  627. package/dist/bundled/v2/dom-cec392f3.js +0 -260
  628. package/dist/bundled/v2/eq-44ea4d70.js +0 -77
  629. package/dist/bundled/v2/get-34aa21f4.js +0 -856
  630. package/dist/bundled/v2/index-0fa7e6ca.js +0 -114
  631. package/dist/bundled/v2/index-3de14f24.js +0 -2301
  632. package/dist/bundled/v2/index-4acf7746.js +0 -94
  633. package/dist/bundled/v2/index-5564585f.js +0 -295
  634. package/dist/bundled/v2/index-5d81edfd.js +0 -760
  635. package/dist/bundled/v2/index-67eff9fe.js +0 -9715
  636. package/dist/bundled/v2/index-7121b6d0.js +0 -8
  637. package/dist/bundled/v2/index-8becffff.js +0 -1912
  638. package/dist/bundled/v2/index-9ab841c5.js +0 -837
  639. package/dist/bundled/v2/index-c1efbf6a.js +0 -819
  640. package/dist/bundled/v2/index-c54ed0b9.js +0 -361
  641. package/dist/bundled/v2/index-c80eecf1.js +0 -1636
  642. package/dist/bundled/v2/index-d41efd2a.js +0 -1379
  643. package/dist/bundled/v2/index-f1a845c3.js +0 -3158
  644. package/dist/bundled/v2/index-f671afe5.js +0 -7127
  645. package/dist/bundled/v2/isArrayLike-e7fb5cae.js +0 -91
  646. package/dist/bundled/v2/isEqual-7a8e6106.js +0 -38
  647. package/dist/bundled/v2/isObject-b7415fc1.js +0 -202
  648. package/dist/bundled/v2/markdown-7d2cd3a5.js +0 -8287
  649. package/dist/bundled/v2/normalize-component-6e8e3d80.js +0 -76
  650. package/dist/bundled/v2/props-7be029c7.js +0 -32
  651. package/dist/bundled/v2/range-82efa3d4.js +0 -136
  652. package/dist/bundled/v2/round-567ede34.js +0 -66
  653. package/dist/bundled/v2/style-inject.es-4c6f2515.js +0 -26
  654. package/dist/bundled/v2/toFinite-bc59ffb0.js +0 -142
  655. package/dist/bundled/v2/toInteger-9fa0151c.js +0 -38
  656. package/dist/bundled/v2/toString-b6e4472a.js +0 -114
  657. package/dist/bundled/v2/types-668300dd.js +0 -5
  658. package/dist/bundled/v2/useFocusTrap-f810e0ea.js +0 -1381
  659. package/dist/bundled/v2/v4-cf8987a3.js +0 -67
  660. package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-10c2add0.js +0 -55
  661. package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-d1b297c8.js +0 -59
  662. package/dist/bundled/v3/OrBottomSheet.vue_vue_type_script_lang-0cabf675.js +0 -91
  663. package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-0fb2b270.js +0 -105
  664. package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-dfeef2d0.js +0 -57
  665. package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-e9677805.js +0 -100
  666. package/dist/bundled/v3/OrButtonGroup.vue_vue_type_script_lang-72837423.js +0 -33
  667. package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-81561dd8.js +0 -21
  668. package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-adf1d0a3.js +0 -33
  669. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-20f91db4.js +0 -103
  670. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-6e2c25b4.js +0 -136
  671. package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-cdc466f7.js +0 -105
  672. package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-de28fcaf.js +0 -86
  673. package/dist/bundled/v3/OrCheckboxGroup.vue_vue_type_script_lang-0622d8c3.js +0 -57
  674. package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-b939bd8a.js +0 -111
  675. package/dist/bundled/v3/OrChip.vue_vue_type_script_lang-cacd81e5.js +0 -43
  676. package/dist/bundled/v3/OrChips.vue_vue_type_script_lang-e1f37564.js +0 -192
  677. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-8376244c.js +0 -237
  678. package/dist/bundled/v3/OrCollapse.vue_vue_type_script_lang-be1c8c66.js +0 -112
  679. package/dist/bundled/v3/OrColorPicker.vue_vue_type_script_lang-b030a96d.js +0 -59
  680. package/dist/bundled/v3/OrCombinedInput.vue_vue_type_script_lang-cdb2d8ca.js +0 -66
  681. package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-09002522.js +0 -168
  682. package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-2887602e.js +0 -163
  683. package/dist/bundled/v3/OrContextMenu.vue_vue_type_script_lang-16abb02a.js +0 -65
  684. package/dist/bundled/v3/OrDateFormat.vue_vue_type_script_lang-fef42ccd.js +0 -34
  685. package/dist/bundled/v3/OrDatePicker.vue_vue_type_script_lang-514737bb.js +0 -193
  686. package/dist/bundled/v3/OrDateRangePicker.vue_vue_type_script_lang-279b0e67.js +0 -225
  687. package/dist/bundled/v3/OrDateTimeFormat.vue_vue_type_script_lang-15603748.js +0 -41
  688. package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-0542cccc.js +0 -763
  689. package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-76b4b7b7.js +0 -260
  690. package/dist/bundled/v3/OrDateTimePickerMonthSelect.vue_vue_type_script_lang-60fd42d0.js +0 -336
  691. package/dist/bundled/v3/OrDateTimePickerPopoverHeader-5e6ba5aa.js +0 -207
  692. package/dist/bundled/v3/OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-40a2de7e.js +0 -105
  693. package/dist/bundled/v3/OrDateTimePickerTimeSelect-178aa93a.js +0 -85
  694. package/dist/bundled/v3/OrDateTimePickerTimeSelect.vue_vue_type_script_lang-636aa4a8.js +0 -215
  695. package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-2c1f09ef.js +0 -64
  696. package/dist/bundled/v3/OrError.vue_vue_type_script_lang-450321b8.js +0 -13
  697. package/dist/bundled/v3/OrError.vue_vue_type_script_lang-fcf91781.js +0 -29
  698. package/dist/bundled/v3/OrErrorTag.vue_vue_type_script_lang-057dcb3b.js +0 -24
  699. package/dist/bundled/v3/OrExpansionPanel.vue_vue_type_script_lang-7fad7b18.js +0 -68
  700. package/dist/bundled/v3/OrFab.vue_vue_type_script_lang-d68402ac.js +0 -39
  701. package/dist/bundled/v3/OrFloating.vue_vue_type_script_lang-38aa1d83.js +0 -148
  702. package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-165cf30e.js +0 -63
  703. package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-0ab8b932.js +0 -29
  704. package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-5eb3ee22.js +0 -14
  705. package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-db2e3f85.js +0 -34
  706. package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-f3cbff23.js +0 -99
  707. package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-667eefbf.js +0 -77
  708. package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-f6bf7dda.js +0 -143
  709. package/dist/bundled/v3/OrInlineInput.vue_vue_type_script_lang-5ab4644e.js +0 -141
  710. package/dist/bundled/v3/OrInlineInputBox.vue_vue_type_script_lang-fe99c485.js +0 -30
  711. package/dist/bundled/v3/OrInlineTextEdit.vue_vue_type_script_lang-d2f3ad39.js +0 -233
  712. package/dist/bundled/v3/OrInlineTextarea.vue_vue_type_script_lang-c6d82ad5.js +0 -132
  713. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-0d7cb6c3.js +0 -146
  714. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-515ff78a.js +0 -190
  715. package/dist/bundled/v3/OrInputBox.vue_vue_type_script_lang-989d5ee6.js +0 -93
  716. package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-6243e348.js +0 -41
  717. package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-e2bcff17.js +0 -45
  718. package/dist/bundled/v3/OrLink.vue_vue_type_script_lang-c35ed9e3.js +0 -46
  719. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-8df85a8d.js +0 -1008
  720. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-e1c786c5.js +0 -208
  721. package/dist/bundled/v3/OrListOfInputs.vue_vue_type_script_lang-34a006d0.js +0 -79
  722. package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-52edc8f8.js +0 -80
  723. package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-a1fed697.js +0 -48
  724. package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-3feb056b.js +0 -76
  725. package/dist/bundled/v3/OrMenuItem.vue_vue_type_script_lang-0ac024bf.js +0 -39
  726. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-4a14c3ae.js +0 -163
  727. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-70904ce1.js +0 -101
  728. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-5fd54a49.js +0 -54
  729. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-81d7cfef.js +0 -70
  730. package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-b832e611.js +0 -114
  731. package/dist/bundled/v3/OrOverflowMenu.vue_vue_type_script_lang-5bde29a6.js +0 -139
  732. package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-2f5d626d.js +0 -33
  733. package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-4a0cd054.js +0 -40
  734. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-041013db.js +0 -167
  735. package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-1165ec6c.js +0 -100
  736. package/dist/bundled/v3/OrPopover.vue_vue_type_script_lang-877797ba.js +0 -162
  737. package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-4b93a66e.js +0 -136
  738. package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-c4bd7133.js +0 -130
  739. package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-750ce51f.js +0 -82
  740. package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-a4f043e9.js +0 -92
  741. package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-75b6c81b.js +0 -47
  742. package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-8fad9a5f.js +0 -56
  743. package/dist/bundled/v3/OrRangeSlider.vue_vue_type_script_lang-e17cd5a8.js +0 -150
  744. package/dist/bundled/v3/OrResizeablePanel.vue_vue_type_script_lang-e2f723b0.js +0 -187
  745. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-a22416de.js +0 -1910
  746. package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-245c9614.js +0 -123
  747. package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-46df9961.js +0 -83
  748. package/dist/bundled/v3/OrSegmentedControl.vue_vue_type_script_lang-10bd4ea8.js +0 -135
  749. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-baf7c270.js +0 -1267
  750. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-d99e4138.js +0 -747
  751. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-777f8c4f.js +0 -131
  752. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-d6e95246.js +0 -85
  753. package/dist/bundled/v3/OrSkeletonCircle.vue_vue_type_script_lang-2a2e5870.js +0 -44
  754. package/dist/bundled/v3/OrSkeletonCircle.vue_vue_type_script_lang-b768e00d.js +0 -38
  755. package/dist/bundled/v3/OrSkeletonRect.vue_vue_type_script_lang-32f819ad.js +0 -41
  756. package/dist/bundled/v3/OrSkeletonRect.vue_vue_type_script_lang-3a1d6b32.js +0 -47
  757. package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-502607ef.js +0 -71
  758. package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js +0 -50
  759. package/dist/bundled/v3/OrSlider.vue_vue_type_script_lang-ae4652e3.js +0 -227
  760. package/dist/bundled/v3/OrSlider.vue_vue_type_script_lang-e26488b0.js +0 -115
  761. package/dist/bundled/v3/OrSorting.vue_vue_type_script_lang-e819d8a0.js +0 -66
  762. package/dist/bundled/v3/OrStepper.vue_vue_type_script_lang-33639493.js +0 -377
  763. package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-3ef06bbd.js +0 -78
  764. package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-9e9e15d1.js +0 -91
  765. package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-c0fa2c25.js +0 -34
  766. package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-d9ee65b6.js +0 -57
  767. package/dist/bundled/v3/OrTabHeaderItem.vue_vue_type_script_lang-e1a0b91f.js +0 -60
  768. package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-9129d34b.js +0 -46
  769. package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-d98ae665.js +0 -148
  770. package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-533656e5.js +0 -55
  771. package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-b62c0b79.js +0 -58
  772. package/dist/bundled/v3/OrTagInput.vue_vue_type_script_lang-fa961339.js +0 -202
  773. package/dist/bundled/v3/OrTags.vue_vue_type_script_lang-4221ee26.js +0 -115
  774. package/dist/bundled/v3/OrTeleport.vue3.vue_vue_type_script_lang-dfc6301c.js +0 -16
  775. package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-5624556c.js +0 -187
  776. package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-9f62ecd7.js +0 -112
  777. package/dist/bundled/v3/OrTextbox.vue_vue_type_script_lang-d0db6077.js +0 -336
  778. package/dist/bundled/v3/OrTimeFormat.vue_vue_type_script_lang-acef5eaa.js +0 -39
  779. package/dist/bundled/v3/OrTimePicker.vue_vue_type_script_lang-4bda3fcb.js +0 -191
  780. package/dist/bundled/v3/OrTimeRangePicker.vue_vue_type_script_lang-5d813382.js +0 -202
  781. package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-84d3f4c8.js +0 -155
  782. package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-b019a53c.js +0 -135
  783. package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-288c978f.js +0 -113
  784. package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-a8c7bc09.js +0 -77
  785. package/dist/bundled/v3/OrTooltipContent.vue_vue_type_script_lang-4c1afacb.js +0 -19
  786. package/dist/bundled/v3/OrTree.vue_vue_type_script_lang-f6e6d6ac.js +0 -310
  787. package/dist/bundled/v3/_baseAssignValue-2250dbc9.js +0 -38
  788. package/dist/bundled/v3/_baseIsEqual-fe2002b6.js +0 -1237
  789. package/dist/bundled/v3/_baseProperty-a52739e9.js +0 -15
  790. package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +0 -7
  791. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +0 -33
  792. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +0 -47
  793. package/dist/bundled/v3/components/OrAvatar/constants.d.ts +0 -5
  794. package/dist/bundled/v3/components/OrAvatar/constants.js +0 -8
  795. package/dist/bundled/v3/components/OrAvatar/index.d.ts +0 -2
  796. package/dist/bundled/v3/components/OrAvatar/index.js +0 -2
  797. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +0 -24
  798. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +0 -55
  799. package/dist/bundled/v3/components/OrAvatarV3/index.d.ts +0 -2
  800. package/dist/bundled/v3/components/OrAvatarV3/index.js +0 -2
  801. package/dist/bundled/v3/components/OrAvatarV3/props.d.ts +0 -15
  802. package/dist/bundled/v3/components/OrAvatarV3/props.js +0 -19
  803. package/dist/bundled/v3/components/OrAvatarV3/styles.d.ts +0 -6
  804. package/dist/bundled/v3/components/OrAvatarV3/styles.js +0 -84
  805. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +0 -31
  806. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +0 -566
  807. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.d.ts +0 -530
  808. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +0 -71
  809. package/dist/bundled/v3/components/OrBottomSheetV3/index.d.ts +0 -2
  810. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +0 -2
  811. package/dist/bundled/v3/components/OrBottomSheetV3/props.d.ts +0 -4
  812. package/dist/bundled/v3/components/OrBottomSheetV3/props.js +0 -7
  813. package/dist/bundled/v3/components/OrBottomSheetV3/styles.d.ts +0 -6
  814. package/dist/bundled/v3/components/OrBottomSheetV3/styles.js +0 -48
  815. package/dist/bundled/v3/components/OrButton/OrButton.js +0 -43
  816. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +0 -153
  817. package/dist/bundled/v3/components/OrButton/constants.d.ts +0 -21
  818. package/dist/bundled/v3/components/OrButton/constants.js +0 -25
  819. package/dist/bundled/v3/components/OrButton/index.d.ts +0 -2
  820. package/dist/bundled/v3/components/OrButton/index.js +0 -2
  821. package/dist/bundled/v3/components/OrButtonGroupV3/OrButtonGroup.js +0 -13
  822. package/dist/bundled/v3/components/OrButtonGroupV3/OrButtonGroup.vue.d.ts +0 -37
  823. package/dist/bundled/v3/components/OrButtonGroupV3/index.d.ts +0 -2
  824. package/dist/bundled/v3/components/OrButtonGroupV3/index.js +0 -2
  825. package/dist/bundled/v3/components/OrButtonGroupV3/props.d.ts +0 -1
  826. package/dist/bundled/v3/components/OrButtonGroupV3/props.js +0 -1
  827. package/dist/bundled/v3/components/OrButtonGroupV3/styles.d.ts +0 -3
  828. package/dist/bundled/v3/components/OrButtonGroupV3/styles.js +0 -21
  829. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +0 -42
  830. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +0 -126
  831. package/dist/bundled/v3/components/OrButtonV2/constants.d.ts +0 -35
  832. package/dist/bundled/v3/components/OrButtonV2/constants.js +0 -43
  833. package/dist/bundled/v3/components/OrButtonV2/index.d.ts +0 -3
  834. package/dist/bundled/v3/components/OrButtonV2/index.js +0 -3
  835. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +0 -36
  836. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +0 -78
  837. package/dist/bundled/v3/components/OrButtonV3/index.d.ts +0 -2
  838. package/dist/bundled/v3/components/OrButtonV3/index.js +0 -2
  839. package/dist/bundled/v3/components/OrButtonV3/props.d.ts +0 -16
  840. package/dist/bundled/v3/components/OrButtonV3/props.js +0 -21
  841. package/dist/bundled/v3/components/OrButtonV3/styles.d.ts +0 -4
  842. package/dist/bundled/v3/components/OrButtonV3/styles.js +0 -75
  843. package/dist/bundled/v3/components/OrCard/OrCard.js +0 -21
  844. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +0 -18
  845. package/dist/bundled/v3/components/OrCard/index.d.ts +0 -1
  846. package/dist/bundled/v3/components/OrCard/index.js +0 -1
  847. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +0 -88
  848. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +0 -86
  849. package/dist/bundled/v3/components/OrCardCollection/constants.d.ts +0 -4
  850. package/dist/bundled/v3/components/OrCardCollection/constants.js +0 -7
  851. package/dist/bundled/v3/components/OrCardCollection/index.d.ts +0 -3
  852. package/dist/bundled/v3/components/OrCardCollection/index.js +0 -2
  853. package/dist/bundled/v3/components/OrCardCollection/types.d.ts +0 -8
  854. package/dist/bundled/v3/components/OrCardCollection/types.js +0 -1
  855. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +0 -65
  856. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +0 -93
  857. package/dist/bundled/v3/components/OrCardCollectionV3/index.d.ts +0 -3
  858. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +0 -2
  859. package/dist/bundled/v3/components/OrCardCollectionV3/props.d.ts +0 -8
  860. package/dist/bundled/v3/components/OrCardCollectionV3/props.js +0 -16
  861. package/dist/bundled/v3/components/OrCardCollectionV3/styles.d.ts +0 -6
  862. package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +0 -38
  863. package/dist/bundled/v3/components/OrCardCollectionV3/types.d.ts +0 -8
  864. package/dist/bundled/v3/components/OrCardCollectionV3/types.js +0 -1
  865. package/dist/bundled/v3/components/OrCardV3/OrCard.js +0 -15
  866. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +0 -37
  867. package/dist/bundled/v3/components/OrCardV3/index.d.ts +0 -2
  868. package/dist/bundled/v3/components/OrCardV3/index.js +0 -2
  869. package/dist/bundled/v3/components/OrCardV3/props.d.ts +0 -5
  870. package/dist/bundled/v3/components/OrCardV3/props.js +0 -8
  871. package/dist/bundled/v3/components/OrCardV3/styles.d.ts +0 -4
  872. package/dist/bundled/v3/components/OrCardV3/styles.js +0 -27
  873. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +0 -68
  874. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +0 -73
  875. package/dist/bundled/v3/components/OrCheckbox/index.d.ts +0 -1
  876. package/dist/bundled/v3/components/OrCheckbox/index.js +0 -1
  877. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +0 -33
  878. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +0 -73
  879. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +0 -1
  880. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +0 -1
  881. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +0 -64
  882. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +0 -65
  883. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +0 -2
  884. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +0 -1
  885. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.d.ts +0 -2
  886. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +0 -10
  887. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +0 -8
  888. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.js +0 -1
  889. package/dist/bundled/v3/components/OrCheckboxTreeV3/utils/extractChildrenValues.d.ts +0 -2
  890. package/dist/bundled/v3/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +0 -19
  891. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +0 -47
  892. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +0 -90
  893. package/dist/bundled/v3/components/OrCheckboxV3/index.d.ts +0 -1
  894. package/dist/bundled/v3/components/OrCheckboxV3/index.js +0 -1
  895. package/dist/bundled/v3/components/OrCheckboxV3/styles.d.ts +0 -3
  896. package/dist/bundled/v3/components/OrCheckboxV3/styles.js +0 -31
  897. package/dist/bundled/v3/components/OrChip/OrChip.js +0 -29
  898. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +0 -42
  899. package/dist/bundled/v3/components/OrChip/index.d.ts +0 -1
  900. package/dist/bundled/v3/components/OrChip/index.js +0 -1
  901. package/dist/bundled/v3/components/OrChips/OrChips.js +0 -49
  902. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +0 -69
  903. package/dist/bundled/v3/components/OrChips/constants.d.ts +0 -9
  904. package/dist/bundled/v3/components/OrChips/constants.js +0 -10
  905. package/dist/bundled/v3/components/OrChips/index.d.ts +0 -2
  906. package/dist/bundled/v3/components/OrChips/index.js +0 -2
  907. package/dist/bundled/v3/components/OrCode/OrCode.js +0 -91
  908. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +0 -168
  909. package/dist/bundled/v3/components/OrCode/constants.d.ts +0 -8
  910. package/dist/bundled/v3/components/OrCode/constants.js +0 -11
  911. package/dist/bundled/v3/components/OrCode/index.d.ts +0 -3
  912. package/dist/bundled/v3/components/OrCode/index.js +0 -7
  913. package/dist/bundled/v3/components/OrCode/lang.d.ts +0 -11
  914. package/dist/bundled/v3/components/OrCode/lang.js +0 -27
  915. package/dist/bundled/v3/components/OrCode/libs.d.ts +0 -5
  916. package/dist/bundled/v3/components/OrCode/libs.js +0 -5
  917. package/dist/bundled/v3/components/OrCode/theme.d.ts +0 -24
  918. package/dist/bundled/v3/components/OrCode/theme.js +0 -189
  919. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +0 -57
  920. package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +0 -131
  921. package/dist/bundled/v3/components/OrCodeV3/index.d.ts +0 -3
  922. package/dist/bundled/v3/components/OrCodeV3/index.js +0 -7
  923. package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +0 -6
  924. package/dist/bundled/v3/components/OrCodeV3/libs.js +0 -5
  925. package/dist/bundled/v3/components/OrCodeV3/props.d.ts +0 -8
  926. package/dist/bundled/v3/components/OrCodeV3/props.js +0 -11
  927. package/dist/bundled/v3/components/OrCodeV3/styles.d.ts +0 -4
  928. package/dist/bundled/v3/components/OrCodeV3/styles.js +0 -28
  929. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +0 -36
  930. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +0 -53
  931. package/dist/bundled/v3/components/OrCollapse/index.d.ts +0 -1
  932. package/dist/bundled/v3/components/OrCollapse/index.js +0 -1
  933. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +0 -76
  934. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +0 -48
  935. package/dist/bundled/v3/components/OrColorPicker/constants.d.ts +0 -575
  936. package/dist/bundled/v3/components/OrColorPicker/constants.js +0 -323
  937. package/dist/bundled/v3/components/OrColorPicker/index.d.ts +0 -3
  938. package/dist/bundled/v3/components/OrColorPicker/index.js +0 -2
  939. package/dist/bundled/v3/components/OrColorPicker/types.d.ts +0 -1
  940. package/dist/bundled/v3/components/OrColorPicker/types.js +0 -1
  941. package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.d.ts +0 -2
  942. package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.js +0 -16
  943. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +0 -54
  944. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +0 -83
  945. package/dist/bundled/v3/components/OrCombinedInputV3/index.d.ts +0 -2
  946. package/dist/bundled/v3/components/OrCombinedInputV3/index.js +0 -2
  947. package/dist/bundled/v3/components/OrCombinedInputV3/props.d.ts +0 -1
  948. package/dist/bundled/v3/components/OrCombinedInputV3/props.js +0 -1
  949. package/dist/bundled/v3/components/OrCombinedInputV3/styles.d.ts +0 -2
  950. package/dist/bundled/v3/components/OrCombinedInputV3/styles.js +0 -16
  951. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +0 -60
  952. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +0 -176
  953. package/dist/bundled/v3/components/OrConfirm/index.d.ts +0 -1
  954. package/dist/bundled/v3/components/OrConfirm/index.js +0 -1
  955. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +0 -67
  956. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +0 -138
  957. package/dist/bundled/v3/components/OrConfirmV3/index.d.ts +0 -2
  958. package/dist/bundled/v3/components/OrConfirmV3/index.js +0 -2
  959. package/dist/bundled/v3/components/OrConfirmV3/props.d.ts +0 -4
  960. package/dist/bundled/v3/components/OrConfirmV3/props.js +0 -7
  961. package/dist/bundled/v3/components/OrConfirmV3/styles.d.ts +0 -7
  962. package/dist/bundled/v3/components/OrConfirmV3/styles.js +0 -47
  963. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +0 -20
  964. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.vue.d.ts +0 -45
  965. package/dist/bundled/v3/components/OrContextMenuV3/index.d.ts +0 -2
  966. package/dist/bundled/v3/components/OrContextMenuV3/index.js +0 -2
  967. package/dist/bundled/v3/components/OrContextMenuV3/props.d.ts +0 -2
  968. package/dist/bundled/v3/components/OrContextMenuV3/props.js +0 -1
  969. package/dist/bundled/v3/components/OrDateFormatV3/OrDateFormat.js +0 -13
  970. package/dist/bundled/v3/components/OrDateFormatV3/OrDateFormat.vue.d.ts +0 -28
  971. package/dist/bundled/v3/components/OrDateFormatV3/index.d.ts +0 -1
  972. package/dist/bundled/v3/components/OrDateFormatV3/index.js +0 -1
  973. package/dist/bundled/v3/components/OrDateFormatV3/styles.d.ts +0 -1
  974. package/dist/bundled/v3/components/OrDateFormatV3/styles.js +0 -5
  975. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +0 -131
  976. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +0 -263
  977. package/dist/bundled/v3/components/OrDatePickerV3/index.d.ts +0 -2
  978. package/dist/bundled/v3/components/OrDatePickerV3/index.js +0 -2
  979. package/dist/bundled/v3/components/OrDatePickerV3/props.d.ts +0 -1
  980. package/dist/bundled/v3/components/OrDatePickerV3/props.js +0 -1
  981. package/dist/bundled/v3/components/OrDatePickerV3/styles.d.ts +0 -2
  982. package/dist/bundled/v3/components/OrDatePickerV3/styles.js +0 -10
  983. package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +0 -165
  984. package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +0 -553
  985. package/dist/bundled/v3/components/OrDateRangePickerV3/index.d.ts +0 -2
  986. package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +0 -2
  987. package/dist/bundled/v3/components/OrDateRangePickerV3/props.d.ts +0 -1
  988. package/dist/bundled/v3/components/OrDateRangePickerV3/props.js +0 -1
  989. package/dist/bundled/v3/components/OrDateRangePickerV3/styles.d.ts +0 -2
  990. package/dist/bundled/v3/components/OrDateRangePickerV3/styles.js +0 -10
  991. package/dist/bundled/v3/components/OrDateTimeFormatV3/OrDateTimeFormat.js +0 -13
  992. package/dist/bundled/v3/components/OrDateTimeFormatV3/OrDateTimeFormat.vue.d.ts +0 -39
  993. package/dist/bundled/v3/components/OrDateTimeFormatV3/index.d.ts +0 -1
  994. package/dist/bundled/v3/components/OrDateTimeFormatV3/index.js +0 -1
  995. package/dist/bundled/v3/components/OrDateTimeFormatV3/styles.d.ts +0 -1
  996. package/dist/bundled/v3/components/OrDateTimeFormatV3/styles.js +0 -5
  997. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +0 -228
  998. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +0 -270
  999. package/dist/bundled/v3/components/OrDateTimePicker/constants.d.ts +0 -24
  1000. package/dist/bundled/v3/components/OrDateTimePicker/constants.js +0 -20
  1001. package/dist/bundled/v3/components/OrDateTimePicker/index.d.ts +0 -2
  1002. package/dist/bundled/v3/components/OrDateTimePicker/index.js +0 -2
  1003. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +0 -193
  1004. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +0 -296
  1005. package/dist/bundled/v3/components/OrDateTimePickerV3/index.d.ts +0 -5
  1006. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +0 -12
  1007. package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +0 -6
  1008. package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +0 -10
  1009. package/dist/bundled/v3/components/OrDateTimePickerV3/styles.d.ts +0 -3
  1010. package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +0 -11
  1011. package/dist/bundled/v3/components/OrDateTimePickerV3/types.d.ts +0 -3
  1012. package/dist/bundled/v3/components/OrDateTimePickerV3/types.js +0 -1
  1013. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatDate.d.ts +0 -1
  1014. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatDate.js +0 -8
  1015. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatTime.d.ts +0 -2
  1016. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatTime.js +0 -11
  1017. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getCurrentDate.d.ts +0 -1
  1018. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getCurrentDate.js +0 -6
  1019. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getDatePlaceholder.d.ts +0 -1
  1020. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getDatePlaceholder.js +0 -9
  1021. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.d.ts +0 -1
  1022. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.js +0 -6
  1023. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getTimePlaceholder.d.ts +0 -2
  1024. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getTimePlaceholder.js +0 -12
  1025. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.d.ts +0 -6
  1026. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.js +0 -6
  1027. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.js +0 -26
  1028. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +0 -86
  1029. package/dist/bundled/v3/components/OrEmptyStateV3/index.d.ts +0 -3
  1030. package/dist/bundled/v3/components/OrEmptyStateV3/index.js +0 -2
  1031. package/dist/bundled/v3/components/OrEmptyStateV3/props.d.ts +0 -4
  1032. package/dist/bundled/v3/components/OrEmptyStateV3/props.js +0 -7
  1033. package/dist/bundled/v3/components/OrEmptyStateV3/styles.d.ts +0 -10
  1034. package/dist/bundled/v3/components/OrEmptyStateV3/styles.js +0 -46
  1035. package/dist/bundled/v3/components/OrEmptyStateV3/types.d.ts +0 -2
  1036. package/dist/bundled/v3/components/OrEmptyStateV3/types.js +0 -1
  1037. package/dist/bundled/v3/components/OrError/OrError.js +0 -18
  1038. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +0 -15
  1039. package/dist/bundled/v3/components/OrError/index.d.ts +0 -1
  1040. package/dist/bundled/v3/components/OrError/index.js +0 -1
  1041. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.js +0 -20
  1042. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +0 -5
  1043. package/dist/bundled/v3/components/OrErrorTagV3/index.d.ts +0 -1
  1044. package/dist/bundled/v3/components/OrErrorTagV3/index.js +0 -1
  1045. package/dist/bundled/v3/components/OrErrorTagV3/styles.d.ts +0 -1
  1046. package/dist/bundled/v3/components/OrErrorTagV3/styles.js +0 -15
  1047. package/dist/bundled/v3/components/OrErrorV3/OrError.js +0 -19
  1048. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +0 -19
  1049. package/dist/bundled/v3/components/OrErrorV3/index.d.ts +0 -1
  1050. package/dist/bundled/v3/components/OrErrorV3/index.js +0 -1
  1051. package/dist/bundled/v3/components/OrErrorV3/styles.d.ts +0 -3
  1052. package/dist/bundled/v3/components/OrErrorV3/styles.js +0 -19
  1053. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +0 -34
  1054. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +0 -73
  1055. package/dist/bundled/v3/components/OrExpansionPanelV3/index.d.ts +0 -2
  1056. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +0 -2
  1057. package/dist/bundled/v3/components/OrExpansionPanelV3/props.d.ts +0 -13
  1058. package/dist/bundled/v3/components/OrExpansionPanelV3/props.js +0 -18
  1059. package/dist/bundled/v3/components/OrExpansionPanelV3/styles.d.ts +0 -7
  1060. package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +0 -69
  1061. package/dist/bundled/v3/components/OrFabV3/OrFab.js +0 -22
  1062. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +0 -37
  1063. package/dist/bundled/v3/components/OrFabV3/index.d.ts +0 -2
  1064. package/dist/bundled/v3/components/OrFabV3/index.js +0 -2
  1065. package/dist/bundled/v3/components/OrFabV3/props.d.ts +0 -4
  1066. package/dist/bundled/v3/components/OrFabV3/props.js +0 -7
  1067. package/dist/bundled/v3/components/OrFabV3/styles.d.ts +0 -3
  1068. package/dist/bundled/v3/components/OrFabV3/styles.js +0 -19
  1069. package/dist/bundled/v3/components/OrFloating/OrFloating.js +0 -24
  1070. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +0 -123
  1071. package/dist/bundled/v3/components/OrFloating/constants.d.ts +0 -18
  1072. package/dist/bundled/v3/components/OrFloating/constants.js +0 -22
  1073. package/dist/bundled/v3/components/OrFloating/index.d.ts +0 -2
  1074. package/dist/bundled/v3/components/OrFloating/index.js +0 -2
  1075. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +0 -46
  1076. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +0 -67
  1077. package/dist/bundled/v3/components/OrFormGroupV3/index.d.ts +0 -2
  1078. package/dist/bundled/v3/components/OrFormGroupV3/index.js +0 -2
  1079. package/dist/bundled/v3/components/OrFormGroupV3/props.d.ts +0 -4
  1080. package/dist/bundled/v3/components/OrFormGroupV3/props.js +0 -7
  1081. package/dist/bundled/v3/components/OrFormGroupV3/styles.d.ts +0 -5
  1082. package/dist/bundled/v3/components/OrFormGroupV3/styles.js +0 -17
  1083. package/dist/bundled/v3/components/OrHint/OrHint.js +0 -18
  1084. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +0 -17
  1085. package/dist/bundled/v3/components/OrHint/index.d.ts +0 -1
  1086. package/dist/bundled/v3/components/OrHint/index.js +0 -1
  1087. package/dist/bundled/v3/components/OrHintV3/OrHint.js +0 -19
  1088. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +0 -19
  1089. package/dist/bundled/v3/components/OrHintV3/index.d.ts +0 -1
  1090. package/dist/bundled/v3/components/OrHintV3/index.js +0 -1
  1091. package/dist/bundled/v3/components/OrHintV3/styles.d.ts +0 -3
  1092. package/dist/bundled/v3/components/OrHintV3/styles.js +0 -19
  1093. package/dist/bundled/v3/components/OrIcon/OrIcon.js +0 -44
  1094. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +0 -95
  1095. package/dist/bundled/v3/components/OrIcon/constants.d.ts +0 -20
  1096. package/dist/bundled/v3/components/OrIcon/constants.js +0 -24
  1097. package/dist/bundled/v3/components/OrIcon/index.d.ts +0 -2
  1098. package/dist/bundled/v3/components/OrIcon/index.js +0 -2
  1099. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +0 -43
  1100. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +0 -106
  1101. package/dist/bundled/v3/components/OrIconButtonV2/index.d.ts +0 -1
  1102. package/dist/bundled/v3/components/OrIconButtonV2/index.js +0 -1
  1103. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +0 -34
  1104. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +0 -82
  1105. package/dist/bundled/v3/components/OrIconButtonV3/index.d.ts +0 -2
  1106. package/dist/bundled/v3/components/OrIconButtonV3/index.js +0 -3
  1107. package/dist/bundled/v3/components/OrIconButtonV3/props.d.ts +0 -7
  1108. package/dist/bundled/v3/components/OrIconButtonV3/props.js +0 -11
  1109. package/dist/bundled/v3/components/OrIconButtonV3/styles.d.ts +0 -3
  1110. package/dist/bundled/v3/components/OrIconButtonV3/styles.js +0 -72
  1111. package/dist/bundled/v3/components/OrIconV3/OrIcon.js +0 -13
  1112. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +0 -36
  1113. package/dist/bundled/v3/components/OrIconV3/index.d.ts +0 -2
  1114. package/dist/bundled/v3/components/OrIconV3/index.js +0 -2
  1115. package/dist/bundled/v3/components/OrIconV3/props.d.ts +0 -13
  1116. package/dist/bundled/v3/components/OrIconV3/props.js +0 -17
  1117. package/dist/bundled/v3/components/OrIconV3/styles.d.ts +0 -4
  1118. package/dist/bundled/v3/components/OrIconV3/styles.js +0 -44
  1119. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.js +0 -15
  1120. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +0 -28
  1121. package/dist/bundled/v3/components/OrInlineInputBoxV3/index.d.ts +0 -2
  1122. package/dist/bundled/v3/components/OrInlineInputBoxV3/index.js +0 -2
  1123. package/dist/bundled/v3/components/OrInlineInputBoxV3/props.d.ts +0 -4
  1124. package/dist/bundled/v3/components/OrInlineInputBoxV3/props.js +0 -7
  1125. package/dist/bundled/v3/components/OrInlineInputBoxV3/styles.d.ts +0 -3
  1126. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +0 -85
  1127. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +0 -106
  1128. package/dist/bundled/v3/components/OrInlineInputV3/index.d.ts +0 -2
  1129. package/dist/bundled/v3/components/OrInlineInputV3/index.js +0 -3
  1130. package/dist/bundled/v3/components/OrInlineInputV3/props.d.ts +0 -5
  1131. package/dist/bundled/v3/components/OrInlineInputV3/props.js +0 -9
  1132. package/dist/bundled/v3/components/OrInlineInputV3/styles.d.ts +0 -5
  1133. package/dist/bundled/v3/components/OrInlineInputV3/styles.js +0 -29
  1134. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +0 -116
  1135. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +0 -157
  1136. package/dist/bundled/v3/components/OrInlineTextEdit/constants.d.ts +0 -9
  1137. package/dist/bundled/v3/components/OrInlineTextEdit/constants.js +0 -13
  1138. package/dist/bundled/v3/components/OrInlineTextEdit/index.d.ts +0 -2
  1139. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +0 -2
  1140. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +0 -84
  1141. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +0 -86
  1142. package/dist/bundled/v3/components/OrInlineTextareaV3/index.d.ts +0 -1
  1143. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +0 -1
  1144. package/dist/bundled/v3/components/OrInlineTextareaV3/styles.d.ts +0 -3
  1145. package/dist/bundled/v3/components/OrInlineTextareaV3/styles.js +0 -21
  1146. package/dist/bundled/v3/components/OrInput/OrInput.js +0 -117
  1147. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +0 -153
  1148. package/dist/bundled/v3/components/OrInput/index.d.ts +0 -1
  1149. package/dist/bundled/v3/components/OrInput/index.js +0 -1
  1150. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +0 -27
  1151. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +0 -55
  1152. package/dist/bundled/v3/components/OrInputBoxV3/index.d.ts +0 -2
  1153. package/dist/bundled/v3/components/OrInputBoxV3/index.js +0 -2
  1154. package/dist/bundled/v3/components/OrInputBoxV3/props.d.ts +0 -8
  1155. package/dist/bundled/v3/components/OrInputBoxV3/props.js +0 -12
  1156. package/dist/bundled/v3/components/OrInputBoxV3/styles.d.ts +0 -4
  1157. package/dist/bundled/v3/components/OrInputBoxV3/styles.js +0 -49
  1158. package/dist/bundled/v3/components/OrInputV3/OrInput.js +0 -121
  1159. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +0 -156
  1160. package/dist/bundled/v3/components/OrInputV3/index.d.ts +0 -2
  1161. package/dist/bundled/v3/components/OrInputV3/index.js +0 -3
  1162. package/dist/bundled/v3/components/OrInputV3/props.d.ts +0 -7
  1163. package/dist/bundled/v3/components/OrInputV3/props.js +0 -11
  1164. package/dist/bundled/v3/components/OrInputV3/styles.d.ts +0 -2
  1165. package/dist/bundled/v3/components/OrInputV3/styles.js +0 -14
  1166. package/dist/bundled/v3/components/OrLabel/OrLabel.js +0 -21
  1167. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +0 -32
  1168. package/dist/bundled/v3/components/OrLabel/index.d.ts +0 -1
  1169. package/dist/bundled/v3/components/OrLabel/index.js +0 -1
  1170. package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +0 -24
  1171. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +0 -57
  1172. package/dist/bundled/v3/components/OrLabelV3/index.d.ts +0 -2
  1173. package/dist/bundled/v3/components/OrLabelV3/index.js +0 -2
  1174. package/dist/bundled/v3/components/OrLabelV3/props.d.ts +0 -5
  1175. package/dist/bundled/v3/components/OrLabelV3/props.js +0 -8
  1176. package/dist/bundled/v3/components/OrLabelV3/styles.d.ts +0 -5
  1177. package/dist/bundled/v3/components/OrLabelV3/styles.js +0 -38
  1178. package/dist/bundled/v3/components/OrLinkV3/OrLink.js +0 -20
  1179. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +0 -63
  1180. package/dist/bundled/v3/components/OrLinkV3/index.d.ts +0 -2
  1181. package/dist/bundled/v3/components/OrLinkV3/index.js +0 -2
  1182. package/dist/bundled/v3/components/OrLinkV3/props.d.ts +0 -7
  1183. package/dist/bundled/v3/components/OrLinkV3/props.js +0 -10
  1184. package/dist/bundled/v3/components/OrLinkV3/styles.d.ts +0 -3
  1185. package/dist/bundled/v3/components/OrLinkV3/styles.js +0 -32
  1186. package/dist/bundled/v3/components/OrList/OrList.js +0 -84
  1187. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +0 -125
  1188. package/dist/bundled/v3/components/OrList/index.d.ts +0 -1
  1189. package/dist/bundled/v3/components/OrList/index.js +0 -1
  1190. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +0 -91
  1191. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +0 -95
  1192. package/dist/bundled/v3/components/OrListOfInputs/index.d.ts +0 -1
  1193. package/dist/bundled/v3/components/OrListOfInputs/index.js +0 -1
  1194. package/dist/bundled/v3/components/OrListV3/OrList.js +0 -63
  1195. package/dist/bundled/v3/components/OrListV3/OrList.vue.d.ts +0 -96
  1196. package/dist/bundled/v3/components/OrListV3/index.d.ts +0 -3
  1197. package/dist/bundled/v3/components/OrListV3/index.js +0 -1
  1198. package/dist/bundled/v3/components/OrListV3/styles.d.ts +0 -2
  1199. package/dist/bundled/v3/components/OrListV3/styles.js +0 -8
  1200. package/dist/bundled/v3/components/OrListV3/types.d.ts +0 -4
  1201. package/dist/bundled/v3/components/OrListV3/types.js +0 -1
  1202. package/dist/bundled/v3/components/OrLoader/OrLoader.js +0 -43
  1203. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +0 -57
  1204. package/dist/bundled/v3/components/OrLoader/constants.d.ts +0 -6
  1205. package/dist/bundled/v3/components/OrLoader/constants.js +0 -8
  1206. package/dist/bundled/v3/components/OrLoader/index.d.ts +0 -2
  1207. package/dist/bundled/v3/components/OrLoader/index.js +0 -2
  1208. package/dist/bundled/v3/components/OrLoader/types.d.ts +0 -3
  1209. package/dist/bundled/v3/components/OrLoader/types.js +0 -1
  1210. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +0 -65
  1211. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +0 -75
  1212. package/dist/bundled/v3/components/OrLoaderV3/index.d.ts +0 -2
  1213. package/dist/bundled/v3/components/OrLoaderV3/index.js +0 -2
  1214. package/dist/bundled/v3/components/OrLoaderV3/props.d.ts +0 -13
  1215. package/dist/bundled/v3/components/OrLoaderV3/props.js +0 -18
  1216. package/dist/bundled/v3/components/OrLoaderV3/styles.d.ts +0 -6
  1217. package/dist/bundled/v3/components/OrLoaderV3/styles.js +0 -17
  1218. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.js +0 -28
  1219. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +0 -40
  1220. package/dist/bundled/v3/components/OrMenuItemV3/index.d.ts +0 -1
  1221. package/dist/bundled/v3/components/OrMenuItemV3/index.js +0 -1
  1222. package/dist/bundled/v3/components/OrMenuItemV3/styles.d.ts +0 -1
  1223. package/dist/bundled/v3/components/OrMenuItemV3/styles.js +0 -21
  1224. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +0 -29
  1225. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +0 -66
  1226. package/dist/bundled/v3/components/OrMenuV3/index.d.ts +0 -2
  1227. package/dist/bundled/v3/components/OrMenuV3/index.js +0 -2
  1228. package/dist/bundled/v3/components/OrMenuV3/props.d.ts +0 -2
  1229. package/dist/bundled/v3/components/OrMenuV3/props.js +0 -1
  1230. package/dist/bundled/v3/components/OrMenuV3/styles.d.ts +0 -1
  1231. package/dist/bundled/v3/components/OrMenuV3/styles.js +0 -7
  1232. package/dist/bundled/v3/components/OrModal/OrModal.js +0 -52
  1233. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +0 -85
  1234. package/dist/bundled/v3/components/OrModal/constants.d.ts +0 -7
  1235. package/dist/bundled/v3/components/OrModal/constants.js +0 -10
  1236. package/dist/bundled/v3/components/OrModal/index.d.ts +0 -2
  1237. package/dist/bundled/v3/components/OrModal/index.js +0 -2
  1238. package/dist/bundled/v3/components/OrModalV3/OrModal.js +0 -40
  1239. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +0 -44
  1240. package/dist/bundled/v3/components/OrModalV3/index.d.ts +0 -2
  1241. package/dist/bundled/v3/components/OrModalV3/index.js +0 -2
  1242. package/dist/bundled/v3/components/OrModalV3/props.d.ts +0 -5
  1243. package/dist/bundled/v3/components/OrModalV3/props.js +0 -8
  1244. package/dist/bundled/v3/components/OrModalV3/styles.d.ts +0 -3
  1245. package/dist/bundled/v3/components/OrModalV3/styles.js +0 -30
  1246. package/dist/bundled/v3/components/OrNotification/OrNotification.js +0 -36
  1247. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +0 -65
  1248. package/dist/bundled/v3/components/OrNotification/constants.d.ts +0 -10
  1249. package/dist/bundled/v3/components/OrNotification/constants.js +0 -14
  1250. package/dist/bundled/v3/components/OrNotification/index.d.ts +0 -2
  1251. package/dist/bundled/v3/components/OrNotification/index.js +0 -2
  1252. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +0 -28
  1253. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +0 -30
  1254. package/dist/bundled/v3/components/OrNotificationV3/index.d.ts +0 -2
  1255. package/dist/bundled/v3/components/OrNotificationV3/index.js +0 -2
  1256. package/dist/bundled/v3/components/OrNotificationV3/props.d.ts +0 -6
  1257. package/dist/bundled/v3/components/OrNotificationV3/props.js +0 -9
  1258. package/dist/bundled/v3/components/OrNotificationV3/styles.d.ts +0 -5
  1259. package/dist/bundled/v3/components/OrNotificationV3/styles.js +0 -54
  1260. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +0 -60
  1261. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +0 -139
  1262. package/dist/bundled/v3/components/OrNumberInput/index.d.ts +0 -1
  1263. package/dist/bundled/v3/components/OrNumberInput/index.js +0 -1
  1264. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +0 -57
  1265. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +0 -62
  1266. package/dist/bundled/v3/components/OrOverflowMenu/index.d.ts +0 -2
  1267. package/dist/bundled/v3/components/OrOverflowMenu/index.js +0 -1
  1268. package/dist/bundled/v3/components/OrOverflowMenu/types.d.ts +0 -7
  1269. package/dist/bundled/v3/components/OrOverflowMenu/types.js +0 -1
  1270. package/dist/bundled/v3/components/OrOverlay/OrOverlay.js +0 -17
  1271. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +0 -40
  1272. package/dist/bundled/v3/components/OrOverlay/index.d.ts +0 -1
  1273. package/dist/bundled/v3/components/OrOverlay/index.js +0 -1
  1274. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +0 -21
  1275. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +0 -17
  1276. package/dist/bundled/v3/components/OrOverlayV3/index.d.ts +0 -1
  1277. package/dist/bundled/v3/components/OrOverlayV3/index.js +0 -1
  1278. package/dist/bundled/v3/components/OrOverlayV3/styles.d.ts +0 -1
  1279. package/dist/bundled/v3/components/OrOverlayV3/styles.js +0 -9
  1280. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +0 -107
  1281. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +0 -57
  1282. package/dist/bundled/v3/components/OrPaginationV3/index.d.ts +0 -2
  1283. package/dist/bundled/v3/components/OrPaginationV3/index.js +0 -1
  1284. package/dist/bundled/v3/components/OrPaginationV3/styles.d.ts +0 -4
  1285. package/dist/bundled/v3/components/OrPaginationV3/styles.js +0 -26
  1286. package/dist/bundled/v3/components/OrPaginationV3/types.d.ts +0 -4
  1287. package/dist/bundled/v3/components/OrPaginationV3/types.js +0 -1
  1288. package/dist/bundled/v3/components/OrPassword/OrPassword.js +0 -68
  1289. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +0 -117
  1290. package/dist/bundled/v3/components/OrPassword/index.d.ts +0 -1
  1291. package/dist/bundled/v3/components/OrPassword/index.js +0 -1
  1292. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +0 -39
  1293. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +0 -115
  1294. package/dist/bundled/v3/components/OrPopoverV3/hooks/types.d.ts +0 -77
  1295. package/dist/bundled/v3/components/OrPopoverV3/hooks/types.js +0 -1
  1296. package/dist/bundled/v3/components/OrPopoverV3/hooks/useFloating.d.ts +0 -4
  1297. package/dist/bundled/v3/components/OrPopoverV3/hooks/useFloating.js +0 -137
  1298. package/dist/bundled/v3/components/OrPopoverV3/index.d.ts +0 -2
  1299. package/dist/bundled/v3/components/OrPopoverV3/index.js +0 -2
  1300. package/dist/bundled/v3/components/OrPopoverV3/props.d.ts +0 -21
  1301. package/dist/bundled/v3/components/OrPopoverV3/props.js +0 -23
  1302. package/dist/bundled/v3/components/OrPopoverV3/styles.d.ts +0 -4
  1303. package/dist/bundled/v3/components/OrPopoverV3/styles.js +0 -46
  1304. package/dist/bundled/v3/components/OrProgress/OrProgress.js +0 -63
  1305. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +0 -122
  1306. package/dist/bundled/v3/components/OrProgress/constants.d.ts +0 -11
  1307. package/dist/bundled/v3/components/OrProgress/constants.js +0 -15
  1308. package/dist/bundled/v3/components/OrProgress/index.d.ts +0 -2
  1309. package/dist/bundled/v3/components/OrProgress/index.js +0 -2
  1310. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +0 -78
  1311. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +0 -105
  1312. package/dist/bundled/v3/components/OrProgressV3/index.d.ts +0 -2
  1313. package/dist/bundled/v3/components/OrProgressV3/index.js +0 -2
  1314. package/dist/bundled/v3/components/OrProgressV3/props.d.ts +0 -11
  1315. package/dist/bundled/v3/components/OrProgressV3/props.js +0 -15
  1316. package/dist/bundled/v3/components/OrProgressV3/styles.d.ts +0 -11
  1317. package/dist/bundled/v3/components/OrProgressV3/styles.js +0 -63
  1318. package/dist/bundled/v3/components/OrRadio/OrRadio.js +0 -34
  1319. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +0 -68
  1320. package/dist/bundled/v3/components/OrRadio/index.d.ts +0 -1
  1321. package/dist/bundled/v3/components/OrRadio/index.js +0 -1
  1322. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.js +0 -18
  1323. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +0 -64
  1324. package/dist/bundled/v3/components/OrRadioGroup/index.d.ts +0 -1
  1325. package/dist/bundled/v3/components/OrRadioGroup/index.js +0 -1
  1326. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +0 -32
  1327. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +0 -83
  1328. package/dist/bundled/v3/components/OrRadioGroupV3/index.d.ts +0 -1
  1329. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +0 -1
  1330. package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +0 -42
  1331. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +0 -78
  1332. package/dist/bundled/v3/components/OrRadioV3/index.d.ts +0 -1
  1333. package/dist/bundled/v3/components/OrRadioV3/index.js +0 -1
  1334. package/dist/bundled/v3/components/OrRadioV3/styles.d.ts +0 -3
  1335. package/dist/bundled/v3/components/OrRadioV3/styles.js +0 -31
  1336. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.js +0 -71
  1337. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.vue.d.ts +0 -96
  1338. package/dist/bundled/v3/components/OrRangeSliderV3/index.d.ts +0 -2
  1339. package/dist/bundled/v3/components/OrRangeSliderV3/index.js +0 -2
  1340. package/dist/bundled/v3/components/OrRangeSliderV3/props.d.ts +0 -1
  1341. package/dist/bundled/v3/components/OrRangeSliderV3/props.js +0 -1
  1342. package/dist/bundled/v3/components/OrRangeSliderV3/styles.d.ts +0 -14
  1343. package/dist/bundled/v3/components/OrRangeSliderV3/styles.js +0 -97
  1344. package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.js +0 -39
  1345. package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.vue.d.ts +0 -101
  1346. package/dist/bundled/v3/components/OrResizeablePanelV3/index.d.ts +0 -2
  1347. package/dist/bundled/v3/components/OrResizeablePanelV3/index.js +0 -2
  1348. package/dist/bundled/v3/components/OrResizeablePanelV3/props.d.ts +0 -12
  1349. package/dist/bundled/v3/components/OrResizeablePanelV3/props.js +0 -16
  1350. package/dist/bundled/v3/components/OrResizeablePanelV3/styles.d.ts +0 -13
  1351. package/dist/bundled/v3/components/OrResizeablePanelV3/styles.js +0 -186
  1352. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -202
  1353. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -119
  1354. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -2
  1355. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -2
  1356. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -5
  1357. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
  1358. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
  1359. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
  1360. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
  1361. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -42
  1362. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
  1363. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -183
  1364. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
  1365. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -1
  1366. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -17
  1367. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -199
  1368. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
  1369. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  1370. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
  1371. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -2
  1372. package/dist/bundled/v3/components/OrSearch/OrSearch.js +0 -71
  1373. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +0 -140
  1374. package/dist/bundled/v3/components/OrSearch/index.d.ts +0 -1
  1375. package/dist/bundled/v3/components/OrSearch/index.js +0 -1
  1376. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +0 -30
  1377. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +0 -81
  1378. package/dist/bundled/v3/components/OrSearchV3/index.d.ts +0 -2
  1379. package/dist/bundled/v3/components/OrSearchV3/index.js +0 -2
  1380. package/dist/bundled/v3/components/OrSearchV3/props.d.ts +0 -1
  1381. package/dist/bundled/v3/components/OrSearchV3/props.js +0 -1
  1382. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.js +0 -26
  1383. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +0 -50
  1384. package/dist/bundled/v3/components/OrSegmentedControlV3/index.d.ts +0 -3
  1385. package/dist/bundled/v3/components/OrSegmentedControlV3/index.js +0 -2
  1386. package/dist/bundled/v3/components/OrSegmentedControlV3/props.d.ts +0 -4
  1387. package/dist/bundled/v3/components/OrSegmentedControlV3/props.js +0 -7
  1388. package/dist/bundled/v3/components/OrSegmentedControlV3/styles.d.ts +0 -3
  1389. package/dist/bundled/v3/components/OrSegmentedControlV3/styles.js +0 -15
  1390. package/dist/bundled/v3/components/OrSegmentedControlV3/types.d.ts +0 -4
  1391. package/dist/bundled/v3/components/OrSegmentedControlV3/types.js +0 -1
  1392. package/dist/bundled/v3/components/OrSelect/OrSelect.js +0 -56
  1393. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +0 -181
  1394. package/dist/bundled/v3/components/OrSelect/constants.d.ts +0 -50
  1395. package/dist/bundled/v3/components/OrSelect/constants.js +0 -50
  1396. package/dist/bundled/v3/components/OrSelect/index.d.ts +0 -2
  1397. package/dist/bundled/v3/components/OrSelect/index.js +0 -1
  1398. package/dist/bundled/v3/components/OrSelect/types.d.ts +0 -9
  1399. package/dist/bundled/v3/components/OrSelect/types.js +0 -1
  1400. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +0 -236
  1401. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +0 -213
  1402. package/dist/bundled/v3/components/OrSelectV3/index.d.ts +0 -3
  1403. package/dist/bundled/v3/components/OrSelectV3/index.js +0 -2
  1404. package/dist/bundled/v3/components/OrSelectV3/props.d.ts +0 -1
  1405. package/dist/bundled/v3/components/OrSelectV3/props.js +0 -1
  1406. package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +0 -8
  1407. package/dist/bundled/v3/components/OrSelectV3/styles.js +0 -54
  1408. package/dist/bundled/v3/components/OrSelectV3/types.d.ts +0 -12
  1409. package/dist/bundled/v3/components/OrSelectV3/types.js +0 -1
  1410. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +0 -37
  1411. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +0 -63
  1412. package/dist/bundled/v3/components/OrSidebar/constants.d.ts +0 -4
  1413. package/dist/bundled/v3/components/OrSidebar/constants.js +0 -7
  1414. package/dist/bundled/v3/components/OrSidebar/index.d.ts +0 -2
  1415. package/dist/bundled/v3/components/OrSidebar/index.js +0 -2
  1416. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +0 -44
  1417. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +0 -159
  1418. package/dist/bundled/v3/components/OrSidebarV3/index.d.ts +0 -2
  1419. package/dist/bundled/v3/components/OrSidebarV3/index.js +0 -3
  1420. package/dist/bundled/v3/components/OrSidebarV3/props.d.ts +0 -9
  1421. package/dist/bundled/v3/components/OrSidebarV3/props.js +0 -9
  1422. package/dist/bundled/v3/components/OrSidebarV3/styles.d.ts +0 -8
  1423. package/dist/bundled/v3/components/OrSidebarV3/styles.js +0 -64
  1424. package/dist/bundled/v3/components/OrSkeleton/constants.d.ts +0 -9
  1425. package/dist/bundled/v3/components/OrSkeleton/constants.js +0 -12
  1426. package/dist/bundled/v3/components/OrSkeleton/index.d.ts +0 -4
  1427. package/dist/bundled/v3/components/OrSkeleton/index.js +0 -4
  1428. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.js +0 -18
  1429. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +0 -32
  1430. package/dist/bundled/v3/components/OrSkeletonCircle/index.d.ts +0 -2
  1431. package/dist/bundled/v3/components/OrSkeletonCircle/index.js +0 -2
  1432. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.js +0 -14
  1433. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +0 -36
  1434. package/dist/bundled/v3/components/OrSkeletonCircleV3/index.d.ts +0 -1
  1435. package/dist/bundled/v3/components/OrSkeletonCircleV3/index.js +0 -1
  1436. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.js +0 -18
  1437. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +0 -43
  1438. package/dist/bundled/v3/components/OrSkeletonRect/index.d.ts +0 -2
  1439. package/dist/bundled/v3/components/OrSkeletonRect/index.js +0 -2
  1440. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.js +0 -14
  1441. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +0 -45
  1442. package/dist/bundled/v3/components/OrSkeletonRectV3/index.d.ts +0 -1
  1443. package/dist/bundled/v3/components/OrSkeletonRectV3/index.js +0 -1
  1444. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +0 -23
  1445. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +0 -57
  1446. package/dist/bundled/v3/components/OrSkeletonText/index.d.ts +0 -2
  1447. package/dist/bundled/v3/components/OrSkeletonText/index.js +0 -2
  1448. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +0 -20
  1449. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +0 -72
  1450. package/dist/bundled/v3/components/OrSkeletonTextV3/index.d.ts +0 -1
  1451. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +0 -1
  1452. package/dist/bundled/v3/components/OrSkeletonV3/index.d.ts +0 -3
  1453. package/dist/bundled/v3/components/OrSkeletonV3/index.js +0 -3
  1454. package/dist/bundled/v3/components/OrSkeletonV3/styles.d.ts +0 -6
  1455. package/dist/bundled/v3/components/OrSkeletonV3/styles.js +0 -34
  1456. package/dist/bundled/v3/components/OrSlider/OrSlider.js +0 -98
  1457. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +0 -136
  1458. package/dist/bundled/v3/components/OrSlider/index.d.ts +0 -1
  1459. package/dist/bundled/v3/components/OrSlider/index.js +0 -1
  1460. package/dist/bundled/v3/components/OrSliderV3/OrSlider.js +0 -51
  1461. package/dist/bundled/v3/components/OrSliderV3/OrSlider.vue.d.ts +0 -89
  1462. package/dist/bundled/v3/components/OrSliderV3/index.d.ts +0 -2
  1463. package/dist/bundled/v3/components/OrSliderV3/index.js +0 -2
  1464. package/dist/bundled/v3/components/OrSliderV3/props.d.ts +0 -8
  1465. package/dist/bundled/v3/components/OrSliderV3/props.js +0 -12
  1466. package/dist/bundled/v3/components/OrSliderV3/styles.d.ts +0 -12
  1467. package/dist/bundled/v3/components/OrSliderV3/styles.js +0 -92
  1468. package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +0 -52
  1469. package/dist/bundled/v3/components/OrSortingV3/OrSorting.vue.d.ts +0 -35
  1470. package/dist/bundled/v3/components/OrSortingV3/index.d.ts +0 -2
  1471. package/dist/bundled/v3/components/OrSortingV3/index.js +0 -1
  1472. package/dist/bundled/v3/components/OrSortingV3/styles.d.ts +0 -2
  1473. package/dist/bundled/v3/components/OrSortingV3/styles.js +0 -6
  1474. package/dist/bundled/v3/components/OrSortingV3/types.d.ts +0 -4
  1475. package/dist/bundled/v3/components/OrSortingV3/types.js +0 -1
  1476. package/dist/bundled/v3/components/OrStepper/OrStepper.js +0 -53
  1477. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +0 -79
  1478. package/dist/bundled/v3/components/OrStepper/index.d.ts +0 -1
  1479. package/dist/bundled/v3/components/OrStepper/index.js +0 -1
  1480. package/dist/bundled/v3/components/OrSwitch/OrSwitch.js +0 -49
  1481. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +0 -70
  1482. package/dist/bundled/v3/components/OrSwitch/index.d.ts +0 -1
  1483. package/dist/bundled/v3/components/OrSwitch/index.js +0 -1
  1484. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +0 -53
  1485. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +0 -89
  1486. package/dist/bundled/v3/components/OrSwitchV3/index.d.ts +0 -1
  1487. package/dist/bundled/v3/components/OrSwitchV3/index.js +0 -1
  1488. package/dist/bundled/v3/components/OrSwitchV3/styles.d.ts +0 -5
  1489. package/dist/bundled/v3/components/OrSwitchV3/styles.js +0 -51
  1490. package/dist/bundled/v3/components/OrTab/OrTab.js +0 -19
  1491. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +0 -44
  1492. package/dist/bundled/v3/components/OrTab/index.d.ts +0 -1
  1493. package/dist/bundled/v3/components/OrTab/index.js +0 -1
  1494. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.js +0 -27
  1495. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +0 -49
  1496. package/dist/bundled/v3/components/OrTabHeaderItem/index.d.ts +0 -1
  1497. package/dist/bundled/v3/components/OrTabHeaderItem/index.js +0 -1
  1498. package/dist/bundled/v3/components/OrTabV3/OrTab.js +0 -21
  1499. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +0 -39
  1500. package/dist/bundled/v3/components/OrTabV3/index.d.ts +0 -1
  1501. package/dist/bundled/v3/components/OrTabV3/index.js +0 -1
  1502. package/dist/bundled/v3/components/OrTabV3/styles.d.ts +0 -1
  1503. package/dist/bundled/v3/components/OrTabV3/styles.js +0 -25
  1504. package/dist/bundled/v3/components/OrTabs/OrTabs.js +0 -43
  1505. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +0 -13
  1506. package/dist/bundled/v3/components/OrTabs/index.d.ts +0 -1
  1507. package/dist/bundled/v3/components/OrTabs/index.js +0 -1
  1508. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +0 -68
  1509. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +0 -76
  1510. package/dist/bundled/v3/components/OrTabsV3/index.d.ts +0 -3
  1511. package/dist/bundled/v3/components/OrTabsV3/index.js +0 -2
  1512. package/dist/bundled/v3/components/OrTabsV3/props.d.ts +0 -4
  1513. package/dist/bundled/v3/components/OrTabsV3/props.js +0 -7
  1514. package/dist/bundled/v3/components/OrTabsV3/styles.d.ts +0 -5
  1515. package/dist/bundled/v3/components/OrTabsV3/styles.js +0 -31
  1516. package/dist/bundled/v3/components/OrTabsV3/types.d.ts +0 -4
  1517. package/dist/bundled/v3/components/OrTabsV3/types.js +0 -1
  1518. package/dist/bundled/v3/components/OrTag/OrTag.js +0 -33
  1519. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +0 -54
  1520. package/dist/bundled/v3/components/OrTag/index.d.ts +0 -1
  1521. package/dist/bundled/v3/components/OrTag/index.js +0 -1
  1522. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +0 -126
  1523. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +0 -150
  1524. package/dist/bundled/v3/components/OrTagInputV3/index.d.ts +0 -2
  1525. package/dist/bundled/v3/components/OrTagInputV3/index.js +0 -2
  1526. package/dist/bundled/v3/components/OrTagInputV3/props.d.ts +0 -1
  1527. package/dist/bundled/v3/components/OrTagInputV3/props.js +0 -1
  1528. package/dist/bundled/v3/components/OrTagInputV3/styles.d.ts +0 -3
  1529. package/dist/bundled/v3/components/OrTagInputV3/styles.js +0 -17
  1530. package/dist/bundled/v3/components/OrTagV3/OrTag.js +0 -32
  1531. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +0 -43
  1532. package/dist/bundled/v3/components/OrTagV3/index.d.ts +0 -2
  1533. package/dist/bundled/v3/components/OrTagV3/index.js +0 -2
  1534. package/dist/bundled/v3/components/OrTagV3/props.d.ts +0 -9
  1535. package/dist/bundled/v3/components/OrTagV3/props.js +0 -13
  1536. package/dist/bundled/v3/components/OrTagV3/styles.d.ts +0 -4
  1537. package/dist/bundled/v3/components/OrTagV3/styles.js +0 -32
  1538. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +0 -68
  1539. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +0 -66
  1540. package/dist/bundled/v3/components/OrTagsV3/index.d.ts +0 -2
  1541. package/dist/bundled/v3/components/OrTagsV3/index.js +0 -2
  1542. package/dist/bundled/v3/components/OrTagsV3/props.d.ts +0 -6
  1543. package/dist/bundled/v3/components/OrTagsV3/props.js +0 -11
  1544. package/dist/bundled/v3/components/OrTagsV3/styles.d.ts +0 -6
  1545. package/dist/bundled/v3/components/OrTagsV3/styles.js +0 -46
  1546. package/dist/bundled/v3/components/OrTagsV3/types.d.ts +0 -6
  1547. package/dist/bundled/v3/components/OrTagsV3/types.js +0 -1
  1548. package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.d.ts +0 -2
  1549. package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +0 -12
  1550. package/dist/bundled/v3/components/OrTeleport/OrTeleport.js +0 -20
  1551. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +0 -27
  1552. package/dist/bundled/v3/components/OrTeleport/constants.d.ts +0 -12
  1553. package/dist/bundled/v3/components/OrTeleport/constants.js +0 -16
  1554. package/dist/bundled/v3/components/OrTeleport/index.d.ts +0 -2
  1555. package/dist/bundled/v3/components/OrTeleport/index.js +0 -1
  1556. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.js +0 -13
  1557. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +0 -23
  1558. package/dist/bundled/v3/components/OrTeleportV3/index.d.ts +0 -1
  1559. package/dist/bundled/v3/components/OrTeleportV3/index.js +0 -1
  1560. package/dist/bundled/v3/components/OrTextV3/OrText.js +0 -17
  1561. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +0 -54
  1562. package/dist/bundled/v3/components/OrTextV3/index.d.ts +0 -1
  1563. package/dist/bundled/v3/components/OrTextV3/index.js +0 -1
  1564. package/dist/bundled/v3/components/OrTextV3/styles.d.ts +0 -3
  1565. package/dist/bundled/v3/components/OrTextV3/styles.js +0 -17
  1566. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +0 -115
  1567. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +0 -131
  1568. package/dist/bundled/v3/components/OrTextarea/index.d.ts +0 -1
  1569. package/dist/bundled/v3/components/OrTextarea/index.js +0 -1
  1570. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +0 -84
  1571. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +0 -117
  1572. package/dist/bundled/v3/components/OrTextareaV3/index.d.ts +0 -2
  1573. package/dist/bundled/v3/components/OrTextareaV3/index.js +0 -2
  1574. package/dist/bundled/v3/components/OrTextareaV3/props.d.ts +0 -1
  1575. package/dist/bundled/v3/components/OrTextareaV3/props.js +0 -1
  1576. package/dist/bundled/v3/components/OrTextareaV3/styles.d.ts +0 -2
  1577. package/dist/bundled/v3/components/OrTextareaV3/styles.js +0 -16
  1578. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +0 -148
  1579. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +0 -257
  1580. package/dist/bundled/v3/components/OrTextbox/constants.d.ts +0 -8
  1581. package/dist/bundled/v3/components/OrTextbox/constants.js +0 -11
  1582. package/dist/bundled/v3/components/OrTextbox/index.d.ts +0 -2
  1583. package/dist/bundled/v3/components/OrTextbox/index.js +0 -2
  1584. package/dist/bundled/v3/components/OrTimeFormatV3/OrTimeFormat.js +0 -13
  1585. package/dist/bundled/v3/components/OrTimeFormatV3/OrTimeFormat.vue.d.ts +0 -38
  1586. package/dist/bundled/v3/components/OrTimeFormatV3/index.d.ts +0 -1
  1587. package/dist/bundled/v3/components/OrTimeFormatV3/index.js +0 -1
  1588. package/dist/bundled/v3/components/OrTimeFormatV3/styles.d.ts +0 -1
  1589. package/dist/bundled/v3/components/OrTimeFormatV3/styles.js +0 -5
  1590. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +0 -128
  1591. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +0 -263
  1592. package/dist/bundled/v3/components/OrTimePickerV3/index.d.ts +0 -2
  1593. package/dist/bundled/v3/components/OrTimePickerV3/index.js +0 -3
  1594. package/dist/bundled/v3/components/OrTimePickerV3/props.d.ts +0 -2
  1595. package/dist/bundled/v3/components/OrTimePickerV3/props.js +0 -2
  1596. package/dist/bundled/v3/components/OrTimePickerV3/styles.d.ts +0 -2
  1597. package/dist/bundled/v3/components/OrTimePickerV3/styles.js +0 -8
  1598. package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +0 -154
  1599. package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +0 -559
  1600. package/dist/bundled/v3/components/OrTimeRangePickerV3/index.d.ts +0 -2
  1601. package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +0 -3
  1602. package/dist/bundled/v3/components/OrTimeRangePickerV3/props.d.ts +0 -2
  1603. package/dist/bundled/v3/components/OrTimeRangePickerV3/props.js +0 -2
  1604. package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.d.ts +0 -2
  1605. package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.js +0 -8
  1606. package/dist/bundled/v3/components/OrToast/OrToast.js +0 -118
  1607. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +0 -61
  1608. package/dist/bundled/v3/components/OrToast/Timer.d.ts +0 -11
  1609. package/dist/bundled/v3/components/OrToast/Timer.js +0 -37
  1610. package/dist/bundled/v3/components/OrToast/composable/index.d.ts +0 -2
  1611. package/dist/bundled/v3/components/OrToast/composable/index.js +0 -2
  1612. package/dist/bundled/v3/components/OrToast/composable/useQueue.d.ts +0 -8
  1613. package/dist/bundled/v3/components/OrToast/composable/useQueue.js +0 -33
  1614. package/dist/bundled/v3/components/OrToast/composable/useToast.d.ts +0 -8
  1615. package/dist/bundled/v3/components/OrToast/composable/useToast.js +0 -86
  1616. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.d.ts +0 -9
  1617. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +0 -25
  1618. package/dist/bundled/v3/components/OrToast/constants.d.ts +0 -18
  1619. package/dist/bundled/v3/components/OrToast/constants.js +0 -24
  1620. package/dist/bundled/v3/components/OrToast/index.d.ts +0 -5
  1621. package/dist/bundled/v3/components/OrToast/index.js +0 -5
  1622. package/dist/bundled/v3/components/OrToast/types.d.ts +0 -35
  1623. package/dist/bundled/v3/components/OrToast/types.js +0 -1
  1624. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +0 -42
  1625. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +0 -63
  1626. package/dist/bundled/v3/components/OrToastContainer/index.d.ts +0 -4
  1627. package/dist/bundled/v3/components/OrToastContainer/index.js +0 -4
  1628. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +0 -43
  1629. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +0 -57
  1630. package/dist/bundled/v3/components/OrToastContainerV3/index.d.ts +0 -4
  1631. package/dist/bundled/v3/components/OrToastContainerV3/index.js +0 -5
  1632. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +0 -56
  1633. package/dist/bundled/v3/components/OrToastV3/Timer.d.ts +0 -11
  1634. package/dist/bundled/v3/components/OrToastV3/Timer.js +0 -37
  1635. package/dist/bundled/v3/components/OrToastV3/composable/index.d.ts +0 -2
  1636. package/dist/bundled/v3/components/OrToastV3/composable/index.js +0 -2
  1637. package/dist/bundled/v3/components/OrToastV3/composable/useQueue.d.ts +0 -8
  1638. package/dist/bundled/v3/components/OrToastV3/composable/useQueue.js +0 -33
  1639. package/dist/bundled/v3/components/OrToastV3/composable/useToast.d.ts +0 -8
  1640. package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +0 -86
  1641. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.d.ts +0 -9
  1642. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +0 -25
  1643. package/dist/bundled/v3/components/OrToastV3/index.d.ts +0 -5
  1644. package/dist/bundled/v3/components/OrToastV3/index.js +0 -6
  1645. package/dist/bundled/v3/components/OrToastV3/props.d.ts +0 -18
  1646. package/dist/bundled/v3/components/OrToastV3/props.js +0 -1
  1647. package/dist/bundled/v3/components/OrToastV3/styles.d.ts +0 -5
  1648. package/dist/bundled/v3/components/OrToastV3/styles.js +0 -59
  1649. package/dist/bundled/v3/components/OrToastV3/types.d.ts +0 -35
  1650. package/dist/bundled/v3/components/OrToastV3/types.js +0 -1
  1651. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +0 -48
  1652. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +0 -73
  1653. package/dist/bundled/v3/components/OrTooltip/index.d.ts +0 -2
  1654. package/dist/bundled/v3/components/OrTooltip/index.js +0 -2
  1655. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.js +0 -24
  1656. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +0 -28
  1657. package/dist/bundled/v3/components/OrTooltipContent/index.d.ts +0 -1
  1658. package/dist/bundled/v3/components/OrTooltipContent/index.js +0 -1
  1659. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +0 -33
  1660. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +0 -82
  1661. package/dist/bundled/v3/components/OrTooltipV3/index.d.ts +0 -2
  1662. package/dist/bundled/v3/components/OrTooltipV3/index.js +0 -2
  1663. package/dist/bundled/v3/components/OrTooltipV3/props.d.ts +0 -2
  1664. package/dist/bundled/v3/components/OrTooltipV3/props.js +0 -1
  1665. package/dist/bundled/v3/components/OrTooltipV3/styles.d.ts +0 -4
  1666. package/dist/bundled/v3/components/OrTooltipV3/styles.js +0 -48
  1667. package/dist/bundled/v3/components/OrTreeV3/OrTree.js +0 -31
  1668. package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +0 -35
  1669. package/dist/bundled/v3/components/OrTreeV3/index.d.ts +0 -2
  1670. package/dist/bundled/v3/components/OrTreeV3/index.js +0 -2
  1671. package/dist/bundled/v3/components/OrTreeV3/types.d.ts +0 -15
  1672. package/dist/bundled/v3/components/OrTreeV3/types.js +0 -8
  1673. package/dist/bundled/v3/components/index.d.ts +0 -119
  1674. package/dist/bundled/v3/components/index.js +0 -200
  1675. package/dist/bundled/v3/directives/dropdown-close.d.ts +0 -6
  1676. package/dist/bundled/v3/directives/dropdown-close.js +0 -14
  1677. package/dist/bundled/v3/directives/dropdown-open.d.ts +0 -6
  1678. package/dist/bundled/v3/directives/dropdown-open.js +0 -19
  1679. package/dist/bundled/v3/directives/index.d.ts +0 -2
  1680. package/dist/bundled/v3/directives/index.js +0 -2
  1681. package/dist/bundled/v3/dom-cec392f3.js +0 -260
  1682. package/dist/bundled/v3/eq-44ea4d70.js +0 -77
  1683. package/dist/bundled/v3/floating-ui.dom-d9ef0d1f.js +0 -1443
  1684. package/dist/bundled/v3/get-34aa21f4.js +0 -856
  1685. package/dist/bundled/v3/hooks/index.d.ts +0 -10
  1686. package/dist/bundled/v3/hooks/index.js +0 -10
  1687. package/dist/bundled/v3/hooks/useControlAttributes.d.ts +0 -7
  1688. package/dist/bundled/v3/hooks/useControlAttributes.js +0 -12
  1689. package/dist/bundled/v3/hooks/useElevation.d.ts +0 -3
  1690. package/dist/bundled/v3/hooks/useElevation.js +0 -25
  1691. package/dist/bundled/v3/hooks/useIdAttribute.d.ts +0 -2
  1692. package/dist/bundled/v3/hooks/useIdAttribute.js +0 -12
  1693. package/dist/bundled/v3/hooks/useOverflow.d.ts +0 -11
  1694. package/dist/bundled/v3/hooks/useOverflow.js +0 -75
  1695. package/dist/bundled/v3/hooks/usePopoverState.d.ts +0 -12
  1696. package/dist/bundled/v3/hooks/usePopoverState.js +0 -42
  1697. package/dist/bundled/v3/hooks/useProxyModelValue.d.ts +0 -8
  1698. package/dist/bundled/v3/hooks/useProxyModelValue.js +0 -29
  1699. package/dist/bundled/v3/hooks/useResponsive/index.d.ts +0 -1
  1700. package/dist/bundled/v3/hooks/useResponsive/index.js +0 -1
  1701. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +0 -6
  1702. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +0 -203
  1703. package/dist/bundled/v3/hooks/useTheme.d.ts +0 -3
  1704. package/dist/bundled/v3/hooks/useToggle.d.ts +0 -8
  1705. package/dist/bundled/v3/hooks/useToggle.js +0 -23
  1706. package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +0 -11
  1707. package/dist/bundled/v3/hooks/useValidationAttributes.js +0 -16
  1708. package/dist/bundled/v3/index-06852368.js +0 -819
  1709. package/dist/bundled/v3/index-0fa7e6ca.js +0 -114
  1710. package/dist/bundled/v3/index-2ca6453c.js +0 -8
  1711. package/dist/bundled/v3/index-4a4ab262.js +0 -837
  1712. package/dist/bundled/v3/index-57f01e0d.js +0 -94
  1713. package/dist/bundled/v3/index-59ae65a4.js +0 -3158
  1714. package/dist/bundled/v3/index-67eff9fe.js +0 -9715
  1715. package/dist/bundled/v3/index-74353328.js +0 -1912
  1716. package/dist/bundled/v3/index-9b8fe3ec.js +0 -760
  1717. package/dist/bundled/v3/index-c8fc7964.js +0 -361
  1718. package/dist/bundled/v3/index-d32c767e.js +0 -18517
  1719. package/dist/bundled/v3/index-e1e02235.js +0 -1636
  1720. package/dist/bundled/v3/index-f1d66df5.js +0 -2301
  1721. package/dist/bundled/v3/index-f537aa31.js +0 -1379
  1722. package/dist/bundled/v3/index-f671afe5.js +0 -7127
  1723. package/dist/bundled/v3/index-ffeb3fc8.js +0 -295
  1724. package/dist/bundled/v3/index.d.ts +0 -5
  1725. package/dist/bundled/v3/index.js +0 -302
  1726. package/dist/bundled/v3/isArrayLike-e7fb5cae.js +0 -91
  1727. package/dist/bundled/v3/isEqual-7a8e6106.js +0 -38
  1728. package/dist/bundled/v3/isObject-b7415fc1.js +0 -202
  1729. package/dist/bundled/v3/markdown-7d2cd3a5.js +0 -8287
  1730. package/dist/bundled/v3/props-7be029c7.js +0 -32
  1731. package/dist/bundled/v3/range-82efa3d4.js +0 -136
  1732. package/dist/bundled/v3/round-567ede34.js +0 -66
  1733. package/dist/bundled/v3/sortable.esm-11705107.js +0 -2580
  1734. package/dist/bundled/v3/style-inject.es-4c6f2515.js +0 -26
  1735. package/dist/bundled/v3/toFinite-bc59ffb0.js +0 -142
  1736. package/dist/bundled/v3/toInteger-9fa0151c.js +0 -38
  1737. package/dist/bundled/v3/toString-b6e4472a.js +0 -114
  1738. package/dist/bundled/v3/types-668300dd.js +0 -5
  1739. package/dist/bundled/v3/utils/constants/color.d.ts +0 -14
  1740. package/dist/bundled/v3/utils/constants/color.js +0 -16
  1741. package/dist/bundled/v3/utils/constants/key-codes.d.ts +0 -14
  1742. package/dist/bundled/v3/utils/constants/key-codes.js +0 -16
  1743. package/dist/bundled/v3/utils/constants/poper.d.ts +0 -8
  1744. package/dist/bundled/v3/utils/constants/poper.js +0 -10
  1745. package/dist/bundled/v3/utils/constants/regex.d.ts +0 -42
  1746. package/dist/bundled/v3/utils/constants/regex.js +0 -49
  1747. package/dist/bundled/v3/utils/functions/color.d.ts +0 -19
  1748. package/dist/bundled/v3/utils/functions/color.js +0 -40
  1749. package/dist/bundled/v3/utils/functions/dom.d.ts +0 -31
  1750. package/dist/bundled/v3/utils/functions/dom.js +0 -2
  1751. package/dist/bundled/v3/utils/functions/flattenDeep.d.ts +0 -2
  1752. package/dist/bundled/v3/utils/functions/flattenDeep.js +0 -6
  1753. package/dist/bundled/v3/utils/functions/hash.d.ts +0 -2
  1754. package/dist/bundled/v3/utils/functions/hash.js +0 -8
  1755. package/dist/bundled/v3/utils/functions/px-to-rem.d.ts +0 -1
  1756. package/dist/bundled/v3/utils/functions/px-to-rem.js +0 -3
  1757. package/dist/bundled/v3/utils/functions/text.d.ts +0 -1
  1758. package/dist/bundled/v3/utils/functions/text.js +0 -9
  1759. package/dist/bundled/v3/utils/index.d.ts +0 -14
  1760. package/dist/bundled/v3/utils/index.js +0 -12
  1761. package/dist/bundled/v3/utils/isEmpty.d.ts +0 -1
  1762. package/dist/bundled/v3/utils/isEmpty.js +0 -5
  1763. package/dist/bundled/v3/utils/isEmptyValue.d.ts +0 -1
  1764. package/dist/bundled/v3/utils/isEmptyValue.js +0 -5
  1765. package/dist/bundled/v3/utils/isEqualValue.d.ts +0 -1
  1766. package/dist/bundled/v3/utils/isEqualValue.js +0 -8
  1767. package/dist/bundled/v3/utils/isVisible.d.ts +0 -2
  1768. package/dist/bundled/v3/utils/isVisible.js +0 -5
  1769. package/dist/bundled/v3/v4-cf8987a3.js +0 -67
@@ -1,3158 +0,0 @@
1
- import { E as EditorView, F as Facet, c as combineConfig, S as StateField, b as EditorSelection, T as Transaction, d as ChangeSet, e as ChangeDesc, I as IndentContext, g as getIndentation, i as indentString, f as Text, h as indentUnit, j as countColumn, l as getIndentUnit, A as Annotation, m as StateEffect, n as matchBrackets, s as syntaxTree, N as NodeProp, D as Direction, o as findClusterBreak, V as ViewPlugin, p as Decoration, q as codePointAt, r as codePointSize, t as getPanel, u as CharCategory, P as Prec, v as fromCodePoint, w as showPanel, R as RangeSetBuilder, a as EditorState, x as runScopeHandlers, y as lineNumbers, z as highlightActiveLineGutter, B as highlightSpecialChars, G as foldGutter, H as drawSelection, J as dropCursor, K as indentOnInput, L as syntaxHighlighting, M as defaultHighlightStyle, O as bracketMatching, Q as rectangularSelection, U as crosshairCursor, W as highlightActiveLine, k as keymap, X as foldKeymap } from './index-d32c767e.js';
2
- import { c as crelt, b as lintKeymap } from './index-4a4ab262.js';
3
- import { c as closeBrackets, a as autocompletion, b as closeBracketsKeymap, d as completionKeymap } from './index-74353328.js';
4
-
5
- /**
6
- Comment or uncomment the current selection. Will use line comments
7
- if available, otherwise falling back to block comments.
8
- */
9
- const toggleComment = target => {
10
- let {
11
- state
12
- } = target,
13
- line = state.doc.lineAt(state.selection.main.from),
14
- config = getConfig(target.state, line.from);
15
- return config.line ? toggleLineComment(target) : config.block ? toggleBlockCommentByLine(target) : false;
16
- };
17
- function command(f, option) {
18
- return _ref => {
19
- let {
20
- state,
21
- dispatch
22
- } = _ref;
23
- if (state.readOnly) return false;
24
- let tr = f(option, state);
25
- if (!tr) return false;
26
- dispatch(state.update(tr));
27
- return true;
28
- };
29
- }
30
- /**
31
- Comment or uncomment the current selection using line comments.
32
- The line comment syntax is taken from the
33
- [`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
34
- data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
35
- */
36
- const toggleLineComment = /*@__PURE__*/command(changeLineComment, 0 /* CommentOption.Toggle */);
37
- /**
38
- Comment or uncomment the current selection using block comments.
39
- The block comment syntax is taken from the
40
- [`commentTokens`](https://codemirror.net/6/docs/ref/#commands.CommentTokens) [language
41
- data](https://codemirror.net/6/docs/ref/#state.EditorState.languageDataAt).
42
- */
43
- const toggleBlockComment = /*@__PURE__*/command(changeBlockComment, 0 /* CommentOption.Toggle */);
44
- /**
45
- Comment or uncomment the lines around the current selection using
46
- block comments.
47
- */
48
- const toggleBlockCommentByLine = /*@__PURE__*/command((o, s) => changeBlockComment(o, s, selectedLineRanges(s)), 0 /* CommentOption.Toggle */);
49
- function getConfig(state, pos) {
50
- let data = state.languageDataAt("commentTokens", pos);
51
- return data.length ? data[0] : {};
52
- }
53
- const SearchMargin = 50;
54
- /**
55
- Determines if the given range is block-commented in the given
56
- state.
57
- */
58
- function findBlockComment(state, _ref2, from, to) {
59
- let {
60
- open,
61
- close
62
- } = _ref2;
63
- let textBefore = state.sliceDoc(from - SearchMargin, from);
64
- let textAfter = state.sliceDoc(to, to + SearchMargin);
65
- let spaceBefore = /\s*$/.exec(textBefore)[0].length,
66
- spaceAfter = /^\s*/.exec(textAfter)[0].length;
67
- let beforeOff = textBefore.length - spaceBefore;
68
- if (textBefore.slice(beforeOff - open.length, beforeOff) == open && textAfter.slice(spaceAfter, spaceAfter + close.length) == close) {
69
- return {
70
- open: {
71
- pos: from - spaceBefore,
72
- margin: spaceBefore && 1
73
- },
74
- close: {
75
- pos: to + spaceAfter,
76
- margin: spaceAfter && 1
77
- }
78
- };
79
- }
80
- let startText, endText;
81
- if (to - from <= 2 * SearchMargin) {
82
- startText = endText = state.sliceDoc(from, to);
83
- } else {
84
- startText = state.sliceDoc(from, from + SearchMargin);
85
- endText = state.sliceDoc(to - SearchMargin, to);
86
- }
87
- let startSpace = /^\s*/.exec(startText)[0].length,
88
- endSpace = /\s*$/.exec(endText)[0].length;
89
- let endOff = endText.length - endSpace - close.length;
90
- if (startText.slice(startSpace, startSpace + open.length) == open && endText.slice(endOff, endOff + close.length) == close) {
91
- return {
92
- open: {
93
- pos: from + startSpace + open.length,
94
- margin: /\s/.test(startText.charAt(startSpace + open.length)) ? 1 : 0
95
- },
96
- close: {
97
- pos: to - endSpace - close.length,
98
- margin: /\s/.test(endText.charAt(endOff - 1)) ? 1 : 0
99
- }
100
- };
101
- }
102
- return null;
103
- }
104
- function selectedLineRanges(state) {
105
- let ranges = [];
106
- for (let r of state.selection.ranges) {
107
- let fromLine = state.doc.lineAt(r.from);
108
- let toLine = r.to <= fromLine.to ? fromLine : state.doc.lineAt(r.to);
109
- let last = ranges.length - 1;
110
- if (last >= 0 && ranges[last].to > fromLine.from) ranges[last].to = toLine.to;else ranges.push({
111
- from: fromLine.from + /^\s*/.exec(fromLine.text)[0].length,
112
- to: toLine.to
113
- });
114
- }
115
- return ranges;
116
- }
117
- // Performs toggle, comment and uncomment of block comments in
118
- // languages that support them.
119
- function changeBlockComment(option, state) {
120
- let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
121
- let tokens = ranges.map(r => getConfig(state, r.from).block);
122
- if (!tokens.every(c => c)) return null;
123
- let comments = ranges.map((r, i) => findBlockComment(state, tokens[i], r.from, r.to));
124
- if (option != 2 /* CommentOption.Uncomment */ && !comments.every(c => c)) {
125
- return {
126
- changes: state.changes(ranges.map((range, i) => {
127
- if (comments[i]) return [];
128
- return [{
129
- from: range.from,
130
- insert: tokens[i].open + " "
131
- }, {
132
- from: range.to,
133
- insert: " " + tokens[i].close
134
- }];
135
- }))
136
- };
137
- } else if (option != 1 /* CommentOption.Comment */ && comments.some(c => c)) {
138
- let changes = [];
139
- for (let i = 0, comment; i < comments.length; i++) if (comment = comments[i]) {
140
- let token = tokens[i],
141
- {
142
- open,
143
- close
144
- } = comment;
145
- changes.push({
146
- from: open.pos - token.open.length,
147
- to: open.pos + open.margin
148
- }, {
149
- from: close.pos - close.margin,
150
- to: close.pos + token.close.length
151
- });
152
- }
153
- return {
154
- changes
155
- };
156
- }
157
- return null;
158
- }
159
- // Performs toggle, comment and uncomment of line comments.
160
- function changeLineComment(option, state) {
161
- let ranges = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : state.selection.ranges;
162
- let lines = [];
163
- let prevLine = -1;
164
- for (let {
165
- from,
166
- to
167
- } of ranges) {
168
- let startI = lines.length,
169
- minIndent = 1e9;
170
- let token = getConfig(state, from).line;
171
- if (!token) continue;
172
- for (let pos = from; pos <= to;) {
173
- let line = state.doc.lineAt(pos);
174
- if (line.from > prevLine && (from == to || to > line.from)) {
175
- prevLine = line.from;
176
- let indent = /^\s*/.exec(line.text)[0].length;
177
- let empty = indent == line.length;
178
- let comment = line.text.slice(indent, indent + token.length) == token ? indent : -1;
179
- if (indent < line.text.length && indent < minIndent) minIndent = indent;
180
- lines.push({
181
- line,
182
- comment,
183
- token,
184
- indent,
185
- empty,
186
- single: false
187
- });
188
- }
189
- pos = line.to + 1;
190
- }
191
- if (minIndent < 1e9) for (let i = startI; i < lines.length; i++) if (lines[i].indent < lines[i].line.text.length) lines[i].indent = minIndent;
192
- if (lines.length == startI + 1) lines[startI].single = true;
193
- }
194
- if (option != 2 /* CommentOption.Uncomment */ && lines.some(l => l.comment < 0 && (!l.empty || l.single))) {
195
- let changes = [];
196
- for (let {
197
- line,
198
- token,
199
- indent,
200
- empty,
201
- single
202
- } of lines) if (single || !empty) changes.push({
203
- from: line.from + indent,
204
- insert: token + " "
205
- });
206
- let changeSet = state.changes(changes);
207
- return {
208
- changes: changeSet,
209
- selection: state.selection.map(changeSet, 1)
210
- };
211
- } else if (option != 1 /* CommentOption.Comment */ && lines.some(l => l.comment >= 0)) {
212
- let changes = [];
213
- for (let {
214
- line,
215
- comment,
216
- token
217
- } of lines) if (comment >= 0) {
218
- let from = line.from + comment,
219
- to = from + token.length;
220
- if (line.text[to - line.from] == " ") to++;
221
- changes.push({
222
- from,
223
- to
224
- });
225
- }
226
- return {
227
- changes
228
- };
229
- }
230
- return null;
231
- }
232
- const fromHistory = /*@__PURE__*/Annotation.define();
233
- /**
234
- Transaction annotation that will prevent that transaction from
235
- being combined with other transactions in the undo history. Given
236
- `"before"`, it'll prevent merging with previous transactions. With
237
- `"after"`, subsequent transactions won't be combined with this
238
- one. With `"full"`, the transaction is isolated on both sides.
239
- */
240
- const isolateHistory = /*@__PURE__*/Annotation.define();
241
- /**
242
- This facet provides a way to register functions that, given a
243
- transaction, provide a set of effects that the history should
244
- store when inverting the transaction. This can be used to
245
- integrate some kinds of effects in the history, so that they can
246
- be undone (and redone again).
247
- */
248
- const invertedEffects = /*@__PURE__*/Facet.define();
249
- const historyConfig = /*@__PURE__*/Facet.define({
250
- combine(configs) {
251
- return combineConfig(configs, {
252
- minDepth: 100,
253
- newGroupDelay: 500,
254
- joinToEvent: (_t, isAdjacent) => isAdjacent
255
- }, {
256
- minDepth: Math.max,
257
- newGroupDelay: Math.min,
258
- joinToEvent: (a, b) => (tr, adj) => a(tr, adj) || b(tr, adj)
259
- });
260
- }
261
- });
262
- function changeEnd(changes) {
263
- let end = 0;
264
- changes.iterChangedRanges((_, to) => end = to);
265
- return end;
266
- }
267
- const historyField_ = /*@__PURE__*/StateField.define({
268
- create() {
269
- return HistoryState.empty;
270
- },
271
- update(state, tr) {
272
- let config = tr.state.facet(historyConfig);
273
- let fromHist = tr.annotation(fromHistory);
274
- if (fromHist) {
275
- let selection = tr.docChanged ? EditorSelection.single(changeEnd(tr.changes)) : undefined;
276
- let item = HistEvent.fromTransaction(tr, selection),
277
- from = fromHist.side;
278
- let other = from == 0 /* BranchName.Done */ ? state.undone : state.done;
279
- if (item) other = updateBranch(other, other.length, config.minDepth, item);else other = addSelection(other, tr.startState.selection);
280
- return new HistoryState(from == 0 /* BranchName.Done */ ? fromHist.rest : other, from == 0 /* BranchName.Done */ ? other : fromHist.rest);
281
- }
282
- let isolate = tr.annotation(isolateHistory);
283
- if (isolate == "full" || isolate == "before") state = state.isolate();
284
- if (tr.annotation(Transaction.addToHistory) === false) return !tr.changes.empty ? state.addMapping(tr.changes.desc) : state;
285
- let event = HistEvent.fromTransaction(tr);
286
- let time = tr.annotation(Transaction.time),
287
- userEvent = tr.annotation(Transaction.userEvent);
288
- if (event) state = state.addChanges(event, time, userEvent, config, tr);else if (tr.selection) state = state.addSelection(tr.startState.selection, time, userEvent, config.newGroupDelay);
289
- if (isolate == "full" || isolate == "after") state = state.isolate();
290
- return state;
291
- },
292
- toJSON(value) {
293
- return {
294
- done: value.done.map(e => e.toJSON()),
295
- undone: value.undone.map(e => e.toJSON())
296
- };
297
- },
298
- fromJSON(json) {
299
- return new HistoryState(json.done.map(HistEvent.fromJSON), json.undone.map(HistEvent.fromJSON));
300
- }
301
- });
302
- /**
303
- Create a history extension with the given configuration.
304
- */
305
- function history() {
306
- let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
307
- return [historyField_, historyConfig.of(config), EditorView.domEventHandlers({
308
- beforeinput(e, view) {
309
- let command = e.inputType == "historyUndo" ? undo : e.inputType == "historyRedo" ? redo : null;
310
- if (!command) return false;
311
- e.preventDefault();
312
- return command(view);
313
- }
314
- })];
315
- }
316
- function cmd(side, selection) {
317
- return function (_ref3) {
318
- let {
319
- state,
320
- dispatch
321
- } = _ref3;
322
- if (!selection && state.readOnly) return false;
323
- let historyState = state.field(historyField_, false);
324
- if (!historyState) return false;
325
- let tr = historyState.pop(side, state, selection);
326
- if (!tr) return false;
327
- dispatch(tr);
328
- return true;
329
- };
330
- }
331
- /**
332
- Undo a single group of history events. Returns false if no group
333
- was available.
334
- */
335
- const undo = /*@__PURE__*/cmd(0 /* BranchName.Done */, false);
336
- /**
337
- Redo a group of history events. Returns false if no group was
338
- available.
339
- */
340
- const redo = /*@__PURE__*/cmd(1 /* BranchName.Undone */, false);
341
- /**
342
- Undo a change or selection change.
343
- */
344
- const undoSelection = /*@__PURE__*/cmd(0 /* BranchName.Done */, true);
345
- /**
346
- Redo a change or selection change.
347
- */
348
- const redoSelection = /*@__PURE__*/cmd(1 /* BranchName.Undone */, true);
349
- // History events store groups of changes or effects that need to be
350
- // undone/redone together.
351
- class HistEvent {
352
- constructor(
353
- // The changes in this event. Normal events hold at least one
354
- // change or effect. But it may be necessary to store selection
355
- // events before the first change, in which case a special type of
356
- // instance is created which doesn't hold any changes, with
357
- // changes == startSelection == undefined
358
- changes,
359
- // The effects associated with this event
360
- effects,
361
- // Accumulated mapping (from addToHistory==false) that should be
362
- // applied to events below this one.
363
- mapped,
364
- // The selection before this event
365
- startSelection,
366
- // Stores selection changes after this event, to be used for
367
- // selection undo/redo.
368
- selectionsAfter) {
369
- this.changes = changes;
370
- this.effects = effects;
371
- this.mapped = mapped;
372
- this.startSelection = startSelection;
373
- this.selectionsAfter = selectionsAfter;
374
- }
375
- setSelAfter(after) {
376
- return new HistEvent(this.changes, this.effects, this.mapped, this.startSelection, after);
377
- }
378
- toJSON() {
379
- var _a, _b, _c;
380
- return {
381
- changes: (_a = this.changes) === null || _a === void 0 ? void 0 : _a.toJSON(),
382
- mapped: (_b = this.mapped) === null || _b === void 0 ? void 0 : _b.toJSON(),
383
- startSelection: (_c = this.startSelection) === null || _c === void 0 ? void 0 : _c.toJSON(),
384
- selectionsAfter: this.selectionsAfter.map(s => s.toJSON())
385
- };
386
- }
387
- static fromJSON(json) {
388
- return new HistEvent(json.changes && ChangeSet.fromJSON(json.changes), [], json.mapped && ChangeDesc.fromJSON(json.mapped), json.startSelection && EditorSelection.fromJSON(json.startSelection), json.selectionsAfter.map(EditorSelection.fromJSON));
389
- }
390
- // This does not check `addToHistory` and such, it assumes the
391
- // transaction needs to be converted to an item. Returns null when
392
- // there are no changes or effects in the transaction.
393
- static fromTransaction(tr, selection) {
394
- let effects = none;
395
- for (let invert of tr.startState.facet(invertedEffects)) {
396
- let result = invert(tr);
397
- if (result.length) effects = effects.concat(result);
398
- }
399
- if (!effects.length && tr.changes.empty) return null;
400
- return new HistEvent(tr.changes.invert(tr.startState.doc), effects, undefined, selection || tr.startState.selection, none);
401
- }
402
- static selection(selections) {
403
- return new HistEvent(undefined, none, undefined, undefined, selections);
404
- }
405
- }
406
- function updateBranch(branch, to, maxLen, newEvent) {
407
- let start = to + 1 > maxLen + 20 ? to - maxLen - 1 : 0;
408
- let newBranch = branch.slice(start, to);
409
- newBranch.push(newEvent);
410
- return newBranch;
411
- }
412
- function isAdjacent(a, b) {
413
- let ranges = [],
414
- isAdjacent = false;
415
- a.iterChangedRanges((f, t) => ranges.push(f, t));
416
- b.iterChangedRanges((_f, _t, f, t) => {
417
- for (let i = 0; i < ranges.length;) {
418
- let from = ranges[i++],
419
- to = ranges[i++];
420
- if (t >= from && f <= to) isAdjacent = true;
421
- }
422
- });
423
- return isAdjacent;
424
- }
425
- function eqSelectionShape(a, b) {
426
- return a.ranges.length == b.ranges.length && a.ranges.filter((r, i) => r.empty != b.ranges[i].empty).length === 0;
427
- }
428
- function conc(a, b) {
429
- return !a.length ? b : !b.length ? a : a.concat(b);
430
- }
431
- const none = [];
432
- const MaxSelectionsPerEvent = 200;
433
- function addSelection(branch, selection) {
434
- if (!branch.length) {
435
- return [HistEvent.selection([selection])];
436
- } else {
437
- let lastEvent = branch[branch.length - 1];
438
- let sels = lastEvent.selectionsAfter.slice(Math.max(0, lastEvent.selectionsAfter.length - MaxSelectionsPerEvent));
439
- if (sels.length && sels[sels.length - 1].eq(selection)) return branch;
440
- sels.push(selection);
441
- return updateBranch(branch, branch.length - 1, 1e9, lastEvent.setSelAfter(sels));
442
- }
443
- }
444
- // Assumes the top item has one or more selectionAfter values
445
- function popSelection(branch) {
446
- let last = branch[branch.length - 1];
447
- let newBranch = branch.slice();
448
- newBranch[branch.length - 1] = last.setSelAfter(last.selectionsAfter.slice(0, last.selectionsAfter.length - 1));
449
- return newBranch;
450
- }
451
- // Add a mapping to the top event in the given branch. If this maps
452
- // away all the changes and effects in that item, drop it and
453
- // propagate the mapping to the next item.
454
- function addMappingToBranch(branch, mapping) {
455
- if (!branch.length) return branch;
456
- let length = branch.length,
457
- selections = none;
458
- while (length) {
459
- let event = mapEvent(branch[length - 1], mapping, selections);
460
- if (event.changes && !event.changes.empty || event.effects.length) {
461
- // Event survived mapping
462
- let result = branch.slice(0, length);
463
- result[length - 1] = event;
464
- return result;
465
- } else {
466
- // Drop this event, since there's no changes or effects left
467
- mapping = event.mapped;
468
- length--;
469
- selections = event.selectionsAfter;
470
- }
471
- }
472
- return selections.length ? [HistEvent.selection(selections)] : none;
473
- }
474
- function mapEvent(event, mapping, extraSelections) {
475
- let selections = conc(event.selectionsAfter.length ? event.selectionsAfter.map(s => s.map(mapping)) : none, extraSelections);
476
- // Change-less events don't store mappings (they are always the last event in a branch)
477
- if (!event.changes) return HistEvent.selection(selections);
478
- let mappedChanges = event.changes.map(mapping),
479
- before = mapping.mapDesc(event.changes, true);
480
- let fullMapping = event.mapped ? event.mapped.composeDesc(before) : before;
481
- return new HistEvent(mappedChanges, StateEffect.mapEffects(event.effects, mapping), fullMapping, event.startSelection.map(before), selections);
482
- }
483
- const joinableUserEvent = /^(input\.type|delete)($|\.)/;
484
- class HistoryState {
485
- constructor(done, undone) {
486
- let prevTime = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
487
- let prevUserEvent = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : undefined;
488
- this.done = done;
489
- this.undone = undone;
490
- this.prevTime = prevTime;
491
- this.prevUserEvent = prevUserEvent;
492
- }
493
- isolate() {
494
- return this.prevTime ? new HistoryState(this.done, this.undone) : this;
495
- }
496
- addChanges(event, time, userEvent, config, tr) {
497
- let done = this.done,
498
- lastEvent = done[done.length - 1];
499
- if (lastEvent && lastEvent.changes && !lastEvent.changes.empty && event.changes && (!userEvent || joinableUserEvent.test(userEvent)) && (!lastEvent.selectionsAfter.length && time - this.prevTime < config.newGroupDelay && config.joinToEvent(tr, isAdjacent(lastEvent.changes, event.changes)) ||
500
- // For compose (but not compose.start) events, always join with previous event
501
- userEvent == "input.type.compose")) {
502
- done = updateBranch(done, done.length - 1, config.minDepth, new HistEvent(event.changes.compose(lastEvent.changes), conc(event.effects, lastEvent.effects), lastEvent.mapped, lastEvent.startSelection, none));
503
- } else {
504
- done = updateBranch(done, done.length, config.minDepth, event);
505
- }
506
- return new HistoryState(done, none, time, userEvent);
507
- }
508
- addSelection(selection, time, userEvent, newGroupDelay) {
509
- let last = this.done.length ? this.done[this.done.length - 1].selectionsAfter : none;
510
- if (last.length > 0 && time - this.prevTime < newGroupDelay && userEvent == this.prevUserEvent && userEvent && /^select($|\.)/.test(userEvent) && eqSelectionShape(last[last.length - 1], selection)) return this;
511
- return new HistoryState(addSelection(this.done, selection), this.undone, time, userEvent);
512
- }
513
- addMapping(mapping) {
514
- return new HistoryState(addMappingToBranch(this.done, mapping), addMappingToBranch(this.undone, mapping), this.prevTime, this.prevUserEvent);
515
- }
516
- pop(side, state, selection) {
517
- let branch = side == 0 /* BranchName.Done */ ? this.done : this.undone;
518
- if (branch.length == 0) return null;
519
- let event = branch[branch.length - 1];
520
- if (selection && event.selectionsAfter.length) {
521
- return state.update({
522
- selection: event.selectionsAfter[event.selectionsAfter.length - 1],
523
- annotations: fromHistory.of({
524
- side,
525
- rest: popSelection(branch)
526
- }),
527
- userEvent: side == 0 /* BranchName.Done */ ? "select.undo" : "select.redo",
528
- scrollIntoView: true
529
- });
530
- } else if (!event.changes) {
531
- return null;
532
- } else {
533
- let rest = branch.length == 1 ? none : branch.slice(0, branch.length - 1);
534
- if (event.mapped) rest = addMappingToBranch(rest, event.mapped);
535
- return state.update({
536
- changes: event.changes,
537
- selection: event.startSelection,
538
- effects: event.effects,
539
- annotations: fromHistory.of({
540
- side,
541
- rest
542
- }),
543
- filter: false,
544
- userEvent: side == 0 /* BranchName.Done */ ? "undo" : "redo",
545
- scrollIntoView: true
546
- });
547
- }
548
- }
549
- }
550
- HistoryState.empty = /*@__PURE__*/new HistoryState(none, none);
551
- /**
552
- Default key bindings for the undo history.
553
-
554
- - Mod-z: [`undo`](https://codemirror.net/6/docs/ref/#commands.undo).
555
- - Mod-y (Mod-Shift-z on macOS) + Ctrl-Shift-z on Linux: [`redo`](https://codemirror.net/6/docs/ref/#commands.redo).
556
- - Mod-u: [`undoSelection`](https://codemirror.net/6/docs/ref/#commands.undoSelection).
557
- - Alt-u (Mod-Shift-u on macOS): [`redoSelection`](https://codemirror.net/6/docs/ref/#commands.redoSelection).
558
- */
559
- const historyKeymap = [{
560
- key: "Mod-z",
561
- run: undo,
562
- preventDefault: true
563
- }, {
564
- key: "Mod-y",
565
- mac: "Mod-Shift-z",
566
- run: redo,
567
- preventDefault: true
568
- }, {
569
- linux: "Ctrl-Shift-z",
570
- run: redo,
571
- preventDefault: true
572
- }, {
573
- key: "Mod-u",
574
- run: undoSelection,
575
- preventDefault: true
576
- }, {
577
- key: "Alt-u",
578
- mac: "Mod-Shift-u",
579
- run: redoSelection,
580
- preventDefault: true
581
- }];
582
- function updateSel(sel, by) {
583
- return EditorSelection.create(sel.ranges.map(by), sel.mainIndex);
584
- }
585
- function setSel(state, selection) {
586
- return state.update({
587
- selection,
588
- scrollIntoView: true,
589
- userEvent: "select"
590
- });
591
- }
592
- function moveSel(_ref4, how) {
593
- let {
594
- state,
595
- dispatch
596
- } = _ref4;
597
- let selection = updateSel(state.selection, how);
598
- if (selection.eq(state.selection)) return false;
599
- dispatch(setSel(state, selection));
600
- return true;
601
- }
602
- function rangeEnd(range, forward) {
603
- return EditorSelection.cursor(forward ? range.to : range.from);
604
- }
605
- function cursorByChar(view, forward) {
606
- return moveSel(view, range => range.empty ? view.moveByChar(range, forward) : rangeEnd(range, forward));
607
- }
608
- function ltrAtCursor(view) {
609
- return view.textDirectionAt(view.state.selection.main.head) == Direction.LTR;
610
- }
611
- /**
612
- Move the selection one character to the left (which is backward in
613
- left-to-right text, forward in right-to-left text).
614
- */
615
- const cursorCharLeft = view => cursorByChar(view, !ltrAtCursor(view));
616
- /**
617
- Move the selection one character to the right.
618
- */
619
- const cursorCharRight = view => cursorByChar(view, ltrAtCursor(view));
620
- function cursorByGroup(view, forward) {
621
- return moveSel(view, range => range.empty ? view.moveByGroup(range, forward) : rangeEnd(range, forward));
622
- }
623
- /**
624
- Move the selection to the left across one group of word or
625
- non-word (but also non-space) characters.
626
- */
627
- const cursorGroupLeft = view => cursorByGroup(view, !ltrAtCursor(view));
628
- /**
629
- Move the selection one group to the right.
630
- */
631
- const cursorGroupRight = view => cursorByGroup(view, ltrAtCursor(view));
632
- function interestingNode(state, node, bracketProp) {
633
- if (node.type.prop(bracketProp)) return true;
634
- let len = node.to - node.from;
635
- return len && (len > 2 || /[^\s,.;:]/.test(state.sliceDoc(node.from, node.to))) || node.firstChild;
636
- }
637
- function moveBySyntax(state, start, forward) {
638
- let pos = syntaxTree(state).resolveInner(start.head);
639
- let bracketProp = forward ? NodeProp.closedBy : NodeProp.openedBy;
640
- // Scan forward through child nodes to see if there's an interesting
641
- // node ahead.
642
- for (let at = start.head;;) {
643
- let next = forward ? pos.childAfter(at) : pos.childBefore(at);
644
- if (!next) break;
645
- if (interestingNode(state, next, bracketProp)) pos = next;else at = forward ? next.to : next.from;
646
- }
647
- let bracket = pos.type.prop(bracketProp),
648
- match,
649
- newPos;
650
- if (bracket && (match = forward ? matchBrackets(state, pos.from, 1) : matchBrackets(state, pos.to, -1)) && match.matched) newPos = forward ? match.end.to : match.end.from;else newPos = forward ? pos.to : pos.from;
651
- return EditorSelection.cursor(newPos, forward ? -1 : 1);
652
- }
653
- /**
654
- Move the cursor over the next syntactic element to the left.
655
- */
656
- const cursorSyntaxLeft = view => moveSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));
657
- /**
658
- Move the cursor over the next syntactic element to the right.
659
- */
660
- const cursorSyntaxRight = view => moveSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));
661
- function cursorByLine(view, forward) {
662
- return moveSel(view, range => {
663
- if (!range.empty) return rangeEnd(range, forward);
664
- let moved = view.moveVertically(range, forward);
665
- return moved.head != range.head ? moved : view.moveToLineBoundary(range, forward);
666
- });
667
- }
668
- /**
669
- Move the selection one line up.
670
- */
671
- const cursorLineUp = view => cursorByLine(view, false);
672
- /**
673
- Move the selection one line down.
674
- */
675
- const cursorLineDown = view => cursorByLine(view, true);
676
- function pageInfo(view) {
677
- let selfScroll = view.scrollDOM.clientHeight < view.scrollDOM.scrollHeight - 2;
678
- let marginTop = 0,
679
- marginBottom = 0,
680
- height;
681
- if (selfScroll) {
682
- for (let source of view.state.facet(EditorView.scrollMargins)) {
683
- let margins = source(view);
684
- if (margins === null || margins === void 0 ? void 0 : margins.top) marginTop = Math.max(margins === null || margins === void 0 ? void 0 : margins.top, marginTop);
685
- if (margins === null || margins === void 0 ? void 0 : margins.bottom) marginBottom = Math.max(margins === null || margins === void 0 ? void 0 : margins.bottom, marginBottom);
686
- }
687
- height = view.scrollDOM.clientHeight - marginTop - marginBottom;
688
- } else {
689
- height = (view.dom.ownerDocument.defaultView || window).innerHeight;
690
- }
691
- return {
692
- marginTop,
693
- marginBottom,
694
- selfScroll,
695
- height: Math.max(view.defaultLineHeight, height - 5)
696
- };
697
- }
698
- function cursorByPage(view, forward) {
699
- let page = pageInfo(view);
700
- let {
701
- state
702
- } = view,
703
- selection = updateSel(state.selection, range => {
704
- return range.empty ? view.moveVertically(range, forward, page.height) : rangeEnd(range, forward);
705
- });
706
- if (selection.eq(state.selection)) return false;
707
- let effect;
708
- if (page.selfScroll) {
709
- let startPos = view.coordsAtPos(state.selection.main.head);
710
- let scrollRect = view.scrollDOM.getBoundingClientRect();
711
- let scrollTop = scrollRect.top + page.marginTop,
712
- scrollBottom = scrollRect.bottom - page.marginBottom;
713
- if (startPos && startPos.top > scrollTop && startPos.bottom < scrollBottom) effect = EditorView.scrollIntoView(selection.main.head, {
714
- y: "start",
715
- yMargin: startPos.top - scrollTop
716
- });
717
- }
718
- view.dispatch(setSel(state, selection), {
719
- effects: effect
720
- });
721
- return true;
722
- }
723
- /**
724
- Move the selection one page up.
725
- */
726
- const cursorPageUp = view => cursorByPage(view, false);
727
- /**
728
- Move the selection one page down.
729
- */
730
- const cursorPageDown = view => cursorByPage(view, true);
731
- function moveByLineBoundary(view, start, forward) {
732
- let line = view.lineBlockAt(start.head),
733
- moved = view.moveToLineBoundary(start, forward);
734
- if (moved.head == start.head && moved.head != (forward ? line.to : line.from)) moved = view.moveToLineBoundary(start, forward, false);
735
- if (!forward && moved.head == line.from && line.length) {
736
- let space = /^\s*/.exec(view.state.sliceDoc(line.from, Math.min(line.from + 100, line.to)))[0].length;
737
- if (space && start.head != line.from + space) moved = EditorSelection.cursor(line.from + space);
738
- }
739
- return moved;
740
- }
741
- /**
742
- Move the selection to the next line wrap point, or to the end of
743
- the line if there isn't one left on this line.
744
- */
745
- const cursorLineBoundaryForward = view => moveSel(view, range => moveByLineBoundary(view, range, true));
746
- /**
747
- Move the selection to previous line wrap point, or failing that to
748
- the start of the line. If the line is indented, and the cursor
749
- isn't already at the end of the indentation, this will move to the
750
- end of the indentation instead of the start of the line.
751
- */
752
- const cursorLineBoundaryBackward = view => moveSel(view, range => moveByLineBoundary(view, range, false));
753
- /**
754
- Move the selection one line wrap point to the left.
755
- */
756
- const cursorLineBoundaryLeft = view => moveSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));
757
- /**
758
- Move the selection one line wrap point to the right.
759
- */
760
- const cursorLineBoundaryRight = view => moveSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));
761
- /**
762
- Move the selection to the start of the line.
763
- */
764
- const cursorLineStart = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from, 1));
765
- /**
766
- Move the selection to the end of the line.
767
- */
768
- const cursorLineEnd = view => moveSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to, -1));
769
- function toMatchingBracket(state, dispatch, extend) {
770
- let found = false,
771
- selection = updateSel(state.selection, range => {
772
- let matching = matchBrackets(state, range.head, -1) || matchBrackets(state, range.head, 1) || range.head > 0 && matchBrackets(state, range.head - 1, 1) || range.head < state.doc.length && matchBrackets(state, range.head + 1, -1);
773
- if (!matching || !matching.end) return range;
774
- found = true;
775
- let head = matching.start.from == range.head ? matching.end.to : matching.end.from;
776
- return extend ? EditorSelection.range(range.anchor, head) : EditorSelection.cursor(head);
777
- });
778
- if (!found) return false;
779
- dispatch(setSel(state, selection));
780
- return true;
781
- }
782
- /**
783
- Move the selection to the bracket matching the one it is currently
784
- on, if any.
785
- */
786
- const cursorMatchingBracket = _ref5 => {
787
- let {
788
- state,
789
- dispatch
790
- } = _ref5;
791
- return toMatchingBracket(state, dispatch, false);
792
- };
793
- function extendSel(view, how) {
794
- let selection = updateSel(view.state.selection, range => {
795
- let head = how(range);
796
- return EditorSelection.range(range.anchor, head.head, head.goalColumn, head.bidiLevel || undefined);
797
- });
798
- if (selection.eq(view.state.selection)) return false;
799
- view.dispatch(setSel(view.state, selection));
800
- return true;
801
- }
802
- function selectByChar(view, forward) {
803
- return extendSel(view, range => view.moveByChar(range, forward));
804
- }
805
- /**
806
- Move the selection head one character to the left, while leaving
807
- the anchor in place.
808
- */
809
- const selectCharLeft = view => selectByChar(view, !ltrAtCursor(view));
810
- /**
811
- Move the selection head one character to the right.
812
- */
813
- const selectCharRight = view => selectByChar(view, ltrAtCursor(view));
814
- function selectByGroup(view, forward) {
815
- return extendSel(view, range => view.moveByGroup(range, forward));
816
- }
817
- /**
818
- Move the selection head one [group](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) to
819
- the left.
820
- */
821
- const selectGroupLeft = view => selectByGroup(view, !ltrAtCursor(view));
822
- /**
823
- Move the selection head one group to the right.
824
- */
825
- const selectGroupRight = view => selectByGroup(view, ltrAtCursor(view));
826
- /**
827
- Move the selection head over the next syntactic element to the left.
828
- */
829
- const selectSyntaxLeft = view => extendSel(view, range => moveBySyntax(view.state, range, !ltrAtCursor(view)));
830
- /**
831
- Move the selection head over the next syntactic element to the right.
832
- */
833
- const selectSyntaxRight = view => extendSel(view, range => moveBySyntax(view.state, range, ltrAtCursor(view)));
834
- function selectByLine(view, forward) {
835
- return extendSel(view, range => view.moveVertically(range, forward));
836
- }
837
- /**
838
- Move the selection head one line up.
839
- */
840
- const selectLineUp = view => selectByLine(view, false);
841
- /**
842
- Move the selection head one line down.
843
- */
844
- const selectLineDown = view => selectByLine(view, true);
845
- function selectByPage(view, forward) {
846
- return extendSel(view, range => view.moveVertically(range, forward, pageInfo(view).height));
847
- }
848
- /**
849
- Move the selection head one page up.
850
- */
851
- const selectPageUp = view => selectByPage(view, false);
852
- /**
853
- Move the selection head one page down.
854
- */
855
- const selectPageDown = view => selectByPage(view, true);
856
- /**
857
- Move the selection head to the next line boundary.
858
- */
859
- const selectLineBoundaryForward = view => extendSel(view, range => moveByLineBoundary(view, range, true));
860
- /**
861
- Move the selection head to the previous line boundary.
862
- */
863
- const selectLineBoundaryBackward = view => extendSel(view, range => moveByLineBoundary(view, range, false));
864
- /**
865
- Move the selection head one line boundary to the left.
866
- */
867
- const selectLineBoundaryLeft = view => extendSel(view, range => moveByLineBoundary(view, range, !ltrAtCursor(view)));
868
- /**
869
- Move the selection head one line boundary to the right.
870
- */
871
- const selectLineBoundaryRight = view => extendSel(view, range => moveByLineBoundary(view, range, ltrAtCursor(view)));
872
- /**
873
- Move the selection head to the start of the line.
874
- */
875
- const selectLineStart = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).from));
876
- /**
877
- Move the selection head to the end of the line.
878
- */
879
- const selectLineEnd = view => extendSel(view, range => EditorSelection.cursor(view.lineBlockAt(range.head).to));
880
- /**
881
- Move the selection to the start of the document.
882
- */
883
- const cursorDocStart = _ref7 => {
884
- let {
885
- state,
886
- dispatch
887
- } = _ref7;
888
- dispatch(setSel(state, {
889
- anchor: 0
890
- }));
891
- return true;
892
- };
893
- /**
894
- Move the selection to the end of the document.
895
- */
896
- const cursorDocEnd = _ref8 => {
897
- let {
898
- state,
899
- dispatch
900
- } = _ref8;
901
- dispatch(setSel(state, {
902
- anchor: state.doc.length
903
- }));
904
- return true;
905
- };
906
- /**
907
- Move the selection head to the start of the document.
908
- */
909
- const selectDocStart = _ref9 => {
910
- let {
911
- state,
912
- dispatch
913
- } = _ref9;
914
- dispatch(setSel(state, {
915
- anchor: state.selection.main.anchor,
916
- head: 0
917
- }));
918
- return true;
919
- };
920
- /**
921
- Move the selection head to the end of the document.
922
- */
923
- const selectDocEnd = _ref10 => {
924
- let {
925
- state,
926
- dispatch
927
- } = _ref10;
928
- dispatch(setSel(state, {
929
- anchor: state.selection.main.anchor,
930
- head: state.doc.length
931
- }));
932
- return true;
933
- };
934
- /**
935
- Select the entire document.
936
- */
937
- const selectAll = _ref11 => {
938
- let {
939
- state,
940
- dispatch
941
- } = _ref11;
942
- dispatch(state.update({
943
- selection: {
944
- anchor: 0,
945
- head: state.doc.length
946
- },
947
- userEvent: "select"
948
- }));
949
- return true;
950
- };
951
- /**
952
- Expand the selection to cover entire lines.
953
- */
954
- const selectLine = _ref12 => {
955
- let {
956
- state,
957
- dispatch
958
- } = _ref12;
959
- let ranges = selectedLineBlocks(state).map(_ref13 => {
960
- let {
961
- from,
962
- to
963
- } = _ref13;
964
- return EditorSelection.range(from, Math.min(to + 1, state.doc.length));
965
- });
966
- dispatch(state.update({
967
- selection: EditorSelection.create(ranges),
968
- userEvent: "select"
969
- }));
970
- return true;
971
- };
972
- /**
973
- Select the next syntactic construct that is larger than the
974
- selection. Note that this will only work insofar as the language
975
- [provider](https://codemirror.net/6/docs/ref/#language.language) you use builds up a full
976
- syntax tree.
977
- */
978
- const selectParentSyntax = _ref14 => {
979
- let {
980
- state,
981
- dispatch
982
- } = _ref14;
983
- let selection = updateSel(state.selection, range => {
984
- var _a;
985
- let context = syntaxTree(state).resolveInner(range.head, 1);
986
- while (!(context.from < range.from && context.to >= range.to || context.to > range.to && context.from <= range.from || !((_a = context.parent) === null || _a === void 0 ? void 0 : _a.parent))) context = context.parent;
987
- return EditorSelection.range(context.to, context.from);
988
- });
989
- dispatch(setSel(state, selection));
990
- return true;
991
- };
992
- /**
993
- Simplify the current selection. When multiple ranges are selected,
994
- reduce it to its main range. Otherwise, if the selection is
995
- non-empty, convert it to a cursor selection.
996
- */
997
- const simplifySelection = _ref15 => {
998
- let {
999
- state,
1000
- dispatch
1001
- } = _ref15;
1002
- let cur = state.selection,
1003
- selection = null;
1004
- if (cur.ranges.length > 1) selection = EditorSelection.create([cur.main]);else if (!cur.main.empty) selection = EditorSelection.create([EditorSelection.cursor(cur.main.head)]);
1005
- if (!selection) return false;
1006
- dispatch(setSel(state, selection));
1007
- return true;
1008
- };
1009
- function deleteBy(target, by) {
1010
- if (target.state.readOnly) return false;
1011
- let event = "delete.selection",
1012
- {
1013
- state
1014
- } = target;
1015
- let changes = state.changeByRange(range => {
1016
- let {
1017
- from,
1018
- to
1019
- } = range;
1020
- if (from == to) {
1021
- let towards = by(from);
1022
- if (towards < from) {
1023
- event = "delete.backward";
1024
- towards = skipAtomic(target, towards, false);
1025
- } else if (towards > from) {
1026
- event = "delete.forward";
1027
- towards = skipAtomic(target, towards, true);
1028
- }
1029
- from = Math.min(from, towards);
1030
- to = Math.max(to, towards);
1031
- } else {
1032
- from = skipAtomic(target, from, false);
1033
- to = skipAtomic(target, to, true);
1034
- }
1035
- return from == to ? {
1036
- range
1037
- } : {
1038
- changes: {
1039
- from,
1040
- to
1041
- },
1042
- range: EditorSelection.cursor(from)
1043
- };
1044
- });
1045
- if (changes.changes.empty) return false;
1046
- target.dispatch(state.update(changes, {
1047
- scrollIntoView: true,
1048
- userEvent: event,
1049
- effects: event == "delete.selection" ? EditorView.announce.of(state.phrase("Selection deleted")) : undefined
1050
- }));
1051
- return true;
1052
- }
1053
- function skipAtomic(target, pos, forward) {
1054
- if (target instanceof EditorView) for (let ranges of target.state.facet(EditorView.atomicRanges).map(f => f(target))) ranges.between(pos, pos, (from, to) => {
1055
- if (from < pos && to > pos) pos = forward ? to : from;
1056
- });
1057
- return pos;
1058
- }
1059
- const deleteByChar = (target, forward) => deleteBy(target, pos => {
1060
- let {
1061
- state
1062
- } = target,
1063
- line = state.doc.lineAt(pos),
1064
- before,
1065
- targetPos;
1066
- if (!forward && pos > line.from && pos < line.from + 200 && !/[^ \t]/.test(before = line.text.slice(0, pos - line.from))) {
1067
- if (before[before.length - 1] == "\t") return pos - 1;
1068
- let col = countColumn(before, state.tabSize),
1069
- drop = col % getIndentUnit(state) || getIndentUnit(state);
1070
- for (let i = 0; i < drop && before[before.length - 1 - i] == " "; i++) pos--;
1071
- targetPos = pos;
1072
- } else {
1073
- targetPos = findClusterBreak(line.text, pos - line.from, forward, forward) + line.from;
1074
- if (targetPos == pos && line.number != (forward ? state.doc.lines : 1)) targetPos += forward ? 1 : -1;
1075
- }
1076
- return targetPos;
1077
- });
1078
- /**
1079
- Delete the selection, or, for cursor selections, the character
1080
- before the cursor.
1081
- */
1082
- const deleteCharBackward = view => deleteByChar(view, false);
1083
- /**
1084
- Delete the selection or the character after the cursor.
1085
- */
1086
- const deleteCharForward = view => deleteByChar(view, true);
1087
- const deleteByGroup = (target, forward) => deleteBy(target, start => {
1088
- let pos = start,
1089
- {
1090
- state
1091
- } = target,
1092
- line = state.doc.lineAt(pos);
1093
- let categorize = state.charCategorizer(pos);
1094
- for (let cat = null;;) {
1095
- if (pos == (forward ? line.to : line.from)) {
1096
- if (pos == start && line.number != (forward ? state.doc.lines : 1)) pos += forward ? 1 : -1;
1097
- break;
1098
- }
1099
- let next = findClusterBreak(line.text, pos - line.from, forward) + line.from;
1100
- let nextChar = line.text.slice(Math.min(pos, next) - line.from, Math.max(pos, next) - line.from);
1101
- let nextCat = categorize(nextChar);
1102
- if (cat != null && nextCat != cat) break;
1103
- if (nextChar != " " || pos != start) cat = nextCat;
1104
- pos = next;
1105
- }
1106
- return pos;
1107
- });
1108
- /**
1109
- Delete the selection or backward until the end of the next
1110
- [group](https://codemirror.net/6/docs/ref/#view.EditorView.moveByGroup), only skipping groups of
1111
- whitespace when they consist of a single space.
1112
- */
1113
- const deleteGroupBackward = target => deleteByGroup(target, false);
1114
- /**
1115
- Delete the selection or forward until the end of the next group.
1116
- */
1117
- const deleteGroupForward = target => deleteByGroup(target, true);
1118
- /**
1119
- Delete the selection, or, if it is a cursor selection, delete to
1120
- the end of the line. If the cursor is directly at the end of the
1121
- line, delete the line break after it.
1122
- */
1123
- const deleteToLineEnd = view => deleteBy(view, pos => {
1124
- let lineEnd = view.lineBlockAt(pos).to;
1125
- return pos < lineEnd ? lineEnd : Math.min(view.state.doc.length, pos + 1);
1126
- });
1127
- /**
1128
- Delete the selection, or, if it is a cursor selection, delete to
1129
- the start of the line. If the cursor is directly at the start of the
1130
- line, delete the line break before it.
1131
- */
1132
- const deleteToLineStart = view => deleteBy(view, pos => {
1133
- let lineStart = view.lineBlockAt(pos).from;
1134
- return pos > lineStart ? lineStart : Math.max(0, pos - 1);
1135
- });
1136
- /**
1137
- Replace each selection range with a line break, leaving the cursor
1138
- on the line before the break.
1139
- */
1140
- const splitLine = _ref17 => {
1141
- let {
1142
- state,
1143
- dispatch
1144
- } = _ref17;
1145
- if (state.readOnly) return false;
1146
- let changes = state.changeByRange(range => {
1147
- return {
1148
- changes: {
1149
- from: range.from,
1150
- to: range.to,
1151
- insert: Text.of(["", ""])
1152
- },
1153
- range: EditorSelection.cursor(range.from)
1154
- };
1155
- });
1156
- dispatch(state.update(changes, {
1157
- scrollIntoView: true,
1158
- userEvent: "input"
1159
- }));
1160
- return true;
1161
- };
1162
- /**
1163
- Flip the characters before and after the cursor(s).
1164
- */
1165
- const transposeChars = _ref18 => {
1166
- let {
1167
- state,
1168
- dispatch
1169
- } = _ref18;
1170
- if (state.readOnly) return false;
1171
- let changes = state.changeByRange(range => {
1172
- if (!range.empty || range.from == 0 || range.from == state.doc.length) return {
1173
- range
1174
- };
1175
- let pos = range.from,
1176
- line = state.doc.lineAt(pos);
1177
- let from = pos == line.from ? pos - 1 : findClusterBreak(line.text, pos - line.from, false) + line.from;
1178
- let to = pos == line.to ? pos + 1 : findClusterBreak(line.text, pos - line.from, true) + line.from;
1179
- return {
1180
- changes: {
1181
- from,
1182
- to,
1183
- insert: state.doc.slice(pos, to).append(state.doc.slice(from, pos))
1184
- },
1185
- range: EditorSelection.cursor(to)
1186
- };
1187
- });
1188
- if (changes.changes.empty) return false;
1189
- dispatch(state.update(changes, {
1190
- scrollIntoView: true,
1191
- userEvent: "move.character"
1192
- }));
1193
- return true;
1194
- };
1195
- function selectedLineBlocks(state) {
1196
- let blocks = [],
1197
- upto = -1;
1198
- for (let range of state.selection.ranges) {
1199
- let startLine = state.doc.lineAt(range.from),
1200
- endLine = state.doc.lineAt(range.to);
1201
- if (!range.empty && range.to == endLine.from) endLine = state.doc.lineAt(range.to - 1);
1202
- if (upto >= startLine.number) {
1203
- let prev = blocks[blocks.length - 1];
1204
- prev.to = endLine.to;
1205
- prev.ranges.push(range);
1206
- } else {
1207
- blocks.push({
1208
- from: startLine.from,
1209
- to: endLine.to,
1210
- ranges: [range]
1211
- });
1212
- }
1213
- upto = endLine.number + 1;
1214
- }
1215
- return blocks;
1216
- }
1217
- function moveLine(state, dispatch, forward) {
1218
- if (state.readOnly) return false;
1219
- let changes = [],
1220
- ranges = [];
1221
- for (let block of selectedLineBlocks(state)) {
1222
- if (forward ? block.to == state.doc.length : block.from == 0) continue;
1223
- let nextLine = state.doc.lineAt(forward ? block.to + 1 : block.from - 1);
1224
- let size = nextLine.length + 1;
1225
- if (forward) {
1226
- changes.push({
1227
- from: block.to,
1228
- to: nextLine.to
1229
- }, {
1230
- from: block.from,
1231
- insert: nextLine.text + state.lineBreak
1232
- });
1233
- for (let r of block.ranges) ranges.push(EditorSelection.range(Math.min(state.doc.length, r.anchor + size), Math.min(state.doc.length, r.head + size)));
1234
- } else {
1235
- changes.push({
1236
- from: nextLine.from,
1237
- to: block.from
1238
- }, {
1239
- from: block.to,
1240
- insert: state.lineBreak + nextLine.text
1241
- });
1242
- for (let r of block.ranges) ranges.push(EditorSelection.range(r.anchor - size, r.head - size));
1243
- }
1244
- }
1245
- if (!changes.length) return false;
1246
- dispatch(state.update({
1247
- changes,
1248
- scrollIntoView: true,
1249
- selection: EditorSelection.create(ranges, state.selection.mainIndex),
1250
- userEvent: "move.line"
1251
- }));
1252
- return true;
1253
- }
1254
- /**
1255
- Move the selected lines up one line.
1256
- */
1257
- const moveLineUp = _ref19 => {
1258
- let {
1259
- state,
1260
- dispatch
1261
- } = _ref19;
1262
- return moveLine(state, dispatch, false);
1263
- };
1264
- /**
1265
- Move the selected lines down one line.
1266
- */
1267
- const moveLineDown = _ref20 => {
1268
- let {
1269
- state,
1270
- dispatch
1271
- } = _ref20;
1272
- return moveLine(state, dispatch, true);
1273
- };
1274
- function copyLine(state, dispatch, forward) {
1275
- if (state.readOnly) return false;
1276
- let changes = [];
1277
- for (let block of selectedLineBlocks(state)) {
1278
- if (forward) changes.push({
1279
- from: block.from,
1280
- insert: state.doc.slice(block.from, block.to) + state.lineBreak
1281
- });else changes.push({
1282
- from: block.to,
1283
- insert: state.lineBreak + state.doc.slice(block.from, block.to)
1284
- });
1285
- }
1286
- dispatch(state.update({
1287
- changes,
1288
- scrollIntoView: true,
1289
- userEvent: "input.copyline"
1290
- }));
1291
- return true;
1292
- }
1293
- /**
1294
- Create a copy of the selected lines. Keep the selection in the top copy.
1295
- */
1296
- const copyLineUp = _ref21 => {
1297
- let {
1298
- state,
1299
- dispatch
1300
- } = _ref21;
1301
- return copyLine(state, dispatch, false);
1302
- };
1303
- /**
1304
- Create a copy of the selected lines. Keep the selection in the bottom copy.
1305
- */
1306
- const copyLineDown = _ref22 => {
1307
- let {
1308
- state,
1309
- dispatch
1310
- } = _ref22;
1311
- return copyLine(state, dispatch, true);
1312
- };
1313
- /**
1314
- Delete selected lines.
1315
- */
1316
- const deleteLine = view => {
1317
- if (view.state.readOnly) return false;
1318
- let {
1319
- state
1320
- } = view,
1321
- changes = state.changes(selectedLineBlocks(state).map(_ref23 => {
1322
- let {
1323
- from,
1324
- to
1325
- } = _ref23;
1326
- if (from > 0) from--;else if (to < state.doc.length) to++;
1327
- return {
1328
- from,
1329
- to
1330
- };
1331
- }));
1332
- let selection = updateSel(state.selection, range => view.moveVertically(range, true)).map(changes);
1333
- view.dispatch({
1334
- changes,
1335
- selection,
1336
- scrollIntoView: true,
1337
- userEvent: "delete.line"
1338
- });
1339
- return true;
1340
- };
1341
- function isBetweenBrackets(state, pos) {
1342
- if (/\(\)|\[\]|\{\}/.test(state.sliceDoc(pos - 1, pos + 1))) return {
1343
- from: pos,
1344
- to: pos
1345
- };
1346
- let context = syntaxTree(state).resolveInner(pos);
1347
- let before = context.childBefore(pos),
1348
- after = context.childAfter(pos),
1349
- closedBy;
1350
- if (before && after && before.to <= pos && after.from >= pos && (closedBy = before.type.prop(NodeProp.closedBy)) && closedBy.indexOf(after.name) > -1 && state.doc.lineAt(before.to).from == state.doc.lineAt(after.from).from) return {
1351
- from: before.to,
1352
- to: after.from
1353
- };
1354
- return null;
1355
- }
1356
- /**
1357
- Replace the selection with a newline and indent the newly created
1358
- line(s). If the current line consists only of whitespace, this
1359
- will also delete that whitespace. When the cursor is between
1360
- matching brackets, an additional newline will be inserted after
1361
- the cursor.
1362
- */
1363
- const insertNewlineAndIndent = /*@__PURE__*/newlineAndIndent(false);
1364
- /**
1365
- Create a blank, indented line below the current line.
1366
- */
1367
- const insertBlankLine = /*@__PURE__*/newlineAndIndent(true);
1368
- function newlineAndIndent(atEof) {
1369
- return _ref25 => {
1370
- let {
1371
- state,
1372
- dispatch
1373
- } = _ref25;
1374
- if (state.readOnly) return false;
1375
- let changes = state.changeByRange(range => {
1376
- let {
1377
- from,
1378
- to
1379
- } = range,
1380
- line = state.doc.lineAt(from);
1381
- let explode = !atEof && from == to && isBetweenBrackets(state, from);
1382
- if (atEof) from = to = (to <= line.to ? line : state.doc.lineAt(to)).to;
1383
- let cx = new IndentContext(state, {
1384
- simulateBreak: from,
1385
- simulateDoubleBreak: !!explode
1386
- });
1387
- let indent = getIndentation(cx, from);
1388
- if (indent == null) indent = /^\s*/.exec(state.doc.lineAt(from).text)[0].length;
1389
- while (to < line.to && /\s/.test(line.text[to - line.from])) to++;
1390
- if (explode) ({
1391
- from,
1392
- to
1393
- } = explode);else if (from > line.from && from < line.from + 100 && !/\S/.test(line.text.slice(0, from))) from = line.from;
1394
- let insert = ["", indentString(state, indent)];
1395
- if (explode) insert.push(indentString(state, cx.lineIndent(line.from, -1)));
1396
- return {
1397
- changes: {
1398
- from,
1399
- to,
1400
- insert: Text.of(insert)
1401
- },
1402
- range: EditorSelection.cursor(from + 1 + insert[1].length)
1403
- };
1404
- });
1405
- dispatch(state.update(changes, {
1406
- scrollIntoView: true,
1407
- userEvent: "input"
1408
- }));
1409
- return true;
1410
- };
1411
- }
1412
- function changeBySelectedLine(state, f) {
1413
- let atLine = -1;
1414
- return state.changeByRange(range => {
1415
- let changes = [];
1416
- for (let pos = range.from; pos <= range.to;) {
1417
- let line = state.doc.lineAt(pos);
1418
- if (line.number > atLine && (range.empty || range.to > line.from)) {
1419
- f(line, changes, range);
1420
- atLine = line.number;
1421
- }
1422
- pos = line.to + 1;
1423
- }
1424
- let changeSet = state.changes(changes);
1425
- return {
1426
- changes,
1427
- range: EditorSelection.range(changeSet.mapPos(range.anchor, 1), changeSet.mapPos(range.head, 1))
1428
- };
1429
- });
1430
- }
1431
- /**
1432
- Auto-indent the selected lines. This uses the [indentation service
1433
- facet](https://codemirror.net/6/docs/ref/#language.indentService) as source for auto-indent
1434
- information.
1435
- */
1436
- const indentSelection = _ref26 => {
1437
- let {
1438
- state,
1439
- dispatch
1440
- } = _ref26;
1441
- if (state.readOnly) return false;
1442
- let updated = Object.create(null);
1443
- let context = new IndentContext(state, {
1444
- overrideIndentation: start => {
1445
- let found = updated[start];
1446
- return found == null ? -1 : found;
1447
- }
1448
- });
1449
- let changes = changeBySelectedLine(state, (line, changes, range) => {
1450
- let indent = getIndentation(context, line.from);
1451
- if (indent == null) return;
1452
- if (!/\S/.test(line.text)) indent = 0;
1453
- let cur = /^\s*/.exec(line.text)[0];
1454
- let norm = indentString(state, indent);
1455
- if (cur != norm || range.from < line.from + cur.length) {
1456
- updated[line.from] = indent;
1457
- changes.push({
1458
- from: line.from,
1459
- to: line.from + cur.length,
1460
- insert: norm
1461
- });
1462
- }
1463
- });
1464
- if (!changes.changes.empty) dispatch(state.update(changes, {
1465
- userEvent: "indent"
1466
- }));
1467
- return true;
1468
- };
1469
- /**
1470
- Add a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation to all selected
1471
- lines.
1472
- */
1473
- const indentMore = _ref27 => {
1474
- let {
1475
- state,
1476
- dispatch
1477
- } = _ref27;
1478
- if (state.readOnly) return false;
1479
- dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
1480
- changes.push({
1481
- from: line.from,
1482
- insert: state.facet(indentUnit)
1483
- });
1484
- }), {
1485
- userEvent: "input.indent"
1486
- }));
1487
- return true;
1488
- };
1489
- /**
1490
- Remove a [unit](https://codemirror.net/6/docs/ref/#language.indentUnit) of indentation from all
1491
- selected lines.
1492
- */
1493
- const indentLess = _ref28 => {
1494
- let {
1495
- state,
1496
- dispatch
1497
- } = _ref28;
1498
- if (state.readOnly) return false;
1499
- dispatch(state.update(changeBySelectedLine(state, (line, changes) => {
1500
- let space = /^\s*/.exec(line.text)[0];
1501
- if (!space) return;
1502
- let col = countColumn(space, state.tabSize),
1503
- keep = 0;
1504
- let insert = indentString(state, Math.max(0, col - getIndentUnit(state)));
1505
- while (keep < space.length && keep < insert.length && space.charCodeAt(keep) == insert.charCodeAt(keep)) keep++;
1506
- changes.push({
1507
- from: line.from + keep,
1508
- to: line.from + space.length,
1509
- insert: insert.slice(keep)
1510
- });
1511
- }), {
1512
- userEvent: "delete.dedent"
1513
- }));
1514
- return true;
1515
- };
1516
- /**
1517
- Array of key bindings containing the Emacs-style bindings that are
1518
- available on macOS by default.
1519
-
1520
- - Ctrl-b: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)
1521
- - Ctrl-f: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)
1522
- - Ctrl-p: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)
1523
- - Ctrl-n: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)
1524
- - Ctrl-a: [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)
1525
- - Ctrl-e: [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)
1526
- - Ctrl-d: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)
1527
- - Ctrl-h: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)
1528
- - Ctrl-k: [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd)
1529
- - Ctrl-Alt-h: [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)
1530
- - Ctrl-o: [`splitLine`](https://codemirror.net/6/docs/ref/#commands.splitLine)
1531
- - Ctrl-t: [`transposeChars`](https://codemirror.net/6/docs/ref/#commands.transposeChars)
1532
- - Ctrl-v: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown)
1533
- - Alt-v: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp)
1534
- */
1535
- const emacsStyleKeymap = [{
1536
- key: "Ctrl-b",
1537
- run: cursorCharLeft,
1538
- shift: selectCharLeft,
1539
- preventDefault: true
1540
- }, {
1541
- key: "Ctrl-f",
1542
- run: cursorCharRight,
1543
- shift: selectCharRight
1544
- }, {
1545
- key: "Ctrl-p",
1546
- run: cursorLineUp,
1547
- shift: selectLineUp
1548
- }, {
1549
- key: "Ctrl-n",
1550
- run: cursorLineDown,
1551
- shift: selectLineDown
1552
- }, {
1553
- key: "Ctrl-a",
1554
- run: cursorLineStart,
1555
- shift: selectLineStart
1556
- }, {
1557
- key: "Ctrl-e",
1558
- run: cursorLineEnd,
1559
- shift: selectLineEnd
1560
- }, {
1561
- key: "Ctrl-d",
1562
- run: deleteCharForward
1563
- }, {
1564
- key: "Ctrl-h",
1565
- run: deleteCharBackward
1566
- }, {
1567
- key: "Ctrl-k",
1568
- run: deleteToLineEnd
1569
- }, {
1570
- key: "Ctrl-Alt-h",
1571
- run: deleteGroupBackward
1572
- }, {
1573
- key: "Ctrl-o",
1574
- run: splitLine
1575
- }, {
1576
- key: "Ctrl-t",
1577
- run: transposeChars
1578
- }, {
1579
- key: "Ctrl-v",
1580
- run: cursorPageDown
1581
- }];
1582
- /**
1583
- An array of key bindings closely sticking to platform-standard or
1584
- widely used bindings. (This includes the bindings from
1585
- [`emacsStyleKeymap`](https://codemirror.net/6/docs/ref/#commands.emacsStyleKeymap), with their `key`
1586
- property changed to `mac`.)
1587
-
1588
- - ArrowLeft: [`cursorCharLeft`](https://codemirror.net/6/docs/ref/#commands.cursorCharLeft) ([`selectCharLeft`](https://codemirror.net/6/docs/ref/#commands.selectCharLeft) with Shift)
1589
- - ArrowRight: [`cursorCharRight`](https://codemirror.net/6/docs/ref/#commands.cursorCharRight) ([`selectCharRight`](https://codemirror.net/6/docs/ref/#commands.selectCharRight) with Shift)
1590
- - Ctrl-ArrowLeft (Alt-ArrowLeft on macOS): [`cursorGroupLeft`](https://codemirror.net/6/docs/ref/#commands.cursorGroupLeft) ([`selectGroupLeft`](https://codemirror.net/6/docs/ref/#commands.selectGroupLeft) with Shift)
1591
- - Ctrl-ArrowRight (Alt-ArrowRight on macOS): [`cursorGroupRight`](https://codemirror.net/6/docs/ref/#commands.cursorGroupRight) ([`selectGroupRight`](https://codemirror.net/6/docs/ref/#commands.selectGroupRight) with Shift)
1592
- - Cmd-ArrowLeft (on macOS): [`cursorLineStart`](https://codemirror.net/6/docs/ref/#commands.cursorLineStart) ([`selectLineStart`](https://codemirror.net/6/docs/ref/#commands.selectLineStart) with Shift)
1593
- - Cmd-ArrowRight (on macOS): [`cursorLineEnd`](https://codemirror.net/6/docs/ref/#commands.cursorLineEnd) ([`selectLineEnd`](https://codemirror.net/6/docs/ref/#commands.selectLineEnd) with Shift)
1594
- - ArrowUp: [`cursorLineUp`](https://codemirror.net/6/docs/ref/#commands.cursorLineUp) ([`selectLineUp`](https://codemirror.net/6/docs/ref/#commands.selectLineUp) with Shift)
1595
- - ArrowDown: [`cursorLineDown`](https://codemirror.net/6/docs/ref/#commands.cursorLineDown) ([`selectLineDown`](https://codemirror.net/6/docs/ref/#commands.selectLineDown) with Shift)
1596
- - Cmd-ArrowUp (on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)
1597
- - Cmd-ArrowDown (on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)
1598
- - Ctrl-ArrowUp (on macOS): [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)
1599
- - Ctrl-ArrowDown (on macOS): [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)
1600
- - PageUp: [`cursorPageUp`](https://codemirror.net/6/docs/ref/#commands.cursorPageUp) ([`selectPageUp`](https://codemirror.net/6/docs/ref/#commands.selectPageUp) with Shift)
1601
- - PageDown: [`cursorPageDown`](https://codemirror.net/6/docs/ref/#commands.cursorPageDown) ([`selectPageDown`](https://codemirror.net/6/docs/ref/#commands.selectPageDown) with Shift)
1602
- - Home: [`cursorLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryBackward) ([`selectLineBoundaryBackward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryBackward) with Shift)
1603
- - End: [`cursorLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.cursorLineBoundaryForward) ([`selectLineBoundaryForward`](https://codemirror.net/6/docs/ref/#commands.selectLineBoundaryForward) with Shift)
1604
- - Ctrl-Home (Cmd-Home on macOS): [`cursorDocStart`](https://codemirror.net/6/docs/ref/#commands.cursorDocStart) ([`selectDocStart`](https://codemirror.net/6/docs/ref/#commands.selectDocStart) with Shift)
1605
- - Ctrl-End (Cmd-Home on macOS): [`cursorDocEnd`](https://codemirror.net/6/docs/ref/#commands.cursorDocEnd) ([`selectDocEnd`](https://codemirror.net/6/docs/ref/#commands.selectDocEnd) with Shift)
1606
- - Enter: [`insertNewlineAndIndent`](https://codemirror.net/6/docs/ref/#commands.insertNewlineAndIndent)
1607
- - Ctrl-a (Cmd-a on macOS): [`selectAll`](https://codemirror.net/6/docs/ref/#commands.selectAll)
1608
- - Backspace: [`deleteCharBackward`](https://codemirror.net/6/docs/ref/#commands.deleteCharBackward)
1609
- - Delete: [`deleteCharForward`](https://codemirror.net/6/docs/ref/#commands.deleteCharForward)
1610
- - Ctrl-Backspace (Alt-Backspace on macOS): [`deleteGroupBackward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupBackward)
1611
- - Ctrl-Delete (Alt-Delete on macOS): [`deleteGroupForward`](https://codemirror.net/6/docs/ref/#commands.deleteGroupForward)
1612
- - Cmd-Backspace (macOS): [`deleteToLineStart`](https://codemirror.net/6/docs/ref/#commands.deleteToLineStart).
1613
- - Cmd-Delete (macOS): [`deleteToLineEnd`](https://codemirror.net/6/docs/ref/#commands.deleteToLineEnd).
1614
- */
1615
- const standardKeymap = /*@__PURE__*/[{
1616
- key: "ArrowLeft",
1617
- run: cursorCharLeft,
1618
- shift: selectCharLeft,
1619
- preventDefault: true
1620
- }, {
1621
- key: "Mod-ArrowLeft",
1622
- mac: "Alt-ArrowLeft",
1623
- run: cursorGroupLeft,
1624
- shift: selectGroupLeft,
1625
- preventDefault: true
1626
- }, {
1627
- mac: "Cmd-ArrowLeft",
1628
- run: cursorLineBoundaryLeft,
1629
- shift: selectLineBoundaryLeft,
1630
- preventDefault: true
1631
- }, {
1632
- key: "ArrowRight",
1633
- run: cursorCharRight,
1634
- shift: selectCharRight,
1635
- preventDefault: true
1636
- }, {
1637
- key: "Mod-ArrowRight",
1638
- mac: "Alt-ArrowRight",
1639
- run: cursorGroupRight,
1640
- shift: selectGroupRight,
1641
- preventDefault: true
1642
- }, {
1643
- mac: "Cmd-ArrowRight",
1644
- run: cursorLineBoundaryRight,
1645
- shift: selectLineBoundaryRight,
1646
- preventDefault: true
1647
- }, {
1648
- key: "ArrowUp",
1649
- run: cursorLineUp,
1650
- shift: selectLineUp,
1651
- preventDefault: true
1652
- }, {
1653
- mac: "Cmd-ArrowUp",
1654
- run: cursorDocStart,
1655
- shift: selectDocStart
1656
- }, {
1657
- mac: "Ctrl-ArrowUp",
1658
- run: cursorPageUp,
1659
- shift: selectPageUp
1660
- }, {
1661
- key: "ArrowDown",
1662
- run: cursorLineDown,
1663
- shift: selectLineDown,
1664
- preventDefault: true
1665
- }, {
1666
- mac: "Cmd-ArrowDown",
1667
- run: cursorDocEnd,
1668
- shift: selectDocEnd
1669
- }, {
1670
- mac: "Ctrl-ArrowDown",
1671
- run: cursorPageDown,
1672
- shift: selectPageDown
1673
- }, {
1674
- key: "PageUp",
1675
- run: cursorPageUp,
1676
- shift: selectPageUp
1677
- }, {
1678
- key: "PageDown",
1679
- run: cursorPageDown,
1680
- shift: selectPageDown
1681
- }, {
1682
- key: "Home",
1683
- run: cursorLineBoundaryBackward,
1684
- shift: selectLineBoundaryBackward,
1685
- preventDefault: true
1686
- }, {
1687
- key: "Mod-Home",
1688
- run: cursorDocStart,
1689
- shift: selectDocStart
1690
- }, {
1691
- key: "End",
1692
- run: cursorLineBoundaryForward,
1693
- shift: selectLineBoundaryForward,
1694
- preventDefault: true
1695
- }, {
1696
- key: "Mod-End",
1697
- run: cursorDocEnd,
1698
- shift: selectDocEnd
1699
- }, {
1700
- key: "Enter",
1701
- run: insertNewlineAndIndent
1702
- }, {
1703
- key: "Mod-a",
1704
- run: selectAll
1705
- }, {
1706
- key: "Backspace",
1707
- run: deleteCharBackward,
1708
- shift: deleteCharBackward
1709
- }, {
1710
- key: "Delete",
1711
- run: deleteCharForward
1712
- }, {
1713
- key: "Mod-Backspace",
1714
- mac: "Alt-Backspace",
1715
- run: deleteGroupBackward
1716
- }, {
1717
- key: "Mod-Delete",
1718
- mac: "Alt-Delete",
1719
- run: deleteGroupForward
1720
- }, {
1721
- mac: "Mod-Backspace",
1722
- run: deleteToLineStart
1723
- }, {
1724
- mac: "Mod-Delete",
1725
- run: deleteToLineEnd
1726
- }].concat( /*@__PURE__*/emacsStyleKeymap.map(b => ({
1727
- mac: b.key,
1728
- run: b.run,
1729
- shift: b.shift
1730
- })));
1731
- /**
1732
- The default keymap. Includes all bindings from
1733
- [`standardKeymap`](https://codemirror.net/6/docs/ref/#commands.standardKeymap) plus the following:
1734
-
1735
- - Alt-ArrowLeft (Ctrl-ArrowLeft on macOS): [`cursorSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxLeft) ([`selectSyntaxLeft`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxLeft) with Shift)
1736
- - Alt-ArrowRight (Ctrl-ArrowRight on macOS): [`cursorSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.cursorSyntaxRight) ([`selectSyntaxRight`](https://codemirror.net/6/docs/ref/#commands.selectSyntaxRight) with Shift)
1737
- - Alt-ArrowUp: [`moveLineUp`](https://codemirror.net/6/docs/ref/#commands.moveLineUp)
1738
- - Alt-ArrowDown: [`moveLineDown`](https://codemirror.net/6/docs/ref/#commands.moveLineDown)
1739
- - Shift-Alt-ArrowUp: [`copyLineUp`](https://codemirror.net/6/docs/ref/#commands.copyLineUp)
1740
- - Shift-Alt-ArrowDown: [`copyLineDown`](https://codemirror.net/6/docs/ref/#commands.copyLineDown)
1741
- - Escape: [`simplifySelection`](https://codemirror.net/6/docs/ref/#commands.simplifySelection)
1742
- - Ctrl-Enter (Cmd-Enter on macOS): [`insertBlankLine`](https://codemirror.net/6/docs/ref/#commands.insertBlankLine)
1743
- - Alt-l (Ctrl-l on macOS): [`selectLine`](https://codemirror.net/6/docs/ref/#commands.selectLine)
1744
- - Ctrl-i (Cmd-i on macOS): [`selectParentSyntax`](https://codemirror.net/6/docs/ref/#commands.selectParentSyntax)
1745
- - Ctrl-[ (Cmd-[ on macOS): [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess)
1746
- - Ctrl-] (Cmd-] on macOS): [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore)
1747
- - Ctrl-Alt-\\ (Cmd-Alt-\\ on macOS): [`indentSelection`](https://codemirror.net/6/docs/ref/#commands.indentSelection)
1748
- - Shift-Ctrl-k (Shift-Cmd-k on macOS): [`deleteLine`](https://codemirror.net/6/docs/ref/#commands.deleteLine)
1749
- - Shift-Ctrl-\\ (Shift-Cmd-\\ on macOS): [`cursorMatchingBracket`](https://codemirror.net/6/docs/ref/#commands.cursorMatchingBracket)
1750
- - Ctrl-/ (Cmd-/ on macOS): [`toggleComment`](https://codemirror.net/6/docs/ref/#commands.toggleComment).
1751
- - Shift-Alt-a: [`toggleBlockComment`](https://codemirror.net/6/docs/ref/#commands.toggleBlockComment).
1752
- */
1753
- const defaultKeymap = /*@__PURE__*/[{
1754
- key: "Alt-ArrowLeft",
1755
- mac: "Ctrl-ArrowLeft",
1756
- run: cursorSyntaxLeft,
1757
- shift: selectSyntaxLeft
1758
- }, {
1759
- key: "Alt-ArrowRight",
1760
- mac: "Ctrl-ArrowRight",
1761
- run: cursorSyntaxRight,
1762
- shift: selectSyntaxRight
1763
- }, {
1764
- key: "Alt-ArrowUp",
1765
- run: moveLineUp
1766
- }, {
1767
- key: "Shift-Alt-ArrowUp",
1768
- run: copyLineUp
1769
- }, {
1770
- key: "Alt-ArrowDown",
1771
- run: moveLineDown
1772
- }, {
1773
- key: "Shift-Alt-ArrowDown",
1774
- run: copyLineDown
1775
- }, {
1776
- key: "Escape",
1777
- run: simplifySelection
1778
- }, {
1779
- key: "Mod-Enter",
1780
- run: insertBlankLine
1781
- }, {
1782
- key: "Alt-l",
1783
- mac: "Ctrl-l",
1784
- run: selectLine
1785
- }, {
1786
- key: "Mod-i",
1787
- run: selectParentSyntax,
1788
- preventDefault: true
1789
- }, {
1790
- key: "Mod-[",
1791
- run: indentLess
1792
- }, {
1793
- key: "Mod-]",
1794
- run: indentMore
1795
- }, {
1796
- key: "Mod-Alt-\\",
1797
- run: indentSelection
1798
- }, {
1799
- key: "Shift-Mod-k",
1800
- run: deleteLine
1801
- }, {
1802
- key: "Shift-Mod-\\",
1803
- run: cursorMatchingBracket
1804
- }, {
1805
- key: "Mod-/",
1806
- run: toggleComment
1807
- }, {
1808
- key: "Alt-A",
1809
- run: toggleBlockComment
1810
- }].concat(standardKeymap);
1811
- /**
1812
- A binding that binds Tab to [`indentMore`](https://codemirror.net/6/docs/ref/#commands.indentMore) and
1813
- Shift-Tab to [`indentLess`](https://codemirror.net/6/docs/ref/#commands.indentLess).
1814
- Please see the [Tab example](../../examples/tab/) before using
1815
- this.
1816
- */
1817
- const indentWithTab = {
1818
- key: "Tab",
1819
- run: indentMore,
1820
- shift: indentLess
1821
- };
1822
-
1823
- const basicNormalize = typeof String.prototype.normalize == "function" ? x => x.normalize("NFKD") : x => x;
1824
- /**
1825
- A search cursor provides an iterator over text matches in a
1826
- document.
1827
- */
1828
- class SearchCursor {
1829
- /**
1830
- Create a text cursor. The query is the search string, `from` to
1831
- `to` provides the region to search.
1832
-
1833
- When `normalize` is given, it will be called, on both the query
1834
- string and the content it is matched against, before comparing.
1835
- You can, for example, create a case-insensitive search by
1836
- passing `s => s.toLowerCase()`.
1837
-
1838
- Text is always normalized with
1839
- [`.normalize("NFKD")`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize)
1840
- (when supported).
1841
- */
1842
- constructor(text, query) {
1843
- let from = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
1844
- let to = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : text.length;
1845
- let normalize = arguments.length > 4 ? arguments[4] : undefined;
1846
- let test = arguments.length > 5 ? arguments[5] : undefined;
1847
- this.test = test;
1848
- /**
1849
- The current match (only holds a meaningful value after
1850
- [`next`](https://codemirror.net/6/docs/ref/#search.SearchCursor.next) has been called and when
1851
- `done` is false).
1852
- */
1853
- this.value = {
1854
- from: 0,
1855
- to: 0
1856
- };
1857
- /**
1858
- Whether the end of the iterated region has been reached.
1859
- */
1860
- this.done = false;
1861
- this.matches = [];
1862
- this.buffer = "";
1863
- this.bufferPos = 0;
1864
- this.iter = text.iterRange(from, to);
1865
- this.bufferStart = from;
1866
- this.normalize = normalize ? x => normalize(basicNormalize(x)) : basicNormalize;
1867
- this.query = this.normalize(query);
1868
- }
1869
- peek() {
1870
- if (this.bufferPos == this.buffer.length) {
1871
- this.bufferStart += this.buffer.length;
1872
- this.iter.next();
1873
- if (this.iter.done) return -1;
1874
- this.bufferPos = 0;
1875
- this.buffer = this.iter.value;
1876
- }
1877
- return codePointAt(this.buffer, this.bufferPos);
1878
- }
1879
- /**
1880
- Look for the next match. Updates the iterator's
1881
- [`value`](https://codemirror.net/6/docs/ref/#search.SearchCursor.value) and
1882
- [`done`](https://codemirror.net/6/docs/ref/#search.SearchCursor.done) properties. Should be called
1883
- at least once before using the cursor.
1884
- */
1885
- next() {
1886
- while (this.matches.length) this.matches.pop();
1887
- return this.nextOverlapping();
1888
- }
1889
- /**
1890
- The `next` method will ignore matches that partially overlap a
1891
- previous match. This method behaves like `next`, but includes
1892
- such matches.
1893
- */
1894
- nextOverlapping() {
1895
- for (;;) {
1896
- let next = this.peek();
1897
- if (next < 0) {
1898
- this.done = true;
1899
- return this;
1900
- }
1901
- let str = fromCodePoint(next),
1902
- start = this.bufferStart + this.bufferPos;
1903
- this.bufferPos += codePointSize(next);
1904
- let norm = this.normalize(str);
1905
- for (let i = 0, pos = start;; i++) {
1906
- let code = norm.charCodeAt(i);
1907
- let match = this.match(code, pos);
1908
- if (match) {
1909
- this.value = match;
1910
- return this;
1911
- }
1912
- if (i == norm.length - 1) break;
1913
- if (pos == start && i < str.length && str.charCodeAt(i) == code) pos++;
1914
- }
1915
- }
1916
- }
1917
- match(code, pos) {
1918
- let match = null;
1919
- for (let i = 0; i < this.matches.length; i += 2) {
1920
- let index = this.matches[i],
1921
- keep = false;
1922
- if (this.query.charCodeAt(index) == code) {
1923
- if (index == this.query.length - 1) {
1924
- match = {
1925
- from: this.matches[i + 1],
1926
- to: pos + 1
1927
- };
1928
- } else {
1929
- this.matches[i]++;
1930
- keep = true;
1931
- }
1932
- }
1933
- if (!keep) {
1934
- this.matches.splice(i, 2);
1935
- i -= 2;
1936
- }
1937
- }
1938
- if (this.query.charCodeAt(0) == code) {
1939
- if (this.query.length == 1) match = {
1940
- from: pos,
1941
- to: pos + 1
1942
- };else this.matches.push(1, pos);
1943
- }
1944
- if (match && this.test && !this.test(match.from, match.to, this.buffer, this.bufferPos)) match = null;
1945
- return match;
1946
- }
1947
- }
1948
- if (typeof Symbol != "undefined") SearchCursor.prototype[Symbol.iterator] = function () {
1949
- return this;
1950
- };
1951
- const empty = {
1952
- from: -1,
1953
- to: -1,
1954
- match: /*@__PURE__*/ /.*/.exec("")
1955
- };
1956
- const baseFlags = "gm" + (/x/.unicode == null ? "" : "u");
1957
- /**
1958
- This class is similar to [`SearchCursor`](https://codemirror.net/6/docs/ref/#search.SearchCursor)
1959
- but searches for a regular expression pattern instead of a plain
1960
- string.
1961
- */
1962
- class RegExpCursor {
1963
- /**
1964
- Create a cursor that will search the given range in the given
1965
- document. `query` should be the raw pattern (as you'd pass it to
1966
- `new RegExp`).
1967
- */
1968
- constructor(text, query, options) {
1969
- let from = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
1970
- let to = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : text.length;
1971
- this.text = text;
1972
- this.to = to;
1973
- this.curLine = "";
1974
- /**
1975
- Set to `true` when the cursor has reached the end of the search
1976
- range.
1977
- */
1978
- this.done = false;
1979
- /**
1980
- Will contain an object with the extent of the match and the
1981
- match object when [`next`](https://codemirror.net/6/docs/ref/#search.RegExpCursor.next)
1982
- sucessfully finds a match.
1983
- */
1984
- this.value = empty;
1985
- if (/\\[sWDnr]|\n|\r|\[\^/.test(query)) return new MultilineRegExpCursor(text, query, options, from, to);
1986
- this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
1987
- this.test = options === null || options === void 0 ? void 0 : options.test;
1988
- this.iter = text.iter();
1989
- let startLine = text.lineAt(from);
1990
- this.curLineStart = startLine.from;
1991
- this.matchPos = toCharEnd(text, from);
1992
- this.getLine(this.curLineStart);
1993
- }
1994
- getLine(skip) {
1995
- this.iter.next(skip);
1996
- if (this.iter.lineBreak) {
1997
- this.curLine = "";
1998
- } else {
1999
- this.curLine = this.iter.value;
2000
- if (this.curLineStart + this.curLine.length > this.to) this.curLine = this.curLine.slice(0, this.to - this.curLineStart);
2001
- this.iter.next();
2002
- }
2003
- }
2004
- nextLine() {
2005
- this.curLineStart = this.curLineStart + this.curLine.length + 1;
2006
- if (this.curLineStart > this.to) this.curLine = "";else this.getLine(0);
2007
- }
2008
- /**
2009
- Move to the next match, if there is one.
2010
- */
2011
- next() {
2012
- for (let off = this.matchPos - this.curLineStart;;) {
2013
- this.re.lastIndex = off;
2014
- let match = this.matchPos <= this.to && this.re.exec(this.curLine);
2015
- if (match) {
2016
- let from = this.curLineStart + match.index,
2017
- to = from + match[0].length;
2018
- this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
2019
- if (from == this.curLineStart + this.curLine.length) this.nextLine();
2020
- if ((from < to || from > this.value.to) && (!this.test || this.test(from, to, match))) {
2021
- this.value = {
2022
- from,
2023
- to,
2024
- match
2025
- };
2026
- return this;
2027
- }
2028
- off = this.matchPos - this.curLineStart;
2029
- } else if (this.curLineStart + this.curLine.length < this.to) {
2030
- this.nextLine();
2031
- off = 0;
2032
- } else {
2033
- this.done = true;
2034
- return this;
2035
- }
2036
- }
2037
- }
2038
- }
2039
- const flattened = /*@__PURE__*/new WeakMap();
2040
- // Reusable (partially) flattened document strings
2041
- class FlattenedDoc {
2042
- constructor(from, text) {
2043
- this.from = from;
2044
- this.text = text;
2045
- }
2046
- get to() {
2047
- return this.from + this.text.length;
2048
- }
2049
- static get(doc, from, to) {
2050
- let cached = flattened.get(doc);
2051
- if (!cached || cached.from >= to || cached.to <= from) {
2052
- let flat = new FlattenedDoc(from, doc.sliceString(from, to));
2053
- flattened.set(doc, flat);
2054
- return flat;
2055
- }
2056
- if (cached.from == from && cached.to == to) return cached;
2057
- let {
2058
- text,
2059
- from: cachedFrom
2060
- } = cached;
2061
- if (cachedFrom > from) {
2062
- text = doc.sliceString(from, cachedFrom) + text;
2063
- cachedFrom = from;
2064
- }
2065
- if (cached.to < to) text += doc.sliceString(cached.to, to);
2066
- flattened.set(doc, new FlattenedDoc(cachedFrom, text));
2067
- return new FlattenedDoc(from, text.slice(from - cachedFrom, to - cachedFrom));
2068
- }
2069
- }
2070
- class MultilineRegExpCursor {
2071
- constructor(text, query, options, from, to) {
2072
- this.text = text;
2073
- this.to = to;
2074
- this.done = false;
2075
- this.value = empty;
2076
- this.matchPos = toCharEnd(text, from);
2077
- this.re = new RegExp(query, baseFlags + ((options === null || options === void 0 ? void 0 : options.ignoreCase) ? "i" : ""));
2078
- this.test = options === null || options === void 0 ? void 0 : options.test;
2079
- this.flat = FlattenedDoc.get(text, from, this.chunkEnd(from + 5000 /* Base */));
2080
- }
2081
-
2082
- chunkEnd(pos) {
2083
- return pos >= this.to ? this.to : this.text.lineAt(pos).to;
2084
- }
2085
- next() {
2086
- for (;;) {
2087
- let off = this.re.lastIndex = this.matchPos - this.flat.from;
2088
- let match = this.re.exec(this.flat.text);
2089
- // Skip empty matches directly after the last match
2090
- if (match && !match[0] && match.index == off) {
2091
- this.re.lastIndex = off + 1;
2092
- match = this.re.exec(this.flat.text);
2093
- }
2094
- if (match) {
2095
- let from = this.flat.from + match.index,
2096
- to = from + match[0].length;
2097
- // If a match goes almost to the end of a noncomplete chunk, try
2098
- // again, since it'll likely be able to match more
2099
- if ((this.flat.to >= this.to || match.index + match[0].length <= this.flat.text.length - 10) && (!this.test || this.test(from, to, match))) {
2100
- this.value = {
2101
- from,
2102
- to,
2103
- match
2104
- };
2105
- this.matchPos = toCharEnd(this.text, to + (from == to ? 1 : 0));
2106
- return this;
2107
- }
2108
- }
2109
- if (this.flat.to == this.to) {
2110
- this.done = true;
2111
- return this;
2112
- }
2113
- // Grow the flattened doc
2114
- this.flat = FlattenedDoc.get(this.text, this.flat.from, this.chunkEnd(this.flat.from + this.flat.text.length * 2));
2115
- }
2116
- }
2117
- }
2118
- if (typeof Symbol != "undefined") {
2119
- RegExpCursor.prototype[Symbol.iterator] = MultilineRegExpCursor.prototype[Symbol.iterator] = function () {
2120
- return this;
2121
- };
2122
- }
2123
- function validRegExp(source) {
2124
- try {
2125
- new RegExp(source, baseFlags);
2126
- return true;
2127
- } catch (_a) {
2128
- return false;
2129
- }
2130
- }
2131
- function toCharEnd(text, pos) {
2132
- if (pos >= text.length) return pos;
2133
- let line = text.lineAt(pos),
2134
- next;
2135
- while (pos < line.to && (next = line.text.charCodeAt(pos - line.from)) >= 0xDC00 && next < 0xE000) pos++;
2136
- return pos;
2137
- }
2138
- function createLineDialog(view) {
2139
- let input = crelt("input", {
2140
- class: "cm-textfield",
2141
- name: "line"
2142
- });
2143
- let dom = crelt("form", {
2144
- class: "cm-gotoLine",
2145
- onkeydown: event => {
2146
- if (event.keyCode == 27) {
2147
- // Escape
2148
- event.preventDefault();
2149
- view.dispatch({
2150
- effects: dialogEffect.of(false)
2151
- });
2152
- view.focus();
2153
- } else if (event.keyCode == 13) {
2154
- // Enter
2155
- event.preventDefault();
2156
- go();
2157
- }
2158
- },
2159
- onsubmit: event => {
2160
- event.preventDefault();
2161
- go();
2162
- }
2163
- }, crelt("label", view.state.phrase("Go to line"), ": ", input), " ", crelt("button", {
2164
- class: "cm-button",
2165
- type: "submit"
2166
- }, view.state.phrase("go")));
2167
- function go() {
2168
- let match = /^([+-])?(\d+)?(:\d+)?(%)?$/.exec(input.value);
2169
- if (!match) return;
2170
- let {
2171
- state
2172
- } = view,
2173
- startLine = state.doc.lineAt(state.selection.main.head);
2174
- let [, sign, ln, cl, percent] = match;
2175
- let col = cl ? +cl.slice(1) : 0;
2176
- let line = ln ? +ln : startLine.number;
2177
- if (ln && percent) {
2178
- let pc = line / 100;
2179
- if (sign) pc = pc * (sign == "-" ? -1 : 1) + startLine.number / state.doc.lines;
2180
- line = Math.round(state.doc.lines * pc);
2181
- } else if (ln && sign) {
2182
- line = line * (sign == "-" ? -1 : 1) + startLine.number;
2183
- }
2184
- let docLine = state.doc.line(Math.max(1, Math.min(state.doc.lines, line)));
2185
- view.dispatch({
2186
- effects: dialogEffect.of(false),
2187
- selection: EditorSelection.cursor(docLine.from + Math.max(0, Math.min(col, docLine.length))),
2188
- scrollIntoView: true
2189
- });
2190
- view.focus();
2191
- }
2192
- return {
2193
- dom
2194
- };
2195
- }
2196
- const dialogEffect = /*@__PURE__*/StateEffect.define();
2197
- const dialogField = /*@__PURE__*/StateField.define({
2198
- create() {
2199
- return true;
2200
- },
2201
- update(value, tr) {
2202
- for (let e of tr.effects) if (e.is(dialogEffect)) value = e.value;
2203
- return value;
2204
- },
2205
- provide: f => showPanel.from(f, val => val ? createLineDialog : null)
2206
- });
2207
- /**
2208
- Command that shows a dialog asking the user for a line number, and
2209
- when a valid position is provided, moves the cursor to that line.
2210
-
2211
- Supports line numbers, relative line offsets prefixed with `+` or
2212
- `-`, document percentages suffixed with `%`, and an optional
2213
- column position by adding `:` and a second number after the line
2214
- number.
2215
- */
2216
- const gotoLine = view => {
2217
- let panel = getPanel(view, createLineDialog);
2218
- if (!panel) {
2219
- let effects = [dialogEffect.of(true)];
2220
- if (view.state.field(dialogField, false) == null) effects.push(StateEffect.appendConfig.of([dialogField, baseTheme$1]));
2221
- view.dispatch({
2222
- effects
2223
- });
2224
- panel = getPanel(view, createLineDialog);
2225
- }
2226
- if (panel) panel.dom.querySelector("input").focus();
2227
- return true;
2228
- };
2229
- const baseTheme$1 = /*@__PURE__*/EditorView.baseTheme({
2230
- ".cm-panel.cm-gotoLine": {
2231
- padding: "2px 6px 4px",
2232
- "& label": {
2233
- fontSize: "80%"
2234
- }
2235
- }
2236
- });
2237
- const defaultHighlightOptions = {
2238
- highlightWordAroundCursor: false,
2239
- minSelectionLength: 1,
2240
- maxMatches: 100,
2241
- wholeWords: false
2242
- };
2243
- const highlightConfig = /*@__PURE__*/Facet.define({
2244
- combine(options) {
2245
- return combineConfig(options, defaultHighlightOptions, {
2246
- highlightWordAroundCursor: (a, b) => a || b,
2247
- minSelectionLength: Math.min,
2248
- maxMatches: Math.min
2249
- });
2250
- }
2251
- });
2252
- /**
2253
- This extension highlights text that matches the selection. It uses
2254
- the `"cm-selectionMatch"` class for the highlighting. When
2255
- `highlightWordAroundCursor` is enabled, the word at the cursor
2256
- itself will be highlighted with `"cm-selectionMatch-main"`.
2257
- */
2258
- function highlightSelectionMatches(options) {
2259
- let ext = [defaultTheme, matchHighlighter];
2260
- if (options) ext.push(highlightConfig.of(options));
2261
- return ext;
2262
- }
2263
- const matchDeco = /*@__PURE__*/Decoration.mark({
2264
- class: "cm-selectionMatch"
2265
- });
2266
- const mainMatchDeco = /*@__PURE__*/Decoration.mark({
2267
- class: "cm-selectionMatch cm-selectionMatch-main"
2268
- });
2269
- // Whether the characters directly outside the given positions are non-word characters
2270
- function insideWordBoundaries(check, state, from, to) {
2271
- return (from == 0 || check(state.sliceDoc(from - 1, from)) != CharCategory.Word) && (to == state.doc.length || check(state.sliceDoc(to, to + 1)) != CharCategory.Word);
2272
- }
2273
- // Whether the characters directly at the given positions are word characters
2274
- function insideWord(check, state, from, to) {
2275
- return check(state.sliceDoc(from, from + 1)) == CharCategory.Word && check(state.sliceDoc(to - 1, to)) == CharCategory.Word;
2276
- }
2277
- const matchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
2278
- constructor(view) {
2279
- this.decorations = this.getDeco(view);
2280
- }
2281
- update(update) {
2282
- if (update.selectionSet || update.docChanged || update.viewportChanged) this.decorations = this.getDeco(update.view);
2283
- }
2284
- getDeco(view) {
2285
- let conf = view.state.facet(highlightConfig);
2286
- let {
2287
- state
2288
- } = view,
2289
- sel = state.selection;
2290
- if (sel.ranges.length > 1) return Decoration.none;
2291
- let range = sel.main,
2292
- query,
2293
- check = null;
2294
- if (range.empty) {
2295
- if (!conf.highlightWordAroundCursor) return Decoration.none;
2296
- let word = state.wordAt(range.head);
2297
- if (!word) return Decoration.none;
2298
- check = state.charCategorizer(range.head);
2299
- query = state.sliceDoc(word.from, word.to);
2300
- } else {
2301
- let len = range.to - range.from;
2302
- if (len < conf.minSelectionLength || len > 200) return Decoration.none;
2303
- if (conf.wholeWords) {
2304
- query = state.sliceDoc(range.from, range.to); // TODO: allow and include leading/trailing space?
2305
- check = state.charCategorizer(range.head);
2306
- if (!(insideWordBoundaries(check, state, range.from, range.to) && insideWord(check, state, range.from, range.to))) return Decoration.none;
2307
- } else {
2308
- query = state.sliceDoc(range.from, range.to).trim();
2309
- if (!query) return Decoration.none;
2310
- }
2311
- }
2312
- let deco = [];
2313
- for (let part of view.visibleRanges) {
2314
- let cursor = new SearchCursor(state.doc, query, part.from, part.to);
2315
- while (!cursor.next().done) {
2316
- let {
2317
- from,
2318
- to
2319
- } = cursor.value;
2320
- if (!check || insideWordBoundaries(check, state, from, to)) {
2321
- if (range.empty && from <= range.from && to >= range.to) deco.push(mainMatchDeco.range(from, to));else if (from >= range.to || to <= range.from) deco.push(matchDeco.range(from, to));
2322
- if (deco.length > conf.maxMatches) return Decoration.none;
2323
- }
2324
- }
2325
- }
2326
- return Decoration.set(deco);
2327
- }
2328
- }, {
2329
- decorations: v => v.decorations
2330
- });
2331
- const defaultTheme = /*@__PURE__*/EditorView.baseTheme({
2332
- ".cm-selectionMatch": {
2333
- backgroundColor: "#99ff7780"
2334
- },
2335
- ".cm-searchMatch .cm-selectionMatch": {
2336
- backgroundColor: "transparent"
2337
- }
2338
- });
2339
- // Select the words around the cursors.
2340
- const selectWord = _ref => {
2341
- let {
2342
- state,
2343
- dispatch
2344
- } = _ref;
2345
- let {
2346
- selection
2347
- } = state;
2348
- let newSel = EditorSelection.create(selection.ranges.map(range => state.wordAt(range.head) || EditorSelection.cursor(range.head)), selection.mainIndex);
2349
- if (newSel.eq(selection)) return false;
2350
- dispatch(state.update({
2351
- selection: newSel
2352
- }));
2353
- return true;
2354
- };
2355
- // Find next occurrence of query relative to last cursor. Wrap around
2356
- // the document if there are no more matches.
2357
- function findNextOccurrence(state, query) {
2358
- let {
2359
- main,
2360
- ranges
2361
- } = state.selection;
2362
- let word = state.wordAt(main.head),
2363
- fullWord = word && word.from == main.from && word.to == main.to;
2364
- for (let cycled = false, cursor = new SearchCursor(state.doc, query, ranges[ranges.length - 1].to);;) {
2365
- cursor.next();
2366
- if (cursor.done) {
2367
- if (cycled) return null;
2368
- cursor = new SearchCursor(state.doc, query, 0, Math.max(0, ranges[ranges.length - 1].from - 1));
2369
- cycled = true;
2370
- } else {
2371
- if (cycled && ranges.some(r => r.from == cursor.value.from)) continue;
2372
- if (fullWord) {
2373
- let word = state.wordAt(cursor.value.from);
2374
- if (!word || word.from != cursor.value.from || word.to != cursor.value.to) continue;
2375
- }
2376
- return cursor.value;
2377
- }
2378
- }
2379
- }
2380
- /**
2381
- Select next occurrence of the current selection. Expand selection
2382
- to the surrounding word when the selection is empty.
2383
- */
2384
- const selectNextOccurrence = _ref2 => {
2385
- let {
2386
- state,
2387
- dispatch
2388
- } = _ref2;
2389
- let {
2390
- ranges
2391
- } = state.selection;
2392
- if (ranges.some(sel => sel.from === sel.to)) return selectWord({
2393
- state,
2394
- dispatch
2395
- });
2396
- let searchedText = state.sliceDoc(ranges[0].from, ranges[0].to);
2397
- if (state.selection.ranges.some(r => state.sliceDoc(r.from, r.to) != searchedText)) return false;
2398
- let range = findNextOccurrence(state, searchedText);
2399
- if (!range) return false;
2400
- dispatch(state.update({
2401
- selection: state.selection.addRange(EditorSelection.range(range.from, range.to), false),
2402
- effects: EditorView.scrollIntoView(range.to)
2403
- }));
2404
- return true;
2405
- };
2406
- const searchConfigFacet = /*@__PURE__*/Facet.define({
2407
- combine(configs) {
2408
- return combineConfig(configs, {
2409
- top: false,
2410
- caseSensitive: false,
2411
- literal: false,
2412
- regexp: false,
2413
- wholeWord: false,
2414
- createPanel: view => new SearchPanel(view),
2415
- scrollToMatch: range => EditorView.scrollIntoView(range)
2416
- });
2417
- }
2418
- });
2419
- /**
2420
- A search query. Part of the editor's search state.
2421
- */
2422
- class SearchQuery {
2423
- /**
2424
- Create a query object.
2425
- */
2426
- constructor(config) {
2427
- this.search = config.search;
2428
- this.caseSensitive = !!config.caseSensitive;
2429
- this.literal = !!config.literal;
2430
- this.regexp = !!config.regexp;
2431
- this.replace = config.replace || "";
2432
- this.valid = !!this.search && (!this.regexp || validRegExp(this.search));
2433
- this.unquoted = this.unquote(this.search);
2434
- this.wholeWord = !!config.wholeWord;
2435
- }
2436
- /**
2437
- @internal
2438
- */
2439
- unquote(text) {
2440
- return this.literal ? text : text.replace(/\\([nrt\\])/g, (_, ch) => ch == "n" ? "\n" : ch == "r" ? "\r" : ch == "t" ? "\t" : "\\");
2441
- }
2442
- /**
2443
- Compare this query to another query.
2444
- */
2445
- eq(other) {
2446
- return this.search == other.search && this.replace == other.replace && this.caseSensitive == other.caseSensitive && this.regexp == other.regexp && this.wholeWord == other.wholeWord;
2447
- }
2448
- /**
2449
- @internal
2450
- */
2451
- create() {
2452
- return this.regexp ? new RegExpQuery(this) : new StringQuery(this);
2453
- }
2454
- /**
2455
- Get a search cursor for this query, searching through the given
2456
- range in the given state.
2457
- */
2458
- getCursor(state) {
2459
- let from = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
2460
- let to = arguments.length > 2 ? arguments[2] : undefined;
2461
- let st = state.doc ? state : EditorState.create({
2462
- doc: state
2463
- });
2464
- if (to == null) to = st.doc.length;
2465
- return this.regexp ? regexpCursor(this, st, from, to) : stringCursor(this, st, from, to);
2466
- }
2467
- }
2468
- class QueryType {
2469
- constructor(spec) {
2470
- this.spec = spec;
2471
- }
2472
- }
2473
- function stringCursor(spec, state, from, to) {
2474
- return new SearchCursor(state.doc, spec.unquoted, from, to, spec.caseSensitive ? undefined : x => x.toLowerCase(), spec.wholeWord ? stringWordTest(state.doc, state.charCategorizer(state.selection.main.head)) : undefined);
2475
- }
2476
- function stringWordTest(doc, categorizer) {
2477
- return (from, to, buf, bufPos) => {
2478
- if (bufPos > from || bufPos + buf.length < to) {
2479
- bufPos = Math.max(0, from - 2);
2480
- buf = doc.sliceString(bufPos, Math.min(doc.length, to + 2));
2481
- }
2482
- return (categorizer(charBefore(buf, from - bufPos)) != CharCategory.Word || categorizer(charAfter(buf, from - bufPos)) != CharCategory.Word) && (categorizer(charAfter(buf, to - bufPos)) != CharCategory.Word || categorizer(charBefore(buf, to - bufPos)) != CharCategory.Word);
2483
- };
2484
- }
2485
- class StringQuery extends QueryType {
2486
- constructor(spec) {
2487
- super(spec);
2488
- }
2489
- nextMatch(state, curFrom, curTo) {
2490
- let cursor = stringCursor(this.spec, state, curTo, state.doc.length).nextOverlapping();
2491
- if (cursor.done) cursor = stringCursor(this.spec, state, 0, curFrom).nextOverlapping();
2492
- return cursor.done ? null : cursor.value;
2493
- }
2494
- // Searching in reverse is, rather than implementing an inverted search
2495
- // cursor, done by scanning chunk after chunk forward.
2496
- prevMatchInRange(state, from, to) {
2497
- for (let pos = to;;) {
2498
- let start = Math.max(from, pos - 10000 /* ChunkSize */ - this.spec.unquoted.length);
2499
- let cursor = stringCursor(this.spec, state, start, pos),
2500
- range = null;
2501
- while (!cursor.nextOverlapping().done) range = cursor.value;
2502
- if (range) return range;
2503
- if (start == from) return null;
2504
- pos -= 10000 /* ChunkSize */;
2505
- }
2506
- }
2507
-
2508
- prevMatch(state, curFrom, curTo) {
2509
- return this.prevMatchInRange(state, 0, curFrom) || this.prevMatchInRange(state, curTo, state.doc.length);
2510
- }
2511
- getReplacement(_result) {
2512
- return this.spec.unquote(this.spec.replace);
2513
- }
2514
- matchAll(state, limit) {
2515
- let cursor = stringCursor(this.spec, state, 0, state.doc.length),
2516
- ranges = [];
2517
- while (!cursor.next().done) {
2518
- if (ranges.length >= limit) return null;
2519
- ranges.push(cursor.value);
2520
- }
2521
- return ranges;
2522
- }
2523
- highlight(state, from, to, add) {
2524
- let cursor = stringCursor(this.spec, state, Math.max(0, from - this.spec.unquoted.length), Math.min(to + this.spec.unquoted.length, state.doc.length));
2525
- while (!cursor.next().done) add(cursor.value.from, cursor.value.to);
2526
- }
2527
- }
2528
- function regexpCursor(spec, state, from, to) {
2529
- return new RegExpCursor(state.doc, spec.search, {
2530
- ignoreCase: !spec.caseSensitive,
2531
- test: spec.wholeWord ? regexpWordTest(state.charCategorizer(state.selection.main.head)) : undefined
2532
- }, from, to);
2533
- }
2534
- function charBefore(str, index) {
2535
- return str.slice(findClusterBreak(str, index, false), index);
2536
- }
2537
- function charAfter(str, index) {
2538
- return str.slice(index, findClusterBreak(str, index));
2539
- }
2540
- function regexpWordTest(categorizer) {
2541
- return (_from, _to, match) => !match[0].length || (categorizer(charBefore(match.input, match.index)) != CharCategory.Word || categorizer(charAfter(match.input, match.index)) != CharCategory.Word) && (categorizer(charAfter(match.input, match.index + match[0].length)) != CharCategory.Word || categorizer(charBefore(match.input, match.index + match[0].length)) != CharCategory.Word);
2542
- }
2543
- class RegExpQuery extends QueryType {
2544
- nextMatch(state, curFrom, curTo) {
2545
- let cursor = regexpCursor(this.spec, state, curTo, state.doc.length).next();
2546
- if (cursor.done) cursor = regexpCursor(this.spec, state, 0, curFrom).next();
2547
- return cursor.done ? null : cursor.value;
2548
- }
2549
- prevMatchInRange(state, from, to) {
2550
- for (let size = 1;; size++) {
2551
- let start = Math.max(from, to - size * 10000 /* ChunkSize */);
2552
- let cursor = regexpCursor(this.spec, state, start, to),
2553
- range = null;
2554
- while (!cursor.next().done) range = cursor.value;
2555
- if (range && (start == from || range.from > start + 10)) return range;
2556
- if (start == from) return null;
2557
- }
2558
- }
2559
- prevMatch(state, curFrom, curTo) {
2560
- return this.prevMatchInRange(state, 0, curFrom) || this.prevMatchInRange(state, curTo, state.doc.length);
2561
- }
2562
- getReplacement(result) {
2563
- return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g, (m, i) => i == "$" ? "$" : i == "&" ? result.match[0] : i != "0" && +i < result.match.length ? result.match[i] : m));
2564
- }
2565
- matchAll(state, limit) {
2566
- let cursor = regexpCursor(this.spec, state, 0, state.doc.length),
2567
- ranges = [];
2568
- while (!cursor.next().done) {
2569
- if (ranges.length >= limit) return null;
2570
- ranges.push(cursor.value);
2571
- }
2572
- return ranges;
2573
- }
2574
- highlight(state, from, to, add) {
2575
- let cursor = regexpCursor(this.spec, state, Math.max(0, from - 250 /* HighlightMargin */), Math.min(to + 250 /* HighlightMargin */, state.doc.length));
2576
- while (!cursor.next().done) add(cursor.value.from, cursor.value.to);
2577
- }
2578
- }
2579
- /**
2580
- A state effect that updates the current search query. Note that
2581
- this only has an effect if the search state has been initialized
2582
- (by including [`search`](https://codemirror.net/6/docs/ref/#search.search) in your configuration or
2583
- by running [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel) at least
2584
- once).
2585
- */
2586
- const setSearchQuery = /*@__PURE__*/StateEffect.define();
2587
- const togglePanel = /*@__PURE__*/StateEffect.define();
2588
- const searchState = /*@__PURE__*/StateField.define({
2589
- create(state) {
2590
- return new SearchState(defaultQuery(state).create(), null);
2591
- },
2592
- update(value, tr) {
2593
- for (let effect of tr.effects) {
2594
- if (effect.is(setSearchQuery)) value = new SearchState(effect.value.create(), value.panel);else if (effect.is(togglePanel)) value = new SearchState(value.query, effect.value ? createSearchPanel : null);
2595
- }
2596
- return value;
2597
- },
2598
- provide: f => showPanel.from(f, val => val.panel)
2599
- });
2600
- class SearchState {
2601
- constructor(query, panel) {
2602
- this.query = query;
2603
- this.panel = panel;
2604
- }
2605
- }
2606
- const matchMark = /*@__PURE__*/Decoration.mark({
2607
- class: "cm-searchMatch"
2608
- }),
2609
- selectedMatchMark = /*@__PURE__*/Decoration.mark({
2610
- class: "cm-searchMatch cm-searchMatch-selected"
2611
- });
2612
- const searchHighlighter = /*@__PURE__*/ViewPlugin.fromClass(class {
2613
- constructor(view) {
2614
- this.view = view;
2615
- this.decorations = this.highlight(view.state.field(searchState));
2616
- }
2617
- update(update) {
2618
- let state = update.state.field(searchState);
2619
- if (state != update.startState.field(searchState) || update.docChanged || update.selectionSet || update.viewportChanged) this.decorations = this.highlight(state);
2620
- }
2621
- highlight(_ref3) {
2622
- let {
2623
- query,
2624
- panel
2625
- } = _ref3;
2626
- if (!panel || !query.spec.valid) return Decoration.none;
2627
- let {
2628
- view
2629
- } = this;
2630
- let builder = new RangeSetBuilder();
2631
- for (let i = 0, ranges = view.visibleRanges, l = ranges.length; i < l; i++) {
2632
- let {
2633
- from,
2634
- to
2635
- } = ranges[i];
2636
- while (i < l - 1 && to > ranges[i + 1].from - 2 * 250 /* HighlightMargin */) to = ranges[++i].to;
2637
- query.highlight(view.state, from, to, (from, to) => {
2638
- let selected = view.state.selection.ranges.some(r => r.from == from && r.to == to);
2639
- builder.add(from, to, selected ? selectedMatchMark : matchMark);
2640
- });
2641
- }
2642
- return builder.finish();
2643
- }
2644
- }, {
2645
- decorations: v => v.decorations
2646
- });
2647
- function searchCommand(f) {
2648
- return view => {
2649
- let state = view.state.field(searchState, false);
2650
- return state && state.query.spec.valid ? f(view, state) : openSearchPanel(view);
2651
- };
2652
- }
2653
- /**
2654
- Open the search panel if it isn't already open, and move the
2655
- selection to the first match after the current main selection.
2656
- Will wrap around to the start of the document when it reaches the
2657
- end.
2658
- */
2659
- const findNext = /*@__PURE__*/searchCommand((view, _ref4) => {
2660
- let {
2661
- query
2662
- } = _ref4;
2663
- let {
2664
- to
2665
- } = view.state.selection.main;
2666
- let next = query.nextMatch(view.state, to, to);
2667
- if (!next) return false;
2668
- let selection = EditorSelection.single(next.from, next.to);
2669
- let config = view.state.facet(searchConfigFacet);
2670
- view.dispatch({
2671
- selection,
2672
- effects: [announceMatch(view, next), config.scrollToMatch(selection.main, view)],
2673
- userEvent: "select.search"
2674
- });
2675
- selectSearchInput(view);
2676
- return true;
2677
- });
2678
- /**
2679
- Move the selection to the previous instance of the search query,
2680
- before the current main selection. Will wrap past the start
2681
- of the document to start searching at the end again.
2682
- */
2683
- const findPrevious = /*@__PURE__*/searchCommand((view, _ref5) => {
2684
- let {
2685
- query
2686
- } = _ref5;
2687
- let {
2688
- state
2689
- } = view,
2690
- {
2691
- from
2692
- } = state.selection.main;
2693
- let prev = query.prevMatch(state, from, from);
2694
- if (!prev) return false;
2695
- let selection = EditorSelection.single(prev.from, prev.to);
2696
- let config = view.state.facet(searchConfigFacet);
2697
- view.dispatch({
2698
- selection,
2699
- effects: [announceMatch(view, prev), config.scrollToMatch(selection.main, view)],
2700
- userEvent: "select.search"
2701
- });
2702
- selectSearchInput(view);
2703
- return true;
2704
- });
2705
- /**
2706
- Select all instances of the search query.
2707
- */
2708
- const selectMatches = /*@__PURE__*/searchCommand((view, _ref6) => {
2709
- let {
2710
- query
2711
- } = _ref6;
2712
- let ranges = query.matchAll(view.state, 1000);
2713
- if (!ranges || !ranges.length) return false;
2714
- view.dispatch({
2715
- selection: EditorSelection.create(ranges.map(r => EditorSelection.range(r.from, r.to))),
2716
- userEvent: "select.search.matches"
2717
- });
2718
- return true;
2719
- });
2720
- /**
2721
- Select all instances of the currently selected text.
2722
- */
2723
- const selectSelectionMatches = _ref7 => {
2724
- let {
2725
- state,
2726
- dispatch
2727
- } = _ref7;
2728
- let sel = state.selection;
2729
- if (sel.ranges.length > 1 || sel.main.empty) return false;
2730
- let {
2731
- from,
2732
- to
2733
- } = sel.main;
2734
- let ranges = [],
2735
- main = 0;
2736
- for (let cur = new SearchCursor(state.doc, state.sliceDoc(from, to)); !cur.next().done;) {
2737
- if (ranges.length > 1000) return false;
2738
- if (cur.value.from == from) main = ranges.length;
2739
- ranges.push(EditorSelection.range(cur.value.from, cur.value.to));
2740
- }
2741
- dispatch(state.update({
2742
- selection: EditorSelection.create(ranges, main),
2743
- userEvent: "select.search.matches"
2744
- }));
2745
- return true;
2746
- };
2747
- /**
2748
- Replace the current match of the search query.
2749
- */
2750
- const replaceNext = /*@__PURE__*/searchCommand((view, _ref8) => {
2751
- let {
2752
- query
2753
- } = _ref8;
2754
- let {
2755
- state
2756
- } = view,
2757
- {
2758
- from,
2759
- to
2760
- } = state.selection.main;
2761
- if (state.readOnly) return false;
2762
- let next = query.nextMatch(state, from, from);
2763
- if (!next) return false;
2764
- let changes = [],
2765
- selection,
2766
- replacement;
2767
- let effects = [];
2768
- if (next.from == from && next.to == to) {
2769
- replacement = state.toText(query.getReplacement(next));
2770
- changes.push({
2771
- from: next.from,
2772
- to: next.to,
2773
- insert: replacement
2774
- });
2775
- next = query.nextMatch(state, next.from, next.to);
2776
- effects.push(EditorView.announce.of(state.phrase("replaced match on line $", state.doc.lineAt(from).number) + "."));
2777
- }
2778
- if (next) {
2779
- let off = changes.length == 0 || changes[0].from >= next.to ? 0 : next.to - next.from - replacement.length;
2780
- selection = EditorSelection.single(next.from - off, next.to - off);
2781
- effects.push(announceMatch(view, next));
2782
- effects.push(state.facet(searchConfigFacet).scrollToMatch(selection.main, view));
2783
- }
2784
- view.dispatch({
2785
- changes,
2786
- selection,
2787
- effects,
2788
- userEvent: "input.replace"
2789
- });
2790
- return true;
2791
- });
2792
- /**
2793
- Replace all instances of the search query with the given
2794
- replacement.
2795
- */
2796
- const replaceAll = /*@__PURE__*/searchCommand((view, _ref9) => {
2797
- let {
2798
- query
2799
- } = _ref9;
2800
- if (view.state.readOnly) return false;
2801
- let changes = query.matchAll(view.state, 1e9).map(match => {
2802
- let {
2803
- from,
2804
- to
2805
- } = match;
2806
- return {
2807
- from,
2808
- to,
2809
- insert: query.getReplacement(match)
2810
- };
2811
- });
2812
- if (!changes.length) return false;
2813
- let announceText = view.state.phrase("replaced $ matches", changes.length) + ".";
2814
- view.dispatch({
2815
- changes,
2816
- effects: EditorView.announce.of(announceText),
2817
- userEvent: "input.replace.all"
2818
- });
2819
- return true;
2820
- });
2821
- function createSearchPanel(view) {
2822
- return view.state.facet(searchConfigFacet).createPanel(view);
2823
- }
2824
- function defaultQuery(state, fallback) {
2825
- var _a, _b, _c, _d, _e;
2826
- let sel = state.selection.main;
2827
- let selText = sel.empty || sel.to > sel.from + 100 ? "" : state.sliceDoc(sel.from, sel.to);
2828
- if (fallback && !selText) return fallback;
2829
- let config = state.facet(searchConfigFacet);
2830
- return new SearchQuery({
2831
- search: ((_a = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _a !== void 0 ? _a : config.literal) ? selText : selText.replace(/\n/g, "\\n"),
2832
- caseSensitive: (_b = fallback === null || fallback === void 0 ? void 0 : fallback.caseSensitive) !== null && _b !== void 0 ? _b : config.caseSensitive,
2833
- literal: (_c = fallback === null || fallback === void 0 ? void 0 : fallback.literal) !== null && _c !== void 0 ? _c : config.literal,
2834
- regexp: (_d = fallback === null || fallback === void 0 ? void 0 : fallback.regexp) !== null && _d !== void 0 ? _d : config.regexp,
2835
- wholeWord: (_e = fallback === null || fallback === void 0 ? void 0 : fallback.wholeWord) !== null && _e !== void 0 ? _e : config.wholeWord
2836
- });
2837
- }
2838
- function getSearchInput(view) {
2839
- let panel = getPanel(view, createSearchPanel);
2840
- return panel && panel.dom.querySelector("[main-field]");
2841
- }
2842
- function selectSearchInput(view) {
2843
- let input = getSearchInput(view);
2844
- if (input && input == view.root.activeElement) input.select();
2845
- }
2846
- /**
2847
- Make sure the search panel is open and focused.
2848
- */
2849
- const openSearchPanel = view => {
2850
- let state = view.state.field(searchState, false);
2851
- if (state && state.panel) {
2852
- let searchInput = getSearchInput(view);
2853
- if (searchInput && searchInput != view.root.activeElement) {
2854
- let query = defaultQuery(view.state, state.query.spec);
2855
- if (query.valid) view.dispatch({
2856
- effects: setSearchQuery.of(query)
2857
- });
2858
- searchInput.focus();
2859
- searchInput.select();
2860
- }
2861
- } else {
2862
- view.dispatch({
2863
- effects: [togglePanel.of(true), state ? setSearchQuery.of(defaultQuery(view.state, state.query.spec)) : StateEffect.appendConfig.of(searchExtensions)]
2864
- });
2865
- }
2866
- return true;
2867
- };
2868
- /**
2869
- Close the search panel.
2870
- */
2871
- const closeSearchPanel = view => {
2872
- let state = view.state.field(searchState, false);
2873
- if (!state || !state.panel) return false;
2874
- let panel = getPanel(view, createSearchPanel);
2875
- if (panel && panel.dom.contains(view.root.activeElement)) view.focus();
2876
- view.dispatch({
2877
- effects: togglePanel.of(false)
2878
- });
2879
- return true;
2880
- };
2881
- /**
2882
- Default search-related key bindings.
2883
-
2884
- - Mod-f: [`openSearchPanel`](https://codemirror.net/6/docs/ref/#search.openSearchPanel)
2885
- - F3, Mod-g: [`findNext`](https://codemirror.net/6/docs/ref/#search.findNext)
2886
- - Shift-F3, Shift-Mod-g: [`findPrevious`](https://codemirror.net/6/docs/ref/#search.findPrevious)
2887
- - Alt-g: [`gotoLine`](https://codemirror.net/6/docs/ref/#search.gotoLine)
2888
- - Mod-d: [`selectNextOccurrence`](https://codemirror.net/6/docs/ref/#search.selectNextOccurrence)
2889
- */
2890
- const searchKeymap = [{
2891
- key: "Mod-f",
2892
- run: openSearchPanel,
2893
- scope: "editor search-panel"
2894
- }, {
2895
- key: "F3",
2896
- run: findNext,
2897
- shift: findPrevious,
2898
- scope: "editor search-panel",
2899
- preventDefault: true
2900
- }, {
2901
- key: "Mod-g",
2902
- run: findNext,
2903
- shift: findPrevious,
2904
- scope: "editor search-panel",
2905
- preventDefault: true
2906
- }, {
2907
- key: "Escape",
2908
- run: closeSearchPanel,
2909
- scope: "editor search-panel"
2910
- }, {
2911
- key: "Mod-Shift-l",
2912
- run: selectSelectionMatches
2913
- }, {
2914
- key: "Alt-g",
2915
- run: gotoLine
2916
- }, {
2917
- key: "Mod-d",
2918
- run: selectNextOccurrence,
2919
- preventDefault: true
2920
- }];
2921
- class SearchPanel {
2922
- constructor(view) {
2923
- this.view = view;
2924
- let query = this.query = view.state.field(searchState).query.spec;
2925
- this.commit = this.commit.bind(this);
2926
- this.searchField = crelt("input", {
2927
- value: query.search,
2928
- placeholder: phrase(view, "Find"),
2929
- "aria-label": phrase(view, "Find"),
2930
- class: "cm-textfield",
2931
- name: "search",
2932
- form: "",
2933
- "main-field": "true",
2934
- onchange: this.commit,
2935
- onkeyup: this.commit
2936
- });
2937
- this.replaceField = crelt("input", {
2938
- value: query.replace,
2939
- placeholder: phrase(view, "Replace"),
2940
- "aria-label": phrase(view, "Replace"),
2941
- class: "cm-textfield",
2942
- name: "replace",
2943
- form: "",
2944
- onchange: this.commit,
2945
- onkeyup: this.commit
2946
- });
2947
- this.caseField = crelt("input", {
2948
- type: "checkbox",
2949
- name: "case",
2950
- form: "",
2951
- checked: query.caseSensitive,
2952
- onchange: this.commit
2953
- });
2954
- this.reField = crelt("input", {
2955
- type: "checkbox",
2956
- name: "re",
2957
- form: "",
2958
- checked: query.regexp,
2959
- onchange: this.commit
2960
- });
2961
- this.wordField = crelt("input", {
2962
- type: "checkbox",
2963
- name: "word",
2964
- form: "",
2965
- checked: query.wholeWord,
2966
- onchange: this.commit
2967
- });
2968
- function button(name, onclick, content) {
2969
- return crelt("button", {
2970
- class: "cm-button",
2971
- name,
2972
- onclick,
2973
- type: "button"
2974
- }, content);
2975
- }
2976
- this.dom = crelt("div", {
2977
- onkeydown: e => this.keydown(e),
2978
- class: "cm-search"
2979
- }, [this.searchField, button("next", () => findNext(view), [phrase(view, "next")]), button("prev", () => findPrevious(view), [phrase(view, "previous")]), button("select", () => selectMatches(view), [phrase(view, "all")]), crelt("label", null, [this.caseField, phrase(view, "match case")]), crelt("label", null, [this.reField, phrase(view, "regexp")]), crelt("label", null, [this.wordField, phrase(view, "by word")]), ...(view.state.readOnly ? [] : [crelt("br"), this.replaceField, button("replace", () => replaceNext(view), [phrase(view, "replace")]), button("replaceAll", () => replaceAll(view), [phrase(view, "replace all")])]), crelt("button", {
2980
- name: "close",
2981
- onclick: () => closeSearchPanel(view),
2982
- "aria-label": phrase(view, "close"),
2983
- type: "button"
2984
- }, ["×"])]);
2985
- }
2986
- commit() {
2987
- let query = new SearchQuery({
2988
- search: this.searchField.value,
2989
- caseSensitive: this.caseField.checked,
2990
- regexp: this.reField.checked,
2991
- wholeWord: this.wordField.checked,
2992
- replace: this.replaceField.value
2993
- });
2994
- if (!query.eq(this.query)) {
2995
- this.query = query;
2996
- this.view.dispatch({
2997
- effects: setSearchQuery.of(query)
2998
- });
2999
- }
3000
- }
3001
- keydown(e) {
3002
- if (runScopeHandlers(this.view, e, "search-panel")) {
3003
- e.preventDefault();
3004
- } else if (e.keyCode == 13 && e.target == this.searchField) {
3005
- e.preventDefault();
3006
- (e.shiftKey ? findPrevious : findNext)(this.view);
3007
- } else if (e.keyCode == 13 && e.target == this.replaceField) {
3008
- e.preventDefault();
3009
- replaceNext(this.view);
3010
- }
3011
- }
3012
- update(update) {
3013
- for (let tr of update.transactions) for (let effect of tr.effects) {
3014
- if (effect.is(setSearchQuery) && !effect.value.eq(this.query)) this.setQuery(effect.value);
3015
- }
3016
- }
3017
- setQuery(query) {
3018
- this.query = query;
3019
- this.searchField.value = query.search;
3020
- this.replaceField.value = query.replace;
3021
- this.caseField.checked = query.caseSensitive;
3022
- this.reField.checked = query.regexp;
3023
- this.wordField.checked = query.wholeWord;
3024
- }
3025
- mount() {
3026
- this.searchField.select();
3027
- }
3028
- get pos() {
3029
- return 80;
3030
- }
3031
- get top() {
3032
- return this.view.state.facet(searchConfigFacet).top;
3033
- }
3034
- }
3035
- function phrase(view, phrase) {
3036
- return view.state.phrase(phrase);
3037
- }
3038
- const AnnounceMargin = 30;
3039
- const Break = /[\s\.,:;?!]/;
3040
- function announceMatch(view, _ref10) {
3041
- let {
3042
- from,
3043
- to
3044
- } = _ref10;
3045
- let line = view.state.doc.lineAt(from),
3046
- lineEnd = view.state.doc.lineAt(to).to;
3047
- let start = Math.max(line.from, from - AnnounceMargin),
3048
- end = Math.min(lineEnd, to + AnnounceMargin);
3049
- let text = view.state.sliceDoc(start, end);
3050
- if (start != line.from) {
3051
- for (let i = 0; i < AnnounceMargin; i++) if (!Break.test(text[i + 1]) && Break.test(text[i])) {
3052
- text = text.slice(i);
3053
- break;
3054
- }
3055
- }
3056
- if (end != lineEnd) {
3057
- for (let i = text.length - 1; i > text.length - AnnounceMargin; i--) if (!Break.test(text[i - 1]) && Break.test(text[i])) {
3058
- text = text.slice(0, i);
3059
- break;
3060
- }
3061
- }
3062
- return EditorView.announce.of(`${view.state.phrase("current match")}. ${text} ${view.state.phrase("on line")} ${line.number}.`);
3063
- }
3064
- const baseTheme = /*@__PURE__*/EditorView.baseTheme({
3065
- ".cm-panel.cm-search": {
3066
- padding: "2px 6px 4px",
3067
- position: "relative",
3068
- "& [name=close]": {
3069
- position: "absolute",
3070
- top: "0",
3071
- right: "4px",
3072
- backgroundColor: "inherit",
3073
- border: "none",
3074
- font: "inherit",
3075
- padding: 0,
3076
- margin: 0
3077
- },
3078
- "& input, & button, & label": {
3079
- margin: ".2em .6em .2em 0"
3080
- },
3081
- "& input[type=checkbox]": {
3082
- marginRight: ".2em"
3083
- },
3084
- "& label": {
3085
- fontSize: "80%",
3086
- whiteSpace: "pre"
3087
- }
3088
- },
3089
- "&light .cm-searchMatch": {
3090
- backgroundColor: "#ffff0054"
3091
- },
3092
- "&dark .cm-searchMatch": {
3093
- backgroundColor: "#00ffff8a"
3094
- },
3095
- "&light .cm-searchMatch-selected": {
3096
- backgroundColor: "#ff6a0054"
3097
- },
3098
- "&dark .cm-searchMatch-selected": {
3099
- backgroundColor: "#ff00ff8a"
3100
- }
3101
- });
3102
- const searchExtensions = [searchState, /*@__PURE__*/Prec.lowest(searchHighlighter), baseTheme];
3103
-
3104
- // (The superfluous function calls around the list of extensions work
3105
- // around current limitations in tree-shaking software.)
3106
- /**
3107
- This is an extension value that just pulls together a number of
3108
- extensions that you might want in a basic editor. It is meant as a
3109
- convenient helper to quickly set up CodeMirror without installing
3110
- and importing a lot of separate packages.
3111
-
3112
- Specifically, it includes...
3113
-
3114
- - [the default command bindings](https://codemirror.net/6/docs/ref/#commands.defaultKeymap)
3115
- - [line numbers](https://codemirror.net/6/docs/ref/#view.lineNumbers)
3116
- - [special character highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars)
3117
- - [the undo history](https://codemirror.net/6/docs/ref/#commands.history)
3118
- - [a fold gutter](https://codemirror.net/6/docs/ref/#language.foldGutter)
3119
- - [custom selection drawing](https://codemirror.net/6/docs/ref/#view.drawSelection)
3120
- - [drop cursor](https://codemirror.net/6/docs/ref/#view.dropCursor)
3121
- - [multiple selections](https://codemirror.net/6/docs/ref/#state.EditorState^allowMultipleSelections)
3122
- - [reindentation on input](https://codemirror.net/6/docs/ref/#language.indentOnInput)
3123
- - [the default highlight style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle) (as fallback)
3124
- - [bracket matching](https://codemirror.net/6/docs/ref/#language.bracketMatching)
3125
- - [bracket closing](https://codemirror.net/6/docs/ref/#autocomplete.closeBrackets)
3126
- - [autocompletion](https://codemirror.net/6/docs/ref/#autocomplete.autocompletion)
3127
- - [rectangular selection](https://codemirror.net/6/docs/ref/#view.rectangularSelection) and [crosshair cursor](https://codemirror.net/6/docs/ref/#view.crosshairCursor)
3128
- - [active line highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLine)
3129
- - [active line gutter highlighting](https://codemirror.net/6/docs/ref/#view.highlightActiveLineGutter)
3130
- - [selection match highlighting](https://codemirror.net/6/docs/ref/#search.highlightSelectionMatches)
3131
- - [search](https://codemirror.net/6/docs/ref/#search.searchKeymap)
3132
- - [linting](https://codemirror.net/6/docs/ref/#lint.lintKeymap)
3133
-
3134
- (You'll probably want to add some language package to your setup
3135
- too.)
3136
-
3137
- This extension does not allow customization. The idea is that,
3138
- once you decide you want to configure your editor more precisely,
3139
- you take this package's source (which is just a bunch of imports
3140
- and an array literal), copy it into your own code, and adjust it
3141
- as desired.
3142
- */
3143
- const basicSetup = /*@__PURE__*/(() => [lineNumbers(), highlightActiveLineGutter(), highlightSpecialChars(), history(), foldGutter(), drawSelection(), dropCursor(), EditorState.allowMultipleSelections.of(true), indentOnInput(), syntaxHighlighting(defaultHighlightStyle, {
3144
- fallback: true
3145
- }), bracketMatching(), closeBrackets(), autocompletion(), rectangularSelection(), crosshairCursor(), highlightActiveLine(), highlightSelectionMatches(), keymap.of([...closeBracketsKeymap, ...defaultKeymap, ...searchKeymap, ...historyKeymap, ...foldKeymap, ...completionKeymap, ...lintKeymap])])();
3146
- /**
3147
- A minimal set of extensions to create a functional editor. Only
3148
- includes [the default keymap](https://codemirror.net/6/docs/ref/#commands.defaultKeymap), [undo
3149
- history](https://codemirror.net/6/docs/ref/#commands.history), [special character
3150
- highlighting](https://codemirror.net/6/docs/ref/#view.highlightSpecialChars), [custom selection
3151
- drawing](https://codemirror.net/6/docs/ref/#view.drawSelection), and [default highlight
3152
- style](https://codemirror.net/6/docs/ref/#language.defaultHighlightStyle).
3153
- */
3154
- const minimalSetup = /*@__PURE__*/(() => [highlightSpecialChars(), history(), drawSelection(), syntaxHighlighting(defaultHighlightStyle, {
3155
- fallback: true
3156
- }), keymap.of([...defaultKeymap, ...historyKeymap])])();
3157
-
3158
- export { basicSetup as b, indentWithTab as i, minimalSetup as m };