globuswebcomponents 2.16.6 → 2.16.8
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-accordion-card_80.cjs.entry.js +111 -85
- 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/gb-wysiwyg-toolbar.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/assets/book-open-01.svg +4 -0
- package/dist/collection/assets/smart-phone-01.svg +4 -0
- package/dist/collection/assets/tablet-01.svg +4 -0
- package/dist/collection/components/gb-button/gb-button.css +5 -2
- package/dist/collection/components/gb-button/gb-button.js +22 -1
- package/dist/collection/components/gb-button/gb-button.js.map +1 -1
- package/dist/collection/components/gb-button/gb-button.tsx +2 -1
- package/dist/collection/components/gb-button/readme.md +102 -101
- package/dist/collection/components/gb-icon-button-base/gb-icon-button-base.css +3 -0
- package/dist/collection/components/gb-icon-button-base/gb-icon-button-base.js +18 -2
- package/dist/collection/components/gb-icon-button-base/gb-icon-button-base.js.map +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.css +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.js +7 -7
- package/dist/collection/components/gb-sidebar/gb-sidebar.js.map +1 -1
- package/dist/collection/components/gb-sidebar-child-item/gb-sidebar-child-item.css +6 -2
- package/dist/collection/components/gb-table/gb-table.js +83 -84
- package/dist/collection/components/gb-table/gb-table.js.map +1 -1
- package/dist/collection/components/gb-table-header/gb-table-header.css +5 -0
- package/dist/collection/components/gb-table-header/gb-table-header.js +42 -3
- package/dist/collection/components/gb-table-header/gb-table-header.js.map +1 -1
- 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-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/gb-wysiwyg-toolbar/gb-wysiwyg-toolbar.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-accordion-card.js +2 -2
- package/dist/components/gb-action-panel.js +2 -2
- package/dist/components/gb-approval-modal.js +8 -8
- 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 +2 -2
- 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 +3 -3
- 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-date-picker.js +1 -1
- package/dist/components/gb-detail-cell.js +2 -2
- 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.js +13 -13
- package/dist/components/gb-help-tooltip.js +1 -1
- package/dist/components/gb-icon-button-base.js +1 -1
- package/dist/components/gb-input-dropdown-test.js +9 -9
- package/dist/components/gb-input-dropdown.js +1 -1
- package/dist/components/gb-input-field.js +1 -1
- package/dist/components/gb-modal-action.js +1 -1
- package/dist/components/gb-modal.js +3 -3
- package/dist/components/gb-nav-bar-item.js +1 -1
- package/dist/components/gb-nav-bar-sidemenu.js +1 -1
- package/dist/components/gb-nav-bar.js +2 -2
- package/dist/components/gb-notification-pane.js +1 -1
- package/dist/components/gb-pagination.js +1 -1
- package/dist/components/gb-password-button.js +1 -1
- package/dist/components/gb-progress-bar.js +1 -1
- package/dist/components/gb-prompt-modal.js +2 -2
- package/dist/components/gb-rich-text.js +12 -12
- package/dist/components/gb-sidebar-child-item.js +1 -1
- package/dist/components/gb-sidebar-sub-dropdown.js +1 -1
- package/dist/components/gb-sidebar.js +25 -43
- package/dist/components/gb-sidebar.js.map +1 -1
- 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 +2 -2
- package/dist/components/gb-table-header.js +1 -1
- package/dist/components/gb-table.js +80 -77
- 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 +1 -1
- 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 +2 -2
- 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-toolbar.js +1 -1
- package/dist/components/gb-wysiwyg-tooltip.js +1 -1
- package/dist/components/{p-SlxBg8hR.js → p-0uF8DOrG.js} +14 -14
- package/dist/components/{p-SlxBg8hR.js.map → p-0uF8DOrG.js.map} +1 -1
- package/dist/components/{p-1ZFgtjE3.js → p-B-qTC1TG.js} +4 -4
- package/dist/components/{p-1ZFgtjE3.js.map → p-B-qTC1TG.js.map} +1 -1
- package/dist/components/{p-B0To20-c.js → p-B7-FdB2z.js} +6 -6
- package/dist/components/{p-B0To20-c.js.map → p-B7-FdB2z.js.map} +1 -1
- package/dist/components/{p-CTdWQWa8.js → p-BC7QT-DT.js} +3 -3
- package/dist/components/p-BC7QT-DT.js.map +1 -0
- package/dist/components/{p-SOmp2u2j.js → p-BLYEjP6E.js} +11 -11
- package/dist/components/{p-SOmp2u2j.js.map → p-BLYEjP6E.js.map} +1 -1
- package/dist/components/{p-Cj9I8JDU.js → p-BOcaPh7T.js} +3 -3
- package/dist/components/{p-Cj9I8JDU.js.map → p-BOcaPh7T.js.map} +1 -1
- package/dist/components/{p-CRf1muxu.js → p-BPeBBYq8.js} +12 -12
- package/dist/components/{p-CRf1muxu.js.map → p-BPeBBYq8.js.map} +1 -1
- package/dist/components/{p-B69brzJ5.js → p-BWZddYxh.js} +3 -3
- package/dist/components/{p-B69brzJ5.js.map → p-BWZddYxh.js.map} +1 -1
- package/dist/components/{p-BTYRuLgI.js → p-Bh1XZOYW.js} +22 -6
- package/dist/components/p-Bh1XZOYW.js.map +1 -0
- package/dist/components/{p-DNoYOHYU.js → p-BlpmvVW_.js} +23 -17
- package/dist/components/p-BlpmvVW_.js.map +1 -0
- package/dist/components/{p-BXpubOeM.js → p-BnHQXWL-.js} +3 -3
- package/dist/components/{p-BXpubOeM.js.map → p-BnHQXWL-.js.map} +1 -1
- package/dist/components/{p-CFVboA-U.js → p-C1CXTcv3.js} +3 -3
- package/dist/components/{p-CFVboA-U.js.map → p-C1CXTcv3.js.map} +1 -1
- package/dist/components/{p-RqdJhjrL.js → p-C1bHN2Rx.js} +3 -3
- package/dist/components/{p-RqdJhjrL.js.map → p-C1bHN2Rx.js.map} +1 -1
- package/dist/components/{p-CPk5Ttm2.js → p-CATNi5KI.js} +4 -4
- package/dist/components/{p-CPk5Ttm2.js.map → p-CATNi5KI.js.map} +1 -1
- package/dist/components/{p-CEk7OrMo.js → p-CBGuVnFB.js} +3 -3
- package/dist/components/{p-CEk7OrMo.js.map → p-CBGuVnFB.js.map} +1 -1
- package/dist/components/{p-CuWlfGEa.js → p-CIQlqNhl.js} +9 -9
- package/dist/components/{p-CuWlfGEa.js.map → p-CIQlqNhl.js.map} +1 -1
- package/dist/components/{p-C9UQcv-D.js → p-CKeeP1RN.js} +3 -3
- package/dist/components/{p-C9UQcv-D.js.map → p-CKeeP1RN.js.map} +1 -1
- package/dist/components/{p-BOpf9ENE.js → p-CKuD3zQv.js} +4 -4
- package/dist/components/{p-BOpf9ENE.js.map → p-CKuD3zQv.js.map} +1 -1
- package/dist/components/{p-cbZ-VtHV.js → p-CMxQjY0A.js} +4 -4
- package/dist/components/{p-cbZ-VtHV.js.map → p-CMxQjY0A.js.map} +1 -1
- package/dist/components/{p-CipnciZ0.js → p-CQJsx5Pc.js} +5 -5
- package/dist/components/{p-CipnciZ0.js.map → p-CQJsx5Pc.js.map} +1 -1
- package/dist/components/{p-DwwTg0Ug.js → p-CRpalI6I.js} +6 -6
- package/dist/components/{p-DwwTg0Ug.js.map → p-CRpalI6I.js.map} +1 -1
- package/dist/components/{p-yGDG5-7k.js → p-CZZ49jCW.js} +10 -10
- package/dist/components/{p-yGDG5-7k.js.map → p-CZZ49jCW.js.map} +1 -1
- package/dist/components/{p-15tzhm6H.js → p-CZtozqON.js} +3 -3
- package/dist/components/{p-15tzhm6H.js.map → p-CZtozqON.js.map} +1 -1
- package/dist/components/{p-41k9B0LP.js → p-Cb__yLCa.js} +3 -3
- package/dist/components/{p-41k9B0LP.js.map → p-Cb__yLCa.js.map} +1 -1
- package/dist/components/{p-CoECE73o.js → p-CotcMe-a.js} +3 -3
- package/dist/components/{p-CoECE73o.js.map → p-CotcMe-a.js.map} +1 -1
- package/dist/components/{p-DMW9vQZa.js → p-Cr8wvTe2.js} +3 -3
- package/dist/components/{p-DMW9vQZa.js.map → p-Cr8wvTe2.js.map} +1 -1
- package/dist/components/{p-Lyq8Ffqp.js → p-CsB4EuxU.js} +5 -5
- package/dist/components/{p-Lyq8Ffqp.js.map → p-CsB4EuxU.js.map} +1 -1
- package/dist/components/{p-DcPBSreH.js → p-CsN5I1IB.js} +5 -5
- package/dist/components/{p-DcPBSreH.js.map → p-CsN5I1IB.js.map} +1 -1
- package/dist/components/{p-DY_bXxhu.js → p-CtQU7pWw.js} +3 -3
- package/dist/components/{p-DY_bXxhu.js.map → p-CtQU7pWw.js.map} +1 -1
- package/dist/components/{p-C0uOO7dx.js → p-CuxVMYlt.js} +5 -5
- package/dist/components/{p-C0uOO7dx.js.map → p-CuxVMYlt.js.map} +1 -1
- package/dist/components/{p-8R2iLkxl.js → p-D2KhJvIW.js} +4 -4
- package/dist/components/{p-8R2iLkxl.js.map → p-D2KhJvIW.js.map} +1 -1
- package/dist/components/{p-CnIulILM.js → p-DA3OT9y9.js} +4 -4
- package/dist/components/{p-CnIulILM.js.map → p-DA3OT9y9.js.map} +1 -1
- package/dist/components/{p-CM8Z8QqX.js → p-DZIp7ek6.js} +4 -4
- package/dist/components/{p-CM8Z8QqX.js.map → p-DZIp7ek6.js.map} +1 -1
- package/dist/components/{p-C-cmMbHo.js → p-Duli5tX8.js} +3 -3
- package/dist/components/{p-C-cmMbHo.js.map → p-Duli5tX8.js.map} +1 -1
- package/dist/components/{p-DDOjLWeU.js → p-DwVPshyR.js} +4 -4
- package/dist/components/{p-DDOjLWeU.js.map → p-DwVPshyR.js.map} +1 -1
- package/dist/components/{p-DoKlmsGb.js → p-Dy6voUvk.js} +3 -3
- package/dist/components/{p-DoKlmsGb.js.map → p-Dy6voUvk.js.map} +1 -1
- package/dist/components/{p-wURi8Jg8.js → p-K9KSmTWl.js} +4 -4
- package/dist/components/{p-wURi8Jg8.js.map → p-K9KSmTWl.js.map} +1 -1
- package/dist/components/{p-BbygHijY.js → p-QS6WCgEU.js} +7 -5
- package/dist/components/p-QS6WCgEU.js.map +1 -0
- package/dist/components/{p-KulPBqrE.js → p-SBK--MJo.js} +3 -3
- package/dist/components/{p-KulPBqrE.js.map → p-SBK--MJo.js.map} +1 -1
- package/dist/components/p-cHn6O-Kf.js.map +1 -1
- package/dist/components/{p-B1YiPq_G.js → p-oG_anvpK.js} +3 -3
- package/dist/components/{p-B1YiPq_G.js.map → p-oG_anvpK.js.map} +1 -1
- package/dist/components/{p-C3YPh43v.js → p-sRpXKkA4.js} +3 -3
- package/dist/components/{p-C3YPh43v.js.map → p-sRpXKkA4.js.map} +1 -1
- package/dist/components/test-input-tag.js +6 -6
- package/dist/docs.json +153 -88
- package/dist/esm/gb-accordion-card_80.entry.js +111 -85
- 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/gb-wysiwyg-toolbar.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/assets/book-open-01.svg +4 -0
- package/dist/globuscomponents/assets/smart-phone-01.svg +4 -0
- package/dist/globuscomponents/assets/tablet-01.svg +4 -0
- package/dist/globuscomponents/gb-button.css +5 -2
- package/dist/globuscomponents/gb-button.tsx +2 -1
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-6c217ace.entry.js → p-0c220ec3.entry.js} +2 -2
- package/dist/globuscomponents/{p-437239ba.entry.js → p-20b06b76.entry.js} +2 -2
- package/dist/globuscomponents/{p-2778d2ba.entry.js → p-6db2a93b.entry.js} +2 -2
- package/dist/globuscomponents/{p-4e8cd974.entry.js → p-7759bf63.entry.js} +2 -2
- package/dist/globuscomponents/{p-d09a6274.entry.js → p-b2bfcf10.entry.js} +2 -2
- package/dist/globuscomponents/p-b2bfcf10.entry.js.map +1 -0
- package/dist/globuscomponents/{p-78b9a3ba.entry.js → p-bad04086.entry.js} +2 -2
- package/dist/globuscomponents/{p-398da1af.entry.js → p-c18f6ea1.entry.js} +2 -2
- package/dist/globuscomponents/p-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/readme.md +102 -101
- package/dist/types/components/gb-button/gb-button.d.ts +1 -0
- package/dist/types/components/gb-table/gb-table.d.ts +5 -2
- package/dist/types/components/gb-table-header/gb-table-header.d.ts +3 -0
- package/dist/types/components.d.ts +40 -18
- package/dist/types/models/reusableModels.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components/p-BTYRuLgI.js.map +0 -1
- package/dist/components/p-BbygHijY.js.map +0 -1
- package/dist/components/p-CTdWQWa8.js.map +0 -1
- package/dist/components/p-DNoYOHYU.js.map +0 -1
- package/dist/globuscomponents/p-d09a6274.entry.js.map +0 -1
- /package/dist/globuscomponents/{p-6c217ace.entry.js.map → p-0c220ec3.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-437239ba.entry.js.map → p-20b06b76.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-2778d2ba.entry.js.map → p-6db2a93b.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-4e8cd974.entry.js.map → p-7759bf63.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-78b9a3ba.entry.js.map → p-bad04086.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-398da1af.entry.js.map → p-c18f6ea1.entry.js.map} +0 -0
|
@@ -29,14 +29,14 @@ export class GbTable {
|
|
|
29
29
|
// key: 'status',
|
|
30
30
|
// label: 'Status',
|
|
31
31
|
// cellComponent: 'gb-badge',
|
|
32
|
-
//
|
|
33
|
-
//
|
|
34
|
-
//
|
|
35
|
-
//
|
|
36
|
-
//
|
|
37
|
-
// },
|
|
32
|
+
// cellProps: row => ({ color: row.status === 'Completed' ? 'success' : 'error', type: 'badge_modern', size: 'sm', icon: 'dot' }),
|
|
33
|
+
// cellSlots: {
|
|
34
|
+
// default: {
|
|
35
|
+
// tag: 'p',
|
|
36
|
+
// content: row => row.status,
|
|
38
37
|
// },
|
|
39
38
|
// },
|
|
39
|
+
// },
|
|
40
40
|
];
|
|
41
41
|
this.data = [
|
|
42
42
|
// {
|
|
@@ -430,44 +430,45 @@ export class GbTable {
|
|
|
430
430
|
illustrationStyle: 'box',
|
|
431
431
|
theme: 'light',
|
|
432
432
|
};
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
433
|
+
this.filterConfig = {
|
|
434
|
+
mode: 'internal',
|
|
435
|
+
title: '',
|
|
436
|
+
fields: [
|
|
437
|
+
// {
|
|
438
|
+
// tag: 'gb-date-picker',
|
|
439
|
+
// label: 'Date',
|
|
440
|
+
// columnKey: 'date',
|
|
441
|
+
// key: { start: 'startDate', end: 'endDate' },
|
|
442
|
+
// event: 'dateChange',
|
|
443
|
+
// },
|
|
444
|
+
// {
|
|
445
|
+
// tag: 'gb-input-dropdown',
|
|
446
|
+
// key: 'status',
|
|
447
|
+
// event: 'dropdownItemSelected',
|
|
448
|
+
// props: {
|
|
449
|
+
// type: 'tags',
|
|
450
|
+
// showLabel: true,
|
|
451
|
+
// label: 'Status',
|
|
452
|
+
// placeholder: 'Select a status',
|
|
453
|
+
// items: ['Completed', 'Pending', 'Cancelled'],
|
|
454
|
+
// },
|
|
455
|
+
// },
|
|
456
|
+
// {
|
|
457
|
+
// tag: 'gb-slider',
|
|
458
|
+
// key: 'amount',
|
|
459
|
+
// event: 'thumbValueChanged',
|
|
460
|
+
// props: {
|
|
461
|
+
// showHeading: true,
|
|
462
|
+
// heading: 'Amount range',
|
|
463
|
+
// max: 600,
|
|
464
|
+
// },
|
|
465
|
+
// },
|
|
466
|
+
],
|
|
467
|
+
initialValues: {
|
|
468
|
+
pageNumber: 0,
|
|
469
|
+
pageSize: 10,
|
|
470
|
+
},
|
|
471
|
+
};
|
|
471
472
|
this.showActionsColumn = true;
|
|
472
473
|
this.rowActions = [
|
|
473
474
|
// { label: 'View Details', action: 'view_details', icon: 'assets/view.svg', type: 'button' },
|
|
@@ -484,8 +485,7 @@ export class GbTable {
|
|
|
484
485
|
this.showCheckbox = true;
|
|
485
486
|
this.tableHeadColor = 'gray';
|
|
486
487
|
this.rowKey = 'id';
|
|
487
|
-
this.
|
|
488
|
-
this.searchMode = 'internal';
|
|
488
|
+
this.tableHeaderType = 'default';
|
|
489
489
|
this.slicedData = [];
|
|
490
490
|
this.internalCurrentPage = 1;
|
|
491
491
|
this.internalPageSize = 10;
|
|
@@ -873,10 +873,10 @@ export class GbTable {
|
|
|
873
873
|
this.toggleRow(row);
|
|
874
874
|
} }))), this.internalColumns
|
|
875
875
|
.filter(col => col.visible)
|
|
876
|
-
.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:
|
|
876
|
+
.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: e => {
|
|
877
877
|
e.stopPropagation();
|
|
878
878
|
this.toggleDropdown(rowIndex);
|
|
879
|
-
} })) : (h("gb-button", { hierarchy: "tertiary_gray", size: "md", icon: "only", destructive: action.destructive, iconLeading: true, iconLeadingSwap: action.icon, onClick:
|
|
879
|
+
} })) : (h("gb-button", { hierarchy: "tertiary_gray", size: "md", icon: "only", destructive: action.destructive, iconLeading: true, iconLeadingSwap: action.icon, onClick: e => {
|
|
880
880
|
e.stopPropagation();
|
|
881
881
|
this.handleAction(action.action, row);
|
|
882
882
|
} })))))), 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: () => {
|
|
@@ -907,7 +907,7 @@ export class GbTable {
|
|
|
907
907
|
var _a, _b, _c;
|
|
908
908
|
this.searchTerm = (_c = (_b = (_a = detail.detail) === null || _a === void 0 ? void 0 : _a.value) !== null && _b !== void 0 ? _b : detail.detail) !== null && _c !== void 0 ? _c : '';
|
|
909
909
|
this.internalCurrentPage = 1; // reset pagination on search
|
|
910
|
-
if (this.searchMode === 'external') {
|
|
910
|
+
if (this.tableHeaderConfig.searchMode === 'external') {
|
|
911
911
|
console.log('Emitting search value:', this.searchTerm);
|
|
912
912
|
this.inputValueChanged.emit(detail.detail);
|
|
913
913
|
}
|
|
@@ -941,6 +941,9 @@ export class GbTable {
|
|
|
941
941
|
switchTableLayout(layout) {
|
|
942
942
|
this.currentTableLayout = layout.detail;
|
|
943
943
|
}
|
|
944
|
+
emitTableContolClickedEvent(detail) {
|
|
945
|
+
this.tableControlClicked.emit(detail.detail);
|
|
946
|
+
}
|
|
944
947
|
toggleColumn(event, columnKey) {
|
|
945
948
|
const isVisible = event.detail;
|
|
946
949
|
this.internalColumns = this.internalColumns.map(col => (col.key === columnKey ? Object.assign(Object.assign({}, col), { visible: isVisible }) : col));
|
|
@@ -961,7 +964,7 @@ export class GbTable {
|
|
|
961
964
|
const { filters } = e.detail;
|
|
962
965
|
this.appliedFilterValues = Object.assign(Object.assign({}, this.appliedFilterValues), filters);
|
|
963
966
|
this.internalCurrentPage = 1; // ← reset pagination
|
|
964
|
-
if (this.
|
|
967
|
+
if (this.filterConfig.mode === 'external') {
|
|
965
968
|
this.filterApplied.emit(this.appliedFilterValues);
|
|
966
969
|
}
|
|
967
970
|
this.showAndHideToast('Filter applied');
|
|
@@ -978,7 +981,7 @@ export class GbTable {
|
|
|
978
981
|
}
|
|
979
982
|
get filteredData() {
|
|
980
983
|
var _a;
|
|
981
|
-
if (this.
|
|
984
|
+
if (this.filterConfig.mode === 'external' || !((_a = this.filterConfig) === null || _a === void 0 ? void 0 : _a.fields) || Object.keys(this.appliedFilterValues).length === 0) {
|
|
982
985
|
return this.sortedData;
|
|
983
986
|
}
|
|
984
987
|
return this.sortedData.filter(row => {
|
|
@@ -1094,16 +1097,16 @@ export class GbTable {
|
|
|
1094
1097
|
window.removeEventListener('resize', this.checkViewport);
|
|
1095
1098
|
}
|
|
1096
1099
|
render() {
|
|
1097
|
-
return (h("div", { key: '
|
|
1100
|
+
return (h("div", { key: '08bed4790123cd14b04c9aeca1b17338a21d0378', class: `table_wrapper ${this.currentTableLayout}` }, this.tableHeaderConfig && (h("div", { key: 'f206fa57601e83520530a325186a774be25bec1c', class: `table-header ${this.currentTableLayout}` }, h("gb-table-header", { key: 'e020968dad30ed2c0db4ee96d1de181eb932b494', type: this.tableHeaderConfig.type, 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": Object.keys(this.appliedFilterValues).length > 0 ? 'applied' : 'default', "filter-count": Object.keys(this.appliedFilterValues).length, "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(), onRefreshButtonClicked: () => this.onRefreshButtonClicked(), onLayoutButtonClicked: e => this.switchTableLayout(e), onTableControlClicked: e => this.emitTableContolClickedEvent(e) }))), this.showColumnsPanel && this.columns.length > 0 && (h("div", { key: 'faaa2d3c8b31b00c4ede7731702127639ce6aab9', class: "dialog", style: {
|
|
1098
1101
|
transform: `translate(${this.modalPosition.x}px, ${this.modalPosition.y}px)`,
|
|
1099
|
-
} }, h("div", { key: '
|
|
1102
|
+
} }, h("div", { key: 'e98a9fcc41d9e7281a538361d4e7ddf1d2f182ea', class: "column-modal" }, h("div", { key: 'f754fb3b60ff7908fad8982157f05108e227f16f', class: "modal_header" }, h("div", { key: '68805a02141e44b3b077606fb01ea22805a2ec8a', class: "modal_header_content", onPointerDown: this.onModalPointerDown }, h("h4", { key: '2502833b479337b8c5a15d5a2467721567a01d93', class: "heading display-xs-semi-bold" }, "Column Options"), h("gb-button-close", { key: '259b8b1bfd01f7be00b2e4081148febcce67b151', class: "close_button", color: "gray", size: "sm", onClick: () => (this.showColumnsPanel = false) }))), h("div", { key: 'de725fb507605422d302f519e4d5edec51430d57', class: "content_wrapper" }, h("div", { key: 'a5e06ec2acd4d58910e19115bf8026bb27e35da0', class: "modal_content" }, this.internalColumns.map((col, index) => (h("div", { class: "column_option", draggable: true, onDragStart: () => (this.draggedIndex = index), onDragOver: e => e.preventDefault(), onDrop: () => {
|
|
1100
1103
|
if (this.draggedIndex !== null && this.draggedIndex !== index) {
|
|
1101
1104
|
this.reorderColumns(this.draggedIndex, index);
|
|
1102
1105
|
}
|
|
1103
1106
|
this.draggedIndex = null;
|
|
1104
1107
|
} }, 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 => {
|
|
1105
1108
|
this.toggleColumn(e, col.key);
|
|
1106
|
-
} })))), h("div", { key: '
|
|
1109
|
+
} })))), h("div", { key: '7b4a2031677cff5feeb32fba5466a63087531cec', class: "modal-actions" })))))), this.showFilterModalInternal && this.filterConfig && (h("div", { key: '15113dbc0a79c6796b648b0fe45e4c450dd876a8', class: `filter_modal_wrapper ${this.isFilterModalVisible ? 'open' : 'closing'}` }, h("gb-filter-modal", { key: '4ec80231b62a65272d63131d6a1d1faa69d0c6a6', class: "filter_modal", filterConfig: this.mergedFilterConfig, onClose: e => {
|
|
1107
1110
|
e.stopPropagation();
|
|
1108
1111
|
this.closeFilterModal();
|
|
1109
1112
|
}, onApplyFilters: e => this.onApplyFilters(e), onClearFilters: () => this.handleClearFilters() }))), this.internalLoading ? (
|
|
@@ -1150,7 +1153,7 @@ export class GbTable {
|
|
|
1150
1153
|
? this.renderDesktopView()
|
|
1151
1154
|
: this.currentTableLayout === 'grid'
|
|
1152
1155
|
? this.renderGridView()
|
|
1153
|
-
: null)), this.paginationConfig && (h("div", { key: '
|
|
1156
|
+
: null)), this.paginationConfig && (h("div", { key: '39767fe82ce88bcb4f1c570b9b3fd35b2e86ae43', class: `pagination ${this.currentTableLayout}` }, h("gb-pagination", { key: 'c76fc64fda5ebaf94122ca8a51f1addc754f63e3', "entries-dropdown-menu-position": this.paginationConfig.entriesDropdownMenuPosition, "page-size": this.paginationConfig.paginationMode === 'internal' ? this.internalPageSize : this.paginationConfig.pageSize, "current-page": this.paginationConfig.paginationMode === 'internal' ? this.internalCurrentPage : this.paginationConfig.currentPage, "total-pages": this.totalPages, onPageItemSelected: this.handlePageChange.bind(this) }))), this.showToast && (h("gb-toast", { key: 'b92a6728c7f97754cb350f049081af3f76868225', class: `toast ${this.toastVisible ? 'visible' : ''}`, color: "information", "main-text": this.filterMessage, breakpoint: "desktop", size: "floating", onClose: () => this.hideToast() }))));
|
|
1154
1157
|
}
|
|
1155
1158
|
static get is() { return "gb-table"; }
|
|
1156
1159
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1208,7 +1211,7 @@ export class GbTable {
|
|
|
1208
1211
|
},
|
|
1209
1212
|
"getter": false,
|
|
1210
1213
|
"setter": false,
|
|
1211
|
-
"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 // {\r\n // key: 'name',\r\n // label: 'Name',\r\n // sortable: true,\r\n // sortType: 'string',\r\n // helpIcon: true,\r\n // searchable: true,\r\n // hasAvatar: true,\r\n // cellAvatar: {\r\n // // image: '',\r\n // slots: {\r\n // // initials: row => row.name.split(' ').map((nm: string) => nm.charAt(0)),\r\n // image: row => row.image,\r\n // },\r\n // },\r\n // mobile: { position: 'top_right' },\r\n // },\r\n // { key: 'role', label: 'Role', searchable: true },\r\n // { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number', cellStyle: row => ({ color: row.amount > 200 ? 'green' : '' }) },\r\n // {\r\n // key: 'status',\r\n // label: 'Status',\r\n // cellComponent: 'gb-badge',\r\n //
|
|
1214
|
+
"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 // {\r\n // key: 'name',\r\n // label: 'Name',\r\n // sortable: true,\r\n // sortType: 'string',\r\n // helpIcon: true,\r\n // searchable: true,\r\n // hasAvatar: true,\r\n // cellAvatar: {\r\n // // image: '',\r\n // slots: {\r\n // // initials: row => row.name.split(' ').map((nm: string) => nm.charAt(0)),\r\n // image: row => row.image,\r\n // },\r\n // },\r\n // mobile: { position: 'top_right' },\r\n // },\r\n // { key: 'role', label: 'Role', searchable: true },\r\n // { key: 'amount', label: 'Amount', align: 'right', sortable: true, sortType: 'number', cellStyle: row => ({ color: row.amount > 200 ? 'green' : '' }) },\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 ]"
|
|
1212
1215
|
},
|
|
1213
1216
|
"data": {
|
|
1214
1217
|
"type": "unknown",
|
|
@@ -1249,8 +1252,8 @@ export class GbTable {
|
|
|
1249
1252
|
"type": "unknown",
|
|
1250
1253
|
"mutable": false,
|
|
1251
1254
|
"complexType": {
|
|
1252
|
-
"original": "{\r\n tableHeading?: boolean;\r\n tableHeadingLabel?: string;\r\n showDateFilter?: boolean;\r\n showFilter?: boolean;\r\n showColumnOptions?: boolean;\r\n showSearch?: boolean;\r\n showExport?: boolean;\r\n showRefreshButton?: boolean;\r\n showEntireData?: boolean;\r\n showLayoutToggle?: boolean;\r\n filterState?: 'default' | 'applied';\r\n filterCount?: number;\r\n exportButtonState?: 'default' | 'disabled';\r\n pdfState?: 'default' | 'disabled';\r\n csvState?: 'default' | 'disabled';\r\n datePickerMode?: 'single' | 'range';\r\n inputPlaceholder?: string;\r\n datePickerPlaceholder?: string;\r\n }",
|
|
1253
|
-
"resolved": "{ tableHeading?: boolean; tableHeadingLabel?: string; showDateFilter?: boolean; showFilter?: boolean; showColumnOptions?: boolean; showSearch?: boolean; showExport?: boolean; showRefreshButton?: boolean; showEntireData?: boolean; showLayoutToggle?: boolean; filterState?: \"default\" | \"applied\"; filterCount?: number; exportButtonState?: \"disabled\" | \"default\"; pdfState?: \"disabled\" | \"default\"; csvState?: \"disabled\" | \"default\"; datePickerMode?: \"single\" | \"range\"; inputPlaceholder?: string; datePickerPlaceholder?: string; }",
|
|
1255
|
+
"original": "{\r\n type: 'default' | 'table_control';\r\n tableHeading?: boolean;\r\n tableHeadingLabel?: string;\r\n showDateFilter?: boolean;\r\n showFilter?: boolean;\r\n showColumnOptions?: boolean;\r\n showSearch?: boolean;\r\n showExport?: boolean;\r\n showRefreshButton?: boolean;\r\n showEntireData?: boolean;\r\n showLayoutToggle?: boolean;\r\n filterState?: 'default' | 'applied';\r\n filterCount?: number;\r\n exportButtonState?: 'default' | 'disabled';\r\n pdfState?: 'default' | 'disabled';\r\n csvState?: 'default' | 'disabled';\r\n datePickerMode?: 'single' | 'range';\r\n inputPlaceholder?: string;\r\n datePickerPlaceholder?: string;\r\n searchMode?: 'internal' | 'external';\r\n }",
|
|
1256
|
+
"resolved": "{ type: \"default\" | \"table_control\"; tableHeading?: boolean; tableHeadingLabel?: string; showDateFilter?: boolean; showFilter?: boolean; showColumnOptions?: boolean; showSearch?: boolean; showExport?: boolean; showRefreshButton?: boolean; showEntireData?: boolean; showLayoutToggle?: boolean; filterState?: \"default\" | \"applied\"; filterCount?: number; exportButtonState?: \"disabled\" | \"default\"; pdfState?: \"disabled\" | \"default\"; csvState?: \"disabled\" | \"default\"; datePickerMode?: \"single\" | \"range\"; inputPlaceholder?: string; datePickerPlaceholder?: string; searchMode?: \"external\" | \"internal\"; }",
|
|
1254
1257
|
"references": {}
|
|
1255
1258
|
},
|
|
1256
1259
|
"required": false,
|
|
@@ -1354,7 +1357,8 @@ export class GbTable {
|
|
|
1354
1357
|
"text": ""
|
|
1355
1358
|
},
|
|
1356
1359
|
"getter": false,
|
|
1357
|
-
"setter": false
|
|
1360
|
+
"setter": false,
|
|
1361
|
+
"defaultValue": "{\r\n mode: 'internal',\r\n title: '',\r\n fields: [\r\n // {\r\n // tag: 'gb-date-picker',\r\n // label: 'Date',\r\n // columnKey: 'date',\r\n // key: { start: 'startDate', end: 'endDate' },\r\n // event: 'dateChange',\r\n // },\r\n // {\r\n // tag: 'gb-input-dropdown',\r\n // key: 'status',\r\n // event: 'dropdownItemSelected',\r\n // props: {\r\n // type: 'tags',\r\n // showLabel: true,\r\n // label: 'Status',\r\n // placeholder: 'Select a status',\r\n // items: ['Completed', 'Pending', 'Cancelled'],\r\n // },\r\n // },\r\n // {\r\n // tag: 'gb-slider',\r\n // key: 'amount',\r\n // event: 'thumbValueChanged',\r\n // props: {\r\n // showHeading: true,\r\n // heading: 'Amount range',\r\n // max: 600,\r\n // },\r\n // },\r\n ],\r\n initialValues: {\r\n pageNumber: 0,\r\n pageSize: 10,\r\n },\r\n }"
|
|
1358
1362
|
},
|
|
1359
1363
|
"showActionsColumn": {
|
|
1360
1364
|
"type": "boolean",
|
|
@@ -1524,32 +1528,12 @@ export class GbTable {
|
|
|
1524
1528
|
"attribute": "row-key",
|
|
1525
1529
|
"defaultValue": "'id'"
|
|
1526
1530
|
},
|
|
1527
|
-
"
|
|
1528
|
-
"type": "string",
|
|
1529
|
-
"mutable": false,
|
|
1530
|
-
"complexType": {
|
|
1531
|
-
"original": "'internal' | 'external'",
|
|
1532
|
-
"resolved": "\"external\" | \"internal\"",
|
|
1533
|
-
"references": {}
|
|
1534
|
-
},
|
|
1535
|
-
"required": false,
|
|
1536
|
-
"optional": false,
|
|
1537
|
-
"docs": {
|
|
1538
|
-
"tags": [],
|
|
1539
|
-
"text": ""
|
|
1540
|
-
},
|
|
1541
|
-
"getter": false,
|
|
1542
|
-
"setter": false,
|
|
1543
|
-
"reflect": false,
|
|
1544
|
-
"attribute": "filter-mode",
|
|
1545
|
-
"defaultValue": "'internal'"
|
|
1546
|
-
},
|
|
1547
|
-
"searchMode": {
|
|
1531
|
+
"tableHeaderType": {
|
|
1548
1532
|
"type": "string",
|
|
1549
1533
|
"mutable": false,
|
|
1550
1534
|
"complexType": {
|
|
1551
|
-
"original": "'
|
|
1552
|
-
"resolved": "\"
|
|
1535
|
+
"original": "'default' | 'table_control'",
|
|
1536
|
+
"resolved": "\"default\" | \"table_control\"",
|
|
1553
1537
|
"references": {}
|
|
1554
1538
|
},
|
|
1555
1539
|
"required": false,
|
|
@@ -1561,8 +1545,8 @@ export class GbTable {
|
|
|
1561
1545
|
"getter": false,
|
|
1562
1546
|
"setter": false,
|
|
1563
1547
|
"reflect": false,
|
|
1564
|
-
"attribute": "
|
|
1565
|
-
"defaultValue": "'
|
|
1548
|
+
"attribute": "table-header-type",
|
|
1549
|
+
"defaultValue": "'default'"
|
|
1566
1550
|
}
|
|
1567
1551
|
};
|
|
1568
1552
|
}
|
|
@@ -1762,6 +1746,21 @@ export class GbTable {
|
|
|
1762
1746
|
"resolved": "void",
|
|
1763
1747
|
"references": {}
|
|
1764
1748
|
}
|
|
1749
|
+
}, {
|
|
1750
|
+
"method": "tableControlClicked",
|
|
1751
|
+
"name": "tableControlClicked",
|
|
1752
|
+
"bubbles": true,
|
|
1753
|
+
"cancelable": true,
|
|
1754
|
+
"composed": true,
|
|
1755
|
+
"docs": {
|
|
1756
|
+
"tags": [],
|
|
1757
|
+
"text": ""
|
|
1758
|
+
},
|
|
1759
|
+
"complexType": {
|
|
1760
|
+
"original": "string",
|
|
1761
|
+
"resolved": "string",
|
|
1762
|
+
"references": {}
|
|
1763
|
+
}
|
|
1765
1764
|
}];
|
|
1766
1765
|
}
|
|
1767
1766
|
static get watchers() {
|