@adyen/bento-vue2 1.81.0 → 1.82.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/README.md +1 -1
- package/dist/@types/components.d.ts +196 -0
- package/dist/@types/index.d.ts +17585 -0
- package/dist/@types/use-form-v4.d.ts +86 -0
- package/dist/accordion.js +6 -0
- package/dist/accordion.js.map +1 -0
- package/dist/action-bar.js +5 -0
- package/dist/action-bar.js.map +1 -0
- package/dist/alert.js +8 -0
- package/dist/alert.js.map +1 -0
- package/dist/assets/accordion-item.css +1 -0
- package/dist/assets/action-bar.css +1 -0
- package/dist/assets/ai-button.css +1 -0
- package/dist/assets/alert.css +1 -0
- package/dist/assets/avatar.css +1 -0
- package/dist/assets/base-button.css +1 -0
- package/dist/assets/base-modal.css +1 -0
- package/dist/assets/button-actions-with-menu.css +1 -0
- package/dist/assets/button-actions.css +1 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/calendar.css +1 -0
- package/dist/assets/card.css +1 -0
- package/dist/assets/checkbox-group.css +1 -0
- package/dist/assets/checkbox-input.css +1 -0
- package/dist/assets/checkbox.css +1 -0
- package/dist/assets/chip.css +1 -0
- package/dist/assets/code-snippet.css +1 -0
- package/dist/assets/controls-group.css +1 -0
- package/dist/assets/copy.css +1 -0
- package/dist/assets/country.css +1 -0
- package/dist/assets/currency.css +1 -0
- package/dist/assets/dashboard-section.css +1 -0
- package/dist/assets/dashed-underline.css +1 -0
- package/dist/assets/data-grid-template.css +1 -0
- package/dist/assets/data-grid.css +1 -0
- package/dist/assets/date-picker.css +1 -0
- package/dist/assets/date-range-picker.css +1 -0
- package/dist/assets/date.css +1 -0
- package/dist/assets/dialog-page.css +1 -0
- package/dist/assets/divider.css +1 -0
- package/dist/assets/dropdown-default-textbox.css +1 -0
- package/dist/assets/dropdown-tag.css +1 -0
- package/dist/assets/dropdown.css +1 -0
- package/dist/assets/empty-state.css +1 -0
- package/dist/assets/field-label.css +1 -0
- package/dist/assets/file-uploader.css +1 -0
- package/dist/assets/filter-bar.css +1 -0
- package/dist/assets/fixed-scroller.css +1 -0
- package/dist/assets/focus-trap.css +1 -0
- package/dist/assets/footer-actions.css +1 -0
- package/dist/assets/form-layout-title.css +1 -0
- package/dist/assets/grid-layout.css +1 -0
- package/dist/assets/header-meta.css +1 -0
- package/dist/assets/header-with-views.css +1 -0
- package/dist/assets/header.css +1 -0
- package/dist/assets/index.css +1 -0
- package/dist/assets/info-icon.css +1 -0
- package/dist/assets/input-field-password.css +1 -0
- package/dist/assets/input-field-phone-number.css +1 -0
- package/dist/assets/input-field.css +1 -0
- package/dist/assets/inspector.css +1 -0
- package/dist/assets/layout-row.css +1 -0
- package/dist/assets/link.css +1 -0
- package/dist/assets/listbox-option-tag.css +1 -0
- package/dist/assets/loading-indicator.css +1 -0
- package/dist/assets/main.css +1 -0
- package/dist/assets/modal-fullscreen.css +1 -0
- package/dist/assets/pagination.css +1 -0
- package/dist/assets/payment-method.css +1 -0
- package/dist/assets/popper-container.css +1 -0
- package/dist/assets/promo-banner.css +1 -0
- package/dist/assets/radio-group.css +1 -0
- package/dist/assets/radio-input.css +1 -0
- package/dist/assets/rich-text-editor.css +1 -0
- package/dist/assets/search-bar.css +1 -0
- package/dist/assets/secondary-nav.css +1 -0
- package/dist/assets/segmented-control.css +1 -0
- package/dist/assets/selection-card-group.css +1 -0
- package/dist/assets/sidepanel.css +1 -0
- package/dist/assets/status.css +1 -0
- package/dist/assets/step.css +1 -0
- package/dist/assets/structured-list-item.css +1 -0
- package/dist/assets/summary-grid.css +1 -0
- package/dist/assets/tab.css +1 -0
- package/dist/assets/tag.css +1 -0
- package/dist/assets/textarea.css +1 -0
- package/dist/assets/timeline-item.css +1 -0
- package/dist/assets/toast.css +1 -0
- package/dist/assets/toggle.css +1 -0
- package/dist/assets/tooltip.css +1 -0
- package/dist/assets/tutorial.css +1 -0
- package/dist/assets/typography.css +1 -0
- package/dist/assets/use-cached-selected-values.css +1 -0
- package/dist/avatar.js +5 -0
- package/dist/avatar.js.map +1 -0
- package/dist/button.js +18 -0
- package/dist/button.js.map +1 -0
- package/dist/card.js +7 -0
- package/dist/card.js.map +1 -0
- package/dist/checkbox.js +11 -0
- package/dist/checkbox.js.map +1 -0
- package/dist/chip.js +5 -0
- package/dist/chip.js.map +1 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
- package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
- package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
- package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
- package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
- package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
- package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
- package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
- package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
- package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
- package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
- package/dist/chunks/accordion-item.G1q4zgBG.js +117 -0
- package/dist/chunks/accordion-item.G1q4zgBG.js.map +1 -0
- package/dist/chunks/action-bar.Dhl3T4j-.js +160 -0
- package/dist/chunks/action-bar.Dhl3T4j-.js.map +1 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
- package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
- package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
- package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
- package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
- package/dist/chunks/ai-button.DBwtNkyS.js +67 -0
- package/dist/chunks/ai-button.DBwtNkyS.js.map +1 -0
- package/dist/chunks/alert.SZPP58tl.js +103 -0
- package/dist/chunks/alert.SZPP58tl.js.map +1 -0
- package/dist/chunks/aria-label.CaUURpnB.js +13 -0
- package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
- package/dist/chunks/avatar.CeDqq2Z-.js +71 -0
- package/dist/chunks/avatar.CeDqq2Z-.js.map +1 -0
- package/dist/chunks/base-button.BdST9XT3.js +86 -0
- package/dist/chunks/base-button.BdST9XT3.js.map +1 -0
- package/dist/chunks/base-modal.C-UqIAY8.js +310 -0
- package/dist/chunks/base-modal.C-UqIAY8.js.map +1 -0
- package/dist/chunks/bin.Ddb69cr1.js +24 -0
- package/dist/chunks/bin.Ddb69cr1.js.map +1 -0
- package/dist/chunks/button-actions-with-menu.KKq9Cuk1.js +85 -0
- package/dist/chunks/button-actions-with-menu.KKq9Cuk1.js.map +1 -0
- package/dist/chunks/button-actions.N3D-Bb_x.js +1035 -0
- package/dist/chunks/button-actions.N3D-Bb_x.js.map +1 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
- package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
- package/dist/chunks/button.CS_kdxYh.js +110 -0
- package/dist/chunks/button.CS_kdxYh.js.map +1 -0
- package/dist/chunks/calendar.Bhj58zR3.js +1832 -0
- package/dist/chunks/calendar.Bhj58zR3.js.map +1 -0
- package/dist/chunks/card.BYWF_Zvo.js +137 -0
- package/dist/chunks/card.BYWF_Zvo.js.map +1 -0
- package/dist/chunks/checkbox-group.CIIa-cYP.js +142 -0
- package/dist/chunks/checkbox-group.CIIa-cYP.js.map +1 -0
- package/dist/chunks/checkbox-input.B0NsfSNR.js +117 -0
- package/dist/chunks/checkbox-input.B0NsfSNR.js.map +1 -0
- package/dist/chunks/checkbox.CiWvdg8S.js +178 -0
- package/dist/chunks/checkbox.CiWvdg8S.js.map +1 -0
- package/dist/chunks/checkmark-circle-fill.BttTCjrM.js +24 -0
- package/dist/chunks/checkmark-circle-fill.BttTCjrM.js.map +1 -0
- package/dist/chunks/checkmark-small.DVDtD4HQ.js +24 -0
- package/dist/chunks/checkmark-small.DVDtD4HQ.js.map +1 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js +24 -0
- package/dist/chunks/chevron-down.eYtgv5ly.js.map +1 -0
- package/dist/chunks/chevron-left.BS24hEFa.js +43 -0
- package/dist/chunks/chevron-left.BS24hEFa.js.map +1 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js +24 -0
- package/dist/chunks/chevron-up.d8cwIlA_.js.map +1 -0
- package/dist/chunks/chip.B0DRDvaa.js +63 -0
- package/dist/chunks/chip.B0DRDvaa.js.map +1 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
- package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
- package/dist/chunks/code-snippet.BMzhRl4c.js +268 -0
- package/dist/chunks/code-snippet.BMzhRl4c.js.map +1 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js +14628 -0
- package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -0
- package/dist/chunks/constructNow.BhymNmy5.js +8 -0
- package/dist/chunks/constructNow.BhymNmy5.js.map +1 -0
- package/dist/chunks/controls-group.GchVWe7h.js +84 -0
- package/dist/chunks/controls-group.GchVWe7h.js.map +1 -0
- package/dist/chunks/copy.DauzzgJV.js +96 -0
- package/dist/chunks/copy.DauzzgJV.js.map +1 -0
- package/dist/chunks/country.B3z3-QRY.js +69 -0
- package/dist/chunks/country.B3z3-QRY.js.map +1 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
- package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
- package/dist/chunks/cross-circle-fill-small.DfxDedRr.js +24 -0
- package/dist/chunks/cross-circle-fill-small.DfxDedRr.js.map +1 -0
- package/dist/chunks/cross-circle-fill.DTDtgLMf.js +24 -0
- package/dist/chunks/cross-circle-fill.DTDtgLMf.js.map +1 -0
- package/dist/chunks/cross-small.CoQUe8SS.js +24 -0
- package/dist/chunks/cross-small.CoQUe8SS.js.map +1 -0
- package/dist/chunks/cross.CC_B-vG-.js +24 -0
- package/dist/chunks/cross.CC_B-vG-.js.map +1 -0
- package/dist/chunks/currency.Cwhzzxw2.js +114 -0
- package/dist/chunks/currency.Cwhzzxw2.js.map +1 -0
- package/dist/chunks/dashboard-section.CgAfEay4.js +102 -0
- package/dist/chunks/dashboard-section.CgAfEay4.js.map +1 -0
- package/dist/chunks/dashed-underline.CMdNukpN.js +77 -0
- package/dist/chunks/dashed-underline.CMdNukpN.js.map +1 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
- package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -0
- package/dist/chunks/data-grid-template.m4hsFMe2.js +111 -0
- package/dist/chunks/data-grid-template.m4hsFMe2.js.map +1 -0
- package/dist/chunks/data-grid.rAVOFiTv.js +3294 -0
- package/dist/chunks/data-grid.rAVOFiTv.js.map +1 -0
- package/dist/chunks/date-format.B8RU7D42.js +17 -0
- package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
- package/dist/chunks/date-picker.nLuHJgOC.js +169 -0
- package/dist/chunks/date-picker.nLuHJgOC.js.map +1 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date-range-picker.D2MKhVMf.js +906 -0
- package/dist/chunks/date-range-picker.D2MKhVMf.js.map +1 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
- package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
- package/dist/chunks/date.C1z2TXzM.js +160 -0
- package/dist/chunks/date.C1z2TXzM.js.map +1 -0
- package/dist/chunks/debounce.DUTu11PS.js +10 -0
- package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
- package/dist/chunks/delight.CDBAFnwC.js +5 -0
- package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
- package/dist/chunks/delight.xKDCvvaS.js +5 -0
- package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
- package/dist/chunks/dialog-page.krM2wQpm.js +131 -0
- package/dist/chunks/dialog-page.krM2wQpm.js.map +1 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js +1590 -0
- package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +1 -0
- package/dist/chunks/directive.Cbdox5VL.js +23 -0
- package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
- package/dist/chunks/divider.DX5gwN7p.js +35 -0
- package/dist/chunks/divider.DX5gwN7p.js.map +1 -0
- package/dist/chunks/dot.BW9SneIk.js +24 -0
- package/dist/chunks/dot.BW9SneIk.js.map +1 -0
- package/dist/chunks/dropdown-default-textbox.uWZMxeI7.js +350 -0
- package/dist/chunks/dropdown-default-textbox.uWZMxeI7.js.map +1 -0
- package/dist/chunks/dropdown-tag.BnqOBdMp.js +294 -0
- package/dist/chunks/dropdown-tag.BnqOBdMp.js.map +1 -0
- package/dist/chunks/dropdown.BijF56Y7.js +714 -0
- package/dist/chunks/dropdown.BijF56Y7.js.map +1 -0
- package/dist/chunks/empty-state.BsdRxzS2.js +106 -0
- package/dist/chunks/empty-state.BsdRxzS2.js.map +1 -0
- package/dist/chunks/es6.MoTTyETW.js +12 -0
- package/dist/chunks/es6.MoTTyETW.js.map +1 -0
- package/dist/chunks/events.BQOQSSb7.js +44 -0
- package/dist/chunks/events.BQOQSSb7.js.map +1 -0
- package/dist/chunks/expand.Bbielaja.js +24 -0
- package/dist/chunks/expand.Bbielaja.js.map +1 -0
- package/dist/chunks/field-label.DHGAa4cq.js +121 -0
- package/dist/chunks/field-label.DHGAa4cq.js.map +1 -0
- package/dist/chunks/file-uploader.D2s5qccE.js +1917 -0
- package/dist/chunks/file-uploader.D2s5qccE.js.map +1 -0
- package/dist/chunks/filter-bar.DISI1jAU.js +2472 -0
- package/dist/chunks/filter-bar.DISI1jAU.js.map +1 -0
- package/dist/chunks/fixed-scroller.CgVOf5VE.js +106 -0
- package/dist/chunks/fixed-scroller.CgVOf5VE.js.map +1 -0
- package/dist/chunks/focus-trap.CNIU5jOz.js +1168 -0
- package/dist/chunks/focus-trap.CNIU5jOz.js.map +1 -0
- package/dist/chunks/footer-actions.CFZwikg0.js +96 -0
- package/dist/chunks/footer-actions.CFZwikg0.js.map +1 -0
- package/dist/chunks/form-field.D_2g7vaP.js +10 -0
- package/dist/chunks/form-field.D_2g7vaP.js.map +1 -0
- package/dist/chunks/form-layout-title.B_oVSX5b.js +197 -0
- package/dist/chunks/form-layout-title.B_oVSX5b.js.map +1 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
- package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
- package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js +12 -0
- package/dist/chunks/get-slot-text.Bjb9dTSV.js.map +1 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
- package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js +484 -0
- package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js +76 -0
- package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -0
- package/dist/chunks/header-meta.D0UdrdVf.js +170 -0
- package/dist/chunks/header-meta.D0UdrdVf.js.map +1 -0
- package/dist/chunks/header-with-views.BjZkBSI0.js +1591 -0
- package/dist/chunks/header-with-views.BjZkBSI0.js.map +1 -0
- package/dist/chunks/header.QYvN86kI.js +103 -0
- package/dist/chunks/header.QYvN86kI.js.map +1 -0
- package/dist/chunks/image.C2D2hKat.js +56 -0
- package/dist/chunks/image.C2D2hKat.js.map +1 -0
- package/dist/chunks/index.B6WW_F-J.js +31 -0
- package/dist/chunks/index.B6WW_F-J.js.map +1 -0
- package/dist/chunks/index.BDK4hwK_.js +593 -0
- package/dist/chunks/index.BDK4hwK_.js.map +1 -0
- package/dist/chunks/index.Cl4_42j5.js +8 -0
- package/dist/chunks/index.Cl4_42j5.js.map +1 -0
- package/dist/chunks/info-icon.iKLaNff6.js +37 -0
- package/dist/chunks/info-icon.iKLaNff6.js.map +1 -0
- package/dist/chunks/info.CcMZ4aGg.js +24 -0
- package/dist/chunks/info.CcMZ4aGg.js.map +1 -0
- package/dist/chunks/input-field-password.BeRjHhu6.js +270 -0
- package/dist/chunks/input-field-password.BeRjHhu6.js.map +1 -0
- package/dist/chunks/input-field-phone-number.DLOUy8_E.js +3324 -0
- package/dist/chunks/input-field-phone-number.DLOUy8_E.js.map +1 -0
- package/dist/chunks/input-field.B1Q1-zLo.js +171 -0
- package/dist/chunks/input-field.B1Q1-zLo.js.map +1 -0
- package/dist/chunks/inspector.C6bbjQC0.js +117 -0
- package/dist/chunks/inspector.C6bbjQC0.js.map +1 -0
- package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
- package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
- package/dist/chunks/internal-error.BLZodVBE.js +5 -0
- package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
- package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
- package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js +66 -0
- package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -0
- package/dist/chunks/layout-row.DwdZbpVG.js +87 -0
- package/dist/chunks/layout-row.DwdZbpVG.js.map +1 -0
- package/dist/chunks/link.D8qpqg3W.js +95 -0
- package/dist/chunks/link.D8qpqg3W.js.map +1 -0
- package/dist/chunks/listbox-option-tag.CK628fjn.js +44 -0
- package/dist/chunks/listbox-option-tag.CK628fjn.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/minus-small.DJacLGTw.js +27 -0
- package/dist/chunks/minus-small.DJacLGTw.js.map +1 -0
- package/dist/chunks/modal-fullscreen.UqZgbaDw.js +221 -0
- package/dist/chunks/modal-fullscreen.UqZgbaDw.js.map +1 -0
- package/dist/chunks/modal.DCgB0pA2.js +445 -0
- package/dist/chunks/modal.DCgB0pA2.js.map +1 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
- package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
- package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
- package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
- package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
- package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
- package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
- package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
- package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
- package/dist/chunks/pagination.CylAnOyc.js +338 -0
- package/dist/chunks/pagination.CylAnOyc.js.map +1 -0
- package/dist/chunks/payment-method.C8Ie97qE.js +76 -0
- package/dist/chunks/payment-method.C8Ie97qE.js.map +1 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
- package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
- package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
- package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
- package/dist/chunks/popover.types.WDh5ggr3.js +6 -0
- package/dist/chunks/popover.types.WDh5ggr3.js.map +1 -0
- package/dist/chunks/popper-container.Cdokz_NE.js +1404 -0
- package/dist/chunks/popper-container.Cdokz_NE.js.map +1 -0
- package/dist/chunks/promo-banner.DikQcQU2.js +70 -0
- package/dist/chunks/promo-banner.DikQcQU2.js.map +1 -0
- package/dist/chunks/radio-group.Cr7UcYij.js +178 -0
- package/dist/chunks/radio-group.Cr7UcYij.js.map +1 -0
- package/dist/chunks/radio-input.kzb4gxLW.js +90 -0
- package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -0
- package/dist/chunks/referrals.BvtT-kQS.js +5 -0
- package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
- package/dist/chunks/referrals.aX8WZigH.js +5 -0
- package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
- package/dist/chunks/refresh.arF7jP-l.js +24 -0
- package/dist/chunks/refresh.arF7jP-l.js.map +1 -0
- package/dist/chunks/resize.Bqks3WUm.js +15 -0
- package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
- package/dist/chunks/rich-text-editor.NKPFP8Ss.js +6203 -0
- package/dist/chunks/rich-text-editor.NKPFP8Ss.js.map +1 -0
- package/dist/chunks/search-bar.VctrP6lp.js +98 -0
- package/dist/chunks/search-bar.VctrP6lp.js.map +1 -0
- package/dist/chunks/search.D53Ia3rC.js +24 -0
- package/dist/chunks/search.D53Ia3rC.js.map +1 -0
- package/dist/chunks/secondary-nav.jpMeWSZj.js +112 -0
- package/dist/chunks/secondary-nav.jpMeWSZj.js.map +1 -0
- package/dist/chunks/segmented-control._CuB62pG.js +113 -0
- package/dist/chunks/segmented-control._CuB62pG.js.map +1 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
- package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
- package/dist/chunks/selection-card-group.jykyd9iE.js +240 -0
- package/dist/chunks/selection-card-group.jykyd9iE.js.map +1 -0
- package/dist/chunks/show.B_mKPF6I.js +43 -0
- package/dist/chunks/show.B_mKPF6I.js.map +1 -0
- package/dist/chunks/sidepanel.CP-b8Zcg.js +210 -0
- package/dist/chunks/sidepanel.CP-b8Zcg.js.map +1 -0
- package/dist/chunks/status.types.BpMK-6IT.js +36 -0
- package/dist/chunks/status.types.BpMK-6IT.js.map +1 -0
- package/dist/chunks/step.4hMAy8v_.js +217 -0
- package/dist/chunks/step.4hMAy8v_.js.map +1 -0
- package/dist/chunks/structured-list-item.BLJabJwA.js +90 -0
- package/dist/chunks/structured-list-item.BLJabJwA.js.map +1 -0
- package/dist/chunks/success.DhioLvPD.js +5 -0
- package/dist/chunks/success.DhioLvPD.js.map +1 -0
- package/dist/chunks/success.nNwxJRBS.js +5 -0
- package/dist/chunks/success.nNwxJRBS.js.map +1 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
- package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -0
- package/dist/chunks/summary-grid.types.B0w2S_9r.js +337 -0
- package/dist/chunks/summary-grid.types.B0w2S_9r.js.map +1 -0
- package/dist/chunks/tab.DXE68qVf.js +192 -0
- package/dist/chunks/tab.DXE68qVf.js.map +1 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
- package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -0
- package/dist/chunks/tag.7fp_M9Au.js +44 -0
- package/dist/chunks/tag.7fp_M9Au.js.map +1 -0
- package/dist/chunks/textarea.Ci9sKDFy.js +173 -0
- package/dist/chunks/textarea.Ci9sKDFy.js.map +1 -0
- package/dist/chunks/timeline-item.DcIQ-Q1T.js +255 -0
- package/dist/chunks/timeline-item.DcIQ-Q1T.js.map +1 -0
- package/dist/chunks/toast.DGvNp4ZM.js +171 -0
- package/dist/chunks/toast.DGvNp4ZM.js.map +1 -0
- package/dist/chunks/toggle.D2wmNu7m.js +108 -0
- package/dist/chunks/toggle.D2wmNu7m.js.map +1 -0
- package/dist/chunks/tooltip.BcQ24pKP.js +189 -0
- package/dist/chunks/tooltip.BcQ24pKP.js.map +1 -0
- package/dist/chunks/truncate.BfIl_-71.js +8 -0
- package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
- package/dist/chunks/tutorial.Co2F7l0B.js +347 -0
- package/dist/chunks/tutorial.Co2F7l0B.js.map +1 -0
- package/dist/chunks/typography.hlOAxsEn.js +87 -0
- package/dist/chunks/typography.hlOAxsEn.js.map +1 -0
- package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
- package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
- package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
- package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
- package/dist/chunks/use-bento-toast-controller.BhtohoS1.js +52 -0
- package/dist/chunks/use-bento-toast-controller.BhtohoS1.js.map +1 -0
- package/dist/chunks/use-cached-selected-values.BYiLNRRi.js +1343 -0
- package/dist/chunks/use-cached-selected-values.BYiLNRRi.js.map +1 -0
- package/dist/chunks/use-country-items.B3Cd3Tdo.js +30 -0
- package/dist/chunks/use-country-items.B3Cd3Tdo.js.map +1 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js +5621 -0
- package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -0
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +13 -0
- package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
- package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js +12 -0
- package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -0
- package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
- package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js +24 -0
- package/dist/chunks/warning-filled.CbJ1pcB2.js.map +1 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
- package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
- package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
- package/dist/click-outside.js +5 -0
- package/dist/click-outside.js.map +1 -0
- package/dist/code-snippet.js +8 -0
- package/dist/code-snippet.js.map +1 -0
- package/dist/country.js +12 -0
- package/dist/country.js.map +1 -0
- package/dist/currency.js +6 -0
- package/dist/currency.js.map +1 -0
- package/dist/dashboard-template.js +6 -0
- package/dist/dashboard-template.js.map +1 -0
- package/dist/dashed-underline.js +5 -0
- package/dist/dashed-underline.js.map +1 -0
- package/dist/data-grid-template.js +5 -0
- package/dist/data-grid-template.js.map +1 -0
- package/dist/data-grid.js +13 -0
- package/dist/data-grid.js.map +1 -0
- package/dist/date-picker.js +10 -0
- package/dist/date-picker.js.map +1 -0
- package/dist/date-range-picker.js +10 -0
- package/dist/date-range-picker.js.map +1 -0
- package/dist/date.js +6 -0
- package/dist/date.js.map +1 -0
- package/dist/divider.js +5 -0
- package/dist/divider.js.map +1 -0
- package/dist/dropdown.js +16 -0
- package/dist/dropdown.js.map +1 -0
- package/dist/empty-state.js +8 -0
- package/dist/empty-state.js.map +1 -0
- package/dist/file-uploader.js +5 -0
- package/dist/file-uploader.js.map +1 -0
- package/dist/filter-bar.js +9 -0
- package/dist/filter-bar.js.map +1 -0
- package/dist/focus-trap.js +5 -0
- package/dist/focus-trap.js.map +1 -0
- package/dist/fonts/fonts.css +2 -0
- package/dist/form-layout.js +8 -0
- package/dist/form-layout.js.map +1 -0
- package/dist/header-with-views.js +5 -0
- package/dist/header-with-views.js.map +1 -0
- package/dist/header.js +5 -0
- package/dist/header.js.map +1 -0
- package/dist/image.js +7 -0
- package/dist/image.js.map +1 -0
- package/dist/index.js +442 -0
- package/dist/index.js.map +1 -0
- package/dist/info-icon.js +5 -0
- package/dist/info-icon.js.map +1 -0
- package/dist/input-field-password.js +10 -0
- package/dist/input-field-password.js.map +1 -0
- package/dist/input-field-phone-number.js +6 -0
- package/dist/input-field-phone-number.js.map +1 -0
- package/dist/input-field.js +10 -0
- package/dist/input-field.js.map +1 -0
- package/dist/inspector.js +7 -0
- package/dist/inspector.js.map +1 -0
- package/dist/internal.js +45 -0
- package/dist/internal.js.map +1 -0
- package/dist/layout.js +6 -0
- package/dist/layout.js.map +1 -0
- package/dist/link.js +6 -0
- package/dist/link.js.map +1 -0
- package/dist/loading-indicator.js +6 -0
- package/dist/loading-indicator.js.map +1 -0
- package/dist/menu.js +6 -0
- package/dist/menu.js.map +1 -0
- package/dist/modal-fullscreen.js +6 -0
- package/dist/modal-fullscreen.js.map +1 -0
- package/dist/modal.js +14 -0
- package/dist/modal.js.map +1 -0
- package/dist/pagination.js +5 -0
- package/dist/pagination.js.map +1 -0
- package/dist/payment-method.js +7 -0
- package/dist/payment-method.js.map +1 -0
- package/dist/popover.js +7 -0
- package/dist/popover.js.map +1 -0
- package/dist/popper-container.js +9 -0
- package/dist/popper-container.js.map +1 -0
- package/dist/promo-banner.js +7 -0
- package/dist/promo-banner.js.map +1 -0
- package/dist/radio-group.js +9 -0
- package/dist/radio-group.js.map +1 -0
- package/dist/rich-text-editor.js +5 -0
- package/dist/rich-text-editor.js.map +1 -0
- package/dist/search-bar.js +9 -0
- package/dist/search-bar.js.map +1 -0
- package/dist/secondary-nav.js +5 -0
- package/dist/secondary-nav.js.map +1 -0
- package/dist/segmented-control.js +7 -0
- package/dist/segmented-control.js.map +1 -0
- package/dist/selection-card.js +7 -0
- package/dist/selection-card.js.map +1 -0
- package/dist/sidepanel.js +7 -0
- package/dist/sidepanel.js.map +1 -0
- package/dist/status.js +6 -0
- package/dist/status.js.map +1 -0
- package/dist/stepper.js +8 -0
- package/dist/stepper.js.map +1 -0
- package/dist/structured-list.js +6 -0
- package/dist/structured-list.js.map +1 -0
- package/dist/styles/bento-dark.css +2133 -0
- package/dist/styles/bento-light.css +2132 -0
- package/dist/styles/bento.css +2132 -0
- package/dist/styles/legacy.css +2132 -0
- package/dist/styles/styleguide.css +2187 -0
- package/dist/styles/utility.css +1002 -0
- package/dist/summary-grid.js +12 -0
- package/dist/summary-grid.js.map +1 -0
- package/dist/tabs.js +6 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.js +6 -0
- package/dist/tag.js.map +1 -0
- package/dist/textarea.js +5 -0
- package/dist/textarea.js.map +1 -0
- package/dist/timeline.js +10 -0
- package/dist/timeline.js.map +1 -0
- package/dist/toast.js +5 -0
- package/dist/toast.js.map +1 -0
- package/dist/toggle.js +7 -0
- package/dist/toggle.js.map +1 -0
- package/dist/tutorial.js +5 -0
- package/dist/tutorial.js.map +1 -0
- package/dist/typography.js +8 -0
- package/dist/typography.js.map +1 -0
- package/dist/use-form-v4.js +8300 -0
- package/dist/use-form-v4.js.map +1 -0
- package/dist/web-types.json +17262 -0
- package/package.json +27 -24
|
@@ -0,0 +1,3294 @@
|
|
|
1
|
+
import { ref as p, onMounted as be, nextTick as le, watch as ae, onUnmounted as Nt, reactive as ke, toRefs as We, computed as v, watchEffect as zn, onBeforeUpdate as kn, defineComponent as de, inject as me, toRef as Pe, useSlots as Ge, provide as Oe } from "vue";
|
|
2
|
+
import { C as Wn } from "./checkmark-circle-fill.BttTCjrM.js";
|
|
3
|
+
import { W as Gn } from "./warning-filled.CbJ1pcB2.js";
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { n as q } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
|
|
6
|
+
import { C as It } from "./cross.CC_B-vG-.js";
|
|
7
|
+
import { N as it } from "./minus-small.DJacLGTw.js";
|
|
8
|
+
import { d as Hn } from "./popper-container.Cdokz_NE.js";
|
|
9
|
+
import { E as ce, b as Vn, B as Zn, T as jn } from "./tooltip.BcQ24pKP.js";
|
|
10
|
+
import { B as qn } from "./dashed-underline.CMdNukpN.js";
|
|
11
|
+
import { B as Re, p as Dt } from "./typography.hlOAxsEn.js";
|
|
12
|
+
import { u as he } from "./index.B6WW_F-J.js";
|
|
13
|
+
import { B as Kn } from "./action-bar.Dhl3T4j-.js";
|
|
14
|
+
import { B as Yn } from "./pagination.CylAnOyc.js";
|
|
15
|
+
import { B as He } from "./loading-indicator.PxbRzshH.js";
|
|
16
|
+
import { u as Ve } from "./use-has-slot.C9lQZ6nz.js";
|
|
17
|
+
import { g as Ie } from "./generate-uid.NJ8tVoha.js";
|
|
18
|
+
import { B as $e } from "./filter-bar.DISI1jAU.js";
|
|
19
|
+
import { B as Jn } from "./empty-state.BsdRxzS2.js";
|
|
20
|
+
import { E as Xn } from "./tabs.keys.B4qGhjp2.js";
|
|
21
|
+
import { D as Qn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
22
|
+
import { b as es } from "./index.BDK4hwK_.js";
|
|
23
|
+
import { o as Ze } from "./resize.Bqks3WUm.js";
|
|
24
|
+
import "./index.Cl4_42j5.js";
|
|
25
|
+
import { B as xt } from "./checkbox.CiWvdg8S.js";
|
|
26
|
+
import { B as Ft } from "./button.CS_kdxYh.js";
|
|
27
|
+
import { c as je, f as Bt, h as ts, b as ns, a as ss, O as rt, D as os } from "./button-actions.N3D-Bb_x.js";
|
|
28
|
+
import { E as ct } from "./link.D8qpqg3W.js";
|
|
29
|
+
import { C as dt } from "./copy.DauzzgJV.js";
|
|
30
|
+
import { C as ls } from "./chevron-down.eYtgv5ly.js";
|
|
31
|
+
import { C as as } from "./chevron-up.d8cwIlA_.js";
|
|
32
|
+
import { b as Ut } from "./focus-trap.CNIU5jOz.js";
|
|
33
|
+
import { u as is } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
34
|
+
import { B as rs } from "./info-icon.iKLaNff6.js";
|
|
35
|
+
import { D as cs } from "./use-cached-selected-values.BYiLNRRi.js";
|
|
36
|
+
import { B as ut } from "./popover.types.WDh5ggr3.js";
|
|
37
|
+
import { A as ds } from "./dialog-page.krM2wQpm.js";
|
|
38
|
+
import { H as us, S as fs } from "./show.B_mKPF6I.js";
|
|
39
|
+
import { l as ft } from "./events.BQOQSSb7.js";
|
|
40
|
+
import { B as Mt } from "./toggle.D2wmNu7m.js";
|
|
41
|
+
import { B as gs } from "./search-bar.VctrP6lp.js";
|
|
42
|
+
import { u as _s } from "./dropdown.BijF56Y7.js";
|
|
43
|
+
import { S as vs } from "./search.D53Ia3rC.js";
|
|
44
|
+
import { B as ms } from "./directive.Cbdox5VL.js";
|
|
45
|
+
import "../assets/data-grid.css";
|
|
46
|
+
const gt = (s) => {
|
|
47
|
+
if (!s)
|
|
48
|
+
return 0;
|
|
49
|
+
const t = window.getComputedStyle(s);
|
|
50
|
+
let n = s.offsetHeight;
|
|
51
|
+
const e = window.getComputedStyle(s, "::after");
|
|
52
|
+
if (e.content !== "none" && e.position === "absolute") {
|
|
53
|
+
const l = parseFloat(e.height), a = parseFloat(e.bottom);
|
|
54
|
+
!isNaN(l) && !isNaN(a) && a < 0 && a + l <= 0 && (n += l);
|
|
55
|
+
}
|
|
56
|
+
const o = parseFloat(t.top);
|
|
57
|
+
return !isNaN(o) && o < 0 && (n += o), n;
|
|
58
|
+
}, _t = (s, t, n = p(!1), e = null) => {
|
|
59
|
+
const o = p(0);
|
|
60
|
+
let l = null, a = null;
|
|
61
|
+
const i = () => {
|
|
62
|
+
const _ = t.value ? gt(s.value) : 0, g = n.value && e ? gt(e.value) : 0;
|
|
63
|
+
o.value = _ + g;
|
|
64
|
+
};
|
|
65
|
+
return be(() => {
|
|
66
|
+
le(() => {
|
|
67
|
+
const _ = ae(
|
|
68
|
+
s,
|
|
69
|
+
() => {
|
|
70
|
+
s != null && s.value && (le(() => _()), l = Ze(s.value, i), a = new MutationObserver(i), a.observe(s.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
71
|
+
},
|
|
72
|
+
{ immediate: !0 }
|
|
73
|
+
);
|
|
74
|
+
ae(
|
|
75
|
+
[t, n],
|
|
76
|
+
() => {
|
|
77
|
+
i();
|
|
78
|
+
},
|
|
79
|
+
{ immediate: !0 }
|
|
80
|
+
);
|
|
81
|
+
});
|
|
82
|
+
}), Nt(() => {
|
|
83
|
+
l == null || l.disconnect(), a == null || a.disconnect();
|
|
84
|
+
}), o;
|
|
85
|
+
};
|
|
86
|
+
var ze = /* @__PURE__ */ ((s) => (s.WRAP = "wrap", s.ELLIPSIS = "ellipsis", s))(ze || {}), j = /* @__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.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL = "deselect-all", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", 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))(j || {}), ve = /* @__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))(ve || {}), Se = /* @__PURE__ */ ((s) => (s.ASCENDING = "asc", s.DESCENDING = "desc", s))(Se || {}), N = /* @__PURE__ */ ((s) => (s.CELL_FOCUS = "cell-focus", 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.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", s.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", s.SORT = "sort", s))(N || {}), Ne = /* @__PURE__ */ ((s) => (s.ASCENDING = "ascending", s.DESCENDING = "descending", s.NONE = "none", s))(Ne || {});
|
|
87
|
+
const Cs = (s, t) => {
|
|
88
|
+
const n = p(null), e = p(!1), o = p(void 0), l = s.value.reduce((L, F) => (L[F.field] = null, L), {}), a = ke(l), i = We(a);
|
|
89
|
+
let _ = 0, g = "";
|
|
90
|
+
const w = v(
|
|
91
|
+
() => Object.fromEntries(s.value.map(({ field: L, width: F, minWidth: b }) => [L, { width: F, minWidth: b }]))
|
|
92
|
+
);
|
|
93
|
+
zn(() => o.value = w.value);
|
|
94
|
+
let m = null, E = null;
|
|
95
|
+
const S = (L) => {
|
|
96
|
+
const F = L.clientX - _, b = g, d = o.value[b].width + F;
|
|
97
|
+
o.value[b].width = d > w.value[b].minWidth ? d : w.value[b].minWidth, t(j.COLUMN_RESIZING, o.value), _ = L.clientX;
|
|
98
|
+
}, u = () => {
|
|
99
|
+
e.value = !1, m == null || m(), E == null || E(), g && t(j.COLUMN_RESIZE, {
|
|
100
|
+
field: g,
|
|
101
|
+
width: o.value[g].width
|
|
102
|
+
}), m = null, E = null, g = "", _ = null;
|
|
103
|
+
}, y = (L, F, b) => {
|
|
104
|
+
if (b.preventDefault(), L) {
|
|
105
|
+
if (e.value = !0, b.buttons !== 1) {
|
|
106
|
+
u();
|
|
107
|
+
return;
|
|
108
|
+
}
|
|
109
|
+
g = F, _ = b.clientX, m = ft(window, "mousemove", S), E = ft(window, "mouseup", u);
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
return ae(
|
|
113
|
+
() => e.value,
|
|
114
|
+
(L, F) => {
|
|
115
|
+
!L && F && (t(j.COLUMN_HOVER, n.value), n.value = null);
|
|
116
|
+
}
|
|
117
|
+
), {
|
|
118
|
+
resizeData: o,
|
|
119
|
+
allColumnRefs: i,
|
|
120
|
+
startResize: y,
|
|
121
|
+
isResizing: e,
|
|
122
|
+
columnHoverEventToEmitAfterResizing: n
|
|
123
|
+
};
|
|
124
|
+
}, hs = 100, vt = 50, oe = "b-actions-column", ps = 42, ws = 56, Ss = 56, bs = 80, Rs = 36, Es = 1, $t = 16, Ls = 20, ys = (s, t, n) => {
|
|
125
|
+
const e = {}, o = [], l = (i) => {
|
|
126
|
+
const _ = e[i];
|
|
127
|
+
_ && _.frozen !== !0 && (e[i].frozen = !0, o.push(i));
|
|
128
|
+
};
|
|
129
|
+
function a() {
|
|
130
|
+
if (o.length === n.length)
|
|
131
|
+
return;
|
|
132
|
+
const i = { min: {} };
|
|
133
|
+
let _ = s, g = t, w = 0;
|
|
134
|
+
o.forEach((m) => {
|
|
135
|
+
_ -= e[m].computedWidth, g -= e[m].flex;
|
|
136
|
+
});
|
|
137
|
+
for (let m = 0, E = n.length; m < E; m += 1) {
|
|
138
|
+
const S = n[m];
|
|
139
|
+
if (e[S.field] && e[S.field].frozen === !0)
|
|
140
|
+
continue;
|
|
141
|
+
let y = _ / g * S.flex;
|
|
142
|
+
y < S.minWidth && (w += S.minWidth - y, y = S.minWidth, i.min[S.field] = !0), e[S.field] = {
|
|
143
|
+
frozen: !1,
|
|
144
|
+
computedWidth: y,
|
|
145
|
+
flex: S.flex
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
w > 0 ? Object.keys(i.min).forEach((m) => {
|
|
149
|
+
l(m);
|
|
150
|
+
}) : n.forEach(({ field: m }) => {
|
|
151
|
+
l(m);
|
|
152
|
+
}), a();
|
|
153
|
+
}
|
|
154
|
+
return a(), e;
|
|
155
|
+
}, mt = (s, t) => {
|
|
156
|
+
let n = Es;
|
|
157
|
+
return t && (n += $t * 2), s != null && s.offsetWidth ? s.offsetWidth + n : 0;
|
|
158
|
+
}, As = (s) => {
|
|
159
|
+
var t, n, e, o, l;
|
|
160
|
+
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 ? bs : Ss : Rs : (l = s == null ? void 0 : s.hasSelectableAcrossPages) != null && l.value ? ws : ps;
|
|
161
|
+
}, Ts = (s, t, n, e, o, l) => {
|
|
162
|
+
const a = p(s.value), i = p(t), _ = p(n), g = p(e), w = p(o), m = p(!1), E = p(0);
|
|
163
|
+
ae(
|
|
164
|
+
() => s.value,
|
|
165
|
+
(r, f) => {
|
|
166
|
+
var T, B;
|
|
167
|
+
const R = (r == null ? void 0 : r.map(({ field: U }) => U).toString()) === (f == null ? void 0 : f.map(({ field: U }) => U).toString());
|
|
168
|
+
if (!((T = l == null ? void 0 : l.allowColumnDragAndDrop) != null && T.value) || !R) {
|
|
169
|
+
a.value = s.value;
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
a.value = ((B = a.value) == null ? void 0 : B.length) === 0 ? s.value : s.value.sort((U, k) => {
|
|
173
|
+
const J = a.value.findIndex((ee) => ee.field === U.field), K = a.value.findIndex((ee) => ee.field === k.field);
|
|
174
|
+
return J === -1 ? 1 : K === -1 ? -1 : J - K;
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
);
|
|
178
|
+
const S = p();
|
|
179
|
+
let u = null;
|
|
180
|
+
const y = v(() => {
|
|
181
|
+
var J, K, ee;
|
|
182
|
+
const r = [];
|
|
183
|
+
let f = 0, R = 0;
|
|
184
|
+
const T = {};
|
|
185
|
+
let B = a.value.filter((G) => G.visible !== !1);
|
|
186
|
+
const U = a.value.filter((G) => G.visible === !1);
|
|
187
|
+
if ((J = l == null ? void 0 : l.hasSelectableColumn) != null && J.value || (K = l == null ? void 0 : l.hasNestedContent) != null && K.value || (ee = l == null ? void 0 : l.hasNestedRows) != null && ee.value) {
|
|
188
|
+
const G = As(l);
|
|
189
|
+
B = [
|
|
190
|
+
{
|
|
191
|
+
field: oe,
|
|
192
|
+
label: "",
|
|
193
|
+
minWidth: G,
|
|
194
|
+
width: G,
|
|
195
|
+
frozen: !0,
|
|
196
|
+
padding: { left: !1, right: !1 }
|
|
197
|
+
},
|
|
198
|
+
...B
|
|
199
|
+
];
|
|
200
|
+
}
|
|
201
|
+
B.forEach((G) => {
|
|
202
|
+
const $ = { ...G };
|
|
203
|
+
let C;
|
|
204
|
+
$.flex && $.flex > 0 ? (f += $.flex, C = 0, r.push($)) : C = Math.max(
|
|
205
|
+
($ == null ? void 0 : $.width) ?? hs,
|
|
206
|
+
($ == null ? void 0 : $.minWidth) ?? vt
|
|
207
|
+
), R += C, $.width = C, $.minWidth = ($ == null ? void 0 : $.minWidth) ?? vt, T[$.field] = $;
|
|
208
|
+
}), R += E.value;
|
|
209
|
+
const k = Math.max(S.value - R, 0);
|
|
210
|
+
if (f > 0 && S.value > 0) {
|
|
211
|
+
const G = ys(k, f, r);
|
|
212
|
+
Object.keys(G).forEach(($) => {
|
|
213
|
+
T[$].width = G[$].computedWidth;
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
return U.forEach((G) => {
|
|
217
|
+
const $ = { ...G };
|
|
218
|
+
T[$.field] = $;
|
|
219
|
+
}), Object.values(T);
|
|
220
|
+
}), L = p(void 0), F = (r) => {
|
|
221
|
+
L.value = { ...L.value, ...r };
|
|
222
|
+
}, b = async () => {
|
|
223
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && (m.value = !0, await le(), a == null || a.value.filter((r) => r == null ? void 0 : r.autoWidth).forEach(({ field: r, minWidth: f }) => {
|
|
224
|
+
var U, k, J, K;
|
|
225
|
+
const R = mt(
|
|
226
|
+
(U = g.value) == null ? void 0 : U[r],
|
|
227
|
+
(k = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : k.value
|
|
228
|
+
), T = (K = (J = w.value) == null ? void 0 : J[r]) == null ? void 0 : K.reduce(
|
|
229
|
+
(ee, G) => Math.max(ee, mt(G)),
|
|
230
|
+
0
|
|
231
|
+
), B = Math.max(R, T ?? 0);
|
|
232
|
+
(f === void 0 || B > f) && F({
|
|
233
|
+
[r]: {
|
|
234
|
+
width: B
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
}), m.value = !1);
|
|
238
|
+
};
|
|
239
|
+
ae([() => a.value, () => i.value], async () => {
|
|
240
|
+
a.value.some((r) => r == null ? void 0 : r.autoWidth) && await b();
|
|
241
|
+
});
|
|
242
|
+
const d = v(
|
|
243
|
+
() => y.value.map((r) => {
|
|
244
|
+
var f, R;
|
|
245
|
+
return {
|
|
246
|
+
...r,
|
|
247
|
+
// Override column width with resized ones
|
|
248
|
+
width: ((R = (f = L.value) == null ? void 0 : f[r.field]) == null ? void 0 : R.width) ?? r.width
|
|
249
|
+
};
|
|
250
|
+
})
|
|
251
|
+
), A = v(
|
|
252
|
+
() => {
|
|
253
|
+
var r;
|
|
254
|
+
return ((r = d.value) == null ? void 0 : r.filter(({ visible: f }) => f !== !1).reduce((f, R) => R.width + f, 0)) + E.value;
|
|
255
|
+
}
|
|
256
|
+
), O = v(
|
|
257
|
+
() => S.value <= A.value
|
|
258
|
+
), D = v(() => ({
|
|
259
|
+
width: S.value > A.value ? "100%" : "fit-content"
|
|
260
|
+
}));
|
|
261
|
+
return be(() => {
|
|
262
|
+
var f;
|
|
263
|
+
const r = l != null && l.isDataGridTemplate ? Ls : 0;
|
|
264
|
+
le(() => {
|
|
265
|
+
_.value && (S.value = _.value.getBoundingClientRect().width - r);
|
|
266
|
+
const R = ae(
|
|
267
|
+
_,
|
|
268
|
+
() => {
|
|
269
|
+
_.value && (le(() => R()), u = Ze(_.value, ({ width: T }) => {
|
|
270
|
+
S.value = T - r;
|
|
271
|
+
}));
|
|
272
|
+
},
|
|
273
|
+
{ immediate: !0 }
|
|
274
|
+
);
|
|
275
|
+
}), (f = document == null ? void 0 : document.fonts) != null && f.ready ? document.fonts.ready.then(() => {
|
|
276
|
+
b();
|
|
277
|
+
}) : b();
|
|
278
|
+
}), Nt(() => {
|
|
279
|
+
u == null || u.disconnect();
|
|
280
|
+
}), kn(() => {
|
|
281
|
+
var r;
|
|
282
|
+
w.value && ((r = Object.keys(w.value)) == null ? void 0 : r.length) > 0 && Object.keys(w.value).forEach((R) => {
|
|
283
|
+
w.value[R] = [];
|
|
284
|
+
});
|
|
285
|
+
}), {
|
|
286
|
+
columnDefs: d,
|
|
287
|
+
gridRowWidthStyle: D,
|
|
288
|
+
onColumnWidthOverride: F,
|
|
289
|
+
isMeasuringColumnWidths: m,
|
|
290
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: O,
|
|
291
|
+
columns: a,
|
|
292
|
+
totalWidthOfAllColumns: A,
|
|
293
|
+
rowActionsMaxWidth: E
|
|
294
|
+
};
|
|
295
|
+
}, Os = (s, t, n, e, o, l, a) => {
|
|
296
|
+
const i = p(s.value ?? []), _ = ke({
|
|
297
|
+
allItemsSelected: !1,
|
|
298
|
+
isIndeterminate: !1
|
|
299
|
+
}), g = v(
|
|
300
|
+
() => n.value.flatMap((r) => {
|
|
301
|
+
var f;
|
|
302
|
+
return [r, ((f = r == null ? void 0 : r.children) == null ? void 0 : f.length) > 0 ? r == null ? void 0 : r.children : []];
|
|
303
|
+
}).flat()
|
|
304
|
+
), w = v(
|
|
305
|
+
() => {
|
|
306
|
+
var r, f;
|
|
307
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.every((R) => i.value.includes(e(R))));
|
|
308
|
+
}
|
|
309
|
+
), m = v(
|
|
310
|
+
() => {
|
|
311
|
+
var r, f;
|
|
312
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && ((f = g.value) == null ? void 0 : f.filter((R) => !o(R)).every((R) => i.value.includes(e(R))));
|
|
313
|
+
}
|
|
314
|
+
), E = v(
|
|
315
|
+
() => {
|
|
316
|
+
var r, f;
|
|
317
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.some((R) => i.value.includes(e(R))));
|
|
318
|
+
}
|
|
319
|
+
), S = v(
|
|
320
|
+
() => {
|
|
321
|
+
var r, f;
|
|
322
|
+
return ((r = n.value) == null ? void 0 : r.length) > 0 && !((f = g.value) != null && f.filter((R) => !o(R)).some((R) => i.value.includes(e(R))));
|
|
323
|
+
}
|
|
324
|
+
), u = v(() => {
|
|
325
|
+
var r;
|
|
326
|
+
return !(l != null && l.value) || ((r = a == null ? void 0 : a.value) == null ? void 0 : r.totalCount) === void 0 ? !1 : i.value.length >= a.value.totalCount && m.value;
|
|
327
|
+
}), y = () => {
|
|
328
|
+
t(N.SELECT, i.value), t(N.UPDATE_SELECTION, i.value);
|
|
329
|
+
}, L = (r) => {
|
|
330
|
+
var f, R;
|
|
331
|
+
i.value = r, w.value ? (_.allItemsSelected = !0, _.isIndeterminate = !1) : (_.allItemsSelected = !1, _.isIndeterminate = ((f = i.value) == null ? void 0 : f.length) > 0 && ((R = n.value) == null ? void 0 : R.length) > 0 && n.value.some(
|
|
332
|
+
(T) => {
|
|
333
|
+
var B;
|
|
334
|
+
return i.value.includes(e(T)) || ((B = T == null ? void 0 : T.children) == null ? void 0 : B.some((U) => i.value.includes(e(U))));
|
|
335
|
+
}
|
|
336
|
+
));
|
|
337
|
+
}, F = (r) => {
|
|
338
|
+
le(() => {
|
|
339
|
+
var R, T;
|
|
340
|
+
_.allItemsSelected = r;
|
|
341
|
+
const f = ((T = (R = g.value) == null ? void 0 : R.filter(
|
|
342
|
+
(B) => !o(B) && ((B == null ? void 0 : B.children) === void 0 || B.children.every((U) => !o(U)))
|
|
343
|
+
)) == null ? void 0 : T.map((B) => e(B))) ?? [];
|
|
344
|
+
r ? (i.value = [.../* @__PURE__ */ new Set([...i.value, ...f])], _.isIndeterminate = !w.value) : (i.value = i.value.filter((B) => !f.includes(B)), _.isIndeterminate = !E.value), y();
|
|
345
|
+
});
|
|
346
|
+
}, b = () => {
|
|
347
|
+
le(() => {
|
|
348
|
+
L([]), y();
|
|
349
|
+
});
|
|
350
|
+
}, d = (r, f) => {
|
|
351
|
+
le(() => {
|
|
352
|
+
var R;
|
|
353
|
+
L(((R = f == null ? void 0 : f.children) == null ? void 0 : R.length) > 0 ? A(r, f) : r), y();
|
|
354
|
+
});
|
|
355
|
+
}, A = (r, f) => {
|
|
356
|
+
var B;
|
|
357
|
+
const R = e(f), T = (B = f.children) == null ? void 0 : B.filter((U) => !o(U)).map((U) => e(U));
|
|
358
|
+
if (r.includes(R)) {
|
|
359
|
+
const U = r;
|
|
360
|
+
return T.forEach((k) => {
|
|
361
|
+
U.includes(k) || U.push(k);
|
|
362
|
+
}), U;
|
|
363
|
+
}
|
|
364
|
+
return r.filter((U) => !T.includes(U));
|
|
365
|
+
}, O = (r, f, R) => {
|
|
366
|
+
le(() => {
|
|
367
|
+
var B, U;
|
|
368
|
+
const T = e(f);
|
|
369
|
+
r.includes(e(R)) ? L(
|
|
370
|
+
!r.includes(T) && ((B = f == null ? void 0 : f.children) != null && B.every((k) => r.includes(e(k)))) ? [...r, T] : r
|
|
371
|
+
) : L(
|
|
372
|
+
r.includes(T) && !((U = f == null ? void 0 : f.children) != null && U.every((k) => r.includes(e(k)))) ? r.filter((k) => k !== T) : r
|
|
373
|
+
), y();
|
|
374
|
+
});
|
|
375
|
+
}, D = v(() => u.value ? "all" : m.value ? "page" : !i.value || i.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
376
|
+
return ae(
|
|
377
|
+
() => s.value,
|
|
378
|
+
() => {
|
|
379
|
+
L(s.value ?? []);
|
|
380
|
+
},
|
|
381
|
+
{ immediate: !0 }
|
|
382
|
+
), ae(
|
|
383
|
+
() => n.value,
|
|
384
|
+
() => {
|
|
385
|
+
const r = n.value.filter((f) => i.value.includes(e(f))).flatMap(
|
|
386
|
+
(f) => {
|
|
387
|
+
var R;
|
|
388
|
+
return ((R = f == null ? void 0 : f.children) == null ? void 0 : R.length) > 0 ? f.children.map((T) => e(T)).filter((T) => !i.value.includes(T)) : [];
|
|
389
|
+
}
|
|
390
|
+
);
|
|
391
|
+
(r == null ? void 0 : r.length) > 0 ? (L([...i.value, ...r]), y()) : L(i.value);
|
|
392
|
+
}
|
|
393
|
+
), {
|
|
394
|
+
onAllRowSelect: F,
|
|
395
|
+
onRowSelect: d,
|
|
396
|
+
onNestedRowSelect: O,
|
|
397
|
+
onDeselectAll: b,
|
|
398
|
+
allItemsSelectedState: _,
|
|
399
|
+
selectedItems: i,
|
|
400
|
+
selectionState: D
|
|
401
|
+
};
|
|
402
|
+
}, Ns = (s, t, n) => ({ isSorting: (a) => s.value.some((i) => i.field === a), getSortingDirection: (a) => {
|
|
403
|
+
var i;
|
|
404
|
+
return (i = s.value.find((_) => _.field === a)) == null ? void 0 : i.direction;
|
|
405
|
+
}, sortByColumnField: (a) => {
|
|
406
|
+
var g;
|
|
407
|
+
if (!t.value.some((w) => w.field === a && w.sortable))
|
|
408
|
+
return;
|
|
409
|
+
const _ = [{
|
|
410
|
+
field: a,
|
|
411
|
+
direction: ((g = s.value.find((w) => w.field === a)) == null ? void 0 : g.direction) === Se.ASCENDING ? Se.DESCENDING : Se.ASCENDING
|
|
412
|
+
}];
|
|
413
|
+
n("sort", _);
|
|
414
|
+
} });
|
|
415
|
+
var se = ((s) => (s[s.ARROW_DOWN = ce.ARROW_DOWN] = "ARROW_DOWN", s[s.ARROW_UP = ce.ARROW_UP] = "ARROW_UP", s[s.ARROW_LEFT = ce.ARROW_LEFT] = "ARROW_LEFT", s[s.ARROW_RIGHT = ce.ARROW_RIGHT] = "ARROW_RIGHT", s[s.PAGE_UP = ce.PAGE_UP] = "PAGE_UP", s[s.PAGE_DOWN = ce.PAGE_DOWN] = "PAGE_DOWN", s[s.END = ce.END] = "END", s[s.HOME = ce.HOME] = "HOME", s))(se || {});
|
|
416
|
+
const ye = "b-row-actions-column", Is = (s, t, n, e, o, l) => {
|
|
417
|
+
const a = v(() => l.value || e.value ? !0 : n.value.some((b) => b.infoIconTooltip || b.sortable)), i = v(() => {
|
|
418
|
+
let b = n.value.filter(({ visible: d }) => d !== !1);
|
|
419
|
+
return o.value && (b = [
|
|
420
|
+
...b,
|
|
421
|
+
{ field: ye, label: "" }
|
|
422
|
+
]), b;
|
|
423
|
+
}), _ = v(() => i.value.length), g = v(() => {
|
|
424
|
+
if (!s.value)
|
|
425
|
+
return [];
|
|
426
|
+
const b = Object.keys(s.value)[0];
|
|
427
|
+
if (!b || !s.value[b])
|
|
428
|
+
return [];
|
|
429
|
+
const d = [];
|
|
430
|
+
if (a.value)
|
|
431
|
+
for (const O of i.value) {
|
|
432
|
+
const D = t.value[O.field];
|
|
433
|
+
d.push(D);
|
|
434
|
+
}
|
|
435
|
+
const A = s.value[b].length;
|
|
436
|
+
for (let O = 0; O < A; O++)
|
|
437
|
+
for (const D of i.value) {
|
|
438
|
+
const r = s.value[D.field];
|
|
439
|
+
r != null && r[O] && d.push(r[O]);
|
|
440
|
+
}
|
|
441
|
+
return d;
|
|
442
|
+
}), w = (b) => Math.floor(b / _.value), m = (b, d, A) => {
|
|
443
|
+
const O = g.value.length - 1, D = _.value - 1, r = w(b), f = b - _.value * r;
|
|
444
|
+
return {
|
|
445
|
+
[se.PAGE_UP]: f + (a.value ? _.value : 0),
|
|
446
|
+
[se.PAGE_DOWN]: O - D + f,
|
|
447
|
+
[se.END]: A ? O : _.value * r + D,
|
|
448
|
+
[se.HOME]: A ? a.value ? _.value : 0 : _.value * r
|
|
449
|
+
}[d];
|
|
450
|
+
}, E = (b, d) => {
|
|
451
|
+
const A = w(b), D = {
|
|
452
|
+
[se.ARROW_DOWN]: _.value,
|
|
453
|
+
[se.ARROW_UP]: A === 0 && !a.value ? 0 : -_.value,
|
|
454
|
+
[se.ARROW_LEFT]: -1,
|
|
455
|
+
[se.ARROW_RIGHT]: 1
|
|
456
|
+
}[d], r = b + D;
|
|
457
|
+
return r < 0 || r >= g.value.length ? b : r;
|
|
458
|
+
}, S = (b) => [
|
|
459
|
+
se.PAGE_UP,
|
|
460
|
+
se.PAGE_DOWN,
|
|
461
|
+
se.END,
|
|
462
|
+
se.HOME
|
|
463
|
+
].includes(b), u = (b, d, A) => {
|
|
464
|
+
const O = g.value.indexOf(b);
|
|
465
|
+
return S(d) ? m(O, d, A) : E(O, d);
|
|
466
|
+
}, y = (b, d, A) => {
|
|
467
|
+
if (!g.value.includes(b))
|
|
468
|
+
return;
|
|
469
|
+
const O = u(b, d, A);
|
|
470
|
+
g.value[O].focus();
|
|
471
|
+
}, L = (b) => b in se;
|
|
472
|
+
return {
|
|
473
|
+
isNavigationKeyCode: L,
|
|
474
|
+
focusOnNextGridcell: y,
|
|
475
|
+
navigationInput: (b) => {
|
|
476
|
+
const { ctrlKey: d, key: A, target: O } = b, D = A;
|
|
477
|
+
let r = O;
|
|
478
|
+
r.getAttribute("role") !== "menuitem" && (g.value.includes(r) || (r = O.closest('[role="gridcell"], [role="columnheader"]')), g.value.includes(r) && L(D) && y(r, D, d));
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
}, Ds = 90, xs = (s, t, n, e, o) => {
|
|
482
|
+
const l = p(s), a = p(t), i = p(n), _ = p(e), g = v(() => l.value !== "none"), w = v(() => l.value === "automatic"), m = () => {
|
|
483
|
+
o(N.UPDATE_SHOW_MORE);
|
|
484
|
+
};
|
|
485
|
+
return ae(
|
|
486
|
+
() => a.value,
|
|
487
|
+
() => {
|
|
488
|
+
w.value && i.value.offsetHeight / a.value * 100 > Ds && !_.value && m();
|
|
489
|
+
}
|
|
490
|
+
), { isLazyLoad: g, isInfiniteScroll: w, verticalScrollPosition: a, emitLazyLoadEvent: m };
|
|
491
|
+
}, Fs = (s, t, n) => {
|
|
492
|
+
const e = p(s), o = p(t), l = ke({
|
|
493
|
+
dragging: null,
|
|
494
|
+
dragToLeft: null,
|
|
495
|
+
target: null
|
|
496
|
+
}), a = (S, u = 0) => {
|
|
497
|
+
const y = e.value.findIndex((b) => b.field === S.field), L = y + u;
|
|
498
|
+
if (L < 0 || L > e.value.length - 1)
|
|
499
|
+
return;
|
|
500
|
+
const F = [...e.value];
|
|
501
|
+
F.splice(L, 0, F.splice(y, 1)[0]), n(N.COLUMNS, F), n(N.UPDATE_COLUMNS, F);
|
|
502
|
+
}, i = (S, u) => {
|
|
503
|
+
l.dragging = S, u.dataTransfer.setData("text", ""), u.dataTransfer.dropEffect = "move";
|
|
504
|
+
}, _ = (S, u) => {
|
|
505
|
+
l.target = S;
|
|
506
|
+
const y = u.currentTarget.getBoundingClientRect(), L = y.left + y.width / 2, F = u.clientX ?? 0;
|
|
507
|
+
l.dragToLeft = F <= L;
|
|
508
|
+
}, g = (S) => {
|
|
509
|
+
var u, y;
|
|
510
|
+
if (((u = l.dragging) == null ? void 0 : u.field) !== S.field) {
|
|
511
|
+
const L = e.value.findIndex((D) => {
|
|
512
|
+
var r;
|
|
513
|
+
return D.field === ((r = l.dragging) == null ? void 0 : r.field);
|
|
514
|
+
}), F = e.value.findIndex((D) => D.field === S.field), b = l.dragToLeft ? F : F + 1, d = b > L ? b - 1 : b;
|
|
515
|
+
let A = [...e.value];
|
|
516
|
+
A.splice(
|
|
517
|
+
d === -1 ? 0 : d,
|
|
518
|
+
0,
|
|
519
|
+
A.splice(L, 1)[0]
|
|
520
|
+
);
|
|
521
|
+
const O = e.value.findIndex((D) => !(D != null && D.frozen));
|
|
522
|
+
((y = l.dragging) == null ? void 0 : y.frozen) !== S.frozen && b !== O && (A = A.map(
|
|
523
|
+
(D) => {
|
|
524
|
+
var r;
|
|
525
|
+
return ((r = l.dragging) == null ? void 0 : r.field) === D.field ? { ...D, frozen: !!(S != null && S.frozen) } : D;
|
|
526
|
+
}
|
|
527
|
+
)), n(N.COLUMNS, A), n(N.UPDATE_COLUMNS, A);
|
|
528
|
+
}
|
|
529
|
+
l.dragging = null, l.target = null;
|
|
530
|
+
}, w = () => {
|
|
531
|
+
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
532
|
+
}, m = v(() => o.value ? {
|
|
533
|
+
[j.COLUMN_DRAG_START]: (S, u) => i(S, u),
|
|
534
|
+
[j.COLUMN_DRAG_ENTER]: (S, u) => _(S, u),
|
|
535
|
+
[j.COLUMN_DROP]: (S) => g(S),
|
|
536
|
+
[j.COLUMN_DRAG_END]: () => w()
|
|
537
|
+
} : {}), E = v(() => (S) => o.value ? {
|
|
538
|
+
dragenter: (u) => {
|
|
539
|
+
u.preventDefault(), _(S, u);
|
|
540
|
+
},
|
|
541
|
+
drop: () => {
|
|
542
|
+
g(S);
|
|
543
|
+
},
|
|
544
|
+
dragover: (u) => {
|
|
545
|
+
u.preventDefault();
|
|
546
|
+
}
|
|
547
|
+
} : {});
|
|
548
|
+
return {
|
|
549
|
+
// Values
|
|
550
|
+
draggingColumns: l,
|
|
551
|
+
// Methods
|
|
552
|
+
draggingEventsForColumns: m,
|
|
553
|
+
draggingEventsForRowCell: E,
|
|
554
|
+
onMoveColumnByOffset: a
|
|
555
|
+
};
|
|
556
|
+
}, Bs = (s, t, n) => {
|
|
557
|
+
const e = p(s), o = p(t.value), l = v(
|
|
558
|
+
() => [...e.value].sort((u, y) => u.frozen === y.frozen ? 0 : u.frozen ? -1 : 1)
|
|
559
|
+
), a = v(
|
|
560
|
+
() => l.value.filter((u) => u.frozen && u.visible !== !1)
|
|
561
|
+
), i = v(
|
|
562
|
+
() => l.value.filter((u) => !u.frozen && u.visible !== !1)
|
|
563
|
+
), _ = v(
|
|
564
|
+
() => [
|
|
565
|
+
{ columnSet: a.value, id: "frozen", isFrozenColumns: !0 },
|
|
566
|
+
{ columnSet: i.value, id: "unfrozen" }
|
|
567
|
+
].filter(({ columnSet: u }) => u.length)
|
|
568
|
+
), g = v(
|
|
569
|
+
() => e.value.filter((u) => (u == null ? void 0 : u.visible) !== !1 && (u == null ? void 0 : u.field) !== oe).length === 1
|
|
570
|
+
), w = (u) => n(N.UPDATE_CONDENSED, u), m = (u) => {
|
|
571
|
+
o.value = u, n(N.UPDATE_ZEBRA_ROWS, u);
|
|
572
|
+
}, E = (u) => {
|
|
573
|
+
n(N.COLUMNS, u), n(N.UPDATE_COLUMNS, u);
|
|
574
|
+
}, S = (u) => {
|
|
575
|
+
const y = l.value.map(
|
|
576
|
+
(L) => (L == null ? void 0 : L.field) === u.field ? u : L
|
|
577
|
+
);
|
|
578
|
+
E(y);
|
|
579
|
+
};
|
|
580
|
+
return ae(t, (u) => {
|
|
581
|
+
o.value = u;
|
|
582
|
+
}), {
|
|
583
|
+
// Values
|
|
584
|
+
columnSets: _,
|
|
585
|
+
isOnlyOneVisibleColumn: g,
|
|
586
|
+
internalZebraRows: o,
|
|
587
|
+
sortedColumns: l,
|
|
588
|
+
// Methods
|
|
589
|
+
onConfigSettingsColumnsUpdate: E,
|
|
590
|
+
onConfigSettingsColumnUpdate: S,
|
|
591
|
+
onConfigSettingsCondensedUpdate: w,
|
|
592
|
+
onConfigSettingsZebraRowsUpdate: m
|
|
593
|
+
};
|
|
594
|
+
}, Us = (s, t, n, e, o, l, a) => {
|
|
595
|
+
const i = p(0), _ = p(!1), g = p(!1);
|
|
596
|
+
ae([() => i.value, () => l.value], ([u]) => {
|
|
597
|
+
s.value.scrollLeft = u, t.value.scrollLeft = u, _.value = !!u, g.value = t.value.scrollWidth - t.value.offsetWidth > u;
|
|
598
|
+
}), be(async () => {
|
|
599
|
+
var u, y;
|
|
600
|
+
await le(), ((u = t.value) == null ? void 0 : u.offsetWidth) < ((y = t.value) == null ? void 0 : y.scrollWidth) && (g.value = !0);
|
|
601
|
+
});
|
|
602
|
+
const w = (u) => {
|
|
603
|
+
if (i.value = u.target.scrollLeft, n.value = s.value.scrollHeight - u.target.scrollTop, e != null && e.value) {
|
|
604
|
+
const y = u.target.scrollLeft;
|
|
605
|
+
e.value.scrollLeft !== y && (e.value.scrollLeft = y);
|
|
606
|
+
}
|
|
607
|
+
}, m = (u) => {
|
|
608
|
+
u.key === "Tab" || u.key !== "ArrowRight" && u.key !== "ArrowLeft" || (u.preventDefault(), s.value.scrollLeft = 0, s.value.style.overflowX = "hidden", setTimeout(() => {
|
|
609
|
+
s.value && (s.value.style.overflowX = "auto");
|
|
610
|
+
}));
|
|
611
|
+
}, E = (u) => {
|
|
612
|
+
const y = u.target.scrollLeft;
|
|
613
|
+
s.value.scrollLeft !== y && (s.value.scrollLeft = y);
|
|
614
|
+
}, S = v(() => {
|
|
615
|
+
var u, y, L, F;
|
|
616
|
+
return (u = a == null ? void 0 : a.pagination) != null && u.value && ((y = a == null ? void 0 : a.stickyPagination) != null && y.value || a != null && a.isDataGridTemplate) && !((L = a == null ? void 0 : a.isLazyLoad) != null && L.value) ? { bottom: `${(((F = o.value) == null ? void 0 : F.clientHeight) ?? 0) + 1}px` } : {};
|
|
617
|
+
});
|
|
618
|
+
return {
|
|
619
|
+
// Values
|
|
620
|
+
scrollLeftPosition: i,
|
|
621
|
+
hasLeftOverflow: _,
|
|
622
|
+
hasRightOverflow: g,
|
|
623
|
+
horizontalScrollbarConditionalStyles: S,
|
|
624
|
+
// Methods
|
|
625
|
+
updateScrollPosition: w,
|
|
626
|
+
updateScrollPositionOnFrozenColumnsNavigation: m,
|
|
627
|
+
syncVirtualScrollerWithBody: E
|
|
628
|
+
};
|
|
629
|
+
}, Ms = (s, t, n, e) => {
|
|
630
|
+
const o = p(null), l = v(() => {
|
|
631
|
+
var y, L, F, b;
|
|
632
|
+
if (!o.value || o.value.field === oe)
|
|
633
|
+
return {
|
|
634
|
+
hoveredOverColumnField: "",
|
|
635
|
+
isSeparatorOffset: !1,
|
|
636
|
+
noBorderLeft: !1,
|
|
637
|
+
noBorderRight: !1
|
|
638
|
+
};
|
|
639
|
+
const a = (L = (y = s.value.find((d) => d.isFrozenColumns)) == null ? void 0 : y.columnSet) == null ? void 0 : L.filter((d) => d.field !== oe), i = s.value.find((d) => !(d != null && d.isFrozenColumns)), _ = o.value.frozen && (a == null ? void 0 : a[0].field) === o.value.field, g = !o.value.frozen && ((F = i == null ? void 0 : i.columnSet) == null ? void 0 : F[0].field) === o.value.field, w = (t.value || n.value) && _, m = (t.value || n.value) && !a && g, E = a && g, S = (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 && ((b = i == null ? void 0 : i.columnSet) == null ? void 0 : b[i.columnSet.length - 1].field) === o.value.field;
|
|
640
|
+
return {
|
|
641
|
+
hoveredOverColumnField: o.value.field,
|
|
642
|
+
isSeparatorOffset: u,
|
|
643
|
+
noBorderLeft: !!w || !!m || !!E,
|
|
644
|
+
noBorderRight: !!S || !!u
|
|
645
|
+
};
|
|
646
|
+
});
|
|
647
|
+
return {
|
|
648
|
+
hoveredOverColumn: o,
|
|
649
|
+
hoveredOverColumnState: l
|
|
650
|
+
};
|
|
651
|
+
}, qe = (s) => {
|
|
652
|
+
const n = Ut(s).filter((e) => e.node !== s);
|
|
653
|
+
return (n == null ? void 0 : n.length) > 0 ? (n[0].node.focus(), !0) : !1;
|
|
654
|
+
}, we = (s) => {
|
|
655
|
+
const t = Ut(s), n = t == null ? void 0 : t.filter((e) => e.node !== s);
|
|
656
|
+
if ((n == null ? void 0 : n.length) > 0)
|
|
657
|
+
return n.forEach((e) => e.node.setAttribute("tabindex", "-1")), n;
|
|
658
|
+
}, Pt = (s) => {
|
|
659
|
+
(s == null ? void 0 : s.length) > 0 && s.forEach((t) => t == null ? void 0 : t.node.setAttribute("tabindex", "0"));
|
|
660
|
+
}, $s = () => {
|
|
661
|
+
const s = window.getSelection().getRangeAt(0).cloneContents(), t = s.querySelectorAll('[role="row"]');
|
|
662
|
+
let n = "<table>", e = "";
|
|
663
|
+
const o = (l) => {
|
|
664
|
+
l.forEach((a) => {
|
|
665
|
+
const i = a.closest("[role]").getAttribute("role") === "gridcell" ? "td" : "th", _ = a.textContent.trim();
|
|
666
|
+
_ && (n += `<${i}>${_}</${i}>`, e += `${_} `);
|
|
667
|
+
});
|
|
668
|
+
};
|
|
669
|
+
if (!t.length) {
|
|
670
|
+
const l = s.querySelectorAll(
|
|
671
|
+
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
672
|
+
);
|
|
673
|
+
if (l.length)
|
|
674
|
+
n += "<tr>", o(l), n += "</tr>";
|
|
675
|
+
else {
|
|
676
|
+
navigator.clipboard.writeText(s.textContent);
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
}
|
|
680
|
+
t.forEach((l) => {
|
|
681
|
+
const a = l.querySelectorAll(
|
|
682
|
+
'[role="gridcell"] > .b-typography:first-of-type, [role="columnheader"] .b-typography'
|
|
683
|
+
);
|
|
684
|
+
if (n += "<tr>", a.length)
|
|
685
|
+
o(a);
|
|
686
|
+
else {
|
|
687
|
+
const i = l.textContent.trim();
|
|
688
|
+
n += `<td>${i}</td>`, e += `${i} `;
|
|
689
|
+
}
|
|
690
|
+
n += "</tr>", e += `
|
|
691
|
+
`;
|
|
692
|
+
}), n += "</table>", navigator.clipboard.write([
|
|
693
|
+
new ClipboardItem({
|
|
694
|
+
"text/html": new Blob([n], { type: "text/html" }),
|
|
695
|
+
"text/plain": new Blob([e || s.textContent.trim()], { type: "text/plain" })
|
|
696
|
+
})
|
|
697
|
+
]);
|
|
698
|
+
};
|
|
699
|
+
let Ct = 0;
|
|
700
|
+
const Ps = {
|
|
701
|
+
beforeCreate() {
|
|
702
|
+
this.uuid = Ct.toString(), Ct += 1;
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
var zs = function() {
|
|
706
|
+
var t = this, n = t._self._c;
|
|
707
|
+
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" } })])])]);
|
|
708
|
+
}, ks = [], Ws = /* @__PURE__ */ q(
|
|
709
|
+
Ps,
|
|
710
|
+
zs,
|
|
711
|
+
ks,
|
|
712
|
+
!1,
|
|
713
|
+
null,
|
|
714
|
+
null
|
|
715
|
+
);
|
|
716
|
+
const Gs = Ws.exports;
|
|
717
|
+
let ht = 0;
|
|
718
|
+
const Hs = {
|
|
719
|
+
beforeCreate() {
|
|
720
|
+
this.uuid = ht.toString(), ht += 1;
|
|
721
|
+
}
|
|
722
|
+
};
|
|
723
|
+
var Vs = function() {
|
|
724
|
+
var t = this, n = t._self._c;
|
|
725
|
+
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" } })]);
|
|
726
|
+
}, Zs = [], js = /* @__PURE__ */ q(
|
|
727
|
+
Hs,
|
|
728
|
+
Vs,
|
|
729
|
+
Zs,
|
|
730
|
+
!1,
|
|
731
|
+
null,
|
|
732
|
+
null
|
|
733
|
+
);
|
|
734
|
+
const qs = js.exports;
|
|
735
|
+
let pt = 0;
|
|
736
|
+
const Ks = {
|
|
737
|
+
beforeCreate() {
|
|
738
|
+
this.uuid = pt.toString(), pt += 1;
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
var Ys = function() {
|
|
742
|
+
var t = this, n = t._self._c;
|
|
743
|
+
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)" } })])])]);
|
|
744
|
+
}, Js = [], Xs = /* @__PURE__ */ q(
|
|
745
|
+
Ks,
|
|
746
|
+
Ys,
|
|
747
|
+
Js,
|
|
748
|
+
!1,
|
|
749
|
+
null,
|
|
750
|
+
null
|
|
751
|
+
);
|
|
752
|
+
const zt = Xs.exports;
|
|
753
|
+
let wt = 0;
|
|
754
|
+
const Qs = {
|
|
755
|
+
beforeCreate() {
|
|
756
|
+
this.uuid = wt.toString(), wt += 1;
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
var eo = function() {
|
|
760
|
+
var t = this, n = t._self._c;
|
|
761
|
+
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" } })])])]);
|
|
762
|
+
}, to = [], no = /* @__PURE__ */ q(
|
|
763
|
+
Qs,
|
|
764
|
+
eo,
|
|
765
|
+
to,
|
|
766
|
+
!1,
|
|
767
|
+
null,
|
|
768
|
+
null
|
|
769
|
+
);
|
|
770
|
+
const so = no.exports;
|
|
771
|
+
let St = 0;
|
|
772
|
+
const oo = {
|
|
773
|
+
beforeCreate() {
|
|
774
|
+
this.uuid = St.toString(), St += 1;
|
|
775
|
+
}
|
|
776
|
+
};
|
|
777
|
+
var lo = function() {
|
|
778
|
+
var t = this, n = t._self._c;
|
|
779
|
+
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" } })])])]);
|
|
780
|
+
}, ao = [], io = /* @__PURE__ */ q(
|
|
781
|
+
oo,
|
|
782
|
+
lo,
|
|
783
|
+
ao,
|
|
784
|
+
!1,
|
|
785
|
+
null,
|
|
786
|
+
null
|
|
787
|
+
);
|
|
788
|
+
const ro = io.exports;
|
|
789
|
+
let bt = 0;
|
|
790
|
+
const co = {
|
|
791
|
+
beforeCreate() {
|
|
792
|
+
this.uuid = bt.toString(), bt += 1;
|
|
793
|
+
}
|
|
794
|
+
};
|
|
795
|
+
var uo = function() {
|
|
796
|
+
var t = this, n = t._self._c;
|
|
797
|
+
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" } })]);
|
|
798
|
+
}, fo = [], go = /* @__PURE__ */ q(
|
|
799
|
+
co,
|
|
800
|
+
uo,
|
|
801
|
+
fo,
|
|
802
|
+
!1,
|
|
803
|
+
null,
|
|
804
|
+
null
|
|
805
|
+
);
|
|
806
|
+
const _o = go.exports, vo = {
|
|
807
|
+
"en-US": {
|
|
808
|
+
columnActions: "{name} column actions",
|
|
809
|
+
deselectAll: "Deselect all",
|
|
810
|
+
deselectAllCurrentResults: "Deselect all in current results",
|
|
811
|
+
deselectPage: "Deselect this page",
|
|
812
|
+
freezeColumn: "Freeze column",
|
|
813
|
+
hideColumn: "Hide column",
|
|
814
|
+
moveColumnLeft: "Move column left",
|
|
815
|
+
moveColumnRight: "Move column right",
|
|
816
|
+
rowActionsColumn: "Row actions column",
|
|
817
|
+
selectAll: "Select all",
|
|
818
|
+
selectAllCurrentResults: "Select all in current results",
|
|
819
|
+
selectAllMenu: "Select all menu",
|
|
820
|
+
selectPage: "Select this page",
|
|
821
|
+
selectionMenu: "Selection menu",
|
|
822
|
+
showColumn: "Show column",
|
|
823
|
+
sortColumn: "Sort {name} column",
|
|
824
|
+
sortColumnInAscendingOrder: "Sort {name} column in ascending order",
|
|
825
|
+
sortColumnInDescendingOrder: "Sort {name} column in descending order",
|
|
826
|
+
unfreezeColumn: "Unfreeze column"
|
|
827
|
+
},
|
|
828
|
+
"ja-JP": {
|
|
829
|
+
freezeColumn: "列を固定",
|
|
830
|
+
hideColumn: "列を非表示",
|
|
831
|
+
moveColumnLeft: "列を左へ移動",
|
|
832
|
+
moveColumnRight: "列を右へ移動",
|
|
833
|
+
selectAll: "すべて選択",
|
|
834
|
+
unfreezeColumn: "列の固定を解除"
|
|
835
|
+
},
|
|
836
|
+
"pt-BR": {
|
|
837
|
+
freezeColumn: "Congelar coluna",
|
|
838
|
+
hideColumn: "Ocultar coluna",
|
|
839
|
+
moveColumnLeft: "Mover coluna para a esquerda",
|
|
840
|
+
moveColumnRight: "Mover coluna para a direita",
|
|
841
|
+
selectAll: "Selecionar tudo",
|
|
842
|
+
unfreezeColumn: "Descongelar coluna"
|
|
843
|
+
}
|
|
844
|
+
}, kt = /* @__PURE__ */ Symbol("data-grid slashed zero key"), Ae = /* @__PURE__ */ Symbol("data-grid small container key"), De = /* @__PURE__ */ Symbol("data-grid touch device key"), mo = {
|
|
845
|
+
i18n: { messages: vo },
|
|
846
|
+
name: "data-grid-columns"
|
|
847
|
+
}, Co = /* @__PURE__ */ de({
|
|
848
|
+
...mo,
|
|
849
|
+
props: {
|
|
850
|
+
/**
|
|
851
|
+
* Column definitions using 'key' to relate to data object.
|
|
852
|
+
*/
|
|
853
|
+
columns: {
|
|
854
|
+
type: Array,
|
|
855
|
+
required: !0
|
|
856
|
+
},
|
|
857
|
+
/**
|
|
858
|
+
* Columns being dragged, contains dragging column and a target column
|
|
859
|
+
*/
|
|
860
|
+
draggingColumns: {
|
|
861
|
+
type: Object,
|
|
862
|
+
default: void 0
|
|
863
|
+
},
|
|
864
|
+
/**
|
|
865
|
+
* Determines the state of the current results: { filtered: boolean, allItemsVisible: boolean } to render the correct select all menu options
|
|
866
|
+
*/
|
|
867
|
+
visibleRowsState: {
|
|
868
|
+
type: Object,
|
|
869
|
+
default: void 0
|
|
870
|
+
},
|
|
871
|
+
/**
|
|
872
|
+
* Toggle the columns draggable events.
|
|
873
|
+
*/
|
|
874
|
+
hasDraggableColumns: {
|
|
875
|
+
type: Boolean,
|
|
876
|
+
default: !0
|
|
877
|
+
},
|
|
878
|
+
/**
|
|
879
|
+
* If resize is enabled
|
|
880
|
+
*/
|
|
881
|
+
hasResizableColumns: {
|
|
882
|
+
type: Boolean,
|
|
883
|
+
default: !0
|
|
884
|
+
},
|
|
885
|
+
/**
|
|
886
|
+
* Signifies if the column panel is enabled.
|
|
887
|
+
*/
|
|
888
|
+
hasColumnPanel: {
|
|
889
|
+
type: Boolean,
|
|
890
|
+
default: !1
|
|
891
|
+
},
|
|
892
|
+
/**
|
|
893
|
+
* If set to true, aligns the first column panel to the right of its button.
|
|
894
|
+
*/
|
|
895
|
+
hasFirstColumnPanelRightAligned: {
|
|
896
|
+
type: Boolean,
|
|
897
|
+
default: !1
|
|
898
|
+
},
|
|
899
|
+
/**
|
|
900
|
+
* If the data grid has overflow on the left side
|
|
901
|
+
*/
|
|
902
|
+
hasLeftOverflow: {
|
|
903
|
+
type: Boolean,
|
|
904
|
+
default: !1
|
|
905
|
+
},
|
|
906
|
+
/**
|
|
907
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
908
|
+
*/
|
|
909
|
+
hoveredOverColumnState: {
|
|
910
|
+
type: Object,
|
|
911
|
+
required: !0
|
|
912
|
+
},
|
|
913
|
+
/**
|
|
914
|
+
* Toggled to true when the DataGrid has auto width columns and is measuring the
|
|
915
|
+
*/
|
|
916
|
+
isMeasuringColumnWidths: {
|
|
917
|
+
type: Boolean,
|
|
918
|
+
default: !1
|
|
919
|
+
},
|
|
920
|
+
/**
|
|
921
|
+
* Used to disable hiding the last visible column.
|
|
922
|
+
*/
|
|
923
|
+
isOnlyOneVisibleColumn: {
|
|
924
|
+
type: Boolean,
|
|
925
|
+
default: !1
|
|
926
|
+
},
|
|
927
|
+
/**
|
|
928
|
+
* If these columns are frozen (pinned) columns
|
|
929
|
+
*/
|
|
930
|
+
isFrozenColumns: {
|
|
931
|
+
type: Boolean,
|
|
932
|
+
default: !1
|
|
933
|
+
},
|
|
934
|
+
/**
|
|
935
|
+
* Show frozen columns separator
|
|
936
|
+
*/
|
|
937
|
+
showFrozenColumnsSeparator: {
|
|
938
|
+
type: Boolean,
|
|
939
|
+
default: !1
|
|
940
|
+
},
|
|
941
|
+
/**
|
|
942
|
+
* The column all items selected state
|
|
943
|
+
*/
|
|
944
|
+
allItemsSelectedState: {
|
|
945
|
+
type: Object,
|
|
946
|
+
default: void 0
|
|
947
|
+
},
|
|
948
|
+
/**
|
|
949
|
+
* Determines if the user has enabled row selection
|
|
950
|
+
*/
|
|
951
|
+
selectable: {
|
|
952
|
+
type: Boolean,
|
|
953
|
+
default: !1
|
|
954
|
+
},
|
|
955
|
+
/**
|
|
956
|
+
* Adds an extra option when selecting all, to select items in other pages too
|
|
957
|
+
*/
|
|
958
|
+
selectableAcrossPages: {
|
|
959
|
+
type: Boolean,
|
|
960
|
+
default: !1
|
|
961
|
+
},
|
|
962
|
+
/**
|
|
963
|
+
* Determines which state of row selection is currently active. Used to display the "Select all" menu options.
|
|
964
|
+
*/
|
|
965
|
+
selectionState: {
|
|
966
|
+
type: String,
|
|
967
|
+
default: void 0
|
|
968
|
+
},
|
|
969
|
+
/**
|
|
970
|
+
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
971
|
+
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
972
|
+
*/
|
|
973
|
+
sortBy: {
|
|
974
|
+
type: Array,
|
|
975
|
+
// NOTE: is an array to allow multi-sorting in the future
|
|
976
|
+
default: () => []
|
|
977
|
+
},
|
|
978
|
+
/**
|
|
979
|
+
* Truncates all data grid column headers
|
|
980
|
+
*/
|
|
981
|
+
truncateColumnHeaders: {
|
|
982
|
+
type: Boolean,
|
|
983
|
+
default: !1
|
|
984
|
+
},
|
|
985
|
+
/**
|
|
986
|
+
* The maximum width of the row actions in all rows
|
|
987
|
+
*/
|
|
988
|
+
rowActionsMaximumWidth: {
|
|
989
|
+
type: Number,
|
|
990
|
+
default: 0
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
emits: ["sort", "column-hover"],
|
|
994
|
+
setup(s, { expose: t, emit: n }) {
|
|
995
|
+
const e = s, o = 100, { t: l } = he(), { columns: a, sortBy: i } = We(e), _ = p(), g = p({}), w = p({}), m = p(), E = p(), S = (c) => n(j.SELECT_ALL_ROWS, c), u = (c) => c.field === oe, y = v(() => e.selectionState === "all"), L = v(
|
|
996
|
+
() => {
|
|
997
|
+
var c, M, X;
|
|
998
|
+
return [
|
|
999
|
+
{
|
|
1000
|
+
text: l("selectPage"),
|
|
1001
|
+
handler: () => S(!0),
|
|
1002
|
+
disabled: e.selectionState === "page" || e.selectionState === "all"
|
|
1003
|
+
},
|
|
1004
|
+
(c = e.visibleRowsState) != null && c.filtered ? {
|
|
1005
|
+
text: l("selectAllCurrentResults"),
|
|
1006
|
+
handler: () => n(j.SELECT_ALL_CURRENT_RESULTS),
|
|
1007
|
+
addDivider: e.selectionState !== "none",
|
|
1008
|
+
disabled: e.selectionState === "all"
|
|
1009
|
+
} : {
|
|
1010
|
+
text: l("selectAll"),
|
|
1011
|
+
handler: () => n(j.SELECT_ALL_ACROSS_PAGES),
|
|
1012
|
+
addDivider: e.selectionState !== "none",
|
|
1013
|
+
disabled: e.selectionState === "all"
|
|
1014
|
+
},
|
|
1015
|
+
e.selectionState !== "none" && {
|
|
1016
|
+
text: l("deselectPage"),
|
|
1017
|
+
handler: () => S(!1),
|
|
1018
|
+
addDivider: !((M = e.visibleRowsState) != null && M.filtered),
|
|
1019
|
+
// otherwise divider shown in deselect all in current results
|
|
1020
|
+
disabled: e.selectionState === "unselected-page"
|
|
1021
|
+
},
|
|
1022
|
+
((X = e.visibleRowsState) == null ? void 0 : X.filtered) && e.selectionState !== "none" && {
|
|
1023
|
+
text: l("deselectAllCurrentResults"),
|
|
1024
|
+
handler: () => n(j.DESELECT_ALL_CURRENT_RESULTS),
|
|
1025
|
+
addDivider: !0,
|
|
1026
|
+
disabled: e.selectionState === "unselected-page" && e.visibleRowsState.allRowsVisible
|
|
1027
|
+
},
|
|
1028
|
+
e.selectionState !== "none" && {
|
|
1029
|
+
text: l("deselectAll"),
|
|
1030
|
+
handler: () => n(j.DESELECT_ALL)
|
|
1031
|
+
}
|
|
1032
|
+
].filter(Boolean);
|
|
1033
|
+
}
|
|
1034
|
+
), { startResize: F, isResizing: b, columnHoverEventToEmitAfterResizing: d } = Cs(a, n), { isSorting: A, getSortingDirection: O, sortByColumnField: D } = Ns(i, a, n), r = (c) => {
|
|
1035
|
+
var ne;
|
|
1036
|
+
if (!c.sortable)
|
|
1037
|
+
return null;
|
|
1038
|
+
const M = (ne = e.sortBy.find(({ field: pe }) => pe === c.field)) == null ? void 0 : ne.direction;
|
|
1039
|
+
return M ? {
|
|
1040
|
+
[Se.ASCENDING]: Ne.ASCENDING,
|
|
1041
|
+
[Se.DESCENDING]: Ne.DESCENDING
|
|
1042
|
+
}[M] : Ne.NONE;
|
|
1043
|
+
}, f = v(() => (c) => e.hasDraggableColumns ? {
|
|
1044
|
+
dragstart: (M) => {
|
|
1045
|
+
n(j.COLUMN_DRAG_START, c, M);
|
|
1046
|
+
},
|
|
1047
|
+
dragover: (M) => {
|
|
1048
|
+
M.preventDefault();
|
|
1049
|
+
},
|
|
1050
|
+
dragenter: (M) => {
|
|
1051
|
+
M.preventDefault(), n(j.COLUMN_DRAG_ENTER, c, M);
|
|
1052
|
+
},
|
|
1053
|
+
drop: () => {
|
|
1054
|
+
n(j.COLUMN_DROP, c);
|
|
1055
|
+
},
|
|
1056
|
+
dragend: () => {
|
|
1057
|
+
n(j.COLUMN_DRAG_END);
|
|
1058
|
+
}
|
|
1059
|
+
} : {}), R = v(
|
|
1060
|
+
() => (c) => [
|
|
1061
|
+
{
|
|
1062
|
+
text: l("moveColumnLeft"),
|
|
1063
|
+
handler: () => n(j.COLUMN_MOVE, c, -1),
|
|
1064
|
+
icon: ds,
|
|
1065
|
+
disabled: e.columns[0].field === c.field
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
text: l("moveColumnRight"),
|
|
1069
|
+
handler: () => n(j.COLUMN_MOVE, c, 1),
|
|
1070
|
+
icon: qs,
|
|
1071
|
+
disabled: e.columns[e.columns.length - 1].field === c.field
|
|
1072
|
+
},
|
|
1073
|
+
!K.value && {
|
|
1074
|
+
text: c != null && c.frozen ? l("unfreezeColumn") : l("freezeColumn"),
|
|
1075
|
+
handler: () => n(j.COLUMN_UPDATE, { ...c, frozen: !(c != null && c.frozen) }),
|
|
1076
|
+
icon: zt
|
|
1077
|
+
},
|
|
1078
|
+
{
|
|
1079
|
+
text: (c == null ? void 0 : c.visible) !== !1 ? l("hideColumn") : l("showColumn"),
|
|
1080
|
+
handler: () => {
|
|
1081
|
+
n(j.COLUMN_UPDATE, {
|
|
1082
|
+
...c,
|
|
1083
|
+
visible: (c == null ? void 0 : c.visible) === !1
|
|
1084
|
+
});
|
|
1085
|
+
},
|
|
1086
|
+
icon: (c == null ? void 0 : c.visible) !== !1 ? us : fs,
|
|
1087
|
+
disabled: (c == null ? void 0 : c.mandatory) || (c == null ? void 0 : c.visible) !== !1 && e.isOnlyOneVisibleColumn
|
|
1088
|
+
}
|
|
1089
|
+
].filter(Boolean)
|
|
1090
|
+
), T = (c) => {
|
|
1091
|
+
m.value = c.field, E.value && clearTimeout(E.value);
|
|
1092
|
+
}, B = (c) => {
|
|
1093
|
+
const M = setTimeout(() => {
|
|
1094
|
+
c.field === m.value && (m.value = "");
|
|
1095
|
+
}, o);
|
|
1096
|
+
E.value = M;
|
|
1097
|
+
}, U = (c) => {
|
|
1098
|
+
let M = {
|
|
1099
|
+
mouseenter: () => {
|
|
1100
|
+
T(c), b.value ? d.value = c : n("column-hover", c);
|
|
1101
|
+
},
|
|
1102
|
+
mouseleave: () => {
|
|
1103
|
+
B(c), b.value ? d.value = null : n("column-hover", null);
|
|
1104
|
+
},
|
|
1105
|
+
focus: () => {
|
|
1106
|
+
T(c), u(c) && qe(g.value[c.field]);
|
|
1107
|
+
},
|
|
1108
|
+
focusout: (X) => {
|
|
1109
|
+
var ne;
|
|
1110
|
+
(ne = _.value) != null && ne.contains(X == null ? void 0 : X.relatedTarget) || B(c);
|
|
1111
|
+
}
|
|
1112
|
+
};
|
|
1113
|
+
return u(c) || (M = {
|
|
1114
|
+
...M,
|
|
1115
|
+
...f.value(c)
|
|
1116
|
+
}), M;
|
|
1117
|
+
}, k = (c) => c.infoIconTooltip || c.sortable || e.hasColumnPanel, J = (c, M) => {
|
|
1118
|
+
var X;
|
|
1119
|
+
((X = g.value) == null ? void 0 : X[M]) === void 0 && (g.value = { ...g.value, [M]: null }), c !== null && (g.value[M] = c);
|
|
1120
|
+
}, K = me(
|
|
1121
|
+
Ae,
|
|
1122
|
+
v(() => !1)
|
|
1123
|
+
), ee = me(De, p(!1)), G = v(() => {
|
|
1124
|
+
var M;
|
|
1125
|
+
const c = {
|
|
1126
|
+
"b-data-grid-columns--is-measuring": e.isMeasuringColumnWidths
|
|
1127
|
+
};
|
|
1128
|
+
return (M = a.value[0]) != null && M.frozen && !K.value ? {
|
|
1129
|
+
...c,
|
|
1130
|
+
"b-data-grid-columns--frozen": !0,
|
|
1131
|
+
"b-data-grid-columns--frozen-separator": e.showFrozenColumnsSeparator,
|
|
1132
|
+
"b-data-grid-columns--overflow-shadow-left": e.hasLeftOverflow
|
|
1133
|
+
} : {
|
|
1134
|
+
...c,
|
|
1135
|
+
"b-data-grid-columns--unfrozen": !0
|
|
1136
|
+
};
|
|
1137
|
+
}), $ = v(() => ({
|
|
1138
|
+
"b-data-grid-columns__select-column--all": e.selectableAcrossPages
|
|
1139
|
+
})), C = (c, M) => c && M === 0 ? ut.BOTTOM_START : ut.BOTTOM_END, P = (c, M) => {
|
|
1140
|
+
var X, ne, pe, h, x, H, te, re, fe, Z;
|
|
1141
|
+
return {
|
|
1142
|
+
"b-data-grid-columns__column--column-hovered": c.field === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1143
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1144
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": c.field === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1145
|
+
"b-data-grid-columns__column--last-frozen-frozen-column": e.isFrozenColumns && M === a.value.length - 1,
|
|
1146
|
+
"b-data-grid-columns__column--sortable": c.sortable,
|
|
1147
|
+
"b-data-grid-columns__column--padding-left-unset": ((X = c == null ? void 0 : c.padding) == null ? void 0 : X.left) === !1,
|
|
1148
|
+
"b-data-grid-columns__column--padding-right-unset": ((ne = c == null ? void 0 : c.padding) == null ? void 0 : ne.right) === !1,
|
|
1149
|
+
"b-data-grid-columns__column--numeric": c == null ? void 0 : c.numeric,
|
|
1150
|
+
"b-data-grid-columns__column--frozen": c == null ? void 0 : c.frozen,
|
|
1151
|
+
"b-data-grid-columns__column--is-re-ordering": (c == null ? void 0 : c.field) === ((h = (pe = e.draggingColumns) == null ? void 0 : pe.dragging) == null ? void 0 : h.field),
|
|
1152
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (c == null ? void 0 : c.field) === ((H = (x = e.draggingColumns) == null ? void 0 : x.target) == null ? void 0 : H.field) && ((te = e.draggingColumns) == null ? void 0 : te.dragToLeft),
|
|
1153
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (c == null ? void 0 : c.field) === ((fe = (re = e.draggingColumns) == null ? void 0 : re.target) == null ? void 0 : fe.field) && !((Z = e.draggingColumns) != null && Z.dragToLeft),
|
|
1154
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": c.sortable || c.infoIconTooltip || e.hasColumnPanel || e.selectableAcrossPages,
|
|
1155
|
+
"b-data-grid-columns--small-container": K.value
|
|
1156
|
+
};
|
|
1157
|
+
}, W = (c) => ({
|
|
1158
|
+
"b-data-grid-columns__column-header-and-actions--numeric": c == null ? void 0 : c.numeric
|
|
1159
|
+
}), z = (c) => ({
|
|
1160
|
+
"b-data-grid-columns__column-actions--numeric": c == null ? void 0 : c.numeric
|
|
1161
|
+
}), Ce = (c) => ({
|
|
1162
|
+
"b-data-grid-columns__column-separator-container--is-resizeable": e.hasResizableColumns,
|
|
1163
|
+
"b-data-grid-columns__column-separator-container--is-offset": e.hoveredOverColumnState.hoveredOverColumnField === c.field && e.hoveredOverColumnState.isSeparatorOffset
|
|
1164
|
+
}), ue = v(() => ({
|
|
1165
|
+
"b-data-grid-columns__column-header--truncated": e.truncateColumnHeaders
|
|
1166
|
+
})), ie = (c) => ({
|
|
1167
|
+
"b-data-grid-columns__menu--hovered": m.value === c.field || ee.value
|
|
1168
|
+
});
|
|
1169
|
+
return t({
|
|
1170
|
+
columnHeaderRefs: g
|
|
1171
|
+
}), { __sfc: !0, props: e, emit: n, CLOSING_CONTEXTUAL_MENU_DELAY_MS: o, t: l, columns: a, sortBy: i, allColumnsRef: _, columnHeaderRefs: g, contextMenuRef: w, hoveredColumnField: m, closingTimeOutId: E, onAllRowSelect: S, isActionsColumn: u, isAllSelectionState: y, selectAllMenu: L, startResize: F, isResizing: b, columnHoverEventToEmitAfterResizing: d, isSorting: A, getSortingDirection: O, sortByColumnField: D, getSortingColumnDirection: r, draggingEventsForColumn: f, contextualMenuData: R, showContextualMenu: T, hideContextualMenu: B, dataGridColumnEvents: U, hasColumnActions: k, registerColumnsRefs: J, isSmallContainer: K, isTouchDevice: ee, conditionalColumnsClasses: G, conditionalSelectColumnClasses: $, computeMenuPosition: C, conditionalColumnClasses: P, conditionalColumnHeaderAndActionsClasses: W, conditionalColumnActionsClasses: z, conditionalColumnSeparatorClasses: Ce, conditionalColumnHeaderClasses: ue, conditionalColumnMenuClasses: ie, BentoCheckbox: xt, BentoDatagridSortDirection: Se, BentoTypography: Re, DATAGRID_ROW_ACTIONS_COLUMN_FIELD_NAME: ye, BentoInfoIcon: rs, DatagridColumnsEvent: j, BentoMenu: Bt, BentoToggleButton: je, DecorativeCheckbox: cs, ArrowUpAndDownSortIcon: Gs, SortAscendingIcon: so, SortDescendingIcon: ro, TriangleDown: _o };
|
|
1172
|
+
}
|
|
1173
|
+
});
|
|
1174
|
+
var ho = function() {
|
|
1175
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1176
|
+
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) {
|
|
1177
|
+
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 ? [n(e.BentoMenu, { staticClass: "b-data-grid-columns__select-column-menu", attrs: { button: { variant: "tertiary", condensed: !0, "aria-label": e.t("selectAllMenu") }, data: e.selectAllMenu, "disable-arrow-down-opening-menu": "", "menu-fixed-positioning": "", "menu-position": "bottom-start" }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1178
|
+
return [n("div", { staticClass: "b-data-grid-columns__select-column-menu-button" }, [n(e.DecorativeCheckbox, { staticClass: "b-data-grid-columns__select-column-menu-checkbox", attrs: { indeterminate: t.allItemsSelectedState.isIndeterminate, checked: t.allItemsSelectedState.allItemsSelected, "all-selected": e.isAllSelectionState, "data-testid": "checkbox-select-all" } }), n(e.TriangleDown, { attrs: { "svg-title": e.t("selectionMenu"), "aria-hidden": "true" } })], 1)];
|
|
1179
|
+
}, proxy: !0 }], null, !0) })] : t._e()], 2) : [n("div", { staticClass: "b-data-grid-columns__column-header-and-actions", class: e.conditionalColumnHeaderAndActionsClasses(o), attrs: { "aria-label": e.t("columnActions", { name: o.label }), "aria-live": "polite", role: "region" } }, [n(e.BentoTypography, { staticClass: "b-data-grid-columns__column-header", class: e.conditionalColumnHeaderClasses, attrs: { el: "div", strongest: "" } }, [t._t(`head-${o.field}`, function() {
|
|
1180
|
+
return [n("span", { staticClass: "b-data-grid-columns__label" }, [t._v(t._s(o.label))])];
|
|
1181
|
+
}, { column: o })], 2), e.hasColumnActions(o) ? n("div", { staticClass: "b-data-grid-columns__column-actions", class: e.conditionalColumnActionsClasses(o) }, [o.infoIconTooltip ? n("div", { staticClass: "b-data-grid-columns__column-info-icon" }, [n(e.BentoInfoIcon, { attrs: { "tooltip-text": o.infoIconTooltip } })], 1) : t._e(), o.sortable ? n("div", { staticClass: "b-data-grid-columns__column-sort" }, [n(e.BentoToggleButton, { attrs: { condensed: "", toggled: e.isSorting(o.field), variant: "tertiary" }, on: { click: function(a) {
|
|
1182
|
+
return e.sortByColumnField(o.field);
|
|
1183
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1184
|
+
return [e.getSortingDirection(o.field) ? e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.ASCENDING ? n(e.SortAscendingIcon, { attrs: { "svg-title": e.t("sortColumnInDescendingOrder", { name: o.label }) } }) : e.getSortingDirection(o.field) === e.BentoDatagridSortDirection.DESCENDING ? n(e.SortDescendingIcon, { attrs: { "svg-title": e.t("sortColumnInAscendingOrder", { name: o.label }) } }) : t._e() : n(e.ArrowUpAndDownSortIcon, { attrs: { "svg-title": e.t("sortColumn", { name: o.label }) } })];
|
|
1185
|
+
}, proxy: !0 }], null, !0) })], 1) : t._e(), t.hasColumnPanel ? n(e.BentoMenu, { ref: (a) => e.contextMenuRef[o.field] = a, refInFor: !0, staticClass: "b-data-grid-columns__menu", class: e.conditionalColumnMenuClasses(o), attrs: { "disable-arrow-down-opening-menu": "", data: e.contextualMenuData(o), "menu-position": e.computeMenuPosition(t.hasFirstColumnPanelRightAligned, l), "menu-fixed-positioning": !0, button: { variant: "tertiary", condensed: !0 } }, on: { open: function(a) {
|
|
1186
|
+
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_OPEN);
|
|
1187
|
+
}, close: function(a) {
|
|
1188
|
+
return t.$emit(e.DatagridColumnsEvent.COLUMN_MENU_CLOSE);
|
|
1189
|
+
} } }) : t._e()], 1) : t._e()], 1), n("div", { staticClass: "b-data-grid-columns__column-separator-container", class: e.conditionalColumnSeparatorClasses(o), attrs: { "data-testid": `data-grid-column-${o.field}`, role: "presentation" }, on: { mousedown: function(a) {
|
|
1190
|
+
return e.startResize(t.hasResizableColumns, o.field, a);
|
|
1191
|
+
}, click: function(a) {
|
|
1192
|
+
a.stopPropagation();
|
|
1193
|
+
} } }, [!t.isFrozenColumns || t.isFrozenColumns && l !== e.columns.length - 1 ? n("div", { staticClass: "b-data-grid-columns__column-separator" }) : t._e()])]], 2);
|
|
1194
|
+
}), 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);
|
|
1195
|
+
}, po = [], wo = /* @__PURE__ */ q(
|
|
1196
|
+
Co,
|
|
1197
|
+
ho,
|
|
1198
|
+
po,
|
|
1199
|
+
!1,
|
|
1200
|
+
null,
|
|
1201
|
+
"047e7ae6"
|
|
1202
|
+
);
|
|
1203
|
+
const So = wo.exports;
|
|
1204
|
+
var _e = /* @__PURE__ */ ((s) => (s.UPDATE_CONDENSED = "update:condensed", s.UPDATE_COLUMNS = "update:columns", s.UPDATE_ZEBRA_ROWS = "update:zebra-rows", s))(_e || {});
|
|
1205
|
+
let Rt = 0;
|
|
1206
|
+
const bo = {
|
|
1207
|
+
beforeCreate() {
|
|
1208
|
+
this.uuid = Rt.toString(), Rt += 1;
|
|
1209
|
+
}
|
|
1210
|
+
};
|
|
1211
|
+
var Ro = function() {
|
|
1212
|
+
var t = this, n = t._self._c;
|
|
1213
|
+
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" } })])])]);
|
|
1214
|
+
}, Eo = [], Lo = /* @__PURE__ */ q(
|
|
1215
|
+
bo,
|
|
1216
|
+
Ro,
|
|
1217
|
+
Eo,
|
|
1218
|
+
!1,
|
|
1219
|
+
null,
|
|
1220
|
+
null
|
|
1221
|
+
);
|
|
1222
|
+
const yo = Lo.exports, Ao = {
|
|
1223
|
+
"en-US": {
|
|
1224
|
+
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1225
|
+
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
1226
|
+
}
|
|
1227
|
+
}, To = de({
|
|
1228
|
+
i18n: { messages: Ao },
|
|
1229
|
+
name: "bento-data-grid",
|
|
1230
|
+
components: {
|
|
1231
|
+
BentoFreezeIcon: zt,
|
|
1232
|
+
BentoToggle: Mt
|
|
1233
|
+
},
|
|
1234
|
+
props: {
|
|
1235
|
+
/**
|
|
1236
|
+
* Is column visibitlity toggle disabled
|
|
1237
|
+
*/
|
|
1238
|
+
isColumnVisibilityToggleDisabled: {
|
|
1239
|
+
type: Boolean,
|
|
1240
|
+
required: !0
|
|
1241
|
+
},
|
|
1242
|
+
/**
|
|
1243
|
+
* Column definition
|
|
1244
|
+
*/
|
|
1245
|
+
column: {
|
|
1246
|
+
type: Object,
|
|
1247
|
+
required: !0
|
|
1248
|
+
}
|
|
1249
|
+
},
|
|
1250
|
+
emits: ["visible-column", "updated-column"],
|
|
1251
|
+
setup(s, { emit: t }) {
|
|
1252
|
+
const { t: n } = he(), e = p(!1), o = v(() => {
|
|
1253
|
+
var E;
|
|
1254
|
+
return (E = s.column) == null ? void 0 : E.frozen;
|
|
1255
|
+
}), l = v(() => {
|
|
1256
|
+
var E;
|
|
1257
|
+
return ((E = s.column) == null ? void 0 : E.visible) !== !1;
|
|
1258
|
+
}), a = me(
|
|
1259
|
+
Ae,
|
|
1260
|
+
v(() => !1)
|
|
1261
|
+
), i = () => {
|
|
1262
|
+
t("visible-column", { ...s.column, visible: !l.value });
|
|
1263
|
+
}, _ = () => {
|
|
1264
|
+
t("updated-column", { ...s.column, frozen: !o.value });
|
|
1265
|
+
}, g = () => {
|
|
1266
|
+
o.value || (e.value = !0);
|
|
1267
|
+
}, w = () => {
|
|
1268
|
+
o.value || (e.value = !1);
|
|
1269
|
+
}, m = v(() => ({
|
|
1270
|
+
"b-data-grid-config-settings-column-row__freeze-icon--frozen": o.value
|
|
1271
|
+
}));
|
|
1272
|
+
return {
|
|
1273
|
+
// Values
|
|
1274
|
+
isFreezeIconOptionShown: e,
|
|
1275
|
+
isColumnFrozen: o,
|
|
1276
|
+
freezeIconConditionalClasses: m,
|
|
1277
|
+
isColumnVisible: l,
|
|
1278
|
+
isSmallContainer: a,
|
|
1279
|
+
// Methods
|
|
1280
|
+
toggleColumnVisibility: i,
|
|
1281
|
+
showFreezeIcon: g,
|
|
1282
|
+
hideFreezeIcon: w,
|
|
1283
|
+
toggleColumnFreeze: _,
|
|
1284
|
+
// Translations
|
|
1285
|
+
t: n
|
|
1286
|
+
};
|
|
1287
|
+
}
|
|
1288
|
+
});
|
|
1289
|
+
var Oo = function() {
|
|
1290
|
+
var t = this, n = t._self._c;
|
|
1291
|
+
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) {
|
|
1292
|
+
return t.toggleColumnFreeze.apply(null, arguments);
|
|
1293
|
+
} } })], 1);
|
|
1294
|
+
}, No = [], Io = /* @__PURE__ */ q(
|
|
1295
|
+
To,
|
|
1296
|
+
Oo,
|
|
1297
|
+
No,
|
|
1298
|
+
!1,
|
|
1299
|
+
null,
|
|
1300
|
+
"b49cbd8d"
|
|
1301
|
+
);
|
|
1302
|
+
const Do = Io.exports, xo = {
|
|
1303
|
+
"en-US": {
|
|
1304
|
+
appearance: "Appearance",
|
|
1305
|
+
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
1306
|
+
closeSearch: "Close search",
|
|
1307
|
+
columnVisibilitySearchFilter: "Column visibility search filter",
|
|
1308
|
+
columns: "Columns",
|
|
1309
|
+
condensed: "Condensed",
|
|
1310
|
+
condensedToggle: "Condensed toggle",
|
|
1311
|
+
configSettingsPanel: "Configuration settings Panel",
|
|
1312
|
+
displayOptions: "Display options",
|
|
1313
|
+
noColumnsMatch: "No columns match this search",
|
|
1314
|
+
search: "Search",
|
|
1315
|
+
showAllColumns: "Show all columns ({numberOfColumns})",
|
|
1316
|
+
toggleConfigSettingsPanelVisibility: "Toggle Configuration settings panel visibility",
|
|
1317
|
+
zebraRows: "Zebra rows",
|
|
1318
|
+
zebraRowsToggle: "Zebra rows toggle"
|
|
1319
|
+
},
|
|
1320
|
+
"ja-JP": {
|
|
1321
|
+
appearance: "外観",
|
|
1322
|
+
condensed: "凝縮",
|
|
1323
|
+
search: "検索"
|
|
1324
|
+
},
|
|
1325
|
+
"pt-BR": {
|
|
1326
|
+
appearance: "Aparência",
|
|
1327
|
+
condensed: "Condensado",
|
|
1328
|
+
search: "Buscar"
|
|
1329
|
+
}
|
|
1330
|
+
}, Fo = de({
|
|
1331
|
+
i18n: { messages: xo },
|
|
1332
|
+
name: "bento-data-grid",
|
|
1333
|
+
components: {
|
|
1334
|
+
BentoButton: Ft,
|
|
1335
|
+
BentoCrossIcon: It,
|
|
1336
|
+
BentoPopover: ts,
|
|
1337
|
+
BentoSettingsIcon: yo,
|
|
1338
|
+
BentoToggleButton: je,
|
|
1339
|
+
BentoDataGridConfigSettingsConfigRow: Do,
|
|
1340
|
+
BentoSearchBar: gs,
|
|
1341
|
+
BentoSearchIcon: vs,
|
|
1342
|
+
BentoToggle: Mt,
|
|
1343
|
+
BentoTypography: Re
|
|
1344
|
+
},
|
|
1345
|
+
directives: { BentoClickOutsideDirective: ms },
|
|
1346
|
+
props: {
|
|
1347
|
+
/**
|
|
1348
|
+
* Column definitions
|
|
1349
|
+
*/
|
|
1350
|
+
columns: {
|
|
1351
|
+
type: Array,
|
|
1352
|
+
required: !0
|
|
1353
|
+
},
|
|
1354
|
+
/**
|
|
1355
|
+
* Sets the row cells to the condensed padding state.
|
|
1356
|
+
*/
|
|
1357
|
+
condensed: {
|
|
1358
|
+
type: Boolean,
|
|
1359
|
+
default: !1
|
|
1360
|
+
},
|
|
1361
|
+
/**
|
|
1362
|
+
* Sets a different background color for even rows.
|
|
1363
|
+
*/
|
|
1364
|
+
zebraRows: {
|
|
1365
|
+
type: Boolean,
|
|
1366
|
+
default: !1
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
emits: [
|
|
1370
|
+
_e.UPDATE_CONDENSED,
|
|
1371
|
+
_e.UPDATE_COLUMNS,
|
|
1372
|
+
_e.UPDATE_ZEBRA_ROWS
|
|
1373
|
+
],
|
|
1374
|
+
setup(s, { emit: t }) {
|
|
1375
|
+
const { t: n } = he(), e = p(null), o = Ie("data-grid-config-settings-popover"), l = p(null), a = p(!1), i = p(!0), _ = p(null), g = p(""), w = Pe(s, "columns"), m = p(!1), E = _s(g, w), S = () => {
|
|
1376
|
+
g.value = "";
|
|
1377
|
+
}, u = v(
|
|
1378
|
+
() => !s.columns.some((f) => f.visible === !1 && !f.mandatory)
|
|
1379
|
+
), y = () => {
|
|
1380
|
+
S(), m.value = !m.value, m.value ? le(() => {
|
|
1381
|
+
var f;
|
|
1382
|
+
return (f = l.value.$refs.bentoInputField) == null ? void 0 : f.focusInput();
|
|
1383
|
+
}) : le(() => {
|
|
1384
|
+
var f, R;
|
|
1385
|
+
return (R = (f = _ == null ? void 0 : _.value) == null ? void 0 : f.$el) == null ? void 0 : R.focus();
|
|
1386
|
+
}), i.value = u.value;
|
|
1387
|
+
}, L = (f) => f.mandatory ?? !1, F = (f) => {
|
|
1388
|
+
const R = s.columns.map((T) => ({
|
|
1389
|
+
...T,
|
|
1390
|
+
visible: f.field === T.field ? f.visible : T.visible
|
|
1391
|
+
}));
|
|
1392
|
+
t(_e.UPDATE_COLUMNS, R);
|
|
1393
|
+
}, b = (f) => {
|
|
1394
|
+
f ? t(
|
|
1395
|
+
_e.UPDATE_COLUMNS,
|
|
1396
|
+
s.columns.map((R) => ({ ...R, visible: !0 }))
|
|
1397
|
+
) : t(
|
|
1398
|
+
_e.UPDATE_COLUMNS,
|
|
1399
|
+
s.columns.map((R) => ({ ...R, visible: (R == null ? void 0 : R.mandatory) === !0 }))
|
|
1400
|
+
);
|
|
1401
|
+
}, d = (f) => {
|
|
1402
|
+
const R = s.columns.map((T) => ({
|
|
1403
|
+
...T,
|
|
1404
|
+
frozen: f.field === T.field ? !!(f != null && f.frozen) : !!(T != null && T.frozen)
|
|
1405
|
+
}));
|
|
1406
|
+
t(_e.UPDATE_COLUMNS, R);
|
|
1407
|
+
}, A = (f) => {
|
|
1408
|
+
a.value = f, i.value = u.value;
|
|
1409
|
+
};
|
|
1410
|
+
return {
|
|
1411
|
+
// Values
|
|
1412
|
+
configSettingsButtonRef: e,
|
|
1413
|
+
popoverId: o,
|
|
1414
|
+
isConfigSettingsPanelOpen: a,
|
|
1415
|
+
allColumnsVisbilityToggleState: i,
|
|
1416
|
+
filteredColumnVisibilityColumns: E,
|
|
1417
|
+
searchTerm: g,
|
|
1418
|
+
isColumnVisibilityFilterShown: m,
|
|
1419
|
+
searchBarRef: l,
|
|
1420
|
+
searchButtonRef: _,
|
|
1421
|
+
DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe,
|
|
1422
|
+
// Methods
|
|
1423
|
+
setConfigSettingsPanelVisibility: A,
|
|
1424
|
+
emitCondensedToggle: (f) => t(_e.UPDATE_CONDENSED, f),
|
|
1425
|
+
toggleAllColumnVisibility: b,
|
|
1426
|
+
clearAction: S,
|
|
1427
|
+
toggleColumnFilter: y,
|
|
1428
|
+
emitVisibleColumns: F,
|
|
1429
|
+
emitFrozenColumns: d,
|
|
1430
|
+
onClickOutside: () => A(!1),
|
|
1431
|
+
isColumnVisibilityToggleDisabled: L,
|
|
1432
|
+
emitZebraRowsToggle: (f) => t(_e.UPDATE_ZEBRA_ROWS, f),
|
|
1433
|
+
// Translations
|
|
1434
|
+
t: n
|
|
1435
|
+
};
|
|
1436
|
+
}
|
|
1437
|
+
});
|
|
1438
|
+
var Bo = function() {
|
|
1439
|
+
var t = this, n = t._self._c;
|
|
1440
|
+
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) {
|
|
1441
|
+
return t.setConfigSettingsPanelVisibility(!t.isConfigSettingsPanelOpen);
|
|
1442
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1443
|
+
return [n("bento-settings-icon", { attrs: { "svg-title": t.t("toggleConfigSettingsPanelVisibility") } })];
|
|
1444
|
+
}, proxy: !0 }]) })], 1)]), t.configSettingsButtonRef ? n("bento-popover", { staticClass: "b-data-grid-config-settings__panel", attrs: { id: t.popoverId, open: t.isConfigSettingsPanelOpen, "aria-label": t.t("configSettingsPanel"), "target-element": t.configSettingsButtonRef, position: "bottom-end" } }, [n("div", { staticClass: "b-data-grid-config-settings__panel-header" }, [n("bento-typography", { attrs: { el: "span", strongest: "" } }, [t._v(" " + t._s(t.t("displayOptions")) + " ")]), n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(e) {
|
|
1445
|
+
return t.setConfigSettingsPanelVisibility(!1);
|
|
1446
|
+
} }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1447
|
+
return [n("bento-cross-icon", { attrs: { "svg-title": t.t("closeConfigSettingsPanel") } })];
|
|
1448
|
+
}, proxy: !0 }], null, !1, 353359238) })], 1), n("div", { staticClass: "b-data-grid-config-settings__appearance" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__appearance-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("appearance")) + " ")]), n("div", { staticClass: "b-data-grid-config-settings__appearance-button" }, [n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("condensedToggle"), value: t.condensed }, on: { input: t.emitCondensedToggle } }, [t._v(" " + t._s(t.t("condensed")) + " ")])], 1), n("div", { staticClass: "b-data-grid-config-settings__appearance-button" }, [n("bento-toggle", { attrs: { "label-position": "after", "aria-label": t.t("zebraRowsToggle"), value: t.zebraRows }, on: { input: t.emitZebraRowsToggle } }, [t._v(" " + t._s(t.t("zebraRows")) + " ")])], 1)], 1), n("div", { staticClass: "b-data-grid-config-settings__column-visibility-settings" }, [n("div", { staticClass: "b-data-grid-config-settings__column-visibility-header" }, [n("bento-typography", { staticClass: "b-data-grid-config-settings__column-visibility-title", attrs: { el: "span", stronger: "" } }, [t._v(" " + t._s(t.t("columns")) + " ")]), t.isColumnVisibilityFilterShown ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1449
|
+
return [n("bento-cross-icon")];
|
|
1450
|
+
}, proxy: !0 }], null, !1, 2651303519) }, [t._v(" " + t._s(t.t("closeSearch")) + " ")]) : n("bento-button", { ref: "searchButtonRef", attrs: { variant: "tertiary" }, on: { click: t.toggleColumnFilter }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
1451
|
+
return [n("bento-search-icon")];
|
|
1452
|
+
}, proxy: !0 }], null, !1, 2341044271) }, [t._v(t._s(t.t("search")))])], 1), t.isColumnVisibilityFilterShown ? n("div", { staticClass: "b-data-grid-config-settings__column-visibility-search" }, [n("bento-search-bar", { ref: "searchBarRef", attrs: { value: t.searchTerm, "input-field-aria-label": t.t("columnVisibilitySearchFilter").toString() }, on: { input: function(e) {
|
|
1453
|
+
t.searchTerm = e;
|
|
1454
|
+
}, 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) {
|
|
1455
|
+
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);
|
|
1456
|
+
}), 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);
|
|
1457
|
+
}, Uo = [], Mo = /* @__PURE__ */ q(
|
|
1458
|
+
Fo,
|
|
1459
|
+
Bo,
|
|
1460
|
+
Uo,
|
|
1461
|
+
!1,
|
|
1462
|
+
null,
|
|
1463
|
+
"0e477266"
|
|
1464
|
+
);
|
|
1465
|
+
const $o = Mo.exports, Wt = {
|
|
1466
|
+
"en-US": {
|
|
1467
|
+
filterBar: "Filters",
|
|
1468
|
+
gettingYourData: "Getting your data",
|
|
1469
|
+
loading: "Loading",
|
|
1470
|
+
noResults: "No results",
|
|
1471
|
+
pagination: "Pagination",
|
|
1472
|
+
selectRow: "Select row",
|
|
1473
|
+
showMore: "Show more",
|
|
1474
|
+
sortAscending: "{field} sort ascending",
|
|
1475
|
+
sortDescending: "{field} sort descending",
|
|
1476
|
+
sortInactive: "{field} sort inactive"
|
|
1477
|
+
},
|
|
1478
|
+
"ja-JP": {
|
|
1479
|
+
loading: "読み込み中",
|
|
1480
|
+
showMore: "表示内容を増やす"
|
|
1481
|
+
},
|
|
1482
|
+
"pt-BR": {
|
|
1483
|
+
loading: "Carregando",
|
|
1484
|
+
showMore: "Mostrar mais"
|
|
1485
|
+
}
|
|
1486
|
+
}, Po = {
|
|
1487
|
+
i18n: { messages: Wt }
|
|
1488
|
+
}, zo = /* @__PURE__ */ de({
|
|
1489
|
+
...Po,
|
|
1490
|
+
__name: "data-grid-lazy-load",
|
|
1491
|
+
props: {
|
|
1492
|
+
loading: { type: Boolean },
|
|
1493
|
+
isInfiniteScroll: { type: Boolean }
|
|
1494
|
+
},
|
|
1495
|
+
setup(s) {
|
|
1496
|
+
const { t } = he();
|
|
1497
|
+
return { __sfc: !0, t, BentoLoadingButton: ss, BentoLoadingButtonState: ns, BentoLoadingIndicator: He, BentoDatagridEvent: N };
|
|
1498
|
+
}
|
|
1499
|
+
});
|
|
1500
|
+
var ko = function() {
|
|
1501
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1502
|
+
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) {
|
|
1503
|
+
return t.$emit(e.BentoDatagridEvent.UPDATE_SHOW_MORE);
|
|
1504
|
+
} } }, [t._v(t._s(e.t("showMore")))]) : t._e()], 1);
|
|
1505
|
+
}, Wo = [], Go = /* @__PURE__ */ q(
|
|
1506
|
+
zo,
|
|
1507
|
+
ko,
|
|
1508
|
+
Wo,
|
|
1509
|
+
!1,
|
|
1510
|
+
null,
|
|
1511
|
+
"fd9b8204"
|
|
1512
|
+
);
|
|
1513
|
+
const Ho = Go.exports;
|
|
1514
|
+
let Et = 0;
|
|
1515
|
+
const Vo = {
|
|
1516
|
+
beforeCreate() {
|
|
1517
|
+
this.uuid = Et.toString(), Et += 1;
|
|
1518
|
+
}
|
|
1519
|
+
};
|
|
1520
|
+
var Zo = function() {
|
|
1521
|
+
var t = this, n = t._self._c;
|
|
1522
|
+
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" } })]);
|
|
1523
|
+
}, jo = [], qo = /* @__PURE__ */ q(
|
|
1524
|
+
Vo,
|
|
1525
|
+
Zo,
|
|
1526
|
+
jo,
|
|
1527
|
+
!1,
|
|
1528
|
+
null,
|
|
1529
|
+
null
|
|
1530
|
+
);
|
|
1531
|
+
const Lt = qo.exports, Ko = {
|
|
1532
|
+
"en-US": {
|
|
1533
|
+
copy: "Copy",
|
|
1534
|
+
edit: "Edit",
|
|
1535
|
+
more: "More",
|
|
1536
|
+
open: "Open"
|
|
1537
|
+
},
|
|
1538
|
+
"ja-JP": {
|
|
1539
|
+
copy: "コピー",
|
|
1540
|
+
edit: "編集",
|
|
1541
|
+
more: "表示を増やす",
|
|
1542
|
+
open: "を開く"
|
|
1543
|
+
},
|
|
1544
|
+
"pt-BR": {
|
|
1545
|
+
copy: "Copiar",
|
|
1546
|
+
edit: "Editar",
|
|
1547
|
+
more: "Mais",
|
|
1548
|
+
open: "Abrir"
|
|
1549
|
+
}
|
|
1550
|
+
}, Yo = {
|
|
1551
|
+
i18n: { messages: Ko },
|
|
1552
|
+
name: "data-grid-cell-actions"
|
|
1553
|
+
}, Jo = /* @__PURE__ */ de({
|
|
1554
|
+
...Yo,
|
|
1555
|
+
props: {
|
|
1556
|
+
/**
|
|
1557
|
+
* Column definitions using 'key' to relate to data object.
|
|
1558
|
+
*/
|
|
1559
|
+
cellActions: {
|
|
1560
|
+
type: [Array, Function],
|
|
1561
|
+
required: !0,
|
|
1562
|
+
validator: (s) => (s == null ? void 0 : s.length) <= 2
|
|
1563
|
+
},
|
|
1564
|
+
/**
|
|
1565
|
+
* The column field key.
|
|
1566
|
+
*/
|
|
1567
|
+
columnKey: {
|
|
1568
|
+
type: String,
|
|
1569
|
+
default: void 0
|
|
1570
|
+
},
|
|
1571
|
+
/**
|
|
1572
|
+
* Disables any opening of the cell actions menus using the down arrow key.
|
|
1573
|
+
*/
|
|
1574
|
+
disableArrowDownOpeningMenu: {
|
|
1575
|
+
type: Boolean,
|
|
1576
|
+
default: !1
|
|
1577
|
+
},
|
|
1578
|
+
/**
|
|
1579
|
+
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
1580
|
+
*/
|
|
1581
|
+
hasRightOverflow: {
|
|
1582
|
+
type: Boolean,
|
|
1583
|
+
default: !1
|
|
1584
|
+
},
|
|
1585
|
+
/**
|
|
1586
|
+
* Set to true if the row has a darker background when zebra rows is enabled.
|
|
1587
|
+
*/
|
|
1588
|
+
hasZebraBackground: {
|
|
1589
|
+
type: Boolean,
|
|
1590
|
+
default: !1
|
|
1591
|
+
},
|
|
1592
|
+
/**
|
|
1593
|
+
* Set to true if the row is selected.
|
|
1594
|
+
*/
|
|
1595
|
+
isSelected: {
|
|
1596
|
+
type: Boolean,
|
|
1597
|
+
default: !1
|
|
1598
|
+
},
|
|
1599
|
+
/**
|
|
1600
|
+
* Set to true if the row is highlighted.
|
|
1601
|
+
*/
|
|
1602
|
+
isHighlighted: {
|
|
1603
|
+
type: Boolean,
|
|
1604
|
+
default: !1
|
|
1605
|
+
},
|
|
1606
|
+
/**
|
|
1607
|
+
* Set if set to true will teleport the action menu component
|
|
1608
|
+
*/
|
|
1609
|
+
teleportMenu: {
|
|
1610
|
+
type: Boolean,
|
|
1611
|
+
default: !1
|
|
1612
|
+
},
|
|
1613
|
+
/**
|
|
1614
|
+
* The row data item object.
|
|
1615
|
+
*/
|
|
1616
|
+
rowDataItem: {
|
|
1617
|
+
type: Object,
|
|
1618
|
+
required: !0
|
|
1619
|
+
}
|
|
1620
|
+
},
|
|
1621
|
+
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
1622
|
+
setup(s, { emit: t }) {
|
|
1623
|
+
const n = s, { t: e } = he(), o = me(De, p(!1)), l = (d) => {
|
|
1624
|
+
if ("text" in d && d.text !== void 0)
|
|
1625
|
+
return d.text;
|
|
1626
|
+
switch (d.variant) {
|
|
1627
|
+
case "copy":
|
|
1628
|
+
return e("copy");
|
|
1629
|
+
case "edit":
|
|
1630
|
+
return e("edit");
|
|
1631
|
+
case "open":
|
|
1632
|
+
return e("open");
|
|
1633
|
+
case "more":
|
|
1634
|
+
return e("more");
|
|
1635
|
+
default:
|
|
1636
|
+
return d.title;
|
|
1637
|
+
}
|
|
1638
|
+
}, a = (d) => {
|
|
1639
|
+
switch (d.variant) {
|
|
1640
|
+
case "copy":
|
|
1641
|
+
return dt;
|
|
1642
|
+
case "edit":
|
|
1643
|
+
return Lt;
|
|
1644
|
+
case "open":
|
|
1645
|
+
return ct;
|
|
1646
|
+
default:
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
}, i = v(() => n.columnKey === void 0), _ = v(() => ({
|
|
1650
|
+
"b-data-grid-cell-actions__background-gradient--with-row-actions-and-overflow": i.value && n.hasRightOverflow,
|
|
1651
|
+
"b-data-grid-cell-actions__background-gradient--zebra": n.hasZebraBackground,
|
|
1652
|
+
"b-data-grid-cell-actions__background-gradient--highlighted": n.isHighlighted,
|
|
1653
|
+
"b-data-grid-cell-actions__background-gradient--selected": n.isSelected
|
|
1654
|
+
})), g = v(() => ({
|
|
1655
|
+
"b-data-grid-cell-actions__actions--with-row-actions": i.value,
|
|
1656
|
+
"b-data-grid-cell-actions__actions--zebra": n.hasZebraBackground,
|
|
1657
|
+
"b-data-grid-cell-actions__actions--highlighted": n.isHighlighted,
|
|
1658
|
+
"b-data-grid-cell-actions__actions--selected": n.isSelected
|
|
1659
|
+
})), w = v(() => !i.value || i.value && n.hasRightOverflow);
|
|
1660
|
+
function m(d) {
|
|
1661
|
+
return typeof d == "function";
|
|
1662
|
+
}
|
|
1663
|
+
const E = v(() => {
|
|
1664
|
+
var A;
|
|
1665
|
+
const d = m(n.cellActions) ? (A = n.cellActions) == null ? void 0 : A.call(n, n.rowDataItem, n.columnKey) : n.cellActions;
|
|
1666
|
+
if (o.value && !i.value && d) {
|
|
1667
|
+
const O = [];
|
|
1668
|
+
return d.forEach((D) => {
|
|
1669
|
+
D.menuData ? D.menuData.forEach((r) => {
|
|
1670
|
+
O.push(r);
|
|
1671
|
+
}) : O.push({
|
|
1672
|
+
text: l(D),
|
|
1673
|
+
event: D.event,
|
|
1674
|
+
critical: D.critical,
|
|
1675
|
+
disabled: D.disabled,
|
|
1676
|
+
icon: a(D)
|
|
1677
|
+
});
|
|
1678
|
+
}), [
|
|
1679
|
+
{
|
|
1680
|
+
variant: "more",
|
|
1681
|
+
isShort: !0,
|
|
1682
|
+
iconLeft: rt,
|
|
1683
|
+
menuData: L(O)
|
|
1684
|
+
}
|
|
1685
|
+
];
|
|
1686
|
+
}
|
|
1687
|
+
return !o.value && (d == null ? void 0 : d.length) > 2 && Dt(
|
|
1688
|
+
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
1689
|
+
), d == null ? void 0 : d.slice(0, 2);
|
|
1690
|
+
}), S = v(() => (d, A) => {
|
|
1691
|
+
if (!(!A && d.isShort || A && !d.isShort))
|
|
1692
|
+
switch (d.variant) {
|
|
1693
|
+
case "copy":
|
|
1694
|
+
return e("copy");
|
|
1695
|
+
case "edit":
|
|
1696
|
+
return e("edit");
|
|
1697
|
+
case "open":
|
|
1698
|
+
return e("open");
|
|
1699
|
+
case "more":
|
|
1700
|
+
return e("more");
|
|
1701
|
+
default:
|
|
1702
|
+
return d.title;
|
|
1703
|
+
}
|
|
1704
|
+
}), u = (d) => (d == null ? void 0 : d.event) !== void 0 ? {
|
|
1705
|
+
click: (A) => {
|
|
1706
|
+
A.stopPropagation(), d.event(n.rowDataItem, n.columnKey);
|
|
1707
|
+
}
|
|
1708
|
+
} : {}, y = (d) => ({
|
|
1709
|
+
...d,
|
|
1710
|
+
handler: () => {
|
|
1711
|
+
d != null && d.handler && typeof d.handler == "function" && (d == null || d.handler()), d != null && d.event && typeof d.event == "function" && (d == null || d.event(n.rowDataItem, n.columnKey));
|
|
1712
|
+
}
|
|
1713
|
+
}), L = (d) => d.map((A) => {
|
|
1714
|
+
const O = A;
|
|
1715
|
+
return O != null && O.items && (O.items = L(O.items)), { ...y(O) };
|
|
1716
|
+
});
|
|
1717
|
+
return { __sfc: !0, t: e, props: n, emit: t, isTouchDevice: o, getMenuItemText: l, getMenuItemIcon: a, isRowActions: i, conditionalCellActionsBackgroundGradientClasses: _, conditionalCellActionsClasses: g, showGradientElement: w, isBentoColumnCellActionsByCellValueDataFn: m, computedCellActions: E, getButtonTitle: S, generateButtonEvents: u, generateMenuEvents: y, transformMenuEvents: L, getCopyText: (d) => {
|
|
1718
|
+
var A, O;
|
|
1719
|
+
return (d == null ? void 0 : d.getCopyData) !== void 0 ? d.getCopyData(n.rowDataItem, n.columnKey) : n.columnKey ? (O = (A = n.rowDataItem) == null ? void 0 : A[n.columnKey]) == null ? void 0 : O.toString() : "";
|
|
1720
|
+
}, shouldShowMenuIconLeft: (d) => d.iconLeft || (d == null ? void 0 : d.variant) === "more", BentoButton: Ft, BentoMenu: Bt, Copy: dt, Edit1Icon: Lt, ExternalLinkIcon: ct, OptionsVerticalIcon: rt };
|
|
1721
|
+
}
|
|
1722
|
+
});
|
|
1723
|
+
var Xo = function() {
|
|
1724
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
1725
|
+
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) {
|
|
1726
|
+
return n("div", { key: l, staticClass: "b-data-grid-cell-actions__action" }, [o.menuData ? n(e.BentoMenu, { attrs: { data: e.transformMenuEvents(o.menuData), button: {
|
|
1727
|
+
condensed: !0,
|
|
1728
|
+
variant: "secondary",
|
|
1729
|
+
disabled: o.disabled
|
|
1730
|
+
}, "disable-arrow-down-opening-menu": t.disableArrowDownOpeningMenu, teleport: t.teleportMenu }, on: { open: function(a) {
|
|
1731
|
+
return e.emit("menu-open");
|
|
1732
|
+
}, close: function(a) {
|
|
1733
|
+
return e.emit("menu-close");
|
|
1734
|
+
}, "menu-item-click": function(a) {
|
|
1735
|
+
return e.emit("menu-item-click");
|
|
1736
|
+
} }, scopedSlots: t._u([e.shouldShowMenuIconLeft(o) ? { key: "iconLeft", fn: function() {
|
|
1737
|
+
return [(o == null ? void 0 : o.variant) === "more" ? n(e.OptionsVerticalIcon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": e.getButtonTitle(o, !0) } })];
|
|
1738
|
+
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
1739
|
+
return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
|
|
1740
|
+
}, proxy: !0 }], null, !0) }) : o.variant === "copy" ? n(e.Copy, { attrs: { text: e.getCopyText(o), "button-text": e.getButtonTitle(o), button: {
|
|
1741
|
+
condensed: !0,
|
|
1742
|
+
variant: "secondary"
|
|
1743
|
+
} } }) : n(e.BentoButton, t._g({ attrs: { condensed: "", variant: "secondary", critical: o.critical, disabled: o.disabled, link: o.link }, scopedSlots: t._u([o.iconLeft || o.variant === "edit" ? { key: "iconLeft", fn: function() {
|
|
1744
|
+
return [(o == null ? void 0 : o.variant) === "edit" ? n(e.Edit1Icon, { attrs: { "svg-title": e.getButtonTitle(o, !0) } }) : n(o.iconLeft, { tag: "component", attrs: { "svg-title": o.title } })];
|
|
1745
|
+
}, proxy: !0 } : null, o != null && o.isShort ? null : { key: "default", fn: function() {
|
|
1746
|
+
return [t._v(" " + t._s(e.getButtonTitle(o)) + " ")];
|
|
1747
|
+
}, proxy: !0 }, o.iconRight || o.variant === "open" ? { key: "iconRight", fn: function() {
|
|
1748
|
+
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 } })];
|
|
1749
|
+
}, proxy: !0 } : null], null, !0) }, e.generateButtonEvents(o)))], 1);
|
|
1750
|
+
}), 0)])]);
|
|
1751
|
+
}, Qo = [], el = /* @__PURE__ */ q(
|
|
1752
|
+
Jo,
|
|
1753
|
+
Xo,
|
|
1754
|
+
Qo,
|
|
1755
|
+
!1,
|
|
1756
|
+
null,
|
|
1757
|
+
"b4facd10"
|
|
1758
|
+
);
|
|
1759
|
+
const Gt = el.exports;
|
|
1760
|
+
var Q = /* @__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))(Q || {});
|
|
1761
|
+
const yt = () => {
|
|
1762
|
+
const s = document.activeElement;
|
|
1763
|
+
return s ? s.matches(":focus-visible") || s.matches(".focus-visible") : !1;
|
|
1764
|
+
}, tl = {
|
|
1765
|
+
"en-US": {
|
|
1766
|
+
collapseNestedContent: "Collapse nested content",
|
|
1767
|
+
expandNestedContent: "Expand nested content",
|
|
1768
|
+
selectRow: "Select row"
|
|
1769
|
+
}
|
|
1770
|
+
}, nl = {
|
|
1771
|
+
i18n: { messages: tl },
|
|
1772
|
+
name: "data-grid-cell"
|
|
1773
|
+
}, sl = /* @__PURE__ */ de({
|
|
1774
|
+
...nl,
|
|
1775
|
+
props: {
|
|
1776
|
+
draggingEventsForRowCell: {
|
|
1777
|
+
type: Function,
|
|
1778
|
+
required: !0
|
|
1779
|
+
},
|
|
1780
|
+
/**
|
|
1781
|
+
* The columns sets including
|
|
1782
|
+
*/
|
|
1783
|
+
columnSets: {
|
|
1784
|
+
type: Array,
|
|
1785
|
+
required: !0
|
|
1786
|
+
},
|
|
1787
|
+
/**
|
|
1788
|
+
* The columns set we are iterating over
|
|
1789
|
+
*/
|
|
1790
|
+
column: {
|
|
1791
|
+
type: Object,
|
|
1792
|
+
required: !0
|
|
1793
|
+
},
|
|
1794
|
+
colIndex: {
|
|
1795
|
+
type: Number,
|
|
1796
|
+
required: !0
|
|
1797
|
+
},
|
|
1798
|
+
columnSetIndex: {
|
|
1799
|
+
type: Number,
|
|
1800
|
+
required: !0
|
|
1801
|
+
},
|
|
1802
|
+
/**
|
|
1803
|
+
* Sets the row cells to the condensed padding state.
|
|
1804
|
+
*/
|
|
1805
|
+
condensed: {
|
|
1806
|
+
type: Boolean,
|
|
1807
|
+
default: !1
|
|
1808
|
+
},
|
|
1809
|
+
/**
|
|
1810
|
+
* Columns being dragged, contains dragging column and a target column
|
|
1811
|
+
*/
|
|
1812
|
+
draggingColumns: {
|
|
1813
|
+
type: Object,
|
|
1814
|
+
default: void 0
|
|
1815
|
+
},
|
|
1816
|
+
/**
|
|
1817
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
1818
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
1819
|
+
*/
|
|
1820
|
+
getDataItemId: {
|
|
1821
|
+
type: Function,
|
|
1822
|
+
default: (s) => s.id
|
|
1823
|
+
},
|
|
1824
|
+
/**
|
|
1825
|
+
* Set to true if the cell has a darker background when zebra rows is enabled.
|
|
1826
|
+
*/
|
|
1827
|
+
hasZebraBackground: {
|
|
1828
|
+
type: Boolean,
|
|
1829
|
+
default: !1
|
|
1830
|
+
},
|
|
1831
|
+
/**
|
|
1832
|
+
* Set to true if the row is selected.
|
|
1833
|
+
*/
|
|
1834
|
+
isSelected: {
|
|
1835
|
+
type: Boolean,
|
|
1836
|
+
default: !1
|
|
1837
|
+
},
|
|
1838
|
+
/**
|
|
1839
|
+
* Set to true if the row is highlighted.
|
|
1840
|
+
*/
|
|
1841
|
+
isHighlighted: {
|
|
1842
|
+
type: Boolean,
|
|
1843
|
+
default: !1
|
|
1844
|
+
},
|
|
1845
|
+
/**
|
|
1846
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
1847
|
+
*/
|
|
1848
|
+
hoveredOverColumnState: {
|
|
1849
|
+
type: Object,
|
|
1850
|
+
required: !0
|
|
1851
|
+
},
|
|
1852
|
+
/**
|
|
1853
|
+
* A customisable method to determine if a row is not selectable.
|
|
1854
|
+
* The default is that every row is selectable.
|
|
1855
|
+
*/
|
|
1856
|
+
isDataItemDisabled: {
|
|
1857
|
+
type: Function,
|
|
1858
|
+
default: () => !1
|
|
1859
|
+
},
|
|
1860
|
+
isMeasuringColumnWidths: {
|
|
1861
|
+
type: Boolean,
|
|
1862
|
+
default: !1
|
|
1863
|
+
},
|
|
1864
|
+
/**
|
|
1865
|
+
* Determines if the nested content is visible.
|
|
1866
|
+
*/
|
|
1867
|
+
isNestedContentExpanded: {
|
|
1868
|
+
type: Boolean,
|
|
1869
|
+
default: !1
|
|
1870
|
+
},
|
|
1871
|
+
/**
|
|
1872
|
+
* Determines if the nest content slot is enabled for this data row.
|
|
1873
|
+
*/
|
|
1874
|
+
nestedContent: {
|
|
1875
|
+
type: Boolean,
|
|
1876
|
+
default: !1
|
|
1877
|
+
},
|
|
1878
|
+
/**
|
|
1879
|
+
* The IDs of the rows this cell controls to show / hide them.
|
|
1880
|
+
*/
|
|
1881
|
+
nestedRowsElementIds: {
|
|
1882
|
+
type: Array,
|
|
1883
|
+
default: () => []
|
|
1884
|
+
},
|
|
1885
|
+
/**
|
|
1886
|
+
* The row data object
|
|
1887
|
+
*/
|
|
1888
|
+
rowData: {
|
|
1889
|
+
type: Object,
|
|
1890
|
+
required: !0
|
|
1891
|
+
},
|
|
1892
|
+
rowIndex: {
|
|
1893
|
+
type: Number,
|
|
1894
|
+
required: !0
|
|
1895
|
+
},
|
|
1896
|
+
/**
|
|
1897
|
+
* The row selection checkbox indeterminate state.
|
|
1898
|
+
*/
|
|
1899
|
+
selectionIsIndeterminate: {
|
|
1900
|
+
type: Boolean,
|
|
1901
|
+
default: !1
|
|
1902
|
+
},
|
|
1903
|
+
/**
|
|
1904
|
+
* Determines if the row selection is enabled.
|
|
1905
|
+
*/
|
|
1906
|
+
selectable: {
|
|
1907
|
+
type: Boolean,
|
|
1908
|
+
default: !1
|
|
1909
|
+
},
|
|
1910
|
+
selectedItems: {
|
|
1911
|
+
type: Array,
|
|
1912
|
+
required: !0
|
|
1913
|
+
}
|
|
1914
|
+
},
|
|
1915
|
+
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
1916
|
+
setup(s, { expose: t, emit: n }) {
|
|
1917
|
+
const e = s, o = Ge(), l = Ve(o), { t: a } = he(), i = p(null), _ = p(null), g = p(!1), w = p([]), m = p(!1), E = p(), S = p(!1), u = v(() => {
|
|
1918
|
+
var C;
|
|
1919
|
+
return !!((C = e.rowData) != null && C[e.column.field]);
|
|
1920
|
+
}), y = v(
|
|
1921
|
+
() => {
|
|
1922
|
+
var C;
|
|
1923
|
+
return e.column.field === oe && ((C = e.nestedRowsElementIds) == null ? void 0 : C.length) > 0 ? e.nestedRowsElementIds.join(" ") : void 0;
|
|
1924
|
+
}
|
|
1925
|
+
), L = v(
|
|
1926
|
+
() => e.column.field === oe && !e.selectable && !e.nestedContent
|
|
1927
|
+
), F = v(() => !L.value && (D(e.rowIndex, e.colIndex, e.columnSetIndex) === 0 && !S.value || m.value) ? "0" : (e.column.field === oe, "-1")), b = (C, P) => (C == null ? void 0 : C.overflow) === ze.ELLIPSIS ? `${P}` : void 0, d = (C) => C ?? "-", A = (C) => e.columnSets.slice(0, C).reduce((P, { columnSet: W }) => P + W.length, 0), O = (C, P) => C + A(P), D = (C, P, W) => A() * C + O(P, W), r = (C) => {
|
|
1928
|
+
var P;
|
|
1929
|
+
(C === null || !i.value.contains(C) && !((P = w.value) != null && P.map((W) => W.value).some((W) => W === C || (W == null ? void 0 : W.contains(C))))) && (g.value = !1);
|
|
1930
|
+
}, f = () => {
|
|
1931
|
+
g.value = !1;
|
|
1932
|
+
}, R = p(!1), T = (C) => {
|
|
1933
|
+
const P = {
|
|
1934
|
+
...e.draggingEventsForRowCell(C),
|
|
1935
|
+
// Focus on the first interactive child in the grid cell if one exists
|
|
1936
|
+
focus: async () => {
|
|
1937
|
+
if (!yt())
|
|
1938
|
+
return;
|
|
1939
|
+
m.value = !0, S.value = !0, n("cell-focus", {
|
|
1940
|
+
rowData: e.rowData,
|
|
1941
|
+
column: e.column,
|
|
1942
|
+
rowIndex: e.rowIndex,
|
|
1943
|
+
colIndex: O(e.colIndex, e.columnSetIndex)
|
|
1944
|
+
}), Pt(E.value), await le(), qe(i.value) && (R.value = !0);
|
|
1945
|
+
},
|
|
1946
|
+
focusout: () => {
|
|
1947
|
+
yt() && (R.value = !1);
|
|
1948
|
+
},
|
|
1949
|
+
keydown: (z) => {
|
|
1950
|
+
z.key !== ce.TAB && (R.value = !1, m.value = !1, we(i.value));
|
|
1951
|
+
}
|
|
1952
|
+
}, W = { ...P };
|
|
1953
|
+
return C.frozen && (W.keyup = (z) => n("on-frozen-columns-key-press", z), W.keydown = (z) => {
|
|
1954
|
+
P.keydown(z), n("on-frozen-columns-key-press", z);
|
|
1955
|
+
}), C.cellActions && (W.mouseenter = () => {
|
|
1956
|
+
g.value = !0;
|
|
1957
|
+
}, W.mouseleave = (z) => {
|
|
1958
|
+
r(z == null ? void 0 : z.relatedTarget);
|
|
1959
|
+
}, W.focus = async (z) => {
|
|
1960
|
+
P.focus(z), await le(), g.value = !0;
|
|
1961
|
+
}, W.focusout = (z) => {
|
|
1962
|
+
P.focusout(z), r(z == null ? void 0 : z.relatedTarget);
|
|
1963
|
+
}), W;
|
|
1964
|
+
};
|
|
1965
|
+
be(() => {
|
|
1966
|
+
E.value = we(i.value);
|
|
1967
|
+
});
|
|
1968
|
+
const B = () => {
|
|
1969
|
+
n("nested-content-toggled");
|
|
1970
|
+
};
|
|
1971
|
+
ae(
|
|
1972
|
+
() => g.value,
|
|
1973
|
+
() => {
|
|
1974
|
+
g.value === !0 ? n("cell-hovered", e.rowIndex) : n("cell-hovered", -1);
|
|
1975
|
+
}
|
|
1976
|
+
);
|
|
1977
|
+
const U = (C) => {
|
|
1978
|
+
w.value.push(C);
|
|
1979
|
+
}, k = (C) => {
|
|
1980
|
+
i.value.contains(C == null ? void 0 : C.relatedTarget) || (g.value = !1);
|
|
1981
|
+
};
|
|
1982
|
+
Oe(os, {
|
|
1983
|
+
registerMenuContainerElement: U,
|
|
1984
|
+
menuMouseLeave: k
|
|
1985
|
+
});
|
|
1986
|
+
const J = me(kt, p(!1)), K = me(
|
|
1987
|
+
Ae,
|
|
1988
|
+
v(() => !1)
|
|
1989
|
+
), ee = me(De, p(!1)), G = (C) => {
|
|
1990
|
+
var P, W, z, Ce, ue, ie, c;
|
|
1991
|
+
return {
|
|
1992
|
+
[`b-data-grid-cell--${Q.COLUMN_HOVERED}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField,
|
|
1993
|
+
[`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderLeft,
|
|
1994
|
+
[`b-data-grid-cell--${Q.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (C == null ? void 0 : C.field) === e.hoveredOverColumnState.hoveredOverColumnField && e.hoveredOverColumnState.noBorderRight,
|
|
1995
|
+
[`b-data-grid-cell--${Q.PADDING_LEFT_UNSET}`]: ((P = C == null ? void 0 : C.padding) == null ? void 0 : P.left) === !1,
|
|
1996
|
+
[`b-data-grid-cell--${Q.PADDING_RIGHT_UNSET}`]: ((W = C == null ? void 0 : C.padding) == null ? void 0 : W.right) === !1,
|
|
1997
|
+
[`b-data-grid-cell--${Q.NUMERIC}`]: C == null ? void 0 : C.numeric,
|
|
1998
|
+
[`b-data-grid-cell--${Q.CONDENSED}`]: e.condensed,
|
|
1999
|
+
[`b-data-grid-cell--${Q.OVERFLOW_ELLIPSIS}`]: (C == null ? void 0 : C.overflow) === ze.ELLIPSIS,
|
|
2000
|
+
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING}`]: ((z = e.draggingColumns.dragging) == null ? void 0 : z.field) === C.field,
|
|
2001
|
+
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ce = e.draggingColumns.target) == null ? void 0 : Ce.field) === C.field && ((ue = e.draggingColumns) == null ? void 0 : ue.dragToLeft),
|
|
2002
|
+
[`b-data-grid-cell--${Q.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((ie = e.draggingColumns.target) == null ? void 0 : ie.field) === C.field && !((c = e.draggingColumns) != null && c.dragToLeft),
|
|
2003
|
+
[`b-data-grid-cell--${Q.FROZEN}`]: C == null ? void 0 : C.frozen,
|
|
2004
|
+
[`b-data-grid-cell--${Q.NESTED_CONTENT_ENABLED}`]: e.nestedContent,
|
|
2005
|
+
[`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_ENABLED}`]: e.nestedContent && !e.selectable && C.field === oe,
|
|
2006
|
+
[`b-data-grid-cell--${Q.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: e.nestedContent && e.selectable && C.field === oe,
|
|
2007
|
+
[`b-data-grid-cell--${Q.ACTION_COL_SELECTION_ENABLED}`]: C.field === oe && e.selectable,
|
|
2008
|
+
[`b-data-grid-cell--${Q.SLASHED_ZERO}`]: J.value,
|
|
2009
|
+
"b-data-grid-cell--small-container": K.value
|
|
2010
|
+
};
|
|
2011
|
+
}, $ = v(() => ({
|
|
2012
|
+
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": R.value
|
|
2013
|
+
}));
|
|
2014
|
+
return t({
|
|
2015
|
+
gridcellRef: i
|
|
2016
|
+
}), { __sfc: !0, slots: o, hasSlot: l, t: a, props: e, emit: n, gridcellRef: i, cellActionsRef: _, shouldShowCellActions: g, childrenMenuContainerElements: w, isFocused: m, focusableItems: E, hasEverBeenFocused: S, hasRowData: u, controlledNestedRowElementIds: y, ariaHidden: L, tabIndex: F, conditionalTitleAttribute: b, getRowData: d, sumColumnAmountsInColumnSets: A, getColIndex: O, getCellIndex: D, isLeavingCellFocus: r, onMenuClose: f, hasInteractiveElFocusedInside: R, getGridcellEvents: T, toggleNestedContent: B, registerMenuContainerElement: U, menuMouseLeave: k, hasSlashedZero: J, isSmallContainer: K, isTouchDevice: ee, conditionalRowCellClasses: G, computedCellContentClasses: $, DATAGRID_ACTIONS_COLUMN_FIELD_NAME: oe, BentoCheckbox: xt, BentoTypography: Re, BentoToggleButton: je, DataGridCellActions: Gt, ChevronDownIcon: ls, ChevronUpIcon: as };
|
|
2017
|
+
}
|
|
2018
|
+
});
|
|
2019
|
+
var ol = function() {
|
|
2020
|
+
var o;
|
|
2021
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2022
|
+
return n("div", t._g({ key: `cell-${t.column.field}`, ref: "gridcellRef", staticClass: "b-data-grid-cell", class: e.conditionalRowCellClasses(t.column), style: {
|
|
2023
|
+
width: t.column.autoWidth && t.isMeasuringColumnWidths ? "auto" : `${t.column.width}px`
|
|
2024
|
+
}, attrs: { "aria-hidden": e.ariaHidden, "data-testid": `cell-${t.column.field}`, "data-cellindex": e.getCellIndex(t.rowIndex, t.colIndex, t.columnSetIndex), role: "gridcell", tabindex: e.tabIndex, "aria-colindex": e.getColIndex(t.colIndex, t.columnSetIndex) + 1 } }, e.getGridcellEvents(t.column)), [t.column.field === e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? [t.selectable ? [n(e.BentoCheckbox, { staticClass: "b-data-grid-cell__select-cell", attrs: { "aria-label": e.t("selectRow"), disabled: t.isDataItemDisabled(t.rowData), indeterminate: t.selectionIsIndeterminate, "model-value": t.selectedItems, value: t.getDataItemId(t.rowData), tabindex: e.isFocused ? 0 : -1 }, on: { "update:model-value": function(l) {
|
|
2025
|
+
return t.$emit("select-row", l);
|
|
2026
|
+
} } })] : t._e(), t.nestedContent ? [n(e.BentoToggleButton, { ref: "menuButtonRef", attrs: { "aria-haspopup": "true", "aria-controls": e.controlledNestedRowElementIds, condensed: "", variant: "tertiary", toggled: t.isNestedContentExpanded }, on: { click: e.toggleNestedContent }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
|
|
2027
|
+
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") } })];
|
|
2028
|
+
}, 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() {
|
|
2029
|
+
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])))])];
|
|
2030
|
+
}, { 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);
|
|
2031
|
+
}, ll = [], al = /* @__PURE__ */ q(
|
|
2032
|
+
sl,
|
|
2033
|
+
ol,
|
|
2034
|
+
ll,
|
|
2035
|
+
!1,
|
|
2036
|
+
null,
|
|
2037
|
+
"43492ebb"
|
|
2038
|
+
);
|
|
2039
|
+
const il = al.exports, rl = {
|
|
2040
|
+
name: "data-grid-row"
|
|
2041
|
+
}, cl = /* @__PURE__ */ de({
|
|
2042
|
+
...rl,
|
|
2043
|
+
props: {
|
|
2044
|
+
/**
|
|
2045
|
+
* Row actions property that generates which button to show in row actions area
|
|
2046
|
+
*/
|
|
2047
|
+
rowActions: {
|
|
2048
|
+
type: [Function, Array],
|
|
2049
|
+
default: void 0
|
|
2050
|
+
},
|
|
2051
|
+
/**
|
|
2052
|
+
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2053
|
+
*/
|
|
2054
|
+
allowRowClicks: { type: Boolean, default: !1 },
|
|
2055
|
+
/**
|
|
2056
|
+
* The columns sets including
|
|
2057
|
+
*/
|
|
2058
|
+
columnSets: {
|
|
2059
|
+
type: Array,
|
|
2060
|
+
required: !0
|
|
2061
|
+
},
|
|
2062
|
+
/**
|
|
2063
|
+
* Sets the row cells to the condensed padding state.
|
|
2064
|
+
*/
|
|
2065
|
+
condensed: {
|
|
2066
|
+
type: Boolean,
|
|
2067
|
+
default: !1
|
|
2068
|
+
},
|
|
2069
|
+
/**
|
|
2070
|
+
* Columns being dragged, contains dragging column and a target column
|
|
2071
|
+
*/
|
|
2072
|
+
draggingColumns: {
|
|
2073
|
+
type: Object,
|
|
2074
|
+
default: void 0
|
|
2075
|
+
},
|
|
2076
|
+
/**
|
|
2077
|
+
* Dragging event handlers for each row cell
|
|
2078
|
+
*/
|
|
2079
|
+
draggingEventsForRowCell: {
|
|
2080
|
+
type: Function,
|
|
2081
|
+
required: !0
|
|
2082
|
+
},
|
|
2083
|
+
/**
|
|
2084
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2085
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
2086
|
+
*/
|
|
2087
|
+
getDataItemId: {
|
|
2088
|
+
type: Function,
|
|
2089
|
+
default: (s) => s.id
|
|
2090
|
+
},
|
|
2091
|
+
/**
|
|
2092
|
+
* Set to true if the datagrid has been scrolled and the left side has overflowing space.
|
|
2093
|
+
*/
|
|
2094
|
+
hasLeftOverflow: {
|
|
2095
|
+
type: Boolean,
|
|
2096
|
+
default: !1
|
|
2097
|
+
},
|
|
2098
|
+
/**
|
|
2099
|
+
* Enables the nested content slot functionality.
|
|
2100
|
+
*/
|
|
2101
|
+
hasNestedContent: {
|
|
2102
|
+
type: Boolean,
|
|
2103
|
+
default: !1
|
|
2104
|
+
},
|
|
2105
|
+
/**
|
|
2106
|
+
* Enables the nested content slot functionality.
|
|
2107
|
+
*/
|
|
2108
|
+
hasNestedRows: {
|
|
2109
|
+
type: Boolean,
|
|
2110
|
+
default: !1
|
|
2111
|
+
},
|
|
2112
|
+
/**
|
|
2113
|
+
* Set to true if the datagrid has been scrolled and the right side has overflowing space.
|
|
2114
|
+
*/
|
|
2115
|
+
hasRightOverflow: {
|
|
2116
|
+
type: Boolean,
|
|
2117
|
+
default: !1
|
|
2118
|
+
},
|
|
2119
|
+
/**
|
|
2120
|
+
* Highlighted row IDs.
|
|
2121
|
+
*/
|
|
2122
|
+
highlightedRows: {
|
|
2123
|
+
type: Array,
|
|
2124
|
+
default: () => []
|
|
2125
|
+
},
|
|
2126
|
+
/**
|
|
2127
|
+
* The row index of a currently hovered row.
|
|
2128
|
+
*/
|
|
2129
|
+
hoveredRowIndex: {
|
|
2130
|
+
type: Number,
|
|
2131
|
+
default: -1
|
|
2132
|
+
},
|
|
2133
|
+
/**
|
|
2134
|
+
* The column hovered over state and whether the hovered over column should show a border right or left.
|
|
2135
|
+
*/
|
|
2136
|
+
hoveredOverColumnState: {
|
|
2137
|
+
type: Object,
|
|
2138
|
+
required: !0
|
|
2139
|
+
},
|
|
2140
|
+
/**
|
|
2141
|
+
* A customisable method to determine if a row is not selectable.
|
|
2142
|
+
* The default is that every row is selectable.
|
|
2143
|
+
*/
|
|
2144
|
+
isDataItemDisabled: {
|
|
2145
|
+
type: Function,
|
|
2146
|
+
default: () => !1
|
|
2147
|
+
},
|
|
2148
|
+
/**
|
|
2149
|
+
* If the row is of an even number.
|
|
2150
|
+
* Rows are 0th based index e.g. index 0 is an odd-numbered row.
|
|
2151
|
+
*/
|
|
2152
|
+
isRowEven: {
|
|
2153
|
+
type: Boolean,
|
|
2154
|
+
default: !1
|
|
2155
|
+
},
|
|
2156
|
+
/**
|
|
2157
|
+
* If the row is the last child in it's parent container.
|
|
2158
|
+
*/
|
|
2159
|
+
isRowLastChild: {
|
|
2160
|
+
type: Boolean,
|
|
2161
|
+
default: !1
|
|
2162
|
+
},
|
|
2163
|
+
/**
|
|
2164
|
+
* If columns are being measured for the autoWidth functionality.
|
|
2165
|
+
*/
|
|
2166
|
+
isMeasuringColumnWidths: {
|
|
2167
|
+
type: Boolean,
|
|
2168
|
+
default: !1
|
|
2169
|
+
},
|
|
2170
|
+
/**
|
|
2171
|
+
* Determines if this row is nested inside another row.
|
|
2172
|
+
*/
|
|
2173
|
+
isNestedRow: {
|
|
2174
|
+
type: Boolean,
|
|
2175
|
+
default: !1
|
|
2176
|
+
},
|
|
2177
|
+
/**
|
|
2178
|
+
* The maximum width of the row actions in all rows
|
|
2179
|
+
*/
|
|
2180
|
+
rowActionsMaximumWidth: {
|
|
2181
|
+
type: Number,
|
|
2182
|
+
default: 0
|
|
2183
|
+
},
|
|
2184
|
+
/**
|
|
2185
|
+
* The row data object
|
|
2186
|
+
*/
|
|
2187
|
+
rowData: {
|
|
2188
|
+
type: Object,
|
|
2189
|
+
required: !0
|
|
2190
|
+
},
|
|
2191
|
+
/**
|
|
2192
|
+
* The row index.
|
|
2193
|
+
*/
|
|
2194
|
+
rowIndex: {
|
|
2195
|
+
type: Number,
|
|
2196
|
+
required: !0
|
|
2197
|
+
},
|
|
2198
|
+
/**
|
|
2199
|
+
* The row ID to be using for the ID attribute.
|
|
2200
|
+
*/
|
|
2201
|
+
rowId: {
|
|
2202
|
+
type: Number,
|
|
2203
|
+
default: void 0
|
|
2204
|
+
},
|
|
2205
|
+
/**
|
|
2206
|
+
* The number of rows that this row is within.
|
|
2207
|
+
*/
|
|
2208
|
+
rowSetSize: {
|
|
2209
|
+
type: Number,
|
|
2210
|
+
default: 0
|
|
2211
|
+
},
|
|
2212
|
+
/**
|
|
2213
|
+
* Determines whether to render frozen seperator on the row.
|
|
2214
|
+
*/
|
|
2215
|
+
showFrozenColumnsSeparator: {
|
|
2216
|
+
type: Boolean,
|
|
2217
|
+
default: !1
|
|
2218
|
+
},
|
|
2219
|
+
/**
|
|
2220
|
+
* Determines if the row selection is enabled.
|
|
2221
|
+
*/
|
|
2222
|
+
selectable: {
|
|
2223
|
+
type: Boolean,
|
|
2224
|
+
default: !1
|
|
2225
|
+
},
|
|
2226
|
+
/**
|
|
2227
|
+
* The array of IDs for the selected rows.
|
|
2228
|
+
*/
|
|
2229
|
+
selectedItems: {
|
|
2230
|
+
type: Array,
|
|
2231
|
+
required: !0
|
|
2232
|
+
},
|
|
2233
|
+
/**
|
|
2234
|
+
* Enables / Disables the nested-content slot
|
|
2235
|
+
*/
|
|
2236
|
+
shouldShowNestedContent: {
|
|
2237
|
+
type: Function,
|
|
2238
|
+
default: (s) => !0
|
|
2239
|
+
},
|
|
2240
|
+
/**
|
|
2241
|
+
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2242
|
+
*/
|
|
2243
|
+
shouldShowNestedRows: {
|
|
2244
|
+
type: Function,
|
|
2245
|
+
default: (s) => !0
|
|
2246
|
+
}
|
|
2247
|
+
},
|
|
2248
|
+
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2249
|
+
setup(s, { expose: t, emit: n }) {
|
|
2250
|
+
const e = s, o = Ge(), l = Ve(o), a = p({}), i = p(!1), _ = p(), g = p(), w = Ie("nested-content-slot"), m = p(!1), E = p();
|
|
2251
|
+
be(() => {
|
|
2252
|
+
g.value && (E.value = we(g.value));
|
|
2253
|
+
});
|
|
2254
|
+
const S = v(() => e.shouldShowNestedRows(e.rowData)), u = v(
|
|
2255
|
+
() => {
|
|
2256
|
+
var h, x;
|
|
2257
|
+
return !e.isNestedRow && e.hasNestedRows && S.value && ((x = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : x.length) > 0;
|
|
2258
|
+
}
|
|
2259
|
+
), y = v(
|
|
2260
|
+
() => {
|
|
2261
|
+
var h, x;
|
|
2262
|
+
return !e.isNestedRow && e.hasNestedRows && S.value && (((h = e.rowData) == null ? void 0 : h.children) === void 0 || ((x = e == null ? void 0 : e.rowData) == null ? void 0 : x.children.length) === 0);
|
|
2263
|
+
}
|
|
2264
|
+
), L = v(
|
|
2265
|
+
() => e.hasNestedContent && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && S.value && !e.isNestedRow
|
|
2266
|
+
), F = v(() => {
|
|
2267
|
+
if (e.hasNestedContent || e.hasNestedRows) {
|
|
2268
|
+
const h = i.value.toString();
|
|
2269
|
+
return {
|
|
2270
|
+
"aria-expanded": L.value ? h : void 0,
|
|
2271
|
+
"aria-level": e.isNestedRow ? "2" : "1",
|
|
2272
|
+
"aria-posinset": e.rowIndex + 1,
|
|
2273
|
+
"aria-setsize": e.rowSetSize
|
|
2274
|
+
};
|
|
2275
|
+
}
|
|
2276
|
+
return { "aria-rowindex": e.rowIndex + 1 };
|
|
2277
|
+
}), b = v(() => {
|
|
2278
|
+
if (y.value)
|
|
2279
|
+
return {
|
|
2280
|
+
"aria-busy": "true",
|
|
2281
|
+
"aria-live": "polite"
|
|
2282
|
+
};
|
|
2283
|
+
if (!(u.value || !e.hasNestedContent || !e.shouldShowNestedContent(e.rowData)))
|
|
2284
|
+
return {
|
|
2285
|
+
"aria-level": e.isNestedRow ? "3" : "2",
|
|
2286
|
+
"aria-posinset": "1",
|
|
2287
|
+
"aria-setsize": "1",
|
|
2288
|
+
id: w,
|
|
2289
|
+
role: "row",
|
|
2290
|
+
tabindex: "-1"
|
|
2291
|
+
};
|
|
2292
|
+
}), d = v(() => {
|
|
2293
|
+
var h, x;
|
|
2294
|
+
return u.value ? (x = (h = e.rowData) == null ? void 0 : h.children) == null ? void 0 : x.reduce((H, te, re) => (H[re] = Ie("nested-row"), H), {}) : [];
|
|
2295
|
+
}), A = v(() => {
|
|
2296
|
+
var h;
|
|
2297
|
+
if (i.value) {
|
|
2298
|
+
if (e.hasNestedContent && e.shouldShowNestedContent(e.rowData))
|
|
2299
|
+
return [w];
|
|
2300
|
+
if (u.value && ((h = Object.keys(d.value)) == null ? void 0 : h.length) > 0) {
|
|
2301
|
+
const x = Object.values(d.value);
|
|
2302
|
+
if ((x == null ? void 0 : x.length) > 0)
|
|
2303
|
+
return x;
|
|
2304
|
+
}
|
|
2305
|
+
return [];
|
|
2306
|
+
}
|
|
2307
|
+
}), O = v(() => {
|
|
2308
|
+
var x, H;
|
|
2309
|
+
const h = (H = (x = e.rowData) == null ? void 0 : x.children) == null ? void 0 : H.map((te) => e.getDataItemId(te));
|
|
2310
|
+
if ((h == null ? void 0 : h.length) > 0) {
|
|
2311
|
+
const te = h.every((fe) => {
|
|
2312
|
+
var Z;
|
|
2313
|
+
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(fe);
|
|
2314
|
+
}), re = h.some((fe) => {
|
|
2315
|
+
var Z;
|
|
2316
|
+
return (Z = e == null ? void 0 : e.selectedItems) == null ? void 0 : Z.includes(fe);
|
|
2317
|
+
});
|
|
2318
|
+
return !te && re;
|
|
2319
|
+
}
|
|
2320
|
+
return !1;
|
|
2321
|
+
}), D = (h, x) => {
|
|
2322
|
+
const H = h;
|
|
2323
|
+
h !== null && (H != null && H.gridcellRef) && (a.value[x] = H.gridcellRef);
|
|
2324
|
+
}, r = (h) => d.value[h], f = (h) => {
|
|
2325
|
+
if (!e.selectable)
|
|
2326
|
+
return null;
|
|
2327
|
+
const x = e.getDataItemId(h);
|
|
2328
|
+
return e.selectedItems.includes(x).toString();
|
|
2329
|
+
}, R = (h) => {
|
|
2330
|
+
var te;
|
|
2331
|
+
if (!e.allowRowClicks)
|
|
2332
|
+
return;
|
|
2333
|
+
let x = !1;
|
|
2334
|
+
const H = ["button", "input", "a"];
|
|
2335
|
+
for (let re = 0; re < H.length; re++)
|
|
2336
|
+
if ((te = h == null ? void 0 : h.target) != null && te.closest(H[re])) {
|
|
2337
|
+
x = !0;
|
|
2338
|
+
break;
|
|
2339
|
+
}
|
|
2340
|
+
x || n("row-click", e.rowData, h);
|
|
2341
|
+
}, T = (h) => {
|
|
2342
|
+
n("select-row", h, e.rowData);
|
|
2343
|
+
}, B = (h, x) => {
|
|
2344
|
+
n("select-nested-row", x, e.rowData, h);
|
|
2345
|
+
}, U = () => {
|
|
2346
|
+
m.value = !0;
|
|
2347
|
+
}, k = () => {
|
|
2348
|
+
m.value = !1;
|
|
2349
|
+
}, J = () => {
|
|
2350
|
+
var h;
|
|
2351
|
+
Pt([(h = E.value) == null ? void 0 : h[0]]), qe(g.value);
|
|
2352
|
+
}, K = () => {
|
|
2353
|
+
we(g.value);
|
|
2354
|
+
}, ee = (h) => {
|
|
2355
|
+
var x, H;
|
|
2356
|
+
h.key !== ce.TAB && we(g.value), h.key === ce.ARROW_RIGHT && ((x = E.value) == null ? void 0 : x.length) > 1 && E.value[0].node === document.activeElement ? (we(g.value), E.value[1].node.setAttribute("tabindex", "0"), E.value[1].node.focus(), h.stopPropagation(), h.preventDefault()) : h.key === ce.ARROW_LEFT && ((H = E.value) == null ? void 0 : H.length) > 1 && E.value[1].node === document.activeElement && (we(g.value), E.value[0].node.setAttribute("tabindex", "0"), E.value[0].node.focus(), h.stopPropagation(), h.preventDefault());
|
|
2357
|
+
}, G = () => e.columnSets.reduce((h, { columnSet: x }) => h + x.length, 0), $ = () => G() * e.rowIndex + G(), { updateContentHeight: C, contentHeight: P } = is(_, i), W = v(() => {
|
|
2358
|
+
var h;
|
|
2359
|
+
if (e.hasNestedContent || e.hasNestedRows)
|
|
2360
|
+
return {
|
|
2361
|
+
paddingLeft: `${u.value || y.value ? 0 : a.value[oe].offsetWidth + $t}px`,
|
|
2362
|
+
"max-height": (e.hasNestedContent || e.hasNestedRows) && P.value && !((h = P == null ? void 0 : P.value) != null && h.includes("null")) ? P.value : 0
|
|
2363
|
+
};
|
|
2364
|
+
});
|
|
2365
|
+
ae(
|
|
2366
|
+
() => _.value,
|
|
2367
|
+
() => {
|
|
2368
|
+
let h = null;
|
|
2369
|
+
!h && _.value && (h = Ze(_.value, () => {
|
|
2370
|
+
_.value && C();
|
|
2371
|
+
}));
|
|
2372
|
+
}
|
|
2373
|
+
);
|
|
2374
|
+
const z = () => {
|
|
2375
|
+
i.value = !i.value, C(), n("nested-content-toggled", e.rowData);
|
|
2376
|
+
};
|
|
2377
|
+
ae(
|
|
2378
|
+
() => {
|
|
2379
|
+
var h;
|
|
2380
|
+
return (h = e.rowData) == null ? void 0 : h.children;
|
|
2381
|
+
},
|
|
2382
|
+
(h, x) => {
|
|
2383
|
+
var H, te;
|
|
2384
|
+
((te = (H = e == null ? void 0 : e.rowData) == null ? void 0 : H.children) == null ? void 0 : te.length) > 0 && x === void 0 && !i.value && C();
|
|
2385
|
+
}
|
|
2386
|
+
);
|
|
2387
|
+
const Ce = me(
|
|
2388
|
+
Ae,
|
|
2389
|
+
v(() => !1)
|
|
2390
|
+
), ue = (h) => e.highlightedRows.includes(e.getDataItemId(h)), ie = (h) => e.selectedItems.includes(e.getDataItemId(h)), c = (h, x) => ({
|
|
2391
|
+
"b-data-grid-row-container__row--disabled": e.isDataItemDisabled(h),
|
|
2392
|
+
"b-data-grid-row-container__row--row-clicks-enabled": e.allowRowClicks,
|
|
2393
|
+
"b-data-grid-row-container__row--highlighted": ue(h),
|
|
2394
|
+
"b-data-grid-row-container__row--selected": ie(h),
|
|
2395
|
+
"b-data-grid-row-container__row--hovered": e.hoveredRowIndex === x,
|
|
2396
|
+
"b-data-grid-row-container__row--is-last-child": e.isRowLastChild && !i.value,
|
|
2397
|
+
"b-data-grid-row-container__row--nested-row": e.isNestedRow,
|
|
2398
|
+
"b-data-grid-row-container__row--zebra": e.isRowEven
|
|
2399
|
+
}), M = (h, x) => ({
|
|
2400
|
+
"b-data-grid-row-container__row-cell-set--frozen": h && !x,
|
|
2401
|
+
[`b-data-grid-row-container__row-cell-set--${ve.OVERFLOW_SHADOW_LEFT}`]: !x && h && e.hasLeftOverflow,
|
|
2402
|
+
"b-data-grid-row-container__row-cell-set--frozen-separator": !x && h && e.showFrozenColumnsSeparator,
|
|
2403
|
+
"b-data-grid-row-container__row-cell-set--unfrozen": !h || x,
|
|
2404
|
+
"b-data-grid-row-container__row-cell-set--is-measuring": e.isMeasuringColumnWidths
|
|
2405
|
+
}), X = v(() => ({
|
|
2406
|
+
"b-data-grid-row-container__row-nested-slot--is-last-child": e.isRowLastChild,
|
|
2407
|
+
"b-data-grid-row-container__row-nested-slot": !u.value && e.shouldShowNestedContent(e.rowData)
|
|
2408
|
+
})), ne = v(() => ({
|
|
2409
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": m.value
|
|
2410
|
+
})), pe = v(() => ({
|
|
2411
|
+
minWidth: `${e.rowActionsMaximumWidth}px`
|
|
2412
|
+
}));
|
|
2413
|
+
return t({
|
|
2414
|
+
gridcellRefs: a,
|
|
2415
|
+
rowActionsRef: g
|
|
2416
|
+
}), { __sfc: !0, slots: o, hasSlot: l, props: e, emit: n, gridcellRefs: a, isNestedContentShown: i, nestedContentRef: _, rowActionsRef: g, nestedContentSlotId: w, isRowActionMenuOpen: m, focusableItems: E, shouldShowNestedRowsBooleanResult: S, shouldShowRenderNestedRows: u, isLoadingNestedRows: y, shouldShowNestedContentToggle: L, ariaRowAttributes: F, nestedContentContainerDivAriaAttributes: b, nestedRowIds: d, allNestedRowIds: A, hasUnSelectedNestedRows: O, registerRowCellRef: D, getRowId: r, getRowAriaSelectedValue: f, onRowClick: R, onRowSelect: T, onNestedRowSelect: B, onRowActionMenuOpen: U, onRowActionMenuClose: k, onRowActionsCellFocus: J, onRowActionsCellFocusOut: K, onRowActionsCellOnKeyDown: ee, sumColumnAmountsInColumnSets: G, getRowActionsCellIndex: $, updateContentHeight: C, contentHeight: P, nestedContentStyles: W, nestedContentToggled: z, isSmallContainer: Ce, isHighlightedRow: ue, isSelectedRow: ie, conditionalRowClasses: c, conditionalRowSetClasses: M, conditionalNestedRowClasses: X, conditionalRowActionsContainerClasses: ne, computedRowActionsStyles: pe, BentoLoadingIndicator: He, DataGridRow: Ht, DataGridCell: il, DataGridCellActions: Gt };
|
|
2417
|
+
}
|
|
2418
|
+
});
|
|
2419
|
+
var dl = function() {
|
|
2420
|
+
var o;
|
|
2421
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2422
|
+
return n("div", { staticClass: "b-data-grid-row-container", attrs: { role: "presentation" } }, [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) {
|
|
2423
|
+
return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onRowClick.apply(null, arguments);
|
|
2424
|
+
}, function(l) {
|
|
2425
|
+
return !l.type.indexOf("key") && t._k(l.keyCode, "space", 32, l.key, [" ", "Spacebar"]) ? null : e.onRowClick.apply(null, arguments);
|
|
2426
|
+
}] } }, "div", e.ariaRowAttributes, !1), [t._l(t.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
2427
|
+
return [l != null && l.length ? n("div", { key: `data-grid-rows-${a}`, staticClass: "b-data-grid-row-container__cells", class: e.conditionalRowSetClasses(i, e.isSmallContainer), attrs: { "data-testid": `data-grid-${a}-rows` } }, t._l(l, function(g, w) {
|
|
2428
|
+
return n(e.DataGridCell, { key: `cell-${g.field}`, ref: (m) => e.registerRowCellRef(m, g.field), refInFor: !0, staticClass: "b-data-grid-row-container__cell", attrs: { column: g, "column-set-index": _, "col-index": w, "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) {
|
|
2429
|
+
return e.emit("cell-hovered", m);
|
|
2430
|
+
}, "cell-focus": function(m) {
|
|
2431
|
+
return e.emit("cell-focus", m);
|
|
2432
|
+
}, "on-frozen-columns-key-press": function(m) {
|
|
2433
|
+
return e.emit("on-frozen-columns-key-press", m);
|
|
2434
|
+
}, "select-row": e.onRowSelect, "nested-content-toggled": e.nestedContentToggled }, scopedSlots: t._u([t._l(e.slots, function(m, E) {
|
|
2435
|
+
return { key: E, fn: function(S) {
|
|
2436
|
+
return [t._t(E, null, null, S)];
|
|
2437
|
+
} };
|
|
2438
|
+
})], null, !0) });
|
|
2439
|
+
}), 1) : t._e(), !i && 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()];
|
|
2440
|
+
})], 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 && e.shouldShowRenderNestedRows ? n("div", { class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "presentation" } }, [n("div", { ref: "nestedContentRef" }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : t._e(), t._l(t.rowData.children, function(l, a) {
|
|
2441
|
+
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(i) {
|
|
2442
|
+
return e.emit("cell-hovered", i);
|
|
2443
|
+
}, "cell-focus": function(i) {
|
|
2444
|
+
return e.emit("cell-focus", i);
|
|
2445
|
+
}, "row-click": function(i) {
|
|
2446
|
+
return e.emit("row-click", ...i);
|
|
2447
|
+
}, "on-frozen-columns-key-press": function(i) {
|
|
2448
|
+
return e.emit("on-frozen-columns-key-press", i);
|
|
2449
|
+
}, "select-row": function(i) {
|
|
2450
|
+
return e.onNestedRowSelect(l, i);
|
|
2451
|
+
} }, scopedSlots: t._u([t._l(e.slots, function(i, _) {
|
|
2452
|
+
return { key: _, fn: function(g) {
|
|
2453
|
+
return [t._t(_, null, null, g)];
|
|
2454
|
+
} };
|
|
2455
|
+
})], null, !0) }, "data-grid-row", e.props, !1));
|
|
2456
|
+
})], 2)]) : e.isNestedContentShown ? n("div", t._b({ class: e.conditionalNestedRowClasses, style: e.nestedContentStyles, attrs: { "data-testid": "nested-content-container", role: "row", tabindex: "-1" } }, "div", e.nestedContentContainerDivAriaAttributes, !1), [n("div", { ref: "nestedContentRef", attrs: { role: "gridcell" } }, [e.isLoadingNestedRows ? n("div", { staticClass: "b-data-grid-row-container__row-nested-rows-loading-container" }, [n(e.BentoLoadingIndicator)], 1) : e.hasSlot("nested-slot") && t.shouldShowNestedContent(t.rowData) ? n("div", [t._t("nested-slot", null, { item: t.rowData })], 2) : t._e()])]) : t._e()]) : t._e()], 1);
|
|
2457
|
+
}, ul = [], fl = /* @__PURE__ */ q(
|
|
2458
|
+
cl,
|
|
2459
|
+
dl,
|
|
2460
|
+
ul,
|
|
2461
|
+
!1,
|
|
2462
|
+
null,
|
|
2463
|
+
"b70dfec3"
|
|
2464
|
+
);
|
|
2465
|
+
const Ht = fl.exports;
|
|
2466
|
+
let At = 0;
|
|
2467
|
+
const gl = {
|
|
2468
|
+
beforeCreate() {
|
|
2469
|
+
this.uuid = At.toString(), At += 1;
|
|
2470
|
+
}
|
|
2471
|
+
};
|
|
2472
|
+
var _l = function() {
|
|
2473
|
+
var t = this, n = t._self._c;
|
|
2474
|
+
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" } })])])]);
|
|
2475
|
+
}, vl = [], ml = /* @__PURE__ */ q(
|
|
2476
|
+
gl,
|
|
2477
|
+
_l,
|
|
2478
|
+
vl,
|
|
2479
|
+
!1,
|
|
2480
|
+
null,
|
|
2481
|
+
null
|
|
2482
|
+
);
|
|
2483
|
+
const Cl = ml.exports, hl = {}, pl = /* @__PURE__ */ de({
|
|
2484
|
+
...hl,
|
|
2485
|
+
__name: "data-grid-static-icon",
|
|
2486
|
+
props: {
|
|
2487
|
+
colored: { type: Boolean, default: !1 },
|
|
2488
|
+
tooltipText: null,
|
|
2489
|
+
variant: { default: "no-value" }
|
|
2490
|
+
},
|
|
2491
|
+
setup(s) {
|
|
2492
|
+
const t = s, n = v(() => {
|
|
2493
|
+
switch (t.variant) {
|
|
2494
|
+
case "checkmark":
|
|
2495
|
+
return Wn;
|
|
2496
|
+
case "warning":
|
|
2497
|
+
return Gn;
|
|
2498
|
+
case "error":
|
|
2499
|
+
return Cl;
|
|
2500
|
+
case "cross":
|
|
2501
|
+
return It;
|
|
2502
|
+
case "no-value":
|
|
2503
|
+
return it;
|
|
2504
|
+
default:
|
|
2505
|
+
return it;
|
|
2506
|
+
}
|
|
2507
|
+
}), e = v(() => ({
|
|
2508
|
+
"b-data-grid-static-icon--colored": t.colored && t.variant !== "no-value"
|
|
2509
|
+
})), o = v(() => `b-data-grid-static-icon__${t.variant}`), l = v(() => Hn.AUTO);
|
|
2510
|
+
return { __sfc: !0, props: t, computedIcon: n, conditionalClasses: e, computedIconClass: o, tooltipPosition: l, vBentoTooltipDirective: Vn };
|
|
2511
|
+
}
|
|
2512
|
+
});
|
|
2513
|
+
var wl = function() {
|
|
2514
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2515
|
+
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);
|
|
2516
|
+
}, Sl = [], bl = /* @__PURE__ */ q(
|
|
2517
|
+
pl,
|
|
2518
|
+
wl,
|
|
2519
|
+
Sl,
|
|
2520
|
+
!1,
|
|
2521
|
+
null,
|
|
2522
|
+
"dbc055cb"
|
|
2523
|
+
);
|
|
2524
|
+
const za = bl.exports, Rl = {
|
|
2525
|
+
"de-DE": {
|
|
2526
|
+
numberResults: "1 Ergebnis | {count} Ergebnisse"
|
|
2527
|
+
},
|
|
2528
|
+
"en-US": {
|
|
2529
|
+
numberResults: "1 result | {count} results"
|
|
2530
|
+
},
|
|
2531
|
+
"es-ES": {
|
|
2532
|
+
numberResults: "1 resultado | {count} resultados"
|
|
2533
|
+
},
|
|
2534
|
+
"fr-FR": {
|
|
2535
|
+
numberResults: "1 résultat | {count} résultats"
|
|
2536
|
+
},
|
|
2537
|
+
"ja-JP": {
|
|
2538
|
+
numberResults: "結果が見つかりませんでした | {count}件の結果"
|
|
2539
|
+
},
|
|
2540
|
+
"pt-BR": {
|
|
2541
|
+
numberResults: "1 resultado | {count} resultados"
|
|
2542
|
+
}
|
|
2543
|
+
}, El = {
|
|
2544
|
+
i18n: { messages: Rl }
|
|
2545
|
+
}, Ll = /* @__PURE__ */ de({
|
|
2546
|
+
...El,
|
|
2547
|
+
__name: "data-grid-summary-cell",
|
|
2548
|
+
props: {
|
|
2549
|
+
label: null,
|
|
2550
|
+
items: null,
|
|
2551
|
+
dashedUnderline: { default: () => ({}) },
|
|
2552
|
+
searchTerm: { default: "" },
|
|
2553
|
+
tooltipText: { default: null }
|
|
2554
|
+
},
|
|
2555
|
+
setup(s) {
|
|
2556
|
+
const t = s, { tc: n } = he(), e = p(), o = v(() => ({
|
|
2557
|
+
popoverPosition: "right",
|
|
2558
|
+
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
2559
|
+
popoverTitle: t.label,
|
|
2560
|
+
popoverSize: "small",
|
|
2561
|
+
...t.dashedUnderline,
|
|
2562
|
+
// We force teleport as this is needed for the popover to appear above all the data grid elements
|
|
2563
|
+
teleport: {
|
|
2564
|
+
disabled: !1
|
|
2565
|
+
}
|
|
2566
|
+
})), l = v(() => {
|
|
2567
|
+
var g;
|
|
2568
|
+
return ((g = t.searchTerm) == null ? void 0 : g.toLowerCase()) ?? "";
|
|
2569
|
+
}), a = (g) => t.searchTerm && g.toLowerCase().includes(l.value) ? "mark" : "span", i = v(() => t.searchTerm ? t.items.filter((g) => g.toLowerCase().includes(l.value)).length : 0), _ = v(
|
|
2570
|
+
() => t.tooltipText ?? (i.value > 0 ? n("numberResults", i.value) : "")
|
|
2571
|
+
);
|
|
2572
|
+
return { __sfc: !0, tc: n, props: t, dashedUnderlineRef: e, dashedUnderlineProps: o, lowerCaseSearchTerm: l, highlightedComponent: a, highlightedItemsCount: i, computedToolTipText: _, BentoDashedUnderline: qn, BentoTypography: Re, Tooltip: jn, BentoTooltipPosition: Zn };
|
|
2573
|
+
}
|
|
2574
|
+
});
|
|
2575
|
+
var yl = function() {
|
|
2576
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2577
|
+
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() {
|
|
2578
|
+
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) {
|
|
2579
|
+
return n("li", { key: o }, [n(e.highlightedComponent(o), { tag: "component" }, [t._v(t._s(o))])], 1);
|
|
2580
|
+
}), 0)])];
|
|
2581
|
+
}, 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);
|
|
2582
|
+
}, Al = [], Tl = /* @__PURE__ */ q(
|
|
2583
|
+
Ll,
|
|
2584
|
+
yl,
|
|
2585
|
+
Al,
|
|
2586
|
+
!1,
|
|
2587
|
+
null,
|
|
2588
|
+
"2cf5d218"
|
|
2589
|
+
);
|
|
2590
|
+
const ka = Tl.exports;
|
|
2591
|
+
let Tt = 0;
|
|
2592
|
+
const Ol = {
|
|
2593
|
+
beforeCreate() {
|
|
2594
|
+
this.uuid = Tt.toString(), Tt += 1;
|
|
2595
|
+
}
|
|
2596
|
+
};
|
|
2597
|
+
var Nl = function() {
|
|
2598
|
+
var t = this, n = t._self._c;
|
|
2599
|
+
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.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z" } })]);
|
|
2600
|
+
}, Il = [], Dl = /* @__PURE__ */ q(
|
|
2601
|
+
Ol,
|
|
2602
|
+
Nl,
|
|
2603
|
+
Il,
|
|
2604
|
+
!1,
|
|
2605
|
+
null,
|
|
2606
|
+
null
|
|
2607
|
+
);
|
|
2608
|
+
const xl = Dl.exports;
|
|
2609
|
+
let Ot = 0;
|
|
2610
|
+
const Fl = {
|
|
2611
|
+
beforeCreate() {
|
|
2612
|
+
this.uuid = Ot.toString(), Ot += 1;
|
|
2613
|
+
}
|
|
2614
|
+
};
|
|
2615
|
+
var Bl = function() {
|
|
2616
|
+
var t = this, n = t._self._c;
|
|
2617
|
+
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.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z" } })]);
|
|
2618
|
+
}, Ul = [], Ml = /* @__PURE__ */ q(
|
|
2619
|
+
Fl,
|
|
2620
|
+
Bl,
|
|
2621
|
+
Ul,
|
|
2622
|
+
!1,
|
|
2623
|
+
null,
|
|
2624
|
+
null
|
|
2625
|
+
);
|
|
2626
|
+
const $l = Ml.exports, Pl = {
|
|
2627
|
+
"en-US": {
|
|
2628
|
+
decrease: "decrease",
|
|
2629
|
+
increase: "increase"
|
|
2630
|
+
},
|
|
2631
|
+
"ja-JP": {
|
|
2632
|
+
decrease: "低減",
|
|
2633
|
+
increase: "増加"
|
|
2634
|
+
},
|
|
2635
|
+
"pt-BR": {
|
|
2636
|
+
decrease: "Diminuir",
|
|
2637
|
+
increase: "Aumentar"
|
|
2638
|
+
}
|
|
2639
|
+
}, zl = {
|
|
2640
|
+
i18n: { messages: Pl }
|
|
2641
|
+
}, kl = /* @__PURE__ */ de({
|
|
2642
|
+
...zl,
|
|
2643
|
+
__name: "data-grid-trend-cell",
|
|
2644
|
+
props: {
|
|
2645
|
+
direction: { default: "none" },
|
|
2646
|
+
variant: { default: "black" },
|
|
2647
|
+
value: null
|
|
2648
|
+
},
|
|
2649
|
+
setup(s) {
|
|
2650
|
+
const t = s, { t: n, locale: e } = he(), o = v(() => ({
|
|
2651
|
+
[`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
|
|
2652
|
+
})), l = v(() => {
|
|
2653
|
+
switch (t.direction) {
|
|
2654
|
+
case "up":
|
|
2655
|
+
return n("increase");
|
|
2656
|
+
case "down":
|
|
2657
|
+
return n("decrease");
|
|
2658
|
+
default:
|
|
2659
|
+
return null;
|
|
2660
|
+
}
|
|
2661
|
+
}), a = v(() => {
|
|
2662
|
+
switch (t.direction) {
|
|
2663
|
+
case "up":
|
|
2664
|
+
return xl;
|
|
2665
|
+
case "down":
|
|
2666
|
+
return $l;
|
|
2667
|
+
default:
|
|
2668
|
+
return null;
|
|
2669
|
+
}
|
|
2670
|
+
}), i = v(() => {
|
|
2671
|
+
const _ = typeof t.value == "string" ? parseFloat(t.value) : t.value;
|
|
2672
|
+
return isNaN(_) ? "" : new Intl.NumberFormat(e.value, {
|
|
2673
|
+
style: "percent",
|
|
2674
|
+
minimumFractionDigits: 0,
|
|
2675
|
+
// Don't force zeros
|
|
2676
|
+
maximumFractionDigits: 10
|
|
2677
|
+
// Cap it reasonably to avoid float artifacts
|
|
2678
|
+
}).format(_ / 100);
|
|
2679
|
+
});
|
|
2680
|
+
return { __sfc: !0, t: n, locale: e, props: t, conditionalClasses: o, computedIconTitle: l, computedIcon: a, computedValue: i, BentoTypography: Re };
|
|
2681
|
+
}
|
|
2682
|
+
});
|
|
2683
|
+
var Wl = function() {
|
|
2684
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
2685
|
+
return n("div", { staticClass: "b-data-grid-trend-cell", class: e.conditionalClasses }, [e.computedIcon ? n(e.computedIcon, { tag: "component", attrs: { "svg-title": e.computedIconTitle } }) : t._e(), n(e.BentoTypography, { attrs: { el: "span" } }, [t._v(t._s(e.computedValue))])], 1);
|
|
2686
|
+
}, Gl = [], Hl = /* @__PURE__ */ q(
|
|
2687
|
+
kl,
|
|
2688
|
+
Wl,
|
|
2689
|
+
Gl,
|
|
2690
|
+
!1,
|
|
2691
|
+
null,
|
|
2692
|
+
"05cdd7d9"
|
|
2693
|
+
);
|
|
2694
|
+
const Wa = Hl.exports, Vl = {
|
|
2695
|
+
i18n: { messages: Wt },
|
|
2696
|
+
name: "bento-data-grid"
|
|
2697
|
+
}, Zl = /* @__PURE__ */ de({
|
|
2698
|
+
...Vl,
|
|
2699
|
+
props: {
|
|
2700
|
+
/**
|
|
2701
|
+
* When true, will emit a 'rowClick' event when a row is clicked. Will add cursor: pointer to rows.
|
|
2702
|
+
*/
|
|
2703
|
+
allowRowClicks: { type: Boolean, default: !1 },
|
|
2704
|
+
/**
|
|
2705
|
+
* When true, column headers will become draggable, allowing users to rearrange columns.
|
|
2706
|
+
*/
|
|
2707
|
+
allowColumnDragAndDrop: { type: Boolean, default: !0 },
|
|
2708
|
+
/**
|
|
2709
|
+
* List of actions that will be rendered in the action bar when user selects items.
|
|
2710
|
+
*
|
|
2711
|
+
* Each object in the list should have a `title`, an `event` and,
|
|
2712
|
+
* optionally, an `icon`.
|
|
2713
|
+
*
|
|
2714
|
+
* The component will display 4 actions and the hide the rest inside a menu.
|
|
2715
|
+
*
|
|
2716
|
+
* @see BentoButton for a list of all the other props supported by each button action.
|
|
2717
|
+
*/
|
|
2718
|
+
bulkActions: {
|
|
2719
|
+
type: Array,
|
|
2720
|
+
default: null
|
|
2721
|
+
},
|
|
2722
|
+
/**
|
|
2723
|
+
* Sets the row cells to the condensed padding state.
|
|
2724
|
+
*/
|
|
2725
|
+
condensed: {
|
|
2726
|
+
type: Boolean,
|
|
2727
|
+
default: !1
|
|
2728
|
+
},
|
|
2729
|
+
/**
|
|
2730
|
+
* Column definitions using 'key' to relate to data object.
|
|
2731
|
+
*/
|
|
2732
|
+
columns: {
|
|
2733
|
+
type: Array,
|
|
2734
|
+
required: !0
|
|
2735
|
+
},
|
|
2736
|
+
/**
|
|
2737
|
+
* Enables / hides the display options panel and the column contextual menu functionality.
|
|
2738
|
+
*/
|
|
2739
|
+
columnPanel: { type: Boolean, default: !1 },
|
|
2740
|
+
/**
|
|
2741
|
+
* An array of data objects to display.
|
|
2742
|
+
*/
|
|
2743
|
+
data: {
|
|
2744
|
+
type: Array,
|
|
2745
|
+
required: !0
|
|
2746
|
+
},
|
|
2747
|
+
/**
|
|
2748
|
+
* Empty state props that will be passed down to inner empty-state component
|
|
2749
|
+
*/
|
|
2750
|
+
emptyState: {
|
|
2751
|
+
type: Object,
|
|
2752
|
+
default: void 0
|
|
2753
|
+
},
|
|
2754
|
+
/**
|
|
2755
|
+
* filter-bar value (i.e. filters) that will be passed down to inner filter-bar component
|
|
2756
|
+
* {@see BentoFilterBarModel}
|
|
2757
|
+
*/
|
|
2758
|
+
filters: {
|
|
2759
|
+
// TODO: Change this to BentoFilterBarProps['value'] when the interface is available
|
|
2760
|
+
type: Array,
|
|
2761
|
+
default: void 0
|
|
2762
|
+
},
|
|
2763
|
+
/**
|
|
2764
|
+
* Defines the layout (multi-line or one-line) to be used in the filter bar for different
|
|
2765
|
+
* container sizes:
|
|
2766
|
+
* - Large (>=700px): Always multi-line
|
|
2767
|
+
* - Medium (>=430px & <700px)
|
|
2768
|
+
* - Small (<430px)
|
|
2769
|
+
*
|
|
2770
|
+
* @default
|
|
2771
|
+
* {
|
|
2772
|
+
* medium: 'multi-line',
|
|
2773
|
+
* small: 'one-line'
|
|
2774
|
+
* }
|
|
2775
|
+
*/
|
|
2776
|
+
filtersContainerSizeLayout: {
|
|
2777
|
+
type: Object,
|
|
2778
|
+
default: void 0
|
|
2779
|
+
},
|
|
2780
|
+
/**
|
|
2781
|
+
* An array of the values for each filter set in `value`.
|
|
2782
|
+
* {@see BentoFilterValues}
|
|
2783
|
+
*/
|
|
2784
|
+
filterValues: {
|
|
2785
|
+
type: $e.props.filterValues.type,
|
|
2786
|
+
default: () => []
|
|
2787
|
+
},
|
|
2788
|
+
/**
|
|
2789
|
+
* An object of the values for each filter in the filter bar where key is a the field name and the value is the BentoFilterBarValue.
|
|
2790
|
+
*
|
|
2791
|
+
* @example
|
|
2792
|
+
* {
|
|
2793
|
+
* 'company': '200',
|
|
2794
|
+
* 'name': 'some text'
|
|
2795
|
+
* },
|
|
2796
|
+
*/
|
|
2797
|
+
filterValuesObject: {
|
|
2798
|
+
type: Object,
|
|
2799
|
+
default: () => {
|
|
2800
|
+
}
|
|
2801
|
+
},
|
|
2802
|
+
// TODO: Move this prop as a part of "config" BentoFilterBarModel = Array<BentoFilterModel | BentoFilterSearchModel> in Bento 2.0.
|
|
2803
|
+
// It was not done now because it's a breaking change for the types.
|
|
2804
|
+
/**
|
|
2805
|
+
* Filter's search bar properties with which the placeholder, hint and other
|
|
2806
|
+
* "bento-search-bar" properties can be set. @see {@link BentoFilterBarSearchBarProps}
|
|
2807
|
+
*/
|
|
2808
|
+
filterSearchConfig: {
|
|
2809
|
+
type: Object,
|
|
2810
|
+
default: void 0
|
|
2811
|
+
},
|
|
2812
|
+
/**
|
|
2813
|
+
* Filter bar search term useful to filter all the data by text
|
|
2814
|
+
*/
|
|
2815
|
+
filterSearchTerm: {
|
|
2816
|
+
type: $e.props.searchTerm.type,
|
|
2817
|
+
default: void 0
|
|
2818
|
+
},
|
|
2819
|
+
/**
|
|
2820
|
+
* Allows the grid to be rendered inside a confined space.
|
|
2821
|
+
* This makes the data-grid expand to fill the height of its parent container, with the grid body becoming scrollable.
|
|
2822
|
+
*/
|
|
2823
|
+
fitContent: { type: Boolean, default: !1 },
|
|
2824
|
+
/**
|
|
2825
|
+
* A customisable method to retrieve a unique identifier for a data item in the array of data supplied.
|
|
2826
|
+
* This is used selecting and performance reasons and must exist in each data item.
|
|
2827
|
+
*/
|
|
2828
|
+
getDataItemId: {
|
|
2829
|
+
type: Function,
|
|
2830
|
+
default: (s) => s.id
|
|
2831
|
+
},
|
|
2832
|
+
/**
|
|
2833
|
+
* Row actions propery that generates which button to show in row actions area
|
|
2834
|
+
*/
|
|
2835
|
+
rowActions: {
|
|
2836
|
+
type: [Function, Array],
|
|
2837
|
+
default: void 0
|
|
2838
|
+
},
|
|
2839
|
+
/**
|
|
2840
|
+
* If resize is enabled
|
|
2841
|
+
*/
|
|
2842
|
+
hasResizableColumns: {
|
|
2843
|
+
type: Boolean,
|
|
2844
|
+
default: !0
|
|
2845
|
+
},
|
|
2846
|
+
/**
|
|
2847
|
+
* Enables the nested content slot functionality.
|
|
2848
|
+
*/
|
|
2849
|
+
hasNestedContent: {
|
|
2850
|
+
type: Boolean,
|
|
2851
|
+
default: !1
|
|
2852
|
+
},
|
|
2853
|
+
/**
|
|
2854
|
+
* Enables the nested content slot functionality.
|
|
2855
|
+
*/
|
|
2856
|
+
hasNestedRows: {
|
|
2857
|
+
type: Boolean,
|
|
2858
|
+
default: !1
|
|
2859
|
+
},
|
|
2860
|
+
/**
|
|
2861
|
+
* Highlighted items
|
|
2862
|
+
*/
|
|
2863
|
+
highlightedRows: {
|
|
2864
|
+
type: Array,
|
|
2865
|
+
default: () => []
|
|
2866
|
+
},
|
|
2867
|
+
/**
|
|
2868
|
+
* A customisable method to determine if a row is not selectable.
|
|
2869
|
+
* The default is that every row is selectable.
|
|
2870
|
+
*/
|
|
2871
|
+
isDataItemDisabled: {
|
|
2872
|
+
type: Function,
|
|
2873
|
+
default: () => !1
|
|
2874
|
+
},
|
|
2875
|
+
/**
|
|
2876
|
+
* The type of `Lazy Load`.
|
|
2877
|
+
* Type "automatic" will enable infinite scrolling
|
|
2878
|
+
* Type "button" will enable lazy loading with "Show more" button
|
|
2879
|
+
* @values automatic, button, none
|
|
2880
|
+
*/
|
|
2881
|
+
lazyLoadType: {
|
|
2882
|
+
type: String,
|
|
2883
|
+
default: "none",
|
|
2884
|
+
validator: (s) => ["automatic", "button", "none"].includes(s)
|
|
2885
|
+
},
|
|
2886
|
+
/**
|
|
2887
|
+
* If the loading indicator should be shown.
|
|
2888
|
+
*/
|
|
2889
|
+
loading: {
|
|
2890
|
+
type: Boolean,
|
|
2891
|
+
default: !1
|
|
2892
|
+
},
|
|
2893
|
+
/**
|
|
2894
|
+
* Enables / Disables the table's surrounding border.
|
|
2895
|
+
*/
|
|
2896
|
+
outline: {
|
|
2897
|
+
type: Boolean,
|
|
2898
|
+
default: !1
|
|
2899
|
+
},
|
|
2900
|
+
/**
|
|
2901
|
+
* Renders the data grid with no top spacing, to render inside containers that already have spacing
|
|
2902
|
+
*/
|
|
2903
|
+
noSpacingTop: {
|
|
2904
|
+
type: Boolean,
|
|
2905
|
+
default: !1
|
|
2906
|
+
},
|
|
2907
|
+
/**
|
|
2908
|
+
* Pagination props that will be passed down to inner pagination component
|
|
2909
|
+
*/
|
|
2910
|
+
pagination: {
|
|
2911
|
+
type: Object,
|
|
2912
|
+
default: void 0
|
|
2913
|
+
},
|
|
2914
|
+
/**
|
|
2915
|
+
* Adds an extra option when selecting all items that allows user to select items in other pages too.
|
|
2916
|
+
* Needs pagination.totalCount to be set.
|
|
2917
|
+
*/
|
|
2918
|
+
selectableAcrossPages: {
|
|
2919
|
+
type: Boolean,
|
|
2920
|
+
default: !1
|
|
2921
|
+
},
|
|
2922
|
+
/**
|
|
2923
|
+
* Renders a font numeric style with slashed zeros instead of normal ones.
|
|
2924
|
+
*/
|
|
2925
|
+
slashedZero: { type: Boolean, default: !1 },
|
|
2926
|
+
/**
|
|
2927
|
+
* Sticks the horizontal scrollbar to the bottom of the screen if the data-grid is larger than the screen height.
|
|
2928
|
+
*/
|
|
2929
|
+
stickyHorizontalScrollbar: {
|
|
2930
|
+
type: Boolean,
|
|
2931
|
+
default: !1
|
|
2932
|
+
},
|
|
2933
|
+
/**
|
|
2934
|
+
* Make pagination stick to the bottom of the page when the data-grid is bigger than the screen.
|
|
2935
|
+
* Because styles have to be applied to pagination container element, this has to be a data-grid prop (rather than a pagination prop).
|
|
2936
|
+
*/
|
|
2937
|
+
stickyPagination: {
|
|
2938
|
+
type: Boolean,
|
|
2939
|
+
default: !1
|
|
2940
|
+
},
|
|
2941
|
+
/**
|
|
2942
|
+
* Make data-grid filters stick to the top of the page along with the data-grid headers.
|
|
2943
|
+
* Defaults to true.
|
|
2944
|
+
*/
|
|
2945
|
+
stickyFilters: {
|
|
2946
|
+
type: Boolean,
|
|
2947
|
+
default: !0
|
|
2948
|
+
},
|
|
2949
|
+
/**
|
|
2950
|
+
* Enables / Disables rows to be selected via a checkbox. On select the "select" event will be emitted.
|
|
2951
|
+
*/
|
|
2952
|
+
selectable: {
|
|
2953
|
+
type: Boolean,
|
|
2954
|
+
default: !1
|
|
2955
|
+
},
|
|
2956
|
+
/**
|
|
2957
|
+
* Selected items
|
|
2958
|
+
*/
|
|
2959
|
+
selection: {
|
|
2960
|
+
type: Array,
|
|
2961
|
+
default: () => []
|
|
2962
|
+
},
|
|
2963
|
+
/**
|
|
2964
|
+
* Enables / Disables the nested-content slot
|
|
2965
|
+
*/
|
|
2966
|
+
shouldShowNestedContent: {
|
|
2967
|
+
type: Function,
|
|
2968
|
+
default: (s) => !0
|
|
2969
|
+
},
|
|
2970
|
+
/**
|
|
2971
|
+
* Returns the nested rows for a given BentoDatagridDataItem.
|
|
2972
|
+
*/
|
|
2973
|
+
shouldShowNestedRows: {
|
|
2974
|
+
type: Function,
|
|
2975
|
+
default: (s) => !0
|
|
2976
|
+
},
|
|
2977
|
+
/**
|
|
2978
|
+
* Sortby handles proper rendering of sort icon in header. Sorting currently is only supported server side.
|
|
2979
|
+
* It does make sure the currently sorted column has a more visible sort icon, and the sort icon points in the right direction.
|
|
2980
|
+
*/
|
|
2981
|
+
sortBy: {
|
|
2982
|
+
type: Array,
|
|
2983
|
+
// NOTE: is an array to allow multi-sorting in the future
|
|
2984
|
+
default: () => []
|
|
2985
|
+
},
|
|
2986
|
+
/**
|
|
2987
|
+
* Title of the data grid to be rendered as tab title when a data grid is passed in a tab layout.
|
|
2988
|
+
*/
|
|
2989
|
+
tabTitle: {
|
|
2990
|
+
type: String,
|
|
2991
|
+
default: null
|
|
2992
|
+
},
|
|
2993
|
+
/**
|
|
2994
|
+
* Truncates all data grid column headers
|
|
2995
|
+
*/
|
|
2996
|
+
truncateColumnHeaders: {
|
|
2997
|
+
type: Boolean,
|
|
2998
|
+
default: !1
|
|
2999
|
+
},
|
|
3000
|
+
/**
|
|
3001
|
+
* Toggles the alternating background color of rows.
|
|
3002
|
+
*/
|
|
3003
|
+
zebraRows: {
|
|
3004
|
+
type: Boolean,
|
|
3005
|
+
default: !1
|
|
3006
|
+
}
|
|
3007
|
+
},
|
|
3008
|
+
emits: [
|
|
3009
|
+
N.COLUMNS,
|
|
3010
|
+
N.COLUMN_RESIZE,
|
|
3011
|
+
N.ITEMS_PAGE,
|
|
3012
|
+
N.FILTER_SEARCH_INPUT,
|
|
3013
|
+
N.FILTER_SEARCH_CLEAR,
|
|
3014
|
+
N.NAVIGATE,
|
|
3015
|
+
N.NESTED_CONTENT_TOGGLED,
|
|
3016
|
+
N.UPDATE_COLUMNS,
|
|
3017
|
+
N.UPDATE_CONDENSED,
|
|
3018
|
+
N.UPDATE_FILTER_VALUES,
|
|
3019
|
+
N.UPDATE_FILTER_VALUES_OBJECT,
|
|
3020
|
+
N.UPDATE_FILTERS,
|
|
3021
|
+
N.UPDATE_FILTER_SEARCH_TERM,
|
|
3022
|
+
N.UPDATE_SHOW_MORE,
|
|
3023
|
+
N.UPDATE_PAGINATION,
|
|
3024
|
+
N.UPDATE_SELECTION,
|
|
3025
|
+
N.UPDATE_SORT_BY,
|
|
3026
|
+
N.ROW_CLICK,
|
|
3027
|
+
N.SELECT,
|
|
3028
|
+
N.SELECT_ALL_ACROSS_PAGES,
|
|
3029
|
+
N.SELECT_ALL_CURRENT_RESULTS,
|
|
3030
|
+
N.DESELECT_ALL_CURRENT_RESULTS,
|
|
3031
|
+
N.SORT,
|
|
3032
|
+
N.CELL_FOCUS
|
|
3033
|
+
],
|
|
3034
|
+
setup(s, { expose: t, emit: n }) {
|
|
3035
|
+
const e = s, o = Ge(), l = Ve(o), a = p(null), i = p(), _ = p({}), g = p(Ie("data-grid")), w = p(null), m = p(null), E = p(), S = p(null), u = p(null), y = p(null), {
|
|
3036
|
+
allowColumnDragAndDrop: L,
|
|
3037
|
+
columns: F,
|
|
3038
|
+
columnPanel: b,
|
|
3039
|
+
data: d,
|
|
3040
|
+
lazyLoadType: A,
|
|
3041
|
+
loading: O,
|
|
3042
|
+
hasNestedContent: D,
|
|
3043
|
+
hasNestedRows: r,
|
|
3044
|
+
selectable: f,
|
|
3045
|
+
selection: R,
|
|
3046
|
+
selectableAcrossPages: T,
|
|
3047
|
+
stickyPagination: B,
|
|
3048
|
+
outline: U,
|
|
3049
|
+
pagination: k,
|
|
3050
|
+
zebraRows: J
|
|
3051
|
+
} = We(e), K = p(-1), { t: ee } = he(), G = v(() => ne.value.filter((I) => I.frozen).length), $ = 550, C = p(), { width: P } = es(C), W = v(() => P.value <= $);
|
|
3052
|
+
Oe(Ae, W);
|
|
3053
|
+
const z = p(!1);
|
|
3054
|
+
be(() => {
|
|
3055
|
+
typeof window < "u" && (z.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
3056
|
+
}), Oe(De, z);
|
|
3057
|
+
const Ce = me(
|
|
3058
|
+
Qn,
|
|
3059
|
+
() => ({
|
|
3060
|
+
additionalContentSlotRef: p(null),
|
|
3061
|
+
isDataGridTemplate: !1,
|
|
3062
|
+
stickyAditionalContent: p(!1),
|
|
3063
|
+
stickyTabs: p(!1),
|
|
3064
|
+
tabsRef: p(null)
|
|
3065
|
+
})
|
|
3066
|
+
), { additionalContentSlotRef: ue, isDataGridTemplate: ie, stickyTabs: c, tabsRef: M, stickyAdditionalContent: X } = Ce(), {
|
|
3067
|
+
columnDefs: ne,
|
|
3068
|
+
onColumnWidthOverride: pe,
|
|
3069
|
+
gridRowWidthStyle: h,
|
|
3070
|
+
isMeasuringColumnWidths: x,
|
|
3071
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: H,
|
|
3072
|
+
columns: te,
|
|
3073
|
+
totalWidthOfAllColumns: re,
|
|
3074
|
+
rowActionsMaxWidth: fe
|
|
3075
|
+
} = Ts(F, d, a, _, w, {
|
|
3076
|
+
hasColumnPanel: b,
|
|
3077
|
+
hasSelectableColumn: f,
|
|
3078
|
+
hasSelectableAcrossPages: T,
|
|
3079
|
+
hasNestedContent: D,
|
|
3080
|
+
hasNestedRows: r,
|
|
3081
|
+
allowColumnDragAndDrop: L,
|
|
3082
|
+
isDataGridTemplate: ie
|
|
3083
|
+
}), Z = (I, ...V) => {
|
|
3084
|
+
(I === N.COLUMNS || I === N.UPDATE_COLUMNS) && ([te.value] = V), n(I, ...V);
|
|
3085
|
+
}, xe = _t(
|
|
3086
|
+
M,
|
|
3087
|
+
c,
|
|
3088
|
+
X,
|
|
3089
|
+
ue
|
|
3090
|
+
), Vt = v(
|
|
3091
|
+
() => e.stickyFilters ? `${xe.value}px` : null
|
|
3092
|
+
), Ke = _t(m, Pe(e, "stickyFilters")), Zt = v(
|
|
3093
|
+
() => `${Ke.value + xe.value}px`
|
|
3094
|
+
), {
|
|
3095
|
+
sortedColumns: Fe,
|
|
3096
|
+
columnSets: Be,
|
|
3097
|
+
isOnlyOneVisibleColumn: jt,
|
|
3098
|
+
internalZebraRows: Ye,
|
|
3099
|
+
onConfigSettingsColumnsUpdate: qt,
|
|
3100
|
+
onConfigSettingsColumnUpdate: Kt,
|
|
3101
|
+
onConfigSettingsCondensedUpdate: Yt,
|
|
3102
|
+
onConfigSettingsZebraRowsUpdate: Jt
|
|
3103
|
+
} = Bs(ne, J, Z), { hoveredOverColumn: Xt, hoveredOverColumnState: Qt } = Ms(
|
|
3104
|
+
Be,
|
|
3105
|
+
f,
|
|
3106
|
+
U,
|
|
3107
|
+
H
|
|
3108
|
+
), { draggingColumns: en, draggingEventsForColumns: tn, draggingEventsForRowCell: nn, onMoveColumnByOffset: sn } = Fs(Fe, L, Z), Je = v(
|
|
3109
|
+
() => {
|
|
3110
|
+
var I;
|
|
3111
|
+
return ((I = e.data) == null ? void 0 : I.length) > 0 && !!e.selectableAcrossPages && !!e.pagination && e.pagination.totalCount > 0;
|
|
3112
|
+
}
|
|
3113
|
+
), {
|
|
3114
|
+
onAllRowSelect: on,
|
|
3115
|
+
onRowSelect: ln,
|
|
3116
|
+
onNestedRowSelect: an,
|
|
3117
|
+
onDeselectAll: rn,
|
|
3118
|
+
allItemsSelectedState: cn,
|
|
3119
|
+
selectedItems: Xe,
|
|
3120
|
+
selectionState: dn
|
|
3121
|
+
} = Os(
|
|
3122
|
+
R,
|
|
3123
|
+
Z,
|
|
3124
|
+
d,
|
|
3125
|
+
e.getDataItemId,
|
|
3126
|
+
e.isDataItemDisabled,
|
|
3127
|
+
Je,
|
|
3128
|
+
k
|
|
3129
|
+
), un = v(() => {
|
|
3130
|
+
var I, V, Y, ge;
|
|
3131
|
+
return {
|
|
3132
|
+
filtered: ((I = E.value) == null ? void 0 : I.isClearAllVisible) || ((V = E.value) == null ? void 0 : V.isResetAllVisible) || !!e.filterSearchTerm,
|
|
3133
|
+
allRowsVisible: ((Y = k.value) == null ? void 0 : Y.size) >= ((ge = k.value) == null ? void 0 : ge.totalCount)
|
|
3134
|
+
};
|
|
3135
|
+
}), { navigationInput: fn } = Is(
|
|
3136
|
+
w,
|
|
3137
|
+
_,
|
|
3138
|
+
Fe,
|
|
3139
|
+
f,
|
|
3140
|
+
v(() => e.rowActions !== void 0),
|
|
3141
|
+
b
|
|
3142
|
+
), { isLazyLoad: Te, isInfiniteScroll: gn, verticalScrollPosition: Qe, emitLazyLoadEvent: _n } = xs(
|
|
3143
|
+
A,
|
|
3144
|
+
u,
|
|
3145
|
+
a,
|
|
3146
|
+
O,
|
|
3147
|
+
Z
|
|
3148
|
+
), {
|
|
3149
|
+
updateScrollPosition: vn,
|
|
3150
|
+
updateScrollPositionOnFrozenColumnsNavigation: mn,
|
|
3151
|
+
syncVirtualScrollerWithBody: Cn,
|
|
3152
|
+
hasLeftOverflow: Ue,
|
|
3153
|
+
hasRightOverflow: et,
|
|
3154
|
+
horizontalScrollbarConditionalStyles: hn
|
|
3155
|
+
} = Us(
|
|
3156
|
+
a,
|
|
3157
|
+
i,
|
|
3158
|
+
Qe,
|
|
3159
|
+
y,
|
|
3160
|
+
S,
|
|
3161
|
+
re,
|
|
3162
|
+
{
|
|
3163
|
+
isLazyLoad: Te,
|
|
3164
|
+
pagination: k,
|
|
3165
|
+
stickyPagination: B,
|
|
3166
|
+
isDataGridTemplate: ie
|
|
3167
|
+
}
|
|
3168
|
+
), tt = () => {
|
|
3169
|
+
E.value.isClearAllVisible ? E.value.clearAllFilters() : E.value.isResetAllVisible && E.value.resetAllFilters();
|
|
3170
|
+
}, pn = v(() => {
|
|
3171
|
+
var I, V;
|
|
3172
|
+
return {
|
|
3173
|
+
...e.emptyState,
|
|
3174
|
+
variant: ((I = e.emptyState) == null ? void 0 : I.variant) === "embedded" || ((V = e.emptyState) == null ? void 0 : V.variant) === "basic" ? e.emptyState.variant : "basic"
|
|
3175
|
+
};
|
|
3176
|
+
}), wn = v(() => ({
|
|
3177
|
+
[`b-data-grid--${ve.OUTLINE}`]: e.outline,
|
|
3178
|
+
[`b-data-grid--${ve.SCROLL}`]: e.fitContent || Te.value,
|
|
3179
|
+
[`b-data-grid--${ve.STICKY_FILTERS}`]: e.filters && e.stickyFilters,
|
|
3180
|
+
[`b-data-grid--${ve.OVERFLOW_SHADOW_LEFT}`]: Ue.value && !G.value,
|
|
3181
|
+
[`b-data-grid--${ve.OVERFLOW_SHADOW_RIGHT}`]: et.value && e.rowActions === void 0,
|
|
3182
|
+
[`b-data-grid--${ve.NO_SPACING_TOP}`]: e.noSpacingTop,
|
|
3183
|
+
[`b-data-grid--${ve.FIT_CONTENT}`]: e.fitContent,
|
|
3184
|
+
[`b-data-grid--${ve.ZEBRA_ROWS}`]: Ye.value,
|
|
3185
|
+
"b-data-grid--lazy-load": Te.value
|
|
3186
|
+
})), Sn = v(() => ({
|
|
3187
|
+
"b-data-grid__body--sticky-horizontal-scrollbar": e.stickyHorizontalScrollbar
|
|
3188
|
+
})), bn = v(() => Be.value.findIndex((I) => I.columnSet.length)), Rn = v(() => !((e.selectable || e.hasNestedContent || e.hasNestedRows) && G.value === 1) || Ue.value), En = v(() => ({
|
|
3189
|
+
"b-data-grid__filters--sticky": !!e.stickyFilters || ie
|
|
3190
|
+
})), Ln = v(() => {
|
|
3191
|
+
var I, V, Y, ge, Ee, Le;
|
|
3192
|
+
return {
|
|
3193
|
+
"b-data-grid__pagination--padding-left-unset": ((Y = (V = (I = e.columns) == null ? void 0 : I[0]) == null ? void 0 : V.padding) == null ? void 0 : Y.left) === !1,
|
|
3194
|
+
"b-data-grid__pagination--padding-right-unset": ((Le = (Ee = (ge = e.columns) == null ? void 0 : ge[e.columns.length - 1]) == null ? void 0 : Ee.padding) == null ? void 0 : Le.right) === !1,
|
|
3195
|
+
"b-data-grid__pagination--sticky": !!e.stickyPagination || ie
|
|
3196
|
+
};
|
|
3197
|
+
}), yn = (I) => {
|
|
3198
|
+
const V = I;
|
|
3199
|
+
I !== null && (V != null && V.columnHeaderRefs) && Object.entries(V == null ? void 0 : V.columnHeaderRefs).forEach(([Y, ge]) => {
|
|
3200
|
+
_.value[Y] = ge;
|
|
3201
|
+
});
|
|
3202
|
+
}, An = (I, V) => {
|
|
3203
|
+
var ge, Ee, Le, lt;
|
|
3204
|
+
const Y = I;
|
|
3205
|
+
if (I !== null && Y != null && Y.gridcellRefs) {
|
|
3206
|
+
const $n = e.rowActions !== void 0 && (Y == null ? void 0 : Y.rowActionsRef);
|
|
3207
|
+
Object.entries(Y == null ? void 0 : Y.gridcellRefs).map(([Me, Pn]) => {
|
|
3208
|
+
var at;
|
|
3209
|
+
((at = w.value) == null ? void 0 : at[Me]) === void 0 && (w.value = { ...w.value, [Me]: [] }), w.value[Me][V] = Pn;
|
|
3210
|
+
}), $n && (((ge = w.value) == null ? void 0 : ge[ye]) === void 0 && (w.value = { ...w.value, [ye]: [] }), w.value[ye][V] = (Ee = Y.rowActionsRef) == null ? void 0 : Ee[0], fe.value = Math.max(
|
|
3211
|
+
fe.value,
|
|
3212
|
+
((lt = (Le = Y.rowActionsRef) == null ? void 0 : Le[0]) == null ? void 0 : lt.offsetWidth) ?? 0
|
|
3213
|
+
));
|
|
3214
|
+
}
|
|
3215
|
+
}, Tn = (I, V) => {
|
|
3216
|
+
e.allowRowClicks && Z(N.ROW_CLICK, I, V);
|
|
3217
|
+
}, On = (I) => {
|
|
3218
|
+
K.value = I;
|
|
3219
|
+
}, Nn = v(() => e.hasNestedContent || e.hasNestedRows ? "treegrid" : "grid"), nt = v(() => {
|
|
3220
|
+
var I;
|
|
3221
|
+
return ((I = Xe.value) == null ? void 0 : I.length) ?? 0;
|
|
3222
|
+
}), In = v(() => e.bulkActions && nt.value > 0), Dn = (I) => Z(N.COLUMN_RESIZE, I), xn = (I) => {
|
|
3223
|
+
Z(N.UPDATE_SORT_BY, I), Z(N.SORT, I);
|
|
3224
|
+
}, Fn = (I, V) => {
|
|
3225
|
+
Z(N.NAVIGATE, I), Z(N.UPDATE_PAGINATION, {
|
|
3226
|
+
...e.pagination,
|
|
3227
|
+
size: V,
|
|
3228
|
+
page: I
|
|
3229
|
+
});
|
|
3230
|
+
}, Bn = (I) => {
|
|
3231
|
+
Z(N.ITEMS_PAGE, I);
|
|
3232
|
+
}, Un = () => {
|
|
3233
|
+
Z(N.FILTER_SEARCH_CLEAR);
|
|
3234
|
+
}, Mn = (I) => {
|
|
3235
|
+
Z(N.UPDATE_FILTER_SEARCH_TERM, I), Z(N.FILTER_SEARCH_INPUT, I);
|
|
3236
|
+
}, st = v(() => F.value.some((I) => I.mandatory));
|
|
3237
|
+
st.value || Dt(
|
|
3238
|
+
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
3239
|
+
);
|
|
3240
|
+
const ot = me(Xn, () => null);
|
|
3241
|
+
return ot(e.tabTitle), Oe(kt, Pe(e, "slashedZero")), t({ onEmptyStateClearResetButtonClick: tt }), { __sfc: !0, props: e, slots: o, hasSlot: l, body: a, columnsRef: i, columnHeaderRefs: _, dataGridUid: g, gridcellRefs: w, filtersRef: m, filterBarRef: E, paginationContainerRef: S, verticalScrollPositionRef: u, virtualHorizontalScrollbarRef: y, allowColumnDragAndDrop: L, columns: F, columnPanel: b, data: d, lazyLoadType: A, loading: O, hasNestedContent: D, hasNestedRows: r, selectable: f, selection: R, selectableAcrossPages: T, stickyPagination: B, outline: U, pagination: k, zebraRows: J, hoveredRowIndex: K, t: ee, frozenColumnsLength: G, MOBILE_BREAKPOINT: $, dataGridRef: C, width: P, isSmallContainer: W, isTouchDevice: z, registerDatagridInDataGridTemplate: Ce, additionalContentSlotRef: ue, isDataGridTemplate: ie, stickyTabs: c, tabsRef: M, stickyAdditionalContent: X, columnDefs: ne, onColumnWidthOverride: pe, gridRowWidthStyle: h, isMeasuringColumnWidths: x, isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: H, localColumnsState: te, totalWidthOfAllColumns: re, rowActionsMaxWidth: fe, definedEmitsFunction: n, emit: Z, stickyFiltersHeight: xe, computedStickyFiltersTopPosition: Vt, columnHeadersHeight: Ke, computedColumnHeadersTopPosition: Zt, sortedColumns: Fe, columnSets: Be, isOnlyOneVisibleColumn: jt, internalZebraRows: Ye, onConfigSettingsColumnsUpdate: qt, onConfigSettingsColumnUpdate: Kt, onConfigSettingsCondensedUpdate: Yt, onConfigSettingsZebraRowsUpdate: Jt, hoveredOverColumn: Xt, hoveredOverColumnState: Qt, draggingColumns: en, draggingEventsForColumns: tn, draggingEventsForRowCell: nn, onMoveColumnByOffset: sn, selectableAcrossPagesComputed: Je, onAllRowSelect: on, onRowSelect: ln, onNestedRowSelect: an, onDeselectAll: rn, allItemsSelectedState: cn, selectedItems: Xe, selectionState: dn, visibleRowsState: un, navigationInput: fn, isLazyLoad: Te, isInfiniteScroll: gn, verticalScrollPosition: Qe, emitLazyLoadEvent: _n, updateScrollPosition: vn, updateScrollPositionOnFrozenColumnsNavigation: mn, syncVirtualScrollerWithBody: Cn, hasLeftOverflow: Ue, hasRightOverflow: et, horizontalScrollbarConditionalStyles: hn, onEmptyStateClearResetButtonClick: tt, limitedEmptyStateProps: pn, conditionalGridClasses: wn, conditionalGridBodyClasses: Sn, computedColumnPanelAlignment: bn, showFrozenColumnsSeparator: Rn, conditionalFilterClasses: En, conditionalPaginationClasses: Ln, registerColumnHeaderRefs: yn, registerRowCellRefs: An, onRowClick: Tn, onCellHover: On, ariaGridRole: Nn, itemsSelectedCounter: nt, showActionBar: In, onColumnResized: Dn, onSort: xn, onPaginationNavigate: Fn, onItemsPerPageChange: Bn, onSearchTermCleared: Un, onSearchTermInput: Mn, hasMandatoryColumn: st, setTitle: ot, BentoActionBar: Kn, BentoPagination: Yn, BentoLoadingIndicator: He, BentoTypography: Re, BentoDataGridConfigSettings: $o, DataGridColumns: So, DataGridLazyLoad: Ho, DataGridRow: Ht, handleClipboard: $s, BentoDatagridEvent: N, BentoFilterBar: $e, BentoEmptyState: Jn };
|
|
3242
|
+
}
|
|
3243
|
+
});
|
|
3244
|
+
var jl = function() {
|
|
3245
|
+
var o;
|
|
3246
|
+
var t = this, n = t._self._c, e = t._self._setupProxy;
|
|
3247
|
+
return n("div", { ref: "dataGridRef", staticClass: "b-data-grid", class: e.conditionalGridClasses, attrs: { "data-testid": "data-grid", "aria-live": "polite", "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 }, attrs: { "aria-controls": e.dataGridUid, "aria-label": e.t("filterBar"), role: "region" } }, [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__wrapper", style: { top: e.computedColumnHeadersTopPosition }, attrs: { id: e.dataGridUid, role: e.ariaGridRole, "aria-rowcount": e.data.length, "aria-colcount": e.columns.length, "aria-label": t.emptyState ? e.t("noResults") : null } }, [n("div", { staticClass: "b-data-grid__column-headers", style: { top: e.computedColumnHeadersTopPosition } }, [n("div", { ref: "columnsRef", staticClass: "b-data-grid__columns-row", attrs: { role: "rowgroup" }, on: { scroll: e.updateScrollPosition, keydown: e.navigationInput } }, [e.columnPanel ? n("div", { attrs: { role: "row" } }, [n(e.BentoDataGridConfigSettings, { staticClass: "b-data-grid__config-settings", attrs: { role: "gridcell", columns: e.localColumnsState, condensed: t.condensed, "zebra-rows": e.internalZebraRows }, on: { "update:condensed": e.onConfigSettingsCondensedUpdate, "update:zebra-rows": e.onConfigSettingsZebraRowsUpdate, "update:columns": e.onConfigSettingsColumnsUpdate } })], 1) : t._e(), n("div", { staticClass: "b-data-grid__columns", style: e.gridRowWidthStyle, attrs: { role: "row" } }, [t._l(e.columnSets, function({ columnSet: l, id: a, isFrozenColumns: i }, _) {
|
|
3248
|
+
var g;
|
|
3249
|
+
return [l != null && l.length ? n(e.DataGridColumns, t._g({ key: `data-grid-columns-${a}`, ref: (w) => e.registerColumnHeaderRefs(w), refInFor: !0, attrs: { columns: l, "has-resizable-columns": t.hasResizableColumns, "sort-by": t.sortBy, "all-items-selected-state": e.allItemsSelectedState, "is-frozen-columns": i, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "dragging-columns": e.draggingColumns, "has-draggable-columns": e.allowColumnDragAndDrop, "has-column-panel": e.columnPanel, "has-left-overflow": e.hasLeftOverflow, "has-first-column-panel-right-aligned": _ === e.computedColumnPanelAlignment, "hovered-over-column-state": e.hoveredOverColumnState, "is-measuring-column-widths": e.isMeasuringColumnWidths, "is-only-one-visible-column": e.isOnlyOneVisibleColumn, selectable: ((g = e.data) == null ? void 0 : g.length) > 0 && e.selectable, "selectable-across-pages": e.selectableAcrossPagesComputed, "selected-items": e.selectedItems, "visible-rows-state": e.visibleRowsState, "selection-state": e.selectionState, "truncate-column-headers": t.truncateColumnHeaders, "row-actions-maximum-width": e.rowActionsMaxWidth }, on: { "column-hover": function(w) {
|
|
3250
|
+
e.hoveredOverColumn = w;
|
|
3251
|
+
}, "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(w) {
|
|
3252
|
+
return e.emit(e.BentoDatagridEvent.SELECT_ALL_ACROSS_PAGES);
|
|
3253
|
+
}, "select-all-current-results": function(w) {
|
|
3254
|
+
return e.emit(e.BentoDatagridEvent.SELECT_ALL_CURRENT_RESULTS);
|
|
3255
|
+
}, "deselect-all-current-results": function(w) {
|
|
3256
|
+
return e.emit(e.BentoDatagridEvent.DESELECT_ALL_CURRENT_RESULTS);
|
|
3257
|
+
}, "deselect-all": e.onDeselectAll, sort: e.onSort }, scopedSlots: t._u([t._l(e.slots, function(w, m) {
|
|
3258
|
+
return { key: m, fn: function(E) {
|
|
3259
|
+
return [t._t(m, null, null, E)];
|
|
3260
|
+
} };
|
|
3261
|
+
})], null, !0) }, e.draggingEventsForColumns)) : t._e()];
|
|
3262
|
+
})], 2)])]), 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) : n("div", { attrs: { role: "rowgroup" }, on: { keydown: e.navigationInput } }, [((o = e.data) == null ? void 0 : o.length) === 0 && t.emptyState ? [n("div", { attrs: { role: "row", tabindex: "-1" } }, [n("div", { attrs: { role: "gridcell", "aria-colspan": e.columns.length, tabindex: "-1" } }, [n(e.BentoEmptyState, t._b({ staticClass: "b-data-grid__empty-state" }, "bento-empty-state", e.limitedEmptyStateProps, !1))], 1)])] : t._l(e.data, function(l, a) {
|
|
3263
|
+
var i, _;
|
|
3264
|
+
return n(e.DataGridRow, { key: a, ref: (g) => e.registerRowCellRefs(g, 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 === ((i = e.data) == null ? void 0 : i.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": (_ = e.data) == null ? void 0 : _.length, "show-frozen-columns-separator": e.showFrozenColumnsSeparator, "should-show-nested-content": t.shouldShowNestedContent, "should-show-nested-rows": t.shouldShowNestedRows, selectable: e.selectable, "selected-items": e.selectedItems }, on: { "cell-hovered": e.onCellHover, "cell-focus": function(g) {
|
|
3265
|
+
return e.emit(e.BentoDatagridEvent.CELL_FOCUS, g);
|
|
3266
|
+
}, "nested-content-toggled": function(g) {
|
|
3267
|
+
return e.emit(e.BentoDatagridEvent.NESTED_CONTENT_TOGGLED, g);
|
|
3268
|
+
}, "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(g, w) {
|
|
3269
|
+
return { key: w, fn: function(m) {
|
|
3270
|
+
return [t._t(w, null, null, m)];
|
|
3271
|
+
} };
|
|
3272
|
+
})], null, !0) });
|
|
3273
|
+
})], 2)])]), 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": t.$t("pagination"), "aria-controls": e.dataGridUid }, 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: e.onDeselectAll } }) : t._e()], 1);
|
|
3274
|
+
}, ql = [], Kl = /* @__PURE__ */ q(
|
|
3275
|
+
Zl,
|
|
3276
|
+
jl,
|
|
3277
|
+
ql,
|
|
3278
|
+
!1,
|
|
3279
|
+
null,
|
|
3280
|
+
"65d9bfe1"
|
|
3281
|
+
);
|
|
3282
|
+
const Ga = Kl.exports;
|
|
3283
|
+
export {
|
|
3284
|
+
ve as B,
|
|
3285
|
+
za as a,
|
|
3286
|
+
ka as b,
|
|
3287
|
+
Wa as c,
|
|
3288
|
+
Ga as d,
|
|
3289
|
+
Se as e,
|
|
3290
|
+
N as f,
|
|
3291
|
+
Ne as g,
|
|
3292
|
+
ze as h
|
|
3293
|
+
};
|
|
3294
|
+
//# sourceMappingURL=data-grid.rAVOFiTv.js.map
|