@adyen/bento-vue2 1.72.0 → 1.74.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 +2 -10
- package/dist/@types/index.d.ts +1538 -1703
- package/dist/@types/use-form-v4.d.ts +1 -1
- package/dist/accordion.js +1 -1
- 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/avatar.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/button.css +1 -1
- package/dist/assets/calendar.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/country.css +1 -1
- package/dist/assets/currency.css +1 -1
- package/dist/assets/data-grid-template.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown-tag.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/header-meta.css +1 -1
- package/dist/assets/header-with-views.css +1 -1
- package/dist/assets/input-field-password.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/listbox-option-tag.css +1 -1
- package/dist/assets/loading-indicator.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/popper-container.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/radio-input.css +1 -1
- package/dist/assets/secondary-nav.css +1 -1
- package/dist/assets/segmented-control.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/step.css +1 -1
- package/dist/assets/tab.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/assets/timeline-item.css +1 -1
- package/dist/assets/toggle.css +1 -1
- package/dist/assets/tooltip.css +1 -1
- package/dist/assets/tutorial.css +1 -1
- package/dist/assets/use-cached-selected-values.css +1 -1
- package/dist/avatar.js +1 -1
- package/dist/button.js +3 -3
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chip.js +1 -1
- package/dist/chunks/{accordion-item.CoqaoVnC.js → accordion-item.nQhXD2tV.js} +2 -2
- package/dist/chunks/{accordion-item.CoqaoVnC.js.map → accordion-item.nQhXD2tV.js.map} +1 -1
- package/dist/chunks/{action-bar.Bxrtx1Vj.js → action-bar.MXZTIUNk.js} +5 -5
- package/dist/chunks/{action-bar.Bxrtx1Vj.js.map → action-bar.MXZTIUNk.js.map} +1 -1
- package/dist/chunks/{ai-button.FRPkTHz6.js → ai-button.DBwtNkyS.js} +2 -2
- package/dist/chunks/{ai-button.FRPkTHz6.js.map → ai-button.DBwtNkyS.js.map} +1 -1
- package/dist/chunks/{alert.CMyL-zWT.js → alert.SZPP58tl.js} +3 -3
- package/dist/chunks/{alert.CMyL-zWT.js.map → alert.SZPP58tl.js.map} +1 -1
- package/dist/chunks/{avatar.KdcsNOsm.js → avatar.CeDqq2Z-.js} +3 -3
- package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
- package/dist/chunks/{base-modal.DInbAZlp.js → base-modal.BMdlCSd0.js} +7 -7
- package/dist/chunks/base-modal.BMdlCSd0.js.map +1 -0
- package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js → button-actions-with-menu.BFRkPi6g.js} +2 -2
- package/dist/chunks/{button-actions-with-menu.BtWUxmSL.js.map → button-actions-with-menu.BFRkPi6g.js.map} +1 -1
- package/dist/chunks/{button-actions.55vIvDsX.js → button-actions.B81vY51z.js} +11 -14
- package/dist/chunks/button-actions.B81vY51z.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
- package/dist/chunks/{button.CilT7NmM.js → button.CS_kdxYh.js} +3 -3
- package/dist/chunks/button.CS_kdxYh.js.map +1 -0
- package/dist/chunks/{calendar.M69sfyB9.js → calendar.EfqJlztU.js} +191 -187
- package/dist/chunks/calendar.EfqJlztU.js.map +1 -0
- package/dist/chunks/{card.C11dmth8.js → card.VOCKI7Ad.js} +8 -8
- package/dist/chunks/card.VOCKI7Ad.js.map +1 -0
- package/dist/chunks/{checkbox-group.Cr3WdkDM.js → checkbox-group.DETXTJqI.js} +4 -4
- package/dist/chunks/{checkbox-group.Cr3WdkDM.js.map → checkbox-group.DETXTJqI.js.map} +1 -1
- package/dist/chunks/{checkbox.D7-f9Y6w.js → checkbox.BPtHAAEa.js} +4 -4
- package/dist/chunks/{checkbox.D7-f9Y6w.js.map → checkbox.BPtHAAEa.js.map} +1 -1
- package/dist/chunks/{chip.omQX_Ziq.js → chip.fqEIkR-s.js} +2 -2
- package/dist/chunks/{chip.omQX_Ziq.js.map → chip.fqEIkR-s.js.map} +1 -1
- package/dist/chunks/{code-snippet.BGrwAxWy.js → code-snippet.VtrsOTEC.js} +7 -7
- package/dist/chunks/{code-snippet.BGrwAxWy.js.map → code-snippet.VtrsOTEC.js.map} +1 -1
- package/dist/chunks/{controls-group.CWeUgE2P.js → controls-group.82mB_GDw.js} +2 -2
- package/dist/chunks/{controls-group.CWeUgE2P.js.map → controls-group.82mB_GDw.js.map} +1 -1
- package/dist/chunks/{copy._BdbMnHK.js → copy.WQDLcs_T.js} +5 -5
- package/dist/chunks/{copy._BdbMnHK.js.map → copy.WQDLcs_T.js.map} +1 -1
- package/dist/chunks/country.CGn5WjFx.js +69 -0
- package/dist/chunks/country.CGn5WjFx.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
- package/dist/chunks/{currency.MT3baDtO.js → currency.DDB4G_A8.js} +52 -35
- package/dist/chunks/currency.DDB4G_A8.js.map +1 -0
- package/dist/chunks/{dashboard-section.e7ozaS9M.js → dashboard-section.jIpBvP6X.js} +3 -3
- package/dist/chunks/{dashboard-section.e7ozaS9M.js.map → dashboard-section.jIpBvP6X.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CGU6o7ni.js → dashed-underline.K-l-7bDq.js} +3 -3
- package/dist/chunks/{dashed-underline.CGU6o7ni.js.map → dashed-underline.K-l-7bDq.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BaPjUlZ2.js → data-grid-template.CozTcWQ0.js} +4 -4
- package/dist/chunks/{data-grid-template.BaPjUlZ2.js.map → data-grid-template.CozTcWQ0.js.map} +1 -1
- package/dist/chunks/{data-grid.B_Ha2vma.js → data-grid.DN9xml8y.js} +1275 -1214
- package/dist/chunks/data-grid.DN9xml8y.js.map +1 -0
- package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.DoYYzWcA.js +158 -0
- package/dist/chunks/date-picker.DoYYzWcA.js.map +1 -0
- package/dist/chunks/date-range-picker.C_pJ8yH5.js +917 -0
- package/dist/chunks/date-range-picker.C_pJ8yH5.js.map +1 -0
- package/dist/chunks/{date.BTdCYdkj.js → date.C1z2TXzM.js} +2 -2
- package/dist/chunks/{date.BTdCYdkj.js.map → date.C1z2TXzM.js.map} +1 -1
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
- package/dist/chunks/{dialog-page.LA_ZhbYa.js → dialog-page.D23qNwKW.js} +3 -3
- package/dist/chunks/dialog-page.D23qNwKW.js.map +1 -0
- package/dist/chunks/{dropdown-default-textbox.CDm-PQfc.js → dropdown-default-textbox.yLeN0E2z.js} +6 -6
- package/dist/chunks/dropdown-default-textbox.yLeN0E2z.js.map +1 -0
- package/dist/chunks/dropdown-tag.DBnurtCQ.js +245 -0
- package/dist/chunks/dropdown-tag.DBnurtCQ.js.map +1 -0
- package/dist/chunks/{dropdown.DQbTuKc5.js → dropdown.BOvtYKXS.js} +202 -193
- package/dist/chunks/dropdown.BOvtYKXS.js.map +1 -0
- package/dist/chunks/{empty-state.DNTrhYUm.js → empty-state.BsdRxzS2.js} +2 -2
- package/dist/chunks/{empty-state.DNTrhYUm.js.map → empty-state.BsdRxzS2.js.map} +1 -1
- package/dist/chunks/es6.MoTTyETW.js.map +1 -1
- package/dist/chunks/{field-label.BKzuCnXr.js → field-label.Auq-Pzho.js} +3 -3
- package/dist/chunks/{field-label.BKzuCnXr.js.map → field-label.Auq-Pzho.js.map} +1 -1
- package/dist/chunks/{file-uploader.BEClGxsF.js → file-uploader.BGoCYrnw.js} +27 -28
- package/dist/chunks/file-uploader.BGoCYrnw.js.map +1 -0
- package/dist/chunks/{filter-bar.Dnnv0rpV.js → filter-bar.DzHJi42d.js} +680 -746
- package/dist/chunks/filter-bar.DzHJi42d.js.map +1 -0
- package/dist/chunks/{fixed-scroller.QCXpkadN.js → fixed-scroller.CgVOf5VE.js} +3 -3
- package/dist/chunks/{fixed-scroller.QCXpkadN.js.map → fixed-scroller.CgVOf5VE.js.map} +1 -1
- package/dist/chunks/focus-trap.BJfpIboH.js.map +1 -1
- package/dist/chunks/{footer-actions.BTELM6rh.js → footer-actions.CLq_kBwY.js} +3 -3
- package/dist/chunks/{footer-actions.BTELM6rh.js.map → footer-actions.CLq_kBwY.js.map} +1 -1
- package/dist/chunks/{form-layout-title.aXVuAWiG.js → form-layout-title.DoF6ovPB.js} +23 -16
- package/dist/chunks/form-layout-title.DoF6ovPB.js.map +1 -0
- package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -1
- package/dist/chunks/{header-meta.DZYH-qg-.js → header-meta.uiIO1wHP.js} +30 -27
- package/dist/chunks/{header-meta.DZYH-qg-.js.map → header-meta.uiIO1wHP.js.map} +1 -1
- package/dist/chunks/{header-with-views.DjZa4Wob.js → header-with-views.t5Fr63SD.js} +87 -87
- package/dist/chunks/header-with-views.t5Fr63SD.js.map +1 -0
- package/dist/chunks/{header.CQMiTG7f.js → header.DwSyDQ68.js} +3 -3
- package/dist/chunks/{header.CQMiTG7f.js.map → header.DwSyDQ68.js.map} +1 -1
- package/dist/chunks/index.B6WW_F-J.js +31 -0
- package/dist/chunks/index.B6WW_F-J.js.map +1 -0
- package/dist/chunks/{info-icon.fB7jf3NJ.js → info-icon.Bhka3oGh.js} +3 -3
- package/dist/chunks/{info-icon.fB7jf3NJ.js.map → info-icon.Bhka3oGh.js.map} +1 -1
- package/dist/chunks/{input-field-password.BPujvbx8.js → input-field-password.Dm3HYonF.js} +24 -24
- package/dist/chunks/input-field-password.Dm3HYonF.js.map +1 -0
- package/dist/chunks/{input-field-phone-number.bqUe_CVf.js → input-field-phone-number.bZauIuHJ.js} +1149 -1149
- package/dist/chunks/{input-field-phone-number.bqUe_CVf.js.map → input-field-phone-number.bZauIuHJ.js.map} +1 -1
- package/dist/chunks/{input-field.CwF6ldRY.js → input-field.D52XYEzU.js} +5 -5
- package/dist/chunks/input-field.D52XYEzU.js.map +1 -0
- package/dist/chunks/{inspector.g3OErNAU.js → inspector.pmpheRch.js} +4 -4
- package/dist/chunks/inspector.pmpheRch.js.map +1 -0
- package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
- package/dist/chunks/{link.C4htMrDV.js → link.D8qpqg3W.js} +2 -2
- package/dist/chunks/{link.C4htMrDV.js.map → link.D8qpqg3W.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.UaD4kmXc.js → listbox-option-tag.Dl8GwHLT.js} +3 -3
- package/dist/chunks/listbox-option-tag.Dl8GwHLT.js.map +1 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js +42 -0
- package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -0
- package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js → modal-fullscreen.BSKm6yn_.js} +6 -6
- package/dist/chunks/{modal-fullscreen.B-9Ke6Ya.js.map → modal-fullscreen.BSKm6yn_.js.map} +1 -1
- package/dist/chunks/{modal.qybFapnI.js → modal.Bp5twyjz.js} +6 -6
- package/dist/chunks/{modal.qybFapnI.js.map → modal.Bp5twyjz.js.map} +1 -1
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
- package/dist/chunks/{pagination.BWTyXMRW.js → pagination.CKD9FDrA.js} +5 -5
- package/dist/chunks/pagination.CKD9FDrA.js.map +1 -0
- package/dist/chunks/popover.types.DK6opPkz.js +6 -0
- package/dist/chunks/{popover.types.iyDoIAOE.js.map → popover.types.DK6opPkz.js.map} +1 -1
- package/dist/chunks/{popper-container.C9KCAJxI.js → popper-container.agLYtGwv.js} +2 -2
- package/dist/chunks/{popper-container.C9KCAJxI.js.map → popper-container.agLYtGwv.js.map} +1 -1
- package/dist/chunks/{promo-banner.MI5NC2UT.js → promo-banner.DikQcQU2.js} +3 -3
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
- package/dist/chunks/radio-group.AcYMFudv.js +177 -0
- package/dist/chunks/radio-group.AcYMFudv.js.map +1 -0
- package/dist/chunks/{radio-input.D8mv2EYC.js → radio-input.kzb4gxLW.js} +17 -17
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
- package/dist/chunks/{rich-text-editor.C905JEDW.js → rich-text-editor.BZgQ578S.js} +7 -7
- package/dist/chunks/{rich-text-editor.C905JEDW.js.map → rich-text-editor.BZgQ578S.js.map} +1 -1
- package/dist/chunks/{search-bar.CKt_-tZH.js → search-bar.c-w7Uky2.js} +4 -4
- package/dist/chunks/{search-bar.CKt_-tZH.js.map → search-bar.c-w7Uky2.js.map} +1 -1
- package/dist/chunks/{secondary-nav.B5L2bLmm.js → secondary-nav.D69COlqF.js} +9 -9
- package/dist/chunks/secondary-nav.D69COlqF.js.map +1 -0
- package/dist/chunks/{segmented-control.Dc34mUMM.js → segmented-control.Cma_nu0G.js} +17 -16
- package/dist/chunks/segmented-control.Cma_nu0G.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
- package/dist/chunks/{selection-card-group.CBVKMu6b.js → selection-card-group.8UIir78G.js} +5 -5
- package/dist/chunks/selection-card-group.8UIir78G.js.map +1 -0
- package/dist/chunks/{sidepanel.uWNc58r7.js → sidepanel.A9yG4FP_.js} +12 -12
- package/dist/chunks/{sidepanel.uWNc58r7.js.map → sidepanel.A9yG4FP_.js.map} +1 -1
- package/dist/chunks/{step.D8blWwfR.js → step.TzzZSA9f.js} +4 -4
- package/dist/chunks/step.TzzZSA9f.js.map +1 -0
- package/dist/chunks/{structured-list-item.BLalgOps.js → structured-list-item.CMsVwwA6.js} +6 -6
- package/dist/chunks/{structured-list-item.BLalgOps.js.map → structured-list-item.CMsVwwA6.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.DqzYJ9_N.js → summary-grid.types.B80533d1.js} +6 -6
- package/dist/chunks/{summary-grid.types.DqzYJ9_N.js.map → summary-grid.types.B80533d1.js.map} +1 -1
- package/dist/chunks/{tab.D8YyoNFV.js → tab.CTui3j3e.js} +3 -3
- package/dist/chunks/tab.CTui3j3e.js.map +1 -0
- package/dist/chunks/{tag.Tjg4linG.js → tag.BwKc2d2E.js} +2 -2
- package/dist/chunks/{tag.Tjg4linG.js.map → tag.BwKc2d2E.js.map} +1 -1
- package/dist/chunks/textarea.CIQuLWQ8.js +165 -0
- package/dist/chunks/textarea.CIQuLWQ8.js.map +1 -0
- package/dist/chunks/{timeline-item.DaRKHndA.js → timeline-item.VSw9vKdO.js} +10 -10
- package/dist/chunks/timeline-item.VSw9vKdO.js.map +1 -0
- package/dist/chunks/{toast.gMDjItrP.js → toast.B4J4V6n-.js} +3 -3
- package/dist/chunks/{toast.gMDjItrP.js.map → toast.B4J4V6n-.js.map} +1 -1
- package/dist/chunks/toggle.BJMXpHRu.js +108 -0
- package/dist/chunks/toggle.BJMXpHRu.js.map +1 -0
- package/dist/chunks/{tooltip.DOD_4rkI.js → tooltip.D3SDcRef.js} +64 -68
- package/dist/chunks/tooltip.D3SDcRef.js.map +1 -0
- package/dist/chunks/{tutorial.BwnRyUoh.js → tutorial.B32GMtIj.js} +6 -6
- package/dist/chunks/tutorial.B32GMtIj.js.map +1 -0
- package/dist/chunks/{use-cached-selected-values.C7j6YhuC.js → use-cached-selected-values.IsfhJHxQ.js} +19 -19
- package/dist/chunks/use-cached-selected-values.IsfhJHxQ.js.map +1 -0
- package/dist/chunks/{use-country-items.DFdM2Ank.js → use-country-items.B3Cd3Tdo.js} +2 -2
- package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/country.js +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 +5 -4
- package/dist/date-range-picker.js +5 -4
- package/dist/date.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/empty-state.js +1 -1
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +5 -4
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +405 -329
- 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 +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +12 -12
- package/dist/link.js +1 -1
- package/dist/loading-indicator.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/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +2 -2
- package/dist/rich-text-editor.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 +25 -15
- package/dist/styles/bento-light.css +9 -3
- package/dist/styles/bento.css +9 -3
- package/dist/styles/legacy.css +9 -3
- package/dist/styles/styleguide.css +9 -3
- 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/use-form-v4.js.map +1 -1
- package/dist/web-types.json +1297 -1026
- package/package.json +12 -12
- package/dist/chunks/avatar.KdcsNOsm.js.map +0 -1
- package/dist/chunks/base-modal.DInbAZlp.js.map +0 -1
- package/dist/chunks/button-actions.55vIvDsX.js.map +0 -1
- package/dist/chunks/button.CilT7NmM.js.map +0 -1
- package/dist/chunks/calendar.M69sfyB9.js.map +0 -1
- package/dist/chunks/card.C11dmth8.js.map +0 -1
- package/dist/chunks/country.1yIZNjdj.js +0 -94
- package/dist/chunks/country.1yIZNjdj.js.map +0 -1
- package/dist/chunks/currency.MT3baDtO.js.map +0 -1
- package/dist/chunks/data-grid.B_Ha2vma.js.map +0 -1
- package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
- package/dist/chunks/date-picker.CGTMHUNH.js +0 -240
- package/dist/chunks/date-picker.CGTMHUNH.js.map +0 -1
- package/dist/chunks/date-range-picker.ChGfJUPq.js +0 -971
- package/dist/chunks/date-range-picker.ChGfJUPq.js.map +0 -1
- package/dist/chunks/dialog-page.LA_ZhbYa.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.CDm-PQfc.js.map +0 -1
- package/dist/chunks/dropdown-tag.Bwl0fY7o.js +0 -306
- package/dist/chunks/dropdown-tag.Bwl0fY7o.js.map +0 -1
- package/dist/chunks/dropdown.DQbTuKc5.js.map +0 -1
- package/dist/chunks/file-uploader.BEClGxsF.js.map +0 -1
- package/dist/chunks/filter-bar.Dnnv0rpV.js.map +0 -1
- package/dist/chunks/form-layout-title.aXVuAWiG.js.map +0 -1
- package/dist/chunks/header-with-views.DjZa4Wob.js.map +0 -1
- package/dist/chunks/i18n.BQkEbtPM.js +0 -31
- package/dist/chunks/i18n.BQkEbtPM.js.map +0 -1
- package/dist/chunks/input-field-password.BPujvbx8.js.map +0 -1
- package/dist/chunks/input-field.CwF6ldRY.js.map +0 -1
- package/dist/chunks/inspector.g3OErNAU.js.map +0 -1
- package/dist/chunks/listbox-option-tag.UaD4kmXc.js.map +0 -1
- package/dist/chunks/loading-indicator.DXc7I1Lm.js +0 -48
- package/dist/chunks/loading-indicator.DXc7I1Lm.js.map +0 -1
- package/dist/chunks/pagination.BWTyXMRW.js.map +0 -1
- package/dist/chunks/popover.types.iyDoIAOE.js +0 -6
- package/dist/chunks/promo-banner.MI5NC2UT.js.map +0 -1
- package/dist/chunks/radio-group.DHUa6baR.js +0 -231
- package/dist/chunks/radio-group.DHUa6baR.js.map +0 -1
- package/dist/chunks/radio-input.D8mv2EYC.js.map +0 -1
- package/dist/chunks/secondary-nav.B5L2bLmm.js.map +0 -1
- package/dist/chunks/segmented-control.Dc34mUMM.js.map +0 -1
- package/dist/chunks/selection-card-group.CBVKMu6b.js.map +0 -1
- package/dist/chunks/step.D8blWwfR.js.map +0 -1
- package/dist/chunks/tab.D8YyoNFV.js.map +0 -1
- package/dist/chunks/textarea.DUPV-I-L.js +0 -214
- package/dist/chunks/textarea.DUPV-I-L.js.map +0 -1
- package/dist/chunks/timeline-item.DaRKHndA.js.map +0 -1
- package/dist/chunks/toggle.Ct-5NUGu.js +0 -121
- package/dist/chunks/toggle.Ct-5NUGu.js.map +0 -1
- package/dist/chunks/tooltip.DOD_4rkI.js.map +0 -1
- package/dist/chunks/tutorial.BwnRyUoh.js.map +0 -1
- package/dist/chunks/use-cached-selected-values.C7j6YhuC.js.map +0 -1
- package/dist/chunks/use-country-items.DFdM2Ank.js.map +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
1
|
+
import { ref as b, onMounted as Se, nextTick as le, watch as ae, onUnmounted as It, reactive as We, toRefs as Ge, computed as _, watchEffect as Pn, onBeforeUpdate as kn, defineComponent as ve, inject as _e, toRef as $e, useSlots as He, provide as Te } from "vue";
|
|
2
|
+
import { C as Wn } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
|
+
import { W as Gn } from "./warning-filled.CbJ1pcB2.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { n as
|
|
6
|
-
import { C as
|
|
7
|
-
import { N as
|
|
8
|
-
import { d as
|
|
9
|
-
import { E as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as Le, p as
|
|
12
|
-
import { u as
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
16
|
-
import { u as
|
|
17
|
-
import { u as
|
|
18
|
-
import { g as
|
|
19
|
-
import { B as
|
|
20
|
-
import { B as
|
|
21
|
-
import { E as
|
|
22
|
-
import { D as
|
|
23
|
-
import { b as
|
|
24
|
-
import { o as
|
|
5
|
+
import { n as j } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { C as Nt } from "./cross.CC_B-vG-.js";
|
|
7
|
+
import { N as dt } from "./minus-small.DJacLGTw.js";
|
|
8
|
+
import { d as Hn } from "./popper-container.agLYtGwv.js";
|
|
9
|
+
import { E as de, b as Vn, B as Zn, T as jn } from "./tooltip.D3SDcRef.js";
|
|
10
|
+
import { B as qn } from "./dashed-underline.K-l-7bDq.js";
|
|
11
|
+
import { B as Le, p as Dt } from "./typography.hlOAxsEn.js";
|
|
12
|
+
import { u as Ce } from "./index.B6WW_F-J.js";
|
|
13
|
+
import { B as Kn } from "./action-bar.MXZTIUNk.js";
|
|
14
|
+
import { B as Yn } from "./pagination.CKD9FDrA.js";
|
|
15
|
+
import { B as Ve } from "./loading-indicator.PxbRzshH.js";
|
|
16
|
+
import { u as Ze } from "./use-has-slot.C9lQZ6nz.js";
|
|
17
|
+
import { u as Jn } from "./aria-label.CaUURpnB.js";
|
|
18
|
+
import { g as Xn } from "./get-slot-text.BQS5Olxm.js";
|
|
19
|
+
import { B as ze } from "./filter-bar.DzHJi42d.js";
|
|
20
|
+
import { B as Qn } from "./empty-state.BsdRxzS2.js";
|
|
21
|
+
import { E as es } from "./tabs.keys.Cb4Vw5Jh.js";
|
|
22
|
+
import { D as ts } from "./data-grid-template.keys.2_AkxuNT.js";
|
|
23
|
+
import { b as ns } from "./index.BDK4hwK_.js";
|
|
24
|
+
import { o as je } from "./resize.Bqks3WUm.js";
|
|
25
25
|
import "./index.Cl4_42j5.js";
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { C as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import { B as
|
|
37
|
-
import { B as
|
|
38
|
-
import { A as
|
|
39
|
-
import { H as
|
|
40
|
-
import { l as
|
|
41
|
-
import { B as
|
|
42
|
-
import { B as
|
|
43
|
-
import { u as
|
|
44
|
-
import { S as
|
|
45
|
-
import { B as
|
|
26
|
+
import { B as xt } from "./checkbox.BPtHAAEa.js";
|
|
27
|
+
import { B as Bt } from "./button.CS_kdxYh.js";
|
|
28
|
+
import { c as qe, f as Ft, h as ss, b as os, a as ls, O as ct, D as as } from "./button-actions.B81vY51z.js";
|
|
29
|
+
import { E as ut } from "./link.D8qpqg3W.js";
|
|
30
|
+
import { C as ft } from "./copy.WQDLcs_T.js";
|
|
31
|
+
import { C as is } from "./chevron-down.eYtgv5ly.js";
|
|
32
|
+
import { C as rs } from "./chevron-up.d8cwIlA_.js";
|
|
33
|
+
import { b as Mt } from "./focus-trap.BJfpIboH.js";
|
|
34
|
+
import { u as ds } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
35
|
+
import { g as Pe } from "./generate-uid.NJ8tVoha.js";
|
|
36
|
+
import { B as cs } from "./info-icon.Bhka3oGh.js";
|
|
37
|
+
import { B as gt } from "./popover.types.DK6opPkz.js";
|
|
38
|
+
import { A as us } from "./dialog-page.D23qNwKW.js";
|
|
39
|
+
import { H as fs, S as gs } from "./show.B_mKPF6I.js";
|
|
40
|
+
import { l as _t } from "./events.CMzGybJJ.js";
|
|
41
|
+
import { B as Ut } from "./toggle.BJMXpHRu.js";
|
|
42
|
+
import { B as _s } from "./search-bar.c-w7Uky2.js";
|
|
43
|
+
import { u as vs } from "./dropdown.BOvtYKXS.js";
|
|
44
|
+
import { S as ms } from "./search.D53Ia3rC.js";
|
|
45
|
+
import { B as Cs } from "./directive.Cbdox5VL.js";
|
|
46
46
|
import "../assets/data-grid.css";
|
|
47
|
-
const
|
|
47
|
+
const vt = (s) => {
|
|
48
48
|
if (!s)
|
|
49
49
|
return 0;
|
|
50
50
|
const t = window.getComputedStyle(s);
|
|
@@ -56,610 +56,611 @@ const ct = (s) => {
|
|
|
56
56
|
}
|
|
57
57
|
const o = parseFloat(t.top);
|
|
58
58
|
return !isNaN(o) && o < 0 && (n += o), n;
|
|
59
|
-
},
|
|
60
|
-
const o =
|
|
59
|
+
}, mt = (s, t, n = b(!1), e = null) => {
|
|
60
|
+
const o = b(0);
|
|
61
61
|
let l = null, a = null;
|
|
62
|
-
const
|
|
63
|
-
const f = t.value ?
|
|
64
|
-
o.value = f +
|
|
62
|
+
const r = () => {
|
|
63
|
+
const f = t.value ? vt(s.value) : 0, c = n.value && e ? vt(e.value) : 0;
|
|
64
|
+
o.value = f + c;
|
|
65
65
|
};
|
|
66
|
-
return
|
|
67
|
-
|
|
68
|
-
const f =
|
|
66
|
+
return Se(() => {
|
|
67
|
+
le(() => {
|
|
68
|
+
const f = ae(
|
|
69
69
|
s,
|
|
70
70
|
() => {
|
|
71
|
-
s != null && s.value && (
|
|
71
|
+
s != null && s.value && (le(() => f()), l = je(s.value, r), a = new MutationObserver(r), a.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
72
72
|
},
|
|
73
73
|
{ immediate: !0 }
|
|
74
74
|
);
|
|
75
|
-
|
|
75
|
+
ae(
|
|
76
76
|
[t, n],
|
|
77
77
|
() => {
|
|
78
|
-
|
|
78
|
+
r();
|
|
79
79
|
},
|
|
80
80
|
{ immediate: !0 }
|
|
81
81
|
);
|
|
82
82
|
});
|
|
83
|
-
}),
|
|
83
|
+
}), It(() => {
|
|
84
84
|
l == null || l.disconnect(), a == null || a.disconnect();
|
|
85
85
|
}), o;
|
|
86
86
|
};
|
|
87
|
-
var
|
|
88
|
-
const
|
|
89
|
-
const n =
|
|
90
|
-
let f = 0,
|
|
91
|
-
const
|
|
92
|
-
() => Object.fromEntries(s.value.map(({ field:
|
|
87
|
+
var ke = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(ke || {}), Z = /* @__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.DESELECT_ALL = "deselect-all", 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))(Z || {}), ge = /* @__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.FIT_CONTENT = "fit-content", s.ZEBRA_ROWS = "zebra-rows", s))(ge || {}), we = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(we || {}), N = /* @__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_VALUES_OBJECT = "update:filter-values-object", 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.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s.ROW_CLICK = "row-click", s.SELECT = "select", s.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", s.SORT = "sort", s))(N || {}), Oe = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Oe || {});
|
|
88
|
+
const hs = (s, t) => {
|
|
89
|
+
const n = b(null), e = b(!1), o = b(void 0), l = s.value.reduce((O, D) => (O[D.field] = null, O), {}), a = We(l), r = Ge(a);
|
|
90
|
+
let f = 0, c = "";
|
|
91
|
+
const L = _(
|
|
92
|
+
() => Object.fromEntries(s.value.map(({ field: O, width: D, minWidth: S }) => [O, { width: D, minWidth: S }]))
|
|
93
93
|
);
|
|
94
|
-
|
|
95
|
-
let
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
o.value[
|
|
99
|
-
},
|
|
100
|
-
e.value = !1,
|
|
101
|
-
field:
|
|
102
|
-
width: o.value[
|
|
103
|
-
}),
|
|
104
|
-
}, T = (
|
|
105
|
-
if (
|
|
106
|
-
if (e.value = !0,
|
|
107
|
-
|
|
94
|
+
Pn(() => o.value = L.value);
|
|
95
|
+
let m = null, E = null;
|
|
96
|
+
const h = (O) => {
|
|
97
|
+
const D = O.clientX - f, S = c, i = o.value[S].width + D;
|
|
98
|
+
o.value[S].width = i > L.value[S].minWidth ? i : L.value[S].minWidth, t(Z.COLUMN_RESIZING, o.value), f = O.clientX;
|
|
99
|
+
}, u = () => {
|
|
100
|
+
e.value = !1, m == null || m(), E == null || E(), c && t(Z.COLUMN_RESIZE, {
|
|
101
|
+
field: c,
|
|
102
|
+
width: o.value[c].width
|
|
103
|
+
}), m = null, E = null, c = "", f = null;
|
|
104
|
+
}, T = (O, D, S) => {
|
|
105
|
+
if (S.preventDefault(), O) {
|
|
106
|
+
if (e.value = !0, S.buttons !== 1) {
|
|
107
|
+
u();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
c = D, f = S.clientX, m = _t(window, "mousemove", h), E = _t(window, "mouseup", u);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
|
-
return
|
|
113
|
+
return ae(
|
|
114
114
|
() => e.value,
|
|
115
|
-
(
|
|
116
|
-
!
|
|
115
|
+
(O, D) => {
|
|
116
|
+
!O && D && (t(Z.COLUMN_HOVER, n.value), n.value = null);
|
|
117
117
|
}
|
|
118
118
|
), {
|
|
119
119
|
resizeData: o,
|
|
120
|
-
allColumnRefs:
|
|
120
|
+
allColumnRefs: r,
|
|
121
121
|
startResize: T,
|
|
122
122
|
isResizing: e,
|
|
123
123
|
columnHoverEventToEmitAfterResizing: n
|
|
124
124
|
};
|
|
125
|
-
},
|
|
126
|
-
const e = {}, o = [], l = (
|
|
127
|
-
const f = e[
|
|
128
|
-
f && f.frozen !== !0 && (e[
|
|
125
|
+
}, ps = 100, Ct = 50, oe = "b-actions-column", ws = 32, bs = 56, Ss = 56, Es = 80, Rs = 36, ys = 1, zt = 16, Ls = 20, As = (s, t, n) => {
|
|
126
|
+
const e = {}, o = [], l = (r) => {
|
|
127
|
+
const f = e[r];
|
|
128
|
+
f && f.frozen !== !0 && (e[r].frozen = !0, o.push(r));
|
|
129
129
|
};
|
|
130
130
|
function a() {
|
|
131
131
|
if (o.length === n.length)
|
|
132
132
|
return;
|
|
133
|
-
const
|
|
134
|
-
let f = s,
|
|
135
|
-
o.forEach((
|
|
136
|
-
f -= e[
|
|
133
|
+
const r = { min: {} };
|
|
134
|
+
let f = s, c = t, L = 0;
|
|
135
|
+
o.forEach((m) => {
|
|
136
|
+
f -= e[m].computedWidth, c -= e[m].flex;
|
|
137
137
|
});
|
|
138
|
-
for (let
|
|
139
|
-
const
|
|
140
|
-
if (e[
|
|
138
|
+
for (let m = 0, E = n.length; m < E; m += 1) {
|
|
139
|
+
const h = n[m];
|
|
140
|
+
if (e[h.field] && e[h.field].frozen === !0)
|
|
141
141
|
continue;
|
|
142
|
-
let T = f /
|
|
143
|
-
T <
|
|
142
|
+
let T = f / c * h.flex;
|
|
143
|
+
T < h.minWidth && (L += h.minWidth - T, T = h.minWidth, r.min[h.field] = !0), e[h.field] = {
|
|
144
144
|
frozen: !1,
|
|
145
145
|
computedWidth: T,
|
|
146
|
-
flex:
|
|
146
|
+
flex: h.flex
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
|
|
150
|
-
l(
|
|
151
|
-
}) : n.forEach(({ field:
|
|
152
|
-
l(
|
|
149
|
+
L > 0 ? Object.keys(r.min).forEach((m) => {
|
|
150
|
+
l(m);
|
|
151
|
+
}) : n.forEach(({ field: m }) => {
|
|
152
|
+
l(m);
|
|
153
153
|
}), a();
|
|
154
154
|
}
|
|
155
155
|
return a(), e;
|
|
156
|
-
},
|
|
157
|
-
let n =
|
|
158
|
-
return t && (n +=
|
|
159
|
-
},
|
|
156
|
+
}, ht = (s, t) => {
|
|
157
|
+
let n = ys;
|
|
158
|
+
return t && (n += zt * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
159
|
+
}, Ts = (s) => {
|
|
160
160
|
var t, n, e, o, l;
|
|
161
|
-
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 ?
|
|
162
|
-
},
|
|
163
|
-
const a =
|
|
164
|
-
|
|
161
|
+
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 ? Es : Ss : Rs : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? bs : ws;
|
|
162
|
+
}, Os = (s, t, n, e, o, l) => {
|
|
163
|
+
const a = b(s.value), r = b(t), f = b(n), c = b(e), L = b(o), m = b(!1), E = b(0);
|
|
164
|
+
ae(
|
|
165
165
|
() => s.value,
|
|
166
|
-
(
|
|
167
|
-
var
|
|
168
|
-
const
|
|
169
|
-
if (!((
|
|
166
|
+
(g, C) => {
|
|
167
|
+
var B, q;
|
|
168
|
+
const y = (g == null ? void 0 : g.map(({ field: G }) => G).toString()) === (C == null ? void 0 : C.map(({ field: G }) => G).toString());
|
|
169
|
+
if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !y) {
|
|
170
170
|
a.value = s.value;
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
a.value = ((
|
|
174
|
-
const
|
|
175
|
-
return
|
|
173
|
+
a.value = ((q = a.value) == null ? void 0 : q.length) === 0 ? s.value : s.value.sort((G, X) => {
|
|
174
|
+
const H = a.value.findIndex((Y) => Y.field === G.field), K = a.value.findIndex((Y) => Y.field === X.field);
|
|
175
|
+
return H === -1 ? 1 : K === -1 ? -1 : H - K;
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
|
-
const
|
|
180
|
-
let
|
|
181
|
-
const T =
|
|
182
|
-
var
|
|
183
|
-
const
|
|
184
|
-
let
|
|
185
|
-
const
|
|
186
|
-
let
|
|
187
|
-
const
|
|
188
|
-
if ((
|
|
189
|
-
const
|
|
190
|
-
|
|
179
|
+
const h = b();
|
|
180
|
+
let u = null;
|
|
181
|
+
const T = _(() => {
|
|
182
|
+
var H, K, Y;
|
|
183
|
+
const g = [];
|
|
184
|
+
let C = 0, y = 0;
|
|
185
|
+
const B = {};
|
|
186
|
+
let q = a.value.filter((P) => P.visible !== !1);
|
|
187
|
+
const G = a.value.filter((P) => P.visible === !1);
|
|
188
|
+
if ((H = l == null ? void 0 : l.hasSelectableColumn) != null && H.value || (K = l == null ? void 0 : l.hasNestedContent) != null && K.value || (Y = l == null ? void 0 : l.hasNestedRows) != null && Y.value) {
|
|
189
|
+
const P = Ts(l);
|
|
190
|
+
q = [
|
|
191
191
|
{
|
|
192
|
-
field:
|
|
192
|
+
field: oe,
|
|
193
193
|
label: "",
|
|
194
|
-
minWidth:
|
|
195
|
-
width:
|
|
194
|
+
minWidth: P,
|
|
195
|
+
width: P,
|
|
196
196
|
frozen: !0,
|
|
197
197
|
padding: { left: !1, right: !1 }
|
|
198
198
|
},
|
|
199
|
-
...
|
|
199
|
+
...q
|
|
200
200
|
];
|
|
201
201
|
}
|
|
202
|
-
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
|
|
206
|
-
(
|
|
207
|
-
(
|
|
208
|
-
),
|
|
209
|
-
}),
|
|
210
|
-
const
|
|
211
|
-
if (
|
|
212
|
-
const
|
|
213
|
-
Object.keys(
|
|
214
|
-
|
|
202
|
+
q.forEach((P) => {
|
|
203
|
+
const M = { ...P };
|
|
204
|
+
let p;
|
|
205
|
+
M.flex && M.flex > 0 ? (C += M.flex, p = 0, g.push(M)) : p = Math.max(
|
|
206
|
+
(M == null ? void 0 : M.width) ?? ps,
|
|
207
|
+
(M == null ? void 0 : M.minWidth) ?? Ct
|
|
208
|
+
), y += p, M.width = p, M.minWidth = (M == null ? void 0 : M.minWidth) ?? Ct, B[M.field] = M;
|
|
209
|
+
}), y += E.value;
|
|
210
|
+
const X = Math.max(h.value - y, 0);
|
|
211
|
+
if (C > 0 && h.value > 0) {
|
|
212
|
+
const P = As(X, C, g);
|
|
213
|
+
Object.keys(P).forEach((M) => {
|
|
214
|
+
B[M].width = P[M].computedWidth;
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
return
|
|
218
|
-
const
|
|
219
|
-
|
|
220
|
-
}), Object.values(
|
|
221
|
-
}),
|
|
222
|
-
|
|
223
|
-
},
|
|
224
|
-
a.value.some((
|
|
225
|
-
var
|
|
226
|
-
const
|
|
227
|
-
(
|
|
228
|
-
(
|
|
229
|
-
),
|
|
230
|
-
(
|
|
217
|
+
return G.forEach((P) => {
|
|
218
|
+
const M = { ...P };
|
|
219
|
+
B[M.field] = M;
|
|
220
|
+
}), Object.values(B);
|
|
221
|
+
}), O = b(void 0), D = (g) => {
|
|
222
|
+
O.value = { ...O.value, ...g };
|
|
223
|
+
}, S = async () => {
|
|
224
|
+
a.value.some((g) => g == null ? void 0 : g.autoWidth) && (m.value = !0, await le(), a == null || a.value.filter((g) => g == null ? void 0 : g.autoWidth).forEach(({ field: g, minWidth: C }) => {
|
|
225
|
+
var G, X, H, K;
|
|
226
|
+
const y = ht(
|
|
227
|
+
(G = c.value) == null ? void 0 : G[g],
|
|
228
|
+
(X = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : X.value
|
|
229
|
+
), B = (K = (H = L.value) == null ? void 0 : H[g]) == null ? void 0 : K.reduce(
|
|
230
|
+
(Y, P) => Math.max(Y, ht(P)),
|
|
231
231
|
0
|
|
232
|
-
),
|
|
233
|
-
(
|
|
234
|
-
[
|
|
235
|
-
width:
|
|
232
|
+
), q = Math.max(y, B ?? 0);
|
|
233
|
+
(C === void 0 || q > C) && D({
|
|
234
|
+
[g]: {
|
|
235
|
+
width: q
|
|
236
236
|
}
|
|
237
237
|
});
|
|
238
|
-
}),
|
|
238
|
+
}), m.value = !1);
|
|
239
239
|
};
|
|
240
|
-
|
|
241
|
-
a.value.some((
|
|
240
|
+
ae([() => a.value, () => r.value], async () => {
|
|
241
|
+
a.value.some((g) => g == null ? void 0 : g.autoWidth) && await S();
|
|
242
242
|
});
|
|
243
|
-
const
|
|
244
|
-
() => T.value.map((
|
|
245
|
-
var
|
|
243
|
+
const i = _(
|
|
244
|
+
() => T.value.map((g) => {
|
|
245
|
+
var C, y;
|
|
246
246
|
return {
|
|
247
|
-
...
|
|
247
|
+
...g,
|
|
248
248
|
// Override column width with resized ones
|
|
249
|
-
width: ((
|
|
249
|
+
width: ((y = (C = O.value) == null ? void 0 : C[g.field]) == null ? void 0 : y.width) ?? g.width
|
|
250
250
|
};
|
|
251
251
|
})
|
|
252
|
-
),
|
|
252
|
+
), v = _(
|
|
253
253
|
() => {
|
|
254
|
-
var
|
|
255
|
-
return ((
|
|
254
|
+
var g;
|
|
255
|
+
return ((g = i.value) == null ? void 0 : g.filter(({ visible: C }) => C !== !1).reduce((C, y) => y.width + C, 0)) + E.value;
|
|
256
256
|
}
|
|
257
|
-
),
|
|
258
|
-
() =>
|
|
259
|
-
),
|
|
260
|
-
width:
|
|
257
|
+
), R = _(
|
|
258
|
+
() => h.value <= v.value
|
|
259
|
+
), A = _(() => ({
|
|
260
|
+
width: h.value > v.value ? "100%" : "fit-content"
|
|
261
261
|
}));
|
|
262
|
-
return
|
|
263
|
-
var
|
|
264
|
-
const
|
|
265
|
-
|
|
266
|
-
f.value && (
|
|
267
|
-
const
|
|
262
|
+
return Se(() => {
|
|
263
|
+
var C;
|
|
264
|
+
const g = l != null && l.isDataGridTemplate ? Ls : 0;
|
|
265
|
+
le(() => {
|
|
266
|
+
f.value && (h.value = f.value.getBoundingClientRect().width - g);
|
|
267
|
+
const y = ae(
|
|
268
268
|
f,
|
|
269
269
|
() => {
|
|
270
|
-
f.value && (
|
|
271
|
-
|
|
270
|
+
f.value && (le(() => y()), u = je(f.value, ({ width: B }) => {
|
|
271
|
+
h.value = B - g;
|
|
272
272
|
}));
|
|
273
273
|
},
|
|
274
274
|
{ immediate: !0 }
|
|
275
275
|
);
|
|
276
|
-
}), (
|
|
277
|
-
|
|
278
|
-
}) :
|
|
279
|
-
}),
|
|
280
|
-
|
|
281
|
-
}),
|
|
282
|
-
var
|
|
283
|
-
|
|
284
|
-
|
|
276
|
+
}), (C = document == null ? void 0 : document.fonts) != null && C.ready ? document.fonts.ready.then(() => {
|
|
277
|
+
S();
|
|
278
|
+
}) : S();
|
|
279
|
+
}), It(() => {
|
|
280
|
+
u == null || u.disconnect();
|
|
281
|
+
}), kn(() => {
|
|
282
|
+
var g;
|
|
283
|
+
L.value && ((g = Object.keys(L.value)) == null ? void 0 : g.length) > 0 && Object.keys(L.value).forEach((y) => {
|
|
284
|
+
L.value[y] = [];
|
|
285
285
|
});
|
|
286
286
|
}), {
|
|
287
|
-
columnDefs:
|
|
288
|
-
gridRowWidthStyle:
|
|
289
|
-
onColumnWidthOverride:
|
|
290
|
-
isMeasuringColumnWidths:
|
|
291
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
287
|
+
columnDefs: i,
|
|
288
|
+
gridRowWidthStyle: A,
|
|
289
|
+
onColumnWidthOverride: D,
|
|
290
|
+
isMeasuringColumnWidths: m,
|
|
291
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: R,
|
|
292
292
|
columns: a,
|
|
293
|
-
totalWidthOfAllColumns:
|
|
294
|
-
rowActionsMaxWidth:
|
|
293
|
+
totalWidthOfAllColumns: v,
|
|
294
|
+
rowActionsMaxWidth: E
|
|
295
295
|
};
|
|
296
|
-
},
|
|
297
|
-
const
|
|
296
|
+
}, Is = (s, t, n, e, o, l, a) => {
|
|
297
|
+
const r = b(s.value ?? []), f = We({
|
|
298
298
|
allItemsSelected: !1,
|
|
299
299
|
isIndeterminate: !1
|
|
300
|
-
}),
|
|
301
|
-
() => n.value.flatMap((
|
|
302
|
-
var
|
|
303
|
-
return [
|
|
300
|
+
}), c = _(
|
|
301
|
+
() => n.value.flatMap((i) => {
|
|
302
|
+
var v;
|
|
303
|
+
return [i, ((v = i == null ? void 0 : i.children) == null ? void 0 : v.length) > 0 ? i == null ? void 0 : i.children : []];
|
|
304
304
|
}).flat()
|
|
305
|
-
),
|
|
305
|
+
), L = _(
|
|
306
306
|
() => {
|
|
307
|
-
var
|
|
308
|
-
return ((
|
|
307
|
+
var i, v;
|
|
308
|
+
return ((i = n.value) == null ? void 0 : i.length) > 0 && ((v = c.value) == null ? void 0 : v.filter((R) => !o(R)).every((R) => r.value.includes(e(R))));
|
|
309
309
|
}
|
|
310
|
-
),
|
|
311
|
-
var
|
|
312
|
-
return !(l != null && l.value) || ((
|
|
313
|
-
}),
|
|
314
|
-
t(N.SELECT,
|
|
315
|
-
},
|
|
316
|
-
var
|
|
317
|
-
if (
|
|
310
|
+
), m = _(() => {
|
|
311
|
+
var i;
|
|
312
|
+
return !(l != null && l.value) || ((i = a == null ? void 0 : a.value) == null ? void 0 : i.totalCount) === void 0 ? !1 : r.value.length === a.value.totalCount;
|
|
313
|
+
}), E = () => {
|
|
314
|
+
t(N.SELECT, r.value), t(N.UPDATE_SELECTION, r.value);
|
|
315
|
+
}, h = (i) => {
|
|
316
|
+
var v, R, A;
|
|
317
|
+
if (r.value = i, L.value) {
|
|
318
318
|
f.allItemsSelected = !0;
|
|
319
|
-
const
|
|
320
|
-
f.isIndeterminate = (l == null ? void 0 : l.value) && !
|
|
319
|
+
const g = ((v = n.value) == null ? void 0 : v.length) > 0 && n.value.every((C) => r.value.includes(e(C)));
|
|
320
|
+
f.isIndeterminate = (l == null ? void 0 : l.value) && !m.value || !g;
|
|
321
321
|
} else
|
|
322
|
-
f.allItemsSelected = !1, f.isIndeterminate = ((
|
|
323
|
-
(
|
|
324
|
-
var
|
|
325
|
-
return
|
|
322
|
+
f.allItemsSelected = !1, f.isIndeterminate = ((R = r.value) == null ? void 0 : R.length) > 0 && ((A = n.value) == null ? void 0 : A.length) > 0 && n.value.some(
|
|
323
|
+
(g) => {
|
|
324
|
+
var C;
|
|
325
|
+
return r.value.includes(e(g)) || ((C = g == null ? void 0 : g.children) == null ? void 0 : C.some((y) => r.value.includes(e(y))));
|
|
326
326
|
}
|
|
327
327
|
);
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
var
|
|
331
|
-
if (f.allItemsSelected =
|
|
332
|
-
|
|
333
|
-
(
|
|
334
|
-
)) == null ? void 0 :
|
|
335
|
-
|
|
336
|
-
|
|
328
|
+
}, u = (i) => {
|
|
329
|
+
le(() => {
|
|
330
|
+
var v, R, A;
|
|
331
|
+
if (f.allItemsSelected = i, i) {
|
|
332
|
+
const g = ((R = (v = c.value) == null ? void 0 : v.filter(
|
|
333
|
+
(y) => !o(y) && ((y == null ? void 0 : y.children) === void 0 || y.children.every((B) => !o(B)))
|
|
334
|
+
)) == null ? void 0 : R.map((y) => e(y))) ?? [];
|
|
335
|
+
r.value = [.../* @__PURE__ */ new Set([...r.value, ...g])];
|
|
336
|
+
const C = ((A = n.value) == null ? void 0 : A.length) > 0 && n.value.every((y) => r.value.includes(e(y)));
|
|
337
|
+
f.isIndeterminate = (l == null ? void 0 : l.value) && !m.value || r.value.length > 0 && !C;
|
|
337
338
|
} else
|
|
338
|
-
|
|
339
|
-
|
|
339
|
+
r.value = [], f.isIndeterminate = !1;
|
|
340
|
+
E();
|
|
340
341
|
});
|
|
341
342
|
}, T = () => {
|
|
342
|
-
|
|
343
|
-
|
|
343
|
+
le(() => {
|
|
344
|
+
h([]), E();
|
|
344
345
|
});
|
|
345
|
-
},
|
|
346
|
-
|
|
347
|
-
var
|
|
348
|
-
|
|
346
|
+
}, O = (i, v) => {
|
|
347
|
+
le(() => {
|
|
348
|
+
var R;
|
|
349
|
+
h(((R = v == null ? void 0 : v.children) == null ? void 0 : R.length) > 0 ? D(i, v) : i), E();
|
|
349
350
|
});
|
|
350
|
-
},
|
|
351
|
-
var
|
|
352
|
-
const
|
|
353
|
-
if (
|
|
354
|
-
const
|
|
355
|
-
return
|
|
356
|
-
|
|
357
|
-
}),
|
|
351
|
+
}, D = (i, v) => {
|
|
352
|
+
var g;
|
|
353
|
+
const R = e(v), A = (g = v.children) == null ? void 0 : g.filter((C) => !o(C)).map((C) => e(C));
|
|
354
|
+
if (i.includes(R)) {
|
|
355
|
+
const C = i;
|
|
356
|
+
return A.forEach((y) => {
|
|
357
|
+
C.includes(y) || C.push(y);
|
|
358
|
+
}), C;
|
|
358
359
|
}
|
|
359
|
-
return
|
|
360
|
-
},
|
|
361
|
-
|
|
362
|
-
var
|
|
363
|
-
const
|
|
364
|
-
|
|
365
|
-
!
|
|
366
|
-
) :
|
|
367
|
-
|
|
368
|
-
),
|
|
360
|
+
return i.filter((C) => !A.includes(C));
|
|
361
|
+
}, S = (i, v, R) => {
|
|
362
|
+
le(() => {
|
|
363
|
+
var g, C;
|
|
364
|
+
const A = e(v);
|
|
365
|
+
i.includes(e(R)) ? h(
|
|
366
|
+
!i.includes(A) && ((g = v == null ? void 0 : v.children) != null && g.every((y) => i.includes(e(y)))) ? [...i, A] : i
|
|
367
|
+
) : h(
|
|
368
|
+
i.includes(A) && !((C = v == null ? void 0 : v.children) != null && C.every((y) => i.includes(e(y)))) ? i.filter((y) => y !== A) : i
|
|
369
|
+
), E();
|
|
369
370
|
});
|
|
370
371
|
};
|
|
371
|
-
return
|
|
372
|
+
return ae(
|
|
372
373
|
() => s.value,
|
|
373
374
|
() => {
|
|
374
|
-
|
|
375
|
+
h(s.value ?? []);
|
|
375
376
|
},
|
|
376
377
|
{ immediate: !0 }
|
|
377
|
-
),
|
|
378
|
+
), ae(
|
|
378
379
|
() => n.value,
|
|
379
380
|
() => {
|
|
380
|
-
const
|
|
381
|
-
(
|
|
382
|
-
var
|
|
383
|
-
return ((
|
|
381
|
+
const i = n.value.filter((v) => r.value.includes(e(v))).flatMap(
|
|
382
|
+
(v) => {
|
|
383
|
+
var R;
|
|
384
|
+
return ((R = v == null ? void 0 : v.children) == null ? void 0 : R.length) > 0 ? v.children.map((A) => e(A)).filter((A) => !r.value.includes(A)) : [];
|
|
384
385
|
}
|
|
385
386
|
);
|
|
386
|
-
(
|
|
387
|
+
(i == null ? void 0 : i.length) > 0 ? (h([...r.value, ...i]), E()) : h(r.value);
|
|
387
388
|
}
|
|
388
389
|
), {
|
|
389
|
-
onAllRowSelect:
|
|
390
|
-
onRowSelect:
|
|
391
|
-
onNestedRowSelect:
|
|
390
|
+
onAllRowSelect: u,
|
|
391
|
+
onRowSelect: O,
|
|
392
|
+
onNestedRowSelect: S,
|
|
392
393
|
onDeselectAll: T,
|
|
393
394
|
allItemsSelectedState: f,
|
|
394
|
-
selectedItems:
|
|
395
|
-
isEveryItemSelected:
|
|
396
|
-
isEveryItemAcrossPagesSelected:
|
|
395
|
+
selectedItems: r,
|
|
396
|
+
isEveryItemSelected: L,
|
|
397
|
+
isEveryItemAcrossPagesSelected: m
|
|
397
398
|
};
|
|
398
|
-
},
|
|
399
|
-
var i;
|
|
400
|
-
return (i = s.value.find((f) => f.field === a)) == null ? void 0 : i.direction;
|
|
401
|
-
}, sortByColumnField: (a) => {
|
|
399
|
+
}, Ns = (s, t, n) => ({ isSorting: (a) => s.value.some((r) => r.field === a), getSortingDirection: (a) => {
|
|
402
400
|
var r;
|
|
403
|
-
|
|
401
|
+
return (r = s.value.find((f) => f.field === a)) == null ? void 0 : r.direction;
|
|
402
|
+
}, sortByColumnField: (a) => {
|
|
403
|
+
var c;
|
|
404
|
+
if (!t.value.some((L) => L.field === a && L.sortable))
|
|
404
405
|
return;
|
|
405
406
|
const f = [{
|
|
406
407
|
field: a,
|
|
407
|
-
direction: ((
|
|
408
|
+
direction: ((c = s.value.find((L) => L.field === a)) == null ? void 0 : c.direction) === we.ASCENDING ? we.DESCENDING : we.ASCENDING
|
|
408
409
|
}];
|
|
409
410
|
n("sort", f);
|
|
410
411
|
} });
|
|
411
|
-
var
|
|
412
|
-
const
|
|
413
|
-
const a =
|
|
414
|
-
let
|
|
415
|
-
return o.value && (
|
|
416
|
-
...
|
|
417
|
-
{ field:
|
|
418
|
-
]),
|
|
419
|
-
}), f =
|
|
412
|
+
var se = ((s) => (s[s.ARROW_DOWN = de.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = de.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = de.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = de.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = de.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = de.PAGE_DOWN] = "PAGE_DOWN", s[s.END = de.END] = "END", s[s.HOME = de.HOME] = "HOME", s))(se || {});
|
|
413
|
+
const ye = "b-row-actions-column", Ds = (s, t, n, e, o, l) => {
|
|
414
|
+
const a = _(() => l.value || e.value ? !0 : n.value.some((S) => S.infoIconTooltip || S.sortable)), r = _(() => {
|
|
415
|
+
let S = n.value.filter(({ visible: i }) => i !== !1);
|
|
416
|
+
return o.value && (S = [
|
|
417
|
+
...S,
|
|
418
|
+
{ field: ye, label: "" }
|
|
419
|
+
]), S;
|
|
420
|
+
}), f = _(() => r.value.length), c = _(() => {
|
|
420
421
|
if (!s.value)
|
|
421
422
|
return [];
|
|
422
|
-
const
|
|
423
|
-
if (!
|
|
423
|
+
const S = Object.keys(s.value)[0];
|
|
424
|
+
if (!S || !s.value[S])
|
|
424
425
|
return [];
|
|
425
|
-
const
|
|
426
|
+
const i = [];
|
|
426
427
|
if (a.value)
|
|
427
|
-
for (const
|
|
428
|
-
const
|
|
429
|
-
|
|
428
|
+
for (const R of r.value) {
|
|
429
|
+
const A = t.value[R.field];
|
|
430
|
+
i.push(A);
|
|
430
431
|
}
|
|
431
|
-
const
|
|
432
|
-
for (let
|
|
433
|
-
for (const
|
|
434
|
-
const
|
|
435
|
-
|
|
432
|
+
const v = s.value[S].length;
|
|
433
|
+
for (let R = 0; R < v; R++)
|
|
434
|
+
for (const A of r.value) {
|
|
435
|
+
const g = s.value[A.field];
|
|
436
|
+
g != null && g[R] && i.push(g[R]);
|
|
436
437
|
}
|
|
437
|
-
return
|
|
438
|
-
}),
|
|
439
|
-
const
|
|
438
|
+
return i;
|
|
439
|
+
}), L = (S) => Math.floor(S / f.value), m = (S, i, v) => {
|
|
440
|
+
const R = c.value.length - 1, A = f.value - 1, g = L(S), C = S - f.value * g;
|
|
440
441
|
return {
|
|
441
|
-
[
|
|
442
|
-
[
|
|
443
|
-
[
|
|
444
|
-
[
|
|
445
|
-
}[
|
|
446
|
-
},
|
|
447
|
-
const
|
|
448
|
-
[
|
|
449
|
-
[
|
|
450
|
-
[
|
|
451
|
-
[
|
|
452
|
-
}[
|
|
453
|
-
return
|
|
454
|
-
},
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
].includes(
|
|
460
|
-
const
|
|
461
|
-
return
|
|
462
|
-
}, T = (
|
|
463
|
-
if (!
|
|
442
|
+
[se.PAGE_UP]: C + (a.value ? f.value : 0),
|
|
443
|
+
[se.PAGE_DOWN]: R - A + C,
|
|
444
|
+
[se.END]: v ? R : f.value * g + A,
|
|
445
|
+
[se.HOME]: v ? a.value ? f.value : 0 : f.value * g
|
|
446
|
+
}[i];
|
|
447
|
+
}, E = (S, i) => {
|
|
448
|
+
const v = L(S), A = {
|
|
449
|
+
[se.ARROW_DOWN]: f.value,
|
|
450
|
+
[se.ARROW_UP]: v === 0 && !a.value ? 0 : -f.value,
|
|
451
|
+
[se.ARROW_LEFT]: -1,
|
|
452
|
+
[se.ARROW_RIGHT]: 1
|
|
453
|
+
}[i], g = S + A;
|
|
454
|
+
return g < 0 || g >= c.value.length ? S : g;
|
|
455
|
+
}, h = (S) => [
|
|
456
|
+
se.PAGE_UP,
|
|
457
|
+
se.PAGE_DOWN,
|
|
458
|
+
se.END,
|
|
459
|
+
se.HOME
|
|
460
|
+
].includes(S), u = (S, i, v) => {
|
|
461
|
+
const R = c.value.indexOf(S);
|
|
462
|
+
return h(i) ? m(R, i, v) : E(R, i);
|
|
463
|
+
}, T = (S, i, v) => {
|
|
464
|
+
if (!c.value.includes(S))
|
|
464
465
|
return;
|
|
465
|
-
const
|
|
466
|
-
|
|
467
|
-
},
|
|
466
|
+
const R = u(S, i, v);
|
|
467
|
+
c.value[R].focus();
|
|
468
|
+
}, O = (S) => S in se;
|
|
468
469
|
return {
|
|
469
|
-
isNavigationKeyCode:
|
|
470
|
+
isNavigationKeyCode: O,
|
|
470
471
|
focusOnNextGridcell: T,
|
|
471
|
-
navigationInput: (
|
|
472
|
-
const { ctrlKey:
|
|
473
|
-
let
|
|
474
|
-
|
|
472
|
+
navigationInput: (S) => {
|
|
473
|
+
const { ctrlKey: i, key: v, target: R } = S, A = v;
|
|
474
|
+
let g = R;
|
|
475
|
+
g.getAttribute("role") !== "menuitem" && (c.value.includes(g) || (g = R.closest('[role="gridcell"], [role="columnheader"]')), c.value.includes(g) && O(A) && T(g, A, i));
|
|
475
476
|
}
|
|
476
477
|
};
|
|
477
|
-
},
|
|
478
|
-
const l =
|
|
478
|
+
}, xs = 90, Bs = (s, t, n, e, o) => {
|
|
479
|
+
const l = b(s), a = b(t), r = b(n), f = b(e), c = _(() => l.value !== "none"), L = _(() => l.value === "automatic"), m = () => {
|
|
479
480
|
o(N.UPDATE_SHOW_MORE);
|
|
480
481
|
};
|
|
481
|
-
return
|
|
482
|
+
return ae(
|
|
482
483
|
() => a.value,
|
|
483
484
|
() => {
|
|
484
|
-
|
|
485
|
+
L.value && r.value.offsetHeight / a.value * 100 > xs && !f.value && m();
|
|
485
486
|
}
|
|
486
|
-
), { isLazyLoad:
|
|
487
|
-
},
|
|
488
|
-
const e =
|
|
487
|
+
), { isLazyLoad: c, isInfiniteScroll: L, verticalScrollPosition: a, emitLazyLoadEvent: m };
|
|
488
|
+
}, Fs = (s, t, n) => {
|
|
489
|
+
const e = b(s), o = b(t), l = We({
|
|
489
490
|
dragging: null,
|
|
490
491
|
dragToLeft: null,
|
|
491
492
|
target: null
|
|
492
|
-
}), a = (
|
|
493
|
-
const T = e.value.findIndex((
|
|
494
|
-
if (
|
|
493
|
+
}), a = (h, u = 0) => {
|
|
494
|
+
const T = e.value.findIndex((S) => S.field === h.field), O = T + u;
|
|
495
|
+
if (O < 0 || O > e.value.length - 1)
|
|
495
496
|
return;
|
|
496
|
-
const
|
|
497
|
-
|
|
498
|
-
},
|
|
499
|
-
l.dragging =
|
|
500
|
-
}, f = (
|
|
501
|
-
l.target =
|
|
502
|
-
const T =
|
|
503
|
-
l.dragToLeft =
|
|
504
|
-
},
|
|
505
|
-
var
|
|
506
|
-
if (((
|
|
507
|
-
const
|
|
508
|
-
var
|
|
509
|
-
return
|
|
510
|
-
}),
|
|
511
|
-
let
|
|
512
|
-
|
|
513
|
-
|
|
497
|
+
const D = [...e.value];
|
|
498
|
+
D.splice(O, 0, D.splice(T, 1)[0]), n(N.COLUMNS, D), n(N.UPDATE_COLUMNS, D);
|
|
499
|
+
}, r = (h, u) => {
|
|
500
|
+
l.dragging = h, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
501
|
+
}, f = (h, u) => {
|
|
502
|
+
l.target = h;
|
|
503
|
+
const T = u.currentTarget.getBoundingClientRect(), O = T.left + T.width / 2, D = u.clientX ?? 0;
|
|
504
|
+
l.dragToLeft = D <= O;
|
|
505
|
+
}, c = (h) => {
|
|
506
|
+
var u, T;
|
|
507
|
+
if (((u = l.dragging) == null ? void 0 : u.field) !== h.field) {
|
|
508
|
+
const O = e.value.findIndex((A) => {
|
|
509
|
+
var g;
|
|
510
|
+
return A.field === ((g = l.dragging) == null ? void 0 : g.field);
|
|
511
|
+
}), D = e.value.findIndex((A) => A.field === h.field), S = l.dragToLeft ? D : D + 1, i = S > O ? S - 1 : S;
|
|
512
|
+
let v = [...e.value];
|
|
513
|
+
v.splice(
|
|
514
|
+
i === -1 ? 0 : i,
|
|
514
515
|
0,
|
|
515
|
-
|
|
516
|
+
v.splice(O, 1)[0]
|
|
516
517
|
);
|
|
517
|
-
const
|
|
518
|
-
((T = l.dragging) == null ? void 0 : T.frozen) !==
|
|
519
|
-
(
|
|
520
|
-
var
|
|
521
|
-
return ((
|
|
518
|
+
const R = e.value.findIndex((A) => !(A != null && A.frozen));
|
|
519
|
+
((T = l.dragging) == null ? void 0 : T.frozen) !== h.frozen && S !== R && (v = v.map(
|
|
520
|
+
(A) => {
|
|
521
|
+
var g;
|
|
522
|
+
return ((g = l.dragging) == null ? void 0 : g.field) === A.field ? { ...A, frozen: !!(h != null && h.frozen) } : A;
|
|
522
523
|
}
|
|
523
|
-
)), n(N.COLUMNS,
|
|
524
|
+
)), n(N.COLUMNS, v), n(N.UPDATE_COLUMNS, v);
|
|
524
525
|
}
|
|
525
526
|
l.dragging = null, l.target = null;
|
|
526
|
-
},
|
|
527
|
+
}, L = () => {
|
|
527
528
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
528
|
-
},
|
|
529
|
-
[
|
|
530
|
-
[
|
|
531
|
-
[
|
|
532
|
-
[
|
|
533
|
-
} : {}),
|
|
534
|
-
dragenter: (
|
|
535
|
-
|
|
529
|
+
}, m = _(() => o.value ? {
|
|
530
|
+
[Z.COLUMN_DRAG_START]: (h, u) => r(h, u),
|
|
531
|
+
[Z.COLUMN_DRAG_ENTER]: (h, u) => f(h, u),
|
|
532
|
+
[Z.COLUMN_DROP]: (h) => c(h),
|
|
533
|
+
[Z.COLUMN_DRAG_END]: () => L()
|
|
534
|
+
} : {}), E = _(() => (h) => o.value ? {
|
|
535
|
+
dragenter: (u) => {
|
|
536
|
+
u.preventDefault(), f(h, u);
|
|
536
537
|
},
|
|
537
538
|
drop: () => {
|
|
538
|
-
|
|
539
|
+
c(h);
|
|
539
540
|
},
|
|
540
|
-
dragover: (
|
|
541
|
-
|
|
541
|
+
dragover: (u) => {
|
|
542
|
+
u.preventDefault();
|
|
542
543
|
}
|
|
543
544
|
} : {});
|
|
544
545
|
return {
|
|
545
546
|
// Values
|
|
546
547
|
draggingColumns: l,
|
|
547
548
|
// Methods
|
|
548
|
-
draggingEventsForColumns:
|
|
549
|
-
draggingEventsForRowCell:
|
|
549
|
+
draggingEventsForColumns: m,
|
|
550
|
+
draggingEventsForRowCell: E,
|
|
550
551
|
onMoveColumnByOffset: a
|
|
551
552
|
};
|
|
552
|
-
},
|
|
553
|
-
const e =
|
|
554
|
-
() => [...e.value].sort((
|
|
555
|
-
), a =
|
|
556
|
-
() => l.value.filter((
|
|
557
|
-
),
|
|
558
|
-
() => l.value.filter((
|
|
559
|
-
), f =
|
|
553
|
+
}, Ms = (s, t, n) => {
|
|
554
|
+
const e = b(s), o = b(t.value), l = _(
|
|
555
|
+
() => [...e.value].sort((u, T) => u.frozen === T.frozen ? 0 : u.frozen ? -1 : 1)
|
|
556
|
+
), a = _(
|
|
557
|
+
() => l.value.filter((u) => u.frozen && u.visible !== !1)
|
|
558
|
+
), r = _(
|
|
559
|
+
() => l.value.filter((u) => !u.frozen && u.visible !== !1)
|
|
560
|
+
), f = _(
|
|
560
561
|
() => [
|
|
561
562
|
{ columnSet: a.value, id: "frozen", isFrozenColumns: !0 },
|
|
562
|
-
{ columnSet:
|
|
563
|
-
].filter(({ columnSet:
|
|
564
|
-
),
|
|
565
|
-
() => e.value.filter((
|
|
566
|
-
),
|
|
567
|
-
o.value =
|
|
568
|
-
},
|
|
569
|
-
n(N.COLUMNS,
|
|
570
|
-
},
|
|
563
|
+
{ columnSet: r.value, id: "unfrozen" }
|
|
564
|
+
].filter(({ columnSet: u }) => u.length)
|
|
565
|
+
), c = _(
|
|
566
|
+
() => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== oe).length === 1
|
|
567
|
+
), L = (u) => n(N.UPDATE_CONDENSED, u), m = (u) => {
|
|
568
|
+
o.value = u, n(N.UPDATE_ZEBRA_ROWS, u);
|
|
569
|
+
}, E = (u) => {
|
|
570
|
+
n(N.COLUMNS, u), n(N.UPDATE_COLUMNS, u);
|
|
571
|
+
}, h = (u) => {
|
|
571
572
|
const T = l.value.map(
|
|
572
|
-
(
|
|
573
|
+
(O) => (O == null ? void 0 : O.field) === u.field ? u : O
|
|
573
574
|
);
|
|
574
|
-
|
|
575
|
+
E(T);
|
|
575
576
|
};
|
|
576
|
-
return
|
|
577
|
-
o.value =
|
|
577
|
+
return ae(t, (u) => {
|
|
578
|
+
o.value = u;
|
|
578
579
|
}), {
|
|
579
580
|
// Values
|
|
580
581
|
columnSets: f,
|
|
581
|
-
isOnlyOneVisibleColumn:
|
|
582
|
+
isOnlyOneVisibleColumn: c,
|
|
582
583
|
internalZebraRows: o,
|
|
583
584
|
sortedColumns: l,
|
|
584
585
|
// Methods
|
|
585
|
-
onConfigSettingsColumnsUpdate:
|
|
586
|
-
onConfigSettingsColumnUpdate:
|
|
587
|
-
onConfigSettingsCondensedUpdate:
|
|
588
|
-
onConfigSettingsZebraRowsUpdate:
|
|
586
|
+
onConfigSettingsColumnsUpdate: E,
|
|
587
|
+
onConfigSettingsColumnUpdate: h,
|
|
588
|
+
onConfigSettingsCondensedUpdate: L,
|
|
589
|
+
onConfigSettingsZebraRowsUpdate: m
|
|
589
590
|
};
|
|
590
|
-
},
|
|
591
|
-
const
|
|
592
|
-
|
|
593
|
-
s.value.scrollLeft =
|
|
594
|
-
}),
|
|
595
|
-
var
|
|
596
|
-
await
|
|
591
|
+
}, Us = (s, t, n, e, o, l, a) => {
|
|
592
|
+
const r = b(0), f = b(!1), c = b(!1);
|
|
593
|
+
ae([() => r.value, () => l.value], ([u]) => {
|
|
594
|
+
s.value.scrollLeft = u, t.value.scrollLeft = u, f.value = !!u, c.value = t.value.scrollWidth - t.value.offsetWidth > u;
|
|
595
|
+
}), Se(async () => {
|
|
596
|
+
var u, T;
|
|
597
|
+
await le(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((T = t.value) == null ? void 0 : T.scrollWidth) && (c.value = !0);
|
|
597
598
|
});
|
|
598
|
-
const
|
|
599
|
-
if (
|
|
600
|
-
const T =
|
|
599
|
+
const L = (u) => {
|
|
600
|
+
if (r.value = u.target.scrollLeft, n.value = s.value.scrollHeight - u.target.scrollTop, e != null && e.value) {
|
|
601
|
+
const T = u.target.scrollLeft;
|
|
601
602
|
e.value.scrollLeft !== T && (e.value.scrollLeft = T);
|
|
602
603
|
}
|
|
603
|
-
},
|
|
604
|
-
|
|
604
|
+
}, m = (u) => {
|
|
605
|
+
u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
605
606
|
s.value && (s.value.style.overflowX = "auto");
|
|
606
607
|
}));
|
|
607
|
-
},
|
|
608
|
-
const T =
|
|
608
|
+
}, E = (u) => {
|
|
609
|
+
const T = u.target.scrollLeft;
|
|
609
610
|
s.value.scrollLeft !== T && (s.value.scrollLeft = T);
|
|
610
|
-
},
|
|
611
|
-
var
|
|
612
|
-
return (
|
|
611
|
+
}, h = _(() => {
|
|
612
|
+
var u, T, O, D;
|
|
613
|
+
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((T = a == null ? void 0 : a.stickyPagination) != null && T.value || a != null && a.isDataGridTemplate) && !((O = a == null ? void 0 : a.isLazyLoad) != null && O.value) ? { bottom: `${(((D = o.value) == null ? void 0 : D.clientHeight) ?? 0) + 1}px` } : {};
|
|
613
614
|
});
|
|
614
615
|
return {
|
|
615
616
|
// Values
|
|
616
|
-
scrollLeftPosition:
|
|
617
|
+
scrollLeftPosition: r,
|
|
617
618
|
hasLeftOverflow: f,
|
|
618
|
-
hasRightOverflow:
|
|
619
|
-
horizontalScrollbarConditionalStyles:
|
|
619
|
+
hasRightOverflow: c,
|
|
620
|
+
horizontalScrollbarConditionalStyles: h,
|
|
620
621
|
// Methods
|
|
621
|
-
updateScrollPosition:
|
|
622
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
623
|
-
syncVirtualScrollerWithBody:
|
|
622
|
+
updateScrollPosition: L,
|
|
623
|
+
updateScrollPositionOnFrozenColumnsNavigation: m,
|
|
624
|
+
syncVirtualScrollerWithBody: E
|
|
624
625
|
};
|
|
625
|
-
},
|
|
626
|
-
const o =
|
|
627
|
-
var T,
|
|
628
|
-
if (!o.value || o.value.field ===
|
|
626
|
+
}, zs = (s, t, n, e) => {
|
|
627
|
+
const o = b(null), l = _(() => {
|
|
628
|
+
var T, O, D, S;
|
|
629
|
+
if (!o.value || o.value.field === oe)
|
|
629
630
|
return {
|
|
630
631
|
hoveredOverColumnField: "",
|
|
631
632
|
isSeparatorOffset: !1,
|
|
632
633
|
noBorderLeft: !1,
|
|
633
634
|
noBorderRight: !1
|
|
634
635
|
};
|
|
635
|
-
const a = (
|
|
636
|
+
const a = (O = (T = s.value.find((i) => i.isFrozenColumns)) == null ? void 0 : T.columnSet) == null ? void 0 : O.filter((i) => i.field !== oe), r = s.value.find((i) => !(i != null && i.isFrozenColumns)), f = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, c = !o.value.frozen && ((D = r == null ? void 0 : r.columnSet) == null ? void 0 : D[0].field) === o.value.field, L = (t.value || n.value) && f, m = (t.value || n.value) && !a && c, E = a && c, h = (a == null ? void 0 : a.length) > 0 && o.value.frozen && (a == null ? void 0 : a[a.length - 1].field) === o.value.field, u = n.value && e.value && !o.value.frozen && ((S = r == null ? void 0 : r.columnSet) == null ? void 0 : S[r.columnSet.length - 1].field) === o.value.field;
|
|
636
637
|
return {
|
|
637
638
|
hoveredOverColumnField: o.value.field,
|
|
638
|
-
isSeparatorOffset:
|
|
639
|
-
noBorderLeft: !!
|
|
640
|
-
noBorderRight: !!
|
|
639
|
+
isSeparatorOffset: u,
|
|
640
|
+
noBorderLeft: !!L || !!m || !!E,
|
|
641
|
+
noBorderRight: !!h || !!u
|
|
641
642
|
};
|
|
642
643
|
});
|
|
643
644
|
return {
|
|
644
645
|
hoveredOverColumn: o,
|
|
645
646
|
hoveredOverColumnState: l
|
|
646
647
|
};
|
|
647
|
-
},
|
|
648
|
-
const n =
|
|
648
|
+
}, Ke = (s) => {
|
|
649
|
+
const n = Mt(s).filter((e) => e.node !== s);
|
|
649
650
|
return (n == null ? void 0 : n.length) > 0 ? (n[0].node.focus(), !0) : !1;
|
|
650
|
-
},
|
|
651
|
-
const t =
|
|
651
|
+
}, pe = (s) => {
|
|
652
|
+
const t = Mt(s), n = t == null ? void 0 : t.filter((e) => e.node !== s);
|
|
652
653
|
if ((n == null ? void 0 : n.length) > 0)
|
|
653
654
|
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
654
|
-
},
|
|
655
|
+
}, $t = (s) => {
|
|
655
656
|
(s == null ? void 0 : s.length) > 0 && s.forEach((t) => t == null ? void 0 : t.node.setAttribute("tabindex", "0"));
|
|
656
|
-
},
|
|
657
|
+
}, $s = () => {
|
|
657
658
|
const s = window.getSelection().getRangeAt(0).cloneContents(), t = s.querySelectorAll('[role="row"]');
|
|
658
659
|
let n = "<table>", e = "";
|
|
659
660
|
const o = (l) => {
|
|
660
661
|
l.forEach((a) => {
|
|
661
|
-
const
|
|
662
|
-
f && (n += `<${
|
|
662
|
+
const r = a.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", f = a.textContent.trim();
|
|
663
|
+
f && (n += `<${r}>${f}</${r}>`, e += `${f} `);
|
|
663
664
|
});
|
|
664
665
|
};
|
|
665
666
|
if (!t.length) {
|
|
@@ -680,8 +681,8 @@ const Re = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
680
681
|
if (n += "<tr>", a.length)
|
|
681
682
|
o(a);
|
|
682
683
|
else {
|
|
683
|
-
const
|
|
684
|
-
n += `<td>${
|
|
684
|
+
const r = l.textContent.trim();
|
|
685
|
+
n += `<td>${r}</td>`, e += `${r} `;
|
|
685
686
|
}
|
|
686
687
|
n += "</tr>", e += `
|
|
687
688
|
`;
|
|
@@ -692,114 +693,114 @@ const Re = "b-row-actions-column", Os = (s, t, n, e, o, l) => {
|
|
|
692
693
|
})
|
|
693
694
|
]);
|
|
694
695
|
};
|
|
695
|
-
let
|
|
696
|
-
const
|
|
696
|
+
let pt = 0;
|
|
697
|
+
const Ps = {
|
|
697
698
|
beforeCreate() {
|
|
698
|
-
this.uuid =
|
|
699
|
+
this.uuid = pt.toString(), pt += 1;
|
|
699
700
|
}
|
|
700
701
|
};
|
|
701
|
-
var
|
|
702
|
+
var ks = function() {
|
|
702
703
|
var t = this, n = t._self._c;
|
|
703
704
|
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: "#001222", "clip-path": "url(#uia-ui-assets/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-ui-assets/icons-16-arrow_up_down_sort__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
704
|
-
},
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
705
|
+
}, Ws = [], Gs = /* @__PURE__ */ j(
|
|
706
|
+
Ps,
|
|
707
|
+
ks,
|
|
708
|
+
Ws,
|
|
708
709
|
!1,
|
|
709
710
|
null,
|
|
710
711
|
null
|
|
711
712
|
);
|
|
712
|
-
const
|
|
713
|
-
let
|
|
714
|
-
const
|
|
713
|
+
const Hs = Gs.exports;
|
|
714
|
+
let wt = 0;
|
|
715
|
+
const Vs = {
|
|
715
716
|
beforeCreate() {
|
|
716
|
-
this.uuid =
|
|
717
|
+
this.uuid = wt.toString(), wt += 1;
|
|
717
718
|
}
|
|
718
719
|
};
|
|
719
|
-
var
|
|
720
|
+
var Zs = function() {
|
|
720
721
|
var t = this, n = t._self._c;
|
|
721
722
|
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: "#001222", 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" } })]);
|
|
722
|
-
},
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
723
|
+
}, js = [], qs = /* @__PURE__ */ j(
|
|
724
|
+
Vs,
|
|
725
|
+
Zs,
|
|
726
|
+
js,
|
|
726
727
|
!1,
|
|
727
728
|
null,
|
|
728
729
|
null
|
|
729
730
|
);
|
|
730
|
-
const
|
|
731
|
-
let
|
|
732
|
-
const
|
|
731
|
+
const Ks = qs.exports;
|
|
732
|
+
let bt = 0;
|
|
733
|
+
const Ys = {
|
|
733
734
|
beforeCreate() {
|
|
734
|
-
this.uuid =
|
|
735
|
+
this.uuid = bt.toString(), bt += 1;
|
|
735
736
|
}
|
|
736
737
|
};
|
|
737
|
-
var
|
|
738
|
+
var Js = function() {
|
|
738
739
|
var t = this, n = t._self._c;
|
|
739
740
|
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-ui-assets/icons-16-freeze__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M10.5605 14.5L9.94434 13.8838C9.6002 13.5397 9.18722 13.3072 8.75 13.1836V10.9336L10.1689 10.1162L11.6865 10.9941L12.1094 12.5605C12.1146 12.5821 12.1182 12.6044 12.124 12.626L12.1553 12.7441L12.3496 13.4688L13.7988 13.0801L13.6162 12.4004L13.6201 12.3984L13.5547 12.1592C13.4254 11.5178 13.8153 10.878 14.4561 10.7061L14.5742 10.6748L15.2988 10.4805L14.9102 9.03125L14.2295 9.21387L14.2285 9.20996L13.5049 9.40625L12.4346 9.69531L10.9199 8.81836V7.18262L12.8633 6.05762C13.1889 6.37496 13.597 6.61697 14.0674 6.74316L14.1855 6.77441L14.9102 6.96875L15.2988 5.52051L14.5742 5.32617L14.4561 5.29395C13.7894 5.11503 13.3935 4.4294 13.5723 3.7627L13.6045 3.64453L13.7988 2.91992L12.3496 2.53125L12.1553 3.25586L12.124 3.37402C11.9979 3.84406 12.0018 4.31824 12.1133 4.75879L10.1689 5.88477L8.75 5.06738V2.81738C9.18731 2.69384 9.60013 2.46036 9.94434 2.11621L10.5605 1.5L9.5 0.439453L8.88379 1.05566C8.39567 1.54362 7.60433 1.54362 7.11621 1.05566L6.5 0.439453L5.43945 1.5L6.05566 2.11621C6.39987 2.46036 6.81269 2.69384 7.25 2.81738V5.06738L5.83105 5.88477L3.88574 4.75879C3.99724 4.31819 4.00207 3.84412 3.87598 3.37402L3.84473 3.25586L3.65039 2.53125L2.20117 2.91992L2.39551 3.64453L2.42773 3.7627C2.60651 4.42942 2.21066 5.11507 1.54395 5.29395L1.42578 5.32617L0.701172 5.52051L1.08984 6.96875L1.81445 6.77441L1.93262 6.74316C2.40275 6.61703 2.81018 6.37474 3.13574 6.05762L5.08008 7.18262V8.81836L3.13574 9.94336C2.81015 9.62622 2.40287 9.38399 1.93262 9.25781L1.81445 9.22559L1.08984 9.03125L0.701172 10.4805L1.42578 10.6748L1.54395 10.7061C2.2106 10.8849 2.60644 11.5706 2.42773 12.2373L2.39551 12.3555L2.20117 13.0801L3.65039 13.4688L3.84473 12.7441L3.87598 12.626C4.00207 12.1559 3.99723 11.6817 3.88574 11.2412L5.83105 10.1162L7.25 10.9336V13.1836C6.81278 13.3072 6.3998 13.5397 6.05566 13.8838L5.43945 14.5L6.5 15.5605L7.11621 14.9443C7.60433 14.4564 8.39567 14.4564 8.88379 14.9443L9.5 15.5605L10.5605 14.5ZM6.58008 8.81641V7.18262L8 6.36426L9.41992 7.18262V8.81641L8 9.63477L6.58008 8.81641Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-freeze__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff", transform: "matrix(1 0 0 -1 0 16)" } })])])]);
|
|
740
|
-
},
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
741
|
+
}, Xs = [], Qs = /* @__PURE__ */ j(
|
|
742
|
+
Ys,
|
|
743
|
+
Js,
|
|
744
|
+
Xs,
|
|
744
745
|
!1,
|
|
745
746
|
null,
|
|
746
747
|
null
|
|
747
748
|
);
|
|
748
|
-
const
|
|
749
|
-
let
|
|
750
|
-
const
|
|
749
|
+
const Pt = Qs.exports;
|
|
750
|
+
let St = 0;
|
|
751
|
+
const eo = {
|
|
751
752
|
beforeCreate() {
|
|
752
|
-
this.uuid =
|
|
753
|
+
this.uuid = St.toString(), St += 1;
|
|
753
754
|
}
|
|
754
755
|
};
|
|
755
|
-
var
|
|
756
|
+
var to = function() {
|
|
756
757
|
var t = this, n = t._self._c;
|
|
757
758
|
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: "#001222", "clip-path": "url(#uia-ui-assets/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-ui-assets/icons-16-sort_ascending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
758
|
-
},
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
759
|
+
}, no = [], so = /* @__PURE__ */ j(
|
|
760
|
+
eo,
|
|
761
|
+
to,
|
|
762
|
+
no,
|
|
762
763
|
!1,
|
|
763
764
|
null,
|
|
764
765
|
null
|
|
765
766
|
);
|
|
766
|
-
const
|
|
767
|
-
let
|
|
768
|
-
const
|
|
767
|
+
const oo = so.exports;
|
|
768
|
+
let Et = 0;
|
|
769
|
+
const lo = {
|
|
769
770
|
beforeCreate() {
|
|
770
|
-
this.uuid =
|
|
771
|
+
this.uuid = Et.toString(), Et += 1;
|
|
771
772
|
}
|
|
772
773
|
};
|
|
773
|
-
var
|
|
774
|
+
var ao = function() {
|
|
774
775
|
var t = this, n = t._self._c;
|
|
775
776
|
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: "#001222", "clip-path": "url(#uia-ui-assets/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-ui-assets/icons-16-sort_descending__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
776
|
-
},
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
777
|
+
}, io = [], ro = /* @__PURE__ */ j(
|
|
778
|
+
lo,
|
|
779
|
+
ao,
|
|
780
|
+
io,
|
|
780
781
|
!1,
|
|
781
782
|
null,
|
|
782
783
|
null
|
|
783
784
|
);
|
|
784
|
-
const
|
|
785
|
-
let
|
|
786
|
-
const
|
|
785
|
+
const co = ro.exports;
|
|
786
|
+
let Rt = 0;
|
|
787
|
+
const uo = {
|
|
787
788
|
beforeCreate() {
|
|
788
|
-
this.uuid =
|
|
789
|
+
this.uuid = Rt.toString(), Rt += 1;
|
|
789
790
|
}
|
|
790
791
|
};
|
|
791
|
-
var
|
|
792
|
+
var fo = function() {
|
|
792
793
|
var t = this, n = t._self._c;
|
|
793
794
|
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: "#001222", d: "M8 11.25L12.5 5.25H3.5L8 11.25Z" } })]);
|
|
794
|
-
},
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
795
|
+
}, go = [], _o = /* @__PURE__ */ j(
|
|
796
|
+
uo,
|
|
797
|
+
fo,
|
|
798
|
+
go,
|
|
798
799
|
!1,
|
|
799
800
|
null,
|
|
800
801
|
null
|
|
801
802
|
);
|
|
802
|
-
const
|
|
803
|
+
const vo = _o.exports, mo = {
|
|
803
804
|
"en-US": {
|
|
804
805
|
columnActions: "{name} column actions",
|
|
805
806
|
deselectAll: "Deselect all",
|
|
@@ -834,11 +835,11 @@ const fo = uo.exports, go = {
|
|
|
834
835
|
selectAll: "Selecionar tudo",
|
|
835
836
|
unfreezeColumn: "Descongelar coluna"
|
|
836
837
|
}
|
|
837
|
-
},
|
|
838
|
-
i18n: { messages:
|
|
838
|
+
}, kt = Symbol("data-grid slashed zero key"), Ae = Symbol("data-grid small container key"), Ie = Symbol("data-grid touch device key"), Co = {
|
|
839
|
+
i18n: { messages: mo },
|
|
839
840
|
name: "data-grid-columns"
|
|
840
|
-
},
|
|
841
|
-
...
|
|
841
|
+
}, ho = /* @__PURE__ */ ve({
|
|
842
|
+
...Co,
|
|
842
843
|
props: {
|
|
843
844
|
/**
|
|
844
845
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -978,116 +979,116 @@ const fo = uo.exports, go = {
|
|
|
978
979
|
},
|
|
979
980
|
emits: ["sort", "column-hover"],
|
|
980
981
|
setup(s, { expose: t, emit: n }) {
|
|
981
|
-
const e = s, o = 100, { t: l } =
|
|
982
|
+
const e = s, o = 100, { t: l } = Ce(), { columns: a, sortBy: r } = Ge(e), f = b(), c = b({}), L = b({}), m = b(), E = b(), h = (d) => n(Z.SELECT_ALL_ROWS, d), u = (d) => d.field === oe, T = _(
|
|
982
983
|
() => [
|
|
983
984
|
e.selectionState !== "page" && {
|
|
984
985
|
text: l("selectPage"),
|
|
985
|
-
handler: () =>
|
|
986
|
+
handler: () => h(!0)
|
|
986
987
|
},
|
|
987
988
|
{
|
|
988
989
|
text: l("selectAll"),
|
|
989
|
-
handler: () => n(
|
|
990
|
+
handler: () => n(Z.SELECT_ALL_ACROSS_PAGES)
|
|
990
991
|
},
|
|
991
992
|
e.selectionState !== "none" && {
|
|
992
993
|
text: l("deselectAll"),
|
|
993
|
-
handler: () => n(
|
|
994
|
+
handler: () => n(Z.DESELECT_ALL)
|
|
994
995
|
}
|
|
995
996
|
].filter(Boolean)
|
|
996
|
-
), { startResize:
|
|
997
|
-
var
|
|
997
|
+
), { startResize: O, isResizing: D, columnHoverEventToEmitAfterResizing: S } = hs(a, n), { isSorting: i, getSortingDirection: v, sortByColumnField: R } = Ns(r, a, n), A = (d) => {
|
|
998
|
+
var re;
|
|
998
999
|
if (!d.sortable)
|
|
999
1000
|
return null;
|
|
1000
|
-
const
|
|
1001
|
-
return
|
|
1002
|
-
[
|
|
1003
|
-
[
|
|
1004
|
-
}[
|
|
1005
|
-
},
|
|
1006
|
-
dragstart: (
|
|
1007
|
-
n(
|
|
1001
|
+
const F = (re = e.sortBy.find(({ field: ce }) => ce === d.field)) == null ? void 0 : re.direction;
|
|
1002
|
+
return F ? {
|
|
1003
|
+
[we.ASCENDING]: Oe.ASCENDING,
|
|
1004
|
+
[we.DESCENDING]: Oe.DESCENDING
|
|
1005
|
+
}[F] : Oe.NONE;
|
|
1006
|
+
}, g = _(() => (d) => e.hasDraggableColumns ? {
|
|
1007
|
+
dragstart: (F) => {
|
|
1008
|
+
n(Z.COLUMN_DRAG_START, d, F);
|
|
1008
1009
|
},
|
|
1009
|
-
dragover: (
|
|
1010
|
-
|
|
1010
|
+
dragover: (F) => {
|
|
1011
|
+
F.preventDefault();
|
|
1011
1012
|
},
|
|
1012
|
-
dragenter: (
|
|
1013
|
-
|
|
1013
|
+
dragenter: (F) => {
|
|
1014
|
+
F.preventDefault(), n(Z.COLUMN_DRAG_ENTER, d, F);
|
|
1014
1015
|
},
|
|
1015
1016
|
drop: () => {
|
|
1016
|
-
n(
|
|
1017
|
+
n(Z.COLUMN_DROP, d);
|
|
1017
1018
|
},
|
|
1018
1019
|
dragend: () => {
|
|
1019
|
-
n(
|
|
1020
|
+
n(Z.COLUMN_DRAG_END);
|
|
1020
1021
|
}
|
|
1021
|
-
} : {}),
|
|
1022
|
+
} : {}), C = _(
|
|
1022
1023
|
() => (d) => [
|
|
1023
1024
|
{
|
|
1024
1025
|
text: l("moveColumnLeft"),
|
|
1025
|
-
handler: () => n(
|
|
1026
|
-
icon:
|
|
1026
|
+
handler: () => n(Z.COLUMN_MOVE, d, -1),
|
|
1027
|
+
icon: us,
|
|
1027
1028
|
disabled: e.columns[0].field === d.field
|
|
1028
1029
|
},
|
|
1029
1030
|
{
|
|
1030
1031
|
text: l("moveColumnRight"),
|
|
1031
|
-
handler: () => n(
|
|
1032
|
-
icon:
|
|
1032
|
+
handler: () => n(Z.COLUMN_MOVE, d, 1),
|
|
1033
|
+
icon: Ks,
|
|
1033
1034
|
disabled: e.columns[e.columns.length - 1].field === d.field
|
|
1034
1035
|
},
|
|
1035
|
-
!
|
|
1036
|
+
!H.value && {
|
|
1036
1037
|
text: d != null && d.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
1037
|
-
handler: () => n(
|
|
1038
|
-
icon:
|
|
1038
|
+
handler: () => n(Z.COLUMN_UPDATE, { ...d, frozen: !(d != null && d.frozen) }),
|
|
1039
|
+
icon: Pt
|
|
1039
1040
|
},
|
|
1040
1041
|
{
|
|
1041
1042
|
text: (d == null ? void 0 : d.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
1042
1043
|
handler: () => {
|
|
1043
|
-
n(
|
|
1044
|
+
n(Z.COLUMN_UPDATE, {
|
|
1044
1045
|
...d,
|
|
1045
1046
|
visible: (d == null ? void 0 : d.visible) === !1
|
|
1046
1047
|
});
|
|
1047
1048
|
},
|
|
1048
|
-
icon: (d == null ? void 0 : d.visible) !== !1 ?
|
|
1049
|
+
icon: (d == null ? void 0 : d.visible) !== !1 ? fs : gs,
|
|
1049
1050
|
disabled: (d == null ? void 0 : d.mandatory) || (d == null ? void 0 : d.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
1050
1051
|
}
|
|
1051
1052
|
].filter(Boolean)
|
|
1052
|
-
),
|
|
1053
|
-
|
|
1054
|
-
},
|
|
1055
|
-
const
|
|
1056
|
-
d.field ===
|
|
1053
|
+
), y = (d) => {
|
|
1054
|
+
m.value = d.field, E.value && clearTimeout(E.value);
|
|
1055
|
+
}, B = (d) => {
|
|
1056
|
+
const F = setTimeout(() => {
|
|
1057
|
+
d.field === m.value && (m.value = "");
|
|
1057
1058
|
}, o);
|
|
1058
|
-
|
|
1059
|
-
},
|
|
1060
|
-
let
|
|
1059
|
+
E.value = F;
|
|
1060
|
+
}, q = (d) => {
|
|
1061
|
+
let F = {
|
|
1061
1062
|
mouseenter: () => {
|
|
1062
|
-
|
|
1063
|
+
y(d), D.value ? S.value = d : n("column-hover", d);
|
|
1063
1064
|
},
|
|
1064
1065
|
mouseleave: () => {
|
|
1065
|
-
|
|
1066
|
+
B(d), D.value ? S.value = null : n("column-hover", null);
|
|
1066
1067
|
},
|
|
1067
1068
|
focus: () => {
|
|
1068
|
-
|
|
1069
|
+
y(d), u(d) && Ke(c.value[d.field]);
|
|
1069
1070
|
},
|
|
1070
|
-
focusout: (
|
|
1071
|
-
var
|
|
1072
|
-
(
|
|
1071
|
+
focusout: (te) => {
|
|
1072
|
+
var re;
|
|
1073
|
+
(re = f.value) != null && re.contains(te == null ? void 0 : te.relatedTarget) || B(d);
|
|
1073
1074
|
}
|
|
1074
1075
|
};
|
|
1075
|
-
return
|
|
1076
|
-
...
|
|
1077
|
-
...
|
|
1078
|
-
}),
|
|
1079
|
-
},
|
|
1080
|
-
var
|
|
1081
|
-
((
|
|
1082
|
-
},
|
|
1076
|
+
return u(d) || (F = {
|
|
1077
|
+
...F,
|
|
1078
|
+
...g.value(d)
|
|
1079
|
+
}), F;
|
|
1080
|
+
}, G = (d) => d.infoIconTooltip || d.sortable || e.hasColumnPanel, X = (d, F) => {
|
|
1081
|
+
var te;
|
|
1082
|
+
((te = c.value) == null ? void 0 : te[F]) === void 0 && (c.value = { ...c.value, [F]: null }), d !== null && (c.value[F] = d);
|
|
1083
|
+
}, H = _e(
|
|
1083
1084
|
Ae,
|
|
1084
|
-
|
|
1085
|
-
), Y =
|
|
1086
|
-
var
|
|
1085
|
+
_(() => !1)
|
|
1086
|
+
), K = _e(Ie, b(!1)), Y = _(() => {
|
|
1087
|
+
var F;
|
|
1087
1088
|
const d = {
|
|
1088
1089
|
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
1089
1090
|
};
|
|
1090
|
-
return (
|
|
1091
|
+
return (F = a.value[0]) != null && F.frozen && !H.value ? {
|
|
1091
1092
|
...d,
|
|
1092
1093
|
"b-data-grid-columns--frozen": !0,
|
|
1093
1094
|
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
@@ -1096,44 +1097,44 @@ const fo = uo.exports, go = {
|
|
|
1096
1097
|
...d,
|
|
1097
1098
|
"b-data-grid-columns--unfrozen": !0
|
|
1098
1099
|
};
|
|
1099
|
-
}),
|
|
1100
|
+
}), P = _(() => ({
|
|
1100
1101
|
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1101
|
-
})),
|
|
1102
|
-
var
|
|
1102
|
+
})), M = (d, F) => d && F === 0 ? gt.BOTTOM_START : gt.BOTTOM_END, p = (d, F) => {
|
|
1103
|
+
var te, re, ce, be, w, x, k, Q, ie, ue;
|
|
1103
1104
|
return {
|
|
1104
1105
|
"b-data-grid-columns__column--column-hovered": d.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1105
1106
|
"b-data-grid-columns__column--column-hovered-no-border-left": d.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1106
1107
|
"b-data-grid-columns__column--column-hovered-no-border-right": d.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1107
|
-
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns &&
|
|
1108
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && F === a.value.length - 1,
|
|
1108
1109
|
"b-data-grid-columns__column--sortable": d.sortable,
|
|
1109
|
-
"b-data-grid-columns__column--padding-left-unset": ((
|
|
1110
|
-
"b-data-grid-columns__column--padding-right-unset": ((
|
|
1110
|
+
"b-data-grid-columns__column--padding-left-unset": ((te = d == null ? void 0 : d.padding) == null ? void 0 : te.left) === !1,
|
|
1111
|
+
"b-data-grid-columns__column--padding-right-unset": ((re = d == null ? void 0 : d.padding) == null ? void 0 : re.right) === !1,
|
|
1111
1112
|
"b-data-grid-columns__column--numeric": d == null ? void 0 : d.numeric,
|
|
1112
1113
|
"b-data-grid-columns__column--frozen": d == null ? void 0 : d.frozen,
|
|
1113
|
-
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((
|
|
1114
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((
|
|
1115
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((
|
|
1114
|
+
"b-data-grid-columns__column--is-re-ordering": (d == null ? void 0 : d.field) === ((be = (ce = e.draggingColumns) == null ? void 0 : ce.dragging) == null ? void 0 : be.field),
|
|
1115
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (d == null ? void 0 : d.field) === ((x = (w = e.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : x.field) && ((k = e.draggingColumns) == null ? void 0 : k.dragToLeft),
|
|
1116
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (d == null ? void 0 : d.field) === ((ie = (Q = e.draggingColumns) == null ? void 0 : Q.target) == null ? void 0 : ie.field) && !((ue = e.draggingColumns) != null && ue.dragToLeft),
|
|
1116
1117
|
"b-data-grid-columns__column--with-sorting-or-column-panel": d.sortable || d.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1117
|
-
"b-data-grid-columns--small-container":
|
|
1118
|
+
"b-data-grid-columns--small-container": H.value
|
|
1118
1119
|
};
|
|
1119
|
-
},
|
|
1120
|
+
}, U = (d) => ({
|
|
1120
1121
|
"b-data-grid-columns__column-header-and-actions--numeric": d == null ? void 0 : d.numeric
|
|
1121
|
-
}), F = (d) => ({
|
|
1122
|
-
"b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
|
|
1123
1122
|
}), z = (d) => ({
|
|
1123
|
+
"b-data-grid-columns__column-actions--numeric": d == null ? void 0 : d.numeric
|
|
1124
|
+
}), $ = (d) => ({
|
|
1124
1125
|
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1125
1126
|
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === d.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1126
|
-
}),
|
|
1127
|
+
}), me = _(() => ({
|
|
1127
1128
|
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1128
|
-
})),
|
|
1129
|
-
"b-data-grid-columns__menu--hovered":
|
|
1129
|
+
})), ne = (d) => ({
|
|
1130
|
+
"b-data-grid-columns__menu--hovered": m.value === d.field || K.value
|
|
1130
1131
|
});
|
|
1131
1132
|
return t({
|
|
1132
|
-
columnHeaderRefs:
|
|
1133
|
-
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy:
|
|
1133
|
+
columnHeaderRefs: c
|
|
1134
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: r, allColumnsRef: f, columnHeaderRefs: c, contextMenuRef: L, hoveredColumnField: m, closingTimeOutId: E, onAllRowSelect: h, isActionsColumn: u, selectAllMenu: T, startResize: O, isResizing: D, columnHoverEventToEmitAfterResizing: S, isSorting: i, getSortingDirection: v, sortByColumnField: R, getSortingColumnDirection: A, draggingEventsForColumn: g, contextualMenuData: C, showContextualMenu: y, hideContextualMenu: B, dataGridColumnEvents: q, hasColumnActions: G, registerColumnsRefs: X, isSmallContainer: H, isTouchDevice: K, conditionalColumnsClasses: Y, conditionalSelectColumnClasses: P, computeMenuPosition: M, conditionalColumnClasses: p, conditionalColumnHeaderAndActionsClasses: U, conditionalColumnActionsClasses: z, conditionalColumnSeparatorClasses: $, conditionalColumnHeaderClasses: me, conditionalColumnMenuClasses: ne, BentoCheckbox: xt, BentoDatagridSortDirection: we, BentoTypography: Le, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: ye, BentoInfoIcon: cs, DatagridColumnsEvent: Z, BentoMenu: Ft, BentoToggleButton: qe, ArrowUpAndDownSortIcon: Hs, SortAscendingIcon: oo, SortDescendingIcon: co, TriangleDown: vo };
|
|
1134
1135
|
}
|
|
1135
1136
|
});
|
|
1136
|
-
var
|
|
1137
|
+
var po = function() {
|
|
1137
1138
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1138
1139
|
return n("div", { ref: "allColumnsRef", staticClass: "b-data-grid-columns", class: e.conditionalColumnsClasses, attrs: { "data-testid": "data-grid-columns" } }, [t._l(e.columns, function(o, l) {
|
|
1139
1140
|
return n("div", t._g({ key: o.field, ref: (a) => e.registerColumnsRefs(a, o.field), refInFor: !0, staticClass: "b-data-grid-columns__column", class: e.conditionalColumnClasses(o, l), style: { width: o.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${o.width}px` }, attrs: { "aria-colindex": l + 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", class: e.conditionalSelectColumnClasses }, [t.selectableAcrossPages ? t._e() : n(e.BentoCheckbox, { attrs: { "aria-label": e.t("selectAll"), "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 ? [t.selectionState === "all" ? n(e.BentoCheckbox, { staticClass: "b-data-grid-columns__deselect-all-checkbox", attrs: { "aria-label": e.t("deselectAll"), "model-value": t.allItemsSelectedState.allItemsSelected, "data-testid": "checkbox-deselect-all", value: "data-grid-deselect-all" }, on: { input: function(a) {
|
|
@@ -1156,44 +1157,44 @@ var Co = function() {
|
|
|
1156
1157
|
a.stopPropagation();
|
|
1157
1158
|
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1158
1159
|
}), t.rowActionsMaximumWidth && !t.isFrozenColumns ? [n("div", { staticClass: "b-data-grid-columns__row-actions-filler", attrs: { role: "presentation" } }), n("div", { ref: (o) => e.registerColumnsRefs(o, e.DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME), staticClass: "b-data-grid-columns__column", style: { minWidth: `${t.rowActionsMaximumWidth}px` }, attrs: { "aria-label": e.t("rowActionsColumn"), "aria-colindex": e.columns.length + 1, role: "columnheader", tabindex: "0" } })] : t._e()], 2);
|
|
1159
|
-
},
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1160
|
+
}, wo = [], bo = /* @__PURE__ */ j(
|
|
1161
|
+
ho,
|
|
1162
|
+
po,
|
|
1163
|
+
wo,
|
|
1163
1164
|
!1,
|
|
1164
1165
|
null,
|
|
1165
|
-
"
|
|
1166
|
+
"802c1297"
|
|
1166
1167
|
);
|
|
1167
|
-
const
|
|
1168
|
-
var
|
|
1169
|
-
let
|
|
1170
|
-
const
|
|
1168
|
+
const So = bo.exports;
|
|
1169
|
+
var fe = /* @__PURE__ */ ((s) => (s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s))(fe || {});
|
|
1170
|
+
let yt = 0;
|
|
1171
|
+
const Eo = {
|
|
1171
1172
|
beforeCreate() {
|
|
1172
|
-
this.uuid =
|
|
1173
|
+
this.uuid = yt.toString(), yt += 1;
|
|
1173
1174
|
}
|
|
1174
1175
|
};
|
|
1175
|
-
var
|
|
1176
|
+
var Ro = function() {
|
|
1176
1177
|
var t = this, n = t._self._c;
|
|
1177
1178
|
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: "#001222", "clip-path": "url(#uia-ui-assets/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-ui-assets/icons-16-settings__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
1178
|
-
},
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1179
|
+
}, yo = [], Lo = /* @__PURE__ */ j(
|
|
1180
|
+
Eo,
|
|
1181
|
+
Ro,
|
|
1182
|
+
yo,
|
|
1182
1183
|
!1,
|
|
1183
1184
|
null,
|
|
1184
1185
|
null
|
|
1185
1186
|
);
|
|
1186
|
-
const
|
|
1187
|
+
const Ao = Lo.exports, To = {
|
|
1187
1188
|
"en-US": {
|
|
1188
1189
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1189
1190
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1190
1191
|
}
|
|
1191
|
-
},
|
|
1192
|
-
i18n: { messages:
|
|
1192
|
+
}, Oo = ve({
|
|
1193
|
+
i18n: { messages: To },
|
|
1193
1194
|
name: "bento-data-grid",
|
|
1194
1195
|
components: {
|
|
1195
|
-
BentoFreezeIcon:
|
|
1196
|
-
BentoToggle:
|
|
1196
|
+
BentoFreezeIcon: Pt,
|
|
1197
|
+
BentoToggle: Ut
|
|
1197
1198
|
},
|
|
1198
1199
|
props: {
|
|
1199
1200
|
/**
|
|
@@ -1213,57 +1214,57 @@ const Ro = Eo.exports, yo = {
|
|
|
1213
1214
|
},
|
|
1214
1215
|
emits: ["visible-column", "updated-column"],
|
|
1215
1216
|
setup(s, { emit: t }) {
|
|
1216
|
-
const { t: n } =
|
|
1217
|
-
var
|
|
1218
|
-
return (
|
|
1219
|
-
}), l =
|
|
1220
|
-
var
|
|
1221
|
-
return ((
|
|
1222
|
-
}), a =
|
|
1217
|
+
const { t: n } = Ce(), e = b(!1), o = _(() => {
|
|
1218
|
+
var E;
|
|
1219
|
+
return (E = s.column) == null ? void 0 : E.frozen;
|
|
1220
|
+
}), l = _(() => {
|
|
1221
|
+
var E;
|
|
1222
|
+
return ((E = s.column) == null ? void 0 : E.visible) !== !1;
|
|
1223
|
+
}), a = _e(
|
|
1223
1224
|
Ae,
|
|
1224
|
-
|
|
1225
|
-
),
|
|
1225
|
+
_(() => !1)
|
|
1226
|
+
), r = () => {
|
|
1226
1227
|
t("visible-column", { ...s.column, visible: !l.value });
|
|
1227
1228
|
}, f = () => {
|
|
1228
1229
|
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1229
|
-
},
|
|
1230
|
+
}, c = () => {
|
|
1230
1231
|
o.value || (e.value = !0);
|
|
1231
|
-
},
|
|
1232
|
+
}, L = () => {
|
|
1232
1233
|
o.value || (e.value = !1);
|
|
1233
|
-
},
|
|
1234
|
+
}, m = _(() => ({
|
|
1234
1235
|
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1235
1236
|
}));
|
|
1236
1237
|
return {
|
|
1237
1238
|
// Values
|
|
1238
1239
|
isFreezeIconOptionShown: e,
|
|
1239
1240
|
isColumnFrozen: o,
|
|
1240
|
-
freezeIconConditionalClasses:
|
|
1241
|
+
freezeIconConditionalClasses: m,
|
|
1241
1242
|
isColumnVisible: l,
|
|
1242
1243
|
isSmallContainer: a,
|
|
1243
1244
|
// Methods
|
|
1244
|
-
toggleColumnVisibility:
|
|
1245
|
-
showFreezeIcon:
|
|
1246
|
-
hideFreezeIcon:
|
|
1245
|
+
toggleColumnVisibility: r,
|
|
1246
|
+
showFreezeIcon: c,
|
|
1247
|
+
hideFreezeIcon: L,
|
|
1247
1248
|
toggleColumnFreeze: f,
|
|
1248
1249
|
// Translations
|
|
1249
1250
|
t: n
|
|
1250
1251
|
};
|
|
1251
1252
|
}
|
|
1252
1253
|
});
|
|
1253
|
-
var
|
|
1254
|
+
var Io = function() {
|
|
1254
1255
|
var t = this, n = t._self._c;
|
|
1255
1256
|
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) && !t.isSmallContainer, expression: "(isColumnFrozen || isFreezeIconOptionShown) && !isSmallContainer" }], 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) {
|
|
1256
1257
|
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1257
1258
|
} } })], 1);
|
|
1258
|
-
},
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1259
|
+
}, No = [], Do = /* @__PURE__ */ j(
|
|
1260
|
+
Oo,
|
|
1261
|
+
Io,
|
|
1262
|
+
No,
|
|
1262
1263
|
!1,
|
|
1263
1264
|
null,
|
|
1264
|
-
"
|
|
1265
|
+
"b49cbd8d"
|
|
1265
1266
|
);
|
|
1266
|
-
const
|
|
1267
|
+
const xo = Do.exports, Bo = {
|
|
1267
1268
|
"en-US": {
|
|
1268
1269
|
appearance: "Appearance",
|
|
1269
1270
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
@@ -1291,22 +1292,22 @@ const Io = Oo.exports, No = {
|
|
|
1291
1292
|
condensed: "Condensado",
|
|
1292
1293
|
search: "Buscar"
|
|
1293
1294
|
}
|
|
1294
|
-
},
|
|
1295
|
-
i18n: { messages:
|
|
1295
|
+
}, Fo = ve({
|
|
1296
|
+
i18n: { messages: Bo },
|
|
1296
1297
|
name: "bento-data-grid",
|
|
1297
1298
|
components: {
|
|
1298
|
-
BentoButton:
|
|
1299
|
-
BentoCrossIcon:
|
|
1300
|
-
BentoPopover:
|
|
1301
|
-
BentoSettingsIcon:
|
|
1302
|
-
BentoToggleButton:
|
|
1303
|
-
BentoDataGridConfigSettingsConfigRow:
|
|
1304
|
-
BentoSearchBar:
|
|
1305
|
-
BentoSearchIcon:
|
|
1306
|
-
BentoToggle:
|
|
1299
|
+
BentoButton: Bt,
|
|
1300
|
+
BentoCrossIcon: Nt,
|
|
1301
|
+
BentoPopover: ss,
|
|
1302
|
+
BentoSettingsIcon: Ao,
|
|
1303
|
+
BentoToggleButton: qe,
|
|
1304
|
+
BentoDataGridConfigSettingsConfigRow: xo,
|
|
1305
|
+
BentoSearchBar: _s,
|
|
1306
|
+
BentoSearchIcon: ms,
|
|
1307
|
+
BentoToggle: Ut,
|
|
1307
1308
|
BentoTypography: Le
|
|
1308
1309
|
},
|
|
1309
|
-
directives: { BentoClickOutsideDirective:
|
|
1310
|
+
directives: { BentoClickOutsideDirective: Cs },
|
|
1310
1311
|
props: {
|
|
1311
1312
|
/**
|
|
1312
1313
|
* Column definitions
|
|
@@ -1331,75 +1332,75 @@ const Io = Oo.exports, No = {
|
|
|
1331
1332
|
}
|
|
1332
1333
|
},
|
|
1333
1334
|
emits: [
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1335
|
+
fe.UPDATE_CONDENSED,
|
|
1336
|
+
fe.UPDATE_COLUMNS,
|
|
1337
|
+
fe.UPDATE_ZEBRA_ROWS
|
|
1337
1338
|
],
|
|
1338
1339
|
setup(s, { emit: t }) {
|
|
1339
|
-
const { t: n } =
|
|
1340
|
-
|
|
1341
|
-
},
|
|
1342
|
-
() => !s.columns.some((
|
|
1340
|
+
const { t: n } = Ce(), e = b(null), o = Pe("data-grid-config-settings-popover"), l = b(null), a = b(!1), r = b(!0), f = b(null), c = b(""), L = $e(s, "columns"), m = b(!1), E = vs(c, L), h = () => {
|
|
1341
|
+
c.value = "";
|
|
1342
|
+
}, u = _(
|
|
1343
|
+
() => !s.columns.some((C) => C.visible === !1 && !C.mandatory)
|
|
1343
1344
|
), T = () => {
|
|
1344
|
-
|
|
1345
|
-
var
|
|
1346
|
-
return (
|
|
1347
|
-
}) :
|
|
1348
|
-
var
|
|
1349
|
-
return (
|
|
1350
|
-
}),
|
|
1351
|
-
},
|
|
1352
|
-
const
|
|
1353
|
-
...
|
|
1354
|
-
visible:
|
|
1345
|
+
h(), m.value = !m.value, m.value ? le(() => {
|
|
1346
|
+
var C;
|
|
1347
|
+
return (C = l.value.$refs.bentoInputField) == null ? void 0 : C.focusInput();
|
|
1348
|
+
}) : le(() => {
|
|
1349
|
+
var C, y;
|
|
1350
|
+
return (y = (C = f == null ? void 0 : f.value) == null ? void 0 : C.$el) == null ? void 0 : y.focus();
|
|
1351
|
+
}), r.value = u.value;
|
|
1352
|
+
}, O = (C) => C.mandatory ?? !1, D = (C) => {
|
|
1353
|
+
const y = s.columns.map((B) => ({
|
|
1354
|
+
...B,
|
|
1355
|
+
visible: C.field === B.field ? C.visible : B.visible
|
|
1355
1356
|
}));
|
|
1356
|
-
t(
|
|
1357
|
-
},
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
s.columns.map((
|
|
1357
|
+
t(fe.UPDATE_COLUMNS, y);
|
|
1358
|
+
}, S = (C) => {
|
|
1359
|
+
C ? t(
|
|
1360
|
+
fe.UPDATE_COLUMNS,
|
|
1361
|
+
s.columns.map((y) => ({ ...y, visible: !0 }))
|
|
1361
1362
|
) : t(
|
|
1362
|
-
|
|
1363
|
-
s.columns.map((
|
|
1363
|
+
fe.UPDATE_COLUMNS,
|
|
1364
|
+
s.columns.map((y) => ({ ...y, visible: (y == null ? void 0 : y.mandatory) === !0 }))
|
|
1364
1365
|
);
|
|
1365
|
-
},
|
|
1366
|
-
const
|
|
1367
|
-
...
|
|
1368
|
-
frozen:
|
|
1366
|
+
}, i = (C) => {
|
|
1367
|
+
const y = s.columns.map((B) => ({
|
|
1368
|
+
...B,
|
|
1369
|
+
frozen: C.field === B.field ? !!(C != null && C.frozen) : !!(B != null && B.frozen)
|
|
1369
1370
|
}));
|
|
1370
|
-
t(
|
|
1371
|
-
},
|
|
1372
|
-
a.value =
|
|
1371
|
+
t(fe.UPDATE_COLUMNS, y);
|
|
1372
|
+
}, v = (C) => {
|
|
1373
|
+
a.value = C, r.value = u.value;
|
|
1373
1374
|
};
|
|
1374
1375
|
return {
|
|
1375
1376
|
// Values
|
|
1376
1377
|
configSettingsButtonRef: e,
|
|
1377
1378
|
popoverId: o,
|
|
1378
1379
|
isConfigSettingsPanelOpen: a,
|
|
1379
|
-
allColumnsVisbilityToggleState:
|
|
1380
|
-
filteredColumnVisibilityColumns:
|
|
1381
|
-
searchTerm:
|
|
1382
|
-
isColumnVisibilityFilterShown:
|
|
1380
|
+
allColumnsVisbilityToggleState: r,
|
|
1381
|
+
filteredColumnVisibilityColumns: E,
|
|
1382
|
+
searchTerm: c,
|
|
1383
|
+
isColumnVisibilityFilterShown: m,
|
|
1383
1384
|
searchBarRef: l,
|
|
1384
1385
|
searchButtonRef: f,
|
|
1385
|
-
DATAGRID_ACTIONS_COLUMN_FIELD_NAME:
|
|
1386
|
+
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe,
|
|
1386
1387
|
// Methods
|
|
1387
|
-
setConfigSettingsPanelVisibility:
|
|
1388
|
-
emitCondensedToggle: (
|
|
1389
|
-
toggleAllColumnVisibility:
|
|
1390
|
-
clearAction:
|
|
1388
|
+
setConfigSettingsPanelVisibility: v,
|
|
1389
|
+
emitCondensedToggle: (C) => t(fe.UPDATE_CONDENSED, C),
|
|
1390
|
+
toggleAllColumnVisibility: S,
|
|
1391
|
+
clearAction: h,
|
|
1391
1392
|
toggleColumnFilter: T,
|
|
1392
|
-
emitVisibleColumns:
|
|
1393
|
-
emitFrozenColumns:
|
|
1394
|
-
onClickOutside: () =>
|
|
1395
|
-
isColumnVisibilityToggleDisabled:
|
|
1396
|
-
emitZebraRowsToggle: (
|
|
1393
|
+
emitVisibleColumns: D,
|
|
1394
|
+
emitFrozenColumns: i,
|
|
1395
|
+
onClickOutside: () => v(!1),
|
|
1396
|
+
isColumnVisibilityToggleDisabled: O,
|
|
1397
|
+
emitZebraRowsToggle: (C) => t(fe.UPDATE_ZEBRA_ROWS, C),
|
|
1397
1398
|
// Translations
|
|
1398
1399
|
t: n
|
|
1399
1400
|
};
|
|
1400
1401
|
}
|
|
1401
1402
|
});
|
|
1402
|
-
var
|
|
1403
|
+
var Mo = function() {
|
|
1403
1404
|
var t = this, n = t._self._c;
|
|
1404
1405
|
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) {
|
|
1405
1406
|
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
@@ -1418,15 +1419,15 @@ var xo = function() {
|
|
|
1418
1419
|
}, 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) {
|
|
1419
1420
|
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);
|
|
1420
1421
|
}), 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);
|
|
1421
|
-
},
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1422
|
+
}, Uo = [], zo = /* @__PURE__ */ j(
|
|
1423
|
+
Fo,
|
|
1424
|
+
Mo,
|
|
1425
|
+
Uo,
|
|
1425
1426
|
!1,
|
|
1426
1427
|
null,
|
|
1427
|
-
"
|
|
1428
|
+
"0e477266"
|
|
1428
1429
|
);
|
|
1429
|
-
const
|
|
1430
|
+
const $o = zo.exports, Wt = {
|
|
1430
1431
|
"en-US": {
|
|
1431
1432
|
gettingYourData: "Getting your data",
|
|
1432
1433
|
loading: "Loading",
|
|
@@ -1444,52 +1445,52 @@ const Mo = Fo.exports, Mt = {
|
|
|
1444
1445
|
loading: "Carregando",
|
|
1445
1446
|
showMore: "Mostrar mais"
|
|
1446
1447
|
}
|
|
1447
|
-
},
|
|
1448
|
-
i18n: { messages:
|
|
1449
|
-
},
|
|
1450
|
-
...
|
|
1448
|
+
}, Po = {
|
|
1449
|
+
i18n: { messages: Wt }
|
|
1450
|
+
}, ko = /* @__PURE__ */ ve({
|
|
1451
|
+
...Po,
|
|
1451
1452
|
__name: "data-grid-lazy-load",
|
|
1452
1453
|
props: {
|
|
1453
1454
|
loading: { type: Boolean },
|
|
1454
1455
|
isInfiniteScroll: { type: Boolean }
|
|
1455
1456
|
},
|
|
1456
1457
|
setup(s) {
|
|
1457
|
-
const { t } =
|
|
1458
|
-
return { __sfc: !0, t, BentoLoadingButton:
|
|
1458
|
+
const { t } = Ce();
|
|
1459
|
+
return { __sfc: !0, t, BentoLoadingButton: ls, BentoLoadingButtonState: os, BentoLoadingIndicator: Ve, BentoDatagridEvent: N };
|
|
1459
1460
|
}
|
|
1460
1461
|
});
|
|
1461
|
-
var
|
|
1462
|
+
var Wo = function() {
|
|
1462
1463
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1463
1464
|
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) {
|
|
1464
1465
|
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1465
1466
|
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1466
|
-
},
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1467
|
+
}, Go = [], Ho = /* @__PURE__ */ j(
|
|
1468
|
+
ko,
|
|
1469
|
+
Wo,
|
|
1470
|
+
Go,
|
|
1470
1471
|
!1,
|
|
1471
1472
|
null,
|
|
1472
1473
|
"fd9b8204"
|
|
1473
1474
|
);
|
|
1474
|
-
const
|
|
1475
|
-
let
|
|
1476
|
-
const
|
|
1475
|
+
const Vo = Ho.exports;
|
|
1476
|
+
let Lt = 0;
|
|
1477
|
+
const Zo = {
|
|
1477
1478
|
beforeCreate() {
|
|
1478
|
-
this.uuid =
|
|
1479
|
+
this.uuid = Lt.toString(), Lt += 1;
|
|
1479
1480
|
}
|
|
1480
1481
|
};
|
|
1481
|
-
var
|
|
1482
|
+
var jo = function() {
|
|
1482
1483
|
var t = this, n = t._self._c;
|
|
1483
1484
|
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: "#001222", d: "M9.38867 2.21717C10.4626 1.14323 12.2044 1.14323 13.2783 2.21717L13.7832 2.72205C14.857 3.79601 14.8571 5.53782 13.7832 6.6117L5.64355 14.7504H1.25V10.3558L9.38867 2.21717ZM2.75 10.9769V13.2504H5.02246L11.2715 6.9994L8.99902 4.72693L2.75 10.9769ZM12.2168 3.27772C11.7286 2.78987 10.9373 2.78967 10.4492 3.27772L10.0596 3.66639L12.332 5.93885L12.7217 5.55018C13.2098 5.06203 13.2098 4.27076 12.7217 3.7826L12.2168 3.27772Z" } })]);
|
|
1484
|
-
},
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1485
|
+
}, qo = [], Ko = /* @__PURE__ */ j(
|
|
1486
|
+
Zo,
|
|
1487
|
+
jo,
|
|
1488
|
+
qo,
|
|
1488
1489
|
!1,
|
|
1489
1490
|
null,
|
|
1490
1491
|
null
|
|
1491
1492
|
);
|
|
1492
|
-
const
|
|
1493
|
+
const At = Ko.exports, Yo = {
|
|
1493
1494
|
"en-US": {
|
|
1494
1495
|
copy: "Copy",
|
|
1495
1496
|
edit: "Edit",
|
|
@@ -1508,11 +1509,11 @@ const jo = Zo.exports, qo = {
|
|
|
1508
1509
|
more: "Mais",
|
|
1509
1510
|
open: "Abrir"
|
|
1510
1511
|
}
|
|
1511
|
-
},
|
|
1512
|
-
i18n: { messages:
|
|
1512
|
+
}, Jo = {
|
|
1513
|
+
i18n: { messages: Yo },
|
|
1513
1514
|
name: "data-grid-cell-actions"
|
|
1514
|
-
},
|
|
1515
|
-
...
|
|
1515
|
+
}, Xo = /* @__PURE__ */ ve({
|
|
1516
|
+
...Jo,
|
|
1516
1517
|
props: {
|
|
1517
1518
|
/**
|
|
1518
1519
|
* Column definitions using 'key' to relate to data object.
|
|
@@ -1581,26 +1582,76 @@ const jo = Zo.exports, qo = {
|
|
|
1581
1582
|
},
|
|
1582
1583
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1583
1584
|
setup(s, { emit: t }) {
|
|
1584
|
-
const n = s, { t: e } =
|
|
1585
|
-
"
|
|
1585
|
+
const n = s, { t: e } = Ce(), o = _e(Ie, b(!1)), l = (i) => {
|
|
1586
|
+
if ("text" in i && i.text !== void 0)
|
|
1587
|
+
return i.text;
|
|
1588
|
+
switch (i.variant) {
|
|
1589
|
+
case "copy":
|
|
1590
|
+
return e("copy");
|
|
1591
|
+
case "edit":
|
|
1592
|
+
return e("edit");
|
|
1593
|
+
case "open":
|
|
1594
|
+
return e("open");
|
|
1595
|
+
case "more":
|
|
1596
|
+
return e("more");
|
|
1597
|
+
default:
|
|
1598
|
+
return i.title;
|
|
1599
|
+
}
|
|
1600
|
+
}, a = (i) => {
|
|
1601
|
+
switch (i.variant) {
|
|
1602
|
+
case "copy":
|
|
1603
|
+
return ft;
|
|
1604
|
+
case "edit":
|
|
1605
|
+
return At;
|
|
1606
|
+
case "open":
|
|
1607
|
+
return ut;
|
|
1608
|
+
default:
|
|
1609
|
+
return;
|
|
1610
|
+
}
|
|
1611
|
+
}, r = _(() => n.columnKey === void 0), f = _(() => ({
|
|
1612
|
+
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": r.value && n.hasRightOverflow,
|
|
1586
1613
|
"b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
|
|
1587
1614
|
"b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
|
|
1588
1615
|
"b-data-grid-cell-actions__background-gradient--selected": n.isSelected
|
|
1589
|
-
})),
|
|
1590
|
-
"b-data-grid-cell-actions__actions--with-row-actions":
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1616
|
+
})), c = _(() => ({
|
|
1617
|
+
"b-data-grid-cell-actions__actions--with-row-actions": r.value,
|
|
1618
|
+
"b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
|
|
1619
|
+
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
1620
|
+
"b-data-grid-cell-actions__actions--selected": n.isSelected
|
|
1621
|
+
})), L = _(() => !r.value || r.value && n.hasRightOverflow);
|
|
1622
|
+
function m(i) {
|
|
1623
|
+
return typeof i == "function";
|
|
1594
1624
|
}
|
|
1595
|
-
const
|
|
1596
|
-
var
|
|
1597
|
-
const
|
|
1598
|
-
|
|
1625
|
+
const E = _(() => {
|
|
1626
|
+
var v;
|
|
1627
|
+
const i = m(n.cellActions) ? (v = n.cellActions) == null ? void 0 : v.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1628
|
+
if (o.value && !r.value && i) {
|
|
1629
|
+
const R = [];
|
|
1630
|
+
return i.forEach((A) => {
|
|
1631
|
+
A.menuData ? A.menuData.forEach((g) => {
|
|
1632
|
+
R.push(g);
|
|
1633
|
+
}) : R.push({
|
|
1634
|
+
text: l(A),
|
|
1635
|
+
event: A.event,
|
|
1636
|
+
critical: A.critical,
|
|
1637
|
+
disabled: A.disabled,
|
|
1638
|
+
icon: a(A)
|
|
1639
|
+
});
|
|
1640
|
+
}), [
|
|
1641
|
+
{
|
|
1642
|
+
variant: "more",
|
|
1643
|
+
isShort: !0,
|
|
1644
|
+
iconLeft: ct,
|
|
1645
|
+
menuData: O(R)
|
|
1646
|
+
}
|
|
1647
|
+
];
|
|
1648
|
+
}
|
|
1649
|
+
return !o.value && (i == null ? void 0 : i.length) > 2 && Dt(
|
|
1599
1650
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1600
|
-
),
|
|
1601
|
-
}),
|
|
1602
|
-
if (!(!
|
|
1603
|
-
switch (
|
|
1651
|
+
), i == null ? void 0 : i.slice(0, 2);
|
|
1652
|
+
}), h = _(() => (i, v) => {
|
|
1653
|
+
if (!(!v && i.isShort || v && !i.isShort))
|
|
1654
|
+
switch (i.variant) {
|
|
1604
1655
|
case "copy":
|
|
1605
1656
|
return e("copy");
|
|
1606
1657
|
case "edit":
|
|
@@ -1610,30 +1661,30 @@ const jo = Zo.exports, qo = {
|
|
|
1610
1661
|
case "more":
|
|
1611
1662
|
return e("more");
|
|
1612
1663
|
default:
|
|
1613
|
-
return
|
|
1664
|
+
return i.title;
|
|
1614
1665
|
}
|
|
1615
|
-
}),
|
|
1616
|
-
click: (
|
|
1617
|
-
|
|
1666
|
+
}), u = (i) => (i == null ? void 0 : i.event) !== void 0 ? {
|
|
1667
|
+
click: (v) => {
|
|
1668
|
+
v.stopPropagation(), i.event(n.rowDataItem, n.columnKey);
|
|
1618
1669
|
}
|
|
1619
|
-
} : {},
|
|
1620
|
-
...
|
|
1670
|
+
} : {}, T = (i) => ({
|
|
1671
|
+
...i,
|
|
1621
1672
|
handler: () => {
|
|
1622
|
-
|
|
1673
|
+
i != null && i.handler && typeof i.handler == "function" && (i == null || i.handler()), i != null && i.event && typeof i.event == "function" && (i == null || i.event(n.rowDataItem, n.columnKey));
|
|
1623
1674
|
}
|
|
1624
|
-
}),
|
|
1625
|
-
const
|
|
1626
|
-
return
|
|
1675
|
+
}), O = (i) => i.map((v) => {
|
|
1676
|
+
const R = v;
|
|
1677
|
+
return R != null && R.items && (R.items = O(R.items)), { ...T(R) };
|
|
1627
1678
|
});
|
|
1628
|
-
return { __sfc: !0, t: e, props: n, emit: t,
|
|
1629
|
-
var
|
|
1630
|
-
return (
|
|
1631
|
-
}, shouldShowMenuIconLeft: (
|
|
1679
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: r, conditionalCellActionsBackgroundGradientClasses: f, conditionalCellActionsClasses: c, showGradientElement: L, isBentoColumnCellActionsByCellValueDataFn: m, computedCellActions: E, getButtonTitle: h, generateButtonEvents: u, generateMenuEvents: T, transformMenuEvents: O, getCopyText: (i) => {
|
|
1680
|
+
var v, R;
|
|
1681
|
+
return (i == null ? void 0 : i.getCopyData) !== void 0 ? i.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (R = (v = n.rowDataItem) == null ? void 0 : v[n.columnKey]) == null ? void 0 : R.toString() : "";
|
|
1682
|
+
}, shouldShowMenuIconLeft: (i) => i.iconLeft || (i == null ? void 0 : i.variant) === "more", BentoButton: Bt, BentoMenu: Ft, Copy: ft, Edit1Icon: At, ExternalLinkIcon: ut, OptionsVerticalIcon: ct };
|
|
1632
1683
|
}
|
|
1633
1684
|
});
|
|
1634
|
-
var
|
|
1685
|
+
var Qo = function() {
|
|
1635
1686
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1636
|
-
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, l) {
|
|
1687
|
+
return n("Transition", { attrs: { name: "b-data-grid-cell-actions__animation", appear: "" } }, [n("div", { staticClass: "b-data-grid-cell-actions" }, [e.showGradientElement && !e.isTouchDevice ? n("div", { staticClass: "b-data-grid-cell-actions__background-gradient", class: e.conditionalCellActionsBackgroundGradientClasses }) : t._e(), n("div", { staticClass: "b-data-grid-cell-actions__actions", class: e.conditionalCellActionsClasses, attrs: { role: "group" } }, t._l(e.computedCellActions, function(o, l) {
|
|
1637
1688
|
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
1638
1689
|
condensed: !0,
|
|
1639
1690
|
variant: "secondary",
|
|
@@ -1659,30 +1710,30 @@ var Jo = function() {
|
|
|
1659
1710
|
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 } })];
|
|
1660
1711
|
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1661
1712
|
}), 0)])]);
|
|
1662
|
-
},
|
|
1663
|
-
Yo,
|
|
1664
|
-
Jo,
|
|
1713
|
+
}, el = [], tl = /* @__PURE__ */ j(
|
|
1665
1714
|
Xo,
|
|
1715
|
+
Qo,
|
|
1716
|
+
el,
|
|
1666
1717
|
!1,
|
|
1667
1718
|
null,
|
|
1668
|
-
"
|
|
1719
|
+
"b4facd10"
|
|
1669
1720
|
);
|
|
1670
|
-
const
|
|
1671
|
-
var
|
|
1672
|
-
const
|
|
1721
|
+
const Gt = tl.exports;
|
|
1722
|
+
var J = /* @__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))(J || {});
|
|
1723
|
+
const Tt = () => {
|
|
1673
1724
|
const s = document.activeElement;
|
|
1674
1725
|
return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
|
|
1675
|
-
},
|
|
1726
|
+
}, nl = {
|
|
1676
1727
|
"en-US": {
|
|
1677
1728
|
collapseNestedContent: "Collapse nested content",
|
|
1678
1729
|
expandNestedContent: "Expand nested content",
|
|
1679
1730
|
selectRow: "Select row"
|
|
1680
1731
|
}
|
|
1681
|
-
},
|
|
1682
|
-
i18n: { messages:
|
|
1732
|
+
}, sl = {
|
|
1733
|
+
i18n: { messages: nl },
|
|
1683
1734
|
name: "data-grid-cell"
|
|
1684
|
-
},
|
|
1685
|
-
...
|
|
1735
|
+
}, ol = /* @__PURE__ */ ve({
|
|
1736
|
+
...sl,
|
|
1686
1737
|
props: {
|
|
1687
1738
|
draggingEventsForRowCell: {
|
|
1688
1739
|
type: Function,
|
|
@@ -1825,106 +1876,104 @@ const St = () => {
|
|
|
1825
1876
|
},
|
|
1826
1877
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled"],
|
|
1827
1878
|
setup(s, { expose: t, emit: n }) {
|
|
1828
|
-
const e = s, o =
|
|
1829
|
-
var
|
|
1830
|
-
return !!((
|
|
1831
|
-
}), T =
|
|
1879
|
+
const e = s, o = He(), l = Ze(o), { t: a } = Ce(), r = b(null), f = b(null), c = b(!1), L = b([]), m = b(!1), E = b(), h = b(!1), u = _(() => {
|
|
1880
|
+
var p;
|
|
1881
|
+
return !!((p = e.rowData) != null && p[e.column.field]);
|
|
1882
|
+
}), T = _(
|
|
1832
1883
|
() => {
|
|
1833
|
-
var
|
|
1834
|
-
return e.column.field ===
|
|
1884
|
+
var p;
|
|
1885
|
+
return e.column.field === oe && ((p = e.nestedRowsElementIds) == null ? void 0 : p.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1835
1886
|
}
|
|
1836
|
-
),
|
|
1837
|
-
() => e.column.field ===
|
|
1838
|
-
),
|
|
1839
|
-
var
|
|
1840
|
-
(
|
|
1841
|
-
},
|
|
1842
|
-
|
|
1843
|
-
},
|
|
1844
|
-
const
|
|
1845
|
-
...e.draggingEventsForRowCell(
|
|
1887
|
+
), O = _(
|
|
1888
|
+
() => e.column.field === oe && !e.selectable && !e.nestedContent
|
|
1889
|
+
), D = _(() => A(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !h.value ? "0" : e.column.field === oe ? "-1" : m.value ? "0" : "-1"), S = (p, U) => (p == null ? void 0 : p.overflow) === ke.ELLIPSIS ? `${U}` : void 0, i = (p) => p ?? "-", v = (p) => e.columnSets.slice(0, p).reduce((U, { columnSet: z }) => U + z.length, 0), R = (p, U) => p + v(U), A = (p, U, z) => v() * p + R(U, z), g = (p) => {
|
|
1890
|
+
var U;
|
|
1891
|
+
(p === null || !r.value.contains(p) && !((U = L.value) != null && U.map((z) => z.value).some((z) => z === p || (z == null ? void 0 : z.contains(p))))) && (c.value = !1);
|
|
1892
|
+
}, C = () => {
|
|
1893
|
+
c.value = !1;
|
|
1894
|
+
}, y = b(!1), B = (p) => {
|
|
1895
|
+
const U = {
|
|
1896
|
+
...e.draggingEventsForRowCell(p),
|
|
1846
1897
|
// Focus on the first interactive child in the grid cell if one exists
|
|
1847
1898
|
focus: async () => {
|
|
1848
|
-
if (!
|
|
1899
|
+
if (!Tt())
|
|
1849
1900
|
return;
|
|
1850
|
-
|
|
1901
|
+
m.value = !0, h.value = !0, $t(E.value), await le(), Ke(r.value) && (y.value = !0);
|
|
1851
1902
|
},
|
|
1852
1903
|
focusout: () => {
|
|
1853
|
-
|
|
1904
|
+
Tt() && (y.value = !1);
|
|
1854
1905
|
},
|
|
1855
|
-
keydown: (
|
|
1856
|
-
|
|
1906
|
+
keydown: ($) => {
|
|
1907
|
+
$.key !== de.TAB && (y.value = !1, m.value = !1, pe(r.value));
|
|
1857
1908
|
}
|
|
1858
|
-
},
|
|
1859
|
-
return
|
|
1860
|
-
|
|
1861
|
-
}),
|
|
1862
|
-
|
|
1863
|
-
},
|
|
1864
|
-
|
|
1865
|
-
},
|
|
1866
|
-
|
|
1867
|
-
},
|
|
1868
|
-
|
|
1869
|
-
},
|
|
1870
|
-
M.focusout(z), _(z == null ? void 0 : z.relatedTarget);
|
|
1871
|
-
}), F;
|
|
1909
|
+
}, z = { ...U };
|
|
1910
|
+
return p.frozen && (z.keyup = ($) => n("on-frozen-columns-key-press", $), z.keydown = ($) => {
|
|
1911
|
+
U.keydown($), n("on-frozen-columns-key-press", $);
|
|
1912
|
+
}), p.cellActions && (z.mouseenter = () => {
|
|
1913
|
+
c.value = !0;
|
|
1914
|
+
}, z.mouseleave = ($) => {
|
|
1915
|
+
g($ == null ? void 0 : $.relatedTarget);
|
|
1916
|
+
}, z.focus = async ($) => {
|
|
1917
|
+
U.focus($), await le(), c.value = !0;
|
|
1918
|
+
}, z.focusout = ($) => {
|
|
1919
|
+
U.focusout($), g($ == null ? void 0 : $.relatedTarget);
|
|
1920
|
+
}), z;
|
|
1872
1921
|
};
|
|
1873
|
-
|
|
1874
|
-
|
|
1922
|
+
Se(() => {
|
|
1923
|
+
E.value = pe(r.value);
|
|
1875
1924
|
});
|
|
1876
|
-
const
|
|
1925
|
+
const q = () => {
|
|
1877
1926
|
n("nested-content-toggled");
|
|
1878
1927
|
};
|
|
1879
|
-
|
|
1880
|
-
() =>
|
|
1928
|
+
ae(
|
|
1929
|
+
() => c.value,
|
|
1881
1930
|
() => {
|
|
1882
|
-
|
|
1931
|
+
c.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
1883
1932
|
}
|
|
1884
1933
|
);
|
|
1885
|
-
const
|
|
1886
|
-
|
|
1887
|
-
},
|
|
1888
|
-
|
|
1934
|
+
const G = (p) => {
|
|
1935
|
+
L.value.push(p);
|
|
1936
|
+
}, X = (p) => {
|
|
1937
|
+
r.value.contains(p == null ? void 0 : p.relatedTarget) || (c.value = !1);
|
|
1889
1938
|
};
|
|
1890
|
-
|
|
1891
|
-
registerMenuContainerElement:
|
|
1892
|
-
menuMouseLeave:
|
|
1939
|
+
Te(as, {
|
|
1940
|
+
registerMenuContainerElement: G,
|
|
1941
|
+
menuMouseLeave: X
|
|
1893
1942
|
});
|
|
1894
|
-
const
|
|
1943
|
+
const H = _e(kt, b(!1)), K = _e(
|
|
1895
1944
|
Ae,
|
|
1896
|
-
|
|
1897
|
-
),
|
|
1898
|
-
var
|
|
1945
|
+
_(() => !1)
|
|
1946
|
+
), Y = _e(Ie, b(!1)), P = (p) => {
|
|
1947
|
+
var U, z, $, me, ne, d, F;
|
|
1899
1948
|
return {
|
|
1900
|
-
[`b-data-grid-cell--${
|
|
1901
|
-
[`b-data-grid-cell--${
|
|
1902
|
-
[`b-data-grid-cell--${
|
|
1903
|
-
[`b-data-grid-cell--${
|
|
1904
|
-
[`b-data-grid-cell--${
|
|
1905
|
-
[`b-data-grid-cell--${
|
|
1906
|
-
[`b-data-grid-cell--${
|
|
1907
|
-
[`b-data-grid-cell--${
|
|
1908
|
-
[`b-data-grid-cell--${
|
|
1909
|
-
[`b-data-grid-cell--${
|
|
1910
|
-
[`b-data-grid-cell--${
|
|
1911
|
-
[`b-data-grid-cell--${
|
|
1912
|
-
[`b-data-grid-cell--${
|
|
1913
|
-
[`b-data-grid-cell--${
|
|
1914
|
-
[`b-data-grid-cell--${
|
|
1915
|
-
[`b-data-grid-cell--${
|
|
1916
|
-
[`b-data-grid-cell--${
|
|
1917
|
-
"b-data-grid-cell--small-container":
|
|
1949
|
+
[`b-data-grid-cell--${J.COLUMN_HOVERED}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1950
|
+
[`b-data-grid-cell--${J.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1951
|
+
[`b-data-grid-cell--${J.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (p == null ? void 0 : p.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1952
|
+
[`b-data-grid-cell--${J.PADDING_LEFT_UNSET}`]: ((U = p == null ? void 0 : p.padding) == null ? void 0 : U.left) === !1,
|
|
1953
|
+
[`b-data-grid-cell--${J.PADDING_RIGHT_UNSET}`]: ((z = p == null ? void 0 : p.padding) == null ? void 0 : z.right) === !1,
|
|
1954
|
+
[`b-data-grid-cell--${J.NUMERIC}`]: p == null ? void 0 : p.numeric,
|
|
1955
|
+
[`b-data-grid-cell--${J.CONDENSED}`]: e.condensed,
|
|
1956
|
+
[`b-data-grid-cell--${J.OVERFLOW_ELLIPSIS}`]: (p == null ? void 0 : p.overflow) === ke.ELLIPSIS,
|
|
1957
|
+
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING}`]: (($ = e.draggingColumns.dragging) == null ? void 0 : $.field) === p.field,
|
|
1958
|
+
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((me = e.draggingColumns.target) == null ? void 0 : me.field) === p.field && ((ne = e.draggingColumns) == null ? void 0 : ne.dragToLeft),
|
|
1959
|
+
[`b-data-grid-cell--${J.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((d = e.draggingColumns.target) == null ? void 0 : d.field) === p.field && !((F = e.draggingColumns) != null && F.dragToLeft),
|
|
1960
|
+
[`b-data-grid-cell--${J.FROZEN}`]: p == null ? void 0 : p.frozen,
|
|
1961
|
+
[`b-data-grid-cell--${J.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
1962
|
+
[`b-data-grid-cell--${J.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && p.field === oe,
|
|
1963
|
+
[`b-data-grid-cell--${J.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && p.field === oe,
|
|
1964
|
+
[`b-data-grid-cell--${J.ACTION_COL_SELECTION_ENABLED}`]: p.field === oe && e.selectable,
|
|
1965
|
+
[`b-data-grid-cell--${J.SLASHED_ZERO}`]: H.value,
|
|
1966
|
+
"b-data-grid-cell--small-container": K.value
|
|
1918
1967
|
};
|
|
1919
|
-
},
|
|
1920
|
-
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element":
|
|
1968
|
+
}, M = _(() => ({
|
|
1969
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": y.value
|
|
1921
1970
|
}));
|
|
1922
1971
|
return t({
|
|
1923
|
-
gridcellRef:
|
|
1924
|
-
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef:
|
|
1972
|
+
gridcellRef: r
|
|
1973
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: r, cellActionsRef: f, shouldShowCellActions: c, childrenMenuContainerElements: L, isFocused: m, focusableItems: E, hasEverBeenFocused: h, hasRowData: u, controlledNestedRowElementIds: T, ariaHidden: O, tabIndex: D, conditionalTitleAttribute: S, getRowData: i, sumColumnAmountsInColumnSets: v, getColIndex: R, getCellIndex: A, isLeavingCellFocus: g, onMenuClose: C, hasInteractiveElFocusedInside: y, getGridcellEvents: B, toggleNestedContent: q, registerMenuContainerElement: G, menuMouseLeave: X, hasSlashedZero: H, isSmallContainer: K, isTouchDevice: Y, conditionalRowCellClasses: P, computedCellContentClasses: M, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe, BentoCheckbox: xt, BentoTypography: Le, BentoToggleButton: qe, DataGridCellActions: Gt, ChevronDownIcon: is, ChevronUpIcon: rs };
|
|
1925
1974
|
}
|
|
1926
1975
|
});
|
|
1927
|
-
var
|
|
1976
|
+
var ll = function() {
|
|
1928
1977
|
var o;
|
|
1929
1978
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1930
1979
|
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
@@ -1935,19 +1984,19 @@ var sl = function() {
|
|
|
1935
1984
|
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") } })];
|
|
1936
1985
|
}, proxy: !0 }], null, !1, 1879847906) })] : t._e()] : [n(e.BentoTypography, { staticClass: "b-data-grid-cell__cell-content", class: e.computedCellContentClasses, attrs: { el: "div", "data-testid": "cell-content" } }, [t._t(`item-${t.column.field}`, function() {
|
|
1937
1986
|
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])))])];
|
|
1938
|
-
}, { 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, "has-zebra-background": t.hasZebraBackground, "is-highlighted": t.isHighlighted, "is-selected": t.isSelected, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1939
|
-
},
|
|
1940
|
-
nl,
|
|
1941
|
-
sl,
|
|
1987
|
+
}, { 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.isTouchDevice) && (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, "has-zebra-background": t.hasZebraBackground, "is-highlighted": t.isHighlighted, "is-selected": t.isSelected, "teleport-menu": "" }, on: { "menu-item-click": e.onMenuClose } }) : t._e()], 1) : t._e()]], 2);
|
|
1988
|
+
}, al = [], il = /* @__PURE__ */ j(
|
|
1942
1989
|
ol,
|
|
1990
|
+
ll,
|
|
1991
|
+
al,
|
|
1943
1992
|
!1,
|
|
1944
1993
|
null,
|
|
1945
|
-
"
|
|
1994
|
+
"0c3e6a97"
|
|
1946
1995
|
);
|
|
1947
|
-
const
|
|
1996
|
+
const rl = il.exports, dl = {
|
|
1948
1997
|
name: "data-grid-row"
|
|
1949
|
-
},
|
|
1950
|
-
...
|
|
1998
|
+
}, cl = /* @__PURE__ */ ve({
|
|
1999
|
+
...dl,
|
|
1951
2000
|
props: {
|
|
1952
2001
|
/**
|
|
1953
2002
|
* Row actions property that generates which button to show in row actions area
|
|
@@ -2155,237 +2204,237 @@ const al = ll.exports, il = {
|
|
|
2155
2204
|
},
|
|
2156
2205
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled"],
|
|
2157
2206
|
setup(s, { expose: t, emit: n }) {
|
|
2158
|
-
const e = s, o =
|
|
2159
|
-
|
|
2160
|
-
|
|
2207
|
+
const e = s, o = He(), l = Ze(o), a = b({}), r = b(!1), f = b(), c = b(), L = Pe("nested-content-slot"), m = b(!1), E = b();
|
|
2208
|
+
Se(() => {
|
|
2209
|
+
c.value && (E.value = pe(c.value));
|
|
2161
2210
|
});
|
|
2162
|
-
const
|
|
2211
|
+
const h = _(() => e.shouldShowNestedRows(e.rowData)), u = _(
|
|
2163
2212
|
() => {
|
|
2164
|
-
var
|
|
2165
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
2213
|
+
var w, x;
|
|
2214
|
+
return !e.isNestedRow && e.hasNestedRows && h.value && ((x = (w = e.rowData) == null ? void 0 : w.children) == null ? void 0 : x.length) > 0;
|
|
2166
2215
|
}
|
|
2167
|
-
), T =
|
|
2216
|
+
), T = _(
|
|
2168
2217
|
() => {
|
|
2169
|
-
var
|
|
2170
|
-
return !e.isNestedRow && e.hasNestedRows &&
|
|
2218
|
+
var w, x;
|
|
2219
|
+
return !e.isNestedRow && e.hasNestedRows && h.value && (((w = e.rowData) == null ? void 0 : w.children) === void 0 || ((x = e == null ? void 0 : e.rowData) == null ? void 0 : x.children.length) === 0);
|
|
2171
2220
|
}
|
|
2172
|
-
),
|
|
2173
|
-
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows &&
|
|
2174
|
-
),
|
|
2221
|
+
), O = _(
|
|
2222
|
+
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && h.value && !e.isNestedRow
|
|
2223
|
+
), D = _(() => {
|
|
2175
2224
|
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2176
|
-
const
|
|
2225
|
+
const w = r.value.toString();
|
|
2177
2226
|
return {
|
|
2178
|
-
"aria-expanded":
|
|
2227
|
+
"aria-expanded": O.value ? w : void 0,
|
|
2179
2228
|
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2180
2229
|
"aria-posinset": e.rowIndex + 1,
|
|
2181
2230
|
"aria-setsize": e.rowSetSize
|
|
2182
2231
|
};
|
|
2183
2232
|
}
|
|
2184
2233
|
return { "aria-rowindex": e.rowIndex + 1 };
|
|
2185
|
-
}),
|
|
2234
|
+
}), S = _(() => {
|
|
2186
2235
|
if (T.value)
|
|
2187
2236
|
return {
|
|
2188
2237
|
"aria-busy": "true",
|
|
2189
2238
|
"aria-live": "polite"
|
|
2190
2239
|
};
|
|
2191
|
-
if (!(
|
|
2240
|
+
if (!(u.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
2192
2241
|
return {
|
|
2193
2242
|
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2194
2243
|
"aria-posinset": "1",
|
|
2195
2244
|
"aria-setsize": "1",
|
|
2196
|
-
id:
|
|
2245
|
+
id: L,
|
|
2197
2246
|
role: "row",
|
|
2198
2247
|
tabindex: "-1"
|
|
2199
2248
|
};
|
|
2200
|
-
}),
|
|
2201
|
-
var
|
|
2202
|
-
return
|
|
2203
|
-
}),
|
|
2204
|
-
var
|
|
2205
|
-
if (
|
|
2249
|
+
}), i = _(() => {
|
|
2250
|
+
var w, x;
|
|
2251
|
+
return u.value ? (x = (w = e.rowData) == null ? void 0 : w.children) == null ? void 0 : x.reduce((k, Q, ie) => (k[ie] = Pe("nested-row"), k), {}) : [];
|
|
2252
|
+
}), v = _(() => {
|
|
2253
|
+
var w;
|
|
2254
|
+
if (r.value) {
|
|
2206
2255
|
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2207
|
-
return [
|
|
2208
|
-
if (
|
|
2209
|
-
const
|
|
2210
|
-
if ((
|
|
2211
|
-
return
|
|
2256
|
+
return [L];
|
|
2257
|
+
if (u.value && ((w = Object.keys(i.value)) == null ? void 0 : w.length) > 0) {
|
|
2258
|
+
const x = Object.values(i.value);
|
|
2259
|
+
if ((x == null ? void 0 : x.length) > 0)
|
|
2260
|
+
return x;
|
|
2212
2261
|
}
|
|
2213
2262
|
return [];
|
|
2214
2263
|
}
|
|
2215
|
-
}),
|
|
2216
|
-
var
|
|
2217
|
-
const
|
|
2218
|
-
if ((
|
|
2219
|
-
const
|
|
2220
|
-
var
|
|
2221
|
-
return (
|
|
2222
|
-
}),
|
|
2223
|
-
var
|
|
2224
|
-
return (
|
|
2264
|
+
}), R = _(() => {
|
|
2265
|
+
var x, k;
|
|
2266
|
+
const w = (k = (x = e.rowData) == null ? void 0 : x.children) == null ? void 0 : k.map((Q) => e.getDataItemId(Q));
|
|
2267
|
+
if ((w == null ? void 0 : w.length) > 0) {
|
|
2268
|
+
const Q = w.every((ue) => {
|
|
2269
|
+
var V;
|
|
2270
|
+
return (V = e == null ? void 0 : e.selectedItems) == null ? void 0 : V.includes(ue);
|
|
2271
|
+
}), ie = w.some((ue) => {
|
|
2272
|
+
var V;
|
|
2273
|
+
return (V = e == null ? void 0 : e.selectedItems) == null ? void 0 : V.includes(ue);
|
|
2225
2274
|
});
|
|
2226
|
-
return !
|
|
2275
|
+
return !Q && ie;
|
|
2227
2276
|
}
|
|
2228
2277
|
return !1;
|
|
2229
|
-
}),
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2232
|
-
},
|
|
2278
|
+
}), A = (w, x) => {
|
|
2279
|
+
const k = w;
|
|
2280
|
+
w !== null && (k != null && k.gridcellRef) && (a.value[x] = k.gridcellRef);
|
|
2281
|
+
}, g = (w) => i.value[w], C = (w) => {
|
|
2233
2282
|
if (!e.selectable)
|
|
2234
2283
|
return null;
|
|
2235
|
-
const
|
|
2236
|
-
return e.selectedItems.includes(
|
|
2237
|
-
},
|
|
2238
|
-
var
|
|
2284
|
+
const x = e.getDataItemId(w);
|
|
2285
|
+
return e.selectedItems.includes(x).toString();
|
|
2286
|
+
}, y = (w) => {
|
|
2287
|
+
var Q;
|
|
2239
2288
|
if (!e.allowRowClicks)
|
|
2240
2289
|
return;
|
|
2241
|
-
let
|
|
2242
|
-
const
|
|
2243
|
-
for (let
|
|
2244
|
-
if ((
|
|
2245
|
-
|
|
2290
|
+
let x = !1;
|
|
2291
|
+
const k = ["button", "input", "a"];
|
|
2292
|
+
for (let ie = 0; ie < k.length; ie++)
|
|
2293
|
+
if ((Q = w == null ? void 0 : w.target) != null && Q.closest(k[ie])) {
|
|
2294
|
+
x = !0;
|
|
2246
2295
|
break;
|
|
2247
2296
|
}
|
|
2248
|
-
|
|
2249
|
-
},
|
|
2250
|
-
n("select-row",
|
|
2251
|
-
},
|
|
2252
|
-
n("select-nested-row",
|
|
2253
|
-
}, W = () => {
|
|
2254
|
-
w.value = !0;
|
|
2255
|
-
}, J = () => {
|
|
2256
|
-
w.value = !1;
|
|
2297
|
+
x || n("row-click", e.rowData, w);
|
|
2298
|
+
}, B = (w) => {
|
|
2299
|
+
n("select-row", w, e.rowData);
|
|
2300
|
+
}, q = (w, x) => {
|
|
2301
|
+
n("select-nested-row", x, e.rowData, w);
|
|
2257
2302
|
}, G = () => {
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2303
|
+
m.value = !0;
|
|
2304
|
+
}, X = () => {
|
|
2305
|
+
m.value = !1;
|
|
2306
|
+
}, H = () => {
|
|
2307
|
+
var w;
|
|
2308
|
+
$t([(w = E.value) == null ? void 0 : w[0]]), Ke(c.value);
|
|
2309
|
+
}, K = () => {
|
|
2310
|
+
pe(c.value);
|
|
2311
|
+
}, Y = (w) => {
|
|
2312
|
+
var x, k;
|
|
2313
|
+
w.key !== de.TAB && pe(c.value), w.key === de.ARROW_RIGHT && ((x = E.value) == null ? void 0 : x.length) > 1 && E.value[0].node === document.activeElement ? (pe(c.value), E.value[1].node.setAttribute("tabindex", "0"), E.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === de.ARROW_LEFT && ((k = E.value) == null ? void 0 : k.length) > 1 && E.value[1].node === document.activeElement && (pe(c.value), E.value[0].node.setAttribute("tabindex", "0"), E.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
|
|
2314
|
+
}, P = () => e.columnSets.reduce((w, { columnSet: x }) => w + x.length, 0), M = () => P() * e.rowIndex + P(), { updateContentHeight: p, contentHeight: U } = ds(f, r), z = _(() => {
|
|
2315
|
+
var w;
|
|
2267
2316
|
if (e.hasNestedContent || e.hasNestedRows)
|
|
2268
2317
|
return {
|
|
2269
|
-
paddingLeft: `${
|
|
2270
|
-
"max-height": (e.hasNestedContent || e.hasNestedRows) &&
|
|
2318
|
+
paddingLeft: `${u.value || T.value ? 0 : a.value[oe].offsetWidth + zt}px`,
|
|
2319
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && U.value && !((w = U == null ? void 0 : U.value) != null && w.includes("null")) ? U.value : 0
|
|
2271
2320
|
};
|
|
2272
2321
|
});
|
|
2273
|
-
|
|
2322
|
+
ae(
|
|
2274
2323
|
() => f.value,
|
|
2275
2324
|
() => {
|
|
2276
|
-
let
|
|
2277
|
-
!
|
|
2278
|
-
f.value &&
|
|
2325
|
+
let w = null;
|
|
2326
|
+
!w && f.value && (w = je(f.value, () => {
|
|
2327
|
+
f.value && p();
|
|
2279
2328
|
}));
|
|
2280
2329
|
}
|
|
2281
2330
|
);
|
|
2282
|
-
const
|
|
2283
|
-
|
|
2331
|
+
const $ = () => {
|
|
2332
|
+
r.value = !r.value, p(), n("nested-content-toggled", e.rowData);
|
|
2284
2333
|
};
|
|
2285
|
-
|
|
2334
|
+
ae(
|
|
2286
2335
|
() => {
|
|
2287
|
-
var
|
|
2288
|
-
return (
|
|
2336
|
+
var w;
|
|
2337
|
+
return (w = e.rowData) == null ? void 0 : w.children;
|
|
2289
2338
|
},
|
|
2290
|
-
(
|
|
2291
|
-
var
|
|
2292
|
-
((
|
|
2339
|
+
(w, x) => {
|
|
2340
|
+
var k, Q;
|
|
2341
|
+
((Q = (k = e == null ? void 0 : e.rowData) == null ? void 0 : k.children) == null ? void 0 : Q.length) > 0 && x === void 0 && !r.value && p();
|
|
2293
2342
|
}
|
|
2294
2343
|
);
|
|
2295
|
-
const
|
|
2344
|
+
const me = _e(
|
|
2296
2345
|
Ae,
|
|
2297
|
-
|
|
2298
|
-
),
|
|
2299
|
-
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(
|
|
2346
|
+
_(() => !1)
|
|
2347
|
+
), ne = (w) => e.highlightedRows.includes(e.getDataItemId(w)), d = (w) => e.selectedItems.includes(e.getDataItemId(w)), F = (w, x) => ({
|
|
2348
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(w),
|
|
2300
2349
|
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2301
|
-
"b-data-grid-row-container__row--highlighted":
|
|
2302
|
-
"b-data-grid-row-container__row--selected":
|
|
2303
|
-
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex ===
|
|
2304
|
-
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !
|
|
2350
|
+
"b-data-grid-row-container__row--highlighted": ne(w),
|
|
2351
|
+
"b-data-grid-row-container__row--selected": d(w),
|
|
2352
|
+
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === x,
|
|
2353
|
+
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !r.value,
|
|
2305
2354
|
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
2306
2355
|
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
2307
|
-
}),
|
|
2308
|
-
"b-data-grid-row-container__row-cell-set--frozen":
|
|
2309
|
-
[`b-data-grid-row-container__row-cell-set--${
|
|
2310
|
-
"b-data-grid-row-container__row-cell-set--frozen-separator": !
|
|
2311
|
-
"b-data-grid-row-container__row-cell-set--unfrozen": !
|
|
2356
|
+
}), te = (w, x) => ({
|
|
2357
|
+
"b-data-grid-row-container__row-cell-set--frozen": w && !x,
|
|
2358
|
+
[`b-data-grid-row-container__row-cell-set--${ge.OVERFLOW_SHADOW_LEFT}`]: !x && w && e.hasLeftOverflow,
|
|
2359
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !x && w && e.showFrozenColumnsSeparator,
|
|
2360
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !w || x,
|
|
2312
2361
|
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2313
|
-
}),
|
|
2362
|
+
}), re = _(() => ({
|
|
2314
2363
|
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2315
|
-
"b-data-grid-row-container__row-nested-slot": !
|
|
2316
|
-
})),
|
|
2317
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open":
|
|
2318
|
-
})), be =
|
|
2364
|
+
"b-data-grid-row-container__row-nested-slot": !u.value && e.shouldShowNestedContent(e.rowData)
|
|
2365
|
+
})), ce = _(() => ({
|
|
2366
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": m.value
|
|
2367
|
+
})), be = _(() => ({
|
|
2319
2368
|
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
2320
2369
|
}));
|
|
2321
2370
|
return t({
|
|
2322
2371
|
gridcellRefs: a,
|
|
2323
|
-
rowActionsRef:
|
|
2324
|
-
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown:
|
|
2372
|
+
rowActionsRef: c
|
|
2373
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: r, nestedContentRef: f, rowActionsRef: c, nestedContentSlotId: L, isRowActionMenuOpen: m, focusableItems: E, shouldShowNestedRowsBooleanResult: h, shouldShowRenderNestedRows: u, isLoadingNestedRows: T, shouldShowNestedContentToggle: O, ariaRowAttributes: D, nestedContentContainerDivAriaAttributes: S, nestedRowIds: i, allNestedRowIds: v, hasUnSelectedNestedRows: R, registerRowCellRef: A, getRowId: g, getRowAriaSelectedValue: C, onRowClick: y, onRowSelect: B, onNestedRowSelect: q, onRowActionMenuOpen: G, onRowActionMenuClose: X, onRowActionsCellFocus: H, onRowActionsCellFocusOut: K, onRowActionsCellOnKeyDown: Y, sumColumnAmountsInColumnSets: P, getRowActionsCellIndex: M, updateContentHeight: p, contentHeight: U, nestedContentStyles: z, nestedContentToggled: $, isSmallContainer: me, isHighlightedRow: ne, isSelectedRow: d, conditionalRowClasses: F, conditionalRowSetClasses: te, conditionalNestedRowClasses: re, conditionalRowActionsContainerClasses: ce, computedRowActionsStyles: be, BentoLoadingIndicator: Ve, DataGridRow: Ht, DataGridCell: rl, DataGridCellActions: Gt };
|
|
2325
2374
|
}
|
|
2326
2375
|
});
|
|
2327
|
-
var
|
|
2376
|
+
var ul = function() {
|
|
2328
2377
|
var o;
|
|
2329
2378
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2330
2379
|
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: (o = t.rowId) == null ? void 0 : o.toString(), role: "row", "aria-selected": e.getRowAriaSelectedValue(t.rowData) }, on: { click: e.onRowClick, keyup: [function(l) {
|
|
2331
2380
|
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onRowClick.apply(null, arguments);
|
|
2332
2381
|
}, function(l) {
|
|
2333
2382
|
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
2334
|
-
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns:
|
|
2335
|
-
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(
|
|
2336
|
-
return n(e.DataGridCell, { key: `cell-${
|
|
2337
|
-
return e.emit("cell-hovered",
|
|
2338
|
-
}, "on-frozen-columns-key-press": function(
|
|
2339
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2340
|
-
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2341
|
-
return { key:
|
|
2342
|
-
return [t._t(
|
|
2383
|
+
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, f) {
|
|
2384
|
+
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(r, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(c, L) {
|
|
2385
|
+
return n(e.DataGridCell, { key: `cell-${c.field}`, ref: (m) => e.registerRowCellRef(m, c.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: c, "column-set-index": f, "col-index": L, "column-sets": t.columnSets, condensed: t.condensed, "dragging-columns": t.draggingColumns, "dragging-events-for-row-cell": t.draggingEventsForRowCell, "get-data-item-id": t.getDataItemId, "has-zebra-background": t.isRowEven, "is-highlighted": e.isHighlightedRow(t.rowData), "is-selected": e.isSelectedRow(t.rowData), "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) {
|
|
2386
|
+
return e.emit("cell-hovered", m);
|
|
2387
|
+
}, "on-frozen-columns-key-press": function(m) {
|
|
2388
|
+
return e.emit("on-frozen-columns-key-press", m);
|
|
2389
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m, E) {
|
|
2390
|
+
return { key: E, fn: function(h) {
|
|
2391
|
+
return [t._t(E, null, null, h)];
|
|
2343
2392
|
} };
|
|
2344
2393
|
})], null, !0) });
|
|
2345
|
-
}), 1) : t._e(), !
|
|
2394
|
+
}), 1) : t._e(), !r && t.rowActions ? n("div", { key: `data-grid-row-actions-${a}`, ref: "rowActionsRef", refInFor: !0, staticClass: "b-data-grid-row-container__row-actions-container", class: e.conditionalRowActionsContainerClasses, style: e.computedRowActionsStyles, attrs: { "aria-colindex": e.sumColumnAmountsInColumnSets().toString(), "data-cellindex": e.getRowActionsCellIndex(), tabindex: "-1", role: "gridcell" }, on: { focus: e.onRowActionsCellFocus, focusOut: e.onRowActionsCellFocusOut, keydown: e.onRowActionsCellOnKeyDown } }, [n(e.DataGridCellActions, { staticClass: "b-data-grid-row-container__row-actions", attrs: { "disable-arrow-down-opening-menu": "", "cell-actions": t.rowActions, "has-right-overflow": t.hasRightOverflow, "row-data-item": t.rowData, "teleport-menu": "" }, on: { "menu-open": e.onRowActionMenuOpen, "menu-close": e.onRowActionMenuClose } })], 1) : t._e()];
|
|
2346
2395
|
})], 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(l, a) {
|
|
2347
|
-
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(
|
|
2348
|
-
return e.emit("cell-hovered",
|
|
2349
|
-
}, "row-click": function(
|
|
2350
|
-
return e.emit("row-click", ...
|
|
2351
|
-
}, "on-frozen-columns-key-press": function(
|
|
2352
|
-
return e.emit("on-frozen-columns-key-press",
|
|
2353
|
-
}, "select-row": function(
|
|
2354
|
-
return e.onNestedRowSelect(l,
|
|
2355
|
-
} }, scopedSlots: t._u([t._l(e.slots, function(
|
|
2356
|
-
return { key: f, fn: function(
|
|
2357
|
-
return [t._t(f, null, null,
|
|
2396
|
+
return n(e.DataGridRow, t._b({ key: `child-${a}`, attrs: { id: e.getRowId(a), "row-data": l, "row-index": a, "row-set-size": t.rowData.children.length, "is-nested-row": "" }, on: { "cell-hovered": function(r) {
|
|
2397
|
+
return e.emit("cell-hovered", r);
|
|
2398
|
+
}, "row-click": function(r) {
|
|
2399
|
+
return e.emit("row-click", ...r);
|
|
2400
|
+
}, "on-frozen-columns-key-press": function(r) {
|
|
2401
|
+
return e.emit("on-frozen-columns-key-press", r);
|
|
2402
|
+
}, "select-row": function(r) {
|
|
2403
|
+
return e.onNestedRowSelect(l, r);
|
|
2404
|
+
} }, scopedSlots: t._u([t._l(e.slots, function(r, f) {
|
|
2405
|
+
return { key: f, fn: function(c) {
|
|
2406
|
+
return [t._t(f, null, null, c)];
|
|
2358
2407
|
} };
|
|
2359
2408
|
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2360
2409
|
}) : 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);
|
|
2361
|
-
},
|
|
2362
|
-
rl,
|
|
2363
|
-
dl,
|
|
2410
|
+
}, fl = [], gl = /* @__PURE__ */ j(
|
|
2364
2411
|
cl,
|
|
2412
|
+
ul,
|
|
2413
|
+
fl,
|
|
2365
2414
|
!1,
|
|
2366
2415
|
null,
|
|
2367
|
-
"
|
|
2416
|
+
"f064e17f"
|
|
2368
2417
|
);
|
|
2369
|
-
const
|
|
2370
|
-
let
|
|
2371
|
-
const
|
|
2418
|
+
const Ht = gl.exports;
|
|
2419
|
+
let Ot = 0;
|
|
2420
|
+
const _l = {
|
|
2372
2421
|
beforeCreate() {
|
|
2373
|
-
this.uuid =
|
|
2422
|
+
this.uuid = Ot.toString(), Ot += 1;
|
|
2374
2423
|
}
|
|
2375
2424
|
};
|
|
2376
|
-
var
|
|
2425
|
+
var vl = function() {
|
|
2377
2426
|
var t = this, n = t._self._c;
|
|
2378
2427
|
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-ui-assets/icons-16-warning_circle_fill__a" + t.uuid + ")" } }, [n("path", { attrs: { fill: "#001222", d: "M8 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 8C0.25 3.71979 3.71979 0.25 8 0.25ZM8 9.75C7.44772 9.75 7 10.1977 7 10.75C7 11.3023 7.44772 11.75 8 11.75C8.55228 11.75 9 11.3023 9 10.75C9 10.1977 8.55228 9.75 8 9.75ZM7.25 4.25V8.75H8.75V4.25H7.25Z" } })]), n("defs", [n("clipPath", { attrs: { id: "uia-ui-assets/icons-16-warning_circle_fill__a" + t.uuid } }, [n("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
|
|
2379
|
-
},
|
|
2380
|
-
fl,
|
|
2381
|
-
gl,
|
|
2428
|
+
}, ml = [], Cl = /* @__PURE__ */ j(
|
|
2382
2429
|
_l,
|
|
2430
|
+
vl,
|
|
2431
|
+
ml,
|
|
2383
2432
|
!1,
|
|
2384
2433
|
null,
|
|
2385
2434
|
null
|
|
2386
2435
|
);
|
|
2387
|
-
const
|
|
2388
|
-
...
|
|
2436
|
+
const hl = Cl.exports, pl = {}, wl = /* @__PURE__ */ ve({
|
|
2437
|
+
...pl,
|
|
2389
2438
|
__name: "data-grid-static-icon",
|
|
2390
2439
|
props: {
|
|
2391
2440
|
colored: { type: Boolean, default: !1 },
|
|
@@ -2393,39 +2442,39 @@ const Cl = vl.exports, ml = {}, hl = /* @__PURE__ */ fe({
|
|
|
2393
2442
|
variant: { default: "no-value" }
|
|
2394
2443
|
},
|
|
2395
2444
|
setup(s) {
|
|
2396
|
-
const t = s, n =
|
|
2445
|
+
const t = s, n = _(() => {
|
|
2397
2446
|
switch (t.variant) {
|
|
2398
2447
|
case "checkmark":
|
|
2399
|
-
return
|
|
2448
|
+
return Wn;
|
|
2400
2449
|
case "warning":
|
|
2401
|
-
return
|
|
2450
|
+
return Gn;
|
|
2402
2451
|
case "error":
|
|
2403
|
-
return
|
|
2452
|
+
return hl;
|
|
2404
2453
|
case "cross":
|
|
2405
|
-
return
|
|
2454
|
+
return Nt;
|
|
2406
2455
|
case "no-value":
|
|
2407
|
-
return
|
|
2456
|
+
return dt;
|
|
2408
2457
|
default:
|
|
2409
|
-
return
|
|
2458
|
+
return dt;
|
|
2410
2459
|
}
|
|
2411
|
-
}), e =
|
|
2460
|
+
}), e = _(() => ({
|
|
2412
2461
|
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2413
|
-
})), o =
|
|
2414
|
-
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective:
|
|
2462
|
+
})), o = _(() => `b-data-grid-static-icon__${t.variant}`), l = _(() => Hn.AUTO);
|
|
2463
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: Vn };
|
|
2415
2464
|
}
|
|
2416
2465
|
});
|
|
2417
|
-
var
|
|
2466
|
+
var bl = function() {
|
|
2418
2467
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2419
2468
|
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);
|
|
2420
|
-
},
|
|
2421
|
-
hl,
|
|
2422
|
-
pl,
|
|
2469
|
+
}, Sl = [], El = /* @__PURE__ */ j(
|
|
2423
2470
|
wl,
|
|
2471
|
+
bl,
|
|
2472
|
+
Sl,
|
|
2424
2473
|
!1,
|
|
2425
2474
|
null,
|
|
2426
2475
|
"dbc055cb"
|
|
2427
2476
|
);
|
|
2428
|
-
const
|
|
2477
|
+
const La = El.exports, Rl = {
|
|
2429
2478
|
"de-DE": {
|
|
2430
2479
|
numberResults: "1 Ergebnis | {count} Ergebnisse"
|
|
2431
2480
|
},
|
|
@@ -2444,10 +2493,10 @@ const Ra = bl.exports, Sl = {
|
|
|
2444
2493
|
"pt-BR": {
|
|
2445
2494
|
numberResults: "1 resultado | {count} resultados"
|
|
2446
2495
|
}
|
|
2447
|
-
},
|
|
2448
|
-
i18n: { messages:
|
|
2449
|
-
},
|
|
2450
|
-
...
|
|
2496
|
+
}, yl = {
|
|
2497
|
+
i18n: { messages: Rl }
|
|
2498
|
+
}, Ll = /* @__PURE__ */ ve({
|
|
2499
|
+
...yl,
|
|
2451
2500
|
__name: "data-grid-summary-cell",
|
|
2452
2501
|
props: {
|
|
2453
2502
|
label: null,
|
|
@@ -2457,47 +2506,48 @@ const Ra = bl.exports, Sl = {
|
|
|
2457
2506
|
tooltipText: { default: null }
|
|
2458
2507
|
},
|
|
2459
2508
|
setup(s) {
|
|
2460
|
-
const t = s, { tc: n } =
|
|
2461
|
-
var
|
|
2509
|
+
const t = s, { tc: n } = Ce(), e = b(), o = _(() => {
|
|
2510
|
+
var c;
|
|
2462
2511
|
return {
|
|
2463
2512
|
popoverPosition: "right",
|
|
2464
2513
|
// Default is right but can be overriden
|
|
2465
2514
|
...t.dashedUnderline,
|
|
2466
|
-
popoverTitle: ((
|
|
2515
|
+
popoverTitle: ((c = t == null ? void 0 : t.dashedUnderline) == null ? void 0 : c.popoverTitle) ?? t.label,
|
|
2516
|
+
popoverSize: "small",
|
|
2467
2517
|
// We force teleport as this is needed for the popover to appear above all the data grid elements
|
|
2468
2518
|
teleport: {
|
|
2469
2519
|
disabled: !1
|
|
2470
2520
|
}
|
|
2471
2521
|
};
|
|
2472
|
-
}), l =
|
|
2473
|
-
var
|
|
2474
|
-
return ((
|
|
2475
|
-
}), a = (
|
|
2476
|
-
() => t.tooltipText ?? (
|
|
2522
|
+
}), l = _(() => {
|
|
2523
|
+
var c;
|
|
2524
|
+
return ((c = t.searchTerm) == null ? void 0 : c.toLowerCase()) ?? "";
|
|
2525
|
+
}), a = (c) => t.searchTerm && c.toLowerCase().includes(l.value) ? "mark" : "span", r = _(() => t.searchTerm ? t.items.filter((c) => c.toLowerCase().includes(l.value)).length : 0), f = _(
|
|
2526
|
+
() => t.tooltipText ?? (r.value > 0 ? n("numberResults", r.value) : "")
|
|
2477
2527
|
);
|
|
2478
|
-
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount:
|
|
2528
|
+
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: r, computedToolTipText: f, BentoDashedUnderline: qn, BentoTypography: Le, Tooltip: jn, BentoTooltipPosition: Zn };
|
|
2479
2529
|
}
|
|
2480
2530
|
});
|
|
2481
|
-
var
|
|
2531
|
+
var Al = function() {
|
|
2482
2532
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2483
2533
|
return n("div", { staticClass: "b-data-grid-summary-cell" }, [t.items.length > 1 ? n(e.BentoDashedUnderline, t._b({ ref: "dashedUnderlineRef", scopedSlots: t._u([{ key: "popover-content", fn: function() {
|
|
2484
2534
|
return [n(e.BentoTypography, { staticClass: "b-data-grid-summary-cell__popover-content" }, [n("ul", { staticClass: "b-data-grid-summary-cell__list" }, t._l(t.items, function(o) {
|
|
2485
2535
|
return n("li", { key: o }, [n(e.highlightedComponent(o), { tag: "component" }, [t._v(t._s(o))])], 1);
|
|
2486
2536
|
}), 0)])];
|
|
2487
2537
|
}, proxy: !0 }], null, !1, 4023850623) }, "bento-dashed-underline", e.dashedUnderlineProps, !1), [t._v(" " + t._s(t.label) + " ")]) : [t._v(t._s(t.items[0]))], e.dashedUnderlineRef && e.computedToolTipText ? n(e.Tooltip, { attrs: { content: e.computedToolTipText, "disabled-focus-trap": !0, position: e.BentoTooltipPosition.RIGHT, "fallback-position": ["left", "bottom"], "is-shown": !!e.computedToolTipText, "target-element": e.dashedUnderlineRef } }) : t._e()], 2);
|
|
2488
|
-
},
|
|
2489
|
-
Rl,
|
|
2490
|
-
yl,
|
|
2538
|
+
}, Tl = [], Ol = /* @__PURE__ */ j(
|
|
2491
2539
|
Ll,
|
|
2540
|
+
Al,
|
|
2541
|
+
Tl,
|
|
2492
2542
|
!1,
|
|
2493
2543
|
null,
|
|
2494
|
-
"
|
|
2544
|
+
"0fcd863c"
|
|
2495
2545
|
);
|
|
2496
|
-
const
|
|
2497
|
-
i18n: { messages:
|
|
2546
|
+
const Aa = Ol.exports, Il = {
|
|
2547
|
+
i18n: { messages: Wt },
|
|
2498
2548
|
name: "bento-data-grid"
|
|
2499
|
-
},
|
|
2500
|
-
...
|
|
2549
|
+
}, Nl = /* @__PURE__ */ ve({
|
|
2550
|
+
...Il,
|
|
2501
2551
|
props: {
|
|
2502
2552
|
/**
|
|
2503
2553
|
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
@@ -2584,7 +2634,7 @@ const ya = Al.exports, Tl = {
|
|
|
2584
2634
|
* {@see BentoFilterValues}
|
|
2585
2635
|
*/
|
|
2586
2636
|
filterValues: {
|
|
2587
|
-
type:
|
|
2637
|
+
type: ze.props.filterValues.type,
|
|
2588
2638
|
default: () => []
|
|
2589
2639
|
},
|
|
2590
2640
|
/**
|
|
@@ -2615,7 +2665,7 @@ const ya = Al.exports, Tl = {
|
|
|
2615
2665
|
* Filter bar search term useful to filter all the data by text
|
|
2616
2666
|
*/
|
|
2617
2667
|
filterSearchTerm: {
|
|
2618
|
-
type:
|
|
2668
|
+
type: ze.props.searchTerm.type,
|
|
2619
2669
|
default: void 0
|
|
2620
2670
|
},
|
|
2621
2671
|
/**
|
|
@@ -2715,6 +2765,7 @@ const ya = Al.exports, Tl = {
|
|
|
2715
2765
|
},
|
|
2716
2766
|
/**
|
|
2717
2767
|
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
2768
|
+
* Needs pagination.totalCount to be set.
|
|
2718
2769
|
*/
|
|
2719
2770
|
selectableAcrossPages: {
|
|
2720
2771
|
type: Boolean,
|
|
@@ -2830,248 +2881,258 @@ const ya = Al.exports, Tl = {
|
|
|
2830
2881
|
N.SORT
|
|
2831
2882
|
],
|
|
2832
2883
|
setup(s, { expose: t, emit: n }) {
|
|
2833
|
-
const e = s, o =
|
|
2884
|
+
const e = s, o = He(), l = Ze(o), a = b(null), r = b(), f = b({}), c = b(null), L = b(null), m = b(), E = b(null), h = b(null), u = b(null), {
|
|
2834
2885
|
allowColumnDragAndDrop: T,
|
|
2835
|
-
columns:
|
|
2836
|
-
columnPanel:
|
|
2837
|
-
data:
|
|
2838
|
-
lazyLoadType:
|
|
2839
|
-
loading:
|
|
2840
|
-
hasNestedContent:
|
|
2841
|
-
hasNestedRows:
|
|
2842
|
-
selectable:
|
|
2843
|
-
selection:
|
|
2844
|
-
selectableAcrossPages:
|
|
2845
|
-
stickyPagination:
|
|
2846
|
-
outline:
|
|
2847
|
-
pagination:
|
|
2848
|
-
zebraRows:
|
|
2849
|
-
} =
|
|
2850
|
-
|
|
2851
|
-
const z =
|
|
2852
|
-
|
|
2886
|
+
columns: O,
|
|
2887
|
+
columnPanel: D,
|
|
2888
|
+
data: S,
|
|
2889
|
+
lazyLoadType: i,
|
|
2890
|
+
loading: v,
|
|
2891
|
+
hasNestedContent: R,
|
|
2892
|
+
hasNestedRows: A,
|
|
2893
|
+
selectable: g,
|
|
2894
|
+
selection: C,
|
|
2895
|
+
selectableAcrossPages: y,
|
|
2896
|
+
stickyPagination: B,
|
|
2897
|
+
outline: q,
|
|
2898
|
+
pagination: G,
|
|
2899
|
+
zebraRows: X
|
|
2900
|
+
} = Ge(e), H = b(-1), { t: K } = Ce(), Y = _(() => ce.value.filter((I) => I.frozen).length), P = 550, M = b(), { width: p } = ns(M), U = _(() => p.value <= P);
|
|
2901
|
+
Te(Ae, U);
|
|
2902
|
+
const z = b(!1);
|
|
2903
|
+
Se(() => {
|
|
2904
|
+
typeof window < "u" && (z.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
2905
|
+
}), Te(Ie, z);
|
|
2906
|
+
const $ = _e(
|
|
2907
|
+
ts,
|
|
2853
2908
|
() => ({
|
|
2854
|
-
additionalContentSlotRef:
|
|
2909
|
+
additionalContentSlotRef: b(null),
|
|
2855
2910
|
isDataGridTemplate: !1,
|
|
2856
|
-
stickyAditionalContent:
|
|
2857
|
-
stickyTabs:
|
|
2858
|
-
tabsRef:
|
|
2911
|
+
stickyAditionalContent: b(!1),
|
|
2912
|
+
stickyTabs: b(!1),
|
|
2913
|
+
tabsRef: b(null)
|
|
2859
2914
|
})
|
|
2860
|
-
), { additionalContentSlotRef:
|
|
2861
|
-
columnDefs:
|
|
2862
|
-
onColumnWidthOverride:
|
|
2863
|
-
gridRowWidthStyle:
|
|
2864
|
-
isMeasuringColumnWidths:
|
|
2865
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
2866
|
-
columns:
|
|
2867
|
-
totalWidthOfAllColumns:
|
|
2868
|
-
rowActionsMaxWidth:
|
|
2869
|
-
} =
|
|
2870
|
-
hasColumnPanel:
|
|
2871
|
-
hasSelectableColumn:
|
|
2872
|
-
hasSelectableAcrossPages:
|
|
2873
|
-
hasNestedContent:
|
|
2874
|
-
hasNestedRows:
|
|
2915
|
+
), { additionalContentSlotRef: me, isDataGridTemplate: ne, stickyTabs: d, tabsRef: F, stickyAdditionalContent: te } = $(), re = _(() => ne ? 0 : null), {
|
|
2916
|
+
columnDefs: ce,
|
|
2917
|
+
onColumnWidthOverride: be,
|
|
2918
|
+
gridRowWidthStyle: w,
|
|
2919
|
+
isMeasuringColumnWidths: x,
|
|
2920
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: k,
|
|
2921
|
+
columns: Q,
|
|
2922
|
+
totalWidthOfAllColumns: ie,
|
|
2923
|
+
rowActionsMaxWidth: ue
|
|
2924
|
+
} = Os(O, S, a, f, c, {
|
|
2925
|
+
hasColumnPanel: D,
|
|
2926
|
+
hasSelectableColumn: g,
|
|
2927
|
+
hasSelectableAcrossPages: y,
|
|
2928
|
+
hasNestedContent: R,
|
|
2929
|
+
hasNestedRows: A,
|
|
2875
2930
|
allowColumnDragAndDrop: T,
|
|
2876
|
-
isDataGridTemplate:
|
|
2877
|
-
}), V = (
|
|
2878
|
-
(
|
|
2879
|
-
},
|
|
2880
|
-
|
|
2931
|
+
isDataGridTemplate: ne
|
|
2932
|
+
}), V = (I, ...W) => {
|
|
2933
|
+
(I === N.COLUMNS || I === N.UPDATE_COLUMNS) && ([Q.value] = W), n(I, ...W);
|
|
2934
|
+
}, Ne = mt(
|
|
2935
|
+
F,
|
|
2881
2936
|
d,
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
),
|
|
2885
|
-
() => e.stickyFilters ? `${
|
|
2886
|
-
),
|
|
2887
|
-
() => `${
|
|
2937
|
+
te,
|
|
2938
|
+
me
|
|
2939
|
+
), Vt = _(
|
|
2940
|
+
() => e.stickyFilters ? `${Ne.value}px` : null
|
|
2941
|
+
), Ye = mt(L, $e(e, "stickyFilters")), Zt = _(
|
|
2942
|
+
() => `${Ye.value + Ne.value}px`
|
|
2888
2943
|
), {
|
|
2889
|
-
sortedColumns:
|
|
2890
|
-
columnSets:
|
|
2891
|
-
isOnlyOneVisibleColumn:
|
|
2892
|
-
internalZebraRows:
|
|
2893
|
-
onConfigSettingsColumnsUpdate:
|
|
2894
|
-
onConfigSettingsColumnUpdate:
|
|
2895
|
-
onConfigSettingsCondensedUpdate:
|
|
2896
|
-
onConfigSettingsZebraRowsUpdate:
|
|
2897
|
-
} =
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
), { draggingColumns:
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2944
|
+
sortedColumns: De,
|
|
2945
|
+
columnSets: xe,
|
|
2946
|
+
isOnlyOneVisibleColumn: jt,
|
|
2947
|
+
internalZebraRows: Je,
|
|
2948
|
+
onConfigSettingsColumnsUpdate: qt,
|
|
2949
|
+
onConfigSettingsColumnUpdate: Kt,
|
|
2950
|
+
onConfigSettingsCondensedUpdate: Yt,
|
|
2951
|
+
onConfigSettingsZebraRowsUpdate: Jt
|
|
2952
|
+
} = Ms(ce, X, V), { hoveredOverColumn: Xt, hoveredOverColumnState: Qt } = zs(
|
|
2953
|
+
xe,
|
|
2954
|
+
g,
|
|
2955
|
+
q,
|
|
2956
|
+
k
|
|
2957
|
+
), { draggingColumns: en, draggingEventsForColumns: tn, draggingEventsForRowCell: nn, onMoveColumnByOffset: sn } = Fs(De, T, V), Xe = _(
|
|
2958
|
+
() => {
|
|
2959
|
+
var I;
|
|
2960
|
+
return ((I = e.data) == null ? void 0 : I.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
|
|
2961
|
+
}
|
|
2962
|
+
), {
|
|
2963
|
+
onAllRowSelect: on,
|
|
2964
|
+
onRowSelect: ln,
|
|
2965
|
+
onNestedRowSelect: an,
|
|
2966
|
+
onDeselectAll: rn,
|
|
2967
|
+
selectedItems: Be,
|
|
2968
|
+
allItemsSelectedState: dn,
|
|
2969
|
+
isEveryItemSelected: Qe,
|
|
2970
|
+
isEveryItemAcrossPagesSelected: et
|
|
2971
|
+
} = Is(
|
|
2972
|
+
C,
|
|
2913
2973
|
V,
|
|
2914
|
-
|
|
2974
|
+
S,
|
|
2915
2975
|
e.getDataItemId,
|
|
2916
2976
|
e.isDataItemDisabled,
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
), { navigationInput:
|
|
2920
|
-
|
|
2977
|
+
Xe,
|
|
2978
|
+
G
|
|
2979
|
+
), { navigationInput: cn } = Ds(
|
|
2980
|
+
c,
|
|
2921
2981
|
f,
|
|
2922
|
-
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
), { isLazyLoad:
|
|
2927
|
-
|
|
2928
|
-
|
|
2982
|
+
De,
|
|
2983
|
+
g,
|
|
2984
|
+
_(() => e.rowActions !== void 0),
|
|
2985
|
+
D
|
|
2986
|
+
), { isLazyLoad: Fe, isInfiniteScroll: un, verticalScrollPosition: tt, emitLazyLoadEvent: fn } = Bs(
|
|
2987
|
+
i,
|
|
2988
|
+
h,
|
|
2929
2989
|
a,
|
|
2930
|
-
|
|
2990
|
+
v,
|
|
2931
2991
|
V
|
|
2932
2992
|
), {
|
|
2933
|
-
updateScrollPosition:
|
|
2934
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
2935
|
-
syncVirtualScrollerWithBody:
|
|
2936
|
-
hasLeftOverflow:
|
|
2937
|
-
hasRightOverflow:
|
|
2938
|
-
horizontalScrollbarConditionalStyles:
|
|
2939
|
-
} =
|
|
2993
|
+
updateScrollPosition: gn,
|
|
2994
|
+
updateScrollPositionOnFrozenColumnsNavigation: _n,
|
|
2995
|
+
syncVirtualScrollerWithBody: vn,
|
|
2996
|
+
hasLeftOverflow: Me,
|
|
2997
|
+
hasRightOverflow: nt,
|
|
2998
|
+
horizontalScrollbarConditionalStyles: mn
|
|
2999
|
+
} = Us(
|
|
2940
3000
|
a,
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
3001
|
+
r,
|
|
3002
|
+
tt,
|
|
3003
|
+
u,
|
|
3004
|
+
E,
|
|
3005
|
+
ie,
|
|
2946
3006
|
{
|
|
2947
|
-
isLazyLoad:
|
|
2948
|
-
pagination:
|
|
2949
|
-
stickyPagination:
|
|
2950
|
-
isDataGridTemplate:
|
|
3007
|
+
isLazyLoad: Fe,
|
|
3008
|
+
pagination: G,
|
|
3009
|
+
stickyPagination: B,
|
|
3010
|
+
isDataGridTemplate: ne
|
|
2951
3011
|
}
|
|
2952
|
-
),
|
|
2953
|
-
|
|
2954
|
-
},
|
|
2955
|
-
var
|
|
3012
|
+
), st = () => {
|
|
3013
|
+
m.value.isClearAllVisible ? m.value.clearAllFilters() : m.value.isResetAllVisible && m.value.resetAllFilters();
|
|
3014
|
+
}, Cn = _(() => {
|
|
3015
|
+
var I, W;
|
|
2956
3016
|
return {
|
|
2957
3017
|
...e.emptyState,
|
|
2958
|
-
variant: ((
|
|
3018
|
+
variant: ((I = e.emptyState) == null ? void 0 : I.variant) === "embedded" || ((W = e.emptyState) == null ? void 0 : W.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
2959
3019
|
};
|
|
2960
|
-
}),
|
|
2961
|
-
[`b-data-grid--${
|
|
2962
|
-
[`b-data-grid--${
|
|
2963
|
-
[`b-data-grid--${
|
|
2964
|
-
[`b-data-grid--${
|
|
2965
|
-
[`b-data-grid--${
|
|
2966
|
-
[`b-data-grid--${
|
|
2967
|
-
[`b-data-grid--${
|
|
2968
|
-
[`b-data-grid--${
|
|
2969
|
-
})),
|
|
3020
|
+
}), hn = _(() => ({
|
|
3021
|
+
[`b-data-grid--${ge.OUTLINE}`]: e.outline,
|
|
3022
|
+
[`b-data-grid--${ge.SCROLL}`]: e.fitContent || Fe.value,
|
|
3023
|
+
[`b-data-grid--${ge.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
3024
|
+
[`b-data-grid--${ge.OVERFLOW_SHADOW_LEFT}`]: Me.value && !Y.value,
|
|
3025
|
+
[`b-data-grid--${ge.OVERFLOW_SHADOW_RIGHT}`]: nt.value && e.rowActions === void 0,
|
|
3026
|
+
[`b-data-grid--${ge.NO_SPACING_TOP}`]: e.noSpacingTop,
|
|
3027
|
+
[`b-data-grid--${ge.FIT_CONTENT}`]: e.fitContent,
|
|
3028
|
+
[`b-data-grid--${ge.ZEBRA_ROWS}`]: Je.value
|
|
3029
|
+
})), pn = _(() => ({
|
|
2970
3030
|
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
2971
|
-
})),
|
|
2972
|
-
"b-data-grid__filters--sticky": !!e.stickyFilters ||
|
|
2973
|
-
})),
|
|
2974
|
-
var
|
|
3031
|
+
})), wn = _(() => xe.value.findIndex((I) => I.columnSet.length)), bn = _(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && Y.value === 1) || Me.value), Sn = _(() => ({
|
|
3032
|
+
"b-data-grid__filters--sticky": !!e.stickyFilters || ne
|
|
3033
|
+
})), En = _(() => {
|
|
3034
|
+
var I, W, ee, he, Ee, Re;
|
|
2975
3035
|
return {
|
|
2976
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
2977
|
-
"b-data-grid__pagination--padding-right-unset": ((
|
|
2978
|
-
"b-data-grid__pagination--sticky": !!e.stickyPagination ||
|
|
3036
|
+
"b-data-grid__pagination--padding-left-unset": ((ee = (W = (I = e.columns) == null ? void 0 : I[0]) == null ? void 0 : W.padding) == null ? void 0 : ee.left) === !1,
|
|
3037
|
+
"b-data-grid__pagination--padding-right-unset": ((Re = (Ee = (he = e.columns) == null ? void 0 : he[e.columns.length - 1]) == null ? void 0 : Ee.padding) == null ? void 0 : Re.right) === !1,
|
|
3038
|
+
"b-data-grid__pagination--sticky": !!e.stickyPagination || ne
|
|
2979
3039
|
};
|
|
2980
|
-
}),
|
|
2981
|
-
const
|
|
2982
|
-
|
|
2983
|
-
f.value[
|
|
3040
|
+
}), Rn = (I) => {
|
|
3041
|
+
const W = I;
|
|
3042
|
+
I !== null && (W != null && W.columnHeaderRefs) && Object.entries(W == null ? void 0 : W.columnHeaderRefs).forEach(([ee, he]) => {
|
|
3043
|
+
f.value[ee] = he;
|
|
2984
3044
|
});
|
|
2985
|
-
},
|
|
2986
|
-
var
|
|
2987
|
-
const
|
|
2988
|
-
if (
|
|
2989
|
-
const
|
|
2990
|
-
Object.entries(
|
|
2991
|
-
var
|
|
2992
|
-
((
|
|
2993
|
-
}),
|
|
2994
|
-
|
|
2995
|
-
((
|
|
3045
|
+
}, yn = (I, W) => {
|
|
3046
|
+
var he, Ee, Re, it;
|
|
3047
|
+
const ee = I;
|
|
3048
|
+
if (I !== null && ee != null && ee.gridcellRefs) {
|
|
3049
|
+
const zn = e.rowActions !== void 0 && (ee == null ? void 0 : ee.rowActionsRef);
|
|
3050
|
+
Object.entries(ee == null ? void 0 : ee.gridcellRefs).map(([Ue, $n]) => {
|
|
3051
|
+
var rt;
|
|
3052
|
+
((rt = c.value) == null ? void 0 : rt[Ue]) === void 0 && (c.value = { ...c.value, [Ue]: [] }), c.value[Ue][W] = $n;
|
|
3053
|
+
}), zn && (((he = c.value) == null ? void 0 : he[ye]) === void 0 && (c.value = { ...c.value, [ye]: [] }), c.value[ye][W] = (Ee = ee.rowActionsRef) == null ? void 0 : Ee[0], ue.value = Math.max(
|
|
3054
|
+
ue.value,
|
|
3055
|
+
((it = (Re = ee.rowActionsRef) == null ? void 0 : Re[0]) == null ? void 0 : it.offsetWidth) ?? 0
|
|
2996
3056
|
));
|
|
2997
3057
|
}
|
|
2998
|
-
},
|
|
2999
|
-
e.allowRowClicks && V(N.ROW_CLICK,
|
|
3000
|
-
},
|
|
3001
|
-
|
|
3002
|
-
},
|
|
3003
|
-
label: o != null && o.header ?
|
|
3058
|
+
}, Ln = (I, W) => {
|
|
3059
|
+
e.allowRowClicks && V(N.ROW_CLICK, I, W);
|
|
3060
|
+
}, An = (I) => {
|
|
3061
|
+
H.value = I;
|
|
3062
|
+
}, Tn = _(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), On = Jn({
|
|
3063
|
+
label: o != null && o.header ? Xn(o)("header") : null,
|
|
3004
3064
|
defaultFallback: "data grid"
|
|
3005
|
-
}),
|
|
3006
|
-
var
|
|
3007
|
-
return
|
|
3008
|
-
}),
|
|
3009
|
-
var
|
|
3010
|
-
return ((
|
|
3011
|
-
}),
|
|
3012
|
-
V(N.UPDATE_SORT_BY,
|
|
3013
|
-
},
|
|
3014
|
-
V(N.NAVIGATE,
|
|
3065
|
+
}), In = _(() => {
|
|
3066
|
+
var I;
|
|
3067
|
+
return et.value ? "all" : Qe.value ? "page" : ((I = Be.value) == null ? void 0 : I.length) > 0 ? "single" : "none";
|
|
3068
|
+
}), ot = _(() => {
|
|
3069
|
+
var I;
|
|
3070
|
+
return ((I = Be.value) == null ? void 0 : I.length) ?? 0;
|
|
3071
|
+
}), Nn = _(() => e.bulkActions && ot.value > 0), Dn = (I) => V(N.COLUMN_RESIZE, I), xn = (I) => {
|
|
3072
|
+
V(N.UPDATE_SORT_BY, I), V(N.SORT, I);
|
|
3073
|
+
}, Bn = (I, W) => {
|
|
3074
|
+
V(N.NAVIGATE, I), V(N.UPDATE_PAGINATION, {
|
|
3015
3075
|
...e.pagination,
|
|
3016
|
-
size:
|
|
3017
|
-
page:
|
|
3076
|
+
size: W,
|
|
3077
|
+
page: I
|
|
3018
3078
|
});
|
|
3019
|
-
},
|
|
3020
|
-
V(N.ITEMS_PAGE,
|
|
3021
|
-
},
|
|
3079
|
+
}, Fn = (I) => {
|
|
3080
|
+
V(N.ITEMS_PAGE, I);
|
|
3081
|
+
}, Mn = () => {
|
|
3022
3082
|
V(N.FILTER_SEARCH_CLEAR);
|
|
3023
|
-
},
|
|
3024
|
-
V(N.UPDATE_FILTER_SEARCH_TERM,
|
|
3025
|
-
},
|
|
3026
|
-
|
|
3083
|
+
}, Un = (I) => {
|
|
3084
|
+
V(N.UPDATE_FILTER_SEARCH_TERM, I), V(N.FILTER_SEARCH_INPUT, I);
|
|
3085
|
+
}, lt = _(() => O.value.some((I) => I.mandatory));
|
|
3086
|
+
lt.value || Dt(
|
|
3027
3087
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3028
3088
|
);
|
|
3029
|
-
const
|
|
3030
|
-
return
|
|
3089
|
+
const at = _e(es, () => null);
|
|
3090
|
+
return at(e.tabTitle), Te(kt, $e(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: st }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: r, columnHeaderRefs: f, gridcellRefs: c, filtersRef: L, filterBarRef: m, paginationContainerRef: E, verticalScrollPositionRef: h, virtualHorizontalScrollbarRef: u, allowColumnDragAndDrop: T, columns: O, columnPanel: D, data: S, lazyLoadType: i, loading: v, hasNestedContent: R, hasNestedRows: A, selectable: g, selection: C, selectableAcrossPages: y, stickyPagination: B, outline: q, pagination: G, zebraRows: X, hoveredRowIndex: H, t: K, frozenColumnsLength: Y, MOBILE_BREAKPOINT: P, dataGridRef: M, width: p, isSmallContainer: U, isTouchDevice: z, registerDatagridInDataGridTemplate: $, additionalContentSlotRef: me, isDataGridTemplate: ne, stickyTabs: d, tabsRef: F, stickyAdditionalContent: te, computedColumnsTabIndex: re, columnDefs: ce, onColumnWidthOverride: be, gridRowWidthStyle: w, isMeasuringColumnWidths: x, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: k, localColumnsState: Q, totalWidthOfAllColumns: ie, rowActionsMaxWidth: ue, definedEmitsFunction: n, emit: V, stickyFiltersHeight: Ne, computedStickyFiltersTopPosition: Vt, columnHeadersHeight: Ye, computedColumnHeadersTopPosition: Zt, sortedColumns: De, columnSets: xe, isOnlyOneVisibleColumn: jt, internalZebraRows: Je, onConfigSettingsColumnsUpdate: qt, onConfigSettingsColumnUpdate: Kt, onConfigSettingsCondensedUpdate: Yt, onConfigSettingsZebraRowsUpdate: Jt, hoveredOverColumn: Xt, hoveredOverColumnState: Qt, draggingColumns: en, draggingEventsForColumns: tn, draggingEventsForRowCell: nn, onMoveColumnByOffset: sn, selectableAcrossPagesComputed: Xe, onAllRowSelect: on, onRowSelect: ln, onNestedRowSelect: an, onDeselectAll: rn, selectedItems: Be, allItemsSelectedState: dn, isEveryItemSelected: Qe, isEveryItemAcrossPagesSelected: et, navigationInput: cn, isLazyLoad: Fe, isInfiniteScroll: un, verticalScrollPosition: tt, emitLazyLoadEvent: fn, updateScrollPosition: gn, updateScrollPositionOnFrozenColumnsNavigation: _n, syncVirtualScrollerWithBody: vn, hasLeftOverflow: Me, hasRightOverflow: nt, horizontalScrollbarConditionalStyles: mn, onEmptyStateClearResetButtonClick: st, limitedEmptyStateProps: Cn, conditionalGridClasses: hn, conditionalGridBodyClasses: pn, computedColumnPanelAlignment: wn, showFrozenColumnsSeparator: bn, conditionalFilterClasses: Sn, conditionalPaginationClasses: En, registerColumnHeaderRefs: Rn, registerRowCellRefs: yn, onRowClick: Ln, onCellHover: An, ariaGridRole: Tn, ariaGridHeaderText: On, selectionState: In, itemsSelectedCounter: ot, showActionBar: Nn, onColumnResized: Dn, onSort: xn, onPaginationNavigate: Bn, onItemsPerPageChange: Fn, onSearchTermCleared: Mn, onSearchTermInput: Un, hasMandatoryColumn: lt, setTitle: at, BentoActionBar: Kn, BentoPagination: Yn, BentoLoadingIndicator: Ve, BentoTypography: Le, BentoDataGridConfigSettings: $o, DataGridColumns: So, DataGridLazyLoad: Vo, DataGridRow: Ht, handleClipboard: $s, BentoDatagridEvent: N, BentoFilterBar: ze, BentoEmptyState: Qn };
|
|
3031
3091
|
}
|
|
3032
3092
|
});
|
|
3033
|
-
var
|
|
3093
|
+
var Dl = function() {
|
|
3034
3094
|
var o;
|
|
3035
3095
|
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3036
|
-
return n("div", { ref: "dataGridRef", 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 }, on: { copy: e.handleClipboard } }, [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, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, l) } }) : 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, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "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, keydown: e.navigationInput } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns:
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3096
|
+
return n("div", { ref: "dataGridRef", 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, "aria-busy": e.loading }, on: { copy: e.handleClipboard } }, [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, "container-size-layout": t.filtersContainerSizeLayout, "filter-values": t.filterValues, "filter-values-object": t.filterValuesObject, search: t.filterSearchConfig, "search-term": t.filterSearchTerm }, on: { "search-input": e.onSearchTermInput, "search-clear": e.onSearchTermCleared, input: (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTERS, l), "update:filter-values": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES, l), "update:filter-values-object": (l) => t.$emit(e.BentoDatagridEvent.UPDATE_FILTER_VALUES_OBJECT, l) } }) : 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, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "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, keydown: e.navigationInput } }, [n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: r }, f) {
|
|
3097
|
+
var c;
|
|
3098
|
+
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (L) => e.registerColumnHeaderRefs(L), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": r, "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": f === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((c = e.data) == null ? void 0 : c.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(L) {
|
|
3099
|
+
e.hoveredOverColumn = L;
|
|
3100
|
+
}, "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(L) {
|
|
3040
3101
|
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
3041
|
-
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(
|
|
3042
|
-
return { key:
|
|
3043
|
-
return [t._t(
|
|
3102
|
+
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(L, m) {
|
|
3103
|
+
return { key: m, fn: function(E) {
|
|
3104
|
+
return [t._t(m, null, null, E)];
|
|
3044
3105
|
} };
|
|
3045
3106
|
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
3046
|
-
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body"
|
|
3047
|
-
var
|
|
3048
|
-
return n(e.DataGridRow, { key: a, ref: (
|
|
3049
|
-
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED,
|
|
3050
|
-
}, "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(
|
|
3051
|
-
return { key:
|
|
3052
|
-
return [t._t(
|
|
3107
|
+
})], 2)])], 1), n("div", { ref: "body", staticClass: "b-data-grid__body", class: e.conditionalGridBodyClasses, attrs: { "data-testid": "data-grid-body" }, 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(l, a) {
|
|
3108
|
+
var r, f;
|
|
3109
|
+
return n(e.DataGridRow, { key: a, ref: (c) => e.registerRowCellRefs(c, a), refInFor: !0, style: e.gridRowWidthStyle, 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, "has-right-overflow": e.hasRightOverflow, "highlighted-rows": t.highlightedRows, "hovered-row-index": e.hoveredRowIndex, "hovered-over-column-state": e.hoveredOverColumnState, "is-data-item-disabled": t.isDataItemDisabled, "is-row-even": e.internalZebraRows ? a % 2 !== 0 : !1, "is-row-last-child": a + 1 === ((r = e.data) == null ? void 0 : r.length), "is-measuring-column-widths": e.isMeasuringColumnWidths, "row-actions-maximum-width": e.rowActionsMaxWidth, "row-actions": t.rowActions, "row-data": l, "row-index": a, "row-set-size": (f = e.data) == null ? void 0 : f.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(c) {
|
|
3110
|
+
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, c);
|
|
3111
|
+
}, "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(c, L) {
|
|
3112
|
+
return { key: L, fn: function(m) {
|
|
3113
|
+
return [t._t(L, null, null, m)];
|
|
3053
3114
|
} };
|
|
3054
3115
|
})], null, !0) });
|
|
3055
3116
|
}), 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", style: e.horizontalScrollbarConditionalStyles, 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", { ref: "paginationContainerRef", 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(l) {
|
|
3056
3117
|
return e.onAllRowSelect(!1);
|
|
3057
3118
|
} } }) : t._e()], 1);
|
|
3058
|
-
},
|
|
3059
|
-
Ol,
|
|
3060
|
-
Il,
|
|
3119
|
+
}, xl = [], Bl = /* @__PURE__ */ j(
|
|
3061
3120
|
Nl,
|
|
3121
|
+
Dl,
|
|
3122
|
+
xl,
|
|
3062
3123
|
!1,
|
|
3063
3124
|
null,
|
|
3064
|
-
"
|
|
3125
|
+
"ec05a899"
|
|
3065
3126
|
);
|
|
3066
|
-
const
|
|
3127
|
+
const Ta = Bl.exports;
|
|
3067
3128
|
export {
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3129
|
+
ge as B,
|
|
3130
|
+
La as a,
|
|
3131
|
+
Aa as b,
|
|
3132
|
+
we as c,
|
|
3133
|
+
Ta as d,
|
|
3134
|
+
N as e,
|
|
3135
|
+
Oe as f,
|
|
3136
|
+
ke as g
|
|
3076
3137
|
};
|
|
3077
|
-
//# sourceMappingURL=data-grid.
|
|
3138
|
+
//# sourceMappingURL=data-grid.DN9xml8y.js.map
|