@commercetools/nimbus 0.0.0-canary-20250919154858 → 0.0.0-canary-20250922152719
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.
- package/dist/accordion.d.ts +2 -2
- package/dist/chunks/{accordion-CyaEB05t.es.js → accordion-CSSdv9jZ.es.js} +2 -2
- package/dist/chunks/{accordion-CyaEB05t.es.js.map → accordion-CSSdv9jZ.es.js.map} +1 -1
- package/dist/chunks/{accordion-CVM_3Y8u.cjs.js → accordion-xYvGyXy-.cjs.js} +2 -2
- package/dist/chunks/{accordion-CVM_3Y8u.cjs.js.map → accordion-xYvGyXy-.cjs.js.map} +1 -1
- package/dist/chunks/{alert-CQzbVGQM.es.js → alert-BRDuEo75.es.js} +2 -2
- package/dist/chunks/{alert-CQzbVGQM.es.js.map → alert-BRDuEo75.es.js.map} +1 -1
- package/dist/chunks/{alert-B1X_ycTY.cjs.js → alert-CWTCM8-i.cjs.js} +2 -2
- package/dist/chunks/{alert-B1X_ycTY.cjs.js.map → alert-CWTCM8-i.cjs.js.map} +1 -1
- package/dist/chunks/{button-DnZz51Rh.es.js → button-DRMpnb-1.es.js} +2 -2
- package/dist/chunks/{button-DnZz51Rh.es.js.map → button-DRMpnb-1.es.js.map} +1 -1
- package/dist/chunks/{button-RUSyHGQV.cjs.js → button-Dbf1b0F4.cjs.js} +2 -2
- package/dist/chunks/{button-RUSyHGQV.cjs.js.map → button-Dbf1b0F4.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-DhN7hRLB.cjs.js → calendar-CrTvsDQH.cjs.js} +2 -2
- package/dist/chunks/{calendar-DhN7hRLB.cjs.js.map → calendar-CrTvsDQH.cjs.js.map} +1 -1
- package/dist/chunks/{calendar-CrxxYJd-.es.js → calendar-DnQnMOcs.es.js} +4 -4
- package/dist/chunks/{calendar-CrxxYJd-.es.js.map → calendar-DnQnMOcs.es.js.map} +1 -1
- package/dist/chunks/{checkbox-CAvlAkX5.cjs.js → checkbox-Bv0NXUyX.cjs.js} +2 -2
- package/dist/chunks/{checkbox-CAvlAkX5.cjs.js.map → checkbox-Bv0NXUyX.cjs.js.map} +1 -1
- package/dist/chunks/{checkbox-BxRZ9dqc.es.js → checkbox-CdSHDZgM.es.js} +2 -2
- package/dist/chunks/{checkbox-BxRZ9dqc.es.js.map → checkbox-CdSHDZgM.es.js.map} +1 -1
- package/dist/chunks/combobox-C9pPDZQn.cjs.js +2 -0
- package/dist/chunks/combobox-C9pPDZQn.cjs.js.map +1 -0
- package/dist/chunks/{combobox-Bjv3GWGo.es.js → combobox-Dmn2vxIz.es.js} +991 -970
- package/dist/chunks/combobox-Dmn2vxIz.es.js.map +1 -0
- package/dist/chunks/{data-table-9C4ViaHW.es.js → data-table-CBr4TLyH.es.js} +6 -6
- package/dist/chunks/{data-table-9C4ViaHW.es.js.map → data-table-CBr4TLyH.es.js.map} +1 -1
- package/dist/chunks/{data-table-BoRy4kuE.cjs.js → data-table-DIsDZ5JZ.cjs.js} +2 -2
- package/dist/chunks/{data-table-BoRy4kuE.cjs.js.map → data-table-DIsDZ5JZ.cjs.js.map} +1 -1
- package/dist/chunks/date-input-CoAPdZTG.es.js +21 -0
- package/dist/chunks/date-input-CoAPdZTG.es.js.map +1 -0
- package/dist/chunks/date-input-DYC1t1e-.cjs.js +2 -0
- package/dist/chunks/date-input-DYC1t1e-.cjs.js.map +1 -0
- package/dist/chunks/date-picker-BVrTKhZ_.es.js +219 -0
- package/dist/chunks/date-picker-BVrTKhZ_.es.js.map +1 -0
- package/dist/chunks/date-picker-_7Gh_ROw.cjs.js +2 -0
- package/dist/chunks/date-picker-_7Gh_ROw.cjs.js.map +1 -0
- package/dist/chunks/{date-range-picker-CsUWSzSC.es.js → date-range-picker-D55giMLZ.es.js} +88 -91
- package/dist/chunks/date-range-picker-D55giMLZ.es.js.map +1 -0
- package/dist/chunks/date-range-picker-D7pPpSEj.cjs.js +2 -0
- package/dist/chunks/date-range-picker-D7pPpSEj.cjs.js.map +1 -0
- package/dist/chunks/{extractStyleProps-dSQoSYg8.cjs.js → extractStyleProps-CgqRiEwd.cjs.js} +2 -2
- package/dist/chunks/{extractStyleProps-dSQoSYg8.cjs.js.map → extractStyleProps-CgqRiEwd.cjs.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-lz7NzsNX.es.js → extractStyleProps-DkXeCUuq.es.js} +2 -2
- package/dist/chunks/{extractStyleProps-lz7NzsNX.es.js.map → extractStyleProps-DkXeCUuq.es.js.map} +1 -1
- package/dist/chunks/{form-field-CPPobl2Z.es.js → form-field-DMs36b56.es.js} +2 -2
- package/dist/chunks/{form-field-CPPobl2Z.es.js.map → form-field-DMs36b56.es.js.map} +1 -1
- package/dist/chunks/{form-field-BoGSJF6d.cjs.js → form-field-cwK6KNEG.cjs.js} +2 -2
- package/dist/chunks/{form-field-BoGSJF6d.cjs.js.map → form-field-cwK6KNEG.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-CiBtEF0y.cjs.js → icon-button-0GLW7WtL.cjs.js} +2 -2
- package/dist/chunks/{icon-button-CiBtEF0y.cjs.js.map → icon-button-0GLW7WtL.cjs.js.map} +1 -1
- package/dist/chunks/{icon-button-N3Uzjv8o.es.js → icon-button-C_i4ydsN.es.js} +2 -2
- package/dist/chunks/{icon-button-N3Uzjv8o.es.js.map → icon-button-C_i4ydsN.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-BcrMgO27.es.js → icon-toggle-button-f03QyjEE.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-BcrMgO27.es.js.map → icon-toggle-button-f03QyjEE.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-DeiQ7jmM.cjs.js → icon-toggle-button-tJAqRjak.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-DeiQ7jmM.cjs.js.map → icon-toggle-button-tJAqRjak.cjs.js.map} +1 -1
- package/dist/chunks/{index-DwjTNyza.es.js → index-CRta5Y1_.es.js} +426 -300
- package/dist/chunks/index-CRta5Y1_.es.js.map +1 -0
- package/dist/chunks/index-DX8-EG6B.cjs.js +4 -0
- package/dist/chunks/index-DX8-EG6B.cjs.js.map +1 -0
- package/dist/chunks/{menu-vAP73jq6.es.js → menu-D5UbPSbm.es.js} +3 -3
- package/dist/chunks/{menu-vAP73jq6.es.js.map → menu-D5UbPSbm.es.js.map} +1 -1
- package/dist/chunks/{menu-n9jU7SCA.cjs.js → menu-cYj3HcOe.cjs.js} +2 -2
- package/dist/chunks/{menu-n9jU7SCA.cjs.js.map → menu-cYj3HcOe.cjs.js.map} +1 -1
- package/dist/chunks/{money-input-Dkl0TJ-w.es.js → money-input-CtG9FJDJ.es.js} +4 -4
- package/dist/chunks/{money-input-Dkl0TJ-w.es.js.map → money-input-CtG9FJDJ.es.js.map} +1 -1
- package/dist/chunks/{money-input-CZkI0cQZ.cjs.js → money-input-DXpiO23i.cjs.js} +2 -2
- package/dist/chunks/{money-input-CZkI0cQZ.cjs.js.map → money-input-DXpiO23i.cjs.js.map} +1 -1
- package/dist/chunks/multiline-text-input-DZaLPY2Z.es.js +193 -0
- package/dist/chunks/multiline-text-input-DZaLPY2Z.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-XW9WrmJi.cjs.js +12 -0
- package/dist/chunks/multiline-text-input-XW9WrmJi.cjs.js.map +1 -0
- package/dist/chunks/{nimbus-provider-DQ1CPSp4.cjs.js → nimbus-provider--E4ETLbz.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-DQ1CPSp4.cjs.js.map → nimbus-provider--E4ETLbz.cjs.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-CH5x7sz1.es.js → nimbus-provider-BE3QFNWW.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-CH5x7sz1.es.js.map → nimbus-provider-BE3QFNWW.es.js.map} +1 -1
- package/dist/chunks/number-input-C-suceSs.cjs.js +2 -0
- package/dist/chunks/{number-input-BCyiGbGY.cjs.js.map → number-input-C-suceSs.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-CjBiCFF6.es.js → number-input-COfobs8H.es.js} +347 -339
- package/dist/chunks/{number-input-CjBiCFF6.es.js.map → number-input-COfobs8H.es.js.map} +1 -1
- package/dist/chunks/{pagination-CwZAtcMm.cjs.js → pagination-BM1xkmu9.cjs.js} +2 -2
- package/dist/chunks/{pagination-CwZAtcMm.cjs.js.map → pagination-BM1xkmu9.cjs.js.map} +1 -1
- package/dist/chunks/{pagination-BYCMJoWX.es.js → pagination-C5bOKHnF.es.js} +4 -4
- package/dist/chunks/{pagination-BYCMJoWX.es.js.map → pagination-C5bOKHnF.es.js.map} +1 -1
- package/dist/chunks/password-input-BXIl-f4z.es.js +54 -0
- package/dist/chunks/password-input-BXIl-f4z.es.js.map +1 -0
- package/dist/chunks/password-input-Br-DbsF2.cjs.js +2 -0
- package/dist/chunks/password-input-Br-DbsF2.cjs.js.map +1 -0
- package/dist/chunks/{progress-bar-DhG9TG8r.es.js → progress-bar-8RZO_7Pa.es.js} +2 -2
- package/dist/chunks/{progress-bar-DhG9TG8r.es.js.map → progress-bar-8RZO_7Pa.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-C9ElCIQE.cjs.js → progress-bar-CGfPZTdv.cjs.js} +2 -2
- package/dist/chunks/{progress-bar-C9ElCIQE.cjs.js.map → progress-bar-CGfPZTdv.cjs.js.map} +1 -1
- package/dist/chunks/{radio-input-CV2Am_Ol.es.js → radio-input-CBsoUt1S.es.js} +3 -3
- package/dist/chunks/{radio-input-CV2Am_Ol.es.js.map → radio-input-CBsoUt1S.es.js.map} +1 -1
- package/dist/chunks/{radio-input-A7KxF_yz.cjs.js → radio-input-D7oHngVQ.cjs.js} +2 -2
- package/dist/chunks/{radio-input-A7KxF_yz.cjs.js.map → radio-input-D7oHngVQ.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-Dyt9IoJ_.cjs.js → range-calendar-CWkeoOzl.cjs.js} +2 -2
- package/dist/chunks/{range-calendar-Dyt9IoJ_.cjs.js.map → range-calendar-CWkeoOzl.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-BpFwP2wF.es.js → range-calendar-ZSiCkuoX.es.js} +4 -4
- package/dist/chunks/{range-calendar-BpFwP2wF.es.js.map → range-calendar-ZSiCkuoX.es.js.map} +1 -1
- package/dist/chunks/{rich-text-input-sQtbxyfd.cjs.js → rich-text-input-CxWC-yrf.cjs.js} +2 -2
- package/dist/chunks/{rich-text-input-sQtbxyfd.cjs.js.map → rich-text-input-CxWC-yrf.cjs.js.map} +1 -1
- package/dist/chunks/{rich-text-input-BBVWAH5I.es.js → rich-text-input-YYPcexom.es.js} +7 -7
- package/dist/chunks/{rich-text-input-BBVWAH5I.es.js.map → rich-text-input-YYPcexom.es.js.map} +1 -1
- package/dist/chunks/{select-BvwErOqX.es.js → select-Bj9NNlBG.es.js} +156 -146
- package/dist/chunks/{select-BvwErOqX.es.js.map → select-Bj9NNlBG.es.js.map} +1 -1
- package/dist/chunks/select-DA6mGi-n.cjs.js +2 -0
- package/dist/chunks/{select-BL0Jeztf.cjs.js.map → select-DA6mGi-n.cjs.js.map} +1 -1
- package/dist/chunks/{separator-BRUFpi9l.es.js → separator-BBcK9ROS.es.js} +2 -2
- package/dist/chunks/{separator-BRUFpi9l.es.js.map → separator-BBcK9ROS.es.js.map} +1 -1
- package/dist/chunks/{separator-DKPbB_lK.cjs.js → separator-CoMx0Mmv.cjs.js} +2 -2
- package/dist/chunks/{separator-DKPbB_lK.cjs.js.map → separator-CoMx0Mmv.cjs.js.map} +1 -1
- package/dist/chunks/{split-button-B4SnFetQ.es.js → split-button-C5RRpvG-.es.js} +5 -5
- package/dist/chunks/{split-button-B4SnFetQ.es.js.map → split-button-C5RRpvG-.es.js.map} +1 -1
- package/dist/chunks/{split-button-Cs4jynee.cjs.js → split-button-DS-OCnNN.cjs.js} +2 -2
- package/dist/chunks/{split-button-Cs4jynee.cjs.js.map → split-button-DS-OCnNN.cjs.js.map} +1 -1
- package/dist/chunks/{switch-CssXPh09.es.js → switch-CaNbdCzT.es.js} +3 -3
- package/dist/chunks/{switch-CssXPh09.es.js.map → switch-CaNbdCzT.es.js.map} +1 -1
- package/dist/chunks/{switch-DAVy_DYC.cjs.js → switch-uAVIHIFM.cjs.js} +2 -2
- package/dist/chunks/{switch-DAVy_DYC.cjs.js.map → switch-uAVIHIFM.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-BJ33FcVi.cjs.js → tag-group-BfVRqsqw.cjs.js} +2 -2
- package/dist/chunks/{tag-group-BJ33FcVi.cjs.js.map → tag-group-BfVRqsqw.cjs.js.map} +1 -1
- package/dist/chunks/{tag-group-JeqOcMyb.es.js → tag-group-Bs6sb_ky.es.js} +2 -2
- package/dist/chunks/{tag-group-JeqOcMyb.es.js.map → tag-group-Bs6sb_ky.es.js.map} +1 -1
- package/dist/chunks/text-input-Bm5P6cG3.es.js +48 -0
- package/dist/chunks/text-input-Bm5P6cG3.es.js.map +1 -0
- package/dist/chunks/text-input-DgYI0-uU.cjs.js +2 -0
- package/dist/chunks/text-input-DgYI0-uU.cjs.js.map +1 -0
- package/dist/chunks/time-input-BVrf5gCi.es.js +179 -0
- package/dist/chunks/time-input-BVrf5gCi.es.js.map +1 -0
- package/dist/chunks/time-input-DOacr-Lo.cjs.js +2 -0
- package/dist/chunks/time-input-DOacr-Lo.cjs.js.map +1 -0
- package/dist/chunks/{toggle-button-DSp3s7cp.es.js → toggle-button-Bg4ygY7u.es.js} +3 -3
- package/dist/chunks/{toggle-button-DSp3s7cp.es.js.map → toggle-button-Bg4ygY7u.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-BCDj-UQB.cjs.js → toggle-button-CoA46qg6.cjs.js} +2 -2
- package/dist/chunks/{toggle-button-BCDj-UQB.cjs.js.map → toggle-button-CoA46qg6.cjs.js.map} +1 -1
- package/dist/chunks/{toolbar-_QcKjeZY.es.js → toolbar-BZFjOgau.es.js} +3 -3
- package/dist/chunks/{toolbar-_QcKjeZY.es.js.map → toolbar-BZFjOgau.es.js.map} +1 -1
- package/dist/chunks/{toolbar-DSpz9u4Z.cjs.js → toolbar-CRak3D0J.cjs.js} +2 -2
- package/dist/chunks/{toolbar-DSpz9u4Z.cjs.js.map → toolbar-CRak3D0J.cjs.js.map} +1 -1
- package/dist/combobox.d.ts +26 -1
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +33 -33
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components.d.ts +302 -114
- package/dist/data-table.d.ts +6 -6
- package/dist/date-input.d.ts +43 -10
- package/dist/date-picker.d.ts +46 -31
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +316 -128
- package/dist/index.es.js +36 -36
- package/dist/multiline-text-input.d.ts +49 -9
- package/dist/number-input.d.ts +50 -31
- package/dist/password-input.d.ts +59 -25
- package/dist/select.d.ts +19 -2
- package/dist/text-input.d.ts +53 -21
- package/dist/time-input.d.ts +48 -12
- package/package.json +5 -5
- package/dist/chunks/combobox-Bjv3GWGo.es.js.map +0 -1
- package/dist/chunks/combobox-DFEUqaQv.cjs.js +0 -2
- package/dist/chunks/combobox-DFEUqaQv.cjs.js.map +0 -1
- package/dist/chunks/date-input-BfX4o6R4.es.js +0 -16
- package/dist/chunks/date-input-BfX4o6R4.es.js.map +0 -1
- package/dist/chunks/date-input-sKLgo0X8.cjs.js +0 -2
- package/dist/chunks/date-input-sKLgo0X8.cjs.js.map +0 -1
- package/dist/chunks/date-picker-BviqgxDx.es.js +0 -222
- package/dist/chunks/date-picker-BviqgxDx.es.js.map +0 -1
- package/dist/chunks/date-picker-STd_oI72.cjs.js +0 -2
- package/dist/chunks/date-picker-STd_oI72.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-CsUWSzSC.es.js.map +0 -1
- package/dist/chunks/date-range-picker-cA84RzN7.cjs.js +0 -2
- package/dist/chunks/date-range-picker-cA84RzN7.cjs.js.map +0 -1
- package/dist/chunks/index-DebuynT7.cjs.js +0 -4
- package/dist/chunks/index-DebuynT7.cjs.js.map +0 -1
- package/dist/chunks/index-DwjTNyza.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-B9RhT0Oy.es.js +0 -118
- package/dist/chunks/multiline-text-input-B9RhT0Oy.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-BGT_-xyA.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-BGT_-xyA.cjs.js.map +0 -1
- package/dist/chunks/number-input-BCyiGbGY.cjs.js +0 -2
- package/dist/chunks/password-input-BkTbfljJ.cjs.js +0 -2
- package/dist/chunks/password-input-BkTbfljJ.cjs.js.map +0 -1
- package/dist/chunks/password-input-BlU2h_8U.es.js +0 -67
- package/dist/chunks/password-input-BlU2h_8U.es.js.map +0 -1
- package/dist/chunks/select-BL0Jeztf.cjs.js +0 -2
- package/dist/chunks/text-input-Bu4lGoBD.es.js +0 -18
- package/dist/chunks/text-input-Bu4lGoBD.es.js.map +0 -1
- package/dist/chunks/text-input-DtMgT0KI.cjs.js +0 -2
- package/dist/chunks/text-input-DtMgT0KI.cjs.js.map +0 -1
- package/dist/chunks/time-input-D8D26IcA.es.js +0 -130
- package/dist/chunks/time-input-D8D26IcA.es.js.map +0 -1
- package/dist/chunks/time-input-D9Xmy3YQ.cjs.js +0 -2
- package/dist/chunks/time-input-D9Xmy3YQ.cjs.js.map +0 -1
|
@@ -1,86 +1,86 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { createSlotRecipeContext as
|
|
3
|
-
import { l as
|
|
4
|
-
import
|
|
5
|
-
import { $ as
|
|
6
|
-
import { f as
|
|
7
|
-
import { $ as
|
|
8
|
-
import { $ as
|
|
1
|
+
import { jsx as s, jsxs as re, Fragment as Ve } from "react/jsx-runtime";
|
|
2
|
+
import { createSlotRecipeContext as Gn, useSlotRecipe as zn } from "@chakra-ui/react/styled-system";
|
|
3
|
+
import { l as je } from "./index-CRta5Y1_.es.js";
|
|
4
|
+
import Y, { useEffect as ue, useRef as T, useMemo as ae, useCallback as O, useState as X, createContext as $e, forwardRef as Nn, useContext as Ue } from "react";
|
|
5
|
+
import { $ as qe } from "./Button-CNBS3n5a.es.js";
|
|
6
|
+
import { f as We, c as Se, e as De, d as Le, $ as fe, b as He, a as Je } from "./utils-BkdW_cdL.es.js";
|
|
7
|
+
import { $ as Ze } from "./FieldError-CXcEMuBf.es.js";
|
|
8
|
+
import { $ as Xe } from "./Form-CXcEMuBf.es.js";
|
|
9
9
|
import { a as Pe } from "./Group-Cfixd-fh.es.js";
|
|
10
|
-
import { a as xe, $ as
|
|
10
|
+
import { a as xe, $ as Ye } from "./Input-BiHwUBo4.es.js";
|
|
11
11
|
import { $ as Ie } from "./Label-B2YyCdLl.es.js";
|
|
12
|
-
import { g as
|
|
13
|
-
import { f as
|
|
12
|
+
import { g as jn, h as Un, i as qn, a as Qe, b as Wn, c as Hn, e as Jn, d as Zn } from "./ListBox-DKAR_w69.es.js";
|
|
13
|
+
import { f as Xn, m as Yn, b as Qn, c as _n, $ as _e, g as eo, e as eu, a as ou } from "./Dialog-BH-H4BEe.es.js";
|
|
14
14
|
import { $ as we } from "./Text-DOcU1ycg.es.js";
|
|
15
|
-
import { f as
|
|
16
|
-
import { $ as
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as
|
|
19
|
-
import { b as
|
|
20
|
-
import { $ as
|
|
21
|
-
import { $ as
|
|
22
|
-
import { $ as
|
|
15
|
+
import { f as nu, g as uu } from "./Separator-CuZ-VIh8.es.js";
|
|
16
|
+
import { $ as oo } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
17
|
+
import { $ as tu, a as lu } from "./OverlayArrow-sJzRZNbO.es.js";
|
|
18
|
+
import { $ as no } from "./useFilter-DOfNzeZ9.es.js";
|
|
19
|
+
import { b as iu, $ as cu } from "./useFormValidation-4hZ1_a6w.es.js";
|
|
20
|
+
import { $ as ru, a as au, b as uo, r as Be, s as Me, t as su, u as du, v as Ge, w as pu, x as $u, q as to, h as bu } from "./SelectionManager-BgUVI3vz.es.js";
|
|
21
|
+
import { $ as fu } from "./useSingleSelectListState-CdPCvWTv.es.js";
|
|
22
|
+
import { $ as lo } from "./useControlledState-u436Wbp1.es.js";
|
|
23
23
|
import { $ as ve } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
24
|
-
import { $ as pe, e as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { $ as
|
|
24
|
+
import { $ as pe, e as mu, b as xu, d as be } from "./mergeProps-B_9syxhT.es.js";
|
|
25
|
+
import { $ as Cu, k as hu, d as ge, a as io } from "./utils-jpfA6kxk.es.js";
|
|
26
|
+
import { $ as vu } from "./openLink-Ctl0AdAy.es.js";
|
|
27
27
|
import { a as Te } from "./useLabel-BBmkkrPP.es.js";
|
|
28
|
-
import { $ as
|
|
29
|
-
import { g as ye, f as
|
|
30
|
-
import { a as
|
|
31
|
-
import { $ as
|
|
32
|
-
import { $ as
|
|
33
|
-
import { e as ke } from "./extractStyleProps-
|
|
34
|
-
import { Close as
|
|
35
|
-
import { B as
|
|
36
|
-
import { I as Fe } from "./icon-button-
|
|
37
|
-
import { Flex as
|
|
38
|
-
import { mergeRefs as
|
|
39
|
-
import { $ as
|
|
40
|
-
import { $ as
|
|
41
|
-
import { b as
|
|
42
|
-
import { a as
|
|
43
|
-
import { $ as
|
|
44
|
-
import { T as Ae } from "./tag-group-
|
|
45
|
-
import { $ as
|
|
46
|
-
import { $ as
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
let { pressProps:
|
|
28
|
+
import { $ as yu } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
29
|
+
import { g as ye, f as Au, d as Eu } from "./platform-Z5fvtFmM.es.js";
|
|
30
|
+
import { a as Bu, c as gu } from "./Header-Bi219Q1R.es.js";
|
|
31
|
+
import { $ as co } from "./useLocalizedStringFormatter-BRnRyxJp.es.js";
|
|
32
|
+
import { $ as ro } from "./useTextField-BnL6tOdd.es.js";
|
|
33
|
+
import { e as ke } from "./extractStyleProps-DkXeCUuq.es.js";
|
|
34
|
+
import { Close as ao, Loop as so, KeyboardArrowDown as po, Check as Tu } from "@commercetools/nimbus-icons";
|
|
35
|
+
import { B as me } from "./box-DuBoAZvq.es.js";
|
|
36
|
+
import { I as Fe } from "./icon-button-C_i4ydsN.es.js";
|
|
37
|
+
import { Flex as $o } from "@chakra-ui/react/flex";
|
|
38
|
+
import { mergeRefs as Fu } from "@chakra-ui/react";
|
|
39
|
+
import { $ as bo } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
40
|
+
import { $ as Su } from "./useEvent-YHhqZvpU.es.js";
|
|
41
|
+
import { b as Du } from "./useFocusVisible-CWDaG0ze.es.js";
|
|
42
|
+
import { a as Lu } from "./TextArea-BmpgvS0R.es.js";
|
|
43
|
+
import { $ as Pu } from "./Hidden-j3Lbt7xL.es.js";
|
|
44
|
+
import { T as Ae } from "./tag-group-Bs6sb_ky.es.js";
|
|
45
|
+
import { $ as Iu } from "./usePress-DHhWHfMz.es.js";
|
|
46
|
+
import { $ as wu } from "./useFocusable-CrsD8ZcF.es.js";
|
|
47
|
+
const ku = /* @__PURE__ */ Y.forwardRef(({ children: e, ...o }, n) => {
|
|
48
|
+
n = bo(n);
|
|
49
|
+
let { pressProps: t } = Iu({
|
|
50
50
|
...o,
|
|
51
|
-
ref:
|
|
52
|
-
}), { focusableProps:
|
|
53
|
-
|
|
51
|
+
ref: n
|
|
52
|
+
}), { focusableProps: u } = wu(o, n), c = Y.Children.only(e);
|
|
53
|
+
ue(() => {
|
|
54
54
|
if (process.env.NODE_ENV === "production") return;
|
|
55
|
-
let
|
|
56
|
-
if (!
|
|
55
|
+
let r = n.current;
|
|
56
|
+
if (!r || !(r instanceof Cu(r).Element)) {
|
|
57
57
|
console.error("<Pressable> child must forward its ref to a DOM element.");
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
|
-
if (!o.isDisabled && !
|
|
60
|
+
if (!o.isDisabled && !hu(r)) {
|
|
61
61
|
console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");
|
|
62
62
|
return;
|
|
63
63
|
}
|
|
64
|
-
if (
|
|
65
|
-
let
|
|
66
|
-
|
|
64
|
+
if (r.localName !== "button" && r.localName !== "input" && r.localName !== "select" && r.localName !== "textarea" && r.localName !== "a" && r.localName !== "area" && r.localName !== "summary") {
|
|
65
|
+
let l = r.getAttribute("role");
|
|
66
|
+
l ? (
|
|
67
67
|
// https://w3c.github.io/aria/#widget_roles
|
|
68
|
-
|
|
68
|
+
l !== "application" && l !== "button" && l !== "checkbox" && l !== "combobox" && l !== "gridcell" && l !== "link" && l !== "menuitem" && l !== "menuitemcheckbox" && l !== "menuitemradio" && l !== "option" && l !== "radio" && l !== "searchbox" && l !== "separator" && l !== "slider" && l !== "spinbutton" && l !== "switch" && l !== "tab" && l !== "textbox" && l !== "treeitem" && console.warn(`<Pressable> child must have an interactive ARIA role. Got "${l}".`)
|
|
69
69
|
) : console.warn("<Pressable> child must have an interactive ARIA role.");
|
|
70
70
|
}
|
|
71
71
|
}, [
|
|
72
|
-
|
|
72
|
+
n,
|
|
73
73
|
o.isDisabled
|
|
74
74
|
]);
|
|
75
|
-
let
|
|
76
|
-
return /* @__PURE__ */
|
|
77
|
-
...pe(
|
|
75
|
+
let $ = parseInt(Y.version, 10) < 19 ? c.ref : c.props.ref;
|
|
76
|
+
return /* @__PURE__ */ Y.cloneElement(c, {
|
|
77
|
+
...pe(t, u, c.props),
|
|
78
78
|
// @ts-ignore
|
|
79
|
-
ref:
|
|
79
|
+
ref: We($, n)
|
|
80
80
|
});
|
|
81
81
|
});
|
|
82
|
-
var
|
|
83
|
-
|
|
82
|
+
var fo = {};
|
|
83
|
+
fo = {
|
|
84
84
|
buttonLabel: "عرض المقترحات",
|
|
85
85
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
86
86
|
one: () => `${o.number(e.optionCount)} خيار`,
|
|
@@ -99,8 +99,8 @@ bo = {
|
|
|
99
99
|
listboxLabel: "مقترحات",
|
|
100
100
|
selectedAnnouncement: (e) => `${e.optionText}، محدد`
|
|
101
101
|
};
|
|
102
|
-
var
|
|
103
|
-
|
|
102
|
+
var mo = {};
|
|
103
|
+
mo = {
|
|
104
104
|
buttonLabel: "Покажи предложения",
|
|
105
105
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
106
106
|
one: () => `${o.number(e.optionCount)} опция`,
|
|
@@ -119,8 +119,8 @@ fo = {
|
|
|
119
119
|
listboxLabel: "Предложения",
|
|
120
120
|
selectedAnnouncement: (e) => `${e.optionText}, избрани`
|
|
121
121
|
};
|
|
122
|
-
var
|
|
123
|
-
|
|
122
|
+
var xo = {};
|
|
123
|
+
xo = {
|
|
124
124
|
buttonLabel: "Zobrazit doporučení",
|
|
125
125
|
countAnnouncement: (e, o) => `K dispozici ${o.plural(e.optionCount, {
|
|
126
126
|
one: () => `je ${o.number(e.optionCount)} možnost`,
|
|
@@ -139,8 +139,8 @@ Co = {
|
|
|
139
139
|
listboxLabel: "Návrhy",
|
|
140
140
|
selectedAnnouncement: (e) => `${e.optionText}, vybráno`
|
|
141
141
|
};
|
|
142
|
-
var
|
|
143
|
-
|
|
142
|
+
var Co = {};
|
|
143
|
+
Co = {
|
|
144
144
|
buttonLabel: "Vis forslag",
|
|
145
145
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
146
146
|
one: () => `${o.number(e.optionCount)} mulighed tilgængelig`,
|
|
@@ -159,8 +159,8 @@ xo = {
|
|
|
159
159
|
listboxLabel: "Forslag",
|
|
160
160
|
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
161
161
|
};
|
|
162
|
-
var
|
|
163
|
-
|
|
162
|
+
var ho = {};
|
|
163
|
+
ho = {
|
|
164
164
|
buttonLabel: "Empfehlungen anzeigen",
|
|
165
165
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
166
166
|
one: () => `${o.number(e.optionCount)} Option`,
|
|
@@ -179,8 +179,8 @@ mo = {
|
|
|
179
179
|
listboxLabel: "Empfehlungen",
|
|
180
180
|
selectedAnnouncement: (e) => `${e.optionText}, ausgewählt`
|
|
181
181
|
};
|
|
182
|
-
var
|
|
183
|
-
|
|
182
|
+
var vo = {};
|
|
183
|
+
vo = {
|
|
184
184
|
buttonLabel: "Προβολή προτάσεων",
|
|
185
185
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
186
186
|
one: () => `${o.number(e.optionCount)} επιλογή`,
|
|
@@ -199,8 +199,8 @@ ho = {
|
|
|
199
199
|
listboxLabel: "Προτάσεις",
|
|
200
200
|
selectedAnnouncement: (e) => `${e.optionText}, επιλέχθηκε`
|
|
201
201
|
};
|
|
202
|
-
var
|
|
203
|
-
|
|
202
|
+
var yo = {};
|
|
203
|
+
yo = {
|
|
204
204
|
focusAnnouncement: (e, o) => `${o.select({
|
|
205
205
|
true: () => `Entered group ${e.groupTitle}, with ${o.plural(e.groupCount, {
|
|
206
206
|
one: () => `${o.number(e.groupCount)} option`,
|
|
@@ -219,8 +219,8 @@ vo = {
|
|
|
219
219
|
buttonLabel: "Show suggestions",
|
|
220
220
|
listboxLabel: "Suggestions"
|
|
221
221
|
};
|
|
222
|
-
var
|
|
223
|
-
|
|
222
|
+
var Ao = {};
|
|
223
|
+
Ao = {
|
|
224
224
|
buttonLabel: "Mostrar sugerencias",
|
|
225
225
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
226
226
|
one: () => `${o.number(e.optionCount)} opción`,
|
|
@@ -239,8 +239,8 @@ yo = {
|
|
|
239
239
|
listboxLabel: "Sugerencias",
|
|
240
240
|
selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
|
|
241
241
|
};
|
|
242
|
-
var
|
|
243
|
-
|
|
242
|
+
var Eo = {};
|
|
243
|
+
Eo = {
|
|
244
244
|
buttonLabel: "Kuva soovitused",
|
|
245
245
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
246
246
|
one: () => `${o.number(e.optionCount)} valik`,
|
|
@@ -259,8 +259,8 @@ Ao = {
|
|
|
259
259
|
listboxLabel: "Soovitused",
|
|
260
260
|
selectedAnnouncement: (e) => `${e.optionText}, valitud`
|
|
261
261
|
};
|
|
262
|
-
var
|
|
263
|
-
|
|
262
|
+
var Bo = {};
|
|
263
|
+
Bo = {
|
|
264
264
|
buttonLabel: "Näytä ehdotukset",
|
|
265
265
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
266
266
|
one: () => `${o.number(e.optionCount)} vaihtoehto`,
|
|
@@ -279,8 +279,8 @@ Eo = {
|
|
|
279
279
|
listboxLabel: "Ehdotukset",
|
|
280
280
|
selectedAnnouncement: (e) => `${e.optionText}, valittu`
|
|
281
281
|
};
|
|
282
|
-
var
|
|
283
|
-
|
|
282
|
+
var go = {};
|
|
283
|
+
go = {
|
|
284
284
|
buttonLabel: "Afficher les suggestions",
|
|
285
285
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
286
286
|
one: () => `${o.number(e.optionCount)} option`,
|
|
@@ -299,8 +299,8 @@ Bo = {
|
|
|
299
299
|
listboxLabel: "Suggestions",
|
|
300
300
|
selectedAnnouncement: (e) => `${e.optionText}, sélectionné`
|
|
301
301
|
};
|
|
302
|
-
var
|
|
303
|
-
|
|
302
|
+
var To = {};
|
|
303
|
+
To = {
|
|
304
304
|
buttonLabel: "הצג הצעות",
|
|
305
305
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
306
306
|
one: () => `אפשרות ${o.number(e.optionCount)}`,
|
|
@@ -319,8 +319,8 @@ go = {
|
|
|
319
319
|
listboxLabel: "הצעות",
|
|
320
320
|
selectedAnnouncement: (e) => `${e.optionText}, נבחר`
|
|
321
321
|
};
|
|
322
|
-
var
|
|
323
|
-
|
|
322
|
+
var Fo = {};
|
|
323
|
+
Fo = {
|
|
324
324
|
buttonLabel: "Prikaži prijedloge",
|
|
325
325
|
countAnnouncement: (e, o) => `Dostupno još: ${o.plural(e.optionCount, {
|
|
326
326
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -339,8 +339,8 @@ To = {
|
|
|
339
339
|
listboxLabel: "Prijedlozi",
|
|
340
340
|
selectedAnnouncement: (e) => `${e.optionText}, odabrano`
|
|
341
341
|
};
|
|
342
|
-
var
|
|
343
|
-
|
|
342
|
+
var So = {};
|
|
343
|
+
So = {
|
|
344
344
|
buttonLabel: "Javaslatok megjelenítése",
|
|
345
345
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
346
346
|
one: () => `${o.number(e.optionCount)} lehetőség`,
|
|
@@ -379,8 +379,8 @@ Do = {
|
|
|
379
379
|
listboxLabel: "Suggerimenti",
|
|
380
380
|
selectedAnnouncement: (e) => `${e.optionText}, selezionato`
|
|
381
381
|
};
|
|
382
|
-
var
|
|
383
|
-
|
|
382
|
+
var Lo = {};
|
|
383
|
+
Lo = {
|
|
384
384
|
buttonLabel: "候補を表示",
|
|
385
385
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
386
386
|
one: () => `${o.number(e.optionCount)} 個のオプション`,
|
|
@@ -399,8 +399,8 @@ So = {
|
|
|
399
399
|
listboxLabel: "候補",
|
|
400
400
|
selectedAnnouncement: (e) => `${e.optionText}、選択済み`
|
|
401
401
|
};
|
|
402
|
-
var
|
|
403
|
-
|
|
402
|
+
var Po = {};
|
|
403
|
+
Po = {
|
|
404
404
|
buttonLabel: "제안 사항 표시",
|
|
405
405
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
406
406
|
one: () => `${o.number(e.optionCount)}개 옵션`,
|
|
@@ -419,8 +419,8 @@ Lo = {
|
|
|
419
419
|
listboxLabel: "제안",
|
|
420
420
|
selectedAnnouncement: (e) => `${e.optionText}, 선택됨`
|
|
421
421
|
};
|
|
422
|
-
var
|
|
423
|
-
|
|
422
|
+
var Io = {};
|
|
423
|
+
Io = {
|
|
424
424
|
buttonLabel: "Rodyti pasiūlymus",
|
|
425
425
|
countAnnouncement: (e, o) => `Yra ${o.plural(e.optionCount, {
|
|
426
426
|
one: () => `${o.number(e.optionCount)} parinktis`,
|
|
@@ -439,8 +439,8 @@ Po = {
|
|
|
439
439
|
listboxLabel: "Pasiūlymai",
|
|
440
440
|
selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
|
|
441
441
|
};
|
|
442
|
-
var
|
|
443
|
-
|
|
442
|
+
var wo = {};
|
|
443
|
+
wo = {
|
|
444
444
|
buttonLabel: "Rādīt ieteikumus",
|
|
445
445
|
countAnnouncement: (e, o) => `Pieejamo opciju skaits: ${o.plural(e.optionCount, {
|
|
446
446
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -459,8 +459,8 @@ Io = {
|
|
|
459
459
|
listboxLabel: "Ieteikumi",
|
|
460
460
|
selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
|
|
461
461
|
};
|
|
462
|
-
var
|
|
463
|
-
|
|
462
|
+
var ko = {};
|
|
463
|
+
ko = {
|
|
464
464
|
buttonLabel: "Vis forslag",
|
|
465
465
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
466
466
|
one: () => `${o.number(e.optionCount)} alternativ`,
|
|
@@ -479,8 +479,8 @@ wo = {
|
|
|
479
479
|
listboxLabel: "Forslag",
|
|
480
480
|
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
481
481
|
};
|
|
482
|
-
var
|
|
483
|
-
|
|
482
|
+
var Ko = {};
|
|
483
|
+
Ko = {
|
|
484
484
|
buttonLabel: "Suggesties weergeven",
|
|
485
485
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
486
486
|
one: () => `${o.number(e.optionCount)} optie`,
|
|
@@ -499,8 +499,8 @@ ko = {
|
|
|
499
499
|
listboxLabel: "Suggesties",
|
|
500
500
|
selectedAnnouncement: (e) => `${e.optionText}, geselecteerd`
|
|
501
501
|
};
|
|
502
|
-
var
|
|
503
|
-
|
|
502
|
+
var Ro = {};
|
|
503
|
+
Ro = {
|
|
504
504
|
buttonLabel: "Wyświetlaj sugestie",
|
|
505
505
|
countAnnouncement: (e, o) => `dostępna/dostępne(-nych) ${o.plural(e.optionCount, {
|
|
506
506
|
one: () => `${o.number(e.optionCount)} opcja`,
|
|
@@ -519,8 +519,8 @@ Ko = {
|
|
|
519
519
|
listboxLabel: "Sugestie",
|
|
520
520
|
selectedAnnouncement: (e) => `${e.optionText}, wybrano`
|
|
521
521
|
};
|
|
522
|
-
var
|
|
523
|
-
|
|
522
|
+
var Oo = {};
|
|
523
|
+
Oo = {
|
|
524
524
|
buttonLabel: "Mostrar sugestões",
|
|
525
525
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
526
526
|
one: () => `${o.number(e.optionCount)} opção`,
|
|
@@ -539,8 +539,8 @@ Ro = {
|
|
|
539
539
|
listboxLabel: "Sugestões",
|
|
540
540
|
selectedAnnouncement: (e) => `${e.optionText}, selecionado`
|
|
541
541
|
};
|
|
542
|
-
var
|
|
543
|
-
|
|
542
|
+
var Vo = {};
|
|
543
|
+
Vo = {
|
|
544
544
|
buttonLabel: "Apresentar sugestões",
|
|
545
545
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
546
546
|
one: () => `${o.number(e.optionCount)} opção`,
|
|
@@ -559,8 +559,8 @@ Oo = {
|
|
|
559
559
|
listboxLabel: "Sugestões",
|
|
560
560
|
selectedAnnouncement: (e) => `${e.optionText}, selecionado`
|
|
561
561
|
};
|
|
562
|
-
var
|
|
563
|
-
|
|
562
|
+
var Mo = {};
|
|
563
|
+
Mo = {
|
|
564
564
|
buttonLabel: "Afișare sugestii",
|
|
565
565
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
566
566
|
one: () => `${o.number(e.optionCount)} opțiune`,
|
|
@@ -579,8 +579,8 @@ Vo = {
|
|
|
579
579
|
listboxLabel: "Sugestii",
|
|
580
580
|
selectedAnnouncement: (e) => `${e.optionText}, selectat`
|
|
581
581
|
};
|
|
582
|
-
var
|
|
583
|
-
|
|
582
|
+
var Go = {};
|
|
583
|
+
Go = {
|
|
584
584
|
buttonLabel: "Показать предложения",
|
|
585
585
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
586
586
|
one: () => `${o.number(e.optionCount)} параметр`,
|
|
@@ -599,8 +599,8 @@ Mo = {
|
|
|
599
599
|
listboxLabel: "Предложения",
|
|
600
600
|
selectedAnnouncement: (e) => `${e.optionText}, выбрано`
|
|
601
601
|
};
|
|
602
|
-
var
|
|
603
|
-
|
|
602
|
+
var zo = {};
|
|
603
|
+
zo = {
|
|
604
604
|
buttonLabel: "Zobraziť návrhy",
|
|
605
605
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
606
606
|
one: () => `${o.number(e.optionCount)} možnosť`,
|
|
@@ -659,8 +659,8 @@ jo = {
|
|
|
659
659
|
listboxLabel: "Predlozi",
|
|
660
660
|
selectedAnnouncement: (e) => `${e.optionText}, izabrano`
|
|
661
661
|
};
|
|
662
|
-
var
|
|
663
|
-
|
|
662
|
+
var Uo = {};
|
|
663
|
+
Uo = {
|
|
664
664
|
buttonLabel: "Visa förslag",
|
|
665
665
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
666
666
|
one: () => `${o.number(e.optionCount)} alternativ`,
|
|
@@ -679,8 +679,8 @@ zo = {
|
|
|
679
679
|
listboxLabel: "Förslag",
|
|
680
680
|
selectedAnnouncement: (e) => `${e.optionText}, valda`
|
|
681
681
|
};
|
|
682
|
-
var
|
|
683
|
-
|
|
682
|
+
var qo = {};
|
|
683
|
+
qo = {
|
|
684
684
|
buttonLabel: "Önerileri göster",
|
|
685
685
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
686
686
|
one: () => `${o.number(e.optionCount)} seçenek`,
|
|
@@ -699,8 +699,8 @@ Uo = {
|
|
|
699
699
|
listboxLabel: "Öneriler",
|
|
700
700
|
selectedAnnouncement: (e) => `${e.optionText}, seçildi`
|
|
701
701
|
};
|
|
702
|
-
var
|
|
703
|
-
|
|
702
|
+
var Wo = {};
|
|
703
|
+
Wo = {
|
|
704
704
|
buttonLabel: "Показати пропозиції",
|
|
705
705
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
706
706
|
one: () => `${o.number(e.optionCount)} параметр`,
|
|
@@ -719,8 +719,8 @@ qo = {
|
|
|
719
719
|
listboxLabel: "Пропозиції",
|
|
720
720
|
selectedAnnouncement: (e) => `${e.optionText}, вибрано`
|
|
721
721
|
};
|
|
722
|
-
var
|
|
723
|
-
|
|
722
|
+
var Ho = {};
|
|
723
|
+
Ho = {
|
|
724
724
|
buttonLabel: "显示建议",
|
|
725
725
|
countAnnouncement: (e, o) => `有 ${o.plural(e.optionCount, {
|
|
726
726
|
one: () => `${o.number(e.optionCount)} 个选项`,
|
|
@@ -739,8 +739,8 @@ Wo = {
|
|
|
739
739
|
listboxLabel: "建议",
|
|
740
740
|
selectedAnnouncement: (e) => `${e.optionText}, 已选择`
|
|
741
741
|
};
|
|
742
|
-
var
|
|
743
|
-
|
|
742
|
+
var Jo = {};
|
|
743
|
+
Jo = {
|
|
744
744
|
buttonLabel: "顯示建議",
|
|
745
745
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
746
746
|
one: () => `${o.number(e.optionCount)} 選項`,
|
|
@@ -759,92 +759,92 @@ Ho = {
|
|
|
759
759
|
listboxLabel: "建議",
|
|
760
760
|
selectedAnnouncement: (e) => `${e.optionText}, 已選取`
|
|
761
761
|
};
|
|
762
|
-
var
|
|
763
|
-
|
|
764
|
-
"ar-AE":
|
|
765
|
-
"bg-BG":
|
|
766
|
-
"cs-CZ":
|
|
767
|
-
"da-DK":
|
|
768
|
-
"de-DE":
|
|
769
|
-
"el-GR":
|
|
770
|
-
"en-US":
|
|
771
|
-
"es-ES":
|
|
772
|
-
"et-EE":
|
|
773
|
-
"fi-FI":
|
|
774
|
-
"fr-FR":
|
|
775
|
-
"he-IL":
|
|
776
|
-
"hr-HR":
|
|
777
|
-
"hu-HU":
|
|
762
|
+
var Zo = {};
|
|
763
|
+
Zo = {
|
|
764
|
+
"ar-AE": fo,
|
|
765
|
+
"bg-BG": mo,
|
|
766
|
+
"cs-CZ": xo,
|
|
767
|
+
"da-DK": Co,
|
|
768
|
+
"de-DE": ho,
|
|
769
|
+
"el-GR": vo,
|
|
770
|
+
"en-US": yo,
|
|
771
|
+
"es-ES": Ao,
|
|
772
|
+
"et-EE": Eo,
|
|
773
|
+
"fi-FI": Bo,
|
|
774
|
+
"fr-FR": go,
|
|
775
|
+
"he-IL": To,
|
|
776
|
+
"hr-HR": Fo,
|
|
777
|
+
"hu-HU": So,
|
|
778
778
|
"it-IT": Do,
|
|
779
|
-
"ja-JP":
|
|
780
|
-
"ko-KR":
|
|
781
|
-
"lt-LT":
|
|
782
|
-
"lv-LV":
|
|
783
|
-
"nb-NO":
|
|
784
|
-
"nl-NL":
|
|
785
|
-
"pl-PL":
|
|
786
|
-
"pt-BR":
|
|
787
|
-
"pt-PT":
|
|
788
|
-
"ro-RO":
|
|
789
|
-
"ru-RU":
|
|
790
|
-
"sk-SK":
|
|
779
|
+
"ja-JP": Lo,
|
|
780
|
+
"ko-KR": Po,
|
|
781
|
+
"lt-LT": Io,
|
|
782
|
+
"lv-LV": wo,
|
|
783
|
+
"nb-NO": ko,
|
|
784
|
+
"nl-NL": Ko,
|
|
785
|
+
"pl-PL": Ro,
|
|
786
|
+
"pt-BR": Oo,
|
|
787
|
+
"pt-PT": Vo,
|
|
788
|
+
"ro-RO": Mo,
|
|
789
|
+
"ru-RU": Go,
|
|
790
|
+
"sk-SK": zo,
|
|
791
791
|
"sl-SI": No,
|
|
792
792
|
"sr-SP": jo,
|
|
793
|
-
"sv-SE":
|
|
794
|
-
"tr-TR":
|
|
795
|
-
"uk-UA":
|
|
796
|
-
"zh-CN":
|
|
797
|
-
"zh-TW":
|
|
793
|
+
"sv-SE": Uo,
|
|
794
|
+
"tr-TR": qo,
|
|
795
|
+
"uk-UA": Wo,
|
|
796
|
+
"zh-CN": Ho,
|
|
797
|
+
"zh-TW": Jo
|
|
798
798
|
};
|
|
799
|
-
function
|
|
799
|
+
function Ku(e) {
|
|
800
800
|
return e && e.__esModule ? e.default : e;
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
let { buttonRef:
|
|
804
|
-
|
|
805
|
-
let
|
|
802
|
+
function Ru(e, o) {
|
|
803
|
+
let { buttonRef: n, popoverRef: t, inputRef: u, listBoxRef: c, keyboardDelegate: $, layoutDelegate: r, shouldFocusWrap: l, isReadOnly: x, isDisabled: A } = e, C = T(null);
|
|
804
|
+
n = n ?? C;
|
|
805
|
+
let B = co(Ku(Zo), "@react-aria/combobox"), { menuTriggerProps: m, menuProps: g } = Xn({
|
|
806
806
|
type: "listbox",
|
|
807
|
-
isDisabled:
|
|
808
|
-
}, o,
|
|
809
|
-
|
|
807
|
+
isDisabled: A || x
|
|
808
|
+
}, o, n);
|
|
809
|
+
jn.set(o, {
|
|
810
810
|
id: g.id
|
|
811
811
|
});
|
|
812
|
-
let { collection:
|
|
813
|
-
collection:
|
|
812
|
+
let { collection: f } = o, { disabledKeys: h } = o.selectionManager, b = ae(() => $ || new ru({
|
|
813
|
+
collection: f,
|
|
814
814
|
disabledKeys: h,
|
|
815
|
-
ref:
|
|
816
|
-
layoutDelegate:
|
|
815
|
+
ref: c,
|
|
816
|
+
layoutDelegate: r
|
|
817
817
|
}), [
|
|
818
|
-
b,
|
|
819
|
-
c,
|
|
820
818
|
$,
|
|
819
|
+
r,
|
|
820
|
+
f,
|
|
821
821
|
h,
|
|
822
|
-
|
|
823
|
-
]), { collectionProps: S } =
|
|
822
|
+
c
|
|
823
|
+
]), { collectionProps: S } = au({
|
|
824
824
|
selectionManager: o.selectionManager,
|
|
825
|
-
keyboardDelegate:
|
|
825
|
+
keyboardDelegate: b,
|
|
826
826
|
disallowTypeAhead: !0,
|
|
827
827
|
disallowEmptySelection: !0,
|
|
828
|
-
shouldFocusWrap:
|
|
829
|
-
ref:
|
|
828
|
+
shouldFocusWrap: l,
|
|
829
|
+
ref: u,
|
|
830
830
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
831
831
|
isVirtualized: !0
|
|
832
|
-
}), K =
|
|
833
|
-
if (!
|
|
834
|
-
switch (
|
|
832
|
+
}), K = vu(), G = (p) => {
|
|
833
|
+
if (!p.nativeEvent.isComposing)
|
|
834
|
+
switch (p.key) {
|
|
835
835
|
case "Enter":
|
|
836
836
|
case "Tab":
|
|
837
|
-
if (o.isOpen &&
|
|
838
|
-
let
|
|
839
|
-
if (
|
|
840
|
-
let
|
|
841
|
-
|
|
837
|
+
if (o.isOpen && p.key === "Enter" && p.preventDefault(), o.isOpen && c.current && o.selectionManager.focusedKey != null && o.selectionManager.isLink(o.selectionManager.focusedKey)) {
|
|
838
|
+
let E = c.current.querySelector(`[data-key="${CSS.escape(o.selectionManager.focusedKey.toString())}"]`);
|
|
839
|
+
if (p.key === "Enter" && E instanceof HTMLAnchorElement) {
|
|
840
|
+
let d = o.collection.getItem(o.selectionManager.focusedKey);
|
|
841
|
+
d && K.open(E, p, d.props.href, d.props.routerOptions);
|
|
842
842
|
}
|
|
843
843
|
o.close();
|
|
844
844
|
} else o.commit();
|
|
845
845
|
break;
|
|
846
846
|
case "Escape":
|
|
847
|
-
(o.selectedKey !== null || o.inputValue === "" || e.allowsCustomValue) &&
|
|
847
|
+
(o.selectedKey !== null || o.inputValue === "" || e.allowsCustomValue) && p.continuePropagation(), o.revert();
|
|
848
848
|
break;
|
|
849
849
|
case "ArrowDown":
|
|
850
850
|
o.open("first", "manual");
|
|
@@ -857,127 +857,127 @@ function Kn(e, o) {
|
|
|
857
857
|
o.selectionManager.setFocusedKey(null);
|
|
858
858
|
break;
|
|
859
859
|
}
|
|
860
|
-
},
|
|
861
|
-
var
|
|
862
|
-
let
|
|
863
|
-
|
|
864
|
-
},
|
|
865
|
-
o.isFocused || (e.onFocus && e.onFocus(
|
|
866
|
-
}, { isInvalid: z, validationErrors:
|
|
860
|
+
}, D = (p) => {
|
|
861
|
+
var E;
|
|
862
|
+
let d = n?.current && n.current === p.relatedTarget, J = (E = t.current) === null || E === void 0 ? void 0 : E.contains(p.relatedTarget);
|
|
863
|
+
d || J || (e.onBlur && e.onBlur(p), o.setFocused(!1));
|
|
864
|
+
}, Q = (p) => {
|
|
865
|
+
o.isFocused || (e.onFocus && e.onFocus(p), o.setFocused(!0));
|
|
866
|
+
}, { isInvalid: z, validationErrors: q, validationDetails: N } = o.displayValidation, { labelProps: w, inputProps: oe, descriptionProps: V, errorMessageProps: j } = ro({
|
|
867
867
|
...e,
|
|
868
868
|
onChange: o.setInputValue,
|
|
869
|
-
onKeyDown: x ? e.onKeyDown :
|
|
870
|
-
onBlur:
|
|
869
|
+
onKeyDown: x ? e.onKeyDown : mu(o.isOpen && S.onKeyDown, G, e.onKeyDown),
|
|
870
|
+
onBlur: D,
|
|
871
871
|
value: o.inputValue,
|
|
872
872
|
defaultValue: o.defaultInputValue,
|
|
873
|
-
onFocus:
|
|
873
|
+
onFocus: Q,
|
|
874
874
|
autoComplete: "off",
|
|
875
875
|
validate: void 0,
|
|
876
|
-
[
|
|
877
|
-
},
|
|
878
|
-
if (
|
|
879
|
-
var
|
|
880
|
-
(
|
|
876
|
+
[iu]: o
|
|
877
|
+
}, u), W = (p) => {
|
|
878
|
+
if (p.pointerType === "touch") {
|
|
879
|
+
var E;
|
|
880
|
+
(E = u.current) === null || E === void 0 || E.focus(), o.toggle(null, "manual");
|
|
881
881
|
}
|
|
882
|
-
},
|
|
883
|
-
if (
|
|
884
|
-
var
|
|
885
|
-
(
|
|
882
|
+
}, F = (p) => {
|
|
883
|
+
if (p.pointerType !== "touch") {
|
|
884
|
+
var E;
|
|
885
|
+
(E = u.current) === null || E === void 0 || E.focus(), o.toggle(p.pointerType === "keyboard" || p.pointerType === "virtual" ? "first" : null, "manual");
|
|
886
886
|
}
|
|
887
|
-
},
|
|
887
|
+
}, i = Te({
|
|
888
888
|
id: m.id,
|
|
889
|
-
"aria-label":
|
|
889
|
+
"aria-label": B.format("buttonLabel"),
|
|
890
890
|
"aria-labelledby": e["aria-labelledby"] || w.id
|
|
891
891
|
}), a = Te({
|
|
892
892
|
id: g.id,
|
|
893
|
-
"aria-label":
|
|
893
|
+
"aria-label": B.format("listboxLabel"),
|
|
894
894
|
"aria-labelledby": e["aria-labelledby"] || w.id
|
|
895
|
-
}),
|
|
896
|
-
if (
|
|
897
|
-
if (
|
|
898
|
-
var
|
|
899
|
-
|
|
895
|
+
}), v = T(0), M = (p) => {
|
|
896
|
+
if (A || x) return;
|
|
897
|
+
if (p.timeStamp - v.current < 500) {
|
|
898
|
+
var E;
|
|
899
|
+
p.preventDefault(), (E = u.current) === null || E === void 0 || E.focus();
|
|
900
900
|
return;
|
|
901
901
|
}
|
|
902
|
-
let
|
|
903
|
-
if (
|
|
904
|
-
var
|
|
905
|
-
|
|
902
|
+
let d = p.target.getBoundingClientRect(), J = p.changedTouches[0], Z = Math.ceil(d.left + 0.5 * d.width), ee = Math.ceil(d.top + 0.5 * d.height);
|
|
903
|
+
if (J.clientX === Z && J.clientY === ee) {
|
|
904
|
+
var le;
|
|
905
|
+
p.preventDefault(), (le = u.current) === null || le === void 0 || le.focus(), o.toggle(null, "manual"), v.current = p.timeStamp;
|
|
906
906
|
}
|
|
907
|
-
},
|
|
907
|
+
}, L = o.selectionManager.focusedKey != null && o.isOpen ? o.collection.getItem(o.selectionManager.focusedKey) : void 0;
|
|
908
908
|
var P;
|
|
909
|
-
let
|
|
910
|
-
var
|
|
911
|
-
let _ = (
|
|
912
|
-
|
|
913
|
-
if (ye() &&
|
|
914
|
-
let
|
|
915
|
-
var
|
|
916
|
-
let
|
|
917
|
-
isGroupChange: (
|
|
918
|
-
groupTitle:
|
|
919
|
-
groupCount:
|
|
920
|
-
...uo(
|
|
909
|
+
let R = (P = L?.parentKey) !== null && P !== void 0 ? P : null;
|
|
910
|
+
var H;
|
|
911
|
+
let _ = (H = o.selectionManager.focusedKey) !== null && H !== void 0 ? H : null, ie = T(R), U = T(_);
|
|
912
|
+
ue(() => {
|
|
913
|
+
if (ye() && L != null && _ != null && _ !== U.current) {
|
|
914
|
+
let E = o.selectionManager.isSelected(_), d = R != null ? o.collection.getItem(R) : null, J = d?.["aria-label"] || (typeof d?.rendered == "string" ? d.rendered : "") || "";
|
|
915
|
+
var p;
|
|
916
|
+
let Z = B.format("focusAnnouncement", {
|
|
917
|
+
isGroupChange: (p = d && R !== ie.current) !== null && p !== void 0 ? p : !1,
|
|
918
|
+
groupTitle: J,
|
|
919
|
+
groupCount: d ? [
|
|
920
|
+
...uo(d, o.collection)
|
|
921
921
|
].length : 0,
|
|
922
|
-
optionText:
|
|
923
|
-
isSelected:
|
|
922
|
+
optionText: L["aria-label"] || L.textValue || "",
|
|
923
|
+
isSelected: E
|
|
924
924
|
});
|
|
925
|
-
ve(
|
|
925
|
+
ve(Z);
|
|
926
926
|
}
|
|
927
|
-
|
|
927
|
+
ie.current = R, U.current = _;
|
|
928
928
|
});
|
|
929
|
-
let
|
|
930
|
-
|
|
931
|
-
let
|
|
932
|
-
if (o.isOpen && (
|
|
933
|
-
let
|
|
934
|
-
optionCount:
|
|
929
|
+
let ne = Bu(o.collection), ce = T(ne), se = T(o.isOpen);
|
|
930
|
+
ue(() => {
|
|
931
|
+
let p = o.isOpen !== se.current && (o.selectionManager.focusedKey == null || ye());
|
|
932
|
+
if (o.isOpen && (p || ne !== ce.current)) {
|
|
933
|
+
let E = B.format("countAnnouncement", {
|
|
934
|
+
optionCount: ne
|
|
935
935
|
});
|
|
936
|
-
ve(
|
|
936
|
+
ve(E);
|
|
937
937
|
}
|
|
938
|
-
|
|
938
|
+
ce.current = ne, se.current = o.isOpen;
|
|
939
939
|
});
|
|
940
|
-
let
|
|
941
|
-
return
|
|
942
|
-
if (ye() && o.isFocused && o.selectedItem && o.selectedKey !==
|
|
943
|
-
let
|
|
944
|
-
optionText:
|
|
940
|
+
let de = T(o.selectedKey);
|
|
941
|
+
return ue(() => {
|
|
942
|
+
if (ye() && o.isFocused && o.selectedItem && o.selectedKey !== de.current) {
|
|
943
|
+
let p = o.selectedItem["aria-label"] || o.selectedItem.textValue || "", E = B.format("selectedAnnouncement", {
|
|
944
|
+
optionText: p
|
|
945
945
|
});
|
|
946
|
-
ve(
|
|
946
|
+
ve(E);
|
|
947
947
|
}
|
|
948
|
-
|
|
949
|
-
}),
|
|
950
|
-
if (o.isOpen) return
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
].filter((
|
|
948
|
+
de.current = o.selectedKey;
|
|
949
|
+
}), ue(() => {
|
|
950
|
+
if (o.isOpen) return Yn([
|
|
951
|
+
u.current,
|
|
952
|
+
t.current
|
|
953
|
+
].filter((p) => p != null));
|
|
954
954
|
}, [
|
|
955
955
|
o.isOpen,
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
]),
|
|
959
|
-
!
|
|
956
|
+
u,
|
|
957
|
+
t
|
|
958
|
+
]), yu(() => {
|
|
959
|
+
!L && u.current && ge(io(u.current)) === u.current && Be(u.current, null);
|
|
960
960
|
}, [
|
|
961
|
-
|
|
961
|
+
L
|
|
962
962
|
]), {
|
|
963
963
|
labelProps: w,
|
|
964
964
|
buttonProps: {
|
|
965
965
|
...m,
|
|
966
|
-
...
|
|
966
|
+
...i,
|
|
967
967
|
excludeFromTabOrder: !0,
|
|
968
968
|
preventFocusOnPress: !0,
|
|
969
|
-
onPress:
|
|
970
|
-
onPressStart:
|
|
971
|
-
isDisabled:
|
|
969
|
+
onPress: W,
|
|
970
|
+
onPressStart: F,
|
|
971
|
+
isDisabled: A || x
|
|
972
972
|
},
|
|
973
|
-
inputProps: pe(
|
|
973
|
+
inputProps: pe(oe, {
|
|
974
974
|
role: "combobox",
|
|
975
975
|
"aria-expanded": m["aria-expanded"],
|
|
976
976
|
"aria-controls": o.isOpen ? g.id : void 0,
|
|
977
977
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
978
978
|
"aria-autocomplete": "list",
|
|
979
|
-
"aria-activedescendant":
|
|
980
|
-
onTouchEnd:
|
|
979
|
+
"aria-activedescendant": L ? Un(o, L.key) : void 0,
|
|
980
|
+
onTouchEnd: M,
|
|
981
981
|
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
982
982
|
autoCorrect: "off",
|
|
983
983
|
// This disable's the macOS Safari spell check auto corrections.
|
|
@@ -990,250 +990,250 @@ function Kn(e, o) {
|
|
|
990
990
|
shouldFocusOnHover: !0,
|
|
991
991
|
linkBehavior: "selection"
|
|
992
992
|
}),
|
|
993
|
-
descriptionProps:
|
|
994
|
-
errorMessageProps:
|
|
993
|
+
descriptionProps: V,
|
|
994
|
+
errorMessageProps: j,
|
|
995
995
|
isInvalid: z,
|
|
996
|
-
validationErrors:
|
|
997
|
-
validationDetails:
|
|
996
|
+
validationErrors: q,
|
|
997
|
+
validationDetails: N
|
|
998
998
|
};
|
|
999
999
|
}
|
|
1000
|
-
var Zo = {};
|
|
1001
|
-
Zo = {
|
|
1002
|
-
collectionLabel: "مقترحات"
|
|
1003
|
-
};
|
|
1004
1000
|
var Xo = {};
|
|
1005
1001
|
Xo = {
|
|
1006
|
-
collectionLabel: "
|
|
1002
|
+
collectionLabel: "مقترحات"
|
|
1007
1003
|
};
|
|
1008
1004
|
var Yo = {};
|
|
1009
1005
|
Yo = {
|
|
1010
|
-
collectionLabel: "
|
|
1006
|
+
collectionLabel: "Предложения"
|
|
1011
1007
|
};
|
|
1012
1008
|
var Qo = {};
|
|
1013
1009
|
Qo = {
|
|
1014
|
-
collectionLabel: "
|
|
1010
|
+
collectionLabel: "Návrhy"
|
|
1015
1011
|
};
|
|
1016
1012
|
var _o = {};
|
|
1017
1013
|
_o = {
|
|
1014
|
+
collectionLabel: "Forslag"
|
|
1015
|
+
};
|
|
1016
|
+
var en = {};
|
|
1017
|
+
en = {
|
|
1018
1018
|
collectionLabel: "Empfehlungen"
|
|
1019
1019
|
};
|
|
1020
|
-
var
|
|
1021
|
-
|
|
1020
|
+
var on = {};
|
|
1021
|
+
on = {
|
|
1022
1022
|
collectionLabel: "Προτάσεις"
|
|
1023
1023
|
};
|
|
1024
|
-
var
|
|
1025
|
-
|
|
1024
|
+
var nn = {};
|
|
1025
|
+
nn = {
|
|
1026
1026
|
collectionLabel: "Suggestions"
|
|
1027
1027
|
};
|
|
1028
|
-
var
|
|
1029
|
-
|
|
1028
|
+
var un = {};
|
|
1029
|
+
un = {
|
|
1030
1030
|
collectionLabel: "Sugerencias"
|
|
1031
1031
|
};
|
|
1032
|
-
var
|
|
1033
|
-
|
|
1032
|
+
var tn = {};
|
|
1033
|
+
tn = {
|
|
1034
1034
|
collectionLabel: "Soovitused"
|
|
1035
1035
|
};
|
|
1036
|
-
var
|
|
1037
|
-
|
|
1036
|
+
var ln = {};
|
|
1037
|
+
ln = {
|
|
1038
1038
|
collectionLabel: "Ehdotukset"
|
|
1039
1039
|
};
|
|
1040
|
-
var
|
|
1041
|
-
|
|
1040
|
+
var cn = {};
|
|
1041
|
+
cn = {
|
|
1042
1042
|
collectionLabel: "Suggestions"
|
|
1043
1043
|
};
|
|
1044
|
-
var
|
|
1045
|
-
|
|
1044
|
+
var rn = {};
|
|
1045
|
+
rn = {
|
|
1046
1046
|
collectionLabel: "הצעות"
|
|
1047
1047
|
};
|
|
1048
|
-
var
|
|
1049
|
-
|
|
1048
|
+
var an = {};
|
|
1049
|
+
an = {
|
|
1050
1050
|
collectionLabel: "Prijedlozi"
|
|
1051
1051
|
};
|
|
1052
|
-
var
|
|
1053
|
-
|
|
1052
|
+
var sn = {};
|
|
1053
|
+
sn = {
|
|
1054
1054
|
collectionLabel: "Javaslatok"
|
|
1055
1055
|
};
|
|
1056
|
-
var
|
|
1057
|
-
|
|
1056
|
+
var dn = {};
|
|
1057
|
+
dn = {
|
|
1058
1058
|
collectionLabel: "Suggerimenti"
|
|
1059
1059
|
};
|
|
1060
|
-
var
|
|
1061
|
-
|
|
1060
|
+
var pn = {};
|
|
1061
|
+
pn = {
|
|
1062
1062
|
collectionLabel: "候補"
|
|
1063
1063
|
};
|
|
1064
|
-
var
|
|
1065
|
-
|
|
1064
|
+
var $n = {};
|
|
1065
|
+
$n = {
|
|
1066
1066
|
collectionLabel: "제안"
|
|
1067
1067
|
};
|
|
1068
|
-
var
|
|
1069
|
-
|
|
1068
|
+
var bn = {};
|
|
1069
|
+
bn = {
|
|
1070
1070
|
collectionLabel: "Pasiūlymai"
|
|
1071
1071
|
};
|
|
1072
|
-
var
|
|
1073
|
-
|
|
1072
|
+
var fn = {};
|
|
1073
|
+
fn = {
|
|
1074
1074
|
collectionLabel: "Ieteikumi"
|
|
1075
1075
|
};
|
|
1076
|
-
var
|
|
1077
|
-
|
|
1076
|
+
var mn = {};
|
|
1077
|
+
mn = {
|
|
1078
1078
|
collectionLabel: "Forslag"
|
|
1079
1079
|
};
|
|
1080
|
-
var
|
|
1081
|
-
|
|
1080
|
+
var xn = {};
|
|
1081
|
+
xn = {
|
|
1082
1082
|
collectionLabel: "Suggesties"
|
|
1083
1083
|
};
|
|
1084
|
-
var
|
|
1085
|
-
|
|
1084
|
+
var Cn = {};
|
|
1085
|
+
Cn = {
|
|
1086
1086
|
collectionLabel: "Sugestie"
|
|
1087
1087
|
};
|
|
1088
|
-
var
|
|
1089
|
-
|
|
1088
|
+
var hn = {};
|
|
1089
|
+
hn = {
|
|
1090
1090
|
collectionLabel: "Sugestões"
|
|
1091
1091
|
};
|
|
1092
|
-
var
|
|
1093
|
-
|
|
1092
|
+
var vn = {};
|
|
1093
|
+
vn = {
|
|
1094
1094
|
collectionLabel: "Sugestões"
|
|
1095
1095
|
};
|
|
1096
|
-
var
|
|
1097
|
-
|
|
1096
|
+
var yn = {};
|
|
1097
|
+
yn = {
|
|
1098
1098
|
collectionLabel: "Sugestii"
|
|
1099
1099
|
};
|
|
1100
|
-
var
|
|
1101
|
-
|
|
1100
|
+
var An = {};
|
|
1101
|
+
An = {
|
|
1102
1102
|
collectionLabel: "Предложения"
|
|
1103
1103
|
};
|
|
1104
|
-
var
|
|
1105
|
-
|
|
1104
|
+
var En = {};
|
|
1105
|
+
En = {
|
|
1106
1106
|
collectionLabel: "Návrhy"
|
|
1107
1107
|
};
|
|
1108
|
-
var
|
|
1109
|
-
|
|
1108
|
+
var Bn = {};
|
|
1109
|
+
Bn = {
|
|
1110
1110
|
collectionLabel: "Predlogi"
|
|
1111
1111
|
};
|
|
1112
|
-
var
|
|
1113
|
-
|
|
1112
|
+
var gn = {};
|
|
1113
|
+
gn = {
|
|
1114
1114
|
collectionLabel: "Predlozi"
|
|
1115
1115
|
};
|
|
1116
|
-
var
|
|
1117
|
-
|
|
1116
|
+
var Tn = {};
|
|
1117
|
+
Tn = {
|
|
1118
1118
|
collectionLabel: "Förslag"
|
|
1119
1119
|
};
|
|
1120
|
-
var
|
|
1121
|
-
|
|
1120
|
+
var Fn = {};
|
|
1121
|
+
Fn = {
|
|
1122
1122
|
collectionLabel: "Öneriler"
|
|
1123
1123
|
};
|
|
1124
|
-
var
|
|
1125
|
-
|
|
1124
|
+
var Sn = {};
|
|
1125
|
+
Sn = {
|
|
1126
1126
|
collectionLabel: "Пропозиції"
|
|
1127
1127
|
};
|
|
1128
|
-
var
|
|
1129
|
-
|
|
1128
|
+
var Dn = {};
|
|
1129
|
+
Dn = {
|
|
1130
1130
|
collectionLabel: "建议"
|
|
1131
1131
|
};
|
|
1132
|
-
var
|
|
1133
|
-
|
|
1132
|
+
var Ln = {};
|
|
1133
|
+
Ln = {
|
|
1134
1134
|
collectionLabel: "建議"
|
|
1135
1135
|
};
|
|
1136
|
-
var
|
|
1137
|
-
|
|
1138
|
-
"ar-AE":
|
|
1139
|
-
"bg-BG":
|
|
1140
|
-
"cs-CZ":
|
|
1141
|
-
"da-DK":
|
|
1142
|
-
"de-DE":
|
|
1143
|
-
"el-GR":
|
|
1144
|
-
"en-US":
|
|
1145
|
-
"es-ES":
|
|
1146
|
-
"et-EE":
|
|
1147
|
-
"fi-FI":
|
|
1148
|
-
"fr-FR":
|
|
1149
|
-
"he-IL":
|
|
1150
|
-
"hr-HR":
|
|
1151
|
-
"hu-HU":
|
|
1152
|
-
"it-IT":
|
|
1153
|
-
"ja-JP":
|
|
1154
|
-
"ko-KR":
|
|
1155
|
-
"lt-LT":
|
|
1156
|
-
"lv-LV":
|
|
1157
|
-
"nb-NO":
|
|
1158
|
-
"nl-NL":
|
|
1159
|
-
"pl-PL":
|
|
1160
|
-
"pt-BR":
|
|
1161
|
-
"pt-PT":
|
|
1162
|
-
"ro-RO":
|
|
1163
|
-
"ru-RU":
|
|
1164
|
-
"sk-SK":
|
|
1165
|
-
"sl-SI":
|
|
1166
|
-
"sr-SP":
|
|
1167
|
-
"sv-SE":
|
|
1168
|
-
"tr-TR":
|
|
1169
|
-
"uk-UA":
|
|
1170
|
-
"zh-CN":
|
|
1171
|
-
"zh-TW":
|
|
1172
|
-
};
|
|
1173
|
-
function
|
|
1136
|
+
var Pn = {};
|
|
1137
|
+
Pn = {
|
|
1138
|
+
"ar-AE": Xo,
|
|
1139
|
+
"bg-BG": Yo,
|
|
1140
|
+
"cs-CZ": Qo,
|
|
1141
|
+
"da-DK": _o,
|
|
1142
|
+
"de-DE": en,
|
|
1143
|
+
"el-GR": on,
|
|
1144
|
+
"en-US": nn,
|
|
1145
|
+
"es-ES": un,
|
|
1146
|
+
"et-EE": tn,
|
|
1147
|
+
"fi-FI": ln,
|
|
1148
|
+
"fr-FR": cn,
|
|
1149
|
+
"he-IL": rn,
|
|
1150
|
+
"hr-HR": an,
|
|
1151
|
+
"hu-HU": sn,
|
|
1152
|
+
"it-IT": dn,
|
|
1153
|
+
"ja-JP": pn,
|
|
1154
|
+
"ko-KR": $n,
|
|
1155
|
+
"lt-LT": bn,
|
|
1156
|
+
"lv-LV": fn,
|
|
1157
|
+
"nb-NO": mn,
|
|
1158
|
+
"nl-NL": xn,
|
|
1159
|
+
"pl-PL": Cn,
|
|
1160
|
+
"pt-BR": hn,
|
|
1161
|
+
"pt-PT": vn,
|
|
1162
|
+
"ro-RO": yn,
|
|
1163
|
+
"ru-RU": An,
|
|
1164
|
+
"sk-SK": En,
|
|
1165
|
+
"sl-SI": Bn,
|
|
1166
|
+
"sr-SP": gn,
|
|
1167
|
+
"sv-SE": Tn,
|
|
1168
|
+
"tr-TR": Fn,
|
|
1169
|
+
"uk-UA": Sn,
|
|
1170
|
+
"zh-CN": Dn,
|
|
1171
|
+
"zh-TW": Ln
|
|
1172
|
+
};
|
|
1173
|
+
function Ou(e) {
|
|
1174
1174
|
return e && e.__esModule ? e.default : e;
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
let { inputRef:
|
|
1178
|
-
|
|
1179
|
-
let g = be((
|
|
1180
|
-
!
|
|
1181
|
-
let a =
|
|
1182
|
-
|
|
1176
|
+
function Vu(e, o) {
|
|
1177
|
+
let { inputRef: n, collectionRef: t, filter: u, disableAutoFocusFirst: c = !1, disableVirtualFocus: $ = !1 } = e, r = xu(), l = T(void 0), x = T(!1), A = T(null), C = T(null), m = !(Du() === "virtual" && (Au() || Eu())) && !$;
|
|
1178
|
+
ue(() => () => clearTimeout(l.current), []);
|
|
1179
|
+
let g = be((i) => {
|
|
1180
|
+
!i.isTrusted && m && n.current && ge(io(n.current)) !== n.current && n.current.focus();
|
|
1181
|
+
let a = i.target;
|
|
1182
|
+
i.isTrusted || !a || A.current === a.id || (clearTimeout(l.current), a !== t.current ? x.current ? (A.current = a.id, l.current = setTimeout(() => {
|
|
1183
1183
|
o.setFocusedNodeId(a.id);
|
|
1184
|
-
}, 500)) : (
|
|
1185
|
-
}),
|
|
1184
|
+
}, 500)) : (A.current = a.id, o.setFocusedNodeId(a.id)) : (A.current = null, o.setFocusedNodeId(null)), x.current = !1);
|
|
1185
|
+
}), f = O((i) => {
|
|
1186
1186
|
var a;
|
|
1187
|
-
if (
|
|
1188
|
-
var
|
|
1189
|
-
(
|
|
1187
|
+
if (i != null) {
|
|
1188
|
+
var v;
|
|
1189
|
+
(v = C.current) === null || v === void 0 || v.removeEventListener("focusin", g), C.current = i, i.addEventListener("focusin", g);
|
|
1190
1190
|
} else (a = C.current) === null || a === void 0 || a.removeEventListener("focusin", g);
|
|
1191
1191
|
}, [
|
|
1192
1192
|
g
|
|
1193
|
-
]), h =
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
])),
|
|
1197
|
-
var
|
|
1198
|
-
x.current = !0, (
|
|
1193
|
+
]), h = bo(ae(() => We(t, f), [
|
|
1194
|
+
t,
|
|
1195
|
+
f
|
|
1196
|
+
])), b = be(() => {
|
|
1197
|
+
var i;
|
|
1198
|
+
x.current = !0, (i = t.current) === null || i === void 0 || i.dispatchEvent(new CustomEvent(Me, {
|
|
1199
1199
|
cancelable: !0,
|
|
1200
1200
|
bubbles: !0,
|
|
1201
1201
|
detail: {
|
|
1202
1202
|
focusStrategy: "first"
|
|
1203
1203
|
}
|
|
1204
1204
|
}));
|
|
1205
|
-
}), S = be((
|
|
1205
|
+
}), S = be((i) => {
|
|
1206
1206
|
var a;
|
|
1207
|
-
|
|
1208
|
-
let
|
|
1207
|
+
su(ge()), A.current = null, o.setFocusedNodeId(null);
|
|
1208
|
+
let v = new CustomEvent(du, {
|
|
1209
1209
|
cancelable: !0,
|
|
1210
1210
|
bubbles: !0,
|
|
1211
1211
|
detail: {
|
|
1212
|
-
clearFocusKey:
|
|
1212
|
+
clearFocusKey: i
|
|
1213
1213
|
}
|
|
1214
1214
|
});
|
|
1215
|
-
clearTimeout(
|
|
1216
|
-
}), K =
|
|
1217
|
-
|
|
1218
|
-
let { inputType: a } =
|
|
1215
|
+
clearTimeout(l.current), x.current = !1, (a = t.current) === null || a === void 0 || a.dispatchEvent(v);
|
|
1216
|
+
}), K = T("");
|
|
1217
|
+
Su(n, "input", (i) => {
|
|
1218
|
+
let { inputType: a } = i;
|
|
1219
1219
|
K.current = a;
|
|
1220
1220
|
});
|
|
1221
|
-
let
|
|
1222
|
-
K.current === "insertText" && !
|
|
1223
|
-
},
|
|
1224
|
-
if (
|
|
1225
|
-
let a =
|
|
1226
|
-
switch (
|
|
1221
|
+
let G = (i) => {
|
|
1222
|
+
K.current === "insertText" && !c ? b() : (K.current.includes("insert") || K.current.includes("delete") || K.current.includes("history")) && (S(!0), $u(document) === n.current && Be(n.current, null)), o.setInputValue(i);
|
|
1223
|
+
}, D = T(null), Q = (i) => {
|
|
1224
|
+
if (D.current = i.target, i.nativeEvent.isComposing) return;
|
|
1225
|
+
let a = A.current;
|
|
1226
|
+
switch (i.key) {
|
|
1227
1227
|
case "a":
|
|
1228
|
-
if (
|
|
1228
|
+
if (pu(i)) return;
|
|
1229
1229
|
break;
|
|
1230
1230
|
case "Escape":
|
|
1231
|
-
if (
|
|
1231
|
+
if (i.isDefaultPrevented()) return;
|
|
1232
1232
|
break;
|
|
1233
1233
|
case " ":
|
|
1234
1234
|
return;
|
|
1235
1235
|
case "Tab":
|
|
1236
|
-
"continuePropagation" in
|
|
1236
|
+
"continuePropagation" in i && i.continuePropagation();
|
|
1237
1237
|
return;
|
|
1238
1238
|
case "Home":
|
|
1239
1239
|
case "End":
|
|
@@ -1241,28 +1241,28 @@ function On(e, o) {
|
|
|
1241
1241
|
case "PageUp":
|
|
1242
1242
|
case "ArrowUp":
|
|
1243
1243
|
case "ArrowDown": {
|
|
1244
|
-
var
|
|
1245
|
-
if ((
|
|
1246
|
-
|
|
1244
|
+
var v;
|
|
1245
|
+
if ((i.key === "Home" || i.key === "End") && a == null && i.shiftKey) return;
|
|
1246
|
+
i.preventDefault();
|
|
1247
1247
|
let P = new CustomEvent(Me, {
|
|
1248
1248
|
cancelable: !0,
|
|
1249
1249
|
bubbles: !0
|
|
1250
1250
|
});
|
|
1251
|
-
(
|
|
1251
|
+
(v = t.current) === null || v === void 0 || v.dispatchEvent(P);
|
|
1252
1252
|
break;
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
|
|
1256
|
-
let
|
|
1257
|
-
if (
|
|
1258
|
-
var
|
|
1259
|
-
if (a == null)
|
|
1255
|
+
i.isPropagationStopped() || i.stopPropagation();
|
|
1256
|
+
let M = !0;
|
|
1257
|
+
if (t.current !== null) {
|
|
1258
|
+
var L;
|
|
1259
|
+
if (a == null) M = ((L = t.current) === null || L === void 0 ? void 0 : L.dispatchEvent(new KeyboardEvent(i.nativeEvent.type, i.nativeEvent))) || !1;
|
|
1260
1260
|
else {
|
|
1261
1261
|
let P = document.getElementById(a);
|
|
1262
|
-
|
|
1262
|
+
M = P?.dispatchEvent(new KeyboardEvent(i.nativeEvent.type, i.nativeEvent)) || !1;
|
|
1263
1263
|
}
|
|
1264
1264
|
}
|
|
1265
|
-
if (
|
|
1265
|
+
if (M) switch (i.key) {
|
|
1266
1266
|
case "ArrowLeft":
|
|
1267
1267
|
case "ArrowRight":
|
|
1268
1268
|
S();
|
|
@@ -1275,59 +1275,59 @@ function On(e, o) {
|
|
|
1275
1275
|
break;
|
|
1276
1276
|
}
|
|
1277
1277
|
else
|
|
1278
|
-
|
|
1279
|
-
}, z = be((
|
|
1280
|
-
if (
|
|
1278
|
+
i.preventDefault();
|
|
1279
|
+
}, z = be((i) => {
|
|
1280
|
+
if (i.target === D.current) {
|
|
1281
1281
|
var a;
|
|
1282
|
-
|
|
1283
|
-
let
|
|
1284
|
-
if (
|
|
1282
|
+
i.stopImmediatePropagation();
|
|
1283
|
+
let v = A.current;
|
|
1284
|
+
if (v == null) (a = t.current) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent(i.type, i));
|
|
1285
1285
|
else {
|
|
1286
|
-
let
|
|
1287
|
-
|
|
1286
|
+
let M = document.getElementById(v);
|
|
1287
|
+
M?.dispatchEvent(new KeyboardEvent(i.type, i));
|
|
1288
1288
|
}
|
|
1289
1289
|
}
|
|
1290
1290
|
});
|
|
1291
|
-
|
|
1291
|
+
ue(() => (document.addEventListener("keyup", z, !0), () => {
|
|
1292
1292
|
document.removeEventListener("keyup", z, !0);
|
|
1293
1293
|
}), [
|
|
1294
1294
|
z
|
|
1295
1295
|
]);
|
|
1296
|
-
let
|
|
1297
|
-
id:
|
|
1298
|
-
"aria-label":
|
|
1299
|
-
}), w =
|
|
1296
|
+
let q = co(Ou(Pn), "@react-aria/autocomplete"), N = Te({
|
|
1297
|
+
id: r,
|
|
1298
|
+
"aria-label": q.format("collectionLabel")
|
|
1299
|
+
}), w = O((i, a) => u ? u(i, o.inputValue, a) : !0, [
|
|
1300
1300
|
o.inputValue,
|
|
1301
|
-
|
|
1302
|
-
]),
|
|
1303
|
-
if (!
|
|
1304
|
-
let a =
|
|
1305
|
-
a && Ge(a,
|
|
1306
|
-
},
|
|
1307
|
-
if (!
|
|
1308
|
-
let a =
|
|
1301
|
+
u
|
|
1302
|
+
]), oe = (i) => {
|
|
1303
|
+
if (!i.isTrusted) return;
|
|
1304
|
+
let a = A.current ? document.getElementById(A.current) : null;
|
|
1305
|
+
a && Ge(a, i.relatedTarget);
|
|
1306
|
+
}, V = (i) => {
|
|
1307
|
+
if (!i.isTrusted) return;
|
|
1308
|
+
let a = A.current ? document.getElementById(A.current) : null;
|
|
1309
1309
|
if (a) {
|
|
1310
|
-
let
|
|
1310
|
+
let v = i.target;
|
|
1311
1311
|
queueMicrotask(() => {
|
|
1312
|
-
Ge(
|
|
1312
|
+
Ge(v, a), Be(a, v);
|
|
1313
1313
|
});
|
|
1314
1314
|
}
|
|
1315
|
-
},
|
|
1315
|
+
}, j = {
|
|
1316
1316
|
value: o.inputValue,
|
|
1317
|
-
onChange:
|
|
1317
|
+
onChange: G
|
|
1318
1318
|
};
|
|
1319
|
-
var
|
|
1320
|
-
let
|
|
1321
|
-
onKeyDown:
|
|
1322
|
-
"aria-activedescendant": (
|
|
1323
|
-
onBlur:
|
|
1324
|
-
onFocus:
|
|
1319
|
+
var W;
|
|
1320
|
+
let F = {
|
|
1321
|
+
onKeyDown: Q,
|
|
1322
|
+
"aria-activedescendant": (W = o.focusedNodeId) !== null && W !== void 0 ? W : void 0,
|
|
1323
|
+
onBlur: oe,
|
|
1324
|
+
onFocus: V
|
|
1325
1325
|
};
|
|
1326
|
-
return
|
|
1327
|
-
...
|
|
1328
|
-
...m &&
|
|
1326
|
+
return r && (j = {
|
|
1327
|
+
...j,
|
|
1328
|
+
...m && F,
|
|
1329
1329
|
enterKeyHint: "go",
|
|
1330
|
-
"aria-controls":
|
|
1330
|
+
"aria-controls": r,
|
|
1331
1331
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
1332
1332
|
"aria-autocomplete": "list",
|
|
1333
1333
|
// This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
|
|
@@ -1336,316 +1336,316 @@ function On(e, o) {
|
|
|
1336
1336
|
spellCheck: "false",
|
|
1337
1337
|
autoComplete: "off"
|
|
1338
1338
|
}), {
|
|
1339
|
-
inputProps:
|
|
1340
|
-
collectionProps: pe(
|
|
1339
|
+
inputProps: j,
|
|
1340
|
+
collectionProps: pe(N, {
|
|
1341
1341
|
shouldUseVirtualFocus: m,
|
|
1342
1342
|
disallowTypeAhead: !0
|
|
1343
1343
|
}),
|
|
1344
1344
|
collectionRef: h,
|
|
1345
|
-
filter:
|
|
1345
|
+
filter: u != null ? w : void 0
|
|
1346
1346
|
};
|
|
1347
1347
|
}
|
|
1348
|
-
function
|
|
1349
|
-
let { onInputChange: o, inputValue:
|
|
1348
|
+
function Mu(e) {
|
|
1349
|
+
let { onInputChange: o, inputValue: n, defaultInputValue: t = "" } = e, u = (x) => {
|
|
1350
1350
|
o && o(x);
|
|
1351
|
-
}, [
|
|
1351
|
+
}, [c, $] = X(null), [r, l] = lo(n, t, u);
|
|
1352
1352
|
return {
|
|
1353
|
-
inputValue:
|
|
1354
|
-
setInputValue:
|
|
1355
|
-
focusedNodeId:
|
|
1356
|
-
setFocusedNodeId:
|
|
1353
|
+
inputValue: r,
|
|
1354
|
+
setInputValue: l,
|
|
1355
|
+
focusedNodeId: c,
|
|
1356
|
+
setFocusedNodeId: $
|
|
1357
1357
|
};
|
|
1358
1358
|
}
|
|
1359
|
-
const
|
|
1360
|
-
function
|
|
1361
|
-
let o =
|
|
1359
|
+
const Gu = /* @__PURE__ */ $e(null), zu = /* @__PURE__ */ $e(null);
|
|
1360
|
+
function Nu(e) {
|
|
1361
|
+
let o = Se(Gu, e.slot);
|
|
1362
1362
|
e = pe(o, e);
|
|
1363
|
-
let { filter:
|
|
1364
|
-
...
|
|
1365
|
-
filter:
|
|
1366
|
-
disableAutoFocusFirst:
|
|
1367
|
-
inputRef:
|
|
1368
|
-
collectionRef:
|
|
1369
|
-
},
|
|
1370
|
-
return /* @__PURE__ */
|
|
1363
|
+
let { filter: n, disableAutoFocusFirst: t } = e, u = Mu(e), c = T(null), $ = T(null), { inputProps: r, collectionProps: l, collectionRef: x, filter: A } = Vu({
|
|
1364
|
+
...De(e),
|
|
1365
|
+
filter: n,
|
|
1366
|
+
disableAutoFocusFirst: t,
|
|
1367
|
+
inputRef: c,
|
|
1368
|
+
collectionRef: $
|
|
1369
|
+
}, u);
|
|
1370
|
+
return /* @__PURE__ */ Y.createElement(Le, {
|
|
1371
1371
|
values: [
|
|
1372
1372
|
[
|
|
1373
|
-
|
|
1374
|
-
|
|
1373
|
+
zu,
|
|
1374
|
+
u
|
|
1375
1375
|
],
|
|
1376
1376
|
[
|
|
1377
|
-
|
|
1377
|
+
to,
|
|
1378
1378
|
{
|
|
1379
|
-
...
|
|
1380
|
-
ref:
|
|
1379
|
+
...r,
|
|
1380
|
+
ref: c
|
|
1381
1381
|
}
|
|
1382
1382
|
],
|
|
1383
1383
|
[
|
|
1384
|
-
|
|
1384
|
+
bu,
|
|
1385
1385
|
{
|
|
1386
|
-
...
|
|
1387
|
-
filter:
|
|
1386
|
+
...l,
|
|
1387
|
+
filter: A,
|
|
1388
1388
|
ref: x
|
|
1389
1389
|
}
|
|
1390
1390
|
]
|
|
1391
1391
|
]
|
|
1392
1392
|
}, e.children);
|
|
1393
1393
|
}
|
|
1394
|
-
function
|
|
1394
|
+
function ju(e) {
|
|
1395
1395
|
var o;
|
|
1396
|
-
let { defaultFilter:
|
|
1397
|
-
e.onSelectionChange && e.onSelectionChange(y), y ===
|
|
1396
|
+
let { defaultFilter: n, menuTrigger: t = "input", allowsEmptyCollection: u = !1, allowsCustomValue: c, shouldCloseOnBlur: $ = !0 } = e, [r, l] = X(!1), [x, A] = X(!1), [C, B] = X(null), m = (y) => {
|
|
1397
|
+
e.onSelectionChange && e.onSelectionChange(y), y === b && (H(), L());
|
|
1398
1398
|
};
|
|
1399
1399
|
var g;
|
|
1400
|
-
let { collection:
|
|
1400
|
+
let { collection: f, selectionManager: h, selectedKey: b, setSelectedKey: S, selectedItem: K, disabledKeys: G } = fu({
|
|
1401
1401
|
...e,
|
|
1402
1402
|
onSelectionChange: m,
|
|
1403
1403
|
items: (g = e.items) !== null && g !== void 0 ? g : e.defaultItems
|
|
1404
|
-
}), [
|
|
1404
|
+
}), [D, Q] = lo(e.inputValue, ze(e.defaultInputValue, b, f) || "", e.onInputChange), [z] = X(b), [q] = X(D), N = f, w = ae(() => (
|
|
1405
1405
|
// No default filter if items are controlled.
|
|
1406
|
-
e.items != null || !
|
|
1406
|
+
e.items != null || !n ? f : Uu(f, D, n)
|
|
1407
1407
|
), [
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1408
|
+
f,
|
|
1409
|
+
D,
|
|
1410
|
+
n,
|
|
1411
1411
|
e.items
|
|
1412
|
-
]), [
|
|
1412
|
+
]), [oe, V] = X(w), j = T("focus"), F = tu({
|
|
1413
1413
|
...e,
|
|
1414
1414
|
onOpenChange: (y) => {
|
|
1415
|
-
e.onOpenChange && e.onOpenChange(y, y ?
|
|
1415
|
+
e.onOpenChange && e.onOpenChange(y, y ? j.current : void 0), h.setFocused(y), y || h.setFocusedKey(null);
|
|
1416
1416
|
},
|
|
1417
1417
|
isOpen: void 0,
|
|
1418
1418
|
defaultOpen: void 0
|
|
1419
|
-
}),
|
|
1420
|
-
let k = I === "manual" || I === "focus" &&
|
|
1421
|
-
(
|
|
1419
|
+
}), i = (y = null, I) => {
|
|
1420
|
+
let k = I === "manual" || I === "focus" && t === "focus";
|
|
1421
|
+
(u || w.size > 0 || k && N.size > 0 || e.items) && (k && !F.isOpen && e.items === void 0 && l(!0), j.current = I, B(y), F.open());
|
|
1422
1422
|
}, a = (y = null, I) => {
|
|
1423
|
-
let k = I === "manual" || I === "focus" &&
|
|
1424
|
-
!(
|
|
1425
|
-
},
|
|
1426
|
-
|
|
1423
|
+
let k = I === "manual" || I === "focus" && t === "focus";
|
|
1424
|
+
!(u || w.size > 0 || k && N.size > 0 || e.items) && !F.isOpen || (k && !F.isOpen && e.items === void 0 && l(!0), F.isOpen || (j.current = I), M(y));
|
|
1425
|
+
}, v = O(() => {
|
|
1426
|
+
V(r ? N : w);
|
|
1427
1427
|
}, [
|
|
1428
|
-
|
|
1429
|
-
|
|
1428
|
+
r,
|
|
1429
|
+
N,
|
|
1430
1430
|
w
|
|
1431
|
-
]),
|
|
1432
|
-
|
|
1431
|
+
]), M = O((y = null) => {
|
|
1432
|
+
F.isOpen && v(), B(y), F.toggle();
|
|
1433
1433
|
}, [
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
]),
|
|
1437
|
-
|
|
1434
|
+
F,
|
|
1435
|
+
v
|
|
1436
|
+
]), L = O(() => {
|
|
1437
|
+
F.isOpen && (v(), F.close());
|
|
1438
1438
|
}, [
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
]), [P,
|
|
1439
|
+
F,
|
|
1440
|
+
v
|
|
1441
|
+
]), [P, R] = X(D), H = () => {
|
|
1442
1442
|
var y, I;
|
|
1443
|
-
let k =
|
|
1444
|
-
|
|
1443
|
+
let k = b != null && (I = (y = f.getItem(b)) === null || y === void 0 ? void 0 : y.textValue) !== null && I !== void 0 ? I : "";
|
|
1444
|
+
R(k), Q(k);
|
|
1445
1445
|
};
|
|
1446
|
-
var _,
|
|
1447
|
-
let
|
|
1448
|
-
var
|
|
1449
|
-
let
|
|
1450
|
-
|
|
1446
|
+
var _, ie;
|
|
1447
|
+
let U = T((ie = (_ = e.selectedKey) !== null && _ !== void 0 ? _ : e.defaultSelectedKey) !== null && ie !== void 0 ? ie : null);
|
|
1448
|
+
var ne;
|
|
1449
|
+
let ce = T(b != null && (ne = (o = f.getItem(b)) === null || o === void 0 ? void 0 : o.textValue) !== null && ne !== void 0 ? ne : "");
|
|
1450
|
+
ue(() => {
|
|
1451
1451
|
var y;
|
|
1452
|
-
x && (w.size > 0 ||
|
|
1452
|
+
x && (w.size > 0 || u) && !F.isOpen && D !== P && t !== "manual" && i(null, "input"), !r && !u && F.isOpen && w.size === 0 && L(), b != null && b !== U.current && L(), D !== P && (h.setFocusedKey(null), l(!1), D === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && S(null)), b !== U.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? H() : P !== D && R(D);
|
|
1453
1453
|
var I;
|
|
1454
|
-
let k =
|
|
1455
|
-
!x &&
|
|
1454
|
+
let k = b != null && (I = (y = f.getItem(b)) === null || y === void 0 ? void 0 : y.textValue) !== null && I !== void 0 ? I : "";
|
|
1455
|
+
!x && b != null && e.inputValue === void 0 && b === U.current && ce.current !== k && (R(k), Q(k)), U.current = b, ce.current = k;
|
|
1456
1456
|
});
|
|
1457
|
-
let
|
|
1457
|
+
let se = cu({
|
|
1458
1458
|
...e,
|
|
1459
|
-
value:
|
|
1460
|
-
inputValue:
|
|
1461
|
-
selectedKey:
|
|
1459
|
+
value: ae(() => ({
|
|
1460
|
+
inputValue: D,
|
|
1461
|
+
selectedKey: b
|
|
1462
1462
|
}), [
|
|
1463
|
-
|
|
1464
|
-
|
|
1463
|
+
D,
|
|
1464
|
+
b
|
|
1465
1465
|
])
|
|
1466
|
-
}),
|
|
1467
|
-
|
|
1468
|
-
},
|
|
1469
|
-
|
|
1470
|
-
},
|
|
1466
|
+
}), de = () => {
|
|
1467
|
+
c && b == null ? p() : E();
|
|
1468
|
+
}, p = () => {
|
|
1469
|
+
U.current = null, S(null), L();
|
|
1470
|
+
}, E = () => {
|
|
1471
1471
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1472
1472
|
var y, I;
|
|
1473
|
-
(y = e.onSelectionChange) === null || y === void 0 || y.call(e,
|
|
1473
|
+
(y = e.onSelectionChange) === null || y === void 0 || y.call(e, b);
|
|
1474
1474
|
var k;
|
|
1475
|
-
let
|
|
1476
|
-
|
|
1475
|
+
let Mn = b != null && (k = (I = f.getItem(b)) === null || I === void 0 ? void 0 : I.textValue) !== null && k !== void 0 ? k : "";
|
|
1476
|
+
R(Mn), L();
|
|
1477
1477
|
} else
|
|
1478
|
-
|
|
1478
|
+
H(), L();
|
|
1479
1479
|
};
|
|
1480
|
-
const
|
|
1481
|
-
if (
|
|
1480
|
+
const d = () => {
|
|
1481
|
+
if (c) {
|
|
1482
1482
|
var y, I;
|
|
1483
|
-
const k =
|
|
1484
|
-
|
|
1483
|
+
const k = b != null && (I = (y = f.getItem(b)) === null || y === void 0 ? void 0 : y.textValue) !== null && I !== void 0 ? I : "";
|
|
1484
|
+
D === k ? E() : p();
|
|
1485
1485
|
} else
|
|
1486
|
-
|
|
1486
|
+
E();
|
|
1487
1487
|
};
|
|
1488
|
-
let
|
|
1489
|
-
|
|
1490
|
-
},
|
|
1491
|
-
y ? (
|
|
1492
|
-
},
|
|
1493
|
-
|
|
1494
|
-
|
|
1488
|
+
let J = () => {
|
|
1489
|
+
F.isOpen && h.focusedKey != null ? b === h.focusedKey ? E() : S(h.focusedKey) : d();
|
|
1490
|
+
}, Z = T(D), ee = (y) => {
|
|
1491
|
+
y ? (Z.current = D, t === "focus" && !e.isReadOnly && i(null, "focus")) : ($ && d(), D !== Z.current && se.commitValidation()), A(y);
|
|
1492
|
+
}, le = ae(() => F.isOpen ? r ? N : w : oe, [
|
|
1493
|
+
F.isOpen,
|
|
1494
|
+
N,
|
|
1495
1495
|
w,
|
|
1496
|
-
|
|
1497
|
-
|
|
1496
|
+
r,
|
|
1497
|
+
oe
|
|
1498
1498
|
]);
|
|
1499
|
-
var
|
|
1500
|
-
let Oe = (
|
|
1499
|
+
var Ce;
|
|
1500
|
+
let Oe = (Ce = e.defaultSelectedKey) !== null && Ce !== void 0 ? Ce : z;
|
|
1501
1501
|
var he;
|
|
1502
1502
|
return {
|
|
1503
|
-
...
|
|
1504
|
-
...
|
|
1503
|
+
...se,
|
|
1504
|
+
...F,
|
|
1505
1505
|
focusStrategy: C,
|
|
1506
1506
|
toggle: a,
|
|
1507
|
-
open:
|
|
1508
|
-
close:
|
|
1507
|
+
open: i,
|
|
1508
|
+
close: d,
|
|
1509
1509
|
selectionManager: h,
|
|
1510
|
-
selectedKey:
|
|
1510
|
+
selectedKey: b,
|
|
1511
1511
|
defaultSelectedKey: Oe,
|
|
1512
1512
|
setSelectedKey: S,
|
|
1513
|
-
disabledKeys:
|
|
1513
|
+
disabledKeys: G,
|
|
1514
1514
|
isFocused: x,
|
|
1515
|
-
setFocused:
|
|
1515
|
+
setFocused: ee,
|
|
1516
1516
|
selectedItem: K,
|
|
1517
|
-
collection:
|
|
1518
|
-
inputValue:
|
|
1519
|
-
defaultInputValue: (he =
|
|
1520
|
-
setInputValue:
|
|
1521
|
-
commit:
|
|
1522
|
-
revert:
|
|
1517
|
+
collection: le,
|
|
1518
|
+
inputValue: D,
|
|
1519
|
+
defaultInputValue: (he = ze(e.defaultInputValue, Oe, f)) !== null && he !== void 0 ? he : q,
|
|
1520
|
+
setInputValue: Q,
|
|
1521
|
+
commit: J,
|
|
1522
|
+
revert: de
|
|
1523
1523
|
};
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1526
|
-
return new
|
|
1525
|
+
function Uu(e, o, n) {
|
|
1526
|
+
return new qn(In(e, e, o, n));
|
|
1527
1527
|
}
|
|
1528
|
-
function
|
|
1529
|
-
let
|
|
1530
|
-
for (let
|
|
1531
|
-
if (
|
|
1532
|
-
let
|
|
1528
|
+
function In(e, o, n, t) {
|
|
1529
|
+
let u = [];
|
|
1530
|
+
for (let c of o)
|
|
1531
|
+
if (c.type === "section" && c.hasChildNodes) {
|
|
1532
|
+
let $ = In(e, uo(c, e), n, t);
|
|
1533
1533
|
[
|
|
1534
|
-
|
|
1535
|
-
].some((
|
|
1536
|
-
...
|
|
1537
|
-
childNodes:
|
|
1534
|
+
...$
|
|
1535
|
+
].some((r) => r.type === "item") && u.push({
|
|
1536
|
+
...c,
|
|
1537
|
+
childNodes: $
|
|
1538
1538
|
});
|
|
1539
|
-
} else
|
|
1540
|
-
...
|
|
1541
|
-
}) :
|
|
1542
|
-
...
|
|
1539
|
+
} else c.type === "item" && t(c.textValue, n) ? u.push({
|
|
1540
|
+
...c
|
|
1541
|
+
}) : c.type !== "item" && u.push({
|
|
1542
|
+
...c
|
|
1543
1543
|
});
|
|
1544
|
-
return
|
|
1544
|
+
return u;
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function ze(e, o, n) {
|
|
1547
1547
|
if (e == null) {
|
|
1548
|
-
var
|
|
1549
|
-
if (o != null) return (
|
|
1548
|
+
var t, u;
|
|
1549
|
+
if (o != null) return (u = (t = n.getItem(o)) === null || t === void 0 ? void 0 : t.textValue) !== null && u !== void 0 ? u : "";
|
|
1550
1550
|
}
|
|
1551
1551
|
return e;
|
|
1552
1552
|
}
|
|
1553
|
-
const
|
|
1554
|
-
[o,
|
|
1555
|
-
let { children:
|
|
1556
|
-
var
|
|
1557
|
-
return /* @__PURE__ */
|
|
1553
|
+
const qu = /* @__PURE__ */ $e(null), Ke = /* @__PURE__ */ $e(null), Wu = /* @__PURE__ */ Nn(function(o, n) {
|
|
1554
|
+
[o, n] = fe(o, n, qu);
|
|
1555
|
+
let { children: t, isDisabled: u = !1, isInvalid: c = !1, isRequired: $ = !1 } = o, r = ae(() => {
|
|
1556
|
+
var l;
|
|
1557
|
+
return /* @__PURE__ */ Y.createElement(Qe.Provider, {
|
|
1558
1558
|
value: {
|
|
1559
|
-
items: (
|
|
1559
|
+
items: (l = o.items) !== null && l !== void 0 ? l : o.defaultItems
|
|
1560
1560
|
}
|
|
1561
|
-
}, typeof
|
|
1561
|
+
}, typeof t == "function" ? t({
|
|
1562
1562
|
isOpen: !1,
|
|
1563
|
-
isDisabled:
|
|
1564
|
-
isInvalid:
|
|
1565
|
-
isRequired:
|
|
1563
|
+
isDisabled: u,
|
|
1564
|
+
isInvalid: c,
|
|
1565
|
+
isRequired: $,
|
|
1566
1566
|
defaultChildren: null
|
|
1567
|
-
}) :
|
|
1567
|
+
}) : t);
|
|
1568
1568
|
}, [
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1569
|
+
t,
|
|
1570
|
+
u,
|
|
1571
|
+
c,
|
|
1572
|
+
$,
|
|
1573
1573
|
o.items,
|
|
1574
1574
|
o.defaultItems
|
|
1575
1575
|
]);
|
|
1576
|
-
return /* @__PURE__ */
|
|
1577
|
-
content:
|
|
1578
|
-
}, (
|
|
1576
|
+
return /* @__PURE__ */ Y.createElement(nu, {
|
|
1577
|
+
content: r
|
|
1578
|
+
}, (l) => /* @__PURE__ */ Y.createElement(Ju, {
|
|
1579
1579
|
props: o,
|
|
1580
|
-
collection:
|
|
1581
|
-
comboBoxRef:
|
|
1580
|
+
collection: l,
|
|
1581
|
+
comboBoxRef: n
|
|
1582
1582
|
}));
|
|
1583
|
-
}),
|
|
1583
|
+
}), Hu = [
|
|
1584
1584
|
Ie,
|
|
1585
|
-
|
|
1585
|
+
qe,
|
|
1586
1586
|
xe,
|
|
1587
1587
|
Pe,
|
|
1588
1588
|
we
|
|
1589
1589
|
];
|
|
1590
|
-
function
|
|
1591
|
-
let { name:
|
|
1592
|
-
|
|
1593
|
-
let { validationBehavior:
|
|
1594
|
-
var
|
|
1595
|
-
let x = (
|
|
1590
|
+
function Ju({ props: e, collection: o, comboBoxRef: n }) {
|
|
1591
|
+
let { name: t, formValue: u = "key", allowsCustomValue: c } = e;
|
|
1592
|
+
c && (u = "text");
|
|
1593
|
+
let { validationBehavior: $ } = Se(Xe) || {};
|
|
1594
|
+
var r, l;
|
|
1595
|
+
let x = (l = (r = e.validationBehavior) !== null && r !== void 0 ? r : $) !== null && l !== void 0 ? l : "native", { contains: A } = no({
|
|
1596
1596
|
sensitivity: "base"
|
|
1597
|
-
}), C =
|
|
1598
|
-
defaultFilter: e.defaultFilter ||
|
|
1597
|
+
}), C = ju({
|
|
1598
|
+
defaultFilter: e.defaultFilter || A,
|
|
1599
1599
|
...e,
|
|
1600
1600
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1601
1601
|
items: e.items,
|
|
1602
1602
|
children: void 0,
|
|
1603
1603
|
collection: o,
|
|
1604
1604
|
validationBehavior: x
|
|
1605
|
-
}),
|
|
1606
|
-
...
|
|
1607
|
-
label:
|
|
1605
|
+
}), B = T(null), m = T(null), g = T(null), f = T(null), [h, b] = He(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: S, inputProps: K, listBoxProps: G, labelProps: D, descriptionProps: Q, errorMessageProps: z, ...q } = Ru({
|
|
1606
|
+
...De(e),
|
|
1607
|
+
label: b,
|
|
1608
1608
|
inputRef: m,
|
|
1609
|
-
buttonRef:
|
|
1609
|
+
buttonRef: B,
|
|
1610
1610
|
listBoxRef: g,
|
|
1611
|
-
popoverRef:
|
|
1612
|
-
name:
|
|
1611
|
+
popoverRef: f,
|
|
1612
|
+
name: u === "text" ? t : void 0,
|
|
1613
1613
|
validationBehavior: x
|
|
1614
|
-
}, C), [
|
|
1614
|
+
}, C), [N, w] = X(null), oe = O(() => {
|
|
1615
1615
|
if (m.current) {
|
|
1616
|
-
var
|
|
1617
|
-
let a = (
|
|
1618
|
-
w(
|
|
1616
|
+
var i;
|
|
1617
|
+
let a = (i = B.current) === null || i === void 0 ? void 0 : i.getBoundingClientRect(), v = m.current.getBoundingClientRect(), M = a ? Math.min(a.left, v.left) : v.left, L = a ? Math.max(a.right, v.right) : v.right;
|
|
1618
|
+
w(L - M + "px");
|
|
1619
1619
|
}
|
|
1620
1620
|
}, [
|
|
1621
|
-
|
|
1621
|
+
B,
|
|
1622
1622
|
m,
|
|
1623
1623
|
w
|
|
1624
1624
|
]);
|
|
1625
|
-
|
|
1625
|
+
lu({
|
|
1626
1626
|
ref: m,
|
|
1627
|
-
onResize:
|
|
1627
|
+
onResize: oe
|
|
1628
1628
|
});
|
|
1629
|
-
let
|
|
1629
|
+
let V = ae(() => ({
|
|
1630
1630
|
isOpen: C.isOpen,
|
|
1631
1631
|
isDisabled: e.isDisabled || !1,
|
|
1632
|
-
isInvalid:
|
|
1632
|
+
isInvalid: q.isInvalid || !1,
|
|
1633
1633
|
isRequired: e.isRequired || !1
|
|
1634
1634
|
}), [
|
|
1635
1635
|
C.isOpen,
|
|
1636
1636
|
e.isDisabled,
|
|
1637
|
-
|
|
1637
|
+
q.isInvalid,
|
|
1638
1638
|
e.isRequired
|
|
1639
|
-
]),
|
|
1639
|
+
]), j = Je({
|
|
1640
1640
|
...e,
|
|
1641
|
-
values:
|
|
1641
|
+
values: V,
|
|
1642
1642
|
defaultClassName: "react-aria-ComboBox"
|
|
1643
|
-
}),
|
|
1643
|
+
}), W = oo(e, {
|
|
1644
1644
|
global: !0
|
|
1645
1645
|
});
|
|
1646
|
-
delete
|
|
1647
|
-
var
|
|
1648
|
-
return /* @__PURE__ */
|
|
1646
|
+
delete W.id;
|
|
1647
|
+
var F;
|
|
1648
|
+
return /* @__PURE__ */ Y.createElement(Le, {
|
|
1649
1649
|
values: [
|
|
1650
1650
|
[
|
|
1651
1651
|
Ke,
|
|
@@ -1654,15 +1654,15 @@ function Hn({ props: e, collection: o, comboBoxRef: u }) {
|
|
|
1654
1654
|
[
|
|
1655
1655
|
Ie,
|
|
1656
1656
|
{
|
|
1657
|
-
...
|
|
1657
|
+
...D,
|
|
1658
1658
|
ref: h
|
|
1659
1659
|
}
|
|
1660
1660
|
],
|
|
1661
1661
|
[
|
|
1662
|
-
|
|
1662
|
+
qe,
|
|
1663
1663
|
{
|
|
1664
1664
|
...S,
|
|
1665
|
-
ref:
|
|
1665
|
+
ref: B,
|
|
1666
1666
|
isPressed: C.isOpen
|
|
1667
1667
|
}
|
|
1668
1668
|
],
|
|
@@ -1674,40 +1674,40 @@ function Hn({ props: e, collection: o, comboBoxRef: u }) {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
],
|
|
1676
1676
|
[
|
|
1677
|
-
|
|
1677
|
+
Qn,
|
|
1678
1678
|
C
|
|
1679
1679
|
],
|
|
1680
1680
|
[
|
|
1681
|
-
|
|
1681
|
+
_n,
|
|
1682
1682
|
{
|
|
1683
|
-
ref:
|
|
1683
|
+
ref: f,
|
|
1684
1684
|
triggerRef: m,
|
|
1685
1685
|
scrollRef: g,
|
|
1686
1686
|
placement: "bottom start",
|
|
1687
1687
|
isNonModal: !0,
|
|
1688
1688
|
trigger: "ComboBox",
|
|
1689
1689
|
style: {
|
|
1690
|
-
"--trigger-width":
|
|
1690
|
+
"--trigger-width": N
|
|
1691
1691
|
},
|
|
1692
|
-
clearContexts:
|
|
1692
|
+
clearContexts: Hu
|
|
1693
1693
|
}
|
|
1694
1694
|
],
|
|
1695
1695
|
[
|
|
1696
|
-
|
|
1696
|
+
Qe,
|
|
1697
1697
|
{
|
|
1698
|
-
...
|
|
1698
|
+
...G,
|
|
1699
1699
|
ref: g
|
|
1700
1700
|
}
|
|
1701
1701
|
],
|
|
1702
1702
|
[
|
|
1703
|
-
|
|
1703
|
+
Wn,
|
|
1704
1704
|
C
|
|
1705
1705
|
],
|
|
1706
1706
|
[
|
|
1707
1707
|
we,
|
|
1708
1708
|
{
|
|
1709
1709
|
slots: {
|
|
1710
|
-
description:
|
|
1710
|
+
description: Q,
|
|
1711
1711
|
errorMessage: z
|
|
1712
1712
|
}
|
|
1713
1713
|
}
|
|
@@ -1715,48 +1715,48 @@ function Hn({ props: e, collection: o, comboBoxRef: u }) {
|
|
|
1715
1715
|
[
|
|
1716
1716
|
Pe,
|
|
1717
1717
|
{
|
|
1718
|
-
isInvalid:
|
|
1718
|
+
isInvalid: q.isInvalid,
|
|
1719
1719
|
isDisabled: e.isDisabled || !1
|
|
1720
1720
|
}
|
|
1721
1721
|
],
|
|
1722
1722
|
[
|
|
1723
|
-
|
|
1724
|
-
|
|
1723
|
+
Ze,
|
|
1724
|
+
q
|
|
1725
1725
|
]
|
|
1726
1726
|
]
|
|
1727
|
-
}, /* @__PURE__ */
|
|
1728
|
-
...
|
|
1729
|
-
...
|
|
1730
|
-
ref:
|
|
1727
|
+
}, /* @__PURE__ */ Y.createElement("div", {
|
|
1728
|
+
...W,
|
|
1729
|
+
...j,
|
|
1730
|
+
ref: n,
|
|
1731
1731
|
slot: e.slot || void 0,
|
|
1732
1732
|
"data-focused": C.isFocused || void 0,
|
|
1733
1733
|
"data-open": C.isOpen || void 0,
|
|
1734
1734
|
"data-disabled": e.isDisabled || void 0,
|
|
1735
|
-
"data-invalid":
|
|
1735
|
+
"data-invalid": q.isInvalid || void 0,
|
|
1736
1736
|
"data-required": e.isRequired || void 0
|
|
1737
|
-
}),
|
|
1737
|
+
}), t && u === "key" && /* @__PURE__ */ Y.createElement("input", {
|
|
1738
1738
|
type: "hidden",
|
|
1739
|
-
name:
|
|
1739
|
+
name: t,
|
|
1740
1740
|
form: e.form,
|
|
1741
|
-
value: (
|
|
1741
|
+
value: (F = C.selectedKey) !== null && F !== void 0 ? F : ""
|
|
1742
1742
|
}));
|
|
1743
1743
|
}
|
|
1744
|
-
const
|
|
1745
|
-
[o,
|
|
1746
|
-
let { validationBehavior:
|
|
1747
|
-
var
|
|
1748
|
-
let
|
|
1749
|
-
[o,
|
|
1750
|
-
let [
|
|
1751
|
-
...
|
|
1752
|
-
inputElementType:
|
|
1744
|
+
const Zu = /* @__PURE__ */ $e(null), Xu = /* @__PURE__ */ Pu(function(o, n) {
|
|
1745
|
+
[o, n] = fe(o, n, Zu);
|
|
1746
|
+
let { validationBehavior: t } = Se(Xe) || {};
|
|
1747
|
+
var u, c;
|
|
1748
|
+
let $ = (c = (u = o.validationBehavior) !== null && u !== void 0 ? u : t) !== null && c !== void 0 ? c : "native", r = T(null);
|
|
1749
|
+
[o, r] = fe(o, r, to);
|
|
1750
|
+
let [l, x] = He(!o["aria-label"] && !o["aria-labelledby"]), [A, C] = X("input"), { labelProps: B, inputProps: m, descriptionProps: g, errorMessageProps: f, ...h } = ro({
|
|
1751
|
+
...De(o),
|
|
1752
|
+
inputElementType: A,
|
|
1753
1753
|
label: x,
|
|
1754
|
-
validationBehavior:
|
|
1755
|
-
},
|
|
1756
|
-
|
|
1754
|
+
validationBehavior: $
|
|
1755
|
+
}, r), b = O((G) => {
|
|
1756
|
+
r.current = G, G && C(G instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
1757
1757
|
}, [
|
|
1758
|
-
|
|
1759
|
-
]), S =
|
|
1758
|
+
r
|
|
1759
|
+
]), S = Je({
|
|
1760
1760
|
...o,
|
|
1761
1761
|
values: {
|
|
1762
1762
|
isDisabled: o.isDisabled || !1,
|
|
@@ -1765,39 +1765,39 @@ const Jn = /* @__PURE__ */ $e(null), Zn = /* @__PURE__ */ Ln(function(o, u) {
|
|
|
1765
1765
|
isRequired: o.isRequired || !1
|
|
1766
1766
|
},
|
|
1767
1767
|
defaultClassName: "react-aria-TextField"
|
|
1768
|
-
}), K =
|
|
1768
|
+
}), K = oo(o, {
|
|
1769
1769
|
global: !0
|
|
1770
1770
|
});
|
|
1771
|
-
return delete K.id, /* @__PURE__ */
|
|
1771
|
+
return delete K.id, /* @__PURE__ */ Y.createElement("div", {
|
|
1772
1772
|
...K,
|
|
1773
1773
|
...S,
|
|
1774
|
-
ref:
|
|
1774
|
+
ref: n,
|
|
1775
1775
|
slot: o.slot || void 0,
|
|
1776
1776
|
"data-disabled": o.isDisabled || void 0,
|
|
1777
1777
|
"data-invalid": h.isInvalid || void 0,
|
|
1778
1778
|
"data-readonly": o.isReadOnly || void 0,
|
|
1779
1779
|
"data-required": o.isRequired || void 0
|
|
1780
|
-
}, /* @__PURE__ */
|
|
1780
|
+
}, /* @__PURE__ */ Y.createElement(Le, {
|
|
1781
1781
|
values: [
|
|
1782
1782
|
[
|
|
1783
1783
|
Ie,
|
|
1784
1784
|
{
|
|
1785
|
-
...
|
|
1786
|
-
ref:
|
|
1785
|
+
...B,
|
|
1786
|
+
ref: l
|
|
1787
1787
|
}
|
|
1788
1788
|
],
|
|
1789
1789
|
[
|
|
1790
1790
|
xe,
|
|
1791
1791
|
{
|
|
1792
1792
|
...m,
|
|
1793
|
-
ref:
|
|
1793
|
+
ref: b
|
|
1794
1794
|
}
|
|
1795
1795
|
],
|
|
1796
1796
|
[
|
|
1797
|
-
|
|
1797
|
+
Lu,
|
|
1798
1798
|
{
|
|
1799
1799
|
...m,
|
|
1800
|
-
ref:
|
|
1800
|
+
ref: b
|
|
1801
1801
|
}
|
|
1802
1802
|
],
|
|
1803
1803
|
[
|
|
@@ -1813,71 +1813,71 @@ const Jn = /* @__PURE__ */ $e(null), Zn = /* @__PURE__ */ Ln(function(o, u) {
|
|
|
1813
1813
|
{
|
|
1814
1814
|
slots: {
|
|
1815
1815
|
description: g,
|
|
1816
|
-
errorMessage:
|
|
1816
|
+
errorMessage: f
|
|
1817
1817
|
}
|
|
1818
1818
|
}
|
|
1819
1819
|
],
|
|
1820
1820
|
[
|
|
1821
|
-
|
|
1821
|
+
Ze,
|
|
1822
1822
|
h
|
|
1823
1823
|
]
|
|
1824
1824
|
]
|
|
1825
1825
|
}, S.children));
|
|
1826
|
-
}), { withProvider:
|
|
1827
|
-
|
|
1828
|
-
}),
|
|
1826
|
+
}), { withProvider: Yu, withContext: te } = /* @__PURE__ */ Gn({
|
|
1827
|
+
recipe: je
|
|
1828
|
+
}), Qu = /* @__PURE__ */ Yu("div", "root"), _u = /* @__PURE__ */ te("div", "leadingElement"), wn = /* @__PURE__ */ te("div", "value"), kn = /* @__PURE__ */ te("div", "buttonGroup"), et = /* @__PURE__ */ te("div", "popover"), ot = /* @__PURE__ */ te("input", "multiSelectInput"), nt = /* @__PURE__ */ te("div", "options"), ut = /* @__PURE__ */ te("div", "optionGroup"), tt = /* @__PURE__ */ te("div", "option"), lt = /* @__PURE__ */ te("span", "optionIndicator"), it = /* @__PURE__ */ te("span", "optionContent"), ct = (e) => {
|
|
1829
1829
|
const {
|
|
1830
1830
|
placeholder: o,
|
|
1831
|
-
inputValue:
|
|
1832
|
-
allowsCustomValue:
|
|
1833
|
-
onSubmitCustomValue:
|
|
1834
|
-
onInputChange:
|
|
1835
|
-
ref:
|
|
1836
|
-
} = e, [
|
|
1831
|
+
inputValue: n,
|
|
1832
|
+
allowsCustomValue: t,
|
|
1833
|
+
onSubmitCustomValue: u,
|
|
1834
|
+
onInputChange: c,
|
|
1835
|
+
ref: $
|
|
1836
|
+
} = e, [r, l] = fe({}, $ || null, xe), x = Ue(Ke), A = O(
|
|
1837
1837
|
// This method clears the input if the user has focused on a pre-populated combobox and starts typing
|
|
1838
1838
|
(C) => {
|
|
1839
|
-
if (x?.selectedKey &&
|
|
1840
|
-
|
|
1841
|
-
|
|
1839
|
+
if (x?.selectedKey && l.current && // cursor is at the beginning of input...
|
|
1840
|
+
l.current.selectionStart === 0 && l.current.selectionEnd === 0 && // ...and it has a value, which can only happen on focus
|
|
1841
|
+
l.current.value.length > 0 && C.key.length === 1 && // Single character key
|
|
1842
1842
|
!C.ctrlKey && !C.metaKey && !C.altKey) {
|
|
1843
1843
|
C.preventDefault(), C.stopPropagation(), x.setInputValue(C.key);
|
|
1844
1844
|
return;
|
|
1845
1845
|
}
|
|
1846
|
-
if (C.key === "Enter" &&
|
|
1846
|
+
if (C.key === "Enter" && n && n?.trim() !== "" && c && t && u && x)
|
|
1847
1847
|
if (x.collection) {
|
|
1848
|
-
const m = Array.from(x.collection).find((g) => g.textValue.toLowerCase() ===
|
|
1849
|
-
m ? x.setSelectedKey(m.key) : n
|
|
1848
|
+
const m = Array.from(x.collection).find((g) => g.textValue.toLowerCase() === n.toLowerCase());
|
|
1849
|
+
m ? x.setSelectedKey(m.key) : u(n);
|
|
1850
1850
|
} else
|
|
1851
|
-
n
|
|
1851
|
+
u(n);
|
|
1852
1852
|
},
|
|
1853
|
-
[
|
|
1853
|
+
[n, c, t, u, x]
|
|
1854
1854
|
);
|
|
1855
|
-
return /* @__PURE__ */
|
|
1856
|
-
|
|
1855
|
+
return /* @__PURE__ */ s(wn, { asChild: !0, children: /* @__PURE__ */ s(
|
|
1856
|
+
Ye,
|
|
1857
1857
|
{
|
|
1858
|
-
ref:
|
|
1859
|
-
...
|
|
1860
|
-
onKeyDown:
|
|
1858
|
+
ref: l,
|
|
1859
|
+
...r,
|
|
1860
|
+
onKeyDown: A,
|
|
1861
1861
|
placeholder: o
|
|
1862
1862
|
}
|
|
1863
1863
|
) });
|
|
1864
1864
|
}, Re = ({
|
|
1865
1865
|
children: e,
|
|
1866
1866
|
ref: o,
|
|
1867
|
-
...
|
|
1867
|
+
...n
|
|
1868
1868
|
}) => {
|
|
1869
|
-
const [
|
|
1870
|
-
return /* @__PURE__ */
|
|
1869
|
+
const [t, u] = ke(n);
|
|
1870
|
+
return /* @__PURE__ */ s(nt, { ...t, asChild: !0, children: /* @__PURE__ */ s(Hn, { ref: o, ...u, children: e }) });
|
|
1871
1871
|
};
|
|
1872
1872
|
Re.displayName = "ComboBox.Options";
|
|
1873
|
-
const
|
|
1873
|
+
const rt = ({
|
|
1874
1874
|
isDisabled: e,
|
|
1875
1875
|
isReadOnly: o,
|
|
1876
|
-
isLoading:
|
|
1876
|
+
isLoading: n
|
|
1877
1877
|
}) => {
|
|
1878
|
-
const
|
|
1879
|
-
return /* @__PURE__ */
|
|
1880
|
-
|
|
1878
|
+
const t = Ue(Ke);
|
|
1879
|
+
return /* @__PURE__ */ re(kn, { children: [
|
|
1880
|
+
t?.selectedKey && /* @__PURE__ */ s(
|
|
1881
1881
|
Fe,
|
|
1882
1882
|
{
|
|
1883
1883
|
pointerEvents: "all",
|
|
@@ -1888,21 +1888,21 @@ const it = ({
|
|
|
1888
1888
|
"aria-label": "Clear Selection",
|
|
1889
1889
|
isDisabled: e || o,
|
|
1890
1890
|
_expanded: { bg: "transparent" },
|
|
1891
|
-
onPress: () =>
|
|
1891
|
+
onPress: () => t?.setSelectedKey(null),
|
|
1892
1892
|
my: "auto",
|
|
1893
|
-
children: /* @__PURE__ */
|
|
1893
|
+
children: /* @__PURE__ */ s(ao, {})
|
|
1894
1894
|
}
|
|
1895
1895
|
),
|
|
1896
|
-
|
|
1897
|
-
|
|
1896
|
+
n ? /* @__PURE__ */ s($o, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ s(me, { color: "neutral.11", asChild: !0, m: "auto", w: "400", h: "400", children: /* @__PURE__ */ s(
|
|
1897
|
+
me,
|
|
1898
1898
|
{
|
|
1899
1899
|
asChild: !0,
|
|
1900
1900
|
animation: "spin",
|
|
1901
1901
|
animationDuration: "slowest",
|
|
1902
1902
|
"data-testid": "nimbus-combobox-loading",
|
|
1903
|
-
children: /* @__PURE__ */
|
|
1903
|
+
children: /* @__PURE__ */ s(so, {})
|
|
1904
1904
|
}
|
|
1905
|
-
) }) }) : /* @__PURE__ */
|
|
1905
|
+
) }) }) : /* @__PURE__ */ s(
|
|
1906
1906
|
Fe,
|
|
1907
1907
|
{
|
|
1908
1908
|
size: "2xs",
|
|
@@ -1912,147 +1912,166 @@ const it = ({
|
|
|
1912
1912
|
my: "auto",
|
|
1913
1913
|
isDisabled: e || o,
|
|
1914
1914
|
_expanded: { bg: "transparent" },
|
|
1915
|
-
children: /* @__PURE__ */
|
|
1915
|
+
children: /* @__PURE__ */ s(po, {})
|
|
1916
1916
|
}
|
|
1917
1917
|
)
|
|
1918
1918
|
] });
|
|
1919
|
-
},
|
|
1919
|
+
}, Kn = ({
|
|
1920
|
+
children: e
|
|
1921
|
+
}) => {
|
|
1922
|
+
const o = T(null);
|
|
1923
|
+
return ue(() => {
|
|
1924
|
+
const n = o.current;
|
|
1925
|
+
if (!n) return;
|
|
1926
|
+
const t = () => {
|
|
1927
|
+
const c = n.offsetWidth, $ = n.closest(".nimbus-combobox__root");
|
|
1928
|
+
$ instanceof HTMLElement && $.style.setProperty("--leading-element-width", `${c}px`);
|
|
1929
|
+
};
|
|
1930
|
+
t();
|
|
1931
|
+
const u = new ResizeObserver(t);
|
|
1932
|
+
return u.observe(n), () => {
|
|
1933
|
+
u.disconnect();
|
|
1934
|
+
};
|
|
1935
|
+
}, []), /* @__PURE__ */ s(_u, { ref: o, children: e });
|
|
1936
|
+
}, at = ({
|
|
1920
1937
|
children: e,
|
|
1921
1938
|
inputValue: o,
|
|
1922
|
-
onInputChange:
|
|
1923
|
-
placeholder:
|
|
1924
|
-
allowsCustomValue:
|
|
1925
|
-
onSubmitCustomValue:
|
|
1926
|
-
renderEmptyState:
|
|
1927
|
-
shouldFocusWrap:
|
|
1928
|
-
isLoading:
|
|
1929
|
-
|
|
1930
|
-
|
|
1939
|
+
onInputChange: n,
|
|
1940
|
+
placeholder: t,
|
|
1941
|
+
allowsCustomValue: u,
|
|
1942
|
+
onSubmitCustomValue: c,
|
|
1943
|
+
renderEmptyState: $,
|
|
1944
|
+
shouldFocusWrap: r = !0,
|
|
1945
|
+
isLoading: l,
|
|
1946
|
+
leadingElement: x,
|
|
1947
|
+
ref: A,
|
|
1948
|
+
...C
|
|
1931
1949
|
}) => {
|
|
1932
|
-
if (
|
|
1950
|
+
if (c && (o === void 0 || !n))
|
|
1933
1951
|
throw new Error(
|
|
1934
1952
|
'ComboBox: When "onSubmitCustomValue" is provided, "inputValue" must be controlled with "onInputChange"'
|
|
1935
1953
|
);
|
|
1936
|
-
const
|
|
1937
|
-
|
|
1938
|
-
}, [
|
|
1939
|
-
return /* @__PURE__ */
|
|
1940
|
-
|
|
1954
|
+
const B = T(null), m = O(() => {
|
|
1955
|
+
B.current && B.current.value && requestAnimationFrame(() => B.current?.setSelectionRange(0, 0));
|
|
1956
|
+
}, [B]);
|
|
1957
|
+
return /* @__PURE__ */ re(
|
|
1958
|
+
Wu,
|
|
1941
1959
|
{
|
|
1942
1960
|
inputValue: o,
|
|
1943
|
-
onInputChange:
|
|
1944
|
-
onFocus:
|
|
1945
|
-
allowsCustomValue:
|
|
1961
|
+
onInputChange: n,
|
|
1962
|
+
onFocus: m,
|
|
1963
|
+
allowsCustomValue: u,
|
|
1946
1964
|
menuTrigger: "focus",
|
|
1947
|
-
shouldFocusWrap:
|
|
1948
|
-
...
|
|
1949
|
-
ref:
|
|
1965
|
+
shouldFocusWrap: r,
|
|
1966
|
+
...C,
|
|
1967
|
+
ref: A,
|
|
1950
1968
|
children: [
|
|
1951
|
-
/* @__PURE__ */
|
|
1952
|
-
|
|
1969
|
+
x && /* @__PURE__ */ s(Kn, { children: x }),
|
|
1970
|
+
/* @__PURE__ */ s(
|
|
1971
|
+
ct,
|
|
1953
1972
|
{
|
|
1954
|
-
ref:
|
|
1955
|
-
placeholder:
|
|
1973
|
+
ref: B,
|
|
1974
|
+
placeholder: t,
|
|
1956
1975
|
inputValue: o,
|
|
1957
|
-
allowsCustomValue:
|
|
1958
|
-
onSubmitCustomValue:
|
|
1959
|
-
onInputChange:
|
|
1976
|
+
allowsCustomValue: u,
|
|
1977
|
+
onSubmitCustomValue: c,
|
|
1978
|
+
onInputChange: n
|
|
1960
1979
|
}
|
|
1961
1980
|
),
|
|
1962
|
-
/* @__PURE__ */
|
|
1963
|
-
|
|
1981
|
+
/* @__PURE__ */ s(
|
|
1982
|
+
rt,
|
|
1964
1983
|
{
|
|
1965
|
-
isLoading:
|
|
1966
|
-
isDisabled:
|
|
1967
|
-
isReadOnly:
|
|
1984
|
+
isLoading: l,
|
|
1985
|
+
isDisabled: C.isDisabled,
|
|
1986
|
+
isReadOnly: C.isReadOnly
|
|
1968
1987
|
}
|
|
1969
1988
|
),
|
|
1970
|
-
/* @__PURE__ */
|
|
1989
|
+
/* @__PURE__ */ s(_e, { children: /* @__PURE__ */ s(Re, { renderEmptyState: $, children: e }) })
|
|
1971
1990
|
]
|
|
1972
1991
|
}
|
|
1973
1992
|
);
|
|
1974
1993
|
};
|
|
1975
|
-
function
|
|
1994
|
+
function Ne(e) {
|
|
1976
1995
|
return e != null && typeof e == "object" && "children" in e && Array.isArray(e.children);
|
|
1977
1996
|
}
|
|
1978
|
-
function Ee(e, o,
|
|
1997
|
+
function Ee(e, o, n) {
|
|
1979
1998
|
if (e) {
|
|
1980
1999
|
if (!Object.prototype.hasOwnProperty.call(e, "id") && o === "id")
|
|
1981
2000
|
throw new Error(
|
|
1982
2001
|
"ComboBox: if items do not have an `id` key, you must specify which key uniquely identifies items using the `itemId` prop"
|
|
1983
2002
|
);
|
|
1984
|
-
if (!Object.prototype.hasOwnProperty.call(e, "name") &&
|
|
2003
|
+
if (!Object.prototype.hasOwnProperty.call(e, "name") && n === "name")
|
|
1985
2004
|
throw new Error(
|
|
1986
2005
|
"ComboBox: if items do not have a `name` key, you must specify which key can be used as a text value using the `itemValue` prop"
|
|
1987
2006
|
);
|
|
1988
2007
|
}
|
|
1989
2008
|
}
|
|
1990
|
-
const
|
|
2009
|
+
const st = (
|
|
1991
2010
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1992
2011
|
({
|
|
1993
2012
|
selectedKeys: e = /* @__PURE__ */ new Set(),
|
|
1994
2013
|
items: o,
|
|
1995
|
-
itemId:
|
|
1996
|
-
itemValue:
|
|
1997
|
-
placeholder:
|
|
1998
|
-
onSelectionChange:
|
|
1999
|
-
isDisabled:
|
|
2000
|
-
isReadOnly:
|
|
2001
|
-
size:
|
|
2014
|
+
itemId: n = "id",
|
|
2015
|
+
itemValue: t = "name",
|
|
2016
|
+
placeholder: u,
|
|
2017
|
+
onSelectionChange: c,
|
|
2018
|
+
isDisabled: $,
|
|
2019
|
+
isReadOnly: r,
|
|
2020
|
+
size: l,
|
|
2002
2021
|
containerRef: x,
|
|
2003
|
-
ref:
|
|
2022
|
+
ref: A
|
|
2004
2023
|
}) => {
|
|
2005
|
-
const C =
|
|
2024
|
+
const C = ae(() => {
|
|
2006
2025
|
if (!o) return [];
|
|
2007
2026
|
const m = Array.from(e);
|
|
2008
2027
|
if (Array.isArray(o)) {
|
|
2009
|
-
const
|
|
2010
|
-
if (
|
|
2011
|
-
const
|
|
2028
|
+
const f = o[0];
|
|
2029
|
+
if (f && Ne(f)) {
|
|
2030
|
+
const b = [];
|
|
2012
2031
|
return o.forEach((S) => {
|
|
2013
|
-
|
|
2014
|
-
}), Ee(
|
|
2032
|
+
Ne(S) && b.push(...S.children);
|
|
2033
|
+
}), Ee(b?.[0], n, t), m.map((S) => b.find((K) => K[n] === S)).filter((S) => S !== void 0);
|
|
2015
2034
|
}
|
|
2016
2035
|
const h = o;
|
|
2017
|
-
return Ee(h?.[0],
|
|
2036
|
+
return Ee(h?.[0], n, t), m.map((b) => h.find((S) => S[n] === b)).filter((b) => b !== void 0);
|
|
2018
2037
|
}
|
|
2019
|
-
const g = m.map((
|
|
2020
|
-
return Ee(g?.[0],
|
|
2021
|
-
}, [o, e,
|
|
2038
|
+
const g = m.map((f) => Array.from(o).find((h) => h[n] === f)).filter((f) => f !== void 0);
|
|
2039
|
+
return Ee(g?.[0], n, t), g;
|
|
2040
|
+
}, [o, e, n]), B = O(
|
|
2022
2041
|
(m) => {
|
|
2023
|
-
if (!(
|
|
2024
|
-
const g = e,
|
|
2042
|
+
if (!($ || r) && e instanceof Set) {
|
|
2043
|
+
const g = e, f = new Set(
|
|
2025
2044
|
[...g].filter((h) => !m.has(h))
|
|
2026
2045
|
);
|
|
2027
|
-
|
|
2046
|
+
c?.(f), x?.current && x.current.focus();
|
|
2028
2047
|
}
|
|
2029
2048
|
},
|
|
2030
|
-
[
|
|
2049
|
+
[$, r, e, c]
|
|
2031
2050
|
);
|
|
2032
|
-
return /* @__PURE__ */
|
|
2033
|
-
|
|
2051
|
+
return /* @__PURE__ */ s(eo, { children: /* @__PURE__ */ s(
|
|
2052
|
+
wn,
|
|
2034
2053
|
{
|
|
2035
2054
|
asChild: !0,
|
|
2036
2055
|
alignItems: "space-between",
|
|
2037
2056
|
justifyContent: "center",
|
|
2038
|
-
ref:
|
|
2039
|
-
children: /* @__PURE__ */
|
|
2057
|
+
ref: A,
|
|
2058
|
+
children: /* @__PURE__ */ s(
|
|
2040
2059
|
Ae.Root,
|
|
2041
2060
|
{
|
|
2042
|
-
size:
|
|
2043
|
-
onRemove:
|
|
2061
|
+
size: l,
|
|
2062
|
+
onRemove: B,
|
|
2044
2063
|
"aria-label": "Selected values",
|
|
2045
2064
|
selectionMode: "none",
|
|
2046
|
-
disabledKeys:
|
|
2047
|
-
"data-disabled":
|
|
2048
|
-
children: /* @__PURE__ */
|
|
2065
|
+
disabledKeys: $ || r ? e : void 0,
|
|
2066
|
+
"data-disabled": $,
|
|
2067
|
+
children: /* @__PURE__ */ s(
|
|
2049
2068
|
Ae.TagList,
|
|
2050
2069
|
{
|
|
2051
2070
|
items: C,
|
|
2052
|
-
dependencies: [
|
|
2071
|
+
dependencies: [n],
|
|
2053
2072
|
maxW: "100%",
|
|
2054
|
-
tabIndex: C.length === 0 ||
|
|
2055
|
-
renderEmptyState: () =>
|
|
2073
|
+
tabIndex: C.length === 0 || $ || r ? -1 : void 0,
|
|
2074
|
+
renderEmptyState: () => u && /* @__PURE__ */ s(
|
|
2056
2075
|
"div",
|
|
2057
2076
|
{
|
|
2058
2077
|
"data-placeholder": "true",
|
|
@@ -2061,10 +2080,10 @@ const rt = (
|
|
|
2061
2080
|
overflow: "hidden",
|
|
2062
2081
|
textOverflow: "ellipsis"
|
|
2063
2082
|
},
|
|
2064
|
-
children:
|
|
2083
|
+
children: u
|
|
2065
2084
|
}
|
|
2066
2085
|
),
|
|
2067
|
-
children: (m) => /* @__PURE__ */
|
|
2086
|
+
children: (m) => /* @__PURE__ */ s(Ae.Tag, { id: m[n], maxW: "100%", children: m[t] })
|
|
2068
2087
|
}
|
|
2069
2088
|
)
|
|
2070
2089
|
}
|
|
@@ -2072,20 +2091,20 @@ const rt = (
|
|
|
2072
2091
|
}
|
|
2073
2092
|
) });
|
|
2074
2093
|
}
|
|
2075
|
-
),
|
|
2094
|
+
), dt = ({
|
|
2076
2095
|
selectedKeys: e,
|
|
2077
2096
|
onSelectionChange: o,
|
|
2078
|
-
onInputChange:
|
|
2079
|
-
containerRef:
|
|
2080
|
-
isDisabled:
|
|
2081
|
-
isReadOnly:
|
|
2082
|
-
isLoading:
|
|
2097
|
+
onInputChange: n,
|
|
2098
|
+
containerRef: t,
|
|
2099
|
+
isDisabled: u,
|
|
2100
|
+
isReadOnly: c,
|
|
2101
|
+
isLoading: $
|
|
2083
2102
|
}) => {
|
|
2084
|
-
const
|
|
2085
|
-
o?.(/* @__PURE__ */ new Set()),
|
|
2103
|
+
const r = O(() => {
|
|
2104
|
+
o?.(/* @__PURE__ */ new Set()), n?.(""), t?.current && t.current.focus();
|
|
2086
2105
|
}, []);
|
|
2087
|
-
return /* @__PURE__ */
|
|
2088
|
-
/* @__PURE__ */
|
|
2106
|
+
return /* @__PURE__ */ re(kn, { children: [
|
|
2107
|
+
/* @__PURE__ */ s(eo, { children: e instanceof Set && e.size > 0 && /* @__PURE__ */ s(
|
|
2089
2108
|
Fe,
|
|
2090
2109
|
{
|
|
2091
2110
|
pointerEvents: "all",
|
|
@@ -2094,180 +2113,182 @@ const rt = (
|
|
|
2094
2113
|
variant: "ghost",
|
|
2095
2114
|
tone: "primary",
|
|
2096
2115
|
"aria-label": "Clear Selection",
|
|
2097
|
-
isDisabled:
|
|
2098
|
-
onPress:
|
|
2116
|
+
isDisabled: u || c,
|
|
2117
|
+
onPress: r,
|
|
2099
2118
|
my: "auto",
|
|
2100
|
-
children: /* @__PURE__ */
|
|
2119
|
+
children: /* @__PURE__ */ s(ao, {})
|
|
2101
2120
|
}
|
|
2102
2121
|
) }),
|
|
2103
|
-
/* @__PURE__ */
|
|
2104
|
-
|
|
2122
|
+
/* @__PURE__ */ s(
|
|
2123
|
+
$o,
|
|
2105
2124
|
{
|
|
2106
2125
|
my: "auto",
|
|
2107
2126
|
w: "600",
|
|
2108
2127
|
h: "600",
|
|
2109
2128
|
color: "neutral.11",
|
|
2110
|
-
opacity:
|
|
2111
|
-
cursor:
|
|
2112
|
-
children: /* @__PURE__ */
|
|
2113
|
-
|
|
2129
|
+
opacity: c || u ? "0.5" : void 0,
|
|
2130
|
+
cursor: c || u ? "not-allowed" : void 0,
|
|
2131
|
+
children: /* @__PURE__ */ s(me, { pointerEvents: "none", asChild: !0, m: "auto", w: "400", h: "400", children: $ ? /* @__PURE__ */ s(
|
|
2132
|
+
me,
|
|
2114
2133
|
{
|
|
2115
2134
|
asChild: !0,
|
|
2116
2135
|
animation: "spin",
|
|
2117
2136
|
animationDuration: "slowest",
|
|
2118
2137
|
"data-testid": "nimbus-combobox-loading",
|
|
2119
|
-
children: /* @__PURE__ */
|
|
2138
|
+
children: /* @__PURE__ */ s(so, {})
|
|
2120
2139
|
}
|
|
2121
|
-
) : /* @__PURE__ */
|
|
2140
|
+
) : /* @__PURE__ */ s(po, {}) })
|
|
2122
2141
|
}
|
|
2123
2142
|
)
|
|
2124
2143
|
] });
|
|
2125
2144
|
};
|
|
2126
|
-
function
|
|
2145
|
+
function pt(e) {
|
|
2127
2146
|
let o;
|
|
2128
2147
|
for (o of e) ;
|
|
2129
2148
|
return o;
|
|
2130
2149
|
}
|
|
2131
|
-
const
|
|
2150
|
+
const $t = ({
|
|
2132
2151
|
children: e,
|
|
2133
2152
|
defaultFilter: o,
|
|
2134
|
-
inputValue:
|
|
2135
|
-
defaultInputValue:
|
|
2136
|
-
onInputChange:
|
|
2137
|
-
defaultSelectedKeys:
|
|
2138
|
-
selectedKeys:
|
|
2139
|
-
onSelectionChange:
|
|
2140
|
-
onOpenChange:
|
|
2153
|
+
inputValue: n,
|
|
2154
|
+
defaultInputValue: t,
|
|
2155
|
+
onInputChange: u,
|
|
2156
|
+
defaultSelectedKeys: c = /* @__PURE__ */ new Set(),
|
|
2157
|
+
selectedKeys: $,
|
|
2158
|
+
onSelectionChange: r,
|
|
2159
|
+
onOpenChange: l,
|
|
2141
2160
|
disabledKeys: x,
|
|
2142
|
-
items:
|
|
2161
|
+
items: A,
|
|
2143
2162
|
defaultItems: C,
|
|
2144
|
-
itemId:
|
|
2163
|
+
itemId: B = "id",
|
|
2145
2164
|
itemValue: m = "name",
|
|
2146
2165
|
isLoading: g,
|
|
2147
|
-
isDisabled:
|
|
2166
|
+
isDisabled: f,
|
|
2148
2167
|
isReadOnly: h,
|
|
2149
|
-
isRequired:
|
|
2168
|
+
isRequired: b,
|
|
2150
2169
|
isInvalid: S,
|
|
2151
2170
|
className: K,
|
|
2152
|
-
placeholder:
|
|
2153
|
-
size:
|
|
2154
|
-
allowsCustomValue:
|
|
2171
|
+
placeholder: G,
|
|
2172
|
+
size: D = "md",
|
|
2173
|
+
allowsCustomValue: Q,
|
|
2155
2174
|
onSubmitCustomValue: z,
|
|
2156
|
-
renderEmptyState:
|
|
2157
|
-
ref:
|
|
2158
|
-
|
|
2175
|
+
renderEmptyState: q,
|
|
2176
|
+
ref: N,
|
|
2177
|
+
leadingElement: w,
|
|
2178
|
+
...oe
|
|
2159
2179
|
}) => {
|
|
2160
|
-
const [
|
|
2161
|
-
(
|
|
2162
|
-
if (
|
|
2163
|
-
|
|
2180
|
+
const [V, j] = X(!1), W = T(!1), [F, i] = X(), a = $ ?? F ?? c, v = r ?? i, [M, L] = X(""), P = n ?? M ?? t, R = u ?? L, H = A ?? C, _ = no({ sensitivity: "base" }), ie = (...d) => _.contains.apply(void 0, d), U = O(
|
|
2181
|
+
(d) => {
|
|
2182
|
+
if (f || h) {
|
|
2183
|
+
V && j(!1);
|
|
2164
2184
|
return;
|
|
2165
2185
|
}
|
|
2166
|
-
|
|
2186
|
+
l && l?.(d), j(d), d || (W.current = !0, requestAnimationFrame(() => {
|
|
2167
2187
|
setTimeout(() => {
|
|
2168
|
-
|
|
2188
|
+
W.current = !1;
|
|
2169
2189
|
}, 50);
|
|
2170
2190
|
}));
|
|
2171
2191
|
},
|
|
2172
|
-
[
|
|
2192
|
+
[f, h, l, V]
|
|
2173
2193
|
);
|
|
2174
|
-
|
|
2175
|
-
(
|
|
2176
|
-
}, [
|
|
2177
|
-
const
|
|
2178
|
-
(
|
|
2179
|
-
|
|
2194
|
+
ue(() => {
|
|
2195
|
+
(f || h) && U(!1);
|
|
2196
|
+
}, [f, h]);
|
|
2197
|
+
const ne = O(
|
|
2198
|
+
(d) => {
|
|
2199
|
+
f || h || d.target === d.currentTarget && !V && !W.current && U(!0);
|
|
2180
2200
|
},
|
|
2181
|
-
[
|
|
2182
|
-
),
|
|
2183
|
-
if (
|
|
2184
|
-
const
|
|
2185
|
-
if (
|
|
2186
|
-
const
|
|
2187
|
-
|
|
2201
|
+
[V]
|
|
2202
|
+
), ce = O(() => {
|
|
2203
|
+
if (a !== "all" && a instanceof Set) {
|
|
2204
|
+
const d = pt(a);
|
|
2205
|
+
if (d != null) {
|
|
2206
|
+
const J = new Set(a);
|
|
2207
|
+
J.delete(d), v(J);
|
|
2188
2208
|
}
|
|
2189
2209
|
}
|
|
2190
|
-
}, [
|
|
2191
|
-
(
|
|
2192
|
-
}, []),
|
|
2193
|
-
(
|
|
2194
|
-
if (
|
|
2195
|
-
|
|
2210
|
+
}, [a, v]), se = O((d) => {
|
|
2211
|
+
(d.key === "ArrowDown" || d.key === "ArrowUp" || d.key === "Enter") && d.target === p.current && (d.preventDefault(), U(!0));
|
|
2212
|
+
}, []), de = O(
|
|
2213
|
+
(d) => {
|
|
2214
|
+
if (d.key === "Backspace" && P === "") {
|
|
2215
|
+
ce();
|
|
2196
2216
|
return;
|
|
2197
2217
|
}
|
|
2198
|
-
if (
|
|
2199
|
-
|
|
2218
|
+
if (d.key === "Escape") {
|
|
2219
|
+
U(!1), p.current && p.current.focus();
|
|
2200
2220
|
return;
|
|
2201
2221
|
}
|
|
2202
|
-
if (
|
|
2203
|
-
if (
|
|
2204
|
-
const
|
|
2205
|
-
if (
|
|
2206
|
-
const
|
|
2207
|
-
|
|
2222
|
+
if (d.key === "Enter" && P.trim() !== "" && Q && z)
|
|
2223
|
+
if (d.stopPropagation(), H) {
|
|
2224
|
+
const J = P.trim(), Z = Array.from(H).find((ee) => (typeof ee == "object" && ee !== null && m in ee ? String(ee[m]) : JSON.stringify(ee)).toLowerCase() === J.toLowerCase());
|
|
2225
|
+
if (Z) {
|
|
2226
|
+
const ee = typeof Z == "object" && Z !== null && B in Z ? Z[B] : Z, le = new Set(a);
|
|
2227
|
+
le.add(ee), v(le), R("");
|
|
2208
2228
|
} else
|
|
2209
|
-
z(
|
|
2229
|
+
z(P), R("");
|
|
2210
2230
|
} else
|
|
2211
|
-
z(
|
|
2231
|
+
z(P), R("");
|
|
2212
2232
|
},
|
|
2213
2233
|
[
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2234
|
+
P,
|
|
2235
|
+
ce,
|
|
2236
|
+
Q,
|
|
2217
2237
|
z,
|
|
2218
|
-
|
|
2238
|
+
H,
|
|
2219
2239
|
m,
|
|
2220
|
-
|
|
2221
|
-
t,
|
|
2240
|
+
B,
|
|
2222
2241
|
a,
|
|
2223
|
-
|
|
2242
|
+
v,
|
|
2243
|
+
R
|
|
2224
2244
|
]
|
|
2225
|
-
),
|
|
2226
|
-
return /* @__PURE__ */
|
|
2227
|
-
/* @__PURE__ */
|
|
2245
|
+
), p = T(null), E = Fu(N, p);
|
|
2246
|
+
return /* @__PURE__ */ re(eu, { isOpen: V, onOpenChange: U, children: [
|
|
2247
|
+
/* @__PURE__ */ s(ku, { allowTextSelectionOnPress: !0, children: /* @__PURE__ */ re(
|
|
2228
2248
|
"div",
|
|
2229
2249
|
{
|
|
2230
2250
|
className: K,
|
|
2231
|
-
tabIndex:
|
|
2232
|
-
ref:
|
|
2251
|
+
tabIndex: f ? -1 : 0,
|
|
2252
|
+
ref: E,
|
|
2233
2253
|
role: "combobox",
|
|
2234
|
-
onKeyDown:
|
|
2235
|
-
onFocus:
|
|
2236
|
-
"aria-expanded":
|
|
2254
|
+
onKeyDown: se,
|
|
2255
|
+
onFocus: ne,
|
|
2256
|
+
"aria-expanded": V,
|
|
2237
2257
|
"aria-haspopup": "dialog",
|
|
2238
|
-
"aria-disabled":
|
|
2258
|
+
"aria-disabled": f,
|
|
2239
2259
|
"aria-readonly": h,
|
|
2240
|
-
"aria-required":
|
|
2260
|
+
"aria-required": b,
|
|
2241
2261
|
"aria-invalid": S,
|
|
2242
|
-
"data-disabled":
|
|
2262
|
+
"data-disabled": f,
|
|
2243
2263
|
"data-invalid": S,
|
|
2244
|
-
"data-required":
|
|
2245
|
-
"data-open":
|
|
2246
|
-
...
|
|
2264
|
+
"data-required": b,
|
|
2265
|
+
"data-open": V,
|
|
2266
|
+
...oe,
|
|
2247
2267
|
children: [
|
|
2248
|
-
/* @__PURE__ */
|
|
2249
|
-
|
|
2268
|
+
w && /* @__PURE__ */ s(Kn, { children: w }),
|
|
2269
|
+
/* @__PURE__ */ s(
|
|
2270
|
+
st,
|
|
2250
2271
|
{
|
|
2251
|
-
items:
|
|
2252
|
-
selectedKeys:
|
|
2253
|
-
onSelectionChange:
|
|
2254
|
-
itemId:
|
|
2272
|
+
items: H,
|
|
2273
|
+
selectedKeys: a,
|
|
2274
|
+
onSelectionChange: v,
|
|
2275
|
+
itemId: B,
|
|
2255
2276
|
itemValue: m,
|
|
2256
|
-
placeholder:
|
|
2257
|
-
size:
|
|
2258
|
-
containerRef:
|
|
2259
|
-
isDisabled:
|
|
2277
|
+
placeholder: G,
|
|
2278
|
+
size: D,
|
|
2279
|
+
containerRef: p,
|
|
2280
|
+
isDisabled: f,
|
|
2260
2281
|
isReadOnly: h
|
|
2261
2282
|
}
|
|
2262
2283
|
),
|
|
2263
|
-
/* @__PURE__ */
|
|
2264
|
-
|
|
2284
|
+
/* @__PURE__ */ s(
|
|
2285
|
+
dt,
|
|
2265
2286
|
{
|
|
2266
|
-
selectedKeys:
|
|
2267
|
-
onSelectionChange:
|
|
2268
|
-
onInputChange:
|
|
2269
|
-
containerRef:
|
|
2270
|
-
isDisabled:
|
|
2287
|
+
selectedKeys: a,
|
|
2288
|
+
onSelectionChange: v,
|
|
2289
|
+
onInputChange: R,
|
|
2290
|
+
containerRef: p,
|
|
2291
|
+
isDisabled: f,
|
|
2271
2292
|
isReadOnly: h,
|
|
2272
2293
|
isLoading: g
|
|
2273
2294
|
}
|
|
@@ -2275,42 +2296,42 @@ const dt = ({
|
|
|
2275
2296
|
]
|
|
2276
2297
|
}
|
|
2277
2298
|
) }),
|
|
2278
|
-
/* @__PURE__ */
|
|
2279
|
-
|
|
2299
|
+
/* @__PURE__ */ s(et, { asChild: !0, children: /* @__PURE__ */ s(_e, { triggerRef: p, placement: "bottom start", children: /* @__PURE__ */ s(ou, { "aria-label": "combobox dialog", children: /* @__PURE__ */ re(
|
|
2300
|
+
Nu,
|
|
2280
2301
|
{
|
|
2281
|
-
filter: o ??
|
|
2282
|
-
inputValue:
|
|
2283
|
-
onInputChange:
|
|
2302
|
+
filter: o ?? ie,
|
|
2303
|
+
inputValue: P,
|
|
2304
|
+
onInputChange: R,
|
|
2284
2305
|
children: [
|
|
2285
|
-
/* @__PURE__ */
|
|
2286
|
-
|
|
2306
|
+
/* @__PURE__ */ s(ot, { asChild: !0, children: /* @__PURE__ */ s(
|
|
2307
|
+
Xu,
|
|
2287
2308
|
{
|
|
2288
2309
|
autoFocus: !0,
|
|
2289
|
-
isDisabled:
|
|
2310
|
+
isDisabled: f,
|
|
2290
2311
|
isReadOnly: h,
|
|
2291
|
-
isRequired:
|
|
2312
|
+
isRequired: b,
|
|
2292
2313
|
"aria-label": "filter combobox options",
|
|
2293
|
-
children: /* @__PURE__ */
|
|
2294
|
-
|
|
2314
|
+
children: /* @__PURE__ */ s(
|
|
2315
|
+
Ye,
|
|
2295
2316
|
{
|
|
2296
|
-
onKeyDownCapture:
|
|
2297
|
-
placeholder:
|
|
2317
|
+
onKeyDownCapture: de,
|
|
2318
|
+
placeholder: G
|
|
2298
2319
|
}
|
|
2299
2320
|
)
|
|
2300
2321
|
}
|
|
2301
2322
|
) }),
|
|
2302
|
-
/* @__PURE__ */
|
|
2323
|
+
/* @__PURE__ */ s(
|
|
2303
2324
|
Re,
|
|
2304
2325
|
{
|
|
2305
|
-
items:
|
|
2326
|
+
items: H,
|
|
2306
2327
|
selectionMode: "multiple",
|
|
2307
|
-
onSelectionChange:
|
|
2308
|
-
selectedKeys:
|
|
2328
|
+
onSelectionChange: v,
|
|
2329
|
+
selectedKeys: a,
|
|
2309
2330
|
shouldFocusWrap: !0,
|
|
2310
|
-
disabledKeys:
|
|
2331
|
+
disabledKeys: f ? "all" : x,
|
|
2311
2332
|
escapeKeyBehavior: "none",
|
|
2312
2333
|
"aria-label": "combobox options",
|
|
2313
|
-
renderEmptyState:
|
|
2334
|
+
renderEmptyState: q,
|
|
2314
2335
|
children: e
|
|
2315
2336
|
}
|
|
2316
2337
|
)
|
|
@@ -2318,76 +2339,76 @@ const dt = ({
|
|
|
2318
2339
|
}
|
|
2319
2340
|
) }) }) })
|
|
2320
2341
|
] });
|
|
2321
|
-
},
|
|
2342
|
+
}, Rn = ({
|
|
2322
2343
|
children: e,
|
|
2323
2344
|
ref: o,
|
|
2324
|
-
...
|
|
2345
|
+
...n
|
|
2325
2346
|
}) => {
|
|
2326
|
-
const
|
|
2327
|
-
return /* @__PURE__ */
|
|
2328
|
-
|
|
2347
|
+
const t = zn({ recipe: je }), [u, c] = t.splitVariantProps(n), [$, r] = ke(c), l = "selectionMode" in n && n.selectionMode === "multiple" ? $t : at;
|
|
2348
|
+
return /* @__PURE__ */ s(
|
|
2349
|
+
Qu,
|
|
2329
2350
|
{
|
|
2330
2351
|
asChild: !0,
|
|
2331
|
-
selectionMode:
|
|
2332
|
-
...
|
|
2333
|
-
|
|
2334
|
-
children: /* @__PURE__ */
|
|
2352
|
+
selectionMode: n.selectionMode,
|
|
2353
|
+
...u,
|
|
2354
|
+
...$,
|
|
2355
|
+
children: /* @__PURE__ */ s(l, { ref: o, size: u.size, ...r, children: e })
|
|
2335
2356
|
}
|
|
2336
2357
|
);
|
|
2337
2358
|
};
|
|
2338
|
-
|
|
2339
|
-
const
|
|
2359
|
+
Rn.displayName = "ComboBox.Root";
|
|
2360
|
+
const On = ({
|
|
2340
2361
|
children: e,
|
|
2341
2362
|
label: o,
|
|
2342
|
-
items:
|
|
2343
|
-
ref:
|
|
2344
|
-
...
|
|
2363
|
+
items: n,
|
|
2364
|
+
ref: t,
|
|
2365
|
+
...u
|
|
2345
2366
|
}) => {
|
|
2346
|
-
if (
|
|
2367
|
+
if (n && typeof e != "function")
|
|
2347
2368
|
throw new Error(
|
|
2348
2369
|
'ComboBoxOptionGroup: When "items" is provided, "children" must be a function'
|
|
2349
2370
|
);
|
|
2350
|
-
return /* @__PURE__ */
|
|
2351
|
-
/* @__PURE__ */
|
|
2352
|
-
|
|
2371
|
+
return /* @__PURE__ */ re(Jn, { ref: t, ...u, children: [
|
|
2372
|
+
/* @__PURE__ */ s(ut, { asChild: !0, children: /* @__PURE__ */ s(gu, { children: o }) }),
|
|
2373
|
+
n ? /* @__PURE__ */ s(uu, { items: n, children: (c) => typeof e == "function" ? e(c) : null }) : e
|
|
2353
2374
|
] });
|
|
2354
2375
|
};
|
|
2355
|
-
|
|
2356
|
-
const
|
|
2376
|
+
On.displayName = "ComboBox.OptionGroup";
|
|
2377
|
+
const Vn = ({
|
|
2357
2378
|
children: e,
|
|
2358
2379
|
ref: o,
|
|
2359
|
-
...
|
|
2380
|
+
...n
|
|
2360
2381
|
}) => {
|
|
2361
|
-
const [
|
|
2362
|
-
return /* @__PURE__ */
|
|
2363
|
-
|
|
2382
|
+
const [t, u] = ke(n), c = typeof e == "string" ? e : void 0;
|
|
2383
|
+
return /* @__PURE__ */ s(tt, { ...t, asChild: !0, children: /* @__PURE__ */ s(
|
|
2384
|
+
Zn,
|
|
2364
2385
|
{
|
|
2365
2386
|
ref: o,
|
|
2366
|
-
textValue:
|
|
2367
|
-
"aria-label":
|
|
2368
|
-
...
|
|
2369
|
-
children: (
|
|
2370
|
-
const
|
|
2371
|
-
|
|
2387
|
+
textValue: n.textValue ?? c,
|
|
2388
|
+
"aria-label": n.textValue ?? c,
|
|
2389
|
+
...u,
|
|
2390
|
+
children: ($) => {
|
|
2391
|
+
const r = typeof e == "function" ? e({
|
|
2392
|
+
...$
|
|
2372
2393
|
}) : e;
|
|
2373
|
-
return
|
|
2374
|
-
/* @__PURE__ */
|
|
2375
|
-
/* @__PURE__ */
|
|
2376
|
-
] }) : /* @__PURE__ */
|
|
2394
|
+
return $.selectionMode === "multiple" ? /* @__PURE__ */ re(Ve, { children: [
|
|
2395
|
+
/* @__PURE__ */ s(lt, { children: /* @__PURE__ */ s("span", { "data-selected": $.isSelected, children: $.isSelected && /* @__PURE__ */ s(Tu, {}) }) }),
|
|
2396
|
+
/* @__PURE__ */ s(it, { children: r })
|
|
2397
|
+
] }) : /* @__PURE__ */ s(Ve, { children: r });
|
|
2377
2398
|
}
|
|
2378
2399
|
}
|
|
2379
2400
|
) });
|
|
2380
2401
|
};
|
|
2381
|
-
|
|
2382
|
-
const
|
|
2383
|
-
Root:
|
|
2384
|
-
OptionGroup:
|
|
2385
|
-
Option:
|
|
2402
|
+
Vn.displayName = "ComboBox.Option";
|
|
2403
|
+
const il = {
|
|
2404
|
+
Root: Rn,
|
|
2405
|
+
OptionGroup: On,
|
|
2406
|
+
Option: Vn
|
|
2386
2407
|
};
|
|
2387
2408
|
export {
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2409
|
+
il as C,
|
|
2410
|
+
Rn as a,
|
|
2411
|
+
On as b,
|
|
2412
|
+
Vn as c
|
|
2392
2413
|
};
|
|
2393
|
-
//# sourceMappingURL=combobox-
|
|
2414
|
+
//# sourceMappingURL=combobox-Dmn2vxIz.es.js.map
|