@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.
- package/dist/cjs/kup-input-panel.cjs.entry.js +5 -5
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel-declarations.js.map +1 -1
- package/dist/collection/components/kup-input-panel/kup-input-panel.js +4 -4
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/components/kup-input-panel.js +5 -5
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/esm/kup-input-panel.entry.js +5 -5
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-18faef7f.entry.js +2 -0
- package/dist/ketchup/p-18faef7f.entry.js.map +1 -0
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +1 -1
- package/package.json +1 -1
- package/dist/ketchup/p-a5036446.entry.js +0 -2
- package/dist/ketchup/p-a5036446.entry.js.map +0 -1
|
@@ -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["
|
|
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: '
|
|
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);
|