@adyen/bento-vue3 1.86.0 → 1.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/@types/index.d.ts +12337 -12402
- package/dist/action-bar.js +1 -1
- package/dist/ai-tag.js +1 -1
- package/dist/anchor-scroller.js +1 -1
- package/dist/assets/accordion-item.css +1 -1
- package/dist/assets/action-bar.css +1 -1
- package/dist/assets/anchor-scroller.css +1 -1
- package/dist/assets/base-modal.css +1 -1
- package/dist/assets/button-actions.css +1 -1
- package/dist/assets/card.css +1 -1
- package/dist/assets/checkbox-group.css +1 -1
- package/dist/assets/checkbox.css +1 -1
- package/dist/assets/controls-group.css +1 -1
- package/dist/assets/data-grid.css +1 -1
- package/dist/assets/date-picker.css +1 -1
- package/dist/assets/date-range-picker.css +1 -1
- package/dist/assets/dialog-page.css +1 -1
- package/dist/assets/dropdown-default-textbox.css +1 -1
- package/dist/assets/dropdown.css +1 -1
- package/dist/assets/error-message.css +1 -1
- package/dist/assets/file-uploader.css +1 -1
- package/dist/assets/filter-bar.css +1 -1
- package/dist/assets/form-layout-title.css +1 -1
- package/dist/assets/input-field-phone-number.css +1 -1
- package/dist/assets/input-field.css +1 -1
- package/dist/assets/inspector.css +1 -1
- package/dist/assets/modal-fullscreen.css +1 -1
- package/dist/assets/pagination.css +1 -1
- package/dist/assets/radio-group.css +1 -1
- package/dist/assets/rich-text-editor.css +1 -1
- package/dist/assets/selection-card-group.css +1 -1
- package/dist/assets/sidepanel.css +1 -1
- package/dist/assets/textarea.css +1 -1
- package/dist/button.js +1 -1
- package/dist/card.js +1 -1
- package/dist/checkbox.js +2 -2
- package/dist/chunks/{action-bar.g7rM3wUc.js → action-bar.Ho_fXeXK.js} +4 -4
- package/dist/chunks/{action-bar.g7rM3wUc.js.map → action-bar.Ho_fXeXK.js.map} +1 -1
- package/dist/chunks/{ai-tag.UlRkq54l.js → ai-tag.DVCW-_vD.js} +2 -2
- package/dist/chunks/{ai-tag.UlRkq54l.js.map → ai-tag.DVCW-_vD.js.map} +1 -1
- package/dist/chunks/anchor-scroller.BctgW0se.js +214 -0
- package/dist/chunks/anchor-scroller.BctgW0se.js.map +1 -0
- package/dist/chunks/{base-modal.D5HrjwL1.js → base-modal.gZAtk-xP.js} +17 -17
- package/dist/chunks/{base-modal.D5HrjwL1.js.map → base-modal.gZAtk-xP.js.map} +1 -1
- package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js → button-actions-with-menu.Tba1ME79.js} +3 -3
- package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js.map → button-actions-with-menu.Tba1ME79.js.map} +1 -1
- package/dist/chunks/{button-actions.BH-J7dux.js → button-actions.BYBpjNqy.js} +182 -180
- package/dist/chunks/button-actions.BYBpjNqy.js.map +1 -0
- package/dist/chunks/{calendar.DzeJoNc2.js → calendar.vM3abC8y.js} +401 -410
- package/dist/chunks/calendar.vM3abC8y.js.map +1 -0
- package/dist/chunks/{card.DcXXdxWL.js → card.Cw63i7Ul.js} +2 -2
- package/dist/chunks/{card.DcXXdxWL.js.map → card.Cw63i7Ul.js.map} +1 -1
- package/dist/chunks/{checkbox-group.Bh_aqKoA.js → checkbox-group.ODQy-ICn.js} +42 -41
- package/dist/chunks/checkbox-group.ODQy-ICn.js.map +1 -0
- package/dist/chunks/{checkbox.7kpOXm-b.js → checkbox.C3Ewfygy.js} +79 -81
- package/dist/chunks/checkbox.C3Ewfygy.js.map +1 -0
- package/dist/chunks/{code-snippet.UIqVTv4U.js → code-snippet.Dl1MEedz.js} +4 -4
- package/dist/chunks/{code-snippet.UIqVTv4U.js.map → code-snippet.Dl1MEedz.js.map} +1 -1
- package/dist/chunks/constructNow.CIc7d13I.js +8 -0
- package/dist/chunks/{constructNow.B8T1ljs6.js.map → constructNow.CIc7d13I.js.map} +1 -1
- package/dist/chunks/{controls-group.Dip3WAKV.js → controls-group.Bu5lNTyH.js} +22 -28
- package/dist/chunks/controls-group.Bu5lNTyH.js.map +1 -0
- package/dist/chunks/{copy.ByyQlckP.js → copy.C_BCNHYQ.js} +3 -3
- package/dist/chunks/{copy.ByyQlckP.js.map → copy.C_BCNHYQ.js.map} +1 -1
- package/dist/chunks/{dashboard-section.CIHtXoeW.js → dashboard-section.CgoLquLP.js} +3 -3
- package/dist/chunks/{dashboard-section.CIHtXoeW.js.map → dashboard-section.CgoLquLP.js.map} +1 -1
- package/dist/chunks/{dashed-underline.CLwPU-C2.js → dashed-underline.wbRHATeE.js} +3 -3
- package/dist/chunks/{dashed-underline.CLwPU-C2.js.map → dashed-underline.wbRHATeE.js.map} +1 -1
- package/dist/chunks/{data-grid-template.BTpSfkQt.js → data-grid-template.D40V1cmi.js} +3 -3
- package/dist/chunks/{data-grid-template.BTpSfkQt.js.map → data-grid-template.D40V1cmi.js.map} +1 -1
- package/dist/chunks/{data-grid.CXDdiHz8.js → data-grid.KudN-TcY.js} +870 -867
- package/dist/chunks/{data-grid.CXDdiHz8.js.map → data-grid.KudN-TcY.js.map} +1 -1
- package/dist/chunks/date-picker.D5B_SECc.js +251 -0
- package/dist/chunks/date-picker.D5B_SECc.js.map +1 -0
- package/dist/chunks/date-range-picker.CDDw_xl_.js +1104 -0
- package/dist/chunks/date-range-picker.CDDw_xl_.js.map +1 -0
- package/dist/chunks/{de.DvtL0g75.js → de.BJvo6njq.js} +2 -2
- package/dist/chunks/{de.DvtL0g75.js.map → de.BJvo6njq.js.map} +1 -1
- package/dist/chunks/{dialog-page.B3ptLXXP.js → dialog-page.C1KUI51V.js} +2 -2
- package/dist/chunks/{dialog-page.B3ptLXXP.js.map → dialog-page.C1KUI51V.js.map} +1 -1
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js → differenceInMonths.CIYECBxK.js} +7 -7
- package/dist/chunks/{differenceInMonths.BR4Z2HIa.js.map → differenceInMonths.CIYECBxK.js.map} +1 -1
- package/dist/chunks/{dropdown-default-textbox.B-_dTUVX.js → dropdown-default-textbox.CskseEho.js} +62 -60
- package/dist/chunks/dropdown-default-textbox.CskseEho.js.map +1 -0
- package/dist/chunks/{dropdown-tag.DDNOZhEG.js → dropdown-tag.CwSzUwa7.js} +3 -3
- package/dist/chunks/{dropdown-tag.DDNOZhEG.js.map → dropdown-tag.CwSzUwa7.js.map} +1 -1
- package/dist/chunks/{dropdown.CU6nfq3V.js → dropdown.Bdw2B-Cw.js} +9 -9
- package/dist/chunks/{dropdown.CU6nfq3V.js.map → dropdown.Bdw2B-Cw.js.map} +1 -1
- package/dist/chunks/{en-GB.DCGuCmAv.js → en-GB.C3-QUpva.js} +2 -2
- package/dist/chunks/{en-GB.DCGuCmAv.js.map → en-GB.C3-QUpva.js.map} +1 -1
- package/dist/chunks/{en-US.BZii9jNW.js → en-US.YeSsZuOc.js} +150 -100
- package/dist/chunks/en-US.YeSsZuOc.js.map +1 -0
- package/dist/chunks/error-message.oGiefI2-.js +155 -0
- package/dist/chunks/error-message.oGiefI2-.js.map +1 -0
- package/dist/chunks/{es.bz0mzkMq.js → es.DyUjjSL8.js} +2 -2
- package/dist/chunks/{es.bz0mzkMq.js.map → es.DyUjjSL8.js.map} +1 -1
- package/dist/chunks/{file-uploader.Q2ufNRTY.js → file-uploader.BnmNI1O7.js} +573 -548
- package/dist/chunks/file-uploader.BnmNI1O7.js.map +1 -0
- package/dist/chunks/{filter-bar.BVj9YVv-.js → filter-bar.xwfVuZw4.js} +1973 -2062
- package/dist/chunks/filter-bar.xwfVuZw4.js.map +1 -0
- package/dist/chunks/{focus-trap.CBvh2H_m.js → focus-trap.BxCwzLqN.js} +2 -2
- package/dist/chunks/{focus-trap.CBvh2H_m.js.map → focus-trap.BxCwzLqN.js.map} +1 -1
- package/dist/chunks/{footer-actions.DLzMOB7j.js → footer-actions.Ck6UztD8.js} +2 -2
- package/dist/chunks/{footer-actions.DLzMOB7j.js.map → footer-actions.Ck6UztD8.js.map} +1 -1
- package/dist/chunks/form-layout-title.CQfeGyVw.js +232 -0
- package/dist/chunks/{form-layout-title.DYmTc6M7.js.map → form-layout-title.CQfeGyVw.js.map} +1 -1
- package/dist/chunks/{match.CMBZxEs9.js → fr.JD_4GwS8.js} +98 -61
- package/dist/chunks/fr.JD_4GwS8.js.map +1 -0
- package/dist/chunks/{header-meta.Bw8ZGwJW.js → header-meta.lGt3HsyH.js} +108 -114
- package/dist/chunks/header-meta.lGt3HsyH.js.map +1 -0
- package/dist/chunks/{header-with-views.CJDoE4hw.js → header-with-views.BT6lbAby.js} +9 -9
- package/dist/chunks/{header-with-views.CJDoE4hw.js.map → header-with-views.BT6lbAby.js.map} +1 -1
- package/dist/chunks/{header.BeH8KH_l.js → header.oXqwf2xN.js} +3 -3
- package/dist/chunks/{header.BeH8KH_l.js.map → header.oXqwf2xN.js.map} +1 -1
- package/dist/chunks/{index.CbxHJr39.js → index.Dppy4qHk.js} +204 -197
- package/dist/chunks/{index.CbxHJr39.js.map → index.Dppy4qHk.js.map} +1 -1
- package/dist/chunks/{info-icon.BLtyJvY4.js → info-icon.DyPOv7Pi.js} +3 -3
- package/dist/chunks/{info-icon.BLtyJvY4.js.map → info-icon.DyPOv7Pi.js.map} +1 -1
- package/dist/chunks/{input-field-password.KeKQPIZv.js → input-field-password.CKhqGBVB.js} +6 -6
- package/dist/chunks/{input-field-password.KeKQPIZv.js.map → input-field-password.CKhqGBVB.js.map} +1 -1
- package/dist/chunks/{input-field-phone-number.eaU9p15A.js → input-field-phone-number.Cailj_71.js} +49 -49
- package/dist/chunks/{input-field-phone-number.eaU9p15A.js.map → input-field-phone-number.Cailj_71.js.map} +1 -1
- package/dist/chunks/{input-field.CNdqlGw6.js → input-field.DqXVoKpy.js} +15 -14
- package/dist/chunks/input-field.DqXVoKpy.js.map +1 -0
- package/dist/chunks/{inspector.Bnf0g7QE.js → inspector.BjLhY3bE.js} +3 -3
- package/dist/chunks/{inspector.Bnf0g7QE.js.map → inspector.BjLhY3bE.js.map} +1 -1
- package/dist/chunks/isSameWeek.CzBCmu7d.js +14 -0
- package/dist/chunks/{isSameWeek.DjeUtLwI.js.map → isSameWeek.CzBCmu7d.js.map} +1 -1
- package/dist/chunks/{it.DIafuXtH.js → it.BlUnV-yA.js} +3 -3
- package/dist/chunks/{it.DIafuXtH.js.map → it.BlUnV-yA.js.map} +1 -1
- package/dist/chunks/{ja.Cm9tJMi2.js → ja.nUwDmVf2.js} +8 -8
- package/dist/chunks/{ja.Cm9tJMi2.js.map → ja.nUwDmVf2.js.map} +1 -1
- package/dist/chunks/{layout-row.Bz-mRqAq.js → layout-row.Da8nkm9z.js} +2 -2
- package/dist/chunks/{layout-row.Bz-mRqAq.js.map → layout-row.Da8nkm9z.js.map} +1 -1
- package/dist/chunks/{listbox-option-tag.C3ihNg6_.js → listbox-option-tag.CoBUYwFG.js} +2 -2
- package/dist/chunks/{listbox-option-tag.C3ihNg6_.js.map → listbox-option-tag.CoBUYwFG.js.map} +1 -1
- package/dist/chunks/modal-fullscreen.9ZDR_S29.js +301 -0
- package/dist/chunks/modal-fullscreen.9ZDR_S29.js.map +1 -0
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js} +4 -4
- package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map} +1 -1
- package/dist/chunks/pagination.CqCd5JCe.js +488 -0
- package/dist/chunks/pagination.CqCd5JCe.js.map +1 -0
- package/dist/chunks/popover.types.DhALnOLQ.js +6 -0
- package/dist/chunks/{popover.types.C_Z2JeVK.js.map → popover.types.DhALnOLQ.js.map} +1 -1
- package/dist/chunks/{popper-container.BefZxTzP.js → popper-container.DAK7c9uS.js} +2 -2
- package/dist/chunks/{popper-container.BefZxTzP.js.map → popper-container.DAK7c9uS.js.map} +1 -1
- package/dist/chunks/{promo-banner.BLie64oS.js → promo-banner.aNwH6uQx.js} +2 -2
- package/dist/chunks/{promo-banner.BLie64oS.js.map → promo-banner.aNwH6uQx.js.map} +1 -1
- package/dist/chunks/{pt-BR.CiGdfP45.js → pt-BR.BCU2Hj36.js} +2 -2
- package/dist/chunks/{pt-BR.CiGdfP45.js.map → pt-BR.BCU2Hj36.js.map} +1 -1
- package/dist/chunks/{radio-group.C6nQRQDB.js → radio-group.v8mDVZ-o.js} +24 -23
- package/dist/chunks/{radio-group.C6nQRQDB.js.map → radio-group.v8mDVZ-o.js.map} +1 -1
- package/dist/chunks/{rich-text-editor.C39NKgl0.js → rich-text-editor.DH1d5Zcp.js} +7 -6
- package/dist/chunks/{rich-text-editor.C39NKgl0.js.map → rich-text-editor.DH1d5Zcp.js.map} +1 -1
- package/dist/chunks/{search-bar.CbTrg2Sk.js → search-bar.DGpLNVng.js} +3 -3
- package/dist/chunks/{search-bar.CbTrg2Sk.js.map → search-bar.DGpLNVng.js.map} +1 -1
- package/dist/chunks/{secondary-nav.DTOZQewf.js → secondary-nav.l_60nnXA.js} +3 -3
- package/dist/chunks/{secondary-nav.DTOZQewf.js.map → secondary-nav.l_60nnXA.js.map} +1 -1
- package/dist/chunks/{segmented-control.D9rHBysM.js → segmented-control.Aqquod8g.js} +2 -2
- package/dist/chunks/{segmented-control.D9rHBysM.js.map → segmented-control.Aqquod8g.js.map} +1 -1
- package/dist/chunks/{selection-card-group.KEsG0D5V.js → selection-card-group.KBl4fVSH.js} +107 -106
- package/dist/chunks/selection-card-group.KBl4fVSH.js.map +1 -0
- package/dist/chunks/{sidepanel.DJCagqzl.js → sidepanel.DaXPcTHm.js} +5 -5
- package/dist/chunks/{sidepanel.DJCagqzl.js.map → sidepanel.DaXPcTHm.js.map} +1 -1
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js → startOfWeek.CXhhX-R7.js} +2 -2
- package/dist/chunks/{startOfWeek.D8Yh4c0G.js.map → startOfWeek.CXhhX-R7.js.map} +1 -1
- package/dist/chunks/{structured-list-item.f1tmHSEN.js → structured-list-item.DAIaUMCY.js} +4 -4
- package/dist/chunks/{structured-list-item.f1tmHSEN.js.map → structured-list-item.DAIaUMCY.js.map} +1 -1
- package/dist/chunks/{summary-grid.types.COcV-sOB.js → summary-grid.types.BZcZS_dW.js} +5 -5
- package/dist/chunks/{summary-grid.types.COcV-sOB.js.map → summary-grid.types.BZcZS_dW.js.map} +1 -1
- package/dist/chunks/{tag.Dr7MKe9q.js → tag.CqWg6C3H.js} +2 -2
- package/dist/chunks/{tag.Dr7MKe9q.js.map → tag.CqWg6C3H.js.map} +1 -1
- package/dist/chunks/{textarea.CtgbUCjH.js → textarea.CvI2InIB.js} +18 -17
- package/dist/chunks/textarea.CvI2InIB.js.map +1 -0
- package/dist/chunks/{timeline-item.D9nmCe6u.js → timeline-item.BooD99hL.js} +93 -95
- package/dist/chunks/timeline-item.BooD99hL.js.map +1 -0
- package/dist/chunks/{tooltip.DYpJZ-99.js → tooltip.Lwtlhv3u.js} +2 -2
- package/dist/chunks/{tooltip.DYpJZ-99.js.map → tooltip.Lwtlhv3u.js.map} +1 -1
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js} +4 -4
- package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map} +1 -1
- package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js → use-cached-selected-values.C4_X3vVj.js} +2 -2
- package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js.map → use-cached-selected-values.C4_X3vVj.js.map} +1 -1
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +1732 -0
- package/dist/chunks/use-date-input-formatter.dtbK-CEy.js.map +1 -0
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js → zh-CN.ChYkuQAR.js} +3 -3
- package/dist/chunks/{zh-CN.Bw_6j9Cd.js.map → zh-CN.ChYkuQAR.js.map} +1 -1
- package/dist/code-snippet.js +1 -1
- package/dist/dashboard-template.js +1 -1
- package/dist/dashed-underline.js +1 -1
- package/dist/data-grid-template.js +1 -1
- package/dist/data-grid.js +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-picker.js +2 -2
- package/dist/draggable-handle.js +1 -1
- package/dist/dropdown.js +4 -4
- package/dist/file-uploader.js +1 -1
- package/dist/filter-bar.js +1 -1
- package/dist/focus-trap.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/header-with-views.js +1 -1
- package/dist/header.js +1 -1
- package/dist/index.js +50 -50
- package/dist/index.js.map +1 -1
- package/dist/info-icon.js +1 -1
- package/dist/input-field-password.js +1 -1
- package/dist/input-field-phone-number.js +1 -1
- package/dist/input-field.js +1 -1
- package/dist/inspector.js +1 -1
- package/dist/internal.js +11 -11
- package/dist/layout.js +1 -1
- package/dist/menu.js +1 -1
- package/dist/modal-fullscreen.js +1 -1
- package/dist/modal.js +2 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +2 -2
- package/dist/popper-container.js +1 -1
- package/dist/promo-banner.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/search-bar.js +2 -2
- package/dist/secondary-nav.js +1 -1
- package/dist/segmented-control.js +1 -1
- package/dist/selection-card.js +1 -1
- package/dist/sidepanel.js +1 -1
- package/dist/structured-list.js +1 -1
- package/dist/summary-grid.js +1 -1
- package/dist/tag.js +1 -1
- package/dist/textarea.js +1 -1
- package/dist/timeline.js +1 -1
- package/dist/tutorial.js +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +11 -16
- package/dist/chunks/anchor-scroller.CKIQu3NK.js +0 -215
- package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +0 -1
- package/dist/chunks/button-actions.BH-J7dux.js.map +0 -1
- package/dist/chunks/calendar.DzeJoNc2.js.map +0 -1
- package/dist/chunks/checkbox-group.Bh_aqKoA.js.map +0 -1
- package/dist/chunks/checkbox.7kpOXm-b.js.map +0 -1
- package/dist/chunks/constructNow.B8T1ljs6.js +0 -8
- package/dist/chunks/controls-group.Dip3WAKV.js.map +0 -1
- package/dist/chunks/date-input.XSJuuCHe.js +0 -20
- package/dist/chunks/date-input.XSJuuCHe.js.map +0 -1
- package/dist/chunks/date-picker.CvTSZhMI.js +0 -250
- package/dist/chunks/date-picker.CvTSZhMI.js.map +0 -1
- package/dist/chunks/date-range-picker.BPCt7cwj.js +0 -1100
- package/dist/chunks/date-range-picker.BPCt7cwj.js.map +0 -1
- package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +0 -1
- package/dist/chunks/en-US.BZii9jNW.js.map +0 -1
- package/dist/chunks/error-message.BYA2_fPV.js +0 -158
- package/dist/chunks/error-message.BYA2_fPV.js.map +0 -1
- package/dist/chunks/file-uploader.Q2ufNRTY.js.map +0 -1
- package/dist/chunks/filter-bar.BVj9YVv-.js.map +0 -1
- package/dist/chunks/form-layout-title.DYmTc6M7.js +0 -214
- package/dist/chunks/fr-CA.B1aPU8fp.js +0 -48
- package/dist/chunks/fr-CA.B1aPU8fp.js.map +0 -1
- package/dist/chunks/fr.Dj7wEToe.js +0 -47
- package/dist/chunks/fr.Dj7wEToe.js.map +0 -1
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js +0 -51
- package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map +0 -1
- package/dist/chunks/header-meta.Bw8ZGwJW.js.map +0 -1
- package/dist/chunks/input-field.CNdqlGw6.js.map +0 -1
- package/dist/chunks/isSameWeek.DjeUtLwI.js +0 -14
- package/dist/chunks/ko.Ceaof6EP.js +0 -348
- package/dist/chunks/ko.Ceaof6EP.js.map +0 -1
- package/dist/chunks/match.CMBZxEs9.js.map +0 -1
- package/dist/chunks/modal-fullscreen.B3AGUJgl.js +0 -289
- package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +0 -1
- package/dist/chunks/nl.B6vCf2B9.js +0 -327
- package/dist/chunks/nl.B6vCf2B9.js.map +0 -1
- package/dist/chunks/pagination.lu9nx8j8.js +0 -461
- package/dist/chunks/pagination.lu9nx8j8.js.map +0 -1
- package/dist/chunks/popover.types.C_Z2JeVK.js +0 -6
- package/dist/chunks/selection-card-group.KEsG0D5V.js.map +0 -1
- package/dist/chunks/sv.f8EfZjMZ.js +0 -377
- package/dist/chunks/sv.f8EfZjMZ.js.map +0 -1
- package/dist/chunks/textarea.CtgbUCjH.js.map +0 -1
- package/dist/chunks/timeline-item.D9nmCe6u.js.map +0 -1
|
@@ -1,50 +1,50 @@
|
|
|
1
|
-
import { ref as E, onMounted as
|
|
2
|
-
import { C as
|
|
3
|
-
import { W as
|
|
1
|
+
import { ref as E, onMounted as et, nextTick as Ce, watch as ye, onUnmounted as fl, reactive as Et, toRefs as yt, computed as C, watchEffect as Cn, onBeforeUpdate as _n, openBlock as d, createElementBlock as p, mergeProps as se, toDisplayString as J, createCommentVNode as W, createElementVNode as L, defineComponent as Ne, inject as Pe, normalizeClass as de, Fragment as _e, renderList as Ae, unref as o, toHandlers as gt, createBlock as H, withCtx as G, createVNode as Y, renderSlot as ze, withModifiers as bn, normalizeStyle as Fe, resolveComponent as Te, createTextVNode as fe, withDirectives as nt, vShow as wn, toRef as bt, resolveDirective as Sn, Transition as gl, createSlots as Qe, resolveDynamicComponent as Xe, useSlots as Rt, provide as dt, withKeys as zt, normalizeProps as pn, guardReactiveProps as En } from "vue";
|
|
2
|
+
import { C as yn } from "./checkmark-circle-fill.DugX5fbG.js";
|
|
3
|
+
import { W as Rn } from "./warning-filled.BzyK_mMj.js";
|
|
4
4
|
/* empty css */
|
|
5
|
-
import { _ as
|
|
6
|
-
import { C as
|
|
7
|
-
import { N as
|
|
8
|
-
import { E as
|
|
9
|
-
import { b as
|
|
10
|
-
import { B as
|
|
11
|
-
import { B as
|
|
5
|
+
import { _ as re } from "./_plugin-vue_export-helper.CHgC5LLL.js";
|
|
6
|
+
import { C as vl } from "./cross.CCHdi6v3.js";
|
|
7
|
+
import { N as Pt } from "./minus-small.CnYLTuSv.js";
|
|
8
|
+
import { E as Oe, b as wt, T as Ln, B as An } from "./tooltip.Lwtlhv3u.js";
|
|
9
|
+
import { b as Tn } from "./popper-container.DAK7c9uS.js";
|
|
10
|
+
import { B as On } from "./dashed-underline.wbRHATeE.js";
|
|
11
|
+
import { B as qe, p as ml } from "./typography.B3J6_tYk.js";
|
|
12
12
|
import { u as We } from "./index.B875RXHM.js";
|
|
13
|
-
import { B as
|
|
14
|
-
import { B as
|
|
15
|
-
import { B as
|
|
13
|
+
import { B as Nn } from "./tag.CqWg6C3H.js";
|
|
14
|
+
import { B as In } from "./action-bar.Ho_fXeXK.js";
|
|
15
|
+
import { B as $n } from "./pagination.CqCd5JCe.js";
|
|
16
16
|
import { B as ct } from "./loading-indicator.BPol9I84.js";
|
|
17
|
-
import { u as
|
|
17
|
+
import { u as Lt } from "./use-has-slot.B7eQSabc.js";
|
|
18
18
|
import { g as ft } from "./generate-uid.NJ8tVoha.js";
|
|
19
|
-
import { a as
|
|
19
|
+
import { a as Dn } from "./filter-bar.xwfVuZw4.js";
|
|
20
20
|
import { B as kn } from "./empty-state.DqdPzU-g.js";
|
|
21
21
|
import { E as Un } from "./tabs.keys.B4qGhjp2.js";
|
|
22
22
|
import { D as Mn } from "./data-grid-template.keys.VezYtHtM.js";
|
|
23
|
-
import { b as Fn } from "./index.
|
|
24
|
-
import { o as
|
|
25
|
-
import { f as
|
|
26
|
-
import { B as
|
|
27
|
-
import { B as
|
|
28
|
-
import { B as Bn } from "./search-bar.
|
|
23
|
+
import { b as Fn } from "./index.Dppy4qHk.js";
|
|
24
|
+
import { o as At } from "./resize.Bqks3WUm.js";
|
|
25
|
+
import { f as St, c as Tt, h as zn, a as Bt, b as Wt, O as Vt, D as Pn } from "./button-actions.BYBpjNqy.js";
|
|
26
|
+
import { B as hl } from "./button.C6t9_lzm.js";
|
|
27
|
+
import { B as Cl } from "./toggle.BupEBkIG.js";
|
|
28
|
+
import { B as Bn } from "./search-bar.DGpLNVng.js";
|
|
29
29
|
import { B as Wn } from "./directive.rXUeDb8p.js";
|
|
30
|
-
import { u as Vn } from "./dropdown.
|
|
30
|
+
import { u as Vn } from "./dropdown.Bdw2B-Cw.js";
|
|
31
31
|
import { S as Hn } from "./search.ClLmZAgC.js";
|
|
32
|
-
import { B as
|
|
33
|
-
import { B as Gn } from "./info-icon.
|
|
34
|
-
import { D as xn } from "./use-cached-selected-values.
|
|
35
|
-
import { B as
|
|
32
|
+
import { B as _l } from "./checkbox.C3Ewfygy.js";
|
|
33
|
+
import { B as Gn } from "./info-icon.DyPOv7Pi.js";
|
|
34
|
+
import { D as xn } from "./use-cached-selected-values.C4_X3vVj.js";
|
|
35
|
+
import { B as Ht } from "./popover.types.DhALnOLQ.js";
|
|
36
36
|
import { A as Zn } from "./arrow-left.C6UiqO-c.js";
|
|
37
37
|
import { A as jn } from "./arrow-right.fSdLV_ho.js";
|
|
38
38
|
import { H as qn, S as Kn } from "./show.BreRPkgL.js";
|
|
39
|
-
import { l as
|
|
40
|
-
import { b as
|
|
41
|
-
import { E as
|
|
42
|
-
import { C as
|
|
39
|
+
import { l as Gt } from "./events.BQOQSSb7.js";
|
|
40
|
+
import { b as bl } from "./focus-trap.BxCwzLqN.js";
|
|
41
|
+
import { E as xt } from "./link.DTCn2EtX.js";
|
|
42
|
+
import { C as Zt } from "./copy.C_BCNHYQ.js";
|
|
43
43
|
import { C as Yn } from "./chevron-down.XeE-LBV_.js";
|
|
44
44
|
import { C as Jn } from "./chevron-up.Cmgl2a3x.js";
|
|
45
45
|
import { u as Xn } from "./use-expandable-content-height.GkjjbmPy.js";
|
|
46
46
|
import "../assets/data-grid.css";
|
|
47
|
-
const
|
|
47
|
+
const jt = (e) => {
|
|
48
48
|
if (!e)
|
|
49
49
|
return 0;
|
|
50
50
|
const s = window.getComputedStyle(e);
|
|
@@ -56,19 +56,19 @@ const qt = (e) => {
|
|
|
56
56
|
}
|
|
57
57
|
const u = parseFloat(s.top);
|
|
58
58
|
return !isNaN(u) && u < 0 && (i += u), i;
|
|
59
|
-
},
|
|
59
|
+
}, qt = (e, s, i = E(!1), t = null) => {
|
|
60
60
|
const u = E(0);
|
|
61
61
|
let l = null, n = null;
|
|
62
62
|
const v = () => {
|
|
63
|
-
const f = s.value ?
|
|
63
|
+
const f = s.value ? jt(e.value) : 0, _ = i.value && t ? jt(t.value) : 0;
|
|
64
64
|
u.value = f + _;
|
|
65
65
|
};
|
|
66
|
-
return
|
|
67
|
-
|
|
66
|
+
return et(() => {
|
|
67
|
+
Ce(() => {
|
|
68
68
|
const f = ye(
|
|
69
69
|
e,
|
|
70
70
|
() => {
|
|
71
|
-
e != null && e.value && (
|
|
71
|
+
e != null && e.value && (Ce(() => f()), l = At(e.value, v), n = new MutationObserver(v), n.observe(e.value, { attributes: !0, attributeFilter: ["class"] }));
|
|
72
72
|
},
|
|
73
73
|
{ immediate: !0 }
|
|
74
74
|
);
|
|
@@ -80,40 +80,40 @@ const qt = (e) => {
|
|
|
80
80
|
{ immediate: !0 }
|
|
81
81
|
);
|
|
82
82
|
});
|
|
83
|
-
}),
|
|
83
|
+
}), fl(() => {
|
|
84
84
|
l == null || l.disconnect(), n == null || n.disconnect();
|
|
85
85
|
}), u;
|
|
86
86
|
};
|
|
87
|
-
var
|
|
87
|
+
var pt = /* @__PURE__ */ ((e) => (e.WRAP = "wrap", e.ELLIPSIS = "ellipsis", e))(pt || {}), ae = /* @__PURE__ */ ((e) => (e.COLUMN_RESIZE = "column-resize", e.COLUMN_RESIZING = "column-resizing", e.SELECT_ALL_ROWS = "select-all-rows", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL = "deselect-all", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.COLUMN_MOVE = "column-move", e.COLUMN_UPDATE = "column-update", e.COLUMN_MENU_OPEN = "column-menu-open", e.COLUMN_MENU_CLOSE = "column-menu-close", e.COLUMN_HOVER = "column-hover", e.COLUMN_DRAG_START = "column-dragstart", e.COLUMN_DRAG_ENTER = "column-dragenter", e.COLUMN_DRAG_END = "column-dragend", e.COLUMN_DROP = "column-drop", e))(ae || {}), Me = /* @__PURE__ */ ((e) => (e.OUTLINE = "outline", e.SCROLL = "scroll", e.STICKY_FILTERS = "sticky-filters", e.OVERFLOW_SHADOW_LEFT = "overflow-shadow-left", e.OVERFLOW_SHADOW_RIGHT = "overflow-shadow-right", e.NO_SPACING_TOP = "no-spacing-top", e.FIT_CONTENT = "fit-content", e.ZEBRA_ROWS = "zebra-rows", e))(Me || {}), He = /* @__PURE__ */ ((e) => (e.ASCENDING = "asc", e.DESCENDING = "desc", e))(He || {}), z = /* @__PURE__ */ ((e) => (e.CELL_FOCUS = "cell-focus", e.COLUMNS = "columns", e.COLUMN_RESIZE = "column-resize", e.ITEMS_PAGE = "items-page", e.NAVIGATE = "navigate", e.NESTED_CONTENT_TOGGLED = "nested-content-toggled", e.FILTER_SEARCH_INPUT = "filter-search-input", e.FILTER_SEARCH_CLEAR = "filter-search-clear", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_FILTERS = "update:filters", e.UPDATE_FILTER_VALUES = "update:filter-values", e.UPDATE_FILTER_VALUES_OBJECT = "update:filter-values-object", e.UPDATE_FILTER_SEARCH_TERM = "update:filter-search-term", e.UPDATE_PAGINATION = "update:pagination", e.UPDATE_SELECTION = "update:selection", e.UPDATE_SHOW_MORE = "update:show-more", e.UPDATE_SORT_BY = "update:sort-by", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e.ROW_CLICK = "row-click", e.SELECT = "select", e.SELECT_ALL_ACROSS_PAGES = "select-all-across-pages", e.SELECT_ALL_CURRENT_RESULTS = "select-all-current-results", e.DESELECT_ALL_CURRENT_RESULTS = "deselect-all-current-results", e.SORT = "sort", e))(z || {}), ut = /* @__PURE__ */ ((e) => (e.ASCENDING = "ascending", e.DESCENDING = "descending", e.NONE = "none", e))(ut || {});
|
|
88
88
|
const Qn = (e, s) => {
|
|
89
|
-
const i = E(null), t = E(!1), u = E(void 0), l = e.value.reduce((O, k) => (O[k.field] = null, O), {}), n =
|
|
89
|
+
const i = E(null), t = E(!1), u = E(void 0), l = e.value.reduce((O, k) => (O[k.field] = null, O), {}), n = Et(l), v = yt(n);
|
|
90
90
|
let f = 0, _ = "";
|
|
91
91
|
const b = C(
|
|
92
|
-
() => Object.fromEntries(e.value.map(({ field: O, width: k, minWidth:
|
|
92
|
+
() => Object.fromEntries(e.value.map(({ field: O, width: k, minWidth: y }) => [O, { width: k, minWidth: y }]))
|
|
93
93
|
);
|
|
94
|
-
|
|
94
|
+
Cn(() => u.value = b.value);
|
|
95
95
|
let N = null, D = null;
|
|
96
96
|
const S = (O) => {
|
|
97
|
-
const k = O.clientX - f,
|
|
98
|
-
u.value[
|
|
97
|
+
const k = O.clientX - f, y = _, M = u.value[y].width + k;
|
|
98
|
+
u.value[y].width = M > b.value[y].minWidth ? M : b.value[y].minWidth, s(ae.COLUMN_RESIZING, u.value), f = O.clientX;
|
|
99
99
|
}, c = () => {
|
|
100
|
-
t.value = !1, N == null || N(), D == null || D(), _ && s(
|
|
100
|
+
t.value = !1, N == null || N(), D == null || D(), _ && s(ae.COLUMN_RESIZE, {
|
|
101
101
|
field: _,
|
|
102
102
|
width: u.value[_].width
|
|
103
103
|
}), N = null, D = null, _ = "", f = null;
|
|
104
|
-
}, A = (O, k,
|
|
105
|
-
if (
|
|
106
|
-
if (t.value = !0,
|
|
104
|
+
}, A = (O, k, y) => {
|
|
105
|
+
if (y.preventDefault(), O) {
|
|
106
|
+
if (t.value = !0, y.buttons !== 1) {
|
|
107
107
|
c();
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
_ = k, f =
|
|
110
|
+
_ = k, f = y.clientX, N = Gt(window, "mousemove", S), D = Gt(window, "mouseup", c);
|
|
111
111
|
}
|
|
112
112
|
};
|
|
113
113
|
return ye(
|
|
114
114
|
() => t.value,
|
|
115
115
|
(O, k) => {
|
|
116
|
-
!O && k && (s(
|
|
116
|
+
!O && k && (s(ae.COLUMN_HOVER, i.value), i.value = null);
|
|
117
117
|
}
|
|
118
118
|
), {
|
|
119
119
|
resizeData: u,
|
|
@@ -122,7 +122,7 @@ const Qn = (e, s) => {
|
|
|
122
122
|
isResizing: t,
|
|
123
123
|
columnHoverEventToEmitAfterResizing: i
|
|
124
124
|
};
|
|
125
|
-
}, eo = 100,
|
|
125
|
+
}, eo = 100, Kt = 50, Ee = "b-actions-column", to = 42, lo = 56, no = 56, oo = 80, so = 36, ao = 1, wl = 16, io = 20, ro = (e, s, i) => {
|
|
126
126
|
const t = {}, u = [], l = (v) => {
|
|
127
127
|
const f = t[v];
|
|
128
128
|
f && f.frozen !== !0 && (t[v].frozen = !0, u.push(v));
|
|
@@ -153,9 +153,9 @@ const Qn = (e, s) => {
|
|
|
153
153
|
}), n();
|
|
154
154
|
}
|
|
155
155
|
return n(), t;
|
|
156
|
-
},
|
|
156
|
+
}, Yt = (e, s) => {
|
|
157
157
|
let i = ao;
|
|
158
|
-
return s && (i +=
|
|
158
|
+
return s && (i += wl * 2), e != null && e.offsetWidth ? e.offsetWidth + i : 0;
|
|
159
159
|
}, uo = (e) => {
|
|
160
160
|
var s, i, t, u, l;
|
|
161
161
|
return (s = e == null ? void 0 : e.hasNestedContent) != null && s.value || (i = e == null ? void 0 : e.hasNestedRows) != null && i.value ? (t = e == null ? void 0 : e.hasSelectableColumn) != null && t.value ? (u = e == null ? void 0 : e.hasSelectableAcrossPages) != null && u.value ? oo : no : so : (l = e == null ? void 0 : e.hasSelectableAcrossPages) != null && l.value ? lo : to;
|
|
@@ -165,69 +165,69 @@ const Qn = (e, s) => {
|
|
|
165
165
|
() => e.value,
|
|
166
166
|
(a, g) => {
|
|
167
167
|
var B, x;
|
|
168
|
-
const T = (a == null ? void 0 : a.map(({ field:
|
|
168
|
+
const T = (a == null ? void 0 : a.map(({ field: j }) => j).toString()) === (g == null ? void 0 : g.map(({ field: j }) => j).toString());
|
|
169
169
|
if (!((B = l == null ? void 0 : l.allowColumnDragAndDrop) != null && B.value) || !T) {
|
|
170
170
|
n.value = e.value;
|
|
171
171
|
return;
|
|
172
172
|
}
|
|
173
|
-
n.value = ((x = n.value) == null ? void 0 : x.length) === 0 ? e.value : e.value.sort((
|
|
174
|
-
const
|
|
175
|
-
return
|
|
173
|
+
n.value = ((x = n.value) == null ? void 0 : x.length) === 0 ? e.value : e.value.sort((j, le) => {
|
|
174
|
+
const be = n.value.findIndex((ue) => ue.field === j.field), ge = n.value.findIndex((ue) => ue.field === le.field);
|
|
175
|
+
return be === -1 ? 1 : ge === -1 ? -1 : be - ge;
|
|
176
176
|
});
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
const S = E();
|
|
180
180
|
let c = null;
|
|
181
181
|
const A = C(() => {
|
|
182
|
-
var
|
|
182
|
+
var be, ge, ue;
|
|
183
183
|
const a = [];
|
|
184
184
|
let g = 0, T = 0;
|
|
185
185
|
const B = {};
|
|
186
|
-
let x = n.value.filter((
|
|
187
|
-
const
|
|
188
|
-
if ((
|
|
189
|
-
const
|
|
186
|
+
let x = n.value.filter((oe) => oe.visible !== !1);
|
|
187
|
+
const j = n.value.filter((oe) => oe.visible === !1);
|
|
188
|
+
if ((be = l == null ? void 0 : l.hasSelectableColumn) != null && be.value || (ge = l == null ? void 0 : l.hasNestedContent) != null && ge.value || (ue = l == null ? void 0 : l.hasNestedRows) != null && ue.value) {
|
|
189
|
+
const oe = uo(l);
|
|
190
190
|
x = [
|
|
191
191
|
{
|
|
192
192
|
field: Ee,
|
|
193
193
|
label: "",
|
|
194
|
-
minWidth:
|
|
195
|
-
width:
|
|
194
|
+
minWidth: oe,
|
|
195
|
+
width: oe,
|
|
196
196
|
frozen: !0,
|
|
197
197
|
padding: { left: !1, right: !1 }
|
|
198
198
|
},
|
|
199
199
|
...x
|
|
200
200
|
];
|
|
201
201
|
}
|
|
202
|
-
x.forEach((
|
|
203
|
-
const
|
|
204
|
-
let
|
|
205
|
-
|
|
206
|
-
(
|
|
207
|
-
(
|
|
208
|
-
), T +=
|
|
202
|
+
x.forEach((oe) => {
|
|
203
|
+
const X = { ...oe };
|
|
204
|
+
let we;
|
|
205
|
+
X.flex && X.flex > 0 ? (g += X.flex, we = 0, a.push(X)) : we = Math.max(
|
|
206
|
+
(X == null ? void 0 : X.width) ?? eo,
|
|
207
|
+
(X == null ? void 0 : X.minWidth) ?? Kt
|
|
208
|
+
), T += we, X.width = we, X.minWidth = (X == null ? void 0 : X.minWidth) ?? Kt, B[X.field] = X;
|
|
209
209
|
}), T += D.value;
|
|
210
210
|
const le = Math.max(S.value - T, 0);
|
|
211
211
|
if (g > 0 && S.value > 0) {
|
|
212
|
-
const
|
|
213
|
-
Object.keys(
|
|
214
|
-
B[
|
|
212
|
+
const oe = ro(le, g, a);
|
|
213
|
+
Object.keys(oe).forEach((X) => {
|
|
214
|
+
B[X].width = oe[X].computedWidth;
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
|
-
return
|
|
218
|
-
const
|
|
219
|
-
B[
|
|
217
|
+
return j.forEach((oe) => {
|
|
218
|
+
const X = { ...oe };
|
|
219
|
+
B[X.field] = X;
|
|
220
220
|
}), Object.values(B);
|
|
221
221
|
}), O = E(void 0), k = (a) => {
|
|
222
222
|
O.value = { ...O.value, ...a };
|
|
223
|
-
},
|
|
224
|
-
n.value.some((a) => a == null ? void 0 : a.autoWidth) && (N.value = !0, await
|
|
225
|
-
var
|
|
226
|
-
const T =
|
|
227
|
-
(
|
|
223
|
+
}, y = async () => {
|
|
224
|
+
n.value.some((a) => a == null ? void 0 : a.autoWidth) && (N.value = !0, await Ce(), await Ce(), n == null || n.value.filter((a) => a == null ? void 0 : a.autoWidth).forEach(({ field: a, minWidth: g }) => {
|
|
225
|
+
var j, le, be, ge;
|
|
226
|
+
const T = Yt(
|
|
227
|
+
(j = _.value) == null ? void 0 : j[a],
|
|
228
228
|
(le = l == null ? void 0 : l.hasColumnPanel) == null ? void 0 : le.value
|
|
229
|
-
), B = (
|
|
230
|
-
(
|
|
229
|
+
), B = (ge = (be = b.value) == null ? void 0 : be[a]) == null ? void 0 : ge.reduce(
|
|
230
|
+
(ue, oe) => Math.max(ue, Yt(oe)),
|
|
231
231
|
0
|
|
232
232
|
), x = Math.max(T, B ?? 0);
|
|
233
233
|
(g === void 0 || x > g) && k({
|
|
@@ -238,7 +238,7 @@ const Qn = (e, s) => {
|
|
|
238
238
|
}), N.value = !1);
|
|
239
239
|
};
|
|
240
240
|
ye([() => n.value, () => v.value], async () => {
|
|
241
|
-
n.value.some((a) => a == null ? void 0 : a.autoWidth) && await
|
|
241
|
+
n.value.some((a) => a == null ? void 0 : a.autoWidth) && await y();
|
|
242
242
|
});
|
|
243
243
|
const M = C(
|
|
244
244
|
() => A.value.map((a) => {
|
|
@@ -259,26 +259,26 @@ const Qn = (e, s) => {
|
|
|
259
259
|
), m = C(() => ({
|
|
260
260
|
width: S.value > h.value ? "100%" : "fit-content"
|
|
261
261
|
}));
|
|
262
|
-
return
|
|
262
|
+
return et(() => {
|
|
263
263
|
var g;
|
|
264
264
|
const a = l != null && l.isDataGridTemplate ? io : 0;
|
|
265
|
-
|
|
265
|
+
Ce(() => {
|
|
266
266
|
f.value && (S.value = f.value.getBoundingClientRect().width - a);
|
|
267
267
|
const T = ye(
|
|
268
268
|
f,
|
|
269
269
|
() => {
|
|
270
|
-
f.value && (
|
|
270
|
+
f.value && (Ce(() => T()), c = At(f.value, ({ width: B }) => {
|
|
271
271
|
S.value = B - a;
|
|
272
272
|
}));
|
|
273
273
|
},
|
|
274
274
|
{ immediate: !0 }
|
|
275
275
|
);
|
|
276
276
|
}), (g = document == null ? void 0 : document.fonts) != null && g.ready ? document.fonts.ready.then(() => {
|
|
277
|
-
|
|
278
|
-
}) :
|
|
279
|
-
}),
|
|
277
|
+
y();
|
|
278
|
+
}) : y();
|
|
279
|
+
}), fl(() => {
|
|
280
280
|
c == null || c.disconnect();
|
|
281
|
-
}),
|
|
281
|
+
}), _n(() => {
|
|
282
282
|
var a;
|
|
283
283
|
b.value && ((a = Object.keys(b.value)) == null ? void 0 : a.length) > 0 && Object.keys(b.value).forEach((T) => {
|
|
284
284
|
b.value[T] = [];
|
|
@@ -294,7 +294,7 @@ const Qn = (e, s) => {
|
|
|
294
294
|
rowActionsMaxWidth: D
|
|
295
295
|
};
|
|
296
296
|
}, fo = (e, s, i, t, u, l, n) => {
|
|
297
|
-
const v = E(e.value ?? []), f =
|
|
297
|
+
const v = E(e.value ?? []), f = Et({
|
|
298
298
|
allItemsSelected: !1,
|
|
299
299
|
isIndeterminate: !1
|
|
300
300
|
}), _ = C(
|
|
@@ -332,45 +332,45 @@ const Qn = (e, s) => {
|
|
|
332
332
|
v.value = a, b.value ? (f.allItemsSelected = !0, f.isIndeterminate = !1) : (f.allItemsSelected = !1, f.isIndeterminate = ((g = v.value) == null ? void 0 : g.length) > 0 && ((T = i.value) == null ? void 0 : T.length) > 0 && i.value.some(
|
|
333
333
|
(B) => {
|
|
334
334
|
var x;
|
|
335
|
-
return v.value.includes(t(B)) || ((x = B == null ? void 0 : B.children) == null ? void 0 : x.some((
|
|
335
|
+
return v.value.includes(t(B)) || ((x = B == null ? void 0 : B.children) == null ? void 0 : x.some((j) => v.value.includes(t(j))));
|
|
336
336
|
}
|
|
337
337
|
));
|
|
338
338
|
}, k = (a) => {
|
|
339
|
-
|
|
339
|
+
Ce(() => {
|
|
340
340
|
var T, B;
|
|
341
341
|
f.allItemsSelected = a;
|
|
342
342
|
const g = ((B = (T = _.value) == null ? void 0 : T.filter(
|
|
343
|
-
(x) => !u(x) && ((x == null ? void 0 : x.children) === void 0 || x.children.every((
|
|
343
|
+
(x) => !u(x) && ((x == null ? void 0 : x.children) === void 0 || x.children.every((j) => !u(j)))
|
|
344
344
|
)) == null ? void 0 : B.map((x) => t(x))) ?? [];
|
|
345
345
|
a ? (v.value = [.../* @__PURE__ */ new Set([...v.value, ...g])], f.isIndeterminate = !b.value) : (v.value = v.value.filter((x) => !g.includes(x)), f.isIndeterminate = !D.value), A();
|
|
346
346
|
});
|
|
347
|
-
},
|
|
348
|
-
|
|
347
|
+
}, y = () => {
|
|
348
|
+
Ce(() => {
|
|
349
349
|
O([]), A();
|
|
350
350
|
});
|
|
351
351
|
}, M = (a, g) => {
|
|
352
|
-
|
|
352
|
+
Ce(() => {
|
|
353
353
|
var T;
|
|
354
354
|
O(((T = g == null ? void 0 : g.children) == null ? void 0 : T.length) > 0 ? h(a, g) : a), A();
|
|
355
355
|
});
|
|
356
356
|
}, h = (a, g) => {
|
|
357
357
|
var x;
|
|
358
|
-
const T = t(g), B = (x = g.children) == null ? void 0 : x.filter((
|
|
358
|
+
const T = t(g), B = (x = g.children) == null ? void 0 : x.filter((j) => !u(j)).map((j) => t(j));
|
|
359
359
|
if (a.includes(T)) {
|
|
360
|
-
const
|
|
360
|
+
const j = a;
|
|
361
361
|
return B.forEach((le) => {
|
|
362
|
-
|
|
363
|
-
}),
|
|
362
|
+
j.includes(le) || j.push(le);
|
|
363
|
+
}), j;
|
|
364
364
|
}
|
|
365
|
-
return a.filter((
|
|
365
|
+
return a.filter((j) => !B.includes(j));
|
|
366
366
|
}, F = (a, g, T) => {
|
|
367
|
-
|
|
368
|
-
var x,
|
|
367
|
+
Ce(() => {
|
|
368
|
+
var x, j;
|
|
369
369
|
const B = t(g);
|
|
370
370
|
a.includes(t(T)) ? O(
|
|
371
371
|
!a.includes(B) && ((x = g == null ? void 0 : g.children) != null && x.every((le) => a.includes(t(le)))) ? [...a, B] : a
|
|
372
372
|
) : O(
|
|
373
|
-
a.includes(B) && !((
|
|
373
|
+
a.includes(B) && !((j = g == null ? void 0 : g.children) != null && j.every((le) => a.includes(t(le)))) ? a.filter((le) => le !== B) : a
|
|
374
374
|
), A();
|
|
375
375
|
});
|
|
376
376
|
}, m = C(() => c.value ? "all" : N.value ? "page" : !v.value || v.value.length === 0 ? "none" : S.value ? "unselected-page" : "single");
|
|
@@ -395,7 +395,7 @@ const Qn = (e, s) => {
|
|
|
395
395
|
onAllRowSelect: k,
|
|
396
396
|
onRowSelect: M,
|
|
397
397
|
onNestedRowSelect: F,
|
|
398
|
-
onDeselectAll:
|
|
398
|
+
onDeselectAll: y,
|
|
399
399
|
allItemsSelectedState: f,
|
|
400
400
|
selectedItems: v,
|
|
401
401
|
selectionState: m
|
|
@@ -409,23 +409,23 @@ const Qn = (e, s) => {
|
|
|
409
409
|
return;
|
|
410
410
|
const f = [{
|
|
411
411
|
field: n,
|
|
412
|
-
direction: ((_ = e.value.find((b) => b.field === n)) == null ? void 0 : _.direction) ===
|
|
412
|
+
direction: ((_ = e.value.find((b) => b.field === n)) == null ? void 0 : _.direction) === He.ASCENDING ? He.DESCENDING : He.ASCENDING
|
|
413
413
|
}];
|
|
414
414
|
i("sort", f);
|
|
415
415
|
} });
|
|
416
|
-
var pe = ((e) => (e[e.ARROW_DOWN =
|
|
417
|
-
const
|
|
418
|
-
const n = C(() => l.value || t.value ? !0 : i.value.some((
|
|
419
|
-
let
|
|
420
|
-
return u.value && (
|
|
421
|
-
...
|
|
422
|
-
{ field:
|
|
423
|
-
]),
|
|
416
|
+
var pe = ((e) => (e[e.ARROW_DOWN = Oe.ARROW_DOWN] = "ARROW_DOWN", e[e.ARROW_UP = Oe.ARROW_UP] = "ARROW_UP", e[e.ARROW_LEFT = Oe.ARROW_LEFT] = "ARROW_LEFT", e[e.ARROW_RIGHT = Oe.ARROW_RIGHT] = "ARROW_RIGHT", e[e.PAGE_UP = Oe.PAGE_UP] = "PAGE_UP", e[e.PAGE_DOWN = Oe.PAGE_DOWN] = "PAGE_DOWN", e[e.END = Oe.END] = "END", e[e.HOME = Oe.HOME] = "HOME", e))(pe || {});
|
|
417
|
+
const lt = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
418
|
+
const n = C(() => l.value || t.value ? !0 : i.value.some((y) => y.infoIconTooltip || y.sortable)), v = C(() => {
|
|
419
|
+
let y = i.value.filter(({ visible: M }) => M !== !1);
|
|
420
|
+
return u.value && (y = [
|
|
421
|
+
...y,
|
|
422
|
+
{ field: lt, label: "" }
|
|
423
|
+
]), y;
|
|
424
424
|
}), f = C(() => v.value.length), _ = C(() => {
|
|
425
425
|
if (!e.value)
|
|
426
426
|
return [];
|
|
427
|
-
const
|
|
428
|
-
if (!
|
|
427
|
+
const y = Object.keys(e.value)[0];
|
|
428
|
+
if (!y || !e.value[y])
|
|
429
429
|
return [];
|
|
430
430
|
const M = [];
|
|
431
431
|
if (n.value)
|
|
@@ -433,48 +433,48 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
433
433
|
const m = s.value[F.field];
|
|
434
434
|
M.push(m);
|
|
435
435
|
}
|
|
436
|
-
const h = e.value[
|
|
436
|
+
const h = e.value[y].length;
|
|
437
437
|
for (let F = 0; F < h; F++)
|
|
438
438
|
for (const m of v.value) {
|
|
439
439
|
const a = e.value[m.field];
|
|
440
440
|
a != null && a[F] && M.push(a[F]);
|
|
441
441
|
}
|
|
442
442
|
return M;
|
|
443
|
-
}), b = (
|
|
444
|
-
const F = _.value.length - 1, m = f.value - 1, a = b(
|
|
443
|
+
}), b = (y) => Math.floor(y / f.value), N = (y, M, h) => {
|
|
444
|
+
const F = _.value.length - 1, m = f.value - 1, a = b(y), g = y - f.value * a;
|
|
445
445
|
return {
|
|
446
446
|
[pe.PAGE_UP]: g + (n.value ? f.value : 0),
|
|
447
447
|
[pe.PAGE_DOWN]: F - m + g,
|
|
448
448
|
[pe.END]: h ? F : f.value * a + m,
|
|
449
449
|
[pe.HOME]: h ? n.value ? f.value : 0 : f.value * a
|
|
450
450
|
}[M];
|
|
451
|
-
}, D = (
|
|
452
|
-
const h = b(
|
|
451
|
+
}, D = (y, M) => {
|
|
452
|
+
const h = b(y), m = {
|
|
453
453
|
[pe.ARROW_DOWN]: f.value,
|
|
454
454
|
[pe.ARROW_UP]: h === 0 && !n.value ? 0 : -f.value,
|
|
455
455
|
[pe.ARROW_LEFT]: -1,
|
|
456
456
|
[pe.ARROW_RIGHT]: 1
|
|
457
|
-
}[M], a =
|
|
458
|
-
return a < 0 || a >= _.value.length ?
|
|
459
|
-
}, S = (
|
|
457
|
+
}[M], a = y + m;
|
|
458
|
+
return a < 0 || a >= _.value.length ? y : a;
|
|
459
|
+
}, S = (y) => [
|
|
460
460
|
pe.PAGE_UP,
|
|
461
461
|
pe.PAGE_DOWN,
|
|
462
462
|
pe.END,
|
|
463
463
|
pe.HOME
|
|
464
|
-
].includes(
|
|
465
|
-
const F = _.value.indexOf(
|
|
464
|
+
].includes(y), c = (y, M, h) => {
|
|
465
|
+
const F = _.value.indexOf(y);
|
|
466
466
|
return S(M) ? N(F, M, h) : D(F, M);
|
|
467
|
-
}, A = (
|
|
468
|
-
if (!_.value.includes(
|
|
467
|
+
}, A = (y, M, h) => {
|
|
468
|
+
if (!_.value.includes(y))
|
|
469
469
|
return;
|
|
470
|
-
const F = c(
|
|
470
|
+
const F = c(y, M, h);
|
|
471
471
|
_.value[F].focus();
|
|
472
|
-
}, O = (
|
|
472
|
+
}, O = (y) => y in pe;
|
|
473
473
|
return {
|
|
474
474
|
isNavigationKeyCode: O,
|
|
475
475
|
focusOnNextGridcell: A,
|
|
476
|
-
navigationInput: (
|
|
477
|
-
const { ctrlKey: M, key: h, target: F } =
|
|
476
|
+
navigationInput: (y) => {
|
|
477
|
+
const { ctrlKey: M, key: h, target: F } = y, m = h;
|
|
478
478
|
let a = F;
|
|
479
479
|
a.getAttribute("role") !== "menuitem" && (_.value.includes(a) || (a = F.closest('[role="gridcell"], [role="columnheader"]')), _.value.includes(a) && O(m) && A(a, m, M));
|
|
480
480
|
}
|
|
@@ -490,12 +490,12 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
490
490
|
}
|
|
491
491
|
), { isLazyLoad: _, isInfiniteScroll: b, verticalScrollPosition: n, emitLazyLoadEvent: N };
|
|
492
492
|
}, Co = (e, s, i) => {
|
|
493
|
-
const t = E(e), u = E(s), l =
|
|
493
|
+
const t = E(e), u = E(s), l = Et({
|
|
494
494
|
dragging: null,
|
|
495
495
|
dragToLeft: null,
|
|
496
496
|
target: null
|
|
497
497
|
}), n = (S, c = 0) => {
|
|
498
|
-
const A = t.value.findIndex((
|
|
498
|
+
const A = t.value.findIndex((y) => y.field === S.field), O = A + c;
|
|
499
499
|
if (O < 0 || O > t.value.length - 1)
|
|
500
500
|
return;
|
|
501
501
|
const k = [...t.value];
|
|
@@ -512,7 +512,7 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
512
512
|
const O = t.value.findIndex((m) => {
|
|
513
513
|
var a;
|
|
514
514
|
return m.field === ((a = l.dragging) == null ? void 0 : a.field);
|
|
515
|
-
}), k = t.value.findIndex((m) => m.field === S.field),
|
|
515
|
+
}), k = t.value.findIndex((m) => m.field === S.field), y = l.dragToLeft ? k : k + 1, M = y > O ? y - 1 : y;
|
|
516
516
|
let h = [...t.value];
|
|
517
517
|
h.splice(
|
|
518
518
|
M === -1 ? 0 : M,
|
|
@@ -520,7 +520,7 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
520
520
|
h.splice(O, 1)[0]
|
|
521
521
|
);
|
|
522
522
|
const F = t.value.findIndex((m) => !(m != null && m.frozen));
|
|
523
|
-
((A = l.dragging) == null ? void 0 : A.frozen) !== S.frozen &&
|
|
523
|
+
((A = l.dragging) == null ? void 0 : A.frozen) !== S.frozen && y !== F && (h = h.map(
|
|
524
524
|
(m) => {
|
|
525
525
|
var a;
|
|
526
526
|
return ((a = l.dragging) == null ? void 0 : a.field) === m.field ? { ...m, frozen: !!(S != null && S.frozen) } : m;
|
|
@@ -531,10 +531,10 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
531
531
|
}, b = () => {
|
|
532
532
|
l.dragging = null, l.dragToLeft = null, l.target = null;
|
|
533
533
|
}, N = C(() => u.value ? {
|
|
534
|
-
[
|
|
535
|
-
[
|
|
536
|
-
[
|
|
537
|
-
[
|
|
534
|
+
[ae.COLUMN_DRAG_START]: (S, c) => v(S, c),
|
|
535
|
+
[ae.COLUMN_DRAG_ENTER]: (S, c) => f(S, c),
|
|
536
|
+
[ae.COLUMN_DROP]: (S) => _(S),
|
|
537
|
+
[ae.COLUMN_DRAG_END]: () => b()
|
|
538
538
|
} : {}), D = C(() => (S) => u.value ? {
|
|
539
539
|
dragenter: (c) => {
|
|
540
540
|
c.preventDefault(), f(S, c);
|
|
@@ -596,9 +596,9 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
596
596
|
const v = E(0), f = E(!1), _ = E(!1);
|
|
597
597
|
ye([() => v.value, () => l.value], ([c]) => {
|
|
598
598
|
e.value.scrollLeft = c, s.value.scrollLeft = c, f.value = !!c, _.value = s.value.scrollWidth - s.value.offsetWidth > c;
|
|
599
|
-
}),
|
|
599
|
+
}), et(async () => {
|
|
600
600
|
var c, A;
|
|
601
|
-
await
|
|
601
|
+
await Ce(), await Ce(), ((c = s.value) == null ? void 0 : c.offsetWidth) < ((A = s.value) == null ? void 0 : A.scrollWidth) && (_.value = !0);
|
|
602
602
|
});
|
|
603
603
|
const b = (c) => {
|
|
604
604
|
if (v.value = c.target.scrollLeft, i.value = e.value.scrollHeight - c.target.scrollTop, t != null && t.value) {
|
|
@@ -629,7 +629,7 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
629
629
|
};
|
|
630
630
|
}, wo = (e, s, i, t) => {
|
|
631
631
|
const u = E(null), l = C(() => {
|
|
632
|
-
var A, O, k,
|
|
632
|
+
var A, O, k, y;
|
|
633
633
|
if (!u.value || u.value.field === Ee)
|
|
634
634
|
return {
|
|
635
635
|
hoveredOverColumnField: "",
|
|
@@ -637,7 +637,7 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
637
637
|
noBorderLeft: !1,
|
|
638
638
|
noBorderRight: !1
|
|
639
639
|
};
|
|
640
|
-
const n = (O = (A = e.value.find((M) => M.isFrozenColumns)) == null ? void 0 : A.columnSet) == null ? void 0 : O.filter((M) => M.field !== Ee), v = e.value.find((M) => !(M != null && M.isFrozenColumns)), f = u.value.frozen && (n == null ? void 0 : n[0].field) === u.value.field, _ = !u.value.frozen && ((k = v == null ? void 0 : v.columnSet) == null ? void 0 : k[0].field) === u.value.field, b = (s.value || i.value) && f, N = (s.value || i.value) && !n && _, D = n && _, S = (n == null ? void 0 : n.length) > 0 && u.value.frozen && (n == null ? void 0 : n[n.length - 1].field) === u.value.field, c = i.value && t.value && !u.value.frozen && ((
|
|
640
|
+
const n = (O = (A = e.value.find((M) => M.isFrozenColumns)) == null ? void 0 : A.columnSet) == null ? void 0 : O.filter((M) => M.field !== Ee), v = e.value.find((M) => !(M != null && M.isFrozenColumns)), f = u.value.frozen && (n == null ? void 0 : n[0].field) === u.value.field, _ = !u.value.frozen && ((k = v == null ? void 0 : v.columnSet) == null ? void 0 : k[0].field) === u.value.field, b = (s.value || i.value) && f, N = (s.value || i.value) && !n && _, D = n && _, S = (n == null ? void 0 : n.length) > 0 && u.value.frozen && (n == null ? void 0 : n[n.length - 1].field) === u.value.field, c = i.value && t.value && !u.value.frozen && ((y = v == null ? void 0 : v.columnSet) == null ? void 0 : y[v.columnSet.length - 1].field) === u.value.field;
|
|
641
641
|
return {
|
|
642
642
|
hoveredOverColumnField: u.value.field,
|
|
643
643
|
isSeparatorOffset: c,
|
|
@@ -649,16 +649,16 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
649
649
|
hoveredOverColumn: u,
|
|
650
650
|
hoveredOverColumnState: l
|
|
651
651
|
};
|
|
652
|
-
},
|
|
653
|
-
const i =
|
|
652
|
+
}, Ot = (e) => {
|
|
653
|
+
const i = bl(e).filter((t) => t.node !== e);
|
|
654
654
|
return (i == null ? void 0 : i.length) > 0 ? (i[0].node.focus(), !0) : !1;
|
|
655
|
-
},
|
|
656
|
-
const s =
|
|
655
|
+
}, je = (e) => {
|
|
656
|
+
const s = bl(e), i = s == null ? void 0 : s.filter((t) => t.node !== e);
|
|
657
657
|
if ((i == null ? void 0 : i.length) > 0)
|
|
658
658
|
return i.forEach((t) => t.node.setAttribute("tabindex", "-1")), i;
|
|
659
|
-
},
|
|
659
|
+
}, Sl = (e) => {
|
|
660
660
|
(e == null ? void 0 : e.length) > 0 && e.forEach((s) => s == null ? void 0 : s.node.setAttribute("tabindex", "0"));
|
|
661
|
-
},
|
|
661
|
+
}, Jt = () => {
|
|
662
662
|
const e = window.getSelection().getRangeAt(0).cloneContents(), s = e.querySelectorAll('[role="row"]');
|
|
663
663
|
let i = "<table>", t = "";
|
|
664
664
|
const u = (l) => {
|
|
@@ -697,21 +697,21 @@ const et = "b-row-actions-column", vo = (e, s, i, t, u, l) => {
|
|
|
697
697
|
})
|
|
698
698
|
]);
|
|
699
699
|
};
|
|
700
|
-
let
|
|
700
|
+
let Xt = 0;
|
|
701
701
|
const So = {
|
|
702
702
|
beforeCreate() {
|
|
703
|
-
this.uuid =
|
|
703
|
+
this.uuid = Xt.toString(), Xt += 1;
|
|
704
704
|
}
|
|
705
705
|
}, po = { key: 0 }, Eo = ["clip-path"], yo = ["id"];
|
|
706
706
|
function Ro(e, s, i, t, u, l) {
|
|
707
|
-
return
|
|
707
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
708
708
|
class: "ui-assets-icons-16",
|
|
709
709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
710
710
|
width: "16",
|
|
711
711
|
height: "16",
|
|
712
712
|
fill: "none"
|
|
713
713
|
}), [
|
|
714
|
-
e.$attrs["svg-title"] ? (
|
|
714
|
+
e.$attrs["svg-title"] ? (d(), p("title", po, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
715
715
|
L("g", {
|
|
716
716
|
fill: "#001222",
|
|
717
717
|
"clip-path": "url(#uia-ui-assets/icons-16-arrow_up_down_sort__a" + e.uuid + ")"
|
|
@@ -732,22 +732,22 @@ function Ro(e, s, i, t, u, l) {
|
|
|
732
732
|
])
|
|
733
733
|
], 16);
|
|
734
734
|
}
|
|
735
|
-
const Lo = /* @__PURE__ */
|
|
736
|
-
let
|
|
735
|
+
const Lo = /* @__PURE__ */ re(So, [["render", Ro]]);
|
|
736
|
+
let Qt = 0;
|
|
737
737
|
const Ao = {
|
|
738
738
|
beforeCreate() {
|
|
739
|
-
this.uuid =
|
|
739
|
+
this.uuid = Qt.toString(), Qt += 1;
|
|
740
740
|
}
|
|
741
741
|
}, To = { key: 0 }, Oo = ["clip-path"], No = ["id"];
|
|
742
742
|
function Io(e, s, i, t, u, l) {
|
|
743
|
-
return
|
|
743
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
744
744
|
class: "ui-assets-icons-16",
|
|
745
745
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
746
|
width: "16",
|
|
747
747
|
height: "16",
|
|
748
748
|
fill: "none"
|
|
749
749
|
}), [
|
|
750
|
-
e.$attrs["svg-title"] ? (
|
|
750
|
+
e.$attrs["svg-title"] ? (d(), p("title", To, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
751
751
|
L("g", {
|
|
752
752
|
"clip-path": "url(#uia-ui-assets/icons-16-freeze__a" + e.uuid + ")"
|
|
753
753
|
}, s[0] || (s[0] = [
|
|
@@ -770,22 +770,22 @@ function Io(e, s, i, t, u, l) {
|
|
|
770
770
|
])
|
|
771
771
|
], 16);
|
|
772
772
|
}
|
|
773
|
-
const
|
|
774
|
-
let
|
|
773
|
+
const pl = /* @__PURE__ */ re(Ao, [["render", Io]]);
|
|
774
|
+
let el = 0;
|
|
775
775
|
const $o = {
|
|
776
776
|
beforeCreate() {
|
|
777
|
-
this.uuid =
|
|
777
|
+
this.uuid = el.toString(), el += 1;
|
|
778
778
|
}
|
|
779
779
|
}, Do = { key: 0 }, ko = ["clip-path"], Uo = ["id"];
|
|
780
780
|
function Mo(e, s, i, t, u, l) {
|
|
781
|
-
return
|
|
781
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
782
782
|
class: "ui-assets-icons-16",
|
|
783
783
|
xmlns: "http://www.w3.org/2000/svg",
|
|
784
784
|
width: "16",
|
|
785
785
|
height: "16",
|
|
786
786
|
fill: "none"
|
|
787
787
|
}), [
|
|
788
|
-
e.$attrs["svg-title"] ? (
|
|
788
|
+
e.$attrs["svg-title"] ? (d(), p("title", Do, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
789
789
|
L("g", {
|
|
790
790
|
fill: "#001222",
|
|
791
791
|
"clip-path": "url(#uia-ui-assets/icons-16-sort_ascending__a" + e.uuid + ")"
|
|
@@ -808,22 +808,22 @@ function Mo(e, s, i, t, u, l) {
|
|
|
808
808
|
])
|
|
809
809
|
], 16);
|
|
810
810
|
}
|
|
811
|
-
const Fo = /* @__PURE__ */
|
|
812
|
-
let
|
|
811
|
+
const Fo = /* @__PURE__ */ re($o, [["render", Mo]]);
|
|
812
|
+
let tl = 0;
|
|
813
813
|
const zo = {
|
|
814
814
|
beforeCreate() {
|
|
815
|
-
this.uuid =
|
|
815
|
+
this.uuid = tl.toString(), tl += 1;
|
|
816
816
|
}
|
|
817
817
|
}, Po = { key: 0 }, Bo = ["clip-path"], Wo = ["id"];
|
|
818
818
|
function Vo(e, s, i, t, u, l) {
|
|
819
|
-
return
|
|
819
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
820
820
|
class: "ui-assets-icons-16",
|
|
821
821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
822
822
|
width: "16",
|
|
823
823
|
height: "16",
|
|
824
824
|
fill: "none"
|
|
825
825
|
}), [
|
|
826
|
-
e.$attrs["svg-title"] ? (
|
|
826
|
+
e.$attrs["svg-title"] ? (d(), p("title", Po, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
827
827
|
L("g", {
|
|
828
828
|
fill: "#001222",
|
|
829
829
|
"clip-path": "url(#uia-ui-assets/icons-16-sort_descending__a" + e.uuid + ")"
|
|
@@ -846,29 +846,29 @@ function Vo(e, s, i, t, u, l) {
|
|
|
846
846
|
])
|
|
847
847
|
], 16);
|
|
848
848
|
}
|
|
849
|
-
const Ho = /* @__PURE__ */
|
|
850
|
-
let
|
|
849
|
+
const Ho = /* @__PURE__ */ re(zo, [["render", Vo]]);
|
|
850
|
+
let ll = 0;
|
|
851
851
|
const Go = {
|
|
852
852
|
beforeCreate() {
|
|
853
|
-
this.uuid =
|
|
853
|
+
this.uuid = ll.toString(), ll += 1;
|
|
854
854
|
}
|
|
855
855
|
}, xo = { key: 0 };
|
|
856
856
|
function Zo(e, s, i, t, u, l) {
|
|
857
|
-
return
|
|
857
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
858
858
|
class: "ui-assets-icons-16",
|
|
859
859
|
xmlns: "http://www.w3.org/2000/svg",
|
|
860
860
|
width: "16",
|
|
861
861
|
height: "16",
|
|
862
862
|
fill: "none"
|
|
863
863
|
}), [
|
|
864
|
-
e.$attrs["svg-title"] ? (
|
|
864
|
+
e.$attrs["svg-title"] ? (d(), p("title", xo, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
865
865
|
s[0] || (s[0] = L("path", {
|
|
866
866
|
fill: "#001222",
|
|
867
867
|
d: "M8 11.25L12.5 5.25H3.5L8 11.25Z"
|
|
868
868
|
}, null, -1))
|
|
869
869
|
], 16);
|
|
870
870
|
}
|
|
871
|
-
const jo = /* @__PURE__ */
|
|
871
|
+
const jo = /* @__PURE__ */ re(Go, [["render", Zo]]), El = {
|
|
872
872
|
"en-US": {
|
|
873
873
|
columnActions: "{name} column actions",
|
|
874
874
|
deselectAll: "Deselect all",
|
|
@@ -932,7 +932,7 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
932
932
|
sortColumnInDescendingOrder: "Classificar a coluna {name} em ordem decrescente",
|
|
933
933
|
unfreezeColumn: "Descongelar coluna"
|
|
934
934
|
}
|
|
935
|
-
},
|
|
935
|
+
}, yl = /* @__PURE__ */ Symbol("data-grid slashed zero key"), ot = /* @__PURE__ */ Symbol("data-grid small container key"), vt = /* @__PURE__ */ Symbol("data-grid touch device key"), qo = ["aria-colindex", "aria-label", "aria-sort", "data-testid", "draggable", "tabindex"], Ko = { class: "b-data-grid-columns__select-column-menu-button" }, Yo = ["aria-label"], Jo = { class: "b-data-grid-columns__label" }, Xo = {
|
|
936
936
|
key: 0,
|
|
937
937
|
class: "b-data-grid-columns__column-info-icon"
|
|
938
938
|
}, Qo = {
|
|
@@ -942,9 +942,9 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
942
942
|
key: 0,
|
|
943
943
|
class: "b-data-grid-columns__column-separator"
|
|
944
944
|
}, ls = ["aria-label", "aria-colindex"], ns = {
|
|
945
|
-
i18n: { messages:
|
|
945
|
+
i18n: { messages: El },
|
|
946
946
|
name: "data-grid-columns"
|
|
947
|
-
}, os = /* @__PURE__ */
|
|
947
|
+
}, os = /* @__PURE__ */ Ne({
|
|
948
948
|
...ns,
|
|
949
949
|
props: {
|
|
950
950
|
/**
|
|
@@ -1092,23 +1092,23 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
1092
1092
|
},
|
|
1093
1093
|
emits: ["sort", "column-hover"],
|
|
1094
1094
|
setup(e, { expose: s, emit: i }) {
|
|
1095
|
-
const t = e, u = i, l = 100, { t: n } = We({ messages:
|
|
1095
|
+
const t = e, u = i, l = 100, { t: n } = We({ messages: El }), { columns: v, sortBy: f } = yt(t), _ = E(), b = E({}), N = E({}), D = E(), S = E(), c = (r) => u(ae.SELECT_ALL_ROWS, r), A = (r) => r.field === Ee, O = C(() => t.selectionState === "all"), k = C(
|
|
1096
1096
|
() => {
|
|
1097
|
-
var
|
|
1097
|
+
var r, V, U;
|
|
1098
1098
|
return [
|
|
1099
1099
|
{
|
|
1100
1100
|
text: n("selectPage"),
|
|
1101
1101
|
handler: () => c(!0),
|
|
1102
1102
|
disabled: t.selectionState === "page" || t.selectionState === "all"
|
|
1103
1103
|
},
|
|
1104
|
-
(
|
|
1104
|
+
(r = t.visibleRowsState) != null && r.filtered ? {
|
|
1105
1105
|
text: n("selectAllCurrentResults"),
|
|
1106
|
-
handler: () => u(
|
|
1106
|
+
handler: () => u(ae.SELECT_ALL_CURRENT_RESULTS),
|
|
1107
1107
|
addDivider: t.selectionState !== "none",
|
|
1108
1108
|
disabled: t.selectionState === "all"
|
|
1109
1109
|
} : {
|
|
1110
1110
|
text: n("selectAll"),
|
|
1111
|
-
handler: () => u(
|
|
1111
|
+
handler: () => u(ae.SELECT_ALL_ACROSS_PAGES),
|
|
1112
1112
|
addDivider: t.selectionState !== "none",
|
|
1113
1113
|
disabled: t.selectionState === "all"
|
|
1114
1114
|
},
|
|
@@ -1121,178 +1121,178 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
1121
1121
|
},
|
|
1122
1122
|
((U = t.visibleRowsState) == null ? void 0 : U.filtered) && t.selectionState !== "none" && {
|
|
1123
1123
|
text: n("deselectAllCurrentResults"),
|
|
1124
|
-
handler: () => u(
|
|
1124
|
+
handler: () => u(ae.DESELECT_ALL_CURRENT_RESULTS),
|
|
1125
1125
|
addDivider: !0,
|
|
1126
1126
|
disabled: t.selectionState === "unselected-page" && t.visibleRowsState.allRowsVisible
|
|
1127
1127
|
},
|
|
1128
1128
|
t.selectionState !== "none" && {
|
|
1129
1129
|
text: n("deselectAll"),
|
|
1130
|
-
handler: () => u(
|
|
1130
|
+
handler: () => u(ae.DESELECT_ALL)
|
|
1131
1131
|
}
|
|
1132
1132
|
].filter(Boolean);
|
|
1133
1133
|
}
|
|
1134
|
-
), { startResize:
|
|
1135
|
-
var
|
|
1136
|
-
if (!
|
|
1134
|
+
), { startResize: y, isResizing: M, columnHoverEventToEmitAfterResizing: h } = Qn(v, u), { isSorting: F, getSortingDirection: m, sortByColumnField: a } = go(f, v, u), g = (r) => {
|
|
1135
|
+
var ve;
|
|
1136
|
+
if (!r.sortable)
|
|
1137
1137
|
return null;
|
|
1138
|
-
const V = (
|
|
1138
|
+
const V = (ve = t.sortBy.find(({ field: me }) => me === r.field)) == null ? void 0 : ve.direction;
|
|
1139
1139
|
return V ? {
|
|
1140
|
-
[
|
|
1141
|
-
[
|
|
1140
|
+
[He.ASCENDING]: ut.ASCENDING,
|
|
1141
|
+
[He.DESCENDING]: ut.DESCENDING
|
|
1142
1142
|
}[V] : ut.NONE;
|
|
1143
|
-
}, T = C(() => (
|
|
1143
|
+
}, T = C(() => (r) => t.hasDraggableColumns ? {
|
|
1144
1144
|
dragstart: (V) => {
|
|
1145
|
-
u(
|
|
1145
|
+
u(ae.COLUMN_DRAG_START, r, V);
|
|
1146
1146
|
},
|
|
1147
1147
|
dragover: (V) => {
|
|
1148
1148
|
V.preventDefault();
|
|
1149
1149
|
},
|
|
1150
1150
|
dragenter: (V) => {
|
|
1151
|
-
V.preventDefault(), u(
|
|
1151
|
+
V.preventDefault(), u(ae.COLUMN_DRAG_ENTER, r, V);
|
|
1152
1152
|
},
|
|
1153
1153
|
drop: () => {
|
|
1154
|
-
u(
|
|
1154
|
+
u(ae.COLUMN_DROP, r);
|
|
1155
1155
|
},
|
|
1156
1156
|
dragend: () => {
|
|
1157
|
-
u(
|
|
1157
|
+
u(ae.COLUMN_DRAG_END);
|
|
1158
1158
|
}
|
|
1159
1159
|
} : {}), B = C(
|
|
1160
|
-
() => (
|
|
1160
|
+
() => (r) => [
|
|
1161
1161
|
{
|
|
1162
1162
|
text: n("moveColumnLeft"),
|
|
1163
|
-
handler: () => u(
|
|
1163
|
+
handler: () => u(ae.COLUMN_MOVE, r, -1),
|
|
1164
1164
|
icon: Zn,
|
|
1165
|
-
disabled: t.columns[0].field ===
|
|
1165
|
+
disabled: t.columns[0].field === r.field
|
|
1166
1166
|
},
|
|
1167
1167
|
{
|
|
1168
1168
|
text: n("moveColumnRight"),
|
|
1169
|
-
handler: () => u(
|
|
1169
|
+
handler: () => u(ae.COLUMN_MOVE, r, 1),
|
|
1170
1170
|
icon: jn,
|
|
1171
|
-
disabled: t.columns[t.columns.length - 1].field ===
|
|
1171
|
+
disabled: t.columns[t.columns.length - 1].field === r.field
|
|
1172
1172
|
},
|
|
1173
|
-
!
|
|
1174
|
-
text:
|
|
1175
|
-
handler: () => u(
|
|
1176
|
-
icon:
|
|
1173
|
+
!ue.value && {
|
|
1174
|
+
text: r != null && r.frozen ? n("unfreezeColumn") : n("freezeColumn"),
|
|
1175
|
+
handler: () => u(ae.COLUMN_UPDATE, { ...r, frozen: !(r != null && r.frozen) }),
|
|
1176
|
+
icon: pl
|
|
1177
1177
|
},
|
|
1178
1178
|
{
|
|
1179
|
-
text: (
|
|
1179
|
+
text: (r == null ? void 0 : r.visible) !== !1 ? n("hideColumn") : n("showColumn"),
|
|
1180
1180
|
handler: () => {
|
|
1181
|
-
u(
|
|
1182
|
-
...
|
|
1183
|
-
visible: (
|
|
1181
|
+
u(ae.COLUMN_UPDATE, {
|
|
1182
|
+
...r,
|
|
1183
|
+
visible: (r == null ? void 0 : r.visible) === !1
|
|
1184
1184
|
});
|
|
1185
1185
|
},
|
|
1186
|
-
icon: (
|
|
1187
|
-
disabled: (
|
|
1186
|
+
icon: (r == null ? void 0 : r.visible) !== !1 ? qn : Kn,
|
|
1187
|
+
disabled: (r == null ? void 0 : r.mandatory) || (r == null ? void 0 : r.visible) !== !1 && t.isOnlyOneVisibleColumn
|
|
1188
1188
|
}
|
|
1189
1189
|
].filter(Boolean)
|
|
1190
|
-
), x = (
|
|
1191
|
-
D.value =
|
|
1192
|
-
},
|
|
1190
|
+
), x = (r) => {
|
|
1191
|
+
D.value = r.field, S.value && clearTimeout(S.value);
|
|
1192
|
+
}, j = (r) => {
|
|
1193
1193
|
const V = setTimeout(() => {
|
|
1194
|
-
|
|
1194
|
+
r.field === D.value && (D.value = "");
|
|
1195
1195
|
}, l);
|
|
1196
1196
|
S.value = V;
|
|
1197
|
-
}, le = (
|
|
1197
|
+
}, le = (r) => {
|
|
1198
1198
|
let V = {
|
|
1199
1199
|
mouseenter: () => {
|
|
1200
|
-
x(
|
|
1200
|
+
x(r), M.value ? h.value = r : u("column-hover", r);
|
|
1201
1201
|
},
|
|
1202
1202
|
mouseleave: () => {
|
|
1203
|
-
|
|
1203
|
+
j(r), M.value ? h.value = null : u("column-hover", null);
|
|
1204
1204
|
},
|
|
1205
1205
|
focus: () => {
|
|
1206
|
-
x(
|
|
1206
|
+
x(r), A(r) && Ot(b.value[r.field]);
|
|
1207
1207
|
},
|
|
1208
1208
|
focusout: (U) => {
|
|
1209
|
-
var
|
|
1210
|
-
(
|
|
1209
|
+
var ve;
|
|
1210
|
+
(ve = _.value) != null && ve.contains(U == null ? void 0 : U.relatedTarget) || j(r);
|
|
1211
1211
|
}
|
|
1212
1212
|
};
|
|
1213
|
-
return A(
|
|
1213
|
+
return A(r) || (V = {
|
|
1214
1214
|
...V,
|
|
1215
|
-
...T.value(
|
|
1215
|
+
...T.value(r)
|
|
1216
1216
|
}), V;
|
|
1217
|
-
},
|
|
1217
|
+
}, be = (r) => r.infoIconTooltip || r.sortable || t.hasColumnPanel, ge = (r, V) => {
|
|
1218
1218
|
var U;
|
|
1219
|
-
((U = b.value) == null ? void 0 : U[V]) === void 0 && (b.value = { ...b.value, [V]: null }),
|
|
1220
|
-
},
|
|
1221
|
-
|
|
1219
|
+
((U = b.value) == null ? void 0 : U[V]) === void 0 && (b.value = { ...b.value, [V]: null }), r !== null && (b.value[V] = r);
|
|
1220
|
+
}, ue = Pe(
|
|
1221
|
+
ot,
|
|
1222
1222
|
C(() => !1)
|
|
1223
|
-
),
|
|
1223
|
+
), oe = Pe(vt, E(!1)), X = C(() => {
|
|
1224
1224
|
var V;
|
|
1225
|
-
const
|
|
1225
|
+
const r = {
|
|
1226
1226
|
"b-data-grid-columns--is-measuring": t.isMeasuringColumnWidths
|
|
1227
1227
|
};
|
|
1228
|
-
return (V = v.value[0]) != null && V.frozen && !
|
|
1229
|
-
...
|
|
1228
|
+
return (V = v.value[0]) != null && V.frozen && !ue.value ? {
|
|
1229
|
+
...r,
|
|
1230
1230
|
"b-data-grid-columns--frozen": !0,
|
|
1231
1231
|
"b-data-grid-columns--frozen-separator": t.showFrozenColumnsSeparator,
|
|
1232
1232
|
"b-data-grid-columns--overflow-shadow-left": t.hasLeftOverflow
|
|
1233
1233
|
} : {
|
|
1234
|
-
...
|
|
1234
|
+
...r,
|
|
1235
1235
|
"b-data-grid-columns--unfrozen": !0
|
|
1236
1236
|
};
|
|
1237
|
-
}),
|
|
1237
|
+
}), we = C(() => ({
|
|
1238
1238
|
"b-data-grid-columns__select-column--all": t.selectableAcrossPages
|
|
1239
|
-
})),
|
|
1240
|
-
var U,
|
|
1239
|
+
})), R = (r, V) => r && V === 0 ? Ht.BOTTOM_START : Ht.BOTTOM_END, ee = (r, V) => {
|
|
1240
|
+
var U, ve, me, Ge, w, I, te, ne, ce, Z;
|
|
1241
1241
|
return {
|
|
1242
|
-
"b-data-grid-columns__column--column-hovered":
|
|
1243
|
-
"b-data-grid-columns__column--column-hovered-no-border-left":
|
|
1244
|
-
"b-data-grid-columns__column--column-hovered-no-border-right":
|
|
1242
|
+
"b-data-grid-columns__column--column-hovered": r.field === t.hoveredOverColumnState.hoveredOverColumnField,
|
|
1243
|
+
"b-data-grid-columns__column--column-hovered-no-border-left": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderLeft,
|
|
1244
|
+
"b-data-grid-columns__column--column-hovered-no-border-right": r.field === t.hoveredOverColumnState.hoveredOverColumnField && t.hoveredOverColumnState.noBorderRight,
|
|
1245
1245
|
"b-data-grid-columns__column--last-frozen-frozen-column": t.isFrozenColumns && V === v.value.length - 1,
|
|
1246
|
-
"b-data-grid-columns__column--sortable":
|
|
1247
|
-
"b-data-grid-columns__column--padding-left-unset": ((U =
|
|
1248
|
-
"b-data-grid-columns__column--padding-right-unset": ((
|
|
1249
|
-
"b-data-grid-columns__column--numeric":
|
|
1250
|
-
"b-data-grid-columns__column--frozen":
|
|
1251
|
-
"b-data-grid-columns__column--is-re-ordering": (
|
|
1252
|
-
"b-data-grid-columns__column--is-re-ordering-target-left": (
|
|
1253
|
-
"b-data-grid-columns__column--is-re-ordering-target-right": (
|
|
1254
|
-
"b-data-grid-columns__column--with-sorting-or-column-panel":
|
|
1255
|
-
"b-data-grid-columns--small-container":
|
|
1246
|
+
"b-data-grid-columns__column--sortable": r.sortable,
|
|
1247
|
+
"b-data-grid-columns__column--padding-left-unset": ((U = r == null ? void 0 : r.padding) == null ? void 0 : U.left) === !1,
|
|
1248
|
+
"b-data-grid-columns__column--padding-right-unset": ((ve = r == null ? void 0 : r.padding) == null ? void 0 : ve.right) === !1,
|
|
1249
|
+
"b-data-grid-columns__column--numeric": r == null ? void 0 : r.numeric,
|
|
1250
|
+
"b-data-grid-columns__column--frozen": r == null ? void 0 : r.frozen,
|
|
1251
|
+
"b-data-grid-columns__column--is-re-ordering": (r == null ? void 0 : r.field) === ((Ge = (me = t.draggingColumns) == null ? void 0 : me.dragging) == null ? void 0 : Ge.field),
|
|
1252
|
+
"b-data-grid-columns__column--is-re-ordering-target-left": (r == null ? void 0 : r.field) === ((I = (w = t.draggingColumns) == null ? void 0 : w.target) == null ? void 0 : I.field) && ((te = t.draggingColumns) == null ? void 0 : te.dragToLeft),
|
|
1253
|
+
"b-data-grid-columns__column--is-re-ordering-target-right": (r == null ? void 0 : r.field) === ((ce = (ne = t.draggingColumns) == null ? void 0 : ne.target) == null ? void 0 : ce.field) && !((Z = t.draggingColumns) != null && Z.dragToLeft),
|
|
1254
|
+
"b-data-grid-columns__column--with-sorting-or-column-panel": r.sortable || r.infoIconTooltip || t.hasColumnPanel || t.selectableAcrossPages,
|
|
1255
|
+
"b-data-grid-columns--small-container": ue.value
|
|
1256
1256
|
};
|
|
1257
|
-
},
|
|
1258
|
-
"b-data-grid-columns__column-header-and-actions--numeric":
|
|
1259
|
-
}),
|
|
1260
|
-
"b-data-grid-columns__column-actions--numeric":
|
|
1261
|
-
}), Ve = (
|
|
1257
|
+
}, q = (r) => ({
|
|
1258
|
+
"b-data-grid-columns__column-header-and-actions--numeric": r == null ? void 0 : r.numeric
|
|
1259
|
+
}), Q = (r) => ({
|
|
1260
|
+
"b-data-grid-columns__column-actions--numeric": r == null ? void 0 : r.numeric
|
|
1261
|
+
}), Ve = (r) => ({
|
|
1262
1262
|
"b-data-grid-columns__column-separator-container--is-resizeable": t.hasResizableColumns,
|
|
1263
|
-
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField ===
|
|
1264
|
-
}),
|
|
1263
|
+
"b-data-grid-columns__column-separator-container--is-offset": t.hoveredOverColumnState.hoveredOverColumnField === r.field && t.hoveredOverColumnState.isSeparatorOffset
|
|
1264
|
+
}), Ie = C(() => ({
|
|
1265
1265
|
"b-data-grid-columns__column-header--truncated": t.truncateColumnHeaders
|
|
1266
|
-
})), Be = (
|
|
1267
|
-
"b-data-grid-columns__menu--hovered": D.value ===
|
|
1266
|
+
})), Be = (r) => ({
|
|
1267
|
+
"b-data-grid-columns__menu--hovered": D.value === r.field || oe.value
|
|
1268
1268
|
});
|
|
1269
1269
|
return s({
|
|
1270
1270
|
columnHeaderRefs: b
|
|
1271
|
-
}), (
|
|
1271
|
+
}), (r, V) => (d(), p("div", {
|
|
1272
1272
|
ref_key: "allColumnsRef",
|
|
1273
1273
|
ref: _,
|
|
1274
|
-
class:
|
|
1274
|
+
class: de(["b-data-grid-columns", X.value]),
|
|
1275
1275
|
"data-testid": "data-grid-columns"
|
|
1276
1276
|
}, [
|
|
1277
|
-
(
|
|
1277
|
+
(d(!0), p(_e, null, Ae(o(v), (U, ve) => (d(), p("div", se({
|
|
1278
1278
|
key: U.field,
|
|
1279
1279
|
ref_for: !0,
|
|
1280
|
-
ref: (me) =>
|
|
1281
|
-
"aria-colindex":
|
|
1280
|
+
ref: (me) => ge(me, U.field),
|
|
1281
|
+
"aria-colindex": ve + 1,
|
|
1282
1282
|
"aria-label": U.label,
|
|
1283
1283
|
"aria-sort": g(U),
|
|
1284
|
-
class: [
|
|
1284
|
+
class: [ee(U, ve), "b-data-grid-columns__column"],
|
|
1285
1285
|
"data-testid": `${U.field}-column-header`,
|
|
1286
1286
|
draggable: e.hasDraggableColumns && !o(M) && !A(U),
|
|
1287
1287
|
role: "columnheader",
|
|
1288
1288
|
tabindex: U.sortable || e.hasColumnPanel || U.infoIconTooltip ? "0" : "-1",
|
|
1289
1289
|
style: { width: U.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${U.width}px` }
|
|
1290
1290
|
}, gt(le(U), !0)), [
|
|
1291
|
-
A(U) && e.selectable ? (
|
|
1291
|
+
A(U) && e.selectable ? (d(), p("div", {
|
|
1292
1292
|
key: 0,
|
|
1293
|
-
class:
|
|
1293
|
+
class: de(["b-data-grid-columns__select-column", we.value])
|
|
1294
1294
|
}, [
|
|
1295
|
-
e.selectableAcrossPages ? W("", !0) : (
|
|
1295
|
+
e.selectableAcrossPages ? W("", !0) : (d(), H(o(_l), {
|
|
1296
1296
|
key: 0,
|
|
1297
1297
|
"aria-label": o(n)("selectAll"),
|
|
1298
1298
|
"model-value": e.allItemsSelectedState.allItemsSelected,
|
|
@@ -1301,7 +1301,7 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
1301
1301
|
value: "data-grid-select-all",
|
|
1302
1302
|
"onUpdate:modelValue": c
|
|
1303
1303
|
}, null, 8, ["aria-label", "model-value", "indeterminate"])),
|
|
1304
|
-
e.selectableAcrossPages ? (
|
|
1304
|
+
e.selectableAcrossPages ? (d(), H(o(St), {
|
|
1305
1305
|
key: 1,
|
|
1306
1306
|
button: { variant: "tertiary", condensed: !0, "aria-label": o(n)("selectAllMenu") },
|
|
1307
1307
|
data: k.value,
|
|
@@ -1327,49 +1327,49 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
1327
1327
|
]),
|
|
1328
1328
|
_: 1
|
|
1329
1329
|
}, 8, ["button", "data"])) : W("", !0)
|
|
1330
|
-
], 2)) : (
|
|
1330
|
+
], 2)) : (d(), p(_e, { key: 1 }, [
|
|
1331
1331
|
L("div", {
|
|
1332
1332
|
"aria-label": o(n)("columnActions", { name: U.label }),
|
|
1333
1333
|
"aria-live": "polite",
|
|
1334
1334
|
role: "region",
|
|
1335
|
-
class:
|
|
1335
|
+
class: de(["b-data-grid-columns__column-header-and-actions", q(U)])
|
|
1336
1336
|
}, [
|
|
1337
|
-
Y(o(
|
|
1337
|
+
Y(o(qe), {
|
|
1338
1338
|
el: "div",
|
|
1339
1339
|
strongest: "",
|
|
1340
|
-
class:
|
|
1340
|
+
class: de(["b-data-grid-columns__column-header", Ie.value])
|
|
1341
1341
|
}, {
|
|
1342
1342
|
default: G(() => [
|
|
1343
|
-
ze(
|
|
1344
|
-
L("span", Jo,
|
|
1343
|
+
ze(r.$slots, `head-${U.field}`, { column: U }, () => [
|
|
1344
|
+
L("span", Jo, J(U.label), 1)
|
|
1345
1345
|
], !0)
|
|
1346
1346
|
]),
|
|
1347
1347
|
_: 2
|
|
1348
1348
|
}, 1032, ["class"]),
|
|
1349
|
-
|
|
1349
|
+
be(U) ? (d(), p("div", {
|
|
1350
1350
|
key: 0,
|
|
1351
|
-
class:
|
|
1351
|
+
class: de(["b-data-grid-columns__column-actions", Q(U)])
|
|
1352
1352
|
}, [
|
|
1353
|
-
U.infoIconTooltip ? (
|
|
1353
|
+
U.infoIconTooltip ? (d(), p("div", Xo, [
|
|
1354
1354
|
Y(o(Gn), {
|
|
1355
1355
|
"tooltip-text": U.infoIconTooltip
|
|
1356
1356
|
}, null, 8, ["tooltip-text"])
|
|
1357
1357
|
])) : W("", !0),
|
|
1358
|
-
U.sortable ? (
|
|
1359
|
-
Y(o(
|
|
1358
|
+
U.sortable ? (d(), p("div", Qo, [
|
|
1359
|
+
Y(o(Tt), {
|
|
1360
1360
|
condensed: "",
|
|
1361
1361
|
toggled: o(F)(U.field),
|
|
1362
1362
|
variant: "tertiary",
|
|
1363
1363
|
onClick: (me) => o(a)(U.field)
|
|
1364
1364
|
}, {
|
|
1365
1365
|
iconLeft: G(() => [
|
|
1366
|
-
o(m)(U.field) ? o(m)(U.field) === o(
|
|
1366
|
+
o(m)(U.field) ? o(m)(U.field) === o(He).ASCENDING ? (d(), H(o(Fo), {
|
|
1367
1367
|
key: 1,
|
|
1368
1368
|
"svg-title": o(n)("sortColumnInDescendingOrder", { name: U.label })
|
|
1369
|
-
}, null, 8, ["svg-title"])) : o(m)(U.field) === o(
|
|
1369
|
+
}, null, 8, ["svg-title"])) : o(m)(U.field) === o(He).DESCENDING ? (d(), H(o(Ho), {
|
|
1370
1370
|
key: 2,
|
|
1371
1371
|
"svg-title": o(n)("sortColumnInAscendingOrder", { name: U.label })
|
|
1372
|
-
}, null, 8, ["svg-title"])) : W("", !0) : (
|
|
1372
|
+
}, null, 8, ["svg-title"])) : W("", !0) : (d(), H(o(Lo), {
|
|
1373
1373
|
key: 0,
|
|
1374
1374
|
"svg-title": o(n)("sortColumn", { name: U.label })
|
|
1375
1375
|
}, null, 8, ["svg-title"]))
|
|
@@ -1377,40 +1377,40 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
1377
1377
|
_: 2
|
|
1378
1378
|
}, 1032, ["toggled", "onClick"])
|
|
1379
1379
|
])) : W("", !0),
|
|
1380
|
-
e.hasColumnPanel ? (
|
|
1380
|
+
e.hasColumnPanel ? (d(), H(o(St), {
|
|
1381
1381
|
key: 2,
|
|
1382
1382
|
ref_for: !0,
|
|
1383
1383
|
ref: (me) => N.value[U.field] = me,
|
|
1384
|
-
class:
|
|
1384
|
+
class: de(["b-data-grid-columns__menu", Be(U)]),
|
|
1385
1385
|
"disable-arrow-down-opening-menu": "",
|
|
1386
1386
|
data: B.value(U),
|
|
1387
|
-
"menu-position":
|
|
1387
|
+
"menu-position": R(e.hasFirstColumnPanelRightAligned, ve),
|
|
1388
1388
|
"menu-fixed-positioning": !0,
|
|
1389
1389
|
button: { variant: "tertiary", condensed: !0 },
|
|
1390
|
-
onOpen: V[0] || (V[0] = (me) =>
|
|
1391
|
-
onClose: V[1] || (V[1] = (me) =>
|
|
1390
|
+
onOpen: V[0] || (V[0] = (me) => r.$emit(o(ae).COLUMN_MENU_OPEN)),
|
|
1391
|
+
onClose: V[1] || (V[1] = (me) => r.$emit(o(ae).COLUMN_MENU_CLOSE))
|
|
1392
1392
|
}, null, 8, ["class", "data", "menu-position"])) : W("", !0)
|
|
1393
1393
|
], 2)) : W("", !0)
|
|
1394
1394
|
], 10, Yo),
|
|
1395
1395
|
L("div", {
|
|
1396
1396
|
"data-testid": `data-grid-column-${U.field}`,
|
|
1397
|
-
class:
|
|
1397
|
+
class: de(["b-data-grid-columns__column-separator-container", Ve(U)]),
|
|
1398
1398
|
role: "presentation",
|
|
1399
|
-
onMousedown: (me) => o(
|
|
1400
|
-
onClick: V[2] || (V[2] =
|
|
1399
|
+
onMousedown: (me) => o(y)(e.hasResizableColumns, U.field, me),
|
|
1400
|
+
onClick: V[2] || (V[2] = bn(() => {
|
|
1401
1401
|
}, ["stop"]))
|
|
1402
1402
|
}, [
|
|
1403
|
-
!e.isFrozenColumns || e.isFrozenColumns &&
|
|
1403
|
+
!e.isFrozenColumns || e.isFrozenColumns && ve !== o(v).length - 1 ? (d(), p("div", ts)) : W("", !0)
|
|
1404
1404
|
], 42, es)
|
|
1405
1405
|
], 64))
|
|
1406
1406
|
], 16, qo))), 128)),
|
|
1407
|
-
e.rowActionsMaximumWidth && !e.isFrozenColumns ? (
|
|
1407
|
+
e.rowActionsMaximumWidth && !e.isFrozenColumns ? (d(), p(_e, { key: 0 }, [
|
|
1408
1408
|
V[3] || (V[3] = L("div", {
|
|
1409
1409
|
role: "presentation",
|
|
1410
1410
|
class: "b-data-grid-columns__row-actions-filler"
|
|
1411
1411
|
}, null, -1)),
|
|
1412
1412
|
L("div", {
|
|
1413
|
-
ref: (U) =>
|
|
1413
|
+
ref: (U) => ge(U, o(lt)),
|
|
1414
1414
|
"aria-label": o(n)("rowActionsColumn"),
|
|
1415
1415
|
"aria-colindex": o(v).length + 1,
|
|
1416
1416
|
class: "b-data-grid-columns__column",
|
|
@@ -1421,23 +1421,23 @@ const jo = /* @__PURE__ */ ue(Go, [["render", Zo]]), yl = {
|
|
|
1421
1421
|
], 64)) : W("", !0)
|
|
1422
1422
|
], 2));
|
|
1423
1423
|
}
|
|
1424
|
-
}), ss = /* @__PURE__ */
|
|
1424
|
+
}), ss = /* @__PURE__ */ re(os, [["__scopeId", "data-v-ee88da0d"]]);
|
|
1425
1425
|
var Ue = /* @__PURE__ */ ((e) => (e.UPDATE_CONDENSED = "update:condensed", e.UPDATE_COLUMNS = "update:columns", e.UPDATE_ZEBRA_ROWS = "update:zebra-rows", e))(Ue || {});
|
|
1426
|
-
let
|
|
1426
|
+
let nl = 0;
|
|
1427
1427
|
const as = {
|
|
1428
1428
|
beforeCreate() {
|
|
1429
|
-
this.uuid =
|
|
1429
|
+
this.uuid = nl.toString(), nl += 1;
|
|
1430
1430
|
}
|
|
1431
1431
|
}, is = { key: 0 }, rs = ["clip-path"], ds = ["id"];
|
|
1432
1432
|
function us(e, s, i, t, u, l) {
|
|
1433
|
-
return
|
|
1433
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
1434
1434
|
class: "ui-assets-icons-16",
|
|
1435
1435
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1436
1436
|
width: "16",
|
|
1437
1437
|
height: "16",
|
|
1438
1438
|
fill: "none"
|
|
1439
1439
|
}), [
|
|
1440
|
-
e.$attrs["svg-title"] ? (
|
|
1440
|
+
e.$attrs["svg-title"] ? (d(), p("title", is, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
1441
1441
|
L("g", {
|
|
1442
1442
|
fill: "#001222",
|
|
1443
1443
|
"clip-path": "url(#uia-ui-assets/icons-16-settings__a" + e.uuid + ")"
|
|
@@ -1458,7 +1458,7 @@ function us(e, s, i, t, u, l) {
|
|
|
1458
1458
|
])
|
|
1459
1459
|
], 16);
|
|
1460
1460
|
}
|
|
1461
|
-
const cs = /* @__PURE__ */
|
|
1461
|
+
const cs = /* @__PURE__ */ re(as, [["render", us]]), ol = {
|
|
1462
1462
|
"en-US": {
|
|
1463
1463
|
toggleColumnFreeze: "Toggle {label} column freeze",
|
|
1464
1464
|
toggleColumnVisibility: "Toggle {label} column visibility"
|
|
@@ -1471,12 +1471,12 @@ const cs = /* @__PURE__ */ ue(as, [["render", us]]), sl = {
|
|
|
1471
1471
|
toggleColumnFreeze: "Alternar congelamento da coluna {label}",
|
|
1472
1472
|
toggleColumnVisibility: "Alternar visibilidade da coluna {label}"
|
|
1473
1473
|
}
|
|
1474
|
-
}, fs =
|
|
1475
|
-
i18n: { messages:
|
|
1474
|
+
}, fs = Ne({
|
|
1475
|
+
i18n: { messages: ol },
|
|
1476
1476
|
name: "bento-data-grid",
|
|
1477
1477
|
components: {
|
|
1478
|
-
BentoFreezeIcon:
|
|
1479
|
-
BentoToggle:
|
|
1478
|
+
BentoFreezeIcon: pl,
|
|
1479
|
+
BentoToggle: Cl
|
|
1480
1480
|
},
|
|
1481
1481
|
props: {
|
|
1482
1482
|
/**
|
|
@@ -1496,14 +1496,14 @@ const cs = /* @__PURE__ */ ue(as, [["render", us]]), sl = {
|
|
|
1496
1496
|
},
|
|
1497
1497
|
emits: ["visible-column", "updated-column"],
|
|
1498
1498
|
setup(e, { emit: s }) {
|
|
1499
|
-
const { t: i } = We({ messages:
|
|
1499
|
+
const { t: i } = We({ messages: ol }), t = E(!1), u = C(() => {
|
|
1500
1500
|
var D;
|
|
1501
1501
|
return (D = e.column) == null ? void 0 : D.frozen;
|
|
1502
1502
|
}), l = C(() => {
|
|
1503
1503
|
var D;
|
|
1504
1504
|
return ((D = e.column) == null ? void 0 : D.visible) !== !1;
|
|
1505
1505
|
}), n = Pe(
|
|
1506
|
-
|
|
1506
|
+
ot,
|
|
1507
1507
|
C(() => !1)
|
|
1508
1508
|
), v = () => {
|
|
1509
1509
|
s("visible-column", { ...e.column, visible: !l.value });
|
|
@@ -1534,8 +1534,8 @@ const cs = /* @__PURE__ */ ue(as, [["render", us]]), sl = {
|
|
|
1534
1534
|
}
|
|
1535
1535
|
});
|
|
1536
1536
|
function gs(e, s, i, t, u, l) {
|
|
1537
|
-
const n =
|
|
1538
|
-
return
|
|
1537
|
+
const n = Te("bento-toggle"), v = Te("bento-freeze-icon");
|
|
1538
|
+
return d(), p("div", {
|
|
1539
1539
|
class: "b-data-grid-config-settings-column-row",
|
|
1540
1540
|
onMouseover: s[0] || (s[0] = (...f) => e.showFreezeIcon && e.showFreezeIcon(...f)),
|
|
1541
1541
|
onMouseleave: s[1] || (s[1] = (...f) => e.hideFreezeIcon && e.hideFreezeIcon(...f))
|
|
@@ -1548,20 +1548,20 @@ function gs(e, s, i, t, u, l) {
|
|
|
1548
1548
|
onInput: e.toggleColumnVisibility
|
|
1549
1549
|
}, {
|
|
1550
1550
|
default: G(() => [
|
|
1551
|
-
|
|
1551
|
+
fe(J(e.column.label), 1)
|
|
1552
1552
|
]),
|
|
1553
1553
|
_: 1
|
|
1554
1554
|
}, 8, ["aria-label", "disabled", "value", "onInput"]),
|
|
1555
|
-
|
|
1555
|
+
nt(Y(v, {
|
|
1556
1556
|
"aria-label": e.t("toggleColumnFreeze", { label: e.column.label }),
|
|
1557
|
-
class:
|
|
1557
|
+
class: de(["b-data-grid-config-settings-column-row__freeze-icon", e.freezeIconConditionalClasses]),
|
|
1558
1558
|
onClick: e.toggleColumnFreeze
|
|
1559
1559
|
}, null, 8, ["aria-label", "class", "onClick"]), [
|
|
1560
|
-
[
|
|
1560
|
+
[wn, (e.isColumnFrozen || e.isFreezeIconOptionShown) && !e.isSmallContainer]
|
|
1561
1561
|
])
|
|
1562
1562
|
], 32);
|
|
1563
1563
|
}
|
|
1564
|
-
const vs = /* @__PURE__ */
|
|
1564
|
+
const vs = /* @__PURE__ */ re(fs, [["render", gs], ["__scopeId", "data-v-0769d049"]]), sl = {
|
|
1565
1565
|
"en-US": {
|
|
1566
1566
|
appearance: "Appearance",
|
|
1567
1567
|
closeConfigSettingsPanel: "Close configuration settings panel",
|
|
@@ -1613,20 +1613,20 @@ const vs = /* @__PURE__ */ ue(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1613
1613
|
zebraRows: "Linhas alternadas",
|
|
1614
1614
|
zebraRowsToggle: "Alternar linhas alternadas"
|
|
1615
1615
|
}
|
|
1616
|
-
}, ms =
|
|
1617
|
-
i18n: { messages:
|
|
1616
|
+
}, ms = Ne({
|
|
1617
|
+
i18n: { messages: sl },
|
|
1618
1618
|
name: "bento-data-grid",
|
|
1619
1619
|
components: {
|
|
1620
|
-
BentoButton:
|
|
1621
|
-
BentoCrossIcon:
|
|
1620
|
+
BentoButton: hl,
|
|
1621
|
+
BentoCrossIcon: vl,
|
|
1622
1622
|
BentoPopover: zn,
|
|
1623
1623
|
BentoSettingsIcon: cs,
|
|
1624
|
-
BentoToggleButton:
|
|
1624
|
+
BentoToggleButton: Tt,
|
|
1625
1625
|
BentoDataGridConfigSettingsConfigRow: vs,
|
|
1626
1626
|
BentoSearchBar: Bn,
|
|
1627
1627
|
BentoSearchIcon: Hn,
|
|
1628
|
-
BentoToggle:
|
|
1629
|
-
BentoTypography:
|
|
1628
|
+
BentoToggle: Cl,
|
|
1629
|
+
BentoTypography: qe
|
|
1630
1630
|
},
|
|
1631
1631
|
directives: { BentoClickOutsideDirective: Wn },
|
|
1632
1632
|
props: {
|
|
@@ -1658,15 +1658,15 @@ const vs = /* @__PURE__ */ ue(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1658
1658
|
Ue.UPDATE_ZEBRA_ROWS
|
|
1659
1659
|
],
|
|
1660
1660
|
setup(e, { emit: s }) {
|
|
1661
|
-
const { t: i } = We({ messages:
|
|
1661
|
+
const { t: i } = We({ messages: sl }), t = E(null), u = ft("data-grid-config-settings-popover"), l = E(null), n = E(!1), v = E(!0), f = E(null), _ = E(""), b = bt(e, "columns"), N = E(!1), D = Vn(_, b), S = () => {
|
|
1662
1662
|
_.value = "";
|
|
1663
1663
|
}, c = C(
|
|
1664
1664
|
() => !e.columns.some((g) => g.visible === !1 && !g.mandatory)
|
|
1665
1665
|
), A = () => {
|
|
1666
|
-
S(), N.value = !N.value, N.value ?
|
|
1666
|
+
S(), N.value = !N.value, N.value ? Ce(() => {
|
|
1667
1667
|
var g;
|
|
1668
1668
|
return (g = l.value.$refs.bentoInputField) == null ? void 0 : g.focusInput();
|
|
1669
|
-
}) :
|
|
1669
|
+
}) : Ce(() => {
|
|
1670
1670
|
var g, T;
|
|
1671
1671
|
return (T = (g = f == null ? void 0 : f.value) == null ? void 0 : g.$el) == null ? void 0 : T.focus();
|
|
1672
1672
|
}), v.value = c.value;
|
|
@@ -1676,7 +1676,7 @@ const vs = /* @__PURE__ */ ue(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1676
1676
|
visible: g.field === B.field ? g.visible : B.visible
|
|
1677
1677
|
}));
|
|
1678
1678
|
s(Ue.UPDATE_COLUMNS, T);
|
|
1679
|
-
},
|
|
1679
|
+
}, y = (g) => {
|
|
1680
1680
|
g ? s(
|
|
1681
1681
|
Ue.UPDATE_COLUMNS,
|
|
1682
1682
|
e.columns.map((T) => ({ ...T, visible: !0 }))
|
|
@@ -1708,7 +1708,7 @@ const vs = /* @__PURE__ */ ue(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1708
1708
|
// Methods
|
|
1709
1709
|
setConfigSettingsPanelVisibility: h,
|
|
1710
1710
|
emitCondensedToggle: (g) => s(Ue.UPDATE_CONDENSED, g),
|
|
1711
|
-
toggleAllColumnVisibility:
|
|
1711
|
+
toggleAllColumnVisibility: y,
|
|
1712
1712
|
clearAction: S,
|
|
1713
1713
|
toggleColumnFilter: A,
|
|
1714
1714
|
emitVisibleColumns: k,
|
|
@@ -1731,8 +1731,8 @@ const vs = /* @__PURE__ */ ue(fs, [["render", gs], ["__scopeId", "data-v-0769d04
|
|
|
1731
1731
|
class: "b-data-grid-config-settings__column-visibility-show-all"
|
|
1732
1732
|
}, As = { class: "b-data-grid-config-settings__column-visibility-toggles" };
|
|
1733
1733
|
function Ts(e, s, i, t, u, l) {
|
|
1734
|
-
const n =
|
|
1735
|
-
return
|
|
1734
|
+
const n = Te("bento-settings-icon"), v = Te("bento-toggle-button"), f = Te("bento-typography"), _ = Te("bento-cross-icon"), b = Te("bento-button"), N = Te("bento-toggle"), D = Te("bento-search-icon"), S = Te("bento-search-bar"), c = Te("bento-data-grid-config-settings-config-row"), A = Te("bento-popover"), O = Sn("bento-click-outside-directive");
|
|
1735
|
+
return nt((d(), p("div", hs, [
|
|
1736
1736
|
L("div", Cs, [
|
|
1737
1737
|
L("div", _s, [
|
|
1738
1738
|
Y(v, {
|
|
@@ -1751,7 +1751,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1751
1751
|
}, 8, ["aria-controls", "toggled"])
|
|
1752
1752
|
], 512)
|
|
1753
1753
|
]),
|
|
1754
|
-
e.configSettingsButtonRef ? (
|
|
1754
|
+
e.configSettingsButtonRef ? (d(), H(A, {
|
|
1755
1755
|
key: 0,
|
|
1756
1756
|
id: e.popoverId,
|
|
1757
1757
|
open: e.isConfigSettingsPanelOpen,
|
|
@@ -1767,7 +1767,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1767
1767
|
strongest: ""
|
|
1768
1768
|
}, {
|
|
1769
1769
|
default: G(() => [
|
|
1770
|
-
|
|
1770
|
+
fe(J(e.t("displayOptions")), 1)
|
|
1771
1771
|
]),
|
|
1772
1772
|
_: 1
|
|
1773
1773
|
}),
|
|
@@ -1790,7 +1790,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1790
1790
|
stronger: ""
|
|
1791
1791
|
}, {
|
|
1792
1792
|
default: G(() => [
|
|
1793
|
-
|
|
1793
|
+
fe(J(e.t("appearance")), 1)
|
|
1794
1794
|
]),
|
|
1795
1795
|
_: 1
|
|
1796
1796
|
}),
|
|
@@ -1802,7 +1802,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1802
1802
|
onInput: e.emitCondensedToggle
|
|
1803
1803
|
}, {
|
|
1804
1804
|
default: G(() => [
|
|
1805
|
-
|
|
1805
|
+
fe(J(e.t("condensed")), 1)
|
|
1806
1806
|
]),
|
|
1807
1807
|
_: 1
|
|
1808
1808
|
}, 8, ["aria-label", "value", "onInput"])
|
|
@@ -1815,7 +1815,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1815
1815
|
onInput: e.emitZebraRowsToggle
|
|
1816
1816
|
}, {
|
|
1817
1817
|
default: G(() => [
|
|
1818
|
-
|
|
1818
|
+
fe(J(e.t("zebraRows")), 1)
|
|
1819
1819
|
]),
|
|
1820
1820
|
_: 1
|
|
1821
1821
|
}, 8, ["aria-label", "value", "onInput"])
|
|
@@ -1829,11 +1829,11 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1829
1829
|
stronger: ""
|
|
1830
1830
|
}, {
|
|
1831
1831
|
default: G(() => [
|
|
1832
|
-
|
|
1832
|
+
fe(J(e.t("columns")), 1)
|
|
1833
1833
|
]),
|
|
1834
1834
|
_: 1
|
|
1835
1835
|
}),
|
|
1836
|
-
e.isColumnVisibilityFilterShown ? (
|
|
1836
|
+
e.isColumnVisibilityFilterShown ? (d(), H(b, {
|
|
1837
1837
|
key: 1,
|
|
1838
1838
|
variant: "tertiary",
|
|
1839
1839
|
onClick: e.toggleColumnFilter
|
|
@@ -1842,10 +1842,10 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1842
1842
|
Y(_)
|
|
1843
1843
|
]),
|
|
1844
1844
|
default: G(() => [
|
|
1845
|
-
|
|
1845
|
+
fe(" " + J(e.t("closeSearch")), 1)
|
|
1846
1846
|
]),
|
|
1847
1847
|
_: 1
|
|
1848
|
-
}, 8, ["onClick"])) : (
|
|
1848
|
+
}, 8, ["onClick"])) : (d(), H(b, {
|
|
1849
1849
|
key: 0,
|
|
1850
1850
|
ref: "searchButtonRef",
|
|
1851
1851
|
variant: "tertiary",
|
|
@@ -1855,12 +1855,12 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1855
1855
|
Y(D)
|
|
1856
1856
|
]),
|
|
1857
1857
|
default: G(() => [
|
|
1858
|
-
|
|
1858
|
+
fe(J(e.t("search")), 1)
|
|
1859
1859
|
]),
|
|
1860
1860
|
_: 1
|
|
1861
1861
|
}, 8, ["onClick"]))
|
|
1862
1862
|
]),
|
|
1863
|
-
e.isColumnVisibilityFilterShown ? (
|
|
1863
|
+
e.isColumnVisibilityFilterShown ? (d(), p("div", Rs, [
|
|
1864
1864
|
Y(S, {
|
|
1865
1865
|
ref: "searchBarRef",
|
|
1866
1866
|
value: e.searchTerm,
|
|
@@ -1869,23 +1869,23 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1869
1869
|
onClear: e.clearAction,
|
|
1870
1870
|
onEscapePressed: e.toggleColumnFilter
|
|
1871
1871
|
}, null, 8, ["value", "input-field-aria-label", "onClear", "onEscapePressed"])
|
|
1872
|
-
])) : (
|
|
1872
|
+
])) : (d(), p("div", Ls, [
|
|
1873
1873
|
Y(N, {
|
|
1874
1874
|
"label-position": "after",
|
|
1875
1875
|
value: e.allColumnsVisbilityToggleState,
|
|
1876
1876
|
onInput: e.toggleAllColumnVisibility
|
|
1877
1877
|
}, {
|
|
1878
1878
|
default: G(() => [
|
|
1879
|
-
|
|
1879
|
+
fe(J(e.t("showAllColumns", { numberOfColumns: e.columns.length })), 1)
|
|
1880
1880
|
]),
|
|
1881
1881
|
_: 1
|
|
1882
1882
|
}, 8, ["value", "onInput"])
|
|
1883
1883
|
])),
|
|
1884
1884
|
L("div", As, [
|
|
1885
|
-
(
|
|
1885
|
+
(d(!0), p(_e, null, Ae(e.filteredColumnVisibilityColumns, (k) => (d(), p("div", {
|
|
1886
1886
|
key: k.field
|
|
1887
1887
|
}, [
|
|
1888
|
-
k.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (
|
|
1888
|
+
k.field !== e.DATAGRID_ACTIONS_COLUMN_FIELD_NAME ? (d(), H(c, {
|
|
1889
1889
|
key: 0,
|
|
1890
1890
|
column: k,
|
|
1891
1891
|
"is-column-visibility-toggle-disabled": e.isColumnVisibilityToggleDisabled(k),
|
|
@@ -1893,13 +1893,13 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1893
1893
|
onUpdatedColumn: e.emitFrozenColumns
|
|
1894
1894
|
}, null, 8, ["column", "is-column-visibility-toggle-disabled", "onVisibleColumn", "onUpdatedColumn"])) : W("", !0)
|
|
1895
1895
|
]))), 128)),
|
|
1896
|
-
e.filteredColumnVisibilityColumns.length === 0 ? (
|
|
1896
|
+
e.filteredColumnVisibilityColumns.length === 0 ? (d(), H(f, {
|
|
1897
1897
|
key: 0,
|
|
1898
1898
|
el: "span",
|
|
1899
1899
|
class: "b-data-grid-config-settings__column-visibility-empty-search-message"
|
|
1900
1900
|
}, {
|
|
1901
1901
|
default: G(() => [
|
|
1902
|
-
|
|
1902
|
+
fe(J(e.t("noColumnsMatch")), 1)
|
|
1903
1903
|
]),
|
|
1904
1904
|
_: 1
|
|
1905
1905
|
})) : W("", !0)
|
|
@@ -1912,7 +1912,7 @@ function Ts(e, s, i, t, u, l) {
|
|
|
1912
1912
|
[O, e.onClickOutside]
|
|
1913
1913
|
]);
|
|
1914
1914
|
}
|
|
1915
|
-
const Os = /* @__PURE__ */
|
|
1915
|
+
const Os = /* @__PURE__ */ re(ms, [["render", Ts], ["__scopeId", "data-v-01dda331"]]), mt = {
|
|
1916
1916
|
"en-US": {
|
|
1917
1917
|
filterBar: "Filters",
|
|
1918
1918
|
gettingYourData: "Getting your data",
|
|
@@ -1951,7 +1951,7 @@ const Os = /* @__PURE__ */ ue(ms, [["render", Ts], ["__scopeId", "data-v-01dda33
|
|
|
1951
1951
|
}
|
|
1952
1952
|
}, Ns = { class: "b-data-grid-lazy-load" }, Is = {
|
|
1953
1953
|
i18n: { messages: mt }
|
|
1954
|
-
}, $s = /* @__PURE__ */
|
|
1954
|
+
}, $s = /* @__PURE__ */ Ne({
|
|
1955
1955
|
...Is,
|
|
1956
1956
|
__name: "data-grid-lazy-load",
|
|
1957
1957
|
props: {
|
|
@@ -1960,54 +1960,54 @@ const Os = /* @__PURE__ */ ue(ms, [["render", Ts], ["__scopeId", "data-v-01dda33
|
|
|
1960
1960
|
},
|
|
1961
1961
|
setup(e) {
|
|
1962
1962
|
const { t: s } = We({ messages: mt });
|
|
1963
|
-
return (i, t) => (
|
|
1964
|
-
i.loading && i.isInfiniteScroll ? (
|
|
1965
|
-
i.loading && !i.isInfiniteScroll ? (
|
|
1963
|
+
return (i, t) => (d(), p("div", Ns, [
|
|
1964
|
+
i.loading && i.isInfiniteScroll ? (d(), H(o(ct), { key: 0 })) : W("", !0),
|
|
1965
|
+
i.loading && !i.isInfiniteScroll ? (d(), H(o(Bt), {
|
|
1966
1966
|
key: 1,
|
|
1967
1967
|
variant: "secondary",
|
|
1968
|
-
state: o(
|
|
1968
|
+
state: o(Wt).LOADING
|
|
1969
1969
|
}, {
|
|
1970
1970
|
default: G(() => [
|
|
1971
|
-
|
|
1971
|
+
fe(J(o(s)("loading")), 1)
|
|
1972
1972
|
]),
|
|
1973
1973
|
_: 1
|
|
1974
1974
|
}, 8, ["state"])) : W("", !0),
|
|
1975
|
-
!i.loading && !i.isInfiniteScroll ? (
|
|
1975
|
+
!i.loading && !i.isInfiniteScroll ? (d(), H(o(Bt), {
|
|
1976
1976
|
key: 2,
|
|
1977
|
-
state: o(
|
|
1977
|
+
state: o(Wt).START,
|
|
1978
1978
|
variant: "secondary",
|
|
1979
1979
|
onClick: t[0] || (t[0] = (u) => i.$emit(o(z).UPDATE_SHOW_MORE))
|
|
1980
1980
|
}, {
|
|
1981
1981
|
default: G(() => [
|
|
1982
|
-
|
|
1982
|
+
fe(J(o(s)("showMore")), 1)
|
|
1983
1983
|
]),
|
|
1984
1984
|
_: 1
|
|
1985
1985
|
}, 8, ["state"])) : W("", !0)
|
|
1986
1986
|
]));
|
|
1987
1987
|
}
|
|
1988
|
-
}), Ds = /* @__PURE__ */
|
|
1989
|
-
let
|
|
1988
|
+
}), Ds = /* @__PURE__ */ re($s, [["__scopeId", "data-v-a4824c2d"]]);
|
|
1989
|
+
let al = 0;
|
|
1990
1990
|
const ks = {
|
|
1991
1991
|
beforeCreate() {
|
|
1992
|
-
this.uuid =
|
|
1992
|
+
this.uuid = al.toString(), al += 1;
|
|
1993
1993
|
}
|
|
1994
1994
|
}, Us = { key: 0 };
|
|
1995
1995
|
function Ms(e, s, i, t, u, l) {
|
|
1996
|
-
return
|
|
1996
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
1997
1997
|
class: "ui-assets-icons-16",
|
|
1998
1998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1999
1999
|
width: "16",
|
|
2000
2000
|
height: "16",
|
|
2001
2001
|
fill: "none"
|
|
2002
2002
|
}), [
|
|
2003
|
-
e.$attrs["svg-title"] ? (
|
|
2003
|
+
e.$attrs["svg-title"] ? (d(), p("title", Us, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
2004
2004
|
s[0] || (s[0] = L("path", {
|
|
2005
2005
|
fill: "#001222",
|
|
2006
2006
|
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"
|
|
2007
2007
|
}, null, -1))
|
|
2008
2008
|
], 16);
|
|
2009
2009
|
}
|
|
2010
|
-
const
|
|
2010
|
+
const il = /* @__PURE__ */ re(ks, [["render", Ms]]), Rl = {
|
|
2011
2011
|
"en-US": {
|
|
2012
2012
|
copy: "Copy",
|
|
2013
2013
|
edit: "Edit",
|
|
@@ -2027,9 +2027,9 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2027
2027
|
open: "Aberto"
|
|
2028
2028
|
}
|
|
2029
2029
|
}, Fs = { class: "b-data-grid-cell-actions" }, zs = {
|
|
2030
|
-
i18n: { messages:
|
|
2030
|
+
i18n: { messages: Rl },
|
|
2031
2031
|
name: "data-grid-cell-actions"
|
|
2032
|
-
}, Ps = /* @__PURE__ */
|
|
2032
|
+
}, Ps = /* @__PURE__ */ Ne({
|
|
2033
2033
|
...zs,
|
|
2034
2034
|
props: {
|
|
2035
2035
|
/**
|
|
@@ -2099,7 +2099,7 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2099
2099
|
},
|
|
2100
2100
|
emits: ["menu-open", "menu-close", "menu-item-click"],
|
|
2101
2101
|
setup(e, { emit: s }) {
|
|
2102
|
-
const { t: i } = We({ messages:
|
|
2102
|
+
const { t: i } = We({ messages: Rl }), t = e, u = s, l = Pe(vt, E(!1)), n = (h) => {
|
|
2103
2103
|
if ("text" in h && h.text !== void 0)
|
|
2104
2104
|
return h.text;
|
|
2105
2105
|
switch (h.variant) {
|
|
@@ -2117,11 +2117,11 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2117
2117
|
}, v = (h) => {
|
|
2118
2118
|
switch (h.variant) {
|
|
2119
2119
|
case "copy":
|
|
2120
|
-
return
|
|
2120
|
+
return Zt;
|
|
2121
2121
|
case "edit":
|
|
2122
|
-
return
|
|
2122
|
+
return il;
|
|
2123
2123
|
case "open":
|
|
2124
|
-
return
|
|
2124
|
+
return xt;
|
|
2125
2125
|
default:
|
|
2126
2126
|
return;
|
|
2127
2127
|
}
|
|
@@ -2158,12 +2158,12 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2158
2158
|
{
|
|
2159
2159
|
variant: "more",
|
|
2160
2160
|
isShort: !0,
|
|
2161
|
-
iconLeft:
|
|
2161
|
+
iconLeft: Vt,
|
|
2162
2162
|
menuData: k(m)
|
|
2163
2163
|
}
|
|
2164
2164
|
];
|
|
2165
2165
|
}
|
|
2166
|
-
return !l.value && (h == null ? void 0 : h.length) > 2 &&
|
|
2166
|
+
return !l.value && (h == null ? void 0 : h.length) > 2 && ml(
|
|
2167
2167
|
"WARNING: BentoDataGrid Cell actions can only have a maximum of 2 actions, if you need more consider using the menuData property instead."
|
|
2168
2168
|
), h == null ? void 0 : h.slice(0, 2);
|
|
2169
2169
|
}), c = C(() => (h, F) => {
|
|
@@ -2192,29 +2192,29 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2192
2192
|
}), k = (h) => h.map((F) => {
|
|
2193
2193
|
const m = F;
|
|
2194
2194
|
return m != null && m.items && (m.items = k(m.items)), { ...O(m) };
|
|
2195
|
-
}),
|
|
2195
|
+
}), y = (h) => {
|
|
2196
2196
|
var F, m;
|
|
2197
2197
|
return (h == null ? void 0 : h.getCopyData) !== void 0 ? h.getCopyData(t.rowDataItem, t.columnKey) : t.columnKey ? (m = (F = t.rowDataItem) == null ? void 0 : F[t.columnKey]) == null ? void 0 : m.toString() : "";
|
|
2198
2198
|
}, M = (h) => h.iconLeft || (h == null ? void 0 : h.variant) === "more";
|
|
2199
|
-
return (h, F) => (
|
|
2199
|
+
return (h, F) => (d(), H(gl, {
|
|
2200
2200
|
name: "b-data-grid-cell-actions__animation",
|
|
2201
2201
|
appear: ""
|
|
2202
2202
|
}, {
|
|
2203
2203
|
default: G(() => [
|
|
2204
2204
|
L("div", Fs, [
|
|
2205
|
-
N.value && !o(l) ? (
|
|
2205
|
+
N.value && !o(l) ? (d(), p("div", {
|
|
2206
2206
|
key: 0,
|
|
2207
|
-
class:
|
|
2207
|
+
class: de(["b-data-grid-cell-actions__background-gradient", _.value])
|
|
2208
2208
|
}, null, 2)) : W("", !0),
|
|
2209
2209
|
L("div", {
|
|
2210
|
-
class:
|
|
2210
|
+
class: de(["b-data-grid-cell-actions__actions", b.value]),
|
|
2211
2211
|
role: "group"
|
|
2212
2212
|
}, [
|
|
2213
|
-
(
|
|
2213
|
+
(d(!0), p(_e, null, Ae(S.value, (m, a) => (d(), p("div", {
|
|
2214
2214
|
key: a,
|
|
2215
2215
|
class: "b-data-grid-cell-actions__action"
|
|
2216
2216
|
}, [
|
|
2217
|
-
m.menuData ?
|
|
2217
|
+
m.menuData ? nt((d(), H(o(St), {
|
|
2218
2218
|
key: 0,
|
|
2219
2219
|
data: k(m.menuData),
|
|
2220
2220
|
button: {
|
|
@@ -2227,14 +2227,14 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2227
2227
|
onOpen: F[0] || (F[0] = (g) => u("menu-open")),
|
|
2228
2228
|
onClose: F[1] || (F[1] = (g) => u("menu-close")),
|
|
2229
2229
|
onMenuItemClick: F[2] || (F[2] = (g) => u("menu-item-click"))
|
|
2230
|
-
},
|
|
2230
|
+
}, Qe({ _: 2 }, [
|
|
2231
2231
|
M(m) ? {
|
|
2232
2232
|
name: "iconLeft",
|
|
2233
2233
|
fn: G(() => [
|
|
2234
|
-
(m == null ? void 0 : m.variant) === "more" ? (
|
|
2234
|
+
(m == null ? void 0 : m.variant) === "more" ? (d(), H(o(Vt), {
|
|
2235
2235
|
key: 0,
|
|
2236
2236
|
"svg-title": c.value(m, !0)
|
|
2237
|
-
}, null, 8, ["svg-title"])) : (
|
|
2237
|
+
}, null, 8, ["svg-title"])) : (d(), H(Xe(m.iconLeft), {
|
|
2238
2238
|
key: 1,
|
|
2239
2239
|
"svg-title": c.value(m, !0)
|
|
2240
2240
|
}, null, 8, ["svg-title"]))
|
|
@@ -2244,35 +2244,35 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2244
2244
|
m != null && m.isShort ? void 0 : {
|
|
2245
2245
|
name: "default",
|
|
2246
2246
|
fn: G(() => [
|
|
2247
|
-
|
|
2247
|
+
fe(J(c.value(m)), 1)
|
|
2248
2248
|
]),
|
|
2249
2249
|
key: "1"
|
|
2250
2250
|
}
|
|
2251
2251
|
]), 1032, ["data", "button", "disable-arrow-down-opening-menu", "teleport"])), [
|
|
2252
|
-
[o(
|
|
2253
|
-
]) : m.variant === "copy" ? (
|
|
2252
|
+
[o(wt), m.tooltipText, m.tooltipPosition]
|
|
2253
|
+
]) : m.variant === "copy" ? (d(), H(o(Zt), {
|
|
2254
2254
|
key: 1,
|
|
2255
|
-
text:
|
|
2255
|
+
text: y(m),
|
|
2256
2256
|
"button-text": c.value(m),
|
|
2257
2257
|
button: {
|
|
2258
2258
|
condensed: !0,
|
|
2259
2259
|
variant: "secondary"
|
|
2260
2260
|
}
|
|
2261
|
-
}, null, 8, ["text", "button-text"])) :
|
|
2261
|
+
}, null, 8, ["text", "button-text"])) : nt((d(), H(o(hl), se({
|
|
2262
2262
|
key: 2,
|
|
2263
2263
|
condensed: "",
|
|
2264
2264
|
variant: "secondary",
|
|
2265
2265
|
critical: m.critical,
|
|
2266
2266
|
disabled: m.disabled,
|
|
2267
2267
|
link: m.link
|
|
2268
|
-
}, gt(A(m))),
|
|
2268
|
+
}, gt(A(m))), Qe({ _: 2 }, [
|
|
2269
2269
|
m.iconLeft || m.variant === "edit" ? {
|
|
2270
2270
|
name: "iconLeft",
|
|
2271
2271
|
fn: G(() => [
|
|
2272
|
-
(m == null ? void 0 : m.variant) === "edit" ? (
|
|
2272
|
+
(m == null ? void 0 : m.variant) === "edit" ? (d(), H(o(il), {
|
|
2273
2273
|
key: 0,
|
|
2274
2274
|
"svg-title": c.value(m, !0)
|
|
2275
|
-
}, null, 8, ["svg-title"])) : (
|
|
2275
|
+
}, null, 8, ["svg-title"])) : (d(), H(Xe(m.iconLeft), {
|
|
2276
2276
|
key: 1,
|
|
2277
2277
|
"svg-title": m.title
|
|
2278
2278
|
}, null, 8, ["svg-title"]))
|
|
@@ -2282,17 +2282,17 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2282
2282
|
m != null && m.isShort ? void 0 : {
|
|
2283
2283
|
name: "default",
|
|
2284
2284
|
fn: G(() => [
|
|
2285
|
-
|
|
2285
|
+
fe(J(c.value(m)), 1)
|
|
2286
2286
|
]),
|
|
2287
2287
|
key: "1"
|
|
2288
2288
|
},
|
|
2289
2289
|
m.iconRight || m.variant === "open" ? {
|
|
2290
2290
|
name: "iconRight",
|
|
2291
2291
|
fn: G(() => [
|
|
2292
|
-
(m == null ? void 0 : m.variant) === "open" ? (
|
|
2292
|
+
(m == null ? void 0 : m.variant) === "open" ? (d(), H(o(xt), {
|
|
2293
2293
|
key: 0,
|
|
2294
2294
|
"svg-title": c.value(m, !0)
|
|
2295
|
-
}, null, 8, ["svg-title"])) : (
|
|
2295
|
+
}, null, 8, ["svg-title"])) : (d(), H(Xe(m.iconRight), {
|
|
2296
2296
|
key: 1,
|
|
2297
2297
|
"svg-title": m.title
|
|
2298
2298
|
}, null, 8, ["svg-title"]))
|
|
@@ -2300,7 +2300,7 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2300
2300
|
key: "2"
|
|
2301
2301
|
} : void 0
|
|
2302
2302
|
]), 1040, ["critical", "disabled", "link"])), [
|
|
2303
|
-
[o(
|
|
2303
|
+
[o(wt), m.tooltipText, m.tooltipPosition]
|
|
2304
2304
|
])
|
|
2305
2305
|
]))), 128))
|
|
2306
2306
|
], 2)
|
|
@@ -2309,12 +2309,12 @@ const rl = /* @__PURE__ */ ue(ks, [["render", Ms]]), Ll = {
|
|
|
2309
2309
|
_: 1
|
|
2310
2310
|
}));
|
|
2311
2311
|
}
|
|
2312
|
-
}),
|
|
2312
|
+
}), Ll = /* @__PURE__ */ re(Ps, [["__scopeId", "data-v-98d959e5"]]);
|
|
2313
2313
|
var he = /* @__PURE__ */ ((e) => (e.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED = "action-col-nested-content-and-selection-enabled", e.ACTION_COL_NESTED_CONTENT_ENABLED = "action-col-nested-content-enabled", e.ACTION_COL_SELECTION_ENABLED = "action-col-selection-enabled", e.COLUMN_HOVERED = "column-hovered", e.COLUMN_HOVERED_NO_BORDER_LEFT = "column-hovered-no-border-left", e.COLUMN_HOVERED_NO_BORDER_RIGHT = "column-hovered-no-border-right", e.CONDENSED = "condensed", e.FROZEN = "frozen", e.IS_COLUMN_REORDERING = "is-column-re-ordering", e.IS_COLUMN_REORDERING_TARGET_LEFT = "is-column-re-order-target-left", e.IS_COLUMN_REORDERING_TARGET_RIGHT = "is-column-re-order-target-right", e.LAST_FROZEN_COLUMN_CELL = "last-frozen-column-cell", e.NESTED_CONTENT_ENABLED = "nested-content-toggle-enabled", e.NUMERIC = "numeric", e.OVERFLOW_ELLIPSIS = "overflow-ellipsis", e.PADDING_LEFT_UNSET = "padding-left-unset", e.PADDING_RIGHT_UNSET = "padding-right-unset", e.SLASHED_ZERO = "slashed-zero", e))(he || {});
|
|
2314
|
-
const
|
|
2314
|
+
const rl = () => {
|
|
2315
2315
|
const e = document.activeElement;
|
|
2316
2316
|
return e ? e.matches(":focus-visible") || e.matches(".focus-visible") : !1;
|
|
2317
|
-
},
|
|
2317
|
+
}, Al = {
|
|
2318
2318
|
"en-US": {
|
|
2319
2319
|
collapseNestedContent: "Collapse nested content",
|
|
2320
2320
|
expandNestedContent: "Expand nested content",
|
|
@@ -2334,9 +2334,9 @@ const dl = () => {
|
|
|
2334
2334
|
key: 0,
|
|
2335
2335
|
class: "b-data-grid-cell__cell-actions"
|
|
2336
2336
|
}, Hs = {
|
|
2337
|
-
i18n: { messages:
|
|
2337
|
+
i18n: { messages: Al },
|
|
2338
2338
|
name: "data-grid-cell"
|
|
2339
|
-
}, Gs = /* @__PURE__ */
|
|
2339
|
+
}, Gs = /* @__PURE__ */ Ne({
|
|
2340
2340
|
...Hs,
|
|
2341
2341
|
props: {
|
|
2342
2342
|
draggingEventsForRowCell: {
|
|
@@ -2480,58 +2480,58 @@ const dl = () => {
|
|
|
2480
2480
|
},
|
|
2481
2481
|
emits: ["on-frozen-columns-key-press", "select-row", "register-row-cell-element", "cell-hovered", "nested-content-toggled", "cell-focus"],
|
|
2482
2482
|
setup(e, { expose: s, emit: i }) {
|
|
2483
|
-
const t =
|
|
2484
|
-
var
|
|
2485
|
-
return !!((
|
|
2483
|
+
const t = Rt(), u = Lt(t), { t: l } = We({ messages: Al }), n = e, v = i, f = E(null), _ = E(null), b = E(!1), N = E([]), D = E(!1), S = E(), c = E(!1), A = C(() => {
|
|
2484
|
+
var R;
|
|
2485
|
+
return !!((R = n.rowData) != null && R[n.column.field]);
|
|
2486
2486
|
}), O = C(
|
|
2487
2487
|
() => {
|
|
2488
|
-
var
|
|
2489
|
-
return n.column.field === Ee && ((
|
|
2488
|
+
var R;
|
|
2489
|
+
return n.column.field === Ee && ((R = n.nestedRowsElementIds) == null ? void 0 : R.length) > 0 ? n.nestedRowsElementIds.join(" ") : void 0;
|
|
2490
2490
|
}
|
|
2491
2491
|
), k = C(
|
|
2492
2492
|
() => n.column.field === Ee && !n.selectable && !n.nestedContent
|
|
2493
|
-
),
|
|
2494
|
-
var
|
|
2495
|
-
(
|
|
2493
|
+
), y = C(() => !k.value && (a(n.rowIndex, n.colIndex, n.columnSetIndex) === 0 && !c.value || D.value) ? "0" : (n.column.field === Ee, "-1")), M = (R, ee) => (R == null ? void 0 : R.overflow) === pt.ELLIPSIS ? `${ee}` : void 0, h = (R) => R ?? "-", F = (R) => n.columnSets.slice(0, R).reduce((ee, { columnSet: q }) => ee + q.length, 0), m = (R, ee) => R + F(ee), a = (R, ee, q) => F() * R + m(ee, q), g = (R) => {
|
|
2494
|
+
var ee;
|
|
2495
|
+
(R === null || !f.value.contains(R) && !((ee = N.value) != null && ee.map((q) => q.value).some((q) => q === R || (q == null ? void 0 : q.contains(R))))) && (b.value = !1);
|
|
2496
2496
|
}, T = () => {
|
|
2497
2497
|
b.value = !1;
|
|
2498
|
-
}, B = E(!1), x = (
|
|
2499
|
-
const
|
|
2500
|
-
...n.draggingEventsForRowCell(
|
|
2498
|
+
}, B = E(!1), x = (R) => {
|
|
2499
|
+
const ee = {
|
|
2500
|
+
...n.draggingEventsForRowCell(R),
|
|
2501
2501
|
// Focus on the first interactive child in the grid cell if one exists
|
|
2502
2502
|
focus: async () => {
|
|
2503
|
-
if (!
|
|
2503
|
+
if (!rl())
|
|
2504
2504
|
return;
|
|
2505
2505
|
D.value = !0, c.value = !0, v("cell-focus", {
|
|
2506
2506
|
rowData: n.rowData,
|
|
2507
2507
|
column: n.column,
|
|
2508
2508
|
rowIndex: n.rowIndex,
|
|
2509
2509
|
colIndex: m(n.colIndex, n.columnSetIndex)
|
|
2510
|
-
}),
|
|
2510
|
+
}), Sl(S.value), await Ce(), Ot(f.value) && (B.value = !0);
|
|
2511
2511
|
},
|
|
2512
2512
|
focusout: () => {
|
|
2513
|
-
|
|
2513
|
+
rl() && (B.value = !1);
|
|
2514
2514
|
},
|
|
2515
|
-
keydown: (
|
|
2516
|
-
|
|
2515
|
+
keydown: (Q) => {
|
|
2516
|
+
Q.key !== Oe.TAB && (B.value = !1, D.value = !1, je(f.value));
|
|
2517
2517
|
}
|
|
2518
|
-
},
|
|
2519
|
-
return
|
|
2520
|
-
|
|
2521
|
-
}),
|
|
2518
|
+
}, q = { ...ee };
|
|
2519
|
+
return R.frozen && (q.keyup = (Q) => v("on-frozen-columns-key-press", Q), q.keydown = (Q) => {
|
|
2520
|
+
ee.keydown(Q), v("on-frozen-columns-key-press", Q);
|
|
2521
|
+
}), R.cellActions && (q.mouseenter = () => {
|
|
2522
2522
|
b.value = !0;
|
|
2523
|
-
},
|
|
2524
|
-
g(
|
|
2525
|
-
},
|
|
2526
|
-
|
|
2527
|
-
},
|
|
2528
|
-
|
|
2529
|
-
}),
|
|
2523
|
+
}, q.mouseleave = (Q) => {
|
|
2524
|
+
g(Q == null ? void 0 : Q.relatedTarget);
|
|
2525
|
+
}, q.focus = async (Q) => {
|
|
2526
|
+
ee.focus(Q), await Ce(), b.value = !0;
|
|
2527
|
+
}, q.focusout = (Q) => {
|
|
2528
|
+
ee.focusout(Q), g(Q == null ? void 0 : Q.relatedTarget);
|
|
2529
|
+
}), q;
|
|
2530
2530
|
};
|
|
2531
|
-
|
|
2532
|
-
S.value =
|
|
2531
|
+
et(() => {
|
|
2532
|
+
S.value = je(f.value);
|
|
2533
2533
|
});
|
|
2534
|
-
const
|
|
2534
|
+
const j = () => {
|
|
2535
2535
|
v("nested-content-toggled");
|
|
2536
2536
|
};
|
|
2537
2537
|
ye(
|
|
@@ -2540,62 +2540,62 @@ const dl = () => {
|
|
|
2540
2540
|
b.value === !0 ? v("cell-hovered", n.rowIndex) : v("cell-hovered", -1);
|
|
2541
2541
|
}
|
|
2542
2542
|
), dt(Pn, {
|
|
2543
|
-
registerMenuContainerElement: (
|
|
2544
|
-
N.value.push(
|
|
2543
|
+
registerMenuContainerElement: (R) => {
|
|
2544
|
+
N.value.push(R);
|
|
2545
2545
|
},
|
|
2546
|
-
menuMouseLeave: (
|
|
2547
|
-
f.value.contains(
|
|
2546
|
+
menuMouseLeave: (R) => {
|
|
2547
|
+
f.value.contains(R == null ? void 0 : R.relatedTarget) || (b.value = !1);
|
|
2548
2548
|
}
|
|
2549
2549
|
});
|
|
2550
|
-
const
|
|
2551
|
-
|
|
2550
|
+
const ge = Pe(yl, E(!1)), ue = Pe(
|
|
2551
|
+
ot,
|
|
2552
2552
|
C(() => !1)
|
|
2553
|
-
),
|
|
2554
|
-
var
|
|
2553
|
+
), oe = Pe(vt, E(!1)), X = (R) => {
|
|
2554
|
+
var ee, q, Q, Ve, Ie, Be, r;
|
|
2555
2555
|
return {
|
|
2556
|
-
[`b-data-grid-cell--${he.COLUMN_HOVERED}`]: (
|
|
2557
|
-
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (
|
|
2558
|
-
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (
|
|
2559
|
-
[`b-data-grid-cell--${he.PADDING_LEFT_UNSET}`]: ((
|
|
2560
|
-
[`b-data-grid-cell--${he.PADDING_RIGHT_UNSET}`]: ((
|
|
2561
|
-
[`b-data-grid-cell--${he.NUMERIC}`]:
|
|
2556
|
+
[`b-data-grid-cell--${he.COLUMN_HOVERED}`]: (R == null ? void 0 : R.field) === n.hoveredOverColumnState.hoveredOverColumnField,
|
|
2557
|
+
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_LEFT}`]: (R == null ? void 0 : R.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderLeft,
|
|
2558
|
+
[`b-data-grid-cell--${he.COLUMN_HOVERED_NO_BORDER_RIGHT}`]: (R == null ? void 0 : R.field) === n.hoveredOverColumnState.hoveredOverColumnField && n.hoveredOverColumnState.noBorderRight,
|
|
2559
|
+
[`b-data-grid-cell--${he.PADDING_LEFT_UNSET}`]: ((ee = R == null ? void 0 : R.padding) == null ? void 0 : ee.left) === !1,
|
|
2560
|
+
[`b-data-grid-cell--${he.PADDING_RIGHT_UNSET}`]: ((q = R == null ? void 0 : R.padding) == null ? void 0 : q.right) === !1,
|
|
2561
|
+
[`b-data-grid-cell--${he.NUMERIC}`]: R == null ? void 0 : R.numeric,
|
|
2562
2562
|
[`b-data-grid-cell--${he.CONDENSED}`]: n.condensed,
|
|
2563
|
-
[`b-data-grid-cell--${he.OVERFLOW_ELLIPSIS}`]: (
|
|
2564
|
-
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING}`]: ((
|
|
2565
|
-
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ve = n.draggingColumns.target) == null ? void 0 : Ve.field) ===
|
|
2566
|
-
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Be = n.draggingColumns.target) == null ? void 0 : Be.field) ===
|
|
2567
|
-
[`b-data-grid-cell--${he.FROZEN}`]:
|
|
2563
|
+
[`b-data-grid-cell--${he.OVERFLOW_ELLIPSIS}`]: (R == null ? void 0 : R.overflow) === pt.ELLIPSIS,
|
|
2564
|
+
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING}`]: ((Q = n.draggingColumns.dragging) == null ? void 0 : Q.field) === R.field,
|
|
2565
|
+
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_LEFT}`]: ((Ve = n.draggingColumns.target) == null ? void 0 : Ve.field) === R.field && ((Ie = n.draggingColumns) == null ? void 0 : Ie.dragToLeft),
|
|
2566
|
+
[`b-data-grid-cell--${he.IS_COLUMN_REORDERING_TARGET_RIGHT}`]: ((Be = n.draggingColumns.target) == null ? void 0 : Be.field) === R.field && !((r = n.draggingColumns) != null && r.dragToLeft),
|
|
2567
|
+
[`b-data-grid-cell--${he.FROZEN}`]: R == null ? void 0 : R.frozen,
|
|
2568
2568
|
[`b-data-grid-cell--${he.NESTED_CONTENT_ENABLED}`]: n.nestedContent,
|
|
2569
|
-
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_ENABLED}`]: n.nestedContent && !n.selectable &&
|
|
2570
|
-
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: n.nestedContent && n.selectable &&
|
|
2571
|
-
[`b-data-grid-cell--${he.ACTION_COL_SELECTION_ENABLED}`]:
|
|
2572
|
-
[`b-data-grid-cell--${he.SLASHED_ZERO}`]:
|
|
2573
|
-
"b-data-grid-cell--small-container":
|
|
2569
|
+
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_ENABLED}`]: n.nestedContent && !n.selectable && R.field === Ee,
|
|
2570
|
+
[`b-data-grid-cell--${he.ACTION_COL_NESTED_CONTENT_AND_SELECTION_ENABLED}`]: n.nestedContent && n.selectable && R.field === Ee,
|
|
2571
|
+
[`b-data-grid-cell--${he.ACTION_COL_SELECTION_ENABLED}`]: R.field === Ee && n.selectable,
|
|
2572
|
+
[`b-data-grid-cell--${he.SLASHED_ZERO}`]: ge.value,
|
|
2573
|
+
"b-data-grid-cell--small-container": ue.value
|
|
2574
2574
|
};
|
|
2575
|
-
},
|
|
2575
|
+
}, we = C(() => ({
|
|
2576
2576
|
"b-data-grid-cell__cell-content--is-focused-on-inside-interactive-element": B.value
|
|
2577
2577
|
}));
|
|
2578
2578
|
return s({
|
|
2579
2579
|
gridcellRef: f
|
|
2580
|
-
}), (
|
|
2581
|
-
var
|
|
2582
|
-
return
|
|
2580
|
+
}), (R, ee) => {
|
|
2581
|
+
var q;
|
|
2582
|
+
return d(), p("div", se({
|
|
2583
2583
|
key: `cell-${e.column.field}`,
|
|
2584
2584
|
ref_key: "gridcellRef",
|
|
2585
2585
|
ref: f,
|
|
2586
2586
|
"aria-hidden": k.value,
|
|
2587
2587
|
"data-testid": `cell-${e.column.field}`,
|
|
2588
2588
|
"data-cellindex": a(e.rowIndex, e.colIndex, e.columnSetIndex),
|
|
2589
|
-
class: ["b-data-grid-cell",
|
|
2589
|
+
class: ["b-data-grid-cell", X(e.column)],
|
|
2590
2590
|
role: "gridcell",
|
|
2591
|
-
tabindex:
|
|
2591
|
+
tabindex: y.value,
|
|
2592
2592
|
"aria-colindex": m(e.colIndex, e.columnSetIndex) + 1,
|
|
2593
2593
|
style: {
|
|
2594
2594
|
width: e.column.autoWidth && e.isMeasuringColumnWidths ? "auto" : `${e.column.width}px`
|
|
2595
2595
|
}
|
|
2596
2596
|
}, gt(x(e.column), !0)), [
|
|
2597
|
-
e.column.field === o(Ee) ? (
|
|
2598
|
-
e.selectable ? (
|
|
2597
|
+
e.column.field === o(Ee) ? (d(), p(_e, { key: 0 }, [
|
|
2598
|
+
e.selectable ? (d(), H(o(_l), {
|
|
2599
2599
|
key: 0,
|
|
2600
2600
|
class: "b-data-grid-cell__select-cell",
|
|
2601
2601
|
"aria-label": o(l)("selectRow"),
|
|
@@ -2604,9 +2604,9 @@ const dl = () => {
|
|
|
2604
2604
|
"model-value": e.selectedItems,
|
|
2605
2605
|
value: e.getDataItemId(e.rowData),
|
|
2606
2606
|
tabindex: D.value ? 0 : -1,
|
|
2607
|
-
"onUpdate:modelValue":
|
|
2607
|
+
"onUpdate:modelValue": ee[0] || (ee[0] = (Q) => R.$emit("select-row", Q))
|
|
2608
2608
|
}, null, 8, ["aria-label", "disabled", "indeterminate", "model-value", "value", "tabindex"])) : W("", !0),
|
|
2609
|
-
e.nestedContent ? (
|
|
2609
|
+
e.nestedContent ? (d(), H(o(Tt), {
|
|
2610
2610
|
key: 1,
|
|
2611
2611
|
ref: "menuButtonRef",
|
|
2612
2612
|
"aria-haspopup": "true",
|
|
@@ -2614,14 +2614,14 @@ const dl = () => {
|
|
|
2614
2614
|
condensed: "",
|
|
2615
2615
|
variant: "tertiary",
|
|
2616
2616
|
toggled: e.isNestedContentExpanded,
|
|
2617
|
-
onClick:
|
|
2617
|
+
onClick: j
|
|
2618
2618
|
}, {
|
|
2619
2619
|
iconLeft: G(() => [
|
|
2620
|
-
e.isNestedContentExpanded ? (
|
|
2620
|
+
e.isNestedContentExpanded ? (d(), H(o(Jn), {
|
|
2621
2621
|
key: 0,
|
|
2622
2622
|
class: "b-accordion-item__icon",
|
|
2623
2623
|
"svg-title": o(l)("collapseNestedContent")
|
|
2624
|
-
}, null, 8, ["svg-title"])) : (
|
|
2624
|
+
}, null, 8, ["svg-title"])) : (d(), H(o(Yn), {
|
|
2625
2625
|
key: 1,
|
|
2626
2626
|
class: "b-accordion-item__icon",
|
|
2627
2627
|
"svg-title": o(l)("expandNestedContent")
|
|
@@ -2629,26 +2629,26 @@ const dl = () => {
|
|
|
2629
2629
|
]),
|
|
2630
2630
|
_: 1
|
|
2631
2631
|
}, 8, ["aria-controls", "toggled"])) : W("", !0)
|
|
2632
|
-
], 64)) : (
|
|
2633
|
-
Y(o(
|
|
2632
|
+
], 64)) : (d(), p(_e, { key: 1 }, [
|
|
2633
|
+
Y(o(qe), {
|
|
2634
2634
|
el: "div",
|
|
2635
|
-
class:
|
|
2635
|
+
class: de(["b-data-grid-cell__cell-content", we.value]),
|
|
2636
2636
|
"data-testid": "cell-content"
|
|
2637
2637
|
}, {
|
|
2638
2638
|
default: G(() => [
|
|
2639
|
-
ze(
|
|
2639
|
+
ze(R.$slots, `item-${e.column.field}`, {
|
|
2640
2640
|
item: e.rowData,
|
|
2641
2641
|
rowIndex: e.rowIndex
|
|
2642
2642
|
}, () => [
|
|
2643
2643
|
L("span", {
|
|
2644
2644
|
title: M(e.column, e.rowData[e.column.field])
|
|
2645
|
-
},
|
|
2645
|
+
}, J(h(e.rowData[e.column.field])), 9, Ws)
|
|
2646
2646
|
], !0)
|
|
2647
2647
|
]),
|
|
2648
2648
|
_: 3
|
|
2649
2649
|
}, 8, ["class"]),
|
|
2650
|
-
((
|
|
2651
|
-
(b.value || o(
|
|
2650
|
+
((q = e.column.cellActions) == null ? void 0 : q.length) > 0 ? (d(), p("div", Vs, [
|
|
2651
|
+
(b.value || o(oe)) && (A.value || o(u)(`item-${e.column.field}`)) ? (d(), H(Ll, {
|
|
2652
2652
|
key: 0,
|
|
2653
2653
|
ref_key: "cellActionsRef",
|
|
2654
2654
|
ref: _,
|
|
@@ -2666,7 +2666,7 @@ const dl = () => {
|
|
|
2666
2666
|
], 16, Bs);
|
|
2667
2667
|
};
|
|
2668
2668
|
}
|
|
2669
|
-
}), xs = /* @__PURE__ */
|
|
2669
|
+
}), xs = /* @__PURE__ */ re(Gs, [["__scopeId", "data-v-51166457"]]), Zs = {
|
|
2670
2670
|
class: "b-data-grid-row-container",
|
|
2671
2671
|
role: "presentation"
|
|
2672
2672
|
}, js = ["id", "aria-selected"], qs = ["data-testid"], Ks = ["aria-colindex", "data-cellindex"], Ys = {
|
|
@@ -2677,7 +2677,7 @@ const dl = () => {
|
|
|
2677
2677
|
class: "b-data-grid-row-container__row-nested-rows-loading-container"
|
|
2678
2678
|
}, Xs = { key: 1 }, Qs = {
|
|
2679
2679
|
name: "data-grid-row"
|
|
2680
|
-
}, ea = /* @__PURE__ */
|
|
2680
|
+
}, ea = /* @__PURE__ */ Ne({
|
|
2681
2681
|
...Qs,
|
|
2682
2682
|
props: {
|
|
2683
2683
|
/**
|
|
@@ -2886,9 +2886,9 @@ const dl = () => {
|
|
|
2886
2886
|
},
|
|
2887
2887
|
emits: ["cell-hovered", "on-frozen-columns-key-press", "select-row", "select-nested-row", "row-click", "nested-content-toggled", "cell-focus"],
|
|
2888
2888
|
setup(e, { expose: s, emit: i }) {
|
|
2889
|
-
const t =
|
|
2890
|
-
|
|
2891
|
-
b.value && (S.value =
|
|
2889
|
+
const t = Rt(), u = Lt(t), l = e, n = i, v = E({}), f = E(!1), _ = E(), b = E(), N = ft("nested-content-slot"), D = E(!1), S = E();
|
|
2890
|
+
et(() => {
|
|
2891
|
+
b.value && (S.value = je(b.value));
|
|
2892
2892
|
});
|
|
2893
2893
|
const c = C(() => l.shouldShowNestedRows(l.rowData)), A = C(
|
|
2894
2894
|
() => {
|
|
@@ -2902,7 +2902,7 @@ const dl = () => {
|
|
|
2902
2902
|
}
|
|
2903
2903
|
), k = C(
|
|
2904
2904
|
() => l.hasNestedContent && l.shouldShowNestedContent(l.rowData) || l.hasNestedRows && c.value && !l.isNestedRow
|
|
2905
|
-
),
|
|
2905
|
+
), y = C(() => {
|
|
2906
2906
|
if (l.hasNestedContent || l.hasNestedRows) {
|
|
2907
2907
|
const w = f.value.toString();
|
|
2908
2908
|
return {
|
|
@@ -2930,7 +2930,7 @@ const dl = () => {
|
|
|
2930
2930
|
};
|
|
2931
2931
|
}), h = C(() => {
|
|
2932
2932
|
var w, I;
|
|
2933
|
-
return A.value ? (I = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : I.reduce((te,
|
|
2933
|
+
return A.value ? (I = (w = l.rowData) == null ? void 0 : w.children) == null ? void 0 : I.reduce((te, ne, ce) => (te[ce] = ft("nested-row"), te), {}) : [];
|
|
2934
2934
|
}), F = C(() => {
|
|
2935
2935
|
var w;
|
|
2936
2936
|
if (f.value) {
|
|
@@ -2945,16 +2945,16 @@ const dl = () => {
|
|
|
2945
2945
|
}
|
|
2946
2946
|
}), m = C(() => {
|
|
2947
2947
|
var I, te;
|
|
2948
|
-
const w = (te = (I = l.rowData) == null ? void 0 : I.children) == null ? void 0 : te.map((
|
|
2948
|
+
const w = (te = (I = l.rowData) == null ? void 0 : I.children) == null ? void 0 : te.map((ne) => l.getDataItemId(ne));
|
|
2949
2949
|
if ((w == null ? void 0 : w.length) > 0) {
|
|
2950
|
-
const
|
|
2951
|
-
var
|
|
2952
|
-
return (
|
|
2953
|
-
}),
|
|
2954
|
-
var
|
|
2955
|
-
return (
|
|
2950
|
+
const ne = w.every((Z) => {
|
|
2951
|
+
var Re;
|
|
2952
|
+
return (Re = l == null ? void 0 : l.selectedItems) == null ? void 0 : Re.includes(Z);
|
|
2953
|
+
}), ce = w.some((Z) => {
|
|
2954
|
+
var Re;
|
|
2955
|
+
return (Re = l == null ? void 0 : l.selectedItems) == null ? void 0 : Re.includes(Z);
|
|
2956
2956
|
});
|
|
2957
|
-
return !
|
|
2957
|
+
return !ne && ce;
|
|
2958
2958
|
}
|
|
2959
2959
|
return !1;
|
|
2960
2960
|
}), a = (w, I) => {
|
|
@@ -2965,53 +2965,55 @@ const dl = () => {
|
|
|
2965
2965
|
return null;
|
|
2966
2966
|
const I = l.getDataItemId(w);
|
|
2967
2967
|
return l.selectedItems.includes(I).toString();
|
|
2968
|
-
}, B = (w) => {
|
|
2969
|
-
|
|
2968
|
+
}, B = (w, I) => {
|
|
2969
|
+
n("row-click", w, I);
|
|
2970
|
+
}, x = (w) => {
|
|
2971
|
+
var ne;
|
|
2970
2972
|
if (!l.allowRowClicks)
|
|
2971
2973
|
return;
|
|
2972
2974
|
let I = !1;
|
|
2973
2975
|
const te = ["button", "input", "a"];
|
|
2974
|
-
for (let
|
|
2975
|
-
if ((
|
|
2976
|
+
for (let ce = 0; ce < te.length; ce++)
|
|
2977
|
+
if ((ne = w == null ? void 0 : w.target) != null && ne.closest(te[ce])) {
|
|
2976
2978
|
I = !0;
|
|
2977
2979
|
break;
|
|
2978
2980
|
}
|
|
2979
|
-
I ||
|
|
2980
|
-
},
|
|
2981
|
+
I || B(l.rowData, w);
|
|
2982
|
+
}, j = (w) => {
|
|
2981
2983
|
n("select-row", w, l.rowData);
|
|
2982
|
-
},
|
|
2984
|
+
}, le = (w, I) => {
|
|
2983
2985
|
n("select-nested-row", I, l.rowData, w);
|
|
2984
|
-
},
|
|
2986
|
+
}, be = () => {
|
|
2985
2987
|
D.value = !0;
|
|
2986
|
-
},
|
|
2988
|
+
}, ge = () => {
|
|
2987
2989
|
D.value = !1;
|
|
2988
|
-
},
|
|
2990
|
+
}, ue = () => {
|
|
2989
2991
|
var w;
|
|
2990
|
-
|
|
2991
|
-
},
|
|
2992
|
-
|
|
2993
|
-
},
|
|
2992
|
+
Sl([(w = S.value) == null ? void 0 : w[0]]), Ot(b.value);
|
|
2993
|
+
}, oe = () => {
|
|
2994
|
+
je(b.value);
|
|
2995
|
+
}, X = (w) => {
|
|
2994
2996
|
var I, te;
|
|
2995
|
-
w.key !==
|
|
2996
|
-
},
|
|
2997
|
+
w.key !== Oe.TAB && je(b.value), w.key === Oe.ARROW_RIGHT && ((I = S.value) == null ? void 0 : I.length) > 1 && S.value[0].node === document.activeElement ? (je(b.value), S.value[1].node.setAttribute("tabindex", "0"), S.value[1].node.focus(), w.stopPropagation(), w.preventDefault()) : w.key === Oe.ARROW_LEFT && ((te = S.value) == null ? void 0 : te.length) > 1 && S.value[1].node === document.activeElement && (je(b.value), S.value[0].node.setAttribute("tabindex", "0"), S.value[0].node.focus(), w.stopPropagation(), w.preventDefault());
|
|
2998
|
+
}, we = () => l.columnSets.reduce((w, { columnSet: I }) => w + I.length, 0), R = () => we() * l.rowIndex + we(), { updateContentHeight: ee, contentHeight: q } = Xn(_, f), Q = C(() => {
|
|
2997
2999
|
var w;
|
|
2998
3000
|
if (l.hasNestedContent || l.hasNestedRows)
|
|
2999
3001
|
return {
|
|
3000
|
-
paddingLeft: `${A.value || O.value ? 0 : v.value[Ee].offsetWidth +
|
|
3001
|
-
"max-height": (l.hasNestedContent || l.hasNestedRows) &&
|
|
3002
|
+
paddingLeft: `${A.value || O.value ? 0 : v.value[Ee].offsetWidth + wl}px`,
|
|
3003
|
+
"max-height": (l.hasNestedContent || l.hasNestedRows) && q.value && !((w = q == null ? void 0 : q.value) != null && w.includes("null")) ? q.value : 0
|
|
3002
3004
|
};
|
|
3003
3005
|
});
|
|
3004
3006
|
ye(
|
|
3005
3007
|
() => _.value,
|
|
3006
3008
|
() => {
|
|
3007
3009
|
let w = null;
|
|
3008
|
-
!w && _.value && (w =
|
|
3009
|
-
_.value &&
|
|
3010
|
+
!w && _.value && (w = At(_.value, () => {
|
|
3011
|
+
_.value && ee();
|
|
3010
3012
|
}));
|
|
3011
3013
|
}
|
|
3012
3014
|
);
|
|
3013
|
-
const
|
|
3014
|
-
f.value = !f.value,
|
|
3015
|
+
const Ve = () => {
|
|
3016
|
+
f.value = !f.value, ee(), n("nested-content-toggled", l.rowData);
|
|
3015
3017
|
};
|
|
3016
3018
|
ye(
|
|
3017
3019
|
() => {
|
|
@@ -3019,34 +3021,34 @@ const dl = () => {
|
|
|
3019
3021
|
return (w = l.rowData) == null ? void 0 : w.children;
|
|
3020
3022
|
},
|
|
3021
3023
|
(w, I) => {
|
|
3022
|
-
var te,
|
|
3023
|
-
((
|
|
3024
|
+
var te, ne;
|
|
3025
|
+
((ne = (te = l == null ? void 0 : l.rowData) == null ? void 0 : te.children) == null ? void 0 : ne.length) > 0 && I === void 0 && !f.value && ee();
|
|
3024
3026
|
}
|
|
3025
3027
|
);
|
|
3026
|
-
const
|
|
3027
|
-
|
|
3028
|
+
const Ie = Pe(
|
|
3029
|
+
ot,
|
|
3028
3030
|
C(() => !1)
|
|
3029
|
-
),
|
|
3031
|
+
), Be = (w) => l.highlightedRows.includes(l.getDataItemId(w)), r = (w) => l.selectedItems.includes(l.getDataItemId(w)), V = (w, I) => ({
|
|
3030
3032
|
"b-data-grid-row-container__row--disabled": l.isDataItemDisabled(w),
|
|
3031
3033
|
"b-data-grid-row-container__row--row-clicks-enabled": l.allowRowClicks,
|
|
3032
|
-
"b-data-grid-row-container__row--highlighted":
|
|
3033
|
-
"b-data-grid-row-container__row--selected":
|
|
3034
|
+
"b-data-grid-row-container__row--highlighted": Be(w),
|
|
3035
|
+
"b-data-grid-row-container__row--selected": r(w),
|
|
3034
3036
|
"b-data-grid-row-container__row--hovered": l.hoveredRowIndex === I,
|
|
3035
3037
|
"b-data-grid-row-container__row--is-last-child": l.isRowLastChild && !f.value,
|
|
3036
3038
|
"b-data-grid-row-container__row--nested-row": l.isNestedRow,
|
|
3037
3039
|
"b-data-grid-row-container__row--zebra": l.isRowEven
|
|
3038
|
-
}),
|
|
3040
|
+
}), U = (w, I) => ({
|
|
3039
3041
|
"b-data-grid-row-container__row-cell-set--frozen": w && !I,
|
|
3040
3042
|
[`b-data-grid-row-container__row-cell-set--${Me.OVERFLOW_SHADOW_LEFT}`]: !I && w && l.hasLeftOverflow,
|
|
3041
3043
|
"b-data-grid-row-container__row-cell-set--frozen-separator": !I && w && l.showFrozenColumnsSeparator,
|
|
3042
3044
|
"b-data-grid-row-container__row-cell-set--unfrozen": !w || I,
|
|
3043
3045
|
"b-data-grid-row-container__row-cell-set--is-measuring": l.isMeasuringColumnWidths
|
|
3044
|
-
}),
|
|
3046
|
+
}), ve = C(() => ({
|
|
3045
3047
|
"b-data-grid-row-container__row-nested-slot--is-last-child": l.isRowLastChild,
|
|
3046
3048
|
"b-data-grid-row-container__row-nested-slot": !A.value && l.shouldShowNestedContent(l.rowData)
|
|
3047
|
-
})), Ce = C(() => ({
|
|
3048
|
-
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": D.value
|
|
3049
3049
|
})), me = C(() => ({
|
|
3050
|
+
"b-data-grid-row-container__row-actions-container--row-actions-menu-open": D.value
|
|
3051
|
+
})), Ge = C(() => ({
|
|
3050
3052
|
minWidth: `${l.rowActionsMaximumWidth}px`
|
|
3051
3053
|
}));
|
|
3052
3054
|
return s({
|
|
@@ -3054,32 +3056,32 @@ const dl = () => {
|
|
|
3054
3056
|
rowActionsRef: b
|
|
3055
3057
|
}), (w, I) => {
|
|
3056
3058
|
var te;
|
|
3057
|
-
return
|
|
3058
|
-
(
|
|
3059
|
+
return d(), p("div", Zs, [
|
|
3060
|
+
(d(), p("div", se(y.value, {
|
|
3059
3061
|
id: (te = e.rowId) == null ? void 0 : te.toString(),
|
|
3060
3062
|
key: e.rowIndex,
|
|
3061
|
-
class: ["b-data-grid-row-container__row",
|
|
3063
|
+
class: ["b-data-grid-row-container__row", V(e.rowData, e.rowIndex)],
|
|
3062
3064
|
role: "row",
|
|
3063
3065
|
"aria-selected": T(e.rowData),
|
|
3064
|
-
onClick:
|
|
3066
|
+
onClick: x,
|
|
3065
3067
|
onKeyup: [
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
+
zt(x, ["enter"]),
|
|
3069
|
+
zt(x, ["space"])
|
|
3068
3070
|
]
|
|
3069
3071
|
}), [
|
|
3070
|
-
(
|
|
3071
|
-
|
|
3072
|
-
key: `data-grid-rows-${
|
|
3073
|
-
class:
|
|
3074
|
-
"data-testid": `data-grid-${
|
|
3072
|
+
(d(!0), p(_e, null, Ae(e.columnSets, ({ columnSet: ne, id: ce, isFrozenColumns: Z }, Re) => (d(), p(_e, null, [
|
|
3073
|
+
ne != null && ne.length ? (d(), p("div", {
|
|
3074
|
+
key: `data-grid-rows-${ce}`,
|
|
3075
|
+
class: de(["b-data-grid-row-container__cells", U(Z, o(Ie))]),
|
|
3076
|
+
"data-testid": `data-grid-${ce}-rows`
|
|
3075
3077
|
}, [
|
|
3076
|
-
(
|
|
3077
|
-
key: `cell-${
|
|
3078
|
+
(d(!0), p(_e, null, Ae(ne, (xe, ht) => (d(), H(xs, {
|
|
3079
|
+
key: `cell-${xe.field}`,
|
|
3078
3080
|
ref_for: !0,
|
|
3079
|
-
ref: (
|
|
3081
|
+
ref: ($e) => a($e, xe.field),
|
|
3080
3082
|
class: "b-data-grid-row-container__cell",
|
|
3081
|
-
column:
|
|
3082
|
-
"column-set-index":
|
|
3083
|
+
column: xe,
|
|
3084
|
+
"column-set-index": Re,
|
|
3083
3085
|
"col-index": ht,
|
|
3084
3086
|
"column-sets": e.columnSets,
|
|
3085
3087
|
condensed: e.condensed,
|
|
@@ -3087,8 +3089,8 @@ const dl = () => {
|
|
|
3087
3089
|
"dragging-events-for-row-cell": e.draggingEventsForRowCell,
|
|
3088
3090
|
"get-data-item-id": e.getDataItemId,
|
|
3089
3091
|
"has-zebra-background": e.isRowEven,
|
|
3090
|
-
"is-highlighted":
|
|
3091
|
-
"is-selected":
|
|
3092
|
+
"is-highlighted": Be(e.rowData),
|
|
3093
|
+
"is-selected": r(e.rowData),
|
|
3092
3094
|
"hovered-over-column-state": e.hoveredOverColumnState,
|
|
3093
3095
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
3094
3096
|
"is-measuring-column-widths": e.isMeasuringColumnWidths,
|
|
@@ -3100,92 +3102,92 @@ const dl = () => {
|
|
|
3100
3102
|
"selection-is-indeterminate": m.value,
|
|
3101
3103
|
selectable: e.selectable,
|
|
3102
3104
|
"selected-items": e.selectedItems,
|
|
3103
|
-
onCellHovered: I[0] || (I[0] = (
|
|
3104
|
-
onCellFocus: I[1] || (I[1] = (
|
|
3105
|
-
onOnFrozenColumnsKeyPress: I[2] || (I[2] = (
|
|
3106
|
-
onSelectRow:
|
|
3107
|
-
onNestedContentToggled:
|
|
3108
|
-
},
|
|
3109
|
-
Ae(o(t), (
|
|
3110
|
-
name:
|
|
3111
|
-
fn: G((
|
|
3112
|
-
ze(w.$slots,
|
|
3105
|
+
onCellHovered: I[0] || (I[0] = ($e) => n("cell-hovered", $e)),
|
|
3106
|
+
onCellFocus: I[1] || (I[1] = ($e) => n("cell-focus", $e)),
|
|
3107
|
+
onOnFrozenColumnsKeyPress: I[2] || (I[2] = ($e) => n("on-frozen-columns-key-press", $e)),
|
|
3108
|
+
onSelectRow: j,
|
|
3109
|
+
onNestedContentToggled: Ve
|
|
3110
|
+
}, Qe({ _: 2 }, [
|
|
3111
|
+
Ae(o(t), ($e, tt) => ({
|
|
3112
|
+
name: tt,
|
|
3113
|
+
fn: G((Ke) => [
|
|
3114
|
+
ze(w.$slots, tt, se({ ref_for: !0 }, Ke), void 0, !0)
|
|
3113
3115
|
])
|
|
3114
3116
|
}))
|
|
3115
3117
|
]), 1032, ["column", "column-set-index", "col-index", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-zebra-background", "is-highlighted", "is-selected", "hovered-over-column-state", "is-data-item-disabled", "is-measuring-column-widths", "is-nested-content-expanded", "nested-content", "nested-rows-element-ids", "row-data", "row-index", "selection-is-indeterminate", "selectable", "selected-items"]))), 128))
|
|
3116
3118
|
], 10, qs)) : W("", !0),
|
|
3117
|
-
!
|
|
3118
|
-
key: `data-grid-row-actions-${
|
|
3119
|
+
!Z && e.rowActions ? (d(), p("div", {
|
|
3120
|
+
key: `data-grid-row-actions-${ce}`,
|
|
3119
3121
|
ref_for: !0,
|
|
3120
3122
|
ref_key: "rowActionsRef",
|
|
3121
3123
|
ref: b,
|
|
3122
|
-
"aria-colindex":
|
|
3123
|
-
class:
|
|
3124
|
-
style: Fe(
|
|
3125
|
-
"data-cellindex":
|
|
3124
|
+
"aria-colindex": we().toString(),
|
|
3125
|
+
class: de(["b-data-grid-row-container__row-actions-container", me.value]),
|
|
3126
|
+
style: Fe(Ge.value),
|
|
3127
|
+
"data-cellindex": R(),
|
|
3126
3128
|
tabindex: "-1",
|
|
3127
3129
|
role: "gridcell",
|
|
3128
|
-
onFocus:
|
|
3129
|
-
"on:focusOut":
|
|
3130
|
-
onKeydown:
|
|
3130
|
+
onFocus: ue,
|
|
3131
|
+
"on:focusOut": oe,
|
|
3132
|
+
onKeydown: X
|
|
3131
3133
|
}, [
|
|
3132
|
-
Y(
|
|
3134
|
+
Y(Ll, {
|
|
3133
3135
|
class: "b-data-grid-row-container__row-actions",
|
|
3134
3136
|
"disable-arrow-down-opening-menu": "",
|
|
3135
3137
|
"cell-actions": e.rowActions,
|
|
3136
3138
|
"has-right-overflow": e.hasRightOverflow,
|
|
3137
3139
|
"row-data-item": e.rowData,
|
|
3138
3140
|
"teleport-menu": "",
|
|
3139
|
-
onMenuOpen:
|
|
3140
|
-
onMenuClose:
|
|
3141
|
+
onMenuOpen: be,
|
|
3142
|
+
onMenuClose: ge
|
|
3141
3143
|
}, null, 8, ["cell-actions", "has-right-overflow", "row-data-item"])
|
|
3142
3144
|
], 46, Ks)) : W("", !0)
|
|
3143
3145
|
], 64))), 256))
|
|
3144
3146
|
], 16, js)),
|
|
3145
|
-
e.hasNestedContent && o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && c.value ? (
|
|
3147
|
+
e.hasNestedContent && o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) || e.hasNestedRows && c.value ? (d(), H(gl, {
|
|
3146
3148
|
key: `${e.rowIndex}-nest-content`,
|
|
3147
3149
|
name: "b-data-grid-row-container__animation--nested-content"
|
|
3148
3150
|
}, {
|
|
3149
3151
|
default: G(() => [
|
|
3150
|
-
f.value && A.value ? (
|
|
3152
|
+
f.value && A.value ? (d(), p("div", {
|
|
3151
3153
|
key: 0,
|
|
3152
|
-
class:
|
|
3154
|
+
class: de(ve.value),
|
|
3153
3155
|
"data-testid": "nested-content-container",
|
|
3154
|
-
style: Fe(
|
|
3156
|
+
style: Fe(Q.value),
|
|
3155
3157
|
role: "presentation"
|
|
3156
3158
|
}, [
|
|
3157
3159
|
L("div", {
|
|
3158
3160
|
ref_key: "nestedContentRef",
|
|
3159
3161
|
ref: _
|
|
3160
3162
|
}, [
|
|
3161
|
-
O.value ? (
|
|
3163
|
+
O.value ? (d(), p("div", Ys, [
|
|
3162
3164
|
Y(o(ct))
|
|
3163
3165
|
])) : W("", !0),
|
|
3164
|
-
(
|
|
3165
|
-
id: g(
|
|
3166
|
-
key: `child-${
|
|
3167
|
-
"row-data":
|
|
3168
|
-
"row-index":
|
|
3166
|
+
(d(!0), p(_e, null, Ae(e.rowData.children, (ne, ce) => (d(), H(Tl, se({ ref_for: !0 }, l, {
|
|
3167
|
+
id: g(ce),
|
|
3168
|
+
key: `child-${ce}`,
|
|
3169
|
+
"row-data": ne,
|
|
3170
|
+
"row-index": ce,
|
|
3169
3171
|
"row-set-size": e.rowData.children.length,
|
|
3170
3172
|
"is-nested-row": "",
|
|
3171
|
-
onCellHovered: I[3] || (I[3] = (
|
|
3172
|
-
onCellFocus: I[4] || (I[4] = (
|
|
3173
|
-
onRowClick:
|
|
3174
|
-
onOnFrozenColumnsKeyPress: I[
|
|
3175
|
-
onSelectRow: (
|
|
3176
|
-
}),
|
|
3177
|
-
Ae(o(t), (
|
|
3178
|
-
name:
|
|
3179
|
-
fn: G((
|
|
3180
|
-
ze(w.$slots,
|
|
3173
|
+
onCellHovered: I[3] || (I[3] = (Z) => n("cell-hovered", Z)),
|
|
3174
|
+
onCellFocus: I[4] || (I[4] = (Z) => n("cell-focus", Z)),
|
|
3175
|
+
onRowClick: B,
|
|
3176
|
+
onOnFrozenColumnsKeyPress: I[5] || (I[5] = (Z) => n("on-frozen-columns-key-press", Z)),
|
|
3177
|
+
onSelectRow: (Z) => le(ne, Z)
|
|
3178
|
+
}), Qe({ _: 2 }, [
|
|
3179
|
+
Ae(o(t), (Z, Re) => ({
|
|
3180
|
+
name: Re,
|
|
3181
|
+
fn: G((xe) => [
|
|
3182
|
+
ze(w.$slots, Re, se({ ref_for: !0 }, xe), void 0, !0)
|
|
3181
3183
|
])
|
|
3182
3184
|
}))
|
|
3183
3185
|
]), 1040, ["id", "row-data", "row-index", "row-set-size", "onSelectRow"]))), 128))
|
|
3184
3186
|
], 512)
|
|
3185
|
-
], 6)) : f.value ? (
|
|
3186
|
-
class:
|
|
3187
|
+
], 6)) : f.value ? (d(), p("div", se({ key: 1 }, M.value, {
|
|
3188
|
+
class: ve.value,
|
|
3187
3189
|
"data-testid": "nested-content-container",
|
|
3188
|
-
style:
|
|
3190
|
+
style: Q.value,
|
|
3189
3191
|
role: "row",
|
|
3190
3192
|
tabindex: "-1"
|
|
3191
3193
|
}), [
|
|
@@ -3194,9 +3196,9 @@ const dl = () => {
|
|
|
3194
3196
|
ref: _,
|
|
3195
3197
|
role: "gridcell"
|
|
3196
3198
|
}, [
|
|
3197
|
-
O.value ? (
|
|
3199
|
+
O.value ? (d(), p("div", Js, [
|
|
3198
3200
|
Y(o(ct))
|
|
3199
|
-
])) : o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (
|
|
3201
|
+
])) : o(u)("nested-slot") && e.shouldShowNestedContent(e.rowData) ? (d(), p("div", Xs, [
|
|
3200
3202
|
ze(w.$slots, "nested-slot", { item: e.rowData }, void 0, !0)
|
|
3201
3203
|
])) : W("", !0)
|
|
3202
3204
|
], 512)
|
|
@@ -3207,22 +3209,22 @@ const dl = () => {
|
|
|
3207
3209
|
]);
|
|
3208
3210
|
};
|
|
3209
3211
|
}
|
|
3210
|
-
}),
|
|
3211
|
-
let
|
|
3212
|
+
}), Tl = /* @__PURE__ */ re(ea, [["__scopeId", "data-v-a734138e"]]);
|
|
3213
|
+
let dl = 0;
|
|
3212
3214
|
const ta = {
|
|
3213
3215
|
beforeCreate() {
|
|
3214
|
-
this.uuid =
|
|
3216
|
+
this.uuid = dl.toString(), dl += 1;
|
|
3215
3217
|
}
|
|
3216
3218
|
}, la = { key: 0 }, na = ["clip-path"], oa = ["id"];
|
|
3217
3219
|
function sa(e, s, i, t, u, l) {
|
|
3218
|
-
return
|
|
3220
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
3219
3221
|
class: "ui-assets-icons-16",
|
|
3220
3222
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3221
3223
|
width: "16",
|
|
3222
3224
|
height: "16",
|
|
3223
3225
|
fill: "none"
|
|
3224
3226
|
}), [
|
|
3225
|
-
e.$attrs["svg-title"] ? (
|
|
3227
|
+
e.$attrs["svg-title"] ? (d(), p("title", la, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3226
3228
|
L("g", {
|
|
3227
3229
|
"clip-path": "url(#uia-ui-assets/icons-16-warning_circle_fill__a" + e.uuid + ")"
|
|
3228
3230
|
}, s[0] || (s[0] = [
|
|
@@ -3244,7 +3246,7 @@ function sa(e, s, i, t, u, l) {
|
|
|
3244
3246
|
])
|
|
3245
3247
|
], 16);
|
|
3246
3248
|
}
|
|
3247
|
-
const aa = /* @__PURE__ */
|
|
3249
|
+
const aa = /* @__PURE__ */ re(ta, [["render", sa]]), ia = ["aria-label"], ra = {}, da = /* @__PURE__ */ Ne({
|
|
3248
3250
|
...ra,
|
|
3249
3251
|
__name: "data-grid-static-icon",
|
|
3250
3252
|
props: {
|
|
@@ -3256,35 +3258,35 @@ const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3256
3258
|
const s = e, i = C(() => {
|
|
3257
3259
|
switch (s.variant) {
|
|
3258
3260
|
case "checkmark":
|
|
3259
|
-
return
|
|
3261
|
+
return yn;
|
|
3260
3262
|
case "warning":
|
|
3261
|
-
return
|
|
3263
|
+
return Rn;
|
|
3262
3264
|
case "error":
|
|
3263
3265
|
return aa;
|
|
3264
3266
|
case "cross":
|
|
3265
|
-
return
|
|
3267
|
+
return vl;
|
|
3266
3268
|
case "no-value":
|
|
3267
|
-
return
|
|
3269
|
+
return Pt;
|
|
3268
3270
|
default:
|
|
3269
|
-
return
|
|
3271
|
+
return Pt;
|
|
3270
3272
|
}
|
|
3271
3273
|
}), t = C(() => ({
|
|
3272
3274
|
"b-data-grid-static-icon--colored": s.colored && s.variant !== "no-value"
|
|
3273
|
-
})), u = C(() => `b-data-grid-static-icon__${s.variant}`), l = C(() =>
|
|
3274
|
-
return (n, v) =>
|
|
3275
|
+
})), u = C(() => `b-data-grid-static-icon__${s.variant}`), l = C(() => Tn.AUTO);
|
|
3276
|
+
return (n, v) => nt((d(), p("div", {
|
|
3275
3277
|
"aria-label": n.tooltipText,
|
|
3276
|
-
class:
|
|
3278
|
+
class: de(["b-data-grid-static-icon", t.value]),
|
|
3277
3279
|
tabindex: "0"
|
|
3278
3280
|
}, [
|
|
3279
|
-
(
|
|
3280
|
-
class:
|
|
3281
|
+
(d(), H(Xe(i.value), {
|
|
3282
|
+
class: de(u.value),
|
|
3281
3283
|
"svg-title": n.tooltipText
|
|
3282
3284
|
}, null, 8, ["class", "svg-title"]))
|
|
3283
3285
|
], 10, ia)), [
|
|
3284
|
-
[o(
|
|
3286
|
+
[o(wt), n.tooltipText, l.value]
|
|
3285
3287
|
]);
|
|
3286
3288
|
}
|
|
3287
|
-
}), Ii = /* @__PURE__ */
|
|
3289
|
+
}), Ii = /* @__PURE__ */ re(da, [["__scopeId", "data-v-b8c9e150"]]), Ol = {
|
|
3288
3290
|
"de-DE": {
|
|
3289
3291
|
numberResults: "1 Ergebnis | {count} Ergebnisse"
|
|
3290
3292
|
},
|
|
@@ -3304,8 +3306,8 @@ const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3304
3306
|
numberResults: "1 resultado | {count} resultados"
|
|
3305
3307
|
}
|
|
3306
3308
|
}, ua = { class: "b-data-grid-summary-cell" }, ca = { class: "b-data-grid-summary-cell__list" }, fa = {
|
|
3307
|
-
i18n: { messages:
|
|
3308
|
-
}, ga = /* @__PURE__ */
|
|
3309
|
+
i18n: { messages: Ol }
|
|
3310
|
+
}, ga = /* @__PURE__ */ Ne({
|
|
3309
3311
|
...fa,
|
|
3310
3312
|
__name: "data-grid-summary-cell",
|
|
3311
3313
|
props: {
|
|
@@ -3316,7 +3318,7 @@ const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3316
3318
|
tooltipText: { default: null }
|
|
3317
3319
|
},
|
|
3318
3320
|
setup(e) {
|
|
3319
|
-
const { tc: s } = We({ messages:
|
|
3321
|
+
const { tc: s } = We({ messages: Ol }), i = e, t = E(), u = C(() => ({
|
|
3320
3322
|
popoverPosition: "right",
|
|
3321
3323
|
// Setting popover defaults, but they are overriden if used passes dashedUnderline prop
|
|
3322
3324
|
popoverTitle: i.label,
|
|
@@ -3332,20 +3334,20 @@ const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3332
3334
|
}), n = (_) => i.searchTerm && _.toLowerCase().includes(l.value) ? "mark" : "span", v = C(() => i.searchTerm ? i.items.filter((_) => _.toLowerCase().includes(l.value)).length : 0), f = C(
|
|
3333
3335
|
() => i.tooltipText ?? (v.value > 0 ? s("numberResults", v.value) : "")
|
|
3334
3336
|
);
|
|
3335
|
-
return (_, b) => (
|
|
3336
|
-
_.items.length > 1 ? (
|
|
3337
|
+
return (_, b) => (d(), p("div", ua, [
|
|
3338
|
+
_.items.length > 1 ? (d(), H(o(On), se({
|
|
3337
3339
|
key: 0,
|
|
3338
3340
|
ref_key: "dashedUnderlineRef",
|
|
3339
3341
|
ref: t
|
|
3340
3342
|
}, u.value), {
|
|
3341
3343
|
"popover-content": G(() => [
|
|
3342
|
-
Y(o(
|
|
3344
|
+
Y(o(qe), { class: "b-data-grid-summary-cell__popover-content" }, {
|
|
3343
3345
|
default: G(() => [
|
|
3344
3346
|
L("ul", ca, [
|
|
3345
|
-
(
|
|
3346
|
-
(
|
|
3347
|
+
(d(!0), p(_e, null, Ae(_.items, (N) => (d(), p("li", { key: N }, [
|
|
3348
|
+
(d(), H(Xe(n(N)), null, {
|
|
3347
3349
|
default: G(() => [
|
|
3348
|
-
|
|
3350
|
+
fe(J(N), 1)
|
|
3349
3351
|
]),
|
|
3350
3352
|
_: 2
|
|
3351
3353
|
}, 1024))
|
|
@@ -3356,24 +3358,24 @@ const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3356
3358
|
})
|
|
3357
3359
|
]),
|
|
3358
3360
|
default: G(() => [
|
|
3359
|
-
|
|
3361
|
+
fe(J(_.label) + " ", 1)
|
|
3360
3362
|
]),
|
|
3361
3363
|
_: 1
|
|
3362
|
-
}, 16)) : (
|
|
3363
|
-
|
|
3364
|
+
}, 16)) : (d(), p(_e, { key: 1 }, [
|
|
3365
|
+
fe(J(_.items[0]), 1)
|
|
3364
3366
|
], 64)),
|
|
3365
|
-
t.value && f.value ? (
|
|
3367
|
+
t.value && f.value ? (d(), H(o(Ln), {
|
|
3366
3368
|
key: 2,
|
|
3367
3369
|
content: f.value,
|
|
3368
3370
|
"disabled-focus-trap": !0,
|
|
3369
|
-
position: o(
|
|
3371
|
+
position: o(An).RIGHT,
|
|
3370
3372
|
"fallback-position": ["left", "bottom"],
|
|
3371
3373
|
"is-shown": !!f.value,
|
|
3372
3374
|
"target-element": t.value
|
|
3373
3375
|
}, null, 8, ["content", "position", "is-shown", "target-element"])) : W("", !0)
|
|
3374
3376
|
]));
|
|
3375
3377
|
}
|
|
3376
|
-
}), $i = /* @__PURE__ */
|
|
3378
|
+
}), $i = /* @__PURE__ */ re(ga, [["__scopeId", "data-v-5ea6289c"]]), va = { class: "b-data-grid-tag-with-text-cell" }, ma = {}, ha = /* @__PURE__ */ Ne({
|
|
3377
3379
|
...ma,
|
|
3378
3380
|
__name: "data-grid-tag-with-text-cell",
|
|
3379
3381
|
props: {
|
|
@@ -3381,61 +3383,62 @@ const aa = /* @__PURE__ */ ue(ta, [["render", sa]]), ia = ["aria-label"], ra = {
|
|
|
3381
3383
|
value: {}
|
|
3382
3384
|
},
|
|
3383
3385
|
setup(e) {
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
Y(
|
|
3386
|
+
const s = e;
|
|
3387
|
+
return (i, t) => (d(), p("div", va, [
|
|
3388
|
+
Y(Nn, pn(En(s.tag)), null, 16),
|
|
3389
|
+
Y(qe, { el: "span" }, {
|
|
3387
3390
|
default: G(() => [
|
|
3388
|
-
|
|
3391
|
+
fe(J(i.value), 1)
|
|
3389
3392
|
]),
|
|
3390
3393
|
_: 1
|
|
3391
3394
|
})
|
|
3392
3395
|
]));
|
|
3393
3396
|
}
|
|
3394
|
-
}), Di = /* @__PURE__ */
|
|
3395
|
-
let
|
|
3397
|
+
}), Di = /* @__PURE__ */ re(ha, [["__scopeId", "data-v-b8837a72"]]);
|
|
3398
|
+
let ul = 0;
|
|
3396
3399
|
const Ca = {
|
|
3397
3400
|
beforeCreate() {
|
|
3398
|
-
this.uuid =
|
|
3401
|
+
this.uuid = ul.toString(), ul += 1;
|
|
3399
3402
|
}
|
|
3400
3403
|
}, _a = { key: 0 };
|
|
3401
3404
|
function ba(e, s, i, t, u, l) {
|
|
3402
|
-
return
|
|
3405
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
3403
3406
|
class: "ui-assets-icons-16",
|
|
3404
3407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3405
3408
|
width: "16",
|
|
3406
3409
|
height: "16",
|
|
3407
3410
|
fill: "none"
|
|
3408
3411
|
}), [
|
|
3409
|
-
e.$attrs["svg-title"] ? (
|
|
3412
|
+
e.$attrs["svg-title"] ? (d(), p("title", _a, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3410
3413
|
s[0] || (s[0] = L("path", {
|
|
3411
3414
|
fill: "#001222",
|
|
3412
3415
|
d: "M12.0605 7L11 8.06055L8.75 5.81055V12.75H7.25V5.81055L5 8.06055L3.93945 7L8 2.93945L12.0605 7Z"
|
|
3413
3416
|
}, null, -1))
|
|
3414
3417
|
], 16);
|
|
3415
3418
|
}
|
|
3416
|
-
const wa = /* @__PURE__ */
|
|
3417
|
-
let
|
|
3419
|
+
const wa = /* @__PURE__ */ re(Ca, [["render", ba]]);
|
|
3420
|
+
let cl = 0;
|
|
3418
3421
|
const Sa = {
|
|
3419
3422
|
beforeCreate() {
|
|
3420
|
-
this.uuid =
|
|
3423
|
+
this.uuid = cl.toString(), cl += 1;
|
|
3421
3424
|
}
|
|
3422
3425
|
}, pa = { key: 0 };
|
|
3423
3426
|
function Ea(e, s, i, t, u, l) {
|
|
3424
|
-
return
|
|
3427
|
+
return d(), p("svg", se({ role: "img" }, e.$attrs, {
|
|
3425
3428
|
class: "ui-assets-icons-16",
|
|
3426
3429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
3427
3430
|
width: "16",
|
|
3428
3431
|
height: "16",
|
|
3429
3432
|
fill: "none"
|
|
3430
3433
|
}), [
|
|
3431
|
-
e.$attrs["svg-title"] ? (
|
|
3434
|
+
e.$attrs["svg-title"] ? (d(), p("title", pa, J(e.$attrs["svg-title"]), 1)) : W("", !0),
|
|
3432
3435
|
s[0] || (s[0] = L("path", {
|
|
3433
3436
|
fill: "#001222",
|
|
3434
3437
|
d: "M8.75 10.1895L11 7.93945L12.0605 9L8 13.0605L3.93945 9L5 7.93945L7.25 10.1895V3.25H8.75V10.1895Z"
|
|
3435
3438
|
}, null, -1))
|
|
3436
3439
|
], 16);
|
|
3437
3440
|
}
|
|
3438
|
-
const ya = /* @__PURE__ */
|
|
3441
|
+
const ya = /* @__PURE__ */ re(Sa, [["render", Ea]]), Nl = {
|
|
3439
3442
|
"en-US": {
|
|
3440
3443
|
decrease: "decrease",
|
|
3441
3444
|
increase: "increase"
|
|
@@ -3449,8 +3452,8 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3449
3452
|
increase: "aumentar"
|
|
3450
3453
|
}
|
|
3451
3454
|
}, Ra = {
|
|
3452
|
-
i18n: { messages:
|
|
3453
|
-
}, La = /* @__PURE__ */
|
|
3455
|
+
i18n: { messages: Nl }
|
|
3456
|
+
}, La = /* @__PURE__ */ Ne({
|
|
3454
3457
|
...Ra,
|
|
3455
3458
|
__name: "data-grid-trend-cell",
|
|
3456
3459
|
props: {
|
|
@@ -3459,7 +3462,7 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3459
3462
|
value: {}
|
|
3460
3463
|
},
|
|
3461
3464
|
setup(e) {
|
|
3462
|
-
const { t: s, locale: i } = We({ messages:
|
|
3465
|
+
const { t: s, locale: i } = We({ messages: Nl }), t = e, u = C(() => ({
|
|
3463
3466
|
[`b-data-grid-trend-cell--${t.variant}`]: t.variant !== "black"
|
|
3464
3467
|
})), l = C(() => {
|
|
3465
3468
|
switch (t.direction) {
|
|
@@ -3489,22 +3492,22 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3489
3492
|
// Cap it reasonably to avoid float artifacts
|
|
3490
3493
|
}).format(f / 100);
|
|
3491
3494
|
});
|
|
3492
|
-
return (f, _) => (
|
|
3493
|
-
class:
|
|
3495
|
+
return (f, _) => (d(), p("div", {
|
|
3496
|
+
class: de(["b-data-grid-trend-cell", u.value])
|
|
3494
3497
|
}, [
|
|
3495
|
-
n.value ? (
|
|
3498
|
+
n.value ? (d(), H(Xe(n.value), {
|
|
3496
3499
|
key: 0,
|
|
3497
3500
|
"svg-title": l.value
|
|
3498
3501
|
}, null, 8, ["svg-title"])) : W("", !0),
|
|
3499
|
-
Y(o(
|
|
3502
|
+
Y(o(qe), { el: "span" }, {
|
|
3500
3503
|
default: G(() => [
|
|
3501
|
-
|
|
3504
|
+
fe(J(v.value), 1)
|
|
3502
3505
|
]),
|
|
3503
3506
|
_: 1
|
|
3504
3507
|
})
|
|
3505
3508
|
], 2));
|
|
3506
3509
|
}
|
|
3507
|
-
}), ki = /* @__PURE__ */
|
|
3510
|
+
}), ki = /* @__PURE__ */ re(La, [["__scopeId", "data-v-08286f85"]]), Aa = ["aria-busy"], Ta = ["aria-controls", "aria-label"], Oa = {
|
|
3508
3511
|
key: 1,
|
|
3509
3512
|
class: "b-data-grid__header"
|
|
3510
3513
|
}, Na = ["id", "role", "aria-rowcount", "aria-colcount", "aria-label"], Ia = {
|
|
@@ -3523,7 +3526,7 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3523
3526
|
}, Ma = {
|
|
3524
3527
|
i18n: { messages: mt },
|
|
3525
3528
|
name: "bento-data-grid"
|
|
3526
|
-
}, Fa = /* @__PURE__ */
|
|
3529
|
+
}, Fa = /* @__PURE__ */ Ne({
|
|
3527
3530
|
...Ma,
|
|
3528
3531
|
props: {
|
|
3529
3532
|
/**
|
|
@@ -3611,7 +3614,7 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3611
3614
|
* {@see BentoFilterValues}
|
|
3612
3615
|
*/
|
|
3613
3616
|
filterValues: {
|
|
3614
|
-
type:
|
|
3617
|
+
type: Array,
|
|
3615
3618
|
default: () => []
|
|
3616
3619
|
},
|
|
3617
3620
|
/**
|
|
@@ -3642,7 +3645,7 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3642
3645
|
* Filter bar search term useful to filter all the data by text
|
|
3643
3646
|
*/
|
|
3644
3647
|
filterSearchTerm: {
|
|
3645
|
-
type:
|
|
3648
|
+
type: String,
|
|
3646
3649
|
default: void 0
|
|
3647
3650
|
},
|
|
3648
3651
|
/**
|
|
@@ -3861,10 +3864,10 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3861
3864
|
z.CELL_FOCUS
|
|
3862
3865
|
],
|
|
3863
3866
|
setup(e, { expose: s, emit: i }) {
|
|
3864
|
-
const t = e, u =
|
|
3867
|
+
const t = e, u = Rt(), l = Lt(u), n = E(null), v = E(), f = E({}), _ = E(ft("data-grid")), b = E(null), N = E(null), D = E(null), S = E(null), c = E(null), A = E(null), {
|
|
3865
3868
|
allowColumnDragAndDrop: O,
|
|
3866
3869
|
columns: k,
|
|
3867
|
-
columnPanel:
|
|
3870
|
+
columnPanel: y,
|
|
3868
3871
|
data: M,
|
|
3869
3872
|
lazyLoadType: h,
|
|
3870
3873
|
loading: F,
|
|
@@ -3874,16 +3877,16 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3874
3877
|
selection: T,
|
|
3875
3878
|
selectableAcrossPages: B,
|
|
3876
3879
|
stickyPagination: x,
|
|
3877
|
-
outline:
|
|
3880
|
+
outline: j,
|
|
3878
3881
|
pagination: le,
|
|
3879
|
-
zebraRows:
|
|
3880
|
-
} =
|
|
3881
|
-
dt(
|
|
3882
|
-
const
|
|
3883
|
-
|
|
3884
|
-
typeof window < "u" && (
|
|
3885
|
-
}), dt(vt,
|
|
3886
|
-
const
|
|
3882
|
+
zebraRows: be
|
|
3883
|
+
} = yt(t), ge = E(-1), { t: ue } = We({ messages: mt }), oe = C(() => U.value.filter(($) => $.frozen).length), X = 550, we = E(), { width: R } = Fn(we), ee = C(() => R.value <= X);
|
|
3884
|
+
dt(ot, ee);
|
|
3885
|
+
const q = E(!1);
|
|
3886
|
+
et(() => {
|
|
3887
|
+
typeof window < "u" && (q.value = "ontouchstart" in window || (navigator == null ? void 0 : navigator.maxTouchPoints) > 0);
|
|
3888
|
+
}), dt(vt, q);
|
|
3889
|
+
const Q = Pe(
|
|
3887
3890
|
Mn,
|
|
3888
3891
|
() => ({
|
|
3889
3892
|
additionalContentSlotRef: E(null),
|
|
@@ -3892,202 +3895,202 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
3892
3895
|
stickyTabs: E(!1),
|
|
3893
3896
|
tabsRef: E(null)
|
|
3894
3897
|
})
|
|
3895
|
-
), { additionalContentSlotRef: Ve, isDataGridTemplate:
|
|
3898
|
+
), { additionalContentSlotRef: Ve, isDataGridTemplate: Ie, stickyTabs: Be, tabsRef: r, stickyAdditionalContent: V } = Q(), {
|
|
3896
3899
|
columnDefs: U,
|
|
3897
|
-
onColumnWidthOverride:
|
|
3900
|
+
onColumnWidthOverride: ve,
|
|
3898
3901
|
gridRowWidthStyle: me,
|
|
3899
|
-
isMeasuringColumnWidths:
|
|
3900
|
-
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth:
|
|
3901
|
-
columns:
|
|
3902
|
-
totalWidthOfAllColumns:
|
|
3903
|
-
rowActionsMaxWidth:
|
|
3902
|
+
isMeasuringColumnWidths: Ge,
|
|
3903
|
+
isTotalWidthOfColumnsTakingUpAllAvailableGridWidth: w,
|
|
3904
|
+
columns: I,
|
|
3905
|
+
totalWidthOfAllColumns: te,
|
|
3906
|
+
rowActionsMaxWidth: ne
|
|
3904
3907
|
} = co(k, M, n, f, b, {
|
|
3905
|
-
hasColumnPanel:
|
|
3908
|
+
hasColumnPanel: y,
|
|
3906
3909
|
hasSelectableColumn: g,
|
|
3907
3910
|
hasSelectableAcrossPages: B,
|
|
3908
3911
|
hasNestedContent: m,
|
|
3909
3912
|
hasNestedRows: a,
|
|
3910
3913
|
allowColumnDragAndDrop: O,
|
|
3911
|
-
isDataGridTemplate:
|
|
3912
|
-
}),
|
|
3913
|
-
($ === z.COLUMNS || $ === z.UPDATE_COLUMNS) && ([
|
|
3914
|
-
},
|
|
3915
|
-
|
|
3914
|
+
isDataGridTemplate: Ie
|
|
3915
|
+
}), ce = i, Z = ($, ...P) => {
|
|
3916
|
+
($ === z.COLUMNS || $ === z.UPDATE_COLUMNS) && ([I.value] = P), ce($, ...P);
|
|
3917
|
+
}, Re = qt(
|
|
3918
|
+
r,
|
|
3916
3919
|
Be,
|
|
3917
3920
|
V,
|
|
3918
3921
|
Ve
|
|
3919
|
-
),
|
|
3920
|
-
() => t.stickyFilters ? `${
|
|
3921
|
-
),
|
|
3922
|
-
() => `${
|
|
3922
|
+
), xe = C(
|
|
3923
|
+
() => t.stickyFilters ? `${Re.value}px` : null
|
|
3924
|
+
), ht = qt(N, bt(t, "stickyFilters")), $e = C(
|
|
3925
|
+
() => `${ht.value + Re.value}px`
|
|
3923
3926
|
), {
|
|
3924
|
-
sortedColumns:
|
|
3925
|
-
columnSets:
|
|
3926
|
-
isOnlyOneVisibleColumn:
|
|
3927
|
+
sortedColumns: tt,
|
|
3928
|
+
columnSets: Ke,
|
|
3929
|
+
isOnlyOneVisibleColumn: Il,
|
|
3927
3930
|
internalZebraRows: Ct,
|
|
3928
|
-
onConfigSettingsColumnsUpdate:
|
|
3929
|
-
onConfigSettingsColumnUpdate:
|
|
3930
|
-
onConfigSettingsCondensedUpdate:
|
|
3931
|
-
onConfigSettingsZebraRowsUpdate:
|
|
3932
|
-
} = _o(U,
|
|
3933
|
-
|
|
3931
|
+
onConfigSettingsColumnsUpdate: $l,
|
|
3932
|
+
onConfigSettingsColumnUpdate: Dl,
|
|
3933
|
+
onConfigSettingsCondensedUpdate: kl,
|
|
3934
|
+
onConfigSettingsZebraRowsUpdate: Ul
|
|
3935
|
+
} = _o(U, be, Z), { hoveredOverColumn: Ml, hoveredOverColumnState: Nt } = wo(
|
|
3936
|
+
Ke,
|
|
3934
3937
|
g,
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
), { draggingColumns:
|
|
3938
|
+
j,
|
|
3939
|
+
w
|
|
3940
|
+
), { draggingColumns: It, draggingEventsForColumns: Fl, draggingEventsForRowCell: zl, onMoveColumnByOffset: Pl } = Co(tt, O, Z), $t = C(
|
|
3938
3941
|
() => {
|
|
3939
3942
|
var $;
|
|
3940
3943
|
return (($ = t.data) == null ? void 0 : $.length) > 0 && !!t.selectableAcrossPages && !!t.pagination && t.pagination.totalCount > 0;
|
|
3941
3944
|
}
|
|
3942
3945
|
), {
|
|
3943
|
-
onAllRowSelect:
|
|
3944
|
-
onRowSelect:
|
|
3945
|
-
onNestedRowSelect:
|
|
3946
|
-
onDeselectAll:
|
|
3947
|
-
allItemsSelectedState:
|
|
3946
|
+
onAllRowSelect: Bl,
|
|
3947
|
+
onRowSelect: Wl,
|
|
3948
|
+
onNestedRowSelect: Vl,
|
|
3949
|
+
onDeselectAll: Dt,
|
|
3950
|
+
allItemsSelectedState: Hl,
|
|
3948
3951
|
selectedItems: _t,
|
|
3949
|
-
selectionState:
|
|
3952
|
+
selectionState: Gl
|
|
3950
3953
|
} = fo(
|
|
3951
3954
|
T,
|
|
3952
|
-
|
|
3955
|
+
Z,
|
|
3953
3956
|
M,
|
|
3954
3957
|
t.getDataItemId,
|
|
3955
3958
|
t.isDataItemDisabled,
|
|
3956
|
-
|
|
3959
|
+
$t,
|
|
3957
3960
|
le
|
|
3958
|
-
),
|
|
3959
|
-
var $, P,
|
|
3961
|
+
), xl = C(() => {
|
|
3962
|
+
var $, P, ie, K;
|
|
3960
3963
|
return {
|
|
3961
3964
|
filtered: (($ = D.value) == null ? void 0 : $.isClearAllVisible) || ((P = D.value) == null ? void 0 : P.isResetAllVisible) || !!t.filterSearchTerm,
|
|
3962
|
-
allRowsVisible: ((
|
|
3965
|
+
allRowsVisible: ((ie = le.value) == null ? void 0 : ie.size) >= ((K = le.value) == null ? void 0 : K.totalCount)
|
|
3963
3966
|
};
|
|
3964
3967
|
}), { navigationInput: st } = vo(
|
|
3965
3968
|
b,
|
|
3966
3969
|
f,
|
|
3967
|
-
|
|
3970
|
+
tt,
|
|
3968
3971
|
g,
|
|
3969
3972
|
C(() => t.rowActions !== void 0),
|
|
3970
|
-
|
|
3971
|
-
), { isLazyLoad:
|
|
3973
|
+
y
|
|
3974
|
+
), { isLazyLoad: Ye, isInfiniteScroll: Zl, verticalScrollPosition: jl, emitLazyLoadEvent: ql } = ho(
|
|
3972
3975
|
h,
|
|
3973
3976
|
c,
|
|
3974
3977
|
n,
|
|
3975
3978
|
F,
|
|
3976
|
-
|
|
3979
|
+
Z
|
|
3977
3980
|
), {
|
|
3978
3981
|
updateScrollPosition: at,
|
|
3979
|
-
updateScrollPositionOnFrozenColumnsNavigation:
|
|
3980
|
-
syncVirtualScrollerWithBody:
|
|
3982
|
+
updateScrollPositionOnFrozenColumnsNavigation: Kl,
|
|
3983
|
+
syncVirtualScrollerWithBody: kt,
|
|
3981
3984
|
hasLeftOverflow: it,
|
|
3982
|
-
hasRightOverflow:
|
|
3983
|
-
horizontalScrollbarConditionalStyles:
|
|
3985
|
+
hasRightOverflow: Ut,
|
|
3986
|
+
horizontalScrollbarConditionalStyles: Yl
|
|
3984
3987
|
} = bo(
|
|
3985
3988
|
n,
|
|
3986
3989
|
v,
|
|
3987
|
-
|
|
3990
|
+
jl,
|
|
3988
3991
|
A,
|
|
3989
3992
|
S,
|
|
3990
|
-
|
|
3993
|
+
te,
|
|
3991
3994
|
{
|
|
3992
|
-
isLazyLoad:
|
|
3995
|
+
isLazyLoad: Ye,
|
|
3993
3996
|
pagination: le,
|
|
3994
3997
|
stickyPagination: x,
|
|
3995
|
-
isDataGridTemplate:
|
|
3998
|
+
isDataGridTemplate: Ie
|
|
3996
3999
|
}
|
|
3997
|
-
),
|
|
4000
|
+
), Jl = () => {
|
|
3998
4001
|
D.value.isClearAllVisible ? D.value.clearAllFilters() : D.value.isResetAllVisible && D.value.resetAllFilters();
|
|
3999
|
-
},
|
|
4002
|
+
}, Xl = C(() => {
|
|
4000
4003
|
var $, P;
|
|
4001
4004
|
return {
|
|
4002
4005
|
...t.emptyState,
|
|
4003
4006
|
variant: (($ = t.emptyState) == null ? void 0 : $.variant) === "embedded" || ((P = t.emptyState) == null ? void 0 : P.variant) === "basic" ? t.emptyState.variant : "basic"
|
|
4004
4007
|
};
|
|
4005
|
-
}),
|
|
4008
|
+
}), Ql = C(() => ({
|
|
4006
4009
|
[`b-data-grid--${Me.OUTLINE}`]: t.outline,
|
|
4007
|
-
[`b-data-grid--${Me.SCROLL}`]: t.fitContent ||
|
|
4010
|
+
[`b-data-grid--${Me.SCROLL}`]: t.fitContent || Ye.value,
|
|
4008
4011
|
[`b-data-grid--${Me.STICKY_FILTERS}`]: t.filters && t.stickyFilters,
|
|
4009
|
-
[`b-data-grid--${Me.OVERFLOW_SHADOW_LEFT}`]: it.value && !
|
|
4010
|
-
[`b-data-grid--${Me.OVERFLOW_SHADOW_RIGHT}`]:
|
|
4012
|
+
[`b-data-grid--${Me.OVERFLOW_SHADOW_LEFT}`]: it.value && !oe.value,
|
|
4013
|
+
[`b-data-grid--${Me.OVERFLOW_SHADOW_RIGHT}`]: Ut.value && t.rowActions === void 0,
|
|
4011
4014
|
[`b-data-grid--${Me.NO_SPACING_TOP}`]: t.noSpacingTop,
|
|
4012
4015
|
[`b-data-grid--${Me.FIT_CONTENT}`]: t.fitContent,
|
|
4013
4016
|
[`b-data-grid--${Me.ZEBRA_ROWS}`]: Ct.value,
|
|
4014
|
-
"b-data-grid--lazy-load":
|
|
4015
|
-
})),
|
|
4017
|
+
"b-data-grid--lazy-load": Ye.value
|
|
4018
|
+
})), en = C(() => ({
|
|
4016
4019
|
"b-data-grid__body--sticky-horizontal-scrollbar": t.stickyHorizontalScrollbar
|
|
4017
|
-
})),
|
|
4018
|
-
"b-data-grid__filters--sticky": !!t.stickyFilters ||
|
|
4019
|
-
})),
|
|
4020
|
-
var $, P,
|
|
4020
|
+
})), tn = C(() => Ke.value.findIndex(($) => $.columnSet.length)), Mt = C(() => !((t.selectable || t.hasNestedContent || t.hasNestedRows) && oe.value === 1) || it.value), ln = C(() => ({
|
|
4021
|
+
"b-data-grid__filters--sticky": !!t.stickyFilters || Ie
|
|
4022
|
+
})), nn = C(() => {
|
|
4023
|
+
var $, P, ie, K, Le, ke;
|
|
4021
4024
|
return {
|
|
4022
|
-
"b-data-grid__pagination--padding-left-unset": ((
|
|
4023
|
-
"b-data-grid__pagination--padding-right-unset": ((ke = (Le = (
|
|
4024
|
-
"b-data-grid__pagination--sticky": !!t.stickyPagination ||
|
|
4025
|
+
"b-data-grid__pagination--padding-left-unset": ((ie = (P = ($ = t.columns) == null ? void 0 : $[0]) == null ? void 0 : P.padding) == null ? void 0 : ie.left) === !1,
|
|
4026
|
+
"b-data-grid__pagination--padding-right-unset": ((ke = (Le = (K = t.columns) == null ? void 0 : K[t.columns.length - 1]) == null ? void 0 : Le.padding) == null ? void 0 : ke.right) === !1,
|
|
4027
|
+
"b-data-grid__pagination--sticky": !!t.stickyPagination || Ie
|
|
4025
4028
|
};
|
|
4026
|
-
}),
|
|
4029
|
+
}), on = ($) => {
|
|
4027
4030
|
const P = $;
|
|
4028
|
-
$ !== null && (P != null && P.columnHeaderRefs) && Object.entries(P == null ? void 0 : P.columnHeaderRefs).forEach(([
|
|
4029
|
-
f.value[
|
|
4031
|
+
$ !== null && (P != null && P.columnHeaderRefs) && Object.entries(P == null ? void 0 : P.columnHeaderRefs).forEach(([ie, K]) => {
|
|
4032
|
+
f.value[ie] = K;
|
|
4030
4033
|
});
|
|
4031
|
-
},
|
|
4032
|
-
var
|
|
4033
|
-
const
|
|
4034
|
-
if ($ !== null &&
|
|
4035
|
-
const
|
|
4036
|
-
Object.entries(
|
|
4034
|
+
}, sn = ($, P) => {
|
|
4035
|
+
var K, Le, ke, Ze;
|
|
4036
|
+
const ie = $;
|
|
4037
|
+
if ($ !== null && ie != null && ie.gridcellRefs) {
|
|
4038
|
+
const De = t.rowActions !== void 0 && (ie == null ? void 0 : ie.rowActionsRef);
|
|
4039
|
+
Object.entries(ie == null ? void 0 : ie.gridcellRefs).map(([Se, Je]) => {
|
|
4037
4040
|
var rt;
|
|
4038
|
-
((rt = b.value) == null ? void 0 : rt[Se]) === void 0 && (b.value = { ...b.value, [Se]: [] }), b.value[Se][P] =
|
|
4039
|
-
}),
|
|
4040
|
-
|
|
4041
|
-
((
|
|
4041
|
+
((rt = b.value) == null ? void 0 : rt[Se]) === void 0 && (b.value = { ...b.value, [Se]: [] }), b.value[Se][P] = Je;
|
|
4042
|
+
}), De && (((K = b.value) == null ? void 0 : K[lt]) === void 0 && (b.value = { ...b.value, [lt]: [] }), b.value[lt][P] = (Le = ie.rowActionsRef) == null ? void 0 : Le[0], ne.value = Math.max(
|
|
4043
|
+
ne.value,
|
|
4044
|
+
((Ze = (ke = ie.rowActionsRef) == null ? void 0 : ke[0]) == null ? void 0 : Ze.offsetWidth) ?? 0
|
|
4042
4045
|
));
|
|
4043
4046
|
}
|
|
4044
|
-
},
|
|
4045
|
-
t.allowRowClicks &&
|
|
4046
|
-
},
|
|
4047
|
-
|
|
4048
|
-
},
|
|
4047
|
+
}, an = ($, P) => {
|
|
4048
|
+
t.allowRowClicks && Z(z.ROW_CLICK, $, P);
|
|
4049
|
+
}, rn = ($) => {
|
|
4050
|
+
ge.value = $;
|
|
4051
|
+
}, dn = C(() => t.hasNestedContent || t.hasNestedRows ? "treegrid" : "grid"), Ft = C(() => {
|
|
4049
4052
|
var $;
|
|
4050
4053
|
return (($ = _t.value) == null ? void 0 : $.length) ?? 0;
|
|
4051
|
-
}),
|
|
4052
|
-
|
|
4053
|
-
},
|
|
4054
|
-
|
|
4054
|
+
}), un = C(() => t.bulkActions && Ft.value > 0), cn = ($) => Z(z.COLUMN_RESIZE, $), fn = ($) => {
|
|
4055
|
+
Z(z.UPDATE_SORT_BY, $), Z(z.SORT, $);
|
|
4056
|
+
}, gn = ($, P) => {
|
|
4057
|
+
Z(z.NAVIGATE, $), Z(z.UPDATE_PAGINATION, {
|
|
4055
4058
|
...t.pagination,
|
|
4056
4059
|
size: P,
|
|
4057
4060
|
page: $
|
|
4058
4061
|
});
|
|
4059
|
-
},
|
|
4060
|
-
|
|
4061
|
-
},
|
|
4062
|
-
|
|
4063
|
-
},
|
|
4064
|
-
|
|
4062
|
+
}, vn = ($) => {
|
|
4063
|
+
Z(z.ITEMS_PAGE, $);
|
|
4064
|
+
}, mn = () => {
|
|
4065
|
+
Z(z.FILTER_SEARCH_CLEAR);
|
|
4066
|
+
}, hn = ($) => {
|
|
4067
|
+
Z(z.UPDATE_FILTER_SEARCH_TERM, $), Z(z.FILTER_SEARCH_INPUT, $);
|
|
4065
4068
|
};
|
|
4066
|
-
return C(() => k.value.some(($) => $.mandatory)).value ||
|
|
4069
|
+
return C(() => k.value.some(($) => $.mandatory)).value || ml(
|
|
4067
4070
|
"WARNING: At least one BentoDataGrid column should be set as mandatory to ensure data is always displayed correctly."
|
|
4068
|
-
), Pe(Un, () => null)(t.tabTitle), dt(
|
|
4069
|
-
var
|
|
4070
|
-
return
|
|
4071
|
+
), Pe(Un, () => null)(t.tabTitle), dt(yl, bt(t, "slashedZero")), s({ onEmptyStateClearResetButtonClick: Jl }), ($, P) => {
|
|
4072
|
+
var ie;
|
|
4073
|
+
return d(), p("div", {
|
|
4071
4074
|
ref_key: "dataGridRef",
|
|
4072
|
-
ref:
|
|
4073
|
-
class:
|
|
4075
|
+
ref: we,
|
|
4076
|
+
class: de(["b-data-grid", Ql.value]),
|
|
4074
4077
|
"data-testid": "data-grid",
|
|
4075
4078
|
"aria-live": "polite",
|
|
4076
4079
|
"aria-busy": o(F),
|
|
4077
4080
|
onCopy: P[14] || (P[14] = //@ts-ignore
|
|
4078
|
-
(...
|
|
4081
|
+
(...K) => o(Jt) && o(Jt)(...K))
|
|
4079
4082
|
}, [
|
|
4080
|
-
e.filters ? (
|
|
4083
|
+
e.filters ? (d(), p("div", {
|
|
4081
4084
|
key: 0,
|
|
4082
4085
|
ref_key: "filtersRef",
|
|
4083
4086
|
ref: N,
|
|
4084
|
-
class:
|
|
4085
|
-
style: Fe({ top:
|
|
4087
|
+
class: de(["b-data-grid__filters", ln.value]),
|
|
4088
|
+
style: Fe({ top: xe.value }),
|
|
4086
4089
|
"aria-controls": _.value,
|
|
4087
|
-
"aria-label": o(
|
|
4090
|
+
"aria-label": o(ue)("filterBar"),
|
|
4088
4091
|
role: "region"
|
|
4089
4092
|
}, [
|
|
4090
|
-
e.filters ? (
|
|
4093
|
+
e.filters ? (d(), H(Dn, {
|
|
4091
4094
|
key: 0,
|
|
4092
4095
|
ref_key: "filterBarRef",
|
|
4093
4096
|
ref: D,
|
|
@@ -4097,28 +4100,28 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
4097
4100
|
"filter-values-object": e.filterValuesObject,
|
|
4098
4101
|
search: e.filterSearchConfig,
|
|
4099
4102
|
"search-term": e.filterSearchTerm,
|
|
4100
|
-
onSearchInput:
|
|
4101
|
-
onSearchClear:
|
|
4102
|
-
onInput: P[0] || (P[0] = (
|
|
4103
|
-
"onUpdate:filterValues": P[1] || (P[1] = (
|
|
4104
|
-
"onUpdate:filterValuesObject": P[2] || (P[2] = (
|
|
4103
|
+
onSearchInput: hn,
|
|
4104
|
+
onSearchClear: mn,
|
|
4105
|
+
onInput: P[0] || (P[0] = (K) => $.$emit(o(z).UPDATE_FILTERS, K)),
|
|
4106
|
+
"onUpdate:filterValues": P[1] || (P[1] = (K) => $.$emit(o(z).UPDATE_FILTER_VALUES, K)),
|
|
4107
|
+
"onUpdate:filterValuesObject": P[2] || (P[2] = (K) => $.$emit(o(z).UPDATE_FILTER_VALUES_OBJECT, K))
|
|
4105
4108
|
}, null, 8, ["config", "container-size-layout", "filter-values", "filter-values-object", "search", "search-term"])) : W("", !0)
|
|
4106
4109
|
], 14, Ta)) : W("", !0),
|
|
4107
|
-
$.$slots.header ? (
|
|
4110
|
+
$.$slots.header ? (d(), p("div", Oa, [
|
|
4108
4111
|
ze($.$slots, "header", {}, void 0, !0)
|
|
4109
4112
|
])) : W("", !0),
|
|
4110
4113
|
L("div", {
|
|
4111
4114
|
id: _.value,
|
|
4112
|
-
role:
|
|
4115
|
+
role: dn.value,
|
|
4113
4116
|
"aria-rowcount": o(M).length,
|
|
4114
4117
|
"aria-colcount": o(k).length,
|
|
4115
|
-
"aria-label": e.emptyState ? o(
|
|
4118
|
+
"aria-label": e.emptyState ? o(ue)("noResults") : null,
|
|
4116
4119
|
class: "b-data-grid__wrapper",
|
|
4117
|
-
style: Fe({ top:
|
|
4120
|
+
style: Fe({ top: $e.value })
|
|
4118
4121
|
}, [
|
|
4119
4122
|
L("div", {
|
|
4120
4123
|
class: "b-data-grid__column-headers",
|
|
4121
|
-
style: Fe({ top:
|
|
4124
|
+
style: Fe({ top: $e.value })
|
|
4122
4125
|
}, [
|
|
4123
4126
|
L("div", {
|
|
4124
4127
|
ref_key: "columnsRef",
|
|
@@ -4126,20 +4129,20 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
4126
4129
|
role: "rowgroup",
|
|
4127
4130
|
class: "b-data-grid__columns-row",
|
|
4128
4131
|
onScroll: P[7] || (P[7] = //@ts-ignore
|
|
4129
|
-
(...
|
|
4132
|
+
(...K) => o(at) && o(at)(...K)),
|
|
4130
4133
|
onKeydown: P[8] || (P[8] = //@ts-ignore
|
|
4131
|
-
(...
|
|
4134
|
+
(...K) => o(st) && o(st)(...K))
|
|
4132
4135
|
}, [
|
|
4133
|
-
o(
|
|
4136
|
+
o(y) ? (d(), p("div", Ia, [
|
|
4134
4137
|
Y(o(Os), {
|
|
4135
4138
|
class: "b-data-grid__config-settings",
|
|
4136
4139
|
role: "gridcell",
|
|
4137
|
-
columns: o(
|
|
4140
|
+
columns: o(I),
|
|
4138
4141
|
condensed: e.condensed,
|
|
4139
4142
|
"zebra-rows": o(Ct),
|
|
4140
|
-
"onUpdate:condensed": o(
|
|
4141
|
-
"onUpdate:zebraRows": o(
|
|
4142
|
-
"onUpdate:columns": o(
|
|
4143
|
+
"onUpdate:condensed": o(kl),
|
|
4144
|
+
"onUpdate:zebraRows": o(Ul),
|
|
4145
|
+
"onUpdate:columns": o($l)
|
|
4143
4146
|
}, null, 8, ["columns", "condensed", "zebra-rows", "onUpdate:condensed", "onUpdate:zebraRows", "onUpdate:columns"])
|
|
4144
4147
|
])) : W("", !0),
|
|
4145
4148
|
L("div", {
|
|
@@ -4147,51 +4150,51 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
4147
4150
|
class: "b-data-grid__columns",
|
|
4148
4151
|
role: "row"
|
|
4149
4152
|
}, [
|
|
4150
|
-
(
|
|
4151
|
-
var
|
|
4152
|
-
return
|
|
4153
|
-
|
|
4153
|
+
(d(!0), p(_e, null, Ae(o(Ke), ({ columnSet: K, id: Le, isFrozenColumns: ke }, Ze) => {
|
|
4154
|
+
var De;
|
|
4155
|
+
return d(), p(_e, null, [
|
|
4156
|
+
K != null && K.length ? (d(), H(o(ss), se({
|
|
4154
4157
|
key: `data-grid-columns-${Le}`,
|
|
4155
4158
|
ref_for: !0,
|
|
4156
|
-
ref: (Se) =>
|
|
4157
|
-
columns:
|
|
4159
|
+
ref: (Se) => on(Se),
|
|
4160
|
+
columns: K,
|
|
4158
4161
|
"has-resizable-columns": e.hasResizableColumns,
|
|
4159
4162
|
"sort-by": e.sortBy,
|
|
4160
|
-
"all-items-selected-state": o(
|
|
4163
|
+
"all-items-selected-state": o(Hl),
|
|
4161
4164
|
"is-frozen-columns": ke,
|
|
4162
|
-
"show-frozen-columns-separator":
|
|
4163
|
-
"dragging-columns": o(
|
|
4165
|
+
"show-frozen-columns-separator": Mt.value,
|
|
4166
|
+
"dragging-columns": o(It),
|
|
4164
4167
|
"has-draggable-columns": o(O),
|
|
4165
|
-
"has-column-panel": o(
|
|
4168
|
+
"has-column-panel": o(y),
|
|
4166
4169
|
"has-left-overflow": o(it),
|
|
4167
|
-
"has-first-column-panel-right-aligned":
|
|
4168
|
-
"hovered-over-column-state": o(
|
|
4169
|
-
"is-measuring-column-widths": o(
|
|
4170
|
-
"is-only-one-visible-column": o(
|
|
4171
|
-
selectable: ((
|
|
4172
|
-
"selectable-across-pages":
|
|
4170
|
+
"has-first-column-panel-right-aligned": Ze === tn.value,
|
|
4171
|
+
"hovered-over-column-state": o(Nt),
|
|
4172
|
+
"is-measuring-column-widths": o(Ge),
|
|
4173
|
+
"is-only-one-visible-column": o(Il),
|
|
4174
|
+
selectable: ((De = o(M)) == null ? void 0 : De.length) > 0 && o(g),
|
|
4175
|
+
"selectable-across-pages": $t.value,
|
|
4173
4176
|
"selected-items": o(_t),
|
|
4174
|
-
"visible-rows-state":
|
|
4175
|
-
"selection-state": o(
|
|
4177
|
+
"visible-rows-state": xl.value,
|
|
4178
|
+
"selection-state": o(Gl),
|
|
4176
4179
|
"truncate-column-headers": e.truncateColumnHeaders,
|
|
4177
|
-
"row-actions-maximum-width": o(
|
|
4178
|
-
}, gt(o(
|
|
4179
|
-
onColumnHover: P[3] || (P[3] = (Se) =>
|
|
4180
|
-
onColumnMove: o(
|
|
4181
|
-
onColumnUpdate: o(
|
|
4182
|
-
onColumnResize:
|
|
4183
|
-
onColumnResizing: o(
|
|
4184
|
-
onSelectAllRows: o(
|
|
4185
|
-
onSelectAllAcrossPages: P[4] || (P[4] = (Se) =>
|
|
4186
|
-
onSelectAllCurrentResults: P[5] || (P[5] = (Se) =>
|
|
4187
|
-
onDeselectAllCurrentResults: P[6] || (P[6] = (Se) =>
|
|
4188
|
-
onDeselectAll: o(
|
|
4189
|
-
onSort:
|
|
4190
|
-
}),
|
|
4191
|
-
Ae(o(u), (Se,
|
|
4192
|
-
name:
|
|
4180
|
+
"row-actions-maximum-width": o(ne)
|
|
4181
|
+
}, gt(o(Fl)), {
|
|
4182
|
+
onColumnHover: P[3] || (P[3] = (Se) => Ml.value = Se),
|
|
4183
|
+
onColumnMove: o(Pl),
|
|
4184
|
+
onColumnUpdate: o(Dl),
|
|
4185
|
+
onColumnResize: cn,
|
|
4186
|
+
onColumnResizing: o(ve),
|
|
4187
|
+
onSelectAllRows: o(Bl),
|
|
4188
|
+
onSelectAllAcrossPages: P[4] || (P[4] = (Se) => Z(o(z).SELECT_ALL_ACROSS_PAGES)),
|
|
4189
|
+
onSelectAllCurrentResults: P[5] || (P[5] = (Se) => Z(o(z).SELECT_ALL_CURRENT_RESULTS)),
|
|
4190
|
+
onDeselectAllCurrentResults: P[6] || (P[6] = (Se) => Z(o(z).DESELECT_ALL_CURRENT_RESULTS)),
|
|
4191
|
+
onDeselectAll: o(Dt),
|
|
4192
|
+
onSort: fn
|
|
4193
|
+
}), Qe({ _: 2 }, [
|
|
4194
|
+
Ae(o(u), (Se, Je) => ({
|
|
4195
|
+
name: Je,
|
|
4193
4196
|
fn: G((rt) => [
|
|
4194
|
-
ze($.$slots,
|
|
4197
|
+
ze($.$slots, Je, se({ ref_for: !0 }, rt), void 0, !0)
|
|
4195
4198
|
])
|
|
4196
4199
|
}))
|
|
4197
4200
|
]), 1040, ["columns", "has-resizable-columns", "sort-by", "all-items-selected-state", "is-frozen-columns", "show-frozen-columns-separator", "dragging-columns", "has-draggable-columns", "has-column-panel", "has-left-overflow", "has-first-column-panel-right-aligned", "hovered-over-column-state", "is-measuring-column-widths", "is-only-one-visible-column", "selectable", "selectable-across-pages", "selected-items", "visible-rows-state", "selection-state", "truncate-column-headers", "row-actions-maximum-width", "onColumnMove", "onColumnUpdate", "onColumnResizing", "onSelectAllRows", "onDeselectAll"])) : W("", !0)
|
|
@@ -4204,84 +4207,84 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
4204
4207
|
ref_key: "body",
|
|
4205
4208
|
ref: n,
|
|
4206
4209
|
"data-testid": "data-grid-body",
|
|
4207
|
-
class:
|
|
4210
|
+
class: de(["b-data-grid__body", en.value]),
|
|
4208
4211
|
onScroll: P[12] || (P[12] = //@ts-ignore
|
|
4209
|
-
(...
|
|
4212
|
+
(...K) => o(at) && o(at)(...K))
|
|
4210
4213
|
}, [
|
|
4211
|
-
o(F) && !o(
|
|
4214
|
+
o(F) && !o(Ye) ? (d(), p("div", $a, [
|
|
4212
4215
|
Y(o(ct), {
|
|
4213
4216
|
class: "b-data-grid__loading-indicator",
|
|
4214
4217
|
large: ""
|
|
4215
4218
|
}),
|
|
4216
|
-
Y(o(
|
|
4219
|
+
Y(o(qe), {
|
|
4217
4220
|
el: "span",
|
|
4218
4221
|
variant: "caption"
|
|
4219
4222
|
}, {
|
|
4220
4223
|
default: G(() => [
|
|
4221
|
-
|
|
4224
|
+
fe(J(o(ue)("gettingYourData")), 1)
|
|
4222
4225
|
]),
|
|
4223
4226
|
_: 1
|
|
4224
4227
|
})
|
|
4225
|
-
])) : (
|
|
4228
|
+
])) : (d(), p("div", {
|
|
4226
4229
|
key: 1,
|
|
4227
4230
|
role: "rowgroup",
|
|
4228
4231
|
onKeydown: P[11] || (P[11] = //@ts-ignore
|
|
4229
|
-
(...
|
|
4232
|
+
(...K) => o(st) && o(st)(...K))
|
|
4230
4233
|
}, [
|
|
4231
|
-
((
|
|
4234
|
+
((ie = o(M)) == null ? void 0 : ie.length) === 0 && e.emptyState ? (d(), p("div", Da, [
|
|
4232
4235
|
L("div", {
|
|
4233
4236
|
role: "gridcell",
|
|
4234
4237
|
"aria-colspan": o(k).length,
|
|
4235
4238
|
tabindex: "-1"
|
|
4236
4239
|
}, [
|
|
4237
|
-
Y(o(kn), se({ class: "b-data-grid__empty-state" },
|
|
4240
|
+
Y(o(kn), se({ class: "b-data-grid__empty-state" }, Xl.value), null, 16)
|
|
4238
4241
|
], 8, ka)
|
|
4239
|
-
])) : (
|
|
4240
|
-
var ke,
|
|
4241
|
-
return
|
|
4242
|
+
])) : (d(!0), p(_e, { key: 1 }, Ae(o(M), (K, Le) => {
|
|
4243
|
+
var ke, Ze;
|
|
4244
|
+
return d(), H(o(Tl), {
|
|
4242
4245
|
key: Le,
|
|
4243
4246
|
ref_for: !0,
|
|
4244
|
-
ref: (
|
|
4247
|
+
ref: (De) => sn(De, Le),
|
|
4245
4248
|
style: Fe(o(me)),
|
|
4246
4249
|
"allow-row-clicks": e.allowRowClicks,
|
|
4247
|
-
"column-sets": o(
|
|
4250
|
+
"column-sets": o(Ke),
|
|
4248
4251
|
condensed: e.condensed,
|
|
4249
|
-
"dragging-columns": o(
|
|
4250
|
-
"dragging-events-for-row-cell": o(
|
|
4252
|
+
"dragging-columns": o(It),
|
|
4253
|
+
"dragging-events-for-row-cell": o(zl),
|
|
4251
4254
|
"get-data-item-id": e.getDataItemId,
|
|
4252
4255
|
"has-nested-content": o(m),
|
|
4253
4256
|
"has-nested-rows": o(a),
|
|
4254
4257
|
"has-left-overflow": o(it),
|
|
4255
|
-
"has-right-overflow": o(
|
|
4258
|
+
"has-right-overflow": o(Ut),
|
|
4256
4259
|
"highlighted-rows": e.highlightedRows,
|
|
4257
|
-
"hovered-row-index":
|
|
4258
|
-
"hovered-over-column-state": o(
|
|
4260
|
+
"hovered-row-index": ge.value,
|
|
4261
|
+
"hovered-over-column-state": o(Nt),
|
|
4259
4262
|
"is-data-item-disabled": e.isDataItemDisabled,
|
|
4260
4263
|
"is-row-even": o(Ct) ? Le % 2 !== 0 : !1,
|
|
4261
4264
|
"is-row-last-child": Le + 1 === ((ke = o(M)) == null ? void 0 : ke.length),
|
|
4262
|
-
"is-measuring-column-widths": o(
|
|
4263
|
-
"row-actions-maximum-width": o(
|
|
4265
|
+
"is-measuring-column-widths": o(Ge),
|
|
4266
|
+
"row-actions-maximum-width": o(ne),
|
|
4264
4267
|
"row-actions": e.rowActions,
|
|
4265
|
-
"row-data":
|
|
4268
|
+
"row-data": K,
|
|
4266
4269
|
"row-index": Le,
|
|
4267
|
-
"row-set-size": (
|
|
4268
|
-
"show-frozen-columns-separator":
|
|
4270
|
+
"row-set-size": (Ze = o(M)) == null ? void 0 : Ze.length,
|
|
4271
|
+
"show-frozen-columns-separator": Mt.value,
|
|
4269
4272
|
"should-show-nested-content": e.shouldShowNestedContent,
|
|
4270
4273
|
"should-show-nested-rows": e.shouldShowNestedRows,
|
|
4271
4274
|
selectable: o(g),
|
|
4272
4275
|
"selected-items": o(_t),
|
|
4273
|
-
onCellHovered:
|
|
4274
|
-
onCellFocus: P[9] || (P[9] = (
|
|
4275
|
-
onNestedContentToggled: P[10] || (P[10] = (
|
|
4276
|
-
onRowClick:
|
|
4277
|
-
onOnFrozenColumnsKeyPress: o(
|
|
4278
|
-
onSelectRow: o(
|
|
4279
|
-
onSelectNestedRow: o(
|
|
4280
|
-
},
|
|
4281
|
-
Ae(o(u), (
|
|
4276
|
+
onCellHovered: rn,
|
|
4277
|
+
onCellFocus: P[9] || (P[9] = (De) => Z(o(z).CELL_FOCUS, De)),
|
|
4278
|
+
onNestedContentToggled: P[10] || (P[10] = (De) => Z(o(z).NESTED_CONTENT_TOGGLED, De)),
|
|
4279
|
+
onRowClick: an,
|
|
4280
|
+
onOnFrozenColumnsKeyPress: o(Kl),
|
|
4281
|
+
onSelectRow: o(Wl),
|
|
4282
|
+
onSelectNestedRow: o(Vl)
|
|
4283
|
+
}, Qe({ _: 2 }, [
|
|
4284
|
+
Ae(o(u), (De, Se) => ({
|
|
4282
4285
|
name: Se,
|
|
4283
|
-
fn: G((
|
|
4284
|
-
ze($.$slots, Se, se({ ref_for: !0 },
|
|
4286
|
+
fn: G((Je) => [
|
|
4287
|
+
ze($.$slots, Se, se({ ref_for: !0 }, Je), void 0, !0)
|
|
4285
4288
|
])
|
|
4286
4289
|
}))
|
|
4287
4290
|
]), 1032, ["style", "allow-row-clicks", "column-sets", "condensed", "dragging-columns", "dragging-events-for-row-cell", "get-data-item-id", "has-nested-content", "has-nested-rows", "has-left-overflow", "has-right-overflow", "highlighted-rows", "hovered-row-index", "hovered-over-column-state", "is-data-item-disabled", "is-row-even", "is-row-last-child", "is-measuring-column-widths", "row-actions-maximum-width", "row-actions", "row-data", "row-index", "row-set-size", "show-frozen-columns-separator", "should-show-nested-content", "should-show-nested-rows", "selectable", "selected-items", "onOnFrozenColumnsKeyPress", "onSelectRow", "onSelectNestedRow"]);
|
|
@@ -4289,39 +4292,39 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
4289
4292
|
], 32))
|
|
4290
4293
|
], 34)
|
|
4291
4294
|
], 12, Na),
|
|
4292
|
-
o(
|
|
4295
|
+
o(Ye) ? (d(), H(o(Ds), {
|
|
4293
4296
|
key: 2,
|
|
4294
4297
|
loading: o(F),
|
|
4295
|
-
"is-infinite-scroll": o(
|
|
4296
|
-
"onUpdate:showMore": o(
|
|
4298
|
+
"is-infinite-scroll": o(Zl),
|
|
4299
|
+
"onUpdate:showMore": o(ql)
|
|
4297
4300
|
}, null, 8, ["loading", "is-infinite-scroll", "onUpdate:showMore"])) : W("", !0),
|
|
4298
|
-
e.stickyHorizontalScrollbar ? (
|
|
4301
|
+
e.stickyHorizontalScrollbar ? (d(), p("div", {
|
|
4299
4302
|
key: 3,
|
|
4300
4303
|
ref_key: "virtualHorizontalScrollbarRef",
|
|
4301
4304
|
ref: A,
|
|
4302
4305
|
class: "b-data-grid__horizontal-scrollbar",
|
|
4303
4306
|
"aria-hidden": "true",
|
|
4304
4307
|
"data-testid": "sticky-horizontal-scrollbar",
|
|
4305
|
-
style: Fe(o(
|
|
4308
|
+
style: Fe(o(Yl)),
|
|
4306
4309
|
onScroll: P[13] || (P[13] = //@ts-ignore
|
|
4307
|
-
(...
|
|
4310
|
+
(...K) => o(kt) && o(kt)(...K))
|
|
4308
4311
|
}, [
|
|
4309
4312
|
L("div", {
|
|
4310
|
-
style: Fe({ width: `${o(
|
|
4313
|
+
style: Fe({ width: `${o(te)}px`, height: "15px" })
|
|
4311
4314
|
}, null, 4)
|
|
4312
4315
|
], 36)) : W("", !0),
|
|
4313
|
-
o(le) && !o(
|
|
4316
|
+
o(le) && !o(Ye) ? (d(), p("div", {
|
|
4314
4317
|
key: 4,
|
|
4315
4318
|
ref_key: "paginationContainerRef",
|
|
4316
4319
|
ref: S,
|
|
4317
4320
|
"data-testid": "pagination-container",
|
|
4318
|
-
class:
|
|
4321
|
+
class: de(["b-data-grid__pagination", nn.value])
|
|
4319
4322
|
}, [
|
|
4320
|
-
Y(o(
|
|
4323
|
+
Y(o($n), se(o(le), {
|
|
4321
4324
|
"aria-label": $.$t("pagination"),
|
|
4322
4325
|
"aria-controls": _.value,
|
|
4323
|
-
onNavigate:
|
|
4324
|
-
onItemsPage:
|
|
4326
|
+
onNavigate: gn,
|
|
4327
|
+
onItemsPage: vn
|
|
4325
4328
|
}), {
|
|
4326
4329
|
default: G(() => [
|
|
4327
4330
|
o(l)("pagination-slot") ? ze($.$slots, "pagination-slot", { key: 0 }, void 0, !0) : W("", !0)
|
|
@@ -4329,22 +4332,22 @@ const ya = /* @__PURE__ */ ue(Sa, [["render", Ea]]), Il = {
|
|
|
4329
4332
|
_: 3
|
|
4330
4333
|
}, 16, ["aria-label", "aria-controls"])
|
|
4331
4334
|
], 2)) : W("", !0),
|
|
4332
|
-
$.$slots.footer ? (
|
|
4335
|
+
$.$slots.footer ? (d(), p("div", Ua, [
|
|
4333
4336
|
ze($.$slots, "footer", {}, void 0, !0)
|
|
4334
4337
|
])) : W("", !0),
|
|
4335
|
-
|
|
4338
|
+
un.value ? (d(), H(o(In), {
|
|
4336
4339
|
key: 6,
|
|
4337
4340
|
actions: e.bulkActions,
|
|
4338
|
-
"item-counter":
|
|
4341
|
+
"item-counter": Ft.value,
|
|
4339
4342
|
"extra-bottom-spacing": o(x),
|
|
4340
|
-
onClose: o(
|
|
4343
|
+
onClose: o(Dt)
|
|
4341
4344
|
}, null, 8, ["actions", "item-counter", "extra-bottom-spacing", "onClose"])) : W("", !0)
|
|
4342
4345
|
], 42, Aa);
|
|
4343
4346
|
};
|
|
4344
4347
|
}
|
|
4345
|
-
}), Ui = /* @__PURE__ */
|
|
4348
|
+
}), Ui = /* @__PURE__ */ re(Fa, [["__scopeId", "data-v-9cae82d1"]]);
|
|
4346
4349
|
export {
|
|
4347
|
-
|
|
4350
|
+
pt as B,
|
|
4348
4351
|
Ii as a,
|
|
4349
4352
|
$i as b,
|
|
4350
4353
|
Di as c,
|
|
@@ -4352,7 +4355,7 @@ export {
|
|
|
4352
4355
|
ki as e,
|
|
4353
4356
|
ut as f,
|
|
4354
4357
|
z as g,
|
|
4355
|
-
|
|
4358
|
+
He as h,
|
|
4356
4359
|
Me as i
|
|
4357
4360
|
};
|
|
4358
|
-
//# sourceMappingURL=data-grid.
|
|
4361
|
+
//# sourceMappingURL=data-grid.KudN-TcY.js.map
|