@sme.up/ketchup 11.0.0-SNAPSHOT-20241022141548 → 11.0.0-SNAPSHOT-20241023082921
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-f4161c96.js → f-cell-c5a85032.js} +87 -1
- package/dist/cjs/f-cell-c5a85032.js.map +1 -0
- package/dist/cjs/kup-autocomplete_27.cjs.entry.js +1 -1
- package/dist/cjs/kup-box.cjs.entry.js +1 -1
- package/dist/cjs/kup-cell.cjs.entry.js +3 -24
- package/dist/cjs/kup-cell.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-image-list.cjs.entry.js +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +1 -1
- package/dist/cjs/kup-manager-3e7452e3.js.map +1 -1
- package/dist/collection/components/kup-cell/kup-cell.js +2 -2
- package/dist/collection/components/kup-cell/kup-cell.js.map +1 -1
- package/dist/collection/f-components/f-cell/f-cell-declarations.js.map +1 -1
- package/dist/collection/f-components/f-cell/f-cell.js +87 -1
- package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js +1 -20
- package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js.map +1 -1
- package/dist/collection/managers/kup-data/kup-data-declarations.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +87 -1
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-cell.js +3 -24
- package/dist/components/kup-cell.js.map +1 -1
- package/dist/components/kup-input-panel.js +1 -1
- package/dist/components/kup-manager.js +1 -1
- package/dist/components/kup-manager.js.map +1 -1
- package/dist/esm/{f-cell-f16081a9.js → f-cell-aea93e3a.js} +90 -4
- package/dist/esm/f-cell-aea93e3a.js.map +1 -0
- package/dist/esm/{f-chip-d387922c.js → f-chip-4eb4d42d.js} +2 -2
- package/dist/esm/{f-chip-d387922c.js.map → f-chip-4eb4d42d.js.map} +1 -1
- package/dist/esm/{f-paginator-utils-6293bfa7.js → f-paginator-utils-ae1c08f2.js} +2 -2
- package/dist/esm/{f-paginator-utils-6293bfa7.js.map → f-paginator-utils-ae1c08f2.js.map} +1 -1
- package/dist/esm/{f-text-field-7025d96d.js → f-text-field-5c7e1016.js} +2 -2
- package/dist/esm/{f-text-field-7025d96d.js.map → f-text-field-5c7e1016.js.map} +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_27.entry.js +6 -6
- package/dist/esm/kup-box.entry.js +6 -6
- 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 +6 -27
- package/dist/esm/kup-cell.entry.js.map +1 -1
- package/dist/esm/kup-dashboard.entry.js +2 -2
- package/dist/esm/{kup-data-table-helper-db8e4ccb.js → kup-data-table-helper-77b091da.js} +2 -2
- package/dist/esm/{kup-data-table-helper-db8e4ccb.js.map → kup-data-table-helper-77b091da.js.map} +1 -1
- package/dist/esm/kup-drawer.entry.js +1 -1
- package/dist/esm/kup-echart.entry.js +1 -1
- 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-iframe.entry.js +1 -1
- package/dist/esm/kup-image-list.entry.js +4 -4
- package/dist/esm/kup-input-panel.entry.js +4 -4
- package/dist/esm/kup-lazy.entry.js +1 -1
- package/dist/esm/kup-magic-box.entry.js +1 -1
- package/dist/esm/{kup-manager-30b785c0.js → kup-manager-7f0308ee.js} +2 -2
- package/dist/esm/{kup-manager-30b785c0.js.map → kup-manager-7f0308ee.js.map} +1 -1
- package/dist/esm/kup-nav-bar.entry.js +1 -1
- package/dist/esm/kup-numeric-picker.entry.js +2 -2
- package/dist/esm/kup-pdf.entry.js +1 -1
- package/dist/esm/kup-photo-frame.entry.js +1 -1
- 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-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-289f3508.entry.js → p-03885b8d.entry.js} +2 -2
- package/dist/ketchup/{p-5017319c.entry.js → p-05a7120a.entry.js} +2 -2
- package/dist/ketchup/{p-d46f8700.js → p-1754ee9b.js} +2 -2
- package/dist/ketchup/{p-861aa7c8.entry.js → p-18229ac3.entry.js} +2 -2
- package/dist/ketchup/{p-c9415b33.entry.js → p-188ed514.entry.js} +2 -2
- package/dist/ketchup/{p-c1541eb5.entry.js → p-202dfeee.entry.js} +2 -2
- package/dist/ketchup/{p-0a09fd0b.entry.js → p-2227785a.entry.js} +2 -2
- package/dist/ketchup/{p-5ff0df56.entry.js → p-246e4816.entry.js} +2 -2
- package/dist/ketchup/{p-b08664a5.entry.js → p-2b47d837.entry.js} +2 -2
- package/dist/ketchup/{p-a0403a79.entry.js → p-39fa8da7.entry.js} +2 -2
- package/dist/ketchup/{p-fe21f352.entry.js → p-45db3eae.entry.js} +2 -2
- package/dist/ketchup/{p-261fa958.entry.js → p-48368d6a.entry.js} +2 -2
- package/dist/ketchup/{p-81406670.js → p-544eca9d.js} +2 -2
- package/dist/ketchup/{p-9bddff6e.entry.js → p-5d738584.entry.js} +2 -2
- package/dist/ketchup/{p-9a4c7853.entry.js → p-674a4d20.entry.js} +2 -2
- package/dist/ketchup/{p-9e329edc.entry.js → p-6d51f043.entry.js} +2 -2
- package/dist/ketchup/{p-4e4d469f.entry.js → p-7b5bef8e.entry.js} +2 -2
- package/dist/ketchup/{p-3c73ab2d.js → p-802a4e44.js} +2 -2
- package/dist/ketchup/{p-6b7764d0.entry.js → p-87ff86ee.entry.js} +2 -2
- package/dist/ketchup/{p-1d215391.js → p-8c07fd42.js} +2 -2
- package/dist/ketchup/p-8c07fd42.js.map +1 -0
- package/dist/ketchup/p-9394a966.entry.js +2 -0
- package/dist/ketchup/p-9394a966.entry.js.map +1 -0
- package/dist/ketchup/{p-495b4a15.entry.js → p-9788df0b.entry.js} +2 -2
- package/dist/ketchup/{p-255b0de9.entry.js → p-992647ed.entry.js} +2 -2
- package/dist/ketchup/{p-83b0aa2f.entry.js → p-9d9bb8a9.entry.js} +2 -2
- package/dist/ketchup/{p-7e35e20a.entry.js → p-afc92adf.entry.js} +2 -2
- package/dist/ketchup/{p-abe9af22.entry.js → p-b3c7cbd9.entry.js} +2 -2
- package/dist/ketchup/{p-f4b7d710.entry.js → p-b6c07403.entry.js} +2 -2
- package/dist/ketchup/p-bbdf4a8f.js +2 -0
- package/dist/ketchup/p-bbdf4a8f.js.map +1 -0
- package/dist/ketchup/{p-aefb781c.entry.js → p-cdd29a6d.entry.js} +2 -2
- package/dist/ketchup/{p-71c0ab9e.js → p-df06309a.js} +2 -2
- package/dist/ketchup/{p-0bbc107a.entry.js → p-e01cb12b.entry.js} +2 -2
- package/dist/ketchup/{p-41a62cd8.entry.js → p-e32ad7e4.entry.js} +2 -2
- package/dist/ketchup/{p-404ce351.entry.js → p-f4a6652e.entry.js} +2 -2
- package/dist/ketchup/{p-6827385d.entry.js → p-fedd9482.entry.js} +2 -2
- package/dist/types/f-components/f-cell/f-cell-declarations.d.ts +1 -1
- package/dist/types/managers/kup-data/kup-data-declarations.d.ts +1 -1
- package/package.json +1 -1
- package/dist/cjs/f-cell-f4161c96.js.map +0 -1
- package/dist/esm/f-cell-f16081a9.js.map +0 -1
- package/dist/ketchup/p-1d215391.js.map +0 -1
- package/dist/ketchup/p-abd36410.entry.js +0 -2
- package/dist/ketchup/p-abd36410.entry.js.map +0 -1
- package/dist/ketchup/p-b4c093c6.js +0 -2
- package/dist/ketchup/p-b4c093c6.js.map +0 -1
- /package/dist/ketchup/{p-289f3508.entry.js.map → p-03885b8d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5017319c.entry.js.map → p-05a7120a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-d46f8700.js.map → p-1754ee9b.js.map} +0 -0
- /package/dist/ketchup/{p-861aa7c8.entry.js.map → p-18229ac3.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c9415b33.entry.js.map → p-188ed514.entry.js.map} +0 -0
- /package/dist/ketchup/{p-c1541eb5.entry.js.map → p-202dfeee.entry.js.map} +0 -0
- /package/dist/ketchup/{p-0a09fd0b.entry.js.map → p-2227785a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-5ff0df56.entry.js.map → p-246e4816.entry.js.map} +0 -0
- /package/dist/ketchup/{p-b08664a5.entry.js.map → p-2b47d837.entry.js.map} +0 -0
- /package/dist/ketchup/{p-a0403a79.entry.js.map → p-39fa8da7.entry.js.map} +0 -0
- /package/dist/ketchup/{p-fe21f352.entry.js.map → p-45db3eae.entry.js.map} +0 -0
- /package/dist/ketchup/{p-261fa958.entry.js.map → p-48368d6a.entry.js.map} +0 -0
- /package/dist/ketchup/{p-81406670.js.map → p-544eca9d.js.map} +0 -0
- /package/dist/ketchup/{p-9bddff6e.entry.js.map → p-5d738584.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9a4c7853.entry.js.map → p-674a4d20.entry.js.map} +0 -0
- /package/dist/ketchup/{p-9e329edc.entry.js.map → p-6d51f043.entry.js.map} +0 -0
- /package/dist/ketchup/{p-4e4d469f.entry.js.map → p-7b5bef8e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-3c73ab2d.js.map → p-802a4e44.js.map} +0 -0
- /package/dist/ketchup/{p-6b7764d0.entry.js.map → p-87ff86ee.entry.js.map} +0 -0
- /package/dist/ketchup/{p-495b4a15.entry.js.map → p-9788df0b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-255b0de9.entry.js.map → p-992647ed.entry.js.map} +0 -0
- /package/dist/ketchup/{p-83b0aa2f.entry.js.map → p-9d9bb8a9.entry.js.map} +0 -0
- /package/dist/ketchup/{p-7e35e20a.entry.js.map → p-afc92adf.entry.js.map} +0 -0
- /package/dist/ketchup/{p-abe9af22.entry.js.map → p-b3c7cbd9.entry.js.map} +0 -0
- /package/dist/ketchup/{p-f4b7d710.entry.js.map → p-b6c07403.entry.js.map} +0 -0
- /package/dist/ketchup/{p-aefb781c.entry.js.map → p-cdd29a6d.entry.js.map} +0 -0
- /package/dist/ketchup/{p-71c0ab9e.js.map → p-df06309a.js.map} +0 -0
- /package/dist/ketchup/{p-0bbc107a.entry.js.map → p-e01cb12b.entry.js.map} +0 -0
- /package/dist/ketchup/{p-41a62cd8.entry.js.map → p-e32ad7e4.entry.js.map} +0 -0
- /package/dist/ketchup/{p-404ce351.entry.js.map → p-f4a6652e.entry.js.map} +0 -0
- /package/dist/ketchup/{p-6827385d.entry.js.map → p-fedd9482.entry.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, getAssetPath, Fragment, proxyCustomElement, HTMLElement as HTMLElement$1, createEvent, forceUpdate, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { c as KupThemeIconValues, d as KupLanguageGeneric, e as editableTypes, f as kupTypes, b as KupThemeColorValues, F as FCellTypes, h as KupTagNames, i as FCellShapes, j as fullWidthFieldsComps, l as FCellClasses, m as autoCenterComps, n as getCellValueForDisplay, o as FCellEvents, p as KupDebugCategory, q as FCellPadding, k as kupManagerInstance, r as fillString, t as KupCardBuiltInClockElements, u as KupCardCSSClasses, v as KupLanguageTotals, w as KupLanguageColumn, x as KupDataNewColumnTypes, y as KupCardSubEvents, z as KupCardIds, A as KupLanguageRow, B as getColumnByName,
|
|
2
|
+
import { c as KupThemeIconValues, d as KupLanguageGeneric, e as editableTypes, f as kupTypes, b as KupThemeColorValues, F as FCellTypes, R as RADAdapter, C as CMBandACPAdapter, h as KupTagNames, i as FCellShapes, j as fullWidthFieldsComps, l as FCellClasses, m as autoCenterComps, n as getCellValueForDisplay, o as FCellEvents, p as KupDebugCategory, q as FCellPadding, k as kupManagerInstance, r as fillString, t as KupCardBuiltInClockElements, u as KupCardCSSClasses, v as KupLanguageTotals, w as KupLanguageColumn, x as KupDataNewColumnTypes, y as KupCardSubEvents, z as KupCardIds, A as KupLanguageRow, B as getColumnByName, D as KupObjects, E as formatToNumber, G as Filters, H as FilterInterval, I as getValueForDisplay, J as getValueForDisplay2, L as KupData, M as compareCell, T as TotalMode, N as CHKAdapter, O as CHIAdapter, S as SWTAdapter, P as SortMode, Q as GroupLabelDisplayMode, U as SelectionMode, V as KupDynamicPositionPlacement, W as KupLanguageGrouping, X as KupLanguageCheckbox, Y as KupLanguageSearch, Z as KupLanguagePage, a as KupComponentSizing, _ as addColumnValueFromRow, $ as KupGlobalFilterMode, g as getProps, s as setProps, a0 as TotalLabel, a1 as KupPointerEventTypes, a2 as kupDynamicPositionAttribute, a3 as KupCardFamily, a4 as identify, a5 as LoadMoreMode, a6 as PaginatorPos, a7 as ShowGrid, a8 as kupDraggableColumnAttr, a9 as kupDragActiveAttr, aa as KupDragEffect, ab as kupDraggableCellAttr, ac as KupDropEventTypes, ad as FixedCellsClasses, ae as FixedCellsCSSVarsBase, af as KupLanguageFontsize, ag as KupLanguageDensity, ah as KupLanguageGrid, ai as KupDataTableProps, aj as DataTableAreasEnum, ak as iconColumn, al as keyColumn, am as fieldColumn, an as KupCardProps } from './kup-manager.js';
|
|
3
3
|
import { c as KupDateTimeFormatOptionsMonth, K as KupDatesFormats, a as KupDates } from './kup-dates.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -4882,6 +4882,7 @@ const dom$g = document.documentElement;
|
|
|
4882
4882
|
/* C o m p o n e n t */
|
|
4883
4883
|
/*-------------------------------------------------*/
|
|
4884
4884
|
const FCell = (props, children) => {
|
|
4885
|
+
var _a;
|
|
4885
4886
|
const cell = props.cell;
|
|
4886
4887
|
const column = props.column;
|
|
4887
4888
|
const row = props.row;
|
|
@@ -4901,6 +4902,9 @@ const FCell = (props, children) => {
|
|
|
4901
4902
|
isEditable = column.isEditable;
|
|
4902
4903
|
}
|
|
4903
4904
|
isEditable = isEditable && props.editable;
|
|
4905
|
+
if (cell.options) {
|
|
4906
|
+
cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
|
|
4907
|
+
}
|
|
4904
4908
|
const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
|
|
4905
4909
|
const cellType = dom$g.ketchup.data.cell.getType(cell, shape);
|
|
4906
4910
|
const subcomponentProps = Object.assign({}, cell.data);
|
|
@@ -4995,6 +4999,88 @@ const FCell = (props, children) => {
|
|
|
4995
4999
|
? children
|
|
4996
5000
|
: [props.indents, infoEl, icon, content])));
|
|
4997
5001
|
};
|
|
5002
|
+
const mapData = (cell, col) => {
|
|
5003
|
+
if (!cell) {
|
|
5004
|
+
return null;
|
|
5005
|
+
}
|
|
5006
|
+
const options = cell.options;
|
|
5007
|
+
const fieldLabel = col.title;
|
|
5008
|
+
const currentValue = cell.value;
|
|
5009
|
+
const cellType = dom$g.ketchup.data.cell.getType(cell, cell.shape);
|
|
5010
|
+
const dataAdapterMap = new Map([
|
|
5011
|
+
[FCellTypes.RADIO, MainRADAdapter.bind(undefined)],
|
|
5012
|
+
[FCellTypes.AUTOCOMPLETE, MainCMBandACPAdapter.bind(undefined)],
|
|
5013
|
+
]);
|
|
5014
|
+
const adapter = dataAdapterMap.get(cellType);
|
|
5015
|
+
return adapter
|
|
5016
|
+
? adapter(options, fieldLabel, currentValue, cell, col.name)
|
|
5017
|
+
: null;
|
|
5018
|
+
};
|
|
5019
|
+
const MainRADAdapter = (options, _fieldLabel, currentValue) => {
|
|
5020
|
+
return RADAdapter(currentValue, options);
|
|
5021
|
+
};
|
|
5022
|
+
const MainCMBandACPAdapter = (rawOptions, fieldLabel, currentValue) => {
|
|
5023
|
+
const configCMandACP = CMBandACPAdapter(currentValue, fieldLabel, []);
|
|
5024
|
+
configCMandACP.data['kup-list'].data = optionsTreeComboAdapter(rawOptions, currentValue);
|
|
5025
|
+
return configCMandACP;
|
|
5026
|
+
};
|
|
5027
|
+
const optionsTreeComboAdapter = (options, currentValue) => {
|
|
5028
|
+
const adapter = optionsAdapterMap.get(options.type);
|
|
5029
|
+
if (adapter) {
|
|
5030
|
+
return adapter(options, currentValue);
|
|
5031
|
+
}
|
|
5032
|
+
else {
|
|
5033
|
+
return options.map((option) => ({
|
|
5034
|
+
value: option.label,
|
|
5035
|
+
id: option.id,
|
|
5036
|
+
selected: currentValue === option.id,
|
|
5037
|
+
}));
|
|
5038
|
+
}
|
|
5039
|
+
};
|
|
5040
|
+
const treeOptionsNodeAdapter = (options, currentValue) => {
|
|
5041
|
+
return options.children.map((child) => {
|
|
5042
|
+
var _a;
|
|
5043
|
+
return ({
|
|
5044
|
+
id: child.content.codice,
|
|
5045
|
+
value: child.content.testo,
|
|
5046
|
+
selected: currentValue === child.content.codice,
|
|
5047
|
+
children: ((_a = child.children) === null || _a === void 0 ? void 0 : _a.length)
|
|
5048
|
+
? treeOptionsNodeAdapter(child, currentValue)
|
|
5049
|
+
: [],
|
|
5050
|
+
});
|
|
5051
|
+
});
|
|
5052
|
+
};
|
|
5053
|
+
const dataTreeOptionsChildrenAdapter = (options, currentValue) => {
|
|
5054
|
+
return options.children.map((child) => {
|
|
5055
|
+
var _a;
|
|
5056
|
+
return ({
|
|
5057
|
+
id: child.obj.k,
|
|
5058
|
+
value: child.value,
|
|
5059
|
+
selected: currentValue === child.obj.k,
|
|
5060
|
+
children: ((_a = child.children) === null || _a === void 0 ? void 0 : _a.length)
|
|
5061
|
+
? dataTreeOptionsChildrenAdapter(child, currentValue)
|
|
5062
|
+
: [],
|
|
5063
|
+
});
|
|
5064
|
+
});
|
|
5065
|
+
};
|
|
5066
|
+
const tableOptionsAdapter = (options, currentValue) => {
|
|
5067
|
+
return options.rows.map((row) => {
|
|
5068
|
+
var _a;
|
|
5069
|
+
const cells = row.fields || row.cells;
|
|
5070
|
+
const [id, value] = Object.keys(cells);
|
|
5071
|
+
return {
|
|
5072
|
+
id: cells[id].value,
|
|
5073
|
+
value: ((_a = cells[value]) === null || _a === void 0 ? void 0 : _a.value) || cells[id].value,
|
|
5074
|
+
selected: currentValue === cells[id].value,
|
|
5075
|
+
};
|
|
5076
|
+
});
|
|
5077
|
+
};
|
|
5078
|
+
const optionsAdapterMap = new Map([
|
|
5079
|
+
['SmeupTreeNode', treeOptionsNodeAdapter.bind(undefined)],
|
|
5080
|
+
['SmeupDataTree', dataTreeOptionsChildrenAdapter.bind(undefined)],
|
|
5081
|
+
['SmeupTable', tableOptionsAdapter.bind(undefined)],
|
|
5082
|
+
['SmeupDataTable', tableOptionsAdapter.bind(undefined)],
|
|
5083
|
+
]);
|
|
4998
5084
|
function setCellSize(cellType, subcomponentProps, cell, props) {
|
|
4999
5085
|
var _a;
|
|
5000
5086
|
switch (cellType) {
|