@sme.up/ketchup 11.0.0-SNAPSHOT-20241120170010 → 11.0.0-SNAPSHOT-20241125085638
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/f-text-field-37b62800.js.map +1 -1
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js +1 -1
- package/dist/cjs/kup-autocomplete_28.cjs.entry.js.map +1 -1
- package/dist/cjs/kup-input-panel.cjs.entry.js +46 -5
- package/dist/cjs/kup-input-panel.cjs.entry.js.map +1 -1
- package/dist/collection/assets/input-panel-tooltip.js +90 -0
- package/dist/collection/components/kup-card/kup-card.css +5 -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 +67 -5
- package/dist/collection/components/kup-input-panel/kup-input-panel.js.map +1 -1
- package/dist/collection/f-components/f-text-field/f-text-field.js.map +1 -1
- package/dist/components/kup-autocomplete2.js +1 -1
- package/dist/components/kup-autocomplete2.js.map +1 -1
- package/dist/components/kup-input-panel.js +47 -6
- package/dist/components/kup-input-panel.js.map +1 -1
- package/dist/esm/f-text-field-5321c07c.js.map +1 -1
- package/dist/esm/kup-autocomplete_28.entry.js +1 -1
- package/dist/esm/kup-autocomplete_28.entry.js.map +1 -1
- package/dist/esm/kup-input-panel.entry.js +47 -6
- package/dist/esm/kup-input-panel.entry.js.map +1 -1
- package/dist/ketchup/ketchup.esm.js +1 -1
- package/dist/ketchup/p-02f7124b.entry.js +2 -0
- package/dist/ketchup/p-02f7124b.entry.js.map +1 -0
- package/dist/ketchup/p-1b0a93c3.entry.js +9 -0
- package/dist/ketchup/{p-0449cbb8.entry.js.map → p-1b0a93c3.entry.js.map} +1 -1
- package/dist/ketchup/p-22f4d21b.js.map +1 -1
- package/dist/types/components/kup-input-panel/kup-input-panel-declarations.d.ts +10 -1
- package/dist/types/components/kup-input-panel/kup-input-panel.d.ts +5 -1
- package/dist/types/components.d.ts +7 -2
- package/package.json +1 -1
- package/dist/ketchup/p-0449cbb8.entry.js +0 -9
- package/dist/ketchup/p-343243fd.entry.js +0 -2
- package/dist/ketchup/p-343243fd.entry.js.map +0 -1
|
@@ -94,12 +94,13 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
94
94
|
}
|
|
95
95
|
return t;
|
|
96
96
|
};
|
|
97
|
-
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_eventBlurNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_checkOnBlurProp, _KupInputPanel_checkOnBlurEvent, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN;
|
|
97
|
+
var _KupInputPanel_instances, _KupInputPanel_kupManager, _KupInputPanel_formRef, _KupInputPanel_optionsAdapterMap, _KupInputPanel_originalData, _KupInputPanel_eventNames, _KupInputPanel_eventBlurNames, _KupInputPanel_listeners, _KupInputPanel_cellTypeComponents, _KupInputPanel_cellCustomRender, _KupInputPanel_sectionRenderMap, _KupInputPanel_keysShortcut, _KupInputPanel_getCell, _KupInputPanel_renderRow, _KupInputPanel_renderCell, _KupInputPanel_renderButton, _KupInputPanel_renderDropDownButton, _KupInputPanel_renderEditor, _KupInputPanel_renderDataTable, _KupInputPanel_renderLabel, _KupInputPanel_getLabelComponent, _KupInputPanel_renderGridLayout, _KupInputPanel_renderAbsoluteLayout, _KupInputPanel_renderSection, _KupInputPanel_renderAbsoluteSection, _KupInputPanel_extractContentIds, _KupInputPanel_renderSectionTab, _KupInputPanel_renderField, _KupInputPanel_renderAbsoluteField, _KupInputPanel_mapCommands, _KupInputPanel_mapCells, _KupInputPanel_setData, _KupInputPanel_deepObjectsMerge, _KupInputPanel_reverseMapCells, _KupInputPanel_mapData, _KupInputPanel_slotData, _KupInputPanel_CHIAdapter, _KupInputPanel_GRAAdapter, _KupInputPanel_BTNAdapter, _KupInputPanel_CMBandACPAdapter, _KupInputPanel_CHKAdapter, _KupInputPanel_CLPAdapter, _KupInputPanel_EDTAdapter, _KupInputPanel_ITXAdapter, _KupInputPanel_RADAdapter, _KupInputPanel_SWTAdapter, _KupInputPanel_DateAdapter, _KupInputPanel_ObjectAdapter, _KupInputPanel_TimeAdapter, _KupInputPanel_NumberAdapter, _KupInputPanel_DataTableAdapter, _KupInputPanel_getTableUpdatedCell, _KupInputPanel_optionsTreeComboAdapter, _KupInputPanel_treeOptionsNodeAdapter, _KupInputPanel_dataTreeOptionsChildrenAdapter, _KupInputPanel_tableOptionsAdapter, _KupInputPanel_commandAdapter, _KupInputPanel_getAutocompleteEventCallback, _KupInputPanel_checkOnBlurProp, _KupInputPanel_checkOnBlurEvent, _KupInputPanel_setCellError, _KupInputPanel_areValuesUpdated, _KupInputPanel_getFunctionOnClickBTN, _KupInputPanel_getEventDetails, _KupInputPanel_contextMenuHandler, _KupInputPanel_didLoadInteractables;
|
|
98
98
|
const dom = document.documentElement;
|
|
99
99
|
const KupInputPanel = class {
|
|
100
100
|
constructor(hostRef) {
|
|
101
101
|
index.registerInstance(this, hostRef);
|
|
102
102
|
this.kupReady = index.createEvent(this, "kup-input-panel-ready", 6);
|
|
103
|
+
this.kupDataTableContextMenu = index.createEvent(this, "kup-inputpanel-contextmenu", 6);
|
|
103
104
|
_KupInputPanel_instances.add(this);
|
|
104
105
|
//#endregion
|
|
105
106
|
//#region VARIABLES
|
|
@@ -107,6 +108,7 @@ const KupInputPanel = class {
|
|
|
107
108
|
/* I n t e r n a l V a r i a b l e s */
|
|
108
109
|
/*-------------------------------------------------*/
|
|
109
110
|
_KupInputPanel_kupManager.set(this, kupManager.kupManagerInstance());
|
|
111
|
+
_KupInputPanel_formRef.set(this, void 0);
|
|
110
112
|
_KupInputPanel_optionsAdapterMap.set(this, new Map([
|
|
111
113
|
['SmeupTreeNode', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_treeOptionsNodeAdapter).bind(this)],
|
|
112
114
|
['SmeupDataTree', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_dataTreeOptionsChildrenAdapter).bind(this)],
|
|
@@ -182,7 +184,9 @@ const KupInputPanel = class {
|
|
|
182
184
|
});
|
|
183
185
|
__classPrivateFieldSet(this, _KupInputPanel_keysShortcut, [], "f");
|
|
184
186
|
}
|
|
185
|
-
|
|
187
|
+
if (this.data) {
|
|
188
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
|
|
189
|
+
}
|
|
186
190
|
}
|
|
187
191
|
//#endregion
|
|
188
192
|
//#region PUBLIC METHODS
|
|
@@ -222,6 +226,7 @@ const KupInputPanel = class {
|
|
|
222
226
|
this.onDataChanged();
|
|
223
227
|
}
|
|
224
228
|
componentDidLoad() {
|
|
229
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_didLoadInteractables).call(this);
|
|
225
230
|
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
226
231
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
|
|
227
232
|
}
|
|
@@ -245,7 +250,7 @@ const KupInputPanel = class {
|
|
|
245
250
|
index.h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.EMPTY_DATA)),
|
|
246
251
|
]
|
|
247
252
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
248
|
-
return (index.h(index.Host, { key: '
|
|
253
|
+
return (index.h(index.Host, { key: '0b29c3e2c24a83ef82f3d2c15a468e386a4b911a' }, index.h("style", { key: '11db937588ef8530336807aebe8d83046df0ba41' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), index.h("div", { key: 'fbfd8854ee9e85f57676e46bd7abbb40f1aef21c', id: GenericVariables.componentWrapperId }, inputPanelContent)));
|
|
249
254
|
}
|
|
250
255
|
disconnectedCallback() {
|
|
251
256
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -256,7 +261,7 @@ const KupInputPanel = class {
|
|
|
256
261
|
"data": ["onDataChanged"]
|
|
257
262
|
}; }
|
|
258
263
|
};
|
|
259
|
-
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_eventBlurNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
|
|
264
|
+
_KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_formRef = new WeakMap(), _KupInputPanel_optionsAdapterMap = new WeakMap(), _KupInputPanel_originalData = new WeakMap(), _KupInputPanel_eventNames = new WeakMap(), _KupInputPanel_eventBlurNames = new WeakMap(), _KupInputPanel_listeners = new WeakMap(), _KupInputPanel_cellTypeComponents = new WeakMap(), _KupInputPanel_cellCustomRender = new WeakMap(), _KupInputPanel_sectionRenderMap = new WeakMap(), _KupInputPanel_keysShortcut = new WeakMap(), _KupInputPanel_instances = new WeakSet(), _KupInputPanel_getCell = function _KupInputPanel_getCell(id) {
|
|
260
265
|
return this.inputPanelCells.reduce((cell, { cells }) => {
|
|
261
266
|
if (!cell) {
|
|
262
267
|
return cells.find(({ column }) => column.name === id).cell;
|
|
@@ -308,7 +313,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
308
313
|
'input-panel--absolute': layout === null || layout === void 0 ? void 0 : layout.absolute,
|
|
309
314
|
};
|
|
310
315
|
// We create a form for each row in data
|
|
311
|
-
return (index.h("form", { name: this.rootElement.id, id: this.rootElement.id, class: { 'input-panel-form': true }, onSubmit: (e) => {
|
|
316
|
+
return (index.h("form", { name: this.rootElement.id, id: this.rootElement.id, class: { 'input-panel-form': true }, ref: (el) => (__classPrivateFieldSet(this, _KupInputPanel_formRef, el, "f")), onSubmit: (e) => {
|
|
312
317
|
e.preventDefault();
|
|
313
318
|
this.submitCb({
|
|
314
319
|
value: {
|
|
@@ -316,6 +321,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
316
321
|
after: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
317
322
|
},
|
|
318
323
|
});
|
|
324
|
+
}, onContextMenu: (e) => {
|
|
325
|
+
e.preventDefault();
|
|
319
326
|
} }, index.h("div", { class: classObj, style: styleObj }, rowContent), index.h("div", { class: "input-panel__commands" }, index.h(fButton.FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(kupManager.KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands)));
|
|
320
327
|
}, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
|
|
321
328
|
if (!cell) {
|
|
@@ -1118,6 +1125,40 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
1118
1125
|
},
|
|
1119
1126
|
cell: id,
|
|
1120
1127
|
});
|
|
1128
|
+
}, _KupInputPanel_getEventDetails = function _KupInputPanel_getEventDetails(path, originalEvent) {
|
|
1129
|
+
const fcell = path.find((p) => { var _a; return (_a = p.classList) === null || _a === void 0 ? void 0 : _a.contains('f-cell'); });
|
|
1130
|
+
if (fcell == null) {
|
|
1131
|
+
return;
|
|
1132
|
+
}
|
|
1133
|
+
const props = fcell['kup-get-cell-props']();
|
|
1134
|
+
const columnName = props.column.name;
|
|
1135
|
+
let anchor = fcell;
|
|
1136
|
+
let cell = this.data.rows[0].cells[columnName];
|
|
1137
|
+
let column = this.data.columns.find((c) => c.name == columnName);
|
|
1138
|
+
return {
|
|
1139
|
+
anchor,
|
|
1140
|
+
cell,
|
|
1141
|
+
column,
|
|
1142
|
+
originalEvent,
|
|
1143
|
+
};
|
|
1144
|
+
}, _KupInputPanel_contextMenuHandler = function _KupInputPanel_contextMenuHandler(e) {
|
|
1145
|
+
const eventPath = __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").getEventPath(e.target, this.rootElement);
|
|
1146
|
+
return __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getEventDetails).call(this, eventPath, e);
|
|
1147
|
+
}, _KupInputPanel_didLoadInteractables = function _KupInputPanel_didLoadInteractables() {
|
|
1148
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").interact.managedElements.add(__classPrivateFieldGet(this, _KupInputPanel_formRef, "f"));
|
|
1149
|
+
const tapCb = (e) => {
|
|
1150
|
+
if (e.button == 2) {
|
|
1151
|
+
const details = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_contextMenuHandler).call(this, e);
|
|
1152
|
+
if (details) {
|
|
1153
|
+
this.kupDataTableContextMenu.emit({
|
|
1154
|
+
comp: this,
|
|
1155
|
+
id: this.rootElement.id,
|
|
1156
|
+
details,
|
|
1157
|
+
});
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
};
|
|
1161
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupInputPanel_formRef, "f"), kupManager.KupPointerEventTypes.TAP, tapCb);
|
|
1121
1162
|
};
|
|
1122
1163
|
KupInputPanel.style = KupInputPanelStyle0;
|
|
1123
1164
|
|