@actabldesign/bellhop-core 0.0.8 → 0.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +132 -33
- package/components/bh-accordion-item.js +1 -1
- package/components/bh-avatar-add.js +1 -1
- package/components/bh-avatar-stacked.js +3 -3
- package/components/bh-avatar.js +1 -1
- package/components/bh-button.js +1 -1
- package/components/bh-card-header.js +1 -1
- package/components/bh-card.js +1 -1
- package/components/bh-checkbox-group-item.js +5 -5
- package/components/bh-checkbox.js +1 -1
- package/components/bh-data-grid.js +140 -67
- package/components/bh-data-grid.js.map +1 -1
- package/components/bh-date-picker-content.js +1 -1
- package/components/bh-date-picker.js +24 -19
- package/components/bh-date-picker.js.map +1 -1
- package/components/bh-date-range-picker-content.js +1 -1
- package/components/bh-date-range-picker.js +9 -9
- package/components/bh-dropdown-menu.js +1 -1
- package/components/bh-dropdown.js +1 -1
- package/components/bh-empty-state.js +1 -1
- package/components/bh-featured-icon.js +1 -1
- package/components/bh-illustrations.js +3 -3
- package/components/bh-input-autocomplete.js +7 -7
- package/components/bh-input-number.js +3 -3
- package/components/bh-input-password.js +3 -3
- package/components/bh-input-text.js +1 -1
- package/components/bh-input-verification.js +3 -3
- package/components/bh-label.js +1 -1
- package/components/bh-logo-box.js +1 -1
- package/components/bh-modal-actions.js +2 -2
- package/components/bh-modal-header.js +5 -5
- package/components/bh-month-picker-content.js +1 -1
- package/components/bh-month-picker.js +8 -8
- package/components/bh-month-picker.js.map +1 -1
- package/components/bh-nav-item.js +1 -1
- package/components/bh-notification.js +3 -3
- package/components/bh-page-navigation-child.js +1 -1
- package/components/bh-page-navigation-multi-level.js +1 -1
- package/components/bh-page-navigation-single-level.js +1 -1
- package/components/bh-page-navigation.js +5 -5
- package/components/bh-pagination.js +1 -1
- package/components/bh-picker-menu.js +1 -1
- package/components/bh-pie-chart.js +1 -1
- package/components/bh-popover.js +18 -85
- package/components/bh-popover.js.map +1 -1
- package/components/bh-property-switcher.js +1 -1
- package/components/bh-radio-button.js +1 -1
- package/components/bh-sidebar.js +7 -7
- package/components/bh-skeleton-loader.js +1 -1
- package/components/bh-tab-item.js +2 -2
- package/components/bh-tabs.js +1 -1
- package/components/bh-tag.js +1 -1
- package/components/bh-textarea.js +3 -3
- package/components/bh-toggle.js +1 -1
- package/components/bh-tooltip.js +1 -1
- package/components/bh-trend-chart.js +2 -2
- package/components/index.d.ts +0 -4
- package/components/index.js +0 -2
- package/components/index.js.map +1 -1
- package/components/{p-8bOZFmdg.js → p--S10V0sf.js} +5 -5
- package/components/p--S10V0sf.js.map +1 -0
- package/components/{p-BLCjD0ux.js → p-7nrZFsG8.js} +3 -3
- package/components/{p-BLCjD0ux.js.map → p-7nrZFsG8.js.map} +1 -1
- package/components/{p-C_wf2KGn.js → p-B0ADeWoj.js} +3 -3
- package/components/{p-C_wf2KGn.js.map → p-B0ADeWoj.js.map} +1 -1
- package/components/{p-D9aamyuM.js → p-BEm39SYP.js} +4 -4
- package/components/{p-D9aamyuM.js.map → p-BEm39SYP.js.map} +1 -1
- package/components/{p-BkK6rWZn.js → p-BYRvQ4u7.js} +4 -4
- package/components/{p-BkK6rWZn.js.map → p-BYRvQ4u7.js.map} +1 -1
- package/components/{p-D0Ba0gOA.js → p-BqYBdZ7I.js} +4 -4
- package/components/{p-D0Ba0gOA.js.map → p-BqYBdZ7I.js.map} +1 -1
- package/components/{p-Df8KgHhe.js → p-BrIid8rr.js} +3 -3
- package/components/{p-Df8KgHhe.js.map → p-BrIid8rr.js.map} +1 -1
- package/components/p-BsHlTsAN.js.map +1 -1
- package/components/{p-Npcwl1Z8.js → p-CDmCw7LX.js} +4 -4
- package/components/p-CDmCw7LX.js.map +1 -0
- package/components/{p-BQKx1tGq.js → p-CHYn9whC.js} +6 -6
- package/components/p-CHYn9whC.js.map +1 -0
- package/components/{p-CdwyUif-.js → p-CNwZh1xz.js} +5 -5
- package/components/p-CNwZh1xz.js.map +1 -0
- package/components/{p-B02xFf1P.js → p-CiEBtN9j.js} +3 -3
- package/components/{p-B02xFf1P.js.map → p-CiEBtN9j.js.map} +1 -1
- package/components/{p-Cmo_S3fO.js → p-CiZSLZTA.js} +4 -4
- package/components/{p-Cmo_S3fO.js.map → p-CiZSLZTA.js.map} +1 -1
- package/components/{p-DYC2IZEs.js → p-CmEb-mj5.js} +6 -6
- package/components/{p-DYC2IZEs.js.map → p-CmEb-mj5.js.map} +1 -1
- package/components/{p-Do29ZTL9.js → p-CppjlSaO.js} +3 -3
- package/components/{p-Do29ZTL9.js.map → p-CppjlSaO.js.map} +1 -1
- package/components/{p-D3FuyNC4.js → p-CyFUHAY1.js} +7 -7
- package/components/{p-D3FuyNC4.js.map → p-CyFUHAY1.js.map} +1 -1
- package/components/{p-B0vRPcr5.js → p-D8L5XpBP.js} +3 -3
- package/components/{p-B0vRPcr5.js.map → p-D8L5XpBP.js.map} +1 -1
- package/components/p-DH86TJ99.js +232 -0
- package/components/p-DH86TJ99.js.map +1 -0
- package/components/{p-BJLHKnwL.js → p-DVBd-54W.js} +5 -5
- package/components/{p-BJLHKnwL.js.map → p-DVBd-54W.js.map} +1 -1
- package/components/{p-CMoGgYqw.js → p-DmELCHDa.js} +3 -3
- package/components/p-DmELCHDa.js.map +1 -0
- package/components/{p-Bu0BcHwL.js → p-Du_cCBR7.js} +6 -6
- package/components/{p-Bu0BcHwL.js.map → p-Du_cCBR7.js.map} +1 -1
- package/components/{p-h6juyPoa.js → p-JJSN-gZI.js} +3 -3
- package/components/{p-h6juyPoa.js.map → p-JJSN-gZI.js.map} +1 -1
- package/components/{p-wPu4WTba.js → p-dsE158cF.js} +3 -3
- package/components/{p-wPu4WTba.js.map → p-dsE158cF.js.map} +1 -1
- package/components/{p-C0fcjlnS.js → p-eYcfeTFU.js} +3 -3
- package/components/{p-C0fcjlnS.js.map → p-eYcfeTFU.js.map} +1 -1
- package/components/{p-BSok41i-.js → p-oyeucMe6.js} +3 -3
- package/components/{p-BSok41i-.js.map → p-oyeucMe6.js.map} +1 -1
- package/dist/bellhop-core/bellhop-core.esm.js +1 -1
- package/dist/bellhop-core/bellhop-core.esm.js.map +1 -1
- package/dist/bellhop-core/bh-avatar.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-button.bh-loader-spinner.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-data-grid.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-date-picker-content.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-date-picker.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-empty-state.bh-pagination.bh-skeleton-loader.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-input-text.bh-picker-menu.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-label.bh-tooltip.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-month-picker-content.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-month-picker.entry.esm.js.map +1 -1
- package/dist/bellhop-core/bh-popover.entry.esm.js.map +1 -1
- package/dist/bellhop-core/index.esm.js +1 -1
- package/dist/bellhop-core/index.esm.js.map +1 -1
- package/dist/bellhop-core/{p-Ck1gRAmI.js → p-04a00da6.entry.js} +2 -2
- package/dist/bellhop-core/p-04a00da6.entry.js.map +1 -0
- package/dist/bellhop-core/{p-bd00d5ad.entry.js → p-06b0ba5f.entry.js} +2 -2
- package/dist/bellhop-core/{p-4a8844ff.entry.js → p-0a232a85.entry.js} +2 -2
- package/dist/bellhop-core/p-0d5ce369.entry.js +13 -0
- package/dist/bellhop-core/p-0d5ce369.entry.js.map +1 -0
- package/dist/bellhop-core/{p-67956598.entry.js → p-0e773f4b.entry.js} +2 -2
- package/dist/bellhop-core/{p-df4498cd.entry.js → p-11e84742.entry.js} +2 -2
- package/dist/bellhop-core/{p-a41b3673.entry.js → p-20e65b2b.entry.js} +2 -2
- package/dist/bellhop-core/{p-a30e22f7.entry.js → p-2349cd39.entry.js} +2 -2
- package/dist/bellhop-core/{p-3a1c52a9.entry.js → p-2cc352e8.entry.js} +2 -2
- package/dist/bellhop-core/{p-defe9916.entry.js → p-31f60dac.entry.js} +2 -2
- package/dist/bellhop-core/{p-defe9916.entry.js.map → p-31f60dac.entry.js.map} +1 -1
- package/dist/bellhop-core/{p-f85a9eaa.entry.js → p-439f8477.entry.js} +2 -2
- package/dist/bellhop-core/{p-a42e8ddb.entry.js → p-4bc0e720.entry.js} +2 -2
- package/dist/bellhop-core/{p-a42e8ddb.entry.js.map → p-4bc0e720.entry.js.map} +1 -1
- package/dist/bellhop-core/{p-21bc4f77.entry.js → p-4cf74f24.entry.js} +2 -2
- package/dist/bellhop-core/p-53dbd8bd.entry.js +2 -0
- package/dist/bellhop-core/p-53dbd8bd.entry.js.map +1 -0
- package/dist/bellhop-core/p-59e4c008.entry.js +2 -0
- package/dist/bellhop-core/p-59e4c008.entry.js.map +1 -0
- package/dist/bellhop-core/{p-62235d6e.entry.js → p-5a0b2d81.entry.js} +2 -2
- package/dist/bellhop-core/{p-07c9b7fa.entry.js → p-6626f089.entry.js} +2 -2
- package/dist/bellhop-core/{p-36166900.entry.js → p-6b428841.entry.js} +2 -2
- package/dist/bellhop-core/{p-6bc81ebb.entry.js → p-6d4c6b6f.entry.js} +2 -2
- package/dist/bellhop-core/{p-c0e36166.entry.js → p-6dad737e.entry.js} +2 -2
- package/dist/bellhop-core/{p-5c4f74b8.entry.js → p-738f24c8.entry.js} +2 -2
- package/dist/bellhop-core/{p-49edd1bb.entry.js → p-7534a8d4.entry.js} +2 -2
- package/dist/bellhop-core/p-7b0a4c99.entry.js +2 -0
- package/dist/bellhop-core/{p-7a85db89.entry.js.map → p-7b0a4c99.entry.js.map} +1 -1
- package/dist/bellhop-core/{p-7b0cba50.entry.js → p-84ecaf3b.entry.js} +2 -2
- package/dist/bellhop-core/{p-DY76Ee-p.js → p-940af1e0.entry.js} +2 -2
- package/dist/bellhop-core/p-940af1e0.entry.js.map +1 -0
- package/dist/bellhop-core/p-c0dfca99.entry.js +2 -0
- package/dist/bellhop-core/{p-4e483d25.entry.js.map → p-c0dfca99.entry.js.map} +1 -1
- package/dist/bellhop-core/{p-d5bf49ab.entry.js → p-cad28e7e.entry.js} +2 -2
- package/dist/bellhop-core/{p-1540001e.entry.js → p-cb0e4e35.entry.js} +2 -2
- package/dist/bellhop-core/{p-091171da.entry.js → p-ce2aaf37.entry.js} +2 -2
- package/dist/bellhop-core/p-d64525f4.entry.js +2 -0
- package/dist/bellhop-core/p-d64525f4.entry.js.map +1 -0
- package/dist/bellhop-core/{p-a9c914ee.entry.js → p-e0f7b6d1.entry.js} +2 -2
- package/dist/bellhop-core/{p-b0dda4df.entry.js → p-e83a86d6.entry.js} +2 -2
- package/dist/bellhop-core/{p-2db7990e.entry.js → p-e96e5aa3.entry.js} +2 -2
- package/dist/bellhop-core/{p-c70d11a2.entry.js → p-ed780663.entry.js} +2 -2
- package/dist/bellhop-core/p-f30af956.entry.js +2 -0
- package/dist/bellhop-core/{p-ffb29d95.entry.js.map → p-f30af956.entry.js.map} +1 -1
- package/dist/bellhop-core/{p-0e34250c.entry.js → p-f4dd33af.entry.js} +2 -2
- package/dist/bellhop-core/{p-1be3e908.entry.js → p-fe7d5dcb.entry.js} +2 -2
- package/dist/bellhop-core/p-nAAobRRQ.js.map +1 -1
- package/dist/cjs/bellhop-core.cjs.js +1 -1
- package/dist/cjs/bellhop-core.cjs.js.map +1 -1
- package/dist/cjs/bh-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/bh-autocomplete-menu_2.cjs.entry.js +1 -1
- package/dist/cjs/bh-avatar.cjs.entry.js +1 -1
- package/dist/cjs/bh-avatar.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-button.bh-loader-spinner.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-button_2.cjs.entry.js +110 -2
- package/dist/cjs/bh-card.cjs.entry.js +1 -1
- package/dist/cjs/bh-data-grid.cjs.entry.js +132 -59
- package/dist/cjs/bh-data-grid.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-date-picker-content.cjs.entry.js +2 -2
- package/dist/cjs/bh-date-picker-content.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-date-picker.cjs.entry.js +15 -12
- package/dist/cjs/bh-date-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-date-range-picker-content.cjs.entry.js +1 -1
- package/dist/cjs/bh-date-range-picker.cjs.entry.js +1 -1
- package/dist/cjs/bh-dropdown_3.cjs.entry.js +4 -4
- package/dist/cjs/bh-empty-state.bh-pagination.bh-skeleton-loader.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-empty-state_3.cjs.entry.js +199 -6
- package/dist/cjs/bh-featured-icon.cjs.entry.js +1 -1
- package/dist/cjs/bh-illustrations.cjs.entry.js +3 -3
- package/dist/cjs/bh-input-autocomplete.cjs.entry.js +2 -2
- package/dist/cjs/bh-input-number.cjs.entry.js +1 -1
- package/dist/cjs/bh-input-password.cjs.entry.js +1 -1
- package/dist/cjs/bh-input-text.bh-picker-menu.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-input-text_2.cjs.entry.js +2 -2
- package/dist/cjs/bh-input-verification.cjs.entry.js +1 -1
- package/dist/cjs/bh-label.bh-tooltip.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-label_2.cjs.entry.js +104 -3
- package/dist/cjs/bh-modal-actions.cjs.entry.js +1 -1
- package/dist/cjs/bh-modal-header.cjs.entry.js +4 -4
- package/dist/cjs/bh-month-picker-content.cjs.entry.js +2 -2
- package/dist/cjs/bh-month-picker-content.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-month-picker.cjs.entry.js +2 -2
- package/dist/cjs/bh-month-picker.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-notification.cjs.entry.js +1 -1
- package/dist/cjs/bh-page-navigation-child.cjs.entry.js +1 -1
- package/dist/cjs/bh-page-navigation-multi-level_2.cjs.entry.js +3 -3
- package/dist/cjs/bh-page-navigation.cjs.entry.js +1 -1
- package/dist/cjs/bh-pie-chart.cjs.entry.js +1 -1
- package/dist/cjs/bh-popover.cjs.entry.js +14 -76
- package/dist/cjs/bh-popover.entry.cjs.js.map +1 -1
- package/dist/cjs/bh-property-switcher.cjs.entry.js +1 -1
- package/dist/cjs/bh-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/bh-tab-item.cjs.entry.js +2 -2
- package/dist/cjs/bh-tabs.cjs.entry.js +1 -1
- package/dist/cjs/bh-textarea.cjs.entry.js +1 -1
- package/dist/cjs/bh-toggle.cjs.entry.js +1 -1
- package/dist/cjs/bh-trend-chart.cjs.entry.js +2 -2
- package/dist/cjs/index-DQwSUT6k.js +42 -50
- package/dist/cjs/index-DQwSUT6k.js.map +1 -1
- package/dist/cjs/index.cjs.js +0 -31
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -3
- package/dist/collection/components/bh-accordion/bh-accordion.js +1 -1
- package/dist/collection/components/bh-accordion-item/bh-accordion-item.js +1 -1
- package/dist/collection/components/bh-appbar/bh-appbar.js +2 -2
- package/dist/collection/components/bh-autocomplete-menu/bh-autocomplete-menu.js +2 -2
- package/dist/collection/components/bh-avatar/bh-avatar.css +0 -1
- package/dist/collection/components/bh-avatar/bh-avatar.js +3 -3
- package/dist/collection/components/bh-avatar-add/bh-avatar-add.js +1 -1
- package/dist/collection/components/bh-avatar-stacked/bh-avatar-stacked.js +1 -1
- package/dist/collection/components/bh-badge/bh-badge.js +3 -3
- package/dist/collection/components/bh-badge-dot/bh-badge-dot.js +2 -2
- package/dist/collection/components/bh-bar-chart/bh-bar-chart.js +3 -3
- package/dist/collection/components/bh-breadcrumbs/bh-breadcrumbs.js +2 -2
- package/dist/collection/components/bh-button/bh-button.js +7 -7
- package/dist/collection/components/bh-button/bh-button.js.map +1 -1
- package/dist/collection/components/bh-button-icon/bh-button-icon.js +3 -3
- package/dist/collection/components/bh-card/bh-card.js +1 -1
- package/dist/collection/components/bh-card-footer/bh-card-footer.js +1 -1
- package/dist/collection/components/bh-card-header/bh-card-header.js +2 -2
- package/dist/collection/components/bh-chart-tooltip/bh-chart-tooltip.js +1 -1
- package/dist/collection/components/bh-checkbox/bh-checkbox.js +1 -1
- package/dist/collection/components/bh-checkbox-group/bh-checkbox-group.js +1 -1
- package/dist/collection/components/bh-checkbox-group-item/bh-checkbox-group-item.js +2 -2
- package/dist/collection/components/bh-data-grid/bh-data-grid.css +86 -68
- package/dist/collection/components/bh-data-grid/bh-data-grid.js +132 -59
- package/dist/collection/components/bh-data-grid/bh-data-grid.js.map +1 -1
- package/dist/collection/components/bh-date-picker/bh-date-picker.css +24 -214
- package/dist/collection/components/bh-date-picker/bh-date-picker.js +22 -12
- package/dist/collection/components/bh-date-picker/bh-date-picker.js.map +1 -1
- package/dist/collection/components/bh-date-picker-content/bh-date-picker-content.css +0 -206
- package/dist/collection/components/bh-date-picker-content/bh-date-picker-content.js +7 -7
- package/dist/collection/components/bh-date-range-picker/bh-date-range-picker.js +2 -2
- package/dist/collection/components/bh-date-range-picker-content/bh-date-range-picker-content.js +4 -4
- package/dist/collection/components/bh-dropdown/bh-dropdown.js +5 -5
- package/dist/collection/components/bh-dropdown-menu/bh-dropdown-menu.js +3 -3
- package/dist/collection/components/bh-empty-state/bh-empty-state.js +2 -2
- package/dist/collection/components/bh-featured-icon/bh-featured-icon.js +4 -4
- package/dist/collection/components/bh-illustrations/bh-illustrations.js +4 -4
- package/dist/collection/components/bh-input-autocomplete/bh-input-autocomplete.js +3 -3
- package/dist/collection/components/bh-input-number/bh-input-number.js +1 -1
- package/dist/collection/components/bh-input-password/bh-input-password.js +1 -1
- package/dist/collection/components/bh-input-text/bh-input-text.js +1 -1
- package/dist/collection/components/bh-input-verification/bh-input-verification.js +3 -3
- package/dist/collection/components/bh-label/bh-label.js +1 -1
- package/dist/collection/components/bh-loader-spinner/bh-loader-spinner.js +2 -2
- package/dist/collection/components/bh-logo-box/bh-logo-box.js +2 -2
- package/dist/collection/components/bh-modal/bh-modal.js +1 -1
- package/dist/collection/components/bh-modal-actions/bh-modal-actions.js +2 -2
- package/dist/collection/components/bh-modal-header/bh-modal-header.js +4 -4
- package/dist/collection/components/bh-month-picker/bh-month-picker.css +0 -206
- package/dist/collection/components/bh-month-picker/bh-month-picker.js +2 -2
- package/dist/collection/components/bh-month-picker-content/bh-month-picker-content.css +0 -206
- package/dist/collection/components/bh-month-picker-content/bh-month-picker-content.js +5 -5
- package/dist/collection/components/bh-notification/bh-notification.js +2 -2
- package/dist/collection/components/bh-page-navigation/bh-page-navigation.js +2 -2
- package/dist/collection/components/bh-page-navigation-child/bh-page-navigation-child.js +1 -1
- package/dist/collection/components/bh-page-navigation-multi-level/bh-page-navigation-multi-level.js +3 -3
- package/dist/collection/components/bh-page-navigation-single-level/bh-page-navigation-single-level.js +1 -1
- package/dist/collection/components/bh-pagination/bh-pagination.css +122 -58
- package/dist/collection/components/bh-pagination/bh-pagination.js +74 -30
- package/dist/collection/components/bh-pagination/bh-pagination.js.map +1 -1
- package/dist/collection/components/bh-picker-menu/bh-picker-menu.css +1 -3
- package/dist/collection/components/bh-pie-chart/bh-pie-chart.js +3 -3
- package/dist/collection/components/bh-popover/bh-popover.css +77 -260
- package/dist/collection/components/bh-popover/bh-popover.js +33 -238
- package/dist/collection/components/bh-popover/bh-popover.js.map +1 -1
- package/dist/collection/components/bh-product-switcher/bh-product-switcher.js +3 -3
- package/dist/collection/components/bh-property-switcher/bh-property-switcher.js +3 -3
- package/dist/collection/components/bh-radio-button/bh-radio-button.js +1 -1
- package/dist/collection/components/bh-sidebar/bh-nav-item.js +1 -1
- package/dist/collection/components/bh-sidebar/bh-sidebar.js +4 -4
- package/dist/collection/components/bh-skeleton-loader/bh-skeleton-loader.css +9 -22
- package/dist/collection/components/bh-skeleton-loader/bh-skeleton-loader.js +2 -2
- package/dist/collection/components/bh-skeleton-loader/bh-skeleton-loader.js.map +1 -1
- package/dist/collection/components/bh-tab-item/bh-tab-item.js +2 -2
- package/dist/collection/components/bh-tabs/bh-tabs.js +3 -3
- package/dist/collection/components/bh-tag/bh-tag.js +3 -3
- package/dist/collection/components/bh-textarea/bh-textarea.js +2 -2
- package/dist/collection/components/bh-toggle/bh-toggle.js +2 -2
- package/dist/collection/components/bh-tooltip/bh-tooltip.js +3 -3
- package/dist/collection/components/bh-trend-chart/bh-trend-chart.js +4 -4
- package/dist/collection/index.js +1 -23
- package/dist/collection/index.js.map +1 -1
- package/dist/esm/bellhop-core.js +1 -1
- package/dist/esm/bellhop-core.js.map +1 -1
- package/dist/esm/bh-accordion-item.entry.js +1 -1
- package/dist/esm/bh-autocomplete-menu_2.entry.js +1 -1
- package/dist/esm/bh-avatar.entry.js +1 -1
- package/dist/esm/bh-avatar.entry.js.map +1 -1
- package/dist/esm/bh-button.bh-loader-spinner.entry.js.map +1 -1
- package/dist/esm/bh-button_2.entry.js +111 -3
- package/dist/esm/bh-card.entry.js +1 -1
- package/dist/esm/bh-data-grid.entry.js +132 -59
- package/dist/esm/bh-data-grid.entry.js.map +1 -1
- package/dist/esm/bh-date-picker-content.entry.js +2 -2
- package/dist/esm/bh-date-picker-content.entry.js.map +1 -1
- package/dist/esm/bh-date-picker.entry.js +16 -13
- package/dist/esm/bh-date-picker.entry.js.map +1 -1
- package/dist/esm/bh-date-range-picker-content.entry.js +1 -1
- package/dist/esm/bh-date-range-picker.entry.js +1 -1
- package/dist/esm/bh-dropdown_3.entry.js +4 -4
- package/dist/esm/bh-empty-state.bh-pagination.bh-skeleton-loader.entry.js.map +1 -1
- package/dist/esm/bh-empty-state_3.entry.js +199 -6
- package/dist/esm/bh-featured-icon.entry.js +1 -1
- package/dist/esm/bh-illustrations.entry.js +3 -3
- package/dist/esm/bh-input-autocomplete.entry.js +2 -2
- package/dist/esm/bh-input-number.entry.js +1 -1
- package/dist/esm/bh-input-password.entry.js +1 -1
- package/dist/esm/bh-input-text.bh-picker-menu.entry.js.map +1 -1
- package/dist/esm/bh-input-text_2.entry.js +2 -2
- package/dist/esm/bh-input-verification.entry.js +1 -1
- package/dist/esm/bh-label.bh-tooltip.entry.js.map +1 -1
- package/dist/esm/bh-label_2.entry.js +105 -4
- package/dist/esm/bh-modal-actions.entry.js +1 -1
- package/dist/esm/bh-modal-header.entry.js +4 -4
- package/dist/esm/bh-month-picker-content.entry.js +2 -2
- package/dist/esm/bh-month-picker-content.entry.js.map +1 -1
- package/dist/esm/bh-month-picker.entry.js +2 -2
- package/dist/esm/bh-month-picker.entry.js.map +1 -1
- package/dist/esm/bh-notification.entry.js +1 -1
- package/dist/esm/bh-page-navigation-child.entry.js +1 -1
- package/dist/esm/bh-page-navigation-multi-level_2.entry.js +3 -3
- package/dist/esm/bh-page-navigation.entry.js +1 -1
- package/dist/esm/bh-pie-chart.entry.js +1 -1
- package/dist/esm/bh-popover.entry.js +15 -77
- package/dist/esm/bh-popover.entry.js.map +1 -1
- package/dist/esm/bh-property-switcher.entry.js +1 -1
- package/dist/esm/bh-sidebar.entry.js +1 -1
- package/dist/esm/bh-tab-item.entry.js +2 -2
- package/dist/esm/bh-tabs.entry.js +1 -1
- package/dist/esm/bh-textarea.entry.js +1 -1
- package/dist/esm/bh-toggle.entry.js +1 -1
- package/dist/esm/bh-trend-chart.entry.js +2 -2
- package/dist/esm/index-nAAobRRQ.js +42 -50
- package/dist/esm/index-nAAobRRQ.js.map +1 -1
- package/dist/esm/index.js +1 -15
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/bh-date-picker/bh-date-picker.d.ts +11 -1
- package/dist/types/components/bh-pagination/bh-pagination.d.ts +7 -7
- package/dist/types/components/bh-popover/bh-popover.d.ts +9 -49
- package/dist/types/components.d.ts +43 -193
- package/dist/types/index.d.ts +13 -13
- package/hydrate/index.js +283 -297
- package/hydrate/index.mjs +283 -297
- package/llms.txt +22000 -1428
- package/package.json +1 -1
- package/components/bh-container-footer.d.ts +0 -11
- package/components/bh-container-footer.js +0 -73
- package/components/bh-container-footer.js.map +0 -1
- package/components/bh-container.d.ts +0 -11
- package/components/bh-container.js +0 -48
- package/components/bh-container.js.map +0 -1
- package/components/p-8bOZFmdg.js.map +0 -1
- package/components/p-BQKx1tGq.js.map +0 -1
- package/components/p-CMoGgYqw.js.map +0 -1
- package/components/p-CdwyUif-.js.map +0 -1
- package/components/p-Npcwl1Z8.js.map +0 -1
- package/components/p-WibqGBGu.js +0 -182
- package/components/p-WibqGBGu.js.map +0 -1
- package/dist/bellhop-core/bh-container-footer.entry.esm.js.map +0 -1
- package/dist/bellhop-core/bh-container.entry.esm.js.map +0 -1
- package/dist/bellhop-core/p-233540f9.entry.js +0 -13
- package/dist/bellhop-core/p-233540f9.entry.js.map +0 -1
- package/dist/bellhop-core/p-3194a87d.entry.js +0 -2
- package/dist/bellhop-core/p-3194a87d.entry.js.map +0 -1
- package/dist/bellhop-core/p-43c41dfb.entry.js +0 -2
- package/dist/bellhop-core/p-43c41dfb.entry.js.map +0 -1
- package/dist/bellhop-core/p-4e483d25.entry.js +0 -2
- package/dist/bellhop-core/p-5514d7fb.entry.js +0 -2
- package/dist/bellhop-core/p-5514d7fb.entry.js.map +0 -1
- package/dist/bellhop-core/p-7a85db89.entry.js +0 -2
- package/dist/bellhop-core/p-80e07b3d.entry.js +0 -2
- package/dist/bellhop-core/p-80e07b3d.entry.js.map +0 -1
- package/dist/bellhop-core/p-8962e1a6.entry.js +0 -2
- package/dist/bellhop-core/p-8962e1a6.entry.js.map +0 -1
- package/dist/bellhop-core/p-CSYwm_Ke.js +0 -2
- package/dist/bellhop-core/p-CSYwm_Ke.js.map +0 -1
- package/dist/bellhop-core/p-Ck1gRAmI.js.map +0 -1
- package/dist/bellhop-core/p-DY76Ee-p.js.map +0 -1
- package/dist/bellhop-core/p-b878539a.entry.js +0 -2
- package/dist/bellhop-core/p-b878539a.entry.js.map +0 -1
- package/dist/bellhop-core/p-c33f6e73.entry.js +0 -2
- package/dist/bellhop-core/p-c33f6e73.entry.js.map +0 -1
- package/dist/bellhop-core/p-ffb29d95.entry.js +0 -2
- package/dist/cjs/bh-button-DD0c0ODJ.js +0 -117
- package/dist/cjs/bh-button-DD0c0ODJ.js.map +0 -1
- package/dist/cjs/bh-container-footer.cjs.entry.js +0 -38
- package/dist/cjs/bh-container-footer.entry.cjs.js.map +0 -1
- package/dist/cjs/bh-container.cjs.entry.js +0 -26
- package/dist/cjs/bh-container.entry.cjs.js.map +0 -1
- package/dist/cjs/bh-label-MpXjm9k0.js +0 -110
- package/dist/cjs/bh-label-MpXjm9k0.js.map +0 -1
- package/dist/cjs/bh-pagination-CgER63yz.js +0 -152
- package/dist/cjs/bh-pagination-CgER63yz.js.map +0 -1
- package/dist/collection/components/bh-container/bh-container.css +0 -21
- package/dist/collection/components/bh-container/bh-container.js +0 -51
- package/dist/collection/components/bh-container/bh-container.js.map +0 -1
- package/dist/collection/components/bh-container-footer/bh-container-footer.css +0 -22
- package/dist/collection/components/bh-container-footer/bh-container-footer.js +0 -106
- package/dist/collection/components/bh-container-footer/bh-container-footer.js.map +0 -1
- package/dist/esm/bh-button-ImGVvXaj.js +0 -115
- package/dist/esm/bh-button-ImGVvXaj.js.map +0 -1
- package/dist/esm/bh-container-footer.entry.js +0 -36
- package/dist/esm/bh-container-footer.entry.js.map +0 -1
- package/dist/esm/bh-container.entry.js +0 -24
- package/dist/esm/bh-container.entry.js.map +0 -1
- package/dist/esm/bh-label-PLT7t4We.js +0 -108
- package/dist/esm/bh-label-PLT7t4We.js.map +0 -1
- package/dist/esm/bh-pagination-CUeRSYsV.js +0 -150
- package/dist/esm/bh-pagination-CUeRSYsV.js.map +0 -1
- package/dist/types/components/bh-container/bh-container.d.ts +0 -7
- package/dist/types/components/bh-container-footer/bh-container-footer.d.ts +0 -18
- /package/dist/bellhop-core/{p-bd00d5ad.entry.js.map → p-06b0ba5f.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-4a8844ff.entry.js.map → p-0a232a85.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-67956598.entry.js.map → p-0e773f4b.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-df4498cd.entry.js.map → p-11e84742.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-a41b3673.entry.js.map → p-20e65b2b.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-a30e22f7.entry.js.map → p-2349cd39.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-3a1c52a9.entry.js.map → p-2cc352e8.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-f85a9eaa.entry.js.map → p-439f8477.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-21bc4f77.entry.js.map → p-4cf74f24.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-62235d6e.entry.js.map → p-5a0b2d81.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-07c9b7fa.entry.js.map → p-6626f089.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-36166900.entry.js.map → p-6b428841.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-6bc81ebb.entry.js.map → p-6d4c6b6f.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-c0e36166.entry.js.map → p-6dad737e.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-5c4f74b8.entry.js.map → p-738f24c8.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-49edd1bb.entry.js.map → p-7534a8d4.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-7b0cba50.entry.js.map → p-84ecaf3b.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-d5bf49ab.entry.js.map → p-cad28e7e.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-1540001e.entry.js.map → p-cb0e4e35.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-091171da.entry.js.map → p-ce2aaf37.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-a9c914ee.entry.js.map → p-e0f7b6d1.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-b0dda4df.entry.js.map → p-e83a86d6.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-2db7990e.entry.js.map → p-e96e5aa3.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-c70d11a2.entry.js.map → p-ed780663.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-0e34250c.entry.js.map → p-f4dd33af.entry.js.map} +0 -0
- /package/dist/bellhop-core/{p-1be3e908.entry.js.map → p-fe7d5dcb.entry.js.map} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h, forceUpdate } from "@stencil/core";
|
|
1
|
+
import { h, forceUpdate, } from "@stencil/core";
|
|
2
2
|
import { createTable, getCoreRowModel, getSortedRowModel, getFilteredRowModel, getPaginationRowModel, getExpandedRowModel, getGroupedRowModel, } from "@tanstack/table-core";
|
|
3
3
|
export class BhDataGrid {
|
|
4
4
|
el;
|
|
@@ -153,7 +153,9 @@ export class BhDataGrid {
|
|
|
153
153
|
handleSelectedRowIdsChange(newValue) {
|
|
154
154
|
if (this.table) {
|
|
155
155
|
const selection = {};
|
|
156
|
-
newValue.forEach(id => {
|
|
156
|
+
newValue.forEach((id) => {
|
|
157
|
+
selection[id] = true;
|
|
158
|
+
});
|
|
157
159
|
this.table.setRowSelection(selection);
|
|
158
160
|
}
|
|
159
161
|
}
|
|
@@ -168,7 +170,9 @@ export class BhDataGrid {
|
|
|
168
170
|
handleExpandedRowIdsChange(newValue) {
|
|
169
171
|
if (this.table) {
|
|
170
172
|
const expanded = {};
|
|
171
|
-
newValue.forEach(id => {
|
|
173
|
+
newValue.forEach((id) => {
|
|
174
|
+
expanded[id] = true;
|
|
175
|
+
});
|
|
172
176
|
this.table.setExpanded(expanded);
|
|
173
177
|
}
|
|
174
178
|
}
|
|
@@ -218,14 +222,24 @@ export class BhDataGrid {
|
|
|
218
222
|
},
|
|
219
223
|
getCoreRowModel: getCoreRowModel(),
|
|
220
224
|
getSortedRowModel: this.enableSorting ? getSortedRowModel() : undefined,
|
|
221
|
-
getFilteredRowModel: this.enableFiltering || this.enableGlobalFilter
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
225
|
+
getFilteredRowModel: this.enableFiltering || this.enableGlobalFilter
|
|
226
|
+
? getFilteredRowModel()
|
|
227
|
+
: undefined,
|
|
228
|
+
getPaginationRowModel: this.enablePagination
|
|
229
|
+
? getPaginationRowModel()
|
|
230
|
+
: undefined,
|
|
231
|
+
getExpandedRowModel: this.enableExpansion || this.enableGrouping
|
|
232
|
+
? getExpandedRowModel()
|
|
233
|
+
: undefined,
|
|
234
|
+
getGroupedRowModel: this.enableGrouping
|
|
235
|
+
? getGroupedRowModel()
|
|
236
|
+
: undefined,
|
|
237
|
+
getRowId: this.getRowId ||
|
|
238
|
+
((row, index) => String(row.id ?? index)),
|
|
226
239
|
getSubRows: this.getSubRows,
|
|
227
240
|
enableRowSelection: this.selectionMode !== 'none',
|
|
228
|
-
enableMultiRowSelection: this.selectionMode === 'multiple-click' ||
|
|
241
|
+
enableMultiRowSelection: this.selectionMode === 'multiple-click' ||
|
|
242
|
+
this.selectionMode === 'multiple-checkbox',
|
|
229
243
|
enableSorting: this.enableSorting,
|
|
230
244
|
enableFilters: this.enableFiltering || this.enableGlobalFilter,
|
|
231
245
|
enableExpanding: this.enableExpansion || this.enableGrouping,
|
|
@@ -242,7 +256,7 @@ export class BhDataGrid {
|
|
|
242
256
|
this.tableState = newState;
|
|
243
257
|
// Update table options with new state
|
|
244
258
|
if (this.table) {
|
|
245
|
-
this.table.setOptions(prev => ({
|
|
259
|
+
this.table.setOptions((prev) => ({
|
|
246
260
|
...prev,
|
|
247
261
|
state: newState,
|
|
248
262
|
}));
|
|
@@ -252,7 +266,8 @@ export class BhDataGrid {
|
|
|
252
266
|
this.sortState = newState.sorting;
|
|
253
267
|
this.bhSortChange.emit({ sorting: newState.sorting });
|
|
254
268
|
}
|
|
255
|
-
if (JSON.stringify(oldState.columnFilters) !==
|
|
269
|
+
if (JSON.stringify(oldState.columnFilters) !==
|
|
270
|
+
JSON.stringify(newState.columnFilters) ||
|
|
256
271
|
oldState.globalFilter !== newState.globalFilter) {
|
|
257
272
|
this.filterState = newState.columnFilters;
|
|
258
273
|
this.globalFilter = newState.globalFilter;
|
|
@@ -261,10 +276,11 @@ export class BhDataGrid {
|
|
|
261
276
|
globalFilter: newState.globalFilter,
|
|
262
277
|
});
|
|
263
278
|
}
|
|
264
|
-
if (JSON.stringify(oldState.rowSelection) !==
|
|
265
|
-
|
|
279
|
+
if (JSON.stringify(oldState.rowSelection) !==
|
|
280
|
+
JSON.stringify(newState.rowSelection)) {
|
|
281
|
+
const selectedIds = Object.keys(newState.rowSelection).filter((id) => newState.rowSelection[id]);
|
|
266
282
|
this.selectedRowIds = selectedIds;
|
|
267
|
-
const selectedRows = this.table?.getSelectedRowModel().rows.map(r => r.original) ?? [];
|
|
283
|
+
const selectedRows = this.table?.getSelectedRowModel().rows.map((r) => r.original) ?? [];
|
|
268
284
|
this.bhSelectionChange.emit({
|
|
269
285
|
selectedRowIds: selectedIds,
|
|
270
286
|
selectedRows,
|
|
@@ -284,19 +300,25 @@ export class BhDataGrid {
|
|
|
284
300
|
}
|
|
285
301
|
buildRowSelection() {
|
|
286
302
|
const selection = {};
|
|
287
|
-
this.selectedRowIds.forEach(id => {
|
|
303
|
+
this.selectedRowIds.forEach((id) => {
|
|
304
|
+
selection[id] = true;
|
|
305
|
+
});
|
|
288
306
|
return selection;
|
|
289
307
|
}
|
|
290
308
|
buildExpanded() {
|
|
291
309
|
const expanded = {};
|
|
292
|
-
this.expandedRowIds.forEach(id => {
|
|
310
|
+
this.expandedRowIds.forEach((id) => {
|
|
311
|
+
expanded[id] = true;
|
|
312
|
+
});
|
|
293
313
|
return expanded;
|
|
294
314
|
}
|
|
295
315
|
buildColumnVisibility() {
|
|
296
316
|
// Hide grouped columns
|
|
297
317
|
const visibility = {};
|
|
298
318
|
if (this.enableGrouping) {
|
|
299
|
-
this.groupBy.forEach(colId => {
|
|
319
|
+
this.groupBy.forEach((colId) => {
|
|
320
|
+
visibility[colId] = false;
|
|
321
|
+
});
|
|
300
322
|
}
|
|
301
323
|
return visibility;
|
|
302
324
|
}
|
|
@@ -376,10 +398,10 @@ export class BhDataGrid {
|
|
|
376
398
|
if (!this.enableEditing)
|
|
377
399
|
return;
|
|
378
400
|
this.editingRowId = row.id;
|
|
379
|
-
this.editingColumnId = this.editMode === 'cell' ?
|
|
401
|
+
this.editingColumnId = this.editMode === 'cell' ? columnId || null : null;
|
|
380
402
|
// Initialize editing values from current row
|
|
381
403
|
const values = {};
|
|
382
|
-
this.columns.forEach(col => {
|
|
404
|
+
this.columns.forEach((col) => {
|
|
383
405
|
const colId = col.accessorKey || col.id;
|
|
384
406
|
if (colId) {
|
|
385
407
|
values[colId] = row.original[colId];
|
|
@@ -490,8 +512,8 @@ export class BhDataGrid {
|
|
|
490
512
|
}
|
|
491
513
|
};
|
|
492
514
|
moveToNextEditableCell = (currentColumnId, reverse) => {
|
|
493
|
-
const editableColumns = this.columns.filter(col => col.meta?.editable !== false);
|
|
494
|
-
const currentIndex = editableColumns.findIndex(col => {
|
|
515
|
+
const editableColumns = this.columns.filter((col) => col.meta?.editable !== false);
|
|
516
|
+
const currentIndex = editableColumns.findIndex((col) => {
|
|
495
517
|
const colId = col.accessorKey || col.id;
|
|
496
518
|
return colId === currentColumnId;
|
|
497
519
|
});
|
|
@@ -570,23 +592,30 @@ export class BhDataGrid {
|
|
|
570
592
|
if (!this.table)
|
|
571
593
|
return null;
|
|
572
594
|
const headerGroups = this.table.getHeaderGroups();
|
|
573
|
-
return (h("
|
|
595
|
+
return (h("thead", { class: {
|
|
596
|
+
'data-grid-header': true,
|
|
597
|
+
'data-grid-header-sticky': this.stickyHeader,
|
|
598
|
+
} }, headerGroups.map((headerGroup) => (h("tr", { class: "data-grid-header-row", role: "row", key: headerGroup.id }, this.renderSelectionHeader(), this.enableExpansion && !this.enableGrouping && (h("th", { class: "data-grid-header-cell data-grid-cell-expand", role: "columnheader" })), headerGroup.headers.map((header) => this.renderHeaderCell(header)), this.enableEditing &&
|
|
599
|
+
this.showEditActions &&
|
|
600
|
+
this.editMode === 'row' && (h("th", { class: "data-grid-header-cell data-grid-cell-actions", role: "columnheader", colSpan: 1 }))))), this.showFilterRow && this.renderFilterRow()));
|
|
574
601
|
}
|
|
575
602
|
renderSelectionHeader() {
|
|
576
|
-
if (this.selectionMode === 'none' ||
|
|
603
|
+
if (this.selectionMode === 'none' ||
|
|
604
|
+
this.selectionMode === 'single-click' ||
|
|
605
|
+
this.selectionMode === 'multiple-click') {
|
|
577
606
|
return null;
|
|
578
607
|
}
|
|
579
608
|
if (this.selectionMode === 'single-radio') {
|
|
580
|
-
return h("
|
|
609
|
+
return (h("th", { class: "data-grid-header-cell data-grid-cell-select", role: "columnheader", colSpan: 1 }));
|
|
581
610
|
}
|
|
582
611
|
// Multiple checkbox - show select all
|
|
583
612
|
const isAllSelected = this.table?.getIsAllRowsSelected();
|
|
584
613
|
const isSomeSelected = this.table?.getIsSomeRowsSelected();
|
|
585
|
-
return (h("
|
|
614
|
+
return (h("th", { class: "data-grid-header-cell data-grid-cell-select", role: "columnheader", colSpan: 1 }, h("bh-checkbox", { size: "sm", checked: isAllSelected, indeterminate: isSomeSelected && !isAllSelected, onBhChange: () => this.table?.toggleAllRowsSelected() })));
|
|
586
615
|
}
|
|
587
616
|
renderHeaderCell(header) {
|
|
588
617
|
if (header.isPlaceholder) {
|
|
589
|
-
return h("
|
|
618
|
+
return (h("th", { class: "data-grid-header-cell", role: "columnheader", key: header.id, colSpan: 1 }));
|
|
590
619
|
}
|
|
591
620
|
const canSort = header.column.getCanSort();
|
|
592
621
|
const sortDirection = header.column.getIsSorted();
|
|
@@ -600,21 +629,32 @@ export class BhDataGrid {
|
|
|
600
629
|
const style = header.column.getSize()
|
|
601
630
|
? { width: `${header.column.getSize()}px` }
|
|
602
631
|
: {};
|
|
603
|
-
return (h("
|
|
632
|
+
return (h("th", { class: cellClasses, style: style, role: "columnheader", "aria-sort": sortDirection === 'asc'
|
|
633
|
+
? 'ascending'
|
|
634
|
+
: sortDirection === 'desc'
|
|
635
|
+
? 'descending'
|
|
636
|
+
: 'none', onClick: () => canSort && this.handleHeaderClick(header), key: header.id, colSpan: 1 }, h("span", { class: "data-grid-header-text" }, this.flexRender(header.column.columnDef.header, header.getContext())), canSort && sortDirection && (h("span", { class: "data-grid-sort-icon material-symbols-outlined" }, sortDirection === 'asc' ? 'north' : 'south'))));
|
|
604
637
|
}
|
|
605
638
|
renderFilterRow() {
|
|
606
639
|
if (!this.table)
|
|
607
640
|
return null;
|
|
608
641
|
const headers = this.table.getHeaderGroups()[0]?.headers || [];
|
|
609
|
-
return (h("
|
|
642
|
+
return (h("tr", { class: "data-grid-filter-row", role: "row" }, (this.selectionMode === 'single-radio' ||
|
|
643
|
+
this.selectionMode === 'multiple-checkbox') && (h("td", { class: "data-grid-filter-cell data-grid-cell-select", role: "cell" })), this.enableExpansion && !this.enableGrouping && (h("td", { class: "data-grid-filter-cell data-grid-cell-expand", role: "cell" })), headers.map((header) => {
|
|
610
644
|
const canFilter = header.column.getCanFilter();
|
|
611
645
|
const meta = header.column.columnDef.meta;
|
|
612
646
|
if (!canFilter || meta?.filterable === false) {
|
|
613
|
-
return h("div", { class: "data-grid-filter-cell", role: "cell", key: header.id });
|
|
647
|
+
return (h("div", { class: "data-grid-filter-cell", role: "cell", key: header.id }));
|
|
614
648
|
}
|
|
615
649
|
const filterValue = header.column.getFilterValue() ?? '';
|
|
616
|
-
return (h("
|
|
617
|
-
|
|
650
|
+
return (h("td", { class: "data-grid-filter-cell", role: "cell", key: header.id }, h("span", { class: "data-grid-filter-icon material-symbols-outlined" }, "search"), h("input", { type: meta?.type === 'number'
|
|
651
|
+
? 'number'
|
|
652
|
+
: meta?.type === 'date'
|
|
653
|
+
? 'date'
|
|
654
|
+
: 'text', class: "data-grid-filter-input", placeholder: ``, value: filterValue, onInput: (e) => this.handleColumnFilterChange(header.column.id, e.target.value) })));
|
|
655
|
+
}), this.enableEditing &&
|
|
656
|
+
this.showEditActions &&
|
|
657
|
+
this.editMode === 'row' && (h("td", { class: "data-grid-filter-cell data-grid-cell-actions", role: "cell" }))));
|
|
618
658
|
}
|
|
619
659
|
renderBody() {
|
|
620
660
|
if (!this.table)
|
|
@@ -628,7 +668,7 @@ export class BhDataGrid {
|
|
|
628
668
|
if (rows.length === 0) {
|
|
629
669
|
return this.renderEmptyState();
|
|
630
670
|
}
|
|
631
|
-
return (h("
|
|
671
|
+
return (h("tbody", { class: "data-grid-body", role: "rowgroup" }, rows.map((row) => {
|
|
632
672
|
if (row.getIsGrouped()) {
|
|
633
673
|
return this.renderGroupRow(row);
|
|
634
674
|
}
|
|
@@ -646,27 +686,38 @@ export class BhDataGrid {
|
|
|
646
686
|
'data-grid-row-editing': isRowEditing,
|
|
647
687
|
'data-grid-row-hover': this.hoveredRowId === row.id,
|
|
648
688
|
'data-grid-row-striped': this.striped && row.index % 2 === 1,
|
|
649
|
-
'data-grid-row-clickable': this.selectionMode === 'single-click' ||
|
|
689
|
+
'data-grid-row-clickable': this.selectionMode === 'single-click' ||
|
|
690
|
+
this.selectionMode === 'multiple-click',
|
|
650
691
|
};
|
|
651
692
|
return [
|
|
652
|
-
h("
|
|
693
|
+
h("tr", { class: rowClasses, role: "row", "aria-selected": isSelected ? 'true' : 'false', key: row.id, onClick: () => this.handleRowClick(row), onMouseEnter: () => {
|
|
694
|
+
this.hoveredRowId = row.id;
|
|
695
|
+
}, onMouseLeave: () => {
|
|
696
|
+
this.hoveredRowId = null;
|
|
697
|
+
} }, this.renderSelectionCell(row), this.enableExpansion && !this.enableGrouping && (h("td", { class: "data-grid-cell data-grid-cell-expand", role: "cell", onClick: (e) => {
|
|
698
|
+
e.stopPropagation();
|
|
699
|
+
} }, row.getCanExpand() && (h("button", { class: "data-grid-expand-btn", onClick: () => this.handleRowExpand(row), "aria-label": isExpanded ? 'Collapse row' : 'Expand row' }, h("span", { class: "material-symbols-outlined" }, isExpanded ? 'expand_more' : 'chevron_right'))))), row.getVisibleCells().map((cell) => this.renderCell(row, cell)), this.enableEditing &&
|
|
700
|
+
this.showEditActions &&
|
|
701
|
+
this.editMode === 'row' && (h("td", { class: "data-grid-cell data-grid-cell-actions", role: "cell", onClick: (e) => e.stopPropagation() }, isRowEditing ? (h("div", { class: "data-grid-edit-actions" }, h("bh-button", { hierarchy: "tertiary", kind: "success", size: "sm", icon: "only", iconName: "check", onClick: () => this.saveEditing(), title: "Save" }, "Save"), h("bh-button", { hierarchy: "tertiary", kind: "destructive", size: "sm", icon: "only", iconName: "close", onClick: () => this.cancelEditing(), title: "Cancel" }, "Cancel"))) : (h("bh-button", { hierarchy: "tertiary", size: "sm", icon: "only", iconName: "edit", onClick: () => this.startEditing(row), title: "Edit" }, h("span", { class: "material-symbols-outlined" }, "edit")))))),
|
|
653
702
|
// Expanded content
|
|
654
703
|
isExpanded && this.enableExpansion && !this.enableGrouping && (h("div", { class: "data-grid-row-expansion", key: `${row.id}-expansion` }, h("slot", { name: "expanded-row" }))),
|
|
655
704
|
];
|
|
656
705
|
}
|
|
657
706
|
renderSelectionCell(row) {
|
|
658
|
-
if (this.selectionMode === 'none' ||
|
|
707
|
+
if (this.selectionMode === 'none' ||
|
|
708
|
+
this.selectionMode === 'single-click' ||
|
|
709
|
+
this.selectionMode === 'multiple-click') {
|
|
659
710
|
return null;
|
|
660
711
|
}
|
|
661
712
|
const isSelected = row.getIsSelected();
|
|
662
713
|
if (this.selectionMode === 'single-radio') {
|
|
663
|
-
return (h("
|
|
714
|
+
return (h("td", { class: "data-grid-cell data-grid-cell-select", role: "cell", onClick: (e) => e.stopPropagation() }, h("bh-radio-button", { selected: isSelected, onBhChange: () => {
|
|
664
715
|
this.table?.resetRowSelection();
|
|
665
716
|
row.toggleSelected(true);
|
|
666
717
|
} })));
|
|
667
718
|
}
|
|
668
719
|
// Multiple checkbox
|
|
669
|
-
return (h("
|
|
720
|
+
return (h("td", { class: "data-grid-cell data-grid-cell-select", role: "cell", onClick: (e) => e.stopPropagation() }, h("bh-checkbox", { size: "sm", checked: isSelected, onBhChange: () => row.toggleSelected() })));
|
|
670
721
|
}
|
|
671
722
|
renderCell(row, cell) {
|
|
672
723
|
const meta = cell.column.columnDef.meta;
|
|
@@ -685,18 +736,22 @@ export class BhDataGrid {
|
|
|
685
736
|
const style = cell.column.getSize()
|
|
686
737
|
? { width: `${cell.column.getSize()}px` }
|
|
687
738
|
: {};
|
|
688
|
-
return (h("
|
|
739
|
+
return (h("td", { class: cellClasses, style: style, role: "cell", key: cell.id, onClick: (e) => {
|
|
689
740
|
e.stopPropagation();
|
|
690
741
|
this.handleCellClick(row, cell);
|
|
691
742
|
}, onDblClick: (e) => {
|
|
692
743
|
e.stopPropagation();
|
|
693
744
|
this.handleCellDoubleClick(row, cell);
|
|
694
|
-
} }, isCellEditing
|
|
745
|
+
} }, isCellEditing
|
|
746
|
+
? this.renderEditInput(cell)
|
|
747
|
+
: this.renderCellContent(cell), hasError && (h("span", { class: "data-grid-cell-error-text" }, this.validationErrors[columnId]))));
|
|
695
748
|
}
|
|
696
749
|
renderCellContent(cell) {
|
|
697
750
|
const rendered = this.flexRender(cell.column.columnDef.cell, cell.getContext());
|
|
698
751
|
// If custom cell renderer returns something, use it
|
|
699
|
-
if (rendered !== undefined &&
|
|
752
|
+
if (rendered !== undefined &&
|
|
753
|
+
rendered !== null &&
|
|
754
|
+
rendered !== cell.getValue()) {
|
|
700
755
|
return rendered;
|
|
701
756
|
}
|
|
702
757
|
// Default formatting
|
|
@@ -706,9 +761,12 @@ export class BhDataGrid {
|
|
|
706
761
|
const columnId = cell.column.id;
|
|
707
762
|
const meta = cell.column.columnDef.meta;
|
|
708
763
|
const currentValue = this.editingValues[columnId] ?? cell.getValue();
|
|
709
|
-
const inputType = meta?.type === 'number'
|
|
710
|
-
|
|
711
|
-
|
|
764
|
+
const inputType = meta?.type === 'number'
|
|
765
|
+
? 'number'
|
|
766
|
+
: meta?.type === 'date'
|
|
767
|
+
? 'date'
|
|
768
|
+
: meta?.type === 'boolean'
|
|
769
|
+
? 'checkbox'
|
|
712
770
|
: 'text';
|
|
713
771
|
if (meta?.type === 'boolean') {
|
|
714
772
|
return (h("bh-checkbox", { size: "sm", checked: Boolean(currentValue), onBhChange: (e) => this.handleEditValueChange(columnId, e.detail.checked) }));
|
|
@@ -725,36 +783,51 @@ export class BhDataGrid {
|
|
|
725
783
|
const groupValue = row.groupingValue;
|
|
726
784
|
const leafRows = row.getLeafRows();
|
|
727
785
|
// Check if all leaf rows are selected for group selection
|
|
728
|
-
const allSelected = leafRows.every(r => r.getIsSelected());
|
|
729
|
-
const someSelected = leafRows.some(r => r.getIsSelected());
|
|
786
|
+
const allSelected = leafRows.every((r) => r.getIsSelected());
|
|
787
|
+
const someSelected = leafRows.some((r) => r.getIsSelected());
|
|
730
788
|
const rowClasses = {
|
|
731
789
|
'data-grid-row': true,
|
|
732
790
|
'data-grid-row-group': true,
|
|
733
791
|
'data-grid-row-group-expanded': isExpanded,
|
|
734
792
|
};
|
|
735
793
|
return [
|
|
736
|
-
h("
|
|
737
|
-
leafRows.forEach(r => r.toggleSelected(!allSelected));
|
|
794
|
+
h("tr", { class: rowClasses, role: "row", "aria-expanded": isExpanded ? 'true' : 'false', key: row.id, onClick: () => this.handleGroupToggle(row) }, this.selectionMode === 'multiple-checkbox' && (h("div", { class: "data-grid-cell data-grid-cell-select", role: "cell", onClick: (e) => e.stopPropagation() }, h("bh-checkbox", { size: "sm", checked: allSelected, indeterminate: someSelected && !allSelected, onBhChange: () => {
|
|
795
|
+
leafRows.forEach((r) => r.toggleSelected(!allSelected));
|
|
738
796
|
} }))), h("div", { class: "data-grid-cell data-grid-cell-group-label", role: "cell" }, h("button", { class: "data-grid-group-toggle", "aria-label": isExpanded ? 'Collapse group' : 'Expand group' }, h("span", { class: "material-symbols-outlined" }, isExpanded ? 'expand_more' : 'chevron_right')), h("span", { class: "data-grid-group-label" }, h("span", { class: "data-grid-group-column" }, groupingColumnId, ": "), h("span", { class: "data-grid-group-value" }, String(groupValue))), h("span", { class: "data-grid-group-count" }, "(", leafRows.length, " ", leafRows.length === 1 ? 'item' : 'items', ")"))),
|
|
739
797
|
// Render child rows if expanded
|
|
740
|
-
isExpanded &&
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
798
|
+
isExpanded &&
|
|
799
|
+
row.subRows.map((subRow) => {
|
|
800
|
+
if (subRow.getIsGrouped()) {
|
|
801
|
+
return this.renderGroupRow(subRow);
|
|
802
|
+
}
|
|
803
|
+
return this.renderDataRow(subRow);
|
|
804
|
+
}),
|
|
746
805
|
];
|
|
747
806
|
}
|
|
748
807
|
renderEmptyState() {
|
|
749
|
-
|
|
808
|
+
const columnCount = this.columns.length +
|
|
809
|
+
(this.selectionMode === 'single-radio' ||
|
|
810
|
+
this.selectionMode === 'multiple-checkbox'
|
|
811
|
+
? 1
|
|
812
|
+
: 0) +
|
|
813
|
+
(this.enableExpansion && !this.enableGrouping ? 1 : 0) +
|
|
814
|
+
(this.enableEditing && this.showEditActions && this.editMode === 'row'
|
|
815
|
+
? 1
|
|
816
|
+
: 0);
|
|
817
|
+
return (h("tbody", { class: "data-grid-body", role: "rowgroup" }, h("tr", { class: "data-grid-empty", role: "row" }, h("td", { role: "cell", colSpan: columnCount }, h("div", { class: "empty-state-wrapper" }, h("bh-empty-state", { emptyTitle: this.emptyTitle, description: this.emptyDescription }))))));
|
|
750
818
|
}
|
|
751
819
|
renderSkeleton() {
|
|
752
820
|
const skeletonRows = Array.from({ length: this.skeletonRowCount }, (_, i) => i);
|
|
753
821
|
const columnCount = this.columns.length +
|
|
754
|
-
(this.selectionMode === 'single-radio' ||
|
|
822
|
+
(this.selectionMode === 'single-radio' ||
|
|
823
|
+
this.selectionMode === 'multiple-checkbox'
|
|
824
|
+
? 1
|
|
825
|
+
: 0) +
|
|
755
826
|
(this.enableExpansion && !this.enableGrouping ? 1 : 0) +
|
|
756
|
-
(this.enableEditing && this.showEditActions && this.editMode === 'row'
|
|
757
|
-
|
|
827
|
+
(this.enableEditing && this.showEditActions && this.editMode === 'row'
|
|
828
|
+
? 1
|
|
829
|
+
: 0);
|
|
830
|
+
return (h("div", { class: "data-grid-body data-grid-skeleton", role: "rowgroup" }, skeletonRows.map((i) => (h("div", { class: "data-grid-row data-grid-row-skeleton", role: "row", key: i }, Array.from({ length: columnCount }, (_, j) => (h("div", { class: "data-grid-cell", role: "cell", key: j }, h("bh-skeleton-loader", { width: "80%", height: "16px" })))))))));
|
|
758
831
|
}
|
|
759
832
|
renderLoadingOverlay() {
|
|
760
833
|
if (!this.loading || this.loadingType !== 'spinner')
|
|
@@ -765,7 +838,7 @@ export class BhDataGrid {
|
|
|
765
838
|
if (!this.enablePagination || !this.table)
|
|
766
839
|
return null;
|
|
767
840
|
const rowCount = this.table.getFilteredRowModel().rows.length;
|
|
768
|
-
return (h("bh-pagination", { page: this.page, totalItems: rowCount, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, onBhPageChange: this.handlePaginationChange, onBhPageSizeChange: this.handlePaginationChange }));
|
|
841
|
+
return (h("bh-pagination", { page: this.page, totalItems: rowCount, pageSize: this.pageSize, pageSizeOptions: this.pageSizeOptions, showItemCount: false, compact: true, onBhPageChange: this.handlePaginationChange, onBhPageSizeChange: this.handlePaginationChange }));
|
|
769
842
|
}
|
|
770
843
|
// ===========================================================================
|
|
771
844
|
// Main Render
|
|
@@ -781,7 +854,7 @@ export class BhDataGrid {
|
|
|
781
854
|
const containerStyle = this.maxHeight
|
|
782
855
|
? { maxHeight: this.maxHeight, overflowY: 'auto' }
|
|
783
856
|
: {};
|
|
784
|
-
return (h("div", { key: '
|
|
857
|
+
return (h("div", { key: '42e71a54dc147533e05938275bf747919b89aed6', class: gridClasses, role: "grid", "aria-busy": this.loading ? 'true' : 'false' }, this.captionPosition === 'top' && this.renderCaption(), this.renderGlobalFilter(), h("div", { key: 'f8aede627ce62a8195f439ff81aad478aa1544ba', class: "data-grid-container", style: containerStyle }, h("table", { key: '528f578c5a756960d139a5a1a5cd171961c97ceb', class: "data-grid-table" }, this.renderHeader(), this.renderBody()), this.renderLoadingOverlay()), this.captionPosition === 'bottom' && this.renderCaption(), this.renderPagination()));
|
|
785
858
|
}
|
|
786
859
|
static get is() { return "bh-data-grid"; }
|
|
787
860
|
static get encapsulation() { return "shadow"; }
|