@onereach/ui-components 8.3.1 → 8.4.0-beta.3653.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 (1666) 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-56c993c9.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-3f78b50a.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-a3df65d0.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/OrButtonV2/OrButton.js +2 -179
  20. package/dist/bundled/v2/components/OrButtonV2/constants.js +1 -43
  21. package/dist/bundled/v2/components/OrButtonV2/index.js +1 -2
  22. package/dist/bundled/v2/components/OrButtonV2-b5541e8a.js +219 -0
  23. package/dist/bundled/v2/components/OrButtonV3/OrButton.js +2 -116
  24. package/dist/bundled/v2/components/OrButtonV3/index.js +1 -2
  25. package/dist/bundled/v2/components/OrButtonV3/props.js +1 -21
  26. package/dist/bundled/v2/components/OrButtonV3/styles.js +1 -75
  27. package/dist/bundled/v2/components/OrButtonV3-7c6155ec.js +206 -0
  28. package/dist/bundled/v2/components/OrCard/OrCard.js +1 -2
  29. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +2 -216
  30. package/dist/bundled/v2/components/OrCardCollection/constants.js +1 -7
  31. package/dist/bundled/v2/components/OrCardCollection/index.js +220 -2
  32. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -258
  33. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +1 -2
  34. package/dist/bundled/v2/components/OrCardCollectionV3/props.js +1 -16
  35. package/dist/bundled/v2/components/OrCardCollectionV3/styles.js +1 -38
  36. package/dist/bundled/v2/components/OrCardCollectionV3-8e93dfbc.js +306 -0
  37. package/dist/bundled/v2/components/OrCardV3/OrCard.js +2 -71
  38. package/dist/bundled/v2/components/OrCardV3/index.js +1 -2
  39. package/dist/bundled/v2/components/OrCardV3/props.js +1 -8
  40. package/dist/bundled/v2/components/OrCardV3/styles.js +1 -27
  41. package/dist/bundled/v2/components/OrCardV3-004191cf.js +100 -0
  42. package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +2 -3
  43. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +4 -5
  44. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -208
  45. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +1 -1
  46. package/dist/bundled/v2/components/OrCheckboxTreeV3/styles.js +1 -10
  47. package/dist/bundled/v2/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +2 -19
  48. package/dist/bundled/v2/components/OrCheckboxTreeV3-ce2f935d.js +230 -0
  49. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -183
  50. package/dist/bundled/v2/components/OrCheckboxV3/index.js +1 -1
  51. package/dist/bundled/v2/components/OrCheckboxV3/styles.js +1 -31
  52. package/dist/bundled/v2/components/OrCheckboxV3-e08e43a4.js +207 -0
  53. package/dist/bundled/v2/components/OrChip/OrChip.js +2 -91
  54. package/dist/bundled/v2/components/OrChip/index.js +1 -1
  55. package/dist/bundled/v2/components/OrChips/OrChips.js +2 -311
  56. package/dist/bundled/v2/components/OrChips/constants.js +1 -10
  57. package/dist/bundled/v2/components/OrChips/index.js +1 -2
  58. package/dist/bundled/v2/components/OrChips-bae73a11.js +403 -0
  59. package/dist/bundled/v2/components/OrCode/OrCode.js +2 -354
  60. package/dist/bundled/v2/components/OrCode/constants.js +1 -11
  61. package/dist/bundled/v2/components/OrCode/index.js +1 -7
  62. package/dist/bundled/v2/components/OrCode/lang.js +1 -27
  63. package/dist/bundled/v2/components/OrCode/libs.js +1 -5
  64. package/dist/bundled/v2/components/OrCode/theme.js +1 -189
  65. package/dist/bundled/v2/{index-10711eb4.js → components/OrCode-0a5ec298.js} +13223 -99
  66. package/dist/bundled/v2/components/OrCodeV3/OrCode.js +2 -494
  67. package/dist/bundled/v2/components/OrCodeV3/index.js +2 -7
  68. package/dist/bundled/v2/components/OrCodeV3/libs.js +1 -5
  69. package/dist/bundled/v2/components/OrCodeV3/props.js +1 -11
  70. package/dist/bundled/v2/components/OrCodeV3/styles.js +1 -28
  71. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-6608e26d.js → v2/components/OrCodeV3-6cf8786e.js} +236 -86
  72. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +2 -4
  73. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +2 -162
  74. package/dist/bundled/v2/components/OrColorPicker/constants.js +1 -323
  75. package/dist/bundled/v2/components/OrColorPicker/index.js +1 -2
  76. package/dist/bundled/v2/components/OrColorPicker/utils/defultPalette.js +1 -16
  77. package/dist/bundled/v2/components/OrColorPicker-a8fd02f4.js +492 -0
  78. package/dist/bundled/v2/components/OrCombinedInputV3/OrCombinedInput.js +2 -144
  79. package/dist/bundled/v2/components/OrCombinedInputV3/index.js +2 -2
  80. package/dist/bundled/v2/components/OrCombinedInputV3/props.js +1 -1
  81. package/dist/bundled/v2/components/OrCombinedInputV3/styles.js +1 -16
  82. package/dist/bundled/v2/components/OrCombinedInputV3-385b36b7.js +158 -0
  83. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +2 -261
  84. package/dist/bundled/v2/components/OrConfirm/index.js +1 -1
  85. package/dist/bundled/v2/components/OrConfirm-8eacc14c.js +260 -0
  86. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +2 -260
  87. package/dist/bundled/v2/components/OrConfirmV3/index.js +1 -2
  88. package/dist/bundled/v2/components/OrConfirmV3/props.js +1 -7
  89. package/dist/bundled/v2/components/OrConfirmV3/styles.js +1 -47
  90. package/dist/bundled/v2/components/OrConfirmV3-e5e9ae73.js +305 -0
  91. package/dist/bundled/v2/components/OrContextMenuV3/OrContextMenu.js +2 -108
  92. package/dist/bundled/v2/components/OrContextMenuV3/index.js +109 -2
  93. package/dist/bundled/v2/components/OrContextMenuV3/props.js +1 -1
  94. package/dist/bundled/v2/components/OrDateFormatV3/OrDateFormat.js +2 -69
  95. package/dist/bundled/v2/components/OrDateFormatV3/index.js +1 -1
  96. package/dist/bundled/v2/components/OrDateFormatV3/styles.js +1 -5
  97. package/dist/bundled/v2/components/OrDateFormatV3-2a884d32.js +72 -0
  98. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +2 -372
  99. package/dist/bundled/v2/components/OrDatePickerV3/index.js +2 -2
  100. package/dist/bundled/v2/components/OrDatePickerV3/props.js +1 -1
  101. package/dist/bundled/v2/components/OrDatePickerV3/styles.js +1 -10
  102. package/dist/bundled/v2/components/OrDatePickerV3-afeb334c.js +402 -0
  103. package/dist/bundled/v2/components/OrDateRangePickerV3/OrDateRangePicker.js +2 -485
  104. package/dist/bundled/v2/components/OrDateRangePickerV3/index.js +2 -2
  105. package/dist/bundled/v2/components/OrDateRangePickerV3/props.js +1 -1
  106. package/dist/bundled/v2/components/OrDateRangePickerV3/styles.js +1 -10
  107. package/dist/bundled/v2/components/OrDateRangePickerV3-ba1e4bfe.js +487 -0
  108. package/dist/bundled/v2/components/OrDateTimeFormatV3/OrDateTimeFormat.js +2 -76
  109. package/dist/bundled/v2/components/OrDateTimeFormatV3/index.js +1 -1
  110. package/dist/bundled/v2/components/OrDateTimeFormatV3/styles.js +1 -5
  111. package/dist/bundled/v2/components/OrDateTimeFormatV3-93cd2d91.js +77 -0
  112. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +2 -1062
  113. package/dist/bundled/v2/components/OrDateTimePicker/constants.js +1 -20
  114. package/dist/bundled/v2/components/OrDateTimePicker/index.js +1 -2
  115. package/dist/bundled/v2/components/OrDateTimePicker-4d75450e.js +1262 -0
  116. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +2 -520
  117. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +2 -12
  118. package/dist/bundled/v2/components/OrDateTimePickerV3/props.js +2 -10
  119. package/dist/bundled/v2/components/OrDateTimePickerV3/styles.js +1 -11
  120. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatDate.js +1 -8
  121. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/formatTime.js +1 -11
  122. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getCurrentDate.js +1 -6
  123. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getDatePlaceholder.js +1 -9
  124. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getNextMonthDate.js +1 -6
  125. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/getTimePlaceholder.js +1 -12
  126. package/dist/bundled/v2/components/OrDateTimePickerV3/utils/index.js +1 -6
  127. package/dist/bundled/v2/components/OrDateTimePickerV3-43deef9a.js +1715 -0
  128. package/dist/bundled/v2/components/OrEmptyStateV3/OrEmptyState.js +2 -111
  129. package/dist/bundled/v2/components/OrEmptyStateV3/index.js +1 -2
  130. package/dist/bundled/v2/components/OrEmptyStateV3/props.js +1 -7
  131. package/dist/bundled/v2/components/OrEmptyStateV3/styles.js +1 -46
  132. package/dist/bundled/v2/components/OrEmptyStateV3-8c97a748.js +158 -0
  133. package/dist/bundled/v2/components/OrError/OrError.js +1 -2
  134. package/dist/bundled/v2/components/OrErrorTagV3/OrErrorTag.js +2 -65
  135. package/dist/bundled/v2/components/OrErrorTagV3/index.js +1 -1
  136. package/dist/bundled/v2/components/OrErrorTagV3/styles.js +1 -15
  137. package/dist/bundled/v2/components/OrErrorTagV3-dbcbe140.js +78 -0
  138. package/dist/bundled/v2/components/OrErrorV3/OrError.js +2 -71
  139. package/dist/bundled/v2/components/OrErrorV3/index.js +1 -1
  140. package/dist/bundled/v2/components/OrErrorV3/styles.js +1 -19
  141. package/dist/bundled/v2/components/OrErrorV3-58bf57d3.js +88 -0
  142. package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +2 -136
  143. package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +1 -2
  144. package/dist/bundled/v2/components/OrExpansionPanelV3/props.js +1 -18
  145. package/dist/bundled/v2/components/OrExpansionPanelV3/styles.js +1 -69
  146. package/dist/bundled/v2/components/OrExpansionPanelV3-96ab91d2.js +219 -0
  147. package/dist/bundled/v2/components/OrFabV3/OrFab.js +2 -82
  148. package/dist/bundled/v2/components/OrFabV3/index.js +1 -2
  149. package/dist/bundled/v2/components/OrFabV3/props.js +1 -7
  150. package/dist/bundled/v2/components/OrFabV3/styles.js +1 -19
  151. package/dist/bundled/v2/components/OrFabV3-27721d1a.js +104 -0
  152. package/dist/bundled/v2/components/OrFloating/OrFloating.js +2 -186
  153. package/dist/bundled/v2/components/OrFloating/constants.js +1 -22
  154. package/dist/bundled/v2/components/OrFloating/index.js +1 -2
  155. package/dist/bundled/v2/{floating-ui.dom-d9ef0d1f.js → components/OrFloating-b7306559.js} +204 -1
  156. package/dist/bundled/v2/components/OrFormGroupV3/OrFormGroup.js +2 -123
  157. package/dist/bundled/v2/components/OrFormGroupV3/index.js +1 -2
  158. package/dist/bundled/v2/components/OrFormGroupV3/props.js +1 -7
  159. package/dist/bundled/v2/components/OrFormGroupV3/styles.js +1 -17
  160. package/dist/bundled/v2/components/OrFormGroupV3-f369037b.js +141 -0
  161. package/dist/bundled/v2/components/OrHint/OrHint.js +1 -2
  162. package/dist/bundled/v2/components/OrHintV3/OrHint.js +2 -71
  163. package/dist/bundled/v2/components/OrHintV3/index.js +1 -1
  164. package/dist/bundled/v2/components/OrHintV3/styles.js +1 -19
  165. package/dist/bundled/v2/components/OrHintV3-785c9cb4.js +88 -0
  166. package/dist/bundled/v2/components/OrIcon/OrIcon.js +2 -158
  167. package/dist/bundled/v2/components/OrIcon/constants.js +1 -24
  168. package/dist/bundled/v2/components/OrIcon/index.js +178 -2
  169. package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -7
  170. package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -135
  171. package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -3
  172. package/dist/bundled/v2/components/OrIconButtonV3/props.js +2 -11
  173. package/dist/bundled/v2/components/OrIconButtonV3/styles.js +1 -72
  174. package/dist/bundled/v2/components/OrIconButtonV3-7e033be9.js +209 -0
  175. package/dist/bundled/v2/components/OrIconV3/OrIcon.js +2 -69
  176. package/dist/bundled/v2/components/OrIconV3/index.js +1 -2
  177. package/dist/bundled/v2/components/OrIconV3/props.js +1 -17
  178. package/dist/bundled/v2/components/OrIconV3/styles.js +1 -44
  179. package/dist/bundled/v2/components/OrIconV3-f514dbe4.js +124 -0
  180. package/dist/bundled/v2/components/OrInlineInputBoxV3/OrInlineInputBox.js +2 -68
  181. package/dist/bundled/v2/components/OrInlineInputBoxV3/index.js +1 -2
  182. package/dist/bundled/v2/components/OrInlineInputBoxV3/props.js +1 -7
  183. package/dist/bundled/v2/components/OrInlineInputBoxV3/styles.js +1 -23
  184. package/dist/bundled/{v3/components/OrInlineInputBoxV3/styles.js → v2/components/OrInlineInputBoxV3-14f7725c.js} +72 -1
  185. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -344
  186. package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -3
  187. package/dist/bundled/v2/components/OrInlineInputV3/props.js +2 -9
  188. package/dist/bundled/v2/components/OrInlineInputV3/styles.js +1 -29
  189. package/dist/bundled/v2/components/OrInlineInputV3-c991c475.js +371 -0
  190. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +2 -387
  191. package/dist/bundled/v2/components/OrInlineTextEdit/constants.js +1 -13
  192. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +395 -2
  193. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -261
  194. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +1 -1
  195. package/dist/bundled/v2/components/OrInlineTextareaV3/styles.js +1 -21
  196. package/dist/bundled/v2/components/OrInlineTextareaV3-590b465b.js +276 -0
  197. package/dist/bundled/v2/components/OrInput/OrInput.js +2 -4
  198. package/dist/bundled/v2/components/OrInputBoxV3/OrInputBox.js +2 -169
  199. package/dist/bundled/v2/components/OrInputBoxV3/index.js +1 -2
  200. package/dist/bundled/v2/components/OrInputBoxV3/props.js +1 -12
  201. package/dist/bundled/v2/components/OrInputBoxV3/styles.js +1 -49
  202. package/dist/bundled/v2/components/OrInputBoxV3-2ed5bb91.js +224 -0
  203. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -417
  204. package/dist/bundled/v2/components/OrInputV3/index.js +2 -3
  205. package/dist/bundled/v2/components/OrInputV3/props.js +2 -11
  206. package/dist/bundled/v2/components/OrInputV3/styles.js +1 -14
  207. package/dist/bundled/v2/components/OrInputV3-9e3412a7.js +430 -0
  208. package/dist/bundled/v2/components/OrLabel/OrLabel.js +1 -2
  209. package/dist/bundled/v2/components/OrLabelV3/OrLabel.js +2 -93
  210. package/dist/bundled/v2/components/OrLabelV3/index.js +1 -2
  211. package/dist/bundled/v2/components/OrLabelV3/props.js +1 -8
  212. package/dist/bundled/v2/components/OrLabelV3/styles.js +1 -38
  213. package/dist/bundled/v2/components/OrLabelV3-39d41774.js +133 -0
  214. package/dist/bundled/v2/components/OrLinkV3/OrLink.js +2 -85
  215. package/dist/bundled/v2/components/OrLinkV3/index.js +1 -2
  216. package/dist/bundled/v2/components/OrLinkV3/props.js +1 -10
  217. package/dist/bundled/v2/components/OrLinkV3/styles.js +1 -32
  218. package/dist/bundled/v2/components/OrLinkV3-e1a24b86.js +123 -0
  219. package/dist/bundled/v2/components/OrList/OrList.js +2 -1122
  220. package/dist/bundled/v2/components/OrList/index.js +1 -1
  221. package/dist/bundled/v2/{sortable.esm-11705107.js → components/OrList-dda38b72.js} +2566 -1
  222. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +3 -4
  223. package/dist/bundled/v2/components/OrListV3/OrList.js +2 -2
  224. package/dist/bundled/v2/components/OrListV3/index.js +1 -1
  225. package/dist/bundled/v2/components/OrListV3/styles.js +1 -8
  226. package/dist/bundled/v2/{OrList-746fc406.js → components/OrListV3-89fc240d.js} +13 -8
  227. package/dist/bundled/v2/components/OrLoader/OrLoader.js +2 -106
  228. package/dist/bundled/v2/components/OrLoader/constants.js +1 -8
  229. package/dist/bundled/v2/components/OrLoader/index.js +111 -2
  230. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +2 -170
  231. package/dist/bundled/v2/components/OrLoaderV3/index.js +1 -2
  232. package/dist/bundled/v2/components/OrLoaderV3/props.js +1 -18
  233. package/dist/bundled/v2/components/OrLoaderV3/styles.js +1 -17
  234. package/dist/bundled/v2/components/OrLoaderV3-ac6fb35c.js +201 -0
  235. package/dist/bundled/v2/components/OrMenuItemV3/OrMenuItem.js +2 -93
  236. package/dist/bundled/v2/components/OrMenuItemV3/index.js +1 -1
  237. package/dist/bundled/v2/components/OrMenuItemV3/styles.js +1 -21
  238. package/dist/bundled/v2/components/OrMenuItemV3-1f9e504e.js +112 -0
  239. package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +2 -131
  240. package/dist/bundled/v2/components/OrMenuV3/index.js +2 -2
  241. package/dist/bundled/v2/components/OrMenuV3/props.js +1 -1
  242. package/dist/bundled/v2/components/OrMenuV3/styles.js +1 -7
  243. package/dist/bundled/v2/components/OrMenuV3-f642c1e3.js +135 -0
  244. package/dist/bundled/v2/components/OrModal/OrModal.js +2 -183
  245. package/dist/bundled/v2/components/OrModal/constants.js +1 -10
  246. package/dist/bundled/v2/components/OrModal/index.js +1 -2
  247. package/dist/bundled/{v3/useFocusTrap-dabc16ec.js → v2/components/OrModal-daa83157.js} +188 -4
  248. package/dist/bundled/v2/components/OrModalV3/OrModal.js +2 -287
  249. package/dist/bundled/v2/components/OrModalV3/index.js +1 -2
  250. package/dist/bundled/v2/components/OrModalV3/props.js +1 -8
  251. package/dist/bundled/v2/components/OrModalV3/styles.js +1 -30
  252. package/dist/bundled/v2/components/OrModalV3-fa3bcbc9.js +319 -0
  253. package/dist/bundled/v2/components/OrNotification/OrNotification.js +2 -128
  254. package/dist/bundled/v2/components/OrNotification/constants.js +1 -14
  255. package/dist/bundled/v2/components/OrNotification/index.js +139 -2
  256. package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -107
  257. package/dist/bundled/v2/components/OrNotificationV3/index.js +1 -2
  258. package/dist/bundled/v2/components/OrNotificationV3/props.js +1 -9
  259. package/dist/bundled/v2/components/OrNotificationV3/styles.js +1 -54
  260. package/dist/bundled/v2/components/OrNotificationV3-06ae8301.js +166 -0
  261. package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +1 -1
  262. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +4 -7
  263. package/dist/bundled/v2/components/OrOverlay/OrOverlay.js +1 -2
  264. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +2 -78
  265. package/dist/bundled/v2/components/OrOverlayV3/index.js +1 -1
  266. package/dist/bundled/v2/components/OrOverlayV3/styles.js +1 -9
  267. package/dist/bundled/v2/components/OrOverlayV3-d081cbd5.js +84 -0
  268. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -307
  269. package/dist/bundled/v2/components/OrPaginationV3/index.js +1 -1
  270. package/dist/bundled/v2/components/OrPaginationV3/styles.js +1 -26
  271. package/dist/bundled/v2/components/OrPaginationV3-1d426176.js +330 -0
  272. package/dist/bundled/v2/components/OrPassword/OrPassword.js +3 -5
  273. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -217
  274. package/dist/bundled/v2/components/OrPopoverV3/hooks/useFloating.js +3 -137
  275. package/dist/bundled/v2/components/OrPopoverV3/index.js +1 -2
  276. package/dist/bundled/v2/components/OrPopoverV3/props.js +1 -23
  277. package/dist/bundled/v2/components/OrPopoverV3/styles.js +1 -46
  278. package/dist/bundled/v2/components/OrPopoverV3-e3e14417.js +408 -0
  279. package/dist/bundled/v2/components/OrProgress/OrProgress.js +2 -208
  280. package/dist/bundled/v2/components/OrProgress/constants.js +1 -15
  281. package/dist/bundled/v2/components/OrProgress/index.js +1 -2
  282. package/dist/bundled/v2/components/OrProgress-f8030d25.js +281 -0
  283. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +2 -244
  284. package/dist/bundled/v2/components/OrProgressV3/index.js +1 -2
  285. package/dist/bundled/v2/components/OrProgressV3/props.js +1 -15
  286. package/dist/bundled/v2/components/OrProgressV3/styles.js +1 -63
  287. package/dist/bundled/v2/components/OrProgressV3-4635fa2a.js +315 -0
  288. package/dist/bundled/v2/components/OrRadio/OrRadio.js +3 -4
  289. package/dist/bundled/v2/components/OrRadioGroup/OrRadioGroup.js +1 -2
  290. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +4 -4
  291. package/dist/bundled/v2/components/OrRadioV3/OrRadio.js +2 -164
  292. package/dist/bundled/v2/components/OrRadioV3/index.js +1 -1
  293. package/dist/bundled/v2/components/OrRadioV3/styles.js +1 -31
  294. package/dist/bundled/v2/components/OrRadioV3-c1b1d2b3.js +189 -0
  295. package/dist/bundled/v2/components/OrRangeSliderV3/OrRangeSlider.js +2 -243
  296. package/dist/bundled/v2/components/OrRangeSliderV3/index.js +2 -2
  297. package/dist/bundled/v2/components/OrRangeSliderV3/props.js +1 -1
  298. package/dist/bundled/v2/components/OrRangeSliderV3/styles.js +2 -97
  299. package/dist/bundled/v2/components/OrRangeSliderV3-adc0cd8f.js +334 -0
  300. package/dist/bundled/v2/components/OrResizeablePanelV3/OrResizeablePanel.js +2 -248
  301. package/dist/bundled/v2/components/OrResizeablePanelV3/index.js +1 -2
  302. package/dist/bundled/v2/components/OrResizeablePanelV3/props.js +1 -16
  303. package/dist/bundled/v2/components/OrResizeablePanelV3/styles.js +1 -186
  304. package/dist/bundled/v2/components/OrResizeablePanelV3-911ab48c.js +443 -0
  305. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2 -2170
  306. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +1 -2
  307. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +1 -7
  308. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +1 -38
  309. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +2 -42
  310. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +2 -183
  311. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +1 -1
  312. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +3 -199
  313. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +1 -2
  314. package/dist/bundled/v2/components/OrRichTextEditorV3-192407a3.js +27734 -0
  315. package/dist/bundled/v2/components/OrSearch/OrSearch.js +3 -4
  316. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +2 -148
  317. package/dist/bundled/v2/components/OrSearchV3/index.js +146 -2
  318. package/dist/bundled/v2/components/OrSearchV3/props.js +1 -1
  319. package/dist/bundled/v2/components/OrSegmentedControlV3/OrSegmentedControl.js +2 -209
  320. package/dist/bundled/v2/components/OrSegmentedControlV3/index.js +1 -2
  321. package/dist/bundled/v2/components/OrSegmentedControlV3/props.js +1 -7
  322. package/dist/bundled/v2/components/OrSegmentedControlV3/styles.js +1 -15
  323. package/dist/bundled/v2/components/OrSegmentedControlV3-80ce7587.js +227 -0
  324. package/dist/bundled/v2/components/OrSelect/OrSelect.js +2 -1603
  325. package/dist/bundled/v2/components/OrSelect/constants.js +1 -50
  326. package/dist/bundled/v2/components/OrSelect/index.js +1 -1
  327. package/dist/bundled/v2/components/OrSelect-f9bbbb8e.js +1644 -0
  328. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -1166
  329. package/dist/bundled/v2/components/OrSelectV3/index.js +2 -2
  330. package/dist/bundled/v2/components/OrSelectV3/props.js +1 -1
  331. package/dist/bundled/v2/components/OrSelectV3/styles.js +1 -54
  332. package/dist/bundled/v2/components/OrSelectV3-39f0fc69.js +1211 -0
  333. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +2 -138
  334. package/dist/bundled/v2/components/OrSidebar/constants.js +1 -7
  335. package/dist/bundled/v2/components/OrSidebar/index.js +142 -2
  336. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +2 -198
  337. package/dist/bundled/v2/components/OrSidebarV3/index.js +2 -3
  338. package/dist/bundled/v2/components/OrSidebarV3/props.js +2 -9
  339. package/dist/bundled/v2/components/OrSidebarV3/styles.js +2 -64
  340. package/dist/bundled/v2/components/OrSidebarV3-faa32728.js +262 -0
  341. package/dist/bundled/v2/components/OrSkeleton/constants.js +1 -12
  342. package/dist/bundled/v2/components/OrSkeleton/index.js +1 -4
  343. package/dist/bundled/v2/components/OrSkeleton-14fef364.js +379 -0
  344. package/dist/bundled/v2/components/OrSkeletonCircle/OrSkeletonCircle.js +2 -77
  345. package/dist/bundled/v2/components/OrSkeletonCircle/index.js +1 -2
  346. package/dist/bundled/v2/components/OrSkeletonCircleV3/OrSkeletonCircle.js +2 -80
  347. package/dist/bundled/v2/components/OrSkeletonCircleV3/index.js +1 -1
  348. package/dist/bundled/v2/components/OrSkeletonRect/OrSkeletonRect.js +2 -80
  349. package/dist/bundled/v2/components/OrSkeletonRect/index.js +1 -2
  350. package/dist/bundled/v2/components/OrSkeletonRectV3/OrSkeletonRect.js +2 -83
  351. package/dist/bundled/v2/components/OrSkeletonRectV3/index.js +1 -1
  352. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +2 -94
  353. package/dist/bundled/v2/components/OrSkeletonText/index.js +1 -2
  354. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +2 -113
  355. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +1 -1
  356. package/dist/bundled/v2/components/OrSkeletonV3/index.js +1 -3
  357. package/dist/bundled/v2/components/OrSkeletonV3/styles.js +1 -34
  358. package/dist/bundled/v2/components/OrSkeletonV3-5a8ea9fb.js +296 -0
  359. package/dist/bundled/v2/components/OrSlider/OrSlider.js +3 -5
  360. package/dist/bundled/v2/components/OrSliderV3/OrSlider.js +2 -187
  361. package/dist/bundled/v2/components/OrSliderV3/index.js +1 -2
  362. package/dist/bundled/v2/components/OrSliderV3/props.js +1 -12
  363. package/dist/bundled/v2/components/OrSliderV3/styles.js +1 -92
  364. package/dist/bundled/v2/components/OrSliderV3-a76598f2.js +283 -0
  365. package/dist/bundled/v2/components/OrSortingV3/OrSorting.js +2 -136
  366. package/dist/bundled/v2/components/OrSortingV3/index.js +1 -1
  367. package/dist/bundled/v2/components/OrSortingV3/styles.js +1 -6
  368. package/dist/bundled/v2/components/OrSortingV3-c2ec11e7.js +140 -0
  369. package/dist/bundled/v2/components/OrStepper/OrStepper.js +2 -3
  370. package/dist/bundled/v2/components/OrSwitch/OrSwitch.js +2 -3
  371. package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +2 -196
  372. package/dist/bundled/v2/components/OrSwitchV3/index.js +1 -1
  373. package/dist/bundled/v2/components/OrSwitchV3/styles.js +1 -51
  374. package/dist/bundled/v2/components/OrSwitchV3-a3d692df.js +241 -0
  375. package/dist/bundled/v2/components/OrTab/OrTab.js +2 -3
  376. package/dist/bundled/v2/components/OrTabHeaderItem/OrTabHeaderItem.js +1 -2
  377. package/dist/bundled/v2/components/OrTabV3/OrTab.js +2 -76
  378. package/dist/bundled/v2/components/OrTabV3/index.js +1 -1
  379. package/dist/bundled/v2/components/OrTabV3/styles.js +1 -19
  380. package/dist/bundled/v2/components/OrTabV3-39ec082e.js +93 -0
  381. package/dist/bundled/v2/components/OrTabs/OrTabs.js +1 -2
  382. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -216
  383. package/dist/bundled/v2/components/OrTabsV3/index.js +1 -2
  384. package/dist/bundled/v2/components/OrTabsV3/props.js +1 -7
  385. package/dist/bundled/v2/components/OrTabsV3/styles.js +1 -31
  386. package/dist/bundled/v2/components/OrTabsV3-530007de.js +249 -0
  387. package/dist/bundled/v2/components/OrTag/OrTag.js +3 -4
  388. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +2 -386
  389. package/dist/bundled/v2/components/OrTagInputV3/index.js +2 -2
  390. package/dist/bundled/v2/components/OrTagInputV3/props.js +1 -1
  391. package/dist/bundled/v2/components/OrTagInputV3/styles.js +1 -17
  392. package/dist/bundled/v2/components/OrTagInputV3-429cc3b9.js +395 -0
  393. package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -120
  394. package/dist/bundled/v2/components/OrTagV3/index.js +1 -2
  395. package/dist/bundled/v2/components/OrTagV3/props.js +1 -13
  396. package/dist/bundled/v2/components/OrTagV3/styles.js +1 -32
  397. package/dist/bundled/v2/components/OrTagV3-b2630912.js +159 -0
  398. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +2 -193
  399. package/dist/bundled/v2/components/OrTagsV3/index.js +1 -2
  400. package/dist/bundled/v2/components/OrTagsV3/props.js +1 -11
  401. package/dist/bundled/v2/components/OrTagsV3/styles.js +1 -46
  402. package/dist/bundled/v2/components/OrTagsV3/utils/castToTag.js +1 -12
  403. package/dist/bundled/v2/components/OrTagsV3-aadd26d4.js +254 -0
  404. package/dist/bundled/v2/components/OrTeleport/OrTeleport.js +2 -630
  405. package/dist/bundled/v2/components/OrTeleport/constants.js +1 -16
  406. package/dist/bundled/v2/components/OrTeleport/index.js +1 -1
  407. package/dist/bundled/v2/components/OrTeleport-93a6a4eb.js +644 -0
  408. package/dist/bundled/v2/components/OrTeleportV3/OrTeleport.js +1 -1
  409. package/dist/bundled/v2/components/OrTextV3/OrText.js +2 -117
  410. package/dist/bundled/v2/components/OrTextV3/index.js +1 -1
  411. package/dist/bundled/v2/components/OrTextV3/styles.js +1 -17
  412. package/dist/bundled/{v3/OrText.vue_vue_type_script_lang-6ce019db.js → v2/components/OrTextV3-17c9dea1.js} +56 -2
  413. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +2 -4
  414. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.js +2 -243
  415. package/dist/bundled/v2/components/OrTextareaV3/index.js +2 -2
  416. package/dist/bundled/v2/components/OrTextareaV3/props.js +1 -1
  417. package/dist/bundled/v2/components/OrTextareaV3/styles.js +1 -16
  418. package/dist/bundled/v2/components/OrTextareaV3-501a7cfd.js +252 -0
  419. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +2 -499
  420. package/dist/bundled/v2/components/OrTextbox/constants.js +1 -11
  421. package/dist/bundled/v2/components/OrTextbox/index.js +505 -2
  422. package/dist/bundled/v2/components/OrTimeFormatV3/OrTimeFormat.js +2 -74
  423. package/dist/bundled/v2/components/OrTimeFormatV3/index.js +1 -1
  424. package/dist/bundled/v2/components/OrTimeFormatV3/styles.js +1 -5
  425. package/dist/bundled/v2/components/OrTimeFormatV3-9e374805.js +76 -0
  426. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +2 -361
  427. package/dist/bundled/v2/components/OrTimePickerV3/index.js +3 -3
  428. package/dist/bundled/v2/components/OrTimePickerV3/props.js +2 -2
  429. package/dist/bundled/v2/components/OrTimePickerV3/styles.js +1 -8
  430. package/dist/bundled/v2/components/OrTimePickerV3-57c942b6.js +362 -0
  431. package/dist/bundled/v2/components/OrTimeRangePickerV3/OrTimeRangePicker.js +2 -434
  432. package/dist/bundled/v2/components/OrTimeRangePickerV3/index.js +3 -3
  433. package/dist/bundled/v2/components/OrTimeRangePickerV3/props.js +2 -2
  434. package/dist/bundled/v2/components/OrTimeRangePickerV3/styles.js +1 -8
  435. package/dist/bundled/v2/components/OrTimeRangePickerV3-3bcd711c.js +434 -0
  436. package/dist/bundled/v2/components/OrToast/OrToast.js +2 -141
  437. package/dist/bundled/v2/components/OrToast/Timer.js +2 -37
  438. package/dist/bundled/v2/components/OrToast/composable/index.js +1 -2
  439. package/dist/bundled/v2/components/OrToast/composable/useQueue.js +2 -33
  440. package/dist/bundled/v2/components/OrToast/composable/useToast.js +1 -86
  441. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -25
  442. package/dist/bundled/v2/components/OrToast/constants.js +1 -24
  443. package/dist/bundled/v2/components/OrToast/index.js +1 -5
  444. package/dist/bundled/v2/components/OrToast-d94d464a.js +520 -0
  445. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +2 -201
  446. package/dist/bundled/v2/components/OrToastContainer/index.js +1 -4
  447. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +2 -223
  448. package/dist/bundled/v2/components/OrToastContainerV3/index.js +1 -5
  449. package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -172
  450. package/dist/bundled/v2/components/OrToastV3/Timer.js +2 -37
  451. package/dist/bundled/v2/components/OrToastV3/composable/index.js +1 -2
  452. package/dist/bundled/v2/components/OrToastV3/composable/useQueue.js +2 -33
  453. package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +1 -86
  454. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -25
  455. package/dist/bundled/v2/components/OrToastV3/index.js +1 -6
  456. package/dist/bundled/v2/components/OrToastV3/props.js +1 -1
  457. package/dist/bundled/v2/components/OrToastV3/styles.js +1 -59
  458. package/dist/bundled/{v3/components/OrToastV3/OrToast.js → v2/components/OrToastV3-f1194c3f.js} +552 -58
  459. package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +2 -180
  460. package/dist/bundled/v2/components/OrTooltip/index.js +240 -2
  461. package/dist/bundled/v2/components/OrTooltipContent/OrTooltipContent.js +2 -68
  462. package/dist/bundled/v2/components/OrTooltipContent/index.js +1 -1
  463. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +2 -139
  464. package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -2
  465. package/dist/bundled/v2/components/OrTooltipV3/props.js +1 -1
  466. package/dist/bundled/v2/components/OrTooltipV3/styles.js +2 -48
  467. package/dist/bundled/v2/components/OrTooltipV3-9ef1918a.js +182 -0
  468. package/dist/bundled/v2/components/OrTreeV3/OrTree.js +2 -423
  469. package/dist/bundled/v2/components/OrTreeV3/index.js +429 -2
  470. package/dist/bundled/v2/components/index.js +91 -172
  471. package/dist/bundled/v2/directives/dropdown-close.js +2 -14
  472. package/dist/bundled/v2/directives/dropdown-open.js +2 -19
  473. package/dist/bundled/v2/directives/index.js +1 -2
  474. package/dist/bundled/v2/hooks/index.js +1 -10
  475. package/dist/bundled/v2/hooks/useControlAttributes.js +2 -12
  476. package/dist/bundled/v2/hooks/useElevation.js +2 -25
  477. package/dist/bundled/v2/hooks/useIdAttribute.js +2 -12
  478. package/dist/bundled/v2/hooks/useOverflow.js +2 -75
  479. package/dist/bundled/v2/hooks/usePopoverState.js +2 -42
  480. package/dist/bundled/v2/hooks/useProxyModelValue.js +2 -29
  481. package/dist/bundled/v2/hooks/useResponsive/index.js +1 -1
  482. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -203
  483. package/dist/bundled/v2/hooks/useTheme.js +1 -3750
  484. package/dist/bundled/v2/hooks/useToggle.js +2 -23
  485. package/dist/bundled/v2/hooks/useValidationAttributes.js +2 -16
  486. package/dist/bundled/v2/index.js +92 -197
  487. package/dist/bundled/v2/utils/constants/color.js +1 -16
  488. package/dist/bundled/v2/utils/constants/key-codes.js +1 -16
  489. package/dist/bundled/v2/utils/constants/poper.js +1 -10
  490. package/dist/bundled/v2/utils/constants/regex.js +1 -49
  491. package/dist/bundled/v2/utils/functions/color.js +1 -40
  492. package/dist/bundled/v2/utils/functions/dom.js +1 -2
  493. package/dist/bundled/v2/utils/functions/flattenDeep.js +1 -6
  494. package/dist/bundled/v2/utils/functions/hash.js +1 -8
  495. package/dist/bundled/v2/utils/functions/px-to-rem.js +1 -3
  496. package/dist/bundled/v2/utils/functions/text.js +2 -9
  497. package/dist/bundled/v2/utils/index.js +2 -12
  498. package/dist/bundled/v2/utils/isEmpty.js +1 -5
  499. package/dist/bundled/v2/utils/isEmptyValue.js +1 -5
  500. package/dist/bundled/v2/utils/isEqualValue.js +1 -8
  501. package/dist/bundled/v2/utils/isVisible.js +1 -5
  502. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
  503. package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
  504. package/package.json +13 -13
  505. package/dist/bundled/v2/OrDateTimePickerMonthSelect-18ba0793.js +0 -574
  506. package/dist/bundled/v2/OrDateTimePickerPopoverHeader-13a1f9e3.js +0 -235
  507. package/dist/bundled/v2/OrDateTimePickerTimeSelect-7ce1b97d.js +0 -359
  508. package/dist/bundled/v2/_baseAssignValue-2250dbc9.js +0 -38
  509. package/dist/bundled/v2/_baseIsEqual-fe2002b6.js +0 -1237
  510. package/dist/bundled/v2/_baseProperty-a52739e9.js +0 -15
  511. package/dist/bundled/v2/_commonjsHelpers-1789f0cf.js +0 -7
  512. package/dist/bundled/v2/components/OrCardCollection/types.js +0 -1
  513. package/dist/bundled/v2/components/OrCardCollectionV3/types.js +0 -1
  514. package/dist/bundled/v2/components/OrCheckboxTreeV3/types.js +0 -1
  515. package/dist/bundled/v2/components/OrColorPicker/types.js +0 -1
  516. package/dist/bundled/v2/components/OrDateTimePickerV3/types.js +0 -1
  517. package/dist/bundled/v2/components/OrEmptyStateV3/types.js +0 -1
  518. package/dist/bundled/v2/components/OrListV3/types.js +0 -1
  519. package/dist/bundled/v2/components/OrLoader/types.js +0 -1
  520. package/dist/bundled/v2/components/OrOverflowMenu/types.js +0 -1
  521. package/dist/bundled/v2/components/OrPaginationV3/types.js +0 -1
  522. package/dist/bundled/v2/components/OrPopoverV3/hooks/types.js +0 -1
  523. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  524. package/dist/bundled/v2/components/OrSegmentedControlV3/types.js +0 -1
  525. package/dist/bundled/v2/components/OrSelect/types.js +0 -1
  526. package/dist/bundled/v2/components/OrSelectV3/types.js +0 -1
  527. package/dist/bundled/v2/components/OrSortingV3/types.js +0 -1
  528. package/dist/bundled/v2/components/OrTabsV3/types.js +0 -1
  529. package/dist/bundled/v2/components/OrTagsV3/types.js +0 -1
  530. package/dist/bundled/v2/components/OrToast/types.js +0 -1
  531. package/dist/bundled/v2/components/OrToastV3/types.js +0 -1
  532. package/dist/bundled/v2/components/OrTreeV3/types.js +0 -8
  533. package/dist/bundled/v2/dom-cec392f3.js +0 -260
  534. package/dist/bundled/v2/eq-44ea4d70.js +0 -77
  535. package/dist/bundled/v2/get-34aa21f4.js +0 -856
  536. package/dist/bundled/v2/index-0fa7e6ca.js +0 -114
  537. package/dist/bundled/v2/index-3de14f24.js +0 -2301
  538. package/dist/bundled/v2/index-4acf7746.js +0 -94
  539. package/dist/bundled/v2/index-5564585f.js +0 -295
  540. package/dist/bundled/v2/index-5d81edfd.js +0 -760
  541. package/dist/bundled/v2/index-67eff9fe.js +0 -9715
  542. package/dist/bundled/v2/index-7121b6d0.js +0 -8
  543. package/dist/bundled/v2/index-8becffff.js +0 -1912
  544. package/dist/bundled/v2/index-9ab841c5.js +0 -837
  545. package/dist/bundled/v2/index-c1efbf6a.js +0 -819
  546. package/dist/bundled/v2/index-c54ed0b9.js +0 -361
  547. package/dist/bundled/v2/index-c80eecf1.js +0 -1636
  548. package/dist/bundled/v2/index-d41efd2a.js +0 -1379
  549. package/dist/bundled/v2/index-f1a845c3.js +0 -3158
  550. package/dist/bundled/v2/index-f671afe5.js +0 -7127
  551. package/dist/bundled/v2/isArrayLike-e7fb5cae.js +0 -91
  552. package/dist/bundled/v2/isEqual-7a8e6106.js +0 -38
  553. package/dist/bundled/v2/isObject-b7415fc1.js +0 -202
  554. package/dist/bundled/v2/markdown-7d2cd3a5.js +0 -8287
  555. package/dist/bundled/v2/normalize-component-6e8e3d80.js +0 -76
  556. package/dist/bundled/v2/props-7be029c7.js +0 -32
  557. package/dist/bundled/v2/range-82efa3d4.js +0 -136
  558. package/dist/bundled/v2/round-567ede34.js +0 -66
  559. package/dist/bundled/v2/style-inject.es-4c6f2515.js +0 -26
  560. package/dist/bundled/v2/toFinite-bc59ffb0.js +0 -142
  561. package/dist/bundled/v2/toInteger-9fa0151c.js +0 -38
  562. package/dist/bundled/v2/toString-b6e4472a.js +0 -114
  563. package/dist/bundled/v2/types-668300dd.js +0 -5
  564. package/dist/bundled/v2/useFocusTrap-f810e0ea.js +0 -1381
  565. package/dist/bundled/v2/v4-cf8987a3.js +0 -67
  566. package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-10c2add0.js +0 -55
  567. package/dist/bundled/v3/OrAvatar.vue_vue_type_script_lang-d1b297c8.js +0 -59
  568. package/dist/bundled/v3/OrBottomSheet.vue_vue_type_script_lang-248139f6.js +0 -91
  569. package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-0fb2b270.js +0 -105
  570. package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-dfeef2d0.js +0 -57
  571. package/dist/bundled/v3/OrButton.vue_vue_type_script_lang-e9677805.js +0 -100
  572. package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-81561dd8.js +0 -21
  573. package/dist/bundled/v3/OrCard.vue_vue_type_script_lang-adf1d0a3.js +0 -33
  574. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-20f91db4.js +0 -103
  575. package/dist/bundled/v3/OrCardCollection.vue_vue_type_script_lang-b6e741bc.js +0 -136
  576. package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-cdc466f7.js +0 -105
  577. package/dist/bundled/v3/OrCheckbox.vue_vue_type_script_lang-de28fcaf.js +0 -86
  578. package/dist/bundled/v3/OrCheckboxGroup.vue_vue_type_script_lang-0622d8c3.js +0 -57
  579. package/dist/bundled/v3/OrCheckboxTree.vue_vue_type_script_lang-b939bd8a.js +0 -111
  580. package/dist/bundled/v3/OrChip.vue_vue_type_script_lang-cacd81e5.js +0 -43
  581. package/dist/bundled/v3/OrChips.vue_vue_type_script_lang-e1f37564.js +0 -192
  582. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-8376244c.js +0 -237
  583. package/dist/bundled/v3/OrCollapse.vue_vue_type_script_lang-be1c8c66.js +0 -112
  584. package/dist/bundled/v3/OrColorPicker.vue_vue_type_script_lang-b030a96d.js +0 -59
  585. package/dist/bundled/v3/OrCombinedInput.vue_vue_type_script_lang-cdb2d8ca.js +0 -66
  586. package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-21ef5ff5.js +0 -168
  587. package/dist/bundled/v3/OrConfirm.vue_vue_type_script_lang-2887602e.js +0 -163
  588. package/dist/bundled/v3/OrContextMenu.vue_vue_type_script_lang-5a64e05d.js +0 -65
  589. package/dist/bundled/v3/OrDateFormat.vue_vue_type_script_lang-fef42ccd.js +0 -34
  590. package/dist/bundled/v3/OrDatePicker.vue_vue_type_script_lang-e59aa8b4.js +0 -193
  591. package/dist/bundled/v3/OrDateRangePicker.vue_vue_type_script_lang-736e93bd.js +0 -225
  592. package/dist/bundled/v3/OrDateTimeFormat.vue_vue_type_script_lang-15603748.js +0 -41
  593. package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-0542cccc.js +0 -763
  594. package/dist/bundled/v3/OrDateTimePicker.vue_vue_type_script_lang-238e7a86.js +0 -260
  595. package/dist/bundled/v3/OrDateTimePickerMonthSelect.vue_vue_type_script_lang-f5d0e738.js +0 -336
  596. package/dist/bundled/v3/OrDateTimePickerPopoverHeader-57dbb127.js +0 -207
  597. package/dist/bundled/v3/OrDateTimePickerPopoverHeader.vue_vue_type_script_lang-40a2de7e.js +0 -105
  598. package/dist/bundled/v3/OrDateTimePickerTimeSelect-178aa93a.js +0 -85
  599. package/dist/bundled/v3/OrDateTimePickerTimeSelect.vue_vue_type_script_lang-636aa4a8.js +0 -215
  600. package/dist/bundled/v3/OrEmptyState.vue_vue_type_script_lang-2c1f09ef.js +0 -64
  601. package/dist/bundled/v3/OrError.vue_vue_type_script_lang-450321b8.js +0 -13
  602. package/dist/bundled/v3/OrError.vue_vue_type_script_lang-fcf91781.js +0 -29
  603. package/dist/bundled/v3/OrErrorTag.vue_vue_type_script_lang-057dcb3b.js +0 -24
  604. package/dist/bundled/v3/OrExpansionPanel.vue_vue_type_script_lang-7fad7b18.js +0 -68
  605. package/dist/bundled/v3/OrFab.vue_vue_type_script_lang-d68402ac.js +0 -39
  606. package/dist/bundled/v3/OrFloating.vue_vue_type_script_lang-38aa1d83.js +0 -148
  607. package/dist/bundled/v3/OrFormGroup.vue_vue_type_script_lang-165cf30e.js +0 -63
  608. package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-0ab8b932.js +0 -29
  609. package/dist/bundled/v3/OrHint.vue_vue_type_script_lang-5eb3ee22.js +0 -14
  610. package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-db2e3f85.js +0 -34
  611. package/dist/bundled/v3/OrIcon.vue_vue_type_script_lang-f3cbff23.js +0 -99
  612. package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-6c4f3216.js +0 -77
  613. package/dist/bundled/v3/OrIconButton.vue_vue_type_script_lang-f6bf7dda.js +0 -143
  614. package/dist/bundled/v3/OrInlineInput.vue_vue_type_script_lang-a678b2c3.js +0 -141
  615. package/dist/bundled/v3/OrInlineInputBox.vue_vue_type_script_lang-fe99c485.js +0 -30
  616. package/dist/bundled/v3/OrInlineTextEdit.vue_vue_type_script_lang-d2f3ad39.js +0 -233
  617. package/dist/bundled/v3/OrInlineTextarea.vue_vue_type_script_lang-75a4d0b4.js +0 -132
  618. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-2520e0f2.js +0 -146
  619. package/dist/bundled/v3/OrInput.vue_vue_type_script_lang-515ff78a.js +0 -190
  620. package/dist/bundled/v3/OrInputBox.vue_vue_type_script_lang-989d5ee6.js +0 -93
  621. package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-6243e348.js +0 -41
  622. package/dist/bundled/v3/OrLabel.vue_vue_type_script_lang-e2bcff17.js +0 -45
  623. package/dist/bundled/v3/OrLink.vue_vue_type_script_lang-c35ed9e3.js +0 -46
  624. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-4218ec79.js +0 -208
  625. package/dist/bundled/v3/OrList.vue_vue_type_script_lang-8df85a8d.js +0 -1008
  626. package/dist/bundled/v3/OrListOfInputs.vue_vue_type_script_lang-34a006d0.js +0 -79
  627. package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-52edc8f8.js +0 -80
  628. package/dist/bundled/v3/OrLoader.vue_vue_type_script_lang-a1fed697.js +0 -48
  629. package/dist/bundled/v3/OrMenu.vue_vue_type_script_lang-8a3c6cfc.js +0 -76
  630. package/dist/bundled/v3/OrMenuItem.vue_vue_type_script_lang-11569833.js +0 -39
  631. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-70904ce1.js +0 -101
  632. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-9b908bb2.js +0 -163
  633. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-4d7bb6fd.js +0 -54
  634. package/dist/bundled/v3/OrNotification.vue_vue_type_script_lang-81d7cfef.js +0 -70
  635. package/dist/bundled/v3/OrNumberInput.vue_vue_type_script_lang-b832e611.js +0 -114
  636. package/dist/bundled/v3/OrOverflowMenu.vue_vue_type_script_lang-5bde29a6.js +0 -139
  637. package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-2f5d626d.js +0 -33
  638. package/dist/bundled/v3/OrOverlay.vue_vue_type_script_lang-4a0cd054.js +0 -40
  639. package/dist/bundled/v3/OrPagination.vue_vue_type_script_lang-dcc37a32.js +0 -167
  640. package/dist/bundled/v3/OrPassword.vue_vue_type_script_lang-1165ec6c.js +0 -100
  641. package/dist/bundled/v3/OrPopover.vue_vue_type_script_lang-cb38a064.js +0 -162
  642. package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-4b93a66e.js +0 -136
  643. package/dist/bundled/v3/OrProgress.vue_vue_type_script_lang-c4bd7133.js +0 -130
  644. package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-750ce51f.js +0 -82
  645. package/dist/bundled/v3/OrRadio.vue_vue_type_script_lang-a4f043e9.js +0 -92
  646. package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-75b6c81b.js +0 -47
  647. package/dist/bundled/v3/OrRadioGroup.vue_vue_type_script_lang-8fad9a5f.js +0 -56
  648. package/dist/bundled/v3/OrRangeSlider.vue_vue_type_script_lang-206b8321.js +0 -150
  649. package/dist/bundled/v3/OrResizeablePanel.vue_vue_type_script_lang-ce7a2c31.js +0 -187
  650. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-ee6edbe6.js +0 -1910
  651. package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-245c9614.js +0 -123
  652. package/dist/bundled/v3/OrSearch.vue_vue_type_script_lang-33e6f81a.js +0 -83
  653. package/dist/bundled/v3/OrSegmentedControl.vue_vue_type_script_lang-10bd4ea8.js +0 -135
  654. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-4b6e13dd.js +0 -747
  655. package/dist/bundled/v3/OrSelect.vue_vue_type_script_lang-baf7c270.js +0 -1267
  656. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-12bfe1fb.js +0 -131
  657. package/dist/bundled/v3/OrSidebar.vue_vue_type_script_lang-d6e95246.js +0 -85
  658. package/dist/bundled/v3/OrSkeletonCircle.vue_vue_type_script_lang-2a2e5870.js +0 -44
  659. package/dist/bundled/v3/OrSkeletonCircle.vue_vue_type_script_lang-b768e00d.js +0 -38
  660. package/dist/bundled/v3/OrSkeletonRect.vue_vue_type_script_lang-32f819ad.js +0 -41
  661. package/dist/bundled/v3/OrSkeletonRect.vue_vue_type_script_lang-3a1d6b32.js +0 -47
  662. package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-502607ef.js +0 -71
  663. package/dist/bundled/v3/OrSkeletonText.vue_vue_type_script_lang-cfe360bb.js +0 -50
  664. package/dist/bundled/v3/OrSlider.vue_vue_type_script_lang-ae4652e3.js +0 -227
  665. package/dist/bundled/v3/OrSlider.vue_vue_type_script_lang-e2eb7acc.js +0 -115
  666. package/dist/bundled/v3/OrSorting.vue_vue_type_script_lang-cbce5820.js +0 -66
  667. package/dist/bundled/v3/OrStepper.vue_vue_type_script_lang-33639493.js +0 -377
  668. package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-3ef06bbd.js +0 -78
  669. package/dist/bundled/v3/OrSwitch.vue_vue_type_script_lang-9e9e15d1.js +0 -91
  670. package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-886e334a.js +0 -26
  671. package/dist/bundled/v3/OrTab.vue_vue_type_script_lang-d9ee65b6.js +0 -57
  672. package/dist/bundled/v3/OrTabHeaderItem.vue_vue_type_script_lang-e1a0b91f.js +0 -60
  673. package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-9129d34b.js +0 -46
  674. package/dist/bundled/v3/OrTabs.vue_vue_type_script_lang-ab443a23.js +0 -134
  675. package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-27978933.js +0 -55
  676. package/dist/bundled/v3/OrTag.vue_vue_type_script_lang-b62c0b79.js +0 -58
  677. package/dist/bundled/v3/OrTagInput.vue_vue_type_script_lang-af84dfd0.js +0 -202
  678. package/dist/bundled/v3/OrTags.vue_vue_type_script_lang-15f2054e.js +0 -115
  679. package/dist/bundled/v3/OrTeleport.vue3.vue_vue_type_script_lang-dfc6301c.js +0 -16
  680. package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-5624556c.js +0 -187
  681. package/dist/bundled/v3/OrTextarea.vue_vue_type_script_lang-9f62ecd7.js +0 -112
  682. package/dist/bundled/v3/OrTextbox.vue_vue_type_script_lang-d0db6077.js +0 -336
  683. package/dist/bundled/v3/OrTimeFormat.vue_vue_type_script_lang-acef5eaa.js +0 -39
  684. package/dist/bundled/v3/OrTimePicker.vue_vue_type_script_lang-017d79ec.js +0 -191
  685. package/dist/bundled/v3/OrTimeRangePicker.vue_vue_type_script_lang-d4690ca9.js +0 -202
  686. package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-7a137b51.js +0 -155
  687. package/dist/bundled/v3/OrToastContainer.vue_vue_type_script_lang-b019a53c.js +0 -135
  688. package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-288c978f.js +0 -113
  689. package/dist/bundled/v3/OrTooltip.vue_vue_type_script_lang-8ae35930.js +0 -77
  690. package/dist/bundled/v3/OrTooltipContent.vue_vue_type_script_lang-4c1afacb.js +0 -19
  691. package/dist/bundled/v3/OrTree.vue_vue_type_script_lang-f6e6d6ac.js +0 -310
  692. package/dist/bundled/v3/_baseAssignValue-2250dbc9.js +0 -38
  693. package/dist/bundled/v3/_baseIsEqual-fe2002b6.js +0 -1237
  694. package/dist/bundled/v3/_baseProperty-a52739e9.js +0 -15
  695. package/dist/bundled/v3/_commonjsHelpers-1789f0cf.js +0 -7
  696. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +0 -33
  697. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +0 -47
  698. package/dist/bundled/v3/components/OrAvatar/constants.d.ts +0 -5
  699. package/dist/bundled/v3/components/OrAvatar/constants.js +0 -8
  700. package/dist/bundled/v3/components/OrAvatar/index.d.ts +0 -2
  701. package/dist/bundled/v3/components/OrAvatar/index.js +0 -2
  702. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +0 -24
  703. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +0 -55
  704. package/dist/bundled/v3/components/OrAvatarV3/index.d.ts +0 -2
  705. package/dist/bundled/v3/components/OrAvatarV3/index.js +0 -2
  706. package/dist/bundled/v3/components/OrAvatarV3/props.d.ts +0 -15
  707. package/dist/bundled/v3/components/OrAvatarV3/props.js +0 -19
  708. package/dist/bundled/v3/components/OrAvatarV3/styles.d.ts +0 -6
  709. package/dist/bundled/v3/components/OrAvatarV3/styles.js +0 -84
  710. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +0 -31
  711. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +0 -566
  712. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.d.ts +0 -530
  713. package/dist/bundled/v3/components/OrBottomSheetV3/hooks/useBottomSheetSwipeState.js +0 -71
  714. package/dist/bundled/v3/components/OrBottomSheetV3/index.d.ts +0 -2
  715. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +0 -2
  716. package/dist/bundled/v3/components/OrBottomSheetV3/props.d.ts +0 -4
  717. package/dist/bundled/v3/components/OrBottomSheetV3/props.js +0 -7
  718. package/dist/bundled/v3/components/OrBottomSheetV3/styles.d.ts +0 -6
  719. package/dist/bundled/v3/components/OrBottomSheetV3/styles.js +0 -48
  720. package/dist/bundled/v3/components/OrButton/OrButton.js +0 -43
  721. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +0 -153
  722. package/dist/bundled/v3/components/OrButton/constants.d.ts +0 -21
  723. package/dist/bundled/v3/components/OrButton/constants.js +0 -25
  724. package/dist/bundled/v3/components/OrButton/index.d.ts +0 -2
  725. package/dist/bundled/v3/components/OrButton/index.js +0 -2
  726. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +0 -42
  727. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +0 -126
  728. package/dist/bundled/v3/components/OrButtonV2/constants.d.ts +0 -35
  729. package/dist/bundled/v3/components/OrButtonV2/constants.js +0 -43
  730. package/dist/bundled/v3/components/OrButtonV2/index.d.ts +0 -3
  731. package/dist/bundled/v3/components/OrButtonV2/index.js +0 -3
  732. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +0 -36
  733. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +0 -78
  734. package/dist/bundled/v3/components/OrButtonV3/index.d.ts +0 -2
  735. package/dist/bundled/v3/components/OrButtonV3/index.js +0 -2
  736. package/dist/bundled/v3/components/OrButtonV3/props.d.ts +0 -16
  737. package/dist/bundled/v3/components/OrButtonV3/props.js +0 -21
  738. package/dist/bundled/v3/components/OrButtonV3/styles.d.ts +0 -4
  739. package/dist/bundled/v3/components/OrButtonV3/styles.js +0 -75
  740. package/dist/bundled/v3/components/OrCard/OrCard.js +0 -21
  741. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +0 -18
  742. package/dist/bundled/v3/components/OrCard/index.d.ts +0 -1
  743. package/dist/bundled/v3/components/OrCard/index.js +0 -1
  744. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +0 -88
  745. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +0 -86
  746. package/dist/bundled/v3/components/OrCardCollection/constants.d.ts +0 -4
  747. package/dist/bundled/v3/components/OrCardCollection/constants.js +0 -7
  748. package/dist/bundled/v3/components/OrCardCollection/index.d.ts +0 -3
  749. package/dist/bundled/v3/components/OrCardCollection/index.js +0 -2
  750. package/dist/bundled/v3/components/OrCardCollection/types.d.ts +0 -8
  751. package/dist/bundled/v3/components/OrCardCollection/types.js +0 -1
  752. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +0 -65
  753. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +0 -93
  754. package/dist/bundled/v3/components/OrCardCollectionV3/index.d.ts +0 -3
  755. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +0 -2
  756. package/dist/bundled/v3/components/OrCardCollectionV3/props.d.ts +0 -8
  757. package/dist/bundled/v3/components/OrCardCollectionV3/props.js +0 -16
  758. package/dist/bundled/v3/components/OrCardCollectionV3/styles.d.ts +0 -6
  759. package/dist/bundled/v3/components/OrCardCollectionV3/styles.js +0 -38
  760. package/dist/bundled/v3/components/OrCardCollectionV3/types.d.ts +0 -8
  761. package/dist/bundled/v3/components/OrCardCollectionV3/types.js +0 -1
  762. package/dist/bundled/v3/components/OrCardV3/OrCard.js +0 -15
  763. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +0 -37
  764. package/dist/bundled/v3/components/OrCardV3/index.d.ts +0 -2
  765. package/dist/bundled/v3/components/OrCardV3/index.js +0 -2
  766. package/dist/bundled/v3/components/OrCardV3/props.d.ts +0 -5
  767. package/dist/bundled/v3/components/OrCardV3/props.js +0 -8
  768. package/dist/bundled/v3/components/OrCardV3/styles.d.ts +0 -4
  769. package/dist/bundled/v3/components/OrCardV3/styles.js +0 -27
  770. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +0 -68
  771. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +0 -73
  772. package/dist/bundled/v3/components/OrCheckbox/index.d.ts +0 -1
  773. package/dist/bundled/v3/components/OrCheckbox/index.js +0 -1
  774. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +0 -33
  775. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +0 -73
  776. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.d.ts +0 -1
  777. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +0 -1
  778. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +0 -64
  779. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +0 -65
  780. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.d.ts +0 -2
  781. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +0 -1
  782. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.d.ts +0 -2
  783. package/dist/bundled/v3/components/OrCheckboxTreeV3/styles.js +0 -10
  784. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.d.ts +0 -8
  785. package/dist/bundled/v3/components/OrCheckboxTreeV3/types.js +0 -1
  786. package/dist/bundled/v3/components/OrCheckboxTreeV3/utils/extractChildrenValues.d.ts +0 -2
  787. package/dist/bundled/v3/components/OrCheckboxTreeV3/utils/extractChildrenValues.js +0 -19
  788. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +0 -47
  789. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +0 -90
  790. package/dist/bundled/v3/components/OrCheckboxV3/index.d.ts +0 -1
  791. package/dist/bundled/v3/components/OrCheckboxV3/index.js +0 -1
  792. package/dist/bundled/v3/components/OrCheckboxV3/styles.d.ts +0 -3
  793. package/dist/bundled/v3/components/OrCheckboxV3/styles.js +0 -31
  794. package/dist/bundled/v3/components/OrChip/OrChip.js +0 -29
  795. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +0 -42
  796. package/dist/bundled/v3/components/OrChip/index.d.ts +0 -1
  797. package/dist/bundled/v3/components/OrChip/index.js +0 -1
  798. package/dist/bundled/v3/components/OrChips/OrChips.js +0 -49
  799. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +0 -69
  800. package/dist/bundled/v3/components/OrChips/constants.d.ts +0 -9
  801. package/dist/bundled/v3/components/OrChips/constants.js +0 -10
  802. package/dist/bundled/v3/components/OrChips/index.d.ts +0 -2
  803. package/dist/bundled/v3/components/OrChips/index.js +0 -2
  804. package/dist/bundled/v3/components/OrCode/OrCode.js +0 -91
  805. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +0 -168
  806. package/dist/bundled/v3/components/OrCode/constants.d.ts +0 -8
  807. package/dist/bundled/v3/components/OrCode/constants.js +0 -11
  808. package/dist/bundled/v3/components/OrCode/index.d.ts +0 -3
  809. package/dist/bundled/v3/components/OrCode/index.js +0 -7
  810. package/dist/bundled/v3/components/OrCode/lang.d.ts +0 -11
  811. package/dist/bundled/v3/components/OrCode/lang.js +0 -27
  812. package/dist/bundled/v3/components/OrCode/libs.d.ts +0 -5
  813. package/dist/bundled/v3/components/OrCode/libs.js +0 -5
  814. package/dist/bundled/v3/components/OrCode/theme.d.ts +0 -24
  815. package/dist/bundled/v3/components/OrCode/theme.js +0 -189
  816. package/dist/bundled/v3/components/OrCodeV3/OrCode.js +0 -57
  817. package/dist/bundled/v3/components/OrCodeV3/OrCode.vue.d.ts +0 -131
  818. package/dist/bundled/v3/components/OrCodeV3/index.d.ts +0 -3
  819. package/dist/bundled/v3/components/OrCodeV3/index.js +0 -7
  820. package/dist/bundled/v3/components/OrCodeV3/libs.d.ts +0 -6
  821. package/dist/bundled/v3/components/OrCodeV3/libs.js +0 -5
  822. package/dist/bundled/v3/components/OrCodeV3/props.d.ts +0 -8
  823. package/dist/bundled/v3/components/OrCodeV3/props.js +0 -11
  824. package/dist/bundled/v3/components/OrCodeV3/styles.d.ts +0 -4
  825. package/dist/bundled/v3/components/OrCodeV3/styles.js +0 -28
  826. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +0 -36
  827. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +0 -53
  828. package/dist/bundled/v3/components/OrCollapse/index.d.ts +0 -1
  829. package/dist/bundled/v3/components/OrCollapse/index.js +0 -1
  830. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +0 -76
  831. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +0 -48
  832. package/dist/bundled/v3/components/OrColorPicker/constants.d.ts +0 -575
  833. package/dist/bundled/v3/components/OrColorPicker/constants.js +0 -323
  834. package/dist/bundled/v3/components/OrColorPicker/index.d.ts +0 -3
  835. package/dist/bundled/v3/components/OrColorPicker/index.js +0 -2
  836. package/dist/bundled/v3/components/OrColorPicker/types.d.ts +0 -1
  837. package/dist/bundled/v3/components/OrColorPicker/types.js +0 -1
  838. package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.d.ts +0 -2
  839. package/dist/bundled/v3/components/OrColorPicker/utils/defultPalette.js +0 -16
  840. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.js +0 -54
  841. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +0 -83
  842. package/dist/bundled/v3/components/OrCombinedInputV3/index.d.ts +0 -2
  843. package/dist/bundled/v3/components/OrCombinedInputV3/index.js +0 -2
  844. package/dist/bundled/v3/components/OrCombinedInputV3/props.d.ts +0 -1
  845. package/dist/bundled/v3/components/OrCombinedInputV3/props.js +0 -1
  846. package/dist/bundled/v3/components/OrCombinedInputV3/styles.d.ts +0 -2
  847. package/dist/bundled/v3/components/OrCombinedInputV3/styles.js +0 -16
  848. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +0 -60
  849. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +0 -176
  850. package/dist/bundled/v3/components/OrConfirm/index.d.ts +0 -1
  851. package/dist/bundled/v3/components/OrConfirm/index.js +0 -1
  852. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +0 -67
  853. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +0 -138
  854. package/dist/bundled/v3/components/OrConfirmV3/index.d.ts +0 -2
  855. package/dist/bundled/v3/components/OrConfirmV3/index.js +0 -2
  856. package/dist/bundled/v3/components/OrConfirmV3/props.d.ts +0 -4
  857. package/dist/bundled/v3/components/OrConfirmV3/props.js +0 -7
  858. package/dist/bundled/v3/components/OrConfirmV3/styles.d.ts +0 -7
  859. package/dist/bundled/v3/components/OrConfirmV3/styles.js +0 -47
  860. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.js +0 -20
  861. package/dist/bundled/v3/components/OrContextMenuV3/OrContextMenu.vue.d.ts +0 -45
  862. package/dist/bundled/v3/components/OrContextMenuV3/index.d.ts +0 -2
  863. package/dist/bundled/v3/components/OrContextMenuV3/index.js +0 -2
  864. package/dist/bundled/v3/components/OrContextMenuV3/props.d.ts +0 -2
  865. package/dist/bundled/v3/components/OrContextMenuV3/props.js +0 -1
  866. package/dist/bundled/v3/components/OrDateFormatV3/OrDateFormat.js +0 -13
  867. package/dist/bundled/v3/components/OrDateFormatV3/OrDateFormat.vue.d.ts +0 -28
  868. package/dist/bundled/v3/components/OrDateFormatV3/index.d.ts +0 -1
  869. package/dist/bundled/v3/components/OrDateFormatV3/index.js +0 -1
  870. package/dist/bundled/v3/components/OrDateFormatV3/styles.d.ts +0 -1
  871. package/dist/bundled/v3/components/OrDateFormatV3/styles.js +0 -5
  872. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +0 -131
  873. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +0 -263
  874. package/dist/bundled/v3/components/OrDatePickerV3/index.d.ts +0 -2
  875. package/dist/bundled/v3/components/OrDatePickerV3/index.js +0 -2
  876. package/dist/bundled/v3/components/OrDatePickerV3/props.d.ts +0 -1
  877. package/dist/bundled/v3/components/OrDatePickerV3/props.js +0 -1
  878. package/dist/bundled/v3/components/OrDatePickerV3/styles.d.ts +0 -2
  879. package/dist/bundled/v3/components/OrDatePickerV3/styles.js +0 -10
  880. package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.js +0 -165
  881. package/dist/bundled/v3/components/OrDateRangePickerV3/OrDateRangePicker.vue.d.ts +0 -553
  882. package/dist/bundled/v3/components/OrDateRangePickerV3/index.d.ts +0 -2
  883. package/dist/bundled/v3/components/OrDateRangePickerV3/index.js +0 -2
  884. package/dist/bundled/v3/components/OrDateRangePickerV3/props.d.ts +0 -1
  885. package/dist/bundled/v3/components/OrDateRangePickerV3/props.js +0 -1
  886. package/dist/bundled/v3/components/OrDateRangePickerV3/styles.d.ts +0 -2
  887. package/dist/bundled/v3/components/OrDateRangePickerV3/styles.js +0 -10
  888. package/dist/bundled/v3/components/OrDateTimeFormatV3/OrDateTimeFormat.js +0 -13
  889. package/dist/bundled/v3/components/OrDateTimeFormatV3/OrDateTimeFormat.vue.d.ts +0 -39
  890. package/dist/bundled/v3/components/OrDateTimeFormatV3/index.d.ts +0 -1
  891. package/dist/bundled/v3/components/OrDateTimeFormatV3/index.js +0 -1
  892. package/dist/bundled/v3/components/OrDateTimeFormatV3/styles.d.ts +0 -1
  893. package/dist/bundled/v3/components/OrDateTimeFormatV3/styles.js +0 -5
  894. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +0 -228
  895. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +0 -270
  896. package/dist/bundled/v3/components/OrDateTimePicker/constants.d.ts +0 -24
  897. package/dist/bundled/v3/components/OrDateTimePicker/constants.js +0 -20
  898. package/dist/bundled/v3/components/OrDateTimePicker/index.d.ts +0 -2
  899. package/dist/bundled/v3/components/OrDateTimePicker/index.js +0 -2
  900. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +0 -193
  901. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +0 -296
  902. package/dist/bundled/v3/components/OrDateTimePickerV3/index.d.ts +0 -5
  903. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +0 -12
  904. package/dist/bundled/v3/components/OrDateTimePickerV3/props.d.ts +0 -6
  905. package/dist/bundled/v3/components/OrDateTimePickerV3/props.js +0 -10
  906. package/dist/bundled/v3/components/OrDateTimePickerV3/styles.d.ts +0 -3
  907. package/dist/bundled/v3/components/OrDateTimePickerV3/styles.js +0 -11
  908. package/dist/bundled/v3/components/OrDateTimePickerV3/types.d.ts +0 -3
  909. package/dist/bundled/v3/components/OrDateTimePickerV3/types.js +0 -1
  910. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatDate.d.ts +0 -1
  911. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatDate.js +0 -8
  912. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatTime.d.ts +0 -2
  913. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/formatTime.js +0 -11
  914. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getCurrentDate.d.ts +0 -1
  915. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getCurrentDate.js +0 -6
  916. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getDatePlaceholder.d.ts +0 -1
  917. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getDatePlaceholder.js +0 -9
  918. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.d.ts +0 -1
  919. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getNextMonthDate.js +0 -6
  920. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getTimePlaceholder.d.ts +0 -2
  921. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/getTimePlaceholder.js +0 -12
  922. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.d.ts +0 -6
  923. package/dist/bundled/v3/components/OrDateTimePickerV3/utils/index.js +0 -6
  924. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.js +0 -26
  925. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +0 -86
  926. package/dist/bundled/v3/components/OrEmptyStateV3/index.d.ts +0 -3
  927. package/dist/bundled/v3/components/OrEmptyStateV3/index.js +0 -2
  928. package/dist/bundled/v3/components/OrEmptyStateV3/props.d.ts +0 -4
  929. package/dist/bundled/v3/components/OrEmptyStateV3/props.js +0 -7
  930. package/dist/bundled/v3/components/OrEmptyStateV3/styles.d.ts +0 -10
  931. package/dist/bundled/v3/components/OrEmptyStateV3/styles.js +0 -46
  932. package/dist/bundled/v3/components/OrEmptyStateV3/types.d.ts +0 -2
  933. package/dist/bundled/v3/components/OrEmptyStateV3/types.js +0 -1
  934. package/dist/bundled/v3/components/OrError/OrError.js +0 -18
  935. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +0 -15
  936. package/dist/bundled/v3/components/OrError/index.d.ts +0 -1
  937. package/dist/bundled/v3/components/OrError/index.js +0 -1
  938. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.js +0 -20
  939. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +0 -5
  940. package/dist/bundled/v3/components/OrErrorTagV3/index.d.ts +0 -1
  941. package/dist/bundled/v3/components/OrErrorTagV3/index.js +0 -1
  942. package/dist/bundled/v3/components/OrErrorTagV3/styles.d.ts +0 -1
  943. package/dist/bundled/v3/components/OrErrorTagV3/styles.js +0 -15
  944. package/dist/bundled/v3/components/OrErrorV3/OrError.js +0 -19
  945. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +0 -19
  946. package/dist/bundled/v3/components/OrErrorV3/index.d.ts +0 -1
  947. package/dist/bundled/v3/components/OrErrorV3/index.js +0 -1
  948. package/dist/bundled/v3/components/OrErrorV3/styles.d.ts +0 -3
  949. package/dist/bundled/v3/components/OrErrorV3/styles.js +0 -19
  950. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +0 -34
  951. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +0 -73
  952. package/dist/bundled/v3/components/OrExpansionPanelV3/index.d.ts +0 -2
  953. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +0 -2
  954. package/dist/bundled/v3/components/OrExpansionPanelV3/props.d.ts +0 -13
  955. package/dist/bundled/v3/components/OrExpansionPanelV3/props.js +0 -18
  956. package/dist/bundled/v3/components/OrExpansionPanelV3/styles.d.ts +0 -7
  957. package/dist/bundled/v3/components/OrExpansionPanelV3/styles.js +0 -69
  958. package/dist/bundled/v3/components/OrFabV3/OrFab.js +0 -22
  959. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +0 -37
  960. package/dist/bundled/v3/components/OrFabV3/index.d.ts +0 -2
  961. package/dist/bundled/v3/components/OrFabV3/index.js +0 -2
  962. package/dist/bundled/v3/components/OrFabV3/props.d.ts +0 -4
  963. package/dist/bundled/v3/components/OrFabV3/props.js +0 -7
  964. package/dist/bundled/v3/components/OrFabV3/styles.d.ts +0 -3
  965. package/dist/bundled/v3/components/OrFabV3/styles.js +0 -19
  966. package/dist/bundled/v3/components/OrFloating/OrFloating.js +0 -24
  967. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +0 -123
  968. package/dist/bundled/v3/components/OrFloating/constants.d.ts +0 -18
  969. package/dist/bundled/v3/components/OrFloating/constants.js +0 -22
  970. package/dist/bundled/v3/components/OrFloating/index.d.ts +0 -2
  971. package/dist/bundled/v3/components/OrFloating/index.js +0 -2
  972. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.js +0 -46
  973. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +0 -67
  974. package/dist/bundled/v3/components/OrFormGroupV3/index.d.ts +0 -2
  975. package/dist/bundled/v3/components/OrFormGroupV3/index.js +0 -2
  976. package/dist/bundled/v3/components/OrFormGroupV3/props.d.ts +0 -4
  977. package/dist/bundled/v3/components/OrFormGroupV3/props.js +0 -7
  978. package/dist/bundled/v3/components/OrFormGroupV3/styles.d.ts +0 -5
  979. package/dist/bundled/v3/components/OrFormGroupV3/styles.js +0 -17
  980. package/dist/bundled/v3/components/OrHint/OrHint.js +0 -18
  981. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +0 -17
  982. package/dist/bundled/v3/components/OrHint/index.d.ts +0 -1
  983. package/dist/bundled/v3/components/OrHint/index.js +0 -1
  984. package/dist/bundled/v3/components/OrHintV3/OrHint.js +0 -19
  985. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +0 -19
  986. package/dist/bundled/v3/components/OrHintV3/index.d.ts +0 -1
  987. package/dist/bundled/v3/components/OrHintV3/index.js +0 -1
  988. package/dist/bundled/v3/components/OrHintV3/styles.d.ts +0 -3
  989. package/dist/bundled/v3/components/OrHintV3/styles.js +0 -19
  990. package/dist/bundled/v3/components/OrIcon/OrIcon.js +0 -44
  991. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +0 -95
  992. package/dist/bundled/v3/components/OrIcon/constants.d.ts +0 -20
  993. package/dist/bundled/v3/components/OrIcon/constants.js +0 -24
  994. package/dist/bundled/v3/components/OrIcon/index.d.ts +0 -2
  995. package/dist/bundled/v3/components/OrIcon/index.js +0 -2
  996. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +0 -43
  997. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +0 -106
  998. package/dist/bundled/v3/components/OrIconButtonV2/index.d.ts +0 -1
  999. package/dist/bundled/v3/components/OrIconButtonV2/index.js +0 -1
  1000. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +0 -34
  1001. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +0 -82
  1002. package/dist/bundled/v3/components/OrIconButtonV3/index.d.ts +0 -2
  1003. package/dist/bundled/v3/components/OrIconButtonV3/index.js +0 -3
  1004. package/dist/bundled/v3/components/OrIconButtonV3/props.d.ts +0 -7
  1005. package/dist/bundled/v3/components/OrIconButtonV3/props.js +0 -11
  1006. package/dist/bundled/v3/components/OrIconButtonV3/styles.d.ts +0 -3
  1007. package/dist/bundled/v3/components/OrIconButtonV3/styles.js +0 -72
  1008. package/dist/bundled/v3/components/OrIconV3/OrIcon.js +0 -13
  1009. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +0 -36
  1010. package/dist/bundled/v3/components/OrIconV3/index.d.ts +0 -2
  1011. package/dist/bundled/v3/components/OrIconV3/index.js +0 -2
  1012. package/dist/bundled/v3/components/OrIconV3/props.d.ts +0 -13
  1013. package/dist/bundled/v3/components/OrIconV3/props.js +0 -17
  1014. package/dist/bundled/v3/components/OrIconV3/styles.d.ts +0 -4
  1015. package/dist/bundled/v3/components/OrIconV3/styles.js +0 -44
  1016. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.js +0 -15
  1017. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +0 -28
  1018. package/dist/bundled/v3/components/OrInlineInputBoxV3/index.d.ts +0 -2
  1019. package/dist/bundled/v3/components/OrInlineInputBoxV3/index.js +0 -2
  1020. package/dist/bundled/v3/components/OrInlineInputBoxV3/props.d.ts +0 -4
  1021. package/dist/bundled/v3/components/OrInlineInputBoxV3/props.js +0 -7
  1022. package/dist/bundled/v3/components/OrInlineInputBoxV3/styles.d.ts +0 -3
  1023. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +0 -85
  1024. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +0 -106
  1025. package/dist/bundled/v3/components/OrInlineInputV3/index.d.ts +0 -2
  1026. package/dist/bundled/v3/components/OrInlineInputV3/index.js +0 -3
  1027. package/dist/bundled/v3/components/OrInlineInputV3/props.d.ts +0 -5
  1028. package/dist/bundled/v3/components/OrInlineInputV3/props.js +0 -9
  1029. package/dist/bundled/v3/components/OrInlineInputV3/styles.d.ts +0 -5
  1030. package/dist/bundled/v3/components/OrInlineInputV3/styles.js +0 -29
  1031. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +0 -116
  1032. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +0 -157
  1033. package/dist/bundled/v3/components/OrInlineTextEdit/constants.d.ts +0 -9
  1034. package/dist/bundled/v3/components/OrInlineTextEdit/constants.js +0 -13
  1035. package/dist/bundled/v3/components/OrInlineTextEdit/index.d.ts +0 -2
  1036. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +0 -2
  1037. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +0 -84
  1038. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +0 -86
  1039. package/dist/bundled/v3/components/OrInlineTextareaV3/index.d.ts +0 -1
  1040. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +0 -1
  1041. package/dist/bundled/v3/components/OrInlineTextareaV3/styles.d.ts +0 -3
  1042. package/dist/bundled/v3/components/OrInlineTextareaV3/styles.js +0 -21
  1043. package/dist/bundled/v3/components/OrInput/OrInput.js +0 -117
  1044. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +0 -153
  1045. package/dist/bundled/v3/components/OrInput/index.d.ts +0 -1
  1046. package/dist/bundled/v3/components/OrInput/index.js +0 -1
  1047. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +0 -27
  1048. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +0 -55
  1049. package/dist/bundled/v3/components/OrInputBoxV3/index.d.ts +0 -2
  1050. package/dist/bundled/v3/components/OrInputBoxV3/index.js +0 -2
  1051. package/dist/bundled/v3/components/OrInputBoxV3/props.d.ts +0 -8
  1052. package/dist/bundled/v3/components/OrInputBoxV3/props.js +0 -12
  1053. package/dist/bundled/v3/components/OrInputBoxV3/styles.d.ts +0 -4
  1054. package/dist/bundled/v3/components/OrInputBoxV3/styles.js +0 -49
  1055. package/dist/bundled/v3/components/OrInputV3/OrInput.js +0 -121
  1056. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +0 -156
  1057. package/dist/bundled/v3/components/OrInputV3/index.d.ts +0 -2
  1058. package/dist/bundled/v3/components/OrInputV3/index.js +0 -3
  1059. package/dist/bundled/v3/components/OrInputV3/props.d.ts +0 -7
  1060. package/dist/bundled/v3/components/OrInputV3/props.js +0 -11
  1061. package/dist/bundled/v3/components/OrInputV3/styles.d.ts +0 -2
  1062. package/dist/bundled/v3/components/OrInputV3/styles.js +0 -14
  1063. package/dist/bundled/v3/components/OrLabel/OrLabel.js +0 -21
  1064. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +0 -32
  1065. package/dist/bundled/v3/components/OrLabel/index.d.ts +0 -1
  1066. package/dist/bundled/v3/components/OrLabel/index.js +0 -1
  1067. package/dist/bundled/v3/components/OrLabelV3/OrLabel.js +0 -24
  1068. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +0 -57
  1069. package/dist/bundled/v3/components/OrLabelV3/index.d.ts +0 -2
  1070. package/dist/bundled/v3/components/OrLabelV3/index.js +0 -2
  1071. package/dist/bundled/v3/components/OrLabelV3/props.d.ts +0 -5
  1072. package/dist/bundled/v3/components/OrLabelV3/props.js +0 -8
  1073. package/dist/bundled/v3/components/OrLabelV3/styles.d.ts +0 -5
  1074. package/dist/bundled/v3/components/OrLabelV3/styles.js +0 -38
  1075. package/dist/bundled/v3/components/OrLinkV3/OrLink.js +0 -20
  1076. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +0 -63
  1077. package/dist/bundled/v3/components/OrLinkV3/index.d.ts +0 -2
  1078. package/dist/bundled/v3/components/OrLinkV3/index.js +0 -2
  1079. package/dist/bundled/v3/components/OrLinkV3/props.d.ts +0 -7
  1080. package/dist/bundled/v3/components/OrLinkV3/props.js +0 -10
  1081. package/dist/bundled/v3/components/OrLinkV3/styles.d.ts +0 -3
  1082. package/dist/bundled/v3/components/OrLinkV3/styles.js +0 -32
  1083. package/dist/bundled/v3/components/OrList/OrList.js +0 -84
  1084. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +0 -125
  1085. package/dist/bundled/v3/components/OrList/index.d.ts +0 -1
  1086. package/dist/bundled/v3/components/OrList/index.js +0 -1
  1087. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +0 -91
  1088. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +0 -95
  1089. package/dist/bundled/v3/components/OrListOfInputs/index.d.ts +0 -1
  1090. package/dist/bundled/v3/components/OrListOfInputs/index.js +0 -1
  1091. package/dist/bundled/v3/components/OrListV3/OrList.js +0 -63
  1092. package/dist/bundled/v3/components/OrListV3/OrList.vue.d.ts +0 -96
  1093. package/dist/bundled/v3/components/OrListV3/index.d.ts +0 -3
  1094. package/dist/bundled/v3/components/OrListV3/index.js +0 -1
  1095. package/dist/bundled/v3/components/OrListV3/styles.d.ts +0 -2
  1096. package/dist/bundled/v3/components/OrListV3/styles.js +0 -8
  1097. package/dist/bundled/v3/components/OrListV3/types.d.ts +0 -4
  1098. package/dist/bundled/v3/components/OrListV3/types.js +0 -1
  1099. package/dist/bundled/v3/components/OrLoader/OrLoader.js +0 -43
  1100. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +0 -57
  1101. package/dist/bundled/v3/components/OrLoader/constants.d.ts +0 -6
  1102. package/dist/bundled/v3/components/OrLoader/constants.js +0 -8
  1103. package/dist/bundled/v3/components/OrLoader/index.d.ts +0 -2
  1104. package/dist/bundled/v3/components/OrLoader/index.js +0 -2
  1105. package/dist/bundled/v3/components/OrLoader/types.d.ts +0 -3
  1106. package/dist/bundled/v3/components/OrLoader/types.js +0 -1
  1107. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +0 -65
  1108. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +0 -75
  1109. package/dist/bundled/v3/components/OrLoaderV3/index.d.ts +0 -2
  1110. package/dist/bundled/v3/components/OrLoaderV3/index.js +0 -2
  1111. package/dist/bundled/v3/components/OrLoaderV3/props.d.ts +0 -13
  1112. package/dist/bundled/v3/components/OrLoaderV3/props.js +0 -18
  1113. package/dist/bundled/v3/components/OrLoaderV3/styles.d.ts +0 -6
  1114. package/dist/bundled/v3/components/OrLoaderV3/styles.js +0 -17
  1115. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.js +0 -28
  1116. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +0 -40
  1117. package/dist/bundled/v3/components/OrMenuItemV3/index.d.ts +0 -1
  1118. package/dist/bundled/v3/components/OrMenuItemV3/index.js +0 -1
  1119. package/dist/bundled/v3/components/OrMenuItemV3/styles.d.ts +0 -1
  1120. package/dist/bundled/v3/components/OrMenuItemV3/styles.js +0 -21
  1121. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +0 -29
  1122. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +0 -66
  1123. package/dist/bundled/v3/components/OrMenuV3/index.d.ts +0 -2
  1124. package/dist/bundled/v3/components/OrMenuV3/index.js +0 -2
  1125. package/dist/bundled/v3/components/OrMenuV3/props.d.ts +0 -2
  1126. package/dist/bundled/v3/components/OrMenuV3/props.js +0 -1
  1127. package/dist/bundled/v3/components/OrMenuV3/styles.d.ts +0 -1
  1128. package/dist/bundled/v3/components/OrMenuV3/styles.js +0 -7
  1129. package/dist/bundled/v3/components/OrModal/OrModal.js +0 -52
  1130. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +0 -85
  1131. package/dist/bundled/v3/components/OrModal/constants.d.ts +0 -7
  1132. package/dist/bundled/v3/components/OrModal/constants.js +0 -10
  1133. package/dist/bundled/v3/components/OrModal/index.d.ts +0 -2
  1134. package/dist/bundled/v3/components/OrModal/index.js +0 -2
  1135. package/dist/bundled/v3/components/OrModalV3/OrModal.js +0 -40
  1136. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +0 -44
  1137. package/dist/bundled/v3/components/OrModalV3/index.d.ts +0 -2
  1138. package/dist/bundled/v3/components/OrModalV3/index.js +0 -2
  1139. package/dist/bundled/v3/components/OrModalV3/props.d.ts +0 -5
  1140. package/dist/bundled/v3/components/OrModalV3/props.js +0 -8
  1141. package/dist/bundled/v3/components/OrModalV3/styles.d.ts +0 -3
  1142. package/dist/bundled/v3/components/OrModalV3/styles.js +0 -30
  1143. package/dist/bundled/v3/components/OrNotification/OrNotification.js +0 -36
  1144. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +0 -65
  1145. package/dist/bundled/v3/components/OrNotification/constants.d.ts +0 -10
  1146. package/dist/bundled/v3/components/OrNotification/constants.js +0 -14
  1147. package/dist/bundled/v3/components/OrNotification/index.d.ts +0 -2
  1148. package/dist/bundled/v3/components/OrNotification/index.js +0 -2
  1149. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +0 -28
  1150. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +0 -30
  1151. package/dist/bundled/v3/components/OrNotificationV3/index.d.ts +0 -2
  1152. package/dist/bundled/v3/components/OrNotificationV3/index.js +0 -2
  1153. package/dist/bundled/v3/components/OrNotificationV3/props.d.ts +0 -6
  1154. package/dist/bundled/v3/components/OrNotificationV3/props.js +0 -9
  1155. package/dist/bundled/v3/components/OrNotificationV3/styles.d.ts +0 -5
  1156. package/dist/bundled/v3/components/OrNotificationV3/styles.js +0 -54
  1157. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +0 -60
  1158. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +0 -139
  1159. package/dist/bundled/v3/components/OrNumberInput/index.d.ts +0 -1
  1160. package/dist/bundled/v3/components/OrNumberInput/index.js +0 -1
  1161. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +0 -57
  1162. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +0 -62
  1163. package/dist/bundled/v3/components/OrOverflowMenu/index.d.ts +0 -2
  1164. package/dist/bundled/v3/components/OrOverflowMenu/index.js +0 -1
  1165. package/dist/bundled/v3/components/OrOverflowMenu/types.d.ts +0 -7
  1166. package/dist/bundled/v3/components/OrOverflowMenu/types.js +0 -1
  1167. package/dist/bundled/v3/components/OrOverlay/OrOverlay.js +0 -17
  1168. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +0 -40
  1169. package/dist/bundled/v3/components/OrOverlay/index.d.ts +0 -1
  1170. package/dist/bundled/v3/components/OrOverlay/index.js +0 -1
  1171. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +0 -21
  1172. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +0 -17
  1173. package/dist/bundled/v3/components/OrOverlayV3/index.d.ts +0 -1
  1174. package/dist/bundled/v3/components/OrOverlayV3/index.js +0 -1
  1175. package/dist/bundled/v3/components/OrOverlayV3/styles.d.ts +0 -1
  1176. package/dist/bundled/v3/components/OrOverlayV3/styles.js +0 -9
  1177. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +0 -107
  1178. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +0 -57
  1179. package/dist/bundled/v3/components/OrPaginationV3/index.d.ts +0 -2
  1180. package/dist/bundled/v3/components/OrPaginationV3/index.js +0 -1
  1181. package/dist/bundled/v3/components/OrPaginationV3/styles.d.ts +0 -4
  1182. package/dist/bundled/v3/components/OrPaginationV3/styles.js +0 -26
  1183. package/dist/bundled/v3/components/OrPaginationV3/types.d.ts +0 -4
  1184. package/dist/bundled/v3/components/OrPaginationV3/types.js +0 -1
  1185. package/dist/bundled/v3/components/OrPassword/OrPassword.js +0 -68
  1186. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +0 -117
  1187. package/dist/bundled/v3/components/OrPassword/index.d.ts +0 -1
  1188. package/dist/bundled/v3/components/OrPassword/index.js +0 -1
  1189. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +0 -39
  1190. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +0 -115
  1191. package/dist/bundled/v3/components/OrPopoverV3/hooks/types.d.ts +0 -77
  1192. package/dist/bundled/v3/components/OrPopoverV3/hooks/types.js +0 -1
  1193. package/dist/bundled/v3/components/OrPopoverV3/hooks/useFloating.d.ts +0 -4
  1194. package/dist/bundled/v3/components/OrPopoverV3/hooks/useFloating.js +0 -137
  1195. package/dist/bundled/v3/components/OrPopoverV3/index.d.ts +0 -2
  1196. package/dist/bundled/v3/components/OrPopoverV3/index.js +0 -2
  1197. package/dist/bundled/v3/components/OrPopoverV3/props.d.ts +0 -21
  1198. package/dist/bundled/v3/components/OrPopoverV3/props.js +0 -23
  1199. package/dist/bundled/v3/components/OrPopoverV3/styles.d.ts +0 -4
  1200. package/dist/bundled/v3/components/OrPopoverV3/styles.js +0 -46
  1201. package/dist/bundled/v3/components/OrProgress/OrProgress.js +0 -63
  1202. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +0 -122
  1203. package/dist/bundled/v3/components/OrProgress/constants.d.ts +0 -11
  1204. package/dist/bundled/v3/components/OrProgress/constants.js +0 -15
  1205. package/dist/bundled/v3/components/OrProgress/index.d.ts +0 -2
  1206. package/dist/bundled/v3/components/OrProgress/index.js +0 -2
  1207. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +0 -78
  1208. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +0 -105
  1209. package/dist/bundled/v3/components/OrProgressV3/index.d.ts +0 -2
  1210. package/dist/bundled/v3/components/OrProgressV3/index.js +0 -2
  1211. package/dist/bundled/v3/components/OrProgressV3/props.d.ts +0 -11
  1212. package/dist/bundled/v3/components/OrProgressV3/props.js +0 -15
  1213. package/dist/bundled/v3/components/OrProgressV3/styles.d.ts +0 -11
  1214. package/dist/bundled/v3/components/OrProgressV3/styles.js +0 -63
  1215. package/dist/bundled/v3/components/OrRadio/OrRadio.js +0 -34
  1216. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +0 -68
  1217. package/dist/bundled/v3/components/OrRadio/index.d.ts +0 -1
  1218. package/dist/bundled/v3/components/OrRadio/index.js +0 -1
  1219. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.js +0 -18
  1220. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +0 -64
  1221. package/dist/bundled/v3/components/OrRadioGroup/index.d.ts +0 -1
  1222. package/dist/bundled/v3/components/OrRadioGroup/index.js +0 -1
  1223. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +0 -32
  1224. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +0 -83
  1225. package/dist/bundled/v3/components/OrRadioGroupV3/index.d.ts +0 -1
  1226. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +0 -1
  1227. package/dist/bundled/v3/components/OrRadioV3/OrRadio.js +0 -42
  1228. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +0 -78
  1229. package/dist/bundled/v3/components/OrRadioV3/index.d.ts +0 -1
  1230. package/dist/bundled/v3/components/OrRadioV3/index.js +0 -1
  1231. package/dist/bundled/v3/components/OrRadioV3/styles.d.ts +0 -3
  1232. package/dist/bundled/v3/components/OrRadioV3/styles.js +0 -31
  1233. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.js +0 -71
  1234. package/dist/bundled/v3/components/OrRangeSliderV3/OrRangeSlider.vue.d.ts +0 -96
  1235. package/dist/bundled/v3/components/OrRangeSliderV3/index.d.ts +0 -2
  1236. package/dist/bundled/v3/components/OrRangeSliderV3/index.js +0 -2
  1237. package/dist/bundled/v3/components/OrRangeSliderV3/props.d.ts +0 -1
  1238. package/dist/bundled/v3/components/OrRangeSliderV3/props.js +0 -1
  1239. package/dist/bundled/v3/components/OrRangeSliderV3/styles.d.ts +0 -14
  1240. package/dist/bundled/v3/components/OrRangeSliderV3/styles.js +0 -97
  1241. package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.js +0 -39
  1242. package/dist/bundled/v3/components/OrResizeablePanelV3/OrResizeablePanel.vue.d.ts +0 -101
  1243. package/dist/bundled/v3/components/OrResizeablePanelV3/index.d.ts +0 -2
  1244. package/dist/bundled/v3/components/OrResizeablePanelV3/index.js +0 -2
  1245. package/dist/bundled/v3/components/OrResizeablePanelV3/props.d.ts +0 -12
  1246. package/dist/bundled/v3/components/OrResizeablePanelV3/props.js +0 -16
  1247. package/dist/bundled/v3/components/OrResizeablePanelV3/styles.d.ts +0 -13
  1248. package/dist/bundled/v3/components/OrResizeablePanelV3/styles.js +0 -186
  1249. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +0 -202
  1250. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +0 -119
  1251. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +0 -2
  1252. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +0 -2
  1253. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +0 -5
  1254. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +0 -7
  1255. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +0 -6
  1256. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +0 -38
  1257. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +0 -3
  1258. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +0 -42
  1259. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +0 -27
  1260. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +0 -183
  1261. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +0 -1
  1262. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +0 -1
  1263. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +0 -17
  1264. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +0 -199
  1265. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +0 -19
  1266. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +0 -1
  1267. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +0 -3
  1268. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +0 -2
  1269. package/dist/bundled/v3/components/OrSearch/OrSearch.js +0 -71
  1270. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +0 -140
  1271. package/dist/bundled/v3/components/OrSearch/index.d.ts +0 -1
  1272. package/dist/bundled/v3/components/OrSearch/index.js +0 -1
  1273. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +0 -30
  1274. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +0 -81
  1275. package/dist/bundled/v3/components/OrSearchV3/index.d.ts +0 -2
  1276. package/dist/bundled/v3/components/OrSearchV3/index.js +0 -2
  1277. package/dist/bundled/v3/components/OrSearchV3/props.d.ts +0 -1
  1278. package/dist/bundled/v3/components/OrSearchV3/props.js +0 -1
  1279. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.js +0 -26
  1280. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +0 -50
  1281. package/dist/bundled/v3/components/OrSegmentedControlV3/index.d.ts +0 -3
  1282. package/dist/bundled/v3/components/OrSegmentedControlV3/index.js +0 -2
  1283. package/dist/bundled/v3/components/OrSegmentedControlV3/props.d.ts +0 -4
  1284. package/dist/bundled/v3/components/OrSegmentedControlV3/props.js +0 -7
  1285. package/dist/bundled/v3/components/OrSegmentedControlV3/styles.d.ts +0 -3
  1286. package/dist/bundled/v3/components/OrSegmentedControlV3/styles.js +0 -15
  1287. package/dist/bundled/v3/components/OrSegmentedControlV3/types.d.ts +0 -4
  1288. package/dist/bundled/v3/components/OrSegmentedControlV3/types.js +0 -1
  1289. package/dist/bundled/v3/components/OrSelect/OrSelect.js +0 -56
  1290. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +0 -181
  1291. package/dist/bundled/v3/components/OrSelect/constants.d.ts +0 -50
  1292. package/dist/bundled/v3/components/OrSelect/constants.js +0 -50
  1293. package/dist/bundled/v3/components/OrSelect/index.d.ts +0 -2
  1294. package/dist/bundled/v3/components/OrSelect/index.js +0 -1
  1295. package/dist/bundled/v3/components/OrSelect/types.d.ts +0 -9
  1296. package/dist/bundled/v3/components/OrSelect/types.js +0 -1
  1297. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +0 -236
  1298. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +0 -213
  1299. package/dist/bundled/v3/components/OrSelectV3/index.d.ts +0 -3
  1300. package/dist/bundled/v3/components/OrSelectV3/index.js +0 -2
  1301. package/dist/bundled/v3/components/OrSelectV3/props.d.ts +0 -1
  1302. package/dist/bundled/v3/components/OrSelectV3/props.js +0 -1
  1303. package/dist/bundled/v3/components/OrSelectV3/styles.d.ts +0 -8
  1304. package/dist/bundled/v3/components/OrSelectV3/styles.js +0 -54
  1305. package/dist/bundled/v3/components/OrSelectV3/types.d.ts +0 -12
  1306. package/dist/bundled/v3/components/OrSelectV3/types.js +0 -1
  1307. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +0 -37
  1308. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +0 -63
  1309. package/dist/bundled/v3/components/OrSidebar/constants.d.ts +0 -4
  1310. package/dist/bundled/v3/components/OrSidebar/constants.js +0 -7
  1311. package/dist/bundled/v3/components/OrSidebar/index.d.ts +0 -2
  1312. package/dist/bundled/v3/components/OrSidebar/index.js +0 -2
  1313. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +0 -44
  1314. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +0 -159
  1315. package/dist/bundled/v3/components/OrSidebarV3/index.d.ts +0 -2
  1316. package/dist/bundled/v3/components/OrSidebarV3/index.js +0 -3
  1317. package/dist/bundled/v3/components/OrSidebarV3/props.d.ts +0 -9
  1318. package/dist/bundled/v3/components/OrSidebarV3/props.js +0 -9
  1319. package/dist/bundled/v3/components/OrSidebarV3/styles.d.ts +0 -8
  1320. package/dist/bundled/v3/components/OrSidebarV3/styles.js +0 -64
  1321. package/dist/bundled/v3/components/OrSkeleton/constants.d.ts +0 -9
  1322. package/dist/bundled/v3/components/OrSkeleton/constants.js +0 -12
  1323. package/dist/bundled/v3/components/OrSkeleton/index.d.ts +0 -4
  1324. package/dist/bundled/v3/components/OrSkeleton/index.js +0 -4
  1325. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.js +0 -18
  1326. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +0 -32
  1327. package/dist/bundled/v3/components/OrSkeletonCircle/index.d.ts +0 -2
  1328. package/dist/bundled/v3/components/OrSkeletonCircle/index.js +0 -2
  1329. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.js +0 -14
  1330. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +0 -36
  1331. package/dist/bundled/v3/components/OrSkeletonCircleV3/index.d.ts +0 -1
  1332. package/dist/bundled/v3/components/OrSkeletonCircleV3/index.js +0 -1
  1333. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.js +0 -18
  1334. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +0 -43
  1335. package/dist/bundled/v3/components/OrSkeletonRect/index.d.ts +0 -2
  1336. package/dist/bundled/v3/components/OrSkeletonRect/index.js +0 -2
  1337. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.js +0 -14
  1338. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +0 -45
  1339. package/dist/bundled/v3/components/OrSkeletonRectV3/index.d.ts +0 -1
  1340. package/dist/bundled/v3/components/OrSkeletonRectV3/index.js +0 -1
  1341. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +0 -23
  1342. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +0 -57
  1343. package/dist/bundled/v3/components/OrSkeletonText/index.d.ts +0 -2
  1344. package/dist/bundled/v3/components/OrSkeletonText/index.js +0 -2
  1345. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +0 -20
  1346. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +0 -72
  1347. package/dist/bundled/v3/components/OrSkeletonTextV3/index.d.ts +0 -1
  1348. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +0 -1
  1349. package/dist/bundled/v3/components/OrSkeletonV3/index.d.ts +0 -3
  1350. package/dist/bundled/v3/components/OrSkeletonV3/index.js +0 -3
  1351. package/dist/bundled/v3/components/OrSkeletonV3/styles.d.ts +0 -6
  1352. package/dist/bundled/v3/components/OrSkeletonV3/styles.js +0 -34
  1353. package/dist/bundled/v3/components/OrSlider/OrSlider.js +0 -98
  1354. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +0 -136
  1355. package/dist/bundled/v3/components/OrSlider/index.d.ts +0 -1
  1356. package/dist/bundled/v3/components/OrSlider/index.js +0 -1
  1357. package/dist/bundled/v3/components/OrSliderV3/OrSlider.js +0 -51
  1358. package/dist/bundled/v3/components/OrSliderV3/OrSlider.vue.d.ts +0 -89
  1359. package/dist/bundled/v3/components/OrSliderV3/index.d.ts +0 -2
  1360. package/dist/bundled/v3/components/OrSliderV3/index.js +0 -2
  1361. package/dist/bundled/v3/components/OrSliderV3/props.d.ts +0 -8
  1362. package/dist/bundled/v3/components/OrSliderV3/props.js +0 -12
  1363. package/dist/bundled/v3/components/OrSliderV3/styles.d.ts +0 -12
  1364. package/dist/bundled/v3/components/OrSliderV3/styles.js +0 -92
  1365. package/dist/bundled/v3/components/OrSortingV3/OrSorting.js +0 -52
  1366. package/dist/bundled/v3/components/OrSortingV3/OrSorting.vue.d.ts +0 -35
  1367. package/dist/bundled/v3/components/OrSortingV3/index.d.ts +0 -2
  1368. package/dist/bundled/v3/components/OrSortingV3/index.js +0 -1
  1369. package/dist/bundled/v3/components/OrSortingV3/styles.d.ts +0 -2
  1370. package/dist/bundled/v3/components/OrSortingV3/styles.js +0 -6
  1371. package/dist/bundled/v3/components/OrSortingV3/types.d.ts +0 -4
  1372. package/dist/bundled/v3/components/OrSortingV3/types.js +0 -1
  1373. package/dist/bundled/v3/components/OrStepper/OrStepper.js +0 -53
  1374. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +0 -79
  1375. package/dist/bundled/v3/components/OrStepper/index.d.ts +0 -1
  1376. package/dist/bundled/v3/components/OrStepper/index.js +0 -1
  1377. package/dist/bundled/v3/components/OrSwitch/OrSwitch.js +0 -49
  1378. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +0 -70
  1379. package/dist/bundled/v3/components/OrSwitch/index.d.ts +0 -1
  1380. package/dist/bundled/v3/components/OrSwitch/index.js +0 -1
  1381. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +0 -53
  1382. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +0 -89
  1383. package/dist/bundled/v3/components/OrSwitchV3/index.d.ts +0 -1
  1384. package/dist/bundled/v3/components/OrSwitchV3/index.js +0 -1
  1385. package/dist/bundled/v3/components/OrSwitchV3/styles.d.ts +0 -5
  1386. package/dist/bundled/v3/components/OrSwitchV3/styles.js +0 -51
  1387. package/dist/bundled/v3/components/OrTab/OrTab.js +0 -19
  1388. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +0 -44
  1389. package/dist/bundled/v3/components/OrTab/index.d.ts +0 -1
  1390. package/dist/bundled/v3/components/OrTab/index.js +0 -1
  1391. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.js +0 -27
  1392. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +0 -49
  1393. package/dist/bundled/v3/components/OrTabHeaderItem/index.d.ts +0 -1
  1394. package/dist/bundled/v3/components/OrTabHeaderItem/index.js +0 -1
  1395. package/dist/bundled/v3/components/OrTabV3/OrTab.js +0 -19
  1396. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +0 -21
  1397. package/dist/bundled/v3/components/OrTabV3/index.d.ts +0 -1
  1398. package/dist/bundled/v3/components/OrTabV3/index.js +0 -1
  1399. package/dist/bundled/v3/components/OrTabV3/styles.d.ts +0 -1
  1400. package/dist/bundled/v3/components/OrTabV3/styles.js +0 -19
  1401. package/dist/bundled/v3/components/OrTabs/OrTabs.js +0 -43
  1402. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +0 -13
  1403. package/dist/bundled/v3/components/OrTabs/index.d.ts +0 -1
  1404. package/dist/bundled/v3/components/OrTabs/index.js +0 -1
  1405. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +0 -65
  1406. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +0 -57
  1407. package/dist/bundled/v3/components/OrTabsV3/index.d.ts +0 -3
  1408. package/dist/bundled/v3/components/OrTabsV3/index.js +0 -2
  1409. package/dist/bundled/v3/components/OrTabsV3/props.d.ts +0 -4
  1410. package/dist/bundled/v3/components/OrTabsV3/props.js +0 -7
  1411. package/dist/bundled/v3/components/OrTabsV3/styles.d.ts +0 -5
  1412. package/dist/bundled/v3/components/OrTabsV3/styles.js +0 -31
  1413. package/dist/bundled/v3/components/OrTabsV3/types.d.ts +0 -4
  1414. package/dist/bundled/v3/components/OrTabsV3/types.js +0 -1
  1415. package/dist/bundled/v3/components/OrTag/OrTag.js +0 -33
  1416. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +0 -54
  1417. package/dist/bundled/v3/components/OrTag/index.d.ts +0 -1
  1418. package/dist/bundled/v3/components/OrTag/index.js +0 -1
  1419. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +0 -126
  1420. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +0 -150
  1421. package/dist/bundled/v3/components/OrTagInputV3/index.d.ts +0 -2
  1422. package/dist/bundled/v3/components/OrTagInputV3/index.js +0 -2
  1423. package/dist/bundled/v3/components/OrTagInputV3/props.d.ts +0 -1
  1424. package/dist/bundled/v3/components/OrTagInputV3/props.js +0 -1
  1425. package/dist/bundled/v3/components/OrTagInputV3/styles.d.ts +0 -3
  1426. package/dist/bundled/v3/components/OrTagInputV3/styles.js +0 -17
  1427. package/dist/bundled/v3/components/OrTagV3/OrTag.js +0 -32
  1428. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +0 -43
  1429. package/dist/bundled/v3/components/OrTagV3/index.d.ts +0 -2
  1430. package/dist/bundled/v3/components/OrTagV3/index.js +0 -2
  1431. package/dist/bundled/v3/components/OrTagV3/props.d.ts +0 -9
  1432. package/dist/bundled/v3/components/OrTagV3/props.js +0 -13
  1433. package/dist/bundled/v3/components/OrTagV3/styles.d.ts +0 -4
  1434. package/dist/bundled/v3/components/OrTagV3/styles.js +0 -32
  1435. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +0 -68
  1436. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +0 -66
  1437. package/dist/bundled/v3/components/OrTagsV3/index.d.ts +0 -2
  1438. package/dist/bundled/v3/components/OrTagsV3/index.js +0 -2
  1439. package/dist/bundled/v3/components/OrTagsV3/props.d.ts +0 -6
  1440. package/dist/bundled/v3/components/OrTagsV3/props.js +0 -11
  1441. package/dist/bundled/v3/components/OrTagsV3/styles.d.ts +0 -6
  1442. package/dist/bundled/v3/components/OrTagsV3/styles.js +0 -46
  1443. package/dist/bundled/v3/components/OrTagsV3/types.d.ts +0 -6
  1444. package/dist/bundled/v3/components/OrTagsV3/types.js +0 -1
  1445. package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.d.ts +0 -2
  1446. package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +0 -12
  1447. package/dist/bundled/v3/components/OrTeleport/OrTeleport.js +0 -20
  1448. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +0 -27
  1449. package/dist/bundled/v3/components/OrTeleport/constants.d.ts +0 -12
  1450. package/dist/bundled/v3/components/OrTeleport/constants.js +0 -16
  1451. package/dist/bundled/v3/components/OrTeleport/index.d.ts +0 -2
  1452. package/dist/bundled/v3/components/OrTeleport/index.js +0 -1
  1453. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.js +0 -13
  1454. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +0 -23
  1455. package/dist/bundled/v3/components/OrTeleportV3/index.d.ts +0 -1
  1456. package/dist/bundled/v3/components/OrTeleportV3/index.js +0 -1
  1457. package/dist/bundled/v3/components/OrTextV3/OrText.js +0 -17
  1458. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +0 -54
  1459. package/dist/bundled/v3/components/OrTextV3/index.d.ts +0 -1
  1460. package/dist/bundled/v3/components/OrTextV3/index.js +0 -1
  1461. package/dist/bundled/v3/components/OrTextV3/styles.d.ts +0 -3
  1462. package/dist/bundled/v3/components/OrTextV3/styles.js +0 -17
  1463. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +0 -115
  1464. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +0 -131
  1465. package/dist/bundled/v3/components/OrTextarea/index.d.ts +0 -1
  1466. package/dist/bundled/v3/components/OrTextarea/index.js +0 -1
  1467. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +0 -84
  1468. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +0 -117
  1469. package/dist/bundled/v3/components/OrTextareaV3/index.d.ts +0 -2
  1470. package/dist/bundled/v3/components/OrTextareaV3/index.js +0 -2
  1471. package/dist/bundled/v3/components/OrTextareaV3/props.d.ts +0 -1
  1472. package/dist/bundled/v3/components/OrTextareaV3/props.js +0 -1
  1473. package/dist/bundled/v3/components/OrTextareaV3/styles.d.ts +0 -2
  1474. package/dist/bundled/v3/components/OrTextareaV3/styles.js +0 -16
  1475. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +0 -148
  1476. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +0 -257
  1477. package/dist/bundled/v3/components/OrTextbox/constants.d.ts +0 -8
  1478. package/dist/bundled/v3/components/OrTextbox/constants.js +0 -11
  1479. package/dist/bundled/v3/components/OrTextbox/index.d.ts +0 -2
  1480. package/dist/bundled/v3/components/OrTextbox/index.js +0 -2
  1481. package/dist/bundled/v3/components/OrTimeFormatV3/OrTimeFormat.js +0 -13
  1482. package/dist/bundled/v3/components/OrTimeFormatV3/OrTimeFormat.vue.d.ts +0 -38
  1483. package/dist/bundled/v3/components/OrTimeFormatV3/index.d.ts +0 -1
  1484. package/dist/bundled/v3/components/OrTimeFormatV3/index.js +0 -1
  1485. package/dist/bundled/v3/components/OrTimeFormatV3/styles.d.ts +0 -1
  1486. package/dist/bundled/v3/components/OrTimeFormatV3/styles.js +0 -5
  1487. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +0 -128
  1488. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +0 -263
  1489. package/dist/bundled/v3/components/OrTimePickerV3/index.d.ts +0 -2
  1490. package/dist/bundled/v3/components/OrTimePickerV3/index.js +0 -3
  1491. package/dist/bundled/v3/components/OrTimePickerV3/props.d.ts +0 -2
  1492. package/dist/bundled/v3/components/OrTimePickerV3/props.js +0 -2
  1493. package/dist/bundled/v3/components/OrTimePickerV3/styles.d.ts +0 -2
  1494. package/dist/bundled/v3/components/OrTimePickerV3/styles.js +0 -8
  1495. package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.js +0 -154
  1496. package/dist/bundled/v3/components/OrTimeRangePickerV3/OrTimeRangePicker.vue.d.ts +0 -559
  1497. package/dist/bundled/v3/components/OrTimeRangePickerV3/index.d.ts +0 -2
  1498. package/dist/bundled/v3/components/OrTimeRangePickerV3/index.js +0 -3
  1499. package/dist/bundled/v3/components/OrTimeRangePickerV3/props.d.ts +0 -2
  1500. package/dist/bundled/v3/components/OrTimeRangePickerV3/props.js +0 -2
  1501. package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.d.ts +0 -2
  1502. package/dist/bundled/v3/components/OrTimeRangePickerV3/styles.js +0 -8
  1503. package/dist/bundled/v3/components/OrToast/OrToast.js +0 -118
  1504. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +0 -61
  1505. package/dist/bundled/v3/components/OrToast/Timer.d.ts +0 -11
  1506. package/dist/bundled/v3/components/OrToast/Timer.js +0 -37
  1507. package/dist/bundled/v3/components/OrToast/composable/index.d.ts +0 -2
  1508. package/dist/bundled/v3/components/OrToast/composable/index.js +0 -2
  1509. package/dist/bundled/v3/components/OrToast/composable/useQueue.d.ts +0 -8
  1510. package/dist/bundled/v3/components/OrToast/composable/useQueue.js +0 -33
  1511. package/dist/bundled/v3/components/OrToast/composable/useToast.d.ts +0 -8
  1512. package/dist/bundled/v3/components/OrToast/composable/useToast.js +0 -86
  1513. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.d.ts +0 -9
  1514. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +0 -25
  1515. package/dist/bundled/v3/components/OrToast/constants.d.ts +0 -18
  1516. package/dist/bundled/v3/components/OrToast/constants.js +0 -24
  1517. package/dist/bundled/v3/components/OrToast/index.d.ts +0 -5
  1518. package/dist/bundled/v3/components/OrToast/index.js +0 -5
  1519. package/dist/bundled/v3/components/OrToast/types.d.ts +0 -35
  1520. package/dist/bundled/v3/components/OrToast/types.js +0 -1
  1521. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +0 -42
  1522. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +0 -63
  1523. package/dist/bundled/v3/components/OrToastContainer/index.d.ts +0 -4
  1524. package/dist/bundled/v3/components/OrToastContainer/index.js +0 -4
  1525. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +0 -43
  1526. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +0 -57
  1527. package/dist/bundled/v3/components/OrToastContainerV3/index.d.ts +0 -4
  1528. package/dist/bundled/v3/components/OrToastContainerV3/index.js +0 -5
  1529. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +0 -56
  1530. package/dist/bundled/v3/components/OrToastV3/Timer.d.ts +0 -11
  1531. package/dist/bundled/v3/components/OrToastV3/Timer.js +0 -37
  1532. package/dist/bundled/v3/components/OrToastV3/composable/index.d.ts +0 -2
  1533. package/dist/bundled/v3/components/OrToastV3/composable/index.js +0 -2
  1534. package/dist/bundled/v3/components/OrToastV3/composable/useQueue.d.ts +0 -8
  1535. package/dist/bundled/v3/components/OrToastV3/composable/useQueue.js +0 -33
  1536. package/dist/bundled/v3/components/OrToastV3/composable/useToast.d.ts +0 -8
  1537. package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +0 -86
  1538. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.d.ts +0 -9
  1539. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +0 -25
  1540. package/dist/bundled/v3/components/OrToastV3/index.d.ts +0 -5
  1541. package/dist/bundled/v3/components/OrToastV3/index.js +0 -6
  1542. package/dist/bundled/v3/components/OrToastV3/props.d.ts +0 -18
  1543. package/dist/bundled/v3/components/OrToastV3/props.js +0 -1
  1544. package/dist/bundled/v3/components/OrToastV3/styles.d.ts +0 -5
  1545. package/dist/bundled/v3/components/OrToastV3/styles.js +0 -59
  1546. package/dist/bundled/v3/components/OrToastV3/types.d.ts +0 -35
  1547. package/dist/bundled/v3/components/OrToastV3/types.js +0 -1
  1548. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +0 -48
  1549. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +0 -73
  1550. package/dist/bundled/v3/components/OrTooltip/index.d.ts +0 -2
  1551. package/dist/bundled/v3/components/OrTooltip/index.js +0 -2
  1552. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.js +0 -24
  1553. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +0 -28
  1554. package/dist/bundled/v3/components/OrTooltipContent/index.d.ts +0 -1
  1555. package/dist/bundled/v3/components/OrTooltipContent/index.js +0 -1
  1556. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +0 -33
  1557. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +0 -82
  1558. package/dist/bundled/v3/components/OrTooltipV3/index.d.ts +0 -2
  1559. package/dist/bundled/v3/components/OrTooltipV3/index.js +0 -2
  1560. package/dist/bundled/v3/components/OrTooltipV3/props.d.ts +0 -2
  1561. package/dist/bundled/v3/components/OrTooltipV3/props.js +0 -1
  1562. package/dist/bundled/v3/components/OrTooltipV3/styles.d.ts +0 -4
  1563. package/dist/bundled/v3/components/OrTooltipV3/styles.js +0 -48
  1564. package/dist/bundled/v3/components/OrTreeV3/OrTree.js +0 -31
  1565. package/dist/bundled/v3/components/OrTreeV3/OrTree.vue.d.ts +0 -35
  1566. package/dist/bundled/v3/components/OrTreeV3/index.d.ts +0 -2
  1567. package/dist/bundled/v3/components/OrTreeV3/index.js +0 -2
  1568. package/dist/bundled/v3/components/OrTreeV3/types.d.ts +0 -15
  1569. package/dist/bundled/v3/components/OrTreeV3/types.js +0 -8
  1570. package/dist/bundled/v3/components/index.d.ts +0 -118
  1571. package/dist/bundled/v3/components/index.js +0 -199
  1572. package/dist/bundled/v3/directives/dropdown-close.d.ts +0 -6
  1573. package/dist/bundled/v3/directives/dropdown-close.js +0 -14
  1574. package/dist/bundled/v3/directives/dropdown-open.d.ts +0 -6
  1575. package/dist/bundled/v3/directives/dropdown-open.js +0 -19
  1576. package/dist/bundled/v3/directives/index.d.ts +0 -2
  1577. package/dist/bundled/v3/directives/index.js +0 -2
  1578. package/dist/bundled/v3/dom-cec392f3.js +0 -260
  1579. package/dist/bundled/v3/eq-44ea4d70.js +0 -77
  1580. package/dist/bundled/v3/floating-ui.dom-d9ef0d1f.js +0 -1443
  1581. package/dist/bundled/v3/get-34aa21f4.js +0 -856
  1582. package/dist/bundled/v3/hooks/index.d.ts +0 -10
  1583. package/dist/bundled/v3/hooks/index.js +0 -10
  1584. package/dist/bundled/v3/hooks/useControlAttributes.d.ts +0 -7
  1585. package/dist/bundled/v3/hooks/useControlAttributes.js +0 -12
  1586. package/dist/bundled/v3/hooks/useElevation.d.ts +0 -3
  1587. package/dist/bundled/v3/hooks/useElevation.js +0 -25
  1588. package/dist/bundled/v3/hooks/useIdAttribute.d.ts +0 -2
  1589. package/dist/bundled/v3/hooks/useIdAttribute.js +0 -12
  1590. package/dist/bundled/v3/hooks/useOverflow.d.ts +0 -11
  1591. package/dist/bundled/v3/hooks/useOverflow.js +0 -75
  1592. package/dist/bundled/v3/hooks/usePopoverState.d.ts +0 -12
  1593. package/dist/bundled/v3/hooks/usePopoverState.js +0 -42
  1594. package/dist/bundled/v3/hooks/useProxyModelValue.d.ts +0 -8
  1595. package/dist/bundled/v3/hooks/useProxyModelValue.js +0 -29
  1596. package/dist/bundled/v3/hooks/useResponsive/index.d.ts +0 -1
  1597. package/dist/bundled/v3/hooks/useResponsive/index.js +0 -1
  1598. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +0 -6
  1599. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +0 -203
  1600. package/dist/bundled/v3/hooks/useTheme.d.ts +0 -3
  1601. package/dist/bundled/v3/hooks/useToggle.d.ts +0 -8
  1602. package/dist/bundled/v3/hooks/useToggle.js +0 -23
  1603. package/dist/bundled/v3/hooks/useValidationAttributes.d.ts +0 -11
  1604. package/dist/bundled/v3/hooks/useValidationAttributes.js +0 -16
  1605. package/dist/bundled/v3/index-06852368.js +0 -819
  1606. package/dist/bundled/v3/index-0fa7e6ca.js +0 -114
  1607. package/dist/bundled/v3/index-2ca6453c.js +0 -8
  1608. package/dist/bundled/v3/index-4a4ab262.js +0 -837
  1609. package/dist/bundled/v3/index-57f01e0d.js +0 -94
  1610. package/dist/bundled/v3/index-59ae65a4.js +0 -3158
  1611. package/dist/bundled/v3/index-67eff9fe.js +0 -9715
  1612. package/dist/bundled/v3/index-74353328.js +0 -1912
  1613. package/dist/bundled/v3/index-9b8fe3ec.js +0 -760
  1614. package/dist/bundled/v3/index-c8fc7964.js +0 -361
  1615. package/dist/bundled/v3/index-d32c767e.js +0 -18517
  1616. package/dist/bundled/v3/index-e1e02235.js +0 -1636
  1617. package/dist/bundled/v3/index-f1d66df5.js +0 -2301
  1618. package/dist/bundled/v3/index-f537aa31.js +0 -1379
  1619. package/dist/bundled/v3/index-f671afe5.js +0 -7127
  1620. package/dist/bundled/v3/index-ffeb3fc8.js +0 -295
  1621. package/dist/bundled/v3/index.d.ts +0 -5
  1622. package/dist/bundled/v3/index.js +0 -300
  1623. package/dist/bundled/v3/isArrayLike-e7fb5cae.js +0 -91
  1624. package/dist/bundled/v3/isEqual-7a8e6106.js +0 -38
  1625. package/dist/bundled/v3/isObject-b7415fc1.js +0 -202
  1626. package/dist/bundled/v3/markdown-7d2cd3a5.js +0 -8287
  1627. package/dist/bundled/v3/props-7be029c7.js +0 -32
  1628. package/dist/bundled/v3/range-82efa3d4.js +0 -136
  1629. package/dist/bundled/v3/round-567ede34.js +0 -66
  1630. package/dist/bundled/v3/sortable.esm-11705107.js +0 -2580
  1631. package/dist/bundled/v3/style-inject.es-4c6f2515.js +0 -26
  1632. package/dist/bundled/v3/toFinite-bc59ffb0.js +0 -142
  1633. package/dist/bundled/v3/toInteger-9fa0151c.js +0 -38
  1634. package/dist/bundled/v3/toString-b6e4472a.js +0 -114
  1635. package/dist/bundled/v3/types-668300dd.js +0 -5
  1636. package/dist/bundled/v3/utils/constants/color.d.ts +0 -14
  1637. package/dist/bundled/v3/utils/constants/color.js +0 -16
  1638. package/dist/bundled/v3/utils/constants/key-codes.d.ts +0 -14
  1639. package/dist/bundled/v3/utils/constants/key-codes.js +0 -16
  1640. package/dist/bundled/v3/utils/constants/poper.d.ts +0 -8
  1641. package/dist/bundled/v3/utils/constants/poper.js +0 -10
  1642. package/dist/bundled/v3/utils/constants/regex.d.ts +0 -42
  1643. package/dist/bundled/v3/utils/constants/regex.js +0 -49
  1644. package/dist/bundled/v3/utils/functions/color.d.ts +0 -19
  1645. package/dist/bundled/v3/utils/functions/color.js +0 -40
  1646. package/dist/bundled/v3/utils/functions/dom.d.ts +0 -31
  1647. package/dist/bundled/v3/utils/functions/dom.js +0 -2
  1648. package/dist/bundled/v3/utils/functions/flattenDeep.d.ts +0 -2
  1649. package/dist/bundled/v3/utils/functions/flattenDeep.js +0 -6
  1650. package/dist/bundled/v3/utils/functions/hash.d.ts +0 -2
  1651. package/dist/bundled/v3/utils/functions/hash.js +0 -8
  1652. package/dist/bundled/v3/utils/functions/px-to-rem.d.ts +0 -1
  1653. package/dist/bundled/v3/utils/functions/px-to-rem.js +0 -3
  1654. package/dist/bundled/v3/utils/functions/text.d.ts +0 -1
  1655. package/dist/bundled/v3/utils/functions/text.js +0 -9
  1656. package/dist/bundled/v3/utils/index.d.ts +0 -14
  1657. package/dist/bundled/v3/utils/index.js +0 -12
  1658. package/dist/bundled/v3/utils/isEmpty.d.ts +0 -1
  1659. package/dist/bundled/v3/utils/isEmpty.js +0 -5
  1660. package/dist/bundled/v3/utils/isEmptyValue.d.ts +0 -1
  1661. package/dist/bundled/v3/utils/isEmptyValue.js +0 -5
  1662. package/dist/bundled/v3/utils/isEqualValue.d.ts +0 -1
  1663. package/dist/bundled/v3/utils/isEqualValue.js +0 -8
  1664. package/dist/bundled/v3/utils/isVisible.d.ts +0 -2
  1665. package/dist/bundled/v3/utils/isVisible.js +0 -5
  1666. 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 };