@commercetools/nimbus 0.0.0-canary-20251024075337 → 0.0.0-canary-20251024090130
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/chunks/{Button-CafJrK0a.es.js → Button-C4ud7YxN.es.js} +3 -3
- package/dist/chunks/{Button-CafJrK0a.es.js.map → Button-C4ud7YxN.es.js.map} +1 -1
- package/dist/chunks/{DateField-BjKTTWs5.es.js → DateField-oXtVK-_5.es.js} +6 -6
- package/dist/chunks/{DateField-BjKTTWs5.es.js.map → DateField-oXtVK-_5.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-BrgxRTyS.es.js → DatePicker-DrWdEOUQ.es.js} +40 -40
- package/dist/chunks/{DatePicker-BrgxRTyS.es.js.map → DatePicker-DrWdEOUQ.es.js.map} +1 -1
- package/dist/chunks/{Dialog-Cx5MzP6O.es.js → Dialog-C3sNnu1k.es.js} +5 -5
- package/dist/chunks/{Dialog-Cx5MzP6O.es.js.map → Dialog-C3sNnu1k.es.js.map} +1 -1
- package/dist/chunks/{Group-Bd9Zcn-V.es.js → Group-CiDvtaeM.es.js} +2 -2
- package/dist/chunks/{Group-Bd9Zcn-V.es.js.map → Group-CiDvtaeM.es.js.map} +1 -1
- package/dist/chunks/{Header-D6CYH5C_.es.js → Header-BxizMPpp.es.js} +2 -2
- package/dist/chunks/{Header-D6CYH5C_.es.js.map → Header-BxizMPpp.es.js.map} +1 -1
- package/dist/chunks/{Heading-DPlDZAaf.es.js → Heading-CAI_WTdS.es.js} +14 -14
- package/dist/chunks/{Heading-DPlDZAaf.es.js.map → Heading-CAI_WTdS.es.js.map} +1 -1
- package/dist/chunks/{Input-EnWCwj65.es.js → Input-De-sfAtq.es.js} +2 -2
- package/dist/chunks/{Input-EnWCwj65.es.js.map → Input-De-sfAtq.es.js.map} +1 -1
- package/dist/chunks/{Label-7OK510ha.es.js → Label-BS7NIWvY.es.js} +2 -2
- package/dist/chunks/{Label-7OK510ha.es.js.map → Label-BS7NIWvY.es.js.map} +1 -1
- package/dist/chunks/{ListBox-C4BToxCj.es.js → ListBox-BfRQSQ3P.es.js} +4 -4
- package/dist/chunks/{ListBox-C4BToxCj.es.js.map → ListBox-BfRQSQ3P.es.js.map} +1 -1
- package/dist/chunks/{Modal-DowTFCAo.es.js → Modal-BTJk-mW-.es.js} +3 -3
- package/dist/chunks/{Modal-DowTFCAo.es.js.map → Modal-BTJk-mW-.es.js.map} +1 -1
- package/dist/chunks/{ProgressBar-DA797ATA.es.js → ProgressBar-Dl4ZrjfX.es.js} +3 -3
- package/dist/chunks/{ProgressBar-DA797ATA.es.js.map → ProgressBar-Dl4ZrjfX.es.js.map} +1 -1
- package/dist/chunks/{Separator-B0kvBk7k.es.js → Separator-BOfmJd-0.es.js} +2 -2
- package/dist/chunks/{Separator-B0kvBk7k.es.js.map → Separator-BOfmJd-0.es.js.map} +1 -1
- package/dist/chunks/{TextArea-B__-6Fht.es.js → TextArea-DR4R6vJD.es.js} +2 -2
- package/dist/chunks/{TextArea-B__-6Fht.es.js.map → TextArea-DR4R6vJD.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-wAaapRtE.es.js → ToggleButton-DMoUAyoo.es.js} +2 -2
- package/dist/chunks/{ToggleButton-wAaapRtE.es.js.map → ToggleButton-DMoUAyoo.es.js.map} +1 -1
- package/dist/chunks/{accordion-BMztnndo.es.js → accordion-DyTTsrDh.es.js} +4 -4
- package/dist/chunks/{accordion-BMztnndo.es.js.map → accordion-DyTTsrDh.es.js.map} +1 -1
- package/dist/chunks/{alert-DEy9gf3U.es.js → alert-DCm-d72j.es.js} +2 -2
- package/dist/chunks/{alert-DEy9gf3U.es.js.map → alert-DCm-d72j.es.js.map} +1 -1
- package/dist/chunks/avatar-BNhECwD5.cjs.js +2 -0
- package/dist/chunks/avatar-BNhECwD5.cjs.js.map +1 -0
- package/dist/chunks/avatar-DFibCsCs.es.js +47 -0
- package/dist/chunks/avatar-DFibCsCs.es.js.map +1 -0
- package/dist/chunks/{button-B4vE-tAz.es.js → button-Ccof5UcQ.es.js} +4 -4
- package/dist/chunks/{button-B4vE-tAz.es.js.map → button-Ccof5UcQ.es.js.map} +1 -1
- package/dist/chunks/calendar-CcA9vDZ_.es.js +209 -0
- package/dist/chunks/calendar-CcA9vDZ_.es.js.map +1 -0
- package/dist/chunks/calendar-Dm2LIuao.cjs.js +2 -0
- package/dist/chunks/calendar-Dm2LIuao.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-B-1U4AKF.es.js → checkbox-CFDf2T7S.es.js} +3 -3
- package/dist/chunks/{checkbox-B-1U4AKF.es.js.map → checkbox-CFDf2T7S.es.js.map} +1 -1
- package/dist/chunks/{collapsible-motion-CeEspYkc.es.js → collapsible-motion-DmWoSXyS.es.js} +3 -3
- package/dist/chunks/{collapsible-motion-CeEspYkc.es.js.map → collapsible-motion-DmWoSXyS.es.js.map} +1 -1
- package/dist/chunks/combobox-BuuiDfjq.cjs.js +2 -0
- package/dist/chunks/combobox-BuuiDfjq.cjs.js.map +1 -0
- package/dist/chunks/{combobox-0cCAwg3W.es.js → combobox-C1DerhP1.es.js} +1064 -1032
- package/dist/chunks/combobox-C1DerhP1.es.js.map +1 -0
- package/dist/chunks/{data-table-BxITOPnx.es.js → data-table-BuGUlgQU.es.js} +1169 -1116
- package/dist/chunks/data-table-BuGUlgQU.es.js.map +1 -0
- package/dist/chunks/data-table-CyNImBEZ.cjs.js +2 -0
- package/dist/chunks/data-table-CyNImBEZ.cjs.js.map +1 -0
- package/dist/chunks/{date-input-D70l0IsY.es.js → date-input-B_T7Az3-.es.js} +4 -4
- package/dist/chunks/{date-input-D70l0IsY.es.js.map → date-input-B_T7Az3-.es.js.map} +1 -1
- package/dist/chunks/{date-picker-Dk3QgvCN.cjs.js → date-picker-BEDlqfYN.cjs.js} +2 -2
- package/dist/chunks/date-picker-BEDlqfYN.cjs.js.map +1 -0
- package/dist/chunks/{date-picker-FvaPPqXZ.es.js → date-picker-DcDxaZ6Y.es.js} +14 -14
- package/dist/chunks/date-picker-DcDxaZ6Y.es.js.map +1 -0
- package/dist/chunks/date-range-picker-C5G8uDlJ.es.js +358 -0
- package/dist/chunks/date-range-picker-C5G8uDlJ.es.js.map +1 -0
- package/dist/chunks/date-range-picker-vr0DE_0V.cjs.js +2 -0
- package/dist/chunks/date-range-picker-vr0DE_0V.cjs.js.map +1 -0
- package/dist/chunks/{dialog-Bsg1kLnV.es.js → dialog-C9OHxEA2.es.js} +2 -2
- package/dist/chunks/{dialog-Bsg1kLnV.es.js.map → dialog-C9OHxEA2.es.js.map} +1 -1
- package/dist/chunks/{dialog.title-BmLccUat.es.js → dialog.title-CGSRn_GL.es.js} +7 -7
- package/dist/chunks/{dialog.title-BmLccUat.es.js.map → dialog.title-CGSRn_GL.es.js.map} +1 -1
- package/dist/chunks/{draggable-list-CadviYoN.es.js → draggable-list-5SfJXtEK.es.js} +10 -10
- package/dist/chunks/{draggable-list-CadviYoN.es.js.map → draggable-list-5SfJXtEK.es.js.map} +1 -1
- package/dist/chunks/{drawer-BsHkmwKB.es.js → drawer-LRm6SeM-.es.js} +8 -8
- package/dist/chunks/{drawer-BsHkmwKB.es.js.map → drawer-LRm6SeM-.es.js.map} +1 -1
- package/dist/chunks/{extract-style-props-CTU5PJnh.es.js → extract-style-props-CZpdYA8m.es.js} +2 -2
- package/dist/chunks/{extract-style-props-CTU5PJnh.es.js.map → extract-style-props-CZpdYA8m.es.js.map} +1 -1
- package/dist/chunks/{form-field-CH7MhZMM.es.js → form-field-B6PqLujT.es.js} +3 -3
- package/dist/chunks/{form-field-CH7MhZMM.es.js.map → form-field-B6PqLujT.es.js.map} +1 -1
- package/dist/chunks/{group-DDgNGiAB.es.js → group-BLPsc2Lf.es.js} +2 -2
- package/dist/chunks/{group-DDgNGiAB.es.js.map → group-BLPsc2Lf.es.js.map} +1 -1
- package/dist/chunks/{heading-DwvFL6nk.es.js → heading-14HwlWvH.es.js} +2 -2
- package/dist/chunks/{heading-DwvFL6nk.es.js.map → heading-14HwlWvH.es.js.map} +1 -1
- package/dist/chunks/{icon-button-CNauu_zf.es.js → icon-button-g4dZUH5O.es.js} +2 -2
- package/dist/chunks/{icon-button-CNauu_zf.es.js.map → icon-button-g4dZUH5O.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-D5ic1FhD.es.js → icon-toggle-button-DBGgxBWR.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-D5ic1FhD.es.js.map → icon-toggle-button-DBGgxBWR.es.js.map} +1 -1
- package/dist/chunks/{index-jNM4sRnI.es.js → index-CaeeOiBp.es.js} +3 -3
- package/dist/chunks/{index-jNM4sRnI.es.js.map → index-CaeeOiBp.es.js.map} +1 -1
- package/dist/chunks/{kbd-C6IVVksK.es.js → kbd-Cy3jFCSc.es.js} +2 -2
- package/dist/chunks/{kbd-C6IVVksK.es.js.map → kbd-Cy3jFCSc.es.js.map} +1 -1
- package/dist/chunks/loading-spinner-ByHGBHzt.es.js.map +1 -1
- package/dist/chunks/loading-spinner-DsKcjJ2b.cjs.js.map +1 -1
- package/dist/chunks/{localized-field-u03KZc2G.cjs.js → localized-field-BffTavHV.cjs.js} +2 -2
- package/dist/chunks/localized-field-BffTavHV.cjs.js.map +1 -0
- package/dist/chunks/{localized-field-D4HBEdq0.es.js → localized-field-CHV3AGQ-.es.js} +10 -10
- package/dist/chunks/localized-field-CHV3AGQ-.es.js.map +1 -0
- package/dist/chunks/{menu-CvowvbXh.es.js → menu-B5r0vnY6.es.js} +5 -5
- package/dist/chunks/{menu-CvowvbXh.es.js.map → menu-B5r0vnY6.es.js.map} +1 -1
- package/dist/chunks/{money-input-DHiEn7XA.es.js → money-input-Con6I5Ej.es.js} +7 -7
- package/dist/chunks/money-input-Con6I5Ej.es.js.map +1 -0
- package/dist/chunks/money-input-qNQdmjtx.cjs.js.map +1 -1
- package/dist/chunks/{multiline-text-input-BD_Pe10q.es.js → multiline-text-input-Cta4bg2-.es.js} +4 -4
- package/dist/chunks/{multiline-text-input-BD_Pe10q.es.js.map → multiline-text-input-Cta4bg2-.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-DD5Om-MD.es.js → nimbus-provider-BtTUZMKb.es.js} +2 -2
- package/dist/chunks/{nimbus-provider-DD5Om-MD.es.js.map → nimbus-provider-BtTUZMKb.es.js.map} +1 -1
- package/dist/chunks/{number-input-DO5bD82a.es.js → number-input-BClKrTYK.es.js} +5 -5
- package/dist/chunks/{number-input-DO5bD82a.es.js.map → number-input-BClKrTYK.es.js.map} +1 -1
- package/dist/chunks/number-input-BUdRuDBZ.cjs.js.map +1 -1
- package/dist/chunks/pagination-BL1y2lAx.cjs.js +2 -0
- package/dist/chunks/pagination-BL1y2lAx.cjs.js.map +1 -0
- package/dist/chunks/pagination-BqjffQ1Z.es.js +210 -0
- package/dist/chunks/pagination-BqjffQ1Z.es.js.map +1 -0
- package/dist/chunks/{password-input-D4vhdbQW.es.js → password-input-DoWjkkoL.es.js} +4 -4
- package/dist/chunks/password-input-DoWjkkoL.es.js.map +1 -0
- package/dist/chunks/password-input-Dtu0_JiV.cjs.js.map +1 -1
- package/dist/chunks/{popover-qy-Vw0qP.es.js → popover-Dtxly24d.es.js} +2 -2
- package/dist/chunks/{popover-qy-Vw0qP.es.js.map → popover-Dtxly24d.es.js.map} +1 -1
- package/dist/chunks/{progress-bar-h8RUoyYt.es.js → progress-bar-oCdd2qvN.es.js} +4 -4
- package/dist/chunks/{progress-bar-h8RUoyYt.es.js.map → progress-bar-oCdd2qvN.es.js.map} +1 -1
- package/dist/chunks/{radio-input-qdrHc_fC.es.js → radio-input-eA3VvPwV.es.js} +5 -5
- package/dist/chunks/{radio-input-qdrHc_fC.es.js.map → radio-input-eA3VvPwV.es.js.map} +1 -1
- package/dist/chunks/range-calendar-BXMVhACe.cjs.js +2 -0
- package/dist/chunks/range-calendar-BXMVhACe.cjs.js.map +1 -0
- package/dist/chunks/range-calendar-BnB1F7_i.es.js +209 -0
- package/dist/chunks/range-calendar-BnB1F7_i.es.js.map +1 -0
- package/dist/chunks/rich-text-input-BebV_CaK.es.js +1200 -0
- package/dist/chunks/rich-text-input-BebV_CaK.es.js.map +1 -0
- package/dist/chunks/rich-text-input-D6WXRxiJ.cjs.js +10 -0
- package/dist/chunks/rich-text-input-D6WXRxiJ.cjs.js.map +1 -0
- package/dist/chunks/scoped-search-input-B5wDEKhF.es.js +143 -0
- package/dist/chunks/scoped-search-input-B5wDEKhF.es.js.map +1 -0
- package/dist/chunks/scoped-search-input-C3Vuxp-X.cjs.js +2 -0
- package/dist/chunks/scoped-search-input-C3Vuxp-X.cjs.js.map +1 -0
- package/dist/chunks/{search-input-CD_OQQwA.es.js → search-input-CmmBtmQf.es.js} +9 -9
- package/dist/chunks/{search-input-CD_OQQwA.es.js.map → search-input-CmmBtmQf.es.js.map} +1 -1
- package/dist/chunks/search-input-D4ISfjCg.cjs.js.map +1 -1
- package/dist/chunks/select-DLnPgZGL.cjs.js.map +1 -1
- package/dist/chunks/{select-Dny1auOH.es.js → select-DYkIoOqo.es.js} +10 -10
- package/dist/chunks/{select-Dny1auOH.es.js.map → select-DYkIoOqo.es.js.map} +1 -1
- package/dist/chunks/{separator-CCqidzEw.es.js → separator-D2824IwZ.es.js} +4 -4
- package/dist/chunks/{separator-CCqidzEw.es.js.map → separator-D2824IwZ.es.js.map} +1 -1
- package/dist/chunks/split-button-D4fKtZU6.cjs.js +2 -0
- package/dist/chunks/split-button-D4fKtZU6.cjs.js.map +1 -0
- package/dist/chunks/split-button-P5JM5TIs.es.js +106 -0
- package/dist/chunks/split-button-P5JM5TIs.es.js.map +1 -0
- package/dist/chunks/{switch-BRRuFpzu.es.js → switch-jX2Q8faO.es.js} +3 -3
- package/dist/chunks/{switch-BRRuFpzu.es.js.map → switch-jX2Q8faO.es.js.map} +1 -1
- package/dist/chunks/{tabs-BXoJTX6z.es.js → tabs-Bcs39h4J.es.js} +3 -3
- package/dist/chunks/{tabs-BXoJTX6z.es.js.map → tabs-Bcs39h4J.es.js.map} +1 -1
- package/dist/chunks/tag-group-Dx690E8r.cjs.js +2 -0
- package/dist/chunks/tag-group-Dx690E8r.cjs.js.map +1 -0
- package/dist/chunks/{tag-group-CDx2BCfu.es.js → tag-group-k_jEVQhv.es.js} +120 -110
- package/dist/chunks/tag-group-k_jEVQhv.es.js.map +1 -0
- package/dist/chunks/{text-BufUKCee.es.js → text-5xQLnEG4.es.js} +2 -2
- package/dist/chunks/{text-BufUKCee.es.js.map → text-5xQLnEG4.es.js.map} +1 -1
- package/dist/chunks/{text-input-CJNTJbW0.es.js → text-input-D8mfBGrA.es.js} +4 -4
- package/dist/chunks/{text-input-CJNTJbW0.es.js.map → text-input-D8mfBGrA.es.js.map} +1 -1
- package/dist/chunks/{time-input-CHA4irr4.es.js → time-input-9W94XJTY.es.js} +4 -4
- package/dist/chunks/{time-input-CHA4irr4.es.js.map → time-input-9W94XJTY.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-C_WSvD7l.es.js → toggle-button-D1v2OtiG.es.js} +4 -4
- package/dist/chunks/{toggle-button-C_WSvD7l.es.js.map → toggle-button-D1v2OtiG.es.js.map} +1 -1
- package/dist/chunks/{toggle-button-group-CF1NxUIC.es.js → toggle-button-group-Bla1fe1z.es.js} +2 -2
- package/dist/chunks/{toggle-button-group-CF1NxUIC.es.js.map → toggle-button-group-Bla1fe1z.es.js.map} +1 -1
- package/dist/chunks/{toolbar-CdR1MLqf.es.js → toolbar-DpBQgamV.es.js} +4 -4
- package/dist/chunks/{toolbar-CdR1MLqf.es.js.map → toolbar-DpBQgamV.es.js.map} +1 -1
- package/dist/chunks/{tooltip-B6mt46EB.es.js → tooltip-BX45xCJd.es.js} +2 -2
- package/dist/chunks/{tooltip-B6mt46EB.es.js.map → tooltip-BX45xCJd.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-BqUHVksS.es.js → useDateFormatter-DOSckBIG.es.js} +6 -6
- package/dist/chunks/{useDateFormatter-BqUHVksS.es.js.map → useDateFormatter-DOSckBIG.es.js.map} +1 -1
- package/dist/chunks/{useGridListItem-Cr6HZ3kJ.es.js → useGridListItem-Th8ivSlM.es.js} +2 -2
- package/dist/chunks/{useGridListItem-Cr6HZ3kJ.es.js.map → useGridListItem-Th8ivSlM.es.js.map} +1 -1
- package/dist/chunks/{utils-DF3YB901.es.js → utils-DDFsiM-7.es.js} +3 -3
- package/dist/chunks/{utils-DF3YB901.es.js.map → utils-DDFsiM-7.es.js.map} +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar/avatar.i18n.d.ts +7 -0
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar/calendar.i18n.d.ts +22 -0
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox/combobox.i18n.d.ts +32 -0
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table/data-table.i18n.d.ts +37 -0
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker/date-picker.i18n.d.ts +1 -2
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker/date-range-picker.i18n.d.ts +67 -0
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.es.js +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/heading.es.js +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/loading-spinner/loading-spinner.i18n.d.ts +1 -2
- package/dist/components/localized-field/localized-field.i18n.d.ts +1 -2
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input/money-input.i18n.d.ts +1 -2
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input/number-input.i18n.d.ts +1 -2
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination/pagination.i18n.d.ts +42 -0
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input/password-input.i18n.d.ts +1 -2
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar/range-calendar.i18n.d.ts +22 -0
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input/constants/text-styles.d.ts +6 -1
- package/dist/components/rich-text-input/hooks/use-toolbar-state.d.ts +4 -2
- package/dist/components/rich-text-input/rich-text-input.i18n.d.ts +122 -0
- package/dist/components/rich-text-input/utils/index.d.ts +0 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input/scoped-search-input.i18n.d.ts +1 -12
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.es.js +1 -1
- package/dist/components/search-input/search-input.i18n.d.ts +1 -2
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select/select.i18n.d.ts +1 -2
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button/split-button.i18n.d.ts +7 -0
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group/tag-group.i18n.d.ts +7 -0
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/text.es.js +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.es.js +51 -51
- package/package.json +5 -5
- package/dist/chunks/avatar-BGM-BDJa.cjs.js +0 -2
- package/dist/chunks/avatar-BGM-BDJa.cjs.js.map +0 -1
- package/dist/chunks/avatar-CTiSGVoD.es.js +0 -40
- package/dist/chunks/avatar-CTiSGVoD.es.js.map +0 -1
- package/dist/chunks/calendar-57M9FKqt.cjs.js +0 -2
- package/dist/chunks/calendar-57M9FKqt.cjs.js.map +0 -1
- package/dist/chunks/calendar-Kwoe0bYZ.es.js +0 -187
- package/dist/chunks/calendar-Kwoe0bYZ.es.js.map +0 -1
- package/dist/chunks/combobox-0cCAwg3W.es.js.map +0 -1
- package/dist/chunks/combobox-CKozWtj7.cjs.js +0 -2
- package/dist/chunks/combobox-CKozWtj7.cjs.js.map +0 -1
- package/dist/chunks/data-table-BxITOPnx.es.js.map +0 -1
- package/dist/chunks/data-table-Depm8_y5.cjs.js +0 -2
- package/dist/chunks/data-table-Depm8_y5.cjs.js.map +0 -1
- package/dist/chunks/date-picker-Dk3QgvCN.cjs.js.map +0 -1
- package/dist/chunks/date-picker-FvaPPqXZ.es.js.map +0 -1
- package/dist/chunks/date-range-picker-CMWsBL9j.cjs.js +0 -2
- package/dist/chunks/date-range-picker-CMWsBL9j.cjs.js.map +0 -1
- package/dist/chunks/date-range-picker-vH5DixcB.es.js +0 -281
- package/dist/chunks/date-range-picker-vH5DixcB.es.js.map +0 -1
- package/dist/chunks/localized-field-D4HBEdq0.es.js.map +0 -1
- package/dist/chunks/localized-field-u03KZc2G.cjs.js.map +0 -1
- package/dist/chunks/money-input-DHiEn7XA.es.js.map +0 -1
- package/dist/chunks/pagination-CjUoltTe.es.js +0 -160
- package/dist/chunks/pagination-CjUoltTe.es.js.map +0 -1
- package/dist/chunks/pagination-CnPACrJ5.cjs.js +0 -2
- package/dist/chunks/pagination-CnPACrJ5.cjs.js.map +0 -1
- package/dist/chunks/password-input-D4vhdbQW.es.js.map +0 -1
- package/dist/chunks/range-calendar-BjuErXNK.es.js +0 -187
- package/dist/chunks/range-calendar-BjuErXNK.es.js.map +0 -1
- package/dist/chunks/range-calendar-Cjqu4SXg.cjs.js +0 -2
- package/dist/chunks/range-calendar-Cjqu4SXg.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-B41QcSHY.cjs.js +0 -10
- package/dist/chunks/rich-text-input-B41QcSHY.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-BGVyDm30.es.js +0 -1074
- package/dist/chunks/rich-text-input-BGVyDm30.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-CO9xtMOE.es.js +0 -153
- package/dist/chunks/scoped-search-input-CO9xtMOE.es.js.map +0 -1
- package/dist/chunks/scoped-search-input-COM1I724.cjs.js +0 -2
- package/dist/chunks/scoped-search-input-COM1I724.cjs.js.map +0 -1
- package/dist/chunks/split-button-C8BsVNhR.cjs.js +0 -2
- package/dist/chunks/split-button-C8BsVNhR.cjs.js.map +0 -1
- package/dist/chunks/split-button-YwopMYuE.es.js +0 -100
- package/dist/chunks/split-button-YwopMYuE.es.js.map +0 -1
- package/dist/chunks/tag-group-Beqgbttp.cjs.js +0 -2
- package/dist/chunks/tag-group-Beqgbttp.cjs.js.map +0 -1
- package/dist/chunks/tag-group-CDx2BCfu.es.js.map +0 -1
- package/dist/components/rich-text-input/utils/text-style-utils.d.ts +0 -33
|
@@ -1,54 +1,55 @@
|
|
|
1
|
-
import { jsx as s, jsxs as
|
|
2
|
-
import { useSlotRecipe as
|
|
3
|
-
import { u as
|
|
4
|
-
import { createSlotRecipeContext as
|
|
5
|
-
import X, { useEffect as
|
|
6
|
-
import { $ as
|
|
7
|
-
import { c as
|
|
8
|
-
import { $ as
|
|
9
|
-
import { $ as
|
|
10
|
-
import { a as
|
|
11
|
-
import { a as
|
|
12
|
-
import { $ as
|
|
13
|
-
import { e as
|
|
14
|
-
import { q as
|
|
15
|
-
import { $ as
|
|
16
|
-
import { f as un, g as
|
|
17
|
-
import { $ as
|
|
18
|
-
import { $ as
|
|
19
|
-
import { $ as
|
|
20
|
-
import { b as
|
|
21
|
-
import { e as
|
|
22
|
-
import { $ as
|
|
23
|
-
import { b as
|
|
24
|
-
import { $ as
|
|
25
|
-
import { $ as
|
|
26
|
-
import { a as
|
|
27
|
-
import { g as
|
|
28
|
-
import { b as
|
|
29
|
-
import { $ as
|
|
30
|
-
import { $ as
|
|
31
|
-
import { g as
|
|
32
|
-
import { $ as
|
|
33
|
-
import { a as
|
|
34
|
-
import { $ as
|
|
35
|
-
import { $ as
|
|
36
|
-
import { $ as
|
|
37
|
-
import { e as
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import { $ as
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { jsx as s, jsxs as ce, Fragment as Ge } from "react/jsx-runtime";
|
|
2
|
+
import { useSlotRecipe as Nt } from "@chakra-ui/react/styled-system";
|
|
3
|
+
import { u as zt } from "./index-CaeeOiBp.es.js";
|
|
4
|
+
import { createSlotRecipeContext as jt, mergeRefs as Ut } from "@chakra-ui/react";
|
|
5
|
+
import X, { useEffect as ue, useRef as T, useMemo as ae, useState as U, useCallback as z, createContext as fe, forwardRef as qt, useContext as qe } from "react";
|
|
6
|
+
import { $ as We } from "./Button-C4ud7YxN.es.js";
|
|
7
|
+
import { c as He, f as Le, g as Ie, d as Pe, $ as xe, b as Je, a as Ze } from "./utils-DDFsiM-7.es.js";
|
|
8
|
+
import { $ as Xe } from "./FieldError-CXcEMuBf.es.js";
|
|
9
|
+
import { $ as Ye } from "./Form-CXcEMuBf.es.js";
|
|
10
|
+
import { a as we } from "./Group-CiDvtaeM.es.js";
|
|
11
|
+
import { a as he, $ as Qe } from "./Input-De-sfAtq.es.js";
|
|
12
|
+
import { $ as ke } from "./Label-BS7NIWvY.es.js";
|
|
13
|
+
import { e as Wt, f as Ht, $ as _e, a as Jt, b as Zt, d as Xt, c as Yt } from "./ListBox-BfRQSQ3P.es.js";
|
|
14
|
+
import { q as Qt, d as _t, e as en, i as on, $ as eo, r as oo, k as tn, h as nn } from "./Dialog-C3sNnu1k.es.js";
|
|
15
|
+
import { $ as Ke } from "./Text-DOcU1ycg.es.js";
|
|
16
|
+
import { f as un, g as ln } from "./CollectionBuilder-D6lZ-33j.es.js";
|
|
17
|
+
import { $ as to } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
18
|
+
import { $ as rn, c as cn } from "./OverlayArrow-O5VkT1qj.es.js";
|
|
19
|
+
import { $ as no } from "./useFilter-BgT0isJK.es.js";
|
|
20
|
+
import { b as an, $ as sn } from "./useFormValidation-DMYpUH8i.es.js";
|
|
21
|
+
import { e as dn, f as uo, p as Te, q as Ne, r as pn, s as bn, t as ze, u as $n, v as fn } from "./SelectionManager-Dn0USbbI.es.js";
|
|
22
|
+
import { $ as mn } from "./useSingleSelectListState-DU73GKrB.es.js";
|
|
23
|
+
import { b as xn } from "./useListState-DXCqV37_.es.js";
|
|
24
|
+
import { $ as lo } from "./useControlledState-u436Wbp1.es.js";
|
|
25
|
+
import { $ as Ae } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
26
|
+
import { a as $e, e as Cn, $ as hn, c as me } from "./mergeProps-_eTFpDiB.es.js";
|
|
27
|
+
import { g as vn, j as yn, c as Fe, $ as io } from "./utils-C2fGIqzL.es.js";
|
|
28
|
+
import { b as An } from "./openLink-D7--QlSJ.es.js";
|
|
29
|
+
import { $ as Se } from "./useLabels-DKXyqbI2.es.js";
|
|
30
|
+
import { $ as En } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
31
|
+
import { g as Ee, f as gn, d as Bn } from "./platform-Z5fvtFmM.es.js";
|
|
32
|
+
import { $ as ro } from "./useEvent-CDFc-XeA.es.js";
|
|
33
|
+
import { a as Tn, c as Fn } from "./Header-BxizMPpp.es.js";
|
|
34
|
+
import { $ as Sn } from "./ListKeyboardDelegate-D7v3HUvw.es.js";
|
|
35
|
+
import { $ as co } from "./useLocalizedStringFormatter-DaRRUvyV.es.js";
|
|
36
|
+
import { $ as ao } from "./useTextField-KZ773QTk.es.js";
|
|
37
|
+
import { e as Oe } from "./extract-style-props-CZpdYA8m.es.js";
|
|
38
|
+
import { defineMessages as Dn, useIntl as ve } from "react-intl";
|
|
39
|
+
import { Close as so, Loop as po, KeyboardArrowDown as bo, Check as Ln } from "@commercetools/nimbus-icons";
|
|
40
|
+
import { I as De } from "./icon-button-g4dZUH5O.es.js";
|
|
41
|
+
import { B as Ce } from "./box-DuBoAZvq.es.js";
|
|
42
|
+
import { Flex as $o } from "@chakra-ui/react/flex";
|
|
43
|
+
import { c as fo, a as In } from "./RSPContexts-DV4cFLUV.es.js";
|
|
44
|
+
import { $ as mo } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
45
|
+
import { b as Pn } from "./useFocusVisible-BLRuz6I4.es.js";
|
|
46
|
+
import { a as wn } from "./TextArea-DR4R6vJD.es.js";
|
|
47
|
+
import { $ as kn } from "./Hidden-X9vuhkMZ.es.js";
|
|
48
|
+
import { T as ge } from "./tag-group-k_jEVQhv.es.js";
|
|
49
|
+
import { $ as Kn } from "./usePress-DUOmr3uI.es.js";
|
|
50
|
+
import { $ as On } from "./useFocusable-WbQD7vwU.es.js";
|
|
51
|
+
var xo = {};
|
|
52
|
+
xo = {
|
|
52
53
|
buttonLabel: "عرض المقترحات",
|
|
53
54
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
54
55
|
one: () => `${o.number(e.optionCount)} خيار`,
|
|
@@ -67,8 +68,8 @@ fo = {
|
|
|
67
68
|
listboxLabel: "مقترحات",
|
|
68
69
|
selectedAnnouncement: (e) => `${e.optionText}، محدد`
|
|
69
70
|
};
|
|
70
|
-
var
|
|
71
|
-
|
|
71
|
+
var Co = {};
|
|
72
|
+
Co = {
|
|
72
73
|
buttonLabel: "Покажи предложения",
|
|
73
74
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
74
75
|
one: () => `${o.number(e.optionCount)} опция`,
|
|
@@ -87,8 +88,8 @@ mo = {
|
|
|
87
88
|
listboxLabel: "Предложения",
|
|
88
89
|
selectedAnnouncement: (e) => `${e.optionText}, избрани`
|
|
89
90
|
};
|
|
90
|
-
var
|
|
91
|
-
|
|
91
|
+
var ho = {};
|
|
92
|
+
ho = {
|
|
92
93
|
buttonLabel: "Zobrazit doporučení",
|
|
93
94
|
countAnnouncement: (e, o) => `K dispozici ${o.plural(e.optionCount, {
|
|
94
95
|
one: () => `je ${o.number(e.optionCount)} možnost`,
|
|
@@ -107,8 +108,8 @@ xo = {
|
|
|
107
108
|
listboxLabel: "Návrhy",
|
|
108
109
|
selectedAnnouncement: (e) => `${e.optionText}, vybráno`
|
|
109
110
|
};
|
|
110
|
-
var
|
|
111
|
-
|
|
111
|
+
var vo = {};
|
|
112
|
+
vo = {
|
|
112
113
|
buttonLabel: "Vis forslag",
|
|
113
114
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
114
115
|
one: () => `${o.number(e.optionCount)} mulighed tilgængelig`,
|
|
@@ -127,8 +128,8 @@ Co = {
|
|
|
127
128
|
listboxLabel: "Forslag",
|
|
128
129
|
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
129
130
|
};
|
|
130
|
-
var
|
|
131
|
-
|
|
131
|
+
var yo = {};
|
|
132
|
+
yo = {
|
|
132
133
|
buttonLabel: "Empfehlungen anzeigen",
|
|
133
134
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
134
135
|
one: () => `${o.number(e.optionCount)} Option`,
|
|
@@ -147,8 +148,8 @@ ho = {
|
|
|
147
148
|
listboxLabel: "Empfehlungen",
|
|
148
149
|
selectedAnnouncement: (e) => `${e.optionText}, ausgewählt`
|
|
149
150
|
};
|
|
150
|
-
var
|
|
151
|
-
|
|
151
|
+
var Ao = {};
|
|
152
|
+
Ao = {
|
|
152
153
|
buttonLabel: "Προβολή προτάσεων",
|
|
153
154
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
154
155
|
one: () => `${o.number(e.optionCount)} επιλογή`,
|
|
@@ -167,8 +168,8 @@ vo = {
|
|
|
167
168
|
listboxLabel: "Προτάσεις",
|
|
168
169
|
selectedAnnouncement: (e) => `${e.optionText}, επιλέχθηκε`
|
|
169
170
|
};
|
|
170
|
-
var
|
|
171
|
-
|
|
171
|
+
var Eo = {};
|
|
172
|
+
Eo = {
|
|
172
173
|
focusAnnouncement: (e, o) => `${o.select({
|
|
173
174
|
true: () => `Entered group ${e.groupTitle}, with ${o.plural(e.groupCount, {
|
|
174
175
|
one: () => `${o.number(e.groupCount)} option`,
|
|
@@ -187,8 +188,8 @@ yo = {
|
|
|
187
188
|
buttonLabel: "Show suggestions",
|
|
188
189
|
listboxLabel: "Suggestions"
|
|
189
190
|
};
|
|
190
|
-
var
|
|
191
|
-
|
|
191
|
+
var go = {};
|
|
192
|
+
go = {
|
|
192
193
|
buttonLabel: "Mostrar sugerencias",
|
|
193
194
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
194
195
|
one: () => `${o.number(e.optionCount)} opción`,
|
|
@@ -207,8 +208,8 @@ Ao = {
|
|
|
207
208
|
listboxLabel: "Sugerencias",
|
|
208
209
|
selectedAnnouncement: (e) => `${e.optionText}, seleccionado`
|
|
209
210
|
};
|
|
210
|
-
var
|
|
211
|
-
|
|
211
|
+
var Bo = {};
|
|
212
|
+
Bo = {
|
|
212
213
|
buttonLabel: "Kuva soovitused",
|
|
213
214
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
214
215
|
one: () => `${o.number(e.optionCount)} valik`,
|
|
@@ -227,8 +228,8 @@ Eo = {
|
|
|
227
228
|
listboxLabel: "Soovitused",
|
|
228
229
|
selectedAnnouncement: (e) => `${e.optionText}, valitud`
|
|
229
230
|
};
|
|
230
|
-
var
|
|
231
|
-
|
|
231
|
+
var To = {};
|
|
232
|
+
To = {
|
|
232
233
|
buttonLabel: "Näytä ehdotukset",
|
|
233
234
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
234
235
|
one: () => `${o.number(e.optionCount)} vaihtoehto`,
|
|
@@ -247,8 +248,8 @@ Bo = {
|
|
|
247
248
|
listboxLabel: "Ehdotukset",
|
|
248
249
|
selectedAnnouncement: (e) => `${e.optionText}, valittu`
|
|
249
250
|
};
|
|
250
|
-
var
|
|
251
|
-
|
|
251
|
+
var Fo = {};
|
|
252
|
+
Fo = {
|
|
252
253
|
buttonLabel: "Afficher les suggestions",
|
|
253
254
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
254
255
|
one: () => `${o.number(e.optionCount)} option`,
|
|
@@ -267,8 +268,8 @@ go = {
|
|
|
267
268
|
listboxLabel: "Suggestions",
|
|
268
269
|
selectedAnnouncement: (e) => `${e.optionText}, sélectionné`
|
|
269
270
|
};
|
|
270
|
-
var
|
|
271
|
-
|
|
271
|
+
var So = {};
|
|
272
|
+
So = {
|
|
272
273
|
buttonLabel: "הצג הצעות",
|
|
273
274
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
274
275
|
one: () => `אפשרות ${o.number(e.optionCount)}`,
|
|
@@ -287,8 +288,8 @@ To = {
|
|
|
287
288
|
listboxLabel: "הצעות",
|
|
288
289
|
selectedAnnouncement: (e) => `${e.optionText}, נבחר`
|
|
289
290
|
};
|
|
290
|
-
var
|
|
291
|
-
|
|
291
|
+
var Do = {};
|
|
292
|
+
Do = {
|
|
292
293
|
buttonLabel: "Prikaži prijedloge",
|
|
293
294
|
countAnnouncement: (e, o) => `Dostupno još: ${o.plural(e.optionCount, {
|
|
294
295
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -307,8 +308,8 @@ Fo = {
|
|
|
307
308
|
listboxLabel: "Prijedlozi",
|
|
308
309
|
selectedAnnouncement: (e) => `${e.optionText}, odabrano`
|
|
309
310
|
};
|
|
310
|
-
var
|
|
311
|
-
|
|
311
|
+
var Lo = {};
|
|
312
|
+
Lo = {
|
|
312
313
|
buttonLabel: "Javaslatok megjelenítése",
|
|
313
314
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
314
315
|
one: () => `${o.number(e.optionCount)} lehetőség`,
|
|
@@ -327,8 +328,8 @@ So = {
|
|
|
327
328
|
listboxLabel: "Javaslatok",
|
|
328
329
|
selectedAnnouncement: (e) => `${e.optionText}, kijelölve`
|
|
329
330
|
};
|
|
330
|
-
var
|
|
331
|
-
|
|
331
|
+
var Io = {};
|
|
332
|
+
Io = {
|
|
332
333
|
buttonLabel: "Mostra suggerimenti",
|
|
333
334
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
334
335
|
one: () => `${o.number(e.optionCount)} opzione disponibile`,
|
|
@@ -347,8 +348,8 @@ Do = {
|
|
|
347
348
|
listboxLabel: "Suggerimenti",
|
|
348
349
|
selectedAnnouncement: (e) => `${e.optionText}, selezionato`
|
|
349
350
|
};
|
|
350
|
-
var
|
|
351
|
-
|
|
351
|
+
var Po = {};
|
|
352
|
+
Po = {
|
|
352
353
|
buttonLabel: "候補を表示",
|
|
353
354
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
354
355
|
one: () => `${o.number(e.optionCount)} 個のオプション`,
|
|
@@ -367,8 +368,8 @@ Lo = {
|
|
|
367
368
|
listboxLabel: "候補",
|
|
368
369
|
selectedAnnouncement: (e) => `${e.optionText}、選択済み`
|
|
369
370
|
};
|
|
370
|
-
var
|
|
371
|
-
|
|
371
|
+
var wo = {};
|
|
372
|
+
wo = {
|
|
372
373
|
buttonLabel: "제안 사항 표시",
|
|
373
374
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
374
375
|
one: () => `${o.number(e.optionCount)}개 옵션`,
|
|
@@ -387,8 +388,8 @@ Po = {
|
|
|
387
388
|
listboxLabel: "제안",
|
|
388
389
|
selectedAnnouncement: (e) => `${e.optionText}, 선택됨`
|
|
389
390
|
};
|
|
390
|
-
var
|
|
391
|
-
|
|
391
|
+
var ko = {};
|
|
392
|
+
ko = {
|
|
392
393
|
buttonLabel: "Rodyti pasiūlymus",
|
|
393
394
|
countAnnouncement: (e, o) => `Yra ${o.plural(e.optionCount, {
|
|
394
395
|
one: () => `${o.number(e.optionCount)} parinktis`,
|
|
@@ -407,8 +408,8 @@ Io = {
|
|
|
407
408
|
listboxLabel: "Pasiūlymai",
|
|
408
409
|
selectedAnnouncement: (e) => `${e.optionText}, pasirinkta`
|
|
409
410
|
};
|
|
410
|
-
var
|
|
411
|
-
|
|
411
|
+
var Ko = {};
|
|
412
|
+
Ko = {
|
|
412
413
|
buttonLabel: "Rādīt ieteikumus",
|
|
413
414
|
countAnnouncement: (e, o) => `Pieejamo opciju skaits: ${o.plural(e.optionCount, {
|
|
414
415
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -427,8 +428,8 @@ wo = {
|
|
|
427
428
|
listboxLabel: "Ieteikumi",
|
|
428
429
|
selectedAnnouncement: (e) => `${e.optionText}, atlasīta`
|
|
429
430
|
};
|
|
430
|
-
var
|
|
431
|
-
|
|
431
|
+
var Oo = {};
|
|
432
|
+
Oo = {
|
|
432
433
|
buttonLabel: "Vis forslag",
|
|
433
434
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
434
435
|
one: () => `${o.number(e.optionCount)} alternativ`,
|
|
@@ -447,8 +448,8 @@ ko = {
|
|
|
447
448
|
listboxLabel: "Forslag",
|
|
448
449
|
selectedAnnouncement: (e) => `${e.optionText}, valgt`
|
|
449
450
|
};
|
|
450
|
-
var
|
|
451
|
-
|
|
451
|
+
var Ro = {};
|
|
452
|
+
Ro = {
|
|
452
453
|
buttonLabel: "Suggesties weergeven",
|
|
453
454
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
454
455
|
one: () => `${o.number(e.optionCount)} optie`,
|
|
@@ -467,8 +468,8 @@ Ko = {
|
|
|
467
468
|
listboxLabel: "Suggesties",
|
|
468
469
|
selectedAnnouncement: (e) => `${e.optionText}, geselecteerd`
|
|
469
470
|
};
|
|
470
|
-
var
|
|
471
|
-
|
|
471
|
+
var Vo = {};
|
|
472
|
+
Vo = {
|
|
472
473
|
buttonLabel: "Wyświetlaj sugestie",
|
|
473
474
|
countAnnouncement: (e, o) => `dostępna/dostępne(-nych) ${o.plural(e.optionCount, {
|
|
474
475
|
one: () => `${o.number(e.optionCount)} opcja`,
|
|
@@ -487,8 +488,8 @@ Oo = {
|
|
|
487
488
|
listboxLabel: "Sugestie",
|
|
488
489
|
selectedAnnouncement: (e) => `${e.optionText}, wybrano`
|
|
489
490
|
};
|
|
490
|
-
var
|
|
491
|
-
|
|
491
|
+
var Mo = {};
|
|
492
|
+
Mo = {
|
|
492
493
|
buttonLabel: "Mostrar sugestões",
|
|
493
494
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
494
495
|
one: () => `${o.number(e.optionCount)} opção`,
|
|
@@ -507,8 +508,8 @@ Ro = {
|
|
|
507
508
|
listboxLabel: "Sugestões",
|
|
508
509
|
selectedAnnouncement: (e) => `${e.optionText}, selecionado`
|
|
509
510
|
};
|
|
510
|
-
var
|
|
511
|
-
|
|
511
|
+
var Go = {};
|
|
512
|
+
Go = {
|
|
512
513
|
buttonLabel: "Apresentar sugestões",
|
|
513
514
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
514
515
|
one: () => `${o.number(e.optionCount)} opção`,
|
|
@@ -527,8 +528,8 @@ Vo = {
|
|
|
527
528
|
listboxLabel: "Sugestões",
|
|
528
529
|
selectedAnnouncement: (e) => `${e.optionText}, selecionado`
|
|
529
530
|
};
|
|
530
|
-
var
|
|
531
|
-
|
|
531
|
+
var No = {};
|
|
532
|
+
No = {
|
|
532
533
|
buttonLabel: "Afișare sugestii",
|
|
533
534
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
534
535
|
one: () => `${o.number(e.optionCount)} opțiune`,
|
|
@@ -547,8 +548,8 @@ Go = {
|
|
|
547
548
|
listboxLabel: "Sugestii",
|
|
548
549
|
selectedAnnouncement: (e) => `${e.optionText}, selectat`
|
|
549
550
|
};
|
|
550
|
-
var
|
|
551
|
-
|
|
551
|
+
var zo = {};
|
|
552
|
+
zo = {
|
|
552
553
|
buttonLabel: "Показать предложения",
|
|
553
554
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
554
555
|
one: () => `${o.number(e.optionCount)} параметр`,
|
|
@@ -567,8 +568,8 @@ Mo = {
|
|
|
567
568
|
listboxLabel: "Предложения",
|
|
568
569
|
selectedAnnouncement: (e) => `${e.optionText}, выбрано`
|
|
569
570
|
};
|
|
570
|
-
var
|
|
571
|
-
|
|
571
|
+
var jo = {};
|
|
572
|
+
jo = {
|
|
572
573
|
buttonLabel: "Zobraziť návrhy",
|
|
573
574
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
574
575
|
one: () => `${o.number(e.optionCount)} možnosť`,
|
|
@@ -587,8 +588,8 @@ zo = {
|
|
|
587
588
|
listboxLabel: "Návrhy",
|
|
588
589
|
selectedAnnouncement: (e) => `${e.optionText}, vybraté`
|
|
589
590
|
};
|
|
590
|
-
var
|
|
591
|
-
|
|
591
|
+
var Uo = {};
|
|
592
|
+
Uo = {
|
|
592
593
|
buttonLabel: "Prikaži predloge",
|
|
593
594
|
countAnnouncement: (e, o) => `Na voljo je ${o.plural(e.optionCount, {
|
|
594
595
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -607,8 +608,8 @@ jo = {
|
|
|
607
608
|
listboxLabel: "Predlogi",
|
|
608
609
|
selectedAnnouncement: (e) => `${e.optionText}, izbrano`
|
|
609
610
|
};
|
|
610
|
-
var
|
|
611
|
-
|
|
611
|
+
var qo = {};
|
|
612
|
+
qo = {
|
|
612
613
|
buttonLabel: "Prikaži predloge",
|
|
613
614
|
countAnnouncement: (e, o) => `Dostupno još: ${o.plural(e.optionCount, {
|
|
614
615
|
one: () => `${o.number(e.optionCount)} opcija`,
|
|
@@ -627,8 +628,8 @@ No = {
|
|
|
627
628
|
listboxLabel: "Predlozi",
|
|
628
629
|
selectedAnnouncement: (e) => `${e.optionText}, izabrano`
|
|
629
630
|
};
|
|
630
|
-
var
|
|
631
|
-
|
|
631
|
+
var Wo = {};
|
|
632
|
+
Wo = {
|
|
632
633
|
buttonLabel: "Visa förslag",
|
|
633
634
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
634
635
|
one: () => `${o.number(e.optionCount)} alternativ`,
|
|
@@ -647,8 +648,8 @@ Uo = {
|
|
|
647
648
|
listboxLabel: "Förslag",
|
|
648
649
|
selectedAnnouncement: (e) => `${e.optionText}, valda`
|
|
649
650
|
};
|
|
650
|
-
var
|
|
651
|
-
|
|
651
|
+
var Ho = {};
|
|
652
|
+
Ho = {
|
|
652
653
|
buttonLabel: "Önerileri göster",
|
|
653
654
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
654
655
|
one: () => `${o.number(e.optionCount)} seçenek`,
|
|
@@ -667,8 +668,8 @@ qo = {
|
|
|
667
668
|
listboxLabel: "Öneriler",
|
|
668
669
|
selectedAnnouncement: (e) => `${e.optionText}, seçildi`
|
|
669
670
|
};
|
|
670
|
-
var
|
|
671
|
-
|
|
671
|
+
var Jo = {};
|
|
672
|
+
Jo = {
|
|
672
673
|
buttonLabel: "Показати пропозиції",
|
|
673
674
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
674
675
|
one: () => `${o.number(e.optionCount)} параметр`,
|
|
@@ -687,8 +688,8 @@ Wo = {
|
|
|
687
688
|
listboxLabel: "Пропозиції",
|
|
688
689
|
selectedAnnouncement: (e) => `${e.optionText}, вибрано`
|
|
689
690
|
};
|
|
690
|
-
var
|
|
691
|
-
|
|
691
|
+
var Zo = {};
|
|
692
|
+
Zo = {
|
|
692
693
|
buttonLabel: "显示建议",
|
|
693
694
|
countAnnouncement: (e, o) => `有 ${o.plural(e.optionCount, {
|
|
694
695
|
one: () => `${o.number(e.optionCount)} 个选项`,
|
|
@@ -707,8 +708,8 @@ Ho = {
|
|
|
707
708
|
listboxLabel: "建议",
|
|
708
709
|
selectedAnnouncement: (e) => `${e.optionText}, 已选择`
|
|
709
710
|
};
|
|
710
|
-
var
|
|
711
|
-
|
|
711
|
+
var Xo = {};
|
|
712
|
+
Xo = {
|
|
712
713
|
buttonLabel: "顯示建議",
|
|
713
714
|
countAnnouncement: (e, o) => `${o.plural(e.optionCount, {
|
|
714
715
|
one: () => `${o.number(e.optionCount)} 選項`,
|
|
@@ -727,124 +728,124 @@ Jo = {
|
|
|
727
728
|
listboxLabel: "建議",
|
|
728
729
|
selectedAnnouncement: (e) => `${e.optionText}, 已選取`
|
|
729
730
|
};
|
|
730
|
-
var
|
|
731
|
-
|
|
732
|
-
"ar-AE":
|
|
733
|
-
"bg-BG":
|
|
734
|
-
"cs-CZ":
|
|
735
|
-
"da-DK":
|
|
736
|
-
"de-DE":
|
|
737
|
-
"el-GR":
|
|
738
|
-
"en-US":
|
|
739
|
-
"es-ES":
|
|
740
|
-
"et-EE":
|
|
741
|
-
"fi-FI":
|
|
742
|
-
"fr-FR":
|
|
743
|
-
"he-IL":
|
|
744
|
-
"hr-HR":
|
|
745
|
-
"hu-HU":
|
|
746
|
-
"it-IT":
|
|
747
|
-
"ja-JP":
|
|
748
|
-
"ko-KR":
|
|
749
|
-
"lt-LT":
|
|
750
|
-
"lv-LV":
|
|
751
|
-
"nb-NO":
|
|
752
|
-
"nl-NL":
|
|
753
|
-
"pl-PL":
|
|
754
|
-
"pt-BR":
|
|
755
|
-
"pt-PT":
|
|
756
|
-
"ro-RO":
|
|
757
|
-
"ru-RU":
|
|
758
|
-
"sk-SK":
|
|
759
|
-
"sl-SI":
|
|
760
|
-
"sr-SP":
|
|
761
|
-
"sv-SE":
|
|
762
|
-
"tr-TR":
|
|
763
|
-
"uk-UA":
|
|
764
|
-
"zh-CN":
|
|
765
|
-
"zh-TW":
|
|
766
|
-
};
|
|
767
|
-
const
|
|
768
|
-
|
|
769
|
-
let { pressProps:
|
|
731
|
+
var Yo = {};
|
|
732
|
+
Yo = {
|
|
733
|
+
"ar-AE": xo,
|
|
734
|
+
"bg-BG": Co,
|
|
735
|
+
"cs-CZ": ho,
|
|
736
|
+
"da-DK": vo,
|
|
737
|
+
"de-DE": yo,
|
|
738
|
+
"el-GR": Ao,
|
|
739
|
+
"en-US": Eo,
|
|
740
|
+
"es-ES": go,
|
|
741
|
+
"et-EE": Bo,
|
|
742
|
+
"fi-FI": To,
|
|
743
|
+
"fr-FR": Fo,
|
|
744
|
+
"he-IL": So,
|
|
745
|
+
"hr-HR": Do,
|
|
746
|
+
"hu-HU": Lo,
|
|
747
|
+
"it-IT": Io,
|
|
748
|
+
"ja-JP": Po,
|
|
749
|
+
"ko-KR": wo,
|
|
750
|
+
"lt-LT": ko,
|
|
751
|
+
"lv-LV": Ko,
|
|
752
|
+
"nb-NO": Oo,
|
|
753
|
+
"nl-NL": Ro,
|
|
754
|
+
"pl-PL": Vo,
|
|
755
|
+
"pt-BR": Mo,
|
|
756
|
+
"pt-PT": Go,
|
|
757
|
+
"ro-RO": No,
|
|
758
|
+
"ru-RU": zo,
|
|
759
|
+
"sk-SK": jo,
|
|
760
|
+
"sl-SI": Uo,
|
|
761
|
+
"sr-SP": qo,
|
|
762
|
+
"sv-SE": Wo,
|
|
763
|
+
"tr-TR": Ho,
|
|
764
|
+
"uk-UA": Jo,
|
|
765
|
+
"zh-CN": Zo,
|
|
766
|
+
"zh-TW": Xo
|
|
767
|
+
};
|
|
768
|
+
const Rn = /* @__PURE__ */ X.forwardRef(({ children: e, ...o }, t) => {
|
|
769
|
+
t = mo(t);
|
|
770
|
+
let { pressProps: u } = Kn({
|
|
770
771
|
...o,
|
|
771
|
-
ref:
|
|
772
|
-
}), { focusableProps: n } =
|
|
773
|
-
|
|
772
|
+
ref: t
|
|
773
|
+
}), { focusableProps: n } = On(o, t), r = X.Children.only(e);
|
|
774
|
+
ue(() => {
|
|
774
775
|
if (process.env.NODE_ENV === "production") return;
|
|
775
|
-
let
|
|
776
|
-
if (!
|
|
776
|
+
let c = t.current;
|
|
777
|
+
if (!c || !(c instanceof vn(c).Element)) {
|
|
777
778
|
console.error("<Pressable> child must forward its ref to a DOM element.");
|
|
778
779
|
return;
|
|
779
780
|
}
|
|
780
|
-
if (!o.isDisabled && !
|
|
781
|
+
if (!o.isDisabled && !yn(c)) {
|
|
781
782
|
console.warn("<Pressable> child must be focusable. Please ensure the tabIndex prop is passed through.");
|
|
782
783
|
return;
|
|
783
784
|
}
|
|
784
|
-
if (
|
|
785
|
-
let
|
|
786
|
-
|
|
785
|
+
if (c.localName !== "button" && c.localName !== "input" && c.localName !== "select" && c.localName !== "textarea" && c.localName !== "a" && c.localName !== "area" && c.localName !== "summary") {
|
|
786
|
+
let i = c.getAttribute("role");
|
|
787
|
+
i ? (
|
|
787
788
|
// https://w3c.github.io/aria/#widget_roles
|
|
788
|
-
|
|
789
|
+
i !== "application" && i !== "button" && i !== "checkbox" && i !== "combobox" && i !== "gridcell" && i !== "link" && i !== "menuitem" && i !== "menuitemcheckbox" && i !== "menuitemradio" && i !== "option" && i !== "radio" && i !== "searchbox" && i !== "separator" && i !== "slider" && i !== "spinbutton" && i !== "switch" && i !== "tab" && i !== "textbox" && i !== "treeitem" && console.warn(`<Pressable> child must have an interactive ARIA role. Got "${i}".`)
|
|
789
790
|
) : console.warn("<Pressable> child must have an interactive ARIA role.");
|
|
790
791
|
}
|
|
791
792
|
}, [
|
|
792
|
-
|
|
793
|
+
t,
|
|
793
794
|
o.isDisabled
|
|
794
795
|
]);
|
|
795
|
-
let
|
|
796
|
-
return /* @__PURE__ */ X.cloneElement(
|
|
797
|
-
|
|
796
|
+
let p = parseInt(X.version, 10) < 19 ? r.ref : r.props.ref;
|
|
797
|
+
return /* @__PURE__ */ X.cloneElement(r, {
|
|
798
|
+
...$e(u, n, r.props),
|
|
798
799
|
// @ts-ignore
|
|
799
|
-
ref:
|
|
800
|
+
ref: He(p, t)
|
|
800
801
|
});
|
|
801
802
|
});
|
|
802
|
-
function
|
|
803
|
+
function Vn(e) {
|
|
803
804
|
return e && e.__esModule ? e.default : e;
|
|
804
805
|
}
|
|
805
|
-
function
|
|
806
|
-
let { buttonRef:
|
|
807
|
-
|
|
808
|
-
let
|
|
806
|
+
function Mn(e, o) {
|
|
807
|
+
let { buttonRef: t, popoverRef: u, inputRef: n, listBoxRef: r, keyboardDelegate: p, layoutDelegate: c, shouldFocusWrap: i, isReadOnly: x, isDisabled: h } = e, C = T(null);
|
|
808
|
+
t = t ?? C;
|
|
809
|
+
let y = co(Vn(Yo), "@react-aria/combobox"), { menuTriggerProps: v, menuProps: g } = Qt({
|
|
809
810
|
type: "listbox",
|
|
810
|
-
isDisabled:
|
|
811
|
-
}, o,
|
|
812
|
-
|
|
813
|
-
id:
|
|
811
|
+
isDisabled: h || x
|
|
812
|
+
}, o, t);
|
|
813
|
+
Wt.set(o, {
|
|
814
|
+
id: g.id
|
|
814
815
|
});
|
|
815
|
-
let { collection: f } = o, { disabledKeys:
|
|
816
|
+
let { collection: f } = o, { disabledKeys: m } = o.selectionManager, d = ae(() => p || new Sn({
|
|
816
817
|
collection: f,
|
|
817
|
-
disabledKeys:
|
|
818
|
-
ref:
|
|
819
|
-
layoutDelegate:
|
|
818
|
+
disabledKeys: m,
|
|
819
|
+
ref: r,
|
|
820
|
+
layoutDelegate: c
|
|
820
821
|
}), [
|
|
821
|
-
|
|
822
|
-
|
|
822
|
+
p,
|
|
823
|
+
c,
|
|
823
824
|
f,
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
]), { collectionProps:
|
|
825
|
+
m,
|
|
826
|
+
r
|
|
827
|
+
]), { collectionProps: L } = dn({
|
|
827
828
|
selectionManager: o.selectionManager,
|
|
828
829
|
keyboardDelegate: d,
|
|
829
830
|
disallowTypeAhead: !0,
|
|
830
831
|
disallowEmptySelection: !0,
|
|
831
|
-
shouldFocusWrap:
|
|
832
|
+
shouldFocusWrap: i,
|
|
832
833
|
ref: n,
|
|
833
834
|
// Prevent item scroll behavior from being applied here, should be handled in the user's Popover + ListBox component
|
|
834
835
|
isVirtualized: !0
|
|
835
|
-
}),
|
|
836
|
+
}), O = An(), N = ($) => {
|
|
836
837
|
if (!$.nativeEvent.isComposing)
|
|
837
838
|
switch ($.key) {
|
|
838
839
|
case "Enter":
|
|
839
840
|
case "Tab":
|
|
840
|
-
if (o.isOpen && $.key === "Enter" && $.preventDefault(), o.isOpen &&
|
|
841
|
-
let
|
|
842
|
-
if (
|
|
843
|
-
let
|
|
844
|
-
$.key === "Enter" &&
|
|
841
|
+
if (o.isOpen && $.key === "Enter" && $.preventDefault(), o.isOpen && r.current && o.selectionManager.focusedKey != null) {
|
|
842
|
+
let b = o.collection.getItem(o.selectionManager.focusedKey);
|
|
843
|
+
if (b?.props.href) {
|
|
844
|
+
let D = r.current.querySelector(`[data-key="${CSS.escape(o.selectionManager.focusedKey.toString())}"]`);
|
|
845
|
+
$.key === "Enter" && D instanceof HTMLAnchorElement && O.open(D, $, b.props.href, b.props.routerOptions), o.close();
|
|
845
846
|
break;
|
|
846
|
-
} else if (
|
|
847
|
-
|
|
847
|
+
} else if (b?.props.onAction) {
|
|
848
|
+
b.props.onAction(), o.close();
|
|
848
849
|
break;
|
|
849
850
|
}
|
|
850
851
|
}
|
|
@@ -864,135 +865,135 @@ function On(e, o) {
|
|
|
864
865
|
o.selectionManager.setFocusedKey(null);
|
|
865
866
|
break;
|
|
866
867
|
}
|
|
867
|
-
},
|
|
868
|
-
var
|
|
869
|
-
let
|
|
870
|
-
|
|
871
|
-
},
|
|
868
|
+
}, I = ($) => {
|
|
869
|
+
var b;
|
|
870
|
+
let D = t?.current && t.current === $.relatedTarget, A = (b = u.current) === null || b === void 0 ? void 0 : b.contains($.relatedTarget);
|
|
871
|
+
D || A || (e.onBlur && e.onBlur($), o.setFocused(!1));
|
|
872
|
+
}, M = ($) => {
|
|
872
873
|
o.isFocused || (e.onFocus && e.onFocus($), o.setFocused(!0));
|
|
873
|
-
}, { isInvalid: Y, validationErrors: q, validationDetails: W } = o.displayValidation, { labelProps:
|
|
874
|
+
}, { isInvalid: Y, validationErrors: q, validationDetails: W } = o.displayValidation, { labelProps: k, inputProps: ee, descriptionProps: Q, errorMessageProps: G } = ao({
|
|
874
875
|
...e,
|
|
875
876
|
onChange: o.setInputValue,
|
|
876
|
-
onKeyDown: x ? e.onKeyDown :
|
|
877
|
-
onBlur:
|
|
877
|
+
onKeyDown: x ? e.onKeyDown : Cn(o.isOpen && L.onKeyDown, N, e.onKeyDown),
|
|
878
|
+
onBlur: I,
|
|
878
879
|
value: o.inputValue,
|
|
879
880
|
defaultValue: o.defaultInputValue,
|
|
880
|
-
onFocus:
|
|
881
|
+
onFocus: M,
|
|
881
882
|
autoComplete: "off",
|
|
882
883
|
validate: void 0,
|
|
883
|
-
[
|
|
884
|
-
}, n),
|
|
884
|
+
[an]: o
|
|
885
|
+
}, n), oe = ($) => {
|
|
885
886
|
if ($.pointerType === "touch") {
|
|
886
|
-
var
|
|
887
|
-
(
|
|
887
|
+
var b;
|
|
888
|
+
(b = n.current) === null || b === void 0 || b.focus(), o.toggle(null, "manual");
|
|
888
889
|
}
|
|
889
|
-
},
|
|
890
|
+
}, B = ($) => {
|
|
890
891
|
if ($.pointerType !== "touch") {
|
|
891
|
-
var
|
|
892
|
-
(
|
|
892
|
+
var b;
|
|
893
|
+
(b = n.current) === null || b === void 0 || b.focus(), o.toggle($.pointerType === "keyboard" || $.pointerType === "virtual" ? "first" : null, "manual");
|
|
893
894
|
}
|
|
894
|
-
},
|
|
895
|
-
id:
|
|
896
|
-
"aria-label":
|
|
897
|
-
"aria-labelledby": e["aria-labelledby"] ||
|
|
898
|
-
}),
|
|
899
|
-
id:
|
|
900
|
-
"aria-label":
|
|
901
|
-
"aria-labelledby": e["aria-labelledby"] ||
|
|
902
|
-
}),
|
|
903
|
-
if (
|
|
904
|
-
if ($.timeStamp -
|
|
905
|
-
var
|
|
906
|
-
$.preventDefault(), (
|
|
895
|
+
}, j = Se({
|
|
896
|
+
id: v.id,
|
|
897
|
+
"aria-label": y.format("buttonLabel"),
|
|
898
|
+
"aria-labelledby": e["aria-labelledby"] || k.id
|
|
899
|
+
}), H = Se({
|
|
900
|
+
id: g.id,
|
|
901
|
+
"aria-label": y.format("listboxLabel"),
|
|
902
|
+
"aria-labelledby": e["aria-labelledby"] || k.id
|
|
903
|
+
}), P = T(0), l = ($) => {
|
|
904
|
+
if (h || x) return;
|
|
905
|
+
if ($.timeStamp - P.current < 500) {
|
|
906
|
+
var b;
|
|
907
|
+
$.preventDefault(), (b = n.current) === null || b === void 0 || b.focus();
|
|
907
908
|
return;
|
|
908
909
|
}
|
|
909
|
-
let
|
|
910
|
-
if (
|
|
911
|
-
var
|
|
912
|
-
$.preventDefault(), (
|
|
910
|
+
let D = $.target.getBoundingClientRect(), A = $.changedTouches[0], _ = Math.ceil(D.left + 0.5 * D.width), ne = Math.ceil(D.top + 0.5 * D.height);
|
|
911
|
+
if (A.clientX === _ && A.clientY === ne) {
|
|
912
|
+
var Z;
|
|
913
|
+
$.preventDefault(), (Z = n.current) === null || Z === void 0 || Z.focus(), o.toggle(null, "manual"), P.current = $.timeStamp;
|
|
913
914
|
}
|
|
914
915
|
}, a = o.selectionManager.focusedKey != null && o.isOpen ? o.collection.getItem(o.selectionManager.focusedKey) : void 0;
|
|
915
|
-
var
|
|
916
|
-
let
|
|
916
|
+
var w;
|
|
917
|
+
let F = (w = a?.parentKey) !== null && w !== void 0 ? w : null;
|
|
917
918
|
var V;
|
|
918
|
-
let
|
|
919
|
-
|
|
920
|
-
if (
|
|
921
|
-
let
|
|
919
|
+
let S = (V = o.selectionManager.focusedKey) !== null && V !== void 0 ? V : null, ie = T(F), te = T(S);
|
|
920
|
+
ue(() => {
|
|
921
|
+
if (Ee() && a != null && S != null && S !== te.current) {
|
|
922
|
+
let b = o.selectionManager.isSelected(S), D = F != null ? o.collection.getItem(F) : null, A = D?.["aria-label"] || (typeof D?.rendered == "string" ? D.rendered : "") || "";
|
|
922
923
|
var $;
|
|
923
|
-
let
|
|
924
|
-
isGroupChange: ($ =
|
|
925
|
-
groupTitle:
|
|
926
|
-
groupCount:
|
|
927
|
-
...uo(
|
|
924
|
+
let _ = y.format("focusAnnouncement", {
|
|
925
|
+
isGroupChange: ($ = D && F !== ie.current) !== null && $ !== void 0 ? $ : !1,
|
|
926
|
+
groupTitle: A,
|
|
927
|
+
groupCount: D ? [
|
|
928
|
+
...uo(D, o.collection)
|
|
928
929
|
].length : 0,
|
|
929
930
|
optionText: a["aria-label"] || a.textValue || "",
|
|
930
|
-
isSelected:
|
|
931
|
+
isSelected: b
|
|
931
932
|
});
|
|
932
|
-
|
|
933
|
+
Ae(_);
|
|
933
934
|
}
|
|
934
|
-
ie.current =
|
|
935
|
+
ie.current = F, te.current = S;
|
|
935
936
|
});
|
|
936
|
-
let
|
|
937
|
-
|
|
938
|
-
let $ = o.isOpen !==
|
|
939
|
-
if (o.isOpen && ($ ||
|
|
940
|
-
let
|
|
941
|
-
optionCount:
|
|
937
|
+
let J = Tn(o.collection), se = T(J), re = T(o.isOpen);
|
|
938
|
+
ue(() => {
|
|
939
|
+
let $ = o.isOpen !== re.current && (o.selectionManager.focusedKey == null || Ee());
|
|
940
|
+
if (o.isOpen && ($ || J !== se.current)) {
|
|
941
|
+
let b = y.format("countAnnouncement", {
|
|
942
|
+
optionCount: J
|
|
942
943
|
});
|
|
943
|
-
|
|
944
|
+
Ae(b);
|
|
944
945
|
}
|
|
945
|
-
|
|
946
|
+
se.current = J, re.current = o.isOpen;
|
|
946
947
|
});
|
|
947
|
-
let
|
|
948
|
-
return
|
|
949
|
-
if (
|
|
950
|
-
let $ = o.selectedItem["aria-label"] || o.selectedItem.textValue || "",
|
|
948
|
+
let be = T(o.selectedKey);
|
|
949
|
+
return ue(() => {
|
|
950
|
+
if (Ee() && o.isFocused && o.selectedItem && o.selectedKey !== be.current) {
|
|
951
|
+
let $ = o.selectedItem["aria-label"] || o.selectedItem.textValue || "", b = y.format("selectedAnnouncement", {
|
|
951
952
|
optionText: $
|
|
952
953
|
});
|
|
953
|
-
|
|
954
|
+
Ae(b);
|
|
954
955
|
}
|
|
955
|
-
|
|
956
|
-
}),
|
|
957
|
-
if (o.isOpen) return
|
|
956
|
+
be.current = o.selectedKey;
|
|
957
|
+
}), ue(() => {
|
|
958
|
+
if (o.isOpen) return _t([
|
|
958
959
|
n.current,
|
|
959
|
-
|
|
960
|
+
u.current
|
|
960
961
|
].filter(($) => $ != null));
|
|
961
962
|
}, [
|
|
962
963
|
o.isOpen,
|
|
963
964
|
n,
|
|
964
|
-
|
|
965
|
-
]),
|
|
966
|
-
!a && n.current &&
|
|
965
|
+
u
|
|
966
|
+
]), En(() => {
|
|
967
|
+
!a && n.current && Fe(io(n.current)) === n.current && Te(n.current, null);
|
|
967
968
|
}, [
|
|
968
969
|
a
|
|
969
|
-
]),
|
|
970
|
+
]), ro(r, "react-aria-item-action", o.isOpen ? () => {
|
|
970
971
|
o.close();
|
|
971
972
|
} : void 0), {
|
|
972
|
-
labelProps:
|
|
973
|
+
labelProps: k,
|
|
973
974
|
buttonProps: {
|
|
974
|
-
...
|
|
975
|
-
...
|
|
975
|
+
...v,
|
|
976
|
+
...j,
|
|
976
977
|
excludeFromTabOrder: !0,
|
|
977
978
|
preventFocusOnPress: !0,
|
|
978
|
-
onPress:
|
|
979
|
-
onPressStart:
|
|
980
|
-
isDisabled:
|
|
979
|
+
onPress: oe,
|
|
980
|
+
onPressStart: B,
|
|
981
|
+
isDisabled: h || x
|
|
981
982
|
},
|
|
982
|
-
inputProps:
|
|
983
|
+
inputProps: $e(ee, {
|
|
983
984
|
role: "combobox",
|
|
984
|
-
"aria-expanded":
|
|
985
|
-
"aria-controls": o.isOpen ?
|
|
985
|
+
"aria-expanded": v["aria-expanded"],
|
|
986
|
+
"aria-controls": o.isOpen ? g.id : void 0,
|
|
986
987
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
987
988
|
"aria-autocomplete": "list",
|
|
988
|
-
"aria-activedescendant": a ?
|
|
989
|
-
onTouchEnd:
|
|
989
|
+
"aria-activedescendant": a ? Ht(o, a.key) : void 0,
|
|
990
|
+
onTouchEnd: l,
|
|
990
991
|
// This disable's iOS's autocorrect suggestions, since the combo box provides its own suggestions.
|
|
991
992
|
autoCorrect: "off",
|
|
992
993
|
// This disable's the macOS Safari spell check auto corrections.
|
|
993
994
|
spellCheck: "false"
|
|
994
995
|
}),
|
|
995
|
-
listBoxProps:
|
|
996
|
+
listBoxProps: $e(g, H, {
|
|
996
997
|
autoFocus: o.focusStrategy || !0,
|
|
997
998
|
shouldUseVirtualFocus: !0,
|
|
998
999
|
shouldSelectOnPressUp: !0,
|
|
@@ -1000,252 +1001,252 @@ function On(e, o) {
|
|
|
1000
1001
|
linkBehavior: "selection",
|
|
1001
1002
|
UNSTABLE_itemBehavior: "action"
|
|
1002
1003
|
}),
|
|
1003
|
-
descriptionProps:
|
|
1004
|
-
errorMessageProps:
|
|
1004
|
+
descriptionProps: Q,
|
|
1005
|
+
errorMessageProps: G,
|
|
1005
1006
|
isInvalid: Y,
|
|
1006
1007
|
validationErrors: q,
|
|
1007
1008
|
validationDetails: W
|
|
1008
1009
|
};
|
|
1009
1010
|
}
|
|
1010
|
-
var
|
|
1011
|
-
|
|
1011
|
+
var Qo = {};
|
|
1012
|
+
Qo = {
|
|
1012
1013
|
collectionLabel: "مقترحات"
|
|
1013
1014
|
};
|
|
1014
|
-
var
|
|
1015
|
-
|
|
1015
|
+
var _o = {};
|
|
1016
|
+
_o = {
|
|
1016
1017
|
collectionLabel: "Предложения"
|
|
1017
1018
|
};
|
|
1018
|
-
var
|
|
1019
|
-
|
|
1019
|
+
var et = {};
|
|
1020
|
+
et = {
|
|
1020
1021
|
collectionLabel: "Návrhy"
|
|
1021
1022
|
};
|
|
1022
|
-
var
|
|
1023
|
-
|
|
1023
|
+
var ot = {};
|
|
1024
|
+
ot = {
|
|
1024
1025
|
collectionLabel: "Forslag"
|
|
1025
1026
|
};
|
|
1026
|
-
var
|
|
1027
|
-
|
|
1027
|
+
var tt = {};
|
|
1028
|
+
tt = {
|
|
1028
1029
|
collectionLabel: "Empfehlungen"
|
|
1029
1030
|
};
|
|
1030
|
-
var
|
|
1031
|
-
|
|
1031
|
+
var nt = {};
|
|
1032
|
+
nt = {
|
|
1032
1033
|
collectionLabel: "Προτάσεις"
|
|
1033
1034
|
};
|
|
1034
|
-
var
|
|
1035
|
-
|
|
1035
|
+
var ut = {};
|
|
1036
|
+
ut = {
|
|
1036
1037
|
collectionLabel: "Suggestions"
|
|
1037
1038
|
};
|
|
1038
|
-
var
|
|
1039
|
-
|
|
1039
|
+
var lt = {};
|
|
1040
|
+
lt = {
|
|
1040
1041
|
collectionLabel: "Sugerencias"
|
|
1041
1042
|
};
|
|
1042
|
-
var
|
|
1043
|
-
|
|
1043
|
+
var it = {};
|
|
1044
|
+
it = {
|
|
1044
1045
|
collectionLabel: "Soovitused"
|
|
1045
1046
|
};
|
|
1046
|
-
var
|
|
1047
|
-
|
|
1047
|
+
var rt = {};
|
|
1048
|
+
rt = {
|
|
1048
1049
|
collectionLabel: "Ehdotukset"
|
|
1049
1050
|
};
|
|
1050
|
-
var
|
|
1051
|
-
|
|
1051
|
+
var ct = {};
|
|
1052
|
+
ct = {
|
|
1052
1053
|
collectionLabel: "Suggestions"
|
|
1053
1054
|
};
|
|
1054
|
-
var
|
|
1055
|
-
|
|
1055
|
+
var at = {};
|
|
1056
|
+
at = {
|
|
1056
1057
|
collectionLabel: "הצעות"
|
|
1057
1058
|
};
|
|
1058
|
-
var
|
|
1059
|
-
|
|
1059
|
+
var st = {};
|
|
1060
|
+
st = {
|
|
1060
1061
|
collectionLabel: "Prijedlozi"
|
|
1061
1062
|
};
|
|
1062
|
-
var
|
|
1063
|
-
|
|
1063
|
+
var dt = {};
|
|
1064
|
+
dt = {
|
|
1064
1065
|
collectionLabel: "Javaslatok"
|
|
1065
1066
|
};
|
|
1066
|
-
var
|
|
1067
|
-
|
|
1067
|
+
var pt = {};
|
|
1068
|
+
pt = {
|
|
1068
1069
|
collectionLabel: "Suggerimenti"
|
|
1069
1070
|
};
|
|
1070
|
-
var
|
|
1071
|
-
|
|
1071
|
+
var bt = {};
|
|
1072
|
+
bt = {
|
|
1072
1073
|
collectionLabel: "候補"
|
|
1073
1074
|
};
|
|
1074
|
-
var
|
|
1075
|
-
|
|
1075
|
+
var $t = {};
|
|
1076
|
+
$t = {
|
|
1076
1077
|
collectionLabel: "제안"
|
|
1077
1078
|
};
|
|
1078
|
-
var
|
|
1079
|
-
|
|
1079
|
+
var ft = {};
|
|
1080
|
+
ft = {
|
|
1080
1081
|
collectionLabel: "Pasiūlymai"
|
|
1081
1082
|
};
|
|
1082
|
-
var
|
|
1083
|
-
|
|
1083
|
+
var mt = {};
|
|
1084
|
+
mt = {
|
|
1084
1085
|
collectionLabel: "Ieteikumi"
|
|
1085
1086
|
};
|
|
1086
|
-
var
|
|
1087
|
-
|
|
1087
|
+
var xt = {};
|
|
1088
|
+
xt = {
|
|
1088
1089
|
collectionLabel: "Forslag"
|
|
1089
1090
|
};
|
|
1090
|
-
var
|
|
1091
|
-
|
|
1091
|
+
var Ct = {};
|
|
1092
|
+
Ct = {
|
|
1092
1093
|
collectionLabel: "Suggesties"
|
|
1093
1094
|
};
|
|
1094
|
-
var
|
|
1095
|
-
|
|
1095
|
+
var ht = {};
|
|
1096
|
+
ht = {
|
|
1096
1097
|
collectionLabel: "Sugestie"
|
|
1097
1098
|
};
|
|
1098
|
-
var
|
|
1099
|
-
|
|
1099
|
+
var vt = {};
|
|
1100
|
+
vt = {
|
|
1100
1101
|
collectionLabel: "Sugestões"
|
|
1101
1102
|
};
|
|
1102
|
-
var
|
|
1103
|
-
|
|
1103
|
+
var yt = {};
|
|
1104
|
+
yt = {
|
|
1104
1105
|
collectionLabel: "Sugestões"
|
|
1105
1106
|
};
|
|
1106
|
-
var
|
|
1107
|
-
|
|
1107
|
+
var At = {};
|
|
1108
|
+
At = {
|
|
1108
1109
|
collectionLabel: "Sugestii"
|
|
1109
1110
|
};
|
|
1110
|
-
var
|
|
1111
|
-
|
|
1111
|
+
var Et = {};
|
|
1112
|
+
Et = {
|
|
1112
1113
|
collectionLabel: "Предложения"
|
|
1113
1114
|
};
|
|
1114
|
-
var
|
|
1115
|
-
|
|
1115
|
+
var gt = {};
|
|
1116
|
+
gt = {
|
|
1116
1117
|
collectionLabel: "Návrhy"
|
|
1117
1118
|
};
|
|
1118
|
-
var
|
|
1119
|
-
|
|
1119
|
+
var Bt = {};
|
|
1120
|
+
Bt = {
|
|
1120
1121
|
collectionLabel: "Predlogi"
|
|
1121
1122
|
};
|
|
1122
|
-
var
|
|
1123
|
-
|
|
1123
|
+
var Tt = {};
|
|
1124
|
+
Tt = {
|
|
1124
1125
|
collectionLabel: "Predlozi"
|
|
1125
1126
|
};
|
|
1126
|
-
var
|
|
1127
|
-
|
|
1127
|
+
var Ft = {};
|
|
1128
|
+
Ft = {
|
|
1128
1129
|
collectionLabel: "Förslag"
|
|
1129
1130
|
};
|
|
1130
|
-
var
|
|
1131
|
-
|
|
1131
|
+
var St = {};
|
|
1132
|
+
St = {
|
|
1132
1133
|
collectionLabel: "Öneriler"
|
|
1133
1134
|
};
|
|
1134
|
-
var
|
|
1135
|
-
|
|
1135
|
+
var Dt = {};
|
|
1136
|
+
Dt = {
|
|
1136
1137
|
collectionLabel: "Пропозиції"
|
|
1137
1138
|
};
|
|
1138
|
-
var
|
|
1139
|
-
|
|
1139
|
+
var Lt = {};
|
|
1140
|
+
Lt = {
|
|
1140
1141
|
collectionLabel: "建议"
|
|
1141
1142
|
};
|
|
1142
|
-
var
|
|
1143
|
-
|
|
1143
|
+
var It = {};
|
|
1144
|
+
It = {
|
|
1144
1145
|
collectionLabel: "建議"
|
|
1145
1146
|
};
|
|
1146
|
-
var
|
|
1147
|
-
|
|
1148
|
-
"ar-AE":
|
|
1149
|
-
"bg-BG":
|
|
1150
|
-
"cs-CZ":
|
|
1151
|
-
"da-DK":
|
|
1152
|
-
"de-DE":
|
|
1153
|
-
"el-GR":
|
|
1154
|
-
"en-US":
|
|
1155
|
-
"es-ES":
|
|
1156
|
-
"et-EE":
|
|
1157
|
-
"fi-FI":
|
|
1158
|
-
"fr-FR":
|
|
1159
|
-
"he-IL":
|
|
1160
|
-
"hr-HR":
|
|
1161
|
-
"hu-HU":
|
|
1162
|
-
"it-IT":
|
|
1163
|
-
"ja-JP":
|
|
1164
|
-
"ko-KR":
|
|
1165
|
-
"lt-LT":
|
|
1166
|
-
"lv-LV":
|
|
1167
|
-
"nb-NO":
|
|
1168
|
-
"nl-NL":
|
|
1169
|
-
"pl-PL":
|
|
1170
|
-
"pt-BR":
|
|
1171
|
-
"pt-PT":
|
|
1172
|
-
"ro-RO":
|
|
1173
|
-
"ru-RU":
|
|
1174
|
-
"sk-SK":
|
|
1175
|
-
"sl-SI":
|
|
1176
|
-
"sr-SP":
|
|
1177
|
-
"sv-SE":
|
|
1178
|
-
"tr-TR":
|
|
1179
|
-
"uk-UA":
|
|
1180
|
-
"zh-CN":
|
|
1181
|
-
"zh-TW":
|
|
1182
|
-
};
|
|
1183
|
-
function
|
|
1147
|
+
var Pt = {};
|
|
1148
|
+
Pt = {
|
|
1149
|
+
"ar-AE": Qo,
|
|
1150
|
+
"bg-BG": _o,
|
|
1151
|
+
"cs-CZ": et,
|
|
1152
|
+
"da-DK": ot,
|
|
1153
|
+
"de-DE": tt,
|
|
1154
|
+
"el-GR": nt,
|
|
1155
|
+
"en-US": ut,
|
|
1156
|
+
"es-ES": lt,
|
|
1157
|
+
"et-EE": it,
|
|
1158
|
+
"fi-FI": rt,
|
|
1159
|
+
"fr-FR": ct,
|
|
1160
|
+
"he-IL": at,
|
|
1161
|
+
"hr-HR": st,
|
|
1162
|
+
"hu-HU": dt,
|
|
1163
|
+
"it-IT": pt,
|
|
1164
|
+
"ja-JP": bt,
|
|
1165
|
+
"ko-KR": $t,
|
|
1166
|
+
"lt-LT": ft,
|
|
1167
|
+
"lv-LV": mt,
|
|
1168
|
+
"nb-NO": xt,
|
|
1169
|
+
"nl-NL": Ct,
|
|
1170
|
+
"pl-PL": ht,
|
|
1171
|
+
"pt-BR": vt,
|
|
1172
|
+
"pt-PT": yt,
|
|
1173
|
+
"ro-RO": At,
|
|
1174
|
+
"ru-RU": Et,
|
|
1175
|
+
"sk-SK": gt,
|
|
1176
|
+
"sl-SI": Bt,
|
|
1177
|
+
"sr-SP": Tt,
|
|
1178
|
+
"sv-SE": Ft,
|
|
1179
|
+
"tr-TR": St,
|
|
1180
|
+
"uk-UA": Dt,
|
|
1181
|
+
"zh-CN": Lt,
|
|
1182
|
+
"zh-TW": It
|
|
1183
|
+
};
|
|
1184
|
+
function Gn(e) {
|
|
1184
1185
|
return e && e.__esModule ? e.default : e;
|
|
1185
1186
|
}
|
|
1186
|
-
function
|
|
1187
|
-
let { inputRef:
|
|
1188
|
-
|
|
1189
|
-
let d =
|
|
1190
|
-
!
|
|
1191
|
-
let a =
|
|
1192
|
-
|
|
1187
|
+
function Nn(e, o) {
|
|
1188
|
+
let { inputRef: t, collectionRef: u, filter: n, disableAutoFocusFirst: r = !1, disableVirtualFocus: p = !1 } = e, c = hn(), i = T(void 0), x = T(!1), h = T(null), C = T(null), y = Pn() === "virtual" && (gn() || Bn()), [v, g] = U(!y && !p), [f, m] = U(!1);
|
|
1189
|
+
ue(() => () => clearTimeout(i.current), []);
|
|
1190
|
+
let d = me((l) => {
|
|
1191
|
+
!l.isTrusted && v && t.current && Fe(io(t.current)) !== t.current && t.current.focus();
|
|
1192
|
+
let a = l.target;
|
|
1193
|
+
l.isTrusted || !a || h.current === a.id || (clearTimeout(i.current), a !== u.current ? x.current ? (h.current = a.id, i.current = setTimeout(() => {
|
|
1193
1194
|
o.setFocusedNodeId(a.id);
|
|
1194
|
-
}, 500)) : (
|
|
1195
|
-
}),
|
|
1196
|
-
if (
|
|
1195
|
+
}, 500)) : (h.current = a.id, o.setFocusedNodeId(a.id)) : h.current && !document.getElementById(h.current) && (h.current = null, o.setFocusedNodeId(null)), x.current = !1);
|
|
1196
|
+
}), L = z((l) => {
|
|
1197
|
+
if (l != null) {
|
|
1197
1198
|
var a;
|
|
1198
|
-
(a = C.current) === null || a === void 0 || a.removeEventListener("focusin", d), C.current =
|
|
1199
|
+
(a = C.current) === null || a === void 0 || a.removeEventListener("focusin", d), C.current = l, l.addEventListener("focusin", d), l.getAttribute("tabindex") != null && g(!1), m(!0);
|
|
1199
1200
|
} else {
|
|
1200
|
-
var
|
|
1201
|
-
(
|
|
1201
|
+
var w;
|
|
1202
|
+
(w = C.current) === null || w === void 0 || w.removeEventListener("focusin", d), m(!1);
|
|
1202
1203
|
}
|
|
1203
1204
|
}, [
|
|
1204
1205
|
d
|
|
1205
|
-
]),
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
])),
|
|
1209
|
-
var
|
|
1210
|
-
x.current = !0, (
|
|
1206
|
+
]), O = mo(ae(() => He(u, L), [
|
|
1207
|
+
u,
|
|
1208
|
+
L
|
|
1209
|
+
])), N = me(() => {
|
|
1210
|
+
var l;
|
|
1211
|
+
x.current = !0, (l = u.current) === null || l === void 0 || l.dispatchEvent(new CustomEvent(Ne, {
|
|
1211
1212
|
cancelable: !0,
|
|
1212
1213
|
bubbles: !0,
|
|
1213
1214
|
detail: {
|
|
1214
1215
|
focusStrategy: "first"
|
|
1215
1216
|
}
|
|
1216
1217
|
}));
|
|
1217
|
-
}),
|
|
1218
|
+
}), I = me((l) => {
|
|
1218
1219
|
var a;
|
|
1219
|
-
|
|
1220
|
-
let
|
|
1220
|
+
pn(Fe()), h.current = null, o.setFocusedNodeId(null);
|
|
1221
|
+
let w = new CustomEvent(bn, {
|
|
1221
1222
|
cancelable: !0,
|
|
1222
1223
|
bubbles: !0,
|
|
1223
1224
|
detail: {
|
|
1224
|
-
clearFocusKey:
|
|
1225
|
+
clearFocusKey: l
|
|
1225
1226
|
}
|
|
1226
1227
|
});
|
|
1227
|
-
clearTimeout(
|
|
1228
|
-
}),
|
|
1229
|
-
|
|
1230
|
-
let { inputType: a } =
|
|
1231
|
-
|
|
1228
|
+
clearTimeout(i.current), x.current = !1, (a = u.current) === null || a === void 0 || a.dispatchEvent(w);
|
|
1229
|
+
}), M = T("");
|
|
1230
|
+
ro(t, "input", (l) => {
|
|
1231
|
+
let { inputType: a } = l;
|
|
1232
|
+
M.current = a;
|
|
1232
1233
|
});
|
|
1233
|
-
let Y = (
|
|
1234
|
-
|
|
1235
|
-
}, q =
|
|
1236
|
-
if (q.current =
|
|
1237
|
-
let a =
|
|
1238
|
-
switch (
|
|
1234
|
+
let Y = (l) => {
|
|
1235
|
+
M.current === "insertText" && !r ? N() : M.current && (M.current.includes("insert") || M.current.includes("delete") || M.current.includes("history")) && (I(!0), fn(document) === t.current && Te(t.current, null)), o.setInputValue(l);
|
|
1236
|
+
}, q = T(null), W = (l) => {
|
|
1237
|
+
if (q.current = l.target, l.nativeEvent.isComposing) return;
|
|
1238
|
+
let a = h.current;
|
|
1239
|
+
switch (l.key) {
|
|
1239
1240
|
case "a":
|
|
1240
|
-
if (
|
|
1241
|
+
if ($n(l)) return;
|
|
1241
1242
|
break;
|
|
1242
1243
|
case "Escape":
|
|
1243
|
-
if (
|
|
1244
|
+
if (l.isDefaultPrevented()) return;
|
|
1244
1245
|
break;
|
|
1245
1246
|
case " ":
|
|
1246
1247
|
return;
|
|
1247
1248
|
case "Tab":
|
|
1248
|
-
"continuePropagation" in
|
|
1249
|
+
"continuePropagation" in l && l.continuePropagation();
|
|
1249
1250
|
return;
|
|
1250
1251
|
case "Home":
|
|
1251
1252
|
case "End":
|
|
@@ -1253,92 +1254,92 @@ function Vn(e, o) {
|
|
|
1253
1254
|
case "PageUp":
|
|
1254
1255
|
case "ArrowUp":
|
|
1255
1256
|
case "ArrowDown": {
|
|
1256
|
-
var
|
|
1257
|
-
if ((
|
|
1258
|
-
|
|
1259
|
-
let
|
|
1257
|
+
var w;
|
|
1258
|
+
if ((l.key === "Home" || l.key === "End") && a == null && l.shiftKey) return;
|
|
1259
|
+
l.preventDefault();
|
|
1260
|
+
let S = new CustomEvent(Ne, {
|
|
1260
1261
|
cancelable: !0,
|
|
1261
1262
|
bubbles: !0
|
|
1262
1263
|
});
|
|
1263
|
-
(
|
|
1264
|
+
(w = u.current) === null || w === void 0 || w.dispatchEvent(S);
|
|
1264
1265
|
break;
|
|
1265
1266
|
}
|
|
1266
1267
|
}
|
|
1267
|
-
|
|
1268
|
-
let
|
|
1269
|
-
if (
|
|
1268
|
+
l.isPropagationStopped() || l.stopPropagation();
|
|
1269
|
+
let F = !0;
|
|
1270
|
+
if (u.current !== null) {
|
|
1270
1271
|
var V;
|
|
1271
|
-
if (a == null)
|
|
1272
|
+
if (a == null) F = ((V = u.current) === null || V === void 0 ? void 0 : V.dispatchEvent(new KeyboardEvent(l.nativeEvent.type, l.nativeEvent))) || !1;
|
|
1272
1273
|
else {
|
|
1273
|
-
let
|
|
1274
|
-
|
|
1274
|
+
let S = document.getElementById(a);
|
|
1275
|
+
S && (F = S?.dispatchEvent(new KeyboardEvent(l.nativeEvent.type, l.nativeEvent)) || !1);
|
|
1275
1276
|
}
|
|
1276
1277
|
}
|
|
1277
|
-
if (
|
|
1278
|
+
if (F) switch (l.key) {
|
|
1278
1279
|
case "ArrowLeft":
|
|
1279
1280
|
case "ArrowRight":
|
|
1280
|
-
|
|
1281
|
+
I();
|
|
1281
1282
|
break;
|
|
1282
1283
|
case "Enter":
|
|
1283
1284
|
if (a != null) {
|
|
1284
|
-
let
|
|
1285
|
-
|
|
1285
|
+
let S = document.getElementById(a);
|
|
1286
|
+
S?.click();
|
|
1286
1287
|
}
|
|
1287
1288
|
break;
|
|
1288
1289
|
}
|
|
1289
1290
|
else
|
|
1290
|
-
|
|
1291
|
-
},
|
|
1292
|
-
if (
|
|
1291
|
+
l.preventDefault();
|
|
1292
|
+
}, k = me((l) => {
|
|
1293
|
+
if (l.target === q.current) {
|
|
1293
1294
|
var a;
|
|
1294
|
-
|
|
1295
|
-
let
|
|
1296
|
-
if (
|
|
1295
|
+
l.stopImmediatePropagation();
|
|
1296
|
+
let w = h.current;
|
|
1297
|
+
if (w == null) (a = u.current) === null || a === void 0 || a.dispatchEvent(new KeyboardEvent(l.type, l));
|
|
1297
1298
|
else {
|
|
1298
|
-
let
|
|
1299
|
-
|
|
1299
|
+
let F = document.getElementById(w);
|
|
1300
|
+
F?.dispatchEvent(new KeyboardEvent(l.type, l));
|
|
1300
1301
|
}
|
|
1301
1302
|
}
|
|
1302
1303
|
});
|
|
1303
|
-
|
|
1304
|
-
document.removeEventListener("keyup",
|
|
1304
|
+
ue(() => (document.addEventListener("keyup", k, !0), () => {
|
|
1305
|
+
document.removeEventListener("keyup", k, !0);
|
|
1305
1306
|
}), [
|
|
1306
|
-
|
|
1307
|
+
k
|
|
1307
1308
|
]);
|
|
1308
|
-
let
|
|
1309
|
-
id:
|
|
1310
|
-
"aria-label":
|
|
1311
|
-
}),
|
|
1309
|
+
let ee = co(Gn(Pt), "@react-aria/autocomplete"), Q = Se({
|
|
1310
|
+
id: c,
|
|
1311
|
+
"aria-label": ee.format("collectionLabel")
|
|
1312
|
+
}), G = z((l, a) => n ? n(l, o.inputValue, a) : !0, [
|
|
1312
1313
|
o.inputValue,
|
|
1313
1314
|
n
|
|
1314
|
-
]),
|
|
1315
|
-
if (!
|
|
1316
|
-
let a =
|
|
1317
|
-
a &&
|
|
1318
|
-
},
|
|
1319
|
-
if (!
|
|
1320
|
-
if (
|
|
1321
|
-
let
|
|
1315
|
+
]), oe = (l) => {
|
|
1316
|
+
if (!l.isTrusted) return;
|
|
1317
|
+
let a = h.current ? document.getElementById(h.current) : null;
|
|
1318
|
+
a && ze(a, l.relatedTarget);
|
|
1319
|
+
}, B = (l) => {
|
|
1320
|
+
if (!l.isTrusted) return;
|
|
1321
|
+
if (h.current ? document.getElementById(h.current) : null) {
|
|
1322
|
+
let w = l.target;
|
|
1322
1323
|
queueMicrotask(() => {
|
|
1323
|
-
|
|
1324
|
+
ze(w, u.current), Te(u.current, w);
|
|
1324
1325
|
});
|
|
1325
1326
|
}
|
|
1326
|
-
},
|
|
1327
|
+
}, j = {
|
|
1327
1328
|
value: o.inputValue,
|
|
1328
1329
|
onChange: Y
|
|
1329
1330
|
};
|
|
1330
|
-
var
|
|
1331
|
-
let
|
|
1331
|
+
var H;
|
|
1332
|
+
let P = {
|
|
1332
1333
|
onKeyDown: W,
|
|
1333
|
-
"aria-activedescendant": (
|
|
1334
|
-
onBlur:
|
|
1335
|
-
onFocus:
|
|
1334
|
+
"aria-activedescendant": (H = o.focusedNodeId) !== null && H !== void 0 ? H : void 0,
|
|
1335
|
+
onBlur: oe,
|
|
1336
|
+
onFocus: B
|
|
1336
1337
|
};
|
|
1337
|
-
return f && (
|
|
1338
|
-
...
|
|
1339
|
-
...
|
|
1338
|
+
return f && (j = {
|
|
1339
|
+
...j,
|
|
1340
|
+
...v && P,
|
|
1340
1341
|
enterKeyHint: "go",
|
|
1341
|
-
"aria-controls":
|
|
1342
|
+
"aria-controls": c,
|
|
1342
1343
|
// TODO: readd proper logic for completionMode = complete (aria-autocomplete: both)
|
|
1343
1344
|
"aria-autocomplete": "list",
|
|
1344
1345
|
// This disable's iOS's autocorrect suggestions, since the autocomplete provides its own suggestions.
|
|
@@ -1347,297 +1348,297 @@ function Vn(e, o) {
|
|
|
1347
1348
|
spellCheck: "false",
|
|
1348
1349
|
autoComplete: "off"
|
|
1349
1350
|
}), {
|
|
1350
|
-
inputProps:
|
|
1351
|
-
collectionProps:
|
|
1352
|
-
shouldUseVirtualFocus:
|
|
1353
|
-
disallowTypeAhead:
|
|
1351
|
+
inputProps: j,
|
|
1352
|
+
collectionProps: $e(Q, {
|
|
1353
|
+
shouldUseVirtualFocus: v,
|
|
1354
|
+
disallowTypeAhead: v
|
|
1354
1355
|
}),
|
|
1355
|
-
collectionRef:
|
|
1356
|
-
filter: n != null ?
|
|
1356
|
+
collectionRef: O,
|
|
1357
|
+
filter: n != null ? G : void 0
|
|
1357
1358
|
};
|
|
1358
1359
|
}
|
|
1359
|
-
function
|
|
1360
|
-
let { onInputChange: o, inputValue:
|
|
1360
|
+
function zn(e) {
|
|
1361
|
+
let { onInputChange: o, inputValue: t, defaultInputValue: u = "" } = e, n = (x) => {
|
|
1361
1362
|
o && o(x);
|
|
1362
|
-
}, [
|
|
1363
|
+
}, [r, p] = U(null), [c, i] = lo(t, u, n);
|
|
1363
1364
|
return {
|
|
1364
|
-
inputValue:
|
|
1365
|
-
setInputValue:
|
|
1366
|
-
focusedNodeId:
|
|
1367
|
-
setFocusedNodeId:
|
|
1365
|
+
inputValue: c,
|
|
1366
|
+
setInputValue: i,
|
|
1367
|
+
focusedNodeId: r,
|
|
1368
|
+
setFocusedNodeId: p
|
|
1368
1369
|
};
|
|
1369
1370
|
}
|
|
1370
|
-
const
|
|
1371
|
-
function
|
|
1372
|
-
let o =
|
|
1373
|
-
e =
|
|
1374
|
-
let { filter:
|
|
1375
|
-
...
|
|
1376
|
-
filter:
|
|
1377
|
-
disableAutoFocusFirst:
|
|
1378
|
-
inputRef:
|
|
1379
|
-
collectionRef:
|
|
1371
|
+
const jn = /* @__PURE__ */ fe(null), Un = /* @__PURE__ */ fe(null);
|
|
1372
|
+
function qn(e) {
|
|
1373
|
+
let o = Le(jn, e.slot);
|
|
1374
|
+
e = $e(o, e);
|
|
1375
|
+
let { filter: t, disableAutoFocusFirst: u } = e, n = zn(e), r = T(null), p = T(null), { inputProps: c, collectionProps: i, collectionRef: x, filter: h } = Nn({
|
|
1376
|
+
...Ie(e),
|
|
1377
|
+
filter: t,
|
|
1378
|
+
disableAutoFocusFirst: u,
|
|
1379
|
+
inputRef: r,
|
|
1380
|
+
collectionRef: p
|
|
1380
1381
|
}, n);
|
|
1381
|
-
return /* @__PURE__ */ X.createElement(
|
|
1382
|
+
return /* @__PURE__ */ X.createElement(Pe, {
|
|
1382
1383
|
values: [
|
|
1383
1384
|
[
|
|
1384
|
-
|
|
1385
|
+
Un,
|
|
1385
1386
|
n
|
|
1386
1387
|
],
|
|
1387
1388
|
[
|
|
1388
|
-
|
|
1389
|
+
fo,
|
|
1389
1390
|
{
|
|
1390
|
-
...
|
|
1391
|
-
ref:
|
|
1391
|
+
...c,
|
|
1392
|
+
ref: r
|
|
1392
1393
|
}
|
|
1393
1394
|
],
|
|
1394
1395
|
[
|
|
1395
|
-
|
|
1396
|
+
In,
|
|
1396
1397
|
{
|
|
1397
|
-
...
|
|
1398
|
-
filter:
|
|
1398
|
+
...i,
|
|
1399
|
+
filter: h,
|
|
1399
1400
|
ref: x
|
|
1400
1401
|
}
|
|
1401
1402
|
]
|
|
1402
1403
|
]
|
|
1403
1404
|
}, e.children);
|
|
1404
1405
|
}
|
|
1405
|
-
function
|
|
1406
|
+
function Wn(e) {
|
|
1406
1407
|
var o;
|
|
1407
|
-
let { defaultFilter:
|
|
1408
|
-
e.onSelectionChange && e.onSelectionChange(
|
|
1408
|
+
let { defaultFilter: t, menuTrigger: u = "input", allowsEmptyCollection: n = !1, allowsCustomValue: r, shouldCloseOnBlur: p = !0 } = e, [c, i] = U(!1), [x, h] = U(!1), [C, y] = U(null), v = (E) => {
|
|
1409
|
+
e.onSelectionChange && e.onSelectionChange(E), E === d && (V(), a());
|
|
1409
1410
|
};
|
|
1410
|
-
var
|
|
1411
|
-
let { collection: f, selectionManager:
|
|
1411
|
+
var g;
|
|
1412
|
+
let { collection: f, selectionManager: m, selectedKey: d, setSelectedKey: L, selectedItem: O, disabledKeys: N } = mn({
|
|
1412
1413
|
...e,
|
|
1413
|
-
onSelectionChange:
|
|
1414
|
-
items: (
|
|
1415
|
-
}), [
|
|
1414
|
+
onSelectionChange: v,
|
|
1415
|
+
items: (g = e.items) !== null && g !== void 0 ? g : e.defaultItems
|
|
1416
|
+
}), [I, M] = lo(e.inputValue, je(e.defaultInputValue, d, f) || "", e.onInputChange), [Y] = U(d), [q] = U(I), W = f, k = ae(() => (
|
|
1416
1417
|
// No default filter if items are controlled.
|
|
1417
|
-
e.items != null || !
|
|
1418
|
+
e.items != null || !t ? f : Hn(f, I, t)
|
|
1418
1419
|
), [
|
|
1419
1420
|
f,
|
|
1420
|
-
|
|
1421
|
-
|
|
1421
|
+
I,
|
|
1422
|
+
t,
|
|
1422
1423
|
e.items
|
|
1423
|
-
]), [
|
|
1424
|
+
]), [ee, Q] = U(k), G = T("focus"), B = rn({
|
|
1424
1425
|
...e,
|
|
1425
|
-
onOpenChange: (
|
|
1426
|
-
e.onOpenChange && e.onOpenChange(
|
|
1426
|
+
onOpenChange: (E) => {
|
|
1427
|
+
e.onOpenChange && e.onOpenChange(E, E ? G.current : void 0), m.setFocused(E), E || m.setFocusedKey(null);
|
|
1427
1428
|
},
|
|
1428
1429
|
isOpen: void 0,
|
|
1429
1430
|
defaultOpen: void 0
|
|
1430
|
-
}),
|
|
1431
|
-
let
|
|
1432
|
-
(n ||
|
|
1433
|
-
},
|
|
1434
|
-
let
|
|
1435
|
-
!(n ||
|
|
1436
|
-
},
|
|
1437
|
-
|
|
1431
|
+
}), j = (E = null, K) => {
|
|
1432
|
+
let R = K === "manual" || K === "focus" && u === "focus";
|
|
1433
|
+
(n || k.size > 0 || R && W.size > 0 || e.items) && (R && !B.isOpen && e.items === void 0 && i(!0), G.current = K, y(E), B.open());
|
|
1434
|
+
}, H = (E = null, K) => {
|
|
1435
|
+
let R = K === "manual" || K === "focus" && u === "focus";
|
|
1436
|
+
!(n || k.size > 0 || R && W.size > 0 || e.items) && !B.isOpen || (R && !B.isOpen && e.items === void 0 && i(!0), B.isOpen || (G.current = K), l(E));
|
|
1437
|
+
}, P = z(() => {
|
|
1438
|
+
Q(c ? W : k);
|
|
1438
1439
|
}, [
|
|
1439
|
-
|
|
1440
|
+
c,
|
|
1440
1441
|
W,
|
|
1441
|
-
P
|
|
1442
|
-
]), c = G((A = null) => {
|
|
1443
|
-
T.isOpen && k(), E(A), T.toggle();
|
|
1444
|
-
}, [
|
|
1445
|
-
T,
|
|
1446
1442
|
k
|
|
1447
|
-
]),
|
|
1448
|
-
|
|
1443
|
+
]), l = z((E = null) => {
|
|
1444
|
+
B.isOpen && P(), y(E), B.toggle();
|
|
1449
1445
|
}, [
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
]),
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1446
|
+
B,
|
|
1447
|
+
P
|
|
1448
|
+
]), a = z(() => {
|
|
1449
|
+
B.isOpen && (P(), B.close());
|
|
1450
|
+
}, [
|
|
1451
|
+
B,
|
|
1452
|
+
P
|
|
1453
|
+
]), [w, F] = U(I), V = () => {
|
|
1454
|
+
var E, K;
|
|
1455
|
+
let R = d != null && (K = (E = f.getItem(d)) === null || E === void 0 ? void 0 : E.textValue) !== null && K !== void 0 ? K : "";
|
|
1456
|
+
F(R), M(R);
|
|
1456
1457
|
};
|
|
1457
|
-
var
|
|
1458
|
-
let
|
|
1459
|
-
var
|
|
1460
|
-
let
|
|
1461
|
-
|
|
1462
|
-
var
|
|
1463
|
-
x && (
|
|
1464
|
-
var
|
|
1465
|
-
let
|
|
1466
|
-
!x && d != null && e.inputValue === void 0 && d ===
|
|
1458
|
+
var S, ie;
|
|
1459
|
+
let te = T((ie = (S = e.selectedKey) !== null && S !== void 0 ? S : e.defaultSelectedKey) !== null && ie !== void 0 ? ie : null);
|
|
1460
|
+
var J;
|
|
1461
|
+
let se = T(d != null && (J = (o = f.getItem(d)) === null || o === void 0 ? void 0 : o.textValue) !== null && J !== void 0 ? J : "");
|
|
1462
|
+
ue(() => {
|
|
1463
|
+
var E;
|
|
1464
|
+
x && (k.size > 0 || n) && !B.isOpen && I !== w && u !== "manual" && j(null, "input"), !c && !n && B.isOpen && k.size === 0 && a(), d != null && d !== te.current && a(), I !== w && (m.setFocusedKey(null), i(!1), I === "" && (e.inputValue === void 0 || e.selectedKey === void 0) && L(null)), d !== te.current && (e.inputValue === void 0 || e.selectedKey === void 0) ? V() : w !== I && F(I);
|
|
1465
|
+
var K;
|
|
1466
|
+
let R = d != null && (K = (E = f.getItem(d)) === null || E === void 0 ? void 0 : E.textValue) !== null && K !== void 0 ? K : "";
|
|
1467
|
+
!x && d != null && e.inputValue === void 0 && d === te.current && se.current !== R && (F(R), M(R)), te.current = d, se.current = R;
|
|
1467
1468
|
});
|
|
1468
|
-
let
|
|
1469
|
+
let re = sn({
|
|
1469
1470
|
...e,
|
|
1470
1471
|
value: ae(() => ({
|
|
1471
|
-
inputValue:
|
|
1472
|
+
inputValue: I,
|
|
1472
1473
|
selectedKey: d
|
|
1473
1474
|
}), [
|
|
1474
|
-
|
|
1475
|
+
I,
|
|
1475
1476
|
d
|
|
1476
1477
|
])
|
|
1477
|
-
}),
|
|
1478
|
-
|
|
1478
|
+
}), be = () => {
|
|
1479
|
+
r && d == null ? $() : b();
|
|
1479
1480
|
}, $ = () => {
|
|
1480
|
-
|
|
1481
|
-
},
|
|
1481
|
+
te.current = null, L(null), a();
|
|
1482
|
+
}, b = () => {
|
|
1482
1483
|
if (e.selectedKey !== void 0 && e.inputValue !== void 0) {
|
|
1483
|
-
var
|
|
1484
|
-
(
|
|
1485
|
-
var
|
|
1486
|
-
let
|
|
1487
|
-
|
|
1484
|
+
var E, K;
|
|
1485
|
+
(E = e.onSelectionChange) === null || E === void 0 || E.call(e, d);
|
|
1486
|
+
var R;
|
|
1487
|
+
let Gt = d != null && (R = (K = f.getItem(d)) === null || K === void 0 ? void 0 : K.textValue) !== null && R !== void 0 ? R : "";
|
|
1488
|
+
F(Gt), a();
|
|
1488
1489
|
} else
|
|
1489
1490
|
V(), a();
|
|
1490
1491
|
};
|
|
1491
|
-
const
|
|
1492
|
-
if (
|
|
1493
|
-
var
|
|
1494
|
-
const
|
|
1495
|
-
|
|
1492
|
+
const D = () => {
|
|
1493
|
+
if (r) {
|
|
1494
|
+
var E, K;
|
|
1495
|
+
const R = d != null && (K = (E = f.getItem(d)) === null || E === void 0 ? void 0 : E.textValue) !== null && K !== void 0 ? K : "";
|
|
1496
|
+
I === R ? b() : $();
|
|
1496
1497
|
} else
|
|
1497
|
-
|
|
1498
|
+
b();
|
|
1498
1499
|
};
|
|
1499
|
-
let
|
|
1500
|
-
|
|
1501
|
-
},
|
|
1502
|
-
|
|
1503
|
-
},
|
|
1504
|
-
|
|
1500
|
+
let A = () => {
|
|
1501
|
+
B.isOpen && m.focusedKey != null ? d === m.focusedKey ? b() : L(m.focusedKey) : D();
|
|
1502
|
+
}, _ = T(I), ne = (E) => {
|
|
1503
|
+
E ? (_.current = I, u === "focus" && !e.isReadOnly && j(null, "focus")) : (p && D(), I !== _.current && re.commitValidation()), h(E);
|
|
1504
|
+
}, Z = ae(() => B.isOpen ? c ? W : k : ee, [
|
|
1505
|
+
B.isOpen,
|
|
1505
1506
|
W,
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1507
|
+
k,
|
|
1508
|
+
c,
|
|
1509
|
+
ee
|
|
1509
1510
|
]);
|
|
1510
|
-
var
|
|
1511
|
-
let
|
|
1512
|
-
var
|
|
1511
|
+
var de;
|
|
1512
|
+
let Me = (de = e.defaultSelectedKey) !== null && de !== void 0 ? de : Y;
|
|
1513
|
+
var ye;
|
|
1513
1514
|
return {
|
|
1514
|
-
...
|
|
1515
|
-
...
|
|
1515
|
+
...re,
|
|
1516
|
+
...B,
|
|
1516
1517
|
focusStrategy: C,
|
|
1517
|
-
toggle:
|
|
1518
|
-
open:
|
|
1519
|
-
close:
|
|
1520
|
-
selectionManager:
|
|
1518
|
+
toggle: H,
|
|
1519
|
+
open: j,
|
|
1520
|
+
close: D,
|
|
1521
|
+
selectionManager: m,
|
|
1521
1522
|
selectedKey: d,
|
|
1522
|
-
defaultSelectedKey:
|
|
1523
|
-
setSelectedKey:
|
|
1524
|
-
disabledKeys:
|
|
1523
|
+
defaultSelectedKey: Me,
|
|
1524
|
+
setSelectedKey: L,
|
|
1525
|
+
disabledKeys: N,
|
|
1525
1526
|
isFocused: x,
|
|
1526
|
-
setFocused:
|
|
1527
|
-
selectedItem:
|
|
1528
|
-
collection:
|
|
1529
|
-
inputValue:
|
|
1530
|
-
defaultInputValue: (
|
|
1531
|
-
setInputValue:
|
|
1532
|
-
commit:
|
|
1533
|
-
revert:
|
|
1527
|
+
setFocused: ne,
|
|
1528
|
+
selectedItem: O,
|
|
1529
|
+
collection: Z,
|
|
1530
|
+
inputValue: I,
|
|
1531
|
+
defaultInputValue: (ye = je(e.defaultInputValue, Me, f)) !== null && ye !== void 0 ? ye : q,
|
|
1532
|
+
setInputValue: M,
|
|
1533
|
+
commit: A,
|
|
1534
|
+
revert: be
|
|
1534
1535
|
};
|
|
1535
1536
|
}
|
|
1536
|
-
function
|
|
1537
|
-
return new
|
|
1537
|
+
function Hn(e, o, t) {
|
|
1538
|
+
return new xn(wt(e, e, o, t));
|
|
1538
1539
|
}
|
|
1539
|
-
function
|
|
1540
|
+
function wt(e, o, t, u) {
|
|
1540
1541
|
let n = [];
|
|
1541
|
-
for (let
|
|
1542
|
-
if (
|
|
1543
|
-
let
|
|
1542
|
+
for (let r of o)
|
|
1543
|
+
if (r.type === "section" && r.hasChildNodes) {
|
|
1544
|
+
let p = wt(e, uo(r, e), t, u);
|
|
1544
1545
|
[
|
|
1545
|
-
...
|
|
1546
|
-
].some((
|
|
1547
|
-
...
|
|
1548
|
-
childNodes:
|
|
1546
|
+
...p
|
|
1547
|
+
].some((c) => c.type === "item") && n.push({
|
|
1548
|
+
...r,
|
|
1549
|
+
childNodes: p
|
|
1549
1550
|
});
|
|
1550
|
-
} else
|
|
1551
|
-
...
|
|
1552
|
-
}) :
|
|
1553
|
-
...
|
|
1551
|
+
} else r.type === "item" && u(r.textValue, t) ? n.push({
|
|
1552
|
+
...r
|
|
1553
|
+
}) : r.type !== "item" && n.push({
|
|
1554
|
+
...r
|
|
1554
1555
|
});
|
|
1555
1556
|
return n;
|
|
1556
1557
|
}
|
|
1557
|
-
function
|
|
1558
|
+
function je(e, o, t) {
|
|
1558
1559
|
if (e == null) {
|
|
1559
|
-
var
|
|
1560
|
-
if (o != null) return (n = (
|
|
1560
|
+
var u, n;
|
|
1561
|
+
if (o != null) return (n = (u = t.getItem(o)) === null || u === void 0 ? void 0 : u.textValue) !== null && n !== void 0 ? n : "";
|
|
1561
1562
|
}
|
|
1562
1563
|
return e;
|
|
1563
1564
|
}
|
|
1564
|
-
const
|
|
1565
|
-
[o,
|
|
1566
|
-
let { children:
|
|
1567
|
-
var
|
|
1568
|
-
return /* @__PURE__ */ X.createElement(
|
|
1565
|
+
const Jn = /* @__PURE__ */ fe(null), Re = /* @__PURE__ */ fe(null), Zn = /* @__PURE__ */ qt(function(o, t) {
|
|
1566
|
+
[o, t] = xe(o, t, Jn);
|
|
1567
|
+
let { children: u, isDisabled: n = !1, isInvalid: r = !1, isRequired: p = !1 } = o, c = ae(() => {
|
|
1568
|
+
var i;
|
|
1569
|
+
return /* @__PURE__ */ X.createElement(_e.Provider, {
|
|
1569
1570
|
value: {
|
|
1570
|
-
items: (
|
|
1571
|
+
items: (i = o.items) !== null && i !== void 0 ? i : o.defaultItems
|
|
1571
1572
|
}
|
|
1572
|
-
}, typeof
|
|
1573
|
+
}, typeof u == "function" ? u({
|
|
1573
1574
|
isOpen: !1,
|
|
1574
1575
|
isDisabled: n,
|
|
1575
|
-
isInvalid:
|
|
1576
|
-
isRequired:
|
|
1576
|
+
isInvalid: r,
|
|
1577
|
+
isRequired: p,
|
|
1577
1578
|
defaultChildren: null
|
|
1578
|
-
}) :
|
|
1579
|
+
}) : u);
|
|
1579
1580
|
}, [
|
|
1580
|
-
|
|
1581
|
+
u,
|
|
1581
1582
|
n,
|
|
1582
|
-
|
|
1583
|
-
|
|
1583
|
+
r,
|
|
1584
|
+
p,
|
|
1584
1585
|
o.items,
|
|
1585
1586
|
o.defaultItems
|
|
1586
1587
|
]);
|
|
1587
1588
|
return /* @__PURE__ */ X.createElement(un, {
|
|
1588
|
-
content:
|
|
1589
|
-
}, (
|
|
1589
|
+
content: c
|
|
1590
|
+
}, (i) => /* @__PURE__ */ X.createElement(Yn, {
|
|
1590
1591
|
props: o,
|
|
1591
|
-
collection:
|
|
1592
|
-
comboBoxRef:
|
|
1592
|
+
collection: i,
|
|
1593
|
+
comboBoxRef: t
|
|
1593
1594
|
}));
|
|
1594
|
-
}),
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1595
|
+
}), Xn = [
|
|
1596
|
+
ke,
|
|
1597
|
+
We,
|
|
1598
|
+
he,
|
|
1599
|
+
we,
|
|
1600
|
+
Ke
|
|
1600
1601
|
];
|
|
1601
|
-
function
|
|
1602
|
-
let { name:
|
|
1603
|
-
|
|
1604
|
-
let { validationBehavior:
|
|
1605
|
-
var
|
|
1606
|
-
let x = (
|
|
1602
|
+
function Yn({ props: e, collection: o, comboBoxRef: t }) {
|
|
1603
|
+
let { name: u, formValue: n = "key", allowsCustomValue: r } = e;
|
|
1604
|
+
r && (n = "text");
|
|
1605
|
+
let { validationBehavior: p } = Le(Ye) || {};
|
|
1606
|
+
var c, i;
|
|
1607
|
+
let x = (i = (c = e.validationBehavior) !== null && c !== void 0 ? c : p) !== null && i !== void 0 ? i : "native", { contains: h } = no({
|
|
1607
1608
|
sensitivity: "base"
|
|
1608
|
-
}), C =
|
|
1609
|
-
defaultFilter: e.defaultFilter ||
|
|
1609
|
+
}), C = Wn({
|
|
1610
|
+
defaultFilter: e.defaultFilter || h,
|
|
1610
1611
|
...e,
|
|
1611
1612
|
// If props.items isn't provided, rely on collection filtering (aka listbox.items is provided or defaultItems provided to Combobox)
|
|
1612
1613
|
items: e.items,
|
|
1613
1614
|
children: void 0,
|
|
1614
1615
|
collection: o,
|
|
1615
1616
|
validationBehavior: x
|
|
1616
|
-
}),
|
|
1617
|
-
...
|
|
1617
|
+
}), y = T(null), v = T(null), g = T(null), f = T(null), [m, d] = Je(!e["aria-label"] && !e["aria-labelledby"]), { buttonProps: L, inputProps: O, listBoxProps: N, labelProps: I, descriptionProps: M, errorMessageProps: Y, ...q } = Mn({
|
|
1618
|
+
...Ie(e),
|
|
1618
1619
|
label: d,
|
|
1619
|
-
inputRef:
|
|
1620
|
-
buttonRef:
|
|
1621
|
-
listBoxRef:
|
|
1620
|
+
inputRef: v,
|
|
1621
|
+
buttonRef: y,
|
|
1622
|
+
listBoxRef: g,
|
|
1622
1623
|
popoverRef: f,
|
|
1623
|
-
name: n === "text" ?
|
|
1624
|
+
name: n === "text" ? u : void 0,
|
|
1624
1625
|
validationBehavior: x
|
|
1625
|
-
}, C), [W,
|
|
1626
|
-
if (
|
|
1627
|
-
var
|
|
1628
|
-
let
|
|
1629
|
-
|
|
1626
|
+
}, C), [W, k] = U(null), ee = z(() => {
|
|
1627
|
+
if (v.current) {
|
|
1628
|
+
var j;
|
|
1629
|
+
let H = (j = y.current) === null || j === void 0 ? void 0 : j.getBoundingClientRect(), P = v.current.getBoundingClientRect(), l = H ? Math.min(H.left, P.left) : P.left, a = H ? Math.max(H.right, P.right) : P.right;
|
|
1630
|
+
k(a - l + "px");
|
|
1630
1631
|
}
|
|
1631
1632
|
}, [
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1633
|
+
y,
|
|
1634
|
+
v,
|
|
1635
|
+
k
|
|
1635
1636
|
]);
|
|
1636
|
-
|
|
1637
|
-
ref:
|
|
1638
|
-
onResize:
|
|
1637
|
+
cn({
|
|
1638
|
+
ref: v,
|
|
1639
|
+
onResize: ee
|
|
1639
1640
|
});
|
|
1640
|
-
let
|
|
1641
|
+
let Q = ae(() => ({
|
|
1641
1642
|
isOpen: C.isOpen,
|
|
1642
1643
|
isDisabled: e.isDisabled || !1,
|
|
1643
1644
|
isInvalid: q.isInvalid || !1,
|
|
@@ -1647,441 +1648,472 @@ function Jn({ props: e, collection: o, comboBoxRef: u }) {
|
|
|
1647
1648
|
e.isDisabled,
|
|
1648
1649
|
q.isInvalid,
|
|
1649
1650
|
e.isRequired
|
|
1650
|
-
]),
|
|
1651
|
+
]), G = Ze({
|
|
1651
1652
|
...e,
|
|
1652
|
-
values:
|
|
1653
|
+
values: Q,
|
|
1653
1654
|
defaultClassName: "react-aria-ComboBox"
|
|
1654
|
-
}),
|
|
1655
|
+
}), oe = to(e, {
|
|
1655
1656
|
global: !0
|
|
1656
1657
|
});
|
|
1657
|
-
delete
|
|
1658
|
-
var
|
|
1659
|
-
return /* @__PURE__ */ X.createElement(
|
|
1658
|
+
delete oe.id;
|
|
1659
|
+
var B;
|
|
1660
|
+
return /* @__PURE__ */ X.createElement(Pe, {
|
|
1660
1661
|
values: [
|
|
1661
1662
|
[
|
|
1662
|
-
|
|
1663
|
+
Re,
|
|
1663
1664
|
C
|
|
1664
1665
|
],
|
|
1665
1666
|
[
|
|
1666
|
-
|
|
1667
|
+
ke,
|
|
1667
1668
|
{
|
|
1668
|
-
...
|
|
1669
|
-
ref:
|
|
1669
|
+
...I,
|
|
1670
|
+
ref: m
|
|
1670
1671
|
}
|
|
1671
1672
|
],
|
|
1672
1673
|
[
|
|
1673
|
-
|
|
1674
|
+
We,
|
|
1674
1675
|
{
|
|
1675
|
-
...
|
|
1676
|
-
ref:
|
|
1676
|
+
...L,
|
|
1677
|
+
ref: y,
|
|
1677
1678
|
isPressed: C.isOpen
|
|
1678
1679
|
}
|
|
1679
1680
|
],
|
|
1680
1681
|
[
|
|
1681
|
-
|
|
1682
|
+
he,
|
|
1682
1683
|
{
|
|
1683
|
-
...
|
|
1684
|
-
ref:
|
|
1684
|
+
...O,
|
|
1685
|
+
ref: v
|
|
1685
1686
|
}
|
|
1686
1687
|
],
|
|
1687
1688
|
[
|
|
1688
|
-
|
|
1689
|
+
en,
|
|
1689
1690
|
C
|
|
1690
1691
|
],
|
|
1691
1692
|
[
|
|
1692
|
-
|
|
1693
|
+
on,
|
|
1693
1694
|
{
|
|
1694
1695
|
ref: f,
|
|
1695
|
-
triggerRef:
|
|
1696
|
-
scrollRef:
|
|
1696
|
+
triggerRef: v,
|
|
1697
|
+
scrollRef: g,
|
|
1697
1698
|
placement: "bottom start",
|
|
1698
1699
|
isNonModal: !0,
|
|
1699
1700
|
trigger: "ComboBox",
|
|
1700
1701
|
style: {
|
|
1701
1702
|
"--trigger-width": W
|
|
1702
1703
|
},
|
|
1703
|
-
clearContexts:
|
|
1704
|
+
clearContexts: Xn
|
|
1704
1705
|
}
|
|
1705
1706
|
],
|
|
1706
1707
|
[
|
|
1707
|
-
|
|
1708
|
+
_e,
|
|
1708
1709
|
{
|
|
1709
|
-
...
|
|
1710
|
-
ref:
|
|
1710
|
+
...N,
|
|
1711
|
+
ref: g
|
|
1711
1712
|
}
|
|
1712
1713
|
],
|
|
1713
1714
|
[
|
|
1714
|
-
|
|
1715
|
+
Jt,
|
|
1715
1716
|
C
|
|
1716
1717
|
],
|
|
1717
1718
|
[
|
|
1718
|
-
|
|
1719
|
+
Ke,
|
|
1719
1720
|
{
|
|
1720
1721
|
slots: {
|
|
1721
|
-
description:
|
|
1722
|
+
description: M,
|
|
1722
1723
|
errorMessage: Y
|
|
1723
1724
|
}
|
|
1724
1725
|
}
|
|
1725
1726
|
],
|
|
1726
1727
|
[
|
|
1727
|
-
|
|
1728
|
+
we,
|
|
1728
1729
|
{
|
|
1729
1730
|
isInvalid: q.isInvalid,
|
|
1730
1731
|
isDisabled: e.isDisabled || !1
|
|
1731
1732
|
}
|
|
1732
1733
|
],
|
|
1733
1734
|
[
|
|
1734
|
-
|
|
1735
|
+
Xe,
|
|
1735
1736
|
q
|
|
1736
1737
|
]
|
|
1737
1738
|
]
|
|
1738
1739
|
}, /* @__PURE__ */ X.createElement("div", {
|
|
1739
|
-
...
|
|
1740
|
-
...
|
|
1741
|
-
ref:
|
|
1740
|
+
...oe,
|
|
1741
|
+
...G,
|
|
1742
|
+
ref: t,
|
|
1742
1743
|
slot: e.slot || void 0,
|
|
1743
1744
|
"data-focused": C.isFocused || void 0,
|
|
1744
1745
|
"data-open": C.isOpen || void 0,
|
|
1745
1746
|
"data-disabled": e.isDisabled || void 0,
|
|
1746
1747
|
"data-invalid": q.isInvalid || void 0,
|
|
1747
1748
|
"data-required": e.isRequired || void 0
|
|
1748
|
-
}),
|
|
1749
|
+
}), u && n === "key" && /* @__PURE__ */ X.createElement("input", {
|
|
1749
1750
|
type: "hidden",
|
|
1750
|
-
name:
|
|
1751
|
+
name: u,
|
|
1751
1752
|
form: e.form,
|
|
1752
|
-
value: (
|
|
1753
|
+
value: (B = C.selectedKey) !== null && B !== void 0 ? B : ""
|
|
1753
1754
|
}));
|
|
1754
1755
|
}
|
|
1755
|
-
const
|
|
1756
|
-
[o,
|
|
1757
|
-
let { validationBehavior:
|
|
1758
|
-
var n,
|
|
1759
|
-
let
|
|
1760
|
-
[o,
|
|
1761
|
-
let [
|
|
1762
|
-
...
|
|
1763
|
-
inputElementType:
|
|
1756
|
+
const Qn = /* @__PURE__ */ fe(null), _n = /* @__PURE__ */ kn(function(o, t) {
|
|
1757
|
+
[o, t] = xe(o, t, Qn);
|
|
1758
|
+
let { validationBehavior: u } = Le(Ye) || {};
|
|
1759
|
+
var n, r;
|
|
1760
|
+
let p = (r = (n = o.validationBehavior) !== null && n !== void 0 ? n : u) !== null && r !== void 0 ? r : "native", c = T(null);
|
|
1761
|
+
[o, c] = xe(o, c, fo);
|
|
1762
|
+
let [i, x] = Je(!o["aria-label"] && !o["aria-labelledby"]), [h, C] = U("input"), { labelProps: y, inputProps: v, descriptionProps: g, errorMessageProps: f, ...m } = ao({
|
|
1763
|
+
...Ie(o),
|
|
1764
|
+
inputElementType: h,
|
|
1764
1765
|
label: x,
|
|
1765
|
-
validationBehavior:
|
|
1766
|
-
},
|
|
1767
|
-
|
|
1766
|
+
validationBehavior: p
|
|
1767
|
+
}, c), d = z((N) => {
|
|
1768
|
+
c.current = N, N && C(N instanceof HTMLTextAreaElement ? "textarea" : "input");
|
|
1768
1769
|
}, [
|
|
1769
|
-
|
|
1770
|
-
]),
|
|
1770
|
+
c
|
|
1771
|
+
]), L = Ze({
|
|
1771
1772
|
...o,
|
|
1772
1773
|
values: {
|
|
1773
1774
|
isDisabled: o.isDisabled || !1,
|
|
1774
|
-
isInvalid:
|
|
1775
|
+
isInvalid: m.isInvalid,
|
|
1775
1776
|
isReadOnly: o.isReadOnly || !1,
|
|
1776
1777
|
isRequired: o.isRequired || !1
|
|
1777
1778
|
},
|
|
1778
1779
|
defaultClassName: "react-aria-TextField"
|
|
1779
|
-
}),
|
|
1780
|
+
}), O = to(o, {
|
|
1780
1781
|
global: !0
|
|
1781
1782
|
});
|
|
1782
|
-
return delete
|
|
1783
|
-
...
|
|
1784
|
-
...
|
|
1785
|
-
ref:
|
|
1783
|
+
return delete O.id, /* @__PURE__ */ X.createElement("div", {
|
|
1784
|
+
...O,
|
|
1785
|
+
...L,
|
|
1786
|
+
ref: t,
|
|
1786
1787
|
slot: o.slot || void 0,
|
|
1787
1788
|
"data-disabled": o.isDisabled || void 0,
|
|
1788
|
-
"data-invalid":
|
|
1789
|
+
"data-invalid": m.isInvalid || void 0,
|
|
1789
1790
|
"data-readonly": o.isReadOnly || void 0,
|
|
1790
1791
|
"data-required": o.isRequired || void 0
|
|
1791
|
-
}, /* @__PURE__ */ X.createElement(
|
|
1792
|
+
}, /* @__PURE__ */ X.createElement(Pe, {
|
|
1792
1793
|
values: [
|
|
1793
1794
|
[
|
|
1794
|
-
|
|
1795
|
+
ke,
|
|
1795
1796
|
{
|
|
1796
|
-
...
|
|
1797
|
-
ref:
|
|
1797
|
+
...y,
|
|
1798
|
+
ref: i
|
|
1798
1799
|
}
|
|
1799
1800
|
],
|
|
1800
1801
|
[
|
|
1801
|
-
|
|
1802
|
+
he,
|
|
1802
1803
|
{
|
|
1803
|
-
...
|
|
1804
|
+
...v,
|
|
1804
1805
|
ref: d
|
|
1805
1806
|
}
|
|
1806
1807
|
],
|
|
1807
1808
|
[
|
|
1808
|
-
|
|
1809
|
+
wn,
|
|
1809
1810
|
{
|
|
1810
|
-
...
|
|
1811
|
+
...v,
|
|
1811
1812
|
ref: d
|
|
1812
1813
|
}
|
|
1813
1814
|
],
|
|
1814
1815
|
[
|
|
1815
|
-
|
|
1816
|
+
we,
|
|
1816
1817
|
{
|
|
1817
1818
|
role: "presentation",
|
|
1818
|
-
isInvalid:
|
|
1819
|
+
isInvalid: m.isInvalid,
|
|
1819
1820
|
isDisabled: o.isDisabled || !1
|
|
1820
1821
|
}
|
|
1821
1822
|
],
|
|
1822
1823
|
[
|
|
1823
|
-
|
|
1824
|
+
Ke,
|
|
1824
1825
|
{
|
|
1825
1826
|
slots: {
|
|
1826
|
-
description:
|
|
1827
|
+
description: g,
|
|
1827
1828
|
errorMessage: f
|
|
1828
1829
|
}
|
|
1829
1830
|
}
|
|
1830
1831
|
],
|
|
1831
1832
|
[
|
|
1832
|
-
|
|
1833
|
-
|
|
1833
|
+
Xe,
|
|
1834
|
+
m
|
|
1834
1835
|
]
|
|
1835
1836
|
]
|
|
1836
|
-
},
|
|
1837
|
-
}), { withProvider:
|
|
1837
|
+
}, L.children));
|
|
1838
|
+
}), { withProvider: eu, withContext: le } = /* @__PURE__ */ jt({
|
|
1838
1839
|
key: "combobox"
|
|
1839
|
-
}),
|
|
1840
|
+
}), ou = /* @__PURE__ */ eu("div", "root"), tu = /* @__PURE__ */ le("div", "leadingElement"), kt = /* @__PURE__ */ le("div", "value"), Kt = /* @__PURE__ */ le("div", "buttonGroup"), nu = /* @__PURE__ */ le("div", "popover"), uu = /* @__PURE__ */ le("input", "multiSelectInput"), lu = /* @__PURE__ */ le("div", "options"), iu = /* @__PURE__ */ le("div", "optionGroup"), ru = /* @__PURE__ */ le("div", "option"), cu = /* @__PURE__ */ le("span", "optionIndicator"), au = /* @__PURE__ */ le("span", "optionContent"), su = (e) => {
|
|
1840
1841
|
const {
|
|
1841
1842
|
placeholder: o,
|
|
1842
|
-
inputValue:
|
|
1843
|
-
allowsCustomValue:
|
|
1843
|
+
inputValue: t,
|
|
1844
|
+
allowsCustomValue: u,
|
|
1844
1845
|
onSubmitCustomValue: n,
|
|
1845
|
-
onInputChange:
|
|
1846
|
-
ref:
|
|
1847
|
-
} = e, [
|
|
1846
|
+
onInputChange: r,
|
|
1847
|
+
ref: p
|
|
1848
|
+
} = e, [c, i] = xe({}, p || null, he), x = qe(Re), h = z(
|
|
1848
1849
|
// This method clears the input if the user has focused on a pre-populated combobox and starts typing
|
|
1849
1850
|
(C) => {
|
|
1850
|
-
if (x?.selectedKey &&
|
|
1851
|
-
|
|
1852
|
-
|
|
1851
|
+
if (x?.selectedKey && i.current && // cursor is at the beginning of input...
|
|
1852
|
+
i.current.selectionStart === 0 && i.current.selectionEnd === 0 && // ...and it has a value, which can only happen on focus
|
|
1853
|
+
i.current.value.length > 0 && C.key.length === 1 && // Single character key
|
|
1853
1854
|
!C.ctrlKey && !C.metaKey && !C.altKey) {
|
|
1854
1855
|
C.preventDefault(), C.stopPropagation(), x.setInputValue(C.key);
|
|
1855
1856
|
return;
|
|
1856
1857
|
}
|
|
1857
|
-
if (C.key === "Enter" &&
|
|
1858
|
+
if (C.key === "Enter" && t && t?.trim() !== "" && r && u && n && x)
|
|
1858
1859
|
if (x.collection) {
|
|
1859
|
-
const
|
|
1860
|
-
|
|
1860
|
+
const v = Array.from(x.collection).find((g) => g.textValue.toLowerCase() === t.toLowerCase());
|
|
1861
|
+
v ? x.setSelectedKey(v.key) : n(t);
|
|
1861
1862
|
} else
|
|
1862
|
-
n(
|
|
1863
|
+
n(t);
|
|
1863
1864
|
},
|
|
1864
|
-
[
|
|
1865
|
+
[t, r, u, n, x]
|
|
1865
1866
|
);
|
|
1866
|
-
return /* @__PURE__ */ s(
|
|
1867
|
-
|
|
1867
|
+
return /* @__PURE__ */ s(kt, { asChild: !0, children: /* @__PURE__ */ s(
|
|
1868
|
+
Qe,
|
|
1868
1869
|
{
|
|
1869
|
-
ref:
|
|
1870
|
-
...
|
|
1871
|
-
onKeyDown:
|
|
1870
|
+
ref: i,
|
|
1871
|
+
...c,
|
|
1872
|
+
onKeyDown: h,
|
|
1872
1873
|
placeholder: o
|
|
1873
1874
|
}
|
|
1874
1875
|
) });
|
|
1875
|
-
},
|
|
1876
|
+
}, Ve = ({
|
|
1876
1877
|
children: e,
|
|
1877
1878
|
ref: o,
|
|
1878
|
-
...
|
|
1879
|
+
...t
|
|
1879
1880
|
}) => {
|
|
1880
|
-
const [
|
|
1881
|
-
return /* @__PURE__ */ s(
|
|
1882
|
-
};
|
|
1883
|
-
|
|
1884
|
-
const
|
|
1881
|
+
const [u, n] = Oe(t);
|
|
1882
|
+
return /* @__PURE__ */ s(lu, { ...u, asChild: !0, children: /* @__PURE__ */ s(Zt, { ref: o, ...n, children: e }) });
|
|
1883
|
+
};
|
|
1884
|
+
Ve.displayName = "ComboBox.Options";
|
|
1885
|
+
const pe = /* @__PURE__ */ Dn({
|
|
1886
|
+
comboboxDialog: {
|
|
1887
|
+
id: "Nimbus.ComboBox.comboboxDialog",
|
|
1888
|
+
description: "aria-label for the combobox dialog overlay",
|
|
1889
|
+
defaultMessage: "Combobox dialog"
|
|
1890
|
+
},
|
|
1891
|
+
filterOptions: {
|
|
1892
|
+
id: "Nimbus.ComboBox.filterOptions",
|
|
1893
|
+
description: "aria-label for the combobox filter input field",
|
|
1894
|
+
defaultMessage: "Filter combobox options"
|
|
1895
|
+
},
|
|
1896
|
+
options: {
|
|
1897
|
+
id: "Nimbus.ComboBox.options",
|
|
1898
|
+
description: "aria-label for the combobox options list",
|
|
1899
|
+
defaultMessage: "Combobox options"
|
|
1900
|
+
},
|
|
1901
|
+
selectedValues: {
|
|
1902
|
+
id: "Nimbus.ComboBox.selectedValues",
|
|
1903
|
+
description: "aria-label for the selected values tag group in multi-select",
|
|
1904
|
+
defaultMessage: "Selected values"
|
|
1905
|
+
},
|
|
1906
|
+
clearSelection: {
|
|
1907
|
+
id: "Nimbus.ComboBox.clearSelection",
|
|
1908
|
+
description: "aria-label for the clear selection button",
|
|
1909
|
+
defaultMessage: "Clear selection"
|
|
1910
|
+
},
|
|
1911
|
+
toggleCombobox: {
|
|
1912
|
+
id: "Nimbus.ComboBox.toggleCombobox",
|
|
1913
|
+
description: "aria-label for the combobox toggle button",
|
|
1914
|
+
defaultMessage: "Toggle combobox"
|
|
1915
|
+
}
|
|
1916
|
+
}), du = ({
|
|
1885
1917
|
isDisabled: e,
|
|
1886
1918
|
isReadOnly: o,
|
|
1887
|
-
isLoading:
|
|
1919
|
+
isLoading: t
|
|
1888
1920
|
}) => {
|
|
1889
|
-
const
|
|
1890
|
-
return /* @__PURE__ */
|
|
1891
|
-
|
|
1892
|
-
|
|
1921
|
+
const u = ve(), n = qe(Re);
|
|
1922
|
+
return /* @__PURE__ */ ce(Kt, { children: [
|
|
1923
|
+
n?.selectedKey && /* @__PURE__ */ s(
|
|
1924
|
+
De,
|
|
1893
1925
|
{
|
|
1894
1926
|
pointerEvents: "all",
|
|
1895
1927
|
slot: null,
|
|
1896
1928
|
size: "2xs",
|
|
1897
1929
|
variant: "ghost",
|
|
1898
1930
|
tone: "primary",
|
|
1899
|
-
"aria-label":
|
|
1931
|
+
"aria-label": u.formatMessage(pe.clearSelection),
|
|
1900
1932
|
isDisabled: e || o,
|
|
1901
1933
|
_expanded: { bg: "transparent" },
|
|
1902
|
-
onPress: () =>
|
|
1934
|
+
onPress: () => n?.setSelectedKey(null),
|
|
1903
1935
|
my: "auto",
|
|
1904
|
-
children: /* @__PURE__ */ s(
|
|
1936
|
+
children: /* @__PURE__ */ s(so, {})
|
|
1905
1937
|
}
|
|
1906
1938
|
),
|
|
1907
|
-
|
|
1908
|
-
|
|
1939
|
+
t ? /* @__PURE__ */ s($o, { my: "auto", w: "600", h: "600", children: /* @__PURE__ */ s(Ce, { color: "neutral.11", asChild: !0, m: "auto", w: "400", h: "400", children: /* @__PURE__ */ s(
|
|
1940
|
+
Ce,
|
|
1909
1941
|
{
|
|
1910
1942
|
asChild: !0,
|
|
1911
1943
|
animation: "spin",
|
|
1912
1944
|
animationDuration: "slowest",
|
|
1913
1945
|
"data-testid": "nimbus-combobox-loading",
|
|
1914
|
-
children: /* @__PURE__ */ s(
|
|
1946
|
+
children: /* @__PURE__ */ s(po, {})
|
|
1915
1947
|
}
|
|
1916
1948
|
) }) }) : /* @__PURE__ */ s(
|
|
1917
|
-
|
|
1949
|
+
De,
|
|
1918
1950
|
{
|
|
1919
1951
|
size: "2xs",
|
|
1920
1952
|
variant: "ghost",
|
|
1921
|
-
"aria-label":
|
|
1953
|
+
"aria-label": u.formatMessage(pe.toggleCombobox),
|
|
1922
1954
|
tone: "neutral",
|
|
1923
1955
|
my: "auto",
|
|
1924
1956
|
isDisabled: e || o,
|
|
1925
1957
|
_expanded: { bg: "transparent" },
|
|
1926
|
-
children: /* @__PURE__ */ s(
|
|
1958
|
+
children: /* @__PURE__ */ s(bo, {})
|
|
1927
1959
|
}
|
|
1928
1960
|
)
|
|
1929
1961
|
] });
|
|
1930
|
-
},
|
|
1962
|
+
}, Ot = ({
|
|
1931
1963
|
children: e
|
|
1932
1964
|
}) => {
|
|
1933
|
-
const o =
|
|
1934
|
-
return
|
|
1935
|
-
const
|
|
1936
|
-
if (!
|
|
1937
|
-
const
|
|
1938
|
-
const
|
|
1939
|
-
|
|
1965
|
+
const o = T(null);
|
|
1966
|
+
return ue(() => {
|
|
1967
|
+
const t = o.current;
|
|
1968
|
+
if (!t) return;
|
|
1969
|
+
const u = () => {
|
|
1970
|
+
const r = t.offsetWidth, p = t.closest(".nimbus-combobox__root");
|
|
1971
|
+
p instanceof HTMLElement && p.style.setProperty("--leading-element-width", `${r}px`);
|
|
1940
1972
|
};
|
|
1941
|
-
|
|
1942
|
-
const n = new ResizeObserver(
|
|
1943
|
-
return n.observe(
|
|
1973
|
+
u();
|
|
1974
|
+
const n = new ResizeObserver(u);
|
|
1975
|
+
return n.observe(t), () => {
|
|
1944
1976
|
n.disconnect();
|
|
1945
1977
|
};
|
|
1946
|
-
}, []), /* @__PURE__ */ s(
|
|
1947
|
-
},
|
|
1978
|
+
}, []), /* @__PURE__ */ s(tu, { ref: o, children: e });
|
|
1979
|
+
}, pu = ({
|
|
1948
1980
|
children: e,
|
|
1949
1981
|
inputValue: o,
|
|
1950
|
-
onInputChange:
|
|
1951
|
-
placeholder:
|
|
1982
|
+
onInputChange: t,
|
|
1983
|
+
placeholder: u,
|
|
1952
1984
|
allowsCustomValue: n,
|
|
1953
|
-
onSubmitCustomValue:
|
|
1954
|
-
renderEmptyState:
|
|
1955
|
-
shouldFocusWrap:
|
|
1956
|
-
isLoading:
|
|
1985
|
+
onSubmitCustomValue: r,
|
|
1986
|
+
renderEmptyState: p,
|
|
1987
|
+
shouldFocusWrap: c = !0,
|
|
1988
|
+
isLoading: i,
|
|
1957
1989
|
leadingElement: x,
|
|
1958
|
-
ref:
|
|
1990
|
+
ref: h,
|
|
1959
1991
|
...C
|
|
1960
1992
|
}) => {
|
|
1961
|
-
if (
|
|
1993
|
+
if (r && (o === void 0 || !t))
|
|
1962
1994
|
throw new Error(
|
|
1963
1995
|
'ComboBox: When "onSubmitCustomValue" is provided, "inputValue" must be controlled with "onInputChange"'
|
|
1964
1996
|
);
|
|
1965
|
-
const
|
|
1966
|
-
|
|
1967
|
-
}, [
|
|
1968
|
-
return /* @__PURE__ */
|
|
1969
|
-
|
|
1997
|
+
const y = T(null), v = z(() => {
|
|
1998
|
+
y.current && y.current.value && requestAnimationFrame(() => y.current?.setSelectionRange(0, 0));
|
|
1999
|
+
}, [y]);
|
|
2000
|
+
return /* @__PURE__ */ ce(
|
|
2001
|
+
Zn,
|
|
1970
2002
|
{
|
|
1971
2003
|
inputValue: o,
|
|
1972
|
-
onInputChange:
|
|
1973
|
-
onFocus:
|
|
2004
|
+
onInputChange: t,
|
|
2005
|
+
onFocus: v,
|
|
1974
2006
|
allowsCustomValue: n,
|
|
1975
2007
|
menuTrigger: "focus",
|
|
1976
|
-
shouldFocusWrap:
|
|
2008
|
+
shouldFocusWrap: c,
|
|
1977
2009
|
...C,
|
|
1978
|
-
ref:
|
|
2010
|
+
ref: h,
|
|
1979
2011
|
children: [
|
|
1980
|
-
x && /* @__PURE__ */ s(
|
|
2012
|
+
x && /* @__PURE__ */ s(Ot, { children: x }),
|
|
1981
2013
|
/* @__PURE__ */ s(
|
|
1982
|
-
|
|
2014
|
+
su,
|
|
1983
2015
|
{
|
|
1984
|
-
ref:
|
|
1985
|
-
placeholder:
|
|
2016
|
+
ref: y,
|
|
2017
|
+
placeholder: u,
|
|
1986
2018
|
inputValue: o,
|
|
1987
2019
|
allowsCustomValue: n,
|
|
1988
|
-
onSubmitCustomValue:
|
|
1989
|
-
onInputChange:
|
|
2020
|
+
onSubmitCustomValue: r,
|
|
2021
|
+
onInputChange: t
|
|
1990
2022
|
}
|
|
1991
2023
|
),
|
|
1992
2024
|
/* @__PURE__ */ s(
|
|
1993
|
-
|
|
2025
|
+
du,
|
|
1994
2026
|
{
|
|
1995
|
-
isLoading:
|
|
2027
|
+
isLoading: i,
|
|
1996
2028
|
isDisabled: C.isDisabled,
|
|
1997
2029
|
isReadOnly: C.isReadOnly
|
|
1998
2030
|
}
|
|
1999
2031
|
),
|
|
2000
|
-
/* @__PURE__ */ s(
|
|
2032
|
+
/* @__PURE__ */ s(eo, { children: /* @__PURE__ */ s(Ve, { renderEmptyState: p, children: e }) })
|
|
2001
2033
|
]
|
|
2002
2034
|
}
|
|
2003
2035
|
);
|
|
2004
2036
|
};
|
|
2005
|
-
function
|
|
2037
|
+
function Ue(e) {
|
|
2006
2038
|
return e != null && typeof e == "object" && "children" in e && Array.isArray(e.children);
|
|
2007
2039
|
}
|
|
2008
|
-
function
|
|
2040
|
+
function Be(e, o, t) {
|
|
2009
2041
|
if (e) {
|
|
2010
2042
|
if (!Object.prototype.hasOwnProperty.call(e, "id") && o === "id")
|
|
2011
2043
|
throw new Error(
|
|
2012
2044
|
"ComboBox: if items do not have an `id` key, you must specify which key uniquely identifies items using the `itemId` prop"
|
|
2013
2045
|
);
|
|
2014
|
-
if (!Object.prototype.hasOwnProperty.call(e, "name") &&
|
|
2046
|
+
if (!Object.prototype.hasOwnProperty.call(e, "name") && t === "name")
|
|
2015
2047
|
throw new Error(
|
|
2016
2048
|
"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"
|
|
2017
2049
|
);
|
|
2018
2050
|
}
|
|
2019
2051
|
}
|
|
2020
|
-
const
|
|
2052
|
+
const bu = (
|
|
2021
2053
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2022
2054
|
(({
|
|
2023
2055
|
selectedKeys: e = /* @__PURE__ */ new Set(),
|
|
2024
2056
|
items: o,
|
|
2025
|
-
itemId:
|
|
2026
|
-
itemValue:
|
|
2057
|
+
itemId: t = "id",
|
|
2058
|
+
itemValue: u = "name",
|
|
2027
2059
|
placeholder: n,
|
|
2028
|
-
onSelectionChange:
|
|
2029
|
-
isDisabled:
|
|
2030
|
-
isReadOnly:
|
|
2031
|
-
size:
|
|
2060
|
+
onSelectionChange: r,
|
|
2061
|
+
isDisabled: p,
|
|
2062
|
+
isReadOnly: c,
|
|
2063
|
+
size: i,
|
|
2032
2064
|
containerRef: x,
|
|
2033
|
-
ref:
|
|
2065
|
+
ref: h
|
|
2034
2066
|
}) => {
|
|
2035
|
-
const C = ae(() => {
|
|
2067
|
+
const C = ve(), y = ae(() => {
|
|
2036
2068
|
if (!o) return [];
|
|
2037
|
-
const
|
|
2069
|
+
const g = Array.from(e);
|
|
2038
2070
|
if (Array.isArray(o)) {
|
|
2039
|
-
const
|
|
2040
|
-
if (
|
|
2041
|
-
const
|
|
2042
|
-
return o.forEach((
|
|
2043
|
-
|
|
2044
|
-
}),
|
|
2071
|
+
const m = o[0];
|
|
2072
|
+
if (m && Ue(m)) {
|
|
2073
|
+
const L = [];
|
|
2074
|
+
return o.forEach((O) => {
|
|
2075
|
+
Ue(O) && L.push(...O.children);
|
|
2076
|
+
}), Be(L?.[0], t, u), g.map((O) => L.find((N) => N[t] === O)).filter((O) => O !== void 0);
|
|
2045
2077
|
}
|
|
2046
|
-
const
|
|
2047
|
-
return
|
|
2078
|
+
const d = o;
|
|
2079
|
+
return Be(d?.[0], t, u), g.map((L) => d.find((O) => O[t] === L)).filter((L) => L !== void 0);
|
|
2048
2080
|
}
|
|
2049
|
-
const
|
|
2050
|
-
return
|
|
2051
|
-
}, [o, e,
|
|
2052
|
-
(
|
|
2053
|
-
if (!(
|
|
2054
|
-
const
|
|
2055
|
-
[...
|
|
2081
|
+
const f = g.map((m) => Array.from(o).find((d) => d[t] === m)).filter((m) => m !== void 0);
|
|
2082
|
+
return Be(f?.[0], t, u), f;
|
|
2083
|
+
}, [o, e, t]), v = z(
|
|
2084
|
+
(g) => {
|
|
2085
|
+
if (!(p || c) && e instanceof Set) {
|
|
2086
|
+
const f = e, m = new Set(
|
|
2087
|
+
[...f].filter((d) => !g.has(d))
|
|
2056
2088
|
);
|
|
2057
|
-
|
|
2089
|
+
r?.(m), x?.current && x.current.focus();
|
|
2058
2090
|
}
|
|
2059
2091
|
},
|
|
2060
|
-
[
|
|
2092
|
+
[p, c, e, r]
|
|
2061
2093
|
);
|
|
2062
|
-
return /* @__PURE__ */ s(
|
|
2063
|
-
|
|
2094
|
+
return /* @__PURE__ */ s(oo, { children: /* @__PURE__ */ s(
|
|
2095
|
+
kt,
|
|
2064
2096
|
{
|
|
2065
2097
|
asChild: !0,
|
|
2066
2098
|
alignItems: "space-between",
|
|
2067
2099
|
justifyContent: "center",
|
|
2068
|
-
ref:
|
|
2100
|
+
ref: h,
|
|
2069
2101
|
children: /* @__PURE__ */ s(
|
|
2070
|
-
|
|
2102
|
+
ge.Root,
|
|
2071
2103
|
{
|
|
2072
|
-
size:
|
|
2073
|
-
onRemove:
|
|
2074
|
-
"aria-label":
|
|
2104
|
+
size: i,
|
|
2105
|
+
onRemove: v,
|
|
2106
|
+
"aria-label": C.formatMessage(pe.selectedValues),
|
|
2075
2107
|
selectionMode: "none",
|
|
2076
|
-
disabledKeys:
|
|
2077
|
-
"data-disabled":
|
|
2108
|
+
disabledKeys: p || c ? e : void 0,
|
|
2109
|
+
"data-disabled": p,
|
|
2078
2110
|
children: /* @__PURE__ */ s(
|
|
2079
|
-
|
|
2111
|
+
ge.TagList,
|
|
2080
2112
|
{
|
|
2081
|
-
items:
|
|
2082
|
-
dependencies: [
|
|
2113
|
+
items: y,
|
|
2114
|
+
dependencies: [t],
|
|
2083
2115
|
maxW: "100%",
|
|
2084
|
-
tabIndex:
|
|
2116
|
+
tabIndex: y.length === 0 || p || c ? -1 : void 0,
|
|
2085
2117
|
renderEmptyState: () => n && /* @__PURE__ */ s(
|
|
2086
2118
|
"div",
|
|
2087
2119
|
{
|
|
@@ -2094,7 +2126,7 @@ const st = (
|
|
|
2094
2126
|
children: n
|
|
2095
2127
|
}
|
|
2096
2128
|
),
|
|
2097
|
-
children: (
|
|
2129
|
+
children: (g) => /* @__PURE__ */ s(ge.Tag, { id: g[t], maxW: "100%", children: g[u] })
|
|
2098
2130
|
}
|
|
2099
2131
|
)
|
|
2100
2132
|
}
|
|
@@ -2102,246 +2134,246 @@ const st = (
|
|
|
2102
2134
|
}
|
|
2103
2135
|
) });
|
|
2104
2136
|
})
|
|
2105
|
-
),
|
|
2137
|
+
), $u = ({
|
|
2106
2138
|
selectedKeys: e,
|
|
2107
2139
|
onSelectionChange: o,
|
|
2108
|
-
onInputChange:
|
|
2109
|
-
containerRef:
|
|
2140
|
+
onInputChange: t,
|
|
2141
|
+
containerRef: u,
|
|
2110
2142
|
isDisabled: n,
|
|
2111
|
-
isReadOnly:
|
|
2112
|
-
isLoading:
|
|
2143
|
+
isReadOnly: r,
|
|
2144
|
+
isLoading: p
|
|
2113
2145
|
}) => {
|
|
2114
|
-
const
|
|
2115
|
-
o?.(/* @__PURE__ */ new Set()),
|
|
2146
|
+
const c = ve(), i = z(() => {
|
|
2147
|
+
o?.(/* @__PURE__ */ new Set()), t?.(""), u?.current && u.current.focus();
|
|
2116
2148
|
}, []);
|
|
2117
|
-
return /* @__PURE__ */
|
|
2118
|
-
/* @__PURE__ */ s(
|
|
2119
|
-
|
|
2149
|
+
return /* @__PURE__ */ ce(Kt, { children: [
|
|
2150
|
+
/* @__PURE__ */ s(oo, { children: e instanceof Set && e.size > 0 && /* @__PURE__ */ s(
|
|
2151
|
+
De,
|
|
2120
2152
|
{
|
|
2121
2153
|
pointerEvents: "all",
|
|
2122
2154
|
slot: null,
|
|
2123
2155
|
size: "2xs",
|
|
2124
2156
|
variant: "ghost",
|
|
2125
2157
|
tone: "primary",
|
|
2126
|
-
"aria-label":
|
|
2127
|
-
isDisabled: n ||
|
|
2128
|
-
onPress:
|
|
2158
|
+
"aria-label": c.formatMessage(pe.clearSelection),
|
|
2159
|
+
isDisabled: n || r,
|
|
2160
|
+
onPress: i,
|
|
2129
2161
|
my: "auto",
|
|
2130
|
-
children: /* @__PURE__ */ s(
|
|
2162
|
+
children: /* @__PURE__ */ s(so, {})
|
|
2131
2163
|
}
|
|
2132
2164
|
) }),
|
|
2133
2165
|
/* @__PURE__ */ s(
|
|
2134
|
-
|
|
2166
|
+
$o,
|
|
2135
2167
|
{
|
|
2136
2168
|
my: "auto",
|
|
2137
2169
|
w: "600",
|
|
2138
2170
|
h: "600",
|
|
2139
2171
|
color: "neutral.11",
|
|
2140
|
-
opacity:
|
|
2141
|
-
cursor:
|
|
2142
|
-
children: /* @__PURE__ */ s(
|
|
2143
|
-
|
|
2172
|
+
opacity: r || n ? "0.5" : void 0,
|
|
2173
|
+
cursor: r || n ? "not-allowed" : void 0,
|
|
2174
|
+
children: /* @__PURE__ */ s(Ce, { pointerEvents: "none", asChild: !0, m: "auto", w: "400", h: "400", children: p ? /* @__PURE__ */ s(
|
|
2175
|
+
Ce,
|
|
2144
2176
|
{
|
|
2145
2177
|
asChild: !0,
|
|
2146
2178
|
animation: "spin",
|
|
2147
2179
|
animationDuration: "slowest",
|
|
2148
2180
|
"data-testid": "nimbus-combobox-loading",
|
|
2149
|
-
children: /* @__PURE__ */ s(
|
|
2181
|
+
children: /* @__PURE__ */ s(po, {})
|
|
2150
2182
|
}
|
|
2151
|
-
) : /* @__PURE__ */ s(
|
|
2183
|
+
) : /* @__PURE__ */ s(bo, {}) })
|
|
2152
2184
|
}
|
|
2153
2185
|
)
|
|
2154
2186
|
] });
|
|
2155
2187
|
};
|
|
2156
|
-
function
|
|
2188
|
+
function fu(e) {
|
|
2157
2189
|
let o;
|
|
2158
2190
|
for (o of e) ;
|
|
2159
2191
|
return o;
|
|
2160
2192
|
}
|
|
2161
|
-
const
|
|
2193
|
+
const mu = ({
|
|
2162
2194
|
children: e,
|
|
2163
2195
|
defaultFilter: o,
|
|
2164
|
-
inputValue:
|
|
2165
|
-
defaultInputValue:
|
|
2196
|
+
inputValue: t,
|
|
2197
|
+
defaultInputValue: u,
|
|
2166
2198
|
onInputChange: n,
|
|
2167
|
-
defaultSelectedKeys:
|
|
2168
|
-
selectedKeys:
|
|
2169
|
-
onSelectionChange:
|
|
2170
|
-
onOpenChange:
|
|
2199
|
+
defaultSelectedKeys: r = /* @__PURE__ */ new Set(),
|
|
2200
|
+
selectedKeys: p,
|
|
2201
|
+
onSelectionChange: c,
|
|
2202
|
+
onOpenChange: i,
|
|
2171
2203
|
disabledKeys: x,
|
|
2172
|
-
items:
|
|
2204
|
+
items: h,
|
|
2173
2205
|
defaultItems: C,
|
|
2174
|
-
itemId:
|
|
2175
|
-
itemValue:
|
|
2176
|
-
isLoading:
|
|
2206
|
+
itemId: y = "id",
|
|
2207
|
+
itemValue: v = "name",
|
|
2208
|
+
isLoading: g,
|
|
2177
2209
|
isDisabled: f,
|
|
2178
|
-
isReadOnly:
|
|
2210
|
+
isReadOnly: m,
|
|
2179
2211
|
isRequired: d,
|
|
2180
|
-
isInvalid:
|
|
2181
|
-
className:
|
|
2182
|
-
placeholder:
|
|
2183
|
-
size:
|
|
2184
|
-
allowsCustomValue:
|
|
2212
|
+
isInvalid: L,
|
|
2213
|
+
className: O,
|
|
2214
|
+
placeholder: N,
|
|
2215
|
+
size: I = "md",
|
|
2216
|
+
allowsCustomValue: M,
|
|
2185
2217
|
onSubmitCustomValue: Y,
|
|
2186
2218
|
renderEmptyState: q,
|
|
2187
2219
|
ref: W,
|
|
2188
|
-
leadingElement:
|
|
2189
|
-
...
|
|
2220
|
+
leadingElement: k,
|
|
2221
|
+
...ee
|
|
2190
2222
|
}) => {
|
|
2191
|
-
const [
|
|
2192
|
-
(
|
|
2193
|
-
if (f ||
|
|
2194
|
-
|
|
2223
|
+
const Q = ve(), [G, oe] = U(!1), B = T(!1), [j, H] = U(), P = p ?? j ?? r, l = c ?? H, [a, w] = U(""), F = t ?? a ?? u, V = n ?? w, S = h ?? C, ie = no({ sensitivity: "base" }), te = (...A) => ie.contains.apply(void 0, A), J = z(
|
|
2224
|
+
(A) => {
|
|
2225
|
+
if (f || m) {
|
|
2226
|
+
G && oe(!1);
|
|
2195
2227
|
return;
|
|
2196
2228
|
}
|
|
2197
|
-
|
|
2229
|
+
i && i?.(A), oe(A), A || (B.current = !0, requestAnimationFrame(() => {
|
|
2198
2230
|
setTimeout(() => {
|
|
2199
|
-
|
|
2231
|
+
B.current = !1;
|
|
2200
2232
|
}, 50);
|
|
2201
2233
|
}));
|
|
2202
2234
|
},
|
|
2203
|
-
[f,
|
|
2235
|
+
[f, m, i, G]
|
|
2204
2236
|
);
|
|
2205
|
-
|
|
2206
|
-
(f ||
|
|
2207
|
-
}, [f,
|
|
2208
|
-
const
|
|
2209
|
-
(
|
|
2210
|
-
f ||
|
|
2237
|
+
ue(() => {
|
|
2238
|
+
(f || m) && J(!1);
|
|
2239
|
+
}, [f, m]);
|
|
2240
|
+
const se = z(
|
|
2241
|
+
(A) => {
|
|
2242
|
+
f || m || A.target === A.currentTarget && !G && !B.current && J(!0);
|
|
2211
2243
|
},
|
|
2212
|
-
[
|
|
2213
|
-
),
|
|
2214
|
-
if (
|
|
2215
|
-
const
|
|
2216
|
-
if (
|
|
2217
|
-
const
|
|
2218
|
-
|
|
2244
|
+
[G]
|
|
2245
|
+
), re = z(() => {
|
|
2246
|
+
if (P !== "all" && P instanceof Set) {
|
|
2247
|
+
const A = fu(P);
|
|
2248
|
+
if (A != null) {
|
|
2249
|
+
const _ = new Set(P);
|
|
2250
|
+
_.delete(A), l(_);
|
|
2219
2251
|
}
|
|
2220
2252
|
}
|
|
2221
|
-
}, [
|
|
2222
|
-
(
|
|
2223
|
-
}, []),
|
|
2224
|
-
(
|
|
2225
|
-
if (
|
|
2226
|
-
|
|
2253
|
+
}, [P, l]), be = z((A) => {
|
|
2254
|
+
(A.key === "ArrowDown" || A.key === "ArrowUp" || A.key === "Enter") && A.target === b.current && (A.preventDefault(), J(!0));
|
|
2255
|
+
}, []), $ = z(
|
|
2256
|
+
(A) => {
|
|
2257
|
+
if (A.key === "Backspace" && F === "") {
|
|
2258
|
+
re();
|
|
2227
2259
|
return;
|
|
2228
2260
|
}
|
|
2229
|
-
if (
|
|
2230
|
-
|
|
2261
|
+
if (A.key === "Escape") {
|
|
2262
|
+
J(!1), b.current && b.current.focus();
|
|
2231
2263
|
return;
|
|
2232
2264
|
}
|
|
2233
|
-
if (
|
|
2234
|
-
if (
|
|
2235
|
-
const
|
|
2236
|
-
if (
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2265
|
+
if (A.key === "Enter" && F.trim() !== "" && M && Y)
|
|
2266
|
+
if (A.stopPropagation(), S) {
|
|
2267
|
+
const _ = F.trim(), ne = Array.from(S).find((Z) => (typeof Z == "object" && Z !== null && v in Z ? String(Z[v]) : JSON.stringify(Z)).toLowerCase() === _.toLowerCase());
|
|
2268
|
+
if (ne) {
|
|
2269
|
+
const Z = typeof ne == "object" && ne !== null && y in ne ? ne[y] : ne, de = new Set(P);
|
|
2270
|
+
de.add(Z), l(de), V("");
|
|
2239
2271
|
} else
|
|
2240
|
-
Y(
|
|
2272
|
+
Y(F), V("");
|
|
2241
2273
|
} else
|
|
2242
|
-
Y(
|
|
2274
|
+
Y(F), V("");
|
|
2243
2275
|
},
|
|
2244
2276
|
[
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2277
|
+
F,
|
|
2278
|
+
re,
|
|
2279
|
+
M,
|
|
2248
2280
|
Y,
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2281
|
+
S,
|
|
2282
|
+
v,
|
|
2283
|
+
y,
|
|
2284
|
+
P,
|
|
2285
|
+
l,
|
|
2286
|
+
V
|
|
2255
2287
|
]
|
|
2256
|
-
),
|
|
2257
|
-
return /* @__PURE__ */
|
|
2258
|
-
/* @__PURE__ */ s(
|
|
2288
|
+
), b = T(null), D = Ut(W, b);
|
|
2289
|
+
return /* @__PURE__ */ ce(tn, { isOpen: G, onOpenChange: J, children: [
|
|
2290
|
+
/* @__PURE__ */ s(Rn, { allowTextSelectionOnPress: !0, children: /* @__PURE__ */ ce(
|
|
2259
2291
|
"div",
|
|
2260
2292
|
{
|
|
2261
|
-
className:
|
|
2293
|
+
className: O,
|
|
2262
2294
|
tabIndex: f ? -1 : 0,
|
|
2263
|
-
ref:
|
|
2295
|
+
ref: D,
|
|
2264
2296
|
role: "combobox",
|
|
2265
|
-
onKeyDown:
|
|
2266
|
-
onFocus:
|
|
2267
|
-
"aria-expanded":
|
|
2297
|
+
onKeyDown: be,
|
|
2298
|
+
onFocus: se,
|
|
2299
|
+
"aria-expanded": G,
|
|
2268
2300
|
"aria-haspopup": "dialog",
|
|
2269
2301
|
"aria-disabled": f,
|
|
2270
|
-
"aria-readonly":
|
|
2302
|
+
"aria-readonly": m,
|
|
2271
2303
|
"aria-required": d,
|
|
2272
|
-
"aria-invalid":
|
|
2304
|
+
"aria-invalid": L,
|
|
2273
2305
|
"data-disabled": f,
|
|
2274
|
-
"data-invalid":
|
|
2306
|
+
"data-invalid": L,
|
|
2275
2307
|
"data-required": d,
|
|
2276
|
-
"data-open":
|
|
2277
|
-
...
|
|
2308
|
+
"data-open": G,
|
|
2309
|
+
...ee,
|
|
2278
2310
|
children: [
|
|
2279
|
-
|
|
2311
|
+
k && /* @__PURE__ */ s(Ot, { children: k }),
|
|
2280
2312
|
/* @__PURE__ */ s(
|
|
2281
|
-
|
|
2313
|
+
bu,
|
|
2282
2314
|
{
|
|
2283
|
-
items:
|
|
2284
|
-
selectedKeys:
|
|
2285
|
-
onSelectionChange:
|
|
2286
|
-
itemId:
|
|
2287
|
-
itemValue:
|
|
2288
|
-
placeholder:
|
|
2289
|
-
size:
|
|
2290
|
-
containerRef:
|
|
2315
|
+
items: S,
|
|
2316
|
+
selectedKeys: P,
|
|
2317
|
+
onSelectionChange: l,
|
|
2318
|
+
itemId: y,
|
|
2319
|
+
itemValue: v,
|
|
2320
|
+
placeholder: N,
|
|
2321
|
+
size: I,
|
|
2322
|
+
containerRef: b,
|
|
2291
2323
|
isDisabled: f,
|
|
2292
|
-
isReadOnly:
|
|
2324
|
+
isReadOnly: m
|
|
2293
2325
|
}
|
|
2294
2326
|
),
|
|
2295
2327
|
/* @__PURE__ */ s(
|
|
2296
|
-
|
|
2328
|
+
$u,
|
|
2297
2329
|
{
|
|
2298
|
-
selectedKeys:
|
|
2299
|
-
onSelectionChange:
|
|
2300
|
-
onInputChange:
|
|
2301
|
-
containerRef:
|
|
2330
|
+
selectedKeys: P,
|
|
2331
|
+
onSelectionChange: l,
|
|
2332
|
+
onInputChange: V,
|
|
2333
|
+
containerRef: b,
|
|
2302
2334
|
isDisabled: f,
|
|
2303
|
-
isReadOnly:
|
|
2304
|
-
isLoading:
|
|
2335
|
+
isReadOnly: m,
|
|
2336
|
+
isLoading: g
|
|
2305
2337
|
}
|
|
2306
2338
|
)
|
|
2307
2339
|
]
|
|
2308
2340
|
}
|
|
2309
2341
|
) }),
|
|
2310
|
-
/* @__PURE__ */ s(
|
|
2311
|
-
|
|
2342
|
+
/* @__PURE__ */ s(nu, { asChild: !0, children: /* @__PURE__ */ s(eo, { triggerRef: b, placement: "bottom start", children: /* @__PURE__ */ s(nn, { "aria-label": Q.formatMessage(pe.comboboxDialog), children: /* @__PURE__ */ ce(
|
|
2343
|
+
qn,
|
|
2312
2344
|
{
|
|
2313
|
-
filter: o ??
|
|
2314
|
-
inputValue:
|
|
2315
|
-
onInputChange:
|
|
2345
|
+
filter: o ?? te,
|
|
2346
|
+
inputValue: F,
|
|
2347
|
+
onInputChange: V,
|
|
2316
2348
|
children: [
|
|
2317
|
-
/* @__PURE__ */ s(
|
|
2318
|
-
|
|
2349
|
+
/* @__PURE__ */ s(uu, { asChild: !0, children: /* @__PURE__ */ s(
|
|
2350
|
+
_n,
|
|
2319
2351
|
{
|
|
2320
2352
|
autoFocus: !0,
|
|
2321
2353
|
isDisabled: f,
|
|
2322
|
-
isReadOnly:
|
|
2354
|
+
isReadOnly: m,
|
|
2323
2355
|
isRequired: d,
|
|
2324
|
-
"aria-label":
|
|
2356
|
+
"aria-label": Q.formatMessage(pe.filterOptions),
|
|
2325
2357
|
children: /* @__PURE__ */ s(
|
|
2326
|
-
|
|
2358
|
+
Qe,
|
|
2327
2359
|
{
|
|
2328
|
-
onKeyDownCapture:
|
|
2329
|
-
placeholder:
|
|
2360
|
+
onKeyDownCapture: $,
|
|
2361
|
+
placeholder: N
|
|
2330
2362
|
}
|
|
2331
2363
|
)
|
|
2332
2364
|
}
|
|
2333
2365
|
) }),
|
|
2334
2366
|
/* @__PURE__ */ s(
|
|
2335
|
-
|
|
2367
|
+
Ve,
|
|
2336
2368
|
{
|
|
2337
|
-
items:
|
|
2369
|
+
items: S,
|
|
2338
2370
|
selectionMode: "multiple",
|
|
2339
|
-
onSelectionChange:
|
|
2340
|
-
selectedKeys:
|
|
2371
|
+
onSelectionChange: l,
|
|
2372
|
+
selectedKeys: P,
|
|
2341
2373
|
shouldFocusWrap: !0,
|
|
2342
2374
|
disabledKeys: f ? "all" : x,
|
|
2343
2375
|
escapeKeyBehavior: "none",
|
|
2344
|
-
"aria-label":
|
|
2376
|
+
"aria-label": Q.formatMessage(pe.options),
|
|
2345
2377
|
renderEmptyState: q,
|
|
2346
2378
|
children: e
|
|
2347
2379
|
}
|
|
@@ -2350,76 +2382,76 @@ const $t = ({
|
|
|
2350
2382
|
}
|
|
2351
2383
|
) }) }) })
|
|
2352
2384
|
] });
|
|
2353
|
-
},
|
|
2385
|
+
}, Rt = ({
|
|
2354
2386
|
children: e,
|
|
2355
2387
|
ref: o,
|
|
2356
|
-
...
|
|
2388
|
+
...t
|
|
2357
2389
|
}) => {
|
|
2358
|
-
const
|
|
2390
|
+
const u = Nt({ recipe: zt }), [n, r] = u.splitVariantProps(t), [p, c] = Oe(r), i = "selectionMode" in t && t.selectionMode === "multiple" ? mu : pu;
|
|
2359
2391
|
return /* @__PURE__ */ s(
|
|
2360
|
-
|
|
2392
|
+
ou,
|
|
2361
2393
|
{
|
|
2362
2394
|
asChild: !0,
|
|
2363
|
-
selectionMode:
|
|
2395
|
+
selectionMode: t.selectionMode,
|
|
2364
2396
|
...n,
|
|
2365
|
-
...
|
|
2366
|
-
children: /* @__PURE__ */ s(
|
|
2397
|
+
...p,
|
|
2398
|
+
children: /* @__PURE__ */ s(i, { ref: o, size: t.size, ...c, children: e })
|
|
2367
2399
|
}
|
|
2368
2400
|
);
|
|
2369
2401
|
};
|
|
2370
|
-
|
|
2371
|
-
const
|
|
2402
|
+
Rt.displayName = "ComboBox.Root";
|
|
2403
|
+
const Vt = ({
|
|
2372
2404
|
children: e,
|
|
2373
2405
|
label: o,
|
|
2374
|
-
items:
|
|
2375
|
-
ref:
|
|
2406
|
+
items: t,
|
|
2407
|
+
ref: u,
|
|
2376
2408
|
...n
|
|
2377
2409
|
}) => {
|
|
2378
|
-
if (
|
|
2410
|
+
if (t && typeof e != "function")
|
|
2379
2411
|
throw new Error(
|
|
2380
2412
|
'ComboBoxOptionGroup: When "items" is provided, "children" must be a function'
|
|
2381
2413
|
);
|
|
2382
|
-
return /* @__PURE__ */
|
|
2383
|
-
/* @__PURE__ */ s(
|
|
2384
|
-
|
|
2414
|
+
return /* @__PURE__ */ ce(Xt, { ref: u, ...n, children: [
|
|
2415
|
+
/* @__PURE__ */ s(iu, { asChild: !0, children: /* @__PURE__ */ s(Fn, { children: o }) }),
|
|
2416
|
+
t ? /* @__PURE__ */ s(ln, { items: t, children: (r) => typeof e == "function" ? e(r) : null }) : e
|
|
2385
2417
|
] });
|
|
2386
2418
|
};
|
|
2387
|
-
|
|
2388
|
-
const
|
|
2419
|
+
Vt.displayName = "ComboBox.OptionGroup";
|
|
2420
|
+
const Mt = ({
|
|
2389
2421
|
children: e,
|
|
2390
2422
|
ref: o,
|
|
2391
|
-
...
|
|
2423
|
+
...t
|
|
2392
2424
|
}) => {
|
|
2393
|
-
const [
|
|
2394
|
-
return /* @__PURE__ */ s(
|
|
2395
|
-
|
|
2425
|
+
const [u, n] = Oe(t), r = typeof e == "string" ? e : void 0;
|
|
2426
|
+
return /* @__PURE__ */ s(ru, { ...u, asChild: !0, children: /* @__PURE__ */ s(
|
|
2427
|
+
Yt,
|
|
2396
2428
|
{
|
|
2397
2429
|
ref: o,
|
|
2398
|
-
textValue:
|
|
2399
|
-
"aria-label":
|
|
2430
|
+
textValue: t.textValue ?? r,
|
|
2431
|
+
"aria-label": t.textValue ?? r,
|
|
2400
2432
|
...n,
|
|
2401
|
-
children: (
|
|
2402
|
-
const
|
|
2403
|
-
...
|
|
2433
|
+
children: (p) => {
|
|
2434
|
+
const c = typeof e == "function" ? e({
|
|
2435
|
+
...p
|
|
2404
2436
|
}) : e;
|
|
2405
|
-
return
|
|
2406
|
-
/* @__PURE__ */ s(
|
|
2407
|
-
/* @__PURE__ */ s(
|
|
2408
|
-
] }) : /* @__PURE__ */ s(
|
|
2437
|
+
return p.selectionMode === "multiple" ? /* @__PURE__ */ ce(Ge, { children: [
|
|
2438
|
+
/* @__PURE__ */ s(cu, { children: /* @__PURE__ */ s("span", { "data-selected": p.isSelected, children: p.isSelected && /* @__PURE__ */ s(Ln, {}) }) }),
|
|
2439
|
+
/* @__PURE__ */ s(au, { children: c })
|
|
2440
|
+
] }) : /* @__PURE__ */ s(Ge, { children: c });
|
|
2409
2441
|
}
|
|
2410
2442
|
}
|
|
2411
2443
|
) });
|
|
2412
2444
|
};
|
|
2413
|
-
|
|
2414
|
-
const
|
|
2415
|
-
Root:
|
|
2416
|
-
OptionGroup:
|
|
2417
|
-
Option:
|
|
2445
|
+
Mt.displayName = "ComboBox.Option";
|
|
2446
|
+
const bl = {
|
|
2447
|
+
Root: Rt,
|
|
2448
|
+
OptionGroup: Vt,
|
|
2449
|
+
Option: Mt
|
|
2418
2450
|
};
|
|
2419
2451
|
export {
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2452
|
+
bl as C,
|
|
2453
|
+
Rt as a,
|
|
2454
|
+
Vt as b,
|
|
2455
|
+
Mt as c
|
|
2424
2456
|
};
|
|
2425
|
-
//# sourceMappingURL=combobox-
|
|
2457
|
+
//# sourceMappingURL=combobox-C1DerhP1.es.js.map
|