@adyen/bento-vue2 1.85.0 → 1.86.1

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 (309) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +358 -260
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +5 -0
  8. package/dist/anchor-scroller.js.map +1 -0
  9. package/dist/assets/accordion-item.css +1 -1
  10. package/dist/assets/action-bar.css +1 -1
  11. package/dist/assets/anchor-scroller.css +1 -0
  12. package/dist/assets/base-modal.css +1 -1
  13. package/dist/assets/button-actions.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/data-grid.css +1 -1
  16. package/dist/assets/date-picker.css +1 -1
  17. package/dist/assets/date-range-picker.css +1 -1
  18. package/dist/assets/dialog-page.css +1 -1
  19. package/dist/assets/dropdown-default-textbox.css +1 -1
  20. package/dist/assets/dropdown.css +1 -1
  21. package/dist/assets/error-message.css +1 -0
  22. package/dist/assets/file-uploader.css +1 -1
  23. package/dist/assets/fixed-scroller.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/modal-fullscreen.css +1 -1
  26. package/dist/assets/secondary-nav.css +1 -1
  27. package/dist/assets/sidepanel.css +1 -1
  28. package/dist/assets/use-cached-selected-values.css +1 -1
  29. package/dist/avatar.js +1 -1
  30. package/dist/button.js +3 -3
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +6 -6
  33. package/dist/chip.js +1 -1
  34. package/dist/chunks/{accordion-item.DeV8s0oW.js → accordion-item.Cv6kG2N3.js} +2 -2
  35. package/dist/chunks/{accordion-item.DeV8s0oW.js.map → accordion-item.Cv6kG2N3.js.map} +1 -1
  36. package/dist/chunks/{action-bar.rgLdy6Bu.js → action-bar.Dnkt4yn7.js} +9 -9
  37. package/dist/chunks/{action-bar.rgLdy6Bu.js.map → action-bar.Dnkt4yn7.js.map} +1 -1
  38. package/dist/chunks/{ai-button.ggEcDV08.js → ai-button.BTi18ipD.js} +3 -3
  39. package/dist/chunks/{ai-button.ggEcDV08.js.map → ai-button.BTi18ipD.js.map} +1 -1
  40. package/dist/chunks/{ai-tag.DKMGiQcJ.js → ai-tag.s8TECgn_.js} +27 -19
  41. package/dist/chunks/{ai-tag.DKMGiQcJ.js.map → ai-tag.s8TECgn_.js.map} +1 -1
  42. package/dist/chunks/{alert.B3Pdp02a.js → alert.BESCd8iS.js} +5 -5
  43. package/dist/chunks/{alert.B3Pdp02a.js.map → alert.BESCd8iS.js.map} +1 -1
  44. package/dist/chunks/anchor-scroller.3_idPubO.js +178 -0
  45. package/dist/chunks/anchor-scroller.3_idPubO.js.map +1 -0
  46. package/dist/chunks/{avatar.CUCH3CTc.js → avatar.rwWPYJnt.js} +2 -2
  47. package/dist/chunks/{avatar.CUCH3CTc.js.map → avatar.rwWPYJnt.js.map} +1 -1
  48. package/dist/chunks/{base-button.IN4bpcds.js → base-button.BPRPrO0p.js} +2 -2
  49. package/dist/chunks/{base-button.IN4bpcds.js.map → base-button.BPRPrO0p.js.map} +1 -1
  50. package/dist/chunks/{base-modal.QsjzGei_.js → base-modal.09nAcnF_.js} +41 -41
  51. package/dist/chunks/{base-modal.QsjzGei_.js.map → base-modal.09nAcnF_.js.map} +1 -1
  52. package/dist/chunks/{button-actions-with-menu.PL45aAcI.js → button-actions-with-menu.C8tSTxrm.js} +3 -3
  53. package/dist/chunks/{button-actions-with-menu.PL45aAcI.js.map → button-actions-with-menu.C8tSTxrm.js.map} +1 -1
  54. package/dist/chunks/{button-actions.JRDi9PFT.js → button-actions.VSc47LLH.js} +8 -8
  55. package/dist/chunks/{button-actions.JRDi9PFT.js.map → button-actions.VSc47LLH.js.map} +1 -1
  56. package/dist/chunks/{button.DIU6m9wD.js → button.Ctj3rkxw.js} +5 -5
  57. package/dist/chunks/{button.DIU6m9wD.js.map → button.Ctj3rkxw.js.map} +1 -1
  58. package/dist/chunks/{calendar.B0SmuooF.js → calendar.DiXkjQDP.js} +8 -8
  59. package/dist/chunks/{calendar.B0SmuooF.js.map → calendar.DiXkjQDP.js.map} +1 -1
  60. package/dist/chunks/{card.CVkEg8m1.js → card.BdjdBN36.js} +3 -3
  61. package/dist/chunks/{card.CVkEg8m1.js.map → card.BdjdBN36.js.map} +1 -1
  62. package/dist/chunks/{checkbox-group.DPZJjcdT.js → checkbox-group.BOZpz83Y.js} +5 -5
  63. package/dist/chunks/{checkbox-group.DPZJjcdT.js.map → checkbox-group.BOZpz83Y.js.map} +1 -1
  64. package/dist/chunks/{checkbox.D3D1I22O.js → checkbox.DoeTl4xh.js} +19 -19
  65. package/dist/chunks/{checkbox.D3D1I22O.js.map → checkbox.DoeTl4xh.js.map} +1 -1
  66. package/dist/chunks/{chip.C6DRfdJ8.js → chip.D_XQ8ReC.js} +3 -3
  67. package/dist/chunks/{chip.C6DRfdJ8.js.map → chip.D_XQ8ReC.js.map} +1 -1
  68. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  69. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  70. package/dist/chunks/{code-snippet.BN5P-KQo.js → code-snippet.DBNJgt1j.js} +11 -11
  71. package/dist/chunks/{code-snippet.BN5P-KQo.js.map → code-snippet.DBNJgt1j.js.map} +1 -1
  72. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  73. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  74. package/dist/chunks/{controls-group.BwXz0UYr.js → controls-group.HUWlAOhG.js} +3 -3
  75. package/dist/chunks/{controls-group.BwXz0UYr.js.map → controls-group.HUWlAOhG.js.map} +1 -1
  76. package/dist/chunks/{copy.BIh04KTY.js → copy.BXykYfg0.js} +7 -7
  77. package/dist/chunks/{copy.BIh04KTY.js.map → copy.BXykYfg0.js.map} +1 -1
  78. package/dist/chunks/{country.DyrDj95W.js → country.BywHth0L.js} +3 -3
  79. package/dist/chunks/{country.DyrDj95W.js.map → country.BywHth0L.js.map} +1 -1
  80. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  81. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  82. package/dist/chunks/{currency.DYZr_RDk.js → currency.Ciyxfmg1.js} +2 -2
  83. package/dist/chunks/{currency.DYZr_RDk.js.map → currency.Ciyxfmg1.js.map} +1 -1
  84. package/dist/chunks/{dashboard-section.BvFMd9CQ.js → dashboard-section.Cw2Ima3U.js} +6 -6
  85. package/dist/chunks/{dashboard-section.BvFMd9CQ.js.map → dashboard-section.Cw2Ima3U.js.map} +1 -1
  86. package/dist/chunks/{dashed-underline.CXyMT-cF.js → dashed-underline.Dfw7cJ-9.js} +9 -9
  87. package/dist/chunks/{dashed-underline.CXyMT-cF.js.map → dashed-underline.Dfw7cJ-9.js.map} +1 -1
  88. package/dist/chunks/{data-grid-template.wWWI3FE3.js → data-grid-template.6LR2Jqka.js} +4 -4
  89. package/dist/chunks/{data-grid-template.wWWI3FE3.js.map → data-grid-template.6LR2Jqka.js.map} +1 -1
  90. package/dist/chunks/{data-grid.Dcj_tU8q.js → data-grid.7trhuJ5D.js} +178 -178
  91. package/dist/chunks/data-grid.7trhuJ5D.js.map +1 -0
  92. package/dist/chunks/date-input.etw_pFpA.js +20 -0
  93. package/dist/chunks/date-input.etw_pFpA.js.map +1 -0
  94. package/dist/chunks/{date-picker.Dh3-TgPT.js → date-picker.CITeN8WH.js} +56 -56
  95. package/dist/chunks/date-picker.CITeN8WH.js.map +1 -0
  96. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  97. package/dist/chunks/{date-range-picker.BOn_Xjkr.js → date-range-picker.BhBpy-oH.js} +305 -325
  98. package/dist/chunks/{date-range-picker.BOn_Xjkr.js.map → date-range-picker.BhBpy-oH.js.map} +1 -1
  99. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  100. package/dist/chunks/{date.DBWzp0So.js → date.B0m0sFP6.js} +2 -2
  101. package/dist/chunks/{date.DBWzp0So.js.map → date.B0m0sFP6.js.map} +1 -1
  102. package/dist/chunks/dialog-page.DA6E6qma.js +122 -0
  103. package/dist/chunks/dialog-page.DA6E6qma.js.map +1 -0
  104. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  105. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  106. package/dist/chunks/{dropdown-default-textbox.Cq68tN9F.js → dropdown-default-textbox.5WjhJWdh.js} +71 -80
  107. package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +1 -0
  108. package/dist/chunks/{dropdown-tag.C7Buz72U.js → dropdown-tag.BnMuMIDk.js} +8 -8
  109. package/dist/chunks/{dropdown-tag.C7Buz72U.js.map → dropdown-tag.BnMuMIDk.js.map} +1 -1
  110. package/dist/chunks/{dropdown.ByH2zHxF.js → dropdown.DDPfKc74.js} +227 -225
  111. package/dist/chunks/dropdown.DDPfKc74.js.map +1 -0
  112. package/dist/chunks/{empty-state.DpBnqAxu.js → empty-state.IiG1LXa2.js} +6 -6
  113. package/dist/chunks/{empty-state.DpBnqAxu.js.map → empty-state.IiG1LXa2.js.map} +1 -1
  114. package/dist/chunks/{field-label.BKxm8ehO.js → error-message.VenUl2OK.js} +54 -54
  115. package/dist/chunks/error-message.VenUl2OK.js.map +1 -0
  116. package/dist/chunks/{file-uploader.U7YUrGoM.js → file-uploader.BU1V40qK.js} +9 -9
  117. package/dist/chunks/{file-uploader.U7YUrGoM.js.map → file-uploader.BU1V40qK.js.map} +1 -1
  118. package/dist/chunks/{filter-bar.BRE0djRy.js → filter-bar.BUVhS3jE.js} +106 -98
  119. package/dist/chunks/{filter-bar.BRE0djRy.js.map → filter-bar.BUVhS3jE.js.map} +1 -1
  120. package/dist/chunks/fixed-scroller.BueAsyGk.js +120 -0
  121. package/dist/chunks/{fixed-scroller.Bp4-iO80.js.map → fixed-scroller.BueAsyGk.js.map} +1 -1
  122. package/dist/chunks/{focus-trap.Ed8RY9cJ.js → focus-trap.DMc1wL3A.js} +312 -295
  123. package/dist/chunks/focus-trap.DMc1wL3A.js.map +1 -0
  124. package/dist/chunks/{footer-actions.mS3IiJg7.js → footer-actions.z-api8J_.js} +4 -4
  125. package/dist/chunks/{footer-actions.mS3IiJg7.js.map → footer-actions.z-api8J_.js.map} +1 -1
  126. package/dist/chunks/{form-layout-title.C3uKS3GA.js → form-layout-title.Bbq05nMT.js} +5 -5
  127. package/dist/chunks/{form-layout-title.C3uKS3GA.js.map → form-layout-title.Bbq05nMT.js.map} +1 -1
  128. package/dist/chunks/{header-meta.CQTfyEJR.js → header-meta.CuMQSsOm.js} +9 -9
  129. package/dist/chunks/{header-meta.CQTfyEJR.js.map → header-meta.CuMQSsOm.js.map} +1 -1
  130. package/dist/chunks/{header-with-views.-PRI2W3p.js → header-with-views.BcyAUerg.js} +13 -13
  131. package/dist/chunks/{header-with-views.-PRI2W3p.js.map → header-with-views.BcyAUerg.js.map} +1 -1
  132. package/dist/chunks/{header.DDwoZ8fF.js → header.YECm2GAh.js} +4 -4
  133. package/dist/chunks/{header.DDwoZ8fF.js.map → header.YECm2GAh.js.map} +1 -1
  134. package/dist/chunks/index.BkJqgYF1.js +692 -0
  135. package/dist/chunks/{index.Zfd79j1_.js.map → index.BkJqgYF1.js.map} +1 -1
  136. package/dist/chunks/{info-icon.gUcRjEyG.js → info-icon.DS9ax8ZD.js} +3 -3
  137. package/dist/chunks/{info-icon.gUcRjEyG.js.map → info-icon.DS9ax8ZD.js.map} +1 -1
  138. package/dist/chunks/{input-field-password.BO3EMjVD.js → input-field-password.DrI6eF5u.js} +11 -11
  139. package/dist/chunks/{input-field-password.BO3EMjVD.js.map → input-field-password.DrI6eF5u.js.map} +1 -1
  140. package/dist/chunks/{input-field-phone-number.DDQIkRdm.js → input-field-phone-number.Buh4x3pJ.js} +4 -4
  141. package/dist/chunks/{input-field-phone-number.DDQIkRdm.js.map → input-field-phone-number.Buh4x3pJ.js.map} +1 -1
  142. package/dist/chunks/{input-field.BRIDLPBn.js → input-field.NEKXqT4R.js} +7 -7
  143. package/dist/chunks/{input-field.BRIDLPBn.js.map → input-field.NEKXqT4R.js.map} +1 -1
  144. package/dist/chunks/{inspector.DCda4tku.js → inspector.BomNgVb-.js} +5 -5
  145. package/dist/chunks/{inspector.DCda4tku.js.map → inspector.BomNgVb-.js.map} +1 -1
  146. package/dist/chunks/{isSameWeek.5sjhTHiU.js → isSameWeek.DjeUtLwI.js} +2 -2
  147. package/dist/chunks/{isSameWeek.5sjhTHiU.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  148. package/dist/chunks/{it.DEniTaO2.js → it.DIafuXtH.js} +2 -2
  149. package/dist/chunks/{it.DEniTaO2.js.map → it.DIafuXtH.js.map} +1 -1
  150. package/dist/chunks/{layout-row.BtCzzLTz.js → layout-row.BxuMJU4E.js} +3 -3
  151. package/dist/chunks/{layout-row.BtCzzLTz.js.map → layout-row.BxuMJU4E.js.map} +1 -1
  152. package/dist/chunks/{link.PsTSQjK3.js → link.DKimL08z.js} +2 -2
  153. package/dist/chunks/{link.PsTSQjK3.js.map → link.DKimL08z.js.map} +1 -1
  154. package/dist/chunks/{listbox-option-tag.B63aT5Sq.js → listbox-option-tag.Cv3y0TvQ.js} +3 -3
  155. package/dist/chunks/{listbox-option-tag.B63aT5Sq.js.map → listbox-option-tag.Cv3y0TvQ.js.map} +1 -1
  156. package/dist/chunks/{modal-fullscreen.CRLZX72M.js → modal-fullscreen.6bAjPENL.js} +73 -69
  157. package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +1 -0
  158. package/dist/chunks/{modal.BnAZ8Nj1.js → modal.DOR8c0gy.js} +6 -6
  159. package/dist/chunks/{modal.BnAZ8Nj1.js.map → modal.DOR8c0gy.js.map} +1 -1
  160. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  161. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  162. package/dist/chunks/{pagination.spAA5CX0.js → pagination.wuEIlDcq.js} +4 -4
  163. package/dist/chunks/{pagination.spAA5CX0.js.map → pagination.wuEIlDcq.js.map} +1 -1
  164. package/dist/chunks/{payment-method.BKXLPDC9.js → payment-method.B3CkgsAY.js} +2 -2
  165. package/dist/chunks/{payment-method.BKXLPDC9.js.map → payment-method.B3CkgsAY.js.map} +1 -1
  166. package/dist/chunks/popover.types.DkiRUQ4Z.js +6 -0
  167. package/dist/chunks/{popover.types.Zm8nugBw.js.map → popover.types.DkiRUQ4Z.js.map} +1 -1
  168. package/dist/chunks/popper-container.D4dworD4.js +1423 -0
  169. package/dist/chunks/popper-container.D4dworD4.js.map +1 -0
  170. package/dist/chunks/{promo-banner.BkLMZH66.js → promo-banner.bjMDm76T.js} +4 -4
  171. package/dist/chunks/{promo-banner.BkLMZH66.js.map → promo-banner.bjMDm76T.js.map} +1 -1
  172. package/dist/chunks/{radio-group.B6-Fd_kH.js → radio-group.DKRxfGtE.js} +8 -8
  173. package/dist/chunks/{radio-group.B6-Fd_kH.js.map → radio-group.DKRxfGtE.js.map} +1 -1
  174. package/dist/chunks/{rich-text-editor.DeywBxSb.js → rich-text-editor.RHbCDQhe.js} +9 -13
  175. package/dist/chunks/rich-text-editor.RHbCDQhe.js.map +1 -0
  176. package/dist/chunks/{search-bar.BKRppqyI.js → search-bar.UVSaoX0h.js} +5 -5
  177. package/dist/chunks/{search-bar.BKRppqyI.js.map → search-bar.UVSaoX0h.js.map} +1 -1
  178. package/dist/chunks/{secondary-nav.RQ5eRpPH.js → secondary-nav.C6ldQMZ2.js} +18 -18
  179. package/dist/chunks/secondary-nav.C6ldQMZ2.js.map +1 -0
  180. package/dist/chunks/{segmented-control.BomURsCq.js → segmented-control.BLnuxgnJ.js} +3 -3
  181. package/dist/chunks/{segmented-control.BomURsCq.js.map → segmented-control.BLnuxgnJ.js.map} +1 -1
  182. package/dist/chunks/{selection-card-group.gh-fMA9T.js → selection-card-group.DdvpTgg4.js} +12 -12
  183. package/dist/chunks/{selection-card-group.gh-fMA9T.js.map → selection-card-group.DdvpTgg4.js.map} +1 -1
  184. package/dist/chunks/{sidepanel.B80Mujpk.js → sidepanel.BKE87Uef.js} +71 -67
  185. package/dist/chunks/sidepanel.BKE87Uef.js.map +1 -0
  186. package/dist/chunks/{startOfWeek.CM1KIrNi.js → startOfWeek.D8Yh4c0G.js} +3 -3
  187. package/dist/chunks/{startOfWeek.CM1KIrNi.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  188. package/dist/chunks/{status.types.Cv5XN4zL.js → status.types.BTsaLHQ6.js} +2 -2
  189. package/dist/chunks/{status.types.Cv5XN4zL.js.map → status.types.BTsaLHQ6.js.map} +1 -1
  190. package/dist/chunks/{step.BLFXvHL6.js → step.BEbWkprZ.js} +5 -5
  191. package/dist/chunks/{step.BLFXvHL6.js.map → step.BEbWkprZ.js.map} +1 -1
  192. package/dist/chunks/{structured-list-item.DCEKBtbT.js → structured-list-item.DRFRap_S.js} +6 -6
  193. package/dist/chunks/{structured-list-item.DCEKBtbT.js.map → structured-list-item.DRFRap_S.js.map} +1 -1
  194. package/dist/chunks/{summary-grid.types.BV8FDXGv.js → summary-grid.types.OldkhD7S.js} +10 -10
  195. package/dist/chunks/{summary-grid.types.BV8FDXGv.js.map → summary-grid.types.OldkhD7S.js.map} +1 -1
  196. package/dist/chunks/{tab.FUMpPsBP.js → tab.BqSNoefU.js} +5 -5
  197. package/dist/chunks/{tab.FUMpPsBP.js.map → tab.BqSNoefU.js.map} +1 -1
  198. package/dist/chunks/{tag.CroNYKsL.js → tag.Cy3XkSDQ.js} +3 -3
  199. package/dist/chunks/{tag.CroNYKsL.js.map → tag.Cy3XkSDQ.js.map} +1 -1
  200. package/dist/chunks/{textarea.CtTdhV_G.js → textarea.Bm9MZb_W.js} +4 -4
  201. package/dist/chunks/{textarea.CtTdhV_G.js.map → textarea.Bm9MZb_W.js.map} +1 -1
  202. package/dist/chunks/{timeline-item.DCWllef8.js → timeline-item.Cpbm8IUw.js} +15 -15
  203. package/dist/chunks/{timeline-item.DCWllef8.js.map → timeline-item.Cpbm8IUw.js.map} +1 -1
  204. package/dist/chunks/{toast.Csv6tMyT.js → toast.Wuy6VuOT.js} +4 -4
  205. package/dist/chunks/{toast.Csv6tMyT.js.map → toast.Wuy6VuOT.js.map} +1 -1
  206. package/dist/chunks/{toggle.227XgEc7.js → toggle.B1z1YPe_.js} +4 -4
  207. package/dist/chunks/{toggle.227XgEc7.js.map → toggle.B1z1YPe_.js.map} +1 -1
  208. package/dist/chunks/{tooltip.DxJQHsuI.js → tooltip.DF11J3k3.js} +50 -50
  209. package/dist/chunks/{tooltip.DxJQHsuI.js.map → tooltip.DF11J3k3.js.map} +1 -1
  210. package/dist/chunks/{tutorial.O_vT6Q2b.js → tutorial.D5xtZ1Pt.js} +5 -5
  211. package/dist/chunks/{tutorial.O_vT6Q2b.js.map → tutorial.D5xtZ1Pt.js.map} +1 -1
  212. package/dist/chunks/{typography.Bq-EGj9y.js → typography.C8lPlsbD.js} +3 -3
  213. package/dist/chunks/{typography.Bq-EGj9y.js.map → typography.C8lPlsbD.js.map} +1 -1
  214. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js → use-bento-toast-controller.CB6Qbf3R.js} +2 -2
  215. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js.map → use-bento-toast-controller.CB6Qbf3R.js.map} +1 -1
  216. package/dist/chunks/{use-cached-selected-values.3YqO69wz.js → use-cached-selected-values.wn2xnwYG.js} +12 -12
  217. package/dist/chunks/use-cached-selected-values.wn2xnwYG.js.map +1 -0
  218. package/dist/chunks/{use-country-items.ClS_So5N.js → use-country-items.CQnldpqM.js} +11 -11
  219. package/dist/chunks/{use-country-items.ClS_So5N.js.map → use-country-items.CQnldpqM.js.map} +1 -1
  220. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  221. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  222. package/dist/chunks/{zh-CN.CgIooHto.js → zh-CN.Bw_6j9Cd.js} +2 -2
  223. package/dist/chunks/{zh-CN.CgIooHto.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  224. package/dist/click-outside.js +1 -1
  225. package/dist/code-snippet.js +1 -1
  226. package/dist/country.js +2 -2
  227. package/dist/currency.js +1 -1
  228. package/dist/dashboard-template.js +1 -1
  229. package/dist/dashed-underline.js +1 -1
  230. package/dist/data-grid-template.js +1 -1
  231. package/dist/data-grid.js +1 -1
  232. package/dist/date-picker.js +2 -2
  233. package/dist/date-range-picker.js +2 -2
  234. package/dist/date.js +1 -1
  235. package/dist/draggable-handle.js +47 -31
  236. package/dist/draggable-handle.js.map +1 -1
  237. package/dist/dropdown.js +11 -11
  238. package/dist/empty-state.js +1 -1
  239. package/dist/file-uploader.js +1 -1
  240. package/dist/filter-bar.js +1 -1
  241. package/dist/focus-trap.js +1 -1
  242. package/dist/form-layout.js +1 -1
  243. package/dist/header-with-views.js +1 -1
  244. package/dist/header.js +1 -1
  245. package/dist/index.js +281 -279
  246. package/dist/index.js.map +1 -1
  247. package/dist/info-icon.js +1 -1
  248. package/dist/input-field-password.js +1 -1
  249. package/dist/input-field-phone-number.js +1 -1
  250. package/dist/input-field.js +1 -1
  251. package/dist/inspector.js +1 -1
  252. package/dist/internal.js +42 -42
  253. package/dist/layout.js +1 -1
  254. package/dist/link.js +1 -1
  255. package/dist/menu.js +1 -1
  256. package/dist/modal-fullscreen.js +1 -1
  257. package/dist/modal.js +2 -2
  258. package/dist/pagination.js +1 -1
  259. package/dist/payment-method.js +1 -1
  260. package/dist/popover.js +2 -2
  261. package/dist/popper-container.js +1 -1
  262. package/dist/promo-banner.js +1 -1
  263. package/dist/radio-group.js +1 -1
  264. package/dist/rich-text-editor.js +1 -1
  265. package/dist/search-bar.js +2 -2
  266. package/dist/secondary-nav.js +1 -1
  267. package/dist/segmented-control.js +1 -1
  268. package/dist/selection-card.js +1 -1
  269. package/dist/sidepanel.js +1 -1
  270. package/dist/status.js +1 -1
  271. package/dist/stepper.js +1 -1
  272. package/dist/structured-list.js +1 -1
  273. package/dist/summary-grid.js +1 -1
  274. package/dist/tabs.js +1 -1
  275. package/dist/tag.js +1 -1
  276. package/dist/textarea.js +1 -1
  277. package/dist/timeline.js +1 -1
  278. package/dist/toast.js +1 -1
  279. package/dist/toggle.js +1 -1
  280. package/dist/tutorial.js +1 -1
  281. package/dist/typography.js +1 -1
  282. package/dist/use-form-v4.js +756 -7787
  283. package/dist/use-form-v4.js.map +1 -1
  284. package/dist/web-types.json +128 -30
  285. package/package.json +7 -7
  286. package/dist/assets/field-label.css +0 -1
  287. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  288. package/dist/chunks/data-grid.Dcj_tU8q.js.map +0 -1
  289. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  290. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  291. package/dist/chunks/date-picker.Dh3-TgPT.js.map +0 -1
  292. package/dist/chunks/dialog-page.BegXhP0L.js +0 -118
  293. package/dist/chunks/dialog-page.BegXhP0L.js.map +0 -1
  294. package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +0 -1
  295. package/dist/chunks/dropdown.ByH2zHxF.js.map +0 -1
  296. package/dist/chunks/field-label.BKxm8ehO.js.map +0 -1
  297. package/dist/chunks/fixed-scroller.Bp4-iO80.js +0 -114
  298. package/dist/chunks/focus-trap.Ed8RY9cJ.js.map +0 -1
  299. package/dist/chunks/index.Zfd79j1_.js +0 -593
  300. package/dist/chunks/modal-fullscreen.CRLZX72M.js.map +0 -1
  301. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  302. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  303. package/dist/chunks/popover.types.Zm8nugBw.js +0 -6
  304. package/dist/chunks/popper-container.CXUG6v_U.js +0 -1404
  305. package/dist/chunks/popper-container.CXUG6v_U.js.map +0 -1
  306. package/dist/chunks/rich-text-editor.DeywBxSb.js.map +0 -1
  307. package/dist/chunks/secondary-nav.RQ5eRpPH.js.map +0 -1
  308. package/dist/chunks/sidepanel.B80Mujpk.js.map +0 -1
  309. package/dist/chunks/use-cached-selected-values.3YqO69wz.js.map +0 -1
@@ -1,593 +0,0 @@
1
- import "./index.Cl4_42j5.js";
2
- import { onMounted as k, nextTick as Z, watch as R, unref as ee, getCurrentScope as te, onScopeDispose as ne, getCurrentInstance as q, isRef as oe, ref as w, computed as E, reactive as U, watchEffect as re } from "vue";
3
- function C(e) {
4
- return te() ? (ne(e), !0) : !1;
5
- }
6
- function p(e) {
7
- return typeof e == "function" ? e() : ee(e);
8
- }
9
- const ie = typeof window < "u" && typeof document < "u";
10
- typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
11
- const K = (e) => e != null, se = Object.prototype.toString, le = (e) => se.call(e) === "[object Object]", _ = () => {
12
- };
13
- function V(e, t) {
14
- function n(...r) {
15
- return new Promise((l, s) => {
16
- Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(l).catch(s);
17
- });
18
- }
19
- return n;
20
- }
21
- const ue = (e) => e();
22
- function Q(e, t = {}) {
23
- let n, r, l = _;
24
- const s = (u) => {
25
- clearTimeout(u), l(), l = _;
26
- };
27
- return (u) => {
28
- const d = p(e), a = p(t.maxWait);
29
- return n && s(n), d <= 0 || a !== void 0 && a <= 0 ? (r && (s(r), r = null), Promise.resolve(u())) : new Promise((o, i) => {
30
- l = t.rejectOnCancel ? i : o, a && !r && (r = setTimeout(() => {
31
- n && s(n), r = null, o(u());
32
- }, a)), n = setTimeout(() => {
33
- r && s(r), r = null, o(u());
34
- }, d);
35
- });
36
- };
37
- }
38
- function ce(...e) {
39
- let t = 0, n, r = !0, l = _, s, c, u, d, a;
40
- !oe(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: u = !0, leading: d = !0, rejectOnCancel: a = !1 } = e[0] : [c, u = !0, d = !0, a = !1] = e;
41
- const o = () => {
42
- n && (clearTimeout(n), n = void 0, l(), l = _);
43
- };
44
- return (f) => {
45
- const m = p(c), h = Date.now() - t, S = () => s = f();
46
- return o(), m <= 0 ? (t = Date.now(), S()) : (h > m && (d || !r) ? (t = Date.now(), S()) : u && (s = new Promise((x, b) => {
47
- l = a ? b : x, n = setTimeout(() => {
48
- t = Date.now(), r = !0, x(S()), o();
49
- }, Math.max(0, m - h));
50
- })), !d && !n && (n = setTimeout(() => r = !0, m)), r = !1, s);
51
- };
52
- }
53
- function ae(e, t) {
54
- var n;
55
- if (typeof e == "number")
56
- return e + t;
57
- const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", l = e.slice(r.length), s = Number.parseFloat(r) + t;
58
- return Number.isNaN(s) ? e : s + l;
59
- }
60
- function fe(e) {
61
- return q();
62
- }
63
- function de(e, t = 200, n = {}) {
64
- return V(
65
- Q(t, n),
66
- e
67
- );
68
- }
69
- function ve(e, t = 200, n = !1, r = !0, l = !1) {
70
- return V(
71
- ce(t, n, r, l),
72
- e
73
- );
74
- }
75
- function me(e, t, n = {}) {
76
- const {
77
- eventFilter: r = ue,
78
- ...l
79
- } = n;
80
- return R(
81
- e,
82
- V(
83
- r,
84
- t
85
- ),
86
- l
87
- );
88
- }
89
- function F(e, t = !0, n) {
90
- fe() ? k(e, n) : t ? e() : Z(e);
91
- }
92
- function xe(e, t, n = {}) {
93
- const {
94
- debounce: r = 0,
95
- maxWait: l = void 0,
96
- ...s
97
- } = n;
98
- return me(
99
- e,
100
- t,
101
- {
102
- ...s,
103
- eventFilter: Q(r, { maxWait: l })
104
- }
105
- );
106
- }
107
- const g = ie ? window : void 0;
108
- function y(e) {
109
- var t;
110
- const n = p(e);
111
- return (t = n == null ? void 0 : n.$el) != null ? t : n;
112
- }
113
- function W(...e) {
114
- let t, n, r, l;
115
- if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, l] = e, t = g) : [t, n, r, l] = e, !t)
116
- return _;
117
- Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
118
- const s = [], c = () => {
119
- s.forEach((o) => o()), s.length = 0;
120
- }, u = (o, i, f, m) => (o.addEventListener(i, f, m), () => o.removeEventListener(i, f, m)), d = R(
121
- () => [y(t), p(l)],
122
- ([o, i]) => {
123
- if (c(), !o)
124
- return;
125
- const f = le(i) ? { ...i } : i;
126
- s.push(
127
- ...n.flatMap((m) => r.map((h) => u(o, m, h, f)))
128
- );
129
- },
130
- { immediate: !0, flush: "post" }
131
- ), a = () => {
132
- d(), c();
133
- };
134
- return C(a), a;
135
- }
136
- function he(e) {
137
- return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
138
- }
139
- function _e(...e) {
140
- let t, n, r = {};
141
- e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
142
- const {
143
- target: l = g,
144
- eventName: s = "keydown",
145
- passive: c = !1,
146
- dedupe: u = !1
147
- } = r, d = he(t);
148
- return W(l, s, (o) => {
149
- o.repeat && p(u) || d(o) && n(o);
150
- }, c);
151
- }
152
- function pe() {
153
- const e = w(!1);
154
- return q() && k(() => {
155
- e.value = !0;
156
- }, void 0), e;
157
- }
158
- function H(e) {
159
- const t = pe();
160
- return E(() => (t.value, !!e()));
161
- }
162
- function we(e, t, n = {}) {
163
- const { window: r = g, ...l } = n;
164
- let s;
165
- const c = H(() => r && "MutationObserver" in r), u = () => {
166
- s && (s.disconnect(), s = void 0);
167
- }, d = E(() => {
168
- const f = p(e), m = (Array.isArray(f) ? f : [f]).map(y).filter(K);
169
- return new Set(m);
170
- }), a = R(
171
- () => d.value,
172
- (f) => {
173
- u(), c.value && f.size && (s = new MutationObserver(t), f.forEach((m) => s.observe(m, l)));
174
- },
175
- { immediate: !0, flush: "post" }
176
- ), o = () => s == null ? void 0 : s.takeRecords(), i = () => {
177
- a(), u();
178
- };
179
- return C(i), {
180
- isSupported: c,
181
- stop: i,
182
- takeRecords: o
183
- };
184
- }
185
- function be(e = {}) {
186
- var t;
187
- const {
188
- window: n = g,
189
- deep: r = !0,
190
- triggerOnRemoval: l = !1
191
- } = e, s = (t = e.document) != null ? t : n == null ? void 0 : n.document, c = () => {
192
- var a;
193
- let o = s == null ? void 0 : s.activeElement;
194
- if (r)
195
- for (; o != null && o.shadowRoot; )
196
- o = (a = o == null ? void 0 : o.shadowRoot) == null ? void 0 : a.activeElement;
197
- return o;
198
- }, u = w(), d = () => {
199
- u.value = c();
200
- };
201
- return n && (W(n, "blur", (a) => {
202
- a.relatedTarget === null && d();
203
- }, !0), W(n, "focus", d, !0)), l && we(s, (a) => {
204
- a.filter((o) => o.removedNodes.length).map((o) => Array.from(o.removedNodes)).flat().forEach((o) => {
205
- o === u.value && d();
206
- });
207
- }, {
208
- childList: !0,
209
- subtree: !0
210
- }), d(), u;
211
- }
212
- function N(e, t = {}) {
213
- const { window: n = g } = t, r = H(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
214
- let l;
215
- const s = w(!1), c = (a) => {
216
- s.value = a.matches;
217
- }, u = () => {
218
- l && ("removeEventListener" in l ? l.removeEventListener("change", c) : l.removeListener(c));
219
- }, d = re(() => {
220
- r.value && (u(), l = n.matchMedia(p(e)), "addEventListener" in l ? l.addEventListener("change", c) : l.addListener(c), s.value = l.matches);
221
- });
222
- return C(() => {
223
- d(), u(), l = void 0;
224
- }), s;
225
- }
226
- function Ae(e, t = {}) {
227
- function n(o, i) {
228
- let f = p(e[p(o)]);
229
- return i != null && (f = ae(f, i)), typeof f == "number" && (f = `${f}px`), f;
230
- }
231
- const { window: r = g, strategy: l = "min-width" } = t;
232
- function s(o) {
233
- return r ? r.matchMedia(o).matches : !1;
234
- }
235
- const c = (o) => N(() => `(min-width: ${n(o)})`, t), u = (o) => N(() => `(max-width: ${n(o)})`, t), d = Object.keys(e).reduce((o, i) => (Object.defineProperty(o, i, {
236
- get: () => l === "min-width" ? c(i) : u(i),
237
- enumerable: !0,
238
- configurable: !0
239
- }), o), {});
240
- function a() {
241
- const o = Object.keys(e).map((i) => [i, c(i)]);
242
- return E(() => o.filter(([, i]) => i.value).map(([i]) => i));
243
- }
244
- return Object.assign(d, {
245
- greaterOrEqual: c,
246
- smallerOrEqual: u,
247
- greater(o) {
248
- return N(() => `(min-width: ${n(o, 0.1)})`, t);
249
- },
250
- smaller(o) {
251
- return N(() => `(max-width: ${n(o, -0.1)})`, t);
252
- },
253
- between(o, i) {
254
- return N(() => `(min-width: ${n(o)}) and (max-width: ${n(i, -0.1)})`, t);
255
- },
256
- isGreater(o) {
257
- return s(`(min-width: ${n(o, 0.1)})`);
258
- },
259
- isGreaterOrEqual(o) {
260
- return s(`(min-width: ${n(o)})`);
261
- },
262
- isSmaller(o) {
263
- return s(`(max-width: ${n(o, -0.1)})`);
264
- },
265
- isSmallerOrEqual(o) {
266
- return s(`(max-width: ${n(o)})`);
267
- },
268
- isInBetween(o, i) {
269
- return s(`(min-width: ${n(o)}) and (max-width: ${n(i, -0.1)})`);
270
- },
271
- current: a,
272
- active() {
273
- const o = a();
274
- return E(() => o.value.length === 0 ? "" : o.value.at(-1));
275
- }
276
- });
277
- }
278
- function ge(e, t, n = {}) {
279
- const { window: r = g, ...l } = n;
280
- let s;
281
- const c = H(() => r && "ResizeObserver" in r), u = () => {
282
- s && (s.disconnect(), s = void 0);
283
- }, d = E(() => {
284
- const i = p(e);
285
- return Array.isArray(i) ? i.map((f) => y(f)) : [y(i)];
286
- }), a = R(
287
- d,
288
- (i) => {
289
- if (u(), c.value && r) {
290
- s = new ResizeObserver(t);
291
- for (const f of i)
292
- f && s.observe(f, l);
293
- }
294
- },
295
- { immediate: !0, flush: "post" }
296
- ), o = () => {
297
- u(), a();
298
- };
299
- return C(o), {
300
- isSupported: c,
301
- stop: o
302
- };
303
- }
304
- function We(e, t = { width: 0, height: 0 }, n = {}) {
305
- const { window: r = g, box: l = "content-box" } = n, s = E(() => {
306
- var i, f;
307
- return (f = (i = y(e)) == null ? void 0 : i.namespaceURI) == null ? void 0 : f.includes("svg");
308
- }), c = w(t.width), u = w(t.height), { stop: d } = ge(
309
- e,
310
- ([i]) => {
311
- const f = l === "border-box" ? i.borderBoxSize : l === "content-box" ? i.contentBoxSize : i.devicePixelContentBoxSize;
312
- if (r && s.value) {
313
- const m = y(e);
314
- if (m) {
315
- const h = m.getBoundingClientRect();
316
- c.value = h.width, u.value = h.height;
317
- }
318
- } else if (f) {
319
- const m = Array.isArray(f) ? f : [f];
320
- c.value = m.reduce((h, { inlineSize: S }) => h + S, 0), u.value = m.reduce((h, { blockSize: S }) => h + S, 0);
321
- } else
322
- c.value = i.contentRect.width, u.value = i.contentRect.height;
323
- },
324
- n
325
- );
326
- F(() => {
327
- const i = y(e);
328
- i && (c.value = "offsetWidth" in i ? i.offsetWidth : t.width, u.value = "offsetHeight" in i ? i.offsetHeight : t.height);
329
- });
330
- const a = R(
331
- () => y(e),
332
- (i) => {
333
- c.value = i ? t.width : 0, u.value = i ? t.height : 0;
334
- }
335
- );
336
- function o() {
337
- d(), a();
338
- }
339
- return {
340
- width: c,
341
- height: u,
342
- stop: o
343
- };
344
- }
345
- function ye(e, t, n = {}) {
346
- const {
347
- root: r,
348
- rootMargin: l = "0px",
349
- threshold: s = 0,
350
- window: c = g,
351
- immediate: u = !0
352
- } = n, d = H(() => c && "IntersectionObserver" in c), a = E(() => {
353
- const h = p(e);
354
- return (Array.isArray(h) ? h : [h]).map(y).filter(K);
355
- });
356
- let o = _;
357
- const i = w(u), f = d.value ? R(
358
- () => [a.value, y(r), i.value],
359
- ([h, S]) => {
360
- if (o(), !i.value || !h.length)
361
- return;
362
- const x = new IntersectionObserver(
363
- t,
364
- {
365
- root: y(S),
366
- rootMargin: l,
367
- threshold: s
368
- }
369
- );
370
- h.forEach((b) => b && x.observe(b)), o = () => {
371
- x.disconnect(), o = _;
372
- };
373
- },
374
- { immediate: u, flush: "post" }
375
- ) : _, m = () => {
376
- o(), f(), i.value = !1;
377
- };
378
- return C(m), {
379
- isSupported: d,
380
- isActive: i,
381
- pause() {
382
- o(), i.value = !1;
383
- },
384
- resume() {
385
- i.value = !0;
386
- },
387
- stop: m
388
- };
389
- }
390
- function Ie(e, t = {}) {
391
- const { window: n = g, scrollTarget: r, threshold: l = 0 } = t, s = w(!1);
392
- return ye(
393
- e,
394
- (c) => {
395
- let u = s.value, d = 0;
396
- for (const a of c)
397
- a.time >= d && (d = a.time, u = a.isIntersecting);
398
- s.value = u;
399
- },
400
- {
401
- root: r,
402
- window: n,
403
- threshold: l
404
- }
405
- ), s;
406
- }
407
- const Ee = "focusin", Se = "focusout";
408
- function Me(e, t = {}) {
409
- const { window: n = g } = t, r = E(() => y(e)), l = w(!1), s = E(() => l.value), c = be(t);
410
- return !n || !c.value ? { focused: s } : (W(r, Ee, () => l.value = !0), W(r, Se, () => l.value = !1), { focused: s });
411
- }
412
- const X = 1;
413
- function Le(e, t = {}) {
414
- const {
415
- throttle: n = 0,
416
- idle: r = 200,
417
- onStop: l = _,
418
- onScroll: s = _,
419
- offset: c = {
420
- left: 0,
421
- right: 0,
422
- top: 0,
423
- bottom: 0
424
- },
425
- eventListenerOptions: u = {
426
- capture: !1,
427
- passive: !0
428
- },
429
- behavior: d = "auto",
430
- window: a = g,
431
- onError: o = (v) => {
432
- console.error(v);
433
- }
434
- } = t, i = w(0), f = w(0), m = E({
435
- get() {
436
- return i.value;
437
- },
438
- set(v) {
439
- S(v, void 0);
440
- }
441
- }), h = E({
442
- get() {
443
- return f.value;
444
- },
445
- set(v) {
446
- S(void 0, v);
447
- }
448
- });
449
- function S(v, M) {
450
- var O, j, D, I;
451
- if (!a)
452
- return;
453
- const T = p(e);
454
- if (!T)
455
- return;
456
- (D = T instanceof Document ? a.document.body : T) == null || D.scrollTo({
457
- top: (O = p(M)) != null ? O : h.value,
458
- left: (j = p(v)) != null ? j : m.value,
459
- behavior: p(d)
460
- });
461
- const $ = ((I = T == null ? void 0 : T.document) == null ? void 0 : I.documentElement) || (T == null ? void 0 : T.documentElement) || T;
462
- m != null && (i.value = $.scrollLeft), h != null && (f.value = $.scrollTop);
463
- }
464
- const x = w(!1), b = U({
465
- left: !0,
466
- right: !1,
467
- top: !0,
468
- bottom: !1
469
- }), A = U({
470
- left: !1,
471
- right: !1,
472
- top: !1,
473
- bottom: !1
474
- }), B = (v) => {
475
- x.value && (x.value = !1, A.left = !1, A.right = !1, A.top = !1, A.bottom = !1, l(v));
476
- }, J = de(B, n + r), P = (v) => {
477
- var M;
478
- if (!a)
479
- return;
480
- const O = ((M = v == null ? void 0 : v.document) == null ? void 0 : M.documentElement) || (v == null ? void 0 : v.documentElement) || y(v), { display: j, flexDirection: D } = getComputedStyle(O), I = O.scrollLeft;
481
- A.left = I < i.value, A.right = I > i.value;
482
- const T = Math.abs(I) <= (c.left || 0), $ = Math.abs(I) + O.clientWidth >= O.scrollWidth - (c.right || 0) - X;
483
- j === "flex" && D === "row-reverse" ? (b.left = $, b.right = T) : (b.left = T, b.right = $), i.value = I;
484
- let L = O.scrollTop;
485
- v === a.document && !L && (L = a.document.body.scrollTop), A.top = L < f.value, A.bottom = L > f.value;
486
- const Y = Math.abs(L) <= (c.top || 0), G = Math.abs(L) + O.clientHeight >= O.scrollHeight - (c.bottom || 0) - X;
487
- j === "flex" && D === "column-reverse" ? (b.top = G, b.bottom = Y) : (b.top = Y, b.bottom = G), f.value = L;
488
- }, z = (v) => {
489
- var M;
490
- if (!a)
491
- return;
492
- const O = (M = v.target.documentElement) != null ? M : v.target;
493
- P(O), x.value = !0, J(v), s(v);
494
- };
495
- return W(
496
- e,
497
- "scroll",
498
- n ? ve(z, n, !0, !1) : z,
499
- u
500
- ), F(() => {
501
- try {
502
- const v = p(e);
503
- if (!v)
504
- return;
505
- P(v);
506
- } catch (v) {
507
- o(v);
508
- }
509
- }), W(
510
- e,
511
- "scrollend",
512
- B,
513
- u
514
- ), {
515
- x: m,
516
- y: h,
517
- isScrolling: x,
518
- arrivedState: b,
519
- directions: A,
520
- measure() {
521
- const v = p(e);
522
- a && v && P(v);
523
- }
524
- };
525
- }
526
- function Re(e = {}) {
527
- const { window: t = g, behavior: n = "auto" } = e;
528
- if (!t)
529
- return {
530
- x: w(0),
531
- y: w(0)
532
- };
533
- const r = w(t.scrollX), l = w(t.scrollY), s = E({
534
- get() {
535
- return r.value;
536
- },
537
- set(u) {
538
- scrollTo({ left: u, behavior: n });
539
- }
540
- }), c = E({
541
- get() {
542
- return l.value;
543
- },
544
- set(u) {
545
- scrollTo({ top: u, behavior: n });
546
- }
547
- });
548
- return W(
549
- t,
550
- "scroll",
551
- () => {
552
- r.value = t.scrollX, l.value = t.scrollY;
553
- },
554
- {
555
- capture: !1,
556
- passive: !0
557
- }
558
- ), { x: s, y: c };
559
- }
560
- function Ne(e = {}) {
561
- const {
562
- window: t = g,
563
- initialWidth: n = Number.POSITIVE_INFINITY,
564
- initialHeight: r = Number.POSITIVE_INFINITY,
565
- listenOrientation: l = !0,
566
- includeScrollbar: s = !0,
567
- type: c = "inner"
568
- } = e, u = w(n), d = w(r), a = () => {
569
- t && (c === "outer" ? (u.value = t.outerWidth, d.value = t.outerHeight) : s ? (u.value = t.innerWidth, d.value = t.innerHeight) : (u.value = t.document.documentElement.clientWidth, d.value = t.document.documentElement.clientHeight));
570
- };
571
- if (a(), F(a), W("resize", a, { passive: !0 }), l) {
572
- const o = N("(orientation: portrait)");
573
- R(o, () => a());
574
- }
575
- return { width: u, height: d };
576
- }
577
- export {
578
- be as a,
579
- We as b,
580
- Le as c,
581
- Re as d,
582
- Me as e,
583
- N as f,
584
- Ae as g,
585
- we as h,
586
- Ie as i,
587
- y as j,
588
- ge as k,
589
- _e as o,
590
- Ne as u,
591
- xe as w
592
- };
593
- //# sourceMappingURL=index.Zfd79j1_.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modal-fullscreen.CRLZX72M.js","sources":["../../src/components/modal-fullscreen/components/modal-fullscreen-page.vue","../../src/composables/use-listeners/use-listener.ts","../../src/components/modal-fullscreen/modal-fullscreen.vue"],"sourcesContent":["<template>\n <dialog-page class=\"b-modal-fullscreen-page\" :page-id=\"pageId\" :previous-page=\"previousPage\" always-show-border>\n <template #header>\n <div class=\"b-modal-fullscreen-page__header\">\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--title\">\n <bento-typography\n v-if=\"title\"\n el=\"h2\"\n variant=\"title\"\n class=\"b-modal-fullscreen-page__title\"\n :title=\"title\"\n >{{ title }}</bento-typography\n >\n </div>\n <div\n v-if=\"hasSlot('header')\"\n class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--slot\"\n >\n <slot name=\"header\" />\n </div>\n <div class=\"b-modal-fullscreen-page__header-section b-modal-fullscreen-page__header-section--actions\">\n <bento-typography\n v-if=\"contextualLabel\"\n class=\"b-modal-fullscreen-page__contextual-label\"\n el=\"span\"\n :title=\"contextualLabel\"\n >{{ contextualLabel }}</bento-typography\n >\n <bento-button-actions v-if=\"actions\" class=\"b-modal-fullscreen-page__actions\" :actions=\"actions\" />\n <div class=\"b-modal-fullscreen-page__separator\"></div>\n </div>\n </div>\n </template>\n <template #content>\n <div class=\"b-modal-fullscreen-page__content\">\n <slot />\n </div>\n </template>\n </dialog-page>\n</template>\n\n<script setup lang=\"ts\">\n import { onMounted, type PropType, useSlots } from 'vue';\n\n import { BentoButtonActions, type BentoButtonActionsList } from '@/components/button';\n import { BentoTypography } from '@/components/typography';\n import { DialogPage } from '@/internal';\n\n import { useHasSlot } from '@/composables';\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n\n /**\n * Identifier of the page, used with activePage prop to handle sidepanel navigation\n */\n pageId: {\n type: String,\n default: undefined,\n },\n\n /**\n * ID of the page for the back button to navigate to. Only use it to overwrite the default back behavior\n * Used when the back button should not take the user to the natural previous page\n * Set to `null` to hide back button in the page\n */\n previousPage: {\n type: String,\n default: undefined,\n },\n\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n onMounted(() => {\n if (props.actions && props.actions.length > 2) {\n throw new Error('Not more than 2 action buttons may be provided in Bento Modal Fullscreen');\n }\n });\n</script>\n\n<script lang=\"ts\">\n /**\n * ModalFullscreenPage is used to render different pages of ModalFullscreen component\n *\n * @example\n * import { BentoModalFullscreen, BentoModalFullscreenPage } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen, BentoModalFullscreenPage },\n * template: `\n * <bento-modal-fullscreen active-page='page1' is-open='true'>\n * <bento-modal-fullscreen-page\n * title='Page 1'\n * pageId='page1'\n * contextual-label='Move to next page'\n * :actions=\"[\n * {\n * title: 'Next page',\n * event: () => {\n * activePage.value = 'page2';\n * },\n * }]\">\n * Page 1 info\n * </bento-modal-fullscreen-page>\n * <bento-modal-fullscreen-page\n * title='Page 2'\n * pageId='page2'\n * :actions=\"[\n * {\n * title: 'Save',\n * event: () => {},\n * }]\">\n * Page 2 info\n * </bento-modal-fullscreen-page>\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen-page.scss\" />\n","import { getCurrentInstance, useListeners as vueUseListeners } from 'vue';\n\n/**\n * A composable that provides access to the Vue2 component's listeners (see Vue3 implementation in packages/vue3/composables).\n * The listeners are kebab-case and the colons are removed (e.g. \"click\", \"update-value\").\n *\n * In environments where the Composition API is not available (e.g. during testing),\n * it falls back to using the component's non-reactive `$listeners` object.\n *\n * @returns The component's listeners.\n */\nexport function useListeners() {\n // Return nothing so tests don't require a mock of this function\n if (!window || (!vueUseListeners && !getCurrentInstance)) {\n return {};\n }\n\n if (vueUseListeners) {\n return vueUseListeners() as any;\n }\n\n const instance = getCurrentInstance();\n return instance?.proxy?.$listeners || {};\n}\n","<template>\n <dialog\n :id=\"modalFullscreenId\"\n ref=\"modal\"\n class=\"b-modal-fullscreen\"\n :class=\"conditionalClasses\"\n data-dialog-element=\"modal-fullscreen\"\n @animationend=\"closeModalAfterAnimation\"\n @keydown.esc.prevent=\"closeModal\"\n >\n <bento-focus-trap v-if=\"internalIsOpen\" class=\"b-modal-fullscreen__wrapper\">\n <template v-if=\"props.activePage\">\n <slot />\n </template>\n <bento-modal-fullscreen-page v-else :actions=\"actions\" :contextual-label=\"contextualLabel\" :title=\"title\">\n <template v-if=\"hasSlot('default')\" #default>\n <slot name=\"default\"></slot>\n </template>\n <template v-if=\"hasSlot('header')\" #header>\n <slot name=\"header\"></slot>\n </template>\n </bento-modal-fullscreen-page>\n <div class=\"b-modal-fullscreen__close-button\">\n <bento-button variant=\"tertiary\" :aria-label=\"t('close')\" @click=\"closeModal\">\n <template #iconLeft><cross-icon :aria-hidden=\"true\" /></template>\n </bento-button>\n </div>\n </bento-focus-trap>\n\n <!-- Enable the toast inside the fullscreen-modal -->\n <template v-if=\"isOpen\">\n <bento-toast />\n </template>\n </dialog>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, nextTick, type PropType, provide, ref, toRefs, useSlots, watch } from 'vue';\n import { isVue2 } from 'vue-demi';\n\n import { BentoToast } from '@/components/toast';\n import { BentoButton, type BentoButtonActionsList } from '@/components/button';\n import { BentoFocusTrap } from '@/components/focus-trap';\n import BentoModalFullscreenPage from './components/modal-fullscreen-page.vue';\n\n import CrossIcon from '@adyen/ui-assets-icons-16/vue/cross';\n\n import { useI18n } from '@/utils/ts/i18n';\n import { generateUid } from '@/core/utils/ts';\n import { useHasSlot } from '@/composables';\n import { useListeners } from '@/composables/use-listeners';\n import { MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY } from '@/components/modal-fullscreen/modal-fullscreen.keys';\n\n import messages from './messages.json';\n import {\n BentoDialogPageAnimation,\n type BentoDialogPageConfigData,\n type BentoDialogPageRegisterPage,\n DIALOG_PAGE_CONFIG_INJECTION_KEY,\n DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY,\n } from '@/internal';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n\n /**\n * The id of the current active page\n * Should be the same as the pageId of the BentoModalFullscreenPage to be displayed\n */\n activePage: {\n type: String,\n default: null,\n },\n\n /**\n * Label shown next to the modal actions\n */\n contextualLabel: {\n type: String,\n default: null,\n },\n /**\n * Controls the modal's state from the outside. Set it to true to open the modal\n */\n isOpen: {\n type: Boolean,\n default: null,\n },\n /**\n * Title of the modal\n */\n title: {\n type: String,\n default: null,\n },\n });\n\n const emit = defineEmits([\"before-close\", \"update:active-page\", \"update:is-open\"]);\n\n // Refs\n const { activePage, isOpen } = toRefs(props);\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n const modal = ref(null);\n const isClosing = ref(false);\n const modalFullscreenId = generateUid('modal-fullscreen');\n const internalIsOpen = ref(false);\n\n const listeners = useListeners();\n const slots = useSlots();\n const hasSlot = useHasSlot(slots);\n\n // Animation styling\n const conditionalClasses = computed(() => ({\n 'b-modal-fullscreen--hide': isClosing.value,\n }));\n\n // Handle closing and closing animation for dialog element\n const closeModalAfterAnimation = () => {\n if (isClosing.value) {\n modal.value.close();\n if (previousPages.value[0]) {\n emit('update:active-page', previousPages.value[0]);\n }\n previousPages.value = [];\n isClosing.value = false;\n internalIsOpen.value = false;\n emit('update:is-open', false);\n }\n };\n\n /**\n * Emits the `beforeClose` event, if it is being listened to,\n * before closing the modal and omits the closing animation.\n * The animation will be triggered by the change of the `isOpen` prop instead.\n *\n * If no listener for the `before-close`, then the animation will be triggered,\n * which will close the modal and emit the `update:is-open` event instead, after it was closed.\n */\n function closeModal() {\n /**\n * Vue3 appends the prefix \"on\" and changes to camelCase\n */\n const eventName = isVue2 ? 'before-close' : 'onBeforeClose';\n if (listeners[eventName]) {\n emit('before-close');\n return;\n }\n startCloseModalAnimation();\n }\n\n const startCloseModalAnimation = () => {\n if (!modal.value.open) {\n return;\n }\n isClosing.value = true;\n };\n\n // Watching isOpen prop to toggle open/close the dialog element\n watch(\n () => isOpen.value,\n async () => {\n // Wait for modal ref to be created\n await nextTick();\n\n if (!modal.value) {\n return;\n }\n\n if (isOpen.value) {\n internalIsOpen.value = true;\n modal.value.showModal();\n if (!previousPages.value.length) {\n previousPages.value.push(activePage.value);\n }\n } else if (modal.value.open) {\n startCloseModalAnimation();\n }\n },\n { immediate: true }\n );\n\n // lets children components know they are inside a Modal (dialog element)\n provide(MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY, modalFullscreenId);\n\n // Pages\n const animation = ref(BentoDialogPageAnimation.TRANSITION_LEVEL_DEEPER);\n const pages = ref<Array<string>>([]);\n const previousPages = ref([]);\n const updatePage = page => emit('update:active-page', page);\n\n provide<BentoDialogPageConfigData>(DIALOG_PAGE_CONFIG_INJECTION_KEY, {\n activePage,\n animation,\n isOpen: internalIsOpen,\n pages,\n previousPages,\n updatePage,\n });\n\n // unregister page if removed / destroyed\n const unregisterPage = (pageIdToRemove: string) => () => {\n pages.value = pages.value?.filter(pageId => pageId !== pageIdToRemove);\n };\n\n // Provide data and function to register page to subcomponent\n const registerPage: BentoDialogPageRegisterPage = pageId => {\n if (pageId) {\n pages.value.push(pageId);\n }\n\n return { unregisterPage: unregisterPage(pageId) };\n };\n\n provide(DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY, registerPage);\n</script>\n\n<script lang=\"ts\">\n /**\n * Fullscreen modal takes full available space (no content underneath is visible) and focuses the user's attention exclusively on one complex task or piece of complex information.\n *\n * @example\n * import { BentoModalFullscreen } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoModalFullscreen },\n * template: `\n * <bento-modal-fullscreen\n * :is-open=\"isOpen\"\n * @update:is-open=\"isOpen = $event\"\n * title='Fullscreen modal title'\n * contextual-label='Contextual label'\n * :actions=\"[{ title: 'Action', event: () => {}]\"\n * >\n * <template #header>{{ header slot }}</template>\n * {{ content }}\n * </bento-modal-fullscreen>\n * `\n * }\n */\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./modal-fullscreen.scss\" />\n"],"names":["__default__$1","slots","useSlots","hasSlot","useHasSlot","onMounted","props","useListeners","useListeners$1","getCurrentInstance","instance","_a","__default__","messages","activePage","isOpen","toRefs","t","useI18n","modal","ref","isClosing","modalFullscreenId","generateUid","internalIsOpen","listeners","conditionalClasses","computed","closeModalAfterAnimation","previousPages","emit","closeModal","startCloseModalAnimation","watch","nextTick","provide","MODAL_FULLSCREEN_DIALOG_ID_INJECTION_KEY","animation","BentoDialogPageAnimation","pages","updatePage","page","DIALOG_PAGE_CONFIG_INJECTION_KEY","unregisterPage","pageIdToRemove","pageId","registerPage","DIALOG_PAGE_REGISTER_PAGE_INJECTION_KEY"],"mappings":";;;;;;;;;;;;;;AAqJI,MAAAA,IAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAhDAC,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA;AAEA,WAAAI,EAAA,MAAA;AACI,UAAAC,EAAA,WAAAA,EAAA,QAAA,SAAA;AACI,cAAA,IAAA,MAAA,0EAAA;AAAA,IACJ,CAAA;;;;;;;;;;;;;;;;;;;AChGD,SAAAC,KAAA;;AAEH,MAAA,CAAA,UAAA,CAAAC,KAAA,CAAAC;AACI,WAAA,CAAA;AAGJ,MAAAD;AACI,WAAAA,EAAA;AAGJ,QAAAE,IAAAD,EAAA;AACA,WAAAE,IAAAD,KAAA,gBAAAA,EAAA,UAAA,gBAAAC,EAAA,eAAA,CAAA;AACJ;;;;;;;;;;;GCuOIC,KAAA;AAAA,EAAe,MAAA,EAAA,UAAAC,GAAA;AAEf;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA7IA,EAAA,YAAAC,GAAA,QAAAC,EAAA,IAAAC,EAAAV,CAAA,GACA,EAAA,GAAAW,EAAA,IAAAC,EAAA,GACAC,IAAAC,EAAA,IAAA,GACAC,IAAAD,EAAA,EAAA,GACAE,IAAAC,EAAA,kBAAA,GACAC,IAAAJ,EAAA,EAAA,GAEAK,IAAAlB,GAAA,GACAN,IAAAC,EAAA,GACAC,IAAAC,EAAAH,CAAA,GAGAyB,IAAAC,EAAA,OAAA;AAAA,MAA2C,4BAAAN,EAAA;AAAA,IACD,EAAA,GAI1CO,IAAA,MAAA;AACI,MAAAP,EAAA,UACIF,EAAA,MAAA,MAAA,GACAU,EAAA,MAAA,CAAA,KACIC,EAAA,sBAAAD,EAAA,MAAA,CAAA,CAAA,GAEJA,EAAA,QAAA,CAAA,GACAR,EAAA,QAAA,IACAG,EAAA,QAAA,IACAM,EAAA,kBAAA,EAAA;AAAA,IACJ;AAWJ,aAAAC,IAAA;AAKI,UAAAN,EADA,cACA,GAAA;AACI,QAAAK,EAAA,cAAA;AACA;AAAA,MAAA;AAEJ,MAAAE,EAAA;AAAA,IAAyB;AAG7B,UAAAA,IAAA,MAAA;AACI,MAAAb,EAAA,MAAA,SAGAE,EAAA,QAAA;AAAA,IAAkB;AAItB,IAAAY;AAAA,MAAA,MAAAlB,EAAA;AAAA,MACiB,YAAA;AAKT,QAFA,MAAAmB,EAAA,GAEAf,EAAA,UAIAJ,EAAA,SACIS,EAAA,QAAA,IACAL,EAAA,MAAA,UAAA,GACAU,EAAA,MAAA,UACIA,EAAA,MAAA,KAAAf,EAAA,KAAA,KACJK,EAAA,MAAA,QAEAa,EAAA;AAAA,MACJ;AAAA,MACJ,EAAA,WAAA,GAAA;AAAA,IACkB,GAItBG,EAAAC,GAAAd,CAAA;AAGA,UAAAe,IAAAjB,EAAAkB,EAAA,uBAAA,GACAC,IAAAnB,EAAA,CAAA,CAAA,GACAS,IAAAT,EAAA,CAAA,CAAA,GACAoB,IAAA,CAAAC,MAAAX,EAAA,sBAAAW,CAAA;AAEA,IAAAN,EAAAO,GAAA;AAAA,MAAqE,YAAA5B;AAAA,MACjE,WAAAuB;AAAA,MACA,QAAAb;AAAA,MACQ,OAAAe;AAAA,MACR,eAAAV;AAAA,MACA,YAAAW;AAAA,IACA,CAAA;AAIJ,UAAAG,IAAA,CAAAC,MAAA,MAAA;;AACI,MAAAL,EAAA,SAAA5B,IAAA4B,EAAA,UAAA,gBAAA5B,EAAA,OAAA,CAAAkC,MAAAA,MAAAD;AAAA,IAAqE,GAIzEE,IAAA,CAAAD,OACIA,KACIN,EAAA,MAAA,KAAAM,CAAA,GAGJ,EAAA,gBAAAF,EAAAE,CAAA,EAAA;AAGJ,WAAAV,EAAAY,GAAAD,CAAA;;;;;;;;;;;;;;;;;;;;;;;"}