@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
|
@@ -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["
|
|
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: '
|
|
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);
|