@sme.up/ketchup 11.0.0-SNAPSHOT-20241205094300 → 11.0.0-SNAPSHOT-20241205133449

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.
@@ -27,7 +27,7 @@ var KupInputPanelProps;
27
27
  KupInputPanelProps["optionsHandler"] = "Sets the callback function to recieve options";
28
28
  KupInputPanelProps["buttonPosition"] = "Manage the position of the buttons related to the input panel content. It is an enumeration";
29
29
  KupInputPanelProps["inputPanelPosition"] = "Manage the global layout of the input panel fields. The default is COLUMNS.";
30
- KupInputPanelProps["autofocus"] = "Sets whether the first input should receive focus.";
30
+ KupInputPanelProps["autoFocus"] = "Sets whether the first input should receive focus.";
31
31
  })(KupInputPanelProps || (KupInputPanelProps = {}));
32
32
  var KupInputPanelPosition;
33
33
  (function (KupInputPanelPosition) {
@@ -278,15 +278,15 @@ const KupInputPanel = class {
278
278
  __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_didLoadInteractables).call(this);
279
279
  this.kupReady.emit({ comp: this, id: this.rootElement.id });
280
280
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
281
+ if (__classPrivateFieldGet(this, _KupInputPanel_formRef, "f") && this.autoFocus) {
282
+ __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setFocusOnFirstInput).call(this);
283
+ }
281
284
  }
282
285
  componentWillRender() {
283
286
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logRender(this, false);
284
287
  }
285
288
  componentDidRender() {
286
289
  if (__classPrivateFieldGet(this, _KupInputPanel_formRef, "f")) {
287
- if (this.autoFocus) {
288
- __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_setFocusOnFirstInput).call(this);
289
- }
290
290
  const fs = __classPrivateFieldGet(this, _KupInputPanel_formRef, "f").querySelectorAll('.f-text-field');
291
291
  for (let index = 0; index < fs.length; index++) {
292
292
  FTextFieldMDC(fs[index]);
@@ -301,7 +301,7 @@ const KupInputPanel = class {
301
301
  h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
302
302
  ]
303
303
  : this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
304
- return (h(Host, { key: '44815ad08766ad491f754b7c03b82be14a0ccd89' }, h("style", { key: '43667bb1456faefe075e432675a39d3c2d8287e9' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '4ec63fd34b8b112e2a78ae0a33f7c2d277ff43e0', id: componentWrapperId }, inputPanelContent)));
304
+ return (h(Host, { key: 'a2ef6d22997dcc13f0416c6df7cda032d0b59fe8' }, h("style", { key: '2e3d94c59dbd4b71c972fef2c6c5e64b288c85ba' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: '352412de8ed64e2c37ab1d8488bb91b186a4e160', id: componentWrapperId }, inputPanelContent)));
305
305
  }
306
306
  disconnectedCallback() {
307
307
  __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);