@commercetools/nimbus 0.0.0-canary-20251013071647 → 0.0.0-canary-20251013204307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/accordion.d.ts +16 -49
- package/dist/alert.d.ts +22 -60
- package/dist/avatar.d.ts +19 -33
- package/dist/badge.d.ts +9 -61
- package/dist/box.d.ts +2 -2
- package/dist/button.d.ts +12 -9
- package/dist/calendar.d.ts +21 -9
- package/dist/card.d.ts +21 -83
- package/dist/checkbox.d.ts +14 -43
- package/dist/chunks/{Button-DbDspzBf.es.js → Button-Dx3xzN8n.es.js} +2 -2
- package/dist/chunks/{Button-DbDspzBf.es.js.map → Button-Dx3xzN8n.es.js.map} +1 -1
- package/dist/chunks/{DateField-BnqI8eDK.es.js → DateField-DZwn3cIj.es.js} +7 -7
- package/dist/chunks/{DateField-BnqI8eDK.es.js.map → DateField-DZwn3cIj.es.js.map} +1 -1
- package/dist/chunks/{DatePicker-Df88_VwG.es.js → DatePicker-B2Nf_0Sq.es.js} +7 -7
- package/dist/chunks/{DatePicker-Df88_VwG.es.js.map → DatePicker-B2Nf_0Sq.es.js.map} +1 -1
- package/dist/chunks/{Dialog-FtshtbuD.es.js → Dialog-Qpq4hk89.es.js} +16 -16
- package/dist/chunks/{Dialog-FtshtbuD.es.js.map → Dialog-Qpq4hk89.es.js.map} +1 -1
- package/dist/chunks/{DragAndDrop-cFujcZeA.es.js → DragAndDrop-BXEtfOEa.es.js} +2 -2
- package/dist/chunks/{DragAndDrop-cFujcZeA.es.js.map → DragAndDrop-BXEtfOEa.es.js.map} +1 -1
- package/dist/chunks/{Header-_Z7cZ9Ql.es.js → Header-DFcQWjkP.es.js} +3 -3
- package/dist/chunks/{Header-_Z7cZ9Ql.es.js.map → Header-DFcQWjkP.es.js.map} +1 -1
- package/dist/chunks/{Heading-D_yp5JbO.es.js → Heading-DFiVmZUR.es.js} +60 -60
- package/dist/chunks/{Heading-D_yp5JbO.es.js.map → Heading-DFiVmZUR.es.js.map} +1 -1
- package/dist/chunks/{ListBox-CA_ARARw.es.js → ListBox-_1Uk-5-7.es.js} +7 -7
- package/dist/chunks/{ListBox-CA_ARARw.es.js.map → ListBox-_1Uk-5-7.es.js.map} +1 -1
- package/dist/chunks/{ListKeyboardDelegate-XLAitX9C.es.js → ListKeyboardDelegate-ByRdSpOe.es.js} +3 -3
- package/dist/chunks/{ListKeyboardDelegate-XLAitX9C.es.js.map → ListKeyboardDelegate-ByRdSpOe.es.js.map} +1 -1
- package/dist/chunks/{Modal-CVRxKbK2.es.js → Modal-DZrVgGsJ.es.js} +4 -4
- package/dist/chunks/{Modal-CVRxKbK2.es.js.map → Modal-DZrVgGsJ.es.js.map} +1 -1
- package/dist/chunks/{SelectionManager-C9i8k50b.es.js → SelectionManager-DMLLo5N3.es.js} +4 -4
- package/dist/chunks/{SelectionManager-C9i8k50b.es.js.map → SelectionManager-DMLLo5N3.es.js.map} +1 -1
- package/dist/chunks/{ToggleButton-C5u-GV4F.es.js → ToggleButton-881iW8P_.es.js} +2 -2
- package/dist/chunks/{ToggleButton-C5u-GV4F.es.js.map → ToggleButton-881iW8P_.es.js.map} +1 -1
- package/dist/chunks/accordion-B2FLWAh5.cjs.js +2 -0
- package/dist/chunks/accordion-B2FLWAh5.cjs.js.map +1 -0
- package/dist/chunks/{accordion-C4MjwWsC.es.js → accordion-CKDnNkVv.es.js} +16 -15
- package/dist/chunks/accordion-CKDnNkVv.es.js.map +1 -0
- package/dist/chunks/alert-D-1RFln1.cjs.js +2 -0
- package/dist/chunks/alert-D-1RFln1.cjs.js.map +1 -0
- package/dist/chunks/alert-u6zzGKKj.es.js +138 -0
- package/dist/chunks/alert-u6zzGKKj.es.js.map +1 -0
- package/dist/chunks/{avatar-Bu12OMzz.es.js → avatar-BfEMp9g8.es.js} +2 -2
- package/dist/chunks/avatar-BfEMp9g8.es.js.map +1 -0
- package/dist/chunks/avatar-_o-uSXYy.cjs.js +2 -0
- package/dist/chunks/avatar-_o-uSXYy.cjs.js.map +1 -0
- package/dist/chunks/badge-JEfh4EDj.es.js +15 -0
- package/dist/chunks/badge-JEfh4EDj.es.js.map +1 -0
- package/dist/chunks/badge-mMpNb3Qj.cjs.js +2 -0
- package/dist/chunks/badge-mMpNb3Qj.cjs.js.map +1 -0
- package/dist/chunks/badge.recipe-Cu6u9yqC.cjs.js +2 -0
- package/dist/chunks/badge.recipe-Cu6u9yqC.cjs.js.map +1 -0
- package/dist/chunks/{badge-qLydLdTu.es.js → badge.recipe-DsV4A_UD.es.js} +5 -14
- package/dist/chunks/badge.recipe-DsV4A_UD.es.js.map +1 -0
- package/dist/chunks/box-CWni3A32.cjs.js.map +1 -1
- package/dist/chunks/box-DuBoAZvq.es.js.map +1 -1
- package/dist/chunks/button-B5OOW-2z.cjs.js +2 -0
- package/dist/chunks/button-B5OOW-2z.cjs.js.map +1 -0
- package/dist/chunks/button-IZUJaJku.es.js +62 -0
- package/dist/chunks/button-IZUJaJku.es.js.map +1 -0
- package/dist/chunks/calendar-V0KeNCQ3.cjs.js +2 -0
- package/dist/chunks/calendar-V0KeNCQ3.cjs.js.map +1 -0
- package/dist/chunks/{calendar-C33Q6JGN.es.js → calendar-lD6G93R9.es.js} +19 -18
- package/dist/chunks/calendar-lD6G93R9.es.js.map +1 -0
- package/dist/chunks/card-BB_1xrND.es.js +78 -0
- package/dist/chunks/card-BB_1xrND.es.js.map +1 -0
- package/dist/chunks/card-BPEsGx1J.cjs.js +2 -0
- package/dist/chunks/card-BPEsGx1J.cjs.js.map +1 -0
- package/dist/chunks/{checkbox-BKBd4kHr.es.js → checkbox-DII0AOBy.es.js} +46 -45
- package/dist/chunks/{checkbox-BKBd4kHr.es.js.map → checkbox-DII0AOBy.es.js.map} +1 -1
- package/dist/chunks/checkbox-Dod-yTj4.cjs.js +2 -0
- package/dist/chunks/{checkbox-Bh5DxcKC.cjs.js.map → checkbox-Dod-yTj4.cjs.js.map} +1 -1
- package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js +2 -0
- package/dist/chunks/collapsible-motion-C7M_CLNI.cjs.js.map +1 -0
- package/dist/chunks/{collapsible-motion-BSsz8na-.es.js → collapsible-motion-CSrKjF8X.es.js} +15 -15
- package/dist/chunks/collapsible-motion-CSrKjF8X.es.js.map +1 -0
- package/dist/chunks/{combobox-BghQKCQt.cjs.js → combobox-B5UxZWSX.cjs.js} +2 -2
- package/dist/chunks/{combobox-BghQKCQt.cjs.js.map → combobox-B5UxZWSX.cjs.js.map} +1 -1
- package/dist/chunks/{combobox-D4M76aw1.es.js → combobox-CxEeal66.es.js} +323 -323
- package/dist/chunks/{combobox-D4M76aw1.es.js.map → combobox-CxEeal66.es.js.map} +1 -1
- package/dist/chunks/{data-table-0hNRYKT3.es.js → data-table-BGCmY93Q.es.js} +704 -720
- package/dist/chunks/data-table-BGCmY93Q.es.js.map +1 -0
- package/dist/chunks/data-table-C51WU0Cc.cjs.js +2 -0
- package/dist/chunks/data-table-C51WU0Cc.cjs.js.map +1 -0
- package/dist/chunks/date-input-Cap8-3zj.es.js +21 -0
- package/dist/chunks/date-input-Cap8-3zj.es.js.map +1 -0
- package/dist/chunks/date-input-DvOM0DLT.cjs.js +2 -0
- package/dist/chunks/date-input-DvOM0DLT.cjs.js.map +1 -0
- package/dist/chunks/date-picker-CZAoPNsT.cjs.js +2 -0
- package/dist/chunks/date-picker-CZAoPNsT.cjs.js.map +1 -0
- package/dist/chunks/{date-picker-CT6jwApn.es.js → date-picker-ChZ8H-MT.es.js} +25 -24
- package/dist/chunks/date-picker-ChZ8H-MT.es.js.map +1 -0
- package/dist/chunks/{date-range-picker-BICRnCsn.es.js → date-range-picker-DGWMdcAN.es.js} +62 -61
- package/dist/chunks/date-range-picker-DGWMdcAN.es.js.map +1 -0
- package/dist/chunks/date-range-picker-iENzosfN.cjs.js +2 -0
- package/dist/chunks/date-range-picker-iENzosfN.cjs.js.map +1 -0
- package/dist/chunks/{dialog-4Rx0vFFN.es.js → dialog-BwtIcIvd.es.js} +2 -2
- package/dist/chunks/{dialog-4Rx0vFFN.es.js.map → dialog-BwtIcIvd.es.js.map} +1 -1
- package/dist/chunks/{dialog-CDyF_zvK.cjs.js → dialog-CKwC3dk3.cjs.js} +2 -2
- package/dist/chunks/{dialog-CDyF_zvK.cjs.js.map → dialog-CKwC3dk3.cjs.js.map} +1 -1
- package/dist/chunks/dialog.title-CP_ZeiK4.es.js +152 -0
- package/dist/chunks/dialog.title-CP_ZeiK4.es.js.map +1 -0
- package/dist/chunks/dialog.title-DOPP47Zy.cjs.js +2 -0
- package/dist/chunks/{dialog.title-5mHI--iF.es.js.map → dialog.title-DOPP47Zy.cjs.js.map} +1 -1
- package/dist/chunks/draggable-list-Dv372xXb.es.js +4211 -0
- package/dist/chunks/draggable-list-Dv372xXb.es.js.map +1 -0
- package/dist/chunks/draggable-list-MGvr5-A-.cjs.js +3 -0
- package/dist/chunks/draggable-list-MGvr5-A-.cjs.js.map +1 -0
- package/dist/chunks/{drawer-wpiy6Y4h.es.js → drawer-BJ4qvGnj.es.js} +7 -7
- package/dist/chunks/{drawer-wpiy6Y4h.es.js.map → drawer-BJ4qvGnj.es.js.map} +1 -1
- package/dist/chunks/{drawer-DzYXHVbg.cjs.js → drawer-DzW9wBMk.cjs.js} +2 -2
- package/dist/chunks/{drawer-DzYXHVbg.cjs.js.map → drawer-DzW9wBMk.cjs.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-CNXOLneR.es.js → extractStyleProps-DYXEhLtq.es.js} +2 -2
- package/dist/chunks/{extractStyleProps-CNXOLneR.es.js.map → extractStyleProps-DYXEhLtq.es.js.map} +1 -1
- package/dist/chunks/{extractStyleProps-G58aSXl8.cjs.js → extractStyleProps-Dk3fpLyQ.cjs.js} +2 -2
- package/dist/chunks/{extractStyleProps-G58aSXl8.cjs.js.map → extractStyleProps-Dk3fpLyQ.cjs.js.map} +1 -1
- package/dist/chunks/{field-errors-n9EuKYPI.es.js → field-errors-CHxHaB5C.es.js} +27 -40
- package/dist/chunks/field-errors-CHxHaB5C.es.js.map +1 -0
- package/dist/chunks/field-errors-D2re_C_c.cjs.js +2 -0
- package/dist/chunks/field-errors-D2re_C_c.cjs.js.map +1 -0
- package/dist/chunks/form-field-BYlpCXdY.es.js +231 -0
- package/dist/chunks/form-field-BYlpCXdY.es.js.map +1 -0
- package/dist/chunks/form-field-CIGQxVVS.cjs.js +2 -0
- package/dist/chunks/form-field-CIGQxVVS.cjs.js.map +1 -0
- package/dist/chunks/{getScrollParent-3egW3tgP.es.js → getScrollParent-BS4bncfK.es.js} +2 -2
- package/dist/chunks/{getScrollParent-3egW3tgP.es.js.map → getScrollParent-BS4bncfK.es.js.map} +1 -1
- package/dist/chunks/grid-Chuw1xje.cjs.js.map +1 -1
- package/dist/chunks/grid-De8qjf98.es.js.map +1 -1
- package/dist/chunks/group-BqUFlw5R.cjs.js +2 -0
- package/dist/chunks/group-BqUFlw5R.cjs.js.map +1 -0
- package/dist/chunks/group-CWADf2vF.es.js +13 -0
- package/dist/chunks/group-CWADf2vF.es.js.map +1 -0
- package/dist/chunks/heading-BTacGwo9.cjs.js.map +1 -1
- package/dist/chunks/heading-BtazVUd5.es.js.map +1 -1
- package/dist/chunks/icon-D39U--jA.cjs.js +2 -0
- package/dist/chunks/icon-D39U--jA.cjs.js.map +1 -0
- package/dist/chunks/icon-V6yr3oou.es.js +13 -0
- package/dist/chunks/icon-V6yr3oou.es.js.map +1 -0
- package/dist/chunks/{icon-button-D4w1XTVg.es.js → icon-button-DQS2apw-.es.js} +2 -2
- package/dist/chunks/{icon-button-D4w1XTVg.es.js.map → icon-button-DQS2apw-.es.js.map} +1 -1
- package/dist/chunks/{icon-button-CkjZc6Br.cjs.js → icon-button-vWPrT-bR.cjs.js} +2 -2
- package/dist/chunks/{icon-button-CkjZc6Br.cjs.js.map → icon-button-vWPrT-bR.cjs.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-CqILSznm.es.js → icon-toggle-button-Bi-9Obfx.es.js} +2 -2
- package/dist/chunks/{icon-toggle-button-CqILSznm.es.js.map → icon-toggle-button-Bi-9Obfx.es.js.map} +1 -1
- package/dist/chunks/{icon-toggle-button-Bsj4XLsI.cjs.js → icon-toggle-button-eLrsWehe.cjs.js} +2 -2
- package/dist/chunks/{icon-toggle-button-Bsj4XLsI.cjs.js.map → icon-toggle-button-eLrsWehe.cjs.js.map} +1 -1
- package/dist/chunks/image-CGOYoc2s.cjs.js.map +1 -1
- package/dist/chunks/image-DRigLU80.es.js.map +1 -1
- package/dist/chunks/index-CRFg4Mhx.cjs.js +34 -0
- package/dist/chunks/index-CRFg4Mhx.cjs.js.map +1 -0
- package/dist/chunks/{index-DthLdwMN.es.js → index-CtB71yr7.es.js} +3913 -2860
- package/dist/chunks/index-CtB71yr7.es.js.map +1 -0
- package/dist/chunks/{inline-svg-DTleUhZq.es.js → inline-svg-CbSC6O5X.es.js} +2 -2
- package/dist/chunks/inline-svg-CbSC6O5X.es.js.map +1 -0
- package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js +2 -0
- package/dist/chunks/inline-svg-Yb2OyzRw.cjs.js.map +1 -0
- package/dist/chunks/kbd-BaeV_DL-.cjs.js +2 -0
- package/dist/chunks/kbd-BaeV_DL-.cjs.js.map +1 -0
- package/dist/chunks/kbd-CH9rYghB.es.js +15 -0
- package/dist/chunks/kbd-CH9rYghB.es.js.map +1 -0
- package/dist/chunks/link-BEhlSTUU.es.js +48 -0
- package/dist/chunks/link-BEhlSTUU.es.js.map +1 -0
- package/dist/chunks/link-DpU4rPCp.cjs.js +2 -0
- package/dist/chunks/link-DpU4rPCp.cjs.js.map +1 -0
- package/dist/chunks/loading-spinner-BiVTAfmp.es.js +59 -0
- package/dist/chunks/loading-spinner-BiVTAfmp.es.js.map +1 -0
- package/dist/chunks/loading-spinner-DQM-6XnY.cjs.js +2 -0
- package/dist/chunks/loading-spinner-DQM-6XnY.cjs.js.map +1 -0
- package/dist/chunks/localized-field-C7Vribb2.cjs.js +2 -0
- package/dist/chunks/localized-field-C7Vribb2.cjs.js.map +1 -0
- package/dist/chunks/{localized-field-COJ9aoma.es.js → localized-field-D4R1lSbz.es.js} +68 -69
- package/dist/chunks/{localized-field-DCgNEoJc.cjs.js.map → localized-field-D4R1lSbz.es.js.map} +1 -1
- package/dist/chunks/make-element-focusable-C4jhHHl0.es.js.map +1 -1
- package/dist/chunks/make-element-focusable-oedzOY_M.cjs.js.map +1 -1
- package/dist/chunks/menu-BkPvV5Ey.es.js +150 -0
- package/dist/chunks/menu-BkPvV5Ey.es.js.map +1 -0
- package/dist/chunks/menu-DIepV2KZ.cjs.js +2 -0
- package/dist/chunks/menu-DIepV2KZ.cjs.js.map +1 -0
- package/dist/chunks/money-input-Cu_J86Eu.cjs.js +2 -0
- package/dist/chunks/money-input-Cu_J86Eu.cjs.js.map +1 -0
- package/dist/chunks/{money-input-DvR9Nnz5.es.js → money-input-jPYw0Jyg.es.js} +123 -247
- package/dist/chunks/money-input-jPYw0Jyg.es.js.map +1 -0
- package/dist/chunks/multiline-text-input-B9TBDieZ.cjs.js +2 -0
- package/dist/chunks/multiline-text-input-B9TBDieZ.cjs.js.map +1 -0
- package/dist/chunks/multiline-text-input-CilSJJaO.es.js +64 -0
- package/dist/chunks/multiline-text-input-CilSJJaO.es.js.map +1 -0
- package/dist/chunks/{nimbus-provider-YB6qmSSk.es.js → nimbus-provider-BHNFDQ0f.es.js} +6 -6
- package/dist/chunks/{nimbus-provider-YB6qmSSk.es.js.map → nimbus-provider-BHNFDQ0f.es.js.map} +1 -1
- package/dist/chunks/{nimbus-provider-ChOIcVt6.cjs.js → nimbus-provider-WX_qUCxo.cjs.js} +2 -2
- package/dist/chunks/{nimbus-provider-ChOIcVt6.cjs.js.map → nimbus-provider-WX_qUCxo.cjs.js.map} +1 -1
- package/dist/chunks/{number-input-Cq95vVse.es.js → number-input-CktMxOdZ.es.js} +139 -139
- package/dist/chunks/{number-input-Cq95vVse.es.js.map → number-input-CktMxOdZ.es.js.map} +1 -1
- package/dist/chunks/{number-input-DA_yy5BZ.cjs.js → number-input-wMW-o4di.cjs.js} +2 -2
- package/dist/chunks/{number-input-DA_yy5BZ.cjs.js.map → number-input-wMW-o4di.cjs.js.map} +1 -1
- package/dist/chunks/{openLink-BMfblNBC.es.js → openLink-CY66vjvW.es.js} +7 -7
- package/dist/chunks/{openLink-BMfblNBC.es.js.map → openLink-CY66vjvW.es.js.map} +1 -1
- package/dist/chunks/{pagination-EVJ_rBrc.cjs.js → pagination-BWdg8s6g.cjs.js} +2 -2
- package/dist/chunks/pagination-BWdg8s6g.cjs.js.map +1 -0
- package/dist/chunks/{pagination-2Zl9bHfw.es.js → pagination-Bcq69Nv3.es.js} +4 -4
- package/dist/chunks/pagination-Bcq69Nv3.es.js.map +1 -0
- package/dist/chunks/{password-input-DMbxYno4.cjs.js → password-input-6SMjhXSO.cjs.js} +2 -2
- package/dist/chunks/{password-input-DMbxYno4.cjs.js.map → password-input-6SMjhXSO.cjs.js.map} +1 -1
- package/dist/chunks/{password-input-De29PFv6.es.js → password-input-Bf_SPzLj.es.js} +4 -4
- package/dist/chunks/{password-input-De29PFv6.es.js.map → password-input-Bf_SPzLj.es.js.map} +1 -1
- package/dist/chunks/popover-CfEq5G5-.cjs.js +2 -0
- package/dist/chunks/popover-CfEq5G5-.cjs.js.map +1 -0
- package/dist/chunks/popover-DF0ppmkw.es.js +16 -0
- package/dist/chunks/popover-DF0ppmkw.es.js.map +1 -0
- package/dist/chunks/{progress-bar-BBy8IR_W.cjs.js → progress-bar-Bhp7W6Eo.cjs.js} +2 -2
- package/dist/chunks/progress-bar-Bhp7W6Eo.cjs.js.map +1 -0
- package/dist/chunks/{progress-bar-1XrmZIIp.es.js → progress-bar-DwuOjOcH.es.js} +6 -6
- package/dist/chunks/progress-bar-DwuOjOcH.es.js.map +1 -0
- package/dist/chunks/{radio-input-8sawPicQ.es.js → radio-input-4jw6HUjC.es.js} +70 -69
- package/dist/chunks/{radio-input-8sawPicQ.es.js.map → radio-input-4jw6HUjC.es.js.map} +1 -1
- package/dist/chunks/radio-input-Dp05SXja.cjs.js +2 -0
- package/dist/chunks/{radio-input-DK5681L5.cjs.js.map → radio-input-Dp05SXja.cjs.js.map} +1 -1
- package/dist/chunks/{range-calendar-C0InkSSo.es.js → range-calendar-DBpl6y5i.es.js} +19 -18
- package/dist/chunks/range-calendar-DBpl6y5i.es.js.map +1 -0
- package/dist/chunks/range-calendar-_dZfAsdG.cjs.js +2 -0
- package/dist/chunks/range-calendar-_dZfAsdG.cjs.js.map +1 -0
- package/dist/chunks/{rich-text-input-CUAI0VeV.es.js → rich-text-input-D7DcSuhr.es.js} +458 -584
- package/dist/chunks/rich-text-input-D7DcSuhr.es.js.map +1 -0
- package/dist/chunks/{rich-text-input-BygekdK5.cjs.js → rich-text-input-Da5WFZ3l.cjs.js} +13 -13
- package/dist/chunks/rich-text-input-Da5WFZ3l.cjs.js.map +1 -0
- package/dist/chunks/{scrollIntoView-1q6VTK8J.es.js → scrollIntoView-DTfS0nWq.es.js} +4 -4
- package/dist/chunks/{scrollIntoView-1q6VTK8J.es.js.map → scrollIntoView-DTfS0nWq.es.js.map} +1 -1
- package/dist/chunks/{search-input-r6P-vAgp.cjs.js → search-input-BefkmgPy.cjs.js} +2 -2
- package/dist/chunks/{search-input-r6P-vAgp.cjs.js.map → search-input-BefkmgPy.cjs.js.map} +1 -1
- package/dist/chunks/{search-input-DkFkEdiE.es.js → search-input-DJy2NHYW.es.js} +17 -17
- package/dist/chunks/{search-input-DkFkEdiE.es.js.map → search-input-DJy2NHYW.es.js.map} +1 -1
- package/dist/chunks/{select-D5QaNAMe.es.js → select-BmMhTBo-.es.js} +101 -101
- package/dist/chunks/{select-D5QaNAMe.es.js.map → select-BmMhTBo-.es.js.map} +1 -1
- package/dist/chunks/select-DMsU6bk9.cjs.js +2 -0
- package/dist/chunks/{select-97-5UUPX.cjs.js.map → select-DMsU6bk9.cjs.js.map} +1 -1
- package/dist/chunks/separator-B0qxXI4c.es.js +26 -0
- package/dist/chunks/separator-B0qxXI4c.es.js.map +1 -0
- package/dist/chunks/separator-CvRn_J0r.cjs.js +2 -0
- package/dist/chunks/separator-CvRn_J0r.cjs.js.map +1 -0
- package/dist/chunks/simple-grid-Cd2MJxSX.cjs.js.map +1 -1
- package/dist/chunks/simple-grid-DU5v66TG.es.js.map +1 -1
- package/dist/chunks/split-button-BO52sL7h.cjs.js +2 -0
- package/dist/chunks/split-button-BO52sL7h.cjs.js.map +1 -0
- package/dist/chunks/{split-button-Bczcosj2.es.js → split-button-yfUsgbxF.es.js} +27 -28
- package/dist/chunks/split-button-yfUsgbxF.es.js.map +1 -0
- package/dist/chunks/stack-CIN13EDn.cjs.js.map +1 -1
- package/dist/chunks/stack-CoNreM7B.es.js.map +1 -1
- package/dist/chunks/{switch-CwJ5OFLP.cjs.js → switch-CdLhBEPq.cjs.js} +2 -2
- package/dist/chunks/switch-CdLhBEPq.cjs.js.map +1 -0
- package/dist/chunks/{switch-D_NMKG3Q.es.js → switch-Df_0twKu.es.js} +8 -8
- package/dist/chunks/switch-Df_0twKu.es.js.map +1 -0
- package/dist/chunks/{tabs-UlU9sGFI.es.js → tabs-BCLrKRoZ.es.js} +86 -87
- package/dist/chunks/{tabs-UlU9sGFI.es.js.map → tabs-BCLrKRoZ.es.js.map} +1 -1
- package/dist/chunks/tabs-CJ0OAUSR.cjs.js +2 -0
- package/dist/chunks/{tabs-Cklmbi45.cjs.js.map → tabs-CJ0OAUSR.cjs.js.map} +1 -1
- package/dist/chunks/tag-group-B-eOhltn.es.js +560 -0
- package/dist/chunks/tag-group-B-eOhltn.es.js.map +1 -0
- package/dist/chunks/tag-group-Btt0egzG.cjs.js +2 -0
- package/dist/chunks/tag-group-Btt0egzG.cjs.js.map +1 -0
- package/dist/chunks/text-BgiP8ZB6.es.js.map +1 -1
- package/dist/chunks/text-CCW9kDT_.cjs.js.map +1 -1
- package/dist/chunks/{text-input-DWJ-CPVR.es.js → text-input-CSAODlCw.es.js} +7 -7
- package/dist/chunks/text-input-CSAODlCw.es.js.map +1 -0
- package/dist/chunks/{text-input-DHyVy0pg.cjs.js → text-input-DZdkCbdd.cjs.js} +2 -2
- package/dist/chunks/text-input-DZdkCbdd.cjs.js.map +1 -0
- package/dist/chunks/time-input--a_qv-Jk.es.js +21 -0
- package/dist/chunks/time-input--a_qv-Jk.es.js.map +1 -0
- package/dist/chunks/time-input-zXykDANk.cjs.js +2 -0
- package/dist/chunks/time-input-zXykDANk.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-DxMZsem4.cjs.js +2 -0
- package/dist/chunks/toggle-button-DxMZsem4.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-awb1jBf8.es.js +30 -0
- package/dist/chunks/toggle-button-awb1jBf8.es.js.map +1 -0
- package/dist/chunks/toggle-button-group-CE2Urvj8.cjs.js +2 -0
- package/dist/chunks/toggle-button-group-CE2Urvj8.cjs.js.map +1 -0
- package/dist/chunks/toggle-button-group-Ce7ezOED.es.js +29 -0
- package/dist/chunks/toggle-button-group-Ce7ezOED.es.js.map +1 -0
- package/dist/chunks/{button.recipe-NdTb5f8M.es.js → toggle-button-group.recipe-CbCnJQP3.es.js} +55 -2
- package/dist/chunks/toggle-button-group.recipe-CbCnJQP3.es.js.map +1 -0
- package/dist/chunks/{button.recipe-Cqkj3VMo.cjs.js → toggle-button-group.recipe-DgySRvOW.cjs.js} +2 -2
- package/dist/chunks/toggle-button-group.recipe-DgySRvOW.cjs.js.map +1 -0
- package/dist/chunks/toolbar-BDatiEYj.es.js +59 -0
- package/dist/chunks/toolbar-BDatiEYj.es.js.map +1 -0
- package/dist/chunks/{toolbar-0yDwxKuL.cjs.js → toolbar-DV0l5MqA.cjs.js} +2 -2
- package/dist/chunks/toolbar-DV0l5MqA.cjs.js.map +1 -0
- package/dist/chunks/tooltip-BPTOkK7W.cjs.js +2 -0
- package/dist/chunks/{tooltip-CH2ASPPO.cjs.js.map → tooltip-BPTOkK7W.cjs.js.map} +1 -1
- package/dist/chunks/{tooltip-CgzrzHZy.es.js → tooltip-CHm25f4m.es.js} +48 -47
- package/dist/chunks/{tooltip-CgzrzHZy.es.js.map → tooltip-CHm25f4m.es.js.map} +1 -1
- package/dist/chunks/{useButton-DcYDH2A4.es.js → useButton-_sJ3_8ha.es.js} +2 -2
- package/dist/chunks/{useButton-DcYDH2A4.es.js.map → useButton-_sJ3_8ha.es.js.map} +1 -1
- package/dist/chunks/{useDateFormatter-DjIrGyx5.es.js → useDateFormatter-C4zVAL_K.es.js} +2 -2
- package/dist/chunks/{useDateFormatter-DjIrGyx5.es.js.map → useDateFormatter-C4zVAL_K.es.js.map} +1 -1
- package/dist/chunks/useGridListItem--iMluO7K.es.js +251 -0
- package/dist/chunks/useGridListItem--iMluO7K.es.js.map +1 -0
- package/dist/chunks/useGridListItem-6gZ8SfZH.cjs.js +2 -0
- package/dist/chunks/useGridListItem-6gZ8SfZH.cjs.js.map +1 -0
- package/dist/chunks/useGridSelectionCheckbox-UA-rsjJv.cjs.js +2 -0
- package/dist/chunks/useGridSelectionCheckbox-UA-rsjJv.cjs.js.map +1 -0
- package/dist/chunks/useGridSelectionCheckbox-yspK-vJA.es.js +23 -0
- package/dist/chunks/useGridSelectionCheckbox-yspK-vJA.es.js.map +1 -0
- package/dist/chunks/{useHighlightSelectionDescription-CvLHkqhe.es.js → useHighlightSelectionDescription-qks4kKs2.es.js} +5 -5
- package/dist/chunks/{useHighlightSelectionDescription-CvLHkqhe.es.js.map → useHighlightSelectionDescription-qks4kKs2.es.js.map} +1 -1
- package/dist/chunks/{useListState-wotFHS2D.es.js → useListState-Cf8n791-.es.js} +2 -2
- package/dist/chunks/{useListState-wotFHS2D.es.js.map → useListState-Cf8n791-.es.js.map} +1 -1
- package/dist/chunks/{usePress-yQeeY9mB.es.js → usePress-Dc6amhnJ.es.js} +2 -2
- package/dist/chunks/{usePress-yQeeY9mB.es.js.map → usePress-Dc6amhnJ.es.js.map} +1 -1
- package/dist/chunks/{useSingleSelectListState-CYr_aJQU.es.js → useSingleSelectListState-DLY6K_dU.es.js} +2 -2
- package/dist/chunks/{useSingleSelectListState-CYr_aJQU.es.js.map → useSingleSelectListState-DLY6K_dU.es.js.map} +1 -1
- package/dist/chunks/{useToggle-BeuILZxb.es.js → useToggle-CKEhqMIa.es.js} +2 -2
- package/dist/chunks/{useToggle-BeuILZxb.es.js.map → useToggle-CKEhqMIa.es.js.map} +1 -1
- package/dist/chunks/visually-hidden-CVUszTlg.es.js.map +1 -1
- package/dist/chunks/visually-hidden-tTYCAVoQ.cjs.js.map +1 -1
- package/dist/collapsible-motion.d.ts +13 -31
- package/dist/combobox.d.ts +36 -135
- package/dist/components/accordion.cjs +1 -1
- package/dist/components/accordion.es.js +1 -1
- package/dist/components/alert.cjs +1 -1
- package/dist/components/alert.es.js +1 -1
- package/dist/components/avatar.cjs +1 -1
- package/dist/components/avatar.es.js +1 -1
- package/dist/components/badge.cjs +1 -1
- package/dist/components/badge.es.js +1 -1
- package/dist/components/button.cjs +1 -1
- package/dist/components/button.es.js +1 -1
- package/dist/components/calendar.cjs +1 -1
- package/dist/components/calendar.es.js +1 -1
- package/dist/components/card.cjs +1 -1
- package/dist/components/card.es.js +1 -1
- package/dist/components/checkbox.cjs +1 -1
- package/dist/components/checkbox.es.js +1 -1
- package/dist/components/collapsible-motion.cjs +1 -1
- package/dist/components/collapsible-motion.es.js +1 -1
- package/dist/components/combobox.cjs +1 -1
- package/dist/components/combobox.es.js +1 -1
- package/dist/components/components.cjs +1 -1
- package/dist/components/components.es.js +1 -1
- package/dist/components/data-table.cjs +1 -1
- package/dist/components/data-table.es.js +1 -1
- package/dist/components/date-input.cjs +1 -1
- package/dist/components/date-input.es.js +1 -1
- package/dist/components/date-picker.cjs +1 -1
- package/dist/components/date-picker.es.js +1 -1
- package/dist/components/date-range-picker.cjs +1 -1
- package/dist/components/date-range-picker.es.js +1 -1
- package/dist/components/dialog.cjs +1 -1
- package/dist/components/dialog.es.js +1 -1
- package/dist/components/draggable-list.cjs +2 -0
- package/dist/components/draggable-list.cjs.map +1 -0
- package/dist/components/draggable-list.es.js +8 -0
- package/dist/components/draggable-list.es.js.map +1 -0
- package/dist/components/drawer.cjs +1 -1
- package/dist/components/drawer.es.js +1 -1
- package/dist/components/field-errors.cjs +1 -1
- package/dist/components/field-errors.es.js +1 -1
- package/dist/components/form-field.cjs +1 -1
- package/dist/components/form-field.es.js +1 -1
- package/dist/components/group.cjs +1 -1
- package/dist/components/group.es.js +1 -1
- package/dist/components/icon-button.cjs +1 -1
- package/dist/components/icon-button.es.js +1 -1
- package/dist/components/icon-toggle-button.cjs +1 -1
- package/dist/components/icon-toggle-button.es.js +1 -1
- package/dist/components/icon.cjs +1 -1
- package/dist/components/icon.es.js +1 -1
- package/dist/components/inline-svg.cjs +1 -1
- package/dist/components/inline-svg.es.js +1 -1
- package/dist/components/kbd.cjs +1 -1
- package/dist/components/kbd.es.js +1 -1
- package/dist/components/link.cjs +1 -1
- package/dist/components/link.es.js +1 -1
- package/dist/components/loading-spinner.cjs +1 -1
- package/dist/components/loading-spinner.es.js +1 -1
- package/dist/components/localized-field.cjs +1 -1
- package/dist/components/localized-field.es.js +1 -1
- package/dist/components/money-input.cjs +1 -1
- package/dist/components/money-input.es.js +1 -1
- package/dist/components/multiline-text-input.cjs +1 -1
- package/dist/components/multiline-text-input.es.js +1 -1
- package/dist/components/nimbus-provider.cjs +1 -1
- package/dist/components/nimbus-provider.es.js +1 -1
- package/dist/components/number-input.cjs +1 -1
- package/dist/components/number-input.es.js +1 -1
- package/dist/components/pagination.cjs +1 -1
- package/dist/components/pagination.es.js +1 -1
- package/dist/components/password-input.cjs +1 -1
- package/dist/components/password-input.es.js +1 -1
- package/dist/components/popover.cjs +1 -1
- package/dist/components/popover.es.js +1 -1
- package/dist/components/progress-bar.cjs +1 -1
- package/dist/components/progress-bar.es.js +1 -1
- package/dist/components/radio-input.cjs +1 -1
- package/dist/components/radio-input.es.js +1 -1
- package/dist/components/range-calendar.cjs +1 -1
- package/dist/components/range-calendar.es.js +1 -1
- package/dist/components/rich-text-input.cjs +1 -1
- package/dist/components/rich-text-input.es.js +1 -1
- package/dist/components/scoped-search-input.cjs +1 -1
- package/dist/components/scoped-search-input.cjs.map +1 -1
- package/dist/components/scoped-search-input.es.js +66 -64
- package/dist/components/scoped-search-input.es.js.map +1 -1
- package/dist/components/search-input.cjs +1 -1
- package/dist/components/search-input.es.js +1 -1
- package/dist/components/select.cjs +1 -1
- package/dist/components/select.es.js +1 -1
- package/dist/components/separator.cjs +1 -1
- package/dist/components/separator.es.js +1 -1
- package/dist/components/split-button.cjs +1 -1
- package/dist/components/split-button.es.js +1 -1
- package/dist/components/switch.cjs +1 -1
- package/dist/components/switch.es.js +1 -1
- package/dist/components/tabs.cjs +1 -1
- package/dist/components/tabs.es.js +1 -1
- package/dist/components/tag-group.cjs +1 -1
- package/dist/components/tag-group.es.js +1 -1
- package/dist/components/text-input.cjs +1 -1
- package/dist/components/text-input.es.js +1 -1
- package/dist/components/time-input.cjs +1 -1
- package/dist/components/time-input.es.js +1 -1
- package/dist/components/toggle-button-group.cjs +1 -1
- package/dist/components/toggle-button-group.es.js +1 -1
- package/dist/components/toggle-button.cjs +1 -1
- package/dist/components/toggle-button.es.js +1 -1
- package/dist/components/toolbar.cjs +1 -1
- package/dist/components/toolbar.es.js +1 -1
- package/dist/components/tooltip.cjs +1 -1
- package/dist/components/tooltip.es.js +1 -1
- package/dist/components/utils.cjs.map +1 -1
- package/dist/components/utils.es.js.map +1 -1
- package/dist/components.d.ts +37 -83
- package/dist/data-table.d.ts +28 -64
- package/dist/date-input.d.ts +14 -83
- package/dist/date-picker.d.ts +35 -99
- package/dist/date-range-picker.d.ts +12 -48
- package/dist/dialog.d.ts +50 -90
- package/dist/draggable-list.d.ts +307 -0
- package/dist/drawer.d.ts +15 -11
- package/dist/field-errors.d.ts +4 -13
- package/dist/form-field.d.ts +27 -76
- package/dist/grid.d.ts +2 -2
- package/dist/group.d.ts +2 -4
- package/dist/heading.d.ts +15 -2
- package/dist/icon-button.d.ts +14 -11
- package/dist/icon-toggle-button.d.ts +12 -108
- package/dist/icon.d.ts +9 -48
- package/dist/image.d.ts +1 -2
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +37 -83
- package/dist/index.es.js +196 -191
- package/dist/index.es.js.map +1 -1
- package/dist/inline-svg.d.ts +11 -50
- package/dist/kbd.d.ts +2 -2
- package/dist/link.d.ts +10 -39
- package/dist/loading-spinner.d.ts +9 -46
- package/dist/localized-field.d.ts +32 -31
- package/dist/money-input.d.ts +16 -100
- package/dist/multiline-text-input.d.ts +13 -73
- package/dist/nimbus-provider.d.ts +8 -10
- package/dist/number-input.d.ts +8 -121
- package/dist/pagination.d.ts +2 -2
- package/dist/password-input.d.ts +12 -65
- package/dist/popover.d.ts +5 -14
- package/dist/progress-bar.d.ts +29 -111
- package/dist/radio-input.d.ts +11 -35
- package/dist/range-calendar.d.ts +21 -9
- package/dist/rich-text-input.d.ts +9 -6
- package/dist/scoped-search-input.d.ts +14 -19
- package/dist/search-input.d.ts +13 -51
- package/dist/select.d.ts +20 -86
- package/dist/separator.d.ts +10 -34
- package/dist/simple-grid.d.ts +2 -2
- package/dist/split-button.d.ts +25 -11
- package/dist/stack.d.ts +2 -2
- package/dist/switch.d.ts +4 -41
- package/dist/tabs.d.ts +32 -126
- package/dist/tag-group.d.ts +15 -42
- package/dist/text-input.d.ts +15 -61
- package/dist/text.d.ts +2 -2
- package/dist/time-input.d.ts +17 -83
- package/dist/toggle-button-group.d.ts +14 -60
- package/dist/toggle-button.d.ts +10 -106
- package/dist/toolbar.d.ts +10 -60
- package/dist/tooltip.d.ts +12 -24
- package/dist/utils.d.ts +2 -2
- package/dist/visually-hidden.d.ts +2 -2
- package/package.json +5 -5
- package/dist/chunks/accordion-C4MjwWsC.es.js.map +0 -1
- package/dist/chunks/accordion-CxA_B4rs.cjs.js +0 -2
- package/dist/chunks/accordion-CxA_B4rs.cjs.js.map +0 -1
- package/dist/chunks/alert-CA04iXvr.cjs.js +0 -2
- package/dist/chunks/alert-CA04iXvr.cjs.js.map +0 -1
- package/dist/chunks/alert-C_eKOpkm.es.js +0 -193
- package/dist/chunks/alert-C_eKOpkm.es.js.map +0 -1
- package/dist/chunks/avatar-Bu12OMzz.es.js.map +0 -1
- package/dist/chunks/avatar-C2KIWewd.cjs.js +0 -2
- package/dist/chunks/avatar-C2KIWewd.cjs.js.map +0 -1
- package/dist/chunks/badge-CCrBksXu.cjs.js +0 -2
- package/dist/chunks/badge-CCrBksXu.cjs.js.map +0 -1
- package/dist/chunks/badge-qLydLdTu.es.js.map +0 -1
- package/dist/chunks/button-Be0U44e7.es.js +0 -59
- package/dist/chunks/button-Be0U44e7.es.js.map +0 -1
- package/dist/chunks/button-DTE97NpD.cjs.js +0 -2
- package/dist/chunks/button-DTE97NpD.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-Cqkj3VMo.cjs.js.map +0 -1
- package/dist/chunks/button.recipe-NdTb5f8M.es.js.map +0 -1
- package/dist/chunks/calendar-C33Q6JGN.es.js.map +0 -1
- package/dist/chunks/calendar-GA5ACIqm.cjs.js +0 -2
- package/dist/chunks/calendar-GA5ACIqm.cjs.js.map +0 -1
- package/dist/chunks/card-DFMzI97y.es.js +0 -138
- package/dist/chunks/card-DFMzI97y.es.js.map +0 -1
- package/dist/chunks/card-DREQgc6S.cjs.js +0 -2
- package/dist/chunks/card-DREQgc6S.cjs.js.map +0 -1
- package/dist/chunks/checkbox-Bh5DxcKC.cjs.js +0 -2
- package/dist/chunks/collapsible-motion-BSsz8na-.es.js.map +0 -1
- package/dist/chunks/collapsible-motion-hU9KTv8o.cjs.js +0 -2
- package/dist/chunks/collapsible-motion-hU9KTv8o.cjs.js.map +0 -1
- package/dist/chunks/data-table-0hNRYKT3.es.js.map +0 -1
- package/dist/chunks/data-table-EMCF19pW.cjs.js +0 -2
- package/dist/chunks/data-table-EMCF19pW.cjs.js.map +0 -1
- package/dist/chunks/date-input-CUWc63rA.cjs.js +0 -2
- package/dist/chunks/date-input-CUWc63rA.cjs.js.map +0 -1
- package/dist/chunks/date-input-Dab_Fdrq.es.js +0 -20
- package/dist/chunks/date-input-Dab_Fdrq.es.js.map +0 -1
- package/dist/chunks/date-picker-C6A6CiIu.cjs.js +0 -2
- package/dist/chunks/date-picker-C6A6CiIu.cjs.js.map +0 -1
- package/dist/chunks/date-picker-CT6jwApn.es.js.map +0 -1
- package/dist/chunks/date-range-picker-BICRnCsn.es.js.map +0 -1
- package/dist/chunks/date-range-picker-vER5F2HJ.cjs.js +0 -2
- package/dist/chunks/date-range-picker-vER5F2HJ.cjs.js.map +0 -1
- package/dist/chunks/dialog.title-5mHI--iF.es.js +0 -152
- package/dist/chunks/dialog.title-CtQfDha4.cjs.js +0 -2
- package/dist/chunks/dialog.title-CtQfDha4.cjs.js.map +0 -1
- package/dist/chunks/field-errors-Dzmxsyfu.cjs.js +0 -2
- package/dist/chunks/field-errors-Dzmxsyfu.cjs.js.map +0 -1
- package/dist/chunks/field-errors-n9EuKYPI.es.js.map +0 -1
- package/dist/chunks/form-field-2NMmaZgp.cjs.js +0 -11
- package/dist/chunks/form-field-2NMmaZgp.cjs.js.map +0 -1
- package/dist/chunks/form-field-BrU_qJq3.es.js +0 -341
- package/dist/chunks/form-field-BrU_qJq3.es.js.map +0 -1
- package/dist/chunks/group-F6OwMVlM.es.js +0 -14
- package/dist/chunks/group-F6OwMVlM.es.js.map +0 -1
- package/dist/chunks/group-NazPMAWg.cjs.js +0 -2
- package/dist/chunks/group-NazPMAWg.cjs.js.map +0 -1
- package/dist/chunks/group.recipe-BQafmscW.es.js +0 -13
- package/dist/chunks/group.recipe-BQafmscW.es.js.map +0 -1
- package/dist/chunks/group.recipe-BffrkcjL.cjs.js +0 -2
- package/dist/chunks/group.recipe-BffrkcjL.cjs.js.map +0 -1
- package/dist/chunks/icon-BHx0r3NL.cjs.js +0 -2
- package/dist/chunks/icon-BHx0r3NL.cjs.js.map +0 -1
- package/dist/chunks/icon-DHu0zrOb.es.js +0 -14
- package/dist/chunks/icon-DHu0zrOb.es.js.map +0 -1
- package/dist/chunks/index-Bx9ez6gh.cjs.js +0 -15
- package/dist/chunks/index-Bx9ez6gh.cjs.js.map +0 -1
- package/dist/chunks/index-DthLdwMN.es.js.map +0 -1
- package/dist/chunks/inline-svg-DTleUhZq.es.js.map +0 -1
- package/dist/chunks/inline-svg-DbvmiSw9.cjs.js +0 -2
- package/dist/chunks/inline-svg-DbvmiSw9.cjs.js.map +0 -1
- package/dist/chunks/kbd-B--GEgRt.es.js +0 -17
- package/dist/chunks/kbd-B--GEgRt.es.js.map +0 -1
- package/dist/chunks/kbd-DFeaXiKY.cjs.js +0 -2
- package/dist/chunks/kbd-DFeaXiKY.cjs.js.map +0 -1
- package/dist/chunks/kbd.recipe-DXiyvrAP.es.js +0 -26
- package/dist/chunks/kbd.recipe-DXiyvrAP.es.js.map +0 -1
- package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js +0 -2
- package/dist/chunks/kbd.recipe-DjQgeTG_.cjs.js.map +0 -1
- package/dist/chunks/link-DK2EgZNs.es.js +0 -50
- package/dist/chunks/link-DK2EgZNs.es.js.map +0 -1
- package/dist/chunks/link-iN1bhsXS.cjs.js +0 -2
- package/dist/chunks/link-iN1bhsXS.cjs.js.map +0 -1
- package/dist/chunks/link.recipe-Co4-fl4U.cjs.js +0 -2
- package/dist/chunks/link.recipe-Co4-fl4U.cjs.js.map +0 -1
- package/dist/chunks/link.recipe-pXiGIJtI.es.js +0 -51
- package/dist/chunks/link.recipe-pXiGIJtI.es.js.map +0 -1
- package/dist/chunks/loading-spinner-Bh75bpAx.es.js +0 -118
- package/dist/chunks/loading-spinner-Bh75bpAx.es.js.map +0 -1
- package/dist/chunks/loading-spinner-DDhqsR0J.cjs.js +0 -2
- package/dist/chunks/loading-spinner-DDhqsR0J.cjs.js.map +0 -1
- package/dist/chunks/localized-field-COJ9aoma.es.js.map +0 -1
- package/dist/chunks/localized-field-DCgNEoJc.cjs.js +0 -2
- package/dist/chunks/menu-BvZy65zm.es.js +0 -150
- package/dist/chunks/menu-BvZy65zm.es.js.map +0 -1
- package/dist/chunks/menu-CW4QVk-m.cjs.js +0 -2
- package/dist/chunks/menu-CW4QVk-m.cjs.js.map +0 -1
- package/dist/chunks/money-input-CwrbJsn1.cjs.js +0 -2
- package/dist/chunks/money-input-CwrbJsn1.cjs.js.map +0 -1
- package/dist/chunks/money-input-DvR9Nnz5.es.js.map +0 -1
- package/dist/chunks/multiline-text-input-4kwHZ5HO.cjs.js +0 -12
- package/dist/chunks/multiline-text-input-4kwHZ5HO.cjs.js.map +0 -1
- package/dist/chunks/multiline-text-input-BrE5zqv5.es.js +0 -195
- package/dist/chunks/multiline-text-input-BrE5zqv5.es.js.map +0 -1
- package/dist/chunks/pagination-2Zl9bHfw.es.js.map +0 -1
- package/dist/chunks/pagination-EVJ_rBrc.cjs.js.map +0 -1
- package/dist/chunks/popover-BJPogaez.cjs.js +0 -2
- package/dist/chunks/popover-BJPogaez.cjs.js.map +0 -1
- package/dist/chunks/popover-yeZXM_2G.es.js +0 -27
- package/dist/chunks/popover-yeZXM_2G.es.js.map +0 -1
- package/dist/chunks/progress-bar-1XrmZIIp.es.js.map +0 -1
- package/dist/chunks/progress-bar-BBy8IR_W.cjs.js.map +0 -1
- package/dist/chunks/radio-input-DK5681L5.cjs.js +0 -2
- package/dist/chunks/range-calendar-C0InkSSo.es.js.map +0 -1
- package/dist/chunks/range-calendar-CrHUTeyY.cjs.js +0 -2
- package/dist/chunks/range-calendar-CrHUTeyY.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-BygekdK5.cjs.js.map +0 -1
- package/dist/chunks/rich-text-input-CUAI0VeV.es.js.map +0 -1
- package/dist/chunks/select-97-5UUPX.cjs.js +0 -2
- package/dist/chunks/separator-BBuhLJdN.cjs.js +0 -2
- package/dist/chunks/separator-BBuhLJdN.cjs.js.map +0 -1
- package/dist/chunks/separator-D7elp8bN.es.js +0 -52
- package/dist/chunks/separator-D7elp8bN.es.js.map +0 -1
- package/dist/chunks/split-button-Bczcosj2.es.js.map +0 -1
- package/dist/chunks/split-button-EHp7Svv4.cjs.js +0 -2
- package/dist/chunks/split-button-EHp7Svv4.cjs.js.map +0 -1
- package/dist/chunks/switch-CwJ5OFLP.cjs.js.map +0 -1
- package/dist/chunks/switch-D_NMKG3Q.es.js.map +0 -1
- package/dist/chunks/tabs-Cklmbi45.cjs.js +0 -2
- package/dist/chunks/tag-group-Cgs8C7Xc.cjs.js +0 -2
- package/dist/chunks/tag-group-Cgs8C7Xc.cjs.js.map +0 -1
- package/dist/chunks/tag-group-uIKmx4eU.es.js +0 -796
- package/dist/chunks/tag-group-uIKmx4eU.es.js.map +0 -1
- package/dist/chunks/text-input-DHyVy0pg.cjs.js.map +0 -1
- package/dist/chunks/text-input-DWJ-CPVR.es.js.map +0 -1
- package/dist/chunks/time-input-CwfMLg_y.es.js +0 -179
- package/dist/chunks/time-input-CwfMLg_y.es.js.map +0 -1
- package/dist/chunks/time-input-UNOO6gaq.cjs.js +0 -2
- package/dist/chunks/time-input-UNOO6gaq.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-BHOVooIy.cjs.js +0 -2
- package/dist/chunks/toggle-button-BHOVooIy.cjs.js.map +0 -1
- package/dist/chunks/toggle-button-CdJftdD2.es.js +0 -29
- package/dist/chunks/toggle-button-CdJftdD2.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-D2eN4VNE.es.js +0 -81
- package/dist/chunks/toggle-button-group-D2eN4VNE.es.js.map +0 -1
- package/dist/chunks/toggle-button-group-RAL2Cws6.cjs.js +0 -2
- package/dist/chunks/toggle-button-group-RAL2Cws6.cjs.js.map +0 -1
- package/dist/chunks/toolbar-0yDwxKuL.cjs.js.map +0 -1
- package/dist/chunks/toolbar-DXDZ5G0Q.es.js +0 -59
- package/dist/chunks/toolbar-DXDZ5G0Q.es.js.map +0 -1
- package/dist/chunks/tooltip-CH2ASPPO.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js +0 -24
- package/dist/chunks/tooltip.recipe-Cqi_tgR5.es.js.map +0 -1
- package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js +0 -2
- package/dist/chunks/tooltip.recipe-dx7DAJbZ.cjs.js.map +0 -1
|
@@ -1,104 +1,104 @@
|
|
|
1
1
|
import { jsx as w, jsxs as oe, Fragment as Rl } from "react/jsx-runtime";
|
|
2
2
|
import k, { useRef as A, useMemo as K, useCallback as j, useEffect as se, useState as Q, forwardRef as Ae, createContext as de, useContext as R } from "react";
|
|
3
|
-
import { createSlotRecipeContext as Al, mergeRefs as
|
|
4
|
-
import { $ as yt } from "./Button-
|
|
5
|
-
import { b as $t, a as
|
|
6
|
-
import { f as W, m as ne, n as le, o as Pe, e as Kl, g as xt, a as Dt, c as Ml, b as Nl, h as _, k as Ct } from "./SelectionManager-
|
|
3
|
+
import { createSlotRecipeContext as Al, mergeRefs as Ce } from "@chakra-ui/react";
|
|
4
|
+
import { $ as yt } from "./Button-Dx3xzN8n.es.js";
|
|
5
|
+
import { b as $t, a as at, c as Bl } from "./RSPContexts-DV4cFLUV.es.js";
|
|
6
|
+
import { f as W, m as ne, n as le, o as Pe, e as Kl, g as xt, a as Dt, c as Ml, b as Nl, h as _, k as Ct } from "./SelectionManager-DMLLo5N3.es.js";
|
|
7
7
|
import { $ as wt, a as re, d as Be, f as st, c as Tl } from "./utils-Cyja2WdR.es.js";
|
|
8
|
-
import { $ as ge, a as Fl, b as Il, c as Wl, d as
|
|
8
|
+
import { $ as ge, a as Fl, b as Il, c as Wl, d as Wo } from "./DragAndDrop-BXEtfOEa.es.js";
|
|
9
9
|
import { $ as Vl } from "./intlStrings-Cd44R5hT.es.js";
|
|
10
10
|
import { a as Hl, $ as jl } from "./SelectionIndicator-DopimabS.es.js";
|
|
11
|
-
import { c as
|
|
12
|
-
import { c as
|
|
11
|
+
import { c as He, $ as St, g as we, f as Ol, i as Ul, j as Ll, a as Ke, k as Yl, h as Oo } from "./CollectionBuilder-Wz-mnWjQ.es.js";
|
|
12
|
+
import { c as xe, $ as je, a as H, e as Xl, b as dt } from "./mergeProps-CzyOU2NE.es.js";
|
|
13
13
|
import { $ as ee } from "./filterDOMProps-BSVCO5jK.es.js";
|
|
14
14
|
import { $ as G } from "./useObjectRef-CaJ5pgjX.es.js";
|
|
15
15
|
import { c as Gl } from "./OverlayArrow-CwYMJqgj.es.js";
|
|
16
|
-
import {
|
|
17
|
-
import { $ as
|
|
16
|
+
import { a as fe, b as Oe, $ as ql } from "./scrollIntoView-DTfS0nWq.es.js";
|
|
17
|
+
import { $ as Zo } from "./inertValue-B7loUihk.es.js";
|
|
18
18
|
import Zl from "react-dom";
|
|
19
|
-
import { $ as
|
|
19
|
+
import { $ as Se } from "./useHover-9Xdm5U9d.es.js";
|
|
20
20
|
import { d as ct } from "./platform-Z5fvtFmM.es.js";
|
|
21
|
-
import { a as Jl, b as Ql, $ as kt } from "./usePress-
|
|
21
|
+
import { a as Jl, b as Ql, $ as kt } from "./usePress-Dc6amhnJ.es.js";
|
|
22
22
|
import { $ as _l, c as en } from "./useFocusable-D1mzTlxa.es.js";
|
|
23
23
|
import { $ as tn, f as ln } from "./useFocusVisible-BIPjFmFE.es.js";
|
|
24
24
|
import { $ as J } from "./focusSafely-BS2OU9MQ.es.js";
|
|
25
25
|
import { a as ft, b as nn } from "./FocusScope-BY2fddGq.es.js";
|
|
26
|
-
import { $ as pe } from "./getScrollParent-
|
|
26
|
+
import { $ as pe } from "./getScrollParent-BS4bncfK.es.js";
|
|
27
27
|
import { $ as be } from "./context-R4YUlO9Y.es.js";
|
|
28
|
-
import { $ as
|
|
28
|
+
import { $ as ke } from "./useLocalizedStringFormatter-BRnRyxJp.es.js";
|
|
29
29
|
import { $ as me } from "./useFocusRing-DRIG5NVg.es.js";
|
|
30
30
|
import { $ as on } from "./useGlobalListeners-BOOfV5Wh.es.js";
|
|
31
|
-
import { a as
|
|
32
|
-
import {
|
|
31
|
+
import { a as Me, $ as pt } from "./VisuallyHidden-Dxf1qswV.es.js";
|
|
32
|
+
import { $ as rn } from "./openLink-CY66vjvW.es.js";
|
|
33
33
|
import { m as Re } from "./utils-Cjs5h3ad.es.js";
|
|
34
|
-
import { $ as
|
|
35
|
-
import { a as
|
|
36
|
-
import { $ as
|
|
34
|
+
import { $ as un } from "./useGridSelectionCheckbox-yspK-vJA.es.js";
|
|
35
|
+
import { a as an, $ as sn } from "./ListKeyboardDelegate-ByRdSpOe.es.js";
|
|
36
|
+
import { $ as dn } from "./LiveAnnouncer-CsPyaceH.es.js";
|
|
37
|
+
import { a as cn, b as fn } from "./useHighlightSelectionDescription-qks4kKs2.es.js";
|
|
37
38
|
import { $ as Et } from "./useCollator-BHMZd1r6.es.js";
|
|
38
39
|
import { $ as pn } from "./useHasTabbableChild-Dq0HGz7B.es.js";
|
|
39
40
|
import { $ as hn } from "./useUpdateEffect-CCDx8D4X.es.js";
|
|
40
|
-
import { e as
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import { C as zt } from "./checkbox-
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
|
|
50
|
-
function wn(t) {
|
|
41
|
+
import { e as ve } from "./extractStyleProps-DYXEhLtq.es.js";
|
|
42
|
+
import { Highlight as mn } from "@chakra-ui/react/highlight";
|
|
43
|
+
import { KeyboardArrowDown as gn, KeyboardArrowRight as bn, PushPin as vn, ArrowDownward as yn } from "@commercetools/nimbus-icons";
|
|
44
|
+
import { B as De } from "./box-DuBoAZvq.es.js";
|
|
45
|
+
import { C as zt } from "./checkbox-DII0AOBy.es.js";
|
|
46
|
+
import { b as ht } from "./tooltip-CHm25f4m.es.js";
|
|
47
|
+
import { I as $n } from "./icon-button-DQS2apw-.es.js";
|
|
48
|
+
import { Flex as xn } from "@chakra-ui/react/flex";
|
|
49
|
+
import { S as Dn } from "./separator-B0qxXI4c.es.js";
|
|
50
|
+
function Cn(t) {
|
|
51
51
|
let { onMoveStart: e, onMove: l, onMoveEnd: n } = t, o = A({
|
|
52
52
|
didMove: !1,
|
|
53
53
|
lastPosition: null,
|
|
54
54
|
id: null
|
|
55
|
-
}), { addGlobalListener: r, removeGlobalListener: i } = on(),
|
|
55
|
+
}), { addGlobalListener: r, removeGlobalListener: i } = on(), u = xe((s, a, p, f) => {
|
|
56
56
|
p === 0 && f === 0 || (o.current.didMove || (o.current.didMove = !0, e?.({
|
|
57
57
|
type: "movestart",
|
|
58
|
-
pointerType:
|
|
59
|
-
shiftKey:
|
|
60
|
-
metaKey:
|
|
61
|
-
ctrlKey:
|
|
62
|
-
altKey:
|
|
58
|
+
pointerType: a,
|
|
59
|
+
shiftKey: s.shiftKey,
|
|
60
|
+
metaKey: s.metaKey,
|
|
61
|
+
ctrlKey: s.ctrlKey,
|
|
62
|
+
altKey: s.altKey
|
|
63
63
|
})), l?.({
|
|
64
64
|
type: "move",
|
|
65
|
-
pointerType:
|
|
65
|
+
pointerType: a,
|
|
66
66
|
deltaX: p,
|
|
67
67
|
deltaY: f,
|
|
68
|
-
shiftKey:
|
|
69
|
-
metaKey:
|
|
70
|
-
ctrlKey:
|
|
71
|
-
altKey:
|
|
68
|
+
shiftKey: s.shiftKey,
|
|
69
|
+
metaKey: s.metaKey,
|
|
70
|
+
ctrlKey: s.ctrlKey,
|
|
71
|
+
altKey: s.altKey
|
|
72
72
|
}));
|
|
73
|
-
}),
|
|
73
|
+
}), c = xe((s, a) => {
|
|
74
74
|
Jl(), o.current.didMove && n?.({
|
|
75
75
|
type: "moveend",
|
|
76
|
-
pointerType:
|
|
77
|
-
shiftKey:
|
|
78
|
-
metaKey:
|
|
79
|
-
ctrlKey:
|
|
80
|
-
altKey:
|
|
76
|
+
pointerType: a,
|
|
77
|
+
shiftKey: s.shiftKey,
|
|
78
|
+
metaKey: s.metaKey,
|
|
79
|
+
ctrlKey: s.ctrlKey,
|
|
80
|
+
altKey: s.altKey
|
|
81
81
|
});
|
|
82
82
|
});
|
|
83
83
|
return {
|
|
84
84
|
moveProps: K(() => {
|
|
85
|
-
let
|
|
85
|
+
let s = {}, a = () => {
|
|
86
86
|
Ql(), o.current.didMove = !1;
|
|
87
87
|
};
|
|
88
88
|
if (typeof PointerEvent > "u" && process.env.NODE_ENV === "test") {
|
|
89
89
|
let f = (v) => {
|
|
90
90
|
if (v.button === 0) {
|
|
91
91
|
var D, g, $, b;
|
|
92
|
-
|
|
92
|
+
u(v, "mouse", v.pageX - (($ = (D = o.current.lastPosition) === null || D === void 0 ? void 0 : D.pageX) !== null && $ !== void 0 ? $ : 0), v.pageY - ((b = (g = o.current.lastPosition) === null || g === void 0 ? void 0 : g.pageY) !== null && b !== void 0 ? b : 0)), o.current.lastPosition = {
|
|
93
93
|
pageX: v.pageX,
|
|
94
94
|
pageY: v.pageY
|
|
95
95
|
};
|
|
96
96
|
}
|
|
97
97
|
}, h = (v) => {
|
|
98
|
-
v.button === 0 && (
|
|
98
|
+
v.button === 0 && (c(v, "mouse"), i(window, "mousemove", f, !1), i(window, "mouseup", h, !1));
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
v.button === 0 && (
|
|
100
|
+
s.onMouseDown = (v) => {
|
|
101
|
+
v.button === 0 && (a(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
102
102
|
pageX: v.pageX,
|
|
103
103
|
pageY: v.pageY
|
|
104
104
|
}, r(window, "mousemove", f, !1), r(window, "mouseup", h, !1));
|
|
@@ -111,7 +111,7 @@ function wn(t) {
|
|
|
111
111
|
var g, $;
|
|
112
112
|
let { pageX: S, pageY: P } = v.changedTouches[D];
|
|
113
113
|
var b, C;
|
|
114
|
-
|
|
114
|
+
u(v, "touch", S - ((b = (g = o.current.lastPosition) === null || g === void 0 ? void 0 : g.pageX) !== null && b !== void 0 ? b : 0), P - ((C = ($ = o.current.lastPosition) === null || $ === void 0 ? void 0 : $.pageY) !== null && C !== void 0 ? C : 0)), o.current.lastPosition = {
|
|
115
115
|
pageX: S,
|
|
116
116
|
pageY: P
|
|
117
117
|
};
|
|
@@ -119,12 +119,12 @@ function wn(t) {
|
|
|
119
119
|
}, y = (v) => {
|
|
120
120
|
[
|
|
121
121
|
...v.changedTouches
|
|
122
|
-
].findIndex(({ identifier: g }) => g === o.current.id) >= 0 && (
|
|
122
|
+
].findIndex(({ identifier: g }) => g === o.current.id) >= 0 && (c(v, "touch"), o.current.id = null, i(window, "touchmove", m), i(window, "touchend", y), i(window, "touchcancel", y));
|
|
123
123
|
};
|
|
124
|
-
|
|
124
|
+
s.onTouchStart = (v) => {
|
|
125
125
|
if (v.changedTouches.length === 0 || o.current.id != null) return;
|
|
126
126
|
let { pageX: D, pageY: g, identifier: $ } = v.changedTouches[0];
|
|
127
|
-
|
|
127
|
+
a(), v.stopPropagation(), v.preventDefault(), o.current.lastPosition = {
|
|
128
128
|
pageX: D,
|
|
129
129
|
pageY: g
|
|
130
130
|
}, o.current.id = $, r(window, "touchmove", m, !1), r(window, "touchend", y, !1), r(window, "touchcancel", y, !1);
|
|
@@ -135,7 +135,7 @@ function wn(t) {
|
|
|
135
135
|
var y, v;
|
|
136
136
|
let $ = m.pointerType || "mouse";
|
|
137
137
|
var D, g;
|
|
138
|
-
|
|
138
|
+
u(m, $, m.pageX - ((D = (y = o.current.lastPosition) === null || y === void 0 ? void 0 : y.pageX) !== null && D !== void 0 ? D : 0), m.pageY - ((g = (v = o.current.lastPosition) === null || v === void 0 ? void 0 : v.pageY) !== null && g !== void 0 ? g : 0)), o.current.lastPosition = {
|
|
139
139
|
pageX: m.pageX,
|
|
140
140
|
pageY: m.pageY
|
|
141
141
|
};
|
|
@@ -143,20 +143,20 @@ function wn(t) {
|
|
|
143
143
|
}, h = (m) => {
|
|
144
144
|
if (m.pointerId === o.current.id) {
|
|
145
145
|
let y = m.pointerType || "mouse";
|
|
146
|
-
|
|
146
|
+
c(m, y), o.current.id = null, i(window, "pointermove", f, !1), i(window, "pointerup", h, !1), i(window, "pointercancel", h, !1);
|
|
147
147
|
}
|
|
148
148
|
};
|
|
149
|
-
|
|
150
|
-
m.button === 0 && o.current.id == null && (
|
|
149
|
+
s.onPointerDown = (m) => {
|
|
150
|
+
m.button === 0 && o.current.id == null && (a(), m.stopPropagation(), m.preventDefault(), o.current.lastPosition = {
|
|
151
151
|
pageX: m.pageX,
|
|
152
152
|
pageY: m.pageY
|
|
153
153
|
}, o.current.id = m.pointerId, r(window, "pointermove", f, !1), r(window, "pointerup", h, !1), r(window, "pointercancel", h, !1));
|
|
154
154
|
};
|
|
155
155
|
}
|
|
156
156
|
let p = (f, h, m) => {
|
|
157
|
-
|
|
157
|
+
a(), u(f, "keyboard", h, m), c(f, "keyboard");
|
|
158
158
|
};
|
|
159
|
-
return
|
|
159
|
+
return s.onKeyDown = (f) => {
|
|
160
160
|
switch (f.key) {
|
|
161
161
|
case "Left":
|
|
162
162
|
case "ArrowLeft":
|
|
@@ -175,13 +175,13 @@ function wn(t) {
|
|
|
175
175
|
f.preventDefault(), f.stopPropagation(), p(f, 0, 1);
|
|
176
176
|
break;
|
|
177
177
|
}
|
|
178
|
-
},
|
|
178
|
+
}, s;
|
|
179
179
|
}, [
|
|
180
180
|
o,
|
|
181
181
|
r,
|
|
182
182
|
i,
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
u,
|
|
184
|
+
c
|
|
185
185
|
])
|
|
186
186
|
};
|
|
187
187
|
}
|
|
@@ -221,12 +221,12 @@ class Pt {
|
|
|
221
221
|
let n = this.collection.getItem(e);
|
|
222
222
|
if (!n) return null;
|
|
223
223
|
let o = 0;
|
|
224
|
-
for (let
|
|
224
|
+
for (let u of W(n, this.collection)) {
|
|
225
225
|
var r;
|
|
226
|
-
if (
|
|
227
|
-
|
|
226
|
+
if (u.colSpan && u.colSpan + o > l) return (r = u.key) !== null && r !== void 0 ? r : null;
|
|
227
|
+
u.colSpan && (o = o + u.colSpan - 1);
|
|
228
228
|
var i;
|
|
229
|
-
if (o === l) return (i =
|
|
229
|
+
if (o === l) return (i = u.key) !== null && i !== void 0 ? i : null;
|
|
230
230
|
o++;
|
|
231
231
|
}
|
|
232
232
|
return null;
|
|
@@ -264,22 +264,22 @@ class Pt {
|
|
|
264
264
|
if (!l) return null;
|
|
265
265
|
if (this.isRow(l)) {
|
|
266
266
|
var n, o;
|
|
267
|
-
let
|
|
267
|
+
let s = W(l, this.collection);
|
|
268
268
|
var r;
|
|
269
|
-
return (r = this.direction === "rtl" ? (n = ne(
|
|
269
|
+
return (r = this.direction === "rtl" ? (n = ne(s)) === null || n === void 0 ? void 0 : n.key : (o = le(s)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
270
270
|
}
|
|
271
271
|
if (this.isCell(l) && l.parentKey != null) {
|
|
272
|
-
let
|
|
273
|
-
if (!
|
|
274
|
-
let
|
|
272
|
+
let s = this.collection.getItem(l.parentKey);
|
|
273
|
+
if (!s) return null;
|
|
274
|
+
let a = W(s, this.collection);
|
|
275
275
|
var i;
|
|
276
|
-
let p = (i = this.direction === "rtl" ? Pe(
|
|
277
|
-
var
|
|
278
|
-
if (p) return (
|
|
279
|
-
var s;
|
|
280
|
-
if (this.focusMode === "row") return (s = l.parentKey) !== null && s !== void 0 ? s : null;
|
|
276
|
+
let p = (i = this.direction === "rtl" ? Pe(a, l.index - 1) : Pe(a, l.index + 1)) !== null && i !== void 0 ? i : null;
|
|
277
|
+
var u;
|
|
278
|
+
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
281
279
|
var c;
|
|
282
|
-
|
|
280
|
+
if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
|
|
281
|
+
var d;
|
|
282
|
+
return (d = this.direction === "rtl" ? this.getFirstKey(e) : this.getLastKey(e)) !== null && d !== void 0 ? d : null;
|
|
283
283
|
}
|
|
284
284
|
return null;
|
|
285
285
|
}
|
|
@@ -288,22 +288,22 @@ class Pt {
|
|
|
288
288
|
if (!l) return null;
|
|
289
289
|
if (this.isRow(l)) {
|
|
290
290
|
var n, o;
|
|
291
|
-
let
|
|
291
|
+
let s = W(l, this.collection);
|
|
292
292
|
var r;
|
|
293
|
-
return (r = this.direction === "rtl" ? (n = le(
|
|
293
|
+
return (r = this.direction === "rtl" ? (n = le(s)) === null || n === void 0 ? void 0 : n.key : (o = ne(s)) === null || o === void 0 ? void 0 : o.key) !== null && r !== void 0 ? r : null;
|
|
294
294
|
}
|
|
295
295
|
if (this.isCell(l) && l.parentKey != null) {
|
|
296
|
-
let
|
|
297
|
-
if (!
|
|
298
|
-
let
|
|
296
|
+
let s = this.collection.getItem(l.parentKey);
|
|
297
|
+
if (!s) return null;
|
|
298
|
+
let a = W(s, this.collection);
|
|
299
299
|
var i;
|
|
300
|
-
let p = (i = this.direction === "rtl" ? Pe(
|
|
301
|
-
var
|
|
302
|
-
if (p) return (
|
|
303
|
-
var s;
|
|
304
|
-
if (this.focusMode === "row") return (s = l.parentKey) !== null && s !== void 0 ? s : null;
|
|
300
|
+
let p = (i = this.direction === "rtl" ? Pe(a, l.index + 1) : Pe(a, l.index - 1)) !== null && i !== void 0 ? i : null;
|
|
301
|
+
var u;
|
|
302
|
+
if (p) return (u = p.key) !== null && u !== void 0 ? u : null;
|
|
305
303
|
var c;
|
|
306
|
-
|
|
304
|
+
if (this.focusMode === "row") return (c = l.parentKey) !== null && c !== void 0 ? c : null;
|
|
305
|
+
var d;
|
|
306
|
+
return (d = this.direction === "rtl" ? this.getLastKey(e) : this.getFirstKey(e)) !== null && d !== void 0 ? d : null;
|
|
307
307
|
}
|
|
308
308
|
return null;
|
|
309
309
|
}
|
|
@@ -313,18 +313,18 @@ class Pt {
|
|
|
313
313
|
if (o = this.collection.getItem(n), !o) return null;
|
|
314
314
|
if (this.isCell(o) && !l && o.parentKey != null) {
|
|
315
315
|
var r;
|
|
316
|
-
let
|
|
317
|
-
if (!
|
|
316
|
+
let d = this.collection.getItem(o.parentKey);
|
|
317
|
+
if (!d) return null;
|
|
318
318
|
var i;
|
|
319
|
-
return (i = (r = le(W(
|
|
319
|
+
return (i = (r = le(W(d, this.collection))) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
if (n = this.findNextKey(void 0, (
|
|
323
|
-
var
|
|
324
|
-
let
|
|
325
|
-
if (!
|
|
326
|
-
var
|
|
327
|
-
n = (
|
|
322
|
+
if (n = this.findNextKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
323
|
+
var u;
|
|
324
|
+
let d = this.collection.getItem(n);
|
|
325
|
+
if (!d) return null;
|
|
326
|
+
var c;
|
|
327
|
+
n = (c = (u = le(W(d, this.collection))) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
328
328
|
}
|
|
329
329
|
return n;
|
|
330
330
|
}
|
|
@@ -334,20 +334,20 @@ class Pt {
|
|
|
334
334
|
if (o = this.collection.getItem(n), !o) return null;
|
|
335
335
|
if (this.isCell(o) && !l && o.parentKey != null) {
|
|
336
336
|
var r;
|
|
337
|
-
let
|
|
338
|
-
if (!
|
|
339
|
-
let
|
|
337
|
+
let d = this.collection.getItem(o.parentKey);
|
|
338
|
+
if (!d) return null;
|
|
339
|
+
let s = W(d, this.collection);
|
|
340
340
|
var i;
|
|
341
|
-
return (i = (r = ne(
|
|
341
|
+
return (i = (r = ne(s)) === null || r === void 0 ? void 0 : r.key) !== null && i !== void 0 ? i : null;
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
|
-
if (n = this.findPreviousKey(void 0, (
|
|
345
|
-
var
|
|
346
|
-
let
|
|
347
|
-
if (!
|
|
348
|
-
let
|
|
349
|
-
var
|
|
350
|
-
n = (
|
|
344
|
+
if (n = this.findPreviousKey(void 0, (d) => d.type === "item"), n != null && (o && this.isCell(o) && l || this.focusMode === "cell")) {
|
|
345
|
+
var u;
|
|
346
|
+
let d = this.collection.getItem(n);
|
|
347
|
+
if (!d) return null;
|
|
348
|
+
let s = W(d, this.collection);
|
|
349
|
+
var c;
|
|
350
|
+
n = (c = (u = ne(s)) === null || u === void 0 ? void 0 : u.key) !== null && c !== void 0 ? c : null;
|
|
351
351
|
}
|
|
352
352
|
return n;
|
|
353
353
|
}
|
|
@@ -382,29 +382,29 @@ class Pt {
|
|
|
382
382
|
if (!r) return null;
|
|
383
383
|
var i;
|
|
384
384
|
r.type === "cell" && (n = (i = r.parentKey) !== null && i !== void 0 ? i : null);
|
|
385
|
-
let
|
|
385
|
+
let u = !1;
|
|
386
386
|
for (; n != null; ) {
|
|
387
|
-
let
|
|
388
|
-
if (!
|
|
389
|
-
if (
|
|
390
|
-
let
|
|
391
|
-
if (this.collator.compare(
|
|
392
|
-
var
|
|
393
|
-
return this.isRow(
|
|
387
|
+
let s = o.getItem(n);
|
|
388
|
+
if (!s) return null;
|
|
389
|
+
if (s.textValue) {
|
|
390
|
+
let a = s.textValue.slice(0, e.length);
|
|
391
|
+
if (this.collator.compare(a, e) === 0) {
|
|
392
|
+
var c, d;
|
|
393
|
+
return this.isRow(s) && this.focusMode === "cell" ? (d = (c = le(W(s, this.collection))) === null || c === void 0 ? void 0 : c.key) !== null && d !== void 0 ? d : null : s.key;
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
n = this.findNextKey(n, (
|
|
396
|
+
n = this.findNextKey(n, (a) => a.type === "item"), n == null && !u && (n = this.getFirstKey(), u = !0);
|
|
397
397
|
}
|
|
398
398
|
return null;
|
|
399
399
|
}
|
|
400
400
|
constructor(e) {
|
|
401
401
|
if (this.collection = e.collection, this.disabledKeys = e.disabledKeys, this.disabledBehavior = e.disabledBehavior || "all", this.direction = e.direction, this.collator = e.collator, !e.layout && !e.ref) throw new Error("Either a layout or a ref must be specified.");
|
|
402
|
-
this.layoutDelegate = e.layoutDelegate || (e.layout ? new
|
|
402
|
+
this.layoutDelegate = e.layoutDelegate || (e.layout ? new wn(e.layout) : new an(e.ref));
|
|
403
403
|
var l;
|
|
404
404
|
this.focusMode = (l = e.focusMode) !== null && l !== void 0 ? l : "row";
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
|
-
class
|
|
407
|
+
class wn {
|
|
408
408
|
getContentSize() {
|
|
409
409
|
return this.layout.getContentSize();
|
|
410
410
|
}
|
|
@@ -420,8 +420,8 @@ class Sn {
|
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
const Ue = /* @__PURE__ */ new WeakMap();
|
|
423
|
-
function
|
|
424
|
-
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef:
|
|
423
|
+
function Sn(t, e, l) {
|
|
424
|
+
let { isVirtualized: n, disallowTypeAhead: o, keyboardDelegate: r, focusMode: i, scrollRef: u, getRowText: c, onRowAction: d, onCellAction: s, escapeKeyBehavior: a = "clearSelection", shouldSelectOnPressUp: p } = t, { selectionManager: f } = e;
|
|
425
425
|
!t["aria-label"] && !t["aria-labelledby"] && console.warn("An aria-label or aria-labelledby prop is required for accessibility.");
|
|
426
426
|
let h = Et({
|
|
427
427
|
usage: "search",
|
|
@@ -448,21 +448,21 @@ function kn(t, e, l) {
|
|
|
448
448
|
selectionManager: f,
|
|
449
449
|
keyboardDelegate: v,
|
|
450
450
|
isVirtualized: n,
|
|
451
|
-
scrollRef:
|
|
451
|
+
scrollRef: u,
|
|
452
452
|
disallowTypeAhead: o,
|
|
453
|
-
escapeKeyBehavior:
|
|
454
|
-
}), g =
|
|
453
|
+
escapeKeyBehavior: a
|
|
454
|
+
}), g = je(t.id);
|
|
455
455
|
Ue.set(e, {
|
|
456
456
|
keyboardDelegate: v,
|
|
457
457
|
actions: {
|
|
458
|
-
onRowAction:
|
|
459
|
-
onCellAction:
|
|
458
|
+
onRowAction: d,
|
|
459
|
+
onCellAction: s
|
|
460
460
|
},
|
|
461
461
|
shouldSelectOnPressUp: p
|
|
462
462
|
});
|
|
463
|
-
let $ =
|
|
463
|
+
let $ = cn({
|
|
464
464
|
selectionManager: f,
|
|
465
|
-
hasItemActions: !!(
|
|
465
|
+
hasItemActions: !!(d || s)
|
|
466
466
|
}), b = ee(t, {
|
|
467
467
|
labelable: !0
|
|
468
468
|
}), C = j((E) => {
|
|
@@ -495,31 +495,31 @@ function kn(t, e, l) {
|
|
|
495
495
|
} || void 0,
|
|
496
496
|
$
|
|
497
497
|
);
|
|
498
|
-
return n && (B["aria-rowcount"] = e.collection.size, B["aria-colcount"] = e.collection.columnCount),
|
|
499
|
-
getRowText:
|
|
498
|
+
return n && (B["aria-rowcount"] = e.collection.size, B["aria-colcount"] = e.collection.columnCount), fn({
|
|
499
|
+
getRowText: c
|
|
500
500
|
}, e), {
|
|
501
501
|
gridProps: B
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function kn() {
|
|
505
505
|
return {
|
|
506
506
|
rowGroupProps: {
|
|
507
507
|
role: "rowgroup"
|
|
508
508
|
}
|
|
509
509
|
};
|
|
510
510
|
}
|
|
511
|
-
function
|
|
511
|
+
function En(t, e, l) {
|
|
512
512
|
var n, o;
|
|
513
|
-
let { node: r, isVirtualized: i, shouldSelectOnPressUp:
|
|
513
|
+
let { node: r, isVirtualized: i, shouldSelectOnPressUp: u, onAction: c } = t, { actions: d, shouldSelectOnPressUp: s } = Ue.get(e), a = d.onRowAction ? () => {
|
|
514
514
|
var y;
|
|
515
|
-
return (y =
|
|
516
|
-
} :
|
|
515
|
+
return (y = d.onRowAction) === null || y === void 0 ? void 0 : y.call(d, r.key);
|
|
516
|
+
} : c, { itemProps: p, ...f } = xt({
|
|
517
517
|
selectionManager: e.selectionManager,
|
|
518
518
|
key: r.key,
|
|
519
519
|
ref: l,
|
|
520
520
|
isVirtualized: i,
|
|
521
|
-
shouldSelectOnPressUp:
|
|
522
|
-
onAction:
|
|
521
|
+
shouldSelectOnPressUp: s || u,
|
|
522
|
+
onAction: a || !(r == null || (n = r.props) === null || n === void 0) && n.onAction ? Xl(r == null || (o = r.props) === null || o === void 0 ? void 0 : o.onAction, a) : void 0,
|
|
523
523
|
isDisabled: e.collection.size === 0
|
|
524
524
|
}), h = e.selectionManager.isSelected(r.key), m = {
|
|
525
525
|
role: "row",
|
|
@@ -533,18 +533,18 @@ function zn(t, e, l) {
|
|
|
533
533
|
};
|
|
534
534
|
}
|
|
535
535
|
function Rt(t, e, l) {
|
|
536
|
-
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction:
|
|
536
|
+
let { node: n, isVirtualized: o, focusMode: r = "child", shouldSelectOnPressUp: i, onAction: u } = t, { direction: c } = be(), { keyboardDelegate: d, actions: { onCellAction: s } } = Ue.get(e), a = A(null), p = () => {
|
|
537
537
|
if (l.current) {
|
|
538
538
|
let g = ft(l.current);
|
|
539
539
|
if (r === "child") {
|
|
540
540
|
if (l.current.contains(document.activeElement) && l.current !== document.activeElement) return;
|
|
541
|
-
let $ = e.selectionManager.childFocusStrategy === "last" ?
|
|
541
|
+
let $ = e.selectionManager.childFocusStrategy === "last" ? Fe(g) : g.firstChild();
|
|
542
542
|
if ($) {
|
|
543
543
|
J($);
|
|
544
544
|
return;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
(
|
|
547
|
+
(a.current != null && n.key !== a.current || !l.current.contains(document.activeElement)) && J(l.current);
|
|
548
548
|
}
|
|
549
549
|
}, { itemProps: f, isPressed: h } = xt({
|
|
550
550
|
selectionManager: e.selectionManager,
|
|
@@ -553,49 +553,49 @@ function Rt(t, e, l) {
|
|
|
553
553
|
isVirtualized: o,
|
|
554
554
|
focus: p,
|
|
555
555
|
shouldSelectOnPressUp: i,
|
|
556
|
-
onAction:
|
|
556
|
+
onAction: s ? () => s(n.key) : u,
|
|
557
557
|
isDisabled: e.collection.size === 0
|
|
558
558
|
}), m = (g) => {
|
|
559
559
|
if (!g.currentTarget.contains(g.target) || e.isKeyboardNavigationDisabled || !l.current || !document.activeElement) return;
|
|
560
560
|
let $ = ft(l.current);
|
|
561
561
|
switch ($.currentNode = document.activeElement, g.key) {
|
|
562
562
|
case "ArrowLeft": {
|
|
563
|
-
let E =
|
|
563
|
+
let E = c === "rtl" ? $.nextNode() : $.previousNode();
|
|
564
564
|
if (r === "child" && E === l.current && (E = null), g.preventDefault(), g.stopPropagation(), E)
|
|
565
565
|
J(E), fe(E, {
|
|
566
566
|
containingElement: pe(l.current)
|
|
567
567
|
});
|
|
568
568
|
else {
|
|
569
569
|
var b;
|
|
570
|
-
if (((b =
|
|
570
|
+
if (((b = d.getKeyLeftOf) === null || b === void 0 ? void 0 : b.call(d, n.key)) !== n.key) {
|
|
571
571
|
var C;
|
|
572
572
|
(C = l.current.parentElement) === null || C === void 0 || C.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
|
|
573
573
|
break;
|
|
574
574
|
}
|
|
575
|
-
r === "cell" &&
|
|
575
|
+
r === "cell" && c === "rtl" ? (J(l.current), fe(l.current, {
|
|
576
576
|
containingElement: pe(l.current)
|
|
577
|
-
})) : ($.currentNode = l.current, E =
|
|
577
|
+
})) : ($.currentNode = l.current, E = c === "rtl" ? $.firstChild() : Fe($), E && (J(E), fe(E, {
|
|
578
578
|
containingElement: pe(l.current)
|
|
579
579
|
})));
|
|
580
580
|
}
|
|
581
581
|
break;
|
|
582
582
|
}
|
|
583
583
|
case "ArrowRight": {
|
|
584
|
-
let E =
|
|
584
|
+
let E = c === "rtl" ? $.previousNode() : $.nextNode();
|
|
585
585
|
if (r === "child" && E === l.current && (E = null), g.preventDefault(), g.stopPropagation(), E)
|
|
586
586
|
J(E), fe(E, {
|
|
587
587
|
containingElement: pe(l.current)
|
|
588
588
|
});
|
|
589
589
|
else {
|
|
590
590
|
var S;
|
|
591
|
-
if (((S =
|
|
591
|
+
if (((S = d.getKeyRightOf) === null || S === void 0 ? void 0 : S.call(d, n.key)) !== n.key) {
|
|
592
592
|
var P;
|
|
593
593
|
(P = l.current.parentElement) === null || P === void 0 || P.dispatchEvent(new KeyboardEvent(g.nativeEvent.type, g.nativeEvent));
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
|
-
r === "cell" &&
|
|
596
|
+
r === "cell" && c === "ltr" ? (J(l.current), fe(l.current, {
|
|
597
597
|
containingElement: pe(l.current)
|
|
598
|
-
})) : ($.currentNode = l.current, E =
|
|
598
|
+
})) : ($.currentNode = l.current, E = c === "rtl" ? Fe($) : $.firstChild(), E && (J(E), fe(E, {
|
|
599
599
|
containingElement: pe(l.current)
|
|
600
600
|
})));
|
|
601
601
|
}
|
|
@@ -610,7 +610,7 @@ function Rt(t, e, l) {
|
|
|
610
610
|
break;
|
|
611
611
|
}
|
|
612
612
|
}, y = (g) => {
|
|
613
|
-
if (
|
|
613
|
+
if (a.current = n.key, g.target !== l.current) {
|
|
614
614
|
tn() || e.selectionManager.setFocusedKey(n.key);
|
|
615
615
|
return;
|
|
616
616
|
}
|
|
@@ -636,42 +636,26 @@ function Rt(t, e, l) {
|
|
|
636
636
|
isPressed: h
|
|
637
637
|
};
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function Fe(t) {
|
|
640
640
|
let e = null, l = null;
|
|
641
641
|
do
|
|
642
642
|
l = t.lastChild(), l && (e = l);
|
|
643
643
|
while (l);
|
|
644
644
|
return e;
|
|
645
645
|
}
|
|
646
|
-
function Pn(t) {
|
|
647
|
-
return t && t.__esModule ? t.default : t;
|
|
648
|
-
}
|
|
649
|
-
function Rn(t, e) {
|
|
650
|
-
let { key: l } = t, n = e.selectionManager, o = Me(), r = !e.selectionManager.canSelectItem(l), i = e.selectionManager.isSelected(l), a = () => n.toggleSelection(l);
|
|
651
|
-
const s = ve(Pn(sn), "@react-aria/grid");
|
|
652
|
-
return {
|
|
653
|
-
checkboxProps: {
|
|
654
|
-
id: o,
|
|
655
|
-
"aria-label": s.format("select"),
|
|
656
|
-
isSelected: i,
|
|
657
|
-
isDisabled: r,
|
|
658
|
-
onChange: a
|
|
659
|
-
}
|
|
660
|
-
};
|
|
661
|
-
}
|
|
662
646
|
const Le = /* @__PURE__ */ new WeakMap();
|
|
663
|
-
function
|
|
647
|
+
function Ie(t) {
|
|
664
648
|
return typeof t == "string" ? t.replace(/\s*/g, "") : "" + t;
|
|
665
649
|
}
|
|
666
650
|
function At(t, e) {
|
|
667
651
|
let l = Le.get(t);
|
|
668
652
|
if (!l) throw new Error("Unknown grid");
|
|
669
|
-
return `${l}-${
|
|
653
|
+
return `${l}-${Ie(e)}`;
|
|
670
654
|
}
|
|
671
655
|
function Bt(t, e, l) {
|
|
672
656
|
let n = Le.get(t);
|
|
673
657
|
if (!n) throw new Error("Unknown grid");
|
|
674
|
-
return `${n}-${
|
|
658
|
+
return `${n}-${Ie(e)}-${Ie(l)}`;
|
|
675
659
|
}
|
|
676
660
|
function Kt(t, e) {
|
|
677
661
|
return [
|
|
@@ -1002,8 +986,8 @@ il = {
|
|
|
1002
986
|
selectAll: "Vybrať všetko",
|
|
1003
987
|
sortable: "zoraditeľný stĺpec"
|
|
1004
988
|
};
|
|
1005
|
-
var
|
|
1006
|
-
|
|
989
|
+
var ul = {};
|
|
990
|
+
ul = {
|
|
1007
991
|
ascending: "naraščajoče",
|
|
1008
992
|
ascendingSort: (t) => `razvrščeno po stolpcu ${t.columnName} v naraščajočem vrstnem redu`,
|
|
1009
993
|
columnSize: (t) => `${t.value} slikovnih pik`,
|
|
@@ -1014,8 +998,8 @@ al = {
|
|
|
1014
998
|
selectAll: "Izberite vse",
|
|
1015
999
|
sortable: "razvrstljivi stolpec"
|
|
1016
1000
|
};
|
|
1017
|
-
var
|
|
1018
|
-
|
|
1001
|
+
var al = {};
|
|
1002
|
+
al = {
|
|
1019
1003
|
ascending: "rastući",
|
|
1020
1004
|
ascendingSort: (t) => `sortirano po kolonama ${t.columnName} rastućim redosledom`,
|
|
1021
1005
|
columnSize: (t) => `${t.value} piksela`,
|
|
@@ -1115,15 +1099,15 @@ Ee = {
|
|
|
1115
1099
|
"ro-RO": ol,
|
|
1116
1100
|
"ru-RU": rl,
|
|
1117
1101
|
"sk-SK": il,
|
|
1118
|
-
"sl-SI":
|
|
1119
|
-
"sr-SP":
|
|
1102
|
+
"sl-SI": ul,
|
|
1103
|
+
"sr-SP": al,
|
|
1120
1104
|
"sv-SE": sl,
|
|
1121
1105
|
"tr-TR": dl,
|
|
1122
1106
|
"uk-UA": cl,
|
|
1123
1107
|
"zh-CN": fl,
|
|
1124
1108
|
"zh-TW": pl
|
|
1125
1109
|
};
|
|
1126
|
-
class
|
|
1110
|
+
class zn extends Pt {
|
|
1127
1111
|
isCell(e) {
|
|
1128
1112
|
return e.type === "cell" || e.type === "rowheader" || e.type === "column";
|
|
1129
1113
|
}
|
|
@@ -1183,64 +1167,64 @@ class An extends Pt {
|
|
|
1183
1167
|
let r = n.getItem(o);
|
|
1184
1168
|
var i;
|
|
1185
1169
|
r?.type === "cell" && (o = (i = r.parentKey) !== null && i !== void 0 ? i : null);
|
|
1186
|
-
let
|
|
1170
|
+
let u = !1;
|
|
1187
1171
|
for (; o != null; ) {
|
|
1188
|
-
let
|
|
1189
|
-
if (!
|
|
1190
|
-
if (
|
|
1191
|
-
let
|
|
1192
|
-
if (this.collator.compare(
|
|
1172
|
+
let c = n.getItem(o);
|
|
1173
|
+
if (!c) return null;
|
|
1174
|
+
if (c.textValue) {
|
|
1175
|
+
let d = c.textValue.slice(0, e.length);
|
|
1176
|
+
if (this.collator.compare(d, e) === 0) return c.key;
|
|
1193
1177
|
}
|
|
1194
|
-
for (let
|
|
1195
|
-
let
|
|
1196
|
-
if (n.rowHeaderColumnKeys.has(
|
|
1197
|
-
let
|
|
1198
|
-
if (this.collator.compare(
|
|
1178
|
+
for (let d of W(c, this.collection)) {
|
|
1179
|
+
let s = n.columns[d.index];
|
|
1180
|
+
if (n.rowHeaderColumnKeys.has(s.key) && d.textValue) {
|
|
1181
|
+
let a = d.textValue.slice(0, e.length);
|
|
1182
|
+
if (this.collator.compare(a, e) === 0) {
|
|
1199
1183
|
let p = l != null ? n.getItem(l) : r;
|
|
1200
|
-
return p?.type === "cell" ?
|
|
1184
|
+
return p?.type === "cell" ? d.key : c.key;
|
|
1201
1185
|
}
|
|
1202
1186
|
}
|
|
1203
1187
|
}
|
|
1204
|
-
o = this.getKeyBelow(o), o == null && !
|
|
1188
|
+
o = this.getKeyBelow(o), o == null && !u && (o = this.getFirstKey(), u = !0);
|
|
1205
1189
|
}
|
|
1206
1190
|
return null;
|
|
1207
1191
|
}
|
|
1208
1192
|
}
|
|
1209
|
-
function
|
|
1193
|
+
function Pn(t) {
|
|
1210
1194
|
return t && t.__esModule ? t.default : t;
|
|
1211
1195
|
}
|
|
1212
|
-
function
|
|
1213
|
-
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t,
|
|
1196
|
+
function Rn(t, e, l) {
|
|
1197
|
+
let { keyboardDelegate: n, isVirtualized: o, layoutDelegate: r, layout: i } = t, u = Et({
|
|
1214
1198
|
usage: "search",
|
|
1215
1199
|
sensitivity: "base"
|
|
1216
|
-
}), { direction:
|
|
1200
|
+
}), { direction: c } = be(), d = e.selectionManager.disabledBehavior, s = K(() => n || new zn({
|
|
1217
1201
|
collection: e.collection,
|
|
1218
1202
|
disabledKeys: e.disabledKeys,
|
|
1219
|
-
disabledBehavior:
|
|
1203
|
+
disabledBehavior: d,
|
|
1220
1204
|
ref: l,
|
|
1221
|
-
direction:
|
|
1222
|
-
collator:
|
|
1205
|
+
direction: c,
|
|
1206
|
+
collator: u,
|
|
1223
1207
|
layoutDelegate: r,
|
|
1224
1208
|
layout: i
|
|
1225
1209
|
}), [
|
|
1226
1210
|
n,
|
|
1227
1211
|
e.collection,
|
|
1228
1212
|
e.disabledKeys,
|
|
1229
|
-
|
|
1213
|
+
d,
|
|
1230
1214
|
l,
|
|
1231
|
-
|
|
1232
|
-
|
|
1215
|
+
c,
|
|
1216
|
+
u,
|
|
1233
1217
|
r,
|
|
1234
1218
|
i
|
|
1235
|
-
]),
|
|
1236
|
-
Le.set(e,
|
|
1237
|
-
let { gridProps: p } =
|
|
1219
|
+
]), a = je(t.id);
|
|
1220
|
+
Le.set(e, a);
|
|
1221
|
+
let { gridProps: p } = Sn({
|
|
1238
1222
|
...t,
|
|
1239
|
-
id:
|
|
1240
|
-
keyboardDelegate:
|
|
1223
|
+
id: a,
|
|
1224
|
+
keyboardDelegate: s
|
|
1241
1225
|
}, e, l);
|
|
1242
1226
|
o && (p["aria-rowcount"] = e.collection.size + e.collection.headerRows.length), Re() && "expandedKeys" in e && (p.role = "treegrid");
|
|
1243
|
-
let { column: f, direction: h } = e.sortDescriptor || {}, m =
|
|
1227
|
+
let { column: f, direction: h } = e.sortDescriptor || {}, m = ke(Pn(Ee), "@react-aria/table"), y = K(() => {
|
|
1244
1228
|
var D, g;
|
|
1245
1229
|
let $ = (g = (D = e.collection.columns.find((b) => b.key === f)) === null || D === void 0 ? void 0 : D.textValue) !== null && g !== void 0 ? g : "";
|
|
1246
1230
|
return h && f ? m.format(`${h}Sort`, {
|
|
@@ -1252,7 +1236,7 @@ function Kn(t, e, l) {
|
|
|
1252
1236
|
e.collection.columns
|
|
1253
1237
|
]), v = Oe(y);
|
|
1254
1238
|
return hn(() => {
|
|
1255
|
-
y &&
|
|
1239
|
+
y && dn(y, "assertive", 500);
|
|
1256
1240
|
}, [
|
|
1257
1241
|
y
|
|
1258
1242
|
]), {
|
|
@@ -1265,23 +1249,23 @@ function Kn(t, e, l) {
|
|
|
1265
1249
|
})
|
|
1266
1250
|
};
|
|
1267
1251
|
}
|
|
1268
|
-
function
|
|
1252
|
+
function An(t) {
|
|
1269
1253
|
return t && t.__esModule ? t.default : t;
|
|
1270
1254
|
}
|
|
1271
|
-
function
|
|
1255
|
+
function Bn(t, e, l) {
|
|
1272
1256
|
var n, o;
|
|
1273
|
-
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps:
|
|
1257
|
+
let { node: r } = t, i = r.props.allowsSorting, { gridCellProps: u } = Rt({
|
|
1274
1258
|
...t,
|
|
1275
1259
|
focusMode: "child"
|
|
1276
|
-
}, e, l),
|
|
1277
|
-
isDisabled: !i ||
|
|
1260
|
+
}, e, l), c = r.props.isSelectionCell && e.selectionManager.selectionMode === "single", { pressProps: d } = kt({
|
|
1261
|
+
isDisabled: !i || c,
|
|
1278
1262
|
onPress() {
|
|
1279
1263
|
e.sort(r.key);
|
|
1280
1264
|
},
|
|
1281
1265
|
ref: l
|
|
1282
|
-
}), { focusableProps:
|
|
1283
|
-
r.props.allowsSorting && !ct() && (
|
|
1284
|
-
let h =
|
|
1266
|
+
}), { focusableProps: s } = _l({}, l), a, p = ((n = e.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === r.key, f = (o = e.sortDescriptor) === null || o === void 0 ? void 0 : o.direction;
|
|
1267
|
+
r.props.allowsSorting && !ct() && (a = p ? f : "none");
|
|
1268
|
+
let h = ke(An(Ee), "@react-aria/table"), m;
|
|
1285
1269
|
i && (m = `${h.format("sortable")}`, p && f && ct() && (m = `${m}, ${h.format(f)}`));
|
|
1286
1270
|
let y = Oe(m), v = e.collection.size === 0;
|
|
1287
1271
|
return se(() => {
|
|
@@ -1293,9 +1277,9 @@ function Nn(t, e, l) {
|
|
|
1293
1277
|
]), {
|
|
1294
1278
|
columnHeaderProps: {
|
|
1295
1279
|
...H(
|
|
1280
|
+
s,
|
|
1281
|
+
u,
|
|
1296
1282
|
d,
|
|
1297
|
-
a,
|
|
1298
|
-
c,
|
|
1299
1283
|
y,
|
|
1300
1284
|
// If the table is empty, make all column headers untabbable
|
|
1301
1285
|
v ? {
|
|
@@ -1305,7 +1289,7 @@ function Nn(t, e, l) {
|
|
|
1305
1289
|
role: "columnheader",
|
|
1306
1290
|
id: At(e, r.key),
|
|
1307
1291
|
"aria-colspan": r.colSpan && r.colSpan > 1 ? r.colSpan : void 0,
|
|
1308
|
-
"aria-sort":
|
|
1292
|
+
"aria-sort": a
|
|
1309
1293
|
}
|
|
1310
1294
|
};
|
|
1311
1295
|
}
|
|
@@ -1319,19 +1303,19 @@ const mt = {
|
|
|
1319
1303
|
rtl: "ArrowRight"
|
|
1320
1304
|
}
|
|
1321
1305
|
};
|
|
1322
|
-
function
|
|
1323
|
-
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } =
|
|
1306
|
+
function Kn(t, e, l) {
|
|
1307
|
+
let { node: n, isVirtualized: o } = t, { rowProps: r, ...i } = En(t, e, l), { direction: u } = be();
|
|
1324
1308
|
o && !(Re() && "expandedKeys" in e) ? r["aria-rowindex"] = n.index + 1 + e.collection.headerRows.length : delete r["aria-rowindex"];
|
|
1325
|
-
let
|
|
1309
|
+
let c = {};
|
|
1326
1310
|
if (Re() && "expandedKeys" in e) {
|
|
1327
1311
|
let b = e.keyMap.get(n.key);
|
|
1328
1312
|
if (b != null) {
|
|
1329
|
-
var
|
|
1330
|
-
let C = ((
|
|
1313
|
+
var d, s, a, p, f, h;
|
|
1314
|
+
let C = ((d = b.props) === null || d === void 0 ? void 0 : d.UNSTABLE_childItems) || ((a = b.props) === null || a === void 0 || (s = a.children) === null || s === void 0 ? void 0 : s.length) > e.userColumnCount;
|
|
1331
1315
|
var m, y, v, D;
|
|
1332
|
-
|
|
1316
|
+
c = {
|
|
1333
1317
|
onKeyDown: (S) => {
|
|
1334
|
-
(S.key === mt.expand[
|
|
1318
|
+
(S.key === mt.expand[u] && e.selectionManager.focusedKey === b.key && C && e.expandedKeys !== "all" && !e.expandedKeys.has(b.key) || S.key === mt.collapse[u] && e.selectionManager.focusedKey === b.key && C && (e.expandedKeys === "all" || e.expandedKeys.has(b.key))) && (e.toggleKey(b.key), S.stopPropagation());
|
|
1335
1319
|
},
|
|
1336
1320
|
"aria-expanded": C ? e.expandedKeys === "all" || e.expandedKeys.has(n.key) : void 0,
|
|
1337
1321
|
"aria-level": b.level,
|
|
@@ -1343,13 +1327,13 @@ function Tn(t, e, l) {
|
|
|
1343
1327
|
let g = rn(n.props), $ = i.hasAction ? g : {};
|
|
1344
1328
|
return {
|
|
1345
1329
|
rowProps: {
|
|
1346
|
-
...H(r,
|
|
1330
|
+
...H(r, c, $),
|
|
1347
1331
|
"aria-labelledby": Kt(e, n.key)
|
|
1348
1332
|
},
|
|
1349
1333
|
...i
|
|
1350
1334
|
};
|
|
1351
1335
|
}
|
|
1352
|
-
function
|
|
1336
|
+
function Mn(t, e, l) {
|
|
1353
1337
|
let { node: n, isVirtualized: o } = t, r = {
|
|
1354
1338
|
role: "row"
|
|
1355
1339
|
};
|
|
@@ -1357,7 +1341,7 @@ function Fn(t, e, l) {
|
|
|
1357
1341
|
rowProps: r
|
|
1358
1342
|
};
|
|
1359
1343
|
}
|
|
1360
|
-
function
|
|
1344
|
+
function Nn(t, e, l) {
|
|
1361
1345
|
var n;
|
|
1362
1346
|
let { gridCellProps: o, isPressed: r } = Rt(t, e, l), i = (n = t.node.column) === null || n === void 0 ? void 0 : n.key;
|
|
1363
1347
|
return i != null && e.collection.rowHeaderColumnKeys.has(i) && (o.role = "rowheader", o.id = Bt(e, t.node.parentKey, i)), {
|
|
@@ -1365,12 +1349,12 @@ function In(t, e, l) {
|
|
|
1365
1349
|
isPressed: r
|
|
1366
1350
|
};
|
|
1367
1351
|
}
|
|
1368
|
-
function
|
|
1352
|
+
function Tn(t) {
|
|
1369
1353
|
return t && t.__esModule ? t.default : t;
|
|
1370
1354
|
}
|
|
1371
|
-
function
|
|
1355
|
+
function Fn(t, e) {
|
|
1372
1356
|
let { key: l } = t;
|
|
1373
|
-
const { checkboxProps: n } =
|
|
1357
|
+
const { checkboxProps: n } = un(t, e);
|
|
1374
1358
|
return {
|
|
1375
1359
|
checkboxProps: {
|
|
1376
1360
|
...n,
|
|
@@ -1378,11 +1362,11 @@ function Vn(t, e) {
|
|
|
1378
1362
|
}
|
|
1379
1363
|
};
|
|
1380
1364
|
}
|
|
1381
|
-
function
|
|
1365
|
+
function In(t) {
|
|
1382
1366
|
let { isEmpty: e, isSelectAll: l, selectionMode: n } = t.selectionManager;
|
|
1383
1367
|
return {
|
|
1384
1368
|
checkboxProps: {
|
|
1385
|
-
"aria-label":
|
|
1369
|
+
"aria-label": ke(Tn(Ee), "@react-aria/table").format(n === "single" ? "select" : "selectAll"),
|
|
1386
1370
|
isSelected: l,
|
|
1387
1371
|
isDisabled: n !== "multiple" || t.collection.size === 0 || t.collection.rows.length === 1 && t.collection.rows[0].type === "loader",
|
|
1388
1372
|
isIndeterminate: !e && !l,
|
|
@@ -1390,25 +1374,25 @@ function Hn(t) {
|
|
|
1390
1374
|
}
|
|
1391
1375
|
};
|
|
1392
1376
|
}
|
|
1393
|
-
function
|
|
1377
|
+
function Wn(t) {
|
|
1394
1378
|
return t && t.__esModule ? t.default : t;
|
|
1395
1379
|
}
|
|
1396
|
-
function
|
|
1397
|
-
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize:
|
|
1398
|
-
const
|
|
1399
|
-
let
|
|
1380
|
+
function Vn(t, e, l) {
|
|
1381
|
+
let { column: n, triggerRef: o, isDisabled: r, onResizeStart: i, onResize: u, onResizeEnd: c, "aria-label": d } = t;
|
|
1382
|
+
const s = ke(Wn(Ee), "@react-aria/table");
|
|
1383
|
+
let a = je(), p = e.resizingColumn === n.key, f = A(p), h = A(null), m = A(!1), y = e.tableState.isKeyboardNavigationDisabled, { direction: v } = be(), { keyboardProps: D } = en({
|
|
1400
1384
|
onKeyDown: (x) => {
|
|
1401
1385
|
y ? (x.key === "Escape" || x.key === "Enter" || x.key === " " || x.key === "Tab") && (x.preventDefault(), b(n)) : (x.continuePropagation(), x.key === "Enter" && g(n));
|
|
1402
1386
|
}
|
|
1403
|
-
}), g =
|
|
1387
|
+
}), g = xe((x) => {
|
|
1404
1388
|
f.current || (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key)), e.startResize(x.key), e.tableState.setKeyboardNavigationDisabled(!0), i?.(h.current)), f.current = !0;
|
|
1405
|
-
}), $ =
|
|
1389
|
+
}), $ = xe((x, z) => {
|
|
1406
1390
|
let N = e.updateResizedColumns(x.key, z);
|
|
1407
|
-
|
|
1408
|
-
}), b =
|
|
1409
|
-
f.current && (h.current == null && (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1),
|
|
1391
|
+
u?.(N), h.current = N;
|
|
1392
|
+
}), b = xe((x) => {
|
|
1393
|
+
f.current && (h.current == null && (h.current = e.updateResizedColumns(x.key, e.getColumnWidth(x.key))), e.endResize(), e.tableState.setKeyboardNavigationDisabled(!1), c?.(h.current), f.current = !1, o?.current && !m.current && J(o.current)), h.current = null;
|
|
1410
1394
|
});
|
|
1411
|
-
const C = A(0), { moveProps: S } =
|
|
1395
|
+
const C = A(0), { moveProps: S } = Cn({
|
|
1412
1396
|
onMoveStart() {
|
|
1413
1397
|
C.current = e.getColumnWidth(n.key), g(n);
|
|
1414
1398
|
},
|
|
@@ -1431,11 +1415,11 @@ function On(t, e, l) {
|
|
|
1431
1415
|
E === 1 / 0 && (E = Number.MAX_SAFE_INTEGER);
|
|
1432
1416
|
let M = Math.floor(e.getColumnWidth(n.key)), V = ln();
|
|
1433
1417
|
V === "virtual" && typeof window < "u" && "ontouchstart" in window && (V = "touch");
|
|
1434
|
-
let T = o?.current == null && (V === "keyboard" || V === "virtual") && !p ?
|
|
1435
|
-
"aria-label":
|
|
1418
|
+
let T = o?.current == null && (V === "keyboard" || V === "virtual") && !p ? s.format("resizerDescription") : void 0, F = Oe(T), I = {
|
|
1419
|
+
"aria-label": d,
|
|
1436
1420
|
"aria-orientation": "horizontal",
|
|
1437
|
-
"aria-labelledby": `${
|
|
1438
|
-
"aria-valuetext":
|
|
1421
|
+
"aria-labelledby": `${a} ${At(e.tableState, n.key)}`,
|
|
1422
|
+
"aria-valuetext": s.format("columnSize", {
|
|
1439
1423
|
value: M
|
|
1440
1424
|
}),
|
|
1441
1425
|
type: "range",
|
|
@@ -1469,7 +1453,7 @@ function On(t, e, l) {
|
|
|
1469
1453
|
let ie = (x) => {
|
|
1470
1454
|
let z = e.getColumnWidth(n.key), N = parseFloat(x.target.value);
|
|
1471
1455
|
N > z ? N = z + 10 : N = z - 10, $(n, N);
|
|
1472
|
-
}, { pressProps:
|
|
1456
|
+
}, { pressProps: ue } = kt({
|
|
1473
1457
|
preventFocusOnPress: !0,
|
|
1474
1458
|
onPressStart: (x) => {
|
|
1475
1459
|
if (!(x.ctrlKey || x.altKey || x.metaKey || x.shiftKey || x.pointerType === "keyboard")) {
|
|
@@ -1483,18 +1467,18 @@ function On(t, e, l) {
|
|
|
1483
1467
|
onPress: (x) => {
|
|
1484
1468
|
(x.pointerType === "touch" && m.current || x.pointerType === "mouse") && e.resizingColumn != null && b(n);
|
|
1485
1469
|
}
|
|
1486
|
-
}), { visuallyHiddenProps: Z } =
|
|
1470
|
+
}), { visuallyHiddenProps: Z } = Me();
|
|
1487
1471
|
return {
|
|
1488
1472
|
resizerProps: H(D, {
|
|
1489
1473
|
...S,
|
|
1490
1474
|
onKeyDown: P
|
|
1491
|
-
},
|
|
1475
|
+
}, ue, {
|
|
1492
1476
|
style: {
|
|
1493
1477
|
touchAction: "none"
|
|
1494
1478
|
}
|
|
1495
1479
|
}),
|
|
1496
1480
|
inputProps: H(Z, {
|
|
1497
|
-
id:
|
|
1481
|
+
id: a,
|
|
1498
1482
|
onBlur: () => {
|
|
1499
1483
|
b(n);
|
|
1500
1484
|
},
|
|
@@ -1505,12 +1489,12 @@ function On(t, e, l) {
|
|
|
1505
1489
|
};
|
|
1506
1490
|
}
|
|
1507
1491
|
function hl() {
|
|
1508
|
-
return
|
|
1492
|
+
return kn();
|
|
1509
1493
|
}
|
|
1510
|
-
function
|
|
1494
|
+
function Hn(t) {
|
|
1511
1495
|
return t != null && (!isNaN(t) || String(t).match(/^(\d+)(?=%$)/) !== null);
|
|
1512
1496
|
}
|
|
1513
|
-
function
|
|
1497
|
+
function jn(t) {
|
|
1514
1498
|
if (!t || typeof t == "number") return 1;
|
|
1515
1499
|
let e = t.match(/^(.+)(?=fr$)/);
|
|
1516
1500
|
return e ? parseFloat(e[0]) : (process.env.NODE_ENV !== "production" && console.warn(`width: ${t} is not a supported format, width should be a number (ex. 150), percentage (ex. '50%') or fr unit (ex. '2fr')`, "defaulting to '1fr'"), 1);
|
|
@@ -1529,13 +1513,13 @@ function ml(t, e) {
|
|
|
1529
1513
|
function gl(t, e) {
|
|
1530
1514
|
return t != null ? Ye(t, e) : 0;
|
|
1531
1515
|
}
|
|
1532
|
-
function
|
|
1533
|
-
let r = !1, i = e.map((
|
|
1534
|
-
var
|
|
1535
|
-
let f = l.get(
|
|
1536
|
-
|
|
1516
|
+
function On(t, e, l, n, o) {
|
|
1517
|
+
let r = !1, i = e.map((u, c) => {
|
|
1518
|
+
var d, s, a, p;
|
|
1519
|
+
let f = l.get(u.key) != null ? (d = l.get(u.key)) !== null && d !== void 0 ? d : "1fr" : (p = (a = (s = u.width) !== null && s !== void 0 ? s : u.defaultWidth) !== null && a !== void 0 ? a : n?.(c)) !== null && p !== void 0 ? p : "1fr", h = !1, m = 0, y = 0, v = 0;
|
|
1520
|
+
Hn(f) ? (m = Ye(f, t), h = !0) : (y = jn(f), y <= 0 && (h = !0));
|
|
1537
1521
|
var D, g;
|
|
1538
|
-
let $ = gl((g = (D =
|
|
1522
|
+
let $ = gl((g = (D = u.minWidth) !== null && D !== void 0 ? D : o?.(c)) !== null && g !== void 0 ? g : 0, t), b = ml(u.maxWidth, t), C = Math.max($, Math.min(m, b));
|
|
1539
1523
|
return h ? v = C : m > C && (h = !0, v = C), h || (r = !0), {
|
|
1540
1524
|
frozen: h,
|
|
1541
1525
|
baseSize: m,
|
|
@@ -1548,37 +1532,37 @@ function Yn(t, e, l, n, o) {
|
|
|
1548
1532
|
};
|
|
1549
1533
|
});
|
|
1550
1534
|
for (; r; ) {
|
|
1551
|
-
let
|
|
1552
|
-
i.forEach((
|
|
1553
|
-
|
|
1535
|
+
let u = 0, c = 0;
|
|
1536
|
+
i.forEach((a) => {
|
|
1537
|
+
a.frozen ? u += a.targetMainSize : (u += a.baseSize, c += a.flex);
|
|
1554
1538
|
});
|
|
1555
|
-
let
|
|
1556
|
-
|
|
1557
|
-
if (!
|
|
1558
|
-
let p =
|
|
1559
|
-
|
|
1539
|
+
let d = t - u;
|
|
1540
|
+
d > 0 && i.forEach((a) => {
|
|
1541
|
+
if (!a.frozen) {
|
|
1542
|
+
let p = a.flex / c;
|
|
1543
|
+
a.targetMainSize = a.baseSize + p * d;
|
|
1560
1544
|
}
|
|
1561
1545
|
});
|
|
1562
|
-
let
|
|
1563
|
-
i.forEach((
|
|
1564
|
-
if (
|
|
1565
|
-
let { min: p, max: f, targetMainSize: h } =
|
|
1566
|
-
|
|
1546
|
+
let s = 0;
|
|
1547
|
+
i.forEach((a) => {
|
|
1548
|
+
if (a.violation = 0, !a.frozen) {
|
|
1549
|
+
let { min: p, max: f, targetMainSize: h } = a;
|
|
1550
|
+
a.targetMainSize = Math.max(p, Math.min(h, f)), a.violation = a.targetMainSize - h, s += a.violation;
|
|
1567
1551
|
}
|
|
1568
|
-
}), r = !1, i.forEach((
|
|
1569
|
-
|
|
1552
|
+
}), r = !1, i.forEach((a) => {
|
|
1553
|
+
s === 0 || Math.sign(s) === Math.sign(a.violation) ? a.frozen = !0 : a.frozen || (r = !0);
|
|
1570
1554
|
});
|
|
1571
1555
|
}
|
|
1572
|
-
return
|
|
1556
|
+
return Un(i);
|
|
1573
1557
|
}
|
|
1574
|
-
function
|
|
1558
|
+
function Un(t) {
|
|
1575
1559
|
let e = 0, l = 0, n = [];
|
|
1576
1560
|
return t.forEach(function(o) {
|
|
1577
1561
|
let r = o.targetMainSize, i = Math.round(r + e) - l;
|
|
1578
1562
|
e += r, l += i, n.push(i);
|
|
1579
1563
|
}), n;
|
|
1580
1564
|
}
|
|
1581
|
-
class
|
|
1565
|
+
class Ln {
|
|
1582
1566
|
/** Takes an array of columns and splits it into 2 maps of columns with controlled and columns with uncontrolled widths. */
|
|
1583
1567
|
splitColumnsIntoControlledAndUncontrolled(e) {
|
|
1584
1568
|
return e.reduce((l, n) => (n.props.width != null ? l[0].set(n.key, n) : l[1].set(n.key, n), l), [
|
|
@@ -1599,10 +1583,10 @@ class Gn {
|
|
|
1599
1583
|
/** Used to make an initial Map of the uncontrolled widths based on default widths. */
|
|
1600
1584
|
getInitialUncontrolledWidths(e) {
|
|
1601
1585
|
return new Map(Array.from(e).map(([l, n]) => {
|
|
1602
|
-
var o, r, i,
|
|
1586
|
+
var o, r, i, u;
|
|
1603
1587
|
return [
|
|
1604
1588
|
l,
|
|
1605
|
-
(
|
|
1589
|
+
(u = (i = n.props.defaultWidth) !== null && i !== void 0 ? i : (o = (r = this).getDefaultWidth) === null || o === void 0 ? void 0 : o.call(r, n)) !== null && u !== void 0 ? u : "1fr"
|
|
1606
1590
|
];
|
|
1607
1591
|
}));
|
|
1608
1592
|
}
|
|
@@ -1619,21 +1603,21 @@ class Gn {
|
|
|
1619
1603
|
return (l = this.columnMaxWidths.get(e)) !== null && l !== void 0 ? l : 0;
|
|
1620
1604
|
}
|
|
1621
1605
|
resizeColumnWidth(e, l, n, o) {
|
|
1622
|
-
let r = this.columnWidths, i = !0,
|
|
1623
|
-
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((
|
|
1624
|
-
var
|
|
1625
|
-
|
|
1626
|
-
}),
|
|
1606
|
+
let r = this.columnWidths, i = !0, u = /* @__PURE__ */ new Map();
|
|
1607
|
+
return o = Math.max(this.getColumnMinWidth(n), Math.min(this.getColumnMaxWidth(n), Math.floor(o))), e.columns.forEach((c) => {
|
|
1608
|
+
var d, s;
|
|
1609
|
+
c.key === n ? (u.set(c.key, o), i = !1) : i ? u.set(c.key, (d = r.get(c.key)) !== null && d !== void 0 ? d : 0) : u.set(c.key, (s = c.props.width) !== null && s !== void 0 ? s : l.get(c.key));
|
|
1610
|
+
}), u;
|
|
1627
1611
|
}
|
|
1628
1612
|
buildColumnWidths(e, l, n) {
|
|
1629
|
-
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(),
|
|
1613
|
+
return this.columnWidths = /* @__PURE__ */ new Map(), this.columnMinWidths = /* @__PURE__ */ new Map(), this.columnMaxWidths = /* @__PURE__ */ new Map(), On(e, l.columns.map((r) => ({
|
|
1630
1614
|
...r.props,
|
|
1631
1615
|
key: r.key
|
|
1632
1616
|
})), n, (r) => this.getDefaultWidth(l.columns[r]), (r) => this.getDefaultMinWidth(l.columns[r])).forEach((r, i) => {
|
|
1633
|
-
let
|
|
1634
|
-
this.columnWidths.set(
|
|
1635
|
-
var
|
|
1636
|
-
this.columnMinWidths.set(
|
|
1617
|
+
let u = l.columns[i].key, c = l.columns[i];
|
|
1618
|
+
this.columnWidths.set(u, r);
|
|
1619
|
+
var d;
|
|
1620
|
+
this.columnMinWidths.set(u, gl((d = c.props.minWidth) !== null && d !== void 0 ? d : this.getDefaultMinWidth(c), e)), this.columnMaxWidths.set(u, ml(c.props.maxWidth, e));
|
|
1637
1621
|
}), this.columnWidths;
|
|
1638
1622
|
}
|
|
1639
1623
|
constructor(e) {
|
|
@@ -1644,68 +1628,68 @@ class Gn {
|
|
|
1644
1628
|
this.getDefaultMinWidth = (n = e?.getDefaultMinWidth) !== null && n !== void 0 ? n : () => 75;
|
|
1645
1629
|
}
|
|
1646
1630
|
}
|
|
1647
|
-
function
|
|
1648
|
-
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = Q(null),
|
|
1631
|
+
function Yn(t, e) {
|
|
1632
|
+
let { getDefaultWidth: l, getDefaultMinWidth: n, tableWidth: o = 0 } = t, [r, i] = Q(null), u = K(() => new Ln({
|
|
1649
1633
|
getDefaultWidth: l,
|
|
1650
1634
|
getDefaultMinWidth: n
|
|
1651
1635
|
}), [
|
|
1652
1636
|
l,
|
|
1653
1637
|
n
|
|
1654
|
-
]), [
|
|
1638
|
+
]), [c, d] = K(() => u.splitColumnsIntoControlledAndUncontrolled(e.collection.columns), [
|
|
1655
1639
|
e.collection.columns,
|
|
1656
|
-
|
|
1657
|
-
]), [
|
|
1640
|
+
u
|
|
1641
|
+
]), [s, a] = Q(() => u.getInitialUncontrolledWidths(d)), [p, f] = Q(e.collection.columns);
|
|
1658
1642
|
if (e.collection.columns !== p) {
|
|
1659
1643
|
if (e.collection.columns.length !== p.length || e.collection.columns.some((g, $) => g.key !== p[$].key)) {
|
|
1660
|
-
let g =
|
|
1661
|
-
|
|
1644
|
+
let g = u.getInitialUncontrolledWidths(d);
|
|
1645
|
+
a(g);
|
|
1662
1646
|
}
|
|
1663
1647
|
f(e.collection.columns);
|
|
1664
1648
|
}
|
|
1665
|
-
let h = K(() =>
|
|
1649
|
+
let h = K(() => u.recombineColumns(e.collection.columns, s, d, c), [
|
|
1666
1650
|
e.collection.columns,
|
|
1651
|
+
s,
|
|
1667
1652
|
d,
|
|
1668
1653
|
c,
|
|
1669
|
-
|
|
1670
|
-
a
|
|
1654
|
+
u
|
|
1671
1655
|
]), m = j((g) => {
|
|
1672
1656
|
i(g);
|
|
1673
1657
|
}, [
|
|
1674
1658
|
i
|
|
1675
1659
|
]), y = j((g, $) => {
|
|
1676
|
-
let b =
|
|
1660
|
+
let b = u.resizeColumnWidth(e.collection, s, g, $), C = new Map(Array.from(d).map(([S]) => [
|
|
1677
1661
|
S,
|
|
1678
1662
|
b.get(S)
|
|
1679
1663
|
]));
|
|
1680
|
-
return C.set(g, $),
|
|
1664
|
+
return C.set(g, $), a(C), b;
|
|
1681
1665
|
}, [
|
|
1682
|
-
|
|
1683
|
-
u,
|
|
1666
|
+
d,
|
|
1684
1667
|
a,
|
|
1668
|
+
u,
|
|
1685
1669
|
e.collection,
|
|
1686
|
-
|
|
1670
|
+
s
|
|
1687
1671
|
]), v = j(() => {
|
|
1688
1672
|
i(null);
|
|
1689
1673
|
}, [
|
|
1690
1674
|
i
|
|
1691
|
-
]), D = K(() =>
|
|
1675
|
+
]), D = K(() => u.buildColumnWidths(o, e.collection, h), [
|
|
1692
1676
|
o,
|
|
1693
1677
|
e.collection,
|
|
1694
1678
|
h,
|
|
1695
|
-
|
|
1679
|
+
u
|
|
1696
1680
|
]);
|
|
1697
1681
|
return K(() => ({
|
|
1698
1682
|
resizingColumn: r,
|
|
1699
1683
|
updateResizedColumns: y,
|
|
1700
1684
|
startResize: m,
|
|
1701
1685
|
endResize: v,
|
|
1702
|
-
getColumnWidth: (g) =>
|
|
1703
|
-
getColumnMinWidth: (g) =>
|
|
1704
|
-
getColumnMaxWidth: (g) =>
|
|
1686
|
+
getColumnWidth: (g) => u.getColumnWidth(g),
|
|
1687
|
+
getColumnMinWidth: (g) => u.getColumnMinWidth(g),
|
|
1688
|
+
getColumnMaxWidth: (g) => u.getColumnMaxWidth(g),
|
|
1705
1689
|
tableState: e,
|
|
1706
1690
|
columnWidths: D
|
|
1707
1691
|
}), [
|
|
1708
|
-
|
|
1692
|
+
u,
|
|
1709
1693
|
D,
|
|
1710
1694
|
r,
|
|
1711
1695
|
y,
|
|
@@ -1714,51 +1698,51 @@ function qn(t, e) {
|
|
|
1714
1698
|
e
|
|
1715
1699
|
]);
|
|
1716
1700
|
}
|
|
1717
|
-
function
|
|
1701
|
+
function Xn(t) {
|
|
1718
1702
|
let { collection: e, focusMode: l } = t, n = t.UNSAFE_selectionState || Dt(t), o = K(() => t.disabledKeys ? new Set(t.disabledKeys) : /* @__PURE__ */ new Set(), [
|
|
1719
1703
|
t.disabledKeys
|
|
1720
1704
|
]), r = n.setFocusedKey;
|
|
1721
|
-
n.setFocusedKey = (
|
|
1722
|
-
if (l === "cell" &&
|
|
1723
|
-
let h = e.getItem(
|
|
1705
|
+
n.setFocusedKey = (c, d) => {
|
|
1706
|
+
if (l === "cell" && c != null) {
|
|
1707
|
+
let h = e.getItem(c);
|
|
1724
1708
|
if (h?.type === "item") {
|
|
1725
|
-
var
|
|
1709
|
+
var s, a;
|
|
1726
1710
|
let m = W(h, e);
|
|
1727
1711
|
var p, f;
|
|
1728
|
-
|
|
1712
|
+
d === "last" ? c = (p = (s = ne(m)) === null || s === void 0 ? void 0 : s.key) !== null && p !== void 0 ? p : null : c = (f = (a = le(m)) === null || a === void 0 ? void 0 : a.key) !== null && f !== void 0 ? f : null;
|
|
1729
1713
|
}
|
|
1730
1714
|
}
|
|
1731
|
-
r(
|
|
1715
|
+
r(c, d);
|
|
1732
1716
|
};
|
|
1733
1717
|
let i = K(() => new Ml(e, n), [
|
|
1734
1718
|
e,
|
|
1735
1719
|
n
|
|
1736
1720
|
]);
|
|
1737
|
-
const
|
|
1721
|
+
const u = A(null);
|
|
1738
1722
|
return se(() => {
|
|
1739
|
-
if (n.focusedKey != null &&
|
|
1740
|
-
const
|
|
1741
|
-
if (!
|
|
1723
|
+
if (n.focusedKey != null && u.current && !e.getItem(n.focusedKey)) {
|
|
1724
|
+
const c = u.current.getItem(n.focusedKey), d = c?.parentKey != null && (c.type === "cell" || c.type === "rowheader" || c.type === "column") ? u.current.getItem(c.parentKey) : c;
|
|
1725
|
+
if (!d) {
|
|
1742
1726
|
n.setFocusedKey(null);
|
|
1743
1727
|
return;
|
|
1744
1728
|
}
|
|
1745
|
-
const
|
|
1746
|
-
let f = Math.min(p > 1 ? Math.max(
|
|
1729
|
+
const s = u.current.rows, a = e.rows, p = s.length - a.length;
|
|
1730
|
+
let f = Math.min(p > 1 ? Math.max(d.index - p + 1, 0) : d.index, a.length - 1), h = null;
|
|
1747
1731
|
for (; f >= 0; ) {
|
|
1748
|
-
if (!i.isDisabled(
|
|
1749
|
-
h =
|
|
1732
|
+
if (!i.isDisabled(a[f].key) && a[f].type !== "headerrow") {
|
|
1733
|
+
h = a[f];
|
|
1750
1734
|
break;
|
|
1751
1735
|
}
|
|
1752
|
-
f <
|
|
1736
|
+
f < a.length - 1 ? f++ : (f > d.index && (f = d.index), f--);
|
|
1753
1737
|
}
|
|
1754
1738
|
if (h) {
|
|
1755
1739
|
const m = h.hasChildNodes ? [
|
|
1756
1740
|
...W(h, e)
|
|
1757
|
-
] : [], y = h.hasChildNodes &&
|
|
1741
|
+
] : [], y = h.hasChildNodes && d !== c && c && c.index < m.length ? m[c.index].key : h.key;
|
|
1758
1742
|
n.setFocusedKey(y);
|
|
1759
1743
|
} else n.setFocusedKey(null);
|
|
1760
1744
|
}
|
|
1761
|
-
|
|
1745
|
+
u.current = e;
|
|
1762
1746
|
}, [
|
|
1763
1747
|
e,
|
|
1764
1748
|
i,
|
|
@@ -1771,7 +1755,7 @@ function Zn(t) {
|
|
|
1771
1755
|
selectionManager: i
|
|
1772
1756
|
};
|
|
1773
1757
|
}
|
|
1774
|
-
class
|
|
1758
|
+
class Gn {
|
|
1775
1759
|
*[Symbol.iterator]() {
|
|
1776
1760
|
yield* [
|
|
1777
1761
|
...this.rows
|
|
@@ -1824,47 +1808,47 @@ class Jn {
|
|
|
1824
1808
|
}
|
|
1825
1809
|
constructor(e) {
|
|
1826
1810
|
this.keyMap = /* @__PURE__ */ new Map(), this.keyMap = /* @__PURE__ */ new Map(), this.columnCount = e?.columnCount, this.rows = [];
|
|
1827
|
-
let l = (
|
|
1828
|
-
let p = this.keyMap.get(
|
|
1829
|
-
e.visitNode && (
|
|
1811
|
+
let l = (a) => {
|
|
1812
|
+
let p = this.keyMap.get(a.key);
|
|
1813
|
+
e.visitNode && (a = e.visitNode(a)), this.keyMap.set(a.key, a);
|
|
1830
1814
|
let f = /* @__PURE__ */ new Set(), h = null, m = !1;
|
|
1831
|
-
if (
|
|
1815
|
+
if (a.type === "item") {
|
|
1832
1816
|
var y;
|
|
1833
|
-
for (let b of
|
|
1817
|
+
for (let b of a.childNodes) if (((y = b.props) === null || y === void 0 ? void 0 : y.colSpan) !== void 0) {
|
|
1834
1818
|
m = !0;
|
|
1835
1819
|
break;
|
|
1836
1820
|
}
|
|
1837
1821
|
}
|
|
1838
|
-
for (let b of
|
|
1822
|
+
for (let b of a.childNodes) {
|
|
1839
1823
|
if (b.type === "cell" && m) {
|
|
1840
1824
|
var v, D;
|
|
1841
1825
|
b.colspan = (v = b.props) === null || v === void 0 ? void 0 : v.colSpan, b.colSpan = (D = b.props) === null || D === void 0 ? void 0 : D.colSpan;
|
|
1842
1826
|
var g, $;
|
|
1843
1827
|
b.colIndex = h ? ((g = h.colIndex) !== null && g !== void 0 ? g : h.index) + (($ = h.colSpan) !== null && $ !== void 0 ? $ : 1) : b.index;
|
|
1844
1828
|
}
|
|
1845
|
-
b.type === "cell" && b.parentKey == null && (b.parentKey =
|
|
1829
|
+
b.type === "cell" && b.parentKey == null && (b.parentKey = a.key), f.add(b.key), h ? (h.nextKey = b.key, b.prevKey = h.key) : b.prevKey = null, l(b), h = b;
|
|
1846
1830
|
}
|
|
1847
1831
|
if (h && (h.nextKey = null), p)
|
|
1848
1832
|
for (let b of p.childNodes) f.has(b.key) || n(b);
|
|
1849
|
-
}, n = (
|
|
1850
|
-
this.keyMap.delete(
|
|
1851
|
-
for (let p of
|
|
1833
|
+
}, n = (a) => {
|
|
1834
|
+
this.keyMap.delete(a.key);
|
|
1835
|
+
for (let p of a.childNodes) this.keyMap.get(p.key) === p && n(p);
|
|
1852
1836
|
}, o = null;
|
|
1853
|
-
for (let [
|
|
1854
|
-
var r, i,
|
|
1837
|
+
for (let [a, p] of e.items.entries()) {
|
|
1838
|
+
var r, i, u, c, d, s;
|
|
1855
1839
|
let f = {
|
|
1856
1840
|
...p,
|
|
1857
1841
|
level: (r = p.level) !== null && r !== void 0 ? r : 0,
|
|
1858
|
-
key: (i = p.key) !== null && i !== void 0 ? i : "row-" +
|
|
1859
|
-
type: (
|
|
1860
|
-
value: (
|
|
1842
|
+
key: (i = p.key) !== null && i !== void 0 ? i : "row-" + a,
|
|
1843
|
+
type: (u = p.type) !== null && u !== void 0 ? u : "row",
|
|
1844
|
+
value: (c = p.value) !== null && c !== void 0 ? c : null,
|
|
1861
1845
|
hasChildNodes: !0,
|
|
1862
1846
|
childNodes: [
|
|
1863
1847
|
...p.childNodes
|
|
1864
1848
|
],
|
|
1865
1849
|
rendered: p.rendered,
|
|
1866
|
-
textValue: (
|
|
1867
|
-
index: (
|
|
1850
|
+
textValue: (d = p.textValue) !== null && d !== void 0 ? d : "",
|
|
1851
|
+
index: (s = p.index) !== null && s !== void 0 ? s : a
|
|
1868
1852
|
};
|
|
1869
1853
|
o ? (o.nextKey = f.key, f.prevKey = o.key) : f.prevKey = null, this.rows.push(f), l(f), o = f;
|
|
1870
1854
|
}
|
|
@@ -1872,17 +1856,17 @@ class Jn {
|
|
|
1872
1856
|
}
|
|
1873
1857
|
}
|
|
1874
1858
|
const bl = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1875
|
-
let
|
|
1876
|
-
for (; bl ===
|
|
1859
|
+
let We = "row-header-column-" + /* @__PURE__ */ Math.random().toString(36).slice(2);
|
|
1860
|
+
for (; bl === We; ) We = "row-header-column-" + Math.random().toString(36).slice(2);
|
|
1877
1861
|
function vl(t, e) {
|
|
1878
1862
|
if (e.length === 0) return [];
|
|
1879
1863
|
let l = [], n = /* @__PURE__ */ new Map();
|
|
1880
|
-
for (let
|
|
1881
|
-
let
|
|
1882
|
-
|
|
1864
|
+
for (let s of e) {
|
|
1865
|
+
let a = s.parentKey, p = [
|
|
1866
|
+
s
|
|
1883
1867
|
];
|
|
1884
|
-
for (;
|
|
1885
|
-
let f = t.get(
|
|
1868
|
+
for (; a; ) {
|
|
1869
|
+
let f = t.get(a);
|
|
1886
1870
|
if (!f) break;
|
|
1887
1871
|
if (n.has(f)) {
|
|
1888
1872
|
var o, r;
|
|
@@ -1897,79 +1881,79 @@ function vl(t, e) {
|
|
|
1897
1881
|
column: p,
|
|
1898
1882
|
index: p.length - 1
|
|
1899
1883
|
});
|
|
1900
|
-
|
|
1884
|
+
a = f.parentKey;
|
|
1901
1885
|
}
|
|
1902
|
-
l.push(p),
|
|
1886
|
+
l.push(p), s.index = l.length - 1;
|
|
1903
1887
|
}
|
|
1904
|
-
let i = Math.max(...l.map((
|
|
1905
|
-
for (let
|
|
1906
|
-
let
|
|
1907
|
-
for (let p of
|
|
1888
|
+
let i = Math.max(...l.map((s) => s.length)), u = Array(i).fill(0).map(() => []), c = 0;
|
|
1889
|
+
for (let s of l) {
|
|
1890
|
+
let a = i - 1;
|
|
1891
|
+
for (let p of s) {
|
|
1908
1892
|
if (p) {
|
|
1909
|
-
let f = a
|
|
1893
|
+
let f = u[a], h = f.reduce((m, y) => {
|
|
1910
1894
|
var v;
|
|
1911
1895
|
return m + ((v = y.colSpan) !== null && v !== void 0 ? v : 1);
|
|
1912
1896
|
}, 0);
|
|
1913
|
-
if (h <
|
|
1897
|
+
if (h < c) {
|
|
1914
1898
|
let m = {
|
|
1915
1899
|
type: "placeholder",
|
|
1916
1900
|
key: "placeholder-" + p.key,
|
|
1917
|
-
colspan:
|
|
1918
|
-
colSpan:
|
|
1901
|
+
colspan: c - h,
|
|
1902
|
+
colSpan: c - h,
|
|
1919
1903
|
index: h,
|
|
1920
1904
|
value: null,
|
|
1921
1905
|
rendered: null,
|
|
1922
|
-
level:
|
|
1906
|
+
level: a,
|
|
1923
1907
|
hasChildNodes: !1,
|
|
1924
1908
|
childNodes: [],
|
|
1925
1909
|
textValue: ""
|
|
1926
1910
|
};
|
|
1927
1911
|
f.length > 0 && (f[f.length - 1].nextKey = m.key, m.prevKey = f[f.length - 1].key), f.push(m);
|
|
1928
1912
|
}
|
|
1929
|
-
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level =
|
|
1913
|
+
f.length > 0 && (f[f.length - 1].nextKey = p.key, p.prevKey = f[f.length - 1].key), p.level = a, p.colIndex = c, f.push(p);
|
|
1930
1914
|
}
|
|
1931
|
-
|
|
1915
|
+
a--;
|
|
1932
1916
|
}
|
|
1933
|
-
|
|
1917
|
+
c++;
|
|
1934
1918
|
}
|
|
1935
|
-
let
|
|
1936
|
-
for (let
|
|
1937
|
-
let
|
|
1919
|
+
let d = 0;
|
|
1920
|
+
for (let s of u) {
|
|
1921
|
+
let a = s.reduce((p, f) => {
|
|
1938
1922
|
var h;
|
|
1939
1923
|
return p + ((h = f.colSpan) !== null && h !== void 0 ? h : 1);
|
|
1940
1924
|
}, 0);
|
|
1941
|
-
if (
|
|
1925
|
+
if (a < e.length) {
|
|
1942
1926
|
let p = {
|
|
1943
1927
|
type: "placeholder",
|
|
1944
|
-
key: "placeholder-" +
|
|
1945
|
-
colSpan: e.length -
|
|
1946
|
-
colspan: e.length -
|
|
1947
|
-
index:
|
|
1928
|
+
key: "placeholder-" + s[s.length - 1].key,
|
|
1929
|
+
colSpan: e.length - a,
|
|
1930
|
+
colspan: e.length - a,
|
|
1931
|
+
index: a,
|
|
1948
1932
|
value: null,
|
|
1949
1933
|
rendered: null,
|
|
1950
|
-
level:
|
|
1934
|
+
level: d,
|
|
1951
1935
|
hasChildNodes: !1,
|
|
1952
1936
|
childNodes: [],
|
|
1953
1937
|
textValue: "",
|
|
1954
|
-
prevKey:
|
|
1938
|
+
prevKey: s[s.length - 1].key
|
|
1955
1939
|
};
|
|
1956
|
-
|
|
1940
|
+
s.push(p);
|
|
1957
1941
|
}
|
|
1958
|
-
|
|
1942
|
+
d++;
|
|
1959
1943
|
}
|
|
1960
|
-
return
|
|
1944
|
+
return u.map((s, a) => ({
|
|
1961
1945
|
type: "headerrow",
|
|
1962
|
-
key: "headerrow-" +
|
|
1963
|
-
index:
|
|
1946
|
+
key: "headerrow-" + a,
|
|
1947
|
+
index: a,
|
|
1964
1948
|
value: null,
|
|
1965
1949
|
rendered: null,
|
|
1966
1950
|
level: 0,
|
|
1967
1951
|
hasChildNodes: !0,
|
|
1968
|
-
childNodes:
|
|
1952
|
+
childNodes: s,
|
|
1969
1953
|
textValue: ""
|
|
1970
1954
|
}));
|
|
1971
1955
|
}
|
|
1972
|
-
class
|
|
1956
|
+
class qn extends Gn {
|
|
1973
1957
|
*[Symbol.iterator]() {
|
|
1974
1958
|
yield* this.body.childNodes;
|
|
1975
1959
|
}
|
|
@@ -2028,7 +2012,7 @@ class Qn extends Jn {
|
|
|
2028
2012
|
constructor(e, l, n) {
|
|
2029
2013
|
let o = /* @__PURE__ */ new Set(), r = null, i = [];
|
|
2030
2014
|
if (n?.showSelectionCheckboxes) {
|
|
2031
|
-
let
|
|
2015
|
+
let a = {
|
|
2032
2016
|
type: "column",
|
|
2033
2017
|
key: bl,
|
|
2034
2018
|
value: null,
|
|
@@ -2042,12 +2026,12 @@ class Qn extends Jn {
|
|
|
2042
2026
|
isSelectionCell: !0
|
|
2043
2027
|
}
|
|
2044
2028
|
};
|
|
2045
|
-
i.unshift(
|
|
2029
|
+
i.unshift(a);
|
|
2046
2030
|
}
|
|
2047
2031
|
if (n?.showDragButtons) {
|
|
2048
|
-
let
|
|
2032
|
+
let a = {
|
|
2049
2033
|
type: "column",
|
|
2050
|
-
key:
|
|
2034
|
+
key: We,
|
|
2051
2035
|
value: null,
|
|
2052
2036
|
textValue: "",
|
|
2053
2037
|
level: 0,
|
|
@@ -2059,44 +2043,44 @@ class Qn extends Jn {
|
|
|
2059
2043
|
isDragButtonCell: !0
|
|
2060
2044
|
}
|
|
2061
2045
|
};
|
|
2062
|
-
i.unshift(
|
|
2046
|
+
i.unshift(a);
|
|
2063
2047
|
}
|
|
2064
|
-
let
|
|
2065
|
-
switch (
|
|
2048
|
+
let u = [], c = /* @__PURE__ */ new Map(), d = (a) => {
|
|
2049
|
+
switch (a.type) {
|
|
2066
2050
|
case "body":
|
|
2067
|
-
r =
|
|
2051
|
+
r = a;
|
|
2068
2052
|
break;
|
|
2069
2053
|
case "column":
|
|
2070
|
-
|
|
2054
|
+
c.set(a.key, a), a.hasChildNodes || (i.push(a), a.props.isRowHeader && o.add(a.key));
|
|
2071
2055
|
break;
|
|
2072
2056
|
case "item":
|
|
2073
|
-
|
|
2057
|
+
u.push(a);
|
|
2074
2058
|
return;
|
|
2075
2059
|
}
|
|
2076
|
-
for (let p of
|
|
2060
|
+
for (let p of a.childNodes) d(p);
|
|
2077
2061
|
};
|
|
2078
|
-
for (let
|
|
2079
|
-
let
|
|
2080
|
-
if (
|
|
2062
|
+
for (let a of e) d(a);
|
|
2063
|
+
let s = vl(c, i);
|
|
2064
|
+
if (s.forEach((a, p) => u.splice(p, 0, a)), super({
|
|
2081
2065
|
columnCount: i.length,
|
|
2082
|
-
items:
|
|
2083
|
-
visitNode: (
|
|
2084
|
-
}), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows =
|
|
2066
|
+
items: u,
|
|
2067
|
+
visitNode: (a) => (a.column = i[a.index], a)
|
|
2068
|
+
}), this._size = 0, this.columns = i, this.rowHeaderColumnKeys = o, this.body = r, this.headerRows = s, this._size = [
|
|
2085
2069
|
...r.childNodes
|
|
2086
2070
|
].length, this.rowHeaderColumnKeys.size === 0) {
|
|
2087
|
-
let
|
|
2071
|
+
let a = this.columns.find((p) => {
|
|
2088
2072
|
var f, h;
|
|
2089
2073
|
return !(!((f = p.props) === null || f === void 0) && f.isDragButtonCell) && !(!((h = p.props) === null || h === void 0) && h.isSelectionCell);
|
|
2090
2074
|
});
|
|
2091
|
-
|
|
2075
|
+
a && this.rowHeaderColumnKeys.add(a.key);
|
|
2092
2076
|
}
|
|
2093
2077
|
}
|
|
2094
2078
|
}
|
|
2095
|
-
const
|
|
2079
|
+
const Zn = {
|
|
2096
2080
|
ascending: "descending",
|
|
2097
2081
|
descending: "ascending"
|
|
2098
2082
|
};
|
|
2099
|
-
function
|
|
2083
|
+
function Jn(t) {
|
|
2100
2084
|
let [e, l] = Q(!1), { selectionMode: n = "none", showSelectionCheckboxes: o, showDragButtons: r } = t, i = K(() => ({
|
|
2101
2085
|
showSelectionCheckboxes: o && n !== "none",
|
|
2102
2086
|
showDragButtons: r,
|
|
@@ -2107,32 +2091,32 @@ function eo(t) {
|
|
|
2107
2091
|
o,
|
|
2108
2092
|
n,
|
|
2109
2093
|
r
|
|
2110
|
-
]),
|
|
2094
|
+
]), u = Nl(t, j((a) => new qn(a, null, i), [
|
|
2111
2095
|
i
|
|
2112
|
-
]), i), { disabledKeys:
|
|
2096
|
+
]), i), { disabledKeys: c, selectionManager: d } = Xn({
|
|
2113
2097
|
...t,
|
|
2114
|
-
collection:
|
|
2098
|
+
collection: u,
|
|
2115
2099
|
disabledBehavior: t.disabledBehavior || "selection"
|
|
2116
2100
|
});
|
|
2117
|
-
var
|
|
2101
|
+
var s;
|
|
2118
2102
|
return {
|
|
2119
|
-
collection:
|
|
2120
|
-
disabledKeys:
|
|
2121
|
-
selectionManager:
|
|
2103
|
+
collection: u,
|
|
2104
|
+
disabledKeys: c,
|
|
2105
|
+
selectionManager: d,
|
|
2122
2106
|
showSelectionCheckboxes: t.showSelectionCheckboxes || !1,
|
|
2123
|
-
sortDescriptor: (
|
|
2124
|
-
isKeyboardNavigationDisabled:
|
|
2107
|
+
sortDescriptor: (s = t.sortDescriptor) !== null && s !== void 0 ? s : null,
|
|
2108
|
+
isKeyboardNavigationDisabled: u.size === 0 || e,
|
|
2125
2109
|
setKeyboardNavigationDisabled: l,
|
|
2126
|
-
sort(
|
|
2110
|
+
sort(a, p) {
|
|
2127
2111
|
var f, h;
|
|
2128
2112
|
(h = t.onSortChange) === null || h === void 0 || h.call(t, {
|
|
2129
|
-
column:
|
|
2130
|
-
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) ===
|
|
2113
|
+
column: a,
|
|
2114
|
+
direction: p ?? (((f = t.sortDescriptor) === null || f === void 0 ? void 0 : f.column) === a ? Zn[t.sortDescriptor.direction] : "ascending")
|
|
2131
2115
|
});
|
|
2132
2116
|
}
|
|
2133
2117
|
};
|
|
2134
2118
|
}
|
|
2135
|
-
function
|
|
2119
|
+
function Qn(t, e) {
|
|
2136
2120
|
let l = K(() => e ? t.collection.filter(e) : t.collection, [
|
|
2137
2121
|
t.collection,
|
|
2138
2122
|
e
|
|
@@ -2143,22 +2127,22 @@ function to(t, e) {
|
|
|
2143
2127
|
selectionManager: n
|
|
2144
2128
|
};
|
|
2145
2129
|
}
|
|
2146
|
-
function
|
|
2130
|
+
function _n(t) {
|
|
2147
2131
|
return t && t.__esModule ? t.default : t;
|
|
2148
2132
|
}
|
|
2149
|
-
class
|
|
2133
|
+
class eo extends Ll {
|
|
2150
2134
|
addNode(e) {
|
|
2151
2135
|
super.addNode(e), this.columnsDirty || (this.columnsDirty = e.type === "column"), e.type === "tableheader" && (this.head = e), e.type === "tablebody" && (this.body = e);
|
|
2152
2136
|
}
|
|
2153
2137
|
commit(e, l, n = !1) {
|
|
2154
2138
|
this.updateColumns(n), this.rows = [];
|
|
2155
2139
|
for (let i of this.getChildren(this.body.key)) {
|
|
2156
|
-
let
|
|
2157
|
-
if (
|
|
2158
|
-
let
|
|
2140
|
+
let u = i.lastChildKey;
|
|
2141
|
+
if (u != null) {
|
|
2142
|
+
let c = this.getItem(u);
|
|
2159
2143
|
var o, r;
|
|
2160
|
-
let
|
|
2161
|
-
if (
|
|
2144
|
+
let d = ((o = c.colIndex) !== null && o !== void 0 ? o : c.index) + ((r = c.colSpan) !== null && r !== void 0 ? r : 1);
|
|
2145
|
+
if (d !== this.columns.length && !n) throw new Error(`Cell count must match column count. Found ${d} cells and ${this.columns.length} columns.`);
|
|
2162
2146
|
}
|
|
2163
2147
|
this.rows.push(i);
|
|
2164
2148
|
}
|
|
@@ -2229,30 +2213,30 @@ class no extends Ll {
|
|
|
2229
2213
|
super(...e), this.headerRows = [], this.columns = [], this.rows = [], this.rowHeaderColumnKeys = /* @__PURE__ */ new Set(), this.head = new qe(-1), this.body = new Ze(-2), this.columnsDirty = !0;
|
|
2230
2214
|
}
|
|
2231
2215
|
}
|
|
2232
|
-
const Xe = /* @__PURE__ */ de(null),
|
|
2233
|
-
let n = G(l), o = A(null), r = A(null), [i,
|
|
2216
|
+
const Xe = /* @__PURE__ */ de(null), to = /* @__PURE__ */ Ae(function(e, l) {
|
|
2217
|
+
let n = G(l), o = A(null), r = A(null), [i, u] = Q(0);
|
|
2234
2218
|
dt(() => {
|
|
2235
|
-
let
|
|
2236
|
-
for (;
|
|
2237
|
-
r.current =
|
|
2219
|
+
let d = o.current;
|
|
2220
|
+
for (; d && d !== n.current && !ql(d); ) d = d.parentElement;
|
|
2221
|
+
r.current = d;
|
|
2238
2222
|
}, [
|
|
2239
2223
|
n
|
|
2240
2224
|
]), Gl({
|
|
2241
2225
|
ref: r,
|
|
2242
2226
|
box: "border-box",
|
|
2243
2227
|
onResize() {
|
|
2244
|
-
var
|
|
2245
|
-
|
|
2228
|
+
var d, s;
|
|
2229
|
+
u((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2246
2230
|
}
|
|
2247
2231
|
}), dt(() => {
|
|
2248
|
-
var
|
|
2249
|
-
|
|
2232
|
+
var d, s;
|
|
2233
|
+
u((s = (d = r.current) === null || d === void 0 ? void 0 : d.clientWidth) !== null && s !== void 0 ? s : 0);
|
|
2250
2234
|
}, []);
|
|
2251
|
-
let
|
|
2235
|
+
let c = K(() => ({
|
|
2252
2236
|
tableRef: o,
|
|
2253
2237
|
scrollRef: r,
|
|
2254
2238
|
tableWidth: i,
|
|
2255
|
-
useTableColumnResizeState:
|
|
2239
|
+
useTableColumnResizeState: Yn,
|
|
2256
2240
|
onResizeStart: e.onResizeStart,
|
|
2257
2241
|
onResize: e.onResize,
|
|
2258
2242
|
onResizeEnd: e.onResizeEnd
|
|
@@ -2272,51 +2256,51 @@ const Xe = /* @__PURE__ */ de(null), oo = /* @__PURE__ */ Ae(function(e, l) {
|
|
|
2272
2256
|
style: e.style,
|
|
2273
2257
|
onScroll: e.onScroll
|
|
2274
2258
|
}, /* @__PURE__ */ k.createElement(Xe.Provider, {
|
|
2275
|
-
value:
|
|
2259
|
+
value: c
|
|
2276
2260
|
}, e.children));
|
|
2277
|
-
}),
|
|
2261
|
+
}), lo = /* @__PURE__ */ de(null), te = /* @__PURE__ */ de(null), Ge = /* @__PURE__ */ de(null), no = /* @__PURE__ */ Ae(function(e, l) {
|
|
2278
2262
|
var n;
|
|
2279
|
-
[e, l] = wt(e, l,
|
|
2280
|
-
let o = Dt(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection:
|
|
2263
|
+
[e, l] = wt(e, l, lo);
|
|
2264
|
+
let o = Dt(e), { selectionBehavior: r, selectionMode: i, disallowEmptySelection: u } = o, c = !!(!((n = e.dragAndDropHooks) === null || n === void 0) && n.useDraggableCollectionState), d = K(() => ({
|
|
2281
2265
|
selectionBehavior: i === "none" ? null : r,
|
|
2282
2266
|
selectionMode: i,
|
|
2283
|
-
disallowEmptySelection:
|
|
2284
|
-
allowsDragging:
|
|
2267
|
+
disallowEmptySelection: u,
|
|
2268
|
+
allowsDragging: c
|
|
2285
2269
|
}), [
|
|
2286
2270
|
r,
|
|
2287
2271
|
i,
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
]),
|
|
2291
|
-
value:
|
|
2292
|
-
}, /* @__PURE__ */ k.createElement(
|
|
2272
|
+
u,
|
|
2273
|
+
c
|
|
2274
|
+
]), s = /* @__PURE__ */ k.createElement(yl.Provider, {
|
|
2275
|
+
value: d
|
|
2276
|
+
}, /* @__PURE__ */ k.createElement(we, e));
|
|
2293
2277
|
return /* @__PURE__ */ k.createElement(Ol, {
|
|
2294
|
-
content:
|
|
2295
|
-
createCollection: () => new
|
|
2296
|
-
}, (
|
|
2278
|
+
content: s,
|
|
2279
|
+
createCollection: () => new eo()
|
|
2280
|
+
}, (a) => /* @__PURE__ */ k.createElement(oo, {
|
|
2297
2281
|
props: e,
|
|
2298
2282
|
forwardedRef: l,
|
|
2299
2283
|
selectionState: o,
|
|
2300
|
-
collection:
|
|
2284
|
+
collection: a
|
|
2301
2285
|
}));
|
|
2302
2286
|
});
|
|
2303
|
-
function
|
|
2304
|
-
[t, e] = wt(t, e,
|
|
2305
|
-
let { shouldUseVirtualFocus: o, disallowTypeAhead: r, filter: i, ...
|
|
2306
|
-
e = G(K(() => Tl(e,
|
|
2287
|
+
function oo({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
2288
|
+
[t, e] = wt(t, e, at);
|
|
2289
|
+
let { shouldUseVirtualFocus: o, disallowTypeAhead: r, filter: i, ...u } = t, c = R(Xe);
|
|
2290
|
+
e = G(K(() => Tl(e, c?.tableRef), [
|
|
2307
2291
|
e,
|
|
2308
|
-
|
|
2292
|
+
c?.tableRef
|
|
2309
2293
|
]));
|
|
2310
|
-
let
|
|
2311
|
-
...
|
|
2294
|
+
let d = Jn({
|
|
2295
|
+
...u,
|
|
2312
2296
|
collection: n,
|
|
2313
2297
|
children: void 0,
|
|
2314
2298
|
UNSAFE_selectionState: l
|
|
2315
|
-
}),
|
|
2316
|
-
...
|
|
2299
|
+
}), s = Qn(d, i), { isVirtualized: a, layoutDelegate: p, dropTargetDelegate: f, CollectionRoot: h } = R(_), { dragAndDropHooks: m } = t, { gridProps: y } = Rn({
|
|
2300
|
+
...u,
|
|
2317
2301
|
layoutDelegate: p,
|
|
2318
|
-
isVirtualized:
|
|
2319
|
-
},
|
|
2302
|
+
isVirtualized: a
|
|
2303
|
+
}, s, e), v = s.selectionManager, D = !!m?.useDraggableCollectionState, g = !!m?.useDroppableCollectionState, $ = A(D), b = A(g);
|
|
2320
2304
|
se(() => {
|
|
2321
2305
|
process.env.NODE_ENV !== "production" && ($.current !== D && console.warn("Drag hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."), b.current !== g && console.warn("Drop hooks were provided during one render, but not another. This should be avoided as it may produce unexpected behavior."));
|
|
2322
2306
|
}, [
|
|
@@ -2326,7 +2310,7 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2326
2310
|
let C, S, P, B = !1, E = null, M = A(null);
|
|
2327
2311
|
if (D && m) {
|
|
2328
2312
|
C = m.useDraggableCollectionState({
|
|
2329
|
-
collection:
|
|
2313
|
+
collection: s.collection,
|
|
2330
2314
|
selectionManager: v,
|
|
2331
2315
|
preview: m.renderDragPreview ? M : void 0
|
|
2332
2316
|
}), m.useDraggableCollection({}, C, e);
|
|
@@ -2337,11 +2321,11 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2337
2321
|
}
|
|
2338
2322
|
if (g && m) {
|
|
2339
2323
|
S = m.useDroppableCollectionState({
|
|
2340
|
-
collection:
|
|
2324
|
+
collection: s.collection,
|
|
2341
2325
|
selectionManager: v
|
|
2342
2326
|
});
|
|
2343
|
-
let x = new
|
|
2344
|
-
collection:
|
|
2327
|
+
let x = new sn({
|
|
2328
|
+
collection: s.collection,
|
|
2345
2329
|
disabledKeys: v.disabledKeys,
|
|
2346
2330
|
disabledBehavior: v.disabledBehavior,
|
|
2347
2331
|
ref: e,
|
|
@@ -2362,17 +2346,17 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2362
2346
|
isDropTarget: B,
|
|
2363
2347
|
isFocused: T,
|
|
2364
2348
|
isFocusVisible: F,
|
|
2365
|
-
state:
|
|
2349
|
+
state: s
|
|
2366
2350
|
}
|
|
2367
2351
|
}), Y = !!(D && !C?.isDisabled), U = I.style, q = null;
|
|
2368
|
-
|
|
2369
|
-
tableWidth:
|
|
2370
|
-
},
|
|
2352
|
+
c && (q = c.useTableColumnResizeState({
|
|
2353
|
+
tableWidth: c.tableWidth
|
|
2354
|
+
}, s), a || (U = {
|
|
2371
2355
|
...U,
|
|
2372
2356
|
tableLayout: "fixed",
|
|
2373
2357
|
width: "fit-content"
|
|
2374
2358
|
}));
|
|
2375
|
-
let ie = O("table"),
|
|
2359
|
+
let ie = O("table"), ue = ee(t, {
|
|
2376
2360
|
global: !0
|
|
2377
2361
|
});
|
|
2378
2362
|
var Z;
|
|
@@ -2380,7 +2364,7 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2380
2364
|
values: [
|
|
2381
2365
|
[
|
|
2382
2366
|
te,
|
|
2383
|
-
|
|
2367
|
+
s
|
|
2384
2368
|
],
|
|
2385
2369
|
[
|
|
2386
2370
|
Ge,
|
|
@@ -2397,11 +2381,11 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2397
2381
|
[
|
|
2398
2382
|
Il,
|
|
2399
2383
|
{
|
|
2400
|
-
render:
|
|
2384
|
+
render: fo
|
|
2401
2385
|
}
|
|
2402
2386
|
],
|
|
2403
2387
|
[
|
|
2404
|
-
|
|
2388
|
+
at,
|
|
2405
2389
|
null
|
|
2406
2390
|
],
|
|
2407
2391
|
[
|
|
@@ -2410,7 +2394,7 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2410
2394
|
]
|
|
2411
2395
|
]
|
|
2412
2396
|
}, /* @__PURE__ */ k.createElement(nn, null, /* @__PURE__ */ k.createElement(ie, {
|
|
2413
|
-
...H(
|
|
2397
|
+
...H(ue, I, y, V, P?.collectionProps),
|
|
2414
2398
|
style: U,
|
|
2415
2399
|
ref: e,
|
|
2416
2400
|
slot: t.slot || void 0,
|
|
@@ -2420,8 +2404,8 @@ function ao({ props: t, forwardedRef: e, selectionState: l, collection: n }) {
|
|
|
2420
2404
|
"data-focused": T || void 0,
|
|
2421
2405
|
"data-focus-visible": F || void 0
|
|
2422
2406
|
}, /* @__PURE__ */ k.createElement(jl, null, /* @__PURE__ */ k.createElement(h, {
|
|
2423
|
-
collection:
|
|
2424
|
-
scrollRef: (Z =
|
|
2407
|
+
collection: s.collection,
|
|
2408
|
+
scrollRef: (Z = c?.scrollRef) !== null && Z !== void 0 ? Z : e,
|
|
2425
2409
|
persistedKeys: Wl(v, m, S)
|
|
2426
2410
|
})))), E);
|
|
2427
2411
|
}
|
|
@@ -2436,49 +2420,49 @@ function $l() {
|
|
|
2436
2420
|
class qe extends Ke {
|
|
2437
2421
|
}
|
|
2438
2422
|
qe.type = "tableheader";
|
|
2439
|
-
const
|
|
2423
|
+
const ro = /* @__PURE__ */ He(qe, (t, e) => {
|
|
2440
2424
|
let l = R(te).collection, n = Ul({
|
|
2441
2425
|
items: l.headerRows,
|
|
2442
|
-
children: j((
|
|
2443
|
-
switch (
|
|
2426
|
+
children: j((d) => {
|
|
2427
|
+
switch (d.type) {
|
|
2444
2428
|
case "headerrow":
|
|
2445
|
-
return /* @__PURE__ */ k.createElement(
|
|
2446
|
-
item:
|
|
2429
|
+
return /* @__PURE__ */ k.createElement(io, {
|
|
2430
|
+
item: d
|
|
2447
2431
|
});
|
|
2448
2432
|
default:
|
|
2449
|
-
throw new Error("Unsupported node type in TableHeader: " +
|
|
2433
|
+
throw new Error("Unsupported node type in TableHeader: " + d.type);
|
|
2450
2434
|
}
|
|
2451
2435
|
}, [])
|
|
2452
|
-
}), o = O("thead"), { rowGroupProps: r } = hl(), { hoverProps: i, isHovered:
|
|
2436
|
+
}), o = O("thead"), { rowGroupProps: r } = hl(), { hoverProps: i, isHovered: u } = Se({
|
|
2453
2437
|
onHoverStart: t.onHoverStart,
|
|
2454
2438
|
onHoverChange: t.onHoverChange,
|
|
2455
2439
|
onHoverEnd: t.onHoverEnd
|
|
2456
|
-
}),
|
|
2440
|
+
}), c = re({
|
|
2457
2441
|
className: t.className,
|
|
2458
2442
|
style: t.style,
|
|
2459
2443
|
defaultClassName: "react-aria-TableHeader",
|
|
2460
2444
|
values: {
|
|
2461
|
-
isHovered:
|
|
2445
|
+
isHovered: u
|
|
2462
2446
|
}
|
|
2463
2447
|
});
|
|
2464
2448
|
return /* @__PURE__ */ k.createElement(o, {
|
|
2465
2449
|
...H(ee(t, {
|
|
2466
2450
|
global: !0
|
|
2467
2451
|
}), r, i),
|
|
2468
|
-
...
|
|
2452
|
+
...c,
|
|
2469
2453
|
ref: e,
|
|
2470
|
-
"data-hovered":
|
|
2454
|
+
"data-hovered": u || void 0
|
|
2471
2455
|
}, n);
|
|
2472
|
-
}, (t) => /* @__PURE__ */ k.createElement(
|
|
2456
|
+
}, (t) => /* @__PURE__ */ k.createElement(we, {
|
|
2473
2457
|
dependencies: t.dependencies,
|
|
2474
2458
|
items: t.columns
|
|
2475
2459
|
}, t.children));
|
|
2476
|
-
function
|
|
2477
|
-
let e = A(null), l = R(te), { isVirtualized: n, CollectionBranch: o } = R(_), { rowProps: r } =
|
|
2460
|
+
function io({ item: t }) {
|
|
2461
|
+
let e = A(null), l = R(te), { isVirtualized: n, CollectionBranch: o } = R(_), { rowProps: r } = Mn({
|
|
2478
2462
|
node: t,
|
|
2479
2463
|
isVirtualized: n
|
|
2480
|
-
}, l, e), { checkboxProps: i } =
|
|
2481
|
-
return /* @__PURE__ */ k.createElement(
|
|
2464
|
+
}, l, e), { checkboxProps: i } = In(l), u = O("tr");
|
|
2465
|
+
return /* @__PURE__ */ k.createElement(u, {
|
|
2482
2466
|
...r,
|
|
2483
2467
|
ref: e
|
|
2484
2468
|
}, /* @__PURE__ */ k.createElement(Be, {
|
|
@@ -2500,12 +2484,12 @@ function so({ item: t }) {
|
|
|
2500
2484
|
class xl extends Ke {
|
|
2501
2485
|
}
|
|
2502
2486
|
xl.type = "column";
|
|
2503
|
-
const
|
|
2487
|
+
const uo = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
2504
2488
|
var n, o;
|
|
2505
|
-
let r = G(e), i = R(te), { isVirtualized:
|
|
2489
|
+
let r = G(e), i = R(te), { isVirtualized: u } = R(_), { columnHeaderProps: c } = Bn({
|
|
2506
2490
|
node: l,
|
|
2507
|
-
isVirtualized:
|
|
2508
|
-
}, i, r), { isFocused:
|
|
2491
|
+
isVirtualized: u
|
|
2492
|
+
}, i, r), { isFocused: d, isFocusVisible: s, focusProps: a } = me(), p = R(Ge), f = !1;
|
|
2509
2493
|
if (p) f = p.resizingColumn === l.key;
|
|
2510
2494
|
else if (process.env.NODE_ENV !== "production")
|
|
2511
2495
|
for (let $ in [
|
|
@@ -2514,7 +2498,7 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2514
2498
|
"minWidth",
|
|
2515
2499
|
"maxWidth"
|
|
2516
2500
|
]) $ in l.props && console.warn(`The ${$} prop on a <Column> only applies when a <Table> is wrapped in a <ResizableTableContainer>. If you aren't using column resizing, you can set the width of a column with CSS.`);
|
|
2517
|
-
let { hoverProps: h, isHovered: m } =
|
|
2501
|
+
let { hoverProps: h, isHovered: m } = Se({
|
|
2518
2502
|
isDisabled: !t.allowsSorting
|
|
2519
2503
|
}), y = re({
|
|
2520
2504
|
...t,
|
|
@@ -2523,8 +2507,8 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2523
2507
|
defaultClassName: "react-aria-Column",
|
|
2524
2508
|
values: {
|
|
2525
2509
|
isHovered: m,
|
|
2526
|
-
isFocused:
|
|
2527
|
-
isFocusVisible:
|
|
2510
|
+
isFocused: d,
|
|
2511
|
+
isFocusVisible: s,
|
|
2528
2512
|
allowsSorting: l.props.allowsSorting,
|
|
2529
2513
|
sortDirection: ((n = i.sortDescriptor) === null || n === void 0 ? void 0 : n.column) === l.key ? i.sortDescriptor.direction : void 0,
|
|
2530
2514
|
isResizing: f,
|
|
@@ -2546,13 +2530,13 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2546
2530
|
global: !0
|
|
2547
2531
|
});
|
|
2548
2532
|
return delete g.id, /* @__PURE__ */ k.createElement(D, {
|
|
2549
|
-
...H(g,
|
|
2533
|
+
...H(g, c, a, h),
|
|
2550
2534
|
...y,
|
|
2551
2535
|
style: v,
|
|
2552
2536
|
ref: r,
|
|
2553
2537
|
"data-hovered": m || void 0,
|
|
2554
|
-
"data-focused":
|
|
2555
|
-
"data-focus-visible":
|
|
2538
|
+
"data-focused": d || void 0,
|
|
2539
|
+
"data-focus-visible": s || void 0,
|
|
2556
2540
|
"data-resizing": f || void 0,
|
|
2557
2541
|
"data-allows-sorting": l.props.allowsSorting || void 0,
|
|
2558
2542
|
"data-sort-direction": ((o = i.sortDescriptor) === null || o === void 0 ? void 0 : o.column) === l.key ? i.sortDescriptor.direction : void 0
|
|
@@ -2571,17 +2555,17 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2571
2555
|
]
|
|
2572
2556
|
]
|
|
2573
2557
|
}, y.children));
|
|
2574
|
-
}), Dl = /* @__PURE__ */ de(null),
|
|
2558
|
+
}), Dl = /* @__PURE__ */ de(null), ao = /* @__PURE__ */ Ae(function(e, l) {
|
|
2575
2559
|
let n = R(Ge);
|
|
2576
2560
|
if (!n) throw new Error("Wrap your <Table> in a <ResizableTableContainer> to enable column resizing");
|
|
2577
|
-
let o =
|
|
2578
|
-
column:
|
|
2561
|
+
let o = ke(_n(Vl), "react-aria-components"), { onResizeStart: r, onResize: i, onResizeEnd: u } = R(Xe), { column: c, triggerRef: d } = R(Dl), s = A(null), { resizerProps: a, inputProps: p, isResizing: f } = Vn({
|
|
2562
|
+
column: c,
|
|
2579
2563
|
"aria-label": e["aria-label"] || o.format("tableResizer"),
|
|
2580
2564
|
onResizeStart: r,
|
|
2581
2565
|
onResize: i,
|
|
2582
|
-
onResizeEnd:
|
|
2583
|
-
triggerRef:
|
|
2584
|
-
}, n,
|
|
2566
|
+
onResizeEnd: u,
|
|
2567
|
+
triggerRef: d
|
|
2568
|
+
}, n, s), { focusProps: h, isFocused: m, isFocusVisible: y } = me(), { hoverProps: v, isHovered: D } = Se(e), g = n.getColumnMinWidth(c.key) >= n.getColumnWidth(c.key), $ = n.getColumnMaxWidth(c.key) <= n.getColumnWidth(c.key), { direction: b } = be(), C = "both";
|
|
2585
2569
|
g ? C = b === "rtl" ? "right" : "left" : $ ? C = b === "rtl" ? "left" : "right" : C = "both";
|
|
2586
2570
|
let S = G(l), [P, B] = Q("");
|
|
2587
2571
|
se(() => {
|
|
@@ -2612,7 +2596,7 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2612
2596
|
return /* @__PURE__ */ k.createElement("div", {
|
|
2613
2597
|
ref: S,
|
|
2614
2598
|
role: "presentation",
|
|
2615
|
-
...H(F, E,
|
|
2599
|
+
...H(F, E, a, {
|
|
2616
2600
|
onPointerDown: T
|
|
2617
2601
|
}, v),
|
|
2618
2602
|
"data-hovered": D || void 0,
|
|
@@ -2621,7 +2605,7 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2621
2605
|
"data-resizing": f || void 0,
|
|
2622
2606
|
"data-resizable-direction": C
|
|
2623
2607
|
}, E.children, /* @__PURE__ */ k.createElement("input", {
|
|
2624
|
-
ref:
|
|
2608
|
+
ref: s,
|
|
2625
2609
|
...H(p, h)
|
|
2626
2610
|
}), f && M && /* @__PURE__ */ Zl.createPortal(/* @__PURE__ */ k.createElement("div", {
|
|
2627
2611
|
style: {
|
|
@@ -2637,14 +2621,14 @@ const co = /* @__PURE__ */ St(xl, (t, e, l) => {
|
|
|
2637
2621
|
class Ze extends Yl {
|
|
2638
2622
|
}
|
|
2639
2623
|
Ze.type = "tablebody";
|
|
2640
|
-
const
|
|
2641
|
-
let l = R(te), { isVirtualized: n } = R(_), o = l.collection, { CollectionBranch: r } = R(_), { dragAndDropHooks: i, dropState:
|
|
2642
|
-
var
|
|
2643
|
-
let
|
|
2624
|
+
const so = /* @__PURE__ */ He(Ze, (t, e) => {
|
|
2625
|
+
let l = R(te), { isVirtualized: n } = R(_), o = l.collection, { CollectionBranch: r } = R(_), { dragAndDropHooks: i, dropState: u } = R(ge), c = !!i?.useDroppableCollectionState && !u?.isDisabled;
|
|
2626
|
+
var d;
|
|
2627
|
+
let s = c && !!u && ((d = u.isDropTarget({
|
|
2644
2628
|
type: "root"
|
|
2645
|
-
})) !== null &&
|
|
2646
|
-
isDropTarget:
|
|
2647
|
-
isEmpty:
|
|
2629
|
+
})) !== null && d !== void 0 ? d : !1), a = o.size === 0, p = {
|
|
2630
|
+
isDropTarget: s,
|
|
2631
|
+
isEmpty: a
|
|
2648
2632
|
}, f = re({
|
|
2649
2633
|
...t,
|
|
2650
2634
|
id: void 0,
|
|
@@ -2652,7 +2636,7 @@ const po = /* @__PURE__ */ je(Ze, (t, e) => {
|
|
|
2652
2636
|
defaultClassName: "react-aria-TableBody",
|
|
2653
2637
|
values: p
|
|
2654
2638
|
}), h, m = O("tr"), y = O("td"), v = o.columnCount;
|
|
2655
|
-
if (
|
|
2639
|
+
if (a && t.renderEmptyState && l) {
|
|
2656
2640
|
let b = {}, C = {}, S = {};
|
|
2657
2641
|
n ? (C["aria-colspan"] = v, S = {
|
|
2658
2642
|
display: "contents"
|
|
@@ -2672,11 +2656,11 @@ const po = /* @__PURE__ */ je(Ze, (t, e) => {
|
|
|
2672
2656
|
return /* @__PURE__ */ k.createElement(g, {
|
|
2673
2657
|
...H($, f, D),
|
|
2674
2658
|
ref: e,
|
|
2675
|
-
"data-empty":
|
|
2676
|
-
},
|
|
2659
|
+
"data-empty": a || void 0
|
|
2660
|
+
}, c && /* @__PURE__ */ k.createElement(mo, null), /* @__PURE__ */ k.createElement(r, {
|
|
2677
2661
|
collection: o,
|
|
2678
2662
|
parent: o.body,
|
|
2679
|
-
renderDropIndicator: Fl(i,
|
|
2663
|
+
renderDropIndicator: Fl(i, u)
|
|
2680
2664
|
}), h);
|
|
2681
2665
|
});
|
|
2682
2666
|
class Cl extends Ke {
|
|
@@ -2690,33 +2674,33 @@ class Cl extends Ke {
|
|
|
2690
2674
|
}
|
|
2691
2675
|
}
|
|
2692
2676
|
Cl.type = "item";
|
|
2693
|
-
const gt = /* @__PURE__ */
|
|
2694
|
-
let n = G(e), o = R(te), { dragAndDropHooks: r, dragState: i, dropState:
|
|
2677
|
+
const gt = /* @__PURE__ */ He(Cl, (t, e, l) => {
|
|
2678
|
+
let n = G(e), o = R(te), { dragAndDropHooks: r, dragState: i, dropState: u } = R(ge), { isVirtualized: c, CollectionBranch: d } = R(_), { rowProps: s, ...a } = Kn({
|
|
2695
2679
|
node: l,
|
|
2696
2680
|
shouldSelectOnPressUp: !!i,
|
|
2697
|
-
isVirtualized:
|
|
2681
|
+
isVirtualized: c
|
|
2698
2682
|
}, o, n), { isFocused: p, isFocusVisible: f, focusProps: h } = me(), { isFocusVisible: m, focusProps: y } = me({
|
|
2699
2683
|
within: !0
|
|
2700
|
-
}), { hoverProps: v, isHovered: D } =
|
|
2701
|
-
isDisabled: !
|
|
2684
|
+
}), { hoverProps: v, isHovered: D } = Se({
|
|
2685
|
+
isDisabled: !a.allowsSelection && !a.hasAction,
|
|
2702
2686
|
onHoverStart: t.onHoverStart,
|
|
2703
2687
|
onHoverChange: t.onHoverChange,
|
|
2704
2688
|
onHoverEnd: t.onHoverEnd
|
|
2705
|
-
}), { checkboxProps: g } =
|
|
2689
|
+
}), { checkboxProps: g } = Fn({
|
|
2706
2690
|
key: l.key
|
|
2707
2691
|
}, o), $;
|
|
2708
2692
|
i && r && ($ = r.useDraggableItem({
|
|
2709
2693
|
key: l.key,
|
|
2710
2694
|
hasDragButton: !0
|
|
2711
2695
|
}, i));
|
|
2712
|
-
let b, C = A(null), { visuallyHiddenProps: S } =
|
|
2713
|
-
|
|
2696
|
+
let b, C = A(null), { visuallyHiddenProps: S } = Me();
|
|
2697
|
+
u && r && (b = r.useDropIndicator({
|
|
2714
2698
|
target: {
|
|
2715
2699
|
type: "item",
|
|
2716
2700
|
key: l.key,
|
|
2717
2701
|
dropPosition: "on"
|
|
2718
2702
|
}
|
|
2719
|
-
},
|
|
2703
|
+
}, u, C));
|
|
2720
2704
|
let P = A(null);
|
|
2721
2705
|
se(() => {
|
|
2722
2706
|
i && !P.current && process.env.NODE_ENV !== "production" && console.warn('Draggable items in a Table must contain a <Button slot="drag"> element so that keyboard and screen reader users can drag them.');
|
|
@@ -2726,7 +2710,7 @@ const gt = /* @__PURE__ */ je(Cl, (t, e, l) => {
|
|
|
2726
2710
|
id: void 0,
|
|
2727
2711
|
defaultClassName: "react-aria-Row",
|
|
2728
2712
|
values: {
|
|
2729
|
-
...
|
|
2713
|
+
...a,
|
|
2730
2714
|
isHovered: D,
|
|
2731
2715
|
isFocused: p,
|
|
2732
2716
|
isFocusVisible: f,
|
|
@@ -2757,14 +2741,14 @@ const gt = /* @__PURE__ */ je(Cl, (t, e, l) => {
|
|
|
2757
2741
|
...b.dropIndicatorProps,
|
|
2758
2742
|
ref: C
|
|
2759
2743
|
}))), /* @__PURE__ */ k.createElement(T, {
|
|
2760
|
-
...H(I, V,
|
|
2744
|
+
...H(I, V, s, h, v, $?.dragProps, y),
|
|
2761
2745
|
ref: n,
|
|
2762
|
-
"data-disabled":
|
|
2763
|
-
"data-selected":
|
|
2746
|
+
"data-disabled": a.isDisabled || void 0,
|
|
2747
|
+
"data-selected": a.isSelected || void 0,
|
|
2764
2748
|
"data-hovered": D || void 0,
|
|
2765
|
-
"data-focused":
|
|
2749
|
+
"data-focused": a.isFocused || void 0,
|
|
2766
2750
|
"data-focus-visible": f || void 0,
|
|
2767
|
-
"data-pressed":
|
|
2751
|
+
"data-pressed": a.isPressed || void 0,
|
|
2768
2752
|
"data-dragging": B || void 0,
|
|
2769
2753
|
"data-drop-target": b?.isDropTarget || void 0,
|
|
2770
2754
|
"data-selection-mode": o.selectionManager.selectionMode === "none" ? void 0 : o.selectionManager.selectionMode,
|
|
@@ -2798,11 +2782,11 @@ const gt = /* @__PURE__ */ je(Cl, (t, e, l) => {
|
|
|
2798
2782
|
[
|
|
2799
2783
|
Hl,
|
|
2800
2784
|
{
|
|
2801
|
-
isSelected:
|
|
2785
|
+
isSelected: a.isSelected
|
|
2802
2786
|
}
|
|
2803
2787
|
]
|
|
2804
2788
|
]
|
|
2805
|
-
}, /* @__PURE__ */ k.createElement(
|
|
2789
|
+
}, /* @__PURE__ */ k.createElement(d, {
|
|
2806
2790
|
collection: o.collection,
|
|
2807
2791
|
parent: l
|
|
2808
2792
|
}))));
|
|
@@ -2811,7 +2795,7 @@ const gt = /* @__PURE__ */ je(Cl, (t, e, l) => {
|
|
|
2811
2795
|
let e = [
|
|
2812
2796
|
t.value
|
|
2813
2797
|
].concat(t.dependencies);
|
|
2814
|
-
return /* @__PURE__ */ k.createElement(
|
|
2798
|
+
return /* @__PURE__ */ k.createElement(we, {
|
|
2815
2799
|
dependencies: e,
|
|
2816
2800
|
items: t.columns,
|
|
2817
2801
|
idScope: t.id
|
|
@@ -2820,21 +2804,21 @@ const gt = /* @__PURE__ */ je(Cl, (t, e, l) => {
|
|
|
2820
2804
|
class wl extends Ke {
|
|
2821
2805
|
}
|
|
2822
2806
|
wl.type = "cell";
|
|
2823
|
-
const
|
|
2807
|
+
const co = /* @__PURE__ */ St(wl, (t, e, l) => {
|
|
2824
2808
|
let n = G(e), o = R(te), { dragState: r } = R(ge), { isVirtualized: i } = R(_);
|
|
2825
2809
|
l.column = o.collection.columns[l.index];
|
|
2826
|
-
let { gridCellProps:
|
|
2810
|
+
let { gridCellProps: u, isPressed: c } = Nn({
|
|
2827
2811
|
node: l,
|
|
2828
2812
|
shouldSelectOnPressUp: !!r,
|
|
2829
2813
|
isVirtualized: i
|
|
2830
|
-
}, o, n), { isFocused:
|
|
2814
|
+
}, o, n), { isFocused: d, isFocusVisible: s, focusProps: a } = me(), { hoverProps: p, isHovered: f } = Se({}), h = re({
|
|
2831
2815
|
...t,
|
|
2832
2816
|
id: void 0,
|
|
2833
2817
|
defaultClassName: "react-aria-Cell",
|
|
2834
2818
|
values: {
|
|
2835
|
-
isFocused:
|
|
2836
|
-
isFocusVisible:
|
|
2837
|
-
isPressed:
|
|
2819
|
+
isFocused: d,
|
|
2820
|
+
isFocusVisible: s,
|
|
2821
|
+
isPressed: c,
|
|
2838
2822
|
isHovered: f,
|
|
2839
2823
|
id: l.key
|
|
2840
2824
|
}
|
|
@@ -2842,71 +2826,71 @@ const ho = /* @__PURE__ */ St(wl, (t, e, l) => {
|
|
|
2842
2826
|
global: !0
|
|
2843
2827
|
});
|
|
2844
2828
|
return delete y.id, /* @__PURE__ */ k.createElement(m, {
|
|
2845
|
-
...H(y, h,
|
|
2829
|
+
...H(y, h, u, a, p),
|
|
2846
2830
|
ref: n,
|
|
2847
|
-
"data-focused":
|
|
2848
|
-
"data-focus-visible":
|
|
2849
|
-
"data-pressed":
|
|
2831
|
+
"data-focused": d || void 0,
|
|
2832
|
+
"data-focus-visible": s || void 0,
|
|
2833
|
+
"data-pressed": c || void 0
|
|
2850
2834
|
}, /* @__PURE__ */ k.createElement(_.Provider, {
|
|
2851
2835
|
value: Ct
|
|
2852
2836
|
}, h.children));
|
|
2853
2837
|
});
|
|
2854
|
-
function
|
|
2838
|
+
function fo(t, e) {
|
|
2855
2839
|
e = G(e);
|
|
2856
|
-
let { dragAndDropHooks: l, dropState: n } = R(ge), o = A(null), { dropIndicatorProps: r, isHidden: i, isDropTarget:
|
|
2857
|
-
return i ? null : /* @__PURE__ */ k.createElement(
|
|
2840
|
+
let { dragAndDropHooks: l, dropState: n } = R(ge), o = A(null), { dropIndicatorProps: r, isHidden: i, isDropTarget: u } = l.useDropIndicator(t, n, o);
|
|
2841
|
+
return i ? null : /* @__PURE__ */ k.createElement(ho, {
|
|
2858
2842
|
...t,
|
|
2859
2843
|
dropIndicatorProps: r,
|
|
2860
|
-
isDropTarget:
|
|
2844
|
+
isDropTarget: u,
|
|
2861
2845
|
buttonRef: o,
|
|
2862
2846
|
ref: e
|
|
2863
2847
|
});
|
|
2864
2848
|
}
|
|
2865
|
-
function
|
|
2866
|
-
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = R(te), { visuallyHiddenProps:
|
|
2849
|
+
function po(t, e) {
|
|
2850
|
+
let { dropIndicatorProps: l, isDropTarget: n, buttonRef: o, ...r } = t, i = R(te), { visuallyHiddenProps: u } = Me(), c = re({
|
|
2867
2851
|
...r,
|
|
2868
2852
|
defaultClassName: "react-aria-DropIndicator",
|
|
2869
2853
|
values: {
|
|
2870
2854
|
isDropTarget: n
|
|
2871
2855
|
}
|
|
2872
|
-
}),
|
|
2873
|
-
return /* @__PURE__ */ k.createElement(
|
|
2856
|
+
}), d = O("tr"), s = O("td");
|
|
2857
|
+
return /* @__PURE__ */ k.createElement(d, {
|
|
2874
2858
|
...ee(t, {
|
|
2875
2859
|
global: !0
|
|
2876
2860
|
}),
|
|
2877
|
-
...
|
|
2861
|
+
...c,
|
|
2878
2862
|
role: "row",
|
|
2879
2863
|
ref: e,
|
|
2880
2864
|
"data-drop-target": n || void 0
|
|
2881
|
-
}, /* @__PURE__ */ k.createElement(
|
|
2865
|
+
}, /* @__PURE__ */ k.createElement(s, {
|
|
2882
2866
|
role: "gridcell",
|
|
2883
2867
|
colSpan: i.collection.columnCount,
|
|
2884
2868
|
style: {
|
|
2885
2869
|
padding: 0
|
|
2886
2870
|
}
|
|
2887
2871
|
}, /* @__PURE__ */ k.createElement("div", {
|
|
2888
|
-
...
|
|
2872
|
+
...u,
|
|
2889
2873
|
role: "button",
|
|
2890
2874
|
...l,
|
|
2891
2875
|
ref: o
|
|
2892
|
-
}),
|
|
2876
|
+
}), c.children));
|
|
2893
2877
|
}
|
|
2894
|
-
const
|
|
2895
|
-
function
|
|
2878
|
+
const ho = /* @__PURE__ */ Ae(po);
|
|
2879
|
+
function mo() {
|
|
2896
2880
|
let t = R(te), { dragAndDropHooks: e, dropState: l } = R(ge), n = A(null), { dropIndicatorProps: o } = e.useDropIndicator({
|
|
2897
2881
|
target: {
|
|
2898
2882
|
type: "root"
|
|
2899
2883
|
}
|
|
2900
2884
|
}, l, n), r = l.isDropTarget({
|
|
2901
2885
|
type: "root"
|
|
2902
|
-
}), { visuallyHiddenProps: i } =
|
|
2903
|
-
return !r && o["aria-hidden"] ? null : /* @__PURE__ */ k.createElement(
|
|
2886
|
+
}), { visuallyHiddenProps: i } = Me(), u = O("tr"), c = O("td");
|
|
2887
|
+
return !r && o["aria-hidden"] ? null : /* @__PURE__ */ k.createElement(u, {
|
|
2904
2888
|
role: "row",
|
|
2905
2889
|
"aria-hidden": o["aria-hidden"],
|
|
2906
2890
|
style: {
|
|
2907
2891
|
height: 0
|
|
2908
2892
|
}
|
|
2909
|
-
}, /* @__PURE__ */ k.createElement(
|
|
2893
|
+
}, /* @__PURE__ */ k.createElement(c, {
|
|
2910
2894
|
role: "gridcell",
|
|
2911
2895
|
colSpan: t.collection.columnCount,
|
|
2912
2896
|
style: {
|
|
@@ -2919,16 +2903,16 @@ function vo() {
|
|
|
2919
2903
|
ref: n
|
|
2920
2904
|
})));
|
|
2921
2905
|
}
|
|
2922
|
-
const { withProvider:
|
|
2923
|
-
|
|
2924
|
-
}),
|
|
2906
|
+
const { withProvider: go, withContext: L } = /* @__PURE__ */ Al({
|
|
2907
|
+
key: "dataTable"
|
|
2908
|
+
}), bo = /* @__PURE__ */ go(
|
|
2925
2909
|
"div",
|
|
2926
2910
|
"root"
|
|
2927
|
-
),
|
|
2928
|
-
|
|
2929
|
-
const
|
|
2911
|
+
), vo = /* @__PURE__ */ L("table", "table"), yo = /* @__PURE__ */ L("tr", "header"), $o = /* @__PURE__ */ L("th", "column"), xo = /* @__PURE__ */ L("tbody", "body"), bt = /* @__PURE__ */ L("tr", "row"), Do = /* @__PURE__ */ L("td", "cell"), Co = /* @__PURE__ */ L("footer", "footer"), wo = /* @__PURE__ */ L("td", "selectionCell"), Sl = /* @__PURE__ */ L("button", "expandButton"), So = /* @__PURE__ */ L("span", "nestedIcon"), ko = /* @__PURE__ */ L("span", "headerSortIcon"), Eo = /* @__PURE__ */ L("div", "columnResizer"), Ne = /* @__PURE__ */ de(null);
|
|
2912
|
+
Ne.displayName = "DataTableContext";
|
|
2913
|
+
const ye = () => {
|
|
2930
2914
|
const t = R(
|
|
2931
|
-
|
|
2915
|
+
Ne
|
|
2932
2916
|
);
|
|
2933
2917
|
if (!t)
|
|
2934
2918
|
throw new Error("DataTable components must be used within DataTable.Root");
|
|
@@ -2939,21 +2923,21 @@ const $e = () => {
|
|
|
2939
2923
|
isDisabled: l,
|
|
2940
2924
|
...n
|
|
2941
2925
|
}) => {
|
|
2942
|
-
const [o, r] =
|
|
2943
|
-
return /* @__PURE__ */ w(
|
|
2926
|
+
const [o, r] = ve(n);
|
|
2927
|
+
return /* @__PURE__ */ w(Do, { asChild: !0, ...o, children: /* @__PURE__ */ w(co, { ref: t, ...r, children: (i) => /* @__PURE__ */ w(yt.Provider, { value: { isDisabled: l }, children: typeof e == "function" ? e(i) : e }) }) });
|
|
2944
2928
|
};
|
|
2945
|
-
function
|
|
2929
|
+
function Ve(t) {
|
|
2946
2930
|
return t.target?.closest(
|
|
2947
2931
|
'button, input, [role="button"], [role="checkbox"], [slot="selection"], [data-slot="selection"]'
|
|
2948
2932
|
);
|
|
2949
2933
|
}
|
|
2950
|
-
function
|
|
2934
|
+
function zo(t) {
|
|
2951
2935
|
return t.target?.closest(
|
|
2952
2936
|
'[slot="selection"], [data-slot="selection"], [role="checkbox"]'
|
|
2953
2937
|
);
|
|
2954
2938
|
}
|
|
2955
2939
|
function vt(t) {
|
|
2956
|
-
const e =
|
|
2940
|
+
const e = Ve(t), l = zo(t);
|
|
2957
2941
|
(!e || e && !l) && t.stopPropagation();
|
|
2958
2942
|
}
|
|
2959
2943
|
const Je = ({
|
|
@@ -2966,27 +2950,27 @@ const Je = ({
|
|
|
2966
2950
|
search: o,
|
|
2967
2951
|
expanded: r,
|
|
2968
2952
|
toggleExpand: i,
|
|
2969
|
-
nestedKey:
|
|
2970
|
-
disabledKeys:
|
|
2971
|
-
showExpandColumn:
|
|
2972
|
-
showSelectionColumn:
|
|
2973
|
-
isTruncated:
|
|
2953
|
+
nestedKey: u,
|
|
2954
|
+
disabledKeys: c,
|
|
2955
|
+
showExpandColumn: d,
|
|
2956
|
+
showSelectionColumn: s,
|
|
2957
|
+
isTruncated: a,
|
|
2974
2958
|
onRowClick: p,
|
|
2975
2959
|
onRowAction: f,
|
|
2976
2960
|
pinnedRows: h,
|
|
2977
2961
|
togglePin: m,
|
|
2978
2962
|
sortedRows: y
|
|
2979
|
-
} =
|
|
2963
|
+
} = ye(), [v, D] = ve(l), $ = ((x) => c ? c === "all" || t.isDisabled ? !0 : c.has(x) : !1)(t.id), b = A(null), C = j(
|
|
2980
2964
|
(x) => {
|
|
2981
2965
|
if (!p) return;
|
|
2982
|
-
const z =
|
|
2966
|
+
const z = Ve(x), N = window.getSelection()?.toString() !== void 0 && window.getSelection().toString().length > 0;
|
|
2983
2967
|
!z && !N && (b.current && window.clearTimeout(b.current), b.current = window.setTimeout(() => {
|
|
2984
2968
|
$ ? f && f(t, "click") : p(t), b.current = null;
|
|
2985
2969
|
}, 300));
|
|
2986
2970
|
},
|
|
2987
2971
|
[p, f, t, $]
|
|
2988
2972
|
), S = j((x) => {
|
|
2989
|
-
|
|
2973
|
+
Ve(x) || b.current && (window.clearTimeout(b.current), b.current = null);
|
|
2990
2974
|
}, []), P = A({
|
|
2991
2975
|
count: 0,
|
|
2992
2976
|
node: void 0
|
|
@@ -3014,7 +2998,7 @@ const Je = ({
|
|
|
3014
2998
|
S
|
|
3015
2999
|
));
|
|
3016
3000
|
}, [C, S]);
|
|
3017
|
-
const E =
|
|
3001
|
+
const E = Ce(e, B), { selectionBehavior: M } = $l(), V = u && t[u] && (Array.isArray(t[u]) ? t[u].length > 0 : !0), T = r[t.id], F = h.has(t.id), I = y.filter((x) => h.has(x.id)).map((x) => x.id), Y = F ? I.indexOf(t.id) : -1, U = Y === 0, q = Y === I.length - 1, ie = I.length === 1 && F, ue = () => F ? ie ? "data-table-row-pinned-single" : U ? "data-table-row-pinned-first" : q ? "data-table-row-pinned-last" : "" : "", Z = (x) => o && typeof x == "string" ? /* @__PURE__ */ w(mn, { query: o, ignoreCase: !0, matchAll: !0, children: x }) : x;
|
|
3018
3002
|
return /* @__PURE__ */ oe(Rl, { children: [
|
|
3019
3003
|
/* @__PURE__ */ w(bt, { asChild: !0, ...v, children: /* @__PURE__ */ oe(
|
|
3020
3004
|
gt,
|
|
@@ -3023,9 +3007,9 @@ const Je = ({
|
|
|
3023
3007
|
columns: n,
|
|
3024
3008
|
ref: E,
|
|
3025
3009
|
id: t.id,
|
|
3026
|
-
className: `data-table-row ${$ ? "data-table-row-disabled" : ""} ${F ? `data-table-row-pinned ${
|
|
3010
|
+
className: `data-table-row ${$ ? "data-table-row-disabled" : ""} ${F ? `data-table-row-pinned ${ue()}` : ""}`,
|
|
3027
3011
|
...D,
|
|
3028
|
-
dependencies: [T, o,
|
|
3012
|
+
dependencies: [T, o, a],
|
|
3029
3013
|
children: [
|
|
3030
3014
|
M === "toggle" && /* @__PURE__ */ w(
|
|
3031
3015
|
he,
|
|
@@ -3034,7 +3018,7 @@ const Je = ({
|
|
|
3034
3018
|
"data-slot": "selection",
|
|
3035
3019
|
isDisabled: $,
|
|
3036
3020
|
children: /* @__PURE__ */ w(
|
|
3037
|
-
|
|
3021
|
+
De,
|
|
3038
3022
|
{
|
|
3039
3023
|
display: "flex",
|
|
3040
3024
|
alignItems: "center",
|
|
@@ -3053,7 +3037,7 @@ const Je = ({
|
|
|
3053
3037
|
)
|
|
3054
3038
|
}
|
|
3055
3039
|
),
|
|
3056
|
-
|
|
3040
|
+
d && /* @__PURE__ */ w(
|
|
3057
3041
|
he,
|
|
3058
3042
|
{
|
|
3059
3043
|
className: "data-table-sticky-cell",
|
|
@@ -3069,18 +3053,18 @@ const Je = ({
|
|
|
3069
3053
|
onClick: (x) => {
|
|
3070
3054
|
x.stopPropagation(), i(t.id);
|
|
3071
3055
|
},
|
|
3072
|
-
children: T ? /* @__PURE__ */ w(
|
|
3056
|
+
children: T ? /* @__PURE__ */ w(gn, {}) : /* @__PURE__ */ w(bn, {})
|
|
3073
3057
|
}
|
|
3074
3058
|
) : null
|
|
3075
3059
|
}
|
|
3076
3060
|
),
|
|
3077
|
-
/* @__PURE__ */ w(
|
|
3061
|
+
/* @__PURE__ */ w(we, { items: n, children: (x) => {
|
|
3078
3062
|
const z = x.accessor(t);
|
|
3079
3063
|
return /* @__PURE__ */ w(he, { isDisabled: $, children: /* @__PURE__ */ w(
|
|
3080
|
-
|
|
3064
|
+
De,
|
|
3081
3065
|
{
|
|
3082
|
-
className:
|
|
3083
|
-
"data-truncated":
|
|
3066
|
+
className: a ? "truncated-cell" : "",
|
|
3067
|
+
"data-truncated": a ? "true" : "false",
|
|
3084
3068
|
display: "inline-block",
|
|
3085
3069
|
h: "100%",
|
|
3086
3070
|
minW: "0",
|
|
@@ -3103,12 +3087,12 @@ const Je = ({
|
|
|
3103
3087
|
"data-slot": "pin-row-cell",
|
|
3104
3088
|
isDisabled: $,
|
|
3105
3089
|
children: /* @__PURE__ */ w(
|
|
3106
|
-
|
|
3090
|
+
De,
|
|
3107
3091
|
{
|
|
3108
3092
|
"data-slot": F ? "nimbus-table-cell-pin-button-pinned" : "nimbus-table-cell-pin-button",
|
|
3109
3093
|
children: /* @__PURE__ */ oe(ht.Root, { children: [
|
|
3110
3094
|
/* @__PURE__ */ w(
|
|
3111
|
-
|
|
3095
|
+
$n,
|
|
3112
3096
|
{
|
|
3113
3097
|
size: "2xs",
|
|
3114
3098
|
variant: "ghost",
|
|
@@ -3117,7 +3101,7 @@ const Je = ({
|
|
|
3117
3101
|
onClick: (x) => {
|
|
3118
3102
|
x.stopPropagation(), m(t.id);
|
|
3119
3103
|
},
|
|
3120
|
-
children: /* @__PURE__ */ w(
|
|
3104
|
+
children: /* @__PURE__ */ w(vn, {})
|
|
3121
3105
|
},
|
|
3122
3106
|
"pin-btn"
|
|
3123
3107
|
),
|
|
@@ -3130,7 +3114,7 @@ const Je = ({
|
|
|
3130
3114
|
]
|
|
3131
3115
|
}
|
|
3132
3116
|
) }),
|
|
3133
|
-
|
|
3117
|
+
d && /* @__PURE__ */ w(bt, { ...v, asChild: !0, children: /* @__PURE__ */ w(
|
|
3134
3118
|
gt,
|
|
3135
3119
|
{
|
|
3136
3120
|
"data-nested-row-expanded": T ? "true" : "false",
|
|
@@ -3139,9 +3123,9 @@ const Je = ({
|
|
|
3139
3123
|
he,
|
|
3140
3124
|
{
|
|
3141
3125
|
isDisabled: $,
|
|
3142
|
-
colSpan: n.length + (
|
|
3126
|
+
colSpan: n.length + (d ? 1 : 0) + (s ? 1 : 0) + 1,
|
|
3143
3127
|
"data-nested-cell": !0,
|
|
3144
|
-
children: T ?
|
|
3128
|
+
children: T ? u && Array.isArray(t[u]) ? `${t[u].length} nested items` : u && t[u] : null
|
|
3145
3129
|
}
|
|
3146
3130
|
)
|
|
3147
3131
|
}
|
|
@@ -3149,25 +3133,25 @@ const Je = ({
|
|
|
3149
3133
|
] });
|
|
3150
3134
|
};
|
|
3151
3135
|
Je.displayName = "DataTable.Row";
|
|
3152
|
-
const
|
|
3136
|
+
const Po = () => /* @__PURE__ */ w(De, { w: "100%", p: "200", children: "No Data" }), Qe = ({
|
|
3153
3137
|
ref: t,
|
|
3154
3138
|
...e
|
|
3155
3139
|
}) => {
|
|
3156
|
-
const { sortedRows: l, activeColumns: n, renderEmptyState: o } =
|
|
3157
|
-
return /* @__PURE__ */ w(
|
|
3158
|
-
|
|
3140
|
+
const { sortedRows: l, activeColumns: n, renderEmptyState: o } = ye(), [r, i] = ve(e);
|
|
3141
|
+
return /* @__PURE__ */ w(xo, { asChild: !0, ...r, children: /* @__PURE__ */ w(
|
|
3142
|
+
so,
|
|
3159
3143
|
{
|
|
3160
3144
|
ref: t,
|
|
3161
3145
|
items: l,
|
|
3162
3146
|
dependencies: [n],
|
|
3163
|
-
renderEmptyState: o ??
|
|
3147
|
+
renderEmptyState: o ?? Po,
|
|
3164
3148
|
...i,
|
|
3165
|
-
children: (
|
|
3149
|
+
children: (u) => /* @__PURE__ */ w(Je, { row: u }, u.id)
|
|
3166
3150
|
}
|
|
3167
3151
|
) });
|
|
3168
3152
|
};
|
|
3169
3153
|
Qe.displayName = "DataTable.Body";
|
|
3170
|
-
const
|
|
3154
|
+
const $e = ({
|
|
3171
3155
|
children: t,
|
|
3172
3156
|
ref: e,
|
|
3173
3157
|
column: l,
|
|
@@ -3175,11 +3159,11 @@ const xe = ({
|
|
|
3175
3159
|
width: o,
|
|
3176
3160
|
minWidth: r,
|
|
3177
3161
|
maxWidth: i,
|
|
3178
|
-
...
|
|
3162
|
+
...u
|
|
3179
3163
|
}) => {
|
|
3180
|
-
const { sortDescriptor:
|
|
3181
|
-
return /* @__PURE__ */ w(
|
|
3182
|
-
|
|
3164
|
+
const { sortDescriptor: c, isResizable: d } = ye(), s = c?.column === l?.id, a = l?.isResizable !== void 0 ? l?.isResizable : d, [p, f] = ve(u);
|
|
3165
|
+
return /* @__PURE__ */ w($o, { ...p, asChild: !0, children: /* @__PURE__ */ w(
|
|
3166
|
+
uo,
|
|
3183
3167
|
{
|
|
3184
3168
|
width: o,
|
|
3185
3169
|
minWidth: r,
|
|
@@ -3189,13 +3173,13 @@ const xe = ({
|
|
|
3189
3173
|
children: (h) => {
|
|
3190
3174
|
const { allowsSorting: m } = h;
|
|
3191
3175
|
return n ? typeof t == "function" ? t(h) : t : /* @__PURE__ */ oe(
|
|
3192
|
-
|
|
3176
|
+
xn,
|
|
3193
3177
|
{
|
|
3194
|
-
tabIndex:
|
|
3178
|
+
tabIndex: a || m ? -1 : 0,
|
|
3195
3179
|
className: "nimbus-data-table__column-container",
|
|
3196
3180
|
children: [
|
|
3197
3181
|
/* @__PURE__ */ w(
|
|
3198
|
-
|
|
3182
|
+
Dn,
|
|
3199
3183
|
{
|
|
3200
3184
|
orientation: "vertical",
|
|
3201
3185
|
className: "data-table-column-divider"
|
|
@@ -3203,16 +3187,16 @@ const xe = ({
|
|
|
3203
3187
|
),
|
|
3204
3188
|
typeof t == "function" ? t(h) : t,
|
|
3205
3189
|
m && /* @__PURE__ */ w(
|
|
3206
|
-
|
|
3190
|
+
ko,
|
|
3207
3191
|
{
|
|
3208
3192
|
"aria-hidden": "true",
|
|
3209
|
-
"data-sort-active":
|
|
3210
|
-
"data-sort-direction":
|
|
3211
|
-
children: /* @__PURE__ */ w(
|
|
3193
|
+
"data-sort-active": s,
|
|
3194
|
+
"data-sort-direction": s ? c?.direction : "none",
|
|
3195
|
+
children: /* @__PURE__ */ w(yn, {})
|
|
3212
3196
|
}
|
|
3213
3197
|
),
|
|
3214
|
-
|
|
3215
|
-
|
|
3198
|
+
a && /* @__PURE__ */ w(ao, { "aria-label": "Resize column", children: ({ isResizing: y, isFocused: v, isHovered: D }) => /* @__PURE__ */ w(
|
|
3199
|
+
Eo,
|
|
3216
3200
|
{
|
|
3217
3201
|
"data-resizing": y,
|
|
3218
3202
|
"data-focused": v,
|
|
@@ -3230,26 +3214,26 @@ const xe = ({
|
|
|
3230
3214
|
children: l,
|
|
3231
3215
|
...n
|
|
3232
3216
|
}) {
|
|
3233
|
-
const o = A(null), r = G(
|
|
3234
|
-
return /* @__PURE__ */ w(
|
|
3217
|
+
const o = A(null), r = G(Ce(o, e));
|
|
3218
|
+
return /* @__PURE__ */ w(Co, { ref: r, ...n, children: l });
|
|
3235
3219
|
};
|
|
3236
3220
|
_e.displayName = "DataTable.Footer";
|
|
3237
3221
|
const et = ({
|
|
3238
3222
|
ref: t,
|
|
3239
3223
|
...e
|
|
3240
3224
|
}) => {
|
|
3241
|
-
const { activeColumns: l, allowsSorting: n, maxHeight: o, showExpandColumn: r } =
|
|
3242
|
-
return /* @__PURE__ */ w(
|
|
3243
|
-
|
|
3225
|
+
const { activeColumns: l, allowsSorting: n, maxHeight: o, showExpandColumn: r } = ye(), { selectionBehavior: i, selectionMode: u } = $l(), [c, d] = ve(e);
|
|
3226
|
+
return /* @__PURE__ */ w(yo, { ...c, asChild: !0, children: /* @__PURE__ */ oe(
|
|
3227
|
+
ro,
|
|
3244
3228
|
{
|
|
3245
3229
|
ref: t,
|
|
3246
3230
|
className: "data-table-header",
|
|
3247
3231
|
...o && { "data-sticky": !0 },
|
|
3248
3232
|
columns: l,
|
|
3249
|
-
...
|
|
3233
|
+
...d,
|
|
3250
3234
|
children: [
|
|
3251
3235
|
i === "toggle" && /* @__PURE__ */ w(
|
|
3252
|
-
|
|
3236
|
+
$e,
|
|
3253
3237
|
{
|
|
3254
3238
|
id: "selection",
|
|
3255
3239
|
className: "selection-column-header",
|
|
@@ -3257,11 +3241,11 @@ const et = ({
|
|
|
3257
3241
|
minWidth: 72,
|
|
3258
3242
|
allowsSorting: !1,
|
|
3259
3243
|
isInternalColumn: !0,
|
|
3260
|
-
children:
|
|
3244
|
+
children: u === "multiple" && /* @__PURE__ */ w(zt, { slot: "selection" })
|
|
3261
3245
|
}
|
|
3262
3246
|
),
|
|
3263
3247
|
r && /* @__PURE__ */ w(
|
|
3264
|
-
|
|
3248
|
+
$e,
|
|
3265
3249
|
{
|
|
3266
3250
|
className: "expand-column-header",
|
|
3267
3251
|
maxWidth: i === "toggle" ? 24 : 72,
|
|
@@ -3272,27 +3256,27 @@ const et = ({
|
|
|
3272
3256
|
children: /* @__PURE__ */ w(pt, { children: "Expand rows" })
|
|
3273
3257
|
}
|
|
3274
3258
|
),
|
|
3275
|
-
/* @__PURE__ */ w(
|
|
3276
|
-
|
|
3259
|
+
/* @__PURE__ */ w(we, { items: l, children: (s) => /* @__PURE__ */ oe(
|
|
3260
|
+
$e,
|
|
3277
3261
|
{
|
|
3278
3262
|
allowsSorting: (
|
|
3279
3263
|
// use column.isSortable if defined, and fallback to allowsSorting if not
|
|
3280
|
-
|
|
3264
|
+
s.isSortable !== void 0 ? s.isSortable : n
|
|
3281
3265
|
),
|
|
3282
3266
|
isRowHeader: !0,
|
|
3283
|
-
width:
|
|
3284
|
-
defaultWidth:
|
|
3285
|
-
minWidth:
|
|
3286
|
-
maxWidth:
|
|
3287
|
-
column:
|
|
3267
|
+
width: s.width,
|
|
3268
|
+
defaultWidth: s.defaultWidth,
|
|
3269
|
+
minWidth: s.minWidth ?? 150,
|
|
3270
|
+
maxWidth: s.maxWidth,
|
|
3271
|
+
column: s,
|
|
3288
3272
|
children: [
|
|
3289
|
-
/* @__PURE__ */ w("span", { "data-multiline-header": !0, children:
|
|
3290
|
-
|
|
3273
|
+
/* @__PURE__ */ w("span", { "data-multiline-header": !0, children: s.header }),
|
|
3274
|
+
s.headerIcon && /* @__PURE__ */ w(De, { as: "span", ml: "200", children: s.headerIcon })
|
|
3291
3275
|
]
|
|
3292
3276
|
}
|
|
3293
3277
|
) }),
|
|
3294
3278
|
/* @__PURE__ */ w(
|
|
3295
|
-
|
|
3279
|
+
$e,
|
|
3296
3280
|
{
|
|
3297
3281
|
className: "pin-rows-column-header",
|
|
3298
3282
|
id: "pin-rows",
|
|
@@ -3313,22 +3297,22 @@ function kl(t, e, l, n) {
|
|
|
3313
3297
|
if (!e) return t;
|
|
3314
3298
|
const o = e.toLowerCase();
|
|
3315
3299
|
return t.map((r) => {
|
|
3316
|
-
const i = l.some((
|
|
3317
|
-
const
|
|
3318
|
-
return typeof
|
|
3300
|
+
const i = l.some((u) => {
|
|
3301
|
+
const c = u.accessor(r);
|
|
3302
|
+
return typeof c == "string" && c.toLowerCase().includes(o);
|
|
3319
3303
|
});
|
|
3320
3304
|
if (n && r[n]) {
|
|
3321
|
-
let
|
|
3305
|
+
let u = r[n];
|
|
3322
3306
|
if (Array.isArray(r[n])) {
|
|
3323
|
-
if (
|
|
3307
|
+
if (u = kl(
|
|
3324
3308
|
r[n],
|
|
3325
3309
|
e,
|
|
3326
3310
|
l,
|
|
3327
3311
|
n
|
|
3328
|
-
), i ||
|
|
3329
|
-
return { ...r, [n]:
|
|
3312
|
+
), i || u && Array.isArray(u) && u.length > 0)
|
|
3313
|
+
return { ...r, [n]: u };
|
|
3330
3314
|
} else if (i)
|
|
3331
|
-
return { ...r, [n]:
|
|
3315
|
+
return { ...r, [n]: u };
|
|
3332
3316
|
return null;
|
|
3333
3317
|
} else
|
|
3334
3318
|
return i ? r : null;
|
|
@@ -3336,14 +3320,14 @@ function kl(t, e, l, n) {
|
|
|
3336
3320
|
}
|
|
3337
3321
|
function El(t, e, l, n, o) {
|
|
3338
3322
|
const r = [], i = [];
|
|
3339
|
-
t.forEach((
|
|
3340
|
-
o?.has(
|
|
3323
|
+
t.forEach((d) => {
|
|
3324
|
+
o?.has(d.id) ? r.push(d) : i.push(d);
|
|
3341
3325
|
});
|
|
3342
|
-
let
|
|
3326
|
+
let u = i;
|
|
3343
3327
|
if (e) {
|
|
3344
|
-
const
|
|
3345
|
-
|
|
3346
|
-
const p =
|
|
3328
|
+
const d = l.find((s) => s.id === e.column);
|
|
3329
|
+
d && (u = [...i].sort((s, a) => {
|
|
3330
|
+
const p = d.accessor(s), f = d.accessor(a);
|
|
3347
3331
|
if (p == null && f == null) return 0;
|
|
3348
3332
|
if (p == null) return 1;
|
|
3349
3333
|
if (f == null) return -1;
|
|
@@ -3351,15 +3335,15 @@ function El(t, e, l, n, o) {
|
|
|
3351
3335
|
return typeof p == "number" && typeof f == "number" ? (h = p, m = f) : (h = String(p).toLowerCase(), m = String(f).toLowerCase()), h < m ? e.direction === "ascending" ? -1 : 1 : h > m ? e.direction === "ascending" ? 1 : -1 : 0;
|
|
3352
3336
|
}));
|
|
3353
3337
|
}
|
|
3354
|
-
return [...r, ...
|
|
3355
|
-
...
|
|
3356
|
-
[n]: Array.isArray(
|
|
3357
|
-
|
|
3338
|
+
return [...r, ...u].map((d) => !n || !d[n] ? d : {
|
|
3339
|
+
...d,
|
|
3340
|
+
[n]: Array.isArray(d[n]) ? El(
|
|
3341
|
+
d[n],
|
|
3358
3342
|
e,
|
|
3359
3343
|
l,
|
|
3360
3344
|
n,
|
|
3361
3345
|
o
|
|
3362
|
-
) :
|
|
3346
|
+
) : d[n]
|
|
3363
3347
|
});
|
|
3364
3348
|
}
|
|
3365
3349
|
function zl(t, e) {
|
|
@@ -3374,11 +3358,11 @@ const tt = function(e) {
|
|
|
3374
3358
|
data: o = [],
|
|
3375
3359
|
visibleColumns: r,
|
|
3376
3360
|
search: i,
|
|
3377
|
-
sortDescriptor:
|
|
3378
|
-
defaultSortDescriptor:
|
|
3379
|
-
onSortChange:
|
|
3380
|
-
selectedKeys:
|
|
3381
|
-
defaultSelectedKeys:
|
|
3361
|
+
sortDescriptor: u,
|
|
3362
|
+
defaultSortDescriptor: c,
|
|
3363
|
+
onSortChange: d,
|
|
3364
|
+
selectedKeys: s,
|
|
3365
|
+
defaultSelectedKeys: a,
|
|
3382
3366
|
onSelectionChange: p,
|
|
3383
3367
|
selectionMode: f = "none",
|
|
3384
3368
|
disallowEmptySelection: h = !1,
|
|
@@ -3397,14 +3381,14 @@ const tt = function(e) {
|
|
|
3397
3381
|
onPinToggle: M,
|
|
3398
3382
|
children: V,
|
|
3399
3383
|
...T
|
|
3400
|
-
} = e, F = A(null), I = G(
|
|
3384
|
+
} = e, F = A(null), I = G(Ce(F, l)), [Y, U] = Q(c), [q, ie] = Q({}), [ue, Z] = Q(
|
|
3401
3385
|
() => E || /* @__PURE__ */ new Set()
|
|
3402
|
-
), x =
|
|
3403
|
-
(
|
|
3386
|
+
), x = u ?? Y, z = B ?? ue, N = K(() => n.filter(
|
|
3387
|
+
(ae) => (r ? r.includes(ae.id) : !0) && ae.isVisible !== !1
|
|
3404
3388
|
), [n, r]), ce = K(
|
|
3405
3389
|
() => i ? kl(o, i, N, g) : o,
|
|
3406
3390
|
[o, i, N, g]
|
|
3407
|
-
),
|
|
3391
|
+
), Te = K(
|
|
3408
3392
|
() => El(
|
|
3409
3393
|
ce,
|
|
3410
3394
|
x,
|
|
@@ -3413,22 +3397,22 @@ const tt = function(e) {
|
|
|
3413
3397
|
z
|
|
3414
3398
|
),
|
|
3415
3399
|
[ce, x, N, g, z]
|
|
3416
|
-
), nt = zl(
|
|
3417
|
-
(X) => ie((
|
|
3400
|
+
), nt = zl(Te, g), ot = f !== "none", rt = j(
|
|
3401
|
+
(X) => ie((ae) => ({ ...ae, [X]: !ae[X] })),
|
|
3418
3402
|
[]
|
|
3419
3403
|
), it = j(
|
|
3420
3404
|
(X) => {
|
|
3421
|
-
M ? M(X) : Z((
|
|
3422
|
-
const ze = new Set(
|
|
3405
|
+
M ? M(X) : Z((ae) => {
|
|
3406
|
+
const ze = new Set(ae);
|
|
3423
3407
|
return ze.has(X) ? ze.delete(X) : ze.add(X), ze;
|
|
3424
3408
|
});
|
|
3425
3409
|
},
|
|
3426
3410
|
[M]
|
|
3427
|
-
),
|
|
3411
|
+
), ut = j(
|
|
3428
3412
|
(X) => {
|
|
3429
|
-
|
|
3413
|
+
d ? d(X) : U(X);
|
|
3430
3414
|
},
|
|
3431
|
-
[
|
|
3415
|
+
[d]
|
|
3432
3416
|
), Pl = K(
|
|
3433
3417
|
() => ({
|
|
3434
3418
|
columns: n,
|
|
@@ -3436,8 +3420,8 @@ const tt = function(e) {
|
|
|
3436
3420
|
visibleColumns: r,
|
|
3437
3421
|
search: i,
|
|
3438
3422
|
sortDescriptor: x,
|
|
3439
|
-
selectedKeys:
|
|
3440
|
-
defaultSelectedKeys:
|
|
3423
|
+
selectedKeys: s,
|
|
3424
|
+
defaultSelectedKeys: a,
|
|
3441
3425
|
expanded: q,
|
|
3442
3426
|
allowsSorting: m,
|
|
3443
3427
|
selectionMode: f,
|
|
@@ -3446,14 +3430,14 @@ const tt = function(e) {
|
|
|
3446
3430
|
isTruncated: v,
|
|
3447
3431
|
density: D,
|
|
3448
3432
|
nestedKey: g,
|
|
3449
|
-
onSortChange:
|
|
3433
|
+
onSortChange: ut,
|
|
3450
3434
|
onSelectionChange: p,
|
|
3451
3435
|
onRowClick: $,
|
|
3452
3436
|
onDetailsClick: b,
|
|
3453
3437
|
toggleExpand: rt,
|
|
3454
3438
|
activeColumns: N,
|
|
3455
3439
|
filteredRows: ce,
|
|
3456
|
-
sortedRows:
|
|
3440
|
+
sortedRows: Te,
|
|
3457
3441
|
showExpandColumn: nt,
|
|
3458
3442
|
showSelectionColumn: ot,
|
|
3459
3443
|
isResizable: P,
|
|
@@ -3469,8 +3453,8 @@ const tt = function(e) {
|
|
|
3469
3453
|
r,
|
|
3470
3454
|
i,
|
|
3471
3455
|
x,
|
|
3472
|
-
|
|
3473
|
-
|
|
3456
|
+
s,
|
|
3457
|
+
a,
|
|
3474
3458
|
q,
|
|
3475
3459
|
m,
|
|
3476
3460
|
f,
|
|
@@ -3479,14 +3463,14 @@ const tt = function(e) {
|
|
|
3479
3463
|
v,
|
|
3480
3464
|
D,
|
|
3481
3465
|
g,
|
|
3482
|
-
|
|
3466
|
+
ut,
|
|
3483
3467
|
p,
|
|
3484
3468
|
$,
|
|
3485
3469
|
b,
|
|
3486
3470
|
rt,
|
|
3487
3471
|
N,
|
|
3488
3472
|
ce,
|
|
3489
|
-
|
|
3473
|
+
Te,
|
|
3490
3474
|
nt,
|
|
3491
3475
|
ot,
|
|
3492
3476
|
P,
|
|
@@ -3498,7 +3482,7 @@ const tt = function(e) {
|
|
|
3498
3482
|
]
|
|
3499
3483
|
);
|
|
3500
3484
|
return /* @__PURE__ */ w(
|
|
3501
|
-
|
|
3485
|
+
bo,
|
|
3502
3486
|
{
|
|
3503
3487
|
ref: I,
|
|
3504
3488
|
truncated: v,
|
|
@@ -3506,8 +3490,8 @@ const tt = function(e) {
|
|
|
3506
3490
|
maxH: y,
|
|
3507
3491
|
...T,
|
|
3508
3492
|
asChild: !0,
|
|
3509
|
-
children: /* @__PURE__ */ w(
|
|
3510
|
-
|
|
3493
|
+
children: /* @__PURE__ */ w(to, { children: /* @__PURE__ */ w(
|
|
3494
|
+
Ne.Provider,
|
|
3511
3495
|
{
|
|
3512
3496
|
value: Pl,
|
|
3513
3497
|
children: V
|
|
@@ -3522,34 +3506,34 @@ const lt = function({
|
|
|
3522
3506
|
children: l,
|
|
3523
3507
|
...n
|
|
3524
3508
|
}) {
|
|
3525
|
-
const o = A(null), r = G(
|
|
3509
|
+
const o = A(null), r = G(Ce(o, e)), {
|
|
3526
3510
|
sortDescriptor: i,
|
|
3527
|
-
onSortChange:
|
|
3528
|
-
selectionMode:
|
|
3529
|
-
onSelectionChange:
|
|
3530
|
-
selectedKeys:
|
|
3531
|
-
defaultSelectedKeys:
|
|
3511
|
+
onSortChange: u,
|
|
3512
|
+
selectionMode: c,
|
|
3513
|
+
onSelectionChange: d,
|
|
3514
|
+
selectedKeys: s,
|
|
3515
|
+
defaultSelectedKeys: a,
|
|
3532
3516
|
disallowEmptySelection: p,
|
|
3533
3517
|
disabledKeys: f
|
|
3534
|
-
} =
|
|
3518
|
+
} = ye(), [h, m] = ve(n), y = i ? {
|
|
3535
3519
|
column: i.column,
|
|
3536
3520
|
direction: i.direction
|
|
3537
3521
|
} : void 0;
|
|
3538
|
-
return /* @__PURE__ */ w(
|
|
3539
|
-
|
|
3522
|
+
return /* @__PURE__ */ w(vo, { ...h, asChild: !0, children: /* @__PURE__ */ w(
|
|
3523
|
+
no,
|
|
3540
3524
|
{
|
|
3541
3525
|
ref: r,
|
|
3542
3526
|
sortDescriptor: y,
|
|
3543
3527
|
onSortChange: (D) => {
|
|
3544
|
-
D &&
|
|
3528
|
+
D && u && u({
|
|
3545
3529
|
column: String(D.column),
|
|
3546
3530
|
direction: D.direction
|
|
3547
3531
|
});
|
|
3548
3532
|
},
|
|
3549
|
-
selectedKeys:
|
|
3550
|
-
defaultSelectedKeys:
|
|
3551
|
-
onSelectionChange:
|
|
3552
|
-
selectionMode:
|
|
3533
|
+
selectedKeys: s,
|
|
3534
|
+
defaultSelectedKeys: a,
|
|
3535
|
+
onSelectionChange: d,
|
|
3536
|
+
selectionMode: c,
|
|
3553
3537
|
disallowEmptySelection: p,
|
|
3554
3538
|
disabledKeys: f,
|
|
3555
3539
|
disabledBehavior: "all",
|
|
@@ -3559,12 +3543,12 @@ const lt = function({
|
|
|
3559
3543
|
) });
|
|
3560
3544
|
};
|
|
3561
3545
|
lt.displayName = "DataTable.Table";
|
|
3562
|
-
const
|
|
3546
|
+
const Ro = function({
|
|
3563
3547
|
ref: e,
|
|
3564
3548
|
footer: l,
|
|
3565
3549
|
...n
|
|
3566
3550
|
}) {
|
|
3567
|
-
const o = A(null), r = G(
|
|
3551
|
+
const o = A(null), r = G(Ce(o, e));
|
|
3568
3552
|
return /* @__PURE__ */ oe(tt, { ref: r, ...n, children: [
|
|
3569
3553
|
/* @__PURE__ */ oe(lt, { "aria-label": "Data Table", children: [
|
|
3570
3554
|
/* @__PURE__ */ w(et, { "aria-label": "Data Table Header" }),
|
|
@@ -3572,33 +3556,33 @@ const Ko = function({
|
|
|
3572
3556
|
] }),
|
|
3573
3557
|
l && /* @__PURE__ */ w(_e, { children: l })
|
|
3574
3558
|
] });
|
|
3575
|
-
},
|
|
3559
|
+
}, Pr = /* @__PURE__ */ Object.assign(Ro, {
|
|
3576
3560
|
Root: tt,
|
|
3577
3561
|
Table: lt,
|
|
3578
3562
|
Header: et,
|
|
3579
|
-
Column:
|
|
3563
|
+
Column: $e,
|
|
3580
3564
|
Body: Qe,
|
|
3581
3565
|
Row: Je,
|
|
3582
3566
|
Cell: he,
|
|
3583
3567
|
Footer: _e,
|
|
3584
3568
|
ExpandButton: Sl,
|
|
3585
|
-
NestedIcon:
|
|
3586
|
-
SelectionCell:
|
|
3587
|
-
Context:
|
|
3588
|
-
useDataTableContext:
|
|
3569
|
+
NestedIcon: So,
|
|
3570
|
+
SelectionCell: wo,
|
|
3571
|
+
Context: Ne,
|
|
3572
|
+
useDataTableContext: ye
|
|
3589
3573
|
});
|
|
3590
3574
|
export {
|
|
3591
|
-
|
|
3575
|
+
Pr as D,
|
|
3592
3576
|
tt as a,
|
|
3593
3577
|
lt as b,
|
|
3594
3578
|
et as c,
|
|
3595
|
-
|
|
3579
|
+
$e as d,
|
|
3596
3580
|
Qe as e,
|
|
3597
3581
|
Je as f,
|
|
3598
3582
|
he as g,
|
|
3599
3583
|
_e as h,
|
|
3600
3584
|
Sl as i,
|
|
3601
|
-
|
|
3602
|
-
|
|
3585
|
+
So as j,
|
|
3586
|
+
wo as k
|
|
3603
3587
|
};
|
|
3604
|
-
//# sourceMappingURL=data-table-
|
|
3588
|
+
//# sourceMappingURL=data-table-BGCmY93Q.es.js.map
|