@onereach/ui-components 4.10.0 → 4.11.0-beta.2916.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 (844) hide show
  1. package/dist/bundled/{v3/_baseAssignValue-0c6c3bcc.js → v2/_baseAssignValue-008b033a.js} +1 -1
  2. package/dist/bundled/v2/{_baseIsEqual-82d7a339.js → _baseIsEqual-9edac039.js} +5 -5
  3. package/dist/bundled/v2/{_commonjsHelpers-48a9cab9.js → _commonjsHelpers-6584e42b.js} +5 -1
  4. package/dist/bundled/v2/components/OrAvatar/OrAvatar.js +6 -6
  5. package/dist/bundled/v2/components/OrAvatar/index.js +6 -6
  6. package/dist/bundled/v2/components/OrBottomSheetV3/OrBottomSheet.js +2 -2
  7. package/dist/bundled/v2/components/OrBottomSheetV3/index.js +2 -2
  8. package/dist/bundled/v2/components/OrButtonV2/OrButton.js +6 -6
  9. package/dist/bundled/v2/components/OrButtonV2/index.js +6 -6
  10. package/dist/bundled/v2/components/OrButtonV3/OrButton.js +2 -2
  11. package/dist/bundled/v2/components/OrButtonV3/index.js +2 -2
  12. package/dist/bundled/v2/components/OrCardCollection/OrCardCollection.js +7 -7
  13. package/dist/bundled/v2/components/OrCardCollection/index.js +7 -7
  14. package/dist/bundled/v2/components/OrCardCollectionV3/OrCardCollection.js +2 -2
  15. package/dist/bundled/v2/components/OrCardCollectionV3/index.js +2 -2
  16. package/dist/bundled/v2/components/OrCarousel/OrCarousel.js +6 -6
  17. package/dist/bundled/v2/components/OrCarousel/index.js +6 -6
  18. package/dist/bundled/v2/components/OrCheckbox/OrCheckbox.js +6 -6
  19. package/dist/bundled/v2/components/OrCheckbox/index.js +6 -6
  20. package/dist/bundled/v2/components/OrCheckboxGroupV3/OrCheckboxGroup.js +2 -2
  21. package/dist/bundled/v2/components/OrCheckboxGroupV3/index.js +2 -2
  22. package/dist/bundled/v2/components/OrCheckboxTreeV3/OrCheckboxTree.js +2 -2
  23. package/dist/bundled/v2/components/OrCheckboxTreeV3/index.js +2 -2
  24. package/dist/bundled/v2/components/OrCheckboxV3/OrCheckbox.js +2 -2
  25. package/dist/bundled/v2/components/OrCheckboxV3/index.js +2 -2
  26. package/dist/bundled/v2/components/OrChip/OrChip.js +6 -6
  27. package/dist/bundled/v2/components/OrChip/index.js +6 -6
  28. package/dist/bundled/v2/components/OrChips/OrChips.js +6 -6
  29. package/dist/bundled/v2/components/OrChips/index.js +6 -6
  30. package/dist/bundled/v2/components/OrCode/OrCode.js +14 -3800
  31. package/dist/bundled/v2/components/OrCode/index.js +14 -10
  32. package/dist/bundled/v2/components/OrCode/lang.js +4091 -3
  33. package/dist/bundled/v2/components/OrCode/theme.js +2 -1
  34. package/dist/bundled/v2/components/OrCollapse/OrCollapse.js +6 -6
  35. package/dist/bundled/v2/components/OrCollapse/index.js +6 -6
  36. package/dist/bundled/v2/components/OrColorPicker/OrColorPicker.js +8 -8
  37. package/dist/bundled/v2/components/OrColorPicker/index.js +8 -8
  38. package/dist/bundled/v2/components/OrConfirm/OrConfirm.js +10 -9
  39. package/dist/bundled/v2/components/OrConfirm/index.js +10 -9
  40. package/dist/bundled/v2/components/OrConfirmV3/OrConfirm.js +3 -3
  41. package/dist/bundled/v2/components/OrConfirmV3/index.js +3 -3
  42. package/dist/bundled/v2/components/OrDatePickerV3/OrDatePicker.js +4 -4
  43. package/dist/bundled/v2/components/OrDatePickerV3/index.js +4 -4
  44. package/dist/bundled/v2/components/OrDateTimePicker/OrDateTimePicker.js +10 -10
  45. package/dist/bundled/v2/components/OrDateTimePicker/index.js +10 -10
  46. package/dist/bundled/v2/components/OrDateTimePickerV3/OrDateTimePicker.js +5 -5
  47. package/dist/bundled/v2/components/OrDateTimePickerV3/index.js +5 -5
  48. package/dist/bundled/v2/components/OrExpansionPanelV3/OrExpansionPanel.js +1 -1
  49. package/dist/bundled/v2/components/OrExpansionPanelV3/index.js +1 -1
  50. package/dist/bundled/v2/components/OrFloating/OrFloating.js +6 -6
  51. package/dist/bundled/v2/components/OrFloating/index.js +6 -6
  52. package/dist/bundled/v2/components/OrIcon/OrIcon.js +6 -6
  53. package/dist/bundled/v2/components/OrIcon/index.js +6 -6
  54. package/dist/bundled/v2/components/OrIconButtonV2/OrIconButton.js +6 -6
  55. package/dist/bundled/v2/components/OrIconButtonV2/index.js +6 -6
  56. package/dist/bundled/v2/components/OrIconButtonV3/OrIconButton.js +2 -2
  57. package/dist/bundled/v2/components/OrIconButtonV3/index.js +2 -2
  58. package/dist/bundled/v2/components/OrInlineInputV3/OrInlineInput.js +2 -2
  59. package/dist/bundled/v2/components/OrInlineInputV3/index.js +2 -2
  60. package/dist/bundled/v2/components/OrInlineTextEdit/OrInlineTextEdit.js +8 -8
  61. package/dist/bundled/v2/components/OrInlineTextEdit/index.js +8 -8
  62. package/dist/bundled/v2/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
  63. package/dist/bundled/v2/components/OrInlineTextareaV3/index.js +2 -2
  64. package/dist/bundled/v2/components/OrInput/OrInput.js +6 -6
  65. package/dist/bundled/v2/components/OrInput/index.js +6 -6
  66. package/dist/bundled/v2/components/OrInputV3/OrInput.js +2 -2
  67. package/dist/bundled/v2/components/OrInputV3/index.js +2 -2
  68. package/dist/bundled/v2/components/OrList/OrList.js +10 -10
  69. package/dist/bundled/v2/components/OrList/index.js +10 -10
  70. package/dist/bundled/v2/components/OrListOfInputs/OrListOfInputs.js +10 -10
  71. package/dist/bundled/v2/components/OrListOfInputs/index.js +10 -10
  72. package/dist/bundled/v2/components/OrLoaderV3/OrLoader.js +2 -2
  73. package/dist/bundled/v2/components/OrLoaderV3/index.js +2 -2
  74. package/dist/bundled/v2/components/OrMenuV3/OrMenu.js +2 -2
  75. package/dist/bundled/v2/components/OrMenuV3/index.js +2 -2
  76. package/dist/bundled/v2/components/OrModal/OrModal.js +10 -1353
  77. package/dist/bundled/v2/components/OrModal/index.js +9 -8
  78. package/dist/bundled/v2/components/OrModalV3/OrModal.js +4 -4
  79. package/dist/bundled/v2/components/OrModalV3/index.js +2 -2
  80. package/dist/bundled/v2/components/OrNotification/OrNotification.js +6 -6
  81. package/dist/bundled/v2/components/OrNotification/index.js +6 -6
  82. package/dist/bundled/v2/components/OrNotificationV3/OrNotification.js +2 -2
  83. package/dist/bundled/v2/components/OrNotificationV3/index.js +2 -2
  84. package/dist/bundled/v2/components/OrNumberInput/OrNumberInput.js +6 -6
  85. package/dist/bundled/v2/components/OrNumberInput/index.js +6 -6
  86. package/dist/bundled/v2/components/OrOverflowMenu/OrOverflowMenu.js +8 -8
  87. package/dist/bundled/v2/components/OrOverflowMenu/index.js +8 -8
  88. package/dist/bundled/v2/components/OrOverlayV3/OrOverlay.js +2 -2
  89. package/dist/bundled/v2/components/OrOverlayV3/index.js +2 -2
  90. package/dist/bundled/v2/components/OrPaginationV3/OrPagination.js +2 -2
  91. package/dist/bundled/v2/components/OrPaginationV3/index.js +2 -2
  92. package/dist/bundled/v2/components/OrPassword/OrPassword.js +8 -8
  93. package/dist/bundled/v2/components/OrPassword/index.js +8 -8
  94. package/dist/bundled/v2/components/OrPopoverV3/OrPopover.js +2 -2
  95. package/dist/bundled/v2/components/OrPopoverV3/index.js +2 -2
  96. package/dist/bundled/v2/components/OrProgress/OrProgress.js +6 -6
  97. package/dist/bundled/v2/components/OrProgress/index.js +6 -6
  98. package/dist/bundled/v2/components/OrProgressV3/OrProgress.js +8 -8
  99. package/dist/bundled/v2/components/OrProgressV3/index.js +8 -8
  100. package/dist/bundled/v2/components/OrRadio/OrRadio.js +8 -8
  101. package/dist/bundled/v2/components/OrRadio/index.js +8 -8
  102. package/dist/bundled/v2/components/OrRadioGroupV3/OrRadioGroup.js +2 -2
  103. package/dist/bundled/v2/components/OrRadioGroupV3/index.js +2 -2
  104. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.js +2226 -0
  105. package/dist/bundled/v2/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
  106. package/dist/bundled/v2/components/OrRichTextEditorV3/index.d.ts +2 -0
  107. package/dist/bundled/v2/components/OrRichTextEditorV3/index.js +76 -0
  108. package/dist/bundled/v2/components/OrRichTextEditorV3/props.d.ts +5 -0
  109. package/dist/bundled/v2/components/OrRichTextEditorV3/props.js +7 -0
  110. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.d.ts +6 -0
  111. package/dist/bundled/v2/components/OrRichTextEditorV3/styles.js +38 -0
  112. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  113. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +50 -0
  114. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  115. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +188 -0
  116. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  117. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/index.js +9 -0
  118. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +39 -0
  119. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/theme.js +212 -0
  120. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  121. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  122. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  123. package/dist/bundled/v2/components/OrRichTextEditorV3/utils/markdown.js +6 -0
  124. package/dist/bundled/v2/components/OrSearch/OrSearch.js +7 -7
  125. package/dist/bundled/v2/components/OrSearch/index.js +7 -7
  126. package/dist/bundled/v2/components/OrSearchV3/OrSearch.js +2 -2
  127. package/dist/bundled/v2/components/OrSearchV3/index.js +2 -2
  128. package/dist/bundled/v2/components/OrSelect/OrSelect.js +11 -11
  129. package/dist/bundled/v2/components/OrSelect/index.js +11 -11
  130. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +2 -2
  131. package/dist/bundled/v2/components/OrSelectV3/index.js +2 -2
  132. package/dist/bundled/v2/components/OrSidebar/OrSidebar.js +2 -2
  133. package/dist/bundled/v2/components/OrSidebar/index.js +2 -2
  134. package/dist/bundled/v2/components/OrSidebarV3/OrSidebar.js +2 -2
  135. package/dist/bundled/v2/components/OrSidebarV3/index.js +2 -2
  136. package/dist/bundled/v2/components/OrSkeleton/index.js +6 -6
  137. package/dist/bundled/v2/components/OrSkeletonText/OrSkeletonText.js +6 -6
  138. package/dist/bundled/v2/components/OrSkeletonText/index.js +6 -6
  139. package/dist/bundled/v2/components/OrSkeletonTextV3/OrSkeletonText.js +6 -6
  140. package/dist/bundled/v2/components/OrSkeletonTextV3/index.js +6 -6
  141. package/dist/bundled/v2/components/OrSkeletonV3/index.js +6 -6
  142. package/dist/bundled/v2/components/OrSlider/OrSlider.js +8 -8
  143. package/dist/bundled/v2/components/OrSlider/index.js +8 -8
  144. package/dist/bundled/v2/components/OrStepper/OrStepper.js +6 -6
  145. package/dist/bundled/v2/components/OrStepper/index.js +6 -6
  146. package/dist/bundled/v2/components/OrSwitchV3/OrSwitch.js +2 -2
  147. package/dist/bundled/v2/components/OrSwitchV3/index.js +2 -2
  148. package/dist/bundled/v2/components/OrTabsV3/OrTabs.js +2 -2
  149. package/dist/bundled/v2/components/OrTabsV3/index.js +2 -2
  150. package/dist/bundled/v2/components/OrTag/OrTag.js +6 -6
  151. package/dist/bundled/v2/components/OrTag/index.js +6 -6
  152. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +2 -2
  153. package/dist/bundled/v2/components/OrTagInputV3/index.js +2 -2
  154. package/dist/bundled/v2/components/OrTagV3/OrTag.js +2 -2
  155. package/dist/bundled/v2/components/OrTagV3/index.js +2 -2
  156. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +2 -2
  157. package/dist/bundled/v2/components/OrTagsV3/index.js +2 -2
  158. package/dist/bundled/v2/components/OrTextV3/OrText.vue.d.ts +2 -2
  159. package/dist/bundled/v2/components/OrTextarea/OrTextarea.js +6 -6
  160. package/dist/bundled/v2/components/OrTextarea/OrTextarea.vue.d.ts +2 -2
  161. package/dist/bundled/v2/components/OrTextarea/index.js +6 -6
  162. package/dist/bundled/v2/components/OrTextareaV3/OrTextarea.vue.d.ts +2 -2
  163. package/dist/bundled/v2/components/OrTextbox/OrTextbox.js +6 -6
  164. package/dist/bundled/v2/components/OrTextbox/OrTextbox.vue.d.ts +2 -2
  165. package/dist/bundled/v2/components/OrTextbox/index.js +6 -6
  166. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.js +4 -4
  167. package/dist/bundled/v2/components/OrTimePickerV3/OrTimePicker.vue.d.ts +2 -2
  168. package/dist/bundled/v2/components/OrTimePickerV3/index.js +4 -4
  169. package/dist/bundled/v2/components/OrToast/OrToast.js +9 -9
  170. package/dist/bundled/v2/components/OrToast/OrToast.vue.d.ts +2 -2
  171. package/dist/bundled/v2/components/OrToast/Timer.js +1 -1
  172. package/dist/bundled/v2/components/OrToast/composable/index.js +2 -2
  173. package/dist/bundled/v2/components/OrToast/composable/useToast.js +2 -2
  174. package/dist/bundled/v2/components/OrToast/composable/useToastEventBus.js +2 -2
  175. package/dist/bundled/v2/components/OrToast/index.js +11 -11
  176. package/dist/bundled/v2/components/OrToastContainer/OrToastContainer.js +11 -11
  177. package/dist/bundled/v2/components/OrToastContainer/index.js +11 -11
  178. package/dist/bundled/v2/components/OrToastContainerV3/OrToastContainer.js +2 -2
  179. package/dist/bundled/v2/components/OrToastContainerV3/index.js +2 -2
  180. package/dist/bundled/v2/components/OrToastV3/OrToast.js +2 -2
  181. package/dist/bundled/v2/components/OrToastV3/OrToast.vue.d.ts +2 -2
  182. package/dist/bundled/v2/components/OrToastV3/Timer.js +1 -1
  183. package/dist/bundled/v2/components/OrToastV3/composable/index.js +2 -2
  184. package/dist/bundled/v2/components/OrToastV3/composable/useToast.js +2 -2
  185. package/dist/bundled/v2/components/OrToastV3/composable/useToastEventBus.js +2 -2
  186. package/dist/bundled/v2/components/OrToastV3/index.js +2 -2
  187. package/dist/bundled/v2/components/OrTooltip/OrTooltip.js +6 -6
  188. package/dist/bundled/v2/components/OrTooltip/OrTooltip.vue.d.ts +2 -2
  189. package/dist/bundled/v2/components/OrTooltip/index.js +6 -6
  190. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.js +2 -2
  191. package/dist/bundled/v2/components/OrTooltipV3/OrTooltip.vue.d.ts +2 -2
  192. package/dist/bundled/v2/components/OrTooltipV3/index.js +2 -2
  193. package/dist/bundled/v2/components/index.d.ts +1 -0
  194. package/dist/bundled/v2/components/index.js +39 -22
  195. package/dist/bundled/{v3/dom-571739a2.js → v2/dom-c98dce89.js} +2 -2
  196. package/dist/bundled/v2/{eq-fa566495.js → eq-037e6fce.js} +1 -1
  197. package/dist/bundled/{v3/get-73ac2f59.js → v2/get-b30afe93.js} +3 -3
  198. package/dist/bundled/v2/hooks/index.js +3 -3
  199. package/dist/bundled/v2/hooks/useOverflow.js +2 -2
  200. package/dist/bundled/v2/hooks/usePopoverState.js +1 -1
  201. package/dist/bundled/v2/hooks/useResponsive/index.js +2 -2
  202. package/dist/bundled/v2/hooks/useResponsive/useResponsive.js +2 -2
  203. package/dist/bundled/v2/hooks/useTheme.js +1 -1
  204. package/dist/bundled/v2/{index-ec92055d.js → index-06f6bbe4.js} +1 -1
  205. package/dist/bundled/v2/index-536f78ef.js +9714 -0
  206. package/dist/bundled/{v3/OrCode.vue_vue_type_script_lang-46846a36.js → v2/index-71dbceb9.js} +16 -237
  207. package/dist/bundled/v2/index-85c2efe8.js +7122 -0
  208. package/dist/bundled/v2/{index-cf2c3c27.js → index-a8488e2a.js} +3 -115
  209. package/dist/bundled/v2/{index-c92e2839.js → index-af414338.js} +2 -2
  210. package/dist/bundled/v2/{lang-0fb8f78b.js → index-c59372d3.js} +118 -4028
  211. package/dist/bundled/v2/{index-15e8c1f3.js → index-dac0fb7c.js} +1 -1
  212. package/dist/bundled/v2/index.es-3f39f316.js +115 -0
  213. package/dist/bundled/v2/index.js +39 -25
  214. package/dist/bundled/v2/{isArrayLike-acf249e3.js → isArrayLike-61275a05.js} +1 -1
  215. package/dist/bundled/v2/{isEqual-881b7bb5.js → isEqual-8bbb1110.js} +1 -1
  216. package/dist/bundled/{v3/isObject-3a5b854d.js → v2/isObject-08fab135.js} +1 -1
  217. package/dist/bundled/v2/markdown-161bd1ee.js +15365 -0
  218. package/dist/bundled/{v3/range-c87289f7.js → v2/range-637f1361.js} +4 -4
  219. package/dist/bundled/{v3/round-136c7e43.js → v2/round-4a894f03.js} +4 -4
  220. package/dist/bundled/v2/{toFinite-021b0c50.js → toFinite-675db18a.js} +1 -1
  221. package/dist/bundled/v2/{toInteger-db8a475d.js → toInteger-27595771.js} +1 -1
  222. package/dist/bundled/{v3/toString-47fa81b4.js → v2/toString-a72d5149.js} +1 -1
  223. package/dist/bundled/{v3/OrModal.vue_vue_type_script_lang-153819d3.js → v2/useFocusTrap-c1384da1.js} +4 -100
  224. package/dist/bundled/v2/utils/functions/dom.js +6 -6
  225. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-552fce16.js → OrAvatar.vue_vue_type_script_lang-36439ec1.js} +1 -1
  226. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-214a0eea.js → OrBottomSheet.vue_vue_type_script_lang-b6fc4564.js} +2 -2
  227. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-e8969bd3.js → OrButton.vue_vue_type_script_lang-d31ada75.js} +1 -1
  228. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-5b8437d7.js → OrButton.vue_vue_type_script_lang-fc3b3109.js} +1 -1
  229. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-eb86b548.js → OrCardCollection.vue_vue_type_script_lang-0b7357dc.js} +3 -3
  230. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-3e7aa91a.js → OrCardCollection.vue_vue_type_script_lang-a0086ac0.js} +4 -4
  231. package/dist/bundled/v3/{OrCarousel.vue_vue_type_script_lang-75c50882.js → OrCarousel.vue_vue_type_script_lang-cfd11d11.js} +1 -1
  232. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-616a0cce.js → OrCheckbox.vue_vue_type_script_lang-0fcd7886.js} +1 -1
  233. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-dedfe767.js → OrCheckbox.vue_vue_type_script_lang-579d41cf.js} +1 -1
  234. package/dist/bundled/v3/{OrCheckboxGroup.vue_vue_type_script_lang-6946b630.js → OrCheckboxGroup.vue_vue_type_script_lang-bf90c3cc.js} +2 -2
  235. package/dist/bundled/v3/{OrCheckboxTree.vue_vue_type_script_lang-e2647349.js → OrCheckboxTree.vue_vue_type_script_lang-96fce5bf.js} +4 -4
  236. package/dist/bundled/v3/{OrChip.vue_vue_type_script_lang-d0c62419.js → OrChip.vue_vue_type_script_lang-fcda103b.js} +1 -1
  237. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-d7a38038.js → OrChips.vue_vue_type_script_lang-8d26707d.js} +1 -1
  238. package/dist/bundled/v3/OrCode.vue_vue_type_script_lang-918b7ac0.js +237 -0
  239. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-e2dcce92.js → OrCollapse.vue_vue_type_script_lang-00da895c.js} +1 -1
  240. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-2e1845d8.js → OrColorPicker.vue_vue_type_script_lang-476f49f1.js} +3 -3
  241. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-93458f1f.js → OrConfirm.vue_vue_type_script_lang-2241e7aa.js} +6 -6
  242. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-51f9e144.js → OrConfirm.vue_vue_type_script_lang-b7cc200c.js} +6 -6
  243. package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-0e648149.js → OrDatePicker.vue_vue_type_script_lang-0af2ea49.js} +4 -4
  244. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-69d65518.js → OrDateTimePicker.vue_vue_type_script_lang-5a2e9026.js} +5 -5
  245. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-882ae7ce.js → OrDateTimePicker.vue_vue_type_script_lang-77880140.js} +7 -7
  246. package/dist/bundled/v3/{OrDateTimePickerMonthSelect-8857f024.js → OrDateTimePickerMonthSelect-21ea52e0.js} +3 -3
  247. package/dist/bundled/v3/{OrDateTimePickerPopoverHeader-ec90761f.js → OrDateTimePickerPopoverHeader-987f20e0.js} +1 -1
  248. package/dist/bundled/v3/{OrDateTimePickerTimeSelect-683ab20d.js → OrDateTimePickerTimeSelect-8155d62c.js} +1 -1
  249. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-d762f4b0.js → OrFloating.vue_vue_type_script_lang-8bc114e8.js} +1 -1
  250. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-b77bb268.js → OrIcon.vue_vue_type_script_lang-52900ff4.js} +1 -1
  251. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-e078ed4c.js → OrIconButton.vue_vue_type_script_lang-416cbbd3.js} +2 -2
  252. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-c3a78c23.js → OrIconButton.vue_vue_type_script_lang-bfc73aee.js} +1 -1
  253. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-820cc7e9.js → OrInlineInput.vue_vue_type_script_lang-1c378a1e.js} +1 -1
  254. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-588178e5.js → OrInlineTextEdit.vue_vue_type_script_lang-7955bdac.js} +4 -4
  255. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8e639991.js → OrInlineTextarea.vue_vue_type_script_lang-c069813e.js} +1 -1
  256. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-66363c62.js → OrInput.vue_vue_type_script_lang-634fe6f7.js} +2 -2
  257. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-1be980cf.js → OrInput.vue_vue_type_script_lang-f887102b.js} +2 -2
  258. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-c6f46a0e.js → OrList.vue_vue_type_script_lang-cb8806b2.js} +11 -11
  259. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-04af76e1.js → OrListOfInputs.vue_vue_type_script_lang-14a99046.js} +4 -4
  260. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-f076f6b3.js → OrLoader.vue_vue_type_script_lang-1e4c32ee.js} +1 -1
  261. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-8fa5ef6c.js → OrMenu.vue_vue_type_script_lang-1311d4b9.js} +1 -1
  262. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-83469d51.js → OrModal.vue_vue_type_script_lang-9be48616.js} +2 -2
  263. package/dist/bundled/v3/OrModal.vue_vue_type_script_lang-b716f9f7.js +101 -0
  264. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-86084f5e.js → OrNotification.vue_vue_type_script_lang-564035a6.js} +2 -2
  265. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-242a7186.js → OrNotification.vue_vue_type_script_lang-ad495e91.js} +1 -1
  266. package/dist/bundled/v3/{OrNumberInput.vue_vue_type_script_lang-9d6763fa.js → OrNumberInput.vue_vue_type_script_lang-e904d247.js} +1 -1
  267. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-ba3b94e2.js → OrOverflowMenu.vue_vue_type_script_lang-396e26c0.js} +5 -5
  268. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-0fdf19ba.js → OrOverlay.vue_vue_type_script_lang-4a4c532b.js} +1 -1
  269. package/dist/bundled/v3/{OrPagination.vue_vue_type_script_lang-193cf67a.js → OrPagination.vue_vue_type_script_lang-d502da20.js} +2 -2
  270. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-fc9e7dc8.js → OrPassword.vue_vue_type_script_lang-ea54f428.js} +3 -3
  271. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-506ae7bb.js → OrPopover.vue_vue_type_script_lang-6b004f70.js} +2 -2
  272. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-6a2fef77.js → OrProgress.vue_vue_type_script_lang-9c13f877.js} +2 -2
  273. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-89224310.js → OrProgress.vue_vue_type_script_lang-d4cf52da.js} +1 -1
  274. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-0c087270.js → OrRadio.vue_vue_type_script_lang-5e642c5f.js} +2 -2
  275. package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-a82cb83b.js → OrRadioGroup.vue_vue_type_script_lang-4b4d1420.js} +1 -1
  276. package/dist/bundled/v3/OrRichTextEditor.vue_vue_type_script_lang-e4425812.js +1910 -0
  277. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-933e71b8.js → OrSearch.vue_vue_type_script_lang-3e7729fe.js} +3 -3
  278. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-18dc2df8.js → OrSearch.vue_vue_type_script_lang-f09e4bef.js} +2 -2
  279. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-72c1db17.js → OrSelect.vue_vue_type_script_lang-1a392871.js} +5 -5
  280. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-45cf8f8c.js → OrSelect.vue_vue_type_script_lang-5bdf06cb.js} +11 -11
  281. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-56608f4a.js → OrSidebar.vue_vue_type_script_lang-2681fb99.js} +1 -1
  282. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-3d9676ea.js → OrSidebar.vue_vue_type_script_lang-fe974154.js} +2 -2
  283. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-e068a58a.js → OrSkeletonText.vue_vue_type_script_lang-36cfe2f4.js} +1 -1
  284. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-6703fb3a.js → OrSkeletonText.vue_vue_type_script_lang-5cf21df0.js} +1 -1
  285. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-2a698707.js → OrSlider.vue_vue_type_script_lang-d933ca0c.js} +3 -3
  286. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-999e65f6.js → OrStepper.vue_vue_type_script_lang-d4259c67.js} +1 -1
  287. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-5a6d0202.js → OrSwitch.vue_vue_type_script_lang-cde58199.js} +1 -1
  288. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-2d08458d.js → OrTabs.vue_vue_type_script_lang-c3638bf9.js} +2 -2
  289. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-42a69c16.js → OrTag.vue_vue_type_script_lang-2e2393a5.js} +1 -1
  290. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-c7065625.js → OrTag.vue_vue_type_script_lang-4b730bd2.js} +1 -1
  291. package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-60f6d6de.js → OrTagInput.vue_vue_type_script_lang-89625778.js} +2 -2
  292. package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-45bbc68e.js → OrTags.vue_vue_type_script_lang-593636fe.js} +3 -3
  293. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-af7cab22.js → OrTextarea.vue_vue_type_script_lang-1585e4e5.js} +2 -2
  294. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-80e42d58.js → OrTextbox.vue_vue_type_script_lang-02b1c369.js} +3 -3
  295. package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-a300ab1b.js → OrTimePicker.vue_vue_type_script_lang-e7ccca90.js} +4 -4
  296. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-c47d63be.js → OrToastContainer.vue_vue_type_script_lang-364ee300.js} +1 -1
  297. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-d1a074fe.js → OrToastContainer.vue_vue_type_script_lang-e19162ff.js} +1 -1
  298. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-3bf79d56.js → OrTooltip.vue_vue_type_script_lang-05d89296.js} +1 -1
  299. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-227592d8.js → OrTooltip.vue_vue_type_script_lang-637482e6.js} +1 -1
  300. package/dist/bundled/{v2/_baseAssignValue-0c6c3bcc.js → v3/_baseAssignValue-008b033a.js} +1 -1
  301. package/dist/bundled/v3/{_baseIsEqual-82d7a339.js → _baseIsEqual-9edac039.js} +5 -5
  302. package/dist/bundled/v3/{_commonjsHelpers-48a9cab9.js → _commonjsHelpers-6584e42b.js} +5 -1
  303. package/dist/bundled/v3/components/OrAvatar/OrAvatar.js +10 -10
  304. package/dist/bundled/v3/components/OrAvatar/OrAvatar.vue.d.ts +26 -11
  305. package/dist/bundled/v3/components/OrAvatar/index.js +9 -9
  306. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.vue.d.ts +24 -8
  307. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.js +5 -5
  308. package/dist/bundled/v3/components/OrBottomSheetV3/OrBottomSheet.vue.d.ts +33 -17
  309. package/dist/bundled/v3/components/OrBottomSheetV3/index.js +4 -4
  310. package/dist/bundled/v3/components/OrButton/OrButton.vue.d.ts +51 -16
  311. package/dist/bundled/v3/components/OrButtonV2/OrButton.js +10 -10
  312. package/dist/bundled/v3/components/OrButtonV2/OrButton.vue.d.ts +57 -20
  313. package/dist/bundled/v3/components/OrButtonV2/index.js +11 -11
  314. package/dist/bundled/v3/components/OrButtonV3/OrButton.js +5 -5
  315. package/dist/bundled/v3/components/OrButtonV3/OrButton.vue.d.ts +35 -15
  316. package/dist/bundled/v3/components/OrButtonV3/index.js +4 -4
  317. package/dist/bundled/v3/components/OrCard/OrCard.vue.d.ts +15 -7
  318. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.js +16 -16
  319. package/dist/bundled/v3/components/OrCardCollection/OrCardCollection.vue.d.ts +47 -21
  320. package/dist/bundled/v3/components/OrCardCollection/index.js +15 -15
  321. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +14 -14
  322. package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.vue.d.ts +70 -22
  323. package/dist/bundled/v3/components/OrCardCollectionV3/index.js +13 -13
  324. package/dist/bundled/v3/components/OrCardV3/OrCard.vue.d.ts +7 -4
  325. package/dist/bundled/v3/components/OrCarousel/OrCarousel.js +10 -10
  326. package/dist/bundled/v3/components/OrCarousel/OrCarousel.vue.d.ts +676 -126
  327. package/dist/bundled/v3/components/OrCarousel/index.js +9 -9
  328. package/dist/bundled/v3/components/OrCarouselItem/OrCarouselItem.vue.d.ts +1 -1
  329. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.js +10 -10
  330. package/dist/bundled/v3/components/OrCheckbox/OrCheckbox.vue.d.ts +35 -15
  331. package/dist/bundled/v3/components/OrCheckbox/index.js +9 -9
  332. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.js +8 -8
  333. package/dist/bundled/v3/components/OrCheckboxGroupV3/OrCheckboxGroup.vue.d.ts +24 -6
  334. package/dist/bundled/v3/components/OrCheckboxGroupV3/index.js +7 -7
  335. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.js +7 -7
  336. package/dist/bundled/v3/components/OrCheckboxTreeV3/OrCheckboxTree.vue.d.ts +43 -17
  337. package/dist/bundled/v3/components/OrCheckboxTreeV3/index.js +6 -6
  338. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.js +4 -4
  339. package/dist/bundled/v3/components/OrCheckboxV3/OrCheckbox.vue.d.ts +53 -23
  340. package/dist/bundled/v3/components/OrCheckboxV3/index.js +3 -3
  341. package/dist/bundled/v3/components/OrChip/OrChip.js +10 -10
  342. package/dist/bundled/v3/components/OrChip/OrChip.vue.d.ts +25 -9
  343. package/dist/bundled/v3/components/OrChip/index.js +9 -9
  344. package/dist/bundled/v3/components/OrChips/OrChips.js +11 -11
  345. package/dist/bundled/v3/components/OrChips/OrChips.vue.d.ts +51 -24
  346. package/dist/bundled/v3/components/OrChips/index.js +10 -10
  347. package/dist/bundled/v3/components/OrCode/OrCode.js +22 -18
  348. package/dist/bundled/v3/components/OrCode/OrCode.vue.d.ts +69 -24
  349. package/dist/bundled/v3/components/OrCode/index.js +20 -16
  350. package/dist/bundled/v3/components/OrCode/lang.js +4091 -3
  351. package/dist/bundled/v3/components/OrCode/theme.js +2 -1
  352. package/dist/bundled/v3/components/OrCollapse/OrCollapse.js +8 -8
  353. package/dist/bundled/v3/components/OrCollapse/OrCollapse.vue.d.ts +39 -17
  354. package/dist/bundled/v3/components/OrCollapse/index.js +7 -7
  355. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.js +11 -11
  356. package/dist/bundled/v3/components/OrColorPicker/OrColorPicker.vue.d.ts +31 -13
  357. package/dist/bundled/v3/components/OrColorPicker/index.js +10 -10
  358. package/dist/bundled/v3/components/OrCombinedInputV3/OrCombinedInput.vue.d.ts +30 -8
  359. package/dist/bundled/v3/components/OrConfirm/OrConfirm.js +20 -19
  360. package/dist/bundled/v3/components/OrConfirm/OrConfirm.vue.d.ts +84 -23
  361. package/dist/bundled/v3/components/OrConfirm/index.js +19 -18
  362. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +13 -13
  363. package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.vue.d.ts +91 -30
  364. package/dist/bundled/v3/components/OrConfirmV3/index.js +12 -12
  365. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +14 -14
  366. package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.vue.d.ts +83 -26
  367. package/dist/bundled/v3/components/OrDatePickerV3/index.js +13 -13
  368. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.js +17 -17
  369. package/dist/bundled/v3/components/OrDateTimePicker/OrDateTimePicker.vue.d.ts +177 -68
  370. package/dist/bundled/v3/components/OrDateTimePicker/index.js +16 -16
  371. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +15 -15
  372. package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.vue.d.ts +109 -32
  373. package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +14 -14
  374. package/dist/bundled/v3/components/OrEmptyStateV3/OrEmptyState.vue.d.ts +28 -11
  375. package/dist/bundled/v3/components/OrError/OrError.vue.d.ts +8 -4
  376. package/dist/bundled/v3/components/OrErrorTagV3/OrErrorTag.vue.d.ts +7 -4
  377. package/dist/bundled/v3/components/OrErrorV3/OrError.vue.d.ts +18 -9
  378. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.js +3 -3
  379. package/dist/bundled/v3/components/OrExpansionPanelV3/OrExpansionPanel.vue.d.ts +39 -16
  380. package/dist/bundled/v3/components/OrExpansionPanelV3/index.js +2 -2
  381. package/dist/bundled/v3/components/OrFabV3/OrFab.vue.d.ts +20 -8
  382. package/dist/bundled/v3/components/OrFloating/OrFloating.js +8 -8
  383. package/dist/bundled/v3/components/OrFloating/OrFloating.vue.d.ts +46 -15
  384. package/dist/bundled/v3/components/OrFloating/index.js +7 -7
  385. package/dist/bundled/v3/components/OrFormGroupV3/OrFormGroup.vue.d.ts +30 -10
  386. package/dist/bundled/v3/components/OrHint/OrHint.vue.d.ts +8 -4
  387. package/dist/bundled/v3/components/OrHintV3/OrHint.vue.d.ts +18 -9
  388. package/dist/bundled/v3/components/OrIcon/OrIcon.js +9 -9
  389. package/dist/bundled/v3/components/OrIcon/OrIcon.vue.d.ts +44 -16
  390. package/dist/bundled/v3/components/OrIcon/index.js +8 -8
  391. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.js +11 -11
  392. package/dist/bundled/v3/components/OrIconButtonV2/OrIconButton.vue.d.ts +43 -13
  393. package/dist/bundled/v3/components/OrIconButtonV2/index.js +10 -10
  394. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.js +8 -8
  395. package/dist/bundled/v3/components/OrIconButtonV3/OrIconButton.vue.d.ts +52 -16
  396. package/dist/bundled/v3/components/OrIconButtonV3/index.js +7 -7
  397. package/dist/bundled/v3/components/OrIconV3/OrIcon.vue.d.ts +18 -7
  398. package/dist/bundled/v3/components/OrInlineInputBoxV3/OrInlineInputBox.vue.d.ts +16 -7
  399. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +9 -9
  400. package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.vue.d.ts +83 -39
  401. package/dist/bundled/v3/components/OrInlineInputV3/index.js +8 -8
  402. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.js +15 -15
  403. package/dist/bundled/v3/components/OrInlineTextEdit/OrInlineTextEdit.vue.d.ts +95 -43
  404. package/dist/bundled/v3/components/OrInlineTextEdit/index.js +14 -14
  405. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +9 -9
  406. package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.vue.d.ts +79 -39
  407. package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +8 -8
  408. package/dist/bundled/v3/components/OrInput/OrInput.js +9 -9
  409. package/dist/bundled/v3/components/OrInput/OrInput.vue.d.ts +87 -36
  410. package/dist/bundled/v3/components/OrInput/index.js +8 -8
  411. package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.vue.d.ts +22 -7
  412. package/dist/bundled/v3/components/OrInputV3/OrInput.js +10 -10
  413. package/dist/bundled/v3/components/OrInputV3/OrInput.vue.d.ts +85 -34
  414. package/dist/bundled/v3/components/OrInputV3/index.js +9 -9
  415. package/dist/bundled/v3/components/OrLabel/OrLabel.vue.d.ts +20 -9
  416. package/dist/bundled/v3/components/OrLabelV3/OrLabel.vue.d.ts +24 -9
  417. package/dist/bundled/v3/components/OrLinkV3/OrLink.vue.d.ts +24 -7
  418. package/dist/bundled/v3/components/OrList/OrList.js +17 -17
  419. package/dist/bundled/v3/components/OrList/OrList.vue.d.ts +47 -21
  420. package/dist/bundled/v3/components/OrList/index.js +16 -16
  421. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.js +20 -20
  422. package/dist/bundled/v3/components/OrListOfInputs/OrListOfInputs.vue.d.ts +27 -11
  423. package/dist/bundled/v3/components/OrListOfInputs/index.js +19 -19
  424. package/dist/bundled/v3/components/OrLoader/OrLoader.vue.d.ts +26 -10
  425. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.js +4 -4
  426. package/dist/bundled/v3/components/OrLoaderV3/OrLoader.vue.d.ts +34 -13
  427. package/dist/bundled/v3/components/OrLoaderV3/index.js +3 -3
  428. package/dist/bundled/v3/components/OrMenuItemV3/OrMenuItem.vue.d.ts +34 -13
  429. package/dist/bundled/v3/components/OrMenuV3/OrMenu.js +7 -7
  430. package/dist/bundled/v3/components/OrMenuV3/OrMenu.vue.d.ts +31 -15
  431. package/dist/bundled/v3/components/OrMenuV3/index.js +6 -6
  432. package/dist/bundled/v3/components/OrModal/OrModal.js +15 -14
  433. package/dist/bundled/v3/components/OrModal/OrModal.vue.d.ts +38 -14
  434. package/dist/bundled/v3/components/OrModal/index.js +14 -13
  435. package/dist/bundled/v3/components/OrModalV3/OrModal.js +9 -9
  436. package/dist/bundled/v3/components/OrModalV3/OrModal.vue.d.ts +25 -13
  437. package/dist/bundled/v3/components/OrModalV3/index.js +8 -8
  438. package/dist/bundled/v3/components/OrNotification/OrNotification.js +12 -12
  439. package/dist/bundled/v3/components/OrNotification/OrNotification.vue.d.ts +27 -9
  440. package/dist/bundled/v3/components/OrNotification/index.js +11 -11
  441. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.js +9 -9
  442. package/dist/bundled/v3/components/OrNotificationV3/OrNotification.vue.d.ts +20 -9
  443. package/dist/bundled/v3/components/OrNotificationV3/index.js +8 -8
  444. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.js +10 -10
  445. package/dist/bundled/v3/components/OrNumberInput/OrNumberInput.vue.d.ts +70 -24
  446. package/dist/bundled/v3/components/OrNumberInput/index.js +9 -9
  447. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.js +15 -15
  448. package/dist/bundled/v3/components/OrOverflowMenu/OrOverflowMenu.vue.d.ts +31 -13
  449. package/dist/bundled/v3/components/OrOverflowMenu/index.js +14 -14
  450. package/dist/bundled/v3/components/OrOverlay/OrOverlay.vue.d.ts +16 -6
  451. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.js +4 -4
  452. package/dist/bundled/v3/components/OrOverlayV3/OrOverlay.vue.d.ts +14 -7
  453. package/dist/bundled/v3/components/OrOverlayV3/index.js +3 -3
  454. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.js +10 -10
  455. package/dist/bundled/v3/components/OrPaginationV3/OrPagination.vue.d.ts +75 -27
  456. package/dist/bundled/v3/components/OrPaginationV3/index.js +9 -9
  457. package/dist/bundled/v3/components/OrPassword/OrPassword.js +16 -16
  458. package/dist/bundled/v3/components/OrPassword/OrPassword.vue.d.ts +63 -22
  459. package/dist/bundled/v3/components/OrPassword/index.js +15 -15
  460. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.js +6 -6
  461. package/dist/bundled/v3/components/OrPopoverV3/OrPopover.vue.d.ts +74 -24
  462. package/dist/bundled/v3/components/OrPopoverV3/index.js +5 -5
  463. package/dist/bundled/v3/components/OrProgress/OrProgress.js +8 -8
  464. package/dist/bundled/v3/components/OrProgress/OrProgress.vue.d.ts +56 -20
  465. package/dist/bundled/v3/components/OrProgress/index.js +7 -7
  466. package/dist/bundled/v3/components/OrProgressV3/OrProgress.js +10 -10
  467. package/dist/bundled/v3/components/OrProgressV3/OrProgress.vue.d.ts +62 -25
  468. package/dist/bundled/v3/components/OrProgressV3/index.js +9 -9
  469. package/dist/bundled/v3/components/OrRadio/OrRadio.js +10 -10
  470. package/dist/bundled/v3/components/OrRadio/OrRadio.vue.d.ts +35 -13
  471. package/dist/bundled/v3/components/OrRadio/index.js +9 -9
  472. package/dist/bundled/v3/components/OrRadioGroup/OrRadioGroup.vue.d.ts +26 -9
  473. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.js +4 -4
  474. package/dist/bundled/v3/components/OrRadioGroupV3/OrRadioGroup.vue.d.ts +32 -6
  475. package/dist/bundled/v3/components/OrRadioGroupV3/index.js +3 -3
  476. package/dist/bundled/v3/components/OrRadioV3/OrRadio.vue.d.ts +49 -21
  477. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.js +291 -0
  478. package/dist/bundled/v3/components/OrRichTextEditorV3/OrRichTextEditor.vue.d.ts +194 -0
  479. package/dist/bundled/v3/components/OrRichTextEditorV3/index.d.ts +2 -0
  480. package/dist/bundled/v3/components/OrRichTextEditorV3/index.js +92 -0
  481. package/dist/bundled/v3/components/OrRichTextEditorV3/props.d.ts +5 -0
  482. package/dist/bundled/v3/components/OrRichTextEditorV3/props.js +7 -0
  483. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.d.ts +6 -0
  484. package/dist/bundled/v3/components/OrRichTextEditorV3/styles.js +38 -0
  485. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.d.ts +3 -0
  486. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorNode.js +50 -0
  487. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.d.ts +27 -0
  488. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/codemirrorView.js +188 -0
  489. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.d.ts +1 -0
  490. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/index.js +9 -0
  491. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.d.ts +39 -0
  492. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/theme.js +212 -0
  493. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.d.ts +19 -0
  494. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/codemirror/types.js +1 -0
  495. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.d.ts +3 -0
  496. package/dist/bundled/v3/components/OrRichTextEditorV3/utils/markdown.js +6 -0
  497. package/dist/bundled/v3/components/OrSearch/OrSearch.js +15 -15
  498. package/dist/bundled/v3/components/OrSearch/OrSearch.vue.d.ts +65 -23
  499. package/dist/bundled/v3/components/OrSearch/index.js +14 -14
  500. package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +11 -11
  501. package/dist/bundled/v3/components/OrSearchV3/OrSearch.vue.d.ts +41 -17
  502. package/dist/bundled/v3/components/OrSearchV3/index.js +10 -10
  503. package/dist/bundled/v3/components/OrSegmentedControlV3/OrSegmentedControl.vue.d.ts +25 -9
  504. package/dist/bundled/v3/components/OrSelect/OrSelect.js +17 -17
  505. package/dist/bundled/v3/components/OrSelect/OrSelect.vue.d.ts +77 -28
  506. package/dist/bundled/v3/components/OrSelect/index.js +16 -16
  507. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +14 -14
  508. package/dist/bundled/v3/components/OrSelectV3/OrSelect.vue.d.ts +117 -38
  509. package/dist/bundled/v3/components/OrSelectV3/index.js +13 -13
  510. package/dist/bundled/v3/components/OrSidebar/OrSidebar.js +4 -4
  511. package/dist/bundled/v3/components/OrSidebar/OrSidebar.vue.d.ts +33 -14
  512. package/dist/bundled/v3/components/OrSidebar/index.js +3 -3
  513. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.js +9 -9
  514. package/dist/bundled/v3/components/OrSidebarV3/OrSidebar.vue.d.ts +63 -28
  515. package/dist/bundled/v3/components/OrSidebarV3/index.js +8 -8
  516. package/dist/bundled/v3/components/OrSkeleton/index.js +7 -7
  517. package/dist/bundled/v3/components/OrSkeletonCircle/OrSkeletonCircle.vue.d.ts +20 -9
  518. package/dist/bundled/v3/components/OrSkeletonCircleV3/OrSkeletonCircle.vue.d.ts +28 -13
  519. package/dist/bundled/v3/components/OrSkeletonRect/OrSkeletonRect.vue.d.ts +22 -9
  520. package/dist/bundled/v3/components/OrSkeletonRectV3/OrSkeletonRect.vue.d.ts +26 -11
  521. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.js +8 -8
  522. package/dist/bundled/v3/components/OrSkeletonText/OrSkeletonText.vue.d.ts +26 -10
  523. package/dist/bundled/v3/components/OrSkeletonText/index.js +7 -7
  524. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.js +8 -8
  525. package/dist/bundled/v3/components/OrSkeletonTextV3/OrSkeletonText.vue.d.ts +40 -16
  526. package/dist/bundled/v3/components/OrSkeletonTextV3/index.js +7 -7
  527. package/dist/bundled/v3/components/OrSkeletonV3/index.js +7 -7
  528. package/dist/bundled/v3/components/OrSlider/OrSlider.js +12 -12
  529. package/dist/bundled/v3/components/OrSlider/OrSlider.vue.d.ts +91 -35
  530. package/dist/bundled/v3/components/OrSlider/index.js +11 -11
  531. package/dist/bundled/v3/components/OrSortHeaderV3/OrSortHeader.vue.d.ts +25 -13
  532. package/dist/bundled/v3/components/OrStepper/OrStepper.js +11 -11
  533. package/dist/bundled/v3/components/OrStepper/OrStepper.vue.d.ts +43 -16
  534. package/dist/bundled/v3/components/OrStepper/index.js +10 -10
  535. package/dist/bundled/v3/components/OrSwitch/OrSwitch.vue.d.ts +33 -12
  536. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.js +5 -5
  537. package/dist/bundled/v3/components/OrSwitchV3/OrSwitch.vue.d.ts +53 -22
  538. package/dist/bundled/v3/components/OrSwitchV3/index.js +4 -4
  539. package/dist/bundled/v3/components/OrTab/OrTab.vue.d.ts +22 -9
  540. package/dist/bundled/v3/components/OrTabHeaderItem/OrTabHeaderItem.vue.d.ts +29 -13
  541. package/dist/bundled/v3/components/OrTabV3/OrTab.vue.d.ts +17 -10
  542. package/dist/bundled/v3/components/OrTabs/OrTabs.vue.d.ts +17 -4
  543. package/dist/bundled/v3/components/OrTabsV3/OrTabs.js +8 -8
  544. package/dist/bundled/v3/components/OrTabsV3/OrTabs.vue.d.ts +71 -25
  545. package/dist/bundled/v3/components/OrTabsV3/index.js +7 -7
  546. package/dist/bundled/v3/components/OrTag/OrTag.js +10 -10
  547. package/dist/bundled/v3/components/OrTag/OrTag.vue.d.ts +27 -10
  548. package/dist/bundled/v3/components/OrTag/index.js +9 -9
  549. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +13 -13
  550. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +85 -37
  551. package/dist/bundled/v3/components/OrTagInputV3/index.js +12 -12
  552. package/dist/bundled/v3/components/OrTagV3/OrTag.js +9 -9
  553. package/dist/bundled/v3/components/OrTagV3/OrTag.vue.d.ts +23 -12
  554. package/dist/bundled/v3/components/OrTagV3/index.js +8 -8
  555. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +12 -12
  556. package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +66 -23
  557. package/dist/bundled/v3/components/OrTagsV3/index.js +11 -11
  558. package/dist/bundled/v3/components/OrTeleport/OrTeleport.vue3.vue.d.ts +10 -4
  559. package/dist/bundled/v3/components/OrTeleportV3/OrTeleport.vue3.vue.d.ts +10 -4
  560. package/dist/bundled/v3/components/OrTextV3/OrText.vue.d.ts +24 -11
  561. package/dist/bundled/v3/components/OrTextarea/OrTextarea.js +9 -9
  562. package/dist/bundled/v3/components/OrTextarea/OrTextarea.vue.d.ts +85 -37
  563. package/dist/bundled/v3/components/OrTextarea/index.js +8 -8
  564. package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.vue.d.ts +73 -32
  565. package/dist/bundled/v3/components/OrTextbox/OrTextbox.js +13 -13
  566. package/dist/bundled/v3/components/OrTextbox/OrTextbox.vue.d.ts +137 -55
  567. package/dist/bundled/v3/components/OrTextbox/index.js +12 -12
  568. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +13 -13
  569. package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.vue.d.ts +83 -26
  570. package/dist/bundled/v3/components/OrTimePickerV3/index.js +12 -12
  571. package/dist/bundled/v3/components/OrToast/OrToast.js +14 -14
  572. package/dist/bundled/v3/components/OrToast/OrToast.vue.d.ts +31 -11
  573. package/dist/bundled/v3/components/OrToast/Timer.js +1 -1
  574. package/dist/bundled/v3/components/OrToast/composable/index.js +2 -2
  575. package/dist/bundled/v3/components/OrToast/composable/useToast.js +2 -2
  576. package/dist/bundled/v3/components/OrToast/composable/useToastEventBus.js +2 -2
  577. package/dist/bundled/v3/components/OrToast/index.js +17 -17
  578. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.js +18 -18
  579. package/dist/bundled/v3/components/OrToastContainer/OrToastContainer.vue.d.ts +55 -25
  580. package/dist/bundled/v3/components/OrToastContainer/index.js +17 -17
  581. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.js +10 -10
  582. package/dist/bundled/v3/components/OrToastContainerV3/OrToastContainer.vue.d.ts +54 -24
  583. package/dist/bundled/v3/components/OrToastContainerV3/index.js +9 -9
  584. package/dist/bundled/v3/components/OrToastV3/OrToast.js +8 -8
  585. package/dist/bundled/v3/components/OrToastV3/OrToast.vue.d.ts +38 -16
  586. package/dist/bundled/v3/components/OrToastV3/Timer.js +1 -1
  587. package/dist/bundled/v3/components/OrToastV3/composable/index.js +2 -2
  588. package/dist/bundled/v3/components/OrToastV3/composable/useToast.js +2 -2
  589. package/dist/bundled/v3/components/OrToastV3/composable/useToastEventBus.js +2 -2
  590. package/dist/bundled/v3/components/OrToastV3/index.js +9 -9
  591. package/dist/bundled/v3/components/OrTooltip/OrTooltip.js +9 -9
  592. package/dist/bundled/v3/components/OrTooltip/OrTooltip.vue.d.ts +33 -14
  593. package/dist/bundled/v3/components/OrTooltip/index.js +8 -8
  594. package/dist/bundled/v3/components/OrTooltipContent/OrTooltipContent.vue.d.ts +10 -4
  595. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.js +7 -7
  596. package/dist/bundled/v3/components/OrTooltipV3/OrTooltip.vue.d.ts +31 -15
  597. package/dist/bundled/v3/components/OrTooltipV3/index.js +6 -6
  598. package/dist/bundled/v3/components/index.d.ts +1 -0
  599. package/dist/bundled/v3/components/index.js +112 -94
  600. package/dist/bundled/v3/directives/dropdown-close.d.ts +1 -3
  601. package/dist/bundled/v3/directives/dropdown-open.d.ts +1 -3
  602. package/dist/bundled/{v2/dom-571739a2.js → v3/dom-c98dce89.js} +2 -2
  603. package/dist/bundled/v3/{eq-fa566495.js → eq-037e6fce.js} +1 -1
  604. package/dist/bundled/{v2/get-73ac2f59.js → v3/get-b30afe93.js} +3 -3
  605. package/dist/bundled/v3/hooks/index.js +3 -3
  606. package/dist/bundled/v3/hooks/useOverflow.js +2 -2
  607. package/dist/bundled/v3/hooks/usePopoverState.js +1 -1
  608. package/dist/bundled/v3/hooks/useResponsive/index.js +2 -2
  609. package/dist/bundled/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  610. package/dist/bundled/v3/hooks/useResponsive/useResponsive.js +2 -2
  611. package/dist/bundled/v3/hooks/useTheme.js +1 -1
  612. package/dist/bundled/v3/{index-f4d8e24c.js → index-40b35d94.js} +1 -1
  613. package/dist/bundled/v3/index-536f78ef.js +9714 -0
  614. package/dist/bundled/v3/index-71dbceb9.js +3805 -0
  615. package/dist/bundled/v3/{index-500b3ace.js → index-749f3444.js} +1 -1
  616. package/dist/bundled/v3/index-85c2efe8.js +7122 -0
  617. package/dist/bundled/v3/{index-cf2c3c27.js → index-a8488e2a.js} +3 -115
  618. package/dist/bundled/v3/{index-09d1cb24.js → index-ae815a7e.js} +2 -2
  619. package/dist/bundled/v3/{lang-0fb8f78b.js → index-c59372d3.js} +118 -4028
  620. package/dist/bundled/v3/index.es-3f39f316.js +115 -0
  621. package/dist/bundled/v3/index.js +112 -97
  622. package/dist/bundled/v3/{isArrayLike-acf249e3.js → isArrayLike-61275a05.js} +1 -1
  623. package/dist/bundled/v3/{isEqual-881b7bb5.js → isEqual-8bbb1110.js} +1 -1
  624. package/dist/bundled/{v2/isObject-3a5b854d.js → v3/isObject-08fab135.js} +1 -1
  625. package/dist/bundled/v3/markdown-161bd1ee.js +15365 -0
  626. package/dist/bundled/{v2/range-c87289f7.js → v3/range-637f1361.js} +4 -4
  627. package/dist/bundled/{v2/round-136c7e43.js → v3/round-4a894f03.js} +4 -4
  628. package/dist/bundled/v3/{toFinite-021b0c50.js → toFinite-675db18a.js} +1 -1
  629. package/dist/bundled/v3/{toInteger-db8a475d.js → toInteger-27595771.js} +1 -1
  630. package/dist/bundled/{v2/toString-47fa81b4.js → v3/toString-a72d5149.js} +1 -1
  631. package/dist/bundled/v3/useFocusTrap-a61a80ac.js +1349 -0
  632. package/dist/bundled/v3/utils/functions/dom.js +6 -6
  633. package/dist/esm/v2/OrRichTextEditor-4475bf12.js +980 -0
  634. package/dist/esm/v2/codemirrorView-97db8166.js +371 -0
  635. package/dist/esm/v2/components/index.d.ts +1 -0
  636. package/dist/esm/v2/components/index.js +24 -0
  637. package/dist/esm/v2/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
  638. package/dist/esm/v2/components/or-rich-text-editor-v3/index.d.ts +2 -0
  639. package/dist/esm/v2/components/or-rich-text-editor-v3/index.js +62 -0
  640. package/dist/esm/v2/components/or-rich-text-editor-v3/props.d.ts +5 -0
  641. package/dist/esm/v2/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  642. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  643. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  644. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  645. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/index.js +10 -0
  646. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +39 -0
  647. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  648. package/dist/esm/v2/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  649. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  650. package/dist/esm/v2/components/or-textarea/OrTextarea.vue.d.ts +2 -2
  651. package/dist/esm/v2/components/or-textarea-v3/OrTextarea.vue.d.ts +2 -2
  652. package/dist/esm/v2/components/or-textbox/OrTextbox.vue.d.ts +2 -2
  653. package/dist/esm/v2/components/or-time-picker-v3/OrTimePicker.vue.d.ts +2 -2
  654. package/dist/esm/v2/components/or-toast/OrToast.vue.d.ts +2 -2
  655. package/dist/esm/v2/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +2 -2
  656. package/dist/esm/v2/components/or-toast-v3/OrToast.vue.d.ts +2 -2
  657. package/dist/esm/v2/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +2 -2
  658. package/dist/esm/v2/components/or-tooltip/OrTooltip.vue.d.ts +2 -2
  659. package/dist/esm/v2/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +2 -2
  660. package/dist/esm/v2/components/or-tooltip-v3/OrTooltip.vue.d.ts +2 -2
  661. package/dist/esm/v2/index.js +23 -0
  662. package/dist/esm/v3/OrRichTextEditor-a3a732db.js +912 -0
  663. package/dist/esm/v3/codemirrorView-97db8166.js +371 -0
  664. package/dist/esm/v3/components/index.d.ts +1 -0
  665. package/dist/esm/v3/components/index.js +24 -0
  666. package/dist/esm/v3/components/or-avatar/OrAvatar.vue.d.ts +26 -11
  667. package/dist/esm/v3/components/or-avatar-v3/OrAvatar.vue.d.ts +24 -8
  668. package/dist/esm/v3/components/or-bottom-sheet-v3/OrBottomSheet.vue.d.ts +33 -17
  669. package/dist/esm/v3/components/or-button/OrButton.vue.d.ts +51 -16
  670. package/dist/esm/v3/components/or-button-v2/OrButton.vue.d.ts +57 -20
  671. package/dist/esm/v3/components/or-button-v3/OrButton.vue.d.ts +35 -15
  672. package/dist/esm/v3/components/or-card/OrCard.vue.d.ts +15 -7
  673. package/dist/esm/v3/components/or-card-collection/OrCardCollection.vue.d.ts +47 -21
  674. package/dist/esm/v3/components/or-card-collection-v3/OrCardCollection.vue.d.ts +70 -22
  675. package/dist/esm/v3/components/or-card-collection-v3/partials/OrCardCollectionView.vue3.vue.d.ts +14 -6
  676. package/dist/esm/v3/components/or-card-v3/OrCard.vue.d.ts +7 -4
  677. package/dist/esm/v3/components/or-carousel/OrCarousel.vue.d.ts +676 -126
  678. package/dist/esm/v3/components/or-carousel/or-carousel-item/OrCarouselItem.vue.d.ts +1 -1
  679. package/dist/esm/v3/components/or-checkbox/OrCheckbox.vue.d.ts +35 -15
  680. package/dist/esm/v3/components/or-checkbox-group-v3/OrCheckboxGroup.vue.d.ts +24 -6
  681. package/dist/esm/v3/components/or-checkbox-tree-v3/OrCheckboxTree.vue.d.ts +43 -17
  682. package/dist/esm/v3/components/or-checkbox-v3/OrCheckbox.vue.d.ts +53 -23
  683. package/dist/esm/v3/components/or-chips/OrChips.vue.d.ts +51 -24
  684. package/dist/esm/v3/components/or-chips/or-chip/OrChip.vue.d.ts +25 -9
  685. package/dist/esm/v3/components/or-chips/partials/OrChipsInput.vue.d.ts +37 -17
  686. package/dist/esm/v3/components/or-code/OrCode.vue.d.ts +69 -24
  687. package/dist/esm/v3/components/or-collapse/OrCollapse.vue.d.ts +39 -17
  688. package/dist/esm/v3/components/or-color-picker/OrColorPicker.vue.d.ts +31 -13
  689. package/dist/esm/v3/components/or-combined-input-v3/OrCombinedInput.vue.d.ts +30 -8
  690. package/dist/esm/v3/components/or-confirm/OrConfirm.vue.d.ts +84 -23
  691. package/dist/esm/v3/components/or-confirm-v3/OrConfirm.vue.d.ts +91 -30
  692. package/dist/esm/v3/components/or-date-picker-v3/OrDatePicker.vue.d.ts +83 -26
  693. package/dist/esm/v3/components/or-date-time-picker/OrDateTimePicker.vue.d.ts +177 -68
  694. package/dist/esm/v3/components/or-date-time-picker/partials/OrDateTimePickerCalendarItem.vue.d.ts +33 -12
  695. package/dist/esm/v3/components/or-date-time-picker-v3/OrDateTimePicker.vue.d.ts +109 -32
  696. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-control/OrDateTimePickerDateControl.vue.d.ts +28 -11
  697. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-date-select/OrDateTimePickerDateSelect.vue.d.ts +39 -17
  698. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-mobile-control/OrDateTimePickerMobileControl.vue.d.ts +15 -7
  699. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-month-select/OrDateTimePickerMonthSelect.vue.d.ts +85 -23
  700. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-footer/OrDateTimePickerPopoverFooter.vue.d.ts +17 -9
  701. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-popover-header/OrDateTimePickerPopoverHeader.vue.d.ts +7 -4
  702. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-control/OrDateTimePickerTimeControl.vue.d.ts +30 -11
  703. package/dist/esm/v3/components/or-date-time-picker-v3/partials/or-date-time-picker-time-select/OrDateTimePickerTimeSelect.vue.d.ts +43 -17
  704. package/dist/esm/v3/components/or-empty-state-v3/OrEmptyState.vue.d.ts +28 -11
  705. package/dist/esm/v3/components/or-error/OrError.vue.d.ts +8 -4
  706. package/dist/esm/v3/components/or-error-tag-v3/OrErrorTag.vue.d.ts +7 -4
  707. package/dist/esm/v3/components/or-error-v3/OrError.vue.d.ts +18 -9
  708. package/dist/esm/v3/components/or-expansion-panel-v3/OrExpansionPanel.vue.d.ts +39 -16
  709. package/dist/esm/v3/components/or-fab-v3/OrFab.vue.d.ts +20 -8
  710. package/dist/esm/v3/components/or-floating/OrFloating.vue.d.ts +46 -15
  711. package/dist/esm/v3/components/or-form-group-v3/OrFormGroup.vue.d.ts +30 -10
  712. package/dist/esm/v3/components/or-hint/OrHint.vue.d.ts +8 -4
  713. package/dist/esm/v3/components/or-hint-v3/OrHint.vue.d.ts +18 -9
  714. package/dist/esm/v3/components/or-icon/OrIcon.vue.d.ts +44 -16
  715. package/dist/esm/v3/components/or-icon-button-v2/OrIconButton.vue.d.ts +43 -13
  716. package/dist/esm/v3/components/or-icon-button-v2/partials/OrTooltipWrapper.vue.d.ts +10 -8
  717. package/dist/esm/v3/components/or-icon-button-v3/OrIconButton.vue.d.ts +52 -16
  718. package/dist/esm/v3/components/or-icon-v3/OrIcon.vue.d.ts +18 -7
  719. package/dist/esm/v3/components/or-inline-input-box-v3/OrInlineInputBox.vue.d.ts +16 -7
  720. package/dist/esm/v3/components/or-inline-input-v3/OrInlineInput.vue.d.ts +83 -39
  721. package/dist/esm/v3/components/or-inline-text-edit/OrInlineTextEdit.vue.d.ts +95 -43
  722. package/dist/esm/v3/components/or-inline-textarea-v3/OrInlineTextarea.vue.d.ts +79 -39
  723. package/dist/esm/v3/components/or-input/OrInput.vue.d.ts +87 -36
  724. package/dist/esm/v3/components/or-input-box-v3/OrInputBox.vue.d.ts +22 -7
  725. package/dist/esm/v3/components/or-input-box-v3/partials/or-input-box-addon/OrInputBoxAddon.vue.d.ts +18 -7
  726. package/dist/esm/v3/components/or-input-v3/OrInput.vue.d.ts +85 -34
  727. package/dist/esm/v3/components/or-label/OrLabel.vue.d.ts +20 -9
  728. package/dist/esm/v3/components/or-label-v3/OrLabel.vue.d.ts +24 -9
  729. package/dist/esm/v3/components/or-link-v3/OrLink.vue.d.ts +24 -7
  730. package/dist/esm/v3/components/or-list/OrList.vue.d.ts +47 -21
  731. package/dist/esm/v3/components/or-list-of-inputs/OrListOfInputs.vue.d.ts +27 -11
  732. package/dist/esm/v3/components/or-loader/OrLoader.vue.d.ts +26 -10
  733. package/dist/esm/v3/components/or-loader-v3/OrLoader.vue.d.ts +34 -13
  734. package/dist/esm/v3/components/or-menu-item-v3/OrMenuItem.vue.d.ts +34 -13
  735. package/dist/esm/v3/components/or-menu-v3/OrMenu.vue.d.ts +31 -15
  736. package/dist/esm/v3/components/or-modal/OrModal.vue.d.ts +38 -14
  737. package/dist/esm/v3/components/or-modal-v3/OrModal.vue.d.ts +25 -13
  738. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-content/OrModalContent.vue.d.ts +7 -4
  739. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-footer/OrModalFooter.vue.d.ts +7 -4
  740. package/dist/esm/v3/components/or-modal-v3/partials/or-modal-header/OrModalHeader.vue.d.ts +11 -6
  741. package/dist/esm/v3/components/or-notification/OrNotification.vue.d.ts +27 -9
  742. package/dist/esm/v3/components/or-notification-v3/OrNotification.vue.d.ts +20 -9
  743. package/dist/esm/v3/components/or-number-input/OrNumberInput.vue.d.ts +70 -24
  744. package/dist/esm/v3/components/or-overflow-menu/OrOverflowMenu.vue.d.ts +31 -13
  745. package/dist/esm/v3/components/or-overflow-menu/partials/OrOverflowMenuItem.vue.d.ts +23 -7
  746. package/dist/esm/v3/components/or-overlay/OrOverlay.vue.d.ts +16 -6
  747. package/dist/esm/v3/components/or-overlay-v3/OrOverlay.vue.d.ts +14 -7
  748. package/dist/esm/v3/components/or-pagination-v3/OrPagination.vue.d.ts +75 -27
  749. package/dist/esm/v3/components/or-password/OrPassword.vue.d.ts +63 -22
  750. package/dist/esm/v3/components/or-popover-v3/OrPopover.vue.d.ts +74 -24
  751. package/dist/esm/v3/components/or-progress/OrProgress.vue.d.ts +56 -20
  752. package/dist/esm/v3/components/or-progress-v3/OrProgress.vue.d.ts +62 -25
  753. package/dist/esm/v3/components/or-radio/OrRadio.vue.d.ts +35 -13
  754. package/dist/esm/v3/components/or-radio-group/OrRadioGroup.vue.d.ts +26 -9
  755. package/dist/esm/v3/components/or-radio-group-v3/OrRadioGroup.vue.d.ts +32 -6
  756. package/dist/esm/v3/components/or-radio-v3/OrRadio.vue.d.ts +49 -21
  757. package/dist/esm/v3/components/or-rich-text-editor-v3/OrRichTextEditor.vue.d.ts +194 -0
  758. package/dist/esm/v3/components/or-rich-text-editor-v3/index.d.ts +2 -0
  759. package/dist/esm/v3/components/or-rich-text-editor-v3/index.js +60 -0
  760. package/dist/esm/v3/components/or-rich-text-editor-v3/props.d.ts +5 -0
  761. package/dist/esm/v3/components/or-rich-text-editor-v3/styles.d.ts +6 -0
  762. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.d.ts +3 -0
  763. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.d.ts +27 -0
  764. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.d.ts +1 -0
  765. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/index.js +10 -0
  766. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/theme.d.ts +39 -0
  767. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/codemirror/types.d.ts +19 -0
  768. package/dist/esm/v3/components/or-rich-text-editor-v3/utils/markdown.d.ts +3 -0
  769. package/dist/esm/v3/components/or-search/OrSearch.vue.d.ts +65 -23
  770. package/dist/esm/v3/components/or-search-v3/OrSearch.vue.d.ts +41 -17
  771. package/dist/esm/v3/components/or-segmented-control-v3/OrSegmentedControl.vue.d.ts +25 -9
  772. package/dist/esm/v3/components/or-segmented-control-v3/partials/or-segmented-control-item/OrSegmentedControlItem.vue.d.ts +20 -8
  773. package/dist/esm/v3/components/or-select/OrSelect.vue.d.ts +77 -28
  774. package/dist/esm/v3/components/or-select/partials/OrSelectContent.vue.d.ts +49 -18
  775. package/dist/esm/v3/components/or-select/partials/OrSelectContentEmpty.vue.d.ts +16 -4
  776. package/dist/esm/v3/components/or-select/partials/OrSelectContentOptions.vue.d.ts +67 -13
  777. package/dist/esm/v3/components/or-select/partials/OrSelectInput.vue.d.ts +41 -16
  778. package/dist/esm/v3/components/or-select/partials/OrSelectInputValue.vue.d.ts +35 -16
  779. package/dist/esm/v3/components/or-select/partials/OrSelectMain.vue.d.ts +71 -24
  780. package/dist/esm/v3/components/or-select/partials/OrSelectOption.vue.d.ts +19 -7
  781. package/dist/esm/v3/components/or-select/partials/OrSelectSearchOptions.vue.d.ts +24 -11
  782. package/dist/esm/v3/components/or-select-v3/OrSelect.vue.d.ts +117 -38
  783. package/dist/esm/v3/components/or-sidebar/OrSidebar.vue.d.ts +33 -14
  784. package/dist/esm/v3/components/or-sidebar-v3/OrSidebar.vue.d.ts +63 -28
  785. package/dist/esm/v3/components/or-sidebar-v3/partials/or-sidebar-collapse-button/OrSidebarCollapseButton.vue.d.ts +23 -10
  786. package/dist/esm/v3/components/or-skeleton/or-skeleton-circle/OrSkeletonCircle.vue.d.ts +20 -9
  787. package/dist/esm/v3/components/or-skeleton/or-skeleton-rect/OrSkeletonRect.vue.d.ts +22 -9
  788. package/dist/esm/v3/components/or-skeleton/or-skeleton-text/OrSkeletonText.vue.d.ts +26 -10
  789. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-circle-v3/OrSkeletonCircle.vue.d.ts +28 -13
  790. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-rect-v3/OrSkeletonRect.vue.d.ts +26 -11
  791. package/dist/esm/v3/components/or-skeleton-v3/or-skeleton-text-v3/OrSkeletonText.vue.d.ts +40 -16
  792. package/dist/esm/v3/components/or-slider/OrSlider.vue.d.ts +91 -35
  793. package/dist/esm/v3/components/or-sort-header-v3/OrSortHeader.vue.d.ts +25 -13
  794. package/dist/esm/v3/components/or-stepper/OrStepper.vue.d.ts +43 -16
  795. package/dist/esm/v3/components/or-stepper/partials/OrStepperButtonOptions.vue.d.ts +20 -4
  796. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionHorizontal.vue.d.ts +26 -4
  797. package/dist/esm/v3/components/or-stepper/partials/OrStepperOptionVertical.vue.d.ts +26 -4
  798. package/dist/esm/v3/components/or-stepper/partials/OrStepperTitle.vue.d.ts +22 -6
  799. package/dist/esm/v3/components/or-stepper/partials/StatusIcon.vue.d.ts +12 -6
  800. package/dist/esm/v3/components/or-switch/OrSwitch.vue.d.ts +33 -12
  801. package/dist/esm/v3/components/or-switch-v3/OrSwitch.vue.d.ts +53 -22
  802. package/dist/esm/v3/components/or-tab/OrTab.vue.d.ts +22 -9
  803. package/dist/esm/v3/components/or-tab-header-item/OrTabHeaderItem.vue.d.ts +29 -13
  804. package/dist/esm/v3/components/or-tab-v3/OrTab.vue.d.ts +17 -10
  805. package/dist/esm/v3/components/or-tabs/OrTabs.vue.d.ts +17 -4
  806. package/dist/esm/v3/components/or-tabs-v3/OrTabs.vue.d.ts +71 -25
  807. package/dist/esm/v3/components/or-tag/OrTag.vue.d.ts +27 -10
  808. package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +85 -37
  809. package/dist/esm/v3/components/or-tag-v3/OrTag.vue.d.ts +23 -12
  810. package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +66 -23
  811. package/dist/esm/v3/components/or-teleport/OrTeleport.vue3.vue.d.ts +10 -4
  812. package/dist/esm/v3/components/or-teleport-v3/OrTeleport.vue3.vue.d.ts +10 -4
  813. package/dist/esm/v3/components/or-text-v3/OrText.vue.d.ts +24 -11
  814. package/dist/esm/v3/components/or-textarea/OrTextarea.vue.d.ts +85 -37
  815. package/dist/esm/v3/components/or-textarea-v3/OrTextarea.vue.d.ts +73 -32
  816. package/dist/esm/v3/components/or-textbox/OrTextbox.vue.d.ts +137 -55
  817. package/dist/esm/v3/components/or-time-picker-v3/OrTimePicker.vue.d.ts +83 -26
  818. package/dist/esm/v3/components/or-toast/OrToast.vue.d.ts +31 -11
  819. package/dist/esm/v3/components/or-toast/or-toast-container/OrToastContainer.vue.d.ts +55 -25
  820. package/dist/esm/v3/components/or-toast-v3/OrToast.vue.d.ts +38 -16
  821. package/dist/esm/v3/components/or-toast-v3/or-toast-container-v3/OrToastContainer.vue.d.ts +54 -24
  822. package/dist/esm/v3/components/or-tooltip/OrTooltip.vue.d.ts +33 -14
  823. package/dist/esm/v3/components/or-tooltip/or-tooltip-content/OrTooltipContent.vue.d.ts +10 -4
  824. package/dist/esm/v3/components/or-tooltip-v3/OrTooltip.vue.d.ts +31 -15
  825. package/dist/esm/v3/directives/dropdown-close.d.ts +1 -3
  826. package/dist/esm/v3/directives/dropdown-open.d.ts +1 -3
  827. package/dist/esm/v3/hooks/useResponsive/useResponsive.d.ts +2 -2
  828. package/dist/esm/v3/index.js +23 -0
  829. package/package.json +28 -10
  830. package/src/components/index.ts +1 -0
  831. package/src/components/or-rich-text-editor-v3/OrRichTextEditor.vue +743 -0
  832. package/src/components/or-rich-text-editor-v3/index.ts +2 -0
  833. package/src/components/or-rich-text-editor-v3/props.ts +6 -0
  834. package/src/components/or-rich-text-editor-v3/styles.ts +53 -0
  835. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorNode.ts +40 -0
  836. package/src/components/or-rich-text-editor-v3/utils/codemirror/codemirrorView.ts +254 -0
  837. package/src/components/or-rich-text-editor-v3/utils/codemirror/index.ts +1 -0
  838. package/src/components/or-rich-text-editor-v3/utils/codemirror/theme.js +238 -0
  839. package/src/components/or-rich-text-editor-v3/utils/codemirror/types.ts +22 -0
  840. package/src/components/or-rich-text-editor-v3/utils/markdown.ts +172 -0
  841. /package/dist/bundled/v2/{OrDateTimePickerMonthSelect-2c1b5116.js → OrDateTimePickerMonthSelect-6f4bf0c6.js} +0 -0
  842. /package/dist/bundled/v2/{OrDateTimePickerPopoverHeader-28995b95.js → OrDateTimePickerPopoverHeader-09f694b3.js} +0 -0
  843. /package/dist/bundled/v2/{OrDateTimePickerTimeSelect-c52ee823.js → OrDateTimePickerTimeSelect-566d9fb0.js} +0 -0
  844. /package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-ca9d5307.js → OrExpansionPanel.vue_vue_type_script_lang-deb7a9e0.js} +0 -0
@@ -1,11 +1,12 @@
1
- import { ref, watch, defineComponent, onBeforeUnmount } from 'vue-demi';
1
+ import { defineComponent, ref, watch, onBeforeUnmount } from 'vue-demi';
2
2
  import { OrModalSizes } from './constants.js';
3
- import { i as unrefElement, o as onClickOutside } from '../../index-c92e2839.js';
4
- import { t as tryOnScopeDispose } from '../../index-ec92055d.js';
3
+ import { o as onClickOutside } from '../../index-af414338.js';
4
+ import { u as useFocusTrap } from '../../useFocusTrap-c1384da1.js';
5
5
  import __vue_component__$1 from '../OrIconButtonV2/OrIconButton.js';
6
6
  import __vue_component__$2 from '../OrOverlay/OrOverlay.js';
7
7
  import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
8
8
  import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
9
+ import '../../index-06f6bbe4.js';
9
10
  import '../OrTooltip/OrTooltip.js';
10
11
  import '../OrTooltipContent/OrTooltipContent.js';
11
12
  import '../OrFloating/OrFloating.js';
@@ -14,12 +15,12 @@ import '../OrTeleport/OrTeleport.js';
14
15
  import 'vue';
15
16
  import '../OrTeleport/constants.js';
16
17
  import '../OrFloating/constants.js';
17
- import '../../dom-571739a2.js';
18
- import '../../isObject-3a5b854d.js';
19
- import '../../_commonjsHelpers-48a9cab9.js';
20
- import '../../get-73ac2f59.js';
21
- import '../../toString-47fa81b4.js';
22
- import '../../eq-fa566495.js';
18
+ import '../../dom-c98dce89.js';
19
+ import '../../isObject-08fab135.js';
20
+ import '../../_commonjsHelpers-6584e42b.js';
21
+ import '../../get-b30afe93.js';
22
+ import '../../toString-a72d5149.js';
23
+ import '../../eq-037e6fce.js';
23
24
  import '../OrButtonV2/constants.js';
24
25
  import '../OrIcon/OrIcon.js';
25
26
  import '../OrIcon/constants.js';
@@ -28,1350 +29,6 @@ import '../OrLoader/OrLoader.js';
28
29
  import '../../utils/isEmpty.js';
29
30
  import '../OrLoader/constants.js';
30
31
 
31
- /*!
32
- * tabbable 6.1.1
33
- * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
34
- */
35
- // NOTE: separate `:not()` selectors has broader browser support than the newer
36
- // `:not([inert], [inert] *)` (Feb 2023)
37
- // CAREFUL: JSDom does not support `:not([inert] *)` as a selector; using it causes
38
- // the entire query to fail, resulting in no nodes found, which will break a lot
39
- // of things... so we have to rely on JS to identify nodes inside an inert container
40
- var candidateSelectors = ['input:not([inert])', 'select:not([inert])', 'textarea:not([inert])', 'a[href]:not([inert])', 'button:not([inert])', '[tabindex]:not(slot):not([inert])', 'audio[controls]:not([inert])', 'video[controls]:not([inert])', '[contenteditable]:not([contenteditable="false"]):not([inert])', 'details>summary:first-of-type:not([inert])', 'details:not([inert])'];
41
- var candidateSelector = /* #__PURE__ */candidateSelectors.join(',');
42
- var NoElement = typeof Element === 'undefined';
43
- var matches = NoElement ? function () {} : Element.prototype.matches || Element.prototype.msMatchesSelector || Element.prototype.webkitMatchesSelector;
44
- var getRootNode = !NoElement && Element.prototype.getRootNode ? function (element) {
45
- var _element$getRootNode;
46
- return element === null || element === void 0 ? void 0 : (_element$getRootNode = element.getRootNode) === null || _element$getRootNode === void 0 ? void 0 : _element$getRootNode.call(element);
47
- } : function (element) {
48
- return element === null || element === void 0 ? void 0 : element.ownerDocument;
49
- };
50
-
51
- /**
52
- * Determines if a node is inert or in an inert ancestor.
53
- * @param {Element} [node]
54
- * @param {boolean} [lookUp] If true and `node` is not inert, looks up at ancestors to
55
- * see if any of them are inert. If false, only `node` itself is considered.
56
- * @returns {boolean} True if inert itself or by way of being in an inert ancestor.
57
- * False if `node` is falsy.
58
- */
59
- var isInert = function isInert(node, lookUp) {
60
- var _node$getAttribute;
61
- if (lookUp === void 0) {
62
- lookUp = true;
63
- }
64
- // CAREFUL: JSDom does not support inert at all, so we can't use the `HTMLElement.inert`
65
- // JS API property; we have to check the attribute, which can either be empty or 'true';
66
- // if it's `null` (not specified) or 'false', it's an active element
67
- var inertAtt = node === null || node === void 0 ? void 0 : (_node$getAttribute = node.getAttribute) === null || _node$getAttribute === void 0 ? void 0 : _node$getAttribute.call(node, 'inert');
68
- var inert = inertAtt === '' || inertAtt === 'true';
69
-
70
- // NOTE: this could also be handled with `node.matches('[inert], :is([inert] *)')`
71
- // if it weren't for `matches()` not being a function on shadow roots; the following
72
- // code works for any kind of node
73
- // CAREFUL: JSDom does not appear to support certain selectors like `:not([inert] *)`
74
- // so it likely would not support `:is([inert] *)` either...
75
- var result = inert || lookUp && node && isInert(node.parentNode); // recursive
76
-
77
- return result;
78
- };
79
-
80
- /**
81
- * Determines if a node's content is editable.
82
- * @param {Element} [node]
83
- * @returns True if it's content-editable; false if it's not or `node` is falsy.
84
- */
85
- var isContentEditable = function isContentEditable(node) {
86
- var _node$getAttribute2;
87
- // CAREFUL: JSDom does not support the `HTMLElement.isContentEditable` API so we have
88
- // to use the attribute directly to check for this, which can either be empty or 'true';
89
- // if it's `null` (not specified) or 'false', it's a non-editable element
90
- var attValue = node === null || node === void 0 ? void 0 : (_node$getAttribute2 = node.getAttribute) === null || _node$getAttribute2 === void 0 ? void 0 : _node$getAttribute2.call(node, 'contenteditable');
91
- return attValue === '' || attValue === 'true';
92
- };
93
-
94
- /**
95
- * @param {Element} el container to check in
96
- * @param {boolean} includeContainer add container to check
97
- * @param {(node: Element) => boolean} filter filter candidates
98
- * @returns {Element[]}
99
- */
100
- var getCandidates = function getCandidates(el, includeContainer, filter) {
101
- // even if `includeContainer=false`, we still have to check it for inertness because
102
- // if it's inert, all its children are inert
103
- if (isInert(el)) {
104
- return [];
105
- }
106
- var candidates = Array.prototype.slice.apply(el.querySelectorAll(candidateSelector));
107
- if (includeContainer && matches.call(el, candidateSelector)) {
108
- candidates.unshift(el);
109
- }
110
- candidates = candidates.filter(filter);
111
- return candidates;
112
- };
113
-
114
- /**
115
- * @callback GetShadowRoot
116
- * @param {Element} element to check for shadow root
117
- * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
118
- */
119
-
120
- /**
121
- * @callback ShadowRootFilter
122
- * @param {Element} shadowHostNode the element which contains shadow content
123
- * @returns {boolean} true if a shadow root could potentially contain valid candidates.
124
- */
125
-
126
- /**
127
- * @typedef {Object} CandidateScope
128
- * @property {Element} scopeParent contains inner candidates
129
- * @property {Element[]} candidates list of candidates found in the scope parent
130
- */
131
-
132
- /**
133
- * @typedef {Object} IterativeOptions
134
- * @property {GetShadowRoot|boolean} getShadowRoot true if shadow support is enabled; falsy if not;
135
- * if a function, implies shadow support is enabled and either returns the shadow root of an element
136
- * or a boolean stating if it has an undisclosed shadow root
137
- * @property {(node: Element) => boolean} filter filter candidates
138
- * @property {boolean} flatten if true then result will flatten any CandidateScope into the returned list
139
- * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
140
- */
141
-
142
- /**
143
- * @param {Element[]} elements list of element containers to match candidates from
144
- * @param {boolean} includeContainer add container list to check
145
- * @param {IterativeOptions} options
146
- * @returns {Array.<Element|CandidateScope>}
147
- */
148
- var getCandidatesIteratively = function getCandidatesIteratively(elements, includeContainer, options) {
149
- var candidates = [];
150
- var elementsToCheck = Array.from(elements);
151
- while (elementsToCheck.length) {
152
- var element = elementsToCheck.shift();
153
- if (isInert(element, false)) {
154
- // no need to look up since we're drilling down
155
- // anything inside this container will also be inert
156
- continue;
157
- }
158
- if (element.tagName === 'SLOT') {
159
- // add shadow dom slot scope (slot itself cannot be focusable)
160
- var assigned = element.assignedElements();
161
- var content = assigned.length ? assigned : element.children;
162
- var nestedCandidates = getCandidatesIteratively(content, true, options);
163
- if (options.flatten) {
164
- candidates.push.apply(candidates, nestedCandidates);
165
- } else {
166
- candidates.push({
167
- scopeParent: element,
168
- candidates: nestedCandidates
169
- });
170
- }
171
- } else {
172
- // check candidate element
173
- var validCandidate = matches.call(element, candidateSelector);
174
- if (validCandidate && options.filter(element) && (includeContainer || !elements.includes(element))) {
175
- candidates.push(element);
176
- }
177
-
178
- // iterate over shadow content if possible
179
- var shadowRoot = element.shadowRoot ||
180
- // check for an undisclosed shadow
181
- typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
182
-
183
- // no inert look up because we're already drilling down and checking for inertness
184
- // on the way down, so all containers to this root node should have already been
185
- // vetted as non-inert
186
- var validShadowRoot = !isInert(shadowRoot, false) && (!options.shadowRootFilter || options.shadowRootFilter(element));
187
- if (shadowRoot && validShadowRoot) {
188
- // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
189
- // shadow exists, so look at light dom children as fallback BUT create a scope for any
190
- // child candidates found because they're likely slotted elements (elements that are
191
- // children of the web component element (which has the shadow), in the light dom, but
192
- // slotted somewhere _inside_ the undisclosed shadow) -- the scope is created below,
193
- // _after_ we return from this recursive call
194
- var _nestedCandidates = getCandidatesIteratively(shadowRoot === true ? element.children : shadowRoot.children, true, options);
195
- if (options.flatten) {
196
- candidates.push.apply(candidates, _nestedCandidates);
197
- } else {
198
- candidates.push({
199
- scopeParent: element,
200
- candidates: _nestedCandidates
201
- });
202
- }
203
- } else {
204
- // there's not shadow so just dig into the element's (light dom) children
205
- // __without__ giving the element special scope treatment
206
- elementsToCheck.unshift.apply(elementsToCheck, element.children);
207
- }
208
- }
209
- }
210
- return candidates;
211
- };
212
- var getTabindex = function getTabindex(node, isScope) {
213
- if (node.tabIndex < 0) {
214
- // in Chrome, <details/>, <audio controls/> and <video controls/> elements get a default
215
- // `tabIndex` of -1 when the 'tabindex' attribute isn't specified in the DOM,
216
- // yet they are still part of the regular tab order; in FF, they get a default
217
- // `tabIndex` of 0; since Chrome still puts those elements in the regular tab
218
- // order, consider their tab index to be 0.
219
- // Also browsers do not return `tabIndex` correctly for contentEditable nodes;
220
- // so if they don't have a tabindex attribute specifically set, assume it's 0.
221
- //
222
- // isScope is positive for custom element with shadow root or slot that by default
223
- // have tabIndex -1, but need to be sorted by document order in order for their
224
- // content to be inserted in the correct position
225
- if ((isScope || /^(AUDIO|VIDEO|DETAILS)$/.test(node.tagName) || isContentEditable(node)) && isNaN(parseInt(node.getAttribute('tabindex'), 10))) {
226
- return 0;
227
- }
228
- }
229
- return node.tabIndex;
230
- };
231
- var sortOrderedTabbables = function sortOrderedTabbables(a, b) {
232
- return a.tabIndex === b.tabIndex ? a.documentOrder - b.documentOrder : a.tabIndex - b.tabIndex;
233
- };
234
- var isInput = function isInput(node) {
235
- return node.tagName === 'INPUT';
236
- };
237
- var isHiddenInput = function isHiddenInput(node) {
238
- return isInput(node) && node.type === 'hidden';
239
- };
240
- var isDetailsWithSummary = function isDetailsWithSummary(node) {
241
- var r = node.tagName === 'DETAILS' && Array.prototype.slice.apply(node.children).some(function (child) {
242
- return child.tagName === 'SUMMARY';
243
- });
244
- return r;
245
- };
246
- var getCheckedRadio = function getCheckedRadio(nodes, form) {
247
- for (var i = 0; i < nodes.length; i++) {
248
- if (nodes[i].checked && nodes[i].form === form) {
249
- return nodes[i];
250
- }
251
- }
252
- };
253
- var isTabbableRadio = function isTabbableRadio(node) {
254
- if (!node.name) {
255
- return true;
256
- }
257
- var radioScope = node.form || getRootNode(node);
258
- var queryRadios = function queryRadios(name) {
259
- return radioScope.querySelectorAll('input[type="radio"][name="' + name + '"]');
260
- };
261
- var radioSet;
262
- if (typeof window !== 'undefined' && typeof window.CSS !== 'undefined' && typeof window.CSS.escape === 'function') {
263
- radioSet = queryRadios(window.CSS.escape(node.name));
264
- } else {
265
- try {
266
- radioSet = queryRadios(node.name);
267
- } catch (err) {
268
- // eslint-disable-next-line no-console
269
- console.error('Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s', err.message);
270
- return false;
271
- }
272
- }
273
- var checked = getCheckedRadio(radioSet, node.form);
274
- return !checked || checked === node;
275
- };
276
- var isRadio = function isRadio(node) {
277
- return isInput(node) && node.type === 'radio';
278
- };
279
- var isNonTabbableRadio = function isNonTabbableRadio(node) {
280
- return isRadio(node) && !isTabbableRadio(node);
281
- };
282
-
283
- // determines if a node is ultimately attached to the window's document
284
- var isNodeAttached = function isNodeAttached(node) {
285
- var _nodeRoot;
286
- // The root node is the shadow root if the node is in a shadow DOM; some document otherwise
287
- // (but NOT _the_ document; see second 'If' comment below for more).
288
- // If rootNode is shadow root, it'll have a host, which is the element to which the shadow
289
- // is attached, and the one we need to check if it's in the document or not (because the
290
- // shadow, and all nodes it contains, is never considered in the document since shadows
291
- // behave like self-contained DOMs; but if the shadow's HOST, which is part of the document,
292
- // is hidden, or is not in the document itself but is detached, it will affect the shadow's
293
- // visibility, including all the nodes it contains). The host could be any normal node,
294
- // or a custom element (i.e. web component). Either way, that's the one that is considered
295
- // part of the document, not the shadow root, nor any of its children (i.e. the node being
296
- // tested).
297
- // To further complicate things, we have to look all the way up until we find a shadow HOST
298
- // that is attached (or find none) because the node might be in nested shadows...
299
- // If rootNode is not a shadow root, it won't have a host, and so rootNode should be the
300
- // document (per the docs) and while it's a Document-type object, that document does not
301
- // appear to be the same as the node's `ownerDocument` for some reason, so it's safer
302
- // to ignore the rootNode at this point, and use `node.ownerDocument`. Otherwise,
303
- // using `rootNode.contains(node)` will _always_ be true we'll get false-positives when
304
- // node is actually detached.
305
- // NOTE: If `nodeRootHost` or `node` happens to be the `document` itself (which is possible
306
- // if a tabbable/focusable node was quickly added to the DOM, focused, and then removed
307
- // from the DOM as in https://github.com/focus-trap/focus-trap-react/issues/905), then
308
- // `ownerDocument` will be `null`, hence the optional chaining on it.
309
- var nodeRoot = node && getRootNode(node);
310
- var nodeRootHost = (_nodeRoot = nodeRoot) === null || _nodeRoot === void 0 ? void 0 : _nodeRoot.host;
311
-
312
- // in some cases, a detached node will return itself as the root instead of a document or
313
- // shadow root object, in which case, we shouldn't try to look further up the host chain
314
- var attached = false;
315
- if (nodeRoot && nodeRoot !== node) {
316
- var _nodeRootHost, _nodeRootHost$ownerDo, _node$ownerDocument;
317
- attached = !!((_nodeRootHost = nodeRootHost) !== null && _nodeRootHost !== void 0 && (_nodeRootHost$ownerDo = _nodeRootHost.ownerDocument) !== null && _nodeRootHost$ownerDo !== void 0 && _nodeRootHost$ownerDo.contains(nodeRootHost) || node !== null && node !== void 0 && (_node$ownerDocument = node.ownerDocument) !== null && _node$ownerDocument !== void 0 && _node$ownerDocument.contains(node));
318
- while (!attached && nodeRootHost) {
319
- var _nodeRoot2, _nodeRootHost2, _nodeRootHost2$ownerD;
320
- // since it's not attached and we have a root host, the node MUST be in a nested shadow DOM,
321
- // which means we need to get the host's host and check if that parent host is contained
322
- // in (i.e. attached to) the document
323
- nodeRoot = getRootNode(nodeRootHost);
324
- nodeRootHost = (_nodeRoot2 = nodeRoot) === null || _nodeRoot2 === void 0 ? void 0 : _nodeRoot2.host;
325
- attached = !!((_nodeRootHost2 = nodeRootHost) !== null && _nodeRootHost2 !== void 0 && (_nodeRootHost2$ownerD = _nodeRootHost2.ownerDocument) !== null && _nodeRootHost2$ownerD !== void 0 && _nodeRootHost2$ownerD.contains(nodeRootHost));
326
- }
327
- }
328
- return attached;
329
- };
330
- var isZeroArea = function isZeroArea(node) {
331
- var _node$getBoundingClie = node.getBoundingClientRect(),
332
- width = _node$getBoundingClie.width,
333
- height = _node$getBoundingClie.height;
334
- return width === 0 && height === 0;
335
- };
336
- var isHidden = function isHidden(node, _ref) {
337
- var displayCheck = _ref.displayCheck,
338
- getShadowRoot = _ref.getShadowRoot;
339
- // NOTE: visibility will be `undefined` if node is detached from the document
340
- // (see notes about this further down), which means we will consider it visible
341
- // (this is legacy behavior from a very long way back)
342
- // NOTE: we check this regardless of `displayCheck="none"` because this is a
343
- // _visibility_ check, not a _display_ check
344
- if (getComputedStyle(node).visibility === 'hidden') {
345
- return true;
346
- }
347
- var isDirectSummary = matches.call(node, 'details>summary:first-of-type');
348
- var nodeUnderDetails = isDirectSummary ? node.parentElement : node;
349
- if (matches.call(nodeUnderDetails, 'details:not([open]) *')) {
350
- return true;
351
- }
352
- if (!displayCheck || displayCheck === 'full' || displayCheck === 'legacy-full') {
353
- if (typeof getShadowRoot === 'function') {
354
- // figure out if we should consider the node to be in an undisclosed shadow and use the
355
- // 'non-zero-area' fallback
356
- var originalNode = node;
357
- while (node) {
358
- var parentElement = node.parentElement;
359
- var rootNode = getRootNode(node);
360
- if (parentElement && !parentElement.shadowRoot && getShadowRoot(parentElement) === true // check if there's an undisclosed shadow
361
- ) {
362
- // node has an undisclosed shadow which means we can only treat it as a black box, so we
363
- // fall back to a non-zero-area test
364
- return isZeroArea(node);
365
- } else if (node.assignedSlot) {
366
- // iterate up slot
367
- node = node.assignedSlot;
368
- } else if (!parentElement && rootNode !== node.ownerDocument) {
369
- // cross shadow boundary
370
- node = rootNode.host;
371
- } else {
372
- // iterate up normal dom
373
- node = parentElement;
374
- }
375
- }
376
- node = originalNode;
377
- }
378
- // else, `getShadowRoot` might be true, but all that does is enable shadow DOM support
379
- // (i.e. it does not also presume that all nodes might have undisclosed shadows); or
380
- // it might be a falsy value, which means shadow DOM support is disabled
381
-
382
- // Since we didn't find it sitting in an undisclosed shadow (or shadows are disabled)
383
- // now we can just test to see if it would normally be visible or not, provided it's
384
- // attached to the main document.
385
- // NOTE: We must consider case where node is inside a shadow DOM and given directly to
386
- // `isTabbable()` or `isFocusable()` -- regardless of `getShadowRoot` option setting.
387
-
388
- if (isNodeAttached(node)) {
389
- // this works wherever the node is: if there's at least one client rect, it's
390
- // somehow displayed; it also covers the CSS 'display: contents' case where the
391
- // node itself is hidden in place of its contents; and there's no need to search
392
- // up the hierarchy either
393
- return !node.getClientRects().length;
394
- }
395
-
396
- // Else, the node isn't attached to the document, which means the `getClientRects()`
397
- // API will __always__ return zero rects (this can happen, for example, if React
398
- // is used to render nodes onto a detached tree, as confirmed in this thread:
399
- // https://github.com/facebook/react/issues/9117#issuecomment-284228870)
400
- //
401
- // It also means that even window.getComputedStyle(node).display will return `undefined`
402
- // because styles are only computed for nodes that are in the document.
403
- //
404
- // NOTE: THIS HAS BEEN THE CASE FOR YEARS. It is not new, nor is it caused by tabbable
405
- // somehow. Though it was never stated officially, anyone who has ever used tabbable
406
- // APIs on nodes in detached containers has actually implicitly used tabbable in what
407
- // was later (as of v5.2.0 on Apr 9, 2021) called `displayCheck="none"` mode -- essentially
408
- // considering __everything__ to be visible because of the innability to determine styles.
409
- //
410
- // v6.0.0: As of this major release, the default 'full' option __no longer treats detached
411
- // nodes as visible with the 'none' fallback.__
412
- if (displayCheck !== 'legacy-full') {
413
- return true; // hidden
414
- }
415
- // else, fallback to 'none' mode and consider the node visible
416
- } else if (displayCheck === 'non-zero-area') {
417
- // NOTE: Even though this tests that the node's client rect is non-zero to determine
418
- // whether it's displayed, and that a detached node will __always__ have a zero-area
419
- // client rect, we don't special-case for whether the node is attached or not. In
420
- // this mode, we do want to consider nodes that have a zero area to be hidden at all
421
- // times, and that includes attached or not.
422
- return isZeroArea(node);
423
- }
424
-
425
- // visible, as far as we can tell, or per current `displayCheck=none` mode, we assume
426
- // it's visible
427
- return false;
428
- };
429
-
430
- // form fields (nested) inside a disabled fieldset are not focusable/tabbable
431
- // unless they are in the _first_ <legend> element of the top-most disabled
432
- // fieldset
433
- var isDisabledFromFieldset = function isDisabledFromFieldset(node) {
434
- if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(node.tagName)) {
435
- var parentNode = node.parentElement;
436
- // check if `node` is contained in a disabled <fieldset>
437
- while (parentNode) {
438
- if (parentNode.tagName === 'FIELDSET' && parentNode.disabled) {
439
- // look for the first <legend> among the children of the disabled <fieldset>
440
- for (var i = 0; i < parentNode.children.length; i++) {
441
- var child = parentNode.children.item(i);
442
- // when the first <legend> (in document order) is found
443
- if (child.tagName === 'LEGEND') {
444
- // if its parent <fieldset> is not nested in another disabled <fieldset>,
445
- // return whether `node` is a descendant of its first <legend>
446
- return matches.call(parentNode, 'fieldset[disabled] *') ? true : !child.contains(node);
447
- }
448
- }
449
- // the disabled <fieldset> containing `node` has no <legend>
450
- return true;
451
- }
452
- parentNode = parentNode.parentElement;
453
- }
454
- }
455
-
456
- // else, node's tabbable/focusable state should not be affected by a fieldset's
457
- // enabled/disabled state
458
- return false;
459
- };
460
- var isNodeMatchingSelectorFocusable = function isNodeMatchingSelectorFocusable(options, node) {
461
- if (node.disabled ||
462
- // we must do an inert look up to filter out any elements inside an inert ancestor
463
- // because we're limited in the type of selectors we can use in JSDom (see related
464
- // note related to `candidateSelectors`)
465
- isInert(node) || isHiddenInput(node) || isHidden(node, options) ||
466
- // For a details element with a summary, the summary element gets the focus
467
- isDetailsWithSummary(node) || isDisabledFromFieldset(node)) {
468
- return false;
469
- }
470
- return true;
471
- };
472
- var isNodeMatchingSelectorTabbable = function isNodeMatchingSelectorTabbable(options, node) {
473
- if (isNonTabbableRadio(node) || getTabindex(node) < 0 || !isNodeMatchingSelectorFocusable(options, node)) {
474
- return false;
475
- }
476
- return true;
477
- };
478
- var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
479
- var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
480
- if (isNaN(tabIndex) || tabIndex >= 0) {
481
- return true;
482
- }
483
- // If a custom element has an explicit negative tabindex,
484
- // browsers will not allow tab targeting said element's children.
485
- return false;
486
- };
487
-
488
- /**
489
- * @param {Array.<Element|CandidateScope>} candidates
490
- * @returns Element[]
491
- */
492
- var sortByOrder = function sortByOrder(candidates) {
493
- var regularTabbables = [];
494
- var orderedTabbables = [];
495
- candidates.forEach(function (item, i) {
496
- var isScope = !!item.scopeParent;
497
- var element = isScope ? item.scopeParent : item;
498
- var candidateTabindex = getTabindex(element, isScope);
499
- var elements = isScope ? sortByOrder(item.candidates) : element;
500
- if (candidateTabindex === 0) {
501
- isScope ? regularTabbables.push.apply(regularTabbables, elements) : regularTabbables.push(element);
502
- } else {
503
- orderedTabbables.push({
504
- documentOrder: i,
505
- tabIndex: candidateTabindex,
506
- item: item,
507
- isScope: isScope,
508
- content: elements
509
- });
510
- }
511
- });
512
- return orderedTabbables.sort(sortOrderedTabbables).reduce(function (acc, sortable) {
513
- sortable.isScope ? acc.push.apply(acc, sortable.content) : acc.push(sortable.content);
514
- return acc;
515
- }, []).concat(regularTabbables);
516
- };
517
- var tabbable = function tabbable(el, options) {
518
- options = options || {};
519
- var candidates;
520
- if (options.getShadowRoot) {
521
- candidates = getCandidatesIteratively([el], options.includeContainer, {
522
- filter: isNodeMatchingSelectorTabbable.bind(null, options),
523
- flatten: false,
524
- getShadowRoot: options.getShadowRoot,
525
- shadowRootFilter: isValidShadowRootTabbable
526
- });
527
- } else {
528
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
529
- }
530
- return sortByOrder(candidates);
531
- };
532
- var focusable = function focusable(el, options) {
533
- options = options || {};
534
- var candidates;
535
- if (options.getShadowRoot) {
536
- candidates = getCandidatesIteratively([el], options.includeContainer, {
537
- filter: isNodeMatchingSelectorFocusable.bind(null, options),
538
- flatten: true,
539
- getShadowRoot: options.getShadowRoot
540
- });
541
- } else {
542
- candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorFocusable.bind(null, options));
543
- }
544
- return candidates;
545
- };
546
- var isTabbable = function isTabbable(node, options) {
547
- options = options || {};
548
- if (!node) {
549
- throw new Error('No node provided');
550
- }
551
- if (matches.call(node, candidateSelector) === false) {
552
- return false;
553
- }
554
- return isNodeMatchingSelectorTabbable(options, node);
555
- };
556
- var focusableCandidateSelector = /* #__PURE__ */candidateSelectors.concat('iframe').join(',');
557
- var isFocusable = function isFocusable(node, options) {
558
- options = options || {};
559
- if (!node) {
560
- throw new Error('No node provided');
561
- }
562
- if (matches.call(node, focusableCandidateSelector) === false) {
563
- return false;
564
- }
565
- return isNodeMatchingSelectorFocusable(options, node);
566
- };
567
-
568
- /*!
569
- * focus-trap 7.2.0
570
- * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
571
- */
572
- function ownKeys(object, enumerableOnly) {
573
- var keys = Object.keys(object);
574
- if (Object.getOwnPropertySymbols) {
575
- var symbols = Object.getOwnPropertySymbols(object);
576
- enumerableOnly && (symbols = symbols.filter(function (sym) {
577
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
578
- })), keys.push.apply(keys, symbols);
579
- }
580
- return keys;
581
- }
582
- function _objectSpread2(target) {
583
- for (var i = 1; i < arguments.length; i++) {
584
- var source = null != arguments[i] ? arguments[i] : {};
585
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
586
- _defineProperty(target, key, source[key]);
587
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
588
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
589
- });
590
- }
591
- return target;
592
- }
593
- function _defineProperty(obj, key, value) {
594
- key = _toPropertyKey(key);
595
- if (key in obj) {
596
- Object.defineProperty(obj, key, {
597
- value: value,
598
- enumerable: true,
599
- configurable: true,
600
- writable: true
601
- });
602
- } else {
603
- obj[key] = value;
604
- }
605
- return obj;
606
- }
607
- function _toPrimitive(input, hint) {
608
- if (typeof input !== "object" || input === null) return input;
609
- var prim = input[Symbol.toPrimitive];
610
- if (prim !== undefined) {
611
- var res = prim.call(input, hint || "default");
612
- if (typeof res !== "object") return res;
613
- throw new TypeError("@@toPrimitive must return a primitive value.");
614
- }
615
- return (hint === "string" ? String : Number)(input);
616
- }
617
- function _toPropertyKey(arg) {
618
- var key = _toPrimitive(arg, "string");
619
- return typeof key === "symbol" ? key : String(key);
620
- }
621
- var activeFocusTraps = {
622
- activateTrap: function activateTrap(trapStack, trap) {
623
- if (trapStack.length > 0) {
624
- var activeTrap = trapStack[trapStack.length - 1];
625
- if (activeTrap !== trap) {
626
- activeTrap.pause();
627
- }
628
- }
629
- var trapIndex = trapStack.indexOf(trap);
630
- if (trapIndex === -1) {
631
- trapStack.push(trap);
632
- } else {
633
- // move this existing trap to the front of the queue
634
- trapStack.splice(trapIndex, 1);
635
- trapStack.push(trap);
636
- }
637
- },
638
- deactivateTrap: function deactivateTrap(trapStack, trap) {
639
- var trapIndex = trapStack.indexOf(trap);
640
- if (trapIndex !== -1) {
641
- trapStack.splice(trapIndex, 1);
642
- }
643
- if (trapStack.length > 0) {
644
- trapStack[trapStack.length - 1].unpause();
645
- }
646
- }
647
- };
648
- var isSelectableInput = function isSelectableInput(node) {
649
- return node.tagName && node.tagName.toLowerCase() === 'input' && typeof node.select === 'function';
650
- };
651
- var isEscapeEvent = function isEscapeEvent(e) {
652
- return e.key === 'Escape' || e.key === 'Esc' || e.keyCode === 27;
653
- };
654
- var isTabEvent = function isTabEvent(e) {
655
- return e.key === 'Tab' || e.keyCode === 9;
656
- };
657
-
658
- // checks for TAB by default
659
- var isKeyForward = function isKeyForward(e) {
660
- return isTabEvent(e) && !e.shiftKey;
661
- };
662
-
663
- // checks for SHIFT+TAB by default
664
- var isKeyBackward = function isKeyBackward(e) {
665
- return isTabEvent(e) && e.shiftKey;
666
- };
667
- var delay = function delay(fn) {
668
- return setTimeout(fn, 0);
669
- };
670
-
671
- // Array.find/findIndex() are not supported on IE; this replicates enough
672
- // of Array.findIndex() for our needs
673
- var findIndex = function findIndex(arr, fn) {
674
- var idx = -1;
675
- arr.every(function (value, i) {
676
- if (fn(value)) {
677
- idx = i;
678
- return false; // break
679
- }
680
-
681
- return true; // next
682
- });
683
-
684
- return idx;
685
- };
686
-
687
- /**
688
- * Get an option's value when it could be a plain value, or a handler that provides
689
- * the value.
690
- * @param {*} value Option's value to check.
691
- * @param {...*} [params] Any parameters to pass to the handler, if `value` is a function.
692
- * @returns {*} The `value`, or the handler's returned value.
693
- */
694
- var valueOrHandler = function valueOrHandler(value) {
695
- for (var _len = arguments.length, params = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
696
- params[_key - 1] = arguments[_key];
697
- }
698
- return typeof value === 'function' ? value.apply(void 0, params) : value;
699
- };
700
- var getActualTarget = function getActualTarget(event) {
701
- // NOTE: If the trap is _inside_ a shadow DOM, event.target will always be the
702
- // shadow host. However, event.target.composedPath() will be an array of
703
- // nodes "clicked" from inner-most (the actual element inside the shadow) to
704
- // outer-most (the host HTML document). If we have access to composedPath(),
705
- // then use its first element; otherwise, fall back to event.target (and
706
- // this only works for an _open_ shadow DOM; otherwise,
707
- // composedPath()[0] === event.target always).
708
- return event.target.shadowRoot && typeof event.composedPath === 'function' ? event.composedPath()[0] : event.target;
709
- };
710
-
711
- // NOTE: this must be _outside_ `createFocusTrap()` to make sure all traps in this
712
- // current instance use the same stack if `userOptions.trapStack` isn't specified
713
- var internalTrapStack = [];
714
- var createFocusTrap = function createFocusTrap(elements, userOptions) {
715
- // SSR: a live trap shouldn't be created in this type of environment so this
716
- // should be safe code to execute if the `document` option isn't specified
717
- var doc = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.document) || document;
718
- var trapStack = (userOptions === null || userOptions === void 0 ? void 0 : userOptions.trapStack) || internalTrapStack;
719
- var config = _objectSpread2({
720
- returnFocusOnDeactivate: true,
721
- escapeDeactivates: true,
722
- delayInitialFocus: true,
723
- isKeyForward: isKeyForward,
724
- isKeyBackward: isKeyBackward
725
- }, userOptions);
726
- var state = {
727
- // containers given to createFocusTrap()
728
- // @type {Array<HTMLElement>}
729
- containers: [],
730
- // list of objects identifying tabbable nodes in `containers` in the trap
731
- // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
732
- // is active, but the trap should never get to a state where there isn't at least one group
733
- // with at least one tabbable node in it (that would lead to an error condition that would
734
- // result in an error being thrown)
735
- // @type {Array<{
736
- // container: HTMLElement,
737
- // tabbableNodes: Array<HTMLElement>, // empty if none
738
- // focusableNodes: Array<HTMLElement>, // empty if none
739
- // firstTabbableNode: HTMLElement|null,
740
- // lastTabbableNode: HTMLElement|null,
741
- // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
742
- // }>}
743
- containerGroups: [],
744
- // same order/length as `containers` list
745
-
746
- // references to objects in `containerGroups`, but only those that actually have
747
- // tabbable nodes in them
748
- // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
749
- // the same length
750
- tabbableGroups: [],
751
- nodeFocusedBeforeActivation: null,
752
- mostRecentlyFocusedNode: null,
753
- active: false,
754
- paused: false,
755
- // timer ID for when delayInitialFocus is true and initial focus in this trap
756
- // has been delayed during activation
757
- delayInitialFocusTimer: undefined
758
- };
759
- var trap; // eslint-disable-line prefer-const -- some private functions reference it, and its methods reference private functions, so we must declare here and define later
760
-
761
- /**
762
- * Gets a configuration option value.
763
- * @param {Object|undefined} configOverrideOptions If true, and option is defined in this set,
764
- * value will be taken from this object. Otherwise, value will be taken from base configuration.
765
- * @param {string} optionName Name of the option whose value is sought.
766
- * @param {string|undefined} [configOptionName] Name of option to use __instead of__ `optionName`
767
- * IIF `configOverrideOptions` is not defined. Otherwise, `optionName` is used.
768
- */
769
- var getOption = function getOption(configOverrideOptions, optionName, configOptionName) {
770
- return configOverrideOptions && configOverrideOptions[optionName] !== undefined ? configOverrideOptions[optionName] : config[configOptionName || optionName];
771
- };
772
-
773
- /**
774
- * Finds the index of the container that contains the element.
775
- * @param {HTMLElement} element
776
- * @returns {number} Index of the container in either `state.containers` or
777
- * `state.containerGroups` (the order/length of these lists are the same); -1
778
- * if the element isn't found.
779
- */
780
- var findContainerIndex = function findContainerIndex(element) {
781
- // NOTE: search `containerGroups` because it's possible a group contains no tabbable
782
- // nodes, but still contains focusable nodes (e.g. if they all have `tabindex=-1`)
783
- // and we still need to find the element in there
784
- return state.containerGroups.findIndex(function (_ref) {
785
- var container = _ref.container,
786
- tabbableNodes = _ref.tabbableNodes;
787
- return container.contains(element) ||
788
- // fall back to explicit tabbable search which will take into consideration any
789
- // web components if the `tabbableOptions.getShadowRoot` option was used for
790
- // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
791
- // look inside web components even if open)
792
- tabbableNodes.find(function (node) {
793
- return node === element;
794
- });
795
- });
796
- };
797
-
798
- /**
799
- * Gets the node for the given option, which is expected to be an option that
800
- * can be either a DOM node, a string that is a selector to get a node, `false`
801
- * (if a node is explicitly NOT given), or a function that returns any of these
802
- * values.
803
- * @param {string} optionName
804
- * @returns {undefined | false | HTMLElement | SVGElement} Returns
805
- * `undefined` if the option is not specified; `false` if the option
806
- * resolved to `false` (node explicitly not given); otherwise, the resolved
807
- * DOM node.
808
- * @throws {Error} If the option is set, not `false`, and is not, or does not
809
- * resolve to a node.
810
- */
811
- var getNodeForOption = function getNodeForOption(optionName) {
812
- var optionValue = config[optionName];
813
- if (typeof optionValue === 'function') {
814
- for (var _len2 = arguments.length, params = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
815
- params[_key2 - 1] = arguments[_key2];
816
- }
817
- optionValue = optionValue.apply(void 0, params);
818
- }
819
- if (optionValue === true) {
820
- optionValue = undefined; // use default value
821
- }
822
-
823
- if (!optionValue) {
824
- if (optionValue === undefined || optionValue === false) {
825
- return optionValue;
826
- }
827
- // else, empty string (invalid), null (invalid), 0 (invalid)
828
-
829
- throw new Error("`".concat(optionName, "` was specified but was not a node, or did not return a node"));
830
- }
831
- var node = optionValue; // could be HTMLElement, SVGElement, or non-empty string at this point
832
-
833
- if (typeof optionValue === 'string') {
834
- node = doc.querySelector(optionValue); // resolve to node, or null if fails
835
- if (!node) {
836
- throw new Error("`".concat(optionName, "` as selector refers to no known node"));
837
- }
838
- }
839
- return node;
840
- };
841
- var getInitialFocusNode = function getInitialFocusNode() {
842
- var node = getNodeForOption('initialFocus');
843
-
844
- // false explicitly indicates we want no initialFocus at all
845
- if (node === false) {
846
- return false;
847
- }
848
- if (node === undefined) {
849
- // option not specified: use fallback options
850
- if (findContainerIndex(doc.activeElement) >= 0) {
851
- node = doc.activeElement;
852
- } else {
853
- var firstTabbableGroup = state.tabbableGroups[0];
854
- var firstTabbableNode = firstTabbableGroup && firstTabbableGroup.firstTabbableNode;
855
-
856
- // NOTE: `fallbackFocus` option function cannot return `false` (not supported)
857
- node = firstTabbableNode || getNodeForOption('fallbackFocus');
858
- }
859
- }
860
- if (!node) {
861
- throw new Error('Your focus-trap needs to have at least one focusable element');
862
- }
863
- return node;
864
- };
865
- var updateTabbableNodes = function updateTabbableNodes() {
866
- state.containerGroups = state.containers.map(function (container) {
867
- var tabbableNodes = tabbable(container, config.tabbableOptions);
868
-
869
- // NOTE: if we have tabbable nodes, we must have focusable nodes; focusable nodes
870
- // are a superset of tabbable nodes
871
- var focusableNodes = focusable(container, config.tabbableOptions);
872
- return {
873
- container: container,
874
- tabbableNodes: tabbableNodes,
875
- focusableNodes: focusableNodes,
876
- firstTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[0] : null,
877
- lastTabbableNode: tabbableNodes.length > 0 ? tabbableNodes[tabbableNodes.length - 1] : null,
878
- /**
879
- * Finds the __tabbable__ node that follows the given node in the specified direction,
880
- * in this container, if any.
881
- * @param {HTMLElement} node
882
- * @param {boolean} [forward] True if going in forward tab order; false if going
883
- * in reverse.
884
- * @returns {HTMLElement|undefined} The next tabbable node, if any.
885
- */
886
- nextTabbableNode: function nextTabbableNode(node) {
887
- var forward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
888
- // NOTE: If tabindex is positive (in order to manipulate the tab order separate
889
- // from the DOM order), this __will not work__ because the list of focusableNodes,
890
- // while it contains tabbable nodes, does not sort its nodes in any order other
891
- // than DOM order, because it can't: Where would you place focusable (but not
892
- // tabbable) nodes in that order? They have no order, because they aren't tabbale...
893
- // Support for positive tabindex is already broken and hard to manage (possibly
894
- // not supportable, TBD), so this isn't going to make things worse than they
895
- // already are, and at least makes things better for the majority of cases where
896
- // tabindex is either 0/unset or negative.
897
- // FYI, positive tabindex issue: https://github.com/focus-trap/focus-trap/issues/375
898
- var nodeIdx = focusableNodes.findIndex(function (n) {
899
- return n === node;
900
- });
901
- if (nodeIdx < 0) {
902
- return undefined;
903
- }
904
- if (forward) {
905
- return focusableNodes.slice(nodeIdx + 1).find(function (n) {
906
- return isTabbable(n, config.tabbableOptions);
907
- });
908
- }
909
- return focusableNodes.slice(0, nodeIdx).reverse().find(function (n) {
910
- return isTabbable(n, config.tabbableOptions);
911
- });
912
- }
913
- };
914
- });
915
- state.tabbableGroups = state.containerGroups.filter(function (group) {
916
- return group.tabbableNodes.length > 0;
917
- });
918
-
919
- // throw if no groups have tabbable nodes and we don't have a fallback focus node either
920
- if (state.tabbableGroups.length <= 0 && !getNodeForOption('fallbackFocus') // returning false not supported for this option
921
- ) {
922
- throw new Error('Your focus-trap must have at least one container with at least one tabbable node in it at all times');
923
- }
924
- };
925
- var tryFocus = function tryFocus(node) {
926
- if (node === false) {
927
- return;
928
- }
929
- if (node === doc.activeElement) {
930
- return;
931
- }
932
- if (!node || !node.focus) {
933
- tryFocus(getInitialFocusNode());
934
- return;
935
- }
936
- node.focus({
937
- preventScroll: !!config.preventScroll
938
- });
939
- state.mostRecentlyFocusedNode = node;
940
- if (isSelectableInput(node)) {
941
- node.select();
942
- }
943
- };
944
- var getReturnFocusNode = function getReturnFocusNode(previousActiveElement) {
945
- var node = getNodeForOption('setReturnFocus', previousActiveElement);
946
- return node ? node : node === false ? false : previousActiveElement;
947
- };
948
-
949
- // This needs to be done on mousedown and touchstart instead of click
950
- // so that it precedes the focus event.
951
- var checkPointerDown = function checkPointerDown(e) {
952
- var target = getActualTarget(e);
953
- if (findContainerIndex(target) >= 0) {
954
- // allow the click since it ocurred inside the trap
955
- return;
956
- }
957
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
958
- // immediately deactivate the trap
959
- trap.deactivate({
960
- // if, on deactivation, we should return focus to the node originally-focused
961
- // when the trap was activated (or the configured `setReturnFocus` node),
962
- // then assume it's also OK to return focus to the outside node that was
963
- // just clicked, causing deactivation, as long as that node is focusable;
964
- // if it isn't focusable, then return focus to the original node focused
965
- // on activation (or the configured `setReturnFocus` node)
966
- // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
967
- // which will result in the outside click setting focus to the node
968
- // that was clicked, whether it's focusable or not; by setting
969
- // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
970
- // on activation (or the configured `setReturnFocus` node)
971
- returnFocus: config.returnFocusOnDeactivate && !isFocusable(target, config.tabbableOptions)
972
- });
973
- return;
974
- }
975
-
976
- // This is needed for mobile devices.
977
- // (If we'll only let `click` events through,
978
- // then on mobile they will be blocked anyways if `touchstart` is blocked.)
979
- if (valueOrHandler(config.allowOutsideClick, e)) {
980
- // allow the click outside the trap to take place
981
- return;
982
- }
983
-
984
- // otherwise, prevent the click
985
- e.preventDefault();
986
- };
987
-
988
- // In case focus escapes the trap for some strange reason, pull it back in.
989
- var checkFocusIn = function checkFocusIn(e) {
990
- var target = getActualTarget(e);
991
- var targetContained = findContainerIndex(target) >= 0;
992
-
993
- // In Firefox when you Tab out of an iframe the Document is briefly focused.
994
- if (targetContained || target instanceof Document) {
995
- if (targetContained) {
996
- state.mostRecentlyFocusedNode = target;
997
- }
998
- } else {
999
- // escaped! pull it back in to where it just left
1000
- e.stopImmediatePropagation();
1001
- tryFocus(state.mostRecentlyFocusedNode || getInitialFocusNode());
1002
- }
1003
- };
1004
-
1005
- // Hijack key nav events on the first and last focusable nodes of the trap,
1006
- // in order to prevent focus from escaping. If it escapes for even a
1007
- // moment it can end up scrolling the page and causing confusion so we
1008
- // kind of need to capture the action at the keydown phase.
1009
- var checkKeyNav = function checkKeyNav(event) {
1010
- var isBackward = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1011
- var target = getActualTarget(event);
1012
- updateTabbableNodes();
1013
- var destinationNode = null;
1014
- if (state.tabbableGroups.length > 0) {
1015
- // make sure the target is actually contained in a group
1016
- // NOTE: the target may also be the container itself if it's focusable
1017
- // with tabIndex='-1' and was given initial focus
1018
- var containerIndex = findContainerIndex(target);
1019
- var containerGroup = containerIndex >= 0 ? state.containerGroups[containerIndex] : undefined;
1020
- if (containerIndex < 0) {
1021
- // target not found in any group: quite possible focus has escaped the trap,
1022
- // so bring it back into...
1023
- if (isBackward) {
1024
- // ...the last node in the last group
1025
- destinationNode = state.tabbableGroups[state.tabbableGroups.length - 1].lastTabbableNode;
1026
- } else {
1027
- // ...the first node in the first group
1028
- destinationNode = state.tabbableGroups[0].firstTabbableNode;
1029
- }
1030
- } else if (isBackward) {
1031
- // REVERSE
1032
-
1033
- // is the target the first tabbable node in a group?
1034
- var startOfGroupIndex = findIndex(state.tabbableGroups, function (_ref2) {
1035
- var firstTabbableNode = _ref2.firstTabbableNode;
1036
- return target === firstTabbableNode;
1037
- });
1038
- if (startOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target, false))) {
1039
- // an exception case where the target is either the container itself, or
1040
- // a non-tabbable node that was given focus (i.e. tabindex is negative
1041
- // and user clicked on it or node was programmatically given focus)
1042
- // and is not followed by any other tabbable node, in which
1043
- // case, we should handle shift+tab as if focus were on the container's
1044
- // first tabbable node, and go to the last tabbable node of the LAST group
1045
- startOfGroupIndex = containerIndex;
1046
- }
1047
- if (startOfGroupIndex >= 0) {
1048
- // YES: then shift+tab should go to the last tabbable node in the
1049
- // previous group (and wrap around to the last tabbable node of
1050
- // the LAST group if it's the first tabbable node of the FIRST group)
1051
- var destinationGroupIndex = startOfGroupIndex === 0 ? state.tabbableGroups.length - 1 : startOfGroupIndex - 1;
1052
- var destinationGroup = state.tabbableGroups[destinationGroupIndex];
1053
- destinationNode = destinationGroup.lastTabbableNode;
1054
- } else if (!isTabEvent(event)) {
1055
- // user must have customized the nav keys so we have to move focus manually _within_
1056
- // the active group: do this based on the order determined by tabbable()
1057
- destinationNode = containerGroup.nextTabbableNode(target, false);
1058
- }
1059
- } else {
1060
- // FORWARD
1061
-
1062
- // is the target the last tabbable node in a group?
1063
- var lastOfGroupIndex = findIndex(state.tabbableGroups, function (_ref3) {
1064
- var lastTabbableNode = _ref3.lastTabbableNode;
1065
- return target === lastTabbableNode;
1066
- });
1067
- if (lastOfGroupIndex < 0 && (containerGroup.container === target || isFocusable(target, config.tabbableOptions) && !isTabbable(target, config.tabbableOptions) && !containerGroup.nextTabbableNode(target))) {
1068
- // an exception case where the target is the container itself, or
1069
- // a non-tabbable node that was given focus (i.e. tabindex is negative
1070
- // and user clicked on it or node was programmatically given focus)
1071
- // and is not followed by any other tabbable node, in which
1072
- // case, we should handle tab as if focus were on the container's
1073
- // last tabbable node, and go to the first tabbable node of the FIRST group
1074
- lastOfGroupIndex = containerIndex;
1075
- }
1076
- if (lastOfGroupIndex >= 0) {
1077
- // YES: then tab should go to the first tabbable node in the next
1078
- // group (and wrap around to the first tabbable node of the FIRST
1079
- // group if it's the last tabbable node of the LAST group)
1080
- var _destinationGroupIndex = lastOfGroupIndex === state.tabbableGroups.length - 1 ? 0 : lastOfGroupIndex + 1;
1081
- var _destinationGroup = state.tabbableGroups[_destinationGroupIndex];
1082
- destinationNode = _destinationGroup.firstTabbableNode;
1083
- } else if (!isTabEvent(event)) {
1084
- // user must have customized the nav keys so we have to move focus manually _within_
1085
- // the active group: do this based on the order determined by tabbable()
1086
- destinationNode = containerGroup.nextTabbableNode(target);
1087
- }
1088
- }
1089
- } else {
1090
- // no groups available
1091
- // NOTE: the fallbackFocus option does not support returning false to opt-out
1092
- destinationNode = getNodeForOption('fallbackFocus');
1093
- }
1094
- if (destinationNode) {
1095
- if (isTabEvent(event)) {
1096
- // since tab natively moves focus, we wouldn't have a destination node unless we
1097
- // were on the edge of a container and had to move to the next/previous edge, in
1098
- // which case we want to prevent default to keep the browser from moving focus
1099
- // to where it normally would
1100
- event.preventDefault();
1101
- }
1102
- tryFocus(destinationNode);
1103
- }
1104
- // else, let the browser take care of [shift+]tab and move the focus
1105
- };
1106
-
1107
- var checkKey = function checkKey(event) {
1108
- if (isEscapeEvent(event) && valueOrHandler(config.escapeDeactivates, event) !== false) {
1109
- event.preventDefault();
1110
- trap.deactivate();
1111
- return;
1112
- }
1113
- if (config.isKeyForward(event) || config.isKeyBackward(event)) {
1114
- checkKeyNav(event, config.isKeyBackward(event));
1115
- }
1116
- };
1117
- var checkClick = function checkClick(e) {
1118
- var target = getActualTarget(e);
1119
- if (findContainerIndex(target) >= 0) {
1120
- return;
1121
- }
1122
- if (valueOrHandler(config.clickOutsideDeactivates, e)) {
1123
- return;
1124
- }
1125
- if (valueOrHandler(config.allowOutsideClick, e)) {
1126
- return;
1127
- }
1128
- e.preventDefault();
1129
- e.stopImmediatePropagation();
1130
- };
1131
-
1132
- //
1133
- // EVENT LISTENERS
1134
- //
1135
-
1136
- var addListeners = function addListeners() {
1137
- if (!state.active) {
1138
- return;
1139
- }
1140
-
1141
- // There can be only one listening focus trap at a time
1142
- activeFocusTraps.activateTrap(trapStack, trap);
1143
-
1144
- // Delay ensures that the focused element doesn't capture the event
1145
- // that caused the focus trap activation.
1146
- state.delayInitialFocusTimer = config.delayInitialFocus ? delay(function () {
1147
- tryFocus(getInitialFocusNode());
1148
- }) : tryFocus(getInitialFocusNode());
1149
- doc.addEventListener('focusin', checkFocusIn, true);
1150
- doc.addEventListener('mousedown', checkPointerDown, {
1151
- capture: true,
1152
- passive: false
1153
- });
1154
- doc.addEventListener('touchstart', checkPointerDown, {
1155
- capture: true,
1156
- passive: false
1157
- });
1158
- doc.addEventListener('click', checkClick, {
1159
- capture: true,
1160
- passive: false
1161
- });
1162
- doc.addEventListener('keydown', checkKey, {
1163
- capture: true,
1164
- passive: false
1165
- });
1166
- return trap;
1167
- };
1168
- var removeListeners = function removeListeners() {
1169
- if (!state.active) {
1170
- return;
1171
- }
1172
- doc.removeEventListener('focusin', checkFocusIn, true);
1173
- doc.removeEventListener('mousedown', checkPointerDown, true);
1174
- doc.removeEventListener('touchstart', checkPointerDown, true);
1175
- doc.removeEventListener('click', checkClick, true);
1176
- doc.removeEventListener('keydown', checkKey, true);
1177
- return trap;
1178
- };
1179
-
1180
- //
1181
- // TRAP DEFINITION
1182
- //
1183
-
1184
- trap = {
1185
- get active() {
1186
- return state.active;
1187
- },
1188
- get paused() {
1189
- return state.paused;
1190
- },
1191
- activate: function activate(activateOptions) {
1192
- if (state.active) {
1193
- return this;
1194
- }
1195
- var onActivate = getOption(activateOptions, 'onActivate');
1196
- var onPostActivate = getOption(activateOptions, 'onPostActivate');
1197
- var checkCanFocusTrap = getOption(activateOptions, 'checkCanFocusTrap');
1198
- if (!checkCanFocusTrap) {
1199
- updateTabbableNodes();
1200
- }
1201
- state.active = true;
1202
- state.paused = false;
1203
- state.nodeFocusedBeforeActivation = doc.activeElement;
1204
- if (onActivate) {
1205
- onActivate();
1206
- }
1207
- var finishActivation = function finishActivation() {
1208
- if (checkCanFocusTrap) {
1209
- updateTabbableNodes();
1210
- }
1211
- addListeners();
1212
- if (onPostActivate) {
1213
- onPostActivate();
1214
- }
1215
- };
1216
- if (checkCanFocusTrap) {
1217
- checkCanFocusTrap(state.containers.concat()).then(finishActivation, finishActivation);
1218
- return this;
1219
- }
1220
- finishActivation();
1221
- return this;
1222
- },
1223
- deactivate: function deactivate(deactivateOptions) {
1224
- if (!state.active) {
1225
- return this;
1226
- }
1227
- var options = _objectSpread2({
1228
- onDeactivate: config.onDeactivate,
1229
- onPostDeactivate: config.onPostDeactivate,
1230
- checkCanReturnFocus: config.checkCanReturnFocus
1231
- }, deactivateOptions);
1232
- clearTimeout(state.delayInitialFocusTimer); // noop if undefined
1233
- state.delayInitialFocusTimer = undefined;
1234
- removeListeners();
1235
- state.active = false;
1236
- state.paused = false;
1237
- activeFocusTraps.deactivateTrap(trapStack, trap);
1238
- var onDeactivate = getOption(options, 'onDeactivate');
1239
- var onPostDeactivate = getOption(options, 'onPostDeactivate');
1240
- var checkCanReturnFocus = getOption(options, 'checkCanReturnFocus');
1241
- var returnFocus = getOption(options, 'returnFocus', 'returnFocusOnDeactivate');
1242
- if (onDeactivate) {
1243
- onDeactivate();
1244
- }
1245
- var finishDeactivation = function finishDeactivation() {
1246
- delay(function () {
1247
- if (returnFocus) {
1248
- tryFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation));
1249
- }
1250
- if (onPostDeactivate) {
1251
- onPostDeactivate();
1252
- }
1253
- });
1254
- };
1255
- if (returnFocus && checkCanReturnFocus) {
1256
- checkCanReturnFocus(getReturnFocusNode(state.nodeFocusedBeforeActivation)).then(finishDeactivation, finishDeactivation);
1257
- return this;
1258
- }
1259
- finishDeactivation();
1260
- return this;
1261
- },
1262
- pause: function pause() {
1263
- if (state.paused || !state.active) {
1264
- return this;
1265
- }
1266
- state.paused = true;
1267
- removeListeners();
1268
- return this;
1269
- },
1270
- unpause: function unpause() {
1271
- if (!state.paused || !state.active) {
1272
- return this;
1273
- }
1274
- state.paused = false;
1275
- updateTabbableNodes();
1276
- addListeners();
1277
- return this;
1278
- },
1279
- updateContainerElements: function updateContainerElements(containerElements) {
1280
- var elementsAsArray = [].concat(containerElements).filter(Boolean);
1281
- state.containers = elementsAsArray.map(function (element) {
1282
- return typeof element === 'string' ? doc.querySelector(element) : element;
1283
- });
1284
- if (state.active) {
1285
- updateTabbableNodes();
1286
- }
1287
- return this;
1288
- }
1289
- };
1290
-
1291
- // initialize container elements
1292
- trap.updateContainerElements(elements);
1293
- return trap;
1294
- };
1295
-
1296
- var __defProp = Object.defineProperty;
1297
- var __defProps = Object.defineProperties;
1298
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
1299
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
1300
- var __hasOwnProp = Object.prototype.hasOwnProperty;
1301
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
1302
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1303
- var __spreadValues = (a, b) => {
1304
- for (var prop in b || (b = {}))
1305
- if (__hasOwnProp.call(b, prop))
1306
- __defNormalProp(a, prop, b[prop]);
1307
- if (__getOwnPropSymbols)
1308
- for (var prop of __getOwnPropSymbols(b)) {
1309
- if (__propIsEnum.call(b, prop))
1310
- __defNormalProp(a, prop, b[prop]);
1311
- }
1312
- return a;
1313
- };
1314
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
1315
- var __objRest = (source, exclude) => {
1316
- var target = {};
1317
- for (var prop in source)
1318
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
1319
- target[prop] = source[prop];
1320
- if (source != null && __getOwnPropSymbols)
1321
- for (var prop of __getOwnPropSymbols(source)) {
1322
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
1323
- target[prop] = source[prop];
1324
- }
1325
- return target;
1326
- };
1327
- function useFocusTrap(target, options = {}) {
1328
- let trap;
1329
- const _a = options, { immediate } = _a, focusTrapOptions = __objRest(_a, ["immediate"]);
1330
- const hasFocus = ref(false);
1331
- const isPaused = ref(false);
1332
- const activate = (opts) => trap && trap.activate(opts);
1333
- const deactivate = (opts) => trap && trap.deactivate(opts);
1334
- const pause = () => {
1335
- if (trap) {
1336
- trap.pause();
1337
- isPaused.value = true;
1338
- }
1339
- };
1340
- const unpause = () => {
1341
- if (trap) {
1342
- trap.unpause();
1343
- isPaused.value = false;
1344
- }
1345
- };
1346
- watch(() => unrefElement(target), (el) => {
1347
- if (!el)
1348
- return;
1349
- trap = createFocusTrap(el, __spreadProps(__spreadValues({}, focusTrapOptions), {
1350
- onActivate() {
1351
- hasFocus.value = true;
1352
- if (options.onActivate)
1353
- options.onActivate();
1354
- },
1355
- onDeactivate() {
1356
- hasFocus.value = false;
1357
- if (options.onDeactivate)
1358
- options.onDeactivate();
1359
- }
1360
- }));
1361
- if (immediate)
1362
- activate();
1363
- }, { flush: "post" });
1364
- tryOnScopeDispose(() => deactivate());
1365
- return {
1366
- hasFocus,
1367
- isPaused,
1368
- activate,
1369
- deactivate,
1370
- pause,
1371
- unpause
1372
- };
1373
- }
1374
-
1375
32
  var script = defineComponent({
1376
33
  name: 'OrModal',
1377
34
  components: {