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