@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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, forceUpdate, h, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { O as FTextFieldMDC, c as componentWrapperId, S as FButton, L as FCell, d as defineCustomElement$2, a as defineCustomElement$3, b as defineCustomElement$4, e as defineCustomElement$5, f as defineCustomElement$6, g as defineCustomElement$7, h as defineCustomElement$8, i as defineCustomElement$9, j as defineCustomElement$a, k as defineCustomElement$b, l as defineCustomElement$c, m as defineCustomElement$d, n as defineCustomElement$e, o as defineCustomElement$f, p as defineCustomElement$h, q as defineCustomElement$i, r as defineCustomElement$j, s as defineCustomElement$k, t as defineCustomElement$l, u as defineCustomElement$m, v as defineCustomElement$n, w as defineCustomElement$o, x as defineCustomElement$p, y as defineCustomElement$q, z as defineCustomElement$r, A as defineCustomElement$s, B as defineCustomElement$t, C as defineCustomElement$u } from './kup-autocomplete2.js';
|
|
3
|
-
import { k as kupManagerInstance, F as FCellTypes, i as FCellShapes, g as getProps, s as setProps, d as KupLanguageGeneric, O as CHIAdapter, C as CMBandACPAdapter, R as RADAdapter, S as SWTAdapter, p as KupDebugCategory, N as CHKAdapter } from './kup-manager.js';
|
|
3
|
+
import { k as kupManagerInstance, F as FCellTypes, i as FCellShapes, g as getProps, s as setProps, d as KupLanguageGeneric, O as CHIAdapter, C as CMBandACPAdapter, R as RADAdapter, S as SWTAdapter, p as KupDebugCategory, a1 as KupPointerEventTypes, N as CHKAdapter } from './kup-manager.js';
|
|
4
4
|
import { F as FTypography, a as FTypographyType } from './f-typography.js';
|
|
5
5
|
import { d as defineCustomElement$g } from './kup-editor2.js';
|
|
6
6
|
|
|
@@ -81,7 +81,7 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
81
81
|
}
|
|
82
82
|
return t;
|
|
83
83
|
};
|
|
84
|
-
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;
|
|
84
|
+
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;
|
|
85
85
|
const dom = document.documentElement;
|
|
86
86
|
const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel extends HTMLElement {
|
|
87
87
|
constructor() {
|
|
@@ -89,6 +89,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
89
89
|
this.__registerHost();
|
|
90
90
|
this.__attachShadow();
|
|
91
91
|
this.kupReady = createEvent(this, "kup-input-panel-ready", 6);
|
|
92
|
+
this.kupDataTableContextMenu = createEvent(this, "kup-inputpanel-contextmenu", 6);
|
|
92
93
|
_KupInputPanel_instances.add(this);
|
|
93
94
|
//#endregion
|
|
94
95
|
//#region VARIABLES
|
|
@@ -96,6 +97,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
96
97
|
/* I n t e r n a l V a r i a b l e s */
|
|
97
98
|
/*-------------------------------------------------*/
|
|
98
99
|
_KupInputPanel_kupManager.set(this, kupManagerInstance());
|
|
100
|
+
_KupInputPanel_formRef.set(this, void 0);
|
|
99
101
|
_KupInputPanel_optionsAdapterMap.set(this, new Map([
|
|
100
102
|
['SmeupTreeNode', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_treeOptionsNodeAdapter).bind(this)],
|
|
101
103
|
['SmeupDataTree', __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_dataTreeOptionsChildrenAdapter).bind(this)],
|
|
@@ -171,7 +173,9 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
171
173
|
});
|
|
172
174
|
__classPrivateFieldSet(this, _KupInputPanel_keysShortcut, [], "f");
|
|
173
175
|
}
|
|
174
|
-
|
|
176
|
+
if (this.data) {
|
|
177
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_mapCells).call(this, this.data);
|
|
178
|
+
}
|
|
175
179
|
}
|
|
176
180
|
//#endregion
|
|
177
181
|
//#region PUBLIC METHODS
|
|
@@ -211,6 +215,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
211
215
|
this.onDataChanged();
|
|
212
216
|
}
|
|
213
217
|
componentDidLoad() {
|
|
218
|
+
__classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_didLoadInteractables).call(this);
|
|
214
219
|
this.kupReady.emit({ comp: this, id: this.rootElement.id });
|
|
215
220
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").debug.logLoad(this, true);
|
|
216
221
|
}
|
|
@@ -234,7 +239,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
234
239
|
h("p", null, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.EMPTY_DATA)),
|
|
235
240
|
]
|
|
236
241
|
: this.inputPanelCells.map((inputPanelCell) => __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_renderRow).call(this, inputPanelCell));
|
|
237
|
-
return (h(Host, { key: '
|
|
242
|
+
return (h(Host, { key: '0b29c3e2c24a83ef82f3d2c15a468e386a4b911a' }, h("style", { key: '11db937588ef8530336807aebe8d83046df0ba41' }, __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").theme.setKupStyle(this.rootElement)), h("div", { key: 'fbfd8854ee9e85f57676e46bd7abbb40f1aef21c', id: componentWrapperId }, inputPanelContent)));
|
|
238
243
|
}
|
|
239
244
|
disconnectedCallback() {
|
|
240
245
|
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.unregister(this);
|
|
@@ -264,7 +269,7 @@ const KupInputPanel$1 = /*@__PURE__*/ proxyCustomElement(class KupInputPanel ext
|
|
|
264
269
|
}, undefined, {
|
|
265
270
|
"data": ["onDataChanged"]
|
|
266
271
|
}]);
|
|
267
|
-
_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) {
|
|
272
|
+
_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) {
|
|
268
273
|
return this.inputPanelCells.reduce((cell, { cells }) => {
|
|
269
274
|
if (!cell) {
|
|
270
275
|
return cells.find(({ column }) => column.name === id).cell;
|
|
@@ -316,7 +321,7 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
316
321
|
'input-panel--absolute': layout === null || layout === void 0 ? void 0 : layout.absolute,
|
|
317
322
|
};
|
|
318
323
|
// We create a form for each row in data
|
|
319
|
-
return (h("form", { name: this.rootElement.id, id: this.rootElement.id, class: { 'input-panel-form': true }, onSubmit: (e) => {
|
|
324
|
+
return (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) => {
|
|
320
325
|
e.preventDefault();
|
|
321
326
|
this.submitCb({
|
|
322
327
|
value: {
|
|
@@ -324,6 +329,8 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
324
329
|
after: __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_reverseMapCells).call(this),
|
|
325
330
|
},
|
|
326
331
|
});
|
|
332
|
+
}, onContextMenu: (e) => {
|
|
333
|
+
e.preventDefault();
|
|
327
334
|
} }, h("div", { class: classObj, style: styleObj }, rowContent), h("div", { class: "input-panel__commands" }, h(FButton, { buttonType: "submit", label: __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").language.translate(KupLanguageGeneric.CONFIRM), wrapperClass: "form__submit", invisible: this.hiddenSubmitButton }), this.inputPanelCommands)));
|
|
328
335
|
}, _KupInputPanel_renderCell = function _KupInputPanel_renderCell(cell, row, column) {
|
|
329
336
|
if (!cell) {
|
|
@@ -1126,6 +1133,40 @@ _KupInputPanel_kupManager = new WeakMap(), _KupInputPanel_optionsAdapterMap = ne
|
|
|
1126
1133
|
},
|
|
1127
1134
|
cell: id,
|
|
1128
1135
|
});
|
|
1136
|
+
}, _KupInputPanel_getEventDetails = function _KupInputPanel_getEventDetails(path, originalEvent) {
|
|
1137
|
+
const fcell = path.find((p) => { var _a; return (_a = p.classList) === null || _a === void 0 ? void 0 : _a.contains('f-cell'); });
|
|
1138
|
+
if (fcell == null) {
|
|
1139
|
+
return;
|
|
1140
|
+
}
|
|
1141
|
+
const props = fcell['kup-get-cell-props']();
|
|
1142
|
+
const columnName = props.column.name;
|
|
1143
|
+
let anchor = fcell;
|
|
1144
|
+
let cell = this.data.rows[0].cells[columnName];
|
|
1145
|
+
let column = this.data.columns.find((c) => c.name == columnName);
|
|
1146
|
+
return {
|
|
1147
|
+
anchor,
|
|
1148
|
+
cell,
|
|
1149
|
+
column,
|
|
1150
|
+
originalEvent,
|
|
1151
|
+
};
|
|
1152
|
+
}, _KupInputPanel_contextMenuHandler = function _KupInputPanel_contextMenuHandler(e) {
|
|
1153
|
+
const eventPath = __classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").getEventPath(e.target, this.rootElement);
|
|
1154
|
+
return __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_getEventDetails).call(this, eventPath, e);
|
|
1155
|
+
}, _KupInputPanel_didLoadInteractables = function _KupInputPanel_didLoadInteractables() {
|
|
1156
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").interact.managedElements.add(__classPrivateFieldGet(this, _KupInputPanel_formRef, "f"));
|
|
1157
|
+
const tapCb = (e) => {
|
|
1158
|
+
if (e.button == 2) {
|
|
1159
|
+
const details = __classPrivateFieldGet(this, _KupInputPanel_instances, "m", _KupInputPanel_contextMenuHandler).call(this, e);
|
|
1160
|
+
if (details) {
|
|
1161
|
+
this.kupDataTableContextMenu.emit({
|
|
1162
|
+
comp: this,
|
|
1163
|
+
id: this.rootElement.id,
|
|
1164
|
+
details,
|
|
1165
|
+
});
|
|
1166
|
+
}
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1169
|
+
__classPrivateFieldGet(this, _KupInputPanel_kupManager, "f").interact.on(__classPrivateFieldGet(this, _KupInputPanel_formRef, "f"), KupPointerEventTypes.TAP, tapCb);
|
|
1129
1170
|
};
|
|
1130
1171
|
function defineCustomElement$1() {
|
|
1131
1172
|
if (typeof customElements === "undefined") {
|