@adyen/bento-vue3 1.42.0 → 1.44.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 (237) hide show
  1. package/dist/@types/packages/vue2/src/components/button/components/button-actions/composables/use-stack-buttons/use-stack-buttons.d.ts +10 -0
  2. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +8 -8
  5. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +50 -32
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +3 -3
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +1 -350
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector/use-selector.d.ts +3 -2
  12. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +36 -4
  14. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +21 -15
  15. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +56 -38
  16. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +77 -53
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +6 -4
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +4 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +20 -12
  21. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
  22. package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +6 -2
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +228 -180
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -6
  25. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -12
  26. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +27 -21
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +139 -97
  28. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +15 -15
  30. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +15 -15
  31. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +208 -160
  32. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +9 -0
  33. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +1 -1
  35. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.keys.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +16 -1
  37. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/index.d.ts +2 -0
  38. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +3 -3
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +6 -6
  44. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -9
  45. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
  46. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  47. package/dist/@types/packages/vue2/src/components/internal/tooltip/tooltip.vue.d.ts +5 -5
  48. package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +15 -0
  49. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +48 -3
  50. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  51. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +1 -1
  52. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +1 -1
  53. package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -7
  55. package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +1 -1
  57. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +2 -2
  60. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
  61. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
  62. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +1 -1
  63. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
  64. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -2
  65. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +1 -1
  66. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
  67. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
  68. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -1
  69. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -4
  70. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +6 -4
  71. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +9 -6
  72. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -1
  73. package/dist/action-bar.js +1 -1
  74. package/dist/assets/accordion-item.css +1 -1
  75. package/dist/assets/action-bar.css +1 -1
  76. package/dist/assets/base-modal.css +1 -1
  77. package/dist/assets/button-actions-with-menu.css +1 -1
  78. package/dist/assets/button-actions.css +1 -1
  79. package/dist/assets/card.css +1 -1
  80. package/dist/assets/data-grid.css +1 -1
  81. package/dist/assets/date-range-picker.css +1 -1
  82. package/dist/assets/dialog-page.css +1 -1
  83. package/dist/assets/dropdown-default-textbox.css +1 -1
  84. package/dist/assets/dropdown.css +1 -1
  85. package/dist/assets/file-uploader.css +1 -1
  86. package/dist/assets/filter-bar.css +1 -1
  87. package/dist/assets/header.css +1 -1
  88. package/dist/assets/inspector.css +1 -1
  89. package/dist/assets/menu.css +1 -1
  90. package/dist/assets/modal-fullscreen.css +1 -1
  91. package/dist/assets/popover.css +1 -1
  92. package/dist/assets/selection-card-group.css +1 -1
  93. package/dist/assets/sidepanel.css +1 -1
  94. package/dist/assets/textarea.css +1 -1
  95. package/dist/assets/typography.css +1 -1
  96. package/dist/button.js +7 -8
  97. package/dist/button.js.map +1 -1
  98. package/dist/card.js +1 -1
  99. package/dist/chunks/{action-bar.C1Vu3qJu.js → action-bar.B-_JS43H.js} +11 -10
  100. package/dist/chunks/action-bar.B-_JS43H.js.map +1 -0
  101. package/dist/chunks/{base-modal.ku0lyHOs.js → base-modal.BR_pB6eH.js} +2 -2
  102. package/dist/chunks/{base-modal.ku0lyHOs.js.map → base-modal.BR_pB6eH.js.map} +1 -1
  103. package/dist/chunks/button-actions-with-menu.GT_kNv28.js +119 -0
  104. package/dist/chunks/button-actions-with-menu.GT_kNv28.js.map +1 -0
  105. package/dist/chunks/button-actions.BjlQS6tm.js +322 -0
  106. package/dist/chunks/button-actions.BjlQS6tm.js.map +1 -0
  107. package/dist/chunks/{card.D_XL2TWr.js → card.BrEfcUoE.js} +2 -2
  108. package/dist/chunks/{card.D_XL2TWr.js.map → card.BrEfcUoE.js.map} +1 -1
  109. package/dist/chunks/{code-snippet.CiOcZKKH.js → code-snippet.S5NdUu0p.js} +4 -4
  110. package/dist/chunks/{code-snippet.CiOcZKKH.js.map → code-snippet.S5NdUu0p.js.map} +1 -1
  111. package/dist/chunks/{dashboard-section.BCc8HoQG.js → dashboard-section.LWxBcOV_.js} +3 -3
  112. package/dist/chunks/{dashboard-section.BCc8HoQG.js.map → dashboard-section.LWxBcOV_.js.map} +1 -1
  113. package/dist/chunks/{dashed-underline.BKfUevuM.js → dashed-underline.CRlWNPrd.js} +2 -2
  114. package/dist/chunks/{dashed-underline.BKfUevuM.js.map → dashed-underline.CRlWNPrd.js.map} +1 -1
  115. package/dist/chunks/{data-grid-template.DI27ou71.js → data-grid-template.BZVeRN6g.js} +2 -2
  116. package/dist/chunks/{data-grid-template.DI27ou71.js.map → data-grid-template.BZVeRN6g.js.map} +1 -1
  117. package/dist/chunks/data-grid.CKDW-rbM.js +3374 -0
  118. package/dist/chunks/data-grid.CKDW-rbM.js.map +1 -0
  119. package/dist/chunks/{date-picker.DDsfecHp.js → date-picker.BrZ2X1nQ.js} +3 -3
  120. package/dist/chunks/{date-picker.DDsfecHp.js.map → date-picker.BrZ2X1nQ.js.map} +1 -1
  121. package/dist/chunks/{date-range-picker.C9Ht_Egi.js → date-range-picker.4y2goCI8.js} +204 -201
  122. package/dist/chunks/date-range-picker.4y2goCI8.js.map +1 -0
  123. package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js → dropdown-default-textbox.ZjVeMHVC.js} +131 -120
  124. package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js.map → dropdown-default-textbox.ZjVeMHVC.js.map} +1 -1
  125. package/dist/chunks/{dropdown-tag.Bc4qxPRN.js → dropdown-tag.ClKm4xAo.js} +2 -2
  126. package/dist/chunks/{dropdown-tag.Bc4qxPRN.js.map → dropdown-tag.ClKm4xAo.js.map} +1 -1
  127. package/dist/chunks/dropdown.Sj2OLuEF.js +911 -0
  128. package/dist/chunks/{dropdown.BqkUB1So.js.map → dropdown.Sj2OLuEF.js.map} +1 -1
  129. package/dist/chunks/es6.C-HLzYPA.js +11 -0
  130. package/dist/chunks/es6.C-HLzYPA.js.map +1 -0
  131. package/dist/chunks/{file-uploader.cRbwpcAw.js → file-uploader.BgRbkW2V.js} +368 -365
  132. package/dist/chunks/file-uploader.BgRbkW2V.js.map +1 -0
  133. package/dist/chunks/{filter-bar.DVLYNNwQ.js → filter-bar.CM1FZ02d.js} +19 -20
  134. package/dist/chunks/filter-bar.CM1FZ02d.js.map +1 -0
  135. package/dist/chunks/{footer-actions.DvIVWqWv.js → footer-actions.Dvsb0g5Y.js} +2 -2
  136. package/dist/chunks/{footer-actions.DvIVWqWv.js.map → footer-actions.Dvsb0g5Y.js.map} +1 -1
  137. package/dist/chunks/{header.C0NBlBJv.js → header.8BzBNgxj.js} +23 -23
  138. package/dist/chunks/{header.C0NBlBJv.js.map → header.8BzBNgxj.js.map} +1 -1
  139. package/dist/chunks/index.lHdwuJAx.js +366 -0
  140. package/dist/chunks/index.lHdwuJAx.js.map +1 -0
  141. package/dist/chunks/{input-field-password.BA0EpVMY.js → input-field-password.CXsERnQX.js} +4 -4
  142. package/dist/chunks/{input-field-password.BA0EpVMY.js.map → input-field-password.CXsERnQX.js.map} +1 -1
  143. package/dist/chunks/{input-field.CWMgbw48.js → input-field.C-7_iMIS.js} +2 -2
  144. package/dist/chunks/{input-field.CWMgbw48.js.map → input-field.C-7_iMIS.js.map} +1 -1
  145. package/dist/chunks/{layout-row.iTtAEvD2.js → layout-row.DcyZ3DP3.js} +2 -2
  146. package/dist/chunks/{layout-row.iTtAEvD2.js.map → layout-row.DcyZ3DP3.js.map} +1 -1
  147. package/dist/chunks/{menu.BpqOdkxR.js → menu.hDynz4lc.js} +132 -104
  148. package/dist/chunks/menu.hDynz4lc.js.map +1 -0
  149. package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js → modal-fullscreen.BCGaxVNb.js} +2 -2
  150. package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js.map → modal-fullscreen.BCGaxVNb.js.map} +1 -1
  151. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js} +4 -4
  152. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js.map} +1 -1
  153. package/dist/chunks/{pagination.DrWx8K01.js → pagination.C9kqX5tD.js} +2 -2
  154. package/dist/chunks/{pagination.DrWx8K01.js.map → pagination.C9kqX5tD.js.map} +1 -1
  155. package/dist/chunks/{popover.D9Zw4w9l.js → popover.DwGgnCyn.js} +2 -2
  156. package/dist/chunks/{popover.D9Zw4w9l.js.map → popover.DwGgnCyn.js.map} +1 -1
  157. package/dist/chunks/{promo-banner.oUapgyV-.js → promo-banner.CzR9ri5v.js} +2 -2
  158. package/dist/chunks/{promo-banner.oUapgyV-.js.map → promo-banner.CzR9ri5v.js.map} +1 -1
  159. package/dist/chunks/{search-bar.DDePObYJ.js → search-bar.DPC0amNg.js} +3 -3
  160. package/dist/chunks/{search-bar.DDePObYJ.js.map → search-bar.DPC0amNg.js.map} +1 -1
  161. package/dist/chunks/{secondary-nav.ysDOs9J9.js → secondary-nav.DH7aXddE.js} +4 -4
  162. package/dist/chunks/{secondary-nav.ysDOs9J9.js.map → secondary-nav.DH7aXddE.js.map} +1 -1
  163. package/dist/chunks/{selection-card-group.pUl1EuFV.js → selection-card-group.DDBJ423n.js} +13 -13
  164. package/dist/chunks/{selection-card-group.pUl1EuFV.js.map → selection-card-group.DDBJ423n.js.map} +1 -1
  165. package/dist/chunks/{sidepanel.BywianGe.js → sidepanel.8NclWh0V.js} +2 -2
  166. package/dist/chunks/{sidepanel.BywianGe.js.map → sidepanel.8NclWh0V.js.map} +1 -1
  167. package/dist/chunks/{teleport.CI0k6eaC.js → teleport.B255JhsV.js} +26 -17
  168. package/dist/chunks/teleport.B255JhsV.js.map +1 -0
  169. package/dist/chunks/{textarea.vAp6HFi9.js → textarea.D1weaQCC.js} +72 -68
  170. package/dist/chunks/{textarea.vAp6HFi9.js.map → textarea.D1weaQCC.js.map} +1 -1
  171. package/dist/chunks/{timeline-item.ND_EMuwP.js → timeline-item.BDYrjKhM.js} +3 -3
  172. package/dist/chunks/{timeline-item.ND_EMuwP.js.map → timeline-item.BDYrjKhM.js.map} +1 -1
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js} +4 -4
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.DWVHnlNN.js → use-cached-selected-values.B6beyyvX.js} +7 -4
  176. package/dist/chunks/{use-cached-selected-values.DWVHnlNN.js.map → use-cached-selected-values.B6beyyvX.js.map} +1 -1
  177. package/dist/code-snippet.js +1 -1
  178. package/dist/dashboard-template.js +1 -1
  179. package/dist/dashed-underline.js +1 -1
  180. package/dist/data-grid-template.js +1 -1
  181. package/dist/data-grid.js +1 -1
  182. package/dist/date-picker.js +1 -1
  183. package/dist/date-range-picker.js +1 -1
  184. package/dist/dropdown.js +4 -4
  185. package/dist/file-uploader.js +1 -1
  186. package/dist/filter-bar.js +1 -1
  187. package/dist/header.js +1 -1
  188. package/dist/index.js +68 -69
  189. package/dist/index.js.map +1 -1
  190. package/dist/input-field-password.js +1 -1
  191. package/dist/input-field.js +1 -1
  192. package/dist/internal.js +28 -24
  193. package/dist/internal.js.map +1 -1
  194. package/dist/layout.js +1 -1
  195. package/dist/menu.js +1 -1
  196. package/dist/modal-fullscreen.js +1 -1
  197. package/dist/modal.js +2 -2
  198. package/dist/pagination.js +1 -1
  199. package/dist/popover.js +1 -1
  200. package/dist/promo-banner.js +1 -1
  201. package/dist/search-bar.js +2 -2
  202. package/dist/secondary-nav.js +1 -1
  203. package/dist/selection-card.js +1 -1
  204. package/dist/sidepanel.js +1 -1
  205. package/dist/styles/bento-dark.css +3 -0
  206. package/dist/styles/bento-light.css +3 -0
  207. package/dist/styles/bento.css +3 -0
  208. package/dist/styles/legacy.css +3 -0
  209. package/dist/styles/styleguide.css +3 -0
  210. package/dist/textarea.js +1 -1
  211. package/dist/timeline.js +1 -1
  212. package/dist/tutorial.js +1 -1
  213. package/dist/web-types.json +1 -1
  214. package/package.json +5 -3
  215. package/dist/@types/packages/vue2/src/components/button/button.demo.d.ts +0 -6
  216. package/dist/assets/loading-button.css +0 -1
  217. package/dist/chunks/action-bar.C1Vu3qJu.js.map +0 -1
  218. package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js +0 -106
  219. package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js.map +0 -1
  220. package/dist/chunks/button-actions.Bjfo46Q_.js +0 -150
  221. package/dist/chunks/button-actions.Bjfo46Q_.js.map +0 -1
  222. package/dist/chunks/data-grid.eX0SZIFQ.js +0 -3174
  223. package/dist/chunks/data-grid.eX0SZIFQ.js.map +0 -1
  224. package/dist/chunks/date-range-picker.C9Ht_Egi.js.map +0 -1
  225. package/dist/chunks/dropdown.BqkUB1So.js +0 -907
  226. package/dist/chunks/es6.b4enG1py.js +0 -10
  227. package/dist/chunks/es6.b4enG1py.js.map +0 -1
  228. package/dist/chunks/file-uploader.cRbwpcAw.js.map +0 -1
  229. package/dist/chunks/filter-bar.DVLYNNwQ.js.map +0 -1
  230. package/dist/chunks/index.Cwtxz7pr.js +0 -344
  231. package/dist/chunks/index.Cwtxz7pr.js.map +0 -1
  232. package/dist/chunks/loading-button.CNWhVIPK.js +0 -137
  233. package/dist/chunks/loading-button.CNWhVIPK.js.map +0 -1
  234. package/dist/chunks/menu.BpqOdkxR.js.map +0 -1
  235. package/dist/chunks/teleport.CI0k6eaC.js.map +0 -1
  236. package/dist/chunks/use-click-outside.D6aIgS15.js +0 -14
  237. package/dist/chunks/use-click-outside.D6aIgS15.js.map +0 -1
@@ -1,344 +0,0 @@
1
- import { getCurrentScope as F, onScopeDispose as M, unref as N, watch as E, onMounted as T, nextTick as j, ref as m, customRef as L, getCurrentInstance as $, watchEffect as R, computed as w } from "vue";
2
- function _(e, n) {
3
- let t, o, i;
4
- const s = m(!0), c = () => {
5
- s.value = !0, i();
6
- };
7
- E(e, c, { flush: "sync" });
8
- const r = typeof n == "function" ? n : n.get, u = typeof n == "function" ? void 0 : n.set, a = L((d, l) => (o = d, i = l, {
9
- get() {
10
- return s.value && (t = r(), s.value = !1), o(), t;
11
- },
12
- set(f) {
13
- u == null || u(f);
14
- }
15
- }));
16
- return Object.isExtensible(a) && (a.trigger = c), a;
17
- }
18
- function W(e) {
19
- return F() ? (M(e), !0) : !1;
20
- }
21
- function y(e) {
22
- return typeof e == "function" ? e() : N(e);
23
- }
24
- const C = typeof window < "u" && typeof document < "u";
25
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
26
- const P = Object.prototype.toString, B = (e) => P.call(e) === "[object Object]", S = () => {
27
- };
28
- function z(e, n) {
29
- function t(...o) {
30
- return new Promise((i, s) => {
31
- Promise.resolve(e(() => n.apply(this, o), { fn: n, thisArg: this, args: o })).then(i).catch(s);
32
- });
33
- }
34
- return t;
35
- }
36
- const D = (e) => e();
37
- function G(e, n = {}) {
38
- let t, o, i = S;
39
- const s = (r) => {
40
- clearTimeout(r), i(), i = S;
41
- };
42
- return (r) => {
43
- const u = y(e), a = y(n.maxWait);
44
- return t && s(t), u <= 0 || a !== void 0 && a <= 0 ? (o && (s(o), o = null), Promise.resolve(r())) : new Promise((d, l) => {
45
- i = n.rejectOnCancel ? l : d, a && !o && (o = setTimeout(() => {
46
- t && s(t), o = null, d(r());
47
- }, a)), t = setTimeout(() => {
48
- o && s(o), o = null, d(r());
49
- }, u);
50
- });
51
- };
52
- }
53
- function H(e, n) {
54
- var t;
55
- if (typeof e == "number")
56
- return e + n;
57
- const o = ((t = e.match(/^-?[0-9]+\.?[0-9]*/)) == null ? void 0 : t[0]) || "", i = e.slice(o.length), s = Number.parseFloat(o) + n;
58
- return Number.isNaN(s) ? e : s + i;
59
- }
60
- function V(e) {
61
- return $();
62
- }
63
- function Y(e, n, t = {}) {
64
- const {
65
- eventFilter: o = D,
66
- ...i
67
- } = t;
68
- return E(
69
- e,
70
- z(
71
- o,
72
- n
73
- ),
74
- i
75
- );
76
- }
77
- function A(e, n = !0, t) {
78
- V() ? T(e, t) : n ? e() : j(e);
79
- }
80
- function U(e, n, t = {}) {
81
- const {
82
- debounce: o = 0,
83
- maxWait: i = void 0,
84
- ...s
85
- } = t;
86
- return Y(
87
- e,
88
- n,
89
- {
90
- ...s,
91
- eventFilter: G(o, { maxWait: i })
92
- }
93
- );
94
- }
95
- function p(e) {
96
- var n;
97
- const t = y(e);
98
- return (n = t == null ? void 0 : t.$el) != null ? n : t;
99
- }
100
- const b = C ? window : void 0;
101
- function x(...e) {
102
- let n, t, o, i;
103
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([t, o, i] = e, n = b) : [n, t, o, i] = e, !n)
104
- return S;
105
- Array.isArray(t) || (t = [t]), Array.isArray(o) || (o = [o]);
106
- const s = [], c = () => {
107
- s.forEach((d) => d()), s.length = 0;
108
- }, r = (d, l, f, h) => (d.addEventListener(l, f, h), () => d.removeEventListener(l, f, h)), u = E(
109
- () => [p(n), y(i)],
110
- ([d, l]) => {
111
- if (c(), !d)
112
- return;
113
- const f = B(l) ? { ...l } : l;
114
- s.push(
115
- ...t.flatMap((h) => o.map((v) => r(d, h, v, f)))
116
- );
117
- },
118
- { immediate: !0, flush: "post" }
119
- ), a = () => {
120
- u(), c();
121
- };
122
- return W(a), a;
123
- }
124
- function q(e = {}) {
125
- var n;
126
- const {
127
- window: t = b,
128
- deep: o = !0
129
- } = e, i = (n = e.document) != null ? n : t == null ? void 0 : t.document, s = () => {
130
- var r;
131
- let u = i == null ? void 0 : i.activeElement;
132
- if (o)
133
- for (; u != null && u.shadowRoot; )
134
- u = (r = u == null ? void 0 : u.shadowRoot) == null ? void 0 : r.activeElement;
135
- return u;
136
- }, c = _(
137
- () => null,
138
- () => s()
139
- );
140
- return t && (x(t, "blur", (r) => {
141
- r.relatedTarget === null && c.trigger();
142
- }, !0), x(t, "focus", c.trigger, !0)), c;
143
- }
144
- function X() {
145
- const e = m(!1);
146
- return $() && T(() => {
147
- e.value = !0;
148
- }), e;
149
- }
150
- function I(e) {
151
- const n = X();
152
- return w(() => (n.value, !!e()));
153
- }
154
- function g(e, n = {}) {
155
- const { window: t = b } = n, o = I(() => t && "matchMedia" in t && typeof t.matchMedia == "function");
156
- let i;
157
- const s = m(!1), c = (a) => {
158
- s.value = a.matches;
159
- }, r = () => {
160
- i && ("removeEventListener" in i ? i.removeEventListener("change", c) : i.removeListener(c));
161
- }, u = R(() => {
162
- o.value && (r(), i = t.matchMedia(y(e)), "addEventListener" in i ? i.addEventListener("change", c) : i.addListener(c), s.value = i.matches);
163
- });
164
- return W(() => {
165
- u(), r(), i = void 0;
166
- }), s;
167
- }
168
- function J(e, n = {}) {
169
- function t(r, u) {
170
- let a = y(e[r]);
171
- return u != null && (a = H(a, u)), typeof a == "number" && (a = `${a}px`), a;
172
- }
173
- const { window: o = b } = n;
174
- function i(r) {
175
- return o ? o.matchMedia(r).matches : !1;
176
- }
177
- const s = (r) => g(() => `(min-width: ${t(r)})`, n), c = Object.keys(e).reduce((r, u) => (Object.defineProperty(r, u, {
178
- get: () => s(u),
179
- enumerable: !0,
180
- configurable: !0
181
- }), r), {});
182
- return Object.assign(c, {
183
- greater(r) {
184
- return g(() => `(min-width: ${t(r, 0.1)})`, n);
185
- },
186
- greaterOrEqual: s,
187
- smaller(r) {
188
- return g(() => `(max-width: ${t(r, -0.1)})`, n);
189
- },
190
- smallerOrEqual(r) {
191
- return g(() => `(max-width: ${t(r)})`, n);
192
- },
193
- between(r, u) {
194
- return g(() => `(min-width: ${t(r)}) and (max-width: ${t(u, -0.1)})`, n);
195
- },
196
- isGreater(r) {
197
- return i(`(min-width: ${t(r, 0.1)})`);
198
- },
199
- isGreaterOrEqual(r) {
200
- return i(`(min-width: ${t(r)})`);
201
- },
202
- isSmaller(r) {
203
- return i(`(max-width: ${t(r, -0.1)})`);
204
- },
205
- isSmallerOrEqual(r) {
206
- return i(`(max-width: ${t(r)})`);
207
- },
208
- isInBetween(r, u) {
209
- return i(`(min-width: ${t(r)}) and (max-width: ${t(u, -0.1)})`);
210
- },
211
- current() {
212
- const r = Object.keys(e).map((u) => [u, s(u)]);
213
- return w(() => r.filter(([, u]) => u.value).map(([u]) => u));
214
- }
215
- });
216
- }
217
- function k(e, n, t = {}) {
218
- const { window: o = b, ...i } = t;
219
- let s;
220
- const c = I(() => o && "ResizeObserver" in o), r = () => {
221
- s && (s.disconnect(), s = void 0);
222
- }, u = w(() => Array.isArray(e) ? e.map((l) => p(l)) : [p(e)]), a = E(
223
- u,
224
- (l) => {
225
- if (r(), c.value && o) {
226
- s = new ResizeObserver(n);
227
- for (const f of l)
228
- f && s.observe(f, i);
229
- }
230
- },
231
- { immediate: !0, flush: "post", deep: !0 }
232
- ), d = () => {
233
- r(), a();
234
- };
235
- return W(d), {
236
- isSupported: c,
237
- stop: d
238
- };
239
- }
240
- function K(e, n = { width: 0, height: 0 }, t = {}) {
241
- const { window: o = b, box: i = "content-box" } = t, s = w(() => {
242
- var l, f;
243
- return (f = (l = p(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : f.includes("svg");
244
- }), c = m(n.width), r = m(n.height), { stop: u } = k(
245
- e,
246
- ([l]) => {
247
- const f = i === "border-box" ? l.borderBoxSize : i === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
248
- if (o && s.value) {
249
- const h = p(e);
250
- if (h) {
251
- const v = o.getComputedStyle(h);
252
- c.value = Number.parseFloat(v.width), r.value = Number.parseFloat(v.height);
253
- }
254
- } else if (f) {
255
- const h = Array.isArray(f) ? f : [f];
256
- c.value = h.reduce((v, { inlineSize: O }) => v + O, 0), r.value = h.reduce((v, { blockSize: O }) => v + O, 0);
257
- } else
258
- c.value = l.contentRect.width, r.value = l.contentRect.height;
259
- },
260
- t
261
- );
262
- A(() => {
263
- const l = p(e);
264
- l && (c.value = "offsetWidth" in l ? l.offsetWidth : n.width, r.value = "offsetHeight" in l ? l.offsetHeight : n.height);
265
- });
266
- const a = E(
267
- () => p(e),
268
- (l) => {
269
- c.value = l ? n.width : 0, r.value = l ? n.height : 0;
270
- }
271
- );
272
- function d() {
273
- u(), a();
274
- }
275
- return {
276
- width: c,
277
- height: r,
278
- stop: d
279
- };
280
- }
281
- function Z(e, n = {}) {
282
- const t = q(n), o = w(() => p(e));
283
- return { focused: w(() => o.value && t.value ? o.value.contains(t.value) : !1) };
284
- }
285
- function ee(e = {}) {
286
- const { window: n = b, behavior: t = "auto" } = e;
287
- if (!n)
288
- return {
289
- x: m(0),
290
- y: m(0)
291
- };
292
- const o = m(n.scrollX), i = m(n.scrollY), s = w({
293
- get() {
294
- return o.value;
295
- },
296
- set(r) {
297
- scrollTo({ left: r, behavior: t });
298
- }
299
- }), c = w({
300
- get() {
301
- return i.value;
302
- },
303
- set(r) {
304
- scrollTo({ top: r, behavior: t });
305
- }
306
- });
307
- return x(
308
- n,
309
- "scroll",
310
- () => {
311
- o.value = n.scrollX, i.value = n.scrollY;
312
- },
313
- {
314
- capture: !1,
315
- passive: !0
316
- }
317
- ), { x: s, y: c };
318
- }
319
- function te(e = {}) {
320
- const {
321
- window: n = b,
322
- initialWidth: t = Number.POSITIVE_INFINITY,
323
- initialHeight: o = Number.POSITIVE_INFINITY,
324
- listenOrientation: i = !0,
325
- includeScrollbar: s = !0
326
- } = e, c = m(t), r = m(o), u = () => {
327
- n && (s ? (c.value = n.innerWidth, r.value = n.innerHeight) : (c.value = n.document.documentElement.clientWidth, r.value = n.document.documentElement.clientHeight));
328
- };
329
- if (u(), A(u), x("resize", u, { passive: !0 }), i) {
330
- const a = g("(orientation: portrait)");
331
- E(a, () => u());
332
- }
333
- return { width: c, height: r };
334
- }
335
- export {
336
- K as a,
337
- ee as b,
338
- Z as c,
339
- g as d,
340
- J as e,
341
- te as u,
342
- U as w
343
- };
344
- //# sourceMappingURL=index.Cwtxz7pr.js.map