globuswebcomponents 2.18.2 → 2.18.4
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_86.cjs.entry.js +61 -24
- 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/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 +7 -2
- package/dist/collection/components/gb-button/readme.md +7 -0
- package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.js +59 -9
- package/dist/collection/components/gb-export-dropdown/gb-export-dropdown.js.map +1 -1
- package/dist/collection/components/gb-export-dropdown-item/gb-export-dropdown-item.js +22 -1
- package/dist/collection/components/gb-export-dropdown-item/gb-export-dropdown-item.js.map +1 -1
- package/dist/collection/components/gb-sidebar/gb-sidebar.css +1 -0
- package/dist/collection/components/gb-table/gb-table.css +7 -0
- package/dist/collection/components/gb-table/gb-table.js +48 -14
- package/dist/collection/components/gb-table/gb-table.js.map +1 -1
- package/dist/collection/components/gb-table-header/gb-table-header.js +44 -2
- package/dist/collection/components/gb-table-header/gb-table-header.js.map +1 -1
- package/dist/collection/models/reusableModels.js.map +1 -1
- package/dist/components/gb-action-panel.js +1 -1
- package/dist/components/gb-approval-modal.js +2 -2
- 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 +2 -2
- package/dist/components/gb-comment.js +1 -1
- package/dist/components/gb-date-picker.js +1 -1
- package/dist/components/gb-detail-cell.js +1 -1
- package/dist/components/gb-empty-state.js +1 -1
- package/dist/components/gb-export-dropdown-item.js +1 -1
- package/dist/components/gb-export-dropdown.js +1 -1
- package/dist/components/gb-file-upload-item-base.js +1 -1
- package/dist/components/gb-file-upload.js +2 -2
- package/dist/components/gb-filter-button.js +1 -1
- package/dist/components/gb-filter-modal.js +1 -1
- package/dist/components/gb-header.js +4 -4
- package/dist/components/gb-input-dropdown-test.js +3 -3
- 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 +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-prompt-modal.js +1 -1
- package/dist/components/gb-rich-text.js +5 -5
- package/dist/components/gb-sidebar.js +1 -1
- package/dist/components/gb-sidebar.js.map +1 -1
- package/dist/components/gb-table-header.js +1 -1
- package/dist/components/gb-table.js +1 -1
- package/dist/components/gb-toast.js +1 -1
- package/dist/components/gb-wysiwyg-toolbar.js +1 -1
- package/dist/components/{p-CiiR529Y.js → p--_JpkqrZ.js} +22 -10
- package/dist/components/p--_JpkqrZ.js.map +1 -0
- package/dist/components/{p-G_1Hj20d.js → p-B-eg7Ble.js} +3 -3
- package/dist/components/{p-G_1Hj20d.js.map → p-B-eg7Ble.js.map} +1 -1
- package/dist/components/{p-D3KjVinJ.js → p-B2cesIns.js} +3 -3
- package/dist/components/{p-D3KjVinJ.js.map → p-B2cesIns.js.map} +1 -1
- package/dist/components/{p-DV0_Rpsq.js → p-BF-N7J8c.js} +5 -5
- package/dist/components/{p-DV0_Rpsq.js.map → p-BF-N7J8c.js.map} +1 -1
- package/dist/components/{p-BXOb-sxX.js → p-BI0Ex54P.js} +3 -3
- package/dist/components/{p-BXOb-sxX.js.map → p-BI0Ex54P.js.map} +1 -1
- package/dist/components/{p-tsXOiJ8G.js → p-By402klS.js} +3 -3
- package/dist/components/{p-tsXOiJ8G.js.map → p-By402klS.js.map} +1 -1
- package/dist/components/{p-CVVZFgtT.js → p-CITjyuOY.js} +15 -11
- package/dist/components/p-CITjyuOY.js.map +1 -0
- package/dist/components/{p-C3u53LcN.js → p-CbkRE1YA.js} +47 -27
- package/dist/components/p-CbkRE1YA.js.map +1 -0
- package/dist/components/{p-D0ICcCwP.js → p-CsyLoHd6.js} +3 -3
- package/dist/components/{p-D0ICcCwP.js.map → p-CsyLoHd6.js.map} +1 -1
- package/dist/components/{p-Cs227sL-.js → p-CzePcMXF.js} +6 -6
- package/dist/components/{p-Cs227sL-.js.map → p-CzePcMXF.js.map} +1 -1
- package/dist/components/{p-CBuOnylk.js → p-D1fnUzqW.js} +8 -4
- package/dist/components/p-D1fnUzqW.js.map +1 -0
- package/dist/components/{p-Cy2DpE74.js → p-DHXR9Sxk.js} +3 -3
- package/dist/components/{p-Cy2DpE74.js.map → p-DHXR9Sxk.js.map} +1 -1
- package/dist/components/{p-RSws383T.js → p-DIFK2uPX.js} +3 -3
- package/dist/components/{p-RSws383T.js.map → p-DIFK2uPX.js.map} +1 -1
- package/dist/components/{p-B-5pwC7d.js → p-DQBORnne.js} +4 -4
- package/dist/components/{p-B-5pwC7d.js.map → p-DQBORnne.js.map} +1 -1
- package/dist/components/{p-JfNYOsVW.js → p-DSQYTQAy.js} +6 -4
- package/dist/components/p-DSQYTQAy.js.map +1 -0
- package/dist/components/{p-DtT9_6lb.js → p-DsN3hb33.js} +6 -6
- package/dist/components/{p-DtT9_6lb.js.map → p-DsN3hb33.js.map} +1 -1
- package/dist/components/{p-8R21NzYN.js → p-DtJfuVIF.js} +4 -4
- package/dist/components/{p-8R21NzYN.js.map → p-DtJfuVIF.js.map} +1 -1
- package/dist/components/{p-2ln_RZsP.js → p-WXjkXlUF.js} +3 -3
- package/dist/components/{p-2ln_RZsP.js.map → p-WXjkXlUF.js.map} +1 -1
- package/dist/components/p-cHn6O-Kf.js.map +1 -1
- package/dist/components/{p-CEfxsCIn.js → p-jUlrLXgu.js} +3 -3
- package/dist/components/{p-CEfxsCIn.js.map → p-jUlrLXgu.js.map} +1 -1
- package/dist/components/test-wrapper.js +14 -14
- package/dist/docs.json +186 -12
- package/dist/esm/gb-accordion-card_86.entry.js +61 -24
- 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/globuscomponents/gb-button.tsx +7 -2
- package/dist/globuscomponents/globuscomponents.esm.js +1 -1
- package/dist/globuscomponents/{p-3ca996c4.entry.js → p-9f5a5998.entry.js} +2 -2
- package/dist/globuscomponents/p-9f5a5998.entry.js.map +1 -0
- package/dist/globuscomponents/p-cHn6O-Kf.js.map +1 -1
- package/dist/globuscomponents/readme.md +7 -0
- package/dist/types/components/gb-button/gb-button.d.ts +3 -0
- package/dist/types/components/gb-export-dropdown/gb-export-dropdown.d.ts +5 -3
- package/dist/types/components/gb-export-dropdown-item/gb-export-dropdown-item.d.ts +2 -1
- package/dist/types/components/gb-table/gb-table.d.ts +5 -0
- package/dist/types/components/gb-table-header/gb-table-header.d.ts +2 -0
- package/dist/types/components.d.ts +66 -4
- package/dist/types/models/reusableModels.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/p-C3u53LcN.js.map +0 -1
- package/dist/components/p-CBuOnylk.js.map +0 -1
- package/dist/components/p-CVVZFgtT.js.map +0 -1
- package/dist/components/p-CiiR529Y.js.map +0 -1
- package/dist/components/p-JfNYOsVW.js.map +0 -1
- package/dist/globuscomponents/p-3ca996c4.entry.js.map +0 -1
|
@@ -4,7 +4,7 @@ export class GbTable {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.loading = false;
|
|
6
6
|
this.columns = [
|
|
7
|
-
// { key: 'id', label: '#', width: '
|
|
7
|
+
// { key: 'id', label: '#', width: '10rem', sortable: true, sortType: 'string', truncate: true, mobile: { position: 'top_left' } },
|
|
8
8
|
// { key: 'date', label: 'Date', value: row => row.date.toLocaleString(), mobile: { position: 'bottom_left' } },
|
|
9
9
|
// {
|
|
10
10
|
// key: 'name',
|
|
@@ -28,8 +28,15 @@ export class GbTable {
|
|
|
28
28
|
// {
|
|
29
29
|
// key: 'status',
|
|
30
30
|
// label: 'Status',
|
|
31
|
-
// cellComponent: 'gb-
|
|
32
|
-
// cellProps: row => ({
|
|
31
|
+
// cellComponent: 'gb-button',
|
|
32
|
+
// cellProps: row => ({
|
|
33
|
+
// hierarchy: 'link_gray',
|
|
34
|
+
// size: 'md',
|
|
35
|
+
// icon: 'default',
|
|
36
|
+
// iconLeading: true,
|
|
37
|
+
// iconLeadingSwap: 'assets/view.svg'
|
|
38
|
+
// }),
|
|
39
|
+
// cellEvent: 'buttonClicked',
|
|
33
40
|
// cellSlots: {
|
|
34
41
|
// default: {
|
|
35
42
|
// tag: 'p',
|
|
@@ -625,7 +632,19 @@ export class GbTable {
|
|
|
625
632
|
}
|
|
626
633
|
// render component with slots
|
|
627
634
|
const allChildren = [defaultSlotContent, ...namedSlotElements].filter(child => child != null);
|
|
628
|
-
|
|
635
|
+
// resolve cell event listeners
|
|
636
|
+
const cellEventProps = {};
|
|
637
|
+
if (col.cellEvent) {
|
|
638
|
+
const events = Array.isArray(col.cellEvent) ? col.cellEvent : [col.cellEvent];
|
|
639
|
+
for (const eventName of events) {
|
|
640
|
+
const propKey = `on${eventName.charAt(0).toUpperCase()}${eventName.slice(1)}`;
|
|
641
|
+
cellEventProps[propKey] = () => {
|
|
642
|
+
console.log({ row });
|
|
643
|
+
this.cellActionFired.emit({ row });
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
return h(Tag, Object.assign(Object.assign({}, props), cellEventProps), allChildren.length > 0 ? allChildren : undefined);
|
|
629
648
|
}
|
|
630
649
|
// if (!value && col.supportingText) {
|
|
631
650
|
// const primary = row[col.key];
|
|
@@ -654,9 +673,9 @@ export class GbTable {
|
|
|
654
673
|
if (col.hasAvatar) {
|
|
655
674
|
const avatarInitials = typeof col.cellAvatar.slots.initials === 'function' ? col.cellAvatar.slots.initials(row) : col.cellAvatar.slots.initials;
|
|
656
675
|
const avatarImage = typeof col.cellAvatar.slots.image === 'function' ? getAssetPath(col.cellAvatar.slots.image(row)) : getAssetPath(col.cellAvatar.slots.image);
|
|
657
|
-
return (h("div", { class: "avatar_cell" }, h("gb-avatar", { size: "sm", text: avatarInitials ? true : avatarImage ? false : null, "show-border": "false" }, h("h1", { slot: "initials" }, avatarInitials), h("img", { slot: "image", src: avatarImage })), h("p", { class: `body_text text-sm-regular ${resolvedClass}`, style: resolvedStyle }, value)));
|
|
676
|
+
return (h("div", { class: "avatar_cell" }, h("gb-avatar", { size: "sm", text: avatarInitials ? true : avatarImage ? false : null, "show-border": "false" }, h("h1", { slot: "initials" }, avatarInitials), h("img", { slot: "image", src: avatarImage })), h("p", { class: `body_text text-sm-regular ${col.truncate ? 'text_truncate' : ''} ${resolvedClass}`, style: resolvedStyle, title: col.truncate ? String(value !== null && value !== void 0 ? value : '') : undefined }, value)));
|
|
658
677
|
}
|
|
659
|
-
return (h(Fragment, null, h("p", { class: `body_text text-sm-regular ${resolvedClass}`, style: resolvedStyle }, value), supporting && (h("div", { class: "supporting" }, h("p", { class: "text-xs-regular" }, supporting)))));
|
|
678
|
+
return (h(Fragment, null, h("p", { class: `body_text text-sm-regular ${col.truncate ? 'text_truncate' : ''} ${resolvedClass}`, style: resolvedStyle, title: col.truncate ? String(value !== null && value !== void 0 ? value : '') : undefined }, value), supporting && (h("div", { class: "supporting" }, h("p", { class: "text-xs-regular" }, supporting)))));
|
|
660
679
|
}
|
|
661
680
|
getCellValue(col, row) {
|
|
662
681
|
if (col.value) {
|
|
@@ -915,7 +934,7 @@ export class GbTable {
|
|
|
915
934
|
this.toggleRow(row);
|
|
916
935
|
} }))), this.internalColumns
|
|
917
936
|
.filter(col => col.visible)
|
|
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 => {
|
|
937
|
+
.map((col, index) => (h(Fragment, null, h("td", { style: { textAlign: col.align || 'left' }, class: `table_detail ${col.truncate ? 'cell_truncate' : ''} ${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 => {
|
|
919
938
|
e.stopPropagation();
|
|
920
939
|
this.toggleDropdown(rowIndex);
|
|
921
940
|
} })) : 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 => {
|
|
@@ -1139,16 +1158,16 @@ export class GbTable {
|
|
|
1139
1158
|
window.removeEventListener('resize', this.checkViewport);
|
|
1140
1159
|
}
|
|
1141
1160
|
render() {
|
|
1142
|
-
return (h("div", { key: '
|
|
1161
|
+
return (h("div", { key: 'ae2fa96cbec415c81f3da4bf23be2d554f647191', class: `table_wrapper ${this.currentTableLayout}` }, this.tableHeaderConfig && (h("div", { key: '0b1adf00e958704ac66bb7668cf7aad5d9ce9eb4', class: `table-header ${this.currentTableLayout}` }, h("gb-table-header", { key: '917206d14c27e5c6950ecbd2a9aa97400fec96a8', 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, "pdf-sub-dropdown": this.tableHeaderConfig.pdfSubDropdown, "csv-sub-dropdown": this.tableHeaderConfig.csvSubDropdown, 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: '9a99f15120f1a1911fd03bf44d26ac4beb961d4e', class: "dialog", style: {
|
|
1143
1162
|
transform: `translate(${this.modalPosition.x}px, ${this.modalPosition.y}px)`,
|
|
1144
|
-
} }, h("div", { key: '
|
|
1163
|
+
} }, h("div", { key: 'a7ab27435df71be5087bfc4fcfec3d7571252ca9', class: "column-modal" }, h("div", { key: '5d5bb605cd2d05e68ef259563c61a2aab3352c14', class: "modal_header" }, h("div", { key: '26ec42334edc975df4fb532bb840ca870b7faeca', class: "modal_header_content", onPointerDown: this.onModalPointerDown }, h("h4", { key: '717f8d2ddbae5935e228e13ccec7f26b2bfefde9', class: "heading display-xs-semi-bold" }, "Column Options"), h("gb-button-close", { key: '5ca9b3c7824e3c0ffe619c921766eace57614a54', class: "close_button", color: "gray", size: "sm", onClick: () => (this.showColumnsPanel = false) }))), h("div", { key: '087b3ca005357c088688648ea84421065164f21e', class: "content_wrapper" }, h("div", { key: '50da6717460160dbaa5ce2523a8ec6d4d24002ff', class: "modal_content" }, this.internalColumns.map((col, index) => (h("div", { class: "column_option", draggable: true, onDragStart: () => (this.draggedIndex = index), onDragOver: e => e.preventDefault(), onDrop: () => {
|
|
1145
1164
|
if (this.draggedIndex !== null && this.draggedIndex !== index) {
|
|
1146
1165
|
this.reorderColumns(this.draggedIndex, index);
|
|
1147
1166
|
}
|
|
1148
1167
|
this.draggedIndex = null;
|
|
1149
1168
|
} }, 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 => {
|
|
1150
1169
|
this.toggleColumn(e, col.key);
|
|
1151
|
-
} })))), h("div", { key: '
|
|
1170
|
+
} })))), h("div", { key: '7e98353adfc9b47ca063b678b3146cab71c20dde', class: "modal-actions" })))))), this.showFilterModalInternal && this.filterConfig && (h("div", { key: 'ff2d7ab91b0e3038402c126fddddbab3490945d5', class: `filter_modal_wrapper ${this.isFilterModalVisible ? 'open' : 'closing'}` }, h("gb-filter-modal", { key: 'e850525900a5a5056d22a49456d1f9eaf36bab45', class: "filter_modal", filterConfig: this.mergedFilterConfig, onClose: e => {
|
|
1152
1171
|
e.stopPropagation();
|
|
1153
1172
|
this.closeFilterModal();
|
|
1154
1173
|
}, onApplyFilters: e => this.onApplyFilters(e), onClearFilters: () => this.handleClearFilters() }))), this.internalLoading ? (
|
|
@@ -1195,7 +1214,7 @@ export class GbTable {
|
|
|
1195
1214
|
? this.renderDesktopView()
|
|
1196
1215
|
: this.currentTableLayout === 'grid'
|
|
1197
1216
|
? this.renderGridView()
|
|
1198
|
-
: null)), this.paginationConfig && (h("div", { key: '
|
|
1217
|
+
: null)), this.paginationConfig && (h("div", { key: '9aabe280c5be2024301df78a00aa9bc64d520375', class: `pagination ${this.currentTableLayout}` }, h("gb-pagination", { key: 'd007afb510d97a2d96abf9fa3bfb3b0e8cf7b20f', "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: '725b91f6037e2ca8496d326f60919489e16c9fe4', class: `toast ${this.toastVisible ? 'visible' : ''}`, color: "information", "main-text": this.filterMessage, breakpoint: "desktop", size: "floating", onClose: () => this.hideToast() }))));
|
|
1199
1218
|
}
|
|
1200
1219
|
static get is() { return "gb-table"; }
|
|
1201
1220
|
static get encapsulation() { return "shadow"; }
|
|
@@ -1253,7 +1272,7 @@ export class GbTable {
|
|
|
1253
1272
|
},
|
|
1254
1273
|
"getter": false,
|
|
1255
1274
|
"setter": false,
|
|
1256
|
-
"defaultValue": "[\r\n // { key: 'id', label: '#', width: '
|
|
1275
|
+
"defaultValue": "[\r\n // { key: 'id', label: '#', width: '10rem', sortable: true, sortType: 'string', truncate: true, 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-button',\r\n // cellProps: row => ({ \r\n // hierarchy: 'link_gray', \r\n // size: 'md', \r\n // icon: 'default',\r\n // iconLeading: true,\r\n // iconLeadingSwap: 'assets/view.svg'\r\n // }),\r\n // cellEvent: 'buttonClicked',\r\n // cellSlots: {\r\n // default: {\r\n // tag: 'p',\r\n // content: row => row.status,\r\n // },\r\n // },\r\n // },\r\n ]"
|
|
1257
1276
|
},
|
|
1258
1277
|
"data": {
|
|
1259
1278
|
"type": "unknown",
|
|
@@ -1294,8 +1313,8 @@ export class GbTable {
|
|
|
1294
1313
|
"type": "unknown",
|
|
1295
1314
|
"mutable": false,
|
|
1296
1315
|
"complexType": {
|
|
1297
|
-
"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 }",
|
|
1298
|
-
"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\"; }",
|
|
1316
|
+
"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 pdfSubDropdown?: boolean;\r\n csvSubDropdown?: boolean;\r\n datePickerMode?: 'single' | 'range';\r\n inputPlaceholder?: string;\r\n datePickerPlaceholder?: string;\r\n searchMode?: 'internal' | 'external';\r\n }",
|
|
1317
|
+
"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\"; pdfSubDropdown?: boolean; csvSubDropdown?: boolean; datePickerMode?: \"single\" | \"range\"; inputPlaceholder?: string; datePickerPlaceholder?: string; searchMode?: \"external\" | \"internal\"; }",
|
|
1299
1318
|
"references": {}
|
|
1300
1319
|
},
|
|
1301
1320
|
"required": false,
|
|
@@ -1826,6 +1845,21 @@ export class GbTable {
|
|
|
1826
1845
|
"resolved": "string",
|
|
1827
1846
|
"references": {}
|
|
1828
1847
|
}
|
|
1848
|
+
}, {
|
|
1849
|
+
"method": "cellActionFired",
|
|
1850
|
+
"name": "cellActionFired",
|
|
1851
|
+
"bubbles": true,
|
|
1852
|
+
"cancelable": true,
|
|
1853
|
+
"composed": true,
|
|
1854
|
+
"docs": {
|
|
1855
|
+
"tags": [],
|
|
1856
|
+
"text": ""
|
|
1857
|
+
},
|
|
1858
|
+
"complexType": {
|
|
1859
|
+
"original": "{ row: any; }",
|
|
1860
|
+
"resolved": "{ row: any; }",
|
|
1861
|
+
"references": {}
|
|
1862
|
+
}
|
|
1829
1863
|
}];
|
|
1830
1864
|
}
|
|
1831
1865
|
static get methods() {
|