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