reneco-hierarchized-picker 0.4.2-beta.6 → 0.4.2-beta.8
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 +6 -3
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +4 -2
- package/dist/collection/components/treejs/index.js +2 -1
- package/dist/custom-elements/index.js +6 -3
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +6 -3
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/p-c2b4b61b.system.entry.js +3 -0
- package/dist/reneco-hierarchized-picker/p-d255cf51.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-081c41d9.system.entry.js +0 -3
- package/dist/reneco-hierarchized-picker/p-af4b2f5b.entry.js +0 -1
|
@@ -289,7 +289,8 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
289
289
|
return typeof item === 'string'
|
|
290
290
|
? item
|
|
291
291
|
: Object.assign(Object.assign({}, item), { callback: e => {
|
|
292
|
-
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId]
|
|
292
|
+
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId] && that.nodesById[e.target.nodeId].children &&
|
|
293
|
+
that.nodesById[e.target.nodeId].children.length && that.nodesById[e.target.nodeId].children.length > 0 });
|
|
293
294
|
delete targetOutput.children;
|
|
294
295
|
this.options.parentApi.onItemContextMenuItemClick(Object.assign(Object.assign({}, e), { target: targetOutput, contextMenuItem: item }));
|
|
295
296
|
} });
|
|
@@ -18922,6 +18923,7 @@ const HierarchizedPickerComponent = class {
|
|
|
18922
18923
|
}
|
|
18923
18924
|
let autoAssignReach = true;
|
|
18924
18925
|
let defaultFromFullpaths = undefined;
|
|
18926
|
+
// TODO Revoir cette partie ? utilite ? (case == null ?)
|
|
18925
18927
|
if (!this.isDisabled)
|
|
18926
18928
|
this.isDisabled = false;
|
|
18927
18929
|
if (this.optionsManager.getOptions().readonly !== undefined)
|
|
@@ -18939,7 +18941,7 @@ const HierarchizedPickerComponent = class {
|
|
|
18939
18941
|
if (!this.optionsManager.getOptions().displayRootNode)
|
|
18940
18942
|
this.optionsManager.getOptions().displayRootNode = false;
|
|
18941
18943
|
if (!this.optionsManager.getOptions().dragAndDropEnabled)
|
|
18942
|
-
this.optionsManager.getOptions().dragAndDropEnabled =
|
|
18944
|
+
this.optionsManager.getOptions().dragAndDropEnabled = false;
|
|
18943
18945
|
if (!this.optionsManager.getOptions().defaultValueIsFullpath)
|
|
18944
18946
|
this.optionsManager.getOptions().defaultValueIsFullpath = false;
|
|
18945
18947
|
if (!this.optionsManager.getOptions() && this.optionsManager.getOptions().errorsInInput !== false)
|
|
@@ -19276,8 +19278,9 @@ const HierarchizedPickerComponent = class {
|
|
|
19276
19278
|
async setNodeAsSelected(id, treeToUpdate, userClick) {
|
|
19277
19279
|
// TODO Temporarily ignores disabled mode for selecting nodes if mode is tree
|
|
19278
19280
|
if (((this.isDisabled && this.optionsManager.getOptions().mode != "tree") && this.shownTree && this.setValueOnClick) ||
|
|
19279
|
-
(this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1))
|
|
19281
|
+
(this.loadedTreeJs.liElementsById[id] && this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1)) {
|
|
19280
19282
|
return;
|
|
19283
|
+
}
|
|
19281
19284
|
if (treeToUpdate.getValues().indexOf(id.toString()) != -1)
|
|
19282
19285
|
return;
|
|
19283
19286
|
this.ignoreOptionsChanges = true;
|
|
@@ -262,6 +262,7 @@ export class HierarchizedPickerComponent {
|
|
|
262
262
|
}
|
|
263
263
|
let autoAssignReach = true;
|
|
264
264
|
let defaultFromFullpaths = undefined;
|
|
265
|
+
// TODO Revoir cette partie ? utilite ? (case == null ?)
|
|
265
266
|
if (!this.isDisabled)
|
|
266
267
|
this.isDisabled = false;
|
|
267
268
|
if (this.optionsManager.getOptions().readonly !== undefined)
|
|
@@ -279,7 +280,7 @@ export class HierarchizedPickerComponent {
|
|
|
279
280
|
if (!this.optionsManager.getOptions().displayRootNode)
|
|
280
281
|
this.optionsManager.getOptions().displayRootNode = false;
|
|
281
282
|
if (!this.optionsManager.getOptions().dragAndDropEnabled)
|
|
282
|
-
this.optionsManager.getOptions().dragAndDropEnabled =
|
|
283
|
+
this.optionsManager.getOptions().dragAndDropEnabled = false;
|
|
283
284
|
if (!this.optionsManager.getOptions().defaultValueIsFullpath)
|
|
284
285
|
this.optionsManager.getOptions().defaultValueIsFullpath = false;
|
|
285
286
|
if (!this.optionsManager.getOptions() && this.optionsManager.getOptions().errorsInInput !== false)
|
|
@@ -619,8 +620,9 @@ export class HierarchizedPickerComponent {
|
|
|
619
620
|
async setNodeAsSelected(id, treeToUpdate, userClick) {
|
|
620
621
|
// TODO Temporarily ignores disabled mode for selecting nodes if mode is tree
|
|
621
622
|
if (((this.isDisabled && this.optionsManager.getOptions().mode != "tree") && this.shownTree && this.setValueOnClick) ||
|
|
622
|
-
(this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1))
|
|
623
|
+
(this.loadedTreeJs.liElementsById[id] && this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1)) {
|
|
623
624
|
return;
|
|
625
|
+
}
|
|
624
626
|
if (treeToUpdate.getValues().indexOf(id.toString()) != -1)
|
|
625
627
|
return;
|
|
626
628
|
this.ignoreOptionsChanges = true;
|
|
@@ -166,7 +166,8 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
166
166
|
return typeof item === 'string'
|
|
167
167
|
? item
|
|
168
168
|
: Object.assign(Object.assign({}, item), { callback: e => {
|
|
169
|
-
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId]
|
|
169
|
+
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId] && that.nodesById[e.target.nodeId].children &&
|
|
170
|
+
that.nodesById[e.target.nodeId].children.length && that.nodesById[e.target.nodeId].children.length > 0 });
|
|
170
171
|
delete targetOutput.children;
|
|
171
172
|
this.options.parentApi.onItemContextMenuItemClick(Object.assign(Object.assign({}, e), { target: targetOutput, contextMenuItem: item }));
|
|
172
173
|
} });
|
|
@@ -286,7 +286,8 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
286
286
|
return typeof item === 'string'
|
|
287
287
|
? item
|
|
288
288
|
: Object.assign(Object.assign({}, item), { callback: e => {
|
|
289
|
-
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId]
|
|
289
|
+
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId] && that.nodesById[e.target.nodeId].children &&
|
|
290
|
+
that.nodesById[e.target.nodeId].children.length && that.nodesById[e.target.nodeId].children.length > 0 });
|
|
290
291
|
delete targetOutput.children;
|
|
291
292
|
this.options.parentApi.onItemContextMenuItemClick(Object.assign(Object.assign({}, e), { target: targetOutput, contextMenuItem: item }));
|
|
292
293
|
} });
|
|
@@ -18920,6 +18921,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18920
18921
|
}
|
|
18921
18922
|
let autoAssignReach = true;
|
|
18922
18923
|
let defaultFromFullpaths = undefined;
|
|
18924
|
+
// TODO Revoir cette partie ? utilite ? (case == null ?)
|
|
18923
18925
|
if (!this.isDisabled)
|
|
18924
18926
|
this.isDisabled = false;
|
|
18925
18927
|
if (this.optionsManager.getOptions().readonly !== undefined)
|
|
@@ -18937,7 +18939,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18937
18939
|
if (!this.optionsManager.getOptions().displayRootNode)
|
|
18938
18940
|
this.optionsManager.getOptions().displayRootNode = false;
|
|
18939
18941
|
if (!this.optionsManager.getOptions().dragAndDropEnabled)
|
|
18940
|
-
this.optionsManager.getOptions().dragAndDropEnabled =
|
|
18942
|
+
this.optionsManager.getOptions().dragAndDropEnabled = false;
|
|
18941
18943
|
if (!this.optionsManager.getOptions().defaultValueIsFullpath)
|
|
18942
18944
|
this.optionsManager.getOptions().defaultValueIsFullpath = false;
|
|
18943
18945
|
if (!this.optionsManager.getOptions() && this.optionsManager.getOptions().errorsInInput !== false)
|
|
@@ -19274,8 +19276,9 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19274
19276
|
async setNodeAsSelected(id, treeToUpdate, userClick) {
|
|
19275
19277
|
// TODO Temporarily ignores disabled mode for selecting nodes if mode is tree
|
|
19276
19278
|
if (((this.isDisabled && this.optionsManager.getOptions().mode != "tree") && this.shownTree && this.setValueOnClick) ||
|
|
19277
|
-
(this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1))
|
|
19279
|
+
(this.loadedTreeJs.liElementsById[id] && this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1)) {
|
|
19278
19280
|
return;
|
|
19281
|
+
}
|
|
19279
19282
|
if (treeToUpdate.getValues().indexOf(id.toString()) != -1)
|
|
19280
19283
|
return;
|
|
19281
19284
|
this.ignoreOptionsChanges = true;
|
|
@@ -285,7 +285,8 @@ Tree.prototype.bindEvent = function (ele) {
|
|
|
285
285
|
return typeof item === 'string'
|
|
286
286
|
? item
|
|
287
287
|
: Object.assign(Object.assign({}, item), { callback: e => {
|
|
288
|
-
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId]
|
|
288
|
+
let targetOutput = Object.assign(Object.assign({}, that.nodesById[e.target.nodeId]), { hasChildren: that.nodesById[e.target.nodeId] && that.nodesById[e.target.nodeId].children &&
|
|
289
|
+
that.nodesById[e.target.nodeId].children.length && that.nodesById[e.target.nodeId].children.length > 0 });
|
|
289
290
|
delete targetOutput.children;
|
|
290
291
|
this.options.parentApi.onItemContextMenuItemClick(Object.assign(Object.assign({}, e), { target: targetOutput, contextMenuItem: item }));
|
|
291
292
|
} });
|
|
@@ -18918,6 +18919,7 @@ const HierarchizedPickerComponent = class {
|
|
|
18918
18919
|
}
|
|
18919
18920
|
let autoAssignReach = true;
|
|
18920
18921
|
let defaultFromFullpaths = undefined;
|
|
18922
|
+
// TODO Revoir cette partie ? utilite ? (case == null ?)
|
|
18921
18923
|
if (!this.isDisabled)
|
|
18922
18924
|
this.isDisabled = false;
|
|
18923
18925
|
if (this.optionsManager.getOptions().readonly !== undefined)
|
|
@@ -18935,7 +18937,7 @@ const HierarchizedPickerComponent = class {
|
|
|
18935
18937
|
if (!this.optionsManager.getOptions().displayRootNode)
|
|
18936
18938
|
this.optionsManager.getOptions().displayRootNode = false;
|
|
18937
18939
|
if (!this.optionsManager.getOptions().dragAndDropEnabled)
|
|
18938
|
-
this.optionsManager.getOptions().dragAndDropEnabled =
|
|
18940
|
+
this.optionsManager.getOptions().dragAndDropEnabled = false;
|
|
18939
18941
|
if (!this.optionsManager.getOptions().defaultValueIsFullpath)
|
|
18940
18942
|
this.optionsManager.getOptions().defaultValueIsFullpath = false;
|
|
18941
18943
|
if (!this.optionsManager.getOptions() && this.optionsManager.getOptions().errorsInInput !== false)
|
|
@@ -19272,8 +19274,9 @@ const HierarchizedPickerComponent = class {
|
|
|
19272
19274
|
async setNodeAsSelected(id, treeToUpdate, userClick) {
|
|
19273
19275
|
// TODO Temporarily ignores disabled mode for selecting nodes if mode is tree
|
|
19274
19276
|
if (((this.isDisabled && this.optionsManager.getOptions().mode != "tree") && this.shownTree && this.setValueOnClick) ||
|
|
19275
|
-
(this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1))
|
|
19277
|
+
(this.loadedTreeJs.liElementsById[id] && this.loadedTreeJs.liElementsById[id].classList.value && this.loadedTreeJs.liElementsById[id].classList.value.indexOf('readonly_node') != -1)) {
|
|
19276
19278
|
return;
|
|
19279
|
+
}
|
|
19277
19280
|
if (treeToUpdate.getValues().indexOf(id.toString()) != -1)
|
|
19278
19281
|
return;
|
|
19279
19282
|
this.ignoreOptionsChanges = true;
|