globuswebcomponents 2.17.4 → 2.17.5
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 → gb-accordion-card_81.cjs.entry.js} +69 -25
- 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/test-input-tag.cjs.entry.js +2 -2
- package/dist/collection/components/gb-table/gb-table.js +36 -14
- package/dist/collection/components/gb-table/gb-table.js.map +1 -1
- package/dist/collection/components/gb-table-test/gb-table-test.js +20 -1
- package/dist/collection/components/gb-table-test/gb-table-test.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/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.js +5 -5
- 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 +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-C1dYzyfa.js → p-4YZvp-qM.js} +3 -3
- package/dist/components/{p-C1dYzyfa.js.map → p-4YZvp-qM.js.map} +1 -1
- package/dist/components/{p-mmif47-b.js → p-B-_n34Mq.js} +3 -3
- package/dist/components/{p-mmif47-b.js.map → p-B-_n34Mq.js.map} +1 -1
- package/dist/components/{p-eH4yIAd0.js → p-B0otylT9.js} +4 -4
- package/dist/components/{p-eH4yIAd0.js.map → p-B0otylT9.js.map} +1 -1
- package/dist/components/{p-bukoNd9j.js → p-B9y0gFWa.js} +3 -3
- package/dist/components/{p-bukoNd9j.js.map → p-B9y0gFWa.js.map} +1 -1
- package/dist/components/{p-F2IP2NQ7.js → p-BH_pWFmu.js} +10 -10
- package/dist/components/{p-F2IP2NQ7.js.map → p-BH_pWFmu.js.map} +1 -1
- package/dist/components/{p-CUQQ_pVS.js → p-BNAvzBZq.js} +3 -3
- package/dist/components/{p-CUQQ_pVS.js.map → p-BNAvzBZq.js.map} +1 -1
- package/dist/components/{p-C555_4OR.js → p-BQeqF_-6.js} +4 -4
- package/dist/components/{p-C555_4OR.js.map → p-BQeqF_-6.js.map} +1 -1
- package/dist/components/{p-DUcTdAwQ.js → p-BX4Hw5Pp.js} +3 -3
- package/dist/components/{p-DUcTdAwQ.js.map → p-BX4Hw5Pp.js.map} +1 -1
- package/dist/components/{p-C-81y7Ao.js → p-Bp0YR1uJ.js} +3 -3
- package/dist/components/{p-C-81y7Ao.js.map → p-Bp0YR1uJ.js.map} +1 -1
- package/dist/components/{p-CjlHYbIG.js → p-BuCno_es.js} +49 -32
- package/dist/components/p-BuCno_es.js.map +1 -0
- package/dist/components/{p-COvlJwgH.js → p-C-e3hNlH.js} +4 -4
- package/dist/components/{p-COvlJwgH.js.map → p-C-e3hNlH.js.map} +1 -1
- package/dist/components/{p-BMVHXgxU.js → p-C1BEL6jH.js} +12 -12
- package/dist/components/{p-BMVHXgxU.js.map → p-C1BEL6jH.js.map} +1 -1
- package/dist/components/{p-CF8lWVGI.js → p-C2x5lNJ2.js} +3 -3
- package/dist/components/{p-CF8lWVGI.js.map → p-C2x5lNJ2.js.map} +1 -1
- package/dist/components/{p-By06v2rr.js → p-C5In_G7H.js} +3 -3
- package/dist/components/{p-By06v2rr.js.map → p-C5In_G7H.js.map} +1 -1
- package/dist/components/{p-BfQfhmt2.js → p-CHKnEWqk.js} +4 -4
- package/dist/components/{p-BfQfhmt2.js.map → p-CHKnEWqk.js.map} +1 -1
- package/dist/components/{p-SXFZD34y.js → p-CU5l35gn.js} +3 -3
- package/dist/components/{p-SXFZD34y.js.map → p-CU5l35gn.js.map} +1 -1
- package/dist/components/{p-B49zVmuD.js → p-CZkEMeZd.js} +4 -4
- package/dist/components/{p-B49zVmuD.js.map → p-CZkEMeZd.js.map} +1 -1
- package/dist/components/{p-DS5er_ay.js → p-CcdQMEiN.js} +14 -14
- package/dist/components/{p-DS5er_ay.js.map → p-CcdQMEiN.js.map} +1 -1
- package/dist/components/{p-BbUBXvD3.js → p-Cf_GFf1d.js} +4 -4
- package/dist/components/{p-BbUBXvD3.js.map → p-Cf_GFf1d.js.map} +1 -1
- package/dist/components/{p-BB-vktvb.js → p-ChGsSHyD.js} +3 -3
- package/dist/components/{p-BB-vktvb.js.map → p-ChGsSHyD.js.map} +1 -1
- package/dist/components/{p-DK1gLemw.js → p-Cp9sNYro.js} +3 -3
- package/dist/components/{p-DK1gLemw.js.map → p-Cp9sNYro.js.map} +1 -1
- package/dist/components/{p-u073g6kS.js → p-Cx4oJFSt.js} +3 -3
- package/dist/components/{p-u073g6kS.js.map → p-Cx4oJFSt.js.map} +1 -1
- package/dist/components/{p-DlL4FShm.js → p-CxgSqKYx.js} +3 -3
- package/dist/components/{p-DlL4FShm.js.map → p-CxgSqKYx.js.map} +1 -1
- package/dist/components/{p-B-jY6LAf.js → p-D2XNcd98.js} +11 -11
- package/dist/components/{p-B-jY6LAf.js.map → p-D2XNcd98.js.map} +1 -1
- package/dist/components/{p-CxQvrUbZ.js → p-DTVnCJvY.js} +3 -3
- package/dist/components/{p-CxQvrUbZ.js.map → p-DTVnCJvY.js.map} +1 -1
- package/dist/components/{p-BOvu3PCb.js → p-DX7NMlGY.js} +9 -9
- package/dist/components/{p-BOvu3PCb.js.map → p-DX7NMlGY.js.map} +1 -1
- package/dist/components/{p-DAyBw9KX.js → p-DclzsKE1.js} +3 -3
- package/dist/components/{p-DAyBw9KX.js.map → p-DclzsKE1.js.map} +1 -1
- package/dist/components/{p-BwVwRnu4.js → p-DeXQ5EJ5.js} +3 -3
- package/dist/components/{p-BwVwRnu4.js.map → p-DeXQ5EJ5.js.map} +1 -1
- package/dist/components/{p-COlgB45x.js → p-DgixiwuN.js} +13 -13
- package/dist/components/{p-COlgB45x.js.map → p-DgixiwuN.js.map} +1 -1
- package/dist/components/{p-CphUJ7Q5.js → p-Dh9pNyX0.js} +4 -4
- package/dist/components/{p-CphUJ7Q5.js.map → p-Dh9pNyX0.js.map} +1 -1
- package/dist/components/{p-d1qdPSLe.js → p-Dt60TTUE.js} +6 -6
- package/dist/components/{p-d1qdPSLe.js.map → p-Dt60TTUE.js.map} +1 -1
- package/dist/components/{p-B5TsN1E4.js → p-GszQCyXb.js} +4 -4
- package/dist/components/{p-B5TsN1E4.js.map → p-GszQCyXb.js.map} +1 -1
- package/dist/components/{p-CLvY21aj.js → p-QPpFI6Tl.js} +5 -5
- package/dist/components/{p-CLvY21aj.js.map → p-QPpFI6Tl.js.map} +1 -1
- package/dist/components/{p-dVwy1uvR.js → p-TVd0-ncC.js} +5 -5
- package/dist/components/{p-dVwy1uvR.js.map → p-TVd0-ncC.js.map} +1 -1
- package/dist/components/{p-D0_rEkQ_.js → p-XOEsdWXU.js} +4 -4
- package/dist/components/{p-D0_rEkQ_.js.map → p-XOEsdWXU.js.map} +1 -1
- package/dist/components/{p-CCiQQgXc.js → p-b_TGMORd.js} +5 -5
- package/dist/components/{p-CCiQQgXc.js.map → p-b_TGMORd.js.map} +1 -1
- package/dist/components/{p-B1VheAVY.js → p-dvsnNsWY.js} +5 -5
- package/dist/components/{p-B1VheAVY.js.map → p-dvsnNsWY.js.map} +1 -1
- package/dist/components/{p-BYP6HAjp.js → p-iWdssWCr.js} +3 -3
- package/dist/components/{p-BYP6HAjp.js.map → p-iWdssWCr.js.map} +1 -1
- package/dist/components/{p-C26KO13_.js → p-n4Lzg2Aw.js} +3 -3
- package/dist/components/{p-C26KO13_.js.map → p-n4Lzg2Aw.js.map} +1 -1
- package/dist/components/{p-DAgyye0m.js → p-wH0NPWp6.js} +6 -6
- package/dist/components/{p-DAgyye0m.js.map → p-wH0NPWp6.js.map} +1 -1
- package/dist/components/test-input-tag.js +6 -6
- package/dist/components/test-wrapper.js +39 -22
- package/dist/components/test-wrapper.js.map +1 -1
- package/dist/docs.json +20 -15
- package/dist/esm/{gb-accordion-card_80.entry.js → gb-accordion-card_81.entry.js} +69 -26
- 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/test-input-tag.entry.js +2 -2
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-d5f82cf7.entry.js → p-1e5f04e2.entry.js} +2 -2
- package/dist/globuscomponents/{p-3574b3d8.entry.js → p-42063daf.entry.js} +2 -2
- package/dist/globuscomponents/{p-29ee3766.entry.js → p-528e9bbf.entry.js} +2 -2
- package/dist/globuscomponents/{p-d3157710.entry.js → p-53b415e8.entry.js} +2 -2
- package/dist/globuscomponents/{p-ca8a55bf.entry.js → p-9767bb82.entry.js} +2 -2
- package/dist/globuscomponents/{p-e1933bac.entry.js → p-b2bab8bd.entry.js} +2 -2
- package/dist/globuscomponents/{p-95cf9d76.entry.js → p-f9c27149.entry.js} +2 -2
- package/dist/globuscomponents/p-f9c27149.entry.js.map +1 -0
- package/dist/types/components/gb-table/gb-table.d.ts +2 -1
- package/dist/types/components/gb-table-test/gb-table-test.d.ts +1 -0
- package/dist/types/components.d.ts +4 -4
- package/package.json +1 -1
- package/dist/cjs/test-wrapper.cjs.entry.js +0 -15
- package/dist/cjs/test-wrapper.entry.cjs.js.map +0 -1
- package/dist/components/p-CjlHYbIG.js.map +0 -1
- package/dist/esm/test-wrapper.entry.js +0 -13
- package/dist/esm/test-wrapper.entry.js.map +0 -1
- package/dist/globuscomponents/p-95cf9d76.entry.js.map +0 -1
- package/dist/globuscomponents/p-f22a7164.entry.js +0 -2
- package/dist/globuscomponents/p-f22a7164.entry.js.map +0 -1
- package/dist/globuscomponents/test-wrapper.entry.esm.js.map +0 -1
- /package/dist/globuscomponents/{p-d5f82cf7.entry.js.map → p-1e5f04e2.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-3574b3d8.entry.js.map → p-42063daf.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-29ee3766.entry.js.map → p-528e9bbf.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-d3157710.entry.js.map → p-53b415e8.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-ca8a55bf.entry.js.map → p-9767bb82.entry.js.map} +0 -0
- /package/dist/globuscomponents/{p-e1933bac.entry.js.map → p-b2bab8bd.entry.js.map} +0 -0
|
@@ -494,10 +494,10 @@ export class GbTable {
|
|
|
494
494
|
};
|
|
495
495
|
this.showActionsColumn = true;
|
|
496
496
|
this.rowActions = [
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
497
|
+
// { label: 'View Details', action: 'view_details', icon: 'assets/view.svg', type: 'button' },
|
|
498
|
+
// { label: '', action: '', icon: 'assets/more-horizontal.svg', type: 'dropdown' },
|
|
499
|
+
// { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', type: 'button' },
|
|
500
|
+
// { action: 'edit', type: 'custom' },
|
|
501
501
|
];
|
|
502
502
|
this.dropdownOptions = [
|
|
503
503
|
// { label: 'Download invalid', action: 'view', icon: 'assets/view.svg', disabled: false },
|
|
@@ -594,7 +594,7 @@ export class GbTable {
|
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
596
|
async handleAction(action, row) {
|
|
597
|
-
console.log('Action clicked:', action, row);
|
|
597
|
+
// console.log('Action clicked:', action, row);
|
|
598
598
|
this.rowActionClicked.emit({ action, row });
|
|
599
599
|
}
|
|
600
600
|
renderCell(col, row) {
|
|
@@ -858,6 +858,23 @@ export class GbTable {
|
|
|
858
858
|
const splitNames = name.split(' ');
|
|
859
859
|
return splitNames.map((nm) => nm.charAt(0));
|
|
860
860
|
}
|
|
861
|
+
renderCustomAction(row) {
|
|
862
|
+
if (!this.renderCustomActions)
|
|
863
|
+
return h("slot", { name: "row_actions" });
|
|
864
|
+
const rowId = String(this.getRowId(row));
|
|
865
|
+
return (h("div", { key: `custom-action-${rowId}`, class: "custom_action_slot", ref: el => {
|
|
866
|
+
if (!el)
|
|
867
|
+
return;
|
|
868
|
+
// Re-mount only when this container is bound to a different row.
|
|
869
|
+
// Prevents tearing down (and resetting) the host-framework component
|
|
870
|
+
// on unrelated re-renders (sort, resize, dropdown open, etc.).
|
|
871
|
+
if (el.dataset.rowKey === rowId)
|
|
872
|
+
return;
|
|
873
|
+
el.dataset.rowKey = rowId;
|
|
874
|
+
el.innerHTML = '';
|
|
875
|
+
this.renderCustomActions(el, row, (action) => this.handleAction(action, row));
|
|
876
|
+
} }));
|
|
877
|
+
}
|
|
861
878
|
renderDesktopView() {
|
|
862
879
|
// compute table min-width to force horizontal scroll when > 5 columns
|
|
863
880
|
const defaultColWidth = 160;
|
|
@@ -901,7 +918,7 @@ export class GbTable {
|
|
|
901
918
|
.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 => {
|
|
902
919
|
e.stopPropagation();
|
|
903
920
|
this.toggleDropdown(rowIndex);
|
|
904
|
-
} })) : action.type === 'custom' ? (
|
|
921
|
+
} })) : action.type === 'custom' ? (this.renderCustomAction(row)) : (h("gb-button", { hierarchy: "tertiary_gray", size: "md", icon: "only", destructive: action.destructive, iconLeading: true, iconLeadingSwap: action.icon, onClick: e => {
|
|
905
922
|
e.stopPropagation();
|
|
906
923
|
this.handleAction(action.action, row);
|
|
907
924
|
} })))))), 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: () => {
|
|
@@ -1122,16 +1139,16 @@ export class GbTable {
|
|
|
1122
1139
|
window.removeEventListener('resize', this.checkViewport);
|
|
1123
1140
|
}
|
|
1124
1141
|
render() {
|
|
1125
|
-
return (h("div", { key: '
|
|
1142
|
+
return (h("div", { key: 'fff578632318ce951474e8e0b017ed34d007b1cc', class: `table_wrapper ${this.currentTableLayout}` }, this.tableHeaderConfig && (h("div", { key: '0bfb29c446aba3674c2a22d125d656e0ff60b905', class: `table-header ${this.currentTableLayout}` }, h("gb-table-header", { key: '5b3b14ae8bd63048508b409296701912dd6266ef', 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: 'ab47e5d1fe46f9ad4af7cf94da064dc5392a9741', class: "dialog", style: {
|
|
1126
1143
|
transform: `translate(${this.modalPosition.x}px, ${this.modalPosition.y}px)`,
|
|
1127
|
-
} }, h("div", { key: '
|
|
1144
|
+
} }, h("div", { key: '6d2f489e5a60e1de41389b2c59a234b329b3e9e4', class: "column-modal" }, h("div", { key: '15d3b2d539e1d89e08e87f711e59d1c0a27c1cc0', class: "modal_header" }, h("div", { key: '9e82dd8cbbba886000589a8f22d9e2a4dd99b15e', class: "modal_header_content", onPointerDown: this.onModalPointerDown }, h("h4", { key: 'a21373b0a6930722cabd74384252476fe717a847', class: "heading display-xs-semi-bold" }, "Column Options"), h("gb-button-close", { key: '2bbd2f88dac95f3bc6545646c02cfc1074f95347', class: "close_button", color: "gray", size: "sm", onClick: () => (this.showColumnsPanel = false) }))), h("div", { key: '5e52b2115e6fe50b5fec37db6ffad6a55dc6cd70', class: "content_wrapper" }, h("div", { key: 'e84c90cadb033462b0093b33f179add5255dd49a', class: "modal_content" }, this.internalColumns.map((col, index) => (h("div", { class: "column_option", draggable: true, onDragStart: () => (this.draggedIndex = index), onDragOver: e => e.preventDefault(), onDrop: () => {
|
|
1128
1145
|
if (this.draggedIndex !== null && this.draggedIndex !== index) {
|
|
1129
1146
|
this.reorderColumns(this.draggedIndex, index);
|
|
1130
1147
|
}
|
|
1131
1148
|
this.draggedIndex = null;
|
|
1132
1149
|
} }, 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 => {
|
|
1133
1150
|
this.toggleColumn(e, col.key);
|
|
1134
|
-
} })))), h("div", { key: '
|
|
1151
|
+
} })))), h("div", { key: '3341d8212bb2a00da1ad3870f9981dc7a1e01f16', class: "modal-actions" })))))), this.showFilterModalInternal && this.filterConfig && (h("div", { key: '7d7c1b31ede07a6e918709127fc4f080d3657584', class: `filter_modal_wrapper ${this.isFilterModalVisible ? 'open' : 'closing'}` }, h("gb-filter-modal", { key: '3d9100c67e02b89f1a675be3d4d18283815d005b', class: "filter_modal", filterConfig: this.mergedFilterConfig, onClose: e => {
|
|
1135
1152
|
e.stopPropagation();
|
|
1136
1153
|
this.closeFilterModal();
|
|
1137
1154
|
}, onApplyFilters: e => this.onApplyFilters(e), onClearFilters: () => this.handleClearFilters() }))), this.internalLoading ? (
|
|
@@ -1178,7 +1195,7 @@ export class GbTable {
|
|
|
1178
1195
|
? this.renderDesktopView()
|
|
1179
1196
|
: this.currentTableLayout === 'grid'
|
|
1180
1197
|
? this.renderGridView()
|
|
1181
|
-
: null)), this.paginationConfig && (h("div", { key: '
|
|
1198
|
+
: null)), this.paginationConfig && (h("div", { key: '527422bd2e3afe19527a91735ad9c2d54e6c23d8', class: `pagination ${this.currentTableLayout}` }, h("gb-pagination", { key: '4b685257a198683d4d1c8ff190a6e1b51f3a93df', "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: '360262fc71f37fbecfbe48a42133faf34b607f57', class: `toast ${this.toastVisible ? 'visible' : ''}`, color: "information", "main-text": this.filterMessage, breakpoint: "desktop", size: "floating", onClose: () => this.hideToast() }))));
|
|
1182
1199
|
}
|
|
1183
1200
|
static get is() { return "gb-table"; }
|
|
1184
1201
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1428,7 +1445,7 @@ export class GbTable {
|
|
|
1428
1445
|
},
|
|
1429
1446
|
"getter": false,
|
|
1430
1447
|
"setter": false,
|
|
1431
|
-
"defaultValue": "[\r\n // { label: 'View Details', action: 'view_details', icon: 'assets/view.svg', type: 'button' },\r\n // { label: '', action: '', icon: 'assets/more-horizontal.svg', type: 'dropdown' },\r\n // { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', type: 'button' },\r\n { action: 'edit', type: 'custom' },\r\n ]"
|
|
1448
|
+
"defaultValue": "[\r\n // { label: 'View Details', action: 'view_details', icon: 'assets/view.svg', type: 'button' },\r\n // { label: '', action: '', icon: 'assets/more-horizontal.svg', type: 'dropdown' },\r\n // { label: 'Edit', action: 'edit', icon: 'assets/pencil-edit-01.svg', type: 'button' },\r\n // { action: 'edit', type: 'custom' },\r\n ]"
|
|
1432
1449
|
},
|
|
1433
1450
|
"dropdownOptions": {
|
|
1434
1451
|
"type": "unknown",
|
|
@@ -1578,9 +1595,14 @@ export class GbTable {
|
|
|
1578
1595
|
"type": "unknown",
|
|
1579
1596
|
"mutable": false,
|
|
1580
1597
|
"complexType": {
|
|
1581
|
-
"original": "(row: any) =>
|
|
1582
|
-
"resolved": "(row: any) =>
|
|
1583
|
-
"references": {
|
|
1598
|
+
"original": "(container: HTMLElement, row: any, emit: (action: string) => void) => void",
|
|
1599
|
+
"resolved": "(container: HTMLElement, row: any, emit: (action: string) => void) => void",
|
|
1600
|
+
"references": {
|
|
1601
|
+
"HTMLElement": {
|
|
1602
|
+
"location": "global",
|
|
1603
|
+
"id": "global::HTMLElement"
|
|
1604
|
+
}
|
|
1605
|
+
}
|
|
1584
1606
|
},
|
|
1585
1607
|
"required": false,
|
|
1586
1608
|
"optional": true,
|