@sme.up/ketchup 10.4.5 → 10.4.7

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 (98) hide show
  1. package/dist/cjs/{f-cell-808c80f4.js → f-cell-b6499daf.js} +3 -3
  2. package/dist/cjs/kup-autocomplete_30.cjs.entry.js +38 -21
  3. package/dist/cjs/kup-box.cjs.entry.js +1 -1
  4. package/dist/cjs/kup-calendar.cjs.entry.js +18 -2
  5. package/dist/cjs/kup-cell.cjs.entry.js +1 -1
  6. package/dist/cjs/kup-input-panel.cjs.entry.js +10 -7
  7. package/dist/collection/components/kup-calendar/kup-calendar.js +38 -2
  8. package/dist/collection/components/kup-card/kup-card.css +24 -0
  9. package/dist/collection/components/kup-card/standard/kup-card-standard.js +10 -4
  10. package/dist/collection/components/kup-data-table/kup-data-table.js +19 -13
  11. package/dist/collection/components/kup-input-panel/kup-input-panel-utils.js +3 -2
  12. package/dist/collection/components/kup-input-panel/kup-input-panel.js +6 -4
  13. package/dist/collection/f-components/f-cell/f-cell.js +1 -1
  14. package/dist/collection/f-components/f-label/f-label.js +2 -2
  15. package/dist/collection/utils/kup-column-menu/kup-column-menu.js +4 -3
  16. package/dist/components/kup-accordion.js +1 -1
  17. package/dist/components/kup-activity-timeline.js +1 -1
  18. package/dist/components/kup-autocomplete.js +1 -1
  19. package/dist/components/kup-badge.js +1 -1
  20. package/dist/components/kup-box.js +1 -1
  21. package/dist/components/kup-button-list.js +1 -1
  22. package/dist/components/kup-button.js +1 -1
  23. package/dist/components/kup-calendar.js +19 -3
  24. package/dist/components/kup-card-list.js +2 -2
  25. package/dist/components/kup-card.js +1 -1
  26. package/dist/components/kup-cell.js +1 -1
  27. package/dist/components/kup-chart.js +1 -1
  28. package/dist/components/kup-checkbox.js +1 -1
  29. package/dist/components/kup-chip.js +1 -1
  30. package/dist/components/kup-color-picker.js +1 -1
  31. package/dist/components/kup-combobox.js +1 -1
  32. package/dist/components/kup-dashboard.js +1 -1
  33. package/dist/components/kup-data-table.js +1 -1
  34. package/dist/components/kup-date-picker.js +1 -1
  35. package/dist/components/kup-dialog.js +1 -1
  36. package/dist/components/kup-drawer.js +1 -1
  37. package/dist/components/kup-dropdown-button.js +1 -1
  38. package/dist/components/kup-echart.js +1 -1
  39. package/dist/components/kup-editor.js +1 -1
  40. package/dist/components/kup-family-tree.js +2 -2
  41. package/dist/components/kup-file-upload.js +1 -1
  42. package/dist/components/kup-form.js +1 -1
  43. package/dist/components/kup-gauge.js +1 -1
  44. package/dist/components/kup-grid.js +1 -1
  45. package/dist/components/kup-htm.js +1 -1
  46. package/dist/components/kup-iframe.js +1 -1
  47. package/dist/components/kup-image-list.js +1 -1
  48. package/dist/components/kup-image.js +1 -1
  49. package/dist/components/kup-input-panel.js +11 -8
  50. package/dist/components/kup-lazy.js +1 -1
  51. package/dist/components/kup-list.js +1 -1
  52. package/dist/components/kup-magic-box.js +3 -3
  53. package/dist/components/kup-nav-bar.js +1 -1
  54. package/dist/components/kup-numeric-picker.js +1 -1
  55. package/dist/components/kup-object-field.js +1 -1
  56. package/dist/components/kup-planner.js +1 -1
  57. package/dist/components/kup-probe.js +1 -1
  58. package/dist/components/kup-progress-bar.js +1 -1
  59. package/dist/components/kup-qlik.js +1 -1
  60. package/dist/components/kup-radio.js +1 -1
  61. package/dist/components/kup-rating.js +1 -1
  62. package/dist/components/kup-snackbar.js +1 -1
  63. package/dist/components/kup-spinner.js +1 -1
  64. package/dist/components/kup-switch.js +1 -1
  65. package/dist/components/kup-tab-bar.js +1 -1
  66. package/dist/components/kup-text-field.js +1 -1
  67. package/dist/components/kup-time-picker.js +1 -1
  68. package/dist/components/kup-toolbar.js +1 -1
  69. package/dist/components/kup-tree.js +1 -1
  70. package/dist/components/kup-txt.js +1 -1
  71. package/dist/components/kup-typography-list.js +1 -1
  72. package/dist/components/kup-typography.js +1 -1
  73. package/dist/components/{p-485c5011.js → p-6c44f471.js} +1 -1
  74. package/dist/components/{p-5e972660.js → p-77f72bf7.js} +1 -1
  75. package/dist/components/{p-6f3743ea.js → p-99de2f5f.js} +1 -1
  76. package/dist/components/{p-45333a69.js → p-ba6132b3.js} +40 -23
  77. package/dist/components/{p-c6eba054.js → p-cd1fbb3a.js} +1 -1
  78. package/dist/esm/{f-cell-d224dc3a.js → f-cell-0a7e6c09.js} +3 -3
  79. package/dist/esm/kup-autocomplete_30.entry.js +38 -21
  80. package/dist/esm/kup-box.entry.js +1 -1
  81. package/dist/esm/kup-calendar.entry.js +18 -2
  82. package/dist/esm/kup-cell.entry.js +1 -1
  83. package/dist/esm/kup-input-panel.entry.js +10 -7
  84. package/dist/ketchup/ketchup.esm.js +1 -1
  85. package/dist/ketchup/{p-a44ec249.entry.js → p-1d602e4b.entry.js} +2 -2
  86. package/dist/ketchup/p-436ef56e.js +1 -0
  87. package/dist/ketchup/{p-5d6f2048.entry.js → p-860e64d6.entry.js} +1 -1
  88. package/dist/ketchup/{p-b4a94521.entry.js → p-9510d04c.entry.js} +1 -1
  89. package/dist/ketchup/p-a41766d3.entry.js +1 -0
  90. package/dist/ketchup/{p-549a999c.entry.js → p-cc193dee.entry.js} +1 -1
  91. package/dist/types/components/kup-calendar/kup-calendar-declarations.d.ts +6 -0
  92. package/dist/types/components/kup-calendar/kup-calendar.d.ts +5 -1
  93. package/dist/types/components/kup-input-panel/kup-input-panel-utils.d.ts +1 -1
  94. package/dist/types/components.d.ts +7 -2
  95. package/dist/types/f-components/f-label/f-label-declarations.d.ts +2 -1
  96. package/package.json +1 -1
  97. package/dist/ketchup/p-b4b9fd65.entry.js +0 -1
  98. package/dist/ketchup/p-de3514d6.js +0 -1
@@ -14814,6 +14814,7 @@ const KupCalendar = class {
14814
14814
  constructor(hostRef) {
14815
14815
  index$4.registerInstance(this, hostRef);
14816
14816
  this.kupCalendarEventClick = index$4.createEvent(this, "kup-calendar-eventclick", 6);
14817
+ this.kupCalendarEventContextMenu = index$4.createEvent(this, "kup-calendar-eventcontextmenu", 6);
14817
14818
  this.kupCalendarDateClick = index$4.createEvent(this, "kup-calendar-dateclick", 6);
14818
14819
  this.kupCalendarEventDrop = index$4.createEvent(this, "kup-calendar-eventdrop", 6);
14819
14820
  this.kupCalendarViewChange = index$4.createEvent(this, "kup-calendar-viewchange", 6);
@@ -14941,6 +14942,21 @@ const KupCalendar = class {
14941
14942
  minute: '2-digit',
14942
14943
  },
14943
14944
  eventDidMount: (info) => {
14945
+ info.el.oncontextmenu = (e) => {
14946
+ var _a;
14947
+ e.preventDefault();
14948
+ const { find } = this.kupManager.data.column;
14949
+ const k01 = (_a = find(this.getColumns(), { isKey: true })) === null || _a === void 0 ? void 0 : _a[0];
14950
+ this.kupCalendarEventContextMenu.emit({
14951
+ comp: this,
14952
+ id: this.rootElement.id,
14953
+ row: info.event.extendedProps.row,
14954
+ k01,
14955
+ el: info.el,
14956
+ originalEvent: e,
14957
+ });
14958
+ return false;
14959
+ };
14944
14960
  // In the calendar component, we handle two cases:
14945
14961
  // if the '.fc-event-main' div exists, the event don't has start/end time;
14946
14962
  const content = document.createElement('div');
@@ -15257,11 +15273,11 @@ const KupCalendar = class {
15257
15273
  this.kupManager.debug.logRender(this, true);
15258
15274
  }
15259
15275
  render() {
15260
- return (index$4.h(index$4.Host, { key: '84b96d480944784ba43b426e8d01e536f1bafc67' }, index$4.h("style", { key: 'bdaf0c3a8ee5cc6bdc7dc9e9cbc13529ea611e28' }, this.kupManager.theme.setKupStyle(this.rootElement)), index$4.h("div", { key: '3ae0c2d73d9d70be0cf3a13f56eaf09fc5b29126', id: GenericVariables.componentWrapperId }, index$4.h("div", { key: '06aa3eea99f3c49e88509c4393231fd47d7eeace', class: "navigation" }, !this.hideNavigation ? (index$4.h("div", { class: "navigation__left" }, index$4.h(fButton.FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), index$4.h(fButton.FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), index$4.h(fButton.FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, index$4.h("div", { key: 'bcf1061ef340154ce810504963c635677d7b08ec', class: `navigation__title ${this.hideNavigation
15276
+ return (index$4.h(index$4.Host, { key: 'cd8efd2e4d7168d2b00b8c8c1ffbc0dd5de47dae' }, index$4.h("style", { key: '38b007b0a59e1272804e0b8a3ab960ecd08dccf5' }, this.kupManager.theme.setKupStyle(this.rootElement)), index$4.h("div", { key: '7971fd8d4bfded4fe357e619c0d80e40c4ff7c8f', id: GenericVariables.componentWrapperId }, index$4.h("div", { key: '4aa984af8bc7b94a551deef3e54b996f496706f1', class: "navigation" }, !this.hideNavigation ? (index$4.h("div", { class: "navigation__left" }, index$4.h(fButton.FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), index$4.h(fButton.FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), index$4.h(fButton.FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(kupManager.KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, index$4.h("div", { key: 'db70df951a8d695b6886ea961cda248c12e916a9', class: `navigation__title ${this.hideNavigation
15261
15277
  ? 'navigation__title--centered'
15262
15278
  : ''}`, ref: (el) => {
15263
15279
  this.navTitle = el;
15264
- } }), index$4.h("div", { key: 'd0da3cdd51e56c4d707789af64e55c1d19a24973', class: "navigation__right" }, this.enableChangeView ? (index$4.h(fChip.FChip, Object.assign({}, this.setChipProps()))) : null)), index$4.h("div", { key: 'c8cd358bceae781d6add7ff26cc09878ef0b5834', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
15280
+ } }), index$4.h("div", { key: 'ac3cabb086e8bcd69f8acffd590276323bf2dbc7', class: "navigation__right" }, this.enableChangeView ? (index$4.h(fChip.FChip, Object.assign({}, this.setChipProps()))) : null)), index$4.h("div", { key: '5660535edbcf474a4b5969a84f304092e4c25778', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
15265
15281
  }
15266
15282
  disconnectedCallback() {
15267
15283
  if (this.calendar) {
@@ -6,7 +6,7 @@ const index = require('./index-c7d441d8.js');
6
6
  const kupManager = require('./kup-manager-5faed2fc.js');
7
7
  const GenericVariables = require('./GenericVariables-1d52ba57.js');
8
8
  const fButton = require('./f-button-9aca7812.js');
9
- const fCell = require('./f-cell-808c80f4.js');
9
+ const fCell = require('./f-cell-b6499daf.js');
10
10
  require('./kup-dates-2ff08e4f.js');
11
11
  require('./f-button-declarations-76ef9f87.js');
12
12
  require('./f-image-5a33fd05.js');
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-c7d441d8.js');
6
6
  const fButton = require('./f-button-9aca7812.js');
7
- const fCell = require('./f-cell-808c80f4.js');
7
+ const fCell = require('./f-cell-b6499daf.js');
8
8
  const kupManager = require('./kup-manager-5faed2fc.js');
9
9
  const fTextFieldMdc = require('./f-text-field-mdc-29aae9c9.js');
10
10
  const fTypography = require('./f-typography-85d8238a.js');
@@ -77,7 +77,7 @@ const LEFT_MULTIPLIER = 1.15; // Multiplier commanding the left attribute "scale
77
77
  const ADDITIONAL_WIDTH_WITH_ICON = 18; // Additional width added to account for the shape's icon (ACP,CAL,CMB)
78
78
  // Char sizes
79
79
  const FONT_SIZE = 12; // Monospace font size of the INP
80
- const FONT_SIZE_TO_WIDTH_RATIO = 1.6; // FontSize to SingleCharWidth ratio
80
+ const FONT_SIZE_TO_WIDTH_RATIO = 1.4; // FontSize to SingleCharWidth ratio
81
81
  const CHAR_WIDTH = FONT_SIZE / FONT_SIZE_TO_WIDTH_RATIO; // Used for field width and left attribute
82
82
  const getAbsoluteWidth = (length, graphicShapeHasIcon) => {
83
83
  if (length == 0) {
@@ -87,7 +87,8 @@ const getAbsoluteWidth = (length, graphicShapeHasIcon) => {
87
87
  return null;
88
88
  }
89
89
  if (length === 1) {
90
- return 1.5 * CHAR_WIDTH;
90
+ return (1.5 * CHAR_WIDTH +
91
+ (graphicShapeHasIcon ? ADDITIONAL_WIDTH_WITH_ICON : 0));
91
92
  }
92
93
  return (length * CHAR_WIDTH +
93
94
  (graphicShapeHasIcon ? ADDITIONAL_WIDTH_WITH_ICON : 0) +
@@ -426,7 +427,7 @@ const KupInputPanel = class {
426
427
  index.h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA)),
427
428
  ]
428
429
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
429
- return (index.h(index.Host, { key: '188847543efd6501f54e34334d790981c80d6437', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
430
+ return (index.h(index.Host, { key: '3cc39141d1ecd12ffb4775e41d5f655cc522e672', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
430
431
  this.tabSelected = e.detail.node.id;
431
432
  }, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) => {
432
433
  __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK);
@@ -436,7 +437,7 @@ const KupInputPanel = class {
436
437
  this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
437
438
  }, "onKup-objectfield-selectedmenuitem": (e) => {
438
439
  this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
439
- }, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, index.h("style", { key: '25aef88421cc55cb402fb428ac128b1ee5a423df' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: '210fdcc650406ba3673bbfe8488c38ce2a961b46', id: GenericVariables.componentWrapperId }, inputPanelContent)));
440
+ }, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, index.h("style", { key: '8e06ec2438e3db35ff94bf7b19f190c0b4a2d9f6' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'b66e6cdd524d526f3428c9c77f4d079716eb1183', id: GenericVariables.componentWrapperId }, inputPanelContent)));
440
441
  }
441
442
  disconnectedCallback() {
442
443
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -644,7 +645,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
644
645
  const value = isFormattableType
645
646
  ? kupManager.getCellValueForDisplay(column, cell)
646
647
  : cell.value;
647
- return (index.h("span", { class: classList.join(' '), id: column.name }, index.h(fCell.FLabel, { text: value })));
648
+ return (index.h("span", { class: classList.join(' '), id: column.name }, index.h(fCell.FLabel, { style: cell.style, text: value })));
648
649
  }, _KupInputPanel_getLabelComponent = function _KupInputPanel_getLabelComponent(cell, label) {
649
650
  if (!label) {
650
651
  return null;
@@ -839,7 +840,9 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
839
840
  }
840
841
  const absoluteWidth = fieldCell.cell.shape === kupManager.FCellShapes.LABEL
841
842
  ? getLabelAbsoluteWidth(length)
842
- : getAbsoluteWidth(length, graphicShapeHasIcon(fieldCell.cell.shape));
843
+ : fieldCell.cell.shape === kupManager.FCellShapes.CHECKBOX
844
+ ? 15
845
+ : getAbsoluteWidth(length, graphicShapeHasIcon(fieldCell.cell.shape));
843
846
  const absoluteHeight = getAbsoluteHeight(field.absoluteHeight);
844
847
  const absoluteTop = getAbsoluteTop(field.absoluteRow, absoluteTblPositioningData);
845
848
  const absoluteLeft = getAbsoluteLeft(field.absoluteColumn);
@@ -149,6 +149,21 @@ export class KupCalendar {
149
149
  minute: '2-digit',
150
150
  },
151
151
  eventDidMount: (info) => {
152
+ info.el.oncontextmenu = (e) => {
153
+ var _a;
154
+ e.preventDefault();
155
+ const { find } = this.kupManager.data.column;
156
+ const k01 = (_a = find(this.getColumns(), { isKey: true })) === null || _a === void 0 ? void 0 : _a[0];
157
+ this.kupCalendarEventContextMenu.emit({
158
+ comp: this,
159
+ id: this.rootElement.id,
160
+ row: info.event.extendedProps.row,
161
+ k01,
162
+ el: info.el,
163
+ originalEvent: e,
164
+ });
165
+ return false;
166
+ };
152
167
  // In the calendar component, we handle two cases:
153
168
  // if the '.fc-event-main' div exists, the event don't has start/end time;
154
169
  const content = document.createElement('div');
@@ -465,11 +480,11 @@ export class KupCalendar {
465
480
  this.kupManager.debug.logRender(this, true);
466
481
  }
467
482
  render() {
468
- return (h(Host, { key: '84b96d480944784ba43b426e8d01e536f1bafc67' }, h("style", { key: 'bdaf0c3a8ee5cc6bdc7dc9e9cbc13529ea611e28' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '3ae0c2d73d9d70be0cf3a13f56eaf09fc5b29126', id: componentWrapperId }, h("div", { key: '06aa3eea99f3c49e88509c4393231fd47d7eeace', class: "navigation" }, !this.hideNavigation ? (h("div", { class: "navigation__left" }, h(FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), h(FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), h(FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, h("div", { key: 'bcf1061ef340154ce810504963c635677d7b08ec', class: `navigation__title ${this.hideNavigation
483
+ return (h(Host, { key: 'cd8efd2e4d7168d2b00b8c8c1ffbc0dd5de47dae' }, h("style", { key: '38b007b0a59e1272804e0b8a3ab960ecd08dccf5' }, this.kupManager.theme.setKupStyle(this.rootElement)), h("div", { key: '7971fd8d4bfded4fe357e619c0d80e40c4ff7c8f', id: componentWrapperId }, h("div", { key: '4aa984af8bc7b94a551deef3e54b996f496706f1', class: "navigation" }, !this.hideNavigation ? (h("div", { class: "navigation__left" }, h(FButton, { icon: "chevron_left", onClick: () => this.onPrev(), title: this.kupManager.language.translate(KupLanguageGeneric.PREVIOUS), wrapperClass: "navigation__prev" }), h(FButton, { icon: "calendar", onClick: () => this.onToday(), title: this.kupManager.language.translate(KupLanguageGeneric.TODAY), wrapperClass: "navigation__today" }), h(FButton, { icon: "chevron_right", onClick: () => this.onNext(), title: this.kupManager.language.translate(KupLanguageGeneric.NEXT), wrapperClass: "navigation__next" }))) : null, h("div", { key: 'db70df951a8d695b6886ea961cda248c12e916a9', class: `navigation__title ${this.hideNavigation
469
484
  ? 'navigation__title--centered'
470
485
  : ''}`, ref: (el) => {
471
486
  this.navTitle = el;
472
- } }), h("div", { key: 'd0da3cdd51e56c4d707789af64e55c1d19a24973', class: "navigation__right" }, this.enableChangeView ? (h(FChip, Object.assign({}, this.setChipProps()))) : null)), h("div", { key: 'c8cd358bceae781d6add7ff26cc09878ef0b5834', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
487
+ } }), h("div", { key: 'ac3cabb086e8bcd69f8acffd590276323bf2dbc7', class: "navigation__right" }, this.enableChangeView ? (h(FChip, Object.assign({}, this.setChipProps()))) : null)), h("div", { key: '5660535edbcf474a4b5969a84f304092e4c25778', class: "calendar", ref: (el) => (this.calendarContainer = el) }))));
473
488
  }
474
489
  disconnectedCallback() {
475
490
  if (this.calendar) {
@@ -742,6 +757,27 @@ export class KupCalendar {
742
757
  }
743
758
  }
744
759
  }
760
+ }, {
761
+ "method": "kupCalendarEventContextMenu",
762
+ "name": "kup-calendar-eventcontextmenu",
763
+ "bubbles": true,
764
+ "cancelable": false,
765
+ "composed": true,
766
+ "docs": {
767
+ "tags": [],
768
+ "text": "When an event is right clicked."
769
+ },
770
+ "complexType": {
771
+ "original": "KupCalendarEventContextMenuEventPayload",
772
+ "resolved": "KupCalendarEventContextMenuEventPayload",
773
+ "references": {
774
+ "KupCalendarEventContextMenuEventPayload": {
775
+ "location": "import",
776
+ "path": "./kup-calendar-declarations",
777
+ "id": "src/components/kup-calendar/kup-calendar-declarations.ts::KupCalendarEventContextMenuEventPayload"
778
+ }
779
+ }
780
+ }
745
781
  }, {
746
782
  "method": "kupCalendarDateClick",
747
783
  "name": "kup-calendar-dateclick",
@@ -3322,6 +3322,30 @@
3322
3322
  .standard-layout-14 .sub-formula {
3323
3323
  padding: 0.5em 0;
3324
3324
  }
3325
+ .standard-layout-14 .sub-formula .formula-container {
3326
+ position: absolute;
3327
+ right: 1em;
3328
+ z-index: 1;
3329
+ }
3330
+ .standard-layout-14 .sub-formula .formula-text {
3331
+ visibility: hidden;
3332
+ background-color: var(--kup-gray-color-20);
3333
+ color: var(--kup-text-primary);
3334
+ text-align: left;
3335
+ padding: 8px;
3336
+ border-radius: 4px;
3337
+ position: absolute;
3338
+ bottom: 125%;
3339
+ left: 50%;
3340
+ transform: translateX(-50%);
3341
+ white-space: nowrap;
3342
+ opacity: 0;
3343
+ transition: opacity 0.3s;
3344
+ }
3345
+ .standard-layout-14 .sub-formula .formula-container:hover .formula-text {
3346
+ visibility: visible;
3347
+ opacity: 1;
3348
+ }
3325
3349
  .standard-layout-14 .sub-chip {
3326
3350
  max-width: 25vw;
3327
3351
  overflow: auto;
@@ -493,6 +493,10 @@ export function create14(component) {
493
493
  textfieldsIds.push(textfield['id']);
494
494
  }
495
495
  }
496
+ const textfieldArrayExcludedFormula = textfieldArray.length > 0
497
+ ? textfieldArray.filter((x) => x.id !== KupColumnMenuIds.TEXTFIELD_FORMULA)
498
+ : [];
499
+ const textfieldArrayFormula = textfieldArray.find((x) => x.id === KupColumnMenuIds.TEXTFIELD_FORMULA);
496
500
  const tooltipText = dom.ketchup.language.translate(KupLanguageSearch.TOOLTIP);
497
501
  const filtersMaxLen = kupManager.perfTuning.data.filtersMaxLength;
498
502
  return (h("div", { class: `standard-layout-${component.layoutNumber} ` }, objectArray[0] ? (h("div", { class: "section-1" }, imageArray[0] ? (h(FImage, Object.assign({ id: "image1" }, imageArray[0], { sizeX: "84px", sizeY: "84px" }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "7px", layout: 14 }))), h("div", { class: "sub-1" }, textArray[0] ||
@@ -510,8 +514,8 @@ export function create14(component) {
510
514
  .split('\n')
511
515
  .map((line) => [line, h("br", null)]))), datepickerArray.length > 0
512
516
  ? compList(datepickerArray, 'datepicker')
513
- : null, textfieldArray.length > 0
514
- ? compList(textfieldArray, 'textfield')
517
+ : null, textfieldArrayExcludedFormula.length > 0
518
+ ? compList(textfieldArrayExcludedFormula, 'textfield')
515
519
  : null, timepickerArray.length > 0
516
520
  ? compList(timepickerArray, 'timepicker')
517
521
  : null), checkboxArray.length > 0 ? (h(Fragment, null, getFiltersWarningElement(checkboxArray, filtersMaxLen), h("div", { class: "sub-checkbox" }, compList(checkboxArray, 'checkbox', filtersMaxLen)))) : null)) : null, tabsValues.includes(KupLanguageColumn.COLUMNS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
@@ -519,8 +523,10 @@ export function create14(component) {
519
523
  : ''}` }, h("div", { class: "sub-button" }, buttonsIds.includes(KupColumnMenuIds.BUTTON_REMOVE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
520
524
  KupColumnMenuIds.BUTTON_REMOVE)))) : null, buttonsIds.includes(KupColumnMenuIds.BUTTON_GROUP) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
521
525
  KupColumnMenuIds.BUTTON_GROUP)))) : null, buttonsIds.includes(KupColumnMenuIds.TOTALS_TABLE) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
522
- KupColumnMenuIds.TOTALS_TABLE)))) : null), h("div", { class: "sub-formula" }, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FORMULA) ? (h("kup-text-field", Object.assign({}, textfieldArray.find((x) => x.id ===
523
- KupColumnMenuIds.TEXTFIELD_FORMULA)))) : null), h("div", { class: "sub-chip" }, chipArray[0] ? (h("kup-chip", Object.assign({}, chipArray[0], { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST }))) : (h("kup-chip", { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST })), buttonsIds.includes(KupColumnMenuIds.BUTTON_APPLY) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
526
+ KupColumnMenuIds.TOTALS_TABLE)))) : null), h("div", { class: "sub-formula" }, textfieldsIds.includes(KupColumnMenuIds.TEXTFIELD_FORMULA) ? (h(Fragment, null, h("div", { class: "formula-container" }, h("kup-image", { resource: "functions", "size-x": "18px", "size-y": "18px" }), (textfieldArrayFormula === null || textfieldArrayFormula === void 0 ? void 0 : textfieldArrayFormula['helper']) && (h("span", { class: "formula-text" }, textfieldArrayFormula === null || textfieldArrayFormula === void 0 ? void 0 : textfieldArrayFormula['helper'].split('\n').map((line) => [
527
+ line,
528
+ h("br", null),
529
+ ])))), h("kup-text-field", Object.assign({}, textfieldArrayFormula, { icon: undefined, fullWidth: false })))) : null), h("div", { class: "sub-chip" }, chipArray[0] ? (h("kup-chip", Object.assign({}, chipArray[0], { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST }))) : (h("kup-chip", { type: FChipType.INPUT, id: KupCardIds.COLUMNS_LIST })), buttonsIds.includes(KupColumnMenuIds.BUTTON_APPLY) ? (h("kup-button", Object.assign({}, buttonArray.find((x) => x.id ===
524
530
  KupColumnMenuIds.BUTTON_APPLY)))) : null), objectArray[0] ? (h("div", { class: "sub-tree" }, treeArray[0] ? (h("kup-tree", Object.assign({ class: "kup-full-width", globalFilter: true }, treeArray[0], { id: KupCardIds.EXTRA_COLUMNS }))) : (h("div", { class: "sub-spinner" }, h("kup-spinner", { active: true, dimensions: "8px", layout: 2 }))))) : null)) : null, tabsValues.includes(KupLanguageGeneric.SETTINGS) ? (h("div", { class: `${KupCardCSSClasses.CARD_VIEW} ${KupCardCSSClasses.VIEW_PREFIX}${viewIndex} ${visibleView === viewIndex++
525
531
  ? KupCardCSSClasses.VISIBLE
526
532
  : ''}` }, h("div", { class: "sub-autocomplete" }, autocompleteArray.length > 0
@@ -712,7 +712,9 @@ export class KupDataTable {
712
712
  */
713
713
  async hideColumn(column) {
714
714
  __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").data.column.hide(this.data, [column.name]);
715
- this.visibleColumns = this.getVisibleColumns().map((col) => col.name);
715
+ this.visibleColumns = this.getVisibleColumns({
716
+ includeCodVer: true,
717
+ }).map((col) => col.name);
716
718
  this.visibleColumns = this.visibleColumns.filter((colName) => colName != column.name);
717
719
  this.kupColumnRemove.emit({
718
720
  comp: this,
@@ -1513,7 +1515,7 @@ export class KupDataTable {
1513
1515
  __classPrivateFieldSet(this, _KupDataTable_sizedColumns, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getSizedColumns).call(this), "f");
1514
1516
  let rows = null;
1515
1517
  if (__classPrivateFieldGet(this, _KupDataTable_paginatedRowsLength, "f") === 0) {
1516
- rows = (h("tr", { key: 'fd61dd682eed8f7509b76569549c11074318b26d', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: '375f74dab7f18f38c1fcfc82fbf89be7ea516acb', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
1518
+ rows = (h("tr", { key: 'fae0fbf757a5bb8dada4a6c10f488028b02e5fd8', ref: (el) => __classPrivateFieldGet(this, _KupDataTable_rowsRefs, "f").push(el) }, h("td", { key: 'a9b57fef6aee6b910a1e580edb44cba15bb1c0a1', colSpan: __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_calculateColspan).call(this) }, this.emptyDataLabel)));
1517
1519
  }
1518
1520
  else {
1519
1521
  rows = [];
@@ -1589,7 +1591,7 @@ export class KupDataTable {
1589
1591
  __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_handleChipsContextMenu).call(this, chipArg.id, e);
1590
1592
  });
1591
1593
  }
1592
- groupChips = h(FChip, Object.assign({ key: '9b5489775f259e91e74e4ce96178923d7531ea85' }, props));
1594
+ groupChips = h(FChip, Object.assign({ key: '4127c93f669496c78048414a3fdb81e42bb937c9' }, props));
1593
1595
  }
1594
1596
  }
1595
1597
  const tableClass = {
@@ -1621,7 +1623,7 @@ export class KupDataTable {
1621
1623
  if (this.headerIsPersistent &&
1622
1624
  this.tableHeight === undefined &&
1623
1625
  this.tableWidth === undefined) {
1624
- stickyEl = (h("sticky-header", { key: 'c7322e666a446be849ff1b383a87845541ce2a09', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'd323db862d38913ac293117877b9014520644d07' }, h("tr-sticky", { key: '36682a81e6446b2d23ebe957d77eb7a33ec1eb23' }, stickyHeader))));
1626
+ stickyEl = (h("sticky-header", { key: '440386f41420a89650eb6eb339e177c9ba8c2953', class: "hover-scrolling-child", hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_stickyTheadRef, el, "f")) }, h("thead-sticky", { key: 'd39077e934a334d195ec3f5915491415f0ee1685' }, h("tr-sticky", { key: 'fd3a5c31503aed1ab1bb1ada44bee5da858ccf79' }, stickyHeader))));
1625
1627
  }
1626
1628
  let belowClass = 'below-wrapper';
1627
1629
  if (!!this.tableHeight || !!this.tableWidth) {
@@ -1667,7 +1669,7 @@ export class KupDataTable {
1667
1669
  const useGlobalFilter = !this.legacyLook &&
1668
1670
  (this.globalFilter ||
1669
1671
  this.getRows().length > __classPrivateFieldGet(this, _KupDataTable_DEFAULT_ROWS_FOR_GLOBAL_FILTER, "f"));
1670
- const compCreated = (h(Host, { key: '548c686024deca76c77bf5942728118d238c364b', "onKup-drop": (e) => {
1672
+ const compCreated = (h(Host, { key: '4f42575b90e6d671e91e2e07c59a78215ef5f0c4', "onKup-drop": (e) => {
1671
1673
  this.kupDataTableDrop.emit(e.detail);
1672
1674
  }, "onKup-cell-input": (e) => {
1673
1675
  autoselectOnAction(e);
@@ -1686,11 +1688,11 @@ export class KupDataTable {
1686
1688
  this.kupDataTableObjectFieldOpenSearchMenu.emit(e.detail);
1687
1689
  }, "onKup-objectfield-selectedmenuitem": (e) => {
1688
1690
  this.kupDataTableObjectFieldSelectedMenuItem.emit(e.detail);
1689
- } }, h("style", { key: 'a59af13cdcad56c19f3d93a376251282d67d8927' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h("div", { key: '6361fb5d031766406ad7e43e53309eeb9883c297', id: componentWrapperId, class: wrapClass }, h("div", { key: 'afe0e1c52d9c1d0d4fc3e6aa2f4a50e4532a3444', class: "group-wrapper" }, groupChips), h("div", { key: 'c3a8df6ceecab5bdff580a0371754c8bdf5d05ae', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
1691
+ } }, h("style", { key: '0645a40464e0147ab5aca4aaf38a817d7d289030' }, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").theme.setKupStyle(this.rootElement)), this.updatableData ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderUpdateButtons).call(this) : null, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_renderOtherButtons).call(this), h("div", { key: 'cb616360bcec4ba39aca44a93a39b95b9909c394', id: componentWrapperId, class: wrapClass }, h("div", { key: '20773b7172801769e11b443e305c42844f52ba0f', class: "group-wrapper" }, groupChips), h("div", { key: '860898241d7a10f45f7430594a368e91115ba784', class: "actions-wrapper", style: actionWrapperWidth }, useGlobalFilter ? (h("div", { id: "global-filter" }, h(FTextField, { fullWidth: true, icon: KupThemeIconValues.SEARCH, label: __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").language.translate(KupLanguageSearch.SEARCH), sizing: KupComponentSizing.EXTRA_SMALL, value: this.globalFilterValue, onInput: (event) => {
1690
1692
  const t = event.target;
1691
1693
  window.clearTimeout(__classPrivateFieldGet(this, _KupDataTable_globalFilterTimeout, "f"));
1692
1694
  __classPrivateFieldSet(this, _KupDataTable_globalFilterTimeout, window.setTimeout(() => __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onGlobalFilterChange).call(this, t), 600, t), "f");
1693
- } }))) : null, paginatorTop && (h("div", { key: 'cbbf08d01bdc7a10c03eaeb882bb2a13151c4268', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
1695
+ } }))) : null, paginatorTop && (h("div", { key: '6072e859a231fbfd727cd1a55f908e25dc33a129', class: "above-wrapper paginator-top" }, paginatorTop)), this.insertMode !== '' &&
1694
1696
  this.selectedRows.length > 0 ? (h(FButton, { icon: "save", onClick: () => {
1695
1697
  this.kupSave.emit({
1696
1698
  comp: this,
@@ -1740,9 +1742,9 @@ export class KupDataTable {
1740
1742
  this.data.rows.unshift(row);
1741
1743
  await this.refresh(true);
1742
1744
  }
1743
- }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: '0cb8de2dadf3d644cc849c30e378dd7b098fc881', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1745
+ }, sizing: KupComponentSizing.MEDIUM, styling: FButtonStyling.RAISED, title: "Insert row", wrapperClass: "insert-button" })) : null), h("div", { key: 'c9e1e65438d07ce168299fc0cd2b83bf77c94cf3', class: "droparea", ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_dropareaRef, el, "f")) }, this.showGroups ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnGroupArea).call(this) : null, this.removableColumns
1744
1746
  ? __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_columnRemoveArea).call(this)
1745
- : null), h("div", { key: 'c640c406c25fd847840ea8eb218183e258c6e250', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1747
+ : null), h("div", { key: 'ea9660e9a616888f37feec74f4f5e2f736e0af6b', style: elStyle, class: belowClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableAreaRef, el, "f")) }, this.showCustomization
1746
1748
  ? [
1747
1749
  h("div", { class: "settings-trigger", onClick: () => {
1748
1750
  __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_onCustomSettingsClick).call(this);
@@ -1751,7 +1753,7 @@ export class KupDataTable {
1751
1753
  } }, h(FImage, { color: `var(${KupThemeColorValues.TITLE})`, resource: "settings", sizeX: "10px" })),
1752
1754
  this.renderCustomizePanel(),
1753
1755
  ]
1754
- : null, h("table", { key: '31305879e2f89950a611d5f6968b44b2929a7bdb', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
1756
+ : null, h("table", { key: '64529a2a31eb09dcfda1ee5b1cf70be5e30114cd', class: tableClass, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_tableRef, el, "f")), onKeyDown: (e) => __classPrivateFieldGet(this, _KupDataTable_onKupKeyDown, "f").call(this, e), onMouseLeave: (ev) => {
1755
1757
  ev.stopPropagation();
1756
1758
  }, onPointerDown: (e) => {
1757
1759
  __classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
@@ -1759,7 +1761,7 @@ export class KupDataTable {
1759
1761
  __classPrivateFieldSet(this, _KupDataTable_lastPointerDetails, __classPrivateFieldGet(this, _KupDataTable_instances, "m", _KupDataTable_getEventDetails).call(this, __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").getEventPath(e.target, this.rootElement), e), "f");
1760
1762
  }, onContextMenu: (e) => {
1761
1763
  e.preventDefault();
1762
- } }, h("thead", { key: '58519882fed4f56f6e391777be49883d6d809619', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '586a3cd08234f259408bf88b8b417f2b0ea826ac' }, header)), h("tbody", { key: '2130a9f01980f50c553ad98b68eb10a40c7e25c8' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
1764
+ } }, h("thead", { key: 'de85db55dddeb79d7708fe5b4072b0fcbeabdbaa', hidden: !this.showHeader, ref: (el) => (__classPrivateFieldSet(this, _KupDataTable_theadRef, el, "f")) }, h("tr", { key: '6476d8257a3058b80a1fb5561122d4c4371406d9' }, header)), h("tbody", { key: '9482c27af9beca0f4c233b90c8ce7a5bac264b84' }, rows), this.showFooter && this.renderFooter()), stickyEl), paginatorBottom)));
1763
1765
  __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").perfMonitoring.measure('componentRender', 'kup-data-table');
1764
1766
  return compCreated;
1765
1767
  }
@@ -4724,7 +4726,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
4724
4726
  }
4725
4727
  return somethingChanged;
4726
4728
  }, _KupDataTable_insertNewColumnInVisibleColumnsList = function _KupDataTable_insertNewColumnInVisibleColumnsList(result, afterColumn) {
4727
- this.visibleColumns = this.getVisibleColumns().map((col) => col.name);
4729
+ this.visibleColumns = this.getVisibleColumns({
4730
+ includeCodVer: true,
4731
+ }).map((col) => col.name);
4728
4732
  if (typeof result !== 'string') {
4729
4733
  if (this.visibleColumns.findIndex((c) => c === result.name) < 0) {
4730
4734
  __classPrivateFieldGet(this, _KupDataTable_kupManager, "f").debug.logMessage(this, 'New column [' +
@@ -6484,7 +6488,9 @@ _KupDataTable_initialized = new WeakMap(), _KupDataTable_rows = new WeakMap(), _
6484
6488
  }
6485
6489
  else {
6486
6490
  // Adds the sorted column to visibleColumns to preserve the current column order.
6487
- this.visibleColumns = this.getVisibleColumns().map((c) => c.name);
6491
+ this.visibleColumns = this.getVisibleColumns({
6492
+ includeCodVer: true,
6493
+ }).map((c) => c.name);
6488
6494
  }
6489
6495
  }, _KupDataTable_moveSortedColumns = function _KupDataTable_moveSortedColumns(columns, receivingColumnIndex, sortedColumnIndex) {
6490
6496
  const remove = columns.splice(sortedColumnIndex, 1);
@@ -6,7 +6,7 @@ export const LEFT_MULTIPLIER = 1.15; // Multiplier commanding the left attribute
6
6
  export const ADDITIONAL_WIDTH_WITH_ICON = 18; // Additional width added to account for the shape's icon (ACP,CAL,CMB)
7
7
  // Char sizes
8
8
  export const FONT_SIZE = 12; // Monospace font size of the INP
9
- export const FONT_SIZE_TO_WIDTH_RATIO = 1.6; // FontSize to SingleCharWidth ratio
9
+ export const FONT_SIZE_TO_WIDTH_RATIO = 1.4; // FontSize to SingleCharWidth ratio
10
10
  export const CHAR_WIDTH = FONT_SIZE / FONT_SIZE_TO_WIDTH_RATIO; // Used for field width and left attribute
11
11
  export const getAbsoluteWidth = (length, graphicShapeHasIcon) => {
12
12
  if (length == 0) {
@@ -16,7 +16,8 @@ export const getAbsoluteWidth = (length, graphicShapeHasIcon) => {
16
16
  return null;
17
17
  }
18
18
  if (length === 1) {
19
- return 1.5 * CHAR_WIDTH;
19
+ return (1.5 * CHAR_WIDTH +
20
+ (graphicShapeHasIcon ? ADDITIONAL_WIDTH_WITH_ICON : 0));
20
21
  }
21
22
  return (length * CHAR_WIDTH +
22
23
  (graphicShapeHasIcon ? ADDITIONAL_WIDTH_WITH_ICON : 0) +
@@ -272,7 +272,7 @@ export class KupInputPanel {
272
272
  h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
273
273
  ]
274
274
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
275
- return (h(Host, { key: '188847543efd6501f54e34334d790981c80d6437', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
275
+ return (h(Host, { key: '3cc39141d1ecd12ffb4775e41d5f655cc522e672', "onKup-cell-blur": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.BLUR), "onKup-cell-update": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_onCellUpdate).bind(this), "onKup-tabbar-click": (e) => {
276
276
  this.tabSelected = e.detail.node.id;
277
277
  }, "onKup-autocomplete-input": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-autocomplete-iconclick": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).bind(this), "onKup-combobox-iconclick": (e) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getOptionHandler).call(this, e, true), "onKup-cell-itemclick": (e) => {
278
278
  __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_manageInputPanelCheck).call(this, e, CheckTriggeringEvents.ITEMCLICK);
@@ -282,7 +282,7 @@ export class KupInputPanel {
282
282
  this.kupInputPanelObjectFieldOpenSearchMenu.emit(e.detail);
283
283
  }, "onKup-objectfield-selectedmenuitem": (e) => {
284
284
  this.kupInputPanelObjectFieldSelectedMenuItem.emit(e.detail);
285
- }, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: '25aef88421cc55cb402fb428ac128b1ee5a423df' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '210fdcc650406ba3673bbfe8488c38ce2a961b46', id: componentWrapperId }, inputPanelContent)));
285
+ }, "onKup-file-upload-upload": __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_upload).bind(this) }, h("style", { key: '8e06ec2438e3db35ff94bf7b19f190c0b4a2d9f6' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'b66e6cdd524d526f3428c9c77f4d079716eb1183', id: componentWrapperId }, inputPanelContent)));
286
286
  }
287
287
  disconnectedCallback() {
288
288
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -1169,7 +1169,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1169
1169
  const value = isFormattableType
1170
1170
  ? getCellValueForDisplay(column, cell)
1171
1171
  : cell.value;
1172
- return (h("span", { class: classList.join(' '), id: column.name }, h(FLabel, { text: value })));
1172
+ return (h("span", { class: classList.join(' '), id: column.name }, h(FLabel, { style: cell.style, text: value })));
1173
1173
  }, _KupInputPanel_getLabelComponent = function _KupInputPanel_getLabelComponent(cell, label) {
1174
1174
  if (!label) {
1175
1175
  return null;
@@ -1364,7 +1364,9 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
1364
1364
  }
1365
1365
  const absoluteWidth = fieldCell.cell.shape === FCellShapes.LABEL
1366
1366
  ? getLabelAbsoluteWidth(length)
1367
- : getAbsoluteWidth(length, graphicShapeHasIcon(fieldCell.cell.shape));
1367
+ : fieldCell.cell.shape === FCellShapes.CHECKBOX
1368
+ ? 15
1369
+ : getAbsoluteWidth(length, graphicShapeHasIcon(fieldCell.cell.shape));
1368
1370
  const absoluteHeight = getAbsoluteHeight(field.absoluteHeight);
1369
1371
  const absoluteTop = getAbsoluteTop(field.absoluteRow, absoluteTblPositioningData);
1370
1372
  const absoluteLeft = getAbsoluteLeft(field.absoluteColumn);
@@ -620,7 +620,7 @@ function setCell(cellType, subcomponentProps, content, classObj, cell, column, p
620
620
  subcomponentProps['disabled'] = true;
621
621
  return h(FSwitch, Object.assign({}, subcomponentProps));
622
622
  case FCellTypes.LABEL:
623
- return h(FLabel, { text: cell.value, classes: "f-cell__text" });
623
+ return h(FLabel, { style: cell.style, text: cell.value, classes: "f-cell__text" });
624
624
  case FCellTypes.IMAGE_LIST:
625
625
  const activeNode = cell.data.data.find((node) => node.value === cell.value) || null;
626
626
  return (h("kup-image-list", Object.assign({ ripple: true }, cell.data, { "onKup-imagelist-click": (e) => cellEvent(e, props, cellType, FCellEvents.UPDATE), activeNode: activeNode })));
@@ -8,11 +8,11 @@ function getVNodes(parsedElements) {
8
8
  return e.closed ? (h("span", { style: style }, e.content)) : (h("span", null, `${(_b = e.tag) !== null && _b !== void 0 ? _b : ''}${e.content}`));
9
9
  });
10
10
  }
11
- export const FLabel = ({ text, classes }) => {
11
+ export const FLabel = ({ style, text, classes, }) => {
12
12
  const parsedElements = getParsedElements(text);
13
13
  // To avoid creating unnecessary span in the text
14
14
  // when there are no tags to format the content
15
- return (h("span", { class: classes }, parsedElements.find((p) => p.tag !== undefined)
15
+ return (h("span", { class: classes, style: style }, parsedElements.find((p) => p.tag !== undefined)
16
16
  ? getVNodes(parsedElements)
17
17
  : text));
18
18
  };
@@ -3,7 +3,7 @@ import { FChipType, } from "../../f-components/f-chip/f-chip-declarations";
3
3
  import { KupDataNewColumnTypes, } from "../../managers/kup-data/kup-data-declarations";
4
4
  import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
5
5
  import { KupDynamicPositionPlacement, } from "../../managers/kup-dynamic-position/kup-dynamic-position-declarations";
6
- import { KupLanguageCheckbox, KupLanguageColumn, KupLanguageGeneric, KupLanguageGrouping, KupLanguageRow, KupLanguageSearch, KupLanguageTotals, } from "../../managers/kup-language/kup-language-declarations";
6
+ import { KupLanguageCheckbox, KupLanguageColumn, KupLanguageGeneric, KupLanguageGrouping, KupLanguageRow, KupLanguageSearch, } from "../../managers/kup-language/kup-language-declarations";
7
7
  import { getValueForDisplay, getValueForDisplay2 } from "../cell-utils";
8
8
  import { Filters } from "../filters/filters";
9
9
  import { FiltersColumnMenu } from "../filters/filters-column-menu";
@@ -383,8 +383,9 @@ export class KupColumnMenu {
383
383
  icon: 'functions',
384
384
  id: KupColumnMenuIds.TEXTFIELD_FORMULA,
385
385
  key: KupColumnMenuIds.TEXTFIELD_FORMULA + column.name,
386
- helper: `i.e.: Description;[${column.name}] * 2`,
387
- label: dom.ketchup.language.translate(KupLanguageTotals.FORMULA),
386
+ helper: `Adds a new computed column with title 'Description'\nwhere each cell has 2 times the value of ${column.name} cell`,
387
+ label: 'Compute Column',
388
+ placeholder: `Description;[${column.name}] * 2`,
388
389
  trailingIcon: true,
389
390
  });
390
391
  }
@@ -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
2
  import { k as kupManagerInstance, a as KupComponentSizing, g as getProps, s as setProps, b as KupThemeIconValues, c as KupThemeColorValues, d as KupDynamicPositionPlacement } from './p-a42dc353.js';
3
- import { M as MDCRipple, F as FImage, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, D as defineCustomElement$u, E as defineCustomElement$v } from './p-45333a69.js';
3
+ import { M as MDCRipple, F as FImage, c as componentWrapperId, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, D as defineCustomElement$u, E as defineCustomElement$v } from './p-ba6132b3.js';
4
4
 
5
5
  /**
6
6
  * Props of the kup-accordion component.
@@ -1,6 +1,6 @@
1
1
  import { p as proxyCustomElement, H, c as createEvent, f as forceUpdate, h, F as Fragment, d as Host } from './p-ef8cbd35.js';
2
2
  import { k as kupManagerInstance, g as getProps, s as setProps, u as KupDebugCategory, n as getCellValueForDisplay } from './p-a42dc353.js';
3
- import { c as componentWrapperId, G as sortRows, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, D as defineCustomElement$u, E as defineCustomElement$v, F as FImage } from './p-45333a69.js';
3
+ import { c as componentWrapperId, G as sortRows, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$g, q as defineCustomElement$h, r as defineCustomElement$i, s as defineCustomElement$j, t as defineCustomElement$k, u as defineCustomElement$l, v as defineCustomElement$m, w as defineCustomElement$n, x as defineCustomElement$o, y as defineCustomElement$p, z as defineCustomElement$q, A as defineCustomElement$r, B as defineCustomElement$s, C as defineCustomElement$t, D as defineCustomElement$u, E as defineCustomElement$v, F as FImage } from './p-ba6132b3.js';
4
4
 
5
5
  var KupActivityTimelineProps;
6
6
  (function (KupActivityTimelineProps) {
@@ -1,4 +1,4 @@
1
- import { K as KupAutocomplete$1, E as defineCustomElement$1 } from './p-45333a69.js';
1
+ import { K as KupAutocomplete$1, E as defineCustomElement$1 } from './p-ba6132b3.js';
2
2
 
3
3
  const KupAutocomplete = KupAutocomplete$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { H as KupBadge$1, D as defineCustomElement$1 } from './p-45333a69.js';
1
+ import { H as KupBadge$1, D as defineCustomElement$1 } from './p-ba6132b3.js';
2
2
 
3
3
  const KupBadge = KupBadge$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { K as KupBox$1, d as defineCustomElement$1 } from './p-c6eba054.js';
1
+ import { K as KupBox$1, d as defineCustomElement$1 } from './p-cd1fbb3a.js';
2
2
 
3
3
  const KupBox = KupBox$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { T as KupButtonList$1, B as defineCustomElement$1 } from './p-45333a69.js';
1
+ import { T as KupButtonList$1, B as defineCustomElement$1 } from './p-ba6132b3.js';
2
2
 
3
3
  const KupButtonList = KupButtonList$1;
4
4
  const defineCustomElement = defineCustomElement$1;
@@ -1,4 +1,4 @@
1
- import { S as KupButton$1, C as defineCustomElement$1 } from './p-45333a69.js';
1
+ import { S as KupButton$1, C as defineCustomElement$1 } from './p-ba6132b3.js';
2
2
 
3
3
  const KupButton = KupButton$1;
4
4
  const defineCustomElement = defineCustomElement$1;