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