reneco-hierarchized-picker 0.5.3 → 0.5.4
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/reneco-hierarchized-picker_2.cjs.entry.js +7 -0
- package/dist/collection/components/treejs/index.js +7 -0
- package/dist/custom-elements/index.js +7 -0
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +7 -0
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/p-65ed49e2.system.entry.js +3 -0
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/p-9e0d7d45.entry.js +1 -0
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
- package/dist/reneco-hierarchized-picker/p-1b64032b.system.entry.js +0 -3
- package/dist/reneco-hierarchized-picker/p-9c17a8ab.entry.js +0 -1
|
@@ -298,6 +298,13 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
298
298
|
if (!this.options.parentApi.isDisabled) {
|
|
299
299
|
const contextMenu = this.options.parentApi.theOptions.contextMenu;
|
|
300
300
|
if ((_a = contextMenu === null || contextMenu === void 0 ? void 0 : contextMenu.items) === null || _a === void 0 ? void 0 : _a.length) {
|
|
301
|
+
ele.addEventListener('contextmenu', async (e) => {
|
|
302
|
+
if (this.options.parentApi.theOptions.multiple) {
|
|
303
|
+
e.preventDefault();
|
|
304
|
+
e.stopImmediatePropagation();
|
|
305
|
+
return false;
|
|
306
|
+
}
|
|
307
|
+
});
|
|
301
308
|
new VanillaContextMenu(Object.assign(Object.assign({}, contextMenu), { scope: ele, menuItems: contextMenu.items.map(item => {
|
|
302
309
|
return typeof item === 'string'
|
|
303
310
|
? item
|
|
@@ -154,6 +154,13 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
154
154
|
if (!this.options.parentApi.isDisabled) {
|
|
155
155
|
const contextMenu = this.options.parentApi.theOptions.contextMenu;
|
|
156
156
|
if ((_a = contextMenu === null || contextMenu === void 0 ? void 0 : contextMenu.items) === null || _a === void 0 ? void 0 : _a.length) {
|
|
157
|
+
ele.addEventListener('contextmenu', async (e) => {
|
|
158
|
+
if (this.options.parentApi.theOptions.multiple) {
|
|
159
|
+
e.preventDefault();
|
|
160
|
+
e.stopImmediatePropagation();
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
});
|
|
157
164
|
new VanillaContextMenu(Object.assign(Object.assign({}, contextMenu), { scope: ele, menuItems: contextMenu.items.map(item => {
|
|
158
165
|
return typeof item === 'string'
|
|
159
166
|
? item
|
|
@@ -295,6 +295,13 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
295
295
|
if (!this.options.parentApi.isDisabled) {
|
|
296
296
|
const contextMenu = this.options.parentApi.theOptions.contextMenu;
|
|
297
297
|
if ((_a = contextMenu === null || contextMenu === void 0 ? void 0 : contextMenu.items) === null || _a === void 0 ? void 0 : _a.length) {
|
|
298
|
+
ele.addEventListener('contextmenu', async (e) => {
|
|
299
|
+
if (this.options.parentApi.theOptions.multiple) {
|
|
300
|
+
e.preventDefault();
|
|
301
|
+
e.stopImmediatePropagation();
|
|
302
|
+
return false;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
298
305
|
new VanillaContextMenu(Object.assign(Object.assign({}, contextMenu), { scope: ele, menuItems: contextMenu.items.map(item => {
|
|
299
306
|
return typeof item === 'string'
|
|
300
307
|
? item
|
|
@@ -294,6 +294,13 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
294
294
|
if (!this.options.parentApi.isDisabled) {
|
|
295
295
|
const contextMenu = this.options.parentApi.theOptions.contextMenu;
|
|
296
296
|
if ((_a = contextMenu === null || contextMenu === void 0 ? void 0 : contextMenu.items) === null || _a === void 0 ? void 0 : _a.length) {
|
|
297
|
+
ele.addEventListener('contextmenu', async (e) => {
|
|
298
|
+
if (this.options.parentApi.theOptions.multiple) {
|
|
299
|
+
e.preventDefault();
|
|
300
|
+
e.stopImmediatePropagation();
|
|
301
|
+
return false;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
297
304
|
new VanillaContextMenu(Object.assign(Object.assign({}, contextMenu), { scope: ele, menuItems: contextMenu.items.map(item => {
|
|
298
305
|
return typeof item === 'string'
|
|
299
306
|
? item
|