@sme.up/ketchup 10.4.6 → 10.4.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/{f-cell-808c80f4.js → f-cell-452d8a39.js} +8 -8
- package/dist/cjs/{f-chip-ad2e88cd.js → f-chip-973b22de.js} +1 -1
- package/dist/cjs/{f-object-field-a2060085.js → f-object-field-43d986c5.js} +2 -2
- package/dist/cjs/{f-paginator-utils-ae22f3de.js → f-paginator-utils-bc66522f.js} +1 -1
- package/dist/cjs/{f-text-field-582fa181.js → f-text-field-cc70132b.js} +1 -1
- package/dist/cjs/index.cjs.js +1 -1
- package/dist/cjs/kup-accordion.cjs.entry.js +1 -1
- package/dist/cjs/kup-activity-timeline.cjs.entry.js +2 -2
- package/dist/cjs/kup-autocomplete_30.cjs.entry.js +69 -58
- package/dist/cjs/kup-box.cjs.entry.js +7 -7
- package/dist/cjs/kup-calendar.cjs.entry.js +2 -2
- package/dist/cjs/kup-card-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +5 -5
- package/dist/cjs/kup-dashboard.cjs.entry.js +2 -2
- package/dist/cjs/{kup-data-table-helper-a1c73939.js → kup-data-table-helper-c04ab7a9.js} +11 -12
- package/dist/cjs/kup-drawer.cjs.entry.js +1 -1
- package/dist/cjs/kup-echart.cjs.entry.js +22 -13
- package/dist/cjs/kup-editor.cjs.entry.js +1 -1
- package/dist/cjs/kup-family-tree.cjs.entry.js +1 -1
- package/dist/cjs/kup-grid.cjs.entry.js +1 -1
- package/dist/cjs/kup-htm.cjs.entry.js +1 -1
- package/dist/cjs/kup-iframe.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +14 -11
- package/dist/cjs/kup-lazy.cjs.entry.js +1 -1
- package/dist/cjs/kup-magic-box.cjs.entry.js +1 -1
- package/dist/cjs/{kup-manager-5faed2fc.js → kup-manager-2e0a7a26.js} +16 -11
- package/dist/cjs/kup-nav-bar.cjs.entry.js +1 -1
- package/dist/cjs/kup-numeric-picker.cjs.entry.js +2 -2
- package/dist/cjs/kup-object-field.cjs.entry.js +3 -3
- package/dist/cjs/kup-planner.cjs.entry.js +2 -2
- package/dist/cjs/kup-probe.cjs.entry.js +1 -1
- package/dist/cjs/kup-qlik.cjs.entry.js +1 -1
- package/dist/cjs/kup-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/kup-txt.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-typography.cjs.entry.js +1 -1
- package/dist/collection/components/kup-data-table/kup-data-table.js +62 -51
- package/dist/collection/components/kup-echart/kup-echart.js +21 -12
- package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +3 -2
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +6 -4
- package/dist/collection/f-components/f-cell/f-cell.js +2 -2
- package/dist/collection/f-components/f-label/f-label.js +2 -2
- package/dist/collection/managers/kup-data/kup-data-column-helper.js +1 -1
- package/dist/collection/managers/kup-data/kup-data.js +15 -10
- package/dist/collection/utils/filters/filters-column-menu.js +10 -11
- package/dist/collection/utils/kup-column-menu/kup-column-menu.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/kup-accordion.js +2 -2
- package/dist/components/kup-activity-timeline.js +2 -2
- package/dist/components/kup-autocomplete.js +1 -1
- package/dist/components/kup-badge.js +1 -1
- package/dist/components/kup-box.js +1 -1
- package/dist/components/kup-button-list.js +1 -1
- package/dist/components/kup-button.js +1 -1
- package/dist/components/kup-calendar.js +2 -2
- package/dist/components/kup-card-list.js +3 -3
- package/dist/components/kup-card.js +1 -1
- package/dist/components/kup-cell.js +2 -2
- package/dist/components/kup-chart.js +1 -1
- package/dist/components/kup-checkbox.js +1 -1
- package/dist/components/kup-chip.js +1 -1
- package/dist/components/kup-color-picker.js +1 -1
- package/dist/components/kup-combobox.js +1 -1
- package/dist/components/kup-dashboard.js +2 -2
- package/dist/components/kup-data-table.js +1 -1
- package/dist/components/kup-date-picker.js +1 -1
- package/dist/components/kup-dialog.js +1 -1
- package/dist/components/kup-drawer.js +2 -2
- package/dist/components/kup-dropdown-button.js +1 -1
- package/dist/components/kup-echart.js +1 -1
- package/dist/components/kup-editor.js +1 -1
- package/dist/components/kup-family-tree.js +3 -3
- package/dist/components/kup-file-upload.js +1 -1
- package/dist/components/kup-form.js +1 -1
- package/dist/components/kup-gauge.js +1 -1
- package/dist/components/kup-grid.js +1 -1
- package/dist/components/kup-htm.js +2 -2
- package/dist/components/kup-iframe.js +2 -2
- package/dist/components/kup-image-list.js +1 -1
- package/dist/components/kup-image.js +1 -1
- package/dist/components/kup-input-panel.js +12 -9
- package/dist/components/kup-lazy.js +2 -2
- package/dist/components/kup-list.js +1 -1
- package/dist/components/kup-magic-box.js +4 -4
- package/dist/components/kup-nav-bar.js +2 -2
- package/dist/components/kup-numeric-picker.js +2 -2
- package/dist/components/kup-object-field.js +2 -2
- package/dist/components/kup-planner.js +2 -2
- package/dist/components/kup-probe.js +2 -2
- package/dist/components/kup-progress-bar.js +1 -1
- package/dist/components/kup-qlik.js +2 -2
- package/dist/components/kup-radio.js +1 -1
- package/dist/components/kup-rating.js +1 -1
- package/dist/components/kup-snackbar.js +2 -2
- package/dist/components/kup-spinner.js +1 -1
- package/dist/components/kup-switch.js +1 -1
- package/dist/components/kup-tab-bar.js +1 -1
- package/dist/components/kup-text-field.js +1 -1
- package/dist/components/kup-time-picker.js +1 -1
- package/dist/components/kup-toolbar.js +1 -1
- package/dist/components/kup-tree.js +1 -1
- package/dist/components/kup-txt.js +2 -2
- package/dist/components/kup-typography-list.js +2 -2
- package/dist/components/kup-typography.js +2 -2
- package/dist/components/{p-a42dc353.js → p-64e94968.js} +16 -11
- package/dist/components/{p-f5bdb9ff.js → p-69425921.js} +2 -2
- package/dist/components/{p-1886497b.js → p-6d5f0117.js} +23 -14
- package/dist/components/{p-0df26926.js → p-8359b10a.js} +78 -68
- package/dist/components/{p-d8819a35.js → p-bddae662.js} +2 -2
- package/dist/components/{p-a2bac767.js → p-fa3c07b8.js} +2 -2
- package/dist/esm/{f-cell-d224dc3a.js → f-cell-9353dd77.js} +8 -8
- package/dist/esm/{f-chip-a2d07acb.js → f-chip-f9277fd9.js} +1 -1
- package/dist/esm/{f-object-field-bc0b6f80.js → f-object-field-e797f627.js} +2 -2
- package/dist/esm/{f-paginator-utils-8c3d7b88.js → f-paginator-utils-29fcddb4.js} +1 -1
- package/dist/esm/{f-text-field-0f550594.js → f-text-field-f2cd4df1.js} +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/kup-accordion.entry.js +1 -1
- package/dist/esm/kup-activity-timeline.entry.js +2 -2
- package/dist/esm/kup-autocomplete_30.entry.js +69 -58
- package/dist/esm/kup-box.entry.js +7 -7
- package/dist/esm/kup-calendar.entry.js +2 -2
- package/dist/esm/kup-card-list.entry.js +1 -1
- package/dist/esm/kup-cell.entry.js +5 -5
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-3f3bb266.js → kup-data-table-helper-4c4da1ec.js} +11 -12
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +22 -13
- package/dist/esm/kup-editor.entry.js +1 -1
- package/dist/esm/kup-family-tree.entry.js +1 -1
- package/dist/esm/kup-grid.entry.js +1 -1
- package/dist/esm/kup-htm.entry.js +1 -1
- package/dist/esm/kup-iframe.entry.js +1 -1
- package/dist/esm/kup-input-panel.entry.js +14 -11
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-232be463.js → kup-manager-75b947f4.js} +16 -11
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-object-field.entry.js +3 -3
- package/dist/esm/kup-planner.entry.js +2 -2
- package/dist/esm/kup-probe.entry.js +1 -1
- package/dist/esm/kup-qlik.entry.js +1 -1
- package/dist/esm/kup-snackbar.entry.js +1 -1
- package/dist/esm/kup-txt.entry.js +1 -1
- package/dist/esm/kup-typography-list.entry.js +1 -1
- package/dist/esm/kup-typography.entry.js +1 -1
- package/dist/ketchup/index.esm.js +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/{p-40d9b650.entry.js → p-04d4d4bb.entry.js} +1 -1
- package/dist/ketchup/{p-96bef43d.js → p-0829e7c5.js} +1 -1
- package/dist/ketchup/{p-5d6f2048.entry.js → p-0a962ac8.entry.js} +1 -1
- package/dist/ketchup/p-174fe9ca.entry.js +1 -0
- package/dist/ketchup/{p-a84998d8.entry.js → p-1fac1a59.entry.js} +1 -1
- package/dist/ketchup/p-3fa60abf.entry.js +1 -0
- package/dist/ketchup/{p-6622b9dd.js → p-459f5369.js} +1 -1
- package/dist/ketchup/{p-498e38ec.entry.js → p-613028b3.entry.js} +1 -1
- package/dist/ketchup/{p-8ab45e3d.entry.js → p-679ce9d9.entry.js} +1 -1
- package/dist/ketchup/{p-2ea8982a.entry.js → p-71705280.entry.js} +1 -1
- package/dist/ketchup/p-75a8afbe.entry.js +8 -0
- package/dist/ketchup/{p-8ac64a64.entry.js → p-76679ede.entry.js} +1 -1
- package/dist/ketchup/{p-106ef861.entry.js → p-7c3619bb.entry.js} +1 -1
- package/dist/ketchup/{p-88e822d6.entry.js → p-84ddf341.entry.js} +1 -1
- package/dist/ketchup/{p-bc2604ea.entry.js → p-856f4922.entry.js} +1 -1
- package/dist/ketchup/{p-9510d04c.entry.js → p-950f09bd.entry.js} +1 -1
- package/dist/ketchup/{p-5b05f037.entry.js → p-96ae851c.entry.js} +1 -1
- package/dist/ketchup/{p-855d7a7c.entry.js → p-9957f141.entry.js} +1 -1
- package/dist/ketchup/{p-e049f7d8.entry.js → p-9bf6f42d.entry.js} +1 -1
- package/dist/ketchup/{p-7d05209d.entry.js → p-9ee7e62f.entry.js} +1 -1
- package/dist/ketchup/{p-d53275b8.entry.js → p-ac579cc8.entry.js} +1 -1
- package/dist/ketchup/{p-5bb7d7b3.entry.js → p-b52908a9.entry.js} +1 -1
- package/dist/ketchup/{p-e032f052.entry.js → p-b6c1dc95.entry.js} +1 -1
- package/dist/ketchup/{p-c6acc505.entry.js → p-b82e6d26.entry.js} +1 -1
- package/dist/ketchup/{p-5f41ae01.entry.js → p-b894c2a3.entry.js} +1 -1
- package/dist/ketchup/{p-ce92a1d6.entry.js → p-bc2b81c7.entry.js} +2 -2
- package/dist/ketchup/{p-4e86911e.entry.js → p-c3efe25a.entry.js} +1 -1
- package/dist/ketchup/{p-0c4fdac4.js → p-c49cb8be.js} +1 -1
- package/dist/ketchup/{p-6f00f1a3.js → p-d230c26d.js} +1 -1
- package/dist/ketchup/p-d4dac70d.js +1 -0
- package/dist/ketchup/{p-6b2e3868.entry.js → p-db38289c.entry.js} +1 -1
- package/dist/ketchup/{p-ca31b7ee.entry.js → p-e703e6c1.entry.js} +1 -1
- package/dist/ketchup/{p-e155cbac.js → p-e7fbf76f.js} +1 -1
- package/dist/ketchup/{p-549a999c.entry.js → p-f51a8f12.entry.js} +1 -1
- package/dist/ketchup/p-f81ec6f8.js +1 -0
- package/dist/types/components/kup-data-table/kup-data-table.d.ts +13 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +1 -1
- package/dist/types/f-components/f-label/f-label-declarations.d.ts +2 -1
- package/dist/types/managers/kup-data/kup-data.d.ts +5 -5
- package/package.json +1 -1
- package/dist/ketchup/p-b4b9fd65.entry.js +0 -1
- package/dist/ketchup/p-b7abe6a2.entry.js +0 -1
- package/dist/ketchup/p-c284a18d.js +0 -1
- package/dist/ketchup/p-de3514d6.js +0 -1
- package/dist/ketchup/p-edfd42e9.entry.js +0 -8
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h as h$1, d as Host, F as Fragment$1 } from './p-ef8cbd35.js';
|
|
2
|
-
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as extractColumnsFromFormulaString, a2 as FILTER_ANALYZER, a3 as KupLanguagePage, a4 as addColumnValueFromRow, a5 as KupGlobalFilterMode, g as getProps, s as setProps, a6 as TotalLabel, a7 as isNegativeNumber, a8 as KupPointerEventTypes, a9 as kupDynamicPositionAttribute, aa as identify, ab as KupListProps, ac as KupCardFamily, ad as KupListRole, ae as KupLanguageUpload, af as LoadMoreMode, ag as PaginatorPos, ah as ShowGrid, ai as kupDraggableColumnAttr, aj as kupDragActiveAttr, ak as KupDragEffect, al as kupDraggableCellAttr, am as KupDropEventTypes, an as DataTableAreasEnum, ao as TypesToDuplicate, ap as FixedCellsClasses, aq as FixedCellsCSSVarsBase, ar as KupLanguageFontsize, as as KupLanguageDensity, at as KupLanguageGrid, au as KupDataTableProps, av as UseAsValue, aw as iconColumn, ax as keyColumn, ay as fieldColumn, az as getSizeOfInputElement, aA as KupCardProps } from './p-
|
|
2
|
+
import { b as KupThemeIconValues, I as ItemsDisplayMode, e as KupLanguageGeneric, a as KupComponentSizing, k as kupManagerInstance, d as KupDynamicPositionPlacement, f as editableTypes, h as kupTypes, F as FCellClasses, i as FCellTypes, c as KupThemeColorValues, C as CHIAdapter, R as RADAdapter, j as CMBandACPAdapter, l as KupTagNames, m as FCellShapes, n as getCellValueForDisplay, o as fullWidthFieldsComps, p as autoCenterComps, q as FCellEvents, r as isForceUppercase, t as isForceLowercase, u as KupDebugCategory, v as adaptContentToDisplayMode, w as FCellPadding, x as fillString, y as KupCardBuiltInClockElements, z as KupCardCSSClasses, A as KupLanguageTotals, B as KupLanguageColumn, D as KupDataNewColumnTypes, E as KupCardSubEvents, G as KupCardIds, H as KupLanguageRow, J as KupLanguageSearch, L as getColumnByName, M as KupObjects, N as formatToNumber, O as Filters, P as getValueForDisplay, Q as getValueForDisplay2, S as KupData, T as compareCell, U as TotalMode, V as getRegExpFromString, W as CHKAdapter, X as SWTAdapter, Y as SortMode, Z as GroupLabelDisplayMode, _ as SelectionMode, $ as KupLanguageGrouping, a0 as KupLanguageCheckbox, a1 as extractColumnsFromFormulaString, a2 as FILTER_ANALYZER, a3 as KupLanguagePage, a4 as addColumnValueFromRow, a5 as KupGlobalFilterMode, g as getProps, s as setProps, a6 as TotalLabel, a7 as isNegativeNumber, a8 as KupPointerEventTypes, a9 as kupDynamicPositionAttribute, aa as identify, ab as KupListProps, ac as KupCardFamily, ad as KupListRole, ae as KupLanguageUpload, af as LoadMoreMode, ag as PaginatorPos, ah as ShowGrid, ai as kupDraggableColumnAttr, aj as kupDragActiveAttr, ak as KupDragEffect, al as kupDraggableCellAttr, am as KupDropEventTypes, an as DataTableAreasEnum, ao as TypesToDuplicate, ap as FixedCellsClasses, aq as FixedCellsCSSVarsBase, ar as KupLanguageFontsize, as as KupLanguageDensity, at as KupLanguageGrid, au as KupDataTableProps, av as UseAsValue, aw as iconColumn, ax as keyColumn, ay as fieldColumn, az as getSizeOfInputElement, aA as KupCardProps } from './p-64e94968.js';
|
|
3
3
|
import { h, g as getAssetPath, F as Fragment } from './p-3aae989f.js';
|
|
4
4
|
import { c as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './p-d7365aa4.js';
|
|
5
5
|
|
|
@@ -5282,11 +5282,11 @@ function getVNodes(parsedElements) {
|
|
|
5282
5282
|
return e.closed ? (h("span", { style: style }, e.content)) : (h("span", null, `${(_b = e.tag) !== null && _b !== void 0 ? _b : ''}${e.content}`));
|
|
5283
5283
|
});
|
|
5284
5284
|
}
|
|
5285
|
-
const FLabel = ({ text, classes }) => {
|
|
5285
|
+
const FLabel = ({ style, text, classes, }) => {
|
|
5286
5286
|
const parsedElements = getParsedElements(text);
|
|
5287
5287
|
// To avoid creating unnecessary span in the text
|
|
5288
5288
|
// when there are no tags to format the content
|
|
5289
|
-
return (h("span", { class: classes }, parsedElements.find((p) => p.tag !== undefined)
|
|
5289
|
+
return (h("span", { class: classes, style: style }, parsedElements.find((p) => p.tag !== undefined)
|
|
5290
5290
|
? getVNodes(parsedElements)
|
|
5291
5291
|
: text));
|
|
5292
5292
|
};
|
|
@@ -5899,7 +5899,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
5899
5899
|
subcomponentProps['disabled'] = true;
|
|
5900
5900
|
return h(FSwitch, Object.assign({}, subcomponentProps));
|
|
5901
5901
|
case FCellTypes.LABEL:
|
|
5902
|
-
return h(FLabel, { text: cell.value, classes: "f-cell__text" });
|
|
5902
|
+
return (h(FLabel, { style: cell.style, text: cell.value, classes: "f-cell__text" }));
|
|
5903
5903
|
case FCellTypes.IMAGE_LIST:
|
|
5904
5904
|
const activeNode = cell.data.data.find((node) => node.value === cell.value) || null;
|
|
5905
5905
|
return (h("kup-image-list", Object.assign({ ripple: true }, cell.data, { "onKup-imagelist-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), activeNode: activeNode })));
|
|
@@ -5938,7 +5938,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
5938
5938
|
row: row,
|
|
5939
5939
|
column: column,
|
|
5940
5940
|
};
|
|
5941
|
-
return (h("kup-button-list", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
|
|
5941
|
+
return (h("kup-button-list", Object.assign({ key: column.name + props.row.id }, subcomponentProps, { "onKup-buttonlist-click": (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
|
|
5942
5942
|
case FCellTypes.CHART:
|
|
5943
5943
|
if (isAutoCentered(props)) {
|
|
5944
5944
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
@@ -11170,15 +11170,8 @@ class FiltersColumnMenu extends Filters {
|
|
|
11170
11170
|
if (filters == null) {
|
|
11171
11171
|
return;
|
|
11172
11172
|
}
|
|
11173
|
-
|
|
11174
|
-
|
|
11175
|
-
filter = {
|
|
11176
|
-
textField: '',
|
|
11177
|
-
textFieldTmp: '',
|
|
11178
|
-
checkBoxes: [],
|
|
11179
|
-
};
|
|
11180
|
-
filters[column] = filter;
|
|
11181
|
-
}
|
|
11173
|
+
// Clone the column-specific filter object to ensure reference change
|
|
11174
|
+
let filter = Object.assign({ textField: '', textFieldTmp: '', checkBoxes: [] }, filters[column]);
|
|
11182
11175
|
if (filter.checkBoxes == null) {
|
|
11183
11176
|
filter.checkBoxes = [];
|
|
11184
11177
|
}
|
|
@@ -11187,9 +11180,11 @@ class FiltersColumnMenu extends Filters {
|
|
|
11187
11180
|
}
|
|
11188
11181
|
else {
|
|
11189
11182
|
if (!Filters.valuesArrayContainsValue(filter.checkBoxes, newFilterItem.value)) {
|
|
11190
|
-
|
|
11183
|
+
// Clone the checkBoxes array to ensure reference change
|
|
11184
|
+
filter.checkBoxes = [...filter.checkBoxes, newFilterItem];
|
|
11191
11185
|
}
|
|
11192
11186
|
}
|
|
11187
|
+
filters[column] = filter; // Re-assign the new reference
|
|
11193
11188
|
}
|
|
11194
11189
|
/**
|
|
11195
11190
|
* Triggers when a filter checkbox becomes unchecked.
|
|
@@ -11203,12 +11198,16 @@ class FiltersColumnMenu extends Filters {
|
|
|
11203
11198
|
if (!filters || remFilter == undefined || !filters[column]) {
|
|
11204
11199
|
return;
|
|
11205
11200
|
}
|
|
11206
|
-
|
|
11201
|
+
// Clone the column-specific filter object to ensure reference change
|
|
11202
|
+
let filter = Object.assign({ textField: '', textFieldTmp: '', checkBoxes: [] }, filters[column]);
|
|
11207
11203
|
filter.checkBoxes = (_a = filter.checkBoxes) !== null && _a !== void 0 ? _a : [];
|
|
11208
11204
|
filter.checkBoxes = filter.checkBoxes.filter((item) => item.value !== remFilter);
|
|
11209
11205
|
if (filter.checkBoxes.length === 0) {
|
|
11210
11206
|
delete filters[column];
|
|
11211
11207
|
}
|
|
11208
|
+
else {
|
|
11209
|
+
filters[column] = filter; // Re-assign the new reference
|
|
11210
|
+
}
|
|
11212
11211
|
}
|
|
11213
11212
|
isColumnNumeric(column) {
|
|
11214
11213
|
return this.isObjNumeric(column.obj);
|
|
@@ -12899,8 +12898,8 @@ class KupColumnMenu {
|
|
|
12899
12898
|
? { name: description, title: description }
|
|
12900
12899
|
: undefined,
|
|
12901
12900
|
columns: [
|
|
12902
|
-
columnName,
|
|
12903
12901
|
parts[0],
|
|
12902
|
+
columnName,
|
|
12904
12903
|
...extractColumnsFromFormulaString(value),
|
|
12905
12904
|
],
|
|
12906
12905
|
})
|
|
@@ -25706,50 +25705,61 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25706
25705
|
? this.data.columns
|
|
25707
25706
|
: [{ title: '', name: '' }];
|
|
25708
25707
|
}
|
|
25708
|
+
/**
|
|
25709
|
+
* Retrieves the list of visible columns based on configuration and grouping state.
|
|
25710
|
+
*
|
|
25711
|
+
* This method handles multiple visibility scenarios:
|
|
25712
|
+
* 1. Explicit visibility list (via visibleColumns property)
|
|
25713
|
+
* 2. Column-level visibility flags
|
|
25714
|
+
* 3. CodVer (code/version) column filtering
|
|
25715
|
+
* 4. Group-based visibility when grouping is enabled
|
|
25716
|
+
*
|
|
25717
|
+
* @param {Object} options - Configuration options
|
|
25718
|
+
* @param {boolean} options.includeCodVer - If true, includes CodVer columns in the result (default: false)
|
|
25719
|
+
* @returns {Array<KupDataColumn>} Array of visible columns, ordered and filtered according to configuration
|
|
25720
|
+
*/
|
|
25709
25721
|
getVisibleColumns({ includeCodVer = false } = {}) {
|
|
25710
|
-
|
|
25711
|
-
|
|
25712
|
-
|
|
25713
|
-
|
|
25714
|
-
|
|
25715
|
-
|
|
25716
|
-
|
|
25717
|
-
}
|
|
25718
|
-
});
|
|
25719
|
-
}
|
|
25720
|
-
// Starting columns filter
|
|
25721
|
-
let resultVisibleColumns = this.getColumns().filter((col) => {
|
|
25722
|
-
const isNotCodVer = !__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.isCodVer(col);
|
|
25722
|
+
const allColumns = this.getColumns();
|
|
25723
|
+
// Step 1: Filter columns based on visibility rules and CodVer inclusion
|
|
25724
|
+
let filteredColumns = allColumns.filter((column) => {
|
|
25725
|
+
// CodVer columns are system columns used for versioning/coding
|
|
25726
|
+
const isCodVer = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.isCodVer(column);
|
|
25727
|
+
// Determine if column should be included based on CodVer flag
|
|
25728
|
+
const codVerCheck = includeCodVer ? true : !isCodVer;
|
|
25723
25729
|
if (this.visibleColumns) {
|
|
25724
|
-
//
|
|
25725
|
-
return
|
|
25730
|
+
// Explicit visibility list takes precedence: include only specified columns
|
|
25731
|
+
return codVerCheck && this.visibleColumns.includes(column.name);
|
|
25726
25732
|
}
|
|
25727
25733
|
else {
|
|
25728
|
-
|
|
25734
|
+
// No explicit list: use column's visibility flag (undefined or true = visible)
|
|
25735
|
+
return (codVerCheck && (!('visible' in column) || column.visible));
|
|
25729
25736
|
}
|
|
25730
25737
|
});
|
|
25731
|
-
// order
|
|
25738
|
+
// Step 2: Sort columns according to the order specified in visibleColumns property
|
|
25739
|
+
// This ordering is ALWAYS applied when visibleColumns is defined, regardless of includeCodVer
|
|
25732
25740
|
if (this.visibleColumns) {
|
|
25733
|
-
|
|
25734
|
-
this.visibleColumns.indexOf(
|
|
25741
|
+
filteredColumns = filteredColumns.sort((columnA, columnB) => {
|
|
25742
|
+
const indexA = this.visibleColumns.indexOf(columnA.name);
|
|
25743
|
+
const indexB = this.visibleColumns.indexOf(columnB.name);
|
|
25744
|
+
return indexA - indexB;
|
|
25745
|
+
});
|
|
25735
25746
|
}
|
|
25736
|
-
//
|
|
25747
|
+
// Step 3: Apply group-based visibility filtering (only when grouping is active)
|
|
25737
25748
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
25738
|
-
return
|
|
25739
|
-
|
|
25740
|
-
|
|
25741
|
-
|
|
25742
|
-
|
|
25743
|
-
|
|
25744
|
-
|
|
25745
|
-
|
|
25746
|
-
|
|
25747
|
-
|
|
25748
|
-
|
|
25749
|
-
return true; // Not in a group -> visible
|
|
25749
|
+
return filteredColumns.filter((column) => {
|
|
25750
|
+
// Find the group that contains this column
|
|
25751
|
+
const associatedGroup = this.groups.find((group) => group.column === column.name);
|
|
25752
|
+
if (associatedGroup) {
|
|
25753
|
+
// Column is in a group: respect the group's visibility flag
|
|
25754
|
+
// If group doesn't have 'visible' property, default to visible
|
|
25755
|
+
return (!associatedGroup.hasOwnProperty('visible') ||
|
|
25756
|
+
associatedGroup.visible);
|
|
25757
|
+
}
|
|
25758
|
+
// Column is not in any group: always visible
|
|
25759
|
+
return true;
|
|
25750
25760
|
});
|
|
25751
25761
|
}
|
|
25752
|
-
return
|
|
25762
|
+
return filteredColumns;
|
|
25753
25763
|
}
|
|
25754
25764
|
getGroupByName(column) {
|
|
25755
25765
|
if (!__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_isGrouping).call(this)) {
|
|
@@ -25815,7 +25825,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
25815
25825
|
// Action cell
|
|
25816
25826
|
let actionsCell = null;
|
|
25817
25827
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
25818
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
25828
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)) {
|
|
25819
25829
|
extraCells++;
|
|
25820
25830
|
const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, extraCells, 0, 0, extraCells);
|
|
25821
25831
|
actionsCell = (h$1("td", { class: selectionStyleAndClass
|
|
@@ -26027,7 +26037,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26027
26037
|
__classPrivateFieldSet$2(this, _KupDataTable_sizedColumns, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
|
|
26028
26038
|
let rows = null;
|
|
26029
26039
|
if (__classPrivateFieldGet$3(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
|
|
26030
|
-
rows = (h$1("tr", { key: '
|
|
26040
|
+
rows = (h$1("tr", { key: '5af3b5bbddd72dcda17ff381d61f932fb27c8032', ref: (el) => __classPrivateFieldGet$3(this, _KupDataTable_rowsRefs, "f").push(el) }, h$1("td", { key: '9f1cc1d0808329c7d4f2895e382bfe905c05aa81', colSpan: __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
|
|
26031
26041
|
}
|
|
26032
26042
|
else {
|
|
26033
26043
|
rows = [];
|
|
@@ -26103,7 +26113,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26103
26113
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
|
|
26104
26114
|
});
|
|
26105
26115
|
}
|
|
26106
|
-
groupChips = h$1(FChip, Object.assign({ key: '
|
|
26116
|
+
groupChips = h$1(FChip, Object.assign({ key: '0afbe37c45826c571290d584a50d6f247ed2c24e' }, props));
|
|
26107
26117
|
}
|
|
26108
26118
|
}
|
|
26109
26119
|
const tableClass = {
|
|
@@ -26135,7 +26145,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26135
26145
|
if (this.headerIsPersistent &&
|
|
26136
26146
|
this.tableHeight === undefined &&
|
|
26137
26147
|
this.tableWidth === undefined) {
|
|
26138
|
-
stickyEl = (h$1("sticky-header", { key: '
|
|
26148
|
+
stickyEl = (h$1("sticky-header", { key: 'e62c7b8a4f14798fa748e89c1ebb1e53e4d2d1b4', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_stickyTheadRef, el, "f")) }, h$1("thead-sticky", { key: 'b00940904b9dd3f163dfc0a7420ec9ebe321ea16' }, h$1("tr-sticky", { key: '45e8a9f3b89fded211707b6e894d62c4781b98bb' }, stickyHeader))));
|
|
26139
26149
|
}
|
|
26140
26150
|
let belowClass = 'below-wrapper';
|
|
26141
26151
|
if (!!this.tableHeight || !!this.tableWidth) {
|
|
@@ -26181,7 +26191,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26181
26191
|
const useGlobalFilter = !this.legacyLook &&
|
|
26182
26192
|
(this.globalFilter ||
|
|
26183
26193
|
this.getRows().length > __classPrivateFieldGet$3(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
|
|
26184
|
-
const compCreated = (h$1(Host, { key: '
|
|
26194
|
+
const compCreated = (h$1(Host, { key: '849919cbff79e9140a7bb6e1068557c055fb4936', "onKup-drop": (e) => {
|
|
26185
26195
|
this.kupDataTableDrop.emit(e.detail);
|
|
26186
26196
|
}, "onKup-cell-input": (e) => {
|
|
26187
26197
|
autoselectOnAction(e);
|
|
@@ -26200,11 +26210,11 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26200
26210
|
this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
|
|
26201
26211
|
}, "onKup-objectfield-selectedmenuitem": (e) => {
|
|
26202
26212
|
this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
|
|
26203
|
-
} }, h$1("style", { key: '
|
|
26213
|
+
} }, h$1("style", { key: '484caa276e09bf7840399c1bee9aa68f5a5cd1a6' }, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h$1("div", { key: 'fcb5ef491b41dc38fa88749dce546e331c089001', id: componentWrapperId, class: wrapClass }, h$1("div", { key: 'ac8383cbe45ef36ab0b0424c6c5c5514bbccafb5', class: "group-wrapper" }, groupChips), h$1("div", { key: 'a1ef43847a9d3e1c768973a53b34b9b5dcf2c7ac', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h$1("div", { id: "global-filter" }, h$1(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
|
|
26204
26214
|
const t = event.target;
|
|
26205
26215
|
window.clearTimeout(__classPrivateFieldGet$3(this, _KupDataTable_globalFilterTimeout, "f"));
|
|
26206
26216
|
__classPrivateFieldSet$2(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
|
|
26207
|
-
} }))) : null, paginatorTop && (h$1("div", { key: '
|
|
26217
|
+
} }))) : null, paginatorTop && (h$1("div", { key: '8bb555067a504811cf282719e654f9e3a5a344f9', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
|
|
26208
26218
|
this.selectedRows.length > 0 ? (h$1(FButton, { icon: "save", onClick: () => {
|
|
26209
26219
|
this.kupSave.emit({
|
|
26210
26220
|
comp: this,
|
|
@@ -26254,9 +26264,9 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26254
26264
|
this.data.rows.unshift(row);
|
|
26255
26265
|
await this.refresh(true);
|
|
26256
26266
|
}
|
|
26257
|
-
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '
|
|
26267
|
+
}, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h$1("div", { key: '046551965866a0128eb67895170156f666f69b9b', class: "droparea", ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
|
|
26258
26268
|
? __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
|
|
26259
|
-
: null), h$1("div", { key: '
|
|
26269
|
+
: null), h$1("div", { key: '5e7dfb5a888a43f8518ec505f7f46416ccc39dfe', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
|
|
26260
26270
|
? [
|
|
26261
26271
|
h$1("div", { class: "settings-trigger", onClick: () => {
|
|
26262
26272
|
__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
|
|
@@ -26265,7 +26275,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26265
26275
|
} }, h$1(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
|
|
26266
26276
|
this.renderCustomizePanel(),
|
|
26267
26277
|
]
|
|
26268
|
-
: null, h$1("table", { key: '
|
|
26278
|
+
: null, h$1("table", { key: '8b6fc9cae625399b94ce673d850e63559866ad3f', class: tableClass, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet$3(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
|
|
26269
26279
|
ev.stopPropagation();
|
|
26270
26280
|
}, onPointerDown: (e) => {
|
|
26271
26281
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
@@ -26273,7 +26283,7 @@ const KupDataTable = /*@__PURE__*/ proxyCustomElement(class KupDataTable extends
|
|
|
26273
26283
|
__classPrivateFieldSet$2(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
|
|
26274
26284
|
}, onContextMenu: (e) => {
|
|
26275
26285
|
e.preventDefault();
|
|
26276
|
-
} }, h$1("thead", { key: '
|
|
26286
|
+
} }, h$1("thead", { key: '8826b5ce9e48db78fb3c2dc9929c70e7fca7a862', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet$2(this, _KupDataTable_theadRef, el, "f")) }, h$1("tr", { key: 'ff0eeb4982e2955566c83d3eec4b0fcd1fcb5556' }, header)), h$1("tbody", { key: 'dc51f20082d292082ae946bdfbd79fe0c9b27022' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
|
|
26277
26287
|
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
|
|
26278
26288
|
return compCreated;
|
|
26279
26289
|
}
|
|
@@ -28007,7 +28017,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
28007
28017
|
let previousWidth = 0;
|
|
28008
28018
|
const totalFixedColumns = this.fixedColumns +
|
|
28009
28019
|
(__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
28010
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)
|
|
28020
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)
|
|
28011
28021
|
? 1
|
|
28012
28022
|
: 0) +
|
|
28013
28023
|
(this.selection === SelectionMode.MULTIPLE_CHECKBOX ? 1 : 0);
|
|
@@ -28301,7 +28311,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
28301
28311
|
colSpan += 1;
|
|
28302
28312
|
}
|
|
28303
28313
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
28304
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
28314
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)) {
|
|
28305
28315
|
colSpan += 1;
|
|
28306
28316
|
}
|
|
28307
28317
|
return colSpan;
|
|
@@ -28425,7 +28435,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
28425
28435
|
// Renders action column
|
|
28426
28436
|
let actionsColumn = null;
|
|
28427
28437
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
28428
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
28438
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)) {
|
|
28429
28439
|
specialExtraCellsCount++;
|
|
28430
28440
|
const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, 0, specialExtraCellsCount - 1);
|
|
28431
28441
|
actionsColumn = (h$1("th", { class: selectionStyleAndClass
|
|
@@ -28493,7 +28503,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
28493
28503
|
// Empty cell for the actions
|
|
28494
28504
|
let actionsColumn = null;
|
|
28495
28505
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
28496
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
28506
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)) {
|
|
28497
28507
|
specialExtraCellsCount++;
|
|
28498
28508
|
const selectionStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, 0, specialExtraCellsCount - 1);
|
|
28499
28509
|
actionsColumn = (h$1("th-sticky", { class: selectionStyleAndClass
|
|
@@ -28562,7 +28572,7 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
28562
28572
|
//const colSpan = this.multiSelection ? 2 : 1;
|
|
28563
28573
|
const cells = [];
|
|
28564
28574
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
28565
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
28575
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)) {
|
|
28566
28576
|
cells.push(h$1("td", null));
|
|
28567
28577
|
}
|
|
28568
28578
|
if (this.selection === SelectionMode.MULTIPLE_CHECKBOX) {
|
|
@@ -28674,14 +28684,14 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
|
|
|
28674
28684
|
// If active, this can be either the first or second cell
|
|
28675
28685
|
let rowActionsCell = null;
|
|
28676
28686
|
if (__classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_hasRowActions).call(this) ||
|
|
28677
|
-
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns)) {
|
|
28687
|
+
__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.column.hasCodVer(this.data.columns, this.visibleColumns)) {
|
|
28678
28688
|
// Increments
|
|
28679
28689
|
specialExtraCellsCount++;
|
|
28680
28690
|
const actionsStyleAndClass = __classPrivateFieldGet$3(this, _KupDataTable_instances, "m", _KupDataTable_composeFixedCellStyleAndClass).call(this, specialExtraCellsCount, 0, rowCssIndex, specialExtraCellsCount - 1);
|
|
28681
28691
|
const actionsOnRow = [];
|
|
28682
28692
|
if (row.actions) ;
|
|
28683
28693
|
else {
|
|
28684
|
-
const rowActions = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.row.buildRowActions(row, this.getVisibleColumns({ includeCodVer: true }), this.rowActions, (_b = this.commands) !== null && _b !== void 0 ? _b : []);
|
|
28694
|
+
const rowActions = __classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.row.buildRowActions(row, this.getVisibleColumns({ includeCodVer: true }), this.rowActions, (_b = this.commands) !== null && _b !== void 0 ? _b : [], this.visibleColumns);
|
|
28685
28695
|
if (__classPrivateFieldGet$3(this, _KupDataTable_kupManager, "f").data.action.checkEveryActionHasOnlyIcon(rowActions) ||
|
|
28686
28696
|
(rowActions.length === 1 && rowActions[0].icon)) {
|
|
28687
28697
|
rowActions.forEach((action) => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-
|
|
3
|
-
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory } from './p-64e94968.js';
|
|
3
|
+
import { c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u } from './p-8359b10a.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-grid component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, d as Host } from './p-ef8cbd35.js';
|
|
2
|
-
import { k as kupManagerInstance, aa as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, e as KupLanguageGeneric, b as KupThemeIconValues, u as KupDebugCategory, a8 as KupPointerEventTypes, ak as KupDragEffect, aB as kupDraggableAttr, am as KupDropEventTypes, J as KupLanguageSearch } from './p-
|
|
3
|
-
import { I as filterRows, J as paginateRows, G as sortRows, L as pageChange, N as rowsPerPageChange, F as FImage, O as FCell, P as FChip, Q as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u, R as FPaginator } from './p-
|
|
2
|
+
import { k as kupManagerInstance, aa as identify, g as getProps, s as setProps, Y as SortMode, L as getColumnByName, e as KupLanguageGeneric, b as KupThemeIconValues, u as KupDebugCategory, a8 as KupPointerEventTypes, ak as KupDragEffect, aB as kupDraggableAttr, am as KupDropEventTypes, J as KupLanguageSearch } from './p-64e94968.js';
|
|
3
|
+
import { I as filterRows, J as paginateRows, G as sortRows, L as pageChange, N as rowsPerPageChange, F as FImage, O as FCell, P as FChip, Q as FTextFieldMDC, c as componentWrapperId, d as defineCustomElement$1, a as defineCustomElement$2, b as defineCustomElement$3, e as defineCustomElement$4, f as defineCustomElement$5, g as defineCustomElement$6, h as defineCustomElement$7, i as defineCustomElement$8, j as defineCustomElement$9, k as defineCustomElement$a, l as defineCustomElement$b, m as defineCustomElement$c, n as defineCustomElement$d, o as defineCustomElement$e, p as defineCustomElement$f, q as defineCustomElement$g, r as defineCustomElement$h, s as defineCustomElement$i, t as defineCustomElement$j, u as defineCustomElement$k, v as defineCustomElement$l, w as defineCustomElement$m, x as defineCustomElement$n, y as defineCustomElement$o, z as defineCustomElement$p, A as defineCustomElement$q, B as defineCustomElement$r, C as defineCustomElement$s, D as defineCustomElement$t, E as defineCustomElement$u, R as FPaginator } from './p-8359b10a.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* Props of the kup-box component.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { h, F as Fragment } from './index-9b0f4a0d.js';
|
|
2
|
-
import { ar as editableTypes, as as kupTypes, U as FCellClasses, ae as FCellTypes, f as KupThemeColorValues, ap as CHIAdapter, an as RADAdapter, am as CMBandACPAdapter, at as KupTagNames, F as FCellShapes, aj as getCellValueForDisplay, a as KupComponentSizing, au as fullWidthFieldsComps, I as ItemsDisplayMode, av as autoCenterComps, aw as adaptContentToDisplayMode, ax as FCellEvents, ay as isForceUppercase, az as isForceLowercase, h as KupDebugCategory } from './kup-manager-
|
|
2
|
+
import { ar as editableTypes, as as kupTypes, U as FCellClasses, ae as FCellTypes, f as KupThemeColorValues, ap as CHIAdapter, an as RADAdapter, am as CMBandACPAdapter, at as KupTagNames, F as FCellShapes, aj as getCellValueForDisplay, a as KupComponentSizing, au as fullWidthFieldsComps, I as ItemsDisplayMode, av as autoCenterComps, aw as adaptContentToDisplayMode, ax as FCellEvents, ay as isForceUppercase, az as isForceLowercase, h as KupDebugCategory } from './kup-manager-75b947f4.js';
|
|
3
3
|
import { F as FButton } from './f-button-3e022953.js';
|
|
4
4
|
import { F as FCheckbox } from './f-checkbox-9912e1a4.js';
|
|
5
|
-
import { F as FChipType, d as FChip } from './f-chip-
|
|
5
|
+
import { F as FChipType, d as FChip } from './f-chip-f9277fd9.js';
|
|
6
6
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
7
|
-
import { F as FObjectField } from './f-object-field-
|
|
8
|
-
import { F as FTextField } from './f-text-field-
|
|
7
|
+
import { F as FObjectField } from './f-object-field-e797f627.js';
|
|
8
|
+
import { F as FTextField } from './f-text-field-f2cd4df1.js';
|
|
9
9
|
|
|
10
10
|
var FRadioType;
|
|
11
11
|
(function (FRadioType) {
|
|
@@ -385,11 +385,11 @@ function getVNodes(parsedElements) {
|
|
|
385
385
|
return e.closed ? (h("span", { style: style }, e.content)) : (h("span", null, `${(_b = e.tag) !== null && _b !== void 0 ? _b : ''}${e.content}`));
|
|
386
386
|
});
|
|
387
387
|
}
|
|
388
|
-
const FLabel = ({ text, classes }) => {
|
|
388
|
+
const FLabel = ({ style, text, classes, }) => {
|
|
389
389
|
const parsedElements = getParsedElements(text);
|
|
390
390
|
// To avoid creating unnecessary span in the text
|
|
391
391
|
// when there are no tags to format the content
|
|
392
|
-
return (h("span", { class: classes }, parsedElements.find((p) => p.tag !== undefined)
|
|
392
|
+
return (h("span", { class: classes, style: style }, parsedElements.find((p) => p.tag !== undefined)
|
|
393
393
|
? getVNodes(parsedElements)
|
|
394
394
|
: text));
|
|
395
395
|
};
|
|
@@ -1002,7 +1002,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
|
|
|
1002
1002
|
subcomponentProps['disabled'] = true;
|
|
1003
1003
|
return h(FSwitch, Object.assign({}, subcomponentProps));
|
|
1004
1004
|
case FCellTypes.LABEL:
|
|
1005
|
-
return h(FLabel, { text: cell.value, classes: "f-cell__text" });
|
|
1005
|
+
return (h(FLabel, { style: cell.style, text: cell.value, classes: "f-cell__text" }));
|
|
1006
1006
|
case FCellTypes.IMAGE_LIST:
|
|
1007
1007
|
const activeNode = cell.data.data.find((node) => node.value === cell.value) || null;
|
|
1008
1008
|
return (h("kup-image-list", Object.assign({ ripple: true }, cell.data, { "onKup-imagelist-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), activeNode: activeNode })));
|
|
@@ -1041,7 +1041,7 @@ function setKupCell(cellType, classObj, subcomponentProps, cell, row, column, pr
|
|
|
1041
1041
|
row: row,
|
|
1042
1042
|
column: column,
|
|
1043
1043
|
};
|
|
1044
|
-
return (h("kup-button-list", Object.assign({ key: column.name + props.row.id }, subcomponentProps)));
|
|
1044
|
+
return (h("kup-button-list", Object.assign({ key: column.name + props.row.id }, subcomponentProps, { "onKup-buttonlist-click": (e) => cellEvent(e, props, cellType, FCellEvents.CLICK) })));
|
|
1045
1045
|
case FCellTypes.CHART:
|
|
1046
1046
|
if (isAutoCentered(props)) {
|
|
1047
1047
|
classObj[FCellClasses.C_CENTERED] = true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
2
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
3
|
-
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-
|
|
3
|
+
import { I as ItemsDisplayMode, d as KupThemeIconValues, b as KupLanguageGeneric } from './kup-manager-75b947f4.js';
|
|
4
4
|
|
|
5
5
|
function getIdOfItemByDisplayMode(item, mode, separator) {
|
|
6
6
|
const { id, value } = item;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
2
|
+
import { a as KupComponentSizing, k as kupManagerInstance, e as KupDynamicPositionPlacement } from './kup-manager-75b947f4.js';
|
|
3
3
|
import { F as FButton } from './f-button-3e022953.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
|
-
import { F as FTextField } from './f-text-field-
|
|
5
|
+
import { F as FTextField } from './f-text-field-f2cd4df1.js';
|
|
6
6
|
|
|
7
7
|
const STATE = new WeakMap();
|
|
8
8
|
const FObjectField = (props) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from './index-9b0f4a0d.js';
|
|
2
|
-
import { I as ItemsDisplayMode, aA as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-
|
|
2
|
+
import { I as ItemsDisplayMode, aA as KupLanguagePage, t as KupLanguageRow, a as KupComponentSizing, b as KupLanguageGeneric } from './kup-manager-75b947f4.js';
|
|
3
3
|
import { F as FButton } from './f-button-3e022953.js';
|
|
4
4
|
import { a as FButtonStyling } from './f-button-declarations-6c8f8abe.js';
|
|
5
5
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, g as getAssetPath } from './index-9b0f4a0d.js';
|
|
2
|
-
import { d as KupThemeIconValues } from './kup-manager-
|
|
2
|
+
import { d as KupThemeIconValues } from './kup-manager-75b947f4.js';
|
|
3
3
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
4
4
|
|
|
5
5
|
const dom = document.documentElement;
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeIconValues, f as KupThemeColorValues, e as KupDynamicPositionPlacement } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, d as KupThemeIconValues, f as KupThemeColorValues, e as KupDynamicPositionPlacement } from './kup-manager-75b947f4.js';
|
|
3
3
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
4
4
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
5
5
|
import { M as MDCRipple } from './component-a35bc7f1.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, F as Fragment, H as Host, d as getElement } from './index-9b0f4a0d.js';
|
|
2
|
-
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory, aj as getCellValueForDisplay } from './kup-manager-
|
|
2
|
+
import { k as kupManagerInstance, g as getProps, s as setProps, h as KupDebugCategory, aj as getCellValueForDisplay } from './kup-manager-75b947f4.js';
|
|
3
3
|
import { c as componentWrapperId } from './GenericVariables-d8d0541e.js';
|
|
4
4
|
import { F as FImage } from './f-image-40b4e64b.js';
|
|
5
|
-
import { s as sortRows } from './kup-data-table-helper-
|
|
5
|
+
import { s as sortRows } from './kup-data-table-helper-4c4da1ec.js';
|
|
6
6
|
import './kup-dates-bf500166.js';
|
|
7
7
|
|
|
8
8
|
var KupActivityTimelineProps;
|