@onereach/ui-components 2.65.0-beta.1963.0 → 2.65.0-beta.1964.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 (226) hide show
  1. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-245544e2.js → OrAvatar.vue_vue_type_script_lang-07889664.js} +3 -3
  2. package/dist/bundled/v3/{OrAvatar.vue_vue_type_script_lang-b3aaaba0.js → OrAvatar.vue_vue_type_script_lang-22e46ce1.js} +2 -3
  3. package/dist/bundled/v3/{OrBottomSheet.vue_vue_type_script_lang-b1345595.js → OrBottomSheet.vue_vue_type_script_lang-9b8931d3.js} +3 -5
  4. package/dist/bundled/v3/{OrButton-598a801f.js → OrButton-ec723bb7.js} +1 -1
  5. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-0fe34baf.js → OrButton.vue_vue_type_script_lang-8cc3e128.js} +4 -5
  6. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-a37eaa34.js → OrButton.vue_vue_type_script_lang-c0800f20.js} +3 -3
  7. package/dist/bundled/v3/{OrButton.vue_vue_type_script_lang-74e90889.js → OrButton.vue_vue_type_script_lang-ffc66d00.js} +5 -5
  8. package/dist/bundled/v3/{OrCard.vue_vue_type_script_lang-b1191fef.js → OrCard.vue_vue_type_script_lang-90ba001b.js} +1 -1
  9. package/dist/bundled/v3/{OrCard.vue_vue_type_script_lang-7443aae1.js → OrCard.vue_vue_type_script_lang-9d6e1050.js} +2 -3
  10. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-b16296ed.js → OrCardCollection.vue_vue_type_script_lang-d8124dda.js} +7 -9
  11. package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-563a3422.js → OrCardCollection.vue_vue_type_script_lang-d87cab2c.js} +8 -10
  12. package/dist/bundled/v3/{OrCarouselItem-082cdf55.js → OrCarouselItem-f4b9541d.js} +1 -1
  13. package/dist/bundled/v3/{OrCarouselItem.vue_vue_type_script_lang-81ed97e6.js → OrCarouselItem.vue_vue_type_script_lang-ad286afc.js} +3 -4
  14. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-7e675697.js → OrCheckbox.vue_vue_type_script_lang-10d8b047.js} +4 -5
  15. package/dist/bundled/v3/{OrCheckbox.vue_vue_type_script_lang-042252f7.js → OrCheckbox.vue_vue_type_script_lang-cd20521b.js} +3 -3
  16. package/dist/bundled/v3/{OrChip-7e4cb500.js → OrChip-5d502431.js} +3 -4
  17. package/dist/bundled/v3/{OrChips.vue_vue_type_script_lang-b908761b.js → OrChips.vue_vue_type_script_lang-69917e34.js} +6 -7
  18. package/dist/bundled/v3/{OrCode.vue_vue_type_script_lang-5c97eb0d.js → OrCode.vue_vue_type_script_lang-ef5e7f04.js} +12 -13
  19. package/dist/bundled/v3/{OrCollapse-b0a42c33.js → OrCollapse-63e83681.js} +1 -1
  20. package/dist/bundled/v3/{OrCollapse.vue_vue_type_script_lang-d10f8cf3.js → OrCollapse.vue_vue_type_script_lang-65cbb754.js} +2 -3
  21. package/dist/bundled/v3/{OrColorPicker.vue_vue_type_script_lang-b7860f4e.js → OrColorPicker.vue_vue_type_script_lang-4141378d.js} +3 -4
  22. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-c5ed7c5a.js → OrConfirm.vue_vue_type_script_lang-0f16fc67.js} +7 -8
  23. package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-71cc5743.js → OrConfirm.vue_vue_type_script_lang-79664a62.js} +7 -9
  24. package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-143bfecb.js → OrDateTimePicker.vue_vue_type_script_lang-7bfe5005.js} +14 -16
  25. package/dist/bundled/v3/{OrError-4c75ee93.js → OrError-b43ebad8.js} +1 -1
  26. package/dist/bundled/v3/{OrError.vue_vue_type_script_lang-669d3f1f.js → OrError.vue_vue_type_script_lang-7c39e012.js} +1 -1
  27. package/dist/bundled/v3/{OrError.vue_vue_type_script_lang-1db70609.js → OrError.vue_vue_type_script_lang-f606d0ee.js} +2 -3
  28. package/dist/bundled/v3/{OrErrorTag.vue_vue_type_script_lang-f2254efd.js → OrErrorTag.vue_vue_type_script_lang-709a0eeb.js} +4 -5
  29. package/dist/bundled/v3/{OrExpansionPanel.vue_vue_type_script_lang-495ab3f0.js → OrExpansionPanel.vue_vue_type_script_lang-7c10d683.js} +4 -5
  30. package/dist/bundled/v3/{OrFab.vue_vue_type_script_lang-059752a4.js → OrFab.vue_vue_type_script_lang-b0ce93d9.js} +3 -4
  31. package/dist/bundled/v3/{OrFloating-c505cc90.js → OrFloating-b6672a37.js} +1 -1
  32. package/dist/bundled/v3/{OrFloating.vue_vue_type_script_lang-0ade39d3.js → OrFloating.vue_vue_type_script_lang-8bf2b7ae.js} +3 -4
  33. package/dist/bundled/v3/{OrHint-ca2ebe32.js → OrHint-c235be5d.js} +2 -2
  34. package/dist/bundled/v3/{OrHint-314596a4.js → OrHint-c9114268.js} +1 -1
  35. package/dist/bundled/v3/{OrHint.vue_vue_type_script_lang-b1871818.js → OrHint.vue_vue_type_script_lang-6286277d.js} +2 -3
  36. package/dist/bundled/v3/{OrHint.vue_vue_type_script_lang-28fde212.js → OrHint.vue_vue_type_script_lang-78598c8e.js} +1 -1
  37. package/dist/bundled/v3/{OrIcon-223093d8.js → OrIcon-1cae8a64.js} +1 -1
  38. package/dist/bundled/v3/{OrIcon-51dd7fb2.js → OrIcon-42f0bfba.js} +1 -1
  39. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-73fde058.js → OrIcon.vue_vue_type_script_lang-63684968.js} +2 -3
  40. package/dist/bundled/v3/{OrIcon.vue_vue_type_script_lang-079e1007.js → OrIcon.vue_vue_type_script_lang-7e3a17fe.js} +4 -5
  41. package/dist/bundled/v3/{OrIconButton-f2cbab48.js → OrIconButton-189fec1e.js} +1 -1
  42. package/dist/bundled/v3/{OrIconButton-d5f6adfe.js → OrIconButton-e637158e.js} +1 -1
  43. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-26576d68.js → OrIconButton.vue_vue_type_script_lang-40547ab0.js} +7 -8
  44. package/dist/bundled/v3/{OrIconButton.vue_vue_type_script_lang-a877b863.js → OrIconButton.vue_vue_type_script_lang-fc55e259.js} +5 -7
  45. package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-2edc04c0.js → OrInlineInput.vue_vue_type_script_lang-3ff47f4c.js} +9 -10
  46. package/dist/bundled/v3/{OrInlineInputBox-6853c15b.js → OrInlineInputBox-2eede01a.js} +1 -1
  47. package/dist/bundled/v3/{OrInlineInputBox.vue_vue_type_script_lang-e774f6a9.js → OrInlineInputBox.vue_vue_type_script_lang-23b531ad.js} +2 -3
  48. package/dist/bundled/v3/{OrInlineTextEdit.vue_vue_type_script_lang-9fadeb08.js → OrInlineTextEdit.vue_vue_type_script_lang-da6887aa.js} +8 -9
  49. package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-8912aa74.js → OrInlineTextarea.vue_vue_type_script_lang-f648240f.js} +9 -10
  50. package/dist/bundled/v3/{OrInput-c2ea89c4.js → OrInput-7d4b571a.js} +10 -12
  51. package/dist/bundled/v3/{OrInput-030bfa54.js → OrInput-890c1096.js} +1 -1
  52. package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-78f8a28f.js → OrInput.vue_vue_type_script_lang-3db74e71.js} +13 -14
  53. package/dist/bundled/v3/{OrInputBox-e0f0ef02.js → OrInputBox-81385a91.js} +1 -1
  54. package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-52a587c0.js → OrInputBox.vue_vue_type_script_lang-760097b4.js} +2 -3
  55. package/dist/bundled/v3/{OrLabel-64c21fdf.js → OrLabel-2809e2db.js} +1 -1
  56. package/dist/bundled/v3/{OrLabel-507a8caf.js → OrLabel-e412c532.js} +1 -1
  57. package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-2c1b25a1.js → OrLabel.vue_vue_type_script_lang-27f8b12d.js} +1 -1
  58. package/dist/bundled/v3/{OrLabel.vue_vue_type_script_lang-83330c0f.js → OrLabel.vue_vue_type_script_lang-e42de5d1.js} +2 -3
  59. package/dist/bundled/v3/{OrLink.vue_vue_type_script_lang-51cd6568.js → OrLink.vue_vue_type_script_lang-9d3a32c7.js} +2 -3
  60. package/dist/bundled/v3/{OrList.vue_vue_type_script_lang-b0a36c16.js → OrList.vue_vue_type_script_lang-c7ab26a0.js} +11 -11
  61. package/dist/bundled/v3/{OrListOfInputs.vue_vue_type_script_lang-cdfcf4ff.js → OrListOfInputs.vue_vue_type_script_lang-62dbf1e7.js} +7 -8
  62. package/dist/bundled/v3/{OrLoader-7e513800.js → OrLoader-65868e73.js} +1 -1
  63. package/dist/bundled/v3/{OrLoader-f4bf7e03.js → OrLoader-ee97fef4.js} +1 -1
  64. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-fb938b93.js → OrLoader.vue_vue_type_script_lang-1378ab8e.js} +1 -1
  65. package/dist/bundled/v3/{OrLoader.vue_vue_type_script_lang-9f524853.js → OrLoader.vue_vue_type_script_lang-edd1b404.js} +2 -3
  66. package/dist/bundled/v3/{OrMenu.vue_vue_type_script_lang-08f490af.js → OrMenu.vue_vue_type_script_lang-ae4e9c15.js} +4 -5
  67. package/dist/bundled/v3/{OrMenuItem-9dd090e6.js → OrMenuItem-3565d1cd.js} +1 -1
  68. package/dist/bundled/v3/{OrMenuItem.vue_vue_type_script_lang-8d7c58f5.js → OrMenuItem.vue_vue_type_script_lang-62a411d8.js} +4 -5
  69. package/dist/bundled/v3/{OrModal-a3166776.js → OrModal-868160ef.js} +1 -1
  70. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-4b0f8a17.js → OrModal.vue_vue_type_script_lang-a1ed2ebb.js} +5 -7
  71. package/dist/bundled/v3/{OrModal.vue_vue_type_script_lang-ebedb468.js → OrModal.vue_vue_type_script_lang-dcdef24b.js} +6 -7
  72. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-201ed9ab.js → OrNotification.vue_vue_type_script_lang-07163a83.js} +5 -5
  73. package/dist/bundled/v3/{OrNotification.vue_vue_type_script_lang-6e1cd5c2.js → OrNotification.vue_vue_type_script_lang-6d194533.js} +6 -7
  74. package/dist/bundled/v3/{OrOverflowMenu.vue_vue_type_script_lang-fcc169b6.js → OrOverflowMenu.vue_vue_type_script_lang-0397533d.js} +7 -9
  75. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-8e070bf3.js → OrOverlay.vue_vue_type_script_lang-4551114e.js} +4 -6
  76. package/dist/bundled/v3/{OrOverlay.vue_vue_type_script_lang-8a9a0a30.js → OrOverlay.vue_vue_type_script_lang-b9bf5e50.js} +1 -1
  77. package/dist/bundled/v3/{OrPassword.vue_vue_type_script_lang-dcefb34b.js → OrPassword.vue_vue_type_script_lang-13bc5b00.js} +14 -15
  78. package/dist/bundled/v3/{OrPopover-8e85ed36.js → OrPopover-398a66a7.js} +1 -1
  79. package/dist/bundled/v3/{OrPopover.vue_vue_type_script_lang-ab2c9b83.js → OrPopover.vue_vue_type_script_lang-b6b78855.js} +7 -9
  80. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-df72260d.js → OrProgress.vue_vue_type_script_lang-3f9ec654.js} +1 -1
  81. package/dist/bundled/v3/{OrProgress.vue_vue_type_script_lang-c8e8b986.js → OrProgress.vue_vue_type_script_lang-a73c0acf.js} +3 -4
  82. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-67ff8eb8.js → OrRadio.vue_vue_type_script_lang-c956b54b.js} +1 -1
  83. package/dist/bundled/v3/{OrRadio.vue_vue_type_script_lang-2f152d06.js → OrRadio.vue_vue_type_script_lang-e64b14a1.js} +4 -5
  84. package/dist/bundled/v3/{OrRadioGroup.vue_vue_type_script_lang-cdab1bf9.js → OrRadioGroup.vue_vue_type_script_lang-caea7bcb.js} +1 -1
  85. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-79429563.js → OrSearch.vue_vue_type_script_lang-16fbccc0.js} +4 -5
  86. package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-6a509b35.js → OrSearch.vue_vue_type_script_lang-90c5c749.js} +5 -6
  87. package/dist/bundled/v3/{OrSegmentedControl.vue_vue_type_script_lang-305769eb.js → OrSegmentedControl.vue_vue_type_script_lang-16a52048.js} +2 -4
  88. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-edf60519.js → OrSelect.vue_vue_type_script_lang-17a83746.js} +22 -24
  89. package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-bf266c01.js → OrSelect.vue_vue_type_script_lang-3a6efd93.js} +13 -15
  90. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-8f610552.js → OrSidebar.vue_vue_type_script_lang-7c55ac0a.js} +1 -2
  91. package/dist/bundled/v3/{OrSidebar.vue_vue_type_script_lang-dfea0de4.js → OrSidebar.vue_vue_type_script_lang-ce0b152c.js} +1 -2
  92. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-fff544e0.js → OrSkeletonText.vue_vue_type_script_lang-577a1dc9.js} +2 -3
  93. package/dist/bundled/v3/{OrSkeletonText.vue_vue_type_script_lang-6c15a5dd.js → OrSkeletonText.vue_vue_type_script_lang-f3f989c3.js} +1 -1
  94. package/dist/bundled/v3/{OrSlider.vue_vue_type_script_lang-4b15a5bb.js → OrSlider.vue_vue_type_script_lang-d47ff040.js} +4 -5
  95. package/dist/bundled/v3/{OrSortHeader.vue_vue_type_script_lang-d98b4549.js → OrSortHeader.vue_vue_type_script_lang-4a52bcce.js} +4 -5
  96. package/dist/bundled/v3/{OrStepper.vue_vue_type_script_lang-266d15b6.js → OrStepper.vue_vue_type_script_lang-7de7c1ad.js} +3 -4
  97. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-eb968e26.js → OrSwitch.vue_vue_type_script_lang-b40bf75f.js} +6 -7
  98. package/dist/bundled/v3/{OrSwitch.vue_vue_type_script_lang-960ccf27.js → OrSwitch.vue_vue_type_script_lang-f55d33f4.js} +3 -3
  99. package/dist/bundled/v3/{OrTab.vue_vue_type_script_lang-064b4fbe.js → OrTab.vue_vue_type_script_lang-671949b7.js} +2 -3
  100. package/dist/bundled/v3/{OrTab.vue_vue_type_script_lang-d31e60e0.js → OrTab.vue_vue_type_script_lang-de7c7063.js} +1 -2
  101. package/dist/bundled/v3/{OrTabHeaderItem.vue_vue_type_script_lang-1f7ecac2.js → OrTabHeaderItem.vue_vue_type_script_lang-e1f29563.js} +1 -2
  102. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-06bfede1.js → OrTabs.vue_vue_type_script_lang-3662aa75.js} +8 -10
  103. package/dist/bundled/v3/{OrTabs.vue_vue_type_script_lang-f627fa97.js → OrTabs.vue_vue_type_script_lang-40e2a6e9.js} +2 -3
  104. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-25a333ab.js → OrTag.vue_vue_type_script_lang-0a172b96.js} +4 -5
  105. package/dist/bundled/v3/{OrTag.vue_vue_type_script_lang-7df3cd84.js → OrTag.vue_vue_type_script_lang-8c526c11.js} +3 -3
  106. package/dist/bundled/v3/{OrTeleport.vue3.vue_vue_type_script_lang-8243a277.js → OrTeleport.vue3.vue_vue_type_script_lang-4dc70cf1.js} +1 -1
  107. package/dist/bundled/v3/{OrTeleportVue3-fe3e38da.js → OrTeleportVue3-012351e1.js} +1 -2
  108. package/dist/bundled/v3/{OrText.vue_vue_type_script_lang-820a1823.js → OrText.vue_vue_type_script_lang-d9525d49.js} +2 -3
  109. package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-b6fd2a48.js → OrTextarea.vue_vue_type_script_lang-d5a64917.js} +9 -10
  110. package/dist/bundled/v3/{OrTextbox.vue_vue_type_script_lang-0c3ee535.js → OrTextbox.vue_vue_type_script_lang-b5c4a93a.js} +13 -14
  111. package/dist/bundled/v3/{OrToastContainer-0e63f26e.js → OrToastContainer-ac655b5e.js} +1 -1
  112. package/dist/bundled/v3/{OrToastContainer-b6398f5c.js → OrToastContainer-f5525225.js} +1 -1
  113. package/dist/bundled/v3/{OrToastContainer.vue_vue_type_script_lang-40cdb9ca.js → OrToastContainer.vue_vue_type_script_lang-4bb702ce.js} +6 -7
  114. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-ac4d2d8a.js → OrTooltip.vue_vue_type_script_lang-d8bca183.js} +4 -5
  115. package/dist/bundled/v3/{OrTooltip.vue_vue_type_script_lang-cb79b9c8.js → OrTooltip.vue_vue_type_script_lang-fa52d391.js} +4 -5
  116. package/dist/bundled/v3/{OrTooltipContent-42bcf4a4.js → OrTooltipContent-b0dcb862.js} +1 -2
  117. package/dist/bundled/v3/components/index.js +125 -127
  118. package/dist/bundled/v3/components/or-avatar/index.js +9 -11
  119. package/dist/bundled/v3/components/or-avatar-v3/index.js +3 -4
  120. package/dist/bundled/v3/components/or-bottom-sheet-v3/index.js +5 -7
  121. package/dist/bundled/v3/components/or-button/index.js +4 -6
  122. package/dist/bundled/v3/components/or-button-v2/index.js +13 -15
  123. package/dist/bundled/v3/components/or-button-v3/index.js +4 -6
  124. package/dist/bundled/v3/components/or-card/index.js +2 -3
  125. package/dist/bundled/v3/components/or-card-collection/index.js +24 -26
  126. package/dist/bundled/v3/components/or-card-collection-v3/index.js +25 -27
  127. package/dist/bundled/v3/components/or-card-v3/index.js +3 -4
  128. package/dist/bundled/v3/components/or-carousel/index.js +9 -11
  129. package/dist/bundled/v3/components/or-checkbox/index.js +9 -11
  130. package/dist/bundled/v3/components/or-checkbox-v3/index.js +4 -6
  131. package/dist/bundled/v3/components/or-chips/index.js +14 -16
  132. package/dist/bundled/v3/components/or-code/index.js +22 -24
  133. package/dist/bundled/v3/components/or-collapse/index.js +3 -4
  134. package/dist/bundled/v3/components/or-color-picker/index.js +6 -8
  135. package/dist/bundled/v3/components/or-confirm/index.js +29 -31
  136. package/dist/bundled/v3/components/or-confirm-v3/index.js +28 -30
  137. package/dist/bundled/v3/components/or-date-time-picker/index.js +22 -24
  138. package/dist/bundled/v3/components/or-error/index.js +2 -3
  139. package/dist/bundled/v3/components/or-error-tag-v3/index.js +4 -6
  140. package/dist/bundled/v3/components/or-error-v3/index.js +3 -4
  141. package/dist/bundled/v3/components/or-expansion-panel-v3/index.js +4 -6
  142. package/dist/bundled/v3/components/or-fab-v3/index.js +4 -6
  143. package/dist/bundled/v3/components/or-floating/index.js +4 -6
  144. package/dist/bundled/v3/components/or-hint/index.js +2 -3
  145. package/dist/bundled/v3/components/or-hint-v3/index.js +3 -4
  146. package/dist/bundled/v3/components/or-icon/index.js +7 -9
  147. package/dist/bundled/v3/components/or-icon-button-v3/index.js +12 -14
  148. package/dist/bundled/v3/components/or-icon-v3/index.js +3 -4
  149. package/dist/bundled/v3/components/or-inline-input-box-v3/index.js +3 -4
  150. package/dist/bundled/v3/components/or-inline-input-v3/index.js +19 -21
  151. package/dist/bundled/v3/components/or-inline-text-edit/index.js +18 -20
  152. package/dist/bundled/v3/components/or-inline-textarea-v3/index.js +19 -21
  153. package/dist/bundled/v3/components/or-input-box-v3/index.js +3 -4
  154. package/dist/bundled/v3/components/or-input-v3/index.js +21 -23
  155. package/dist/bundled/v3/components/or-inputs/index.js +25 -27
  156. package/dist/bundled/v3/components/or-label/index.js +2 -3
  157. package/dist/bundled/v3/components/or-label-v3/index.js +3 -4
  158. package/dist/bundled/v3/components/or-link-v3/index.js +3 -4
  159. package/dist/bundled/v3/components/or-list/index.js +20 -22
  160. package/dist/bundled/v3/components/or-list-of-inputs/index.js +26 -28
  161. package/dist/bundled/v3/components/or-loader/index.js +2 -3
  162. package/dist/bundled/v3/components/or-loader-v3/index.js +3 -4
  163. package/dist/bundled/v3/components/or-menu-item-v3/index.js +4 -6
  164. package/dist/bundled/v3/components/or-menu-v3/index.js +9 -11
  165. package/dist/bundled/v3/components/or-modal/index.js +15 -17
  166. package/dist/bundled/v3/components/or-modal-v3/index.js +15 -17
  167. package/dist/bundled/v3/components/or-notification/index.js +14 -16
  168. package/dist/bundled/v3/components/or-notification-v3/index.js +14 -16
  169. package/dist/bundled/v3/components/or-overflow-menu/index.js +16 -18
  170. package/dist/bundled/v3/components/or-overlay/index.js +2 -3
  171. package/dist/bundled/v3/components/or-overlay-v3/index.js +4 -6
  172. package/dist/bundled/v3/components/or-popover-v3/index.js +7 -9
  173. package/dist/bundled/v3/components/or-progress/index.js +2 -3
  174. package/dist/bundled/v3/components/or-progress-v3/index.js +4 -5
  175. package/dist/bundled/v3/components/or-radio/index.js +2 -3
  176. package/dist/bundled/v3/components/or-radio-group/index.js +2 -3
  177. package/dist/bundled/v3/components/or-radio-v3/index.js +4 -6
  178. package/dist/bundled/v3/components/or-search-v3/index.js +24 -26
  179. package/dist/bundled/v3/components/or-segmented-control-v3/index.js +2 -4
  180. package/dist/bundled/v3/components/or-select/index.js +17 -19
  181. package/dist/bundled/v3/components/or-select-v3/index.js +30 -32
  182. package/dist/bundled/v3/components/or-sidebar/index.js +2 -3
  183. package/dist/bundled/v3/components/or-sidebar-v3/index.js +2 -3
  184. package/dist/bundled/v3/components/or-skeleton/index.js +2 -3
  185. package/dist/bundled/v3/components/or-skeleton-v3/index.js +3 -4
  186. package/dist/bundled/v3/components/or-slider/index.js +9 -11
  187. package/dist/bundled/v3/components/or-sort-header-v3/index.js +4 -6
  188. package/dist/bundled/v3/components/or-stepper/index.js +13 -15
  189. package/dist/bundled/v3/components/or-switch/index.js +4 -6
  190. package/dist/bundled/v3/components/or-switch-v3/index.js +6 -8
  191. package/dist/bundled/v3/components/or-tab/index.js +2 -3
  192. package/dist/bundled/v3/components/or-tab-header-item/index.js +2 -3
  193. package/dist/bundled/v3/components/or-tab-v3/index.js +3 -4
  194. package/dist/bundled/v3/components/or-tabs/index.js +3 -5
  195. package/dist/bundled/v3/components/or-tabs-v3/index.js +15 -17
  196. package/dist/bundled/v3/components/or-tag/index.js +9 -11
  197. package/dist/bundled/v3/components/or-tag-v3/index.js +14 -16
  198. package/dist/bundled/v3/components/or-teleport/index.js +1 -3
  199. package/dist/bundled/v3/components/or-teleport-v3/index.js +2 -3
  200. package/dist/bundled/v3/components/or-text-v3/index.js +3 -4
  201. package/dist/bundled/v3/components/or-textarea-v3/index.js +9 -11
  202. package/dist/bundled/v3/components/or-textbox/index.js +23 -25
  203. package/dist/bundled/v3/components/or-toast/composable/index.js +2 -2
  204. package/dist/bundled/v3/components/or-toast/index.js +17 -19
  205. package/dist/bundled/v3/components/or-toast-v3/composable/index.js +2 -2
  206. package/dist/bundled/v3/components/or-toast-v3/index.js +18 -20
  207. package/dist/bundled/v3/components/or-tooltip/index.js +7 -9
  208. package/dist/bundled/v3/components/or-tooltip-v3/index.js +9 -11
  209. package/dist/bundled/v3/directives/index.js +2 -1
  210. package/dist/bundled/v3/{dom-457196ca.js → dom-d21d0a92.js} +1 -1
  211. package/dist/bundled/v3/{dropdown-open-49be89ba.js → dropdown-open-293d2de2.js} +2 -0
  212. package/dist/bundled/v3/hooks/index.js +6 -7
  213. package/dist/bundled/v3/hooks/useResponsive/index.js +2 -2
  214. package/dist/bundled/v3/{index-f1ca369e.js → index-01519e46.js} +1 -2
  215. package/dist/bundled/v3/index.js +173 -175
  216. package/dist/bundled/v3/{types-f86f81df.js → types-1df2ebd8.js} +8 -10
  217. package/dist/bundled/v3/{useClassAttribute-1af05c57.js → useClassAttribute-00888f78.js} +1 -1
  218. package/dist/bundled/v3/{useElevation-60df0bf0.js → useElevation-6aea372d.js} +1 -2
  219. package/dist/bundled/v3/{useOverflow-c8417b59.js → useOverflow-2468b718.js} +1 -2
  220. package/dist/bundled/v3/{useResponsive-083b7371.js → useResponsive-9d397e2a.js} +1 -1
  221. package/dist/bundled/v3/{useToast-1d55a787.js → useToast-4d4329cd.js} +1 -1
  222. package/dist/bundled/v3/{useToast-90a218be.js → useToast-d5b3c109.js} +1 -1
  223. package/dist/bundled/v3/{useToggle-2d329d86.js → useToggle-09b6cb90.js} +1 -1
  224. package/package.json +2 -2
  225. package/dist/bundled/v3/reactivity.esm-bundler-942db00f.js +0 -957
  226. package/dist/bundled/v3/runtime-core.esm-bundler-d2b749cd.js +0 -825
@@ -1,957 +0,0 @@
1
- /**
2
- * Make a map and return a function for checking if a key
3
- * is in that map.
4
- * IMPORTANT: all calls of this function must be prefixed with
5
- * \/\*#\_\_PURE\_\_\*\/
6
- * So that rollup can tree-shake them if necessary.
7
- */
8
- function makeMap(str, expectsLowerCase) {
9
- const map = Object.create(null);
10
- const list = str.split(',');
11
- for (let i = 0; i < list.length; i++) {
12
- map[list[i]] = true;
13
- }
14
- return expectsLowerCase ? val => !!map[val.toLowerCase()] : val => !!map[val];
15
- }
16
- function normalizeStyle(value) {
17
- if (isArray(value)) {
18
- const res = {};
19
- for (let i = 0; i < value.length; i++) {
20
- const item = value[i];
21
- const normalized = isString(item) ? parseStringStyle(item) : normalizeStyle(item);
22
- if (normalized) {
23
- for (const key in normalized) {
24
- res[key] = normalized[key];
25
- }
26
- }
27
- }
28
- return res;
29
- } else if (isString(value)) {
30
- return value;
31
- } else if (isObject(value)) {
32
- return value;
33
- }
34
- }
35
- const listDelimiterRE = /;(?![^(]*\))/g;
36
- const propertyDelimiterRE = /:(.+)/;
37
- function parseStringStyle(cssText) {
38
- const ret = {};
39
- cssText.split(listDelimiterRE).forEach(item => {
40
- if (item) {
41
- const tmp = item.split(propertyDelimiterRE);
42
- tmp.length > 1 && (ret[tmp[0].trim()] = tmp[1].trim());
43
- }
44
- });
45
- return ret;
46
- }
47
- function normalizeClass(value) {
48
- let res = '';
49
- if (isString(value)) {
50
- res = value;
51
- } else if (isArray(value)) {
52
- for (let i = 0; i < value.length; i++) {
53
- const normalized = normalizeClass(value[i]);
54
- if (normalized) {
55
- res += normalized + ' ';
56
- }
57
- }
58
- } else if (isObject(value)) {
59
- for (const name in value) {
60
- if (value[name]) {
61
- res += name + ' ';
62
- }
63
- }
64
- }
65
- return res.trim();
66
- }
67
- const EMPTY_OBJ = {};
68
- const NOOP = () => {};
69
- /**
70
- * Always return false.
71
- */
72
- const NO = () => false;
73
- const onRE = /^on[^a-z]/;
74
- const isOn = key => onRE.test(key);
75
- const extend = Object.assign;
76
- const remove = (arr, el) => {
77
- const i = arr.indexOf(el);
78
- if (i > -1) {
79
- arr.splice(i, 1);
80
- }
81
- };
82
- const hasOwnProperty = Object.prototype.hasOwnProperty;
83
- const hasOwn = (val, key) => hasOwnProperty.call(val, key);
84
- const isArray = Array.isArray;
85
- const isMap = val => toTypeString(val) === '[object Map]';
86
- const isSet = val => toTypeString(val) === '[object Set]';
87
- const isFunction = val => typeof val === 'function';
88
- const isString = val => typeof val === 'string';
89
- const isSymbol = val => typeof val === 'symbol';
90
- const isObject = val => val !== null && typeof val === 'object';
91
- const isPromise = val => {
92
- return isObject(val) && isFunction(val.then) && isFunction(val.catch);
93
- };
94
- const objectToString = Object.prototype.toString;
95
- const toTypeString = value => objectToString.call(value);
96
- const toRawType = value => {
97
- // extract "RawType" from strings like "[object RawType]"
98
- return toTypeString(value).slice(8, -1);
99
- };
100
- const isPlainObject = val => toTypeString(val) === '[object Object]';
101
- const isIntegerKey = key => isString(key) && key !== 'NaN' && key[0] !== '-' && '' + parseInt(key, 10) === key;
102
- // compare whether a value has changed, accounting for NaN.
103
- const hasChanged = (value, oldValue) => !Object.is(value, oldValue);
104
-
105
- let activeEffectScope;
106
- function recordEffectScope(effect, scope = activeEffectScope) {
107
- if (scope && scope.active) {
108
- scope.effects.push(effect);
109
- }
110
- }
111
- const createDep = effects => {
112
- const dep = new Set(effects);
113
- dep.w = 0;
114
- dep.n = 0;
115
- return dep;
116
- };
117
- const wasTracked = dep => (dep.w & trackOpBit) > 0;
118
- const newTracked = dep => (dep.n & trackOpBit) > 0;
119
- const initDepMarkers = ({
120
- deps
121
- }) => {
122
- if (deps.length) {
123
- for (let i = 0; i < deps.length; i++) {
124
- deps[i].w |= trackOpBit; // set was tracked
125
- }
126
- }
127
- };
128
-
129
- const finalizeDepMarkers = effect => {
130
- const {
131
- deps
132
- } = effect;
133
- if (deps.length) {
134
- let ptr = 0;
135
- for (let i = 0; i < deps.length; i++) {
136
- const dep = deps[i];
137
- if (wasTracked(dep) && !newTracked(dep)) {
138
- dep.delete(effect);
139
- } else {
140
- deps[ptr++] = dep;
141
- }
142
- // clear bits
143
- dep.w &= ~trackOpBit;
144
- dep.n &= ~trackOpBit;
145
- }
146
- deps.length = ptr;
147
- }
148
- };
149
- const targetMap = new WeakMap();
150
- // The number of effects currently being tracked recursively.
151
- let effectTrackDepth = 0;
152
- let trackOpBit = 1;
153
- /**
154
- * The bitwise track markers support at most 30 levels of recursion.
155
- * This value is chosen to enable modern JS engines to use a SMI on all platforms.
156
- * When recursion depth is greater, fall back to using a full cleanup.
157
- */
158
- const maxMarkerBits = 30;
159
- let activeEffect;
160
- const ITERATE_KEY = Symbol('');
161
- const MAP_KEY_ITERATE_KEY = Symbol('');
162
- class ReactiveEffect {
163
- constructor(fn, scheduler = null, scope) {
164
- this.fn = fn;
165
- this.scheduler = scheduler;
166
- this.active = true;
167
- this.deps = [];
168
- this.parent = undefined;
169
- recordEffectScope(this, scope);
170
- }
171
- run() {
172
- if (!this.active) {
173
- return this.fn();
174
- }
175
- let parent = activeEffect;
176
- let lastShouldTrack = shouldTrack;
177
- while (parent) {
178
- if (parent === this) {
179
- return;
180
- }
181
- parent = parent.parent;
182
- }
183
- try {
184
- this.parent = activeEffect;
185
- activeEffect = this;
186
- shouldTrack = true;
187
- trackOpBit = 1 << ++effectTrackDepth;
188
- if (effectTrackDepth <= maxMarkerBits) {
189
- initDepMarkers(this);
190
- } else {
191
- cleanupEffect(this);
192
- }
193
- return this.fn();
194
- } finally {
195
- if (effectTrackDepth <= maxMarkerBits) {
196
- finalizeDepMarkers(this);
197
- }
198
- trackOpBit = 1 << --effectTrackDepth;
199
- activeEffect = this.parent;
200
- shouldTrack = lastShouldTrack;
201
- this.parent = undefined;
202
- if (this.deferStop) {
203
- this.stop();
204
- }
205
- }
206
- }
207
- stop() {
208
- // stopped while running itself - defer the cleanup
209
- if (activeEffect === this) {
210
- this.deferStop = true;
211
- } else if (this.active) {
212
- cleanupEffect(this);
213
- if (this.onStop) {
214
- this.onStop();
215
- }
216
- this.active = false;
217
- }
218
- }
219
- }
220
- function cleanupEffect(effect) {
221
- const {
222
- deps
223
- } = effect;
224
- if (deps.length) {
225
- for (let i = 0; i < deps.length; i++) {
226
- deps[i].delete(effect);
227
- }
228
- deps.length = 0;
229
- }
230
- }
231
- let shouldTrack = true;
232
- const trackStack = [];
233
- function pauseTracking() {
234
- trackStack.push(shouldTrack);
235
- shouldTrack = false;
236
- }
237
- function resetTracking() {
238
- const last = trackStack.pop();
239
- shouldTrack = last === undefined ? true : last;
240
- }
241
- function track(target, type, key) {
242
- if (shouldTrack && activeEffect) {
243
- let depsMap = targetMap.get(target);
244
- if (!depsMap) {
245
- targetMap.set(target, depsMap = new Map());
246
- }
247
- let dep = depsMap.get(key);
248
- if (!dep) {
249
- depsMap.set(key, dep = createDep());
250
- }
251
- trackEffects(dep);
252
- }
253
- }
254
- function trackEffects(dep, debuggerEventExtraInfo) {
255
- let shouldTrack = false;
256
- if (effectTrackDepth <= maxMarkerBits) {
257
- if (!newTracked(dep)) {
258
- dep.n |= trackOpBit; // set newly tracked
259
- shouldTrack = !wasTracked(dep);
260
- }
261
- } else {
262
- // Full cleanup mode.
263
- shouldTrack = !dep.has(activeEffect);
264
- }
265
- if (shouldTrack) {
266
- dep.add(activeEffect);
267
- activeEffect.deps.push(dep);
268
- }
269
- }
270
- function trigger(target, type, key, newValue, oldValue, oldTarget) {
271
- const depsMap = targetMap.get(target);
272
- if (!depsMap) {
273
- // never been tracked
274
- return;
275
- }
276
- let deps = [];
277
- if (type === "clear" /* TriggerOpTypes.CLEAR */) {
278
- // collection being cleared
279
- // trigger all effects for target
280
- deps = [...depsMap.values()];
281
- } else if (key === 'length' && isArray(target)) {
282
- depsMap.forEach((dep, key) => {
283
- if (key === 'length' || key >= newValue) {
284
- deps.push(dep);
285
- }
286
- });
287
- } else {
288
- // schedule runs for SET | ADD | DELETE
289
- if (key !== void 0) {
290
- deps.push(depsMap.get(key));
291
- }
292
- // also run for iteration key on ADD | DELETE | Map.SET
293
- switch (type) {
294
- case "add" /* TriggerOpTypes.ADD */:
295
- if (!isArray(target)) {
296
- deps.push(depsMap.get(ITERATE_KEY));
297
- if (isMap(target)) {
298
- deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
299
- }
300
- } else if (isIntegerKey(key)) {
301
- // new index added to array -> length changes
302
- deps.push(depsMap.get('length'));
303
- }
304
- break;
305
- case "delete" /* TriggerOpTypes.DELETE */:
306
- if (!isArray(target)) {
307
- deps.push(depsMap.get(ITERATE_KEY));
308
- if (isMap(target)) {
309
- deps.push(depsMap.get(MAP_KEY_ITERATE_KEY));
310
- }
311
- }
312
- break;
313
- case "set" /* TriggerOpTypes.SET */:
314
- if (isMap(target)) {
315
- deps.push(depsMap.get(ITERATE_KEY));
316
- }
317
- break;
318
- }
319
- }
320
- if (deps.length === 1) {
321
- if (deps[0]) {
322
- {
323
- triggerEffects(deps[0]);
324
- }
325
- }
326
- } else {
327
- const effects = [];
328
- for (const dep of deps) {
329
- if (dep) {
330
- effects.push(...dep);
331
- }
332
- }
333
- {
334
- triggerEffects(createDep(effects));
335
- }
336
- }
337
- }
338
- function triggerEffects(dep, debuggerEventExtraInfo) {
339
- // spread into array for stabilization
340
- const effects = isArray(dep) ? dep : [...dep];
341
- for (const effect of effects) {
342
- if (effect.computed) {
343
- triggerEffect(effect);
344
- }
345
- }
346
- for (const effect of effects) {
347
- if (!effect.computed) {
348
- triggerEffect(effect);
349
- }
350
- }
351
- }
352
- function triggerEffect(effect, debuggerEventExtraInfo) {
353
- if (effect !== activeEffect || effect.allowRecurse) {
354
- if (effect.scheduler) {
355
- effect.scheduler();
356
- } else {
357
- effect.run();
358
- }
359
- }
360
- }
361
- const isNonTrackableKeys = /*#__PURE__*/makeMap(`__proto__,__v_isRef,__isVue`);
362
- const builtInSymbols = new Set( /*#__PURE__*/
363
- Object.getOwnPropertyNames(Symbol)
364
- // ios10.x Object.getOwnPropertyNames(Symbol) can enumerate 'arguments' and 'caller'
365
- // but accessing them on Symbol leads to TypeError because Symbol is a strict mode
366
- // function
367
- .filter(key => key !== 'arguments' && key !== 'caller').map(key => Symbol[key]).filter(isSymbol));
368
- const get = /*#__PURE__*/createGetter();
369
- const readonlyGet = /*#__PURE__*/createGetter(true);
370
- const arrayInstrumentations = /*#__PURE__*/createArrayInstrumentations();
371
- function createArrayInstrumentations() {
372
- const instrumentations = {};
373
- ['includes', 'indexOf', 'lastIndexOf'].forEach(key => {
374
- instrumentations[key] = function (...args) {
375
- const arr = toRaw(this);
376
- for (let i = 0, l = this.length; i < l; i++) {
377
- track(arr, "get" /* TrackOpTypes.GET */, i + '');
378
- }
379
- // we run the method using the original args first (which may be reactive)
380
- const res = arr[key](...args);
381
- if (res === -1 || res === false) {
382
- // if that didn't work, run it again using raw values.
383
- return arr[key](...args.map(toRaw));
384
- } else {
385
- return res;
386
- }
387
- };
388
- });
389
- ['push', 'pop', 'shift', 'unshift', 'splice'].forEach(key => {
390
- instrumentations[key] = function (...args) {
391
- pauseTracking();
392
- const res = toRaw(this)[key].apply(this, args);
393
- resetTracking();
394
- return res;
395
- };
396
- });
397
- return instrumentations;
398
- }
399
- function createGetter(isReadonly = false, shallow = false) {
400
- return function get(target, key, receiver) {
401
- if (key === "__v_isReactive" /* ReactiveFlags.IS_REACTIVE */) {
402
- return !isReadonly;
403
- } else if (key === "__v_isReadonly" /* ReactiveFlags.IS_READONLY */) {
404
- return isReadonly;
405
- } else if (key === "__v_isShallow" /* ReactiveFlags.IS_SHALLOW */) {
406
- return shallow;
407
- } else if (key === "__v_raw" /* ReactiveFlags.RAW */ && receiver === (isReadonly ? shallow ? shallowReadonlyMap : readonlyMap : shallow ? shallowReactiveMap : reactiveMap).get(target)) {
408
- return target;
409
- }
410
- const targetIsArray = isArray(target);
411
- if (!isReadonly && targetIsArray && hasOwn(arrayInstrumentations, key)) {
412
- return Reflect.get(arrayInstrumentations, key, receiver);
413
- }
414
- const res = Reflect.get(target, key, receiver);
415
- if (isSymbol(key) ? builtInSymbols.has(key) : isNonTrackableKeys(key)) {
416
- return res;
417
- }
418
- if (!isReadonly) {
419
- track(target, "get" /* TrackOpTypes.GET */, key);
420
- }
421
- if (shallow) {
422
- return res;
423
- }
424
- if (isRef(res)) {
425
- // ref unwrapping - skip unwrap for Array + integer key.
426
- return targetIsArray && isIntegerKey(key) ? res : res.value;
427
- }
428
- if (isObject(res)) {
429
- // Convert returned value into a proxy as well. we do the isObject check
430
- // here to avoid invalid value warning. Also need to lazy access readonly
431
- // and reactive here to avoid circular dependency.
432
- return isReadonly ? readonly(res) : reactive(res);
433
- }
434
- return res;
435
- };
436
- }
437
- const set = /*#__PURE__*/createSetter();
438
- function createSetter(shallow = false) {
439
- return function set(target, key, value, receiver) {
440
- let oldValue = target[key];
441
- if (isReadonly(oldValue) && isRef(oldValue) && !isRef(value)) {
442
- return false;
443
- }
444
- if (!shallow) {
445
- if (!isShallow(value) && !isReadonly(value)) {
446
- oldValue = toRaw(oldValue);
447
- value = toRaw(value);
448
- }
449
- if (!isArray(target) && isRef(oldValue) && !isRef(value)) {
450
- oldValue.value = value;
451
- return true;
452
- }
453
- }
454
- const hadKey = isArray(target) && isIntegerKey(key) ? Number(key) < target.length : hasOwn(target, key);
455
- const result = Reflect.set(target, key, value, receiver);
456
- // don't trigger if target is something up in the prototype chain of original
457
- if (target === toRaw(receiver)) {
458
- if (!hadKey) {
459
- trigger(target, "add" /* TriggerOpTypes.ADD */, key, value);
460
- } else if (hasChanged(value, oldValue)) {
461
- trigger(target, "set" /* TriggerOpTypes.SET */, key, value);
462
- }
463
- }
464
- return result;
465
- };
466
- }
467
- function deleteProperty(target, key) {
468
- const hadKey = hasOwn(target, key);
469
- target[key];
470
- const result = Reflect.deleteProperty(target, key);
471
- if (result && hadKey) {
472
- trigger(target, "delete" /* TriggerOpTypes.DELETE */, key, undefined);
473
- }
474
- return result;
475
- }
476
- function has(target, key) {
477
- const result = Reflect.has(target, key);
478
- if (!isSymbol(key) || !builtInSymbols.has(key)) {
479
- track(target, "has" /* TrackOpTypes.HAS */, key);
480
- }
481
- return result;
482
- }
483
- function ownKeys(target) {
484
- track(target, "iterate" /* TrackOpTypes.ITERATE */, isArray(target) ? 'length' : ITERATE_KEY);
485
- return Reflect.ownKeys(target);
486
- }
487
- const mutableHandlers = {
488
- get,
489
- set,
490
- deleteProperty,
491
- has,
492
- ownKeys
493
- };
494
- const readonlyHandlers = {
495
- get: readonlyGet,
496
- set(target, key) {
497
- return true;
498
- },
499
- deleteProperty(target, key) {
500
- return true;
501
- }
502
- };
503
- const toShallow = value => value;
504
- const getProto = v => Reflect.getPrototypeOf(v);
505
- function get$1(target, key, isReadonly = false, isShallow = false) {
506
- // #1772: readonly(reactive(Map)) should return readonly + reactive version
507
- // of the value
508
- target = target["__v_raw" /* ReactiveFlags.RAW */];
509
- const rawTarget = toRaw(target);
510
- const rawKey = toRaw(key);
511
- if (!isReadonly) {
512
- if (key !== rawKey) {
513
- track(rawTarget, "get" /* TrackOpTypes.GET */, key);
514
- }
515
- track(rawTarget, "get" /* TrackOpTypes.GET */, rawKey);
516
- }
517
- const {
518
- has
519
- } = getProto(rawTarget);
520
- const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
521
- if (has.call(rawTarget, key)) {
522
- return wrap(target.get(key));
523
- } else if (has.call(rawTarget, rawKey)) {
524
- return wrap(target.get(rawKey));
525
- } else if (target !== rawTarget) {
526
- // #3602 readonly(reactive(Map))
527
- // ensure that the nested reactive `Map` can do tracking for itself
528
- target.get(key);
529
- }
530
- }
531
- function has$1(key, isReadonly = false) {
532
- const target = this["__v_raw" /* ReactiveFlags.RAW */];
533
- const rawTarget = toRaw(target);
534
- const rawKey = toRaw(key);
535
- if (!isReadonly) {
536
- if (key !== rawKey) {
537
- track(rawTarget, "has" /* TrackOpTypes.HAS */, key);
538
- }
539
- track(rawTarget, "has" /* TrackOpTypes.HAS */, rawKey);
540
- }
541
- return key === rawKey ? target.has(key) : target.has(key) || target.has(rawKey);
542
- }
543
- function size(target, isReadonly = false) {
544
- target = target["__v_raw" /* ReactiveFlags.RAW */];
545
- !isReadonly && track(toRaw(target), "iterate" /* TrackOpTypes.ITERATE */, ITERATE_KEY);
546
- return Reflect.get(target, 'size', target);
547
- }
548
- function add(value) {
549
- value = toRaw(value);
550
- const target = toRaw(this);
551
- const proto = getProto(target);
552
- const hadKey = proto.has.call(target, value);
553
- if (!hadKey) {
554
- target.add(value);
555
- trigger(target, "add" /* TriggerOpTypes.ADD */, value, value);
556
- }
557
- return this;
558
- }
559
- function set$1(key, value) {
560
- value = toRaw(value);
561
- const target = toRaw(this);
562
- const {
563
- has,
564
- get
565
- } = getProto(target);
566
- let hadKey = has.call(target, key);
567
- if (!hadKey) {
568
- key = toRaw(key);
569
- hadKey = has.call(target, key);
570
- }
571
- const oldValue = get.call(target, key);
572
- target.set(key, value);
573
- if (!hadKey) {
574
- trigger(target, "add" /* TriggerOpTypes.ADD */, key, value);
575
- } else if (hasChanged(value, oldValue)) {
576
- trigger(target, "set" /* TriggerOpTypes.SET */, key, value);
577
- }
578
- return this;
579
- }
580
- function deleteEntry(key) {
581
- const target = toRaw(this);
582
- const {
583
- has,
584
- get
585
- } = getProto(target);
586
- let hadKey = has.call(target, key);
587
- if (!hadKey) {
588
- key = toRaw(key);
589
- hadKey = has.call(target, key);
590
- }
591
- get ? get.call(target, key) : undefined;
592
- // forward the operation before queueing reactions
593
- const result = target.delete(key);
594
- if (hadKey) {
595
- trigger(target, "delete" /* TriggerOpTypes.DELETE */, key, undefined);
596
- }
597
- return result;
598
- }
599
- function clear() {
600
- const target = toRaw(this);
601
- const hadItems = target.size !== 0;
602
- // forward the operation before queueing reactions
603
- const result = target.clear();
604
- if (hadItems) {
605
- trigger(target, "clear" /* TriggerOpTypes.CLEAR */, undefined, undefined);
606
- }
607
- return result;
608
- }
609
- function createForEach(isReadonly, isShallow) {
610
- return function forEach(callback, thisArg) {
611
- const observed = this;
612
- const target = observed["__v_raw" /* ReactiveFlags.RAW */];
613
- const rawTarget = toRaw(target);
614
- const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
615
- !isReadonly && track(rawTarget, "iterate" /* TrackOpTypes.ITERATE */, ITERATE_KEY);
616
- return target.forEach((value, key) => {
617
- // important: make sure the callback is
618
- // 1. invoked with the reactive map as `this` and 3rd arg
619
- // 2. the value received should be a corresponding reactive/readonly.
620
- return callback.call(thisArg, wrap(value), wrap(key), observed);
621
- });
622
- };
623
- }
624
- function createIterableMethod(method, isReadonly, isShallow) {
625
- return function (...args) {
626
- const target = this["__v_raw" /* ReactiveFlags.RAW */];
627
- const rawTarget = toRaw(target);
628
- const targetIsMap = isMap(rawTarget);
629
- const isPair = method === 'entries' || method === Symbol.iterator && targetIsMap;
630
- const isKeyOnly = method === 'keys' && targetIsMap;
631
- const innerIterator = target[method](...args);
632
- const wrap = isShallow ? toShallow : isReadonly ? toReadonly : toReactive;
633
- !isReadonly && track(rawTarget, "iterate" /* TrackOpTypes.ITERATE */, isKeyOnly ? MAP_KEY_ITERATE_KEY : ITERATE_KEY);
634
- // return a wrapped iterator which returns observed versions of the
635
- // values emitted from the real iterator
636
- return {
637
- // iterator protocol
638
- next() {
639
- const {
640
- value,
641
- done
642
- } = innerIterator.next();
643
- return done ? {
644
- value,
645
- done
646
- } : {
647
- value: isPair ? [wrap(value[0]), wrap(value[1])] : wrap(value),
648
- done
649
- };
650
- },
651
- // iterable protocol
652
- [Symbol.iterator]() {
653
- return this;
654
- }
655
- };
656
- };
657
- }
658
- function createReadonlyMethod(type) {
659
- return function (...args) {
660
- return type === "delete" /* TriggerOpTypes.DELETE */ ? false : this;
661
- };
662
- }
663
- function createInstrumentations() {
664
- const mutableInstrumentations = {
665
- get(key) {
666
- return get$1(this, key);
667
- },
668
- get size() {
669
- return size(this);
670
- },
671
- has: has$1,
672
- add,
673
- set: set$1,
674
- delete: deleteEntry,
675
- clear,
676
- forEach: createForEach(false, false)
677
- };
678
- const shallowInstrumentations = {
679
- get(key) {
680
- return get$1(this, key, false, true);
681
- },
682
- get size() {
683
- return size(this);
684
- },
685
- has: has$1,
686
- add,
687
- set: set$1,
688
- delete: deleteEntry,
689
- clear,
690
- forEach: createForEach(false, true)
691
- };
692
- const readonlyInstrumentations = {
693
- get(key) {
694
- return get$1(this, key, true);
695
- },
696
- get size() {
697
- return size(this, true);
698
- },
699
- has(key) {
700
- return has$1.call(this, key, true);
701
- },
702
- add: createReadonlyMethod("add" /* TriggerOpTypes.ADD */),
703
- set: createReadonlyMethod("set" /* TriggerOpTypes.SET */),
704
- delete: createReadonlyMethod("delete" /* TriggerOpTypes.DELETE */),
705
- clear: createReadonlyMethod("clear" /* TriggerOpTypes.CLEAR */),
706
- forEach: createForEach(true, false)
707
- };
708
- const shallowReadonlyInstrumentations = {
709
- get(key) {
710
- return get$1(this, key, true, true);
711
- },
712
- get size() {
713
- return size(this, true);
714
- },
715
- has(key) {
716
- return has$1.call(this, key, true);
717
- },
718
- add: createReadonlyMethod("add" /* TriggerOpTypes.ADD */),
719
- set: createReadonlyMethod("set" /* TriggerOpTypes.SET */),
720
- delete: createReadonlyMethod("delete" /* TriggerOpTypes.DELETE */),
721
- clear: createReadonlyMethod("clear" /* TriggerOpTypes.CLEAR */),
722
- forEach: createForEach(true, true)
723
- };
724
- const iteratorMethods = ['keys', 'values', 'entries', Symbol.iterator];
725
- iteratorMethods.forEach(method => {
726
- mutableInstrumentations[method] = createIterableMethod(method, false, false);
727
- readonlyInstrumentations[method] = createIterableMethod(method, true, false);
728
- shallowInstrumentations[method] = createIterableMethod(method, false, true);
729
- shallowReadonlyInstrumentations[method] = createIterableMethod(method, true, true);
730
- });
731
- return [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations];
732
- }
733
- const [mutableInstrumentations, readonlyInstrumentations, shallowInstrumentations, shallowReadonlyInstrumentations] = /* #__PURE__*/createInstrumentations();
734
- function createInstrumentationGetter(isReadonly, shallow) {
735
- const instrumentations = shallow ? isReadonly ? shallowReadonlyInstrumentations : shallowInstrumentations : isReadonly ? readonlyInstrumentations : mutableInstrumentations;
736
- return (target, key, receiver) => {
737
- if (key === "__v_isReactive" /* ReactiveFlags.IS_REACTIVE */) {
738
- return !isReadonly;
739
- } else if (key === "__v_isReadonly" /* ReactiveFlags.IS_READONLY */) {
740
- return isReadonly;
741
- } else if (key === "__v_raw" /* ReactiveFlags.RAW */) {
742
- return target;
743
- }
744
- return Reflect.get(hasOwn(instrumentations, key) && key in target ? instrumentations : target, key, receiver);
745
- };
746
- }
747
- const mutableCollectionHandlers = {
748
- get: /*#__PURE__*/createInstrumentationGetter(false, false)
749
- };
750
- const readonlyCollectionHandlers = {
751
- get: /*#__PURE__*/createInstrumentationGetter(true, false)
752
- };
753
- const reactiveMap = new WeakMap();
754
- const shallowReactiveMap = new WeakMap();
755
- const readonlyMap = new WeakMap();
756
- const shallowReadonlyMap = new WeakMap();
757
- function targetTypeMap(rawType) {
758
- switch (rawType) {
759
- case 'Object':
760
- case 'Array':
761
- return 1 /* TargetType.COMMON */;
762
- case 'Map':
763
- case 'Set':
764
- case 'WeakMap':
765
- case 'WeakSet':
766
- return 2 /* TargetType.COLLECTION */;
767
- default:
768
- return 0 /* TargetType.INVALID */;
769
- }
770
- }
771
-
772
- function getTargetType(value) {
773
- return value["__v_skip" /* ReactiveFlags.SKIP */] || !Object.isExtensible(value) ? 0 /* TargetType.INVALID */ : targetTypeMap(toRawType(value));
774
- }
775
- function reactive(target) {
776
- // if trying to observe a readonly proxy, return the readonly version.
777
- if (isReadonly(target)) {
778
- return target;
779
- }
780
- return createReactiveObject(target, false, mutableHandlers, mutableCollectionHandlers, reactiveMap);
781
- }
782
- /**
783
- * Creates a readonly copy of the original object. Note the returned copy is not
784
- * made reactive, but `readonly` can be called on an already reactive object.
785
- */
786
- function readonly(target) {
787
- return createReactiveObject(target, true, readonlyHandlers, readonlyCollectionHandlers, readonlyMap);
788
- }
789
- function createReactiveObject(target, isReadonly, baseHandlers, collectionHandlers, proxyMap) {
790
- if (!isObject(target)) {
791
- return target;
792
- }
793
- // target is already a Proxy, return it.
794
- // exception: calling readonly() on a reactive object
795
- if (target["__v_raw" /* ReactiveFlags.RAW */] && !(isReadonly && target["__v_isReactive" /* ReactiveFlags.IS_REACTIVE */])) {
796
- return target;
797
- }
798
- // target already has corresponding Proxy
799
- const existingProxy = proxyMap.get(target);
800
- if (existingProxy) {
801
- return existingProxy;
802
- }
803
- // only specific value types can be observed.
804
- const targetType = getTargetType(target);
805
- if (targetType === 0 /* TargetType.INVALID */) {
806
- return target;
807
- }
808
- const proxy = new Proxy(target, targetType === 2 /* TargetType.COLLECTION */ ? collectionHandlers : baseHandlers);
809
- proxyMap.set(target, proxy);
810
- return proxy;
811
- }
812
- function isReactive(value) {
813
- if (isReadonly(value)) {
814
- return isReactive(value["__v_raw" /* ReactiveFlags.RAW */]);
815
- }
816
-
817
- return !!(value && value["__v_isReactive" /* ReactiveFlags.IS_REACTIVE */]);
818
- }
819
-
820
- function isReadonly(value) {
821
- return !!(value && value["__v_isReadonly" /* ReactiveFlags.IS_READONLY */]);
822
- }
823
-
824
- function isShallow(value) {
825
- return !!(value && value["__v_isShallow" /* ReactiveFlags.IS_SHALLOW */]);
826
- }
827
-
828
- function isProxy(value) {
829
- return isReactive(value) || isReadonly(value);
830
- }
831
- function toRaw(observed) {
832
- const raw = observed && observed["__v_raw" /* ReactiveFlags.RAW */];
833
- return raw ? toRaw(raw) : observed;
834
- }
835
- const toReactive = value => isObject(value) ? reactive(value) : value;
836
- const toReadonly = value => isObject(value) ? readonly(value) : value;
837
- function trackRefValue(ref) {
838
- if (shouldTrack && activeEffect) {
839
- ref = toRaw(ref);
840
- {
841
- trackEffects(ref.dep || (ref.dep = createDep()));
842
- }
843
- }
844
- }
845
- function triggerRefValue(ref, newVal) {
846
- ref = toRaw(ref);
847
- if (ref.dep) {
848
- {
849
- triggerEffects(ref.dep);
850
- }
851
- }
852
- }
853
- function isRef(r) {
854
- return !!(r && r.__v_isRef === true);
855
- }
856
- function ref(value) {
857
- return createRef(value, false);
858
- }
859
- function createRef(rawValue, shallow) {
860
- if (isRef(rawValue)) {
861
- return rawValue;
862
- }
863
- return new RefImpl(rawValue, shallow);
864
- }
865
- class RefImpl {
866
- constructor(value, __v_isShallow) {
867
- this.__v_isShallow = __v_isShallow;
868
- this.dep = undefined;
869
- this.__v_isRef = true;
870
- this._rawValue = __v_isShallow ? value : toRaw(value);
871
- this._value = __v_isShallow ? value : toReactive(value);
872
- }
873
- get value() {
874
- trackRefValue(this);
875
- return this._value;
876
- }
877
- set value(newVal) {
878
- const useDirectValue = this.__v_isShallow || isShallow(newVal) || isReadonly(newVal);
879
- newVal = useDirectValue ? newVal : toRaw(newVal);
880
- if (hasChanged(newVal, this._rawValue)) {
881
- this._rawValue = newVal;
882
- this._value = useDirectValue ? newVal : toReactive(newVal);
883
- triggerRefValue(this);
884
- }
885
- }
886
- }
887
- function unref(ref) {
888
- return isRef(ref) ? ref.value : ref;
889
- }
890
- class ObjectRefImpl {
891
- constructor(_object, _key, _defaultValue) {
892
- this._object = _object;
893
- this._key = _key;
894
- this._defaultValue = _defaultValue;
895
- this.__v_isRef = true;
896
- }
897
- get value() {
898
- const val = this._object[this._key];
899
- return val === undefined ? this._defaultValue : val;
900
- }
901
- set value(newVal) {
902
- this._object[this._key] = newVal;
903
- }
904
- }
905
- function toRef(object, key, defaultValue) {
906
- const val = object[key];
907
- return isRef(val) ? val : new ObjectRefImpl(object, key, defaultValue);
908
- }
909
- var _a;
910
- class ComputedRefImpl {
911
- constructor(getter, _setter, isReadonly, isSSR) {
912
- this._setter = _setter;
913
- this.dep = undefined;
914
- this.__v_isRef = true;
915
- this[_a] = false;
916
- this._dirty = true;
917
- this.effect = new ReactiveEffect(getter, () => {
918
- if (!this._dirty) {
919
- this._dirty = true;
920
- triggerRefValue(this);
921
- }
922
- });
923
- this.effect.computed = this;
924
- this.effect.active = this._cacheable = !isSSR;
925
- this["__v_isReadonly" /* ReactiveFlags.IS_READONLY */] = isReadonly;
926
- }
927
- get value() {
928
- // the computed ref may get wrapped by other proxies e.g. readonly() #3376
929
- const self = toRaw(this);
930
- trackRefValue(self);
931
- if (self._dirty || !self._cacheable) {
932
- self._dirty = false;
933
- self._value = self.effect.run();
934
- }
935
- return self._value;
936
- }
937
- set value(newValue) {
938
- this._setter(newValue);
939
- }
940
- }
941
- _a = "__v_isReadonly" /* ReactiveFlags.IS_READONLY */;
942
- function computed(getterOrOptions, debugOptions, isSSR = false) {
943
- let getter;
944
- let setter;
945
- const onlyGetter = isFunction(getterOrOptions);
946
- if (onlyGetter) {
947
- getter = getterOrOptions;
948
- setter = NOOP;
949
- } else {
950
- getter = getterOrOptions.get;
951
- setter = getterOrOptions.set;
952
- }
953
- const cRef = new ComputedRefImpl(getter, setter, onlyGetter || !setter, isSSR);
954
- return cRef;
955
- }
956
-
957
- export { track as A, EMPTY_OBJ as E, NOOP as N, ReactiveEffect as R, reactive as a, isShallow as b, isReactive as c, isArray as d, isFunction as e, remove as f, computed as g, isObject as h, isRef as i, hasChanged as j, isSet as k, isMap as l, isPlainObject as m, NO as n, isString as o, normalizeClass as p, isProxy as q, ref as r, extend as s, toRef as t, unref as u, normalizeStyle as v, isOn as w, isPromise as x, pauseTracking as y, resetTracking as z };