@sme.up/ketchup 11.0.0-SNAPSHOT-20241128165949 → 11.0.0-SNAPSHOT-20241129144428

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 (45) hide show
  1. package/dist/cjs/{f-cell-9f60ccb8.js → f-cell-6e92a406.js} +2 -2
  2. package/dist/cjs/f-cell-6e92a406.js.map +1 -0
  3. package/dist/cjs/kup-autocomplete_28.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 +1 -1
  6. package/dist/cjs/kup-image-list.cjs.entry.js +1 -1
  7. package/dist/cjs/kup-input-panel.cjs.entry.js +10 -6
  8. package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
  9. package/dist/collection/assets/calendar.js +4 -4
  10. package/dist/collection/assets/data-table.js +8 -8
  11. package/dist/collection/components/kup-input-panel/kup-input-panel.css +3 -0
  12. package/dist/collection/components/kup-input-panel/kup-input-panel.js +10 -5
  13. package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
  14. package/dist/collection/f-components/f-cell/f-cell.js +1 -1
  15. package/dist/collection/f-components/f-cell/f-cell.js.map +1 -1
  16. package/dist/components/kup-autocomplete2.js +1 -1
  17. package/dist/components/kup-autocomplete2.js.map +1 -1
  18. package/dist/components/kup-input-panel.js +9 -5
  19. package/dist/components/kup-input-panel.js.map +1 -1
  20. package/dist/esm/{f-cell-4b8129d5.js → f-cell-bf2f63a8.js} +2 -2
  21. package/dist/esm/f-cell-bf2f63a8.js.map +1 -0
  22. package/dist/esm/kup-autocomplete_28.entry.js +1 -1
  23. package/dist/esm/kup-box.entry.js +1 -1
  24. package/dist/esm/kup-cell.entry.js +1 -1
  25. package/dist/esm/kup-image-list.entry.js +1 -1
  26. package/dist/esm/kup-input-panel.entry.js +10 -6
  27. package/dist/esm/kup-input-panel.entry.js.map +1 -1
  28. package/dist/ketchup/ketchup.esm.js +1 -1
  29. package/dist/ketchup/p-54e984ca.entry.js +2 -0
  30. package/dist/ketchup/p-54e984ca.entry.js.map +1 -0
  31. package/dist/ketchup/{p-caa70779.entry.js → p-7e994945.entry.js} +2 -2
  32. package/dist/ketchup/{p-3f141611.entry.js → p-91f3e313.entry.js} +2 -2
  33. package/dist/ketchup/{p-8afa9473.entry.js → p-c76cd6bd.entry.js} +2 -2
  34. package/dist/ketchup/{p-c3f65052.entry.js → p-cab51c5f.entry.js} +2 -2
  35. package/dist/ketchup/{p-8cbd8be4.js → p-f53792c4.js} +2 -2
  36. package/dist/ketchup/{p-8cbd8be4.js.map → p-f53792c4.js.map} +1 -1
  37. package/package.json +1 -1
  38. package/dist/cjs/f-cell-9f60ccb8.js.map +0 -1
  39. package/dist/esm/f-cell-4b8129d5.js.map +0 -1
  40. package/dist/ketchup/p-d9b99aec.entry.js +0 -2
  41. package/dist/ketchup/p-d9b99aec.entry.js.map +0 -1
  42. /package/dist/ketchup/{p-caa70779.entry.js.map → p-7e994945.entry.js.map} +0 -0
  43. /package/dist/ketchup/{p-3f141611.entry.js.map → p-91f3e313.entry.js.map} +0 -0
  44. /package/dist/ketchup/{p-8afa9473.entry.js.map → p-c76cd6bd.entry.js.map} +0 -0
  45. /package/dist/ketchup/{p-c3f65052.entry.js.map → p-cab51c5f.entry.js.map} +0 -0
@@ -499,9 +499,9 @@ const completeData = {
499
499
  k: 'CN;COL;Customers module',
500
500
  },
501
501
  data: {
502
- resource: 'https://via.placeholder.com/64?text=PF',
502
+ resource: 'https://placehold.co/64?text=PF',
503
503
  },
504
- value: 'https://via.placeholder.com/64?text=PF',
504
+ value: 'https://placehold.co/64?text=PF',
505
505
  },
506
506
  KNOB: {
507
507
  obj: {
@@ -519,11 +519,11 @@ const completeData = {
519
519
  cssClass: '',
520
520
  isEditable: true,
521
521
  obj: {
522
- k: 'https://via.placeholder.com/64?text=PF',
522
+ k: 'https://placehold.co/64?text=PF',
523
523
  p: 'URL',
524
524
  t: 'J1',
525
525
  },
526
- value: 'https://via.placeholder.com/64?text=PF',
526
+ value: 'https://placehold.co/64?text=PF',
527
527
  },
528
528
  NUMBER: {
529
529
  obj: {
@@ -124869,7 +124869,7 @@ const imageShapeTestData = {
124869
124869
  },
124870
124870
  shape: 'IMG',
124871
124871
  data: {
124872
- resource: 'https://via.placeholder.com/64?text=CUSTOM',
124872
+ resource: 'https://placehold.co/64?text=CUSTOM',
124873
124873
  badgeData: [
124874
124874
  {
124875
124875
  imageData: { resource: 'account' },
@@ -124896,7 +124896,7 @@ const imageShapeTestData = {
124896
124896
  },
124897
124897
  shape: 'IMG',
124898
124898
  data: {
124899
- resource: 'https://via.placeholder.com/64?text=CUSTOM',
124899
+ resource: 'https://placehold.co/64?text=CUSTOM',
124900
124900
  badgeData: [
124901
124901
  {
124902
124902
  imageData: { resource: 'account' },
@@ -124920,7 +124920,7 @@ const imageShapeTestData = {
124920
124920
  k: 'CN;COL;SANCOS',
124921
124921
  },
124922
124922
  data: {
124923
- resource: 'https://via.placeholder.com/64?text=SC',
124923
+ resource: 'https://placehold.co/64?text=SC',
124924
124924
  sizeX: '120px',
124925
124925
  sizeY: '120px',
124926
124926
  badgeData: [
@@ -124934,7 +124934,7 @@ const imageShapeTestData = {
124934
124934
  },
124935
124935
  ],
124936
124936
  },
124937
- value: 'https://via.placeholder.com/64?text=SC',
124937
+ value: 'https://placehold.co/64?text=SC',
124938
124938
  },
124939
124939
 
124940
124940
  DESCR: {
@@ -246,4 +246,7 @@
246
246
  display: flex;
247
247
  align-items: end;
248
248
  gap: 1rem;
249
+ }
250
+ :host .input-panel__typography {
251
+ padding: 1rem 2rem;
249
252
  }
@@ -35,7 +35,7 @@ import { FTextFieldMDC } from "../../f-components/f-text-field/f-text-field-mdc"
35
35
  import { KupDebugCategory } from "../../managers/kup-debug/kup-debug-declarations";
36
36
  import { KupLanguageGeneric } from "../../managers/kup-language/kup-language-declarations";
37
37
  import { kupManagerInstance, } from "../../managers/kup-manager/kup-manager";
38
- import { FTypographyType } from "../../f-components/f-typography/f-typography-declarations";
38
+ import { FTypographyType, } from "../../f-components/f-typography/f-typography-declarations";
39
39
  import { CHIAdapter, CHKAdapter, CMBandACPAdapter, RADAdapter, SWTAdapter, } from "../../utils/cell-utils";
40
40
  import { getProps, setProps } from "../../utils/utils";
41
41
  import { componentWrapperId } from "../../variables/GenericVariables";
@@ -197,7 +197,7 @@ export class KupInputPanel {
197
197
  h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
198
198
  ]
199
199
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
200
- return (h(Host, { key: 'fc0407257eb6c02e4658f2486954c5b1af0432c6' }, h("style", { key: '17299502197b8deb7b571a3955ee627b07ebc634' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '4b900f0b0d6ff85eb287083b1f672d4f81d27a42', id: componentWrapperId }, inputPanelContent)));
200
+ return (h(Host, { key: 'ebe2852f37b948e01ee368e9420dbc0b27fda03b' }, h("style", { key: '0459b34b686414b2051d495d4f41683ee20c6dc1' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '2a9ecec7cc543519ccb079018a05cf8ee33e989b', id: componentWrapperId }, inputPanelContent)));
201
201
  }
202
202
  disconnectedCallback() {
203
203
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
@@ -639,10 +639,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
639
639
  return cell;
640
640
  }, null);
641
641
  }, _KupInputPanel_renderRow = function _KupInputPanel_renderRow(inputPanelCell) {
642
- var _a;
642
+ var _a, _b;
643
643
  const layout = inputPanelCell.row.layout;
644
644
  const horizontal = (layout === null || layout === void 0 ? void 0 : layout.horizontal) || false;
645
645
  const styleObj = {};
646
+ const styleTypographyObj = {};
646
647
  let rowContent;
647
648
  if (!((_a = layout === null || layout === void 0 ? void 0 : layout.sections) === null || _a === void 0 ? void 0 : _a.length)) {
648
649
  rowContent = inputPanelCell.cells.map((cell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderCell).call(this, cell.cell, inputPanelCell.row, cell.column));
@@ -695,7 +696,11 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
695
696
  [`input-panel__commands--${this.buttonPosition}`]: true,
696
697
  };
697
698
  // We create a form for each row in data
698
- return (h("form", { name: this.rootElement.id, id: this.rootElement.id, class: inputPanelClass, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
699
+ const props = {
700
+ value: (_b = layout.sections[0]) === null || _b === void 0 ? void 0 : _b.title,
701
+ type: FTypographyType.LABEL,
702
+ };
703
+ return (h("div", null, h("form", { name: this.rootElement.id, id: this.rootElement.id, class: inputPanelClass, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
699
704
  e.preventDefault();
700
705
  this.submitCb({
701
706
  value: {
@@ -705,7 +710,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(
705
710
  });
706
711
  }, onContextMenu: (e) => {
707
712
  e.preventDefault();
708
- } }, h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: commandsClass }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands)));
713
+ } }, h("div", { class: "input-panel__typography" }, h(FTypography, Object.assign({}, props))), h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: commandsClass }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands))));
709
714
  }, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
710
715
  if (!cell) {
711
716
  return;