@adyen/bento-vue2 1.47.1 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/components.d.ts +4 -0
- package/dist/@types/index.d.ts +541 -267
- package/dist/action-bar.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/chip.css +1 -0
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -0
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/link.css +1 -1
- package/dist/assets/menu.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/popover.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/summary-grid-item-custom.css +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +5 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunks/{action-bar.EcN2I7Az.js → action-bar.pYOeP8WX.js} +6 -6
- package/dist/chunks/{action-bar.EcN2I7Az.js.map → action-bar.pYOeP8WX.js.map} +1 -1
- package/dist/chunks/{alert.BRN8cpXl.js → alert.hiTIDSeX.js} +2 -2
- package/dist/chunks/{alert.BRN8cpXl.js.map → alert.hiTIDSeX.js.map} +1 -1
- package/dist/chunks/{base-modal.BgTZ8iQ6.js → base-modal.8kcvtFRx.js} +5 -5
- package/dist/chunks/{base-modal.BgTZ8iQ6.js.map → base-modal.8kcvtFRx.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.C8EjGVCT.js → button-actions-with-menu.BxWulRXh.js} +4 -4
- package/dist/chunks/{button-actions-with-menu.C8EjGVCT.js.map → button-actions-with-menu.BxWulRXh.js.map} +1 -1
- package/dist/chunks/{button-actions.BU173IFE.js → button-actions.BovYBINL.js} +2 -2
- package/dist/chunks/{button-actions.BU173IFE.js.map → button-actions.BovYBINL.js.map} +1 -1
- package/dist/chunks/{button.BX6ZJxF7.js → button.CdAFZa4V.js} +2 -2
- package/dist/chunks/{button.BX6ZJxF7.js.map → button.CdAFZa4V.js.map} +1 -1
- package/dist/chunks/{calendar.DlOcbH6E.js → calendar.Bb0-Svhx.js} +4 -4
- package/dist/chunks/{calendar.DlOcbH6E.js.map → calendar.Bb0-Svhx.js.map} +1 -1
- package/dist/chunks/{card.DoyCGJay.js → card.D-w9c3-n.js} +2 -2
- package/dist/chunks/{card.DoyCGJay.js.map → card.D-w9c3-n.js.map} +1 -1
- package/dist/chunks/{checkbox-group.k7Au5RP-.js → checkbox-group.4TiIcnc7.js} +4 -4
- package/dist/chunks/{checkbox-group.k7Au5RP-.js.map → checkbox-group.4TiIcnc7.js.map} +1 -1
- package/dist/chunks/{checkbox.Beyvm7Oh.js → checkbox.CE9NdY0R.js} +4 -4
- package/dist/chunks/{checkbox.Beyvm7Oh.js.map → checkbox.CE9NdY0R.js.map} +1 -1
- package/dist/chunks/chip.HNUA9VZl.js +63 -0
- package/dist/chunks/chip.HNUA9VZl.js.map +1 -0
- package/dist/chunks/{code-snippet.BDgd8txq.js → code-snippet.DSsZWtwa.js} +7 -7
- package/dist/chunks/{code-snippet.BDgd8txq.js.map → code-snippet.DSsZWtwa.js.map} +1 -1
- package/dist/chunks/{codemirror.0fz2cWJS.js → codemirror.Zv80n3Z2.js} +13 -14
- package/dist/chunks/{codemirror.0fz2cWJS.js.map → codemirror.Zv80n3Z2.js.map} +1 -1
- package/dist/chunks/{controls-group.C3RDqB9H.js → controls-group.BnDPMaGI.js} +2 -2
- package/dist/chunks/{controls-group.C3RDqB9H.js.map → controls-group.BnDPMaGI.js.map} +1 -1
- package/dist/chunks/{copy.BuMSGw23.js → copy.DMlIj53I.js} +4 -4
- package/dist/chunks/{copy.BuMSGw23.js.map → copy.DMlIj53I.js.map} +1 -1
- package/dist/chunks/{country.2-ZtYkh7.js → country.Df7erZov.js} +22 -21
- package/dist/chunks/{country.2-ZtYkh7.js.map → country.Df7erZov.js.map} +1 -1
- package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
- package/dist/chunks/{currency.BmI4Sqy5.js → currency.B1F9YOIx.js} +2 -2
- package/dist/chunks/currency.B1F9YOIx.js.map +1 -0
- package/dist/chunks/{dashboard-section.COWO5SVw.js → dashboard-section.DzMn8yDZ.js} +4 -4
- package/dist/chunks/{dashboard-section.COWO5SVw.js.map → dashboard-section.DzMn8yDZ.js.map} +1 -1
- package/dist/chunks/{dashed-underline.BEAEmTCb.js → dashed-underline.COTMts4l.js} +3 -3
- package/dist/chunks/{dashed-underline.BEAEmTCb.js.map → dashed-underline.COTMts4l.js.map} +1 -1
- package/dist/chunks/{data-grid-template.vBl7u2cB.js → data-grid-template.BPBneEHq.js} +3 -3
- package/dist/chunks/{data-grid-template.vBl7u2cB.js.map → data-grid-template.BPBneEHq.js.map} +1 -1
- package/dist/chunks/{data-grid.CjtvBoki.js → data-grid.iqFUbiZy.js} +984 -973
- package/dist/chunks/data-grid.iqFUbiZy.js.map +1 -0
- package/dist/chunks/{date-picker.Bym2OEd9.js → date-picker.C68IAqHR.js} +5 -5
- package/dist/chunks/{date-picker.Bym2OEd9.js.map → date-picker.C68IAqHR.js.map} +1 -1
- package/dist/chunks/date-range-picker.dcQRDNS7.js +884 -0
- package/dist/chunks/date-range-picker.dcQRDNS7.js.map +1 -0
- package/dist/chunks/{date.1zs9CRhw.js → date.YLIcAerL.js} +69 -1
- package/dist/chunks/{date.1zs9CRhw.js.map → date.YLIcAerL.js.map} +1 -1
- package/dist/chunks/{dialog-page.DcJ7LaOE.js → dialog-page.Bf07JxdG.js} +2 -2
- package/dist/chunks/{dialog-page.DcJ7LaOE.js.map → dialog-page.Bf07JxdG.js.map} +1 -1
- package/dist/chunks/{dropdown-tag.DiOkEmGh.js → dropdown-tag.DhENnOHT.js} +6 -6
- package/dist/chunks/{dropdown-tag.DiOkEmGh.js.map → dropdown-tag.DhENnOHT.js.map} +1 -1
- package/dist/chunks/{dropdown.ndl5cKe0.js → dropdown.BBHNOorv.js} +6 -6
- package/dist/chunks/{dropdown.ndl5cKe0.js.map → dropdown.BBHNOorv.js.map} +1 -1
- package/dist/chunks/{empty-state.1TyzB5ju.js → empty-state.BnHTBgKG.js} +2 -2
- package/dist/chunks/{empty-state.1TyzB5ju.js.map → empty-state.BnHTBgKG.js.map} +1 -1
- package/dist/chunks/{error-message.Da-p1QIA.js → error-message.xTNEaNn8.js} +2 -2
- package/dist/chunks/{error-message.Da-p1QIA.js.map → error-message.xTNEaNn8.js.map} +1 -1
- package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
- package/dist/chunks/{file-uploader.DVyryYaq.js → file-uploader.mLUYQnz1.js} +325 -316
- package/dist/chunks/{file-uploader.DVyryYaq.js.map → file-uploader.mLUYQnz1.js.map} +1 -1
- package/dist/chunks/{filter-bar.ClRwHFxl.js → filter-bar.CFcu6P8H.js} +105 -108
- package/dist/chunks/filter-bar.CFcu6P8H.js.map +1 -0
- package/dist/chunks/{fixed-scroller.IPM3AzHS.js → fixed-scroller.DX2YUuoU.js} +2 -2
- package/dist/chunks/{fixed-scroller.IPM3AzHS.js.map → fixed-scroller.DX2YUuoU.js.map} +1 -1
- package/dist/chunks/{focus-trap.CGypVwG6.js → focus-trap._RrLaKlq.js} +6 -3
- package/dist/chunks/{focus-trap.CGypVwG6.js.map → focus-trap._RrLaKlq.js.map} +1 -1
- package/dist/chunks/{footer-actions.Cbe_YLjP.js → footer-actions.BsoofCrv.js} +3 -3
- package/dist/chunks/{footer-actions.Cbe_YLjP.js.map → footer-actions.BsoofCrv.js.map} +1 -1
- package/dist/chunks/{form-layout-title.Xdsi84v2.js → form-layout-title.CJbgfh3P.js} +2 -2
- package/dist/chunks/{form-layout-title.Xdsi84v2.js.map → form-layout-title.CJbgfh3P.js.map} +1 -1
- package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
- package/dist/chunks/{header.BIZTUAJE.js → header.BeS6ktqU.js} +4 -4
- package/dist/chunks/{header.BIZTUAJE.js.map → header.BeS6ktqU.js.map} +1 -1
- package/dist/chunks/{index.D8ivUe7P.js → index.CU8GKq4C.js} +8 -7
- package/dist/chunks/{index.D8ivUe7P.js.map → index.CU8GKq4C.js.map} +1 -1
- package/dist/chunks/{info-icon-with-popover.Bly2e0uy.js → info-icon-with-popover.yeIoJzhj.js} +2 -2
- package/dist/chunks/{info-icon-with-popover.Bly2e0uy.js.map → info-icon-with-popover.yeIoJzhj.js.map} +1 -1
- package/dist/chunks/{info-icon.0d0GzDe2.js → info-icon.C4_l0WAf.js} +3 -3
- package/dist/chunks/{info-icon.0d0GzDe2.js.map → info-icon.C4_l0WAf.js.map} +1 -1
- package/dist/chunks/{input-field-password.DEW15Tfy.js → input-field-password.Dez8haIj.js} +6 -6
- package/dist/chunks/{input-field-password.DEW15Tfy.js.map → input-field-password.Dez8haIj.js.map} +1 -1
- package/dist/chunks/input-field-phone-number.CPTonsjM.js +3098 -0
- package/dist/chunks/input-field-phone-number.CPTonsjM.js.map +1 -0
- package/dist/chunks/{input-field.DUf6qDBc.js → input-field.lEMEBT7J.js} +32 -27
- package/dist/chunks/input-field.lEMEBT7J.js.map +1 -0
- package/dist/chunks/inspector.types.BtgXpTC7.js +101 -0
- package/dist/chunks/inspector.types.BtgXpTC7.js.map +1 -0
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js → keyboard-navigation.pB8weElW.js} +2 -1
- package/dist/chunks/{keyboard-navigation.Clz1jOaA.js.map → keyboard-navigation.pB8weElW.js.map} +1 -1
- package/dist/chunks/{layout-row.BfS-cPky.js → layout-row.CHwDU8yK.js} +7 -7
- package/dist/chunks/{layout-row.BfS-cPky.js.map → layout-row.CHwDU8yK.js.map} +1 -1
- package/dist/chunks/{link.UOEUR35A.js → link.DZlbzVSB.js} +35 -28
- package/dist/chunks/link.DZlbzVSB.js.map +1 -0
- package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js → listbox-option-tag.BJBWnC2r.js} +2 -2
- package/dist/chunks/{listbox-option-tag.Co0ycEdQ.js.map → listbox-option-tag.BJBWnC2r.js.map} +1 -1
- package/dist/chunks/{menu.Dq7RlryT.js → menu.lbODB0y3.js} +3 -3
- package/dist/chunks/{menu.Dq7RlryT.js.map → menu.lbODB0y3.js.map} +1 -1
- package/dist/chunks/{modal-fullscreen.CfrgVR_K.js → modal-fullscreen.Dz3kSuTz.js} +5 -5
- package/dist/chunks/{modal-fullscreen.CfrgVR_K.js.map → modal-fullscreen.Dz3kSuTz.js.map} +1 -1
- package/dist/chunks/{modal.CuUUMIU_.js → modal.DV55hSPn.js} +5 -5
- package/dist/chunks/{modal.CuUUMIU_.js.map → modal.DV55hSPn.js.map} +1 -1
- package/dist/chunks/{pagination.H-13o3aM.js → pagination.CuJ-P2bO.js} +3 -3
- package/dist/chunks/{pagination.H-13o3aM.js.map → pagination.CuJ-P2bO.js.map} +1 -1
- package/dist/chunks/{payment-method.UaERFtej.js → payment-method.BKr_q5cZ.js} +2 -2
- package/dist/chunks/{payment-method.UaERFtej.js.map → payment-method.BKr_q5cZ.js.map} +1 -1
- package/dist/chunks/{popover.nev0GndY.js → popover.BQGNMbQN.js} +4 -4
- package/dist/chunks/{popover.nev0GndY.js.map → popover.BQGNMbQN.js.map} +1 -1
- package/dist/chunks/{popper-container.B1iB2ovW.js → popper-container.CsW4R0-t.js} +2 -2
- package/dist/chunks/{popper-container.B1iB2ovW.js.map → popper-container.CsW4R0-t.js.map} +1 -1
- package/dist/chunks/{promo-banner.BXtIM4C9.js → promo-banner.BNXfyv3h.js} +7 -7
- package/dist/chunks/{promo-banner.BXtIM4C9.js.map → promo-banner.BNXfyv3h.js.map} +1 -1
- package/dist/chunks/{radio-group.D1q0VKvv.js → radio-group.CUgib4vp.js} +5 -5
- package/dist/chunks/{radio-group.D1q0VKvv.js.map → radio-group.CUgib4vp.js.map} +1 -1
- package/dist/chunks/{search-bar.2uugiaDY.js → search-bar.Dk-GuqgF.js} +3 -3
- package/dist/chunks/{search-bar.2uugiaDY.js.map → search-bar.Dk-GuqgF.js.map} +1 -1
- package/dist/chunks/{secondary-nav.sknezArI.js → secondary-nav.DC2GrGaQ.js} +3 -3
- package/dist/chunks/{secondary-nav.sknezArI.js.map → secondary-nav.DC2GrGaQ.js.map} +1 -1
- package/dist/chunks/{segmented-control.DL0W7lJ_.js → segmented-control.BxCcPbKd.js} +18 -17
- package/dist/chunks/segmented-control.BxCcPbKd.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.usHcqYKO.js → selection-card-group.B-YY-iKp.js} +4 -4
- package/dist/chunks/{selection-card-group.usHcqYKO.js.map → selection-card-group.B-YY-iKp.js.map} +1 -1
- package/dist/chunks/{sidepanel.D-KuHnwI.js → sidepanel.Dp6dKRnq.js} +5 -5
- package/dist/chunks/{sidepanel.D-KuHnwI.js.map → sidepanel.Dp6dKRnq.js.map} +1 -1
- package/dist/chunks/{step.BsIdWhaZ.js → step.DrP2Frvn.js} +2 -2
- package/dist/chunks/{step.BsIdWhaZ.js.map → step.DrP2Frvn.js.map} +1 -1
- package/dist/chunks/{structured-list-item.Dk8Z-FPn.js → structured-list-item.DrY71Ndc.js} +5 -5
- package/dist/chunks/{structured-list-item.Dk8Z-FPn.js.map → structured-list-item.DrY71Ndc.js.map} +1 -1
- package/dist/chunks/{summary-grid-item-custom.atXX3GY9.js → summary-grid-item-custom.CXs6AMS4.js} +109 -104
- package/dist/chunks/summary-grid-item-custom.CXs6AMS4.js.map +1 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
- package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
- package/dist/chunks/{tabs.9kObZry9.js → tabs.5zgaD1k3.js} +2 -2
- package/dist/chunks/{tabs.9kObZry9.js.map → tabs.5zgaD1k3.js.map} +1 -1
- package/dist/chunks/{tag.-YNhsBv7.js → tag.CevG31iQ.js} +3 -3
- package/dist/chunks/{tag.-YNhsBv7.js.map → tag.CevG31iQ.js.map} +1 -1
- package/dist/chunks/{textarea.BVzGn3zO.js → textarea.DHbXaxdU.js} +3 -3
- package/dist/chunks/{textarea.BVzGn3zO.js.map → textarea.DHbXaxdU.js.map} +1 -1
- package/dist/chunks/{timeline-item.D_YNHlRi.js → timeline-item.C4HOsaEG.js} +8 -8
- package/dist/chunks/{timeline-item.D_YNHlRi.js.map → timeline-item.C4HOsaEG.js.map} +1 -1
- package/dist/chunks/{toast.DgJbW9CL.js → toast.C5I7Wsfa.js} +2 -2
- package/dist/chunks/{toast.DgJbW9CL.js.map → toast.C5I7Wsfa.js.map} +1 -1
- package/dist/chunks/{toggle-button.Cf8C7p6e.js → toggle-button.BX_9vB0d.js} +2 -2
- package/dist/chunks/{toggle-button.Cf8C7p6e.js.map → toggle-button.BX_9vB0d.js.map} +1 -1
- package/dist/chunks/{toggle.CnS7qszG.js → toggle.CyaY0U0K.js} +2 -2
- package/dist/chunks/{toggle.CnS7qszG.js.map → toggle.CyaY0U0K.js.map} +1 -1
- package/dist/chunks/{tooltip.R2sqydIE.js → tooltip.Bu8o7uyZ.js} +2 -2
- package/dist/chunks/{tooltip.R2sqydIE.js.map → tooltip.Bu8o7uyZ.js.map} +1 -1
- package/dist/chunks/truncate.BfIl_-71.js +8 -0
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
- package/dist/chunks/{tutorial.cQXPvqV4.js → tutorial.BWWTUI9f.js} +5 -5
- package/dist/chunks/{tutorial.cQXPvqV4.js.map → tutorial.BWWTUI9f.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.nHAjK6Nj.js → use-cached-selected-values.C5gHa-dC.js} +5 -5
- package/dist/chunks/{use-cached-selected-values.nHAjK6Nj.js.map → use-cached-selected-values.C5gHa-dC.js.map} +1 -1
- package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
- package/dist/chunks/{use-country-items.eWARMT6I.js.map → use-country-items.HFnjuDsG.js.map} +1 -1
- package/dist/chunks/{country.types.CLjbulKL.js → use-country-phon-code.DVgE19zT.js} +497 -761
- package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +7 -6
- package/dist/country.js.map +1 -1
- package/dist/currency.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/date.js +1 -1
- package/dist/dropdown.js +3 -3
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +218 -213
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +5 -0
- package/dist/input-field-phone-number.js.map +1 -0
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/layout.js +1 -1
- package/dist/link.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/payment-method.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/styles/bento-dark.css +16 -1
- package/dist/styles/bento-light.css +16 -1
- package/dist/styles/bento.css +16 -1
- package/dist/styles/legacy.css +15 -0
- package/dist/styles/styleguide.css +16 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/toast.js +1 -1
- package/dist/toggle.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +293 -7
- package/package.json +7 -6
- package/dist/chunks/country.types.CLjbulKL.js.map +0 -1
- package/dist/chunks/currency.BmI4Sqy5.js.map +0 -1
- package/dist/chunks/data-grid.CjtvBoki.js.map +0 -1
- package/dist/chunks/date-range-picker.D6BNlau6.js +0 -840
- package/dist/chunks/date-range-picker.D6BNlau6.js.map +0 -1
- package/dist/chunks/filter-bar.ClRwHFxl.js.map +0 -1
- package/dist/chunks/get-slot-text.Cgn-E48s.js +0 -9
- package/dist/chunks/get-slot-text.Cgn-E48s.js.map +0 -1
- package/dist/chunks/input-field.DUf6qDBc.js.map +0 -1
- package/dist/chunks/inspector.types.8071wkf0.js +0 -70
- package/dist/chunks/inspector.types.8071wkf0.js.map +0 -1
- package/dist/chunks/link.UOEUR35A.js.map +0 -1
- package/dist/chunks/segmented-control.DL0W7lJ_.js.map +0 -1
- package/dist/chunks/summary-grid-item-custom.atXX3GY9.js.map +0 -1
- package/dist/chunks/summary-grid.keys.BBbFrFGF.js +0 -5
- package/dist/chunks/summary-grid.keys.BBbFrFGF.js.map +0 -1
- package/dist/chunks/use-country-items.eWARMT6I.js +0 -29
|
@@ -1,515 +1,515 @@
|
|
|
1
|
-
import { ref as b, reactive as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
4
|
-
import { n as
|
|
5
|
-
import { C as
|
|
6
|
-
import { N as
|
|
7
|
-
import { d as
|
|
8
|
-
import { K as te, B as
|
|
9
|
-
import { B as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
12
|
-
import { B as
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { g as
|
|
1
|
+
import { ref as b, reactive as be, toRefs as Oe, computed as L, watchEffect as on, watch as Y, onMounted as Ae, nextTick as K, onUnmounted as st, onBeforeUpdate as ln, defineComponent as Q, toRef as we, useSlots as Te, provide as ot, inject as Ee } from "vue";
|
|
2
|
+
import { C as an } from "./checkmark-circle-fill.Cn7JN_Tk.js";
|
|
3
|
+
import { W as rn } from "./warning-filled.CLKRzGMT.js";
|
|
4
|
+
import { n as V } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
5
|
+
import { C as lt } from "./cross.CsUPDmaA.js";
|
|
6
|
+
import { N as Ge } from "./checkbox-input.Bo4NxNOh.js";
|
|
7
|
+
import { d as dn } from "./popper-container.CsW4R0-t.js";
|
|
8
|
+
import { K as te, B as cn } from "./tooltip.Bu8o7uyZ.js";
|
|
9
|
+
import { B as un } from "./action-bar.pYOeP8WX.js";
|
|
10
|
+
import { B as fn } from "./pagination.CuJ-P2bO.js";
|
|
11
|
+
import { B as Ne } from "./loading-indicator.z8COalOc.js";
|
|
12
|
+
import { B as he, p as at } from "./typography.J1v_SPG3.js";
|
|
13
|
+
import { u as Ie } from "./use-has-slot.C9lQZ6nz.js";
|
|
14
|
+
import { u as gn } from "./aria-label.CaUURpnB.js";
|
|
15
|
+
import { g as _n } from "./get-slot-text.BQS5Olxm.js";
|
|
16
16
|
import { u as ie } from "./i18n.BQkEbtPM.js";
|
|
17
|
-
import { B as
|
|
18
|
-
import { B as
|
|
19
|
-
import { E as
|
|
20
|
-
import { D as
|
|
21
|
-
import { o as
|
|
17
|
+
import { B as Le } from "./filter-bar.CFcu6P8H.js";
|
|
18
|
+
import { B as vn } from "./empty-state.BnHTBgKG.js";
|
|
19
|
+
import { E as Cn } from "./tabs.keys.Bc2pSKRw.js";
|
|
20
|
+
import { D as hn } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
21
|
+
import { o as De } from "./resize.Bqks3WUm.js";
|
|
22
22
|
import "./index.Cl4_42j5.js";
|
|
23
|
-
import { u as
|
|
24
|
-
import { g as
|
|
25
|
-
import { B as
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import { E as
|
|
29
|
-
import { C as
|
|
30
|
-
import { C as
|
|
31
|
-
import { B as
|
|
32
|
-
import { e as
|
|
33
|
-
import { B as
|
|
34
|
-
import { a as
|
|
35
|
-
import { A as Tn } from "./dialog-page.
|
|
36
|
-
import { H as
|
|
37
|
-
import { l as
|
|
38
|
-
import { B as
|
|
39
|
-
import { B as
|
|
40
|
-
import { u as
|
|
41
|
-
import { S as
|
|
42
|
-
import { B as
|
|
23
|
+
import { u as mn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
24
|
+
import { g as Re } from "./generate-uid.NJ8tVoha.js";
|
|
25
|
+
import { B as it } from "./checkbox.CE9NdY0R.js";
|
|
26
|
+
import { B as rt } from "./button.CdAFZa4V.js";
|
|
27
|
+
import { B as dt, O as pn, D as Sn } from "./menu.lbODB0y3.js";
|
|
28
|
+
import { E as Ln } from "./link.DZlbzVSB.js";
|
|
29
|
+
import { C as wn } from "./copy.DMlIj53I.js";
|
|
30
|
+
import { C as En, a as Rn } from "./chevron-up.DVfo78kV.js";
|
|
31
|
+
import { B as Fe } from "./toggle-button.BX_9vB0d.js";
|
|
32
|
+
import { e as yn, d as bn } from "./button-actions.BovYBINL.js";
|
|
33
|
+
import { B as On } from "./info-icon.C4_l0WAf.js";
|
|
34
|
+
import { a as We, B as An } from "./popover.BQGNMbQN.js";
|
|
35
|
+
import { A as Tn } from "./dialog-page.Bf07JxdG.js";
|
|
36
|
+
import { H as Nn, S as In } from "./show.IEAxtCB7.js";
|
|
37
|
+
import { l as He } from "./events.CMzGybJJ.js";
|
|
38
|
+
import { B as ct } from "./toggle.CyaY0U0K.js";
|
|
39
|
+
import { B as Dn } from "./search-bar.Dk-GuqgF.js";
|
|
40
|
+
import { u as Fn } from "./dropdown.BBHNOorv.js";
|
|
41
|
+
import { S as xn } from "./search.CBKhp7zB.js";
|
|
42
|
+
import { B as Mn } from "./directive.O3yEdalv.js";
|
|
43
43
|
import "../assets/data-grid.css";
|
|
44
|
-
var
|
|
45
|
-
const
|
|
46
|
-
const n = b(null), e = b(!1), o = b(void 0),
|
|
47
|
-
let
|
|
48
|
-
const
|
|
49
|
-
() => Object.fromEntries(s.value.map(({ field:
|
|
44
|
+
var ye = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(ye || {}), se = /* @__PURE__ */ ((s) => (s.OUTLINE = "outline", s.SCROLL = "scroll", s.STICKY_FILTERS = "sticky-filters", s.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", s.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", s.NO_SPACING_TOP = "no-spacing-top", s))(se || {}), ae = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(ae || {}), A = /* @__PURE__ */ ((s) => (s.COLUMNS = "columns", s.COLUMN_RESIZE = "column-resize", s.ITEMS_PAGE = "items-page", s.NAVIGATE = "navigate", s.NESTED_CONTENT_TOGGLED = "nested-content-toggled", s.FILTER_SEARCH_INPUT = "filter-search-input", s.FILTER_SEARCH_CLEAR = "filter-search-clear", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_FILTERS = "update:filters", s.UPDATE_FILTER_VALUES = "update:filter-values", s.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", s.UPDATE_PAGINATION = "update:pagination", s.UPDATE_SELECTION = "update:selection", s.UPDATE_SHOW_MORE = "update:show-more", s.UPDATE_SORT_BY = "update:sort-by", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(A || {}), Ce = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ce || {}), k = /* @__PURE__ */ ((s) => (s.COLUMN_RESIZE = "column-resize", s.COLUMN_RESIZING = "column-resizing", s.SELECT_ALL_ROWS = "select-all-rows", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.COLUMN_MOVE = "column-move", s.COLUMN_UPDATE = "column-update", s.COLUMN_MENU_OPEN = "column-menu-open", s.COLUMN_MENU_CLOSE = "column-menu-close", s.COLUMN_HOVER = "column-hover", s.COLUMN_DRAG_START = "column-dragstart", s.COLUMN_DRAG_ENTER = "column-dragenter", s.COLUMN_DRAG_END = "column-dragend", s.COLUMN_DROP = "column-drop", s))(k || {});
|
|
45
|
+
const Bn = (s, t) => {
|
|
46
|
+
const n = b(null), e = b(!1), o = b(void 0), a = s.value.reduce((h, p) => (h[p.field] = null, h), {}), i = be(a), C = Oe(i);
|
|
47
|
+
let _ = 0, f = "";
|
|
48
|
+
const m = L(
|
|
49
|
+
() => Object.fromEntries(s.value.map(({ field: h, width: p, minWidth: O }) => [h, { width: p, minWidth: O }]))
|
|
50
50
|
);
|
|
51
|
-
|
|
52
|
-
let
|
|
53
|
-
const
|
|
54
|
-
const
|
|
55
|
-
o.value[O].width = R >
|
|
56
|
-
},
|
|
57
|
-
e.value = !1,
|
|
58
|
-
field:
|
|
59
|
-
width: o.value[
|
|
60
|
-
}),
|
|
61
|
-
},
|
|
62
|
-
if (O.preventDefault(),
|
|
51
|
+
on(() => o.value = m.value);
|
|
52
|
+
let c = null, E = null;
|
|
53
|
+
const l = (h) => {
|
|
54
|
+
const p = h.clientX - _, O = f, R = o.value[O].width + p;
|
|
55
|
+
o.value[O].width = R > m.value[O].minWidth ? R : m.value[O].minWidth, t(k.COLUMN_RESIZING, o.value), _ = h.clientX;
|
|
56
|
+
}, d = () => {
|
|
57
|
+
e.value = !1, c == null || c(), E == null || E(), f && t(k.COLUMN_RESIZE, {
|
|
58
|
+
field: f,
|
|
59
|
+
width: o.value[f].width
|
|
60
|
+
}), c = null, E = null, f = "", _ = null;
|
|
61
|
+
}, u = (h, p, O) => {
|
|
62
|
+
if (O.preventDefault(), h) {
|
|
63
63
|
if (e.value = !0, O.buttons !== 1) {
|
|
64
|
-
|
|
64
|
+
d();
|
|
65
65
|
return;
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
f = p, _ = O.clientX, c = He(window, "mousemove", l), E = He(window, "mouseup", d);
|
|
68
68
|
}
|
|
69
69
|
};
|
|
70
70
|
return Y(
|
|
71
71
|
() => e.value,
|
|
72
|
-
(
|
|
73
|
-
!
|
|
72
|
+
(h, p) => {
|
|
73
|
+
!h && p && (t(k.COLUMN_HOVER, n.value), n.value = null);
|
|
74
74
|
}
|
|
75
75
|
), {
|
|
76
76
|
resizeData: o,
|
|
77
|
-
allColumnRefs:
|
|
78
|
-
startResize:
|
|
77
|
+
allColumnRefs: C,
|
|
78
|
+
startResize: u,
|
|
79
79
|
isResizing: e,
|
|
80
80
|
columnHoverEventToEmitAfterResizing: n
|
|
81
81
|
};
|
|
82
|
-
}, Pn = 100,
|
|
83
|
-
const e = {}, o = [],
|
|
84
|
-
const
|
|
85
|
-
|
|
82
|
+
}, Pn = 100, Ve = 50, q = "b-actions-column", zn = 32, $n = 56, Un = 56, kn = 80, Gn = 36, Wn = 1, ut = 16, Hn = 20, Vn = (s, t, n) => {
|
|
83
|
+
const e = {}, o = [], a = (C) => {
|
|
84
|
+
const _ = e[C];
|
|
85
|
+
_ && _.frozen !== !0 && (e[C].frozen = !0, o.push(C));
|
|
86
86
|
};
|
|
87
|
-
function
|
|
87
|
+
function i() {
|
|
88
88
|
if (o.length === n.length)
|
|
89
89
|
return;
|
|
90
|
-
const
|
|
91
|
-
let
|
|
92
|
-
o.forEach((
|
|
93
|
-
|
|
90
|
+
const C = { min: {} };
|
|
91
|
+
let _ = s, f = t, m = 0;
|
|
92
|
+
o.forEach((c) => {
|
|
93
|
+
_ -= e[c].computedWidth, f -= e[c].flex;
|
|
94
94
|
});
|
|
95
|
-
for (let
|
|
96
|
-
const
|
|
97
|
-
if (e[
|
|
95
|
+
for (let c = 0, E = n.length; c < E; c += 1) {
|
|
96
|
+
const l = n[c];
|
|
97
|
+
if (e[l.field] && e[l.field].frozen === !0)
|
|
98
98
|
continue;
|
|
99
|
-
let
|
|
100
|
-
|
|
99
|
+
let u = _ / f * l.flex;
|
|
100
|
+
u < l.minWidth && (m += l.minWidth - u, u = l.minWidth, C.min[l.field] = !0), e[l.field] = {
|
|
101
101
|
frozen: !1,
|
|
102
|
-
computedWidth:
|
|
103
|
-
flex:
|
|
102
|
+
computedWidth: u,
|
|
103
|
+
flex: l.flex
|
|
104
104
|
};
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}) : n.forEach(({ field:
|
|
109
|
-
|
|
110
|
-
}),
|
|
106
|
+
m > 0 ? Object.keys(C.min).forEach((c) => {
|
|
107
|
+
a(c);
|
|
108
|
+
}) : n.forEach(({ field: c }) => {
|
|
109
|
+
a(c);
|
|
110
|
+
}), i();
|
|
111
111
|
}
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
let n =
|
|
115
|
-
return t && (n +=
|
|
116
|
-
},
|
|
117
|
-
var t, n, e, o,
|
|
118
|
-
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ?
|
|
119
|
-
},
|
|
120
|
-
const
|
|
112
|
+
return i(), e;
|
|
113
|
+
}, Ze = (s, t) => {
|
|
114
|
+
let n = Wn;
|
|
115
|
+
return t && (n += ut * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
116
|
+
}, Zn = (s) => {
|
|
117
|
+
var t, n, e, o, a;
|
|
118
|
+
return (t = s == null ? void 0 : s.hasNestedContent) != null && t.value || (n = s == null ? void 0 : s.hasNestedRows) != null && n.value ? (e = s == null ? void 0 : s.hasSelectableColumn) != null && e.value ? (o = s == null ? void 0 : s.hasSelectableAcrossPages) != null && o.value ? kn : Un : Gn : (a = s == null ? void 0 : s.hasSelectableAcrossPages) != null && a.value ? $n : zn;
|
|
119
|
+
}, jn = (s, t, n, e, o, a) => {
|
|
120
|
+
const i = b(s.value), C = b(t), _ = b(n), f = b(e), m = b(o), c = b(!1);
|
|
121
121
|
Y(
|
|
122
122
|
() => s.value,
|
|
123
|
-
(
|
|
124
|
-
var
|
|
125
|
-
const N = (
|
|
126
|
-
if (!((
|
|
127
|
-
|
|
123
|
+
(S, w) => {
|
|
124
|
+
var x, $;
|
|
125
|
+
const N = (S == null ? void 0 : S.map(({ field: g }) => g).toString()) === (w == null ? void 0 : w.map(({ field: g }) => g).toString());
|
|
126
|
+
if (!((x = a == null ? void 0 : a.allowColumnDragAndDrop) != null && x.value) || !N) {
|
|
127
|
+
i.value = s.value;
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
|
|
131
|
-
const
|
|
132
|
-
return
|
|
130
|
+
i.value = (($ = i.value) == null ? void 0 : $.length) === 0 ? s.value : s.value.sort((g, B) => {
|
|
131
|
+
const I = i.value.findIndex((G) => G.field === g.field), D = i.value.findIndex((G) => G.field === B.field);
|
|
132
|
+
return I === -1 ? 1 : D === -1 ? -1 : I - D;
|
|
133
133
|
});
|
|
134
134
|
}
|
|
135
135
|
);
|
|
136
|
-
const
|
|
137
|
-
let
|
|
138
|
-
const
|
|
139
|
-
var
|
|
140
|
-
const
|
|
141
|
-
let
|
|
142
|
-
const
|
|
143
|
-
let
|
|
144
|
-
const
|
|
145
|
-
if ((
|
|
146
|
-
const
|
|
147
|
-
|
|
136
|
+
const E = b();
|
|
137
|
+
let l = null;
|
|
138
|
+
const d = L(() => {
|
|
139
|
+
var I, D, G;
|
|
140
|
+
const S = [];
|
|
141
|
+
let w = 0, N = 0;
|
|
142
|
+
const x = {};
|
|
143
|
+
let $ = i.value.filter((v) => v.visible !== !1);
|
|
144
|
+
const g = i.value.filter((v) => v.visible === !1);
|
|
145
|
+
if ((I = a == null ? void 0 : a.hasSelectableColumn) != null && I.value || (D = a == null ? void 0 : a.hasNestedContent) != null && D.value || (G = a == null ? void 0 : a.hasNestedRows) != null && G.value) {
|
|
146
|
+
const v = Zn(a);
|
|
147
|
+
$ = [
|
|
148
148
|
{
|
|
149
149
|
field: q,
|
|
150
150
|
label: "",
|
|
151
|
-
minWidth:
|
|
152
|
-
width:
|
|
151
|
+
minWidth: v,
|
|
152
|
+
width: v,
|
|
153
153
|
frozen: !0,
|
|
154
154
|
padding: { left: !1, right: !1 }
|
|
155
155
|
},
|
|
156
|
-
|
|
156
|
+
...$
|
|
157
157
|
];
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
const y = { ...
|
|
161
|
-
let
|
|
162
|
-
y.flex && y.flex > 0 ? (
|
|
159
|
+
$.forEach((v) => {
|
|
160
|
+
const y = { ...v };
|
|
161
|
+
let P;
|
|
162
|
+
y.flex && y.flex > 0 ? (w += y.flex, P = 0, S.push(y)) : P = Math.max(
|
|
163
163
|
(y == null ? void 0 : y.width) ?? Pn,
|
|
164
|
-
(y == null ? void 0 : y.minWidth) ??
|
|
165
|
-
), N +=
|
|
164
|
+
(y == null ? void 0 : y.minWidth) ?? Ve
|
|
165
|
+
), N += P, y.width = P, y.minWidth = (y == null ? void 0 : y.minWidth) ?? Ve, x[y.field] = y;
|
|
166
166
|
});
|
|
167
|
-
const
|
|
168
|
-
if (
|
|
169
|
-
const
|
|
170
|
-
Object.keys(
|
|
171
|
-
|
|
167
|
+
const B = Math.max(E.value - N, 0);
|
|
168
|
+
if (w > 0 && E.value > 0) {
|
|
169
|
+
const v = Vn(B, w, S);
|
|
170
|
+
Object.keys(v).forEach((y) => {
|
|
171
|
+
x[y].width = v[y].computedWidth;
|
|
172
172
|
});
|
|
173
173
|
}
|
|
174
|
-
return
|
|
175
|
-
const y = { ...
|
|
176
|
-
|
|
177
|
-
}), Object.values(
|
|
178
|
-
}),
|
|
179
|
-
|
|
180
|
-
},
|
|
181
|
-
|
|
182
|
-
var
|
|
183
|
-
const N =
|
|
184
|
-
(
|
|
185
|
-
(
|
|
186
|
-
),
|
|
187
|
-
(G,
|
|
174
|
+
return g.forEach((v) => {
|
|
175
|
+
const y = { ...v };
|
|
176
|
+
x[y.field] = y;
|
|
177
|
+
}), Object.values(x);
|
|
178
|
+
}), u = b(void 0), h = (S) => {
|
|
179
|
+
u.value = { ...u.value, ...S };
|
|
180
|
+
}, p = async () => {
|
|
181
|
+
i.value.some((S) => S == null ? void 0 : S.autoWidth) && (c.value = !0, await K(), i == null || i.value.filter((S) => S == null ? void 0 : S.autoWidth).forEach(({ field: S, minWidth: w }) => {
|
|
182
|
+
var g, B, I, D;
|
|
183
|
+
const N = Ze(
|
|
184
|
+
(g = f.value) == null ? void 0 : g[S],
|
|
185
|
+
(B = a == null ? void 0 : a.hasColumnPanel) == null ? void 0 : B.value
|
|
186
|
+
), x = (D = (I = m.value) == null ? void 0 : I[S]) == null ? void 0 : D.reduce(
|
|
187
|
+
(G, v) => Math.max(G, Ze(v)),
|
|
188
188
|
0
|
|
189
|
-
),
|
|
190
|
-
(
|
|
191
|
-
[
|
|
192
|
-
width:
|
|
189
|
+
), $ = Math.max(N, x ?? 0);
|
|
190
|
+
(w === void 0 || $ > w) && h({
|
|
191
|
+
[S]: {
|
|
192
|
+
width: $
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
|
-
}),
|
|
195
|
+
}), c.value = !1);
|
|
196
196
|
};
|
|
197
|
-
Y([() =>
|
|
198
|
-
|
|
197
|
+
Y([() => i.value, () => C.value], async () => {
|
|
198
|
+
i.value.some((S) => S == null ? void 0 : S.autoWidth) && await p();
|
|
199
199
|
});
|
|
200
|
-
const O =
|
|
201
|
-
() =>
|
|
202
|
-
var
|
|
200
|
+
const O = L(
|
|
201
|
+
() => d.value.map((S) => {
|
|
202
|
+
var w, N;
|
|
203
203
|
return {
|
|
204
|
-
...
|
|
204
|
+
...S,
|
|
205
205
|
// Override column width with resized ones
|
|
206
|
-
width: ((N = (
|
|
206
|
+
width: ((N = (w = u.value) == null ? void 0 : w[S.field]) == null ? void 0 : N.width) ?? S.width
|
|
207
207
|
};
|
|
208
208
|
})
|
|
209
|
-
), R =
|
|
209
|
+
), R = L(
|
|
210
210
|
() => {
|
|
211
|
-
var
|
|
212
|
-
return (
|
|
211
|
+
var S;
|
|
212
|
+
return (S = O.value) == null ? void 0 : S.filter(({ visible: w }) => w !== !1).reduce((w, N) => N.width + w, 0);
|
|
213
213
|
}
|
|
214
|
-
),
|
|
215
|
-
() =>
|
|
216
|
-
),
|
|
217
|
-
width:
|
|
214
|
+
), F = L(
|
|
215
|
+
() => E.value <= R.value
|
|
216
|
+
), z = L(() => ({
|
|
217
|
+
width: E.value > R.value ? "100%" : "fit-content"
|
|
218
218
|
}));
|
|
219
|
-
return
|
|
220
|
-
var
|
|
221
|
-
const
|
|
219
|
+
return Ae(() => {
|
|
220
|
+
var w;
|
|
221
|
+
const S = a != null && a.isDataGridTemplate ? Hn : 0;
|
|
222
222
|
K(() => {
|
|
223
|
-
|
|
223
|
+
_.value && (E.value = _.value.getBoundingClientRect().width - S);
|
|
224
224
|
const N = Y(
|
|
225
|
-
|
|
225
|
+
_,
|
|
226
226
|
() => {
|
|
227
|
-
|
|
228
|
-
|
|
227
|
+
_.value && (K(() => N()), l = De(_.value, ({ width: x }) => {
|
|
228
|
+
E.value = x - S;
|
|
229
229
|
}));
|
|
230
230
|
},
|
|
231
231
|
{ immediate: !0 }
|
|
232
232
|
);
|
|
233
|
-
}), (
|
|
234
|
-
|
|
235
|
-
}) :
|
|
236
|
-
}),
|
|
237
|
-
|
|
238
|
-
}),
|
|
239
|
-
var
|
|
240
|
-
|
|
241
|
-
|
|
233
|
+
}), (w = document == null ? void 0 : document.fonts) != null && w.ready ? document.fonts.ready.then(() => {
|
|
234
|
+
p();
|
|
235
|
+
}) : p();
|
|
236
|
+
}), st(() => {
|
|
237
|
+
l == null || l.disconnect();
|
|
238
|
+
}), ln(() => {
|
|
239
|
+
var S;
|
|
240
|
+
m.value && ((S = Object.keys(m.value)) == null ? void 0 : S.length) > 0 && Object.keys(m.value).forEach((N) => {
|
|
241
|
+
m.value[N] = [];
|
|
242
242
|
});
|
|
243
243
|
}), {
|
|
244
244
|
columnDefs: O,
|
|
245
|
-
gridColumnWidthStyle:
|
|
246
|
-
onColumnWidthOverride:
|
|
247
|
-
isMeasuringColumnWidths:
|
|
248
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
249
|
-
columns:
|
|
245
|
+
gridColumnWidthStyle: z,
|
|
246
|
+
onColumnWidthOverride: h,
|
|
247
|
+
isMeasuringColumnWidths: c,
|
|
248
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: F,
|
|
249
|
+
columns: i,
|
|
250
250
|
totalWidthOfAllColumns: R
|
|
251
251
|
};
|
|
252
|
-
},
|
|
253
|
-
const
|
|
252
|
+
}, qn = (s, t, n, e, o) => {
|
|
253
|
+
const a = b(s.value ?? []), i = be({
|
|
254
254
|
allItemsSelected: !1,
|
|
255
255
|
isIndeterminate: !1
|
|
256
|
-
}),
|
|
257
|
-
() => n.value.flatMap((
|
|
258
|
-
var
|
|
259
|
-
return [
|
|
256
|
+
}), C = L(
|
|
257
|
+
() => n.value.flatMap((d) => {
|
|
258
|
+
var u;
|
|
259
|
+
return [d, ((u = d == null ? void 0 : d.children) == null ? void 0 : u.length) > 0 ? d == null ? void 0 : d.children : []];
|
|
260
260
|
}).flat()
|
|
261
|
-
),
|
|
262
|
-
t(
|
|
263
|
-
},
|
|
264
|
-
var
|
|
265
|
-
if (
|
|
266
|
-
|
|
267
|
-
const
|
|
268
|
-
|
|
261
|
+
), _ = () => {
|
|
262
|
+
t(A.SELECT, a.value), t(A.UPDATE_SELECTION, a.value);
|
|
263
|
+
}, f = (d) => {
|
|
264
|
+
var h, p, O, R, F;
|
|
265
|
+
if (a.value = d, ((h = n.value) == null ? void 0 : h.length) > 0 && ((p = C.value) == null ? void 0 : p.filter((z) => !o(z)).every((z) => a.value.includes(e(z))))) {
|
|
266
|
+
i.allItemsSelected = !0;
|
|
267
|
+
const z = ((O = n.value) == null ? void 0 : O.length) > 0 && n.value.every((S) => a.value.includes(e(S)));
|
|
268
|
+
i.isIndeterminate = !z;
|
|
269
269
|
} else
|
|
270
|
-
|
|
271
|
-
(
|
|
272
|
-
var
|
|
273
|
-
return
|
|
270
|
+
i.allItemsSelected = !1, i.isIndeterminate = ((R = a.value) == null ? void 0 : R.length) > 0 && ((F = n.value) == null ? void 0 : F.length) > 0 && n.value.some(
|
|
271
|
+
(z) => {
|
|
272
|
+
var S;
|
|
273
|
+
return a.value.includes(e(z)) || ((S = z == null ? void 0 : z.children) == null ? void 0 : S.some((w) => a.value.includes(e(w))));
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
|
-
},
|
|
276
|
+
}, m = (d) => {
|
|
277
277
|
K(() => {
|
|
278
|
-
var
|
|
279
|
-
if (
|
|
280
|
-
|
|
281
|
-
(R) => !o(R) && ((R == null ? void 0 : R.children) === void 0 || R.children.every((
|
|
282
|
-
)) == null ? void 0 :
|
|
283
|
-
const O = ((
|
|
284
|
-
|
|
278
|
+
var u, h, p;
|
|
279
|
+
if (i.allItemsSelected = d, d) {
|
|
280
|
+
a.value = (h = (u = C.value) == null ? void 0 : u.filter(
|
|
281
|
+
(R) => !o(R) && ((R == null ? void 0 : R.children) === void 0 || R.children.every((F) => !o(F)))
|
|
282
|
+
)) == null ? void 0 : h.map((R) => e(R));
|
|
283
|
+
const O = ((p = n.value) == null ? void 0 : p.length) > 0 && n.value.every((R) => a.value.includes(e(R)));
|
|
284
|
+
i.isIndeterminate = a.value.length > 0 && !O;
|
|
285
285
|
} else
|
|
286
|
-
|
|
287
|
-
|
|
286
|
+
a.value = [], i.isIndeterminate = !1;
|
|
287
|
+
_();
|
|
288
288
|
});
|
|
289
|
-
},
|
|
289
|
+
}, c = (d, u) => {
|
|
290
290
|
K(() => {
|
|
291
|
-
var
|
|
292
|
-
|
|
291
|
+
var h;
|
|
292
|
+
f(((h = u == null ? void 0 : u.children) == null ? void 0 : h.length) > 0 ? E(d, u) : d), _();
|
|
293
293
|
});
|
|
294
|
-
},
|
|
294
|
+
}, E = (d, u) => {
|
|
295
295
|
var O;
|
|
296
|
-
const
|
|
297
|
-
if (
|
|
298
|
-
const R =
|
|
299
|
-
return
|
|
300
|
-
R.includes(
|
|
296
|
+
const h = e(u), p = (O = u.children) == null ? void 0 : O.filter((R) => !o(R)).map((R) => e(R));
|
|
297
|
+
if (d.includes(h)) {
|
|
298
|
+
const R = d;
|
|
299
|
+
return p.forEach((F) => {
|
|
300
|
+
R.includes(F) || R.push(F);
|
|
301
301
|
}), R;
|
|
302
302
|
}
|
|
303
|
-
return
|
|
304
|
-
},
|
|
303
|
+
return d.filter((R) => !p.includes(R));
|
|
304
|
+
}, l = (d, u, h) => {
|
|
305
305
|
K(() => {
|
|
306
306
|
var O, R;
|
|
307
|
-
const
|
|
308
|
-
|
|
309
|
-
!
|
|
310
|
-
) :
|
|
311
|
-
|
|
312
|
-
),
|
|
307
|
+
const p = e(u);
|
|
308
|
+
d.includes(e(h)) ? f(
|
|
309
|
+
!d.includes(p) && ((O = u == null ? void 0 : u.children) != null && O.every((F) => d.includes(e(F)))) ? [...d, p] : d
|
|
310
|
+
) : f(
|
|
311
|
+
d.includes(p) && !((R = u == null ? void 0 : u.children) != null && R.every((F) => d.includes(e(F)))) ? d.filter((F) => F !== p) : d
|
|
312
|
+
), _();
|
|
313
313
|
});
|
|
314
314
|
};
|
|
315
315
|
return Y(
|
|
316
316
|
() => s.value,
|
|
317
317
|
() => {
|
|
318
|
-
|
|
318
|
+
f(s.value ?? []);
|
|
319
319
|
},
|
|
320
320
|
{ immediate: !0 }
|
|
321
321
|
), Y(
|
|
322
322
|
() => n.value,
|
|
323
323
|
() => {
|
|
324
|
-
const
|
|
325
|
-
(
|
|
326
|
-
var
|
|
327
|
-
return ((
|
|
324
|
+
const d = n.value.filter((u) => a.value.includes(e(u))).flatMap(
|
|
325
|
+
(u) => {
|
|
326
|
+
var h;
|
|
327
|
+
return ((h = u == null ? void 0 : u.children) == null ? void 0 : h.length) > 0 ? u.children.map((p) => e(p)).filter((p) => !a.value.includes(p)) : [];
|
|
328
328
|
}
|
|
329
329
|
);
|
|
330
|
-
|
|
330
|
+
f([...a.value, ...d]), _();
|
|
331
331
|
}
|
|
332
|
-
), { onAllRowSelect:
|
|
333
|
-
},
|
|
334
|
-
var
|
|
335
|
-
return (
|
|
336
|
-
}, sortByColumnField: (
|
|
337
|
-
var
|
|
338
|
-
if (!t.value.some((
|
|
332
|
+
), { onAllRowSelect: m, onRowSelect: c, onNestedRowSelect: l, allItemsSelectedState: i, selectedItems: a };
|
|
333
|
+
}, Yn = (s, t, n) => ({ isSorting: (i) => s.value.some((C) => C.field === i), getSortingDirection: (i) => {
|
|
334
|
+
var C;
|
|
335
|
+
return (C = s.value.find((_) => _.field === i)) == null ? void 0 : C.direction;
|
|
336
|
+
}, sortByColumnField: (i) => {
|
|
337
|
+
var f;
|
|
338
|
+
if (!t.value.some((m) => m.field === i && m.sortable))
|
|
339
339
|
return;
|
|
340
|
-
const
|
|
341
|
-
field:
|
|
342
|
-
direction: ((
|
|
340
|
+
const _ = [{
|
|
341
|
+
field: i,
|
|
342
|
+
direction: ((f = s.value.find((m) => m.field === i)) == null ? void 0 : f.direction) === ae.ASCENDING ? ae.DESCENDING : ae.ASCENDING
|
|
343
343
|
}];
|
|
344
|
-
n("sort",
|
|
344
|
+
n("sort", _);
|
|
345
345
|
} });
|
|
346
346
|
var j = ((s) => (s[s.ARROW_DOWN = te.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = te.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = te.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = te.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = te.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = te.PAGE_DOWN] = "PAGE_DOWN", s[s.END = te.END] = "END", s[s.HOME = te.HOME] = "HOME", s))(j || {});
|
|
347
|
-
const
|
|
348
|
-
const e =
|
|
349
|
-
const
|
|
350
|
-
return n.value ?
|
|
351
|
-
}), o =
|
|
352
|
-
() => [...Object.values(s.value)].flat(1).sort((
|
|
353
|
-
const
|
|
354
|
-
return
|
|
347
|
+
const Xn = (s, t, n) => {
|
|
348
|
+
const e = L(() => {
|
|
349
|
+
const l = t.value.filter(({ visible: d }) => d !== !1);
|
|
350
|
+
return n.value ? l.length + 1 : l.length;
|
|
351
|
+
}), o = L(
|
|
352
|
+
() => [...Object.values(s.value)].flat(1).sort((l, d) => {
|
|
353
|
+
const u = Number(l.getAttribute("data-cellindex")), h = Number(d.getAttribute("data-cellindex"));
|
|
354
|
+
return u > h ? 1 : h > u ? -1 : 0;
|
|
355
355
|
})
|
|
356
|
-
),
|
|
357
|
-
const
|
|
356
|
+
), a = (l) => Math.floor(l / e.value), i = (l, d, u) => {
|
|
357
|
+
const h = o.value.length - 1, p = e.value - 1, O = a(l), R = l - e.value * O;
|
|
358
358
|
return {
|
|
359
359
|
[j.PAGE_UP]: R,
|
|
360
|
-
[j.PAGE_DOWN]:
|
|
361
|
-
[j.END]:
|
|
362
|
-
[j.HOME]:
|
|
363
|
-
}[
|
|
364
|
-
},
|
|
365
|
-
const
|
|
360
|
+
[j.PAGE_DOWN]: h - p + R,
|
|
361
|
+
[j.END]: u ? h : e.value * O + p,
|
|
362
|
+
[j.HOME]: u ? 0 : e.value * O
|
|
363
|
+
}[d];
|
|
364
|
+
}, C = (l, d) => {
|
|
365
|
+
const h = {
|
|
366
366
|
[j.ARROW_DOWN]: e.value,
|
|
367
367
|
[j.ARROW_UP]: -e.value,
|
|
368
368
|
[j.ARROW_LEFT]: -1,
|
|
369
369
|
[j.ARROW_RIGHT]: 1
|
|
370
|
-
}[
|
|
371
|
-
return
|
|
372
|
-
},
|
|
370
|
+
}[d], p = l + h;
|
|
371
|
+
return p < 0 || p >= o.value.length ? l : p;
|
|
372
|
+
}, _ = (l) => [
|
|
373
373
|
j.PAGE_UP,
|
|
374
374
|
j.PAGE_DOWN,
|
|
375
375
|
j.END,
|
|
376
376
|
j.HOME
|
|
377
|
-
].includes(
|
|
378
|
-
const
|
|
379
|
-
return
|
|
380
|
-
},
|
|
381
|
-
if (!o.value.includes(
|
|
377
|
+
].includes(l), f = (l, d, u) => {
|
|
378
|
+
const h = o.value.indexOf(l);
|
|
379
|
+
return _(d) ? i(h, d, u) : C(h, d);
|
|
380
|
+
}, m = (l, d, u) => {
|
|
381
|
+
if (!o.value.includes(l))
|
|
382
382
|
return;
|
|
383
|
-
const
|
|
384
|
-
o.value[
|
|
385
|
-
},
|
|
383
|
+
const h = f(l, d, u);
|
|
384
|
+
o.value[h].focus();
|
|
385
|
+
}, c = (l) => l in j;
|
|
386
386
|
return {
|
|
387
|
-
isNavigationKeyCode:
|
|
388
|
-
focusOnNextGridcell:
|
|
389
|
-
navigationInput: (
|
|
390
|
-
const { ctrlKey:
|
|
391
|
-
Object.values(s.value).flat(1).includes(
|
|
387
|
+
isNavigationKeyCode: c,
|
|
388
|
+
focusOnNextGridcell: m,
|
|
389
|
+
navigationInput: (l) => {
|
|
390
|
+
const { ctrlKey: d, keyCode: u, target: h } = l;
|
|
391
|
+
Object.values(s.value).flat(1).includes(h) && c(u) && m(h, u, d);
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
},
|
|
395
|
-
const
|
|
396
|
-
o(
|
|
394
|
+
}, Jn = 90, Kn = (s, t, n, e, o) => {
|
|
395
|
+
const a = b(s), i = b(t), C = b(n), _ = b(e), f = L(() => a.value !== "none"), m = L(() => a.value === "automatic"), c = () => {
|
|
396
|
+
o(A.UPDATE_SHOW_MORE);
|
|
397
397
|
};
|
|
398
398
|
return Y(
|
|
399
|
-
() =>
|
|
399
|
+
() => i.value,
|
|
400
400
|
() => {
|
|
401
|
-
|
|
401
|
+
m.value && C.value.offsetHeight / i.value * 100 > Jn && !_.value && c();
|
|
402
402
|
}
|
|
403
|
-
), { isLazyLoad:
|
|
404
|
-
},
|
|
405
|
-
const e = b(s), o = b(t),
|
|
403
|
+
), { isLazyLoad: f, isInfiniteScroll: m, verticalScrollPosition: i, emitLazyLoadEvent: c };
|
|
404
|
+
}, Qn = (s, t, n) => {
|
|
405
|
+
const e = b(s), o = b(t), a = be({
|
|
406
406
|
dragging: null,
|
|
407
407
|
dragToLeft: null,
|
|
408
408
|
target: null
|
|
409
|
-
}),
|
|
410
|
-
const
|
|
411
|
-
if (
|
|
409
|
+
}), i = (l, d = 0) => {
|
|
410
|
+
const u = e.value.findIndex((O) => O.field === l.field), h = u + d;
|
|
411
|
+
if (h < 0 || h > e.value.length - 1)
|
|
412
412
|
return;
|
|
413
|
-
const
|
|
414
|
-
|
|
415
|
-
},
|
|
416
|
-
|
|
417
|
-
},
|
|
418
|
-
|
|
419
|
-
const
|
|
420
|
-
|
|
421
|
-
},
|
|
422
|
-
var
|
|
423
|
-
if (((
|
|
424
|
-
const
|
|
425
|
-
var
|
|
426
|
-
return
|
|
427
|
-
}),
|
|
428
|
-
let
|
|
429
|
-
|
|
413
|
+
const p = [...e.value];
|
|
414
|
+
p.splice(h, 0, p.splice(u, 1)[0]), n(A.COLUMNS, p), n(A.UPDATE_COLUMNS, p);
|
|
415
|
+
}, C = (l, d) => {
|
|
416
|
+
a.dragging = l, d.dataTransfer.setData("text", ""), d.dataTransfer.dropEffect = "move";
|
|
417
|
+
}, _ = (l, d) => {
|
|
418
|
+
a.target = l;
|
|
419
|
+
const u = d.currentTarget.getBoundingClientRect(), h = u.left + u.width / 2, p = d.clientX ?? 0;
|
|
420
|
+
a.dragToLeft = p <= h;
|
|
421
|
+
}, f = (l) => {
|
|
422
|
+
var d, u;
|
|
423
|
+
if (((d = a.dragging) == null ? void 0 : d.field) !== l.field) {
|
|
424
|
+
const h = e.value.findIndex((S) => {
|
|
425
|
+
var w;
|
|
426
|
+
return S.field === ((w = a.dragging) == null ? void 0 : w.field);
|
|
427
|
+
}), p = e.value.findIndex((S) => S.field === l.field), O = a.dragToLeft ? p : p + 1, R = O > h ? O - 1 : O;
|
|
428
|
+
let F = [...e.value];
|
|
429
|
+
F.splice(
|
|
430
430
|
R === -1 ? 0 : R,
|
|
431
431
|
0,
|
|
432
|
-
|
|
432
|
+
F.splice(h, 1)[0]
|
|
433
433
|
);
|
|
434
|
-
const
|
|
435
|
-
((
|
|
436
|
-
(
|
|
437
|
-
var
|
|
438
|
-
return ((
|
|
434
|
+
const z = e.value.findIndex((S) => !(S != null && S.frozen));
|
|
435
|
+
((u = a.dragging) == null ? void 0 : u.frozen) !== l.frozen && O !== z && (F = F.map(
|
|
436
|
+
(S) => {
|
|
437
|
+
var w;
|
|
438
|
+
return ((w = a.dragging) == null ? void 0 : w.field) === S.field ? { ...S, frozen: !!(l != null && l.frozen) } : S;
|
|
439
439
|
}
|
|
440
|
-
)), n(
|
|
440
|
+
)), n(A.COLUMNS, F), n(A.UPDATE_COLUMNS, F);
|
|
441
441
|
}
|
|
442
|
-
|
|
443
|
-
},
|
|
444
|
-
|
|
445
|
-
},
|
|
446
|
-
[k.COLUMN_DRAG_START]: (
|
|
447
|
-
[k.COLUMN_DRAG_ENTER]: (
|
|
448
|
-
[k.COLUMN_DROP]: (
|
|
449
|
-
[k.COLUMN_DRAG_END]: () =>
|
|
450
|
-
} : {}),
|
|
451
|
-
dragenter: (
|
|
452
|
-
|
|
442
|
+
a.dragging = null, a.target = null;
|
|
443
|
+
}, m = () => {
|
|
444
|
+
a.dragging = null, a.dragToLeft = null, a.target = null;
|
|
445
|
+
}, c = L(() => o.value ? {
|
|
446
|
+
[k.COLUMN_DRAG_START]: (l, d) => C(l, d),
|
|
447
|
+
[k.COLUMN_DRAG_ENTER]: (l, d) => _(l, d),
|
|
448
|
+
[k.COLUMN_DROP]: (l) => f(l),
|
|
449
|
+
[k.COLUMN_DRAG_END]: () => m()
|
|
450
|
+
} : {}), E = L(() => (l) => o.value ? {
|
|
451
|
+
dragenter: (d) => {
|
|
452
|
+
d.preventDefault(), _(l, d);
|
|
453
453
|
},
|
|
454
454
|
drop: () => {
|
|
455
|
-
|
|
455
|
+
f(l);
|
|
456
456
|
},
|
|
457
|
-
dragover: (
|
|
458
|
-
|
|
457
|
+
dragover: (d) => {
|
|
458
|
+
d.preventDefault();
|
|
459
459
|
}
|
|
460
460
|
} : {});
|
|
461
461
|
return {
|
|
462
462
|
// Values
|
|
463
|
-
draggingColumns:
|
|
463
|
+
draggingColumns: a,
|
|
464
464
|
// Methods
|
|
465
|
-
draggingEventsForColumns:
|
|
466
|
-
draggingEventsForRowCell:
|
|
467
|
-
onMoveColumnByOffset:
|
|
465
|
+
draggingEventsForColumns: c,
|
|
466
|
+
draggingEventsForRowCell: E,
|
|
467
|
+
onMoveColumnByOffset: i
|
|
468
468
|
};
|
|
469
|
-
},
|
|
470
|
-
const n = b(s), e =
|
|
471
|
-
() => [...n.value].sort((
|
|
472
|
-
), o =
|
|
473
|
-
() => e.value.filter((
|
|
474
|
-
),
|
|
475
|
-
() => e.value.filter((
|
|
476
|
-
),
|
|
469
|
+
}, es = (s, t) => {
|
|
470
|
+
const n = b(s), e = L(
|
|
471
|
+
() => [...n.value].sort((c, E) => c.frozen === E.frozen ? 0 : c.frozen ? -1 : 1)
|
|
472
|
+
), o = L(
|
|
473
|
+
() => e.value.filter((c) => c.frozen && c.visible !== !1)
|
|
474
|
+
), a = L(
|
|
475
|
+
() => e.value.filter((c) => !c.frozen && c.visible !== !1)
|
|
476
|
+
), i = L(
|
|
477
477
|
() => [
|
|
478
478
|
{ columnSet: o.value, id: "frozen", isFrozenColumns: !0 },
|
|
479
|
-
{ columnSet:
|
|
480
|
-
].filter(({ columnSet:
|
|
481
|
-
),
|
|
482
|
-
() => n.value.filter((
|
|
483
|
-
),
|
|
484
|
-
t(
|
|
479
|
+
{ columnSet: a.value, id: "unfrozen" }
|
|
480
|
+
].filter(({ columnSet: c }) => c.length)
|
|
481
|
+
), C = L(
|
|
482
|
+
() => n.value.filter((c) => (c == null ? void 0 : c.visible) !== !1 && (c == null ? void 0 : c.field) !== q).length === 1
|
|
483
|
+
), _ = (c) => t(A.UPDATE_CONDENSED, c), f = (c) => {
|
|
484
|
+
t(A.COLUMNS, c), t(A.UPDATE_COLUMNS, c);
|
|
485
485
|
};
|
|
486
486
|
return {
|
|
487
487
|
// Values
|
|
488
|
-
columnSets:
|
|
489
|
-
isOnlyOneVisibleColumn:
|
|
488
|
+
columnSets: i,
|
|
489
|
+
isOnlyOneVisibleColumn: C,
|
|
490
490
|
sortedColumns: e,
|
|
491
491
|
// Methods
|
|
492
|
-
onConfigSettingsUpdate:
|
|
493
|
-
onConfigSettingsColumnsUpdate:
|
|
494
|
-
onConfigSettingsColumnUpdate: (
|
|
495
|
-
const
|
|
496
|
-
(
|
|
492
|
+
onConfigSettingsUpdate: _,
|
|
493
|
+
onConfigSettingsColumnsUpdate: f,
|
|
494
|
+
onConfigSettingsColumnUpdate: (c) => {
|
|
495
|
+
const E = e.value.map(
|
|
496
|
+
(l) => (l == null ? void 0 : l.field) === c.field ? c : l
|
|
497
497
|
);
|
|
498
|
-
|
|
498
|
+
f(E);
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
|
-
},
|
|
501
|
+
}, je = (s, t) => {
|
|
502
502
|
const n = b(0);
|
|
503
503
|
let e = null;
|
|
504
504
|
const o = () => {
|
|
505
505
|
s != null && s.value && t.value && (n.value = s.value.offsetHeight);
|
|
506
506
|
};
|
|
507
|
-
return
|
|
507
|
+
return Ae(() => {
|
|
508
508
|
K(() => {
|
|
509
|
-
const
|
|
509
|
+
const a = Y(
|
|
510
510
|
s,
|
|
511
511
|
() => {
|
|
512
|
-
s != null && s.value && (K(() =>
|
|
512
|
+
s != null && s.value && (K(() => a()), e = De(s.value, () => {
|
|
513
513
|
o();
|
|
514
514
|
}));
|
|
515
515
|
},
|
|
@@ -523,52 +523,52 @@ const Yn = (s, t, n) => {
|
|
|
523
523
|
{ immediate: !0 }
|
|
524
524
|
);
|
|
525
525
|
});
|
|
526
|
-
}),
|
|
526
|
+
}), st(() => {
|
|
527
527
|
e == null || e.disconnect();
|
|
528
528
|
}), n;
|
|
529
|
-
},
|
|
530
|
-
const
|
|
529
|
+
}, ts = (s, t, n, e, o) => {
|
|
530
|
+
const a = b(0), i = b(!1), C = b(!1);
|
|
531
531
|
Y(
|
|
532
|
-
() =>
|
|
532
|
+
() => a.value,
|
|
533
533
|
() => {
|
|
534
|
-
s.value.scrollLeft =
|
|
534
|
+
s.value.scrollLeft = a.value, t.value.scrollLeft = a.value, i.value = !!a.value, C.value = t.value.scrollWidth - t.value.offsetWidth > a.value;
|
|
535
535
|
}
|
|
536
|
-
),
|
|
537
|
-
var
|
|
538
|
-
await K(), ((
|
|
536
|
+
), Ae(async () => {
|
|
537
|
+
var E, l;
|
|
538
|
+
await K(), ((E = t.value) == null ? void 0 : E.offsetWidth) < ((l = t.value) == null ? void 0 : l.scrollWidth) && (C.value = !0);
|
|
539
539
|
});
|
|
540
|
-
const
|
|
541
|
-
if (
|
|
542
|
-
const
|
|
543
|
-
e.value.scrollLeft !==
|
|
540
|
+
const _ = (E) => {
|
|
541
|
+
if (a.value = E.target.scrollLeft, n.value = s.value.scrollHeight - E.target.scrollTop, e != null && e.value) {
|
|
542
|
+
const l = E.target.scrollLeft;
|
|
543
|
+
e.value.scrollLeft !== l && (e.value.scrollLeft = l);
|
|
544
544
|
}
|
|
545
|
-
},
|
|
546
|
-
|
|
545
|
+
}, f = (E) => {
|
|
546
|
+
E.key !== "Tab" && E.key !== "ArrowRight" && E.key !== "ArrowLeft" || (E.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
547
547
|
s.value.style.overflowX = "auto";
|
|
548
548
|
}));
|
|
549
|
-
},
|
|
550
|
-
const
|
|
551
|
-
s.value.scrollLeft !==
|
|
552
|
-
},
|
|
553
|
-
var
|
|
549
|
+
}, m = (E) => {
|
|
550
|
+
const l = E.target.scrollLeft;
|
|
551
|
+
s.value.scrollLeft !== l && (s.value.scrollLeft = l);
|
|
552
|
+
}, c = L(() => {
|
|
553
|
+
var E, l, d;
|
|
554
554
|
return {
|
|
555
|
-
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((
|
|
555
|
+
"b-data-grid__horizontal-scrollbar--sticky-pagination": ((E = o == null ? void 0 : o.pagination) == null ? void 0 : E.value) && (((l = o == null ? void 0 : o.stickyPagination) == null ? void 0 : l.value) || (o == null ? void 0 : o.isDataGridTemplate)) && !((d = o == null ? void 0 : o.isLazyLoad) != null && d.value)
|
|
556
556
|
};
|
|
557
557
|
});
|
|
558
558
|
return {
|
|
559
559
|
// Values
|
|
560
|
-
scrollLeftPosition:
|
|
561
|
-
hasLeftOverflow:
|
|
562
|
-
hasRightOverflow:
|
|
563
|
-
horizontalScrollbarConditionalClasses:
|
|
560
|
+
scrollLeftPosition: a,
|
|
561
|
+
hasLeftOverflow: i,
|
|
562
|
+
hasRightOverflow: C,
|
|
563
|
+
horizontalScrollbarConditionalClasses: c,
|
|
564
564
|
// Methods
|
|
565
|
-
updateScrollPosition:
|
|
566
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
567
|
-
syncVirtualScrollerWithBody:
|
|
565
|
+
updateScrollPosition: _,
|
|
566
|
+
updateScrollPositionOnFrozenColumnsNavigation: f,
|
|
567
|
+
syncVirtualScrollerWithBody: m
|
|
568
568
|
};
|
|
569
|
-
},
|
|
570
|
-
const o = b(null),
|
|
571
|
-
var
|
|
569
|
+
}, ns = (s, t, n, e) => {
|
|
570
|
+
const o = b(null), a = L(() => {
|
|
571
|
+
var u, h, p, O;
|
|
572
572
|
if (!o.value || o.value.field === q)
|
|
573
573
|
return {
|
|
574
574
|
hoveredOverColumnField: "",
|
|
@@ -576,127 +576,127 @@ const Yn = (s, t, n) => {
|
|
|
576
576
|
noBorderLeft: !1,
|
|
577
577
|
noBorderRight: !1
|
|
578
578
|
};
|
|
579
|
-
const
|
|
579
|
+
const i = (h = (u = s.value.find((R) => R.isFrozenColumns)) == null ? void 0 : u.columnSet) == null ? void 0 : h.filter((R) => R.field !== q), C = s.value.find((R) => !(R != null && R.isFrozenColumns)), _ = o.value.frozen && (i == null ? void 0 : i[0].field) === o.value.field, f = !o.value.frozen && ((p = C == null ? void 0 : C.columnSet) == null ? void 0 : p[0].field) === o.value.field, m = (t.value || n.value) && _, c = (t.value || n.value) && !i && f, E = i && f, l = (i == null ? void 0 : i.length) > 0 && o.value.frozen && (i == null ? void 0 : i[i.length - 1].field) === o.value.field, d = n.value && e.value && !o.value.frozen && ((O = C == null ? void 0 : C.columnSet) == null ? void 0 : O[C.columnSet.length - 1].field) === o.value.field;
|
|
580
580
|
return {
|
|
581
581
|
hoveredOverColumnField: o.value.field,
|
|
582
|
-
isSeparatorOffset:
|
|
583
|
-
noBorderLeft: !!
|
|
584
|
-
noBorderRight: !!
|
|
582
|
+
isSeparatorOffset: d,
|
|
583
|
+
noBorderLeft: !!m || !!c || !!E,
|
|
584
|
+
noBorderRight: !!l || !!d
|
|
585
585
|
};
|
|
586
586
|
});
|
|
587
587
|
return {
|
|
588
588
|
hoveredOverColumn: o,
|
|
589
|
-
hoveredOverColumnState:
|
|
589
|
+
hoveredOverColumnState: a
|
|
590
590
|
};
|
|
591
591
|
};
|
|
592
|
-
let
|
|
593
|
-
const
|
|
592
|
+
let qe = 0;
|
|
593
|
+
const ss = {
|
|
594
594
|
beforeCreate() {
|
|
595
|
-
this.uuid =
|
|
595
|
+
this.uuid = qe.toString(), qe += 1;
|
|
596
596
|
}
|
|
597
597
|
};
|
|
598
|
-
var
|
|
598
|
+
var os = function() {
|
|
599
599
|
var t = this, n = t._self._c;
|
|
600
600
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-arrow_up_down_sort__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M9.06077 4.00011L5.00011 -0.0605469L0.939453 4.00011L2.00011 5.06077L4.25 2.81089V10.75H5.75V2.81066L8.00011 5.06077L9.06077 4.00011Z" } }), n("path", { attrs: { d: "M10.25 13.1893L8.00011 10.9395L6.93945 12.0001L11.0001 16.0608L15.0608 12.0001L14.0001 10.9395L11.75 13.1896V5.25H10.25V13.1893Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
601
|
-
},
|
|
602
|
-
ns,
|
|
601
|
+
}, ls = [], as = /* @__PURE__ */ V(
|
|
603
602
|
ss,
|
|
604
603
|
os,
|
|
604
|
+
ls,
|
|
605
605
|
!1,
|
|
606
606
|
null,
|
|
607
607
|
null
|
|
608
608
|
);
|
|
609
|
-
const
|
|
610
|
-
let
|
|
611
|
-
const
|
|
609
|
+
const is = as.exports;
|
|
610
|
+
let Ye = 0;
|
|
611
|
+
const rs = {
|
|
612
612
|
beforeCreate() {
|
|
613
|
-
this.uuid =
|
|
613
|
+
this.uuid = Ye.toString(), Ye += 1;
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
|
-
var
|
|
616
|
+
var ds = function() {
|
|
617
617
|
var t = this, n = t._self._c;
|
|
618
618
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M12.1933 8.7454L7.93903 12.9996L8.99969 14.0603L15.0604 7.99963L8.99969 1.93896L7.93903 2.99963L12.1848 7.24541L1.24902 7.25658L1.25056 8.75658L12.1933 8.7454Z" } })]);
|
|
619
|
-
},
|
|
620
|
-
is,
|
|
619
|
+
}, cs = [], us = /* @__PURE__ */ V(
|
|
621
620
|
rs,
|
|
622
621
|
ds,
|
|
622
|
+
cs,
|
|
623
623
|
!1,
|
|
624
624
|
null,
|
|
625
625
|
null
|
|
626
626
|
);
|
|
627
|
-
const
|
|
628
|
-
let
|
|
629
|
-
const
|
|
627
|
+
const fs = us.exports;
|
|
628
|
+
let Xe = 0;
|
|
629
|
+
const gs = {
|
|
630
630
|
beforeCreate() {
|
|
631
|
-
this.uuid =
|
|
631
|
+
this.uuid = Xe.toString(), Xe += 1;
|
|
632
632
|
}
|
|
633
633
|
};
|
|
634
|
-
var
|
|
634
|
+
var _s = function() {
|
|
635
635
|
var t = this, n = t._self._c;
|
|
636
636
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M7.99989 14.0605L9.49989 15.5605L10.5605 14.4999L8.75 12.6893V10.9334L10.169 10.116L11.6861 10.9939L12.3501 13.4688L13.7988 13.0801L13.2488 11.0301L15.2988 10.4801L14.9101 9.03129L12.4363 9.695L10.9199 8.81745V7.18276L12.4365 6.3051L14.9101 6.96875L15.2988 5.51999L13.2488 4.96999L13.7988 2.91999L12.3501 2.53129L11.686 5.00635L10.1693 5.88407L8.75 5.06648L8.75 3.31043L10.5605 1.49989L9.49989 0.439226L7.99989 1.93923L6.49989 0.439226L5.43923 1.49989L7.25 3.31066V5.06639L5.83078 5.88392L4.31419 5.00626L3.65018 2.53129L2.20141 2.91998L2.384 3.60052L2.38063 3.60143L2.75032 4.97028L0.701408 5.51999L1.0901 6.96875L1.7708 6.78612L1.77173 6.78955L3.56437 6.30541L5.07992 7.18246L5.07992 8.81775L3.564 9.69502L1.0901 9.03129L0.701408 10.4801L2.75141 11.0301L2.20141 13.0801L3.65018 13.4687L4.31414 10.994L5.83106 10.1161L7.25 10.9335V12.6891L5.43923 14.4999L6.49989 15.5605L7.99989 14.0605ZM9.41992 7.18345V8.81644L7.99992 9.63441L6.57992 8.81644L6.57992 7.18345L7.99992 6.36548L9.41992 7.18345Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
637
|
-
},
|
|
638
|
-
fs,
|
|
637
|
+
}, vs = [], Cs = /* @__PURE__ */ V(
|
|
639
638
|
gs,
|
|
640
639
|
_s,
|
|
640
|
+
vs,
|
|
641
641
|
!1,
|
|
642
642
|
null,
|
|
643
643
|
null
|
|
644
644
|
);
|
|
645
|
-
const
|
|
646
|
-
let
|
|
647
|
-
const
|
|
645
|
+
const ft = Cs.exports;
|
|
646
|
+
let Je = 0;
|
|
647
|
+
const hs = {
|
|
648
648
|
beforeCreate() {
|
|
649
|
-
this.uuid =
|
|
649
|
+
this.uuid = Je.toString(), Je += 1;
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
|
-
var
|
|
652
|
+
var ms = function() {
|
|
653
653
|
var t = this, n = t._self._c;
|
|
654
654
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_ascending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.0001 1.93945L16.0608 6.00011L15.0001 7.06077L12.75 4.81066V12.75H11.25V4.81089L9.00011 7.06077L7.93945 6.00011L12.0001 1.93945Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 11.25H8.75V12.75H1.25V11.25Z" } }), n("path", { attrs: { d: "M6.75 3.25H1.25V4.75H6.75V3.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
655
|
-
},
|
|
656
|
-
Cs,
|
|
655
|
+
}, ps = [], Ss = /* @__PURE__ */ V(
|
|
657
656
|
hs,
|
|
658
657
|
ms,
|
|
658
|
+
ps,
|
|
659
659
|
!1,
|
|
660
660
|
null,
|
|
661
661
|
null
|
|
662
662
|
);
|
|
663
|
-
const
|
|
664
|
-
let
|
|
665
|
-
const
|
|
663
|
+
const Ls = Ss.exports;
|
|
664
|
+
let Ke = 0;
|
|
665
|
+
const ws = {
|
|
666
666
|
beforeCreate() {
|
|
667
|
-
this.uuid =
|
|
667
|
+
this.uuid = Ke.toString(), Ke += 1;
|
|
668
668
|
}
|
|
669
669
|
};
|
|
670
|
-
var
|
|
670
|
+
var Es = function() {
|
|
671
671
|
var t = this, n = t._self._c;
|
|
672
672
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-sort_descending__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M12.75 3.25V11.1896L15.0001 8.93945L16.0608 10.0001L12.0001 14.0608L7.93945 10.0001L9.00011 8.93945L11.25 11.1893V3.25H12.75Z" } }), n("path", { attrs: { d: "M6.75 7.25H1.25V8.75H6.75V7.25Z" } }), n("path", { attrs: { d: "M1.25 3.25H9.09V4.75H1.25V3.25Z" } }), n("path", { attrs: { d: "M6.75 11.25H1.25V12.75H6.75V11.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
673
|
-
},
|
|
674
|
-
Ls,
|
|
673
|
+
}, Rs = [], ys = /* @__PURE__ */ V(
|
|
675
674
|
ws,
|
|
676
675
|
Es,
|
|
676
|
+
Rs,
|
|
677
677
|
!1,
|
|
678
678
|
null,
|
|
679
679
|
null
|
|
680
680
|
);
|
|
681
|
-
const
|
|
682
|
-
let
|
|
683
|
-
const
|
|
681
|
+
const bs = ys.exports;
|
|
682
|
+
let Qe = 0;
|
|
683
|
+
const Os = {
|
|
684
684
|
beforeCreate() {
|
|
685
|
-
this.uuid =
|
|
685
|
+
this.uuid = Qe.toString(), Qe += 1;
|
|
686
686
|
}
|
|
687
687
|
};
|
|
688
|
-
var
|
|
688
|
+
var As = function() {
|
|
689
689
|
var t = this, n = t._self._c;
|
|
690
690
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
691
|
-
}, Ts = [],
|
|
692
|
-
bs,
|
|
691
|
+
}, Ts = [], Ns = /* @__PURE__ */ V(
|
|
693
692
|
Os,
|
|
693
|
+
As,
|
|
694
694
|
Ts,
|
|
695
695
|
!1,
|
|
696
696
|
null,
|
|
697
697
|
null
|
|
698
698
|
);
|
|
699
|
-
const
|
|
699
|
+
const Is = Ns.exports, Ds = {
|
|
700
700
|
"en-US": {
|
|
701
701
|
columnActions: "{name} column actions",
|
|
702
702
|
freezeColumn: "Freeze column",
|
|
@@ -728,11 +728,11 @@ const Ns = As.exports, Is = {
|
|
|
728
728
|
selectAll: "Selecionar tudo",
|
|
729
729
|
unfreezeColumn: "Descongelar coluna"
|
|
730
730
|
}
|
|
731
|
-
},
|
|
732
|
-
i18n: { messages:
|
|
731
|
+
}, Fs = {
|
|
732
|
+
i18n: { messages: Ds },
|
|
733
733
|
name: "data-grid-columns"
|
|
734
|
-
},
|
|
735
|
-
...
|
|
734
|
+
}, xs = /* @__PURE__ */ Q({
|
|
735
|
+
...Fs,
|
|
736
736
|
props: {
|
|
737
737
|
/**
|
|
738
738
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -858,33 +858,33 @@ const Ns = As.exports, Is = {
|
|
|
858
858
|
},
|
|
859
859
|
emits: ["sort", "column-hover"],
|
|
860
860
|
setup(s, { expose: t, emit: n }) {
|
|
861
|
-
const e = s, o = 100, { t:
|
|
861
|
+
const e = s, o = 100, { t: a } = ie(), { columns: i, sortBy: C } = Oe(e), _ = b({}), f = b({}), m = b(), c = b(), E = (r) => n(k.SELECT_ALL_ROWS, r), l = (r) => r.field === q, d = L(() => [
|
|
862
862
|
{
|
|
863
|
-
text:
|
|
864
|
-
handler: () =>
|
|
863
|
+
text: a("selectPage"),
|
|
864
|
+
handler: () => E(!0)
|
|
865
865
|
},
|
|
866
866
|
{
|
|
867
|
-
text:
|
|
867
|
+
text: a("selectAll"),
|
|
868
868
|
handler: () => n(k.SELECT_ALL_ACROSS_PAGES)
|
|
869
869
|
}
|
|
870
|
-
]), { startResize:
|
|
870
|
+
]), { startResize: u, isResizing: h, columnHoverEventToEmitAfterResizing: p } = Bn(i, n), { isSorting: O, getSortingDirection: R, sortByColumnField: F } = Yn(C, i, n), z = (r) => {
|
|
871
871
|
var oe;
|
|
872
872
|
if (!r.sortable)
|
|
873
873
|
return null;
|
|
874
|
-
const
|
|
875
|
-
return
|
|
876
|
-
[ae.ASCENDING]:
|
|
877
|
-
[ae.DESCENDING]:
|
|
878
|
-
}[
|
|
879
|
-
},
|
|
880
|
-
dragstart: (
|
|
881
|
-
n(k.COLUMN_DRAG_START, r,
|
|
874
|
+
const M = (oe = e.sortBy.find(({ field: le }) => le === r.field)) == null ? void 0 : oe.direction;
|
|
875
|
+
return M ? {
|
|
876
|
+
[ae.ASCENDING]: Ce.ASCENDING,
|
|
877
|
+
[ae.DESCENDING]: Ce.DESCENDING
|
|
878
|
+
}[M] : Ce.NONE;
|
|
879
|
+
}, S = L(() => (r) => e.hasDraggableColumns ? {
|
|
880
|
+
dragstart: (M) => {
|
|
881
|
+
n(k.COLUMN_DRAG_START, r, M);
|
|
882
882
|
},
|
|
883
|
-
dragover: (
|
|
884
|
-
|
|
883
|
+
dragover: (M) => {
|
|
884
|
+
M.preventDefault();
|
|
885
885
|
},
|
|
886
|
-
dragenter: (
|
|
887
|
-
|
|
886
|
+
dragenter: (M) => {
|
|
887
|
+
M.preventDefault(), n(k.COLUMN_DRAG_ENTER, r, M);
|
|
888
888
|
},
|
|
889
889
|
drop: () => {
|
|
890
890
|
n(k.COLUMN_DROP, r);
|
|
@@ -892,65 +892,65 @@ const Ns = As.exports, Is = {
|
|
|
892
892
|
dragend: () => {
|
|
893
893
|
n(k.COLUMN_DRAG_END);
|
|
894
894
|
}
|
|
895
|
-
} : {}),
|
|
895
|
+
} : {}), w = L(() => (r) => [
|
|
896
896
|
{
|
|
897
|
-
text:
|
|
897
|
+
text: a("moveColumnLeft"),
|
|
898
898
|
handler: () => n(k.COLUMN_MOVE, r, -1),
|
|
899
899
|
icon: Tn,
|
|
900
900
|
disabled: e.columns[0].field === r.field
|
|
901
901
|
},
|
|
902
902
|
{
|
|
903
|
-
text:
|
|
903
|
+
text: a("moveColumnRight"),
|
|
904
904
|
handler: () => n(k.COLUMN_MOVE, r, 1),
|
|
905
|
-
icon:
|
|
905
|
+
icon: fs,
|
|
906
906
|
disabled: e.columns[e.columns.length - 1].field === r.field
|
|
907
907
|
},
|
|
908
908
|
{
|
|
909
|
-
text: r != null && r.frozen ?
|
|
909
|
+
text: r != null && r.frozen ? a("unfreezeColumn") : a("freezeColumn"),
|
|
910
910
|
handler: () => n(k.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
|
|
911
|
-
icon:
|
|
911
|
+
icon: ft
|
|
912
912
|
},
|
|
913
913
|
{
|
|
914
|
-
text: (r == null ? void 0 : r.visible) !== !1 ?
|
|
914
|
+
text: (r == null ? void 0 : r.visible) !== !1 ? a("hideColumn") : a("showColumn"),
|
|
915
915
|
handler: () => {
|
|
916
916
|
n(k.COLUMN_UPDATE, {
|
|
917
917
|
...r,
|
|
918
918
|
visible: (r == null ? void 0 : r.visible) === !1
|
|
919
919
|
});
|
|
920
920
|
},
|
|
921
|
-
icon: (r == null ? void 0 : r.visible) !== !1 ?
|
|
921
|
+
icon: (r == null ? void 0 : r.visible) !== !1 ? Nn : In,
|
|
922
922
|
disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
923
923
|
}
|
|
924
924
|
]), N = (r) => {
|
|
925
|
-
|
|
926
|
-
},
|
|
925
|
+
m.value = r.field, c.value && clearTimeout(c.value);
|
|
926
|
+
}, x = () => {
|
|
927
927
|
const r = setTimeout(() => {
|
|
928
|
-
|
|
928
|
+
m.value = "";
|
|
929
929
|
}, o);
|
|
930
|
-
|
|
931
|
-
},
|
|
932
|
-
let
|
|
930
|
+
c.value = r;
|
|
931
|
+
}, $ = (r) => {
|
|
932
|
+
let M = {
|
|
933
933
|
mouseenter: () => {
|
|
934
|
-
N(r),
|
|
934
|
+
N(r), h.value ? p.value = r : n("column-hover", r);
|
|
935
935
|
},
|
|
936
936
|
mouseleave: () => {
|
|
937
|
-
|
|
937
|
+
x(), h.value ? p.value = null : n("column-hover", null);
|
|
938
938
|
},
|
|
939
939
|
focus: () => N(r)
|
|
940
940
|
};
|
|
941
|
-
return
|
|
942
|
-
...
|
|
943
|
-
...
|
|
944
|
-
}),
|
|
945
|
-
},
|
|
941
|
+
return l(r) || (M = {
|
|
942
|
+
...M,
|
|
943
|
+
...S.value(r)
|
|
944
|
+
}), M;
|
|
945
|
+
}, g = (r) => r.infoIconTooltip || r.sortable || e.hasColumnPanel, B = (r, M) => {
|
|
946
946
|
var Z;
|
|
947
|
-
((Z =
|
|
948
|
-
},
|
|
949
|
-
var
|
|
947
|
+
((Z = _.value) == null ? void 0 : Z[M]) === void 0 && (_.value = { ..._.value, [M]: null }), r !== null && (_.value[M] = r);
|
|
948
|
+
}, I = L(() => {
|
|
949
|
+
var M;
|
|
950
950
|
const r = {
|
|
951
951
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
952
952
|
};
|
|
953
|
-
return (
|
|
953
|
+
return (M = i.value[0]) != null && M.frozen ? {
|
|
954
954
|
...r,
|
|
955
955
|
"b-data-grid-columns--frozen": !0,
|
|
956
956
|
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
@@ -959,13 +959,13 @@ const Ns = As.exports, Is = {
|
|
|
959
959
|
...r,
|
|
960
960
|
"b-data-grid-columns--unfrozen": !0
|
|
961
961
|
};
|
|
962
|
-
}),
|
|
962
|
+
}), D = (r, M) => r && M === 0 ? We.BOTTOM_START : We.BOTTOM_END, G = (r, M) => {
|
|
963
963
|
var Z, oe, le, de, fe, W, re, ge, ce, _e;
|
|
964
964
|
return {
|
|
965
965
|
"b-data-grid-columns__column--column-hovered": r.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
966
966
|
"b-data-grid-columns__column--column-hovered-no-border-left": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
967
967
|
"b-data-grid-columns__column--column-hovered-no-border-right": r.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
968
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns &&
|
|
968
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && M === i.value.length - 1,
|
|
969
969
|
"b-data-grid-columns__column--sortable": r.sortable,
|
|
970
970
|
"b-data-grid-columns__column--padding-left-unset": ((Z = r == null ? void 0 : r.padding) == null ? void 0 : Z.left) === !1,
|
|
971
971
|
"b-data-grid-columns__column--padding-right-unset": ((oe = r == null ? void 0 : r.padding) == null ? void 0 : oe.right) === !1,
|
|
@@ -974,82 +974,82 @@ const Ns = As.exports, Is = {
|
|
|
974
974
|
"b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((de = (le = e.draggingColumns) == null ? void 0 : le.dragging) == null ? void 0 : de.field),
|
|
975
975
|
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((W = (fe = e.draggingColumns) == null ? void 0 : fe.target) == null ? void 0 : W.field) && ((re = e.draggingColumns) == null ? void 0 : re.dragToLeft),
|
|
976
976
|
"b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((ce = (ge = e.draggingColumns) == null ? void 0 : ge.target) == null ? void 0 : ce.field) && !((_e = e.draggingColumns) != null && _e.dragToLeft),
|
|
977
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || e.hasColumnPanel &&
|
|
977
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || e.hasColumnPanel && m.value === r.field || e.selectableAcrossPages
|
|
978
978
|
};
|
|
979
|
-
},
|
|
979
|
+
}, v = (r) => ({
|
|
980
980
|
"b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
|
|
981
981
|
}), y = (r) => ({
|
|
982
982
|
"b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
|
|
983
|
-
}),
|
|
983
|
+
}), P = (r) => ({
|
|
984
984
|
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
985
985
|
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === r.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
986
|
-
}), X =
|
|
986
|
+
}), X = L(() => ({
|
|
987
987
|
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
988
988
|
}));
|
|
989
989
|
return t({
|
|
990
|
-
columnHeaderRefs:
|
|
991
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t:
|
|
990
|
+
columnHeaderRefs: _
|
|
991
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: a, columns: i, sortBy: C, columnHeaderRefs: _, contextMenuRef: f, hoveredColumnField: m, closingTimeOutId: c, onAllRowSelect: E, isActionsColumn: l, selectAllMenu: d, startResize: u, isResizing: h, columnHoverEventToEmitAfterResizing: p, isSorting: O, getSortingDirection: R, sortByColumnField: F, getSortingColumnDirection: z, draggingEventsForColumn: S, contextualMenuData: w, showContextualMenu: N, hideContextualMenu: x, dataGridColumnEvents: $, hasColumnActions: g, registerColumnsRefs: B, conditionalColumnsClasses: I, computeMenuPosition: D, conditionalColumnClasses: G, conditionalColumnHeaderAndActionsClasses: v, conditionalColumnActionsClasses: y, conditionalColumnSeparatorClasses: P, conditionalColumnHeaderClasses: X, BentoCheckbox: it, BentoDatagridSortDirection: ae, BentoTypography: he, BentoInfoIcon: On, DatagridColumnsEvent: k, BentoMenu: dt, BentoToggleButton: Fe, ArrowUpAndDownSortIcon: is, SortAscendingIcon: Ls, SortDescendingIcon: bs, TriangleDown: Is };
|
|
992
992
|
}
|
|
993
993
|
});
|
|
994
|
-
var
|
|
994
|
+
var Ms = function() {
|
|
995
995
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
996
|
-
return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o,
|
|
997
|
-
return n("div", t._g({ key: o.field, ref: (
|
|
996
|
+
return n("div", { staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, t._l(e.columns, function(o, a) {
|
|
997
|
+
return n("div", t._g({ key: o.field, ref: (i) => e.registerColumnsRefs(i, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, a), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": a + 1, "aria-label": o.label, "aria-sort": e.getSortingColumnDirection(o), "data-testid": `${o.field}-column-header`, draggable: t.hasDraggableColumns && !e.isResizing && !e.isActionsColumn(o), role: "columnheader", tabindex: o.sortable || t.hasColumnPanel || o.infoIconTooltip ? "0" : "-1" } }, e.dataGridColumnEvents(o)), [e.isActionsColumn(o) && t.selectable ? n("div", { staticClass: "b-data-grid-columns__select-column" }, [n(e.BentoCheckbox, { attrs: { "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-select-all", indeterminate: t.allItemsSelectedState.isIndeterminate, value: "data-grid-select-all" }, on: { "update:model-value": e.onAllRowSelect } }), t.selectableAcrossPages ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { data: e.selectAllMenu, "menu-position": "bottom-start", "menu-fixed-positioning": "", button: { variant: "tertiary", condensed: !0 } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
998
998
|
return [n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu") } })];
|
|
999
999
|
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
|
|
1000
1000
|
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
|
|
1001
|
-
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(
|
|
1001
|
+
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(i) {
|
|
1002
1002
|
return e.sortByColumnField(o.field);
|
|
1003
1003
|
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1004
1004
|
return [e.getSortingDirection(o.field) ? e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: o.label }) } }) : e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: o.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: o.label }) } })];
|
|
1005
|
-
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (
|
|
1005
|
+
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel && e.hoveredColumnField === o.field ? n(e.BentoMenu, { ref: (i) => e.contextMenuRef[o.field] = i, refInFor: !0, staticClass: "b-data-grid-columns__menu", attrs: { data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, a), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(i) {
|
|
1006
1006
|
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1007
|
-
}, close: function(
|
|
1007
|
+
}, close: function(i) {
|
|
1008
1008
|
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1009
|
-
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(
|
|
1010
|
-
return e.startResize(t.hasResizableColumns, o.field,
|
|
1011
|
-
}, click: function(
|
|
1012
|
-
|
|
1013
|
-
} } }, [!t.isFrozenColumns || t.isFrozenColumns &&
|
|
1009
|
+
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(i) {
|
|
1010
|
+
return e.startResize(t.hasResizableColumns, o.field, i);
|
|
1011
|
+
}, click: function(i) {
|
|
1012
|
+
i.stopPropagation();
|
|
1013
|
+
} } }, [!t.isFrozenColumns || t.isFrozenColumns && a !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1014
1014
|
}), 0);
|
|
1015
|
-
},
|
|
1016
|
-
Fs,
|
|
1015
|
+
}, Bs = [], Ps = /* @__PURE__ */ V(
|
|
1017
1016
|
xs,
|
|
1018
1017
|
Ms,
|
|
1018
|
+
Bs,
|
|
1019
1019
|
!1,
|
|
1020
1020
|
null,
|
|
1021
1021
|
"43622155"
|
|
1022
1022
|
);
|
|
1023
|
-
const
|
|
1023
|
+
const zs = Ps.exports;
|
|
1024
1024
|
var ne = /* @__PURE__ */ ((s) => (s.CONFIG_SETTINGS = "config-settings", s.UPDATE_COLUMNS = "update:columns", s))(ne || {});
|
|
1025
|
-
let
|
|
1026
|
-
const
|
|
1025
|
+
let et = 0;
|
|
1026
|
+
const $s = {
|
|
1027
1027
|
beforeCreate() {
|
|
1028
|
-
this.uuid =
|
|
1028
|
+
this.uuid = et.toString(), et += 1;
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
|
-
var
|
|
1031
|
+
var Us = function() {
|
|
1032
1032
|
var t = this, n = t._self._c;
|
|
1033
1033
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { fill: "#00112C", "clip-path": "url(#uia-icons-16-settings__a" + t.uuid + ")" } }, [n("path", { attrs: { d: "M8 5.25C6.48122 5.25 5.25 6.48122 5.25 8C5.25 9.51878 6.48122 10.75 8 10.75C9.51878 10.75 10.75 9.51878 10.75 8C10.75 6.48122 9.51878 5.25 8 5.25ZM6.75 8C6.75 7.30964 7.30964 6.75 8 6.75C8.69036 6.75 9.25 7.30964 9.25 8C9.25 8.69036 8.69036 9.25 8 9.25C7.30964 9.25 6.75 8.69036 6.75 8Z" } }), n("path", { attrs: { d: "M6.84701 0.973015L6.59985 0.35083L5.9537 0.526056C4.64534 0.880867 3.48225 1.56808 2.55285 2.48641L2.07533 2.95826L2.49158 3.48495C2.79648 3.87074 2.85279 4.419 2.58992 4.87589C2.32905 5.32931 1.82436 5.55631 1.33473 5.48726L0.677319 5.39455L0.505539 6.03586C0.33838 6.65992 0.25 7.32519 0.25 7.99991C0.25 8.67463 0.33838 9.3399 0.505539 9.96396L0.677319 10.6053L1.33473 10.5126C1.82436 10.4435 2.32905 10.6705 2.58992 11.1239C2.85279 11.5808 2.79648 12.1291 2.49158 12.5149L2.07533 13.0416L2.55285 13.5134C3.48225 14.4317 4.64534 15.119 5.9537 15.4738L6.59985 15.649L6.84701 15.0268C7.02659 14.5748 7.47549 14.2499 8 14.2499C8.52452 14.2499 8.97341 14.5748 9.15299 15.0268L9.40016 15.649L10.0463 15.4738C11.3547 15.119 12.5177 14.4317 13.4471 13.5134L13.9247 13.0416L13.5084 12.5149C13.2035 12.1291 13.1472 11.5808 13.4101 11.1239C13.671 10.6705 14.1756 10.4435 14.6653 10.5126L15.3227 10.6053L15.4945 9.96396C15.6616 9.3399 15.75 8.67463 15.75 7.99991C15.75 7.32519 15.6616 6.65992 15.4945 6.03586L15.3227 5.39455L14.6653 5.48726C14.1756 5.55631 13.671 5.32931 13.4101 4.87589C13.1472 4.419 13.2035 3.87074 13.5084 3.48495L13.9247 2.95826L13.4471 2.48641C12.5177 1.56808 11.3547 0.880867 10.0463 0.526056L9.40016 0.35083L9.15299 0.973015C8.97341 1.42506 8.52452 1.74991 8 1.74991C7.47549 1.74991 7.02659 1.42506 6.84701 0.973015ZM3.89008 5.62393C4.33946 4.84286 4.36394 3.9353 4.03405 3.16853C4.55803 2.73795 5.15349 2.39116 5.80146 2.14902C6.30062 2.81653 7.10051 3.24991 8 3.24991C8.89949 3.24991 9.69938 2.81653 10.1985 2.14902C10.8465 2.39116 11.442 2.73795 11.966 3.16853C11.6361 3.9353 11.6605 4.84287 12.1099 5.62393C12.5612 6.40839 13.3382 6.88092 14.1658 6.97982C14.221 7.31075 14.25 7.65319 14.25 7.99991C14.25 8.34663 14.221 8.68908 14.1658 9.02001C13.3382 9.11891 12.5612 9.59143 12.1099 10.3759C11.6605 11.157 11.6361 12.0645 11.9659 12.8313C11.442 13.2619 10.8465 13.6087 10.1985 13.8508C9.69938 13.1833 8.89949 12.7499 8 12.7499C7.10051 12.7499 6.30062 13.1833 5.80146 13.8508C5.15349 13.6087 4.55803 13.2619 4.03405 12.8313C4.36394 12.0645 4.33946 11.157 3.89008 10.3759C3.43875 9.59143 2.66177 9.1189 1.8342 9.02C1.77896 8.68908 1.75 8.34663 1.75 7.99991C1.75 7.65319 1.77896 7.31074 1.8342 6.97982C2.66177 6.88092 3.43875 6.40839 3.89008 5.62393Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1034
|
-
},
|
|
1035
|
-
zs,
|
|
1034
|
+
}, ks = [], Gs = /* @__PURE__ */ V(
|
|
1036
1035
|
$s,
|
|
1037
1036
|
Us,
|
|
1037
|
+
ks,
|
|
1038
1038
|
!1,
|
|
1039
1039
|
null,
|
|
1040
1040
|
null
|
|
1041
1041
|
);
|
|
1042
|
-
const
|
|
1042
|
+
const Ws = Gs.exports, Hs = {
|
|
1043
1043
|
"en-US": {
|
|
1044
1044
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1045
1045
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1046
1046
|
}
|
|
1047
|
-
},
|
|
1048
|
-
i18n: { messages:
|
|
1047
|
+
}, Vs = Q({
|
|
1048
|
+
i18n: { messages: Hs },
|
|
1049
1049
|
name: "bento-data-grid",
|
|
1050
1050
|
components: {
|
|
1051
|
-
BentoFreezeIcon:
|
|
1052
|
-
BentoToggle:
|
|
1051
|
+
BentoFreezeIcon: ft,
|
|
1052
|
+
BentoToggle: ct
|
|
1053
1053
|
},
|
|
1054
1054
|
props: {
|
|
1055
1055
|
/**
|
|
@@ -1069,53 +1069,53 @@ const Gs = ks.exports, Ws = {
|
|
|
1069
1069
|
},
|
|
1070
1070
|
emits: ["visible-column", "updated-column"],
|
|
1071
1071
|
setup(s, { emit: t }) {
|
|
1072
|
-
const { t: n } = ie(), e = b(!1), o =
|
|
1073
|
-
var
|
|
1074
|
-
return (
|
|
1075
|
-
}),
|
|
1076
|
-
var
|
|
1077
|
-
return ((
|
|
1078
|
-
}),
|
|
1079
|
-
t("visible-column", { ...s.column, visible: !
|
|
1080
|
-
},
|
|
1072
|
+
const { t: n } = ie(), e = b(!1), o = L(() => {
|
|
1073
|
+
var c;
|
|
1074
|
+
return (c = s.column) == null ? void 0 : c.frozen;
|
|
1075
|
+
}), a = L(() => {
|
|
1076
|
+
var c;
|
|
1077
|
+
return ((c = s.column) == null ? void 0 : c.visible) !== !1;
|
|
1078
|
+
}), i = () => {
|
|
1079
|
+
t("visible-column", { ...s.column, visible: !a.value });
|
|
1080
|
+
}, C = () => {
|
|
1081
1081
|
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1082
|
-
}, g = () => {
|
|
1083
|
-
o.value || (e.value = !0);
|
|
1084
1082
|
}, _ = () => {
|
|
1083
|
+
o.value || (e.value = !0);
|
|
1084
|
+
}, f = () => {
|
|
1085
1085
|
o.value || (e.value = !1);
|
|
1086
|
-
},
|
|
1086
|
+
}, m = L(() => ({
|
|
1087
1087
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1088
1088
|
}));
|
|
1089
1089
|
return {
|
|
1090
1090
|
// Values
|
|
1091
1091
|
isFreezeIconOptionShown: e,
|
|
1092
1092
|
isColumnFrozen: o,
|
|
1093
|
-
freezeIconConditionalClasses:
|
|
1094
|
-
isColumnVisible:
|
|
1093
|
+
freezeIconConditionalClasses: m,
|
|
1094
|
+
isColumnVisible: a,
|
|
1095
1095
|
// Methods
|
|
1096
|
-
toggleColumnVisibility:
|
|
1097
|
-
showFreezeIcon:
|
|
1098
|
-
hideFreezeIcon:
|
|
1099
|
-
toggleColumnFreeze:
|
|
1096
|
+
toggleColumnVisibility: i,
|
|
1097
|
+
showFreezeIcon: _,
|
|
1098
|
+
hideFreezeIcon: f,
|
|
1099
|
+
toggleColumnFreeze: C,
|
|
1100
1100
|
// Translations
|
|
1101
1101
|
t: n
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
1104
|
});
|
|
1105
|
-
var
|
|
1105
|
+
var Zs = function() {
|
|
1106
1106
|
var t = this, n = t._self._c;
|
|
1107
1107
|
return t._self._setupProxy, n("div", { staticClass: "b-data-grid-config-settings-column-row", on: { mouseover: t.showFreezeIcon, mouseleave: t.hideFreezeIcon } }, [n("bento-toggle", { attrs: { "aria-label": t.t("toggleColumnVisibility", { label: t.column.label }), disabled: t.isColumnVisibilityToggleDisabled, "label-position": "after", value: t.isColumnVisible }, on: { input: t.toggleColumnVisibility } }, [t._v(" " + t._s(t.column.label) + " ")]), n("bento-freeze-icon", { directives: [{ name: "show", rawName: "v-show", value: t.isColumnFrozen || t.isFreezeIconOptionShown, expression: "isColumnFrozen || isFreezeIconOptionShown" }], staticClass: "b-data-grid-config-settings-column-row__freeze-icon", class: t.freezeIconConditionalClasses, attrs: { "aria-label": t.t("toggleColumnFreeze", { label: t.column.label }) }, nativeOn: { click: function(e) {
|
|
1108
1108
|
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1109
1109
|
} } })], 1);
|
|
1110
|
-
},
|
|
1111
|
-
Hs,
|
|
1110
|
+
}, js = [], qs = /* @__PURE__ */ V(
|
|
1112
1111
|
Vs,
|
|
1113
1112
|
Zs,
|
|
1113
|
+
js,
|
|
1114
1114
|
!1,
|
|
1115
1115
|
null,
|
|
1116
1116
|
"eae7733f"
|
|
1117
1117
|
);
|
|
1118
|
-
const
|
|
1118
|
+
const Ys = qs.exports, Xs = {
|
|
1119
1119
|
"en-US": {
|
|
1120
1120
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1121
1121
|
closeSearch: "Close search",
|
|
@@ -1141,22 +1141,22 @@ const qs = js.exports, Ys = {
|
|
|
1141
1141
|
search: "Buscar",
|
|
1142
1142
|
size: "Tamanho"
|
|
1143
1143
|
}
|
|
1144
|
-
},
|
|
1145
|
-
i18n: { messages:
|
|
1144
|
+
}, Js = Q({
|
|
1145
|
+
i18n: { messages: Xs },
|
|
1146
1146
|
name: "bento-data-grid",
|
|
1147
1147
|
components: {
|
|
1148
|
-
BentoButton:
|
|
1149
|
-
BentoCrossIcon:
|
|
1150
|
-
BentoPopover:
|
|
1151
|
-
BentoSettingsIcon:
|
|
1152
|
-
BentoToggleButton:
|
|
1153
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1154
|
-
BentoSearchBar:
|
|
1155
|
-
BentoSearchIcon:
|
|
1156
|
-
BentoToggle:
|
|
1157
|
-
BentoTypography:
|
|
1148
|
+
BentoButton: rt,
|
|
1149
|
+
BentoCrossIcon: lt,
|
|
1150
|
+
BentoPopover: An,
|
|
1151
|
+
BentoSettingsIcon: Ws,
|
|
1152
|
+
BentoToggleButton: Fe,
|
|
1153
|
+
BentoDataGridConfigSettingsConfigRow: Ys,
|
|
1154
|
+
BentoSearchBar: Dn,
|
|
1155
|
+
BentoSearchIcon: xn,
|
|
1156
|
+
BentoToggle: ct,
|
|
1157
|
+
BentoTypography: he
|
|
1158
1158
|
},
|
|
1159
|
-
directives: { BentoClickOutsideDirective:
|
|
1159
|
+
directives: { BentoClickOutsideDirective: Mn },
|
|
1160
1160
|
props: {
|
|
1161
1161
|
/**
|
|
1162
1162
|
* Column definitions
|
|
@@ -1175,69 +1175,69 @@ const qs = js.exports, Ys = {
|
|
|
1175
1175
|
},
|
|
1176
1176
|
emits: [ne.CONFIG_SETTINGS, ne.UPDATE_COLUMNS],
|
|
1177
1177
|
setup(s, { emit: t }) {
|
|
1178
|
-
const { t: n } = ie(), e = b(null), o =
|
|
1179
|
-
|
|
1180
|
-
},
|
|
1181
|
-
() => !s.columns.some((
|
|
1182
|
-
),
|
|
1183
|
-
|
|
1184
|
-
var
|
|
1185
|
-
return (
|
|
1178
|
+
const { t: n } = ie(), e = b(null), o = Re("data-grid-config-settings-popover"), a = b(null), i = b(!1), C = b(!0), _ = b(null), f = b(""), m = we(s, "columns"), c = b(!1), E = Fn(f, m), l = () => {
|
|
1179
|
+
f.value = "";
|
|
1180
|
+
}, d = L(
|
|
1181
|
+
() => !s.columns.some((w) => w.visible === !1 && !w.mandatory)
|
|
1182
|
+
), u = () => {
|
|
1183
|
+
l(), c.value = !c.value, c.value ? K(() => {
|
|
1184
|
+
var w;
|
|
1185
|
+
return (w = a.value.$refs.bentoInputField) == null ? void 0 : w.focusInput();
|
|
1186
1186
|
}) : K(() => {
|
|
1187
|
-
var
|
|
1188
|
-
return (N = (
|
|
1189
|
-
}),
|
|
1190
|
-
},
|
|
1191
|
-
const N = s.columns.map((
|
|
1192
|
-
...
|
|
1193
|
-
visible:
|
|
1187
|
+
var w, N;
|
|
1188
|
+
return (N = (w = _ == null ? void 0 : _.value) == null ? void 0 : w.$el) == null ? void 0 : N.focus();
|
|
1189
|
+
}), C.value = d.value;
|
|
1190
|
+
}, h = (w) => w.mandatory ?? !1, p = (w) => {
|
|
1191
|
+
const N = s.columns.map((x) => ({
|
|
1192
|
+
...x,
|
|
1193
|
+
visible: w.field === x.field ? w.visible : x.visible
|
|
1194
1194
|
}));
|
|
1195
1195
|
t(ne.UPDATE_COLUMNS, N);
|
|
1196
|
-
}, O = (
|
|
1197
|
-
|
|
1196
|
+
}, O = (w) => {
|
|
1197
|
+
w ? t(
|
|
1198
1198
|
ne.UPDATE_COLUMNS,
|
|
1199
1199
|
s.columns.map((N) => ({ ...N, visible: !0 }))
|
|
1200
1200
|
) : t(
|
|
1201
1201
|
ne.UPDATE_COLUMNS,
|
|
1202
1202
|
s.columns.map((N) => ({ ...N, visible: (N == null ? void 0 : N.mandatory) === !0 }))
|
|
1203
1203
|
);
|
|
1204
|
-
}, R = (
|
|
1205
|
-
const N = s.columns.map((
|
|
1206
|
-
...
|
|
1207
|
-
frozen:
|
|
1204
|
+
}, R = (w) => {
|
|
1205
|
+
const N = s.columns.map((x) => ({
|
|
1206
|
+
...x,
|
|
1207
|
+
frozen: w.field === x.field ? !!(w != null && w.frozen) : !!(x != null && x.frozen)
|
|
1208
1208
|
}));
|
|
1209
1209
|
t(ne.UPDATE_COLUMNS, N);
|
|
1210
|
-
},
|
|
1211
|
-
|
|
1210
|
+
}, F = (w) => {
|
|
1211
|
+
i.value = w, C.value = d.value;
|
|
1212
1212
|
};
|
|
1213
1213
|
return {
|
|
1214
1214
|
// Values
|
|
1215
1215
|
configSettingsButtonRef: e,
|
|
1216
1216
|
popoverId: o,
|
|
1217
|
-
isConfigSettingsPanelOpen:
|
|
1218
|
-
allColumnsVisbilityToggleState:
|
|
1219
|
-
filteredColumnVisibilityColumns:
|
|
1220
|
-
searchTerm:
|
|
1221
|
-
isColumnVisibilityFilterShown:
|
|
1222
|
-
searchBarRef:
|
|
1223
|
-
searchButtonRef:
|
|
1217
|
+
isConfigSettingsPanelOpen: i,
|
|
1218
|
+
allColumnsVisbilityToggleState: C,
|
|
1219
|
+
filteredColumnVisibilityColumns: E,
|
|
1220
|
+
searchTerm: f,
|
|
1221
|
+
isColumnVisibilityFilterShown: c,
|
|
1222
|
+
searchBarRef: a,
|
|
1223
|
+
searchButtonRef: _,
|
|
1224
1224
|
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: q,
|
|
1225
1225
|
// Methods
|
|
1226
|
-
setConfigSettingsPanelVisibility:
|
|
1227
|
-
emitCondensedToggle: (
|
|
1226
|
+
setConfigSettingsPanelVisibility: F,
|
|
1227
|
+
emitCondensedToggle: (w) => t(ne.CONFIG_SETTINGS, w),
|
|
1228
1228
|
toggleAllColumnVisibility: O,
|
|
1229
|
-
clearAction:
|
|
1230
|
-
toggleColumnFilter:
|
|
1231
|
-
emitVisibleColumns:
|
|
1229
|
+
clearAction: l,
|
|
1230
|
+
toggleColumnFilter: u,
|
|
1231
|
+
emitVisibleColumns: p,
|
|
1232
1232
|
emitFrozenColumns: R,
|
|
1233
|
-
onClickOutside: () =>
|
|
1234
|
-
isColumnVisibilityToggleDisabled:
|
|
1233
|
+
onClickOutside: () => F(!1),
|
|
1234
|
+
isColumnVisibilityToggleDisabled: h,
|
|
1235
1235
|
// Translations
|
|
1236
1236
|
t: n
|
|
1237
1237
|
};
|
|
1238
1238
|
}
|
|
1239
1239
|
});
|
|
1240
|
-
var
|
|
1240
|
+
var Ks = function() {
|
|
1241
1241
|
var t = this, n = t._self._c;
|
|
1242
1242
|
return t._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: t.onClickOutside, expression: "onClickOutside" }], staticClass: "b-data-grid-config-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__button-and-separator" }, [n("div", { ref: "configSettingsButtonRef", staticClass: "b-data-grid-config-settings__button-container" }, [n("bento-toggle-button", { attrs: { "aria-controls": t.isConfigSettingsPanelOpen ? t.popoverId : null, variant: "tertiary", condensed: "", toggled: t.isConfigSettingsPanelOpen }, on: { click: function(e) {
|
|
1243
1243
|
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
@@ -1256,15 +1256,15 @@ var Js = function() {
|
|
|
1256
1256
|
}, clear: t.clearAction, "escape-pressed": t.toggleColumnFilter } })], 1) : n("div", { staticClass: "b-data-grid-config-settings__column-visibility-show-all" }, [n("bento-toggle", { attrs: { "label-position": "after", value: t.allColumnsVisbilityToggleState }, on: { input: t.toggleAllColumnVisibility } }, [t._v(" " + t._s(t.t("showAllColumns", { numberOfColumns: t.columns.length })) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-toggles" }, [t._l(t.filteredColumnVisibilityColumns, function(e) {
|
|
1257
1257
|
return n("div", { key: e.field }, [e.field !== t.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? n("bento-data-grid-config-settings-config-row", { attrs: { column: e, "is-column-visibility-toggle-disabled": t.isColumnVisibilityToggleDisabled(e) }, on: { "visible-column": t.emitVisibleColumns, "updated-column": t.emitFrozenColumns } }) : t._e()], 1);
|
|
1258
1258
|
}), t.filteredColumnVisibilityColumns.length === 0 ? n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-empty-search-message", attrs: { el: "span" } }, [t._v(" " + t._s(t.t("noColumnsMatch")) + " ")]) : t._e()], 2)])]) : t._e()], 1);
|
|
1259
|
-
},
|
|
1260
|
-
Xs,
|
|
1259
|
+
}, Qs = [], eo = /* @__PURE__ */ V(
|
|
1261
1260
|
Js,
|
|
1262
1261
|
Ks,
|
|
1262
|
+
Qs,
|
|
1263
1263
|
!1,
|
|
1264
1264
|
null,
|
|
1265
1265
|
"e7f0a261"
|
|
1266
1266
|
);
|
|
1267
|
-
const
|
|
1267
|
+
const to = eo.exports, gt = {
|
|
1268
1268
|
"en-US": {
|
|
1269
1269
|
gettingYourData: "Getting your data",
|
|
1270
1270
|
loading: "Loading",
|
|
@@ -1282,10 +1282,10 @@ const eo = Qs.exports, ft = {
|
|
|
1282
1282
|
loading: "Carregando",
|
|
1283
1283
|
showMore: "Mostrar mais"
|
|
1284
1284
|
}
|
|
1285
|
-
},
|
|
1286
|
-
i18n: { messages:
|
|
1287
|
-
},
|
|
1288
|
-
...
|
|
1285
|
+
}, no = {
|
|
1286
|
+
i18n: { messages: gt }
|
|
1287
|
+
}, so = /* @__PURE__ */ Q({
|
|
1288
|
+
...no,
|
|
1289
1289
|
__name: "data-grid-lazy-load",
|
|
1290
1290
|
props: {
|
|
1291
1291
|
loading: { type: Boolean },
|
|
@@ -1293,41 +1293,41 @@ const eo = Qs.exports, ft = {
|
|
|
1293
1293
|
},
|
|
1294
1294
|
setup(s) {
|
|
1295
1295
|
const { t } = ie();
|
|
1296
|
-
return { __sfc: !0, t, BentoLoadingButton:
|
|
1296
|
+
return { __sfc: !0, t, BentoLoadingButton: bn, BentoLoadingButtonState: yn, BentoLoadingIndicator: Ne, BentoDatagridEvent: A };
|
|
1297
1297
|
}
|
|
1298
1298
|
});
|
|
1299
|
-
var
|
|
1299
|
+
var oo = function() {
|
|
1300
1300
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1301
1301
|
return n("div", { staticClass: "b-data-grid-lazy-load" }, [t.loading && t.isInfiniteScroll ? n(e.BentoLoadingIndicator) : t._e(), t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { variant: "secondary", state: e.BentoLoadingButtonState.LOADING } }, [t._v(t._s(e.t("loading")))]) : t._e(), !t.loading && !t.isInfiniteScroll ? n(e.BentoLoadingButton, { attrs: { state: e.BentoLoadingButtonState.START, variant: "secondary" }, on: { click: function(o) {
|
|
1302
1302
|
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1303
1303
|
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1304
|
-
},
|
|
1305
|
-
no,
|
|
1304
|
+
}, lo = [], ao = /* @__PURE__ */ V(
|
|
1306
1305
|
so,
|
|
1307
1306
|
oo,
|
|
1307
|
+
lo,
|
|
1308
1308
|
!1,
|
|
1309
1309
|
null,
|
|
1310
1310
|
"fd9b8204"
|
|
1311
1311
|
);
|
|
1312
|
-
const
|
|
1313
|
-
let
|
|
1314
|
-
const
|
|
1312
|
+
const io = ao.exports;
|
|
1313
|
+
let tt = 0;
|
|
1314
|
+
const ro = {
|
|
1315
1315
|
beforeCreate() {
|
|
1316
|
-
this.uuid =
|
|
1316
|
+
this.uuid = tt.toString(), tt += 1;
|
|
1317
1317
|
}
|
|
1318
1318
|
};
|
|
1319
|
-
var
|
|
1319
|
+
var co = function() {
|
|
1320
1320
|
var t = this, n = t._self._c;
|
|
1321
1321
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("path", { attrs: { fill: "#00112C", d: "M12.9243 1.86372C12.0456 0.985043 10.621 0.985041 9.74234 1.86372L1.25 10.3561V14.7501H5.64399L14.1363 6.25772C15.015 5.37904 15.015 3.95442 14.1363 3.07574L12.9243 1.86372ZM10.803 2.92438C11.0959 2.63149 11.5708 2.63149 11.8637 2.92438L13.0757 4.1364C13.3686 4.42929 13.3686 4.90416 13.0757 5.19706L12.3333 5.93947L10.0606 3.6668L10.803 2.92438ZM8.99993 4.72746L11.2726 7.00013L5.02267 13.2501H2.75V10.9774L8.99993 4.72746Z" } })]);
|
|
1322
|
-
},
|
|
1323
|
-
io,
|
|
1322
|
+
}, uo = [], fo = /* @__PURE__ */ V(
|
|
1324
1323
|
ro,
|
|
1325
1324
|
co,
|
|
1325
|
+
uo,
|
|
1326
1326
|
!1,
|
|
1327
1327
|
null,
|
|
1328
1328
|
null
|
|
1329
1329
|
);
|
|
1330
|
-
const
|
|
1330
|
+
const go = fo.exports, _o = {
|
|
1331
1331
|
"en-US": {
|
|
1332
1332
|
copy: "Copy",
|
|
1333
1333
|
edit: "Edit",
|
|
@@ -1346,17 +1346,17 @@ const fo = uo.exports, go = {
|
|
|
1346
1346
|
more: "Mais",
|
|
1347
1347
|
open: "Abrir"
|
|
1348
1348
|
}
|
|
1349
|
-
},
|
|
1350
|
-
i18n: { messages:
|
|
1349
|
+
}, vo = {
|
|
1350
|
+
i18n: { messages: _o },
|
|
1351
1351
|
name: "data-grid-cell-actions"
|
|
1352
|
-
},
|
|
1353
|
-
...
|
|
1352
|
+
}, Co = /* @__PURE__ */ Q({
|
|
1353
|
+
...vo,
|
|
1354
1354
|
props: {
|
|
1355
1355
|
/**
|
|
1356
1356
|
* Column definitions using 'key' to relate to data object.
|
|
1357
1357
|
*/
|
|
1358
1358
|
cellActions: {
|
|
1359
|
-
type: Array,
|
|
1359
|
+
type: [Array, Function],
|
|
1360
1360
|
required: !0,
|
|
1361
1361
|
validator: (s) => (s == null ? void 0 : s.length) <= 2
|
|
1362
1362
|
},
|
|
@@ -1377,14 +1377,19 @@ const fo = uo.exports, go = {
|
|
|
1377
1377
|
},
|
|
1378
1378
|
emits: ["menu-item-click-close"],
|
|
1379
1379
|
setup(s, { emit: t }) {
|
|
1380
|
-
const n = s, { t: e } = ie()
|
|
1381
|
-
|
|
1382
|
-
return
|
|
1380
|
+
const n = s, { t: e } = ie();
|
|
1381
|
+
function o(l) {
|
|
1382
|
+
return typeof l == "function";
|
|
1383
|
+
}
|
|
1384
|
+
const a = L(() => {
|
|
1385
|
+
var d;
|
|
1386
|
+
const l = o(n.cellActions) ? (d = n.cellActions) == null ? void 0 : d.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1387
|
+
return (l == null ? void 0 : l.length) > 2 && at(
|
|
1383
1388
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1384
|
-
),
|
|
1385
|
-
}),
|
|
1386
|
-
if (!(!d &&
|
|
1387
|
-
switch (
|
|
1389
|
+
), l == null ? void 0 : l.slice(0, 2);
|
|
1390
|
+
}), i = L(() => (l, d) => {
|
|
1391
|
+
if (!(!d && l.isShort || d && !l.isShort))
|
|
1392
|
+
switch (l.variant) {
|
|
1388
1393
|
case "copy":
|
|
1389
1394
|
return e("copy");
|
|
1390
1395
|
case "edit":
|
|
@@ -1394,33 +1399,33 @@ const fo = uo.exports, go = {
|
|
|
1394
1399
|
case "more":
|
|
1395
1400
|
return e("more");
|
|
1396
1401
|
default:
|
|
1397
|
-
return
|
|
1402
|
+
return l.title;
|
|
1398
1403
|
}
|
|
1399
|
-
}),
|
|
1400
|
-
click: () =>
|
|
1401
|
-
} : {},
|
|
1402
|
-
...
|
|
1404
|
+
}), C = (l) => (l == null ? void 0 : l.event) !== void 0 ? {
|
|
1405
|
+
click: () => l.event(n.rowDataItem, n.columnKey)
|
|
1406
|
+
} : {}, _ = (l) => ({
|
|
1407
|
+
...l,
|
|
1403
1408
|
handler: () => {
|
|
1404
|
-
|
|
1409
|
+
l != null && l.handler && typeof l.handler == "function" && (l == null || l.handler()), l != null && l.event && typeof l.event == "function" && (l == null || l.event(n.rowDataItem, n.columnKey));
|
|
1405
1410
|
}
|
|
1406
|
-
}),
|
|
1407
|
-
const
|
|
1408
|
-
return
|
|
1411
|
+
}), f = (l) => l.map((d) => {
|
|
1412
|
+
const u = d;
|
|
1413
|
+
return u != null && u.items && (u.items = f(u.items)), { ..._(u) };
|
|
1409
1414
|
});
|
|
1410
|
-
return { __sfc: !0, t: e, props: n, emit: t,
|
|
1411
|
-
var d,
|
|
1412
|
-
return (
|
|
1413
|
-
}, shouldShowMenuIconRight: (
|
|
1415
|
+
return { __sfc: !0, t: e, props: n, emit: t, isBentoColumnCellActionsByCellValueDataFn: o, computedCellActions: a, getButtonTitle: i, generateButtonEvents: C, generateMenuEvents: _, transformMenuEvents: f, getCopyText: (l) => {
|
|
1416
|
+
var d, u;
|
|
1417
|
+
return (l == null ? void 0 : l.getCopyData) !== void 0 ? l.getCopyData(n.rowDataItem, n.columnKey) : (u = (d = n.rowDataItem) == null ? void 0 : d[n.columnKey]) == null ? void 0 : u.toString();
|
|
1418
|
+
}, shouldShowMenuIconRight: (l) => l.iconRight || ((l == null ? void 0 : l.variant) === "more" || (l == null ? void 0 : l.variant) === "open") && !l.isShort, shouldShowMenuIconLeft: (l) => l.iconLeft || (l == null ? void 0 : l.variant) === "more", BentoButton: rt, BentoMenu: dt, Copy: wn, Edit1Icon: go, ExternalLinkIcon: Ln, OptionsVerticalIcon: pn };
|
|
1414
1419
|
}
|
|
1415
1420
|
});
|
|
1416
|
-
var
|
|
1421
|
+
var ho = function() {
|
|
1417
1422
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1418
|
-
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, t._l(e.
|
|
1419
|
-
return n("div", { key:
|
|
1423
|
+
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [n("div", { staticClass: "b-data-grid-cell-actions__background-gradient" }), n("div", { staticClass: "b-data-grid-cell-actions__actions", attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, a) {
|
|
1424
|
+
return n("div", { key: a, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
1420
1425
|
condensed: !0,
|
|
1421
1426
|
variant: "secondary",
|
|
1422
1427
|
disabled: o.disabled
|
|
1423
|
-
}, teleport: "" }, on: { "menu-item-click": function(
|
|
1428
|
+
}, teleport: "" }, on: { "menu-item-click": function(i) {
|
|
1424
1429
|
return e.emit("menu-item-click-close");
|
|
1425
1430
|
} }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
|
|
1426
1431
|
return [(o == null ? void 0 : o.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(o, !0) } })];
|
|
@@ -1439,27 +1444,27 @@ var Co = function() {
|
|
|
1439
1444
|
return [(o == null ? void 0 : o.variant) === "open" ? n(e.ExternalLinkIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconRight, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1440
1445
|
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1441
1446
|
}), 0)])]);
|
|
1442
|
-
},
|
|
1443
|
-
vo,
|
|
1447
|
+
}, mo = [], po = /* @__PURE__ */ V(
|
|
1444
1448
|
Co,
|
|
1445
1449
|
ho,
|
|
1450
|
+
mo,
|
|
1446
1451
|
!1,
|
|
1447
1452
|
null,
|
|
1448
|
-
"
|
|
1453
|
+
"9b907b4f"
|
|
1449
1454
|
);
|
|
1450
|
-
const
|
|
1451
|
-
var
|
|
1452
|
-
const
|
|
1455
|
+
const So = po.exports, _t = Symbol("data-grid slashed zero key");
|
|
1456
|
+
var H = /* @__PURE__ */ ((s) => (s.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", s.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", s.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", s.COLUMN_HOVERED = "column-hovered", s.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", s.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", s.CONDENSED = "condensed", s.FROZEN = "frozen", s.IS_COLUMN_REORDERING = "is-column-re-ordering", s.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", s.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", s.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", s.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", s.NUMERIC = "numeric", s.OVERFLOW_ELLIPSIS = "overflow-ellipsis", s.PADDING_LEFT_UNSET = "padding-left-unset", s.PADDING_RIGHT_UNSET = "padding-right-unset", s.SLASHED_ZERO = "slashed-zero", s))(H || {});
|
|
1457
|
+
const Lo = {
|
|
1453
1458
|
"en-US": {
|
|
1454
1459
|
collapseNestedContent: "Collapse nested content",
|
|
1455
1460
|
expandNestedContent: "Expand nested content",
|
|
1456
1461
|
selectRow: "Select row"
|
|
1457
1462
|
}
|
|
1458
|
-
},
|
|
1459
|
-
i18n: { messages:
|
|
1463
|
+
}, wo = {
|
|
1464
|
+
i18n: { messages: Lo },
|
|
1460
1465
|
name: "data-grid-cell"
|
|
1461
|
-
},
|
|
1462
|
-
...
|
|
1466
|
+
}, Eo = /* @__PURE__ */ Q({
|
|
1467
|
+
...wo,
|
|
1463
1468
|
props: {
|
|
1464
1469
|
draggingEventsForRowCell: {
|
|
1465
1470
|
type: Function,
|
|
@@ -1581,104 +1586,105 @@ const So = {
|
|
|
1581
1586
|
},
|
|
1582
1587
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1583
1588
|
setup(s, { expose: t, emit: n }) {
|
|
1584
|
-
const e = s, o =
|
|
1585
|
-
var
|
|
1586
|
-
return !!((
|
|
1587
|
-
}),
|
|
1589
|
+
const e = s, o = Te(), a = Ie(o), { t: i } = ie(), C = b(null), _ = b(null), f = b(!1), m = b([]), c = L(() => {
|
|
1590
|
+
var g;
|
|
1591
|
+
return !!((g = e.rowData) != null && g[e.column.field]);
|
|
1592
|
+
}), E = L(
|
|
1588
1593
|
() => {
|
|
1589
|
-
var
|
|
1590
|
-
return e.column.field === q && ((
|
|
1594
|
+
var g;
|
|
1595
|
+
return e.column.field === q && ((g = e.nestedRowsElementIds) == null ? void 0 : g.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1591
1596
|
}
|
|
1592
|
-
),
|
|
1597
|
+
), l = L(
|
|
1593
1598
|
() => e.column.field === q && !e.selectable && !e.nestedContent
|
|
1594
|
-
),
|
|
1595
|
-
var
|
|
1596
|
-
(
|
|
1597
|
-
},
|
|
1598
|
-
|
|
1599
|
-
},
|
|
1599
|
+
), d = (g, B) => (g == null ? void 0 : g.overflow) === ye.ELLIPSIS ? `${B}` : void 0, u = (g) => g ?? "-", h = (g) => e.columnSets.slice(0, g).reduce((B, { columnSet: I }) => B + I.length, 0), p = (g, B) => g + h(B), O = (g, B, I) => h() * g + p(B, I), R = (g) => {
|
|
1600
|
+
var B;
|
|
1601
|
+
(g === null || !C.value.contains(g) && !((B = m.value) != null && B.map((I) => I.value).some((I) => I === g || (I == null ? void 0 : I.contains(g))))) && (f.value = !1);
|
|
1602
|
+
}, F = () => {
|
|
1603
|
+
f.value = !1;
|
|
1604
|
+
}, z = (g) => {
|
|
1600
1605
|
const I = { ...{
|
|
1601
|
-
...e.draggingEventsForRowCell(
|
|
1606
|
+
...e.draggingEventsForRowCell(g)
|
|
1602
1607
|
} };
|
|
1603
|
-
return
|
|
1604
|
-
|
|
1605
|
-
}, I.mouseleave = (
|
|
1606
|
-
|
|
1607
|
-
}, I.mouseleave = (
|
|
1608
|
-
R(
|
|
1609
|
-
}, I.focus = (
|
|
1610
|
-
|
|
1611
|
-
}, I.focusout = (
|
|
1612
|
-
R(
|
|
1608
|
+
return g.frozen && (I.keyup = (D) => n("on-frozen-columns-key-press", D), I.keydown = (D) => n("on-frozen-columns-key-press", D)), g.cellActions && (I.mouseenter = () => {
|
|
1609
|
+
f.value = !0;
|
|
1610
|
+
}, I.mouseleave = (D) => {
|
|
1611
|
+
f.value = !1, R(D == null ? void 0 : D.relatedTarget);
|
|
1612
|
+
}, I.mouseleave = (D) => {
|
|
1613
|
+
R(D == null ? void 0 : D.relatedTarget);
|
|
1614
|
+
}, I.focus = (D) => {
|
|
1615
|
+
f.value = !0;
|
|
1616
|
+
}, I.focusout = (D) => {
|
|
1617
|
+
R(D == null ? void 0 : D.relatedTarget);
|
|
1613
1618
|
}), I;
|
|
1614
|
-
},
|
|
1619
|
+
}, S = () => {
|
|
1615
1620
|
n("nested-content-toggled");
|
|
1616
1621
|
};
|
|
1617
1622
|
Y(
|
|
1618
|
-
() =>
|
|
1623
|
+
() => f.value,
|
|
1619
1624
|
() => {
|
|
1620
|
-
|
|
1625
|
+
f.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
1621
1626
|
}
|
|
1622
1627
|
);
|
|
1623
|
-
const
|
|
1624
|
-
|
|
1625
|
-
}, N = (
|
|
1626
|
-
|
|
1628
|
+
const w = (g) => {
|
|
1629
|
+
m.value.push(g);
|
|
1630
|
+
}, N = (g) => {
|
|
1631
|
+
C.value.contains(g == null ? void 0 : g.relatedTarget) || (f.value = !1);
|
|
1627
1632
|
};
|
|
1628
|
-
|
|
1629
|
-
registerMenuContainerElement:
|
|
1633
|
+
ot(Sn, {
|
|
1634
|
+
registerMenuContainerElement: w,
|
|
1630
1635
|
menuMouseLeave: N
|
|
1631
1636
|
});
|
|
1632
|
-
const
|
|
1633
|
-
var
|
|
1637
|
+
const x = Ee(_t, b(!1)), $ = (g) => {
|
|
1638
|
+
var B, I, D, G, v, y, P;
|
|
1634
1639
|
return {
|
|
1635
|
-
[`b-data-grid-cell--${
|
|
1636
|
-
[`b-data-grid-cell--${
|
|
1637
|
-
[`b-data-grid-cell--${
|
|
1638
|
-
[`b-data-grid-cell--${
|
|
1639
|
-
[`b-data-grid-cell--${
|
|
1640
|
-
[`b-data-grid-cell--${
|
|
1641
|
-
[`b-data-grid-cell--${
|
|
1642
|
-
[`b-data-grid-cell--${
|
|
1643
|
-
[`b-data-grid-cell--${
|
|
1644
|
-
[`b-data-grid-cell--${
|
|
1645
|
-
[`b-data-grid-cell--${
|
|
1646
|
-
[`b-data-grid-cell--${
|
|
1647
|
-
[`b-data-grid-cell--${
|
|
1648
|
-
[`b-data-grid-cell--${
|
|
1649
|
-
[`b-data-grid-cell--${
|
|
1650
|
-
[`b-data-grid-cell--${
|
|
1640
|
+
[`b-data-grid-cell--${H.COLUMN_HOVERED}`]: (g == null ? void 0 : g.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1641
|
+
[`b-data-grid-cell--${H.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (g == null ? void 0 : g.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1642
|
+
[`b-data-grid-cell--${H.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (g == null ? void 0 : g.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1643
|
+
[`b-data-grid-cell--${H.PADDING_LEFT_UNSET}`]: ((B = g == null ? void 0 : g.padding) == null ? void 0 : B.left) === !1,
|
|
1644
|
+
[`b-data-grid-cell--${H.PADDING_RIGHT_UNSET}`]: ((I = g == null ? void 0 : g.padding) == null ? void 0 : I.right) === !1,
|
|
1645
|
+
[`b-data-grid-cell--${H.NUMERIC}`]: g == null ? void 0 : g.numeric,
|
|
1646
|
+
[`b-data-grid-cell--${H.CONDENSED}`]: e.condensed,
|
|
1647
|
+
[`b-data-grid-cell--${H.OVERFLOW_ELLIPSIS}`]: (g == null ? void 0 : g.overflow) === ye.ELLIPSIS,
|
|
1648
|
+
[`b-data-grid-cell--${H.IS_COLUMN_REORDERING}`]: ((D = e.draggingColumns.dragging) == null ? void 0 : D.field) === g.field,
|
|
1649
|
+
[`b-data-grid-cell--${H.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((G = e.draggingColumns.target) == null ? void 0 : G.field) === g.field && ((v = e.draggingColumns) == null ? void 0 : v.dragToLeft),
|
|
1650
|
+
[`b-data-grid-cell--${H.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((y = e.draggingColumns.target) == null ? void 0 : y.field) === g.field && !((P = e.draggingColumns) != null && P.dragToLeft),
|
|
1651
|
+
[`b-data-grid-cell--${H.FROZEN}`]: g == null ? void 0 : g.frozen,
|
|
1652
|
+
[`b-data-grid-cell--${H.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
1653
|
+
[`b-data-grid-cell--${H.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && g.field === q,
|
|
1654
|
+
[`b-data-grid-cell--${H.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && g.field === q,
|
|
1655
|
+
[`b-data-grid-cell--${H.ACTION_COL_SELECTION_ENABLED}`]: g.field === q && e.selectable,
|
|
1656
|
+
[`b-data-grid-cell--${H.SLASHED_ZERO}`]: x.value
|
|
1651
1657
|
};
|
|
1652
1658
|
};
|
|
1653
1659
|
return t({
|
|
1654
|
-
gridcellRef:
|
|
1655
|
-
}), { __sfc: !0, slots: o, hasSlot:
|
|
1660
|
+
gridcellRef: C
|
|
1661
|
+
}), { __sfc: !0, slots: o, hasSlot: a, t: i, props: e, emit: n, gridcellRef: C, cellActionsRef: _, shouldShowCellActions: f, childrenMenuContainerElements: m, hasRowData: c, controlledNestedRowElementIds: E, ariaHidden: l, conditionalTitleAttribute: d, getRowData: u, sumColumnAmountsInColumnSets: h, getColIndex: p, getCellIndex: O, isLeavingCellFocus: R, onMenuClose: F, getGridcellEvents: z, toggleNestedContent: S, registerMenuContainerElement: w, menuMouseLeave: N, hasSlashedZero: x, conditionalRowCellClasses: $, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: q, BentoCheckbox: it, BentoTypography: he, BentoToggleButton: Fe, DataGridCellActions: So, ChevronDownIcon: Rn, ChevronUpIcon: En };
|
|
1656
1662
|
}
|
|
1657
1663
|
});
|
|
1658
|
-
var
|
|
1664
|
+
var Ro = function() {
|
|
1659
1665
|
var o;
|
|
1660
1666
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1661
1667
|
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
1662
1668
|
width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
|
|
1663
|
-
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(
|
|
1664
|
-
return t.$emit("select-row",
|
|
1669
|
+
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex) === 0 ? "0" : "-1", "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData) }, on: { "update:model-value": function(a) {
|
|
1670
|
+
return t.$emit("select-row", a);
|
|
1665
1671
|
} } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1666
1672
|
return [t.isNestedContentExpanded ? n(e.ChevronUpIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("collapseNestedContent") } }) : n(e.ChevronDownIcon, { staticClass: "b-accordion-item__icon", attrs: { "svg-title": e.t("expandNestedContent") } })];
|
|
1667
1673
|
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { attrs: { el: "div" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1668
1674
|
return [n("span", { attrs: { title: e.conditionalTitleAttribute(t.column, t.rowData[t.column.field]) } }, [t._v(t._s(e.getRowData(t.rowData[t.column.field])))])];
|
|
1669
1675
|
}, { item: t.rowData, rowIndex: t.rowIndex })], 2), ((o = t.column.cellActions) == null ? void 0 : o.length) > 0 ? n("div", { staticClass: "b-data-grid-cell__cell-actions" }, [e.shouldShowCellActions && (e.hasRowData || e.hasSlot(`item-${t.column.field}`)) ? n(e.DataGridCellActions, { ref: "cellActionsRef", attrs: { "cell-actions": t.column.cellActions, "column-key": t.column.field, "row-data-item": t.rowData }, on: { "menu-item-click-close": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1670
|
-
},
|
|
1671
|
-
wo,
|
|
1676
|
+
}, yo = [], bo = /* @__PURE__ */ V(
|
|
1672
1677
|
Eo,
|
|
1673
1678
|
Ro,
|
|
1679
|
+
yo,
|
|
1674
1680
|
!1,
|
|
1675
1681
|
null,
|
|
1676
|
-
"
|
|
1682
|
+
"67064b26"
|
|
1677
1683
|
);
|
|
1678
|
-
const
|
|
1684
|
+
const Oo = bo.exports, Ao = {
|
|
1679
1685
|
name: "data-grid-row"
|
|
1680
1686
|
}, To = /* @__PURE__ */ Q({
|
|
1681
|
-
...
|
|
1687
|
+
...Ao,
|
|
1682
1688
|
props: {
|
|
1683
1689
|
/**
|
|
1684
1690
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -1857,196 +1863,196 @@ const bo = yo.exports, Oo = {
|
|
|
1857
1863
|
},
|
|
1858
1864
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
1859
1865
|
setup(s, { expose: t, emit: n }) {
|
|
1860
|
-
const e = s, o =
|
|
1866
|
+
const e = s, o = Te(), a = Ie(o), i = b({}), C = b(!1), _ = b(), f = Re("nested-content-slot"), m = L(() => e.shouldShowNestedRows(e.rowData)), c = L(
|
|
1861
1867
|
() => {
|
|
1862
|
-
var
|
|
1863
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
1868
|
+
var v, y;
|
|
1869
|
+
return !e.isNestedRow && e.hasNestedRows && m.value && ((y = (v = e.rowData) == null ? void 0 : v.children) == null ? void 0 : y.length) > 0;
|
|
1864
1870
|
}
|
|
1865
|
-
),
|
|
1871
|
+
), E = L(
|
|
1866
1872
|
() => {
|
|
1867
|
-
var
|
|
1868
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
1873
|
+
var v, y;
|
|
1874
|
+
return !e.isNestedRow && e.hasNestedRows && m.value && (((v = e.rowData) == null ? void 0 : v.children) === void 0 || ((y = e == null ? void 0 : e.rowData) == null ? void 0 : y.children.length) === 0);
|
|
1869
1875
|
}
|
|
1870
|
-
),
|
|
1871
|
-
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows &&
|
|
1872
|
-
),
|
|
1876
|
+
), l = L(
|
|
1877
|
+
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && m.value && !e.isNestedRow
|
|
1878
|
+
), d = L(() => {
|
|
1873
1879
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
1874
|
-
const
|
|
1880
|
+
const v = C.value.toString();
|
|
1875
1881
|
return {
|
|
1876
|
-
"aria-expanded":
|
|
1882
|
+
"aria-expanded": l.value ? v : void 0,
|
|
1877
1883
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
1878
1884
|
"aria-posinset": e.rowIndex + 1,
|
|
1879
1885
|
"aria-setsize": e.rowSetSize
|
|
1880
1886
|
};
|
|
1881
1887
|
}
|
|
1882
1888
|
return { "aria-rowindex": e.rowIndex + 1 };
|
|
1883
|
-
}),
|
|
1884
|
-
if (
|
|
1889
|
+
}), u = L(() => {
|
|
1890
|
+
if (E.value)
|
|
1885
1891
|
return {
|
|
1886
1892
|
"aria-busy": "true",
|
|
1887
1893
|
"aria-live": "polite"
|
|
1888
1894
|
};
|
|
1889
|
-
if (!(
|
|
1895
|
+
if (!(c.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
1890
1896
|
return {
|
|
1891
1897
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
1892
1898
|
"aria-posinset": "1",
|
|
1893
1899
|
"aria-setsize": "1",
|
|
1894
|
-
id:
|
|
1900
|
+
id: f,
|
|
1895
1901
|
role: "row",
|
|
1896
1902
|
tabindex: "-1"
|
|
1897
1903
|
};
|
|
1898
|
-
}),
|
|
1899
|
-
var
|
|
1900
|
-
return
|
|
1901
|
-
}),
|
|
1902
|
-
var
|
|
1903
|
-
if (
|
|
1904
|
+
}), h = L(() => {
|
|
1905
|
+
var v, y;
|
|
1906
|
+
return c.value ? (y = (v = e.rowData) == null ? void 0 : v.children) == null ? void 0 : y.reduce((P, X, r) => (P[r] = Re("nested-row"), P), {}) : [];
|
|
1907
|
+
}), p = L(() => {
|
|
1908
|
+
var v;
|
|
1909
|
+
if (C.value) {
|
|
1904
1910
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
1905
|
-
return [
|
|
1906
|
-
if (
|
|
1907
|
-
const y = Object.values(
|
|
1911
|
+
return [f];
|
|
1912
|
+
if (c.value && ((v = Object.keys(h.value)) == null ? void 0 : v.length) > 0) {
|
|
1913
|
+
const y = Object.values(h.value);
|
|
1908
1914
|
if ((y == null ? void 0 : y.length) > 0)
|
|
1909
1915
|
return y;
|
|
1910
1916
|
}
|
|
1911
1917
|
return [];
|
|
1912
1918
|
}
|
|
1913
|
-
}), O =
|
|
1914
|
-
var y,
|
|
1915
|
-
const
|
|
1916
|
-
if ((
|
|
1917
|
-
const X =
|
|
1919
|
+
}), O = L(() => {
|
|
1920
|
+
var y, P;
|
|
1921
|
+
const v = (P = (y = e.rowData) == null ? void 0 : y.children) == null ? void 0 : P.map((X) => e.getDataItemId(X));
|
|
1922
|
+
if ((v == null ? void 0 : v.length) > 0) {
|
|
1923
|
+
const X = v.every((M) => {
|
|
1918
1924
|
var Z;
|
|
1919
|
-
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(
|
|
1920
|
-
}), r =
|
|
1925
|
+
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(M);
|
|
1926
|
+
}), r = v.some((M) => {
|
|
1921
1927
|
var Z;
|
|
1922
|
-
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(
|
|
1928
|
+
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(M);
|
|
1923
1929
|
});
|
|
1924
1930
|
return !X && r;
|
|
1925
1931
|
}
|
|
1926
1932
|
return !1;
|
|
1927
|
-
}), R = (
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1930
|
-
},
|
|
1933
|
+
}), R = (v, y) => {
|
|
1934
|
+
const P = v;
|
|
1935
|
+
v !== null && (P != null && P.gridcellRef) && (i.value[y] = P.gridcellRef);
|
|
1936
|
+
}, F = (v) => h.value[v], z = (v) => {
|
|
1931
1937
|
if (!e.selectable)
|
|
1932
1938
|
return null;
|
|
1933
|
-
const y = e.getDataItemId(
|
|
1939
|
+
const y = e.getDataItemId(v);
|
|
1934
1940
|
return e.selectedItems.includes(y).toString();
|
|
1935
|
-
},
|
|
1936
|
-
e.allowRowClicks && n("row-click", e.rowData,
|
|
1937
|
-
},
|
|
1938
|
-
n("select-row",
|
|
1939
|
-
}, N = (
|
|
1940
|
-
n("select-nested-row", y, e.rowData,
|
|
1941
|
-
}, { updateContentHeight:
|
|
1942
|
-
var
|
|
1941
|
+
}, S = (v) => {
|
|
1942
|
+
e.allowRowClicks && n("row-click", e.rowData, v);
|
|
1943
|
+
}, w = (v) => {
|
|
1944
|
+
n("select-row", v, e.rowData);
|
|
1945
|
+
}, N = (v, y) => {
|
|
1946
|
+
n("select-nested-row", y, e.rowData, v);
|
|
1947
|
+
}, { updateContentHeight: x, contentHeight: $ } = mn(_, C), g = L(() => {
|
|
1948
|
+
var v;
|
|
1943
1949
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
1944
1950
|
return {
|
|
1945
|
-
paddingLeft: `${
|
|
1946
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) &&
|
|
1951
|
+
paddingLeft: `${c.value || E.value ? 0 : i.value[q].clientWidth + ut}px`,
|
|
1952
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && $.value && !((v = $ == null ? void 0 : $.value) != null && v.includes("null")) ? $.value : 0
|
|
1947
1953
|
};
|
|
1948
1954
|
});
|
|
1949
1955
|
Y(
|
|
1950
|
-
() =>
|
|
1956
|
+
() => _.value,
|
|
1951
1957
|
() => {
|
|
1952
|
-
let
|
|
1953
|
-
!
|
|
1954
|
-
|
|
1958
|
+
let v = null;
|
|
1959
|
+
!v && _.value && (v = De(_.value, () => {
|
|
1960
|
+
_.value && x();
|
|
1955
1961
|
}));
|
|
1956
1962
|
}
|
|
1957
1963
|
);
|
|
1958
|
-
const
|
|
1959
|
-
|
|
1964
|
+
const B = () => {
|
|
1965
|
+
C.value = !C.value, x(), n("nested-content-toggled", e.rowData);
|
|
1960
1966
|
};
|
|
1961
1967
|
Y(
|
|
1962
1968
|
() => {
|
|
1963
|
-
var
|
|
1964
|
-
return (
|
|
1969
|
+
var v;
|
|
1970
|
+
return (v = e.rowData) == null ? void 0 : v.children;
|
|
1965
1971
|
},
|
|
1966
|
-
(
|
|
1967
|
-
var
|
|
1968
|
-
((X = (
|
|
1972
|
+
(v, y) => {
|
|
1973
|
+
var P, X;
|
|
1974
|
+
((X = (P = e == null ? void 0 : e.rowData) == null ? void 0 : P.children) == null ? void 0 : X.length) > 0 && y === void 0 && !C.value && x();
|
|
1969
1975
|
}
|
|
1970
1976
|
);
|
|
1971
|
-
const
|
|
1972
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(
|
|
1977
|
+
const I = (v, y) => ({
|
|
1978
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(v),
|
|
1973
1979
|
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
1974
|
-
"b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(
|
|
1980
|
+
"b-data-grid-row-container__row--highlighted": e.highlightedRows.includes(e.getDataItemId(v)) || e.selectedItems.includes(e.getDataItemId(v)),
|
|
1975
1981
|
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === y,
|
|
1976
|
-
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !
|
|
1982
|
+
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !C.value,
|
|
1977
1983
|
"b-data-grid-row-container__row--nested-row": e.isNestedRow
|
|
1978
|
-
}),
|
|
1979
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
1980
|
-
[`b-data-grid-row-container__row-cell-set--${se.OVERFLOW_SHADOW_LEFT}`]:
|
|
1981
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator":
|
|
1982
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
1984
|
+
}), D = (v) => ({
|
|
1985
|
+
"b-data-grid-row-container__row-cell-set--frozen": v,
|
|
1986
|
+
[`b-data-grid-row-container__row-cell-set--${se.OVERFLOW_SHADOW_LEFT}`]: v && e.hasLeftOverflow,
|
|
1987
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": v && e.showFrozenColumnsSeparator,
|
|
1988
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !v,
|
|
1983
1989
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
1984
|
-
}), G =
|
|
1990
|
+
}), G = L(() => ({
|
|
1985
1991
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
1986
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
1992
|
+
"b-data-grid-row-container__row-nested-slot": !c.value && e.shouldShowNestedContent(e.rowData)
|
|
1987
1993
|
}));
|
|
1988
1994
|
return t({
|
|
1989
|
-
gridcellRefs:
|
|
1990
|
-
}), { __sfc: !0, slots: o, hasSlot:
|
|
1995
|
+
gridcellRefs: i
|
|
1996
|
+
}), { __sfc: !0, slots: o, hasSlot: a, props: e, emit: n, gridcellRefs: i, isNestedContentShown: C, nestedContentRef: _, nestedContentSlotId: f, shouldShowNestedRowsBooleanResult: m, shouldShowRenderNestedRows: c, isLoadingNestedRows: E, shouldShowNestedContentToggle: l, ariaRowAttributes: d, nestedContentContainerDivAriaAttributes: u, nestedRowIds: h, allNestedRowIds: p, hasUnSelectedNestedRows: O, registerRowCellRef: R, getRowId: F, getRowAriaSelectedValue: z, onRowClick: S, onRowSelect: w, onNestedRowSelect: N, updateContentHeight: x, contentHeight: $, nestedContentStyles: g, nestedContentToggled: B, conditionalRowClasses: I, conditionalRowSetClasses: D, conditionalNestedRowClasses: G, DataGridCell: Oo, BentoLoadingIndicator: Ne, DataGridRow: vt };
|
|
1991
1997
|
}
|
|
1992
1998
|
});
|
|
1993
|
-
var
|
|
1999
|
+
var No = function() {
|
|
1994
2000
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1995
|
-
return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: t.rowId, role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: o, id:
|
|
1996
|
-
return [o != null && o.length ? n("div", { key: `data-grid-rows-${
|
|
1997
|
-
return n(e.DataGridCell, { key: `cell-${
|
|
1998
|
-
return e.emit("cell-hovered",
|
|
1999
|
-
}, "on-frozen-columns-key-press": function(
|
|
2000
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2001
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2002
|
-
return { key:
|
|
2003
|
-
return [t._t(
|
|
2001
|
+
return n("div", { staticClass: "b-data-grid-row-container" }, [n("div", t._b({ key: t.rowIndex, staticClass: "b-data-grid-row-container__row", class: e.conditionalRowClasses(t.rowData, t.rowIndex), attrs: { id: t.rowId, role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: o, id: a, isFrozenColumns: i }, C) {
|
|
2002
|
+
return [o != null && o.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(i), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(o, function(_, f) {
|
|
2003
|
+
return n(e.DataGridCell, { key: `cell-${_.field}`, ref: (m) => e.registerRowCellRef(m, _.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: _, "column-set-index": C, "col-index": f, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "hovered-over-column-state": t.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-measuring-column-widths": t.isMeasuringColumnWidths, "is-nested-content-expanded": e.isNestedContentShown, "nested-content": e.shouldShowNestedContentToggle, "nested-rows-element-ids": e.allNestedRowIds, "row-data": t.rowData, "row-index": t.rowIndex, "selection-is-indeterminate": e.hasUnSelectedNestedRows, selectable: t.selectable, "selected-items": t.selectedItems }, on: { "cell-hovered": function(m) {
|
|
2004
|
+
return e.emit("cell-hovered", m);
|
|
2005
|
+
}, "on-frozen-columns-key-press": function(m) {
|
|
2006
|
+
return e.emit("on-frozen-columns-key-press", m);
|
|
2007
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m, c) {
|
|
2008
|
+
return { key: c, fn: function(E) {
|
|
2009
|
+
return [t._t(c, null, null, E)];
|
|
2004
2010
|
} };
|
|
2005
2011
|
})], null, !0) });
|
|
2006
2012
|
}), 1) : t._e()];
|
|
2007
|
-
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(o,
|
|
2008
|
-
return n(e.DataGridRow, t._b({ key: `child-${
|
|
2009
|
-
return e.emit("cell-hovered",
|
|
2010
|
-
}, "row-click": function(
|
|
2011
|
-
return e.emit("row-click",
|
|
2012
|
-
}, "on-frozen-columns-key-press": function(
|
|
2013
|
-
return e.emit("con-frozen-columns-key-press",
|
|
2014
|
-
}, "select-row": function(
|
|
2015
|
-
return e.onNestedRowSelect(o,
|
|
2016
|
-
} }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2017
|
-
return { key:
|
|
2018
|
-
return [t._t(
|
|
2013
|
+
})], 2), t.hasNestedContent && e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) || t.hasNestedRows && e.shouldShowNestedRowsBooleanResult ? n("Transition", { key: `${t.rowIndex}-nest-content`, attrs: { name: "b-data-grid-row-container__animation--nested-content" } }, [e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.shouldShowRenderNestedRows ? t._l(t.rowData.children, function(o, a) {
|
|
2014
|
+
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": o, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(i) {
|
|
2015
|
+
return e.emit("cell-hovered", i);
|
|
2016
|
+
}, "row-click": function(i) {
|
|
2017
|
+
return e.emit("row-click", i);
|
|
2018
|
+
}, "on-frozen-columns-key-press": function(i) {
|
|
2019
|
+
return e.emit("con-frozen-columns-key-press", i);
|
|
2020
|
+
}, "select-row": function(i) {
|
|
2021
|
+
return e.onNestedRowSelect(o, i);
|
|
2022
|
+
} }, scopedSlots: t._u([t._l(e.slots, function(i, C) {
|
|
2023
|
+
return { key: C, fn: function(_) {
|
|
2024
|
+
return [t._t(C, null, null, _)];
|
|
2019
2025
|
} };
|
|
2020
2026
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2021
2027
|
}) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()], 2)]) : t._e()]) : t._e()], 1);
|
|
2022
|
-
},
|
|
2028
|
+
}, Io = [], Do = /* @__PURE__ */ V(
|
|
2023
2029
|
To,
|
|
2024
|
-
Ao,
|
|
2025
2030
|
No,
|
|
2031
|
+
Io,
|
|
2026
2032
|
!1,
|
|
2027
2033
|
null,
|
|
2028
2034
|
"e7701751"
|
|
2029
2035
|
);
|
|
2030
|
-
const
|
|
2031
|
-
let
|
|
2032
|
-
const
|
|
2036
|
+
const vt = Do.exports;
|
|
2037
|
+
let nt = 0;
|
|
2038
|
+
const Fo = {
|
|
2033
2039
|
beforeCreate() {
|
|
2034
|
-
this.uuid =
|
|
2040
|
+
this.uuid = nt.toString(), nt += 1;
|
|
2035
2041
|
}
|
|
2036
2042
|
};
|
|
2037
|
-
var
|
|
2043
|
+
var xo = function() {
|
|
2038
2044
|
var t = this, n = t._self._c;
|
|
2039
2045
|
return n("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? n("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), n("g", { attrs: { "clip-path": "url(#uia-icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#00112C", d: "M0.25 8C0.25 3.71979 3.71979 0.25 8 0.25C12.2802 0.25 15.75 3.71979 15.75 8C15.75 12.2802 12.2802 15.75 8 15.75C3.71979 15.75 0.25 12.2802 0.25 8ZM8.75 8.75V4.25H7.25V8.75H8.75ZM8 11.5C8.41421 11.5 8.75 11.1642 8.75 10.75C8.75 10.3358 8.41421 10 8 10C7.58579 10 7.25 10.3358 7.25 10.75C7.25 11.1642 7.58579 11.5 8 11.5Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2040
|
-
},
|
|
2041
|
-
Do,
|
|
2046
|
+
}, Mo = [], Bo = /* @__PURE__ */ V(
|
|
2042
2047
|
Fo,
|
|
2043
2048
|
xo,
|
|
2049
|
+
Mo,
|
|
2044
2050
|
!1,
|
|
2045
2051
|
null,
|
|
2046
2052
|
null
|
|
2047
2053
|
);
|
|
2048
|
-
const Po =
|
|
2049
|
-
...
|
|
2054
|
+
const Po = Bo.exports, zo = {}, $o = /* @__PURE__ */ Q({
|
|
2055
|
+
...zo,
|
|
2050
2056
|
__name: "data-grid-static-icon",
|
|
2051
2057
|
props: {
|
|
2052
2058
|
colored: { type: Boolean, default: !1 },
|
|
@@ -2054,43 +2060,43 @@ const Po = Mo.exports, Bo = {}, zo = /* @__PURE__ */ Q({
|
|
|
2054
2060
|
variant: { default: "no-value" }
|
|
2055
2061
|
},
|
|
2056
2062
|
setup(s) {
|
|
2057
|
-
const t = s, n =
|
|
2063
|
+
const t = s, n = L(() => {
|
|
2058
2064
|
switch (t.variant) {
|
|
2059
2065
|
case "checkmark":
|
|
2060
|
-
return ln;
|
|
2061
|
-
case "warning":
|
|
2062
2066
|
return an;
|
|
2067
|
+
case "warning":
|
|
2068
|
+
return rn;
|
|
2063
2069
|
case "error":
|
|
2064
2070
|
return Po;
|
|
2065
2071
|
case "cross":
|
|
2066
|
-
return
|
|
2072
|
+
return lt;
|
|
2067
2073
|
case "no-value":
|
|
2068
|
-
return
|
|
2074
|
+
return Ge;
|
|
2069
2075
|
default:
|
|
2070
|
-
return
|
|
2076
|
+
return Ge;
|
|
2071
2077
|
}
|
|
2072
|
-
}), e =
|
|
2078
|
+
}), e = L(() => ({
|
|
2073
2079
|
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2074
|
-
})), o =
|
|
2075
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition:
|
|
2080
|
+
})), o = L(() => `b-data-grid-static-icon__${t.variant}`), a = L(() => dn.AUTO);
|
|
2081
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: a, vBentoTooltipDirective: cn };
|
|
2076
2082
|
}
|
|
2077
2083
|
});
|
|
2078
|
-
var
|
|
2084
|
+
var Uo = function() {
|
|
2079
2085
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2080
2086
|
return n("div", { directives: [{ name: "bento-tooltip-directive", rawName: "v-bento-tooltip-directive:[tooltipPosition]", value: t.tooltipText, expression: "tooltipText", arg: e.tooltipPosition }], staticClass: "b-data-grid-static-icon", class: e.conditionalClasses, attrs: { "aria-label": t.tooltipText, tabindex: "0" } }, [n(e.computedIcon, { tag: "component", class: e.computedIconClass, attrs: { "svg-title": t.tooltipText } })], 1);
|
|
2081
|
-
},
|
|
2082
|
-
zo,
|
|
2087
|
+
}, ko = [], Go = /* @__PURE__ */ V(
|
|
2083
2088
|
$o,
|
|
2084
2089
|
Uo,
|
|
2090
|
+
ko,
|
|
2085
2091
|
!1,
|
|
2086
2092
|
null,
|
|
2087
2093
|
"f8532817"
|
|
2088
2094
|
);
|
|
2089
|
-
const
|
|
2090
|
-
i18n: { messages:
|
|
2095
|
+
const Bl = Go.exports, Wo = {
|
|
2096
|
+
i18n: { messages: gt },
|
|
2091
2097
|
name: "bento-data-grid"
|
|
2092
|
-
},
|
|
2093
|
-
...
|
|
2098
|
+
}, Ho = /* @__PURE__ */ Q({
|
|
2099
|
+
...Wo,
|
|
2094
2100
|
props: {
|
|
2095
2101
|
/**
|
|
2096
2102
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2151,7 +2157,8 @@ const Ml = ko.exports, Go = {
|
|
|
2151
2157
|
* {@see BentoFilterBarModel}
|
|
2152
2158
|
*/
|
|
2153
2159
|
filters: {
|
|
2154
|
-
|
|
2160
|
+
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
2161
|
+
type: Array,
|
|
2155
2162
|
default: void 0
|
|
2156
2163
|
},
|
|
2157
2164
|
/**
|
|
@@ -2159,14 +2166,14 @@ const Ml = ko.exports, Go = {
|
|
|
2159
2166
|
* {@see BentoFilterValues}
|
|
2160
2167
|
*/
|
|
2161
2168
|
filterValues: {
|
|
2162
|
-
type:
|
|
2169
|
+
type: Le.props.filterValues.type,
|
|
2163
2170
|
default: () => []
|
|
2164
2171
|
},
|
|
2165
2172
|
/**
|
|
2166
2173
|
* Filter bar search term useful to filter all the data by text
|
|
2167
2174
|
*/
|
|
2168
2175
|
filterSearchTerm: {
|
|
2169
|
-
type:
|
|
2176
|
+
type: Le.props.searchTerm.type,
|
|
2170
2177
|
default: void 0
|
|
2171
2178
|
},
|
|
2172
2179
|
/**
|
|
@@ -2263,6 +2270,10 @@ const Ml = ko.exports, Go = {
|
|
|
2263
2270
|
type: Boolean,
|
|
2264
2271
|
default: !1
|
|
2265
2272
|
},
|
|
2273
|
+
/**
|
|
2274
|
+
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
2275
|
+
*/
|
|
2276
|
+
slashedZero: { type: Boolean, default: !1 },
|
|
2266
2277
|
/**
|
|
2267
2278
|
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
2268
2279
|
*/
|
|
@@ -2339,218 +2350,218 @@ const Ml = ko.exports, Go = {
|
|
|
2339
2350
|
}
|
|
2340
2351
|
},
|
|
2341
2352
|
emits: [
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2353
|
+
A.COLUMNS,
|
|
2354
|
+
A.COLUMN_RESIZE,
|
|
2355
|
+
A.ITEMS_PAGE,
|
|
2356
|
+
A.FILTER_SEARCH_INPUT,
|
|
2357
|
+
A.FILTER_SEARCH_CLEAR,
|
|
2358
|
+
A.NAVIGATE,
|
|
2359
|
+
A.NESTED_CONTENT_TOGGLED,
|
|
2360
|
+
A.UPDATE_COLUMNS,
|
|
2361
|
+
A.UPDATE_CONDENSED,
|
|
2362
|
+
A.UPDATE_FILTER_VALUES,
|
|
2363
|
+
A.UPDATE_FILTERS,
|
|
2364
|
+
A.UPDATE_FILTER_SEARCH_TERM,
|
|
2365
|
+
A.UPDATE_SHOW_MORE,
|
|
2366
|
+
A.UPDATE_PAGINATION,
|
|
2367
|
+
A.UPDATE_SELECTION,
|
|
2368
|
+
A.UPDATE_SORT_BY,
|
|
2369
|
+
A.ROW_CLICK,
|
|
2370
|
+
A.SELECT,
|
|
2371
|
+
A.SELECT_ALL_ACROSS_PAGES,
|
|
2372
|
+
A.SORT
|
|
2362
2373
|
],
|
|
2363
2374
|
setup(s, { expose: t, emit: n }) {
|
|
2364
|
-
const e = s, o =
|
|
2365
|
-
allowColumnDragAndDrop:
|
|
2366
|
-
columns:
|
|
2367
|
-
columnPanel:
|
|
2368
|
-
data:
|
|
2375
|
+
const e = s, o = Te(), a = Ie(o), i = b(null), C = b(), _ = b({}), f = b(null), m = b(null), c = b(), E = b(null), l = b(null), {
|
|
2376
|
+
allowColumnDragAndDrop: d,
|
|
2377
|
+
columns: u,
|
|
2378
|
+
columnPanel: h,
|
|
2379
|
+
data: p,
|
|
2369
2380
|
lazyLoadType: O,
|
|
2370
2381
|
loading: R,
|
|
2371
|
-
hasNestedContent:
|
|
2372
|
-
hasNestedRows:
|
|
2373
|
-
selectable:
|
|
2374
|
-
selection:
|
|
2382
|
+
hasNestedContent: F,
|
|
2383
|
+
hasNestedRows: z,
|
|
2384
|
+
selectable: S,
|
|
2385
|
+
selection: w,
|
|
2375
2386
|
selectableAcrossPages: N,
|
|
2376
|
-
stickyPagination:
|
|
2377
|
-
outline:
|
|
2378
|
-
pagination:
|
|
2379
|
-
} =
|
|
2380
|
-
|
|
2387
|
+
stickyPagination: x,
|
|
2388
|
+
outline: $,
|
|
2389
|
+
pagination: g
|
|
2390
|
+
} = Oe(e), B = b(-1), { t: I } = ie(), D = L(() => r.value.filter((T) => T.frozen).length), G = Ee(
|
|
2391
|
+
hn,
|
|
2381
2392
|
() => ({
|
|
2382
2393
|
isDataGridTemplate: !1,
|
|
2383
2394
|
stickyTabs: b(!1),
|
|
2384
2395
|
tabsRef: b(null)
|
|
2385
2396
|
})
|
|
2386
|
-
), { isDataGridTemplate:
|
|
2397
|
+
), { isDataGridTemplate: v, stickyTabs: y, tabsRef: P } = G(), X = L(() => e.fitContent || v ? 0 : null), {
|
|
2387
2398
|
columnDefs: r,
|
|
2388
|
-
onColumnWidthOverride:
|
|
2399
|
+
onColumnWidthOverride: M,
|
|
2389
2400
|
gridColumnWidthStyle: Z,
|
|
2390
2401
|
isMeasuringColumnWidths: oe,
|
|
2391
2402
|
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: le,
|
|
2392
2403
|
columns: de,
|
|
2393
2404
|
totalWidthOfAllColumns: fe
|
|
2394
|
-
} =
|
|
2395
|
-
hasColumnPanel:
|
|
2396
|
-
hasSelectableColumn:
|
|
2405
|
+
} = jn(u, p, i, _, f, {
|
|
2406
|
+
hasColumnPanel: h,
|
|
2407
|
+
hasSelectableColumn: S,
|
|
2397
2408
|
hasSelectableAcrossPages: N,
|
|
2398
|
-
hasNestedContent:
|
|
2399
|
-
hasNestedRows:
|
|
2400
|
-
allowColumnDragAndDrop:
|
|
2401
|
-
isDataGridTemplate:
|
|
2402
|
-
}), W = (
|
|
2403
|
-
(
|
|
2404
|
-
}, re =
|
|
2409
|
+
hasNestedContent: F,
|
|
2410
|
+
hasNestedRows: z,
|
|
2411
|
+
allowColumnDragAndDrop: d,
|
|
2412
|
+
isDataGridTemplate: v
|
|
2413
|
+
}), W = (T, ...U) => {
|
|
2414
|
+
(T === A.COLUMNS || T === A.UPDATE_COLUMNS) && ([de.value] = U), n(T, ...U);
|
|
2415
|
+
}, re = je(P, y), ge = L(
|
|
2405
2416
|
() => e.stickyFilters ? `${re.value}px` : null
|
|
2406
|
-
), ce =
|
|
2417
|
+
), ce = je(m, we(e, "stickyFilters")), _e = L(
|
|
2407
2418
|
() => `${ce.value + re.value}px`
|
|
2408
2419
|
), {
|
|
2409
|
-
sortedColumns:
|
|
2410
|
-
columnSets:
|
|
2411
|
-
isOnlyOneVisibleColumn:
|
|
2412
|
-
onConfigSettingsUpdate:
|
|
2413
|
-
onConfigSettingsColumnsUpdate:
|
|
2414
|
-
onConfigSettingsColumnUpdate:
|
|
2415
|
-
} =
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2420
|
+
sortedColumns: xe,
|
|
2421
|
+
columnSets: me,
|
|
2422
|
+
isOnlyOneVisibleColumn: Ct,
|
|
2423
|
+
onConfigSettingsUpdate: ht,
|
|
2424
|
+
onConfigSettingsColumnsUpdate: mt,
|
|
2425
|
+
onConfigSettingsColumnUpdate: pt
|
|
2426
|
+
} = es(r, W), { hoveredOverColumn: St, hoveredOverColumnState: Lt } = ns(
|
|
2427
|
+
me,
|
|
2428
|
+
S,
|
|
2429
|
+
$,
|
|
2419
2430
|
le
|
|
2420
|
-
), { draggingColumns:
|
|
2421
|
-
|
|
2431
|
+
), { draggingColumns: wt, draggingEventsForColumns: Et, draggingEventsForRowCell: Rt, onMoveColumnByOffset: yt } = Qn(xe, d, W), { onAllRowSelect: bt, onRowSelect: Ot, onNestedRowSelect: At, selectedItems: Me, allItemsSelectedState: Tt } = qn(
|
|
2432
|
+
w,
|
|
2422
2433
|
W,
|
|
2423
|
-
|
|
2434
|
+
p,
|
|
2424
2435
|
e.getDataItemId,
|
|
2425
2436
|
e.isDataItemDisabled
|
|
2426
|
-
), { navigationInput:
|
|
2437
|
+
), { navigationInput: Nt } = Xn(f, u, S), { isLazyLoad: pe, isInfiniteScroll: It, verticalScrollPosition: Be, emitLazyLoadEvent: Dt } = Kn(
|
|
2427
2438
|
O,
|
|
2439
|
+
E,
|
|
2428
2440
|
i,
|
|
2429
|
-
a,
|
|
2430
2441
|
R,
|
|
2431
2442
|
W
|
|
2432
2443
|
), {
|
|
2433
|
-
updateScrollPosition:
|
|
2434
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
2435
|
-
syncVirtualScrollerWithBody:
|
|
2436
|
-
hasLeftOverflow:
|
|
2437
|
-
hasRightOverflow:
|
|
2438
|
-
horizontalScrollbarConditionalClasses:
|
|
2439
|
-
} =
|
|
2440
|
-
isLazyLoad:
|
|
2441
|
-
pagination:
|
|
2442
|
-
stickyPagination:
|
|
2443
|
-
isDataGridTemplate:
|
|
2444
|
-
}),
|
|
2445
|
-
|
|
2446
|
-
},
|
|
2447
|
-
var
|
|
2444
|
+
updateScrollPosition: Ft,
|
|
2445
|
+
updateScrollPositionOnFrozenColumnsNavigation: xt,
|
|
2446
|
+
syncVirtualScrollerWithBody: Mt,
|
|
2447
|
+
hasLeftOverflow: Se,
|
|
2448
|
+
hasRightOverflow: Pe,
|
|
2449
|
+
horizontalScrollbarConditionalClasses: Bt
|
|
2450
|
+
} = ts(i, C, Be, l, {
|
|
2451
|
+
isLazyLoad: pe,
|
|
2452
|
+
pagination: g,
|
|
2453
|
+
stickyPagination: x,
|
|
2454
|
+
isDataGridTemplate: v
|
|
2455
|
+
}), ze = () => {
|
|
2456
|
+
c.value.isClearAllVisible ? c.value.clearAllFilters() : c.value.isResetAllVisible && c.value.resetAllFilters();
|
|
2457
|
+
}, Pt = L(() => {
|
|
2458
|
+
var T, U;
|
|
2448
2459
|
return {
|
|
2449
2460
|
...e.emptyState,
|
|
2450
|
-
variant: ((
|
|
2461
|
+
variant: ((T = e.emptyState) == null ? void 0 : T.variant) === "embedded" || ((U = e.emptyState) == null ? void 0 : U.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
2451
2462
|
};
|
|
2452
|
-
}),
|
|
2463
|
+
}), zt = L(() => ({
|
|
2453
2464
|
[`b-data-grid--${se.OUTLINE}`]: e.outline,
|
|
2454
|
-
[`b-data-grid--${se.SCROLL}`]: e.fitContent ||
|
|
2465
|
+
[`b-data-grid--${se.SCROLL}`]: e.fitContent || pe.value,
|
|
2455
2466
|
[`b-data-grid--${se.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
2456
|
-
[`b-data-grid--${se.OVERFLOW_SHADOW_LEFT}`]:
|
|
2457
|
-
[`b-data-grid--${se.OVERFLOW_SHADOW_RIGHT}`]:
|
|
2467
|
+
[`b-data-grid--${se.OVERFLOW_SHADOW_LEFT}`]: Se.value && !D.value,
|
|
2468
|
+
[`b-data-grid--${se.OVERFLOW_SHADOW_RIGHT}`]: Pe.value,
|
|
2458
2469
|
[`b-data-grid--${se.NO_SPACING_TOP}`]: e.noSpacingTop
|
|
2459
|
-
})),
|
|
2470
|
+
})), $t = L(() => ({
|
|
2460
2471
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
2461
|
-
})),
|
|
2462
|
-
"b-data-grid__filters--sticky": !!e.stickyFilters ||
|
|
2463
|
-
})),
|
|
2464
|
-
var
|
|
2472
|
+
})), Ut = L(() => me.value.findIndex((T) => T.columnSet.length)), kt = L(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && D.value === 1) || Se.value), Gt = L(() => ({
|
|
2473
|
+
"b-data-grid__filters--sticky": !!e.stickyFilters || v
|
|
2474
|
+
})), Wt = L(() => {
|
|
2475
|
+
var T, U, J, ee, ve, ue;
|
|
2465
2476
|
return {
|
|
2466
|
-
"b-data-grid__pagination--padding-left-unset": ((J = (
|
|
2477
|
+
"b-data-grid__pagination--padding-left-unset": ((J = (U = (T = e.columns) == null ? void 0 : T[0]) == null ? void 0 : U.padding) == null ? void 0 : J.left) === !1,
|
|
2467
2478
|
"b-data-grid__pagination--padding-right-unset": ((ue = (ve = (ee = e.columns) == null ? void 0 : ee[e.columns.length - 1]) == null ? void 0 : ve.padding) == null ? void 0 : ue.right) === !1,
|
|
2468
|
-
"b-data-grid__pagination--sticky": !!e.stickyPagination ||
|
|
2479
|
+
"b-data-grid__pagination--sticky": !!e.stickyPagination || v
|
|
2469
2480
|
};
|
|
2470
|
-
}),
|
|
2471
|
-
const
|
|
2472
|
-
|
|
2473
|
-
|
|
2481
|
+
}), Ht = (T) => {
|
|
2482
|
+
const U = T;
|
|
2483
|
+
T !== null && (U != null && U.columnHeaderRefs) && Object.entries(U == null ? void 0 : U.columnHeaderRefs).forEach(([J, ee]) => {
|
|
2484
|
+
_.value[J] = ee;
|
|
2474
2485
|
});
|
|
2475
|
-
},
|
|
2476
|
-
const J =
|
|
2477
|
-
|
|
2486
|
+
}, Vt = (T, U) => {
|
|
2487
|
+
const J = T;
|
|
2488
|
+
T !== null && (J != null && J.gridcellRefs) && Object.entries(J == null ? void 0 : J.gridcellRefs).map(([ee, ve]) => {
|
|
2478
2489
|
var ue;
|
|
2479
|
-
((ue =
|
|
2490
|
+
((ue = f.value) == null ? void 0 : ue[ee]) === void 0 && (f.value = { ...f.value, [ee]: [] }), f.value[ee][U] = ve;
|
|
2480
2491
|
});
|
|
2481
|
-
},
|
|
2482
|
-
e.allowRowClicks && W(
|
|
2483
|
-
},
|
|
2484
|
-
|
|
2485
|
-
},
|
|
2486
|
-
label: o != null && o.header ?
|
|
2492
|
+
}, Zt = (T, U) => {
|
|
2493
|
+
e.allowRowClicks && W(A.ROW_CLICK, T, U);
|
|
2494
|
+
}, jt = (T) => {
|
|
2495
|
+
B.value = T;
|
|
2496
|
+
}, qt = L(() => !!e.selectableAcrossPages && !!e.pagination), Yt = L(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), Xt = gn({
|
|
2497
|
+
label: o != null && o.header ? _n(o)("header") : null,
|
|
2487
2498
|
defaultFallback: "data grid"
|
|
2488
|
-
}),
|
|
2489
|
-
var
|
|
2490
|
-
return ((
|
|
2491
|
-
}),
|
|
2492
|
-
W(
|
|
2493
|
-
},
|
|
2494
|
-
W(
|
|
2499
|
+
}), $e = L(() => {
|
|
2500
|
+
var T;
|
|
2501
|
+
return ((T = Me.value) == null ? void 0 : T.length) ?? 0;
|
|
2502
|
+
}), Jt = L(() => e.bulkActions && $e.value > 0), Kt = (T) => W(A.COLUMN_RESIZE, T), Qt = (T) => {
|
|
2503
|
+
W(A.UPDATE_SORT_BY, T), W(A.SORT, T);
|
|
2504
|
+
}, en = (T, U) => {
|
|
2505
|
+
W(A.NAVIGATE, T), W(A.UPDATE_PAGINATION, {
|
|
2495
2506
|
...e.pagination,
|
|
2496
|
-
size:
|
|
2497
|
-
page:
|
|
2507
|
+
size: U,
|
|
2508
|
+
page: T
|
|
2498
2509
|
});
|
|
2499
|
-
},
|
|
2500
|
-
W(
|
|
2501
|
-
},
|
|
2502
|
-
W(
|
|
2503
|
-
},
|
|
2504
|
-
W(
|
|
2505
|
-
},
|
|
2506
|
-
|
|
2510
|
+
}, tn = (T) => {
|
|
2511
|
+
W(A.ITEMS_PAGE, T);
|
|
2512
|
+
}, nn = () => {
|
|
2513
|
+
W(A.FILTER_SEARCH_CLEAR);
|
|
2514
|
+
}, sn = (T) => {
|
|
2515
|
+
W(A.UPDATE_FILTER_SEARCH_TERM, T), W(A.FILTER_SEARCH_INPUT, T);
|
|
2516
|
+
}, Ue = L(() => u.value.some((T) => T.mandatory));
|
|
2517
|
+
Ue.value || at(
|
|
2507
2518
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
2508
2519
|
);
|
|
2509
|
-
const
|
|
2510
|
-
return
|
|
2520
|
+
const ke = Ee(Cn, () => null);
|
|
2521
|
+
return ke(e.tabTitle), ot(_t, we(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: ze }), { __sfc: !0, props: e, slots: o, hasSlot: a, body: i, columnsRef: C, columnHeaderRefs: _, gridcellRefs: f, filtersRef: m, filterBarRef: c, verticalScrollPositionRef: E, virtualHorizontalScrollbarRef: l, allowColumnDragAndDrop: d, columns: u, columnPanel: h, data: p, lazyLoadType: O, loading: R, hasNestedContent: F, hasNestedRows: z, selectable: S, selection: w, selectableAcrossPages: N, stickyPagination: x, outline: $, pagination: g, hoveredRowIndex: B, t: I, frozenColumnsLength: D, registerDatagridInDataGridTemplate: G, isDataGridTemplate: v, stickyTabs: y, tabsRef: P, computedColumnsTabIndex: X, columnDefs: r, onColumnWidthOverride: M, gridColumnWidthStyle: Z, isMeasuringColumnWidths: oe, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: le, localColumnsState: de, totalWidthOfAllColumns: fe, definedEmitsFunction: n, emit: W, stickyFiltersHeight: re, computedStickyFiltersTopPosition: ge, columnHeadersHeight: ce, computedColumnHeadersTopPosition: _e, sortedColumns: xe, columnSets: me, isOnlyOneVisibleColumn: Ct, onConfigSettingsUpdate: ht, onConfigSettingsColumnsUpdate: mt, onConfigSettingsColumnUpdate: pt, hoveredOverColumn: St, hoveredOverColumnState: Lt, draggingColumns: wt, draggingEventsForColumns: Et, draggingEventsForRowCell: Rt, onMoveColumnByOffset: yt, onAllRowSelect: bt, onRowSelect: Ot, onNestedRowSelect: At, selectedItems: Me, allItemsSelectedState: Tt, navigationInput: Nt, isLazyLoad: pe, isInfiniteScroll: It, verticalScrollPosition: Be, emitLazyLoadEvent: Dt, updateScrollPosition: Ft, updateScrollPositionOnFrozenColumnsNavigation: xt, syncVirtualScrollerWithBody: Mt, hasLeftOverflow: Se, hasRightOverflow: Pe, horizontalScrollbarConditionalClasses: Bt, onEmptyStateClearResetButtonClick: ze, limitedEmptyStateProps: Pt, conditionalGridClasses: zt, conditionalGridBodyClasses: $t, computedColumnPanelAlignment: Ut, showFrozenColumnsSeparator: kt, conditionalFilterClasses: Gt, conditionalPaginationClasses: Wt, registerColumnHeaderRefs: Ht, registerRowCellRefs: Vt, onRowClick: Zt, onCellHover: jt, selectableAcrossPagesComputed: qt, ariaGridRole: Yt, ariaGridHeaderText: Xt, itemsSelectedCounter: $e, showActionBar: Jt, onColumnResized: Kt, onSort: Qt, onPaginationNavigate: en, onItemsPerPageChange: tn, onSearchTermCleared: nn, onSearchTermInput: sn, hasMandatoryColumn: Ue, setTitle: ke, BentoActionBar: un, BentoPagination: fn, BentoLoadingIndicator: Ne, BentoTypography: he, BentoDataGridConfigSettings: to, DataGridColumns: zs, DataGridLazyLoad: io, DataGridRow: vt, BentoDatagridEvent: A, BentoFilterBar: Le, BentoEmptyState: vn };
|
|
2511
2522
|
}
|
|
2512
2523
|
});
|
|
2513
|
-
var
|
|
2524
|
+
var Vo = function() {
|
|
2514
2525
|
var o;
|
|
2515
2526
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2516
|
-
return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "filter-values": t.filterValues, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (
|
|
2517
|
-
return [
|
|
2518
|
-
e.hoveredOverColumn =
|
|
2519
|
-
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(
|
|
2527
|
+
return n("div", { staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": e.ariaGridHeaderText, role: e.ariaGridRole } }, [t.filters ? n("div", { ref: "filtersRef", staticClass: "b-data-grid__filters", class: e.conditionalFilterClasses, style: { top: e.computedStickyFiltersTopPosition } }, [t.filters ? n(e.BentoFilterBar, { ref: "filterBarRef", attrs: { config: t.filters, "filter-values": t.filterValues, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (a) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, a), "update:filter-values": (a) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, a) } }) : t._e()], 1) : t._e(), t.$slots.header ? n("div", { staticClass: "b-data-grid__header" }, [t._t("header")], 2) : t._e(), n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [e.columnPanel ? n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { columns: e.localColumnsState, condensed: t.condensed }, on: { "config-settings": e.onConfigSettingsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } }) : t._e(), n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup", tabindex: e.computedColumnsTabIndex }, on: { scroll: e.updateScrollPosition } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridColumnWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: a, id: i, isFrozenColumns: C }, _) {
|
|
2528
|
+
return [a != null && a.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${i}`, ref: (f) => e.registerColumnHeaderRefs(f), refInFor: !0, attrs: { columns: a, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": C, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "truncate-column-headers": t.truncateColumnHeaders }, on: { "column-hover": function(f) {
|
|
2529
|
+
e.hoveredOverColumn = f;
|
|
2530
|
+
}, "column-move": e.onMoveColumnByOffset, "column-update": e.onConfigSettingsColumnUpdate, "column-resize": e.onColumnResized, "column-resizing": e.onColumnWidthOverride, "select-all-rows": e.onAllRowSelect, "select-all-across-pages": function(f) {
|
|
2520
2531
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
2521
|
-
}, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2522
|
-
return { key:
|
|
2523
|
-
return [t._t(
|
|
2532
|
+
}, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(f, m) {
|
|
2533
|
+
return { key: m, fn: function(c) {
|
|
2534
|
+
return [t._t(m, null, null, c)];
|
|
2524
2535
|
} };
|
|
2525
2536
|
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
2526
|
-
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(
|
|
2527
|
-
var
|
|
2528
|
-
return n(e.DataGridRow, { key:
|
|
2529
|
-
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED,
|
|
2530
|
-
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2531
|
-
return { key:
|
|
2532
|
-
return [t._t(
|
|
2537
|
+
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body", tabindex: e.loading ? "0" : "-1", "aria-busy": e.loading, "aria-live": "polite" }, on: { scroll: e.updateScrollPosition } }, [e.loading && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__loading" }, [n(e.BentoLoadingIndicator, { staticClass: "b-data-grid__loading-indicator", attrs: { large: "" } }), n(e.BentoTypography, { attrs: { el: "span", variant: "caption" } }, [t._v(t._s(e.t("gettingYourData")))])], 1) : ((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? n("div", { staticClass: "b-data-grid__empty-state" }, [n(e.BentoEmptyState, t._b({}, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1) : n("div", { staticClass: "b-data-grid__rows", attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, t._l(e.data, function(a, i) {
|
|
2538
|
+
var C, _;
|
|
2539
|
+
return n(e.DataGridRow, { key: i, ref: (f) => e.registerRowCellRefs(f, i), refInFor: !0, style: e.gridColumnWidthStyle, attrs: { "allow-row-clicks": t.allowRowClicks, "column-sets": e.columnSets, condensed: t.condensed, "dragging-columns": e.draggingColumns, "dragging-events-for-row-cell": e.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-nested-content": e.hasNestedContent, "has-nested-rows": e.hasNestedRows, "has-left-overflow": e.hasLeftOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-last-child": i + 1 === ((C = e.data) == null ? void 0 : C.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-data": a, "row-index": i, "row-set-size": (_ = e.data) == null ? void 0 : _.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "nested-content-toggled": function(f) {
|
|
2540
|
+
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, f);
|
|
2541
|
+
}, "row-click": e.onRowClick, "on-frozen-columns-key-press": e.updateScrollPositionOnFrozenColumnsNavigation, "select-row": e.onRowSelect, "select-nested-row": e.onNestedRowSelect }, scopedSlots: t._u([t._l(e.slots, function(f, m) {
|
|
2542
|
+
return { key: m, fn: function(c) {
|
|
2543
|
+
return [t._t(m, null, null, c)];
|
|
2533
2544
|
} };
|
|
2534
2545
|
})], null, !0) });
|
|
2535
|
-
}), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", class: e.horizontalScrollbarConditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(
|
|
2546
|
+
}), 1)]), e.isLazyLoad ? n(e.DataGridLazyLoad, { attrs: { loading: e.loading, "is-infinite-scroll": e.isInfiniteScroll }, on: { "update:show-more": e.emitLazyLoadEvent } }) : t._e(), t.stickyHorizontalScrollbar ? n("div", { ref: "virtualHorizontalScrollbarRef", staticClass: "b-data-grid__horizontal-scrollbar", class: e.horizontalScrollbarConditionalClasses, attrs: { "aria-hidden": "true", "data-testid": "sticky-horizontal-scrollbar" }, on: { scroll: e.syncVirtualScrollerWithBody } }, [n("div", { style: { width: `${e.totalWidthOfAllColumns}px`, height: "15px" } })]) : t._e(), e.pagination && !e.isLazyLoad ? n("div", { staticClass: "b-data-grid__pagination", class: e.conditionalPaginationClasses, attrs: { "data-testid": "pagination-container" } }, [n(e.BentoPagination, t._b({ attrs: { "aria-label": `${e.ariaGridHeaderText} navigation` }, on: { navigate: e.onPaginationNavigate, "items-page": e.onItemsPerPageChange } }, "bento-pagination", e.pagination, !1), [e.hasSlot("pagination-slot") ? t._t("pagination-slot") : t._e()], 2)], 1) : t._e(), t.$slots.footer ? n("div", { staticClass: "b-data-grid__footer" }, [t._t("footer")], 2) : t._e(), e.showActionBar ? n(e.BentoActionBar, { attrs: { actions: t.bulkActions, "item-counter": e.itemsSelectedCounter, "extra-bottom-spacing": e.stickyPagination }, on: { close: function(a) {
|
|
2536
2547
|
return e.onAllRowSelect(!1);
|
|
2537
2548
|
} } }) : t._e()], 1);
|
|
2538
|
-
},
|
|
2539
|
-
Wo,
|
|
2549
|
+
}, Zo = [], jo = /* @__PURE__ */ V(
|
|
2540
2550
|
Ho,
|
|
2541
2551
|
Vo,
|
|
2552
|
+
Zo,
|
|
2542
2553
|
!1,
|
|
2543
2554
|
null,
|
|
2544
|
-
"
|
|
2555
|
+
"1a51db9c"
|
|
2545
2556
|
);
|
|
2546
|
-
const Pl =
|
|
2557
|
+
const Pl = jo.exports;
|
|
2547
2558
|
export {
|
|
2548
|
-
|
|
2549
|
-
|
|
2559
|
+
ye as B,
|
|
2560
|
+
Bl as a,
|
|
2550
2561
|
se as b,
|
|
2551
2562
|
ae as c,
|
|
2552
2563
|
Pl as d,
|
|
2553
|
-
|
|
2554
|
-
|
|
2564
|
+
A as e,
|
|
2565
|
+
Ce as f
|
|
2555
2566
|
};
|
|
2556
|
-
//# sourceMappingURL=data-grid.
|
|
2567
|
+
//# sourceMappingURL=data-grid.iqFUbiZy.js.map
|