@sme.up/ketchup 11.0.0-SNAPSHOT-20241023100903 → 11.0.0-SNAPSHOT-20241023143330

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.
Files changed (46) hide show
  1. package/dist/cjs/{f-cell-c069517c.js → f-cell-fe25710c.js} +24 -1
  2. package/dist/cjs/f-cell-fe25710c.js.map +1 -0
  3. package/dist/cjs/kup-autocomplete_27.cjs.entry.js +1 -1
  4. package/dist/cjs/kup-box.cjs.entry.js +1 -1
  5. package/dist/cjs/kup-cell.cjs.entry.js +6 -44
  6. package/dist/cjs/kup-cell.cjs.entry.js.map +1 -1
  7. package/dist/cjs/kup-image-list.cjs.entry.js +1 -1
  8. package/dist/cjs/kup-input-panel.cjs.entry.js +1 -1
  9. package/dist/collection/f-components/f-cell/f-cell.js +23 -0
  10. package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
  11. package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js +6 -44
  12. package/dist/collection/f-components/f-cell-options.tsx/f-cell-options.js.map +1 -1
  13. package/dist/components/kup-autocomplete2.js +24 -1
  14. package/dist/components/kup-autocomplete2.js.map +1 -1
  15. package/dist/components/kup-cell.js +6 -44
  16. package/dist/components/kup-cell.js.map +1 -1
  17. package/dist/components/kup-input-panel.js +1 -1
  18. package/dist/components/kup-manager.js +1 -1
  19. package/dist/esm/{f-cell-5c7183a7.js → f-cell-809f676d.js} +25 -2
  20. package/dist/esm/f-cell-809f676d.js.map +1 -0
  21. package/dist/esm/kup-autocomplete_27.entry.js +1 -1
  22. package/dist/esm/kup-box.entry.js +1 -1
  23. package/dist/esm/kup-cell.entry.js +7 -45
  24. package/dist/esm/kup-cell.entry.js.map +1 -1
  25. package/dist/esm/kup-image-list.entry.js +1 -1
  26. package/dist/esm/kup-input-panel.entry.js +1 -1
  27. package/dist/ketchup/ketchup.esm.js +1 -1
  28. package/dist/ketchup/{p-cfaab419.entry.js → p-794c420d.entry.js} +2 -2
  29. package/dist/ketchup/p-88464ed1.entry.js +2 -0
  30. package/dist/ketchup/p-88464ed1.entry.js.map +1 -0
  31. package/dist/ketchup/{p-3c321e45.entry.js → p-b2266861.entry.js} +2 -2
  32. package/dist/ketchup/p-b89da9c4.js +2 -0
  33. package/dist/ketchup/p-b89da9c4.js.map +1 -0
  34. package/dist/ketchup/{p-4be79a7c.entry.js → p-cb2697f0.entry.js} +2 -2
  35. package/dist/ketchup/{p-6f0164d2.entry.js → p-e34f289a.entry.js} +2 -2
  36. package/package.json +1 -1
  37. package/dist/cjs/f-cell-c069517c.js.map +0 -1
  38. package/dist/esm/f-cell-5c7183a7.js.map +0 -1
  39. package/dist/ketchup/p-721b6a3c.js +0 -2
  40. package/dist/ketchup/p-721b6a3c.js.map +0 -1
  41. package/dist/ketchup/p-d5ab3ae8.entry.js +0 -2
  42. package/dist/ketchup/p-d5ab3ae8.entry.js.map +0 -1
  43. /package/dist/ketchup/{p-cfaab419.entry.js.map → p-794c420d.entry.js.map} +0 -0
  44. /package/dist/ketchup/{p-3c321e45.entry.js.map → p-b2266861.entry.js.map} +0 -0
  45. /package/dist/ketchup/{p-4be79a7c.entry.js.map → p-cb2697f0.entry.js.map} +0 -0
  46. /package/dist/ketchup/{p-6f0164d2.entry.js.map → p-e34f289a.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, 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';
2
+ import { c as KupThemeIconValues, d as KupLanguageGeneric, F as FCellShapes, e as editableTypes, f as kupTypes, b as KupThemeColorValues, h as FCellTypes, R as RADAdapter, C as CMBandACPAdapter, i as KupTagNames, 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
  /**
@@ -4904,6 +4904,9 @@ const FCell = (props, children) => {
4904
4904
  isEditable = isEditable && props.editable;
4905
4905
  if (cell.options) {
4906
4906
  cell.data = (_a = mapData(cell, column)) !== null && _a !== void 0 ? _a : cell.data;
4907
+ if (props.cell.shape === FCellShapes.TEXT_FIELD) {
4908
+ cell.value = cell.data.value;
4909
+ }
4907
4910
  }
4908
4911
  const valueToDisplay = props.previousValue !== cell.value ? cell.value : '';
4909
4912
  const cellType = dom$g.ketchup.data.cell.getType(cell, shape);
@@ -5008,6 +5011,8 @@ const mapData = (cell, col) => {
5008
5011
  const currentValue = cell.value;
5009
5012
  const cellType = dom$g.ketchup.data.cell.getType(cell, cell.shape);
5010
5013
  const dataAdapterMap = new Map([
5014
+ [FCellTypes.BUTTON_LIST, MainBTNAdapter.bind(undefined)],
5015
+ [FCellTypes.STRING, MainITXAdapter.bind(undefined)],
5011
5016
  [FCellTypes.RADIO, MainRADAdapter.bind(undefined)],
5012
5017
  [FCellTypes.AUTOCOMPLETE, MainCMBandACPAdapter.bind(undefined)],
5013
5018
  [FCellTypes.COMBOBOX, MainCMBandACPAdapter.bind(undefined)],
@@ -5017,6 +5022,13 @@ const mapData = (cell, col) => {
5017
5022
  ? adapter(options, fieldLabel, currentValue, cell, col.name)
5018
5023
  : null;
5019
5024
  };
5025
+ const MainITXAdapter = (options, _fieldLabel, _currentValue, _cell) => {
5026
+ if (options === null || options === void 0 ? void 0 : options[0]) {
5027
+ return {
5028
+ value: options[0].label,
5029
+ };
5030
+ }
5031
+ };
5020
5032
  const MainRADAdapter = (options, _fieldLabel, currentValue) => {
5021
5033
  return RADAdapter(currentValue, options);
5022
5034
  };
@@ -5082,6 +5094,17 @@ const optionsAdapterMap = new Map([
5082
5094
  ['SmeupTable', tableOptionsAdapter.bind(undefined)],
5083
5095
  ['SmeupDataTable', tableOptionsAdapter.bind(undefined)],
5084
5096
  ]);
5097
+ const MainBTNAdapter = (_options, _fieldLabel, _currentValue, cell) => {
5098
+ var _a, _b;
5099
+ return {
5100
+ data: ((_a = cell.options) === null || _a === void 0 ? void 0 : _a.length)
5101
+ ? (_b = cell.options) === null || _b === void 0 ? void 0 : _b.map((option) => ({
5102
+ icon: option.icon,
5103
+ value: option.value,
5104
+ }))
5105
+ : [],
5106
+ };
5107
+ };
5085
5108
  function setCellSize(cellType, subcomponentProps, cell, props) {
5086
5109
  var _a;
5087
5110
  switch (cellType) {