globuswebcomponents 2.9.2 → 2.10.1
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/cjs/gb-avatar-dropdown_5.cjs.entry.js +5 -5
- package/dist/cjs/gb-avatar-label-group_3.cjs.entry.js +2 -2
- package/dist/cjs/gb-avatar_44.cjs.entry.js +148 -99
- package/dist/cjs/gb-collapse-button_4.cjs.entry.js +2 -2
- package/dist/cjs/gb-header.cjs.entry.js +2 -2
- package/dist/cjs/gb-horizontal-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-logo.cjs.entry.js +1 -1
- package/dist/cjs/gb-mega-input-field-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-metric-card.cjs.entry.js +1 -1
- package/dist/cjs/gb-metric-featured-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-modal-action_3.cjs.entry.js +5 -5
- package/dist/cjs/gb-nav-bar-item.cjs.entry.js +1 -1
- package/dist/cjs/gb-nav-bar-sidemenu.cjs.entry.js +1 -1
- package/dist/cjs/gb-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/gb-notification-content.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination-dot-group.cjs.entry.js +1 -1
- package/dist/cjs/gb-pagination-dot-indicator.cjs.entry.js +1 -1
- package/dist/cjs/gb-progress-bar.cjs.entry.js +1 -1
- package/dist/cjs/gb-progress-circle.cjs.entry.js +1 -1
- package/dist/cjs/gb-prompt-modal.cjs.entry.js +1 -1
- package/dist/cjs/gb-quick-action-card.cjs.entry.js +1 -1
- package/dist/cjs/gb-quick-action-icon.cjs.entry.js +1 -1
- package/dist/cjs/gb-scrollbar.cjs.entry.js +1 -1
- package/dist/cjs/gb-sidebar.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider-control-handle.cjs.entry.js +1 -1
- package/dist/cjs/gb-slider.cjs.entry.js +1 -1
- package/dist/cjs/gb-step-base_2.cjs.entry.js +2 -2
- package/dist/cjs/gb-stepper-horizontal-icons-centered.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-icons-connected.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-line-with-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-horizontal-minimal-icons.cjs.entry.js +1 -1
- package/dist/cjs/gb-stepper-vertical-icons-with-text.cjs.entry.js +1 -1
- package/dist/cjs/gb-tab-button-base.cjs.entry.js +2 -2
- package/dist/cjs/gb-toast-button.cjs.entry.js +1 -1
- package/dist/cjs/gb-toast.cjs.entry.js +1 -1
- package/dist/cjs/gb-token-field-compact.cjs.entry.js +1 -1
- package/dist/cjs/gb-token-field-compressed.cjs.entry.js +2 -2
- package/dist/cjs/gb-vertical-tabs.cjs.entry.js +1 -1
- package/dist/cjs/gb-wysiwyg-editor-icon.cjs.entry.js +1 -1
- package/dist/cjs/globuscomponents.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/reusableModels-_LRAKnsh.js.map +1 -1
- package/dist/cjs/test-input-tag.cjs.entry.js +2 -2
- package/dist/collection/components/gb-button/readme.md +2 -0
- package/dist/collection/components/gb-dropdown-items-with-shortcut/gb-dropdown-items-with-shortcut.css +0 -1
- package/dist/collection/components/gb-filter-modal/gb-filter-modal.css +25 -0
- package/dist/collection/components/gb-filter-modal/gb-filter-modal.js +2 -2
- package/dist/collection/components/gb-filter-modal/gb-filter-modal.js.map +1 -1
- package/dist/collection/components/gb-header/gb-header.js +2 -2
- package/dist/collection/components/gb-header-icon/gb-header-icon.js +1 -1
- package/dist/collection/components/gb-help-dropdown/gb-help-dropdown.js +1 -1
- package/dist/collection/components/gb-help-tooltip/gb-help-tooltip.js +1 -1
- package/dist/collection/components/gb-horizontal-tabs/gb-horizontal-tabs.js +1 -1
- package/dist/collection/components/gb-icon-button-base/gb-icon-button-base.js +1 -1
- package/dist/collection/components/gb-illustration/gb-illustration.js +8 -8
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js +16 -4
- package/dist/collection/components/gb-input-dropdown/gb-input-dropdown.js.map +1 -1
- package/dist/collection/components/gb-input-dropdown-menu-item/gb-input-dropdown-menu-item.js +2 -2
- package/dist/collection/components/gb-input-field/gb-input-field.js +25 -13
- package/dist/collection/components/gb-input-field/gb-input-field.js.map +1 -1
- package/dist/collection/components/gb-logo/gb-logo.js +1 -1
- package/dist/collection/components/gb-mega-input-field-base/gb-mega-input-field-base.js +2 -2
- package/dist/collection/components/gb-metric-card/gb-metric-card.js +1 -1
- package/dist/collection/components/gb-metric-featured-icon/gb-metric-featured-icon.js +1 -1
- package/dist/collection/components/gb-modal-header/gb-modal-header.js +2 -2
- package/dist/collection/components/gb-nav-bar/gb-nav-bar.js +1 -1
- package/dist/collection/components/gb-nav-bar-item/gb-nav-bar-item.js +1 -1
- package/dist/collection/components/gb-nav-bar-sidemenu/gb-nav-bar-sidemenu.js +1 -1
- package/dist/collection/components/gb-notification-content/gb-notification-content.js +1 -1
- package/dist/collection/components/gb-notification-pane/gb-notification-pane.js +3 -3
- package/dist/collection/components/gb-pagination/gb-pagination.js +4 -4
- package/dist/collection/components/gb-pagination-button-group-base/gb-pagination-button-group-base.js +1 -1
- package/dist/collection/components/gb-pagination-dot-group/gb-pagination-dot-group.js +1 -1
- package/dist/collection/components/gb-pagination-dot-indicator/gb-pagination-dot-indicator.js +1 -1
- package/dist/collection/components/gb-pagination-number-base/gb-pagination-number-base.js +1 -1
- package/dist/collection/components/gb-password-button/gb-password-button.js +1 -1
- package/dist/collection/components/gb-pattern/gb-pattern.js +1 -1
- package/dist/collection/components/gb-portal/gb-portal.js +1 -1
- package/dist/collection/components/gb-progress-bar/gb-progress-bar.js +1 -1
- package/dist/collection/components/gb-progress-circle/gb-progress-circle.js +1 -1
- package/dist/collection/components/gb-prompt-modal/gb-prompt-modal.js +1 -1
- package/dist/collection/components/gb-quick-action-card/gb-quick-action-card.js +1 -1
- package/dist/collection/components/gb-quick-action-icon/gb-quick-action-icon.js +1 -1
- package/dist/collection/components/gb-scrollbar/gb-scrollbar.js +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +1 -1
- package/dist/collection/components/gb-simple-side-bar-item/gb-simple-side-bar-item.js +2 -2
- package/dist/collection/components/gb-slider/gb-slider.js +1 -1
- package/dist/collection/components/gb-slider-control-handle/gb-slider-control-handle.js +1 -1
- package/dist/collection/components/gb-status-indicator/gb-status-indicator.js +1 -1
- package/dist/collection/components/gb-step-base/gb-step-base.js +1 -1
- package/dist/collection/components/gb-step-icon-base/gb-step-icon-base.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-icons-centered/gb-stepper-horizontal-icons-centered.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-icons-connected/gb-stepper-horizontal-icons-connected.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-line-with-text/gb-stepper-horizontal-line-with-text.js +1 -1
- package/dist/collection/components/gb-stepper-horizontal-minimal-icons/gb-stepper-horizontal-minimal-icons.js +1 -1
- package/dist/collection/components/gb-stepper-vertical-icons-with-text/gb-stepper-vertical-icons-with-text.js +1 -1
- package/dist/collection/components/gb-tab-button-base/gb-tab-button-base.js +2 -2
- package/dist/collection/components/gb-table/gb-table.css +27 -14
- package/dist/collection/components/gb-table/gb-table.js +111 -53
- package/dist/collection/components/gb-table/gb-table.js.map +1 -1
- package/dist/collection/components/gb-table-header/gb-table-header.css +0 -1
- package/dist/collection/components/gb-table-header/gb-table-header.js +2 -2
- package/dist/collection/components/gb-tag/gb-tag.js +1 -1
- package/dist/collection/components/gb-tag-checkbox/gb-tag-checkbox.js +1 -1
- package/dist/collection/components/gb-tag-close/gb-tag-close.js +1 -1
- package/dist/collection/components/gb-tag-count/gb-tag-count.js +1 -1
- package/dist/collection/components/gb-textarea-input-field/gb-textarea-input-field.js +3 -3
- package/dist/collection/components/gb-theme-tab/gb-theme-tab.js +1 -1
- package/dist/collection/components/gb-toast/gb-toast.js +1 -1
- package/dist/collection/components/gb-toast-button/gb-toast-button.js +1 -1
- package/dist/collection/components/gb-toggle/gb-toggle.js +1 -1
- package/dist/collection/components/gb-toggle-base/gb-toggle-base.js +2 -2
- package/dist/collection/components/gb-toggle-base/gb-toggle-base.js.map +1 -1
- package/dist/collection/components/gb-token-field-compact/gb-token-field-compact.js +1 -1
- package/dist/collection/components/gb-token-field-compressed/gb-token-field-compressed.js +2 -2
- package/dist/collection/components/gb-tooltip/gb-tooltip.js +1 -1
- package/dist/collection/components/gb-vertical-tabs/gb-vertical-tabs.js +1 -1
- package/dist/collection/components/gb-wysiwyg-editor-icon/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/collection/components/test-input-tag/test-input-tag.js +2 -2
- package/dist/collection/models/reusableModels.js.map +1 -1
- package/dist/components/gb-action-panel.js +2 -2
- package/dist/components/gb-approval-modal.js +13 -13
- package/dist/components/gb-avatar-add-button.js +1 -1
- package/dist/components/gb-avatar-dropdown.js +1 -1
- package/dist/components/gb-avatar-group.js +4 -4
- package/dist/components/gb-avatar-label-group.js +1 -1
- package/dist/components/gb-avatar-profile-photo.js +2 -2
- package/dist/components/gb-avatar.js +1 -1
- package/dist/components/gb-badge.js +1 -1
- package/dist/components/gb-btn.js +1 -1
- package/dist/components/gb-button.js +1 -1
- package/dist/components/gb-checkbox-group-item.js +1 -1
- package/dist/components/gb-checkbox-group.js +5 -5
- package/dist/components/gb-collapse-button.js +1 -1
- package/dist/components/gb-comment.js +2 -2
- package/dist/components/gb-complex-primary-side-bar-item.js +1 -1
- package/dist/components/gb-complex-secondary-side-bar-item.js +1 -1
- package/dist/components/gb-contact-help-dropdown.js +1 -1
- package/dist/components/gb-date-picker.js +1 -1
- package/dist/components/gb-detail-cell.js +5 -5
- package/dist/components/gb-dropdown-items-with-shortcut.js +1 -1
- package/dist/components/gb-empty-state.js +1 -1
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +4 -4
- package/dist/components/gb-filter-button.js +1 -1
- package/dist/components/gb-filter-modal.js +1 -1
- package/dist/components/gb-header-icon.js +1 -1
- package/dist/components/gb-header.js +26 -26
- package/dist/components/gb-help-dropdown.js +1 -1
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-horizontal-tabs.js +5 -5
- package/dist/components/gb-icon-button-base.js +1 -1
- package/dist/components/gb-illustration.js +1 -1
- package/dist/components/gb-input-dropdown-menu-item.js +1 -1
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-input-field.js +1 -1
- package/dist/components/gb-logo.js +1 -1
- package/dist/components/gb-mega-input-field-base.js +1 -1
- package/dist/components/gb-metric-card.js +5 -5
- package/dist/components/gb-metric-featured-icon.js +1 -1
- package/dist/components/gb-modal-action.js +1 -1
- package/dist/components/gb-modal-header.js +1 -1
- package/dist/components/gb-nav-bar-item.js +1 -1
- package/dist/components/gb-nav-bar-sidemenu.js +6 -6
- package/dist/components/gb-nav-bar.js +4 -4
- package/dist/components/gb-notification-content.js +1 -1
- package/dist/components/gb-notification-pane.js +1 -1
- package/dist/components/gb-pagination-button-group-base.js +1 -1
- package/dist/components/gb-pagination-dot-group.js +1 -1
- package/dist/components/gb-pagination-dot-indicator.js +1 -1
- package/dist/components/gb-pagination-number-base.js +1 -1
- package/dist/components/gb-pagination.js +1 -1
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-pattern.js +1 -1
- package/dist/components/gb-portal.js +1 -1
- package/dist/components/gb-progress-bar.js +1 -1
- package/dist/components/gb-progress-circle.js +1 -1
- package/dist/components/gb-prompt-modal.js +3 -3
- package/dist/components/gb-quick-action-card.js +1 -1
- package/dist/components/gb-quick-action-icon.js +1 -1
- package/dist/components/gb-scrollbar.js +1 -1
- package/dist/components/gb-sidebar.js +9 -9
- package/dist/components/gb-simple-side-bar-item.js +1 -1
- package/dist/components/gb-slider-control-handle.js +1 -1
- package/dist/components/gb-slider.js +3 -3
- package/dist/components/gb-status-indicator.js +1 -1
- package/dist/components/gb-step-base.js +1 -1
- package/dist/components/gb-step-icon-base.js +1 -1
- package/dist/components/gb-stepper-horizontal-icons-centered.js +3 -3
- package/dist/components/gb-stepper-horizontal-icons-connected.js +1 -1
- package/dist/components/gb-stepper-horizontal-line-with-text.js +3 -3
- package/dist/components/gb-stepper-horizontal-minimal-icons.js +2 -2
- package/dist/components/gb-stepper-vertical-icons-with-text.js +3 -3
- package/dist/components/gb-tab-button-base.js +1 -1
- package/dist/components/gb-table-header.js +1 -1
- package/dist/components/gb-table.js +102 -76
- package/dist/components/gb-table.js.map +1 -1
- package/dist/components/gb-tag-checkbox.js +1 -1
- package/dist/components/gb-tag-close.js +1 -1
- package/dist/components/gb-tag-count.js +1 -1
- package/dist/components/gb-tag.js +1 -1
- package/dist/components/gb-textarea-input-field.js +1 -1
- package/dist/components/gb-theme-tab.js +1 -1
- package/dist/components/gb-toast-button.js +1 -1
- package/dist/components/gb-toast.js +4 -4
- package/dist/components/gb-toggle-base.js +1 -1
- package/dist/components/gb-toggle.js +1 -1
- package/dist/components/gb-token-field-compact.js +1 -1
- package/dist/components/gb-token-field-compressed.js +3 -3
- package/dist/components/gb-tooltip.js +1 -1
- package/dist/components/gb-vertical-tabs.js +1 -1
- package/dist/components/gb-wysiwyg-editor-icon.js +1 -1
- package/dist/components/gb-wysiwyg-tooltip.js +1 -1
- package/dist/components/{p-R8O1scXv.js → p-3LUuAIuq.js} +3 -3
- package/dist/components/{p-R8O1scXv.js.map → p-3LUuAIuq.js.map} +1 -1
- package/dist/components/{p-B6BxHB8R.js → p-8KPRgq60.js} +3 -3
- package/dist/components/{p-B6BxHB8R.js.map → p-8KPRgq60.js.map} +1 -1
- package/dist/components/{p-Bdn4kcZi.js → p-9CtKkSzA.js} +3 -3
- package/dist/components/{p-Bdn4kcZi.js.map → p-9CtKkSzA.js.map} +1 -1
- package/dist/components/{p-BJOkCh_x.js → p-B1dO_zNp.js} +39 -27
- package/dist/components/p-B1dO_zNp.js.map +1 -0
- package/dist/components/{p-DZCN7I6L.js → p-B5gEkPoU.js} +12 -12
- package/dist/components/{p-DZCN7I6L.js.map → p-B5gEkPoU.js.map} +1 -1
- package/dist/components/{p-BJFPVKGm.js → p-B6k24H6F.js} +3 -3
- package/dist/components/{p-BJFPVKGm.js.map → p-B6k24H6F.js.map} +1 -1
- package/dist/components/{p-Dat2kZmt.js → p-B8xTwy6a.js} +3 -3
- package/dist/components/{p-Dat2kZmt.js.map → p-B8xTwy6a.js.map} +1 -1
- package/dist/components/{p-6TpaI9Ja.js → p-BCs1raYY.js} +4 -4
- package/dist/components/{p-6TpaI9Ja.js.map → p-BCs1raYY.js.map} +1 -1
- package/dist/components/{p-Dpw-kexX.js → p-BH7Tv4o3.js} +3 -3
- package/dist/components/{p-Dpw-kexX.js.map → p-BH7Tv4o3.js.map} +1 -1
- package/dist/components/{p-CR9jnMpX.js → p-BKPSkaip.js} +4 -4
- package/dist/components/{p-CR9jnMpX.js.map → p-BKPSkaip.js.map} +1 -1
- package/dist/components/{p-3Du3w-pS.js → p-BN5SQJZH.js} +4 -4
- package/dist/components/p-BN5SQJZH.js.map +1 -0
- package/dist/components/{p-Dx4zk5W2.js → p-BUXMMSJn.js} +6 -6
- package/dist/components/{p-Dx4zk5W2.js.map → p-BUXMMSJn.js.map} +1 -1
- package/dist/components/{p-BE9K_y7Z.js → p-BVq_Ti-V.js} +3 -3
- package/dist/components/{p-BE9K_y7Z.js.map → p-BVq_Ti-V.js.map} +1 -1
- package/dist/components/{p-CCJRBTmm.js → p-BpoNaOin.js} +3 -3
- package/dist/components/{p-CCJRBTmm.js.map → p-BpoNaOin.js.map} +1 -1
- package/dist/components/{p-D7oemwx-.js → p-BrOSaQiR.js} +3 -3
- package/dist/components/{p-D7oemwx-.js.map → p-BrOSaQiR.js.map} +1 -1
- package/dist/components/{p-C3KltUhi.js → p-Bsju_6ME.js} +3 -3
- package/dist/components/{p-C3KltUhi.js.map → p-Bsju_6ME.js.map} +1 -1
- package/dist/components/{p-CSpKPJjc.js → p-Bw7gw9s2.js} +6 -6
- package/dist/components/{p-CSpKPJjc.js.map → p-Bw7gw9s2.js.map} +1 -1
- package/dist/components/{p-CCntxtbY.js → p-BzdxMBqd.js} +3 -3
- package/dist/components/{p-CCntxtbY.js.map → p-BzdxMBqd.js.map} +1 -1
- package/dist/components/{p-BEMW7MAj.js → p-C3Ne5oaM.js} +4 -4
- package/dist/components/{p-BEMW7MAj.js.map → p-C3Ne5oaM.js.map} +1 -1
- package/dist/components/{p-CLliPnaQ.js → p-CIpMWSO-.js} +4 -4
- package/dist/components/{p-CLliPnaQ.js.map → p-CIpMWSO-.js.map} +1 -1
- package/dist/components/{p-CaLY0gIQ.js → p-CJ9LMMSm.js} +3 -3
- package/dist/components/{p-CaLY0gIQ.js.map → p-CJ9LMMSm.js.map} +1 -1
- package/dist/components/{p-BGstTFHH.js → p-CLZal_C6.js} +4 -4
- package/dist/components/{p-BGstTFHH.js.map → p-CLZal_C6.js.map} +1 -1
- package/dist/components/{p-BbkOZ1UN.js → p-CMSgQk_J.js} +3 -3
- package/dist/components/{p-BbkOZ1UN.js.map → p-CMSgQk_J.js.map} +1 -1
- package/dist/components/{p-vPCRhWG0.js → p-CTquChw2.js} +6 -6
- package/dist/components/{p-vPCRhWG0.js.map → p-CTquChw2.js.map} +1 -1
- package/dist/components/{p-CBwlEMQ5.js → p-CYpM3pUM.js} +31 -19
- package/dist/components/p-CYpM3pUM.js.map +1 -0
- package/dist/components/{p-Dfb-OutP.js → p-CbooQRoa.js} +21 -21
- package/dist/components/p-CbooQRoa.js.map +1 -0
- package/dist/components/{p-fASCuyDJ.js → p-CgRjoJ7j.js} +3 -3
- package/dist/components/{p-fASCuyDJ.js.map → p-CgRjoJ7j.js.map} +1 -1
- package/dist/components/{p-EGGrvNi9.js → p-Cgs2Vwnw.js} +3 -3
- package/dist/components/{p-EGGrvNi9.js.map → p-Cgs2Vwnw.js.map} +1 -1
- package/dist/components/{p-BAGZEYW2.js → p-CoUI1smZ.js} +22 -10
- package/dist/components/p-CoUI1smZ.js.map +1 -0
- package/dist/components/{p-b7wvY55u.js → p-Cpjhc0YK.js} +10 -10
- package/dist/components/{p-b7wvY55u.js.map → p-Cpjhc0YK.js.map} +1 -1
- package/dist/components/{p-BzJXAtNx.js → p-Cr8eGx5W.js} +5 -5
- package/dist/components/{p-BzJXAtNx.js.map → p-Cr8eGx5W.js.map} +1 -1
- package/dist/components/{p-2WcQOU7L.js → p-CuhbZLf5.js} +8 -8
- package/dist/components/{p-2WcQOU7L.js.map → p-CuhbZLf5.js.map} +1 -1
- package/dist/components/{p-6Kej_eJl.js → p-CxmrLytr.js} +8 -8
- package/dist/components/{p-6Kej_eJl.js.map → p-CxmrLytr.js.map} +1 -1
- package/dist/components/{p-BNqVPbQ7.js → p-D1T18wZL.js} +4 -4
- package/dist/components/{p-BNqVPbQ7.js.map → p-D1T18wZL.js.map} +1 -1
- package/dist/components/{p-_h_4WkXb.js → p-D9WlXXTb.js} +3 -3
- package/dist/components/{p-_h_4WkXb.js.map → p-D9WlXXTb.js.map} +1 -1
- package/dist/components/{p-BbXo5waU.js → p-DA7bBOGE.js} +4 -4
- package/dist/components/{p-BbXo5waU.js.map → p-DA7bBOGE.js.map} +1 -1
- package/dist/components/{p-CDv_iDEr.js → p-DMTc86TV.js} +3 -3
- package/dist/components/{p-CDv_iDEr.js.map → p-DMTc86TV.js.map} +1 -1
- package/dist/components/{p-CT7vYQvP.js → p-DUg13FZJ.js} +4 -4
- package/dist/components/{p-CT7vYQvP.js.map → p-DUg13FZJ.js.map} +1 -1
- package/dist/components/{p-ya98VTMO.js → p-DWd7gFDp.js} +7 -7
- package/dist/components/{p-ya98VTMO.js.map → p-DWd7gFDp.js.map} +1 -1
- package/dist/components/{p-CKcfW5yy.js → p-DXcUl9ra.js} +3 -3
- package/dist/components/{p-CKcfW5yy.js.map → p-DXcUl9ra.js.map} +1 -1
- package/dist/components/{p-PCho9z7U.js → p-DaM2q3ak.js} +3 -3
- package/dist/components/{p-PCho9z7U.js.map → p-DaM2q3ak.js.map} +1 -1
- package/dist/components/{p-Cx2Xt959.js → p-DfwhwEoc.js} +7 -7
- package/dist/components/{p-Cx2Xt959.js.map → p-DfwhwEoc.js.map} +1 -1
- package/dist/components/{p-VX-r7DWK.js → p-Dg7B5nH1.js} +4 -4
- package/dist/components/{p-VX-r7DWK.js.map → p-Dg7B5nH1.js.map} +1 -1
- package/dist/components/{p-SeXvUygb.js → p-DhGPhyRl.js} +5 -5
- package/dist/components/{p-SeXvUygb.js.map → p-DhGPhyRl.js.map} +1 -1
- package/dist/components/{p-C3Ivr_B7.js → p-Dhj1-0eP.js} +4 -4
- package/dist/components/{p-C3Ivr_B7.js.map → p-Dhj1-0eP.js.map} +1 -1
- package/dist/components/{p-DZk-NM0K.js → p-DiwgKK9w.js} +8 -8
- package/dist/components/{p-DZk-NM0K.js.map → p-DiwgKK9w.js.map} +1 -1
- package/dist/components/{p-AdMRLJlb.js → p-DrYuPFS5.js} +7 -7
- package/dist/components/{p-AdMRLJlb.js.map → p-DrYuPFS5.js.map} +1 -1
- package/dist/components/{p-CBVQbHoV.js → p-DsEln-e0.js} +6 -6
- package/dist/components/{p-CBVQbHoV.js.map → p-DsEln-e0.js.map} +1 -1
- package/dist/components/{p-BbQUkO3X.js → p-Dsq6pKFl.js} +3 -3
- package/dist/components/{p-BbQUkO3X.js.map → p-Dsq6pKFl.js.map} +1 -1
- package/dist/components/{p-BMBFKBlF.js → p-DvBv-n5E.js} +4 -4
- package/dist/components/{p-BMBFKBlF.js.map → p-DvBv-n5E.js.map} +1 -1
- package/dist/components/{p-DI3C89i1.js → p-DzCRnNZl.js} +3 -3
- package/dist/components/{p-DI3C89i1.js.map → p-DzCRnNZl.js.map} +1 -1
- package/dist/components/{p-TwFNB1NA.js → p-NcCpLnkb.js} +4 -4
- package/dist/components/{p-TwFNB1NA.js.map → p-NcCpLnkb.js.map} +1 -1
- package/dist/components/{p-BywypKHW.js → p-QMvxRWGo.js} +3 -3
- package/dist/components/{p-BywypKHW.js.map → p-QMvxRWGo.js.map} +1 -1
- package/dist/components/p-cHn6O-Kf.js.map +1 -1
- package/dist/components/{p-CJBJjlyG.js → p-gpZ2X_c1.js} +3 -3
- package/dist/components/{p-CJBJjlyG.js.map → p-gpZ2X_c1.js.map} +1 -1
- package/dist/components/{p-Co457UXm.js → p-lP887Fvg.js} +10 -10
- package/dist/components/{p-Co457UXm.js.map → p-lP887Fvg.js.map} +1 -1
- package/dist/components/{p-CQLcNjHY.js → p-luUMKdgw.js} +4 -4
- package/dist/components/{p-CQLcNjHY.js.map → p-luUMKdgw.js.map} +1 -1
- package/dist/components/{p-DTtSax3C.js → p-rfgtX-Yh.js} +3 -3
- package/dist/components/{p-DTtSax3C.js.map → p-rfgtX-Yh.js.map} +1 -1
- package/dist/components/{p-VqHJf1uS.js → p-uJGVGDOJ.js} +22 -22
- package/dist/components/{p-VqHJf1uS.js.map → p-uJGVGDOJ.js.map} +1 -1
- package/dist/components/{p-btCkXoB_.js → p-wbR36hMv.js} +4 -4
- package/dist/components/{p-btCkXoB_.js.map → p-wbR36hMv.js.map} +1 -1
- package/dist/components/test-input-tag.js +9 -9
- package/dist/docs.json +72 -14
- package/dist/esm/gb-avatar-dropdown_5.entry.js +5 -5
- package/dist/esm/gb-avatar-label-group_3.entry.js +2 -2
- package/dist/esm/gb-avatar_44.entry.js +148 -99
- package/dist/esm/gb-collapse-button_4.entry.js +2 -2
- package/dist/esm/gb-header.entry.js +2 -2
- package/dist/esm/gb-horizontal-tabs.entry.js +1 -1
- package/dist/esm/gb-logo.entry.js +1 -1
- package/dist/esm/gb-mega-input-field-base.entry.js +2 -2
- package/dist/esm/gb-metric-card.entry.js +1 -1
- package/dist/esm/gb-metric-featured-icon.entry.js +1 -1
- package/dist/esm/gb-modal-action_3.entry.js +5 -5
- package/dist/esm/gb-nav-bar-item.entry.js +1 -1
- package/dist/esm/gb-nav-bar-sidemenu.entry.js +1 -1
- package/dist/esm/gb-nav-bar.entry.js +1 -1
- package/dist/esm/gb-notification-content.entry.js +1 -1
- package/dist/esm/gb-pagination-dot-group.entry.js +1 -1
- package/dist/esm/gb-pagination-dot-indicator.entry.js +1 -1
- package/dist/esm/gb-progress-bar.entry.js +1 -1
- package/dist/esm/gb-progress-circle.entry.js +1 -1
- package/dist/esm/gb-prompt-modal.entry.js +1 -1
- package/dist/esm/gb-quick-action-card.entry.js +1 -1
- package/dist/esm/gb-quick-action-icon.entry.js +1 -1
- package/dist/esm/gb-scrollbar.entry.js +1 -1
- package/dist/esm/gb-sidebar.entry.js +1 -1
- package/dist/esm/gb-slider-control-handle.entry.js +1 -1
- package/dist/esm/gb-slider.entry.js +1 -1
- package/dist/esm/gb-step-base_2.entry.js +2 -2
- package/dist/esm/gb-stepper-horizontal-icons-centered.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-icons-connected.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-line-with-text.entry.js +1 -1
- package/dist/esm/gb-stepper-horizontal-minimal-icons.entry.js +1 -1
- package/dist/esm/gb-stepper-vertical-icons-with-text.entry.js +1 -1
- package/dist/esm/gb-tab-button-base.entry.js +2 -2
- package/dist/esm/gb-toast-button.entry.js +1 -1
- package/dist/esm/gb-toast.entry.js +1 -1
- package/dist/esm/gb-token-field-compact.entry.js +1 -1
- package/dist/esm/gb-token-field-compressed.entry.js +2 -2
- package/dist/esm/gb-vertical-tabs.entry.js +1 -1
- package/dist/esm/gb-wysiwyg-editor-icon.entry.js +1 -1
- package/dist/esm/globuscomponents.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/reusableModels-cHn6O-Kf.js.map +1 -1
- package/dist/esm/test-input-tag.entry.js +2 -2
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-d1ce0f80.entry.js → p-0104af18.entry.js} +2 -2
- package/dist/globuscomponents/{p-ee3e3ffa.entry.js → p-05a29c1a.entry.js} +2 -2
- package/dist/globuscomponents/{p-e49cac6d.entry.js → p-2a47d7a6.entry.js} +2 -2
- package/dist/globuscomponents/{p-7f1adad7.entry.js → p-37f87474.entry.js} +2 -2
- package/dist/globuscomponents/{p-ee7e25c4.entry.js → p-40e5be27.entry.js} +2 -2
- package/dist/globuscomponents/{p-61872974.entry.js → p-433c7415.entry.js} +2 -2
- package/dist/globuscomponents/{p-4ec62490.entry.js → p-4cb9a4c0.entry.js} +2 -2
- package/dist/globuscomponents/{p-47155c79.entry.js → p-5a002d95.entry.js} +2 -2
- package/dist/globuscomponents/{p-563f3f9c.entry.js → p-5d0e8192.entry.js} +2 -2
- package/dist/globuscomponents/{p-f3ac27d9.entry.js → p-60e4f305.entry.js} +2 -2
- package/dist/globuscomponents/{p-201f6b79.entry.js → p-64c25eca.entry.js} +2 -2
- package/dist/globuscomponents/{p-ab818182.entry.js → p-669c6e2e.entry.js} +2 -2
- package/dist/globuscomponents/{p-21b20a87.entry.js → p-66f5363a.entry.js} +2 -2
- package/dist/globuscomponents/{p-eb4d444c.entry.js → p-6825b63d.entry.js} +2 -2
- package/dist/globuscomponents/{p-bf5b3dfe.entry.js → p-6d1f7f89.entry.js} +2 -2
- package/dist/globuscomponents/{p-e9b5af5c.entry.js → p-7133f4ef.entry.js} +2 -2
- package/dist/globuscomponents/p-7b7eee40.entry.js +2 -0
- package/dist/globuscomponents/{p-872e1752.entry.js → p-852014ab.entry.js} +2 -2
- package/dist/globuscomponents/{p-2fe0e837.entry.js → p-8e7e76da.entry.js} +2 -2
- package/dist/globuscomponents/p-8e7e76da.entry.js.map +1 -0
- package/dist/globuscomponents/{p-45e02e0a.entry.js → p-9a086995.entry.js} +2 -2
- package/dist/globuscomponents/p-9f87e97d.entry.js +2 -0
- package/dist/globuscomponents/{p-300cd753.entry.js → p-a8ed8e7c.entry.js} +2 -2
- package/dist/globuscomponents/{p-21ee6522.entry.js → p-af2fadf8.entry.js} +2 -2
- package/dist/globuscomponents/{p-1ca5b476.entry.js → p-b0c00fce.entry.js} +2 -2
- package/dist/globuscomponents/{p-d045e691.entry.js → p-b6a0161e.entry.js} +2 -2
- package/dist/globuscomponents/{p-e3dad59d.entry.js → p-b72d51e3.entry.js} +2 -2
- package/dist/globuscomponents/{p-75251944.entry.js → p-b72eda91.entry.js} +2 -2
- package/dist/globuscomponents/{p-90c1ec81.entry.js → p-c22a4cfd.entry.js} +2 -2
- package/dist/globuscomponents/{p-33dda74f.entry.js → p-c4decd4a.entry.js} +2 -2
- package/dist/globuscomponents/p-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/{p-3a8cc8c3.entry.js → p-cc54f44a.entry.js} +2 -2
- package/dist/globuscomponents/{p-0d3acd6a.entry.js → p-d55dc1ab.entry.js} +2 -2
- package/dist/globuscomponents/{p-51aa14a5.entry.js → p-da156fba.entry.js} +2 -2
- package/dist/globuscomponents/{p-4f44a0cb.entry.js → p-df5538b0.entry.js} +2 -2
- package/dist/globuscomponents/{p-7483911b.entry.js → p-e2b42130.entry.js} +2 -2
- package/dist/globuscomponents/{p-ed32b068.entry.js → p-e4895336.entry.js} +2 -2
- package/dist/globuscomponents/{p-f337949a.entry.js → p-e68d4d8a.entry.js} +2 -2
- package/dist/globuscomponents/{p-22f1c3e9.entry.js → p-e8f42c89.entry.js} +2 -2
- package/dist/globuscomponents/{p-07442acf.entry.js → p-eb087176.entry.js} +2 -2
- package/dist/globuscomponents/{p-ae4b0f08.entry.js → p-f904cfc0.entry.js} +2 -2
- package/dist/globuscomponents/{p-31d72720.entry.js → p-fdd80101.entry.js} +2 -2
- package/dist/globuscomponents/readme.md +2 -0
- package/dist/types/components/gb-table/gb-table.d.ts +11 -3
- package/dist/types/components.d.ts +28 -12
- package/dist/types/models/reusableModels.d.ts +3 -0
- package/package.json +1 -1
- package/dist/components/p-3Du3w-pS.js.map +0 -1
- package/dist/components/p-BAGZEYW2.js.map +0 -1
- package/dist/components/p-BJOkCh_x.js.map +0 -1
- package/dist/components/p-CBwlEMQ5.js.map +0 -1
- package/dist/components/p-Dfb-OutP.js.map +0 -1
- package/dist/globuscomponents/p-2fe0e837.entry.js.map +0 -1
- package/dist/globuscomponents/p-98d25cbc.entry.js +0 -2
- package/dist/globuscomponents/p-f084a9b2.entry.js +0 -2
- /package/dist/globuscomponents/{p-d1ce0f80.entry.js.map → p-0104af18.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ee3e3ffa.entry.js.map → p-05a29c1a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e49cac6d.entry.js.map → p-2a47d7a6.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7f1adad7.entry.js.map → p-37f87474.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ee7e25c4.entry.js.map → p-40e5be27.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-61872974.entry.js.map → p-433c7415.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4ec62490.entry.js.map → p-4cb9a4c0.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-47155c79.entry.js.map → p-5a002d95.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-563f3f9c.entry.js.map → p-5d0e8192.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f3ac27d9.entry.js.map → p-60e4f305.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-201f6b79.entry.js.map → p-64c25eca.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ab818182.entry.js.map → p-669c6e2e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-21b20a87.entry.js.map → p-66f5363a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-eb4d444c.entry.js.map → p-6825b63d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-bf5b3dfe.entry.js.map → p-6d1f7f89.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e9b5af5c.entry.js.map → p-7133f4ef.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f084a9b2.entry.js.map → p-7b7eee40.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-872e1752.entry.js.map → p-852014ab.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-45e02e0a.entry.js.map → p-9a086995.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-98d25cbc.entry.js.map → p-9f87e97d.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-300cd753.entry.js.map → p-a8ed8e7c.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-21ee6522.entry.js.map → p-af2fadf8.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-1ca5b476.entry.js.map → p-b0c00fce.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d045e691.entry.js.map → p-b6a0161e.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e3dad59d.entry.js.map → p-b72d51e3.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-75251944.entry.js.map → p-b72eda91.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-90c1ec81.entry.js.map → p-c22a4cfd.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-33dda74f.entry.js.map → p-c4decd4a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-3a8cc8c3.entry.js.map → p-cc54f44a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-0d3acd6a.entry.js.map → p-d55dc1ab.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-51aa14a5.entry.js.map → p-da156fba.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4f44a0cb.entry.js.map → p-df5538b0.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-7483911b.entry.js.map → p-e2b42130.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ed32b068.entry.js.map → p-e4895336.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-f337949a.entry.js.map → p-e68d4d8a.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-22f1c3e9.entry.js.map → p-e8f42c89.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-07442acf.entry.js.map → p-eb087176.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ae4b0f08.entry.js.map → p-f904cfc0.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-31d72720.entry.js.map → p-fdd80101.entry.js.map} +0 -0
|
@@ -5,7 +5,7 @@ export class GbTable {
|
|
|
5
5
|
this.loading = false;
|
|
6
6
|
this.columns = [
|
|
7
7
|
{ key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } },
|
|
8
|
-
{ key: 'date', label: 'Date', mobile: { position: 'bottom_left' } },
|
|
8
|
+
{ key: 'date', label: 'Date', value: row => row.date.toLocaleString(), mobile: { position: 'bottom_left' } },
|
|
9
9
|
{ key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, supportingText: row => row.role, mobile: { position: 'top_right' } },
|
|
10
10
|
{ key: 'role', label: 'Role' },
|
|
11
11
|
{ key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' },
|
|
@@ -17,7 +17,7 @@ export class GbTable {
|
|
|
17
17
|
cellSlots: {
|
|
18
18
|
default: {
|
|
19
19
|
tag: 'p',
|
|
20
|
-
content: row => row.status,
|
|
20
|
+
content: row => row.status,
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
},
|
|
@@ -33,7 +33,11 @@ export class GbTable {
|
|
|
33
33
|
// amount: '$120.00',
|
|
34
34
|
// status: 'Completed',
|
|
35
35
|
// },
|
|
36
|
-
{ id: '#3002', date:
|
|
36
|
+
// { id: '#3002', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },
|
|
37
|
+
// { id: '#3003', date: new Date(), name: 'Liam Smith', role: 'Frontend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },
|
|
38
|
+
// { id: '#3004', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },
|
|
39
|
+
// { id: '#3005', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },
|
|
40
|
+
// { id: '#3006', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },
|
|
37
41
|
{ id: '#3003', date: 'Jan 3, 2022', name: 'Olivia Brown', role: 'UI Designer', level: 'Today', customer: 'Michael Lee', amount: '$230.75', status: 'Cancelled' },
|
|
38
42
|
{ id: '#3004', date: 'Jan 4, 2022', name: 'Noah Davis', role: 'DevOps Engineer', level: 'Today', customer: 'Emily Clark', amount: '$59.99', status: 'Completed' },
|
|
39
43
|
{ id: '#3005', date: 'Jan 5, 2022', name: 'Ava Martinez', role: 'Product Manager', level: 'Today', customer: 'Daniel Harris', amount: '$410.00', status: 'Pending' },
|
|
@@ -165,11 +169,12 @@ export class GbTable {
|
|
|
165
169
|
{ label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', disabled: false },
|
|
166
170
|
{ label: 'Delete', action: 'delete', icon: 'assets/delete-02.svg', disabled: true },
|
|
167
171
|
];
|
|
168
|
-
this.stickyFirstColumn =
|
|
169
|
-
this.stickyLastColumn =
|
|
172
|
+
this.stickyFirstColumn = false;
|
|
173
|
+
this.stickyLastColumn = false;
|
|
170
174
|
this.actionsType = 'none';
|
|
171
|
-
this.showCheckbox =
|
|
175
|
+
this.showCheckbox = false;
|
|
172
176
|
this.tableHeadColor = 'gray';
|
|
177
|
+
this.rowKey = 'id';
|
|
173
178
|
this.internalCurrentPage = 1;
|
|
174
179
|
this.internalPageSize = 10;
|
|
175
180
|
this.openRowIndex = null;
|
|
@@ -183,6 +188,7 @@ export class GbTable {
|
|
|
183
188
|
this.showFilterModal = false;
|
|
184
189
|
this.modalPosition = { x: 0, y: 0 };
|
|
185
190
|
this.showFilterModalInternal = false;
|
|
191
|
+
this.isFilterModalVisible = false;
|
|
186
192
|
this.internalLoading = false;
|
|
187
193
|
this.isDraggingModal = false;
|
|
188
194
|
this.dragOffset = { x: 0, y: 0 };
|
|
@@ -233,7 +239,7 @@ export class GbTable {
|
|
|
233
239
|
requestAnimationFrame(() => this.checkScrollability());
|
|
234
240
|
}
|
|
235
241
|
checkViewport() {
|
|
236
|
-
this.isMobile = window.innerWidth <=
|
|
242
|
+
this.isMobile = window.innerWidth <= 900;
|
|
237
243
|
this.checkScrollability();
|
|
238
244
|
}
|
|
239
245
|
checkScrollability() {
|
|
@@ -246,7 +252,7 @@ export class GbTable {
|
|
|
246
252
|
}
|
|
247
253
|
}
|
|
248
254
|
handleAction(action, row) {
|
|
249
|
-
this.
|
|
255
|
+
this.rowActionClicked.emit({ action, row });
|
|
250
256
|
}
|
|
251
257
|
renderCell(col, row) {
|
|
252
258
|
var _a, _b, _c;
|
|
@@ -279,6 +285,13 @@ export class GbTable {
|
|
|
279
285
|
const supporting = typeof col.supportingText === 'function' ? col.supportingText(row) : col.supportingText ? row[col.supportingText] : undefined;
|
|
280
286
|
return (h("div", { class: "text_and_supporting_text" }, h("div", { class: "primary" }, h("p", { class: "text-sm-medium" }, primary)), supporting && (h("div", { class: "supporting" }, h("p", { class: "text-xs-regular" }, supporting)))));
|
|
281
287
|
}
|
|
288
|
+
const value = this.getCellValue(col, row);
|
|
289
|
+
return h("p", { class: "body_text text-sm-regular" }, value);
|
|
290
|
+
}
|
|
291
|
+
getCellValue(col, row) {
|
|
292
|
+
if (col.value) {
|
|
293
|
+
return col.value(row);
|
|
294
|
+
}
|
|
282
295
|
return h("p", { class: "body_text text-sm-regular" }, row[col.key]);
|
|
283
296
|
}
|
|
284
297
|
emitPaginationDetails({ detail }) {
|
|
@@ -330,8 +343,8 @@ export class GbTable {
|
|
|
330
343
|
if (!col)
|
|
331
344
|
return this.data;
|
|
332
345
|
return [...this.data].sort((a, b) => {
|
|
333
|
-
let valA = a[this.sortKey];
|
|
334
|
-
let valB = b[this.sortKey];
|
|
346
|
+
let valA = col.value ? col.value(a) : a[this.sortKey];
|
|
347
|
+
let valB = col.value ? col.value(b) : b[this.sortKey];
|
|
335
348
|
// Null safety
|
|
336
349
|
if (valA == null)
|
|
337
350
|
return 1;
|
|
@@ -368,28 +381,34 @@ export class GbTable {
|
|
|
368
381
|
get isIndeterminate() {
|
|
369
382
|
return this.selectedRowIds.size > 0 && this.selectedRowIds.size < this.sortedData.length;
|
|
370
383
|
}
|
|
384
|
+
getRowId(row) {
|
|
385
|
+
if (typeof this.rowKey === 'function') {
|
|
386
|
+
return this.rowKey(row);
|
|
387
|
+
}
|
|
388
|
+
return row[this.rowKey];
|
|
389
|
+
}
|
|
371
390
|
toggleAll() {
|
|
372
391
|
if (this.allSelected) {
|
|
373
392
|
this.selectedRowIds = new Set();
|
|
374
393
|
}
|
|
375
394
|
else {
|
|
376
|
-
this.selectedRowIds = new Set(this.sortedData.map(row => row
|
|
395
|
+
this.selectedRowIds = new Set(this.sortedData.map(row => this.getRowId(row)));
|
|
377
396
|
}
|
|
378
397
|
this.emitSelection();
|
|
379
398
|
}
|
|
380
399
|
toggleRow(row) {
|
|
381
400
|
const updated = new Set(this.selectedRowIds);
|
|
382
|
-
if (updated.has(row
|
|
383
|
-
updated.delete(row
|
|
401
|
+
if (updated.has(this.getRowId(row))) {
|
|
402
|
+
updated.delete(this.getRowId(row));
|
|
384
403
|
}
|
|
385
404
|
else {
|
|
386
|
-
updated.add(row
|
|
405
|
+
updated.add(this.getRowId(row));
|
|
387
406
|
}
|
|
388
407
|
this.selectedRowIds = updated;
|
|
389
408
|
this.emitSelection();
|
|
390
409
|
}
|
|
391
410
|
emitSelection() {
|
|
392
|
-
const selected = this.sortedData.filter(row => this.selectedRowIds.has(row
|
|
411
|
+
const selected = this.sortedData.filter(row => this.selectedRowIds.has(this.getRowId(row)));
|
|
393
412
|
this.selectionChanged.emit(selected);
|
|
394
413
|
}
|
|
395
414
|
get displayedData() {
|
|
@@ -397,28 +416,28 @@ export class GbTable {
|
|
|
397
416
|
return this.sortedData;
|
|
398
417
|
}
|
|
399
418
|
if (this.paginationConfig.paginationMode === 'external') {
|
|
400
|
-
return this.sortedData;
|
|
419
|
+
return this.sortedData;
|
|
401
420
|
}
|
|
402
421
|
const start = (this.internalCurrentPage - 1) * this.internalPageSize;
|
|
403
422
|
const end = start + this.internalPageSize;
|
|
404
423
|
return this.sortedData.slice(start, end);
|
|
405
424
|
}
|
|
406
425
|
get totalPages() {
|
|
426
|
+
var _a;
|
|
407
427
|
if (!this.paginationConfig)
|
|
408
428
|
return 1;
|
|
409
|
-
const pageSize = this.
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
this.data = newValue;
|
|
429
|
+
const pageSize = this.internalPageSize || 1;
|
|
430
|
+
if (this.paginationConfig.paginationMode === 'external') {
|
|
431
|
+
const totalItems = (_a = this.paginationConfig.totalItems) !== null && _a !== void 0 ? _a : 0;
|
|
432
|
+
return Math.max(1, Math.ceil(totalItems / pageSize));
|
|
433
|
+
}
|
|
434
|
+
const totalItems = this.sortedData.length;
|
|
435
|
+
return Math.max(1, Math.ceil(totalItems / pageSize));
|
|
417
436
|
}
|
|
418
|
-
|
|
419
|
-
if (!newValue
|
|
420
|
-
|
|
421
|
-
this.
|
|
437
|
+
onDataChange() {
|
|
438
|
+
// if (!newValue) return;
|
|
439
|
+
// this.data = newValue;
|
|
440
|
+
this.internalCurrentPage = 1;
|
|
422
441
|
}
|
|
423
442
|
onLoadingChange(newValue, _oldValue) {
|
|
424
443
|
this.internalLoading = newValue;
|
|
@@ -426,9 +445,8 @@ export class GbTable {
|
|
|
426
445
|
renderHeaderIcons(col) {
|
|
427
446
|
return (h(Fragment, null, col.sortable && (h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", style: {
|
|
428
447
|
transform: this.sortKey === col.key && this.sortDirection === 'desc' ? 'rotate(180deg)' : 'rotate(0deg)',
|
|
429
|
-
opacity: this.sortKey === col.key ? '1' : '0.4',
|
|
430
448
|
transition: 'transform 0.2s ease',
|
|
431
|
-
} }, h("path", { d: "M7.99998 13.3332V2.6665M7.99998 13.3332C8.87837 13.3332 11.3333 9.99993 11.3333 9.99993M7.99998 13.3332C7.12158 13.3332 4.66663 9.9999 4.66663 9.9999", stroke:
|
|
449
|
+
} }, h("path", { d: "M7.99998 13.3332V2.6665M7.99998 13.3332C8.87837 13.3332 11.3333 9.99993 11.3333 9.99993M7.99998 13.3332C7.12158 13.3332 4.66663 9.9999 4.66663 9.9999", stroke: this.sortKey === col.key ? 'var(--color-icon, #4B5565)' : 'var(--color-icon-disabled, #808c9e)', "stroke-linecap": "round", "stroke-linejoin": "round" }))), col.helpIcon && (h("gb-help-tooltip", { "show-supporting-text": "true" }, h("p", { slot: "label" }, "This is a label"), h("p", { slot: "supporting_text" }, "This is a supporting text")))));
|
|
432
450
|
}
|
|
433
451
|
renderDesktopView() {
|
|
434
452
|
// compute table min-width to force horizontal scroll when > 5 columns
|
|
@@ -465,7 +483,7 @@ export class GbTable {
|
|
|
465
483
|
sticky_right: this.stickyLastColumn,
|
|
466
484
|
has_border: this.isScrollable,
|
|
467
485
|
[`table_header_${this.tableHeadColor}`]: true,
|
|
468
|
-
} }, h("div", { class: "empty_div" }))))), h("tbody", null, this.displayedData.map((row, rowIndex) => (h("tr", { class: "table_body" }, this.showCheckbox && (h("td", { class: `table_detail ${this.showCheckbox ? 'checkbox' : ''}` }, h("gb-checkbox", { type: "checkbox", checked: this.selectedRowIds.has(row
|
|
486
|
+
} }, h("div", { class: "empty_div" }))))), h("tbody", null, this.displayedData.map((row, rowIndex) => (h("tr", { class: "table_body" }, this.showCheckbox && (h("td", { class: `table_detail ${this.showCheckbox ? 'checkbox' : ''}` }, h("gb-checkbox", { type: "checkbox", checked: this.selectedRowIds.has(this.getRowId(row)), indeterminate: false, size: "sm", onClick: () => this.toggleRow(row) }))), this.internalColumns
|
|
469
487
|
.filter(col => col.visible)
|
|
470
488
|
.map((col, index) => (h(Fragment, null, h("td", { style: { textAlign: col.align || 'left' }, class: `table_detail ${this.stickyFirstColumn && index === 0 ? 'sticky_left' : ''} ${this.isScrollable ? 'has_border' : ''}` }, this.renderCell(col, row))))), this.showActionsColumn && (h("td", { class: { table_detail: true, actions_cell: true, sticky_right: this.stickyLastColumn, has_border: this.isScrollable }, style: { width: '50px' } }, h(Fragment, null, h("div", { class: "action_buttons" }, this.rowActions.map(action => (h(Fragment, null, action.type === 'dropdown' ? (h("gb-button", { id: `gb-table-trigger-${rowIndex}`, ref: el => (this.actionButtonRefs[rowIndex] = el), class: "dropdown_button", hierarchy: "tertiary_gray", size: "md", icon: "only", iconLeading: true, iconLeadingSwap: "assets/more-horizontal.svg", onClick: () => this.toggleDropdown(rowIndex) })) : (h("gb-button", { hierarchy: "tertiary_gray", size: "md", icon: "only", destructive: action.destructive, iconLeading: true, iconLeadingSwap: action.icon, onClick: () => this.handleAction(action.action, row) })))))), h(Fragment, null, this.openRowIndex === rowIndex && (h("gb-portal", { "anchor-id": `gb-table-trigger-${rowIndex}`, placement: this.dropdownPlacement, anchorEl: this.currentAnchorEl, boundaryEl: this.scrollContainer, dropdownHeight: requestAnimationFrame(() => this.dropdownRef.scrollHeight), open: true }, h("div", { class: "portal_dropdown_wrapper", ref: el => (this.dropdownRef = el) }, this.dropdownOptions.map(action => (h("gb-dropdown-items-with-shortcut", { icon: action.icon ? true : false, state: action.disabled ? StateEnum.Disabled : StateEnum.Default, label: action.label, "icon-src": action.icon, onClick: () => {
|
|
471
489
|
this.handleAction(action.action, row);
|
|
@@ -489,7 +507,7 @@ export class GbTable {
|
|
|
489
507
|
const topRight = this.internalColumns.find(c => { var _a; return ((_a = c.mobile) === null || _a === void 0 ? void 0 : _a.position) === 'top_right'; });
|
|
490
508
|
const bottomLeft = this.internalColumns.find(c => { var _a; return ((_a = c.mobile) === null || _a === void 0 ? void 0 : _a.position) === 'bottom_left'; });
|
|
491
509
|
const bottomRight = this.internalColumns.find(c => { var _a; return ((_a = c.mobile) === null || _a === void 0 ? void 0 : _a.position) === 'bottom_right'; });
|
|
492
|
-
return (h("div", { class: "mobile_card_wrapper", style: { paddingLeft: this.showCheckbox ? 'var(--spacing-4)' : '' } }, this.showCheckbox && (h("gb-checkbox", { style: { paddingTop: 'var(--spacing-6)' }, type: "checkbox", checked: this.selectedRowIds.has(row
|
|
510
|
+
return (h("div", { class: "mobile_card_wrapper", style: { paddingLeft: this.showCheckbox ? 'var(--spacing-4)' : '' } }, this.showCheckbox && (h("gb-checkbox", { style: { paddingTop: 'var(--spacing-6)' }, type: "checkbox", checked: this.selectedRowIds.has(this.getRowId(row)), indeterminate: false, size: "sm", onClick: () => this.toggleRow(row) })), h("div", { class: "mobile-card", onClick: () => this.emitRowData(row) }, h("div", { class: "mobile-row left" }, h("div", { class: "mobile-cell" }, h("p", { class: "top_left_text text-md-regular" }, topLeft && row[topLeft.key])), h("div", { class: "mobile-cell" }, h("p", { class: "bottom_left_text text-sm-regular" }, bottomLeft && row[bottomLeft.key]))), h("div", { class: "mobile-row right" }, h("div", { class: "mobile-cell right" }, h("p", { class: "top_right_text text-md-semi-bold" }, topRight && row[topRight.key])), h("div", { class: "mobile-cell right" }, bottomRight && this.renderCell(bottomRight, row))))));
|
|
493
511
|
})));
|
|
494
512
|
}
|
|
495
513
|
emitSearchValue(detail) {
|
|
@@ -524,31 +542,38 @@ export class GbTable {
|
|
|
524
542
|
}
|
|
525
543
|
openFilterModal() {
|
|
526
544
|
this.showFilterModalInternal = true;
|
|
545
|
+
requestAnimationFrame(() => {
|
|
546
|
+
this.isFilterModalVisible = true;
|
|
547
|
+
});
|
|
527
548
|
}
|
|
528
549
|
closeFilterModal() {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
550
|
+
this.isFilterModalVisible = false;
|
|
551
|
+
setTimeout(() => {
|
|
552
|
+
this.showFilterModalInternal = false;
|
|
553
|
+
}, 300); // match CSS duration
|
|
554
|
+
}
|
|
555
|
+
onApplyFilters(detail) {
|
|
556
|
+
console.log(detail.detail);
|
|
557
|
+
this.applyFilters.emit(detail.detail);
|
|
558
|
+
this.showFilterModalInternal = false;
|
|
534
559
|
}
|
|
535
560
|
disconnectedCallback() {
|
|
536
561
|
window.removeEventListener('resize', this.checkViewport);
|
|
537
562
|
}
|
|
538
563
|
render() {
|
|
539
|
-
return (h("div", { key: '
|
|
564
|
+
return (h("div", { key: '8bf218dd383ce4c55691dc04d254e6636d6ff0ff', class: `table_wrapper` }, h("gb-table-header", { key: '0a863522b02e72a3fb7e5679077e652e8884e9e7', mode: this.tableHeaderConfig.datePickerMode, "table-heading": this.tableHeaderConfig.tableHeading, "table-heading-label": this.tableHeaderConfig.tableHeadingLabel, "show-search": this.tableHeaderConfig.showSearch, "show-date-filter": this.tableHeaderConfig.showDateFilter, "show-filter": this.tableHeaderConfig.showFilter, "show-export": this.tableHeaderConfig.showExport, "show-column-options": this.tableHeaderConfig.showColumnOptions, "show-refresh-button": this.tableHeaderConfig.showRefreshButton, "input-placeholder": this.tableHeaderConfig.inputPlaceholder, "date-picker-placeholder": this.tableHeaderConfig.datePickerPlaceholder, "show-entire-data": this.tableHeaderConfig.showEntireData, "show-layout-toggle": this.tableHeaderConfig.showLayoutToggle, "filter-state": this.tableHeaderConfig.filterState, "filter-count": this.tableHeaderConfig.filterCount, "export-button-state": this.tableHeaderConfig.exportButtonState, "pdf-state": this.tableHeaderConfig.pdfState, "csv-state": this.tableHeaderConfig.csvState, onInputValueChanged: this.emitSearchValue.bind(this), onDateChange: this.emitDateChange.bind(this), onColumnOptionsButtonClicked: this.columnOptionsButtonClicked(), onExportClicked: e => this.exportButtonClicked(e), onFilterButtonClicked: () => this.openFilterModal() }), this.showColumnsPanel && (h("div", { key: 'df924de56e4a460fe547761feac86a7bbb201685', class: "dialog", style: {
|
|
540
565
|
transform: `translate(${this.modalPosition.x}px, ${this.modalPosition.y}px)`,
|
|
541
|
-
} }, h("div", { key: '
|
|
566
|
+
} }, h("div", { key: 'bb235311181d9fa10c220a9ad5d167f7b2d6b7ba', class: "column-modal" }, h("div", { key: '6737e80a35ce7715725c8db11d8dcf5b6de02abd', class: "modal_header" }, h("div", { key: 'fa7b2231bc818067836c432dc476d68d3a2c3c38', class: "modal_header_content", onPointerDown: this.onModalPointerDown }, h("h4", { key: 'fc61b141f020f4f011ccd10595cf086bebee0961', class: "heading display-xs-semi-bold" }, "Column Options"), h("gb-button-close", { key: '9f5c1e85d466c1cfc09f0318aaadf69cd9494522', class: "close_button", color: "gray", size: "sm", onClick: () => (this.showColumnsPanel = false) }))), h("div", { key: '810d309d91ae854d4e56e7ca83377df317e635cb', class: "content_wrapper" }, h("div", { key: 'a02769c1a276f534371a0340f602fa9e48e6c0be', class: "modal_content" }, this.internalColumns.map((col, index) => (h("div", { class: "column_option", draggable: true, onDragStart: () => (this.draggedIndex = index), onDragOver: e => e.preventDefault(), onDrop: () => {
|
|
542
567
|
if (this.draggedIndex !== null && this.draggedIndex !== index) {
|
|
543
568
|
this.reorderColumns(this.draggedIndex, index);
|
|
544
569
|
}
|
|
545
570
|
this.draggedIndex = null;
|
|
546
571
|
} }, h("div", { class: "label_and_dragger" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none" }, h("path", { d: "M8 6H8.00635M8 12H8.00635M8 18H8.00635M15.9937 6H16M15.9937 12H16M15.9937 18H16", stroke: "var(--color-icon, #4B5565)", "stroke-width": "2.5", "stroke-linecap": "round", "stroke-linejoin": "round" })), h("p", { class: "label text-md-regular" }, col.label)), h("gb-toggle", { size: "sm", state: StateEnum.Default, position: "right", pressed: col.visible, text: false, onToggleClicked: e => {
|
|
547
572
|
this.toggleColumn(e, col.key);
|
|
548
|
-
} })))), h("div", { key: '
|
|
573
|
+
} })))), h("div", { key: 'fdc109263cb77b272114672fa9f6a4a9999cbf66', class: "modal-actions" })))))), this.showFilterModalInternal && (h("div", { key: 'aec360cebfdab526ae3efd0818ab4fc56910311d', class: `filter_modal_wrapper ${this.isFilterModalVisible ? 'open' : 'closing'}` }, h("gb-filter-modal", { key: 'b465d2cbfd2e98a827226ee9c0ced68b176507cc', class: "filter_modal", filterConfig: this.filterConfig, onClose: e => {
|
|
549
574
|
e.stopPropagation();
|
|
550
575
|
this.closeFilterModal();
|
|
551
|
-
} }))), this.internalLoading ? (
|
|
576
|
+
}, onApplyFilters: e => this.onApplyFilters(e) }))), this.internalLoading ? (
|
|
552
577
|
// ✅ ALWAYS show loading when loading = true
|
|
553
578
|
h("table", null, h("thead", null, h("tr", { class: "table_head_row" }, this.showCheckbox && (h("th", { class: {
|
|
554
579
|
checkbox: true,
|
|
@@ -573,7 +598,7 @@ export class GbTable {
|
|
|
573
598
|
sticky_right: this.stickyLastColumn,
|
|
574
599
|
has_border: this.isScrollable,
|
|
575
600
|
[`table_header_${this.tableHeadColor}`]: true,
|
|
576
|
-
} }, h("div", { class: "empty_div" }))))), h("tbody", null, Array.from({ length: 5 }).map(
|
|
601
|
+
} }, h("div", { class: "empty_div" }))))), h("tbody", null, Array.from({ length: 5 }).map(_ => (h("tr", { class: "table_body" }, this.showCheckbox && (h("td", { class: "table_detail checkbox" }, h("gb-checkbox", { type: "checkbox", checked: this.allSelected, indeterminate: this.isIndeterminate, size: "sm", onClick: () => this.toggleAll() }))), this.internalColumns
|
|
577
602
|
.filter(col => col.visible)
|
|
578
603
|
.map((_col, index) => (h("td", { class: `table_detail ${this.stickyFirstColumn && index === 0 ? 'sticky_left' : ''} ${this.isScrollable ? 'has_border' : ''}` }, h("div", { class: "loader" }, h("div", { class: "skeleton skeleton-text" }))))), this.showActionsColumn && (h("td", { class: {
|
|
579
604
|
table_detail: true,
|
|
@@ -584,7 +609,7 @@ export class GbTable {
|
|
|
584
609
|
// ✅ No loading + no data = empty state
|
|
585
610
|
h("div", { class: "empty_state_wrapper" }, h("gb-empty-state", { size: "sm", "main-text": this.emptyStateConfig.mainText, "supporting-text": this.emptyStateConfig.supportingText, color: this.emptyStateConfig.color, theme: this.emptyStateConfig.theme, "primary-button-icon-leading-swap": "assets/plus.svg", "illustration-icon": this.emptyStateConfig.illustrationIcon, background: true, "background-type": "grid", icon: "illustration", "illustration-style": "cloud" }))) : (
|
|
586
611
|
// ✅ Has data + not loading
|
|
587
|
-
h(Fragment, null, this.isMobile ? this.renderMobileView() : this.renderDesktopView())), this.paginationConfig && this.data.length > 0 && (h("gb-pagination", { key: '
|
|
612
|
+
h(Fragment, null, this.isMobile ? this.renderMobileView() : this.renderDesktopView())), this.paginationConfig && this.data.length > 0 && (h("gb-pagination", { key: 'a1ff95791946be630b863dbfc6745ad68a2034ed', "entries-dropdown-menu-position": this.paginationConfig.entriesDropdownMenuPosition, "page-size": this.paginationConfig.pageSize, "current-page": this.paginationConfig.paginationMode === 'internal' ? this.internalCurrentPage : this.paginationConfig.currentPage, "total-pages": this.totalPages, onPageItemSelected: this.handlePageChange.bind(this) }))));
|
|
588
613
|
}
|
|
589
614
|
static get is() { return "gb-table"; }
|
|
590
615
|
static get encapsulation() { return "shadow"; }
|
|
@@ -642,7 +667,7 @@ export class GbTable {
|
|
|
642
667
|
},
|
|
643
668
|
"getter": false,
|
|
644
669
|
"setter": false,
|
|
645
|
-
"defaultValue": "[\r\n { key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } },\r\n { key: 'date', label: 'Date', mobile: { position: 'bottom_left' } },\r\n { key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, supportingText: row => row.role, mobile: { position: 'top_right' } },\r\n { key: 'role', label: 'Role' },\r\n { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n cellComponent: 'gb-badge',\r\n cellProps: row => ({ color: row.status === 'Completed' ? 'success' : 'error', type: 'badge_modern', size: 'sm', icon: 'dot' }),\r\n cellSlots: {\r\n default: {\r\n tag: 'p',\r\n content: row => row.status
|
|
670
|
+
"defaultValue": "[\r\n { key: 'id', label: '#', width: '70px', sortable: true, sortType: 'string', mobile: { position: 'top_left' } },\r\n { key: 'date', label: 'Date', value: row => row.date.toLocaleString(), mobile: { position: 'bottom_left' } },\r\n { key: 'name', label: 'Name', sortable: true, sortType: 'string', helpIcon: true, supportingText: row => row.role, mobile: { position: 'top_right' } },\r\n { key: 'role', label: 'Role' },\r\n { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number' },\r\n {\r\n key: 'status',\r\n label: 'Status',\r\n cellComponent: 'gb-badge',\r\n cellProps: row => ({ color: row.status === 'Completed' ? 'success' : 'error', type: 'badge_modern', size: 'sm', icon: 'dot' }),\r\n cellSlots: {\r\n default: {\r\n tag: 'p',\r\n content: row => row.status,\r\n },\r\n },\r\n },\r\n ]"
|
|
646
671
|
},
|
|
647
672
|
"data": {
|
|
648
673
|
"type": "unknown",
|
|
@@ -660,7 +685,7 @@ export class GbTable {
|
|
|
660
685
|
},
|
|
661
686
|
"getter": false,
|
|
662
687
|
"setter": false,
|
|
663
|
-
"defaultValue": "[\r\n // {\r\n // id: '#30011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',\r\n // date: 'Jan 1, 2022',\r\n // name: 'Emma Johnson',\r\n // role: 'Frontend Developer',\r\n // level: 'Today',\r\n // customer: 'John Doe',\r\n // amount: '$120.00',\r\n // status: 'Completed',\r\n // },\r\n { id: '#3002', date: '
|
|
688
|
+
"defaultValue": "[\r\n // {\r\n // id: '#30011111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111111',\r\n // date: 'Jan 1, 2022',\r\n // name: 'Emma Johnson',\r\n // role: 'Frontend Developer',\r\n // level: 'Today',\r\n // customer: 'John Doe',\r\n // amount: '$120.00',\r\n // status: 'Completed',\r\n // },\r\n // { id: '#3002', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },\r\n // { id: '#3003', date: new Date(), name: 'Liam Smith', role: 'Frontend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },\r\n // { id: '#3004', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },\r\n // { id: '#3005', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },\r\n // { id: '#3006', date: new Date(), name: 'Liam Smith', role: 'Backend Developer', level: 'Today', customer: 'Sarah Wilson', amount: '$85.50', status: 'Pending' },\r\n { id: '#3003', date: 'Jan 3, 2022', name: 'Olivia Brown', role: 'UI Designer', level: 'Today', customer: 'Michael Lee', amount: '$230.75', status: 'Cancelled' },\r\n { id: '#3004', date: 'Jan 4, 2022', name: 'Noah Davis', role: 'DevOps Engineer', level: 'Today', customer: 'Emily Clark', amount: '$59.99', status: 'Completed' },\r\n { id: '#3005', date: 'Jan 5, 2022', name: 'Ava Martinez', role: 'Product Manager', level: 'Today', customer: 'Daniel Harris', amount: '$410.00', status: 'Pending' },\r\n { id: '#3006', date: 'Jan 6, 2022', name: 'William Garcia', role: 'QA Engineer', level: 'Today', customer: 'Sophia Lewis', amount: '$150.20', status: 'Completed' },\r\n { id: '#3007', date: 'Jan 7, 2022', name: 'Isabella Rodriguez', role: 'Business Analyst', level: 'Today', customer: 'James Walker', amount: '$78.40', status: 'Pending' },\r\n { id: '#3008', date: 'Jan 8, 2022', name: 'James Wilson', role: 'Fullstack Developer', level: 'Today', customer: 'Mia Hall', amount: '$300.00', status: 'Completed' },\r\n { id: '#3009', date: 'Jan 9, 2022', name: 'Sophia Anderson', role: 'UX Researcher', level: 'Today', customer: 'Benjamin Allen', amount: '$95.60', status: 'Cancelled' },\r\n { id: '#3010', date: 'Jan 10, 2022', name: 'Benjamin Thomas', role: 'Mobile Developer', level: 'Today', customer: 'Charlotte Young', amount: '$210.10', status: 'Completed' },\r\n { id: '#3011', date: 'Jan 11, 2022', name: 'Mia Taylor', role: 'Data Analyst', level: 'Today', customer: 'Lucas King', amount: '$180.00', status: 'Pending' },\r\n { id: '#3012', date: 'Jan 12, 2022', name: 'Lucas Moore', role: 'Cloud Engineer', level: 'Today', customer: 'Amelia Scott', amount: '$420.75', status: 'Completed' },\r\n { id: '#3013', date: 'Jan 13, 2022', name: 'Charlotte Jackson', role: 'Security Engineer', level: 'Today', customer: 'Elijah Green', amount: '$65.90', status: 'Cancelled' },\r\n { id: '#3014', date: 'Jan 14, 2022', name: 'Elijah Martin', role: 'Technical Lead', level: 'Today', customer: 'Harper Adams', amount: '$510.30', status: 'Completed' },\r\n { id: '#3015', date: 'Jan 15, 2022', name: 'Amelia Lee', role: 'Scrum Master', level: 'Today', customer: 'Alexander Baker', amount: '$99.99', status: 'Pending' },\r\n { id: '#3016', date: 'Jan 16, 2022', name: 'Harper Perez', role: 'Frontend Developer', level: 'Today', customer: 'Ella Nelson', amount: '$275.45', status: 'Completed' },\r\n { id: '#3017', date: 'Jan 17, 2022', name: 'Alexander White', role: 'Backend Developer', level: 'Today', customer: 'Matthew Carter', amount: '$340.00', status: 'Pending' },\r\n { id: '#3018', date: 'Jan 18, 2022', name: 'Ella Harris', role: 'UI Designer', level: 'Today', customer: 'Avery Mitchell', amount: '$88.80', status: 'Completed' },\r\n { id: '#3019', date: 'Jan 19, 2022', name: 'Matthew Clark', role: 'DevOps Engineer', level: 'Today', customer: 'Evelyn Perez', amount: '$190.25', status: 'Cancelled' },\r\n { id: '#3020', date: 'Jan 20, 2022', name: 'Avery Lewis', role: 'Product Manager', level: 'Today', customer: 'Henry Roberts', amount: '$600.00', status: 'Completed' },\r\n { id: '#3021', date: 'Jan 21, 2022', name: 'Evelyn Walker', role: 'QA Engineer', level: 'Today', customer: 'Luna Turner', amount: '$72.30', status: 'Pending' },\r\n { id: '#3022', date: 'Jan 22, 2022', name: 'Henry Hall', role: 'Business Analyst', level: 'Today', customer: 'Jack Phillips', amount: '$310.40', status: 'Completed' },\r\n { id: '#3023', date: 'Jan 23, 2022', name: 'Luna Allen', role: 'Fullstack Developer', level: 'Today', customer: 'Sofia Campbell', amount: '$145.00', status: 'Cancelled' },\r\n { id: '#3024', date: 'Jan 24, 2022', name: 'Jack Young', role: 'UX Researcher', level: 'Today', customer: 'David Parker', amount: '$260.70', status: 'Completed' },\r\n { id: '#3025', date: 'Jan 25, 2022', name: 'Sofia Hernandez', role: 'Mobile Developer', level: 'Today', customer: 'Grace Evans', amount: '$89.10', status: 'Pending' },\r\n { id: '#3026', date: 'Jan 26, 2022', name: 'David King', role: 'Data Analyst', level: 'Today', customer: 'Samuel Edwards', amount: '$410.90', status: 'Completed' },\r\n { id: '#3027', date: 'Jan 27, 2022', name: 'Grace Wright', role: 'Cloud Engineer', level: 'Today', customer: 'Chloe Collins', amount: '$130.55', status: 'Cancelled' },\r\n { id: '#3028', date: 'Jan 28, 2022', name: 'Samuel Scott', role: 'Security Engineer', level: 'Today', customer: 'Victoria Stewart', amount: '$555.00', status: 'Completed' },\r\n { id: '#3029', date: 'Jan 29, 2022', name: 'Chloe Green', role: 'Technical Lead', level: 'Today', customer: 'Nathan Morris', amount: '$205.25', status: 'Pending' },\r\n { id: '#3030', date: 'Jan 30, 2022', name: 'Nathan Adams', role: 'Scrum Master', level: 'Today', customer: 'Zoe Rogers', amount: '$320.80', status: 'Completed' },\r\n ]"
|
|
664
689
|
},
|
|
665
690
|
"tableHeaderConfig": {
|
|
666
691
|
"type": "unknown",
|
|
@@ -862,7 +887,7 @@ export class GbTable {
|
|
|
862
887
|
"setter": false,
|
|
863
888
|
"reflect": false,
|
|
864
889
|
"attribute": "sticky-first-column",
|
|
865
|
-
"defaultValue": "
|
|
890
|
+
"defaultValue": "false"
|
|
866
891
|
},
|
|
867
892
|
"stickyLastColumn": {
|
|
868
893
|
"type": "boolean",
|
|
@@ -882,7 +907,7 @@ export class GbTable {
|
|
|
882
907
|
"setter": false,
|
|
883
908
|
"reflect": false,
|
|
884
909
|
"attribute": "sticky-last-column",
|
|
885
|
-
"defaultValue": "
|
|
910
|
+
"defaultValue": "false"
|
|
886
911
|
},
|
|
887
912
|
"actionsType": {
|
|
888
913
|
"type": "string",
|
|
@@ -922,7 +947,7 @@ export class GbTable {
|
|
|
922
947
|
"setter": false,
|
|
923
948
|
"reflect": false,
|
|
924
949
|
"attribute": "show-checkbox",
|
|
925
|
-
"defaultValue": "
|
|
950
|
+
"defaultValue": "false"
|
|
926
951
|
},
|
|
927
952
|
"tableHeadColor": {
|
|
928
953
|
"type": "string",
|
|
@@ -943,6 +968,26 @@ export class GbTable {
|
|
|
943
968
|
"reflect": false,
|
|
944
969
|
"attribute": "table-head-color",
|
|
945
970
|
"defaultValue": "'gray'"
|
|
971
|
+
},
|
|
972
|
+
"rowKey": {
|
|
973
|
+
"type": "string",
|
|
974
|
+
"mutable": false,
|
|
975
|
+
"complexType": {
|
|
976
|
+
"original": "string | ((row: any) => string)",
|
|
977
|
+
"resolved": "((row: any) => string) | string",
|
|
978
|
+
"references": {}
|
|
979
|
+
},
|
|
980
|
+
"required": false,
|
|
981
|
+
"optional": false,
|
|
982
|
+
"docs": {
|
|
983
|
+
"tags": [],
|
|
984
|
+
"text": ""
|
|
985
|
+
},
|
|
986
|
+
"getter": false,
|
|
987
|
+
"setter": false,
|
|
988
|
+
"reflect": false,
|
|
989
|
+
"attribute": "row-key",
|
|
990
|
+
"defaultValue": "'id'"
|
|
946
991
|
}
|
|
947
992
|
};
|
|
948
993
|
}
|
|
@@ -963,13 +1008,14 @@ export class GbTable {
|
|
|
963
1008
|
"internalColumns": {},
|
|
964
1009
|
"modalPosition": {},
|
|
965
1010
|
"showFilterModalInternal": {},
|
|
1011
|
+
"isFilterModalVisible": {},
|
|
966
1012
|
"internalLoading": {}
|
|
967
1013
|
};
|
|
968
1014
|
}
|
|
969
1015
|
static get events() {
|
|
970
1016
|
return [{
|
|
971
|
-
"method": "
|
|
972
|
-
"name": "
|
|
1017
|
+
"method": "rowActionClicked",
|
|
1018
|
+
"name": "rowActionClicked",
|
|
973
1019
|
"bubbles": true,
|
|
974
1020
|
"cancelable": true,
|
|
975
1021
|
"composed": true,
|
|
@@ -1072,15 +1118,27 @@ export class GbTable {
|
|
|
1072
1118
|
"resolved": "{ row: any; }",
|
|
1073
1119
|
"references": {}
|
|
1074
1120
|
}
|
|
1121
|
+
}, {
|
|
1122
|
+
"method": "applyFilters",
|
|
1123
|
+
"name": "applyFilters",
|
|
1124
|
+
"bubbles": true,
|
|
1125
|
+
"cancelable": true,
|
|
1126
|
+
"composed": true,
|
|
1127
|
+
"docs": {
|
|
1128
|
+
"tags": [],
|
|
1129
|
+
"text": ""
|
|
1130
|
+
},
|
|
1131
|
+
"complexType": {
|
|
1132
|
+
"original": "{\r\n filters: any;\r\n pagination: any;\r\n }",
|
|
1133
|
+
"resolved": "{ filters: any; pagination: any; }",
|
|
1134
|
+
"references": {}
|
|
1135
|
+
}
|
|
1075
1136
|
}];
|
|
1076
1137
|
}
|
|
1077
1138
|
static get watchers() {
|
|
1078
1139
|
return [{
|
|
1079
1140
|
"propName": "data",
|
|
1080
1141
|
"methodName": "onDataChange"
|
|
1081
|
-
}, {
|
|
1082
|
-
"propName": "totalItems",
|
|
1083
|
-
"methodName": "onTotalItemsChange"
|
|
1084
1142
|
}, {
|
|
1085
1143
|
"propName": "loading",
|
|
1086
1144
|
"methodName": "onLoadingChange"
|