reneco-hierarchized-picker 0.3.1 → 0.3.2-beta.1
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.cjs.entry.js +31 -28
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +31 -28
- package/dist/custom-elements/index.js +31 -28
- package/dist/esm/reneco-hierarchized-picker.entry.js +31 -28
- package/dist/esm-es5/reneco-hierarchized-picker.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-8d4533d2.entry.js → p-252ae5e5.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/{p-ae8baa02.system.entry.js → p-2eb0f5d4.system.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/dist/types/components/hierarchized-picker/hierarchized-picker.d.ts +1 -1
- package/package.json +1 -1
|
@@ -18092,6 +18092,30 @@ const HierarchizedPickerComponent = class {
|
|
|
18092
18092
|
};
|
|
18093
18093
|
let autoAssignReach = true;
|
|
18094
18094
|
let defaultFromFullpaths = undefined;
|
|
18095
|
+
if (!this.isDisabled)
|
|
18096
|
+
this.isDisabled = false;
|
|
18097
|
+
if (this.theOptions.readonly !== undefined)
|
|
18098
|
+
this.isDisabled = this.theOptions.readonly;
|
|
18099
|
+
if (!this.theOptions.loading)
|
|
18100
|
+
this.theOptions.loading = "display";
|
|
18101
|
+
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
18102
|
+
this.theOptions.displayTree = true;
|
|
18103
|
+
if (!this.hasFocus)
|
|
18104
|
+
this.hasFocus = [];
|
|
18105
|
+
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
18106
|
+
this.theOptions.isFullpath = true;
|
|
18107
|
+
if (!this.theOptions.showAutocomplete)
|
|
18108
|
+
this.theOptions.showAutocomplete = false;
|
|
18109
|
+
if (!this.theOptions.openTreeWhenLoaded)
|
|
18110
|
+
this.theOptions.openTreeWhenLoaded = false;
|
|
18111
|
+
if (!this.theOptions.displayRootNode)
|
|
18112
|
+
this.theOptions.displayRootNode = false;
|
|
18113
|
+
if (!this.theOptions.dragAndDropEnabled)
|
|
18114
|
+
this.theOptions.dragAndDropEnabled = false;
|
|
18115
|
+
if (!this.theOptions.defaultValueIsFullpath)
|
|
18116
|
+
this.theOptions.defaultValueIsFullpath = false;
|
|
18117
|
+
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
18118
|
+
this.theOptions.errorsInInput = true;
|
|
18095
18119
|
try {
|
|
18096
18120
|
this.theOptions.defaultValue.map(() => { });
|
|
18097
18121
|
}
|
|
@@ -18136,30 +18160,6 @@ const HierarchizedPickerComponent = class {
|
|
|
18136
18160
|
}
|
|
18137
18161
|
}
|
|
18138
18162
|
}
|
|
18139
|
-
if (!this.isDisabled)
|
|
18140
|
-
this.isDisabled = false;
|
|
18141
|
-
if (this.theOptions.readonly !== undefined)
|
|
18142
|
-
this.isDisabled = this.theOptions.readonly;
|
|
18143
|
-
if (!this.theOptions.loading)
|
|
18144
|
-
this.theOptions.loading = "display";
|
|
18145
|
-
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
18146
|
-
this.theOptions.displayTree = true;
|
|
18147
|
-
if (!this.hasFocus)
|
|
18148
|
-
this.hasFocus = [];
|
|
18149
|
-
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
18150
|
-
this.theOptions.isFullpath = true;
|
|
18151
|
-
if (!this.theOptions.showAutocomplete)
|
|
18152
|
-
this.theOptions.showAutocomplete = false;
|
|
18153
|
-
if (!this.theOptions.openTreeWhenLoaded)
|
|
18154
|
-
this.theOptions.openTreeWhenLoaded = false;
|
|
18155
|
-
if (!this.theOptions.displayRootNode)
|
|
18156
|
-
this.theOptions.displayRootNode = false;
|
|
18157
|
-
if (!this.theOptions.dragAndDropEnabled)
|
|
18158
|
-
this.theOptions.dragAndDropEnabled = false;
|
|
18159
|
-
if (!this.theOptions.defaultValueIsFullpath)
|
|
18160
|
-
this.theOptions.defaultValueIsFullpath = false;
|
|
18161
|
-
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
18162
|
-
this.theOptions.errorsInInput = true;
|
|
18163
18163
|
}
|
|
18164
18164
|
async loadHierarchizedPicker() {
|
|
18165
18165
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -18420,7 +18420,10 @@ const HierarchizedPickerComponent = class {
|
|
|
18420
18420
|
targetURL += '&searchedValue=' + options.search.searchedValue;
|
|
18421
18421
|
}
|
|
18422
18422
|
else {
|
|
18423
|
-
targetURL
|
|
18423
|
+
targetURL += '/' + options.startNode;
|
|
18424
|
+
if (options.options.Reach) {
|
|
18425
|
+
targetURL += '/?reach=' + options.options.Reach;
|
|
18426
|
+
}
|
|
18424
18427
|
}
|
|
18425
18428
|
let getDataPromise = new Promise((resolve, reject) => {
|
|
18426
18429
|
this.getToken().then(token => {
|
|
@@ -19154,7 +19157,7 @@ const HierarchizedPickerComponent = class {
|
|
|
19154
19157
|
userClick && onChange && onChange.call(treeToUpdate);
|
|
19155
19158
|
// ------ END ------
|
|
19156
19159
|
if (this.setValueOnClick) {
|
|
19157
|
-
this.editValue(node);
|
|
19160
|
+
this.editValue(node, userClick);
|
|
19158
19161
|
if (this.shownTree && userClick) {
|
|
19159
19162
|
await this.focusMainInput();
|
|
19160
19163
|
if (!this.theOptions.multiple) {
|
|
@@ -19279,7 +19282,7 @@ const HierarchizedPickerComponent = class {
|
|
|
19279
19282
|
}
|
|
19280
19283
|
}
|
|
19281
19284
|
// Changes the value of the component with passed node
|
|
19282
|
-
editValue(node) {
|
|
19285
|
+
editValue(node, userClick = false) {
|
|
19283
19286
|
if (!this.value) {
|
|
19284
19287
|
// Inits the component value as array in case of multiple parameter at TRUE
|
|
19285
19288
|
this.value = [];
|
|
@@ -19288,7 +19291,7 @@ const HierarchizedPickerComponent = class {
|
|
|
19288
19291
|
return item.nodeid == node.id;
|
|
19289
19292
|
});
|
|
19290
19293
|
// If the passed node already exists in the array of values, remove it
|
|
19291
|
-
if (result > -1) {
|
|
19294
|
+
if (userClick && result > -1) {
|
|
19292
19295
|
this.value.splice(result, 1);
|
|
19293
19296
|
} // Else, add the node to the array of values
|
|
19294
19297
|
else {
|
|
@@ -312,6 +312,30 @@ export class HierarchizedPickerComponent {
|
|
|
312
312
|
};
|
|
313
313
|
let autoAssignReach = true;
|
|
314
314
|
let defaultFromFullpaths = undefined;
|
|
315
|
+
if (!this.isDisabled)
|
|
316
|
+
this.isDisabled = false;
|
|
317
|
+
if (this.theOptions.readonly !== undefined)
|
|
318
|
+
this.isDisabled = this.theOptions.readonly;
|
|
319
|
+
if (!this.theOptions.loading)
|
|
320
|
+
this.theOptions.loading = "display";
|
|
321
|
+
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
322
|
+
this.theOptions.displayTree = true;
|
|
323
|
+
if (!this.hasFocus)
|
|
324
|
+
this.hasFocus = [];
|
|
325
|
+
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
326
|
+
this.theOptions.isFullpath = true;
|
|
327
|
+
if (!this.theOptions.showAutocomplete)
|
|
328
|
+
this.theOptions.showAutocomplete = false;
|
|
329
|
+
if (!this.theOptions.openTreeWhenLoaded)
|
|
330
|
+
this.theOptions.openTreeWhenLoaded = false;
|
|
331
|
+
if (!this.theOptions.displayRootNode)
|
|
332
|
+
this.theOptions.displayRootNode = false;
|
|
333
|
+
if (!this.theOptions.dragAndDropEnabled)
|
|
334
|
+
this.theOptions.dragAndDropEnabled = false;
|
|
335
|
+
if (!this.theOptions.defaultValueIsFullpath)
|
|
336
|
+
this.theOptions.defaultValueIsFullpath = false;
|
|
337
|
+
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
338
|
+
this.theOptions.errorsInInput = true;
|
|
315
339
|
try {
|
|
316
340
|
this.theOptions.defaultValue.map(() => { });
|
|
317
341
|
}
|
|
@@ -356,30 +380,6 @@ export class HierarchizedPickerComponent {
|
|
|
356
380
|
}
|
|
357
381
|
}
|
|
358
382
|
}
|
|
359
|
-
if (!this.isDisabled)
|
|
360
|
-
this.isDisabled = false;
|
|
361
|
-
if (this.theOptions.readonly !== undefined)
|
|
362
|
-
this.isDisabled = this.theOptions.readonly;
|
|
363
|
-
if (!this.theOptions.loading)
|
|
364
|
-
this.theOptions.loading = "display";
|
|
365
|
-
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
366
|
-
this.theOptions.displayTree = true;
|
|
367
|
-
if (!this.hasFocus)
|
|
368
|
-
this.hasFocus = [];
|
|
369
|
-
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
370
|
-
this.theOptions.isFullpath = true;
|
|
371
|
-
if (!this.theOptions.showAutocomplete)
|
|
372
|
-
this.theOptions.showAutocomplete = false;
|
|
373
|
-
if (!this.theOptions.openTreeWhenLoaded)
|
|
374
|
-
this.theOptions.openTreeWhenLoaded = false;
|
|
375
|
-
if (!this.theOptions.displayRootNode)
|
|
376
|
-
this.theOptions.displayRootNode = false;
|
|
377
|
-
if (!this.theOptions.dragAndDropEnabled)
|
|
378
|
-
this.theOptions.dragAndDropEnabled = false;
|
|
379
|
-
if (!this.theOptions.defaultValueIsFullpath)
|
|
380
|
-
this.theOptions.defaultValueIsFullpath = false;
|
|
381
|
-
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
382
|
-
this.theOptions.errorsInInput = true;
|
|
383
383
|
}
|
|
384
384
|
async loadHierarchizedPicker() {
|
|
385
385
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -643,7 +643,10 @@ export class HierarchizedPickerComponent {
|
|
|
643
643
|
targetURL += '&searchedValue=' + options.search.searchedValue;
|
|
644
644
|
}
|
|
645
645
|
else {
|
|
646
|
-
targetURL
|
|
646
|
+
targetURL += '/' + options.startNode;
|
|
647
|
+
if (options.options.Reach) {
|
|
648
|
+
targetURL += '/?reach=' + options.options.Reach;
|
|
649
|
+
}
|
|
647
650
|
}
|
|
648
651
|
let getDataPromise = new Promise((resolve, reject) => {
|
|
649
652
|
this.getToken().then(token => {
|
|
@@ -1377,7 +1380,7 @@ export class HierarchizedPickerComponent {
|
|
|
1377
1380
|
userClick && onChange && onChange.call(treeToUpdate);
|
|
1378
1381
|
// ------ END ------
|
|
1379
1382
|
if (this.setValueOnClick) {
|
|
1380
|
-
this.editValue(node);
|
|
1383
|
+
this.editValue(node, userClick);
|
|
1381
1384
|
if (this.shownTree && userClick) {
|
|
1382
1385
|
await this.focusMainInput();
|
|
1383
1386
|
if (!this.theOptions.multiple) {
|
|
@@ -1502,7 +1505,7 @@ export class HierarchizedPickerComponent {
|
|
|
1502
1505
|
}
|
|
1503
1506
|
}
|
|
1504
1507
|
// Changes the value of the component with passed node
|
|
1505
|
-
editValue(node) {
|
|
1508
|
+
editValue(node, userClick = false) {
|
|
1506
1509
|
if (!this.value) {
|
|
1507
1510
|
// Inits the component value as array in case of multiple parameter at TRUE
|
|
1508
1511
|
this.value = [];
|
|
@@ -1511,7 +1514,7 @@ export class HierarchizedPickerComponent {
|
|
|
1511
1514
|
return item.nodeid == node.id;
|
|
1512
1515
|
});
|
|
1513
1516
|
// If the passed node already exists in the array of values, remove it
|
|
1514
|
-
if (result > -1) {
|
|
1517
|
+
if (userClick && result > -1) {
|
|
1515
1518
|
this.value.splice(result, 1);
|
|
1516
1519
|
} // Else, add the node to the array of values
|
|
1517
1520
|
else {
|
|
@@ -18090,6 +18090,30 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18090
18090
|
};
|
|
18091
18091
|
let autoAssignReach = true;
|
|
18092
18092
|
let defaultFromFullpaths = undefined;
|
|
18093
|
+
if (!this.isDisabled)
|
|
18094
|
+
this.isDisabled = false;
|
|
18095
|
+
if (this.theOptions.readonly !== undefined)
|
|
18096
|
+
this.isDisabled = this.theOptions.readonly;
|
|
18097
|
+
if (!this.theOptions.loading)
|
|
18098
|
+
this.theOptions.loading = "display";
|
|
18099
|
+
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
18100
|
+
this.theOptions.displayTree = true;
|
|
18101
|
+
if (!this.hasFocus)
|
|
18102
|
+
this.hasFocus = [];
|
|
18103
|
+
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
18104
|
+
this.theOptions.isFullpath = true;
|
|
18105
|
+
if (!this.theOptions.showAutocomplete)
|
|
18106
|
+
this.theOptions.showAutocomplete = false;
|
|
18107
|
+
if (!this.theOptions.openTreeWhenLoaded)
|
|
18108
|
+
this.theOptions.openTreeWhenLoaded = false;
|
|
18109
|
+
if (!this.theOptions.displayRootNode)
|
|
18110
|
+
this.theOptions.displayRootNode = false;
|
|
18111
|
+
if (!this.theOptions.dragAndDropEnabled)
|
|
18112
|
+
this.theOptions.dragAndDropEnabled = false;
|
|
18113
|
+
if (!this.theOptions.defaultValueIsFullpath)
|
|
18114
|
+
this.theOptions.defaultValueIsFullpath = false;
|
|
18115
|
+
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
18116
|
+
this.theOptions.errorsInInput = true;
|
|
18093
18117
|
try {
|
|
18094
18118
|
this.theOptions.defaultValue.map(() => { });
|
|
18095
18119
|
}
|
|
@@ -18134,30 +18158,6 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18134
18158
|
}
|
|
18135
18159
|
}
|
|
18136
18160
|
}
|
|
18137
|
-
if (!this.isDisabled)
|
|
18138
|
-
this.isDisabled = false;
|
|
18139
|
-
if (this.theOptions.readonly !== undefined)
|
|
18140
|
-
this.isDisabled = this.theOptions.readonly;
|
|
18141
|
-
if (!this.theOptions.loading)
|
|
18142
|
-
this.theOptions.loading = "display";
|
|
18143
|
-
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
18144
|
-
this.theOptions.displayTree = true;
|
|
18145
|
-
if (!this.hasFocus)
|
|
18146
|
-
this.hasFocus = [];
|
|
18147
|
-
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
18148
|
-
this.theOptions.isFullpath = true;
|
|
18149
|
-
if (!this.theOptions.showAutocomplete)
|
|
18150
|
-
this.theOptions.showAutocomplete = false;
|
|
18151
|
-
if (!this.theOptions.openTreeWhenLoaded)
|
|
18152
|
-
this.theOptions.openTreeWhenLoaded = false;
|
|
18153
|
-
if (!this.theOptions.displayRootNode)
|
|
18154
|
-
this.theOptions.displayRootNode = false;
|
|
18155
|
-
if (!this.theOptions.dragAndDropEnabled)
|
|
18156
|
-
this.theOptions.dragAndDropEnabled = false;
|
|
18157
|
-
if (!this.theOptions.defaultValueIsFullpath)
|
|
18158
|
-
this.theOptions.defaultValueIsFullpath = false;
|
|
18159
|
-
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
18160
|
-
this.theOptions.errorsInInput = true;
|
|
18161
18161
|
}
|
|
18162
18162
|
async loadHierarchizedPicker() {
|
|
18163
18163
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -18418,7 +18418,10 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18418
18418
|
targetURL += '&searchedValue=' + options.search.searchedValue;
|
|
18419
18419
|
}
|
|
18420
18420
|
else {
|
|
18421
|
-
targetURL
|
|
18421
|
+
targetURL += '/' + options.startNode;
|
|
18422
|
+
if (options.options.Reach) {
|
|
18423
|
+
targetURL += '/?reach=' + options.options.Reach;
|
|
18424
|
+
}
|
|
18422
18425
|
}
|
|
18423
18426
|
let getDataPromise = new Promise((resolve, reject) => {
|
|
18424
18427
|
this.getToken().then(token => {
|
|
@@ -19152,7 +19155,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19152
19155
|
userClick && onChange && onChange.call(treeToUpdate);
|
|
19153
19156
|
// ------ END ------
|
|
19154
19157
|
if (this.setValueOnClick) {
|
|
19155
|
-
this.editValue(node);
|
|
19158
|
+
this.editValue(node, userClick);
|
|
19156
19159
|
if (this.shownTree && userClick) {
|
|
19157
19160
|
await this.focusMainInput();
|
|
19158
19161
|
if (!this.theOptions.multiple) {
|
|
@@ -19277,7 +19280,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19277
19280
|
}
|
|
19278
19281
|
}
|
|
19279
19282
|
// Changes the value of the component with passed node
|
|
19280
|
-
editValue(node) {
|
|
19283
|
+
editValue(node, userClick = false) {
|
|
19281
19284
|
if (!this.value) {
|
|
19282
19285
|
// Inits the component value as array in case of multiple parameter at TRUE
|
|
19283
19286
|
this.value = [];
|
|
@@ -19286,7 +19289,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
19286
19289
|
return item.nodeid == node.id;
|
|
19287
19290
|
});
|
|
19288
19291
|
// If the passed node already exists in the array of values, remove it
|
|
19289
|
-
if (result > -1) {
|
|
19292
|
+
if (userClick && result > -1) {
|
|
19290
19293
|
this.value.splice(result, 1);
|
|
19291
19294
|
} // Else, add the node to the array of values
|
|
19292
19295
|
else {
|
|
@@ -18088,6 +18088,30 @@ const HierarchizedPickerComponent = class {
|
|
|
18088
18088
|
};
|
|
18089
18089
|
let autoAssignReach = true;
|
|
18090
18090
|
let defaultFromFullpaths = undefined;
|
|
18091
|
+
if (!this.isDisabled)
|
|
18092
|
+
this.isDisabled = false;
|
|
18093
|
+
if (this.theOptions.readonly !== undefined)
|
|
18094
|
+
this.isDisabled = this.theOptions.readonly;
|
|
18095
|
+
if (!this.theOptions.loading)
|
|
18096
|
+
this.theOptions.loading = "display";
|
|
18097
|
+
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
18098
|
+
this.theOptions.displayTree = true;
|
|
18099
|
+
if (!this.hasFocus)
|
|
18100
|
+
this.hasFocus = [];
|
|
18101
|
+
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
18102
|
+
this.theOptions.isFullpath = true;
|
|
18103
|
+
if (!this.theOptions.showAutocomplete)
|
|
18104
|
+
this.theOptions.showAutocomplete = false;
|
|
18105
|
+
if (!this.theOptions.openTreeWhenLoaded)
|
|
18106
|
+
this.theOptions.openTreeWhenLoaded = false;
|
|
18107
|
+
if (!this.theOptions.displayRootNode)
|
|
18108
|
+
this.theOptions.displayRootNode = false;
|
|
18109
|
+
if (!this.theOptions.dragAndDropEnabled)
|
|
18110
|
+
this.theOptions.dragAndDropEnabled = false;
|
|
18111
|
+
if (!this.theOptions.defaultValueIsFullpath)
|
|
18112
|
+
this.theOptions.defaultValueIsFullpath = false;
|
|
18113
|
+
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
18114
|
+
this.theOptions.errorsInInput = true;
|
|
18091
18115
|
try {
|
|
18092
18116
|
this.theOptions.defaultValue.map(() => { });
|
|
18093
18117
|
}
|
|
@@ -18132,30 +18156,6 @@ const HierarchizedPickerComponent = class {
|
|
|
18132
18156
|
}
|
|
18133
18157
|
}
|
|
18134
18158
|
}
|
|
18135
|
-
if (!this.isDisabled)
|
|
18136
|
-
this.isDisabled = false;
|
|
18137
|
-
if (this.theOptions.readonly !== undefined)
|
|
18138
|
-
this.isDisabled = this.theOptions.readonly;
|
|
18139
|
-
if (!this.theOptions.loading)
|
|
18140
|
-
this.theOptions.loading = "display";
|
|
18141
|
-
if (!this.theOptions.displayTree && this.theOptions.displayTree != false)
|
|
18142
|
-
this.theOptions.displayTree = true;
|
|
18143
|
-
if (!this.hasFocus)
|
|
18144
|
-
this.hasFocus = [];
|
|
18145
|
-
if (!this.theOptions.isFullpath && this.theOptions.isFullpath != false)
|
|
18146
|
-
this.theOptions.isFullpath = true;
|
|
18147
|
-
if (!this.theOptions.showAutocomplete)
|
|
18148
|
-
this.theOptions.showAutocomplete = false;
|
|
18149
|
-
if (!this.theOptions.openTreeWhenLoaded)
|
|
18150
|
-
this.theOptions.openTreeWhenLoaded = false;
|
|
18151
|
-
if (!this.theOptions.displayRootNode)
|
|
18152
|
-
this.theOptions.displayRootNode = false;
|
|
18153
|
-
if (!this.theOptions.dragAndDropEnabled)
|
|
18154
|
-
this.theOptions.dragAndDropEnabled = false;
|
|
18155
|
-
if (!this.theOptions.defaultValueIsFullpath)
|
|
18156
|
-
this.theOptions.defaultValueIsFullpath = false;
|
|
18157
|
-
if (!this.theOptions.errorsInInput && this.theOptions.errorsInInput !== false)
|
|
18158
|
-
this.theOptions.errorsInInput = true;
|
|
18159
18159
|
}
|
|
18160
18160
|
async loadHierarchizedPicker() {
|
|
18161
18161
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -18416,7 +18416,10 @@ const HierarchizedPickerComponent = class {
|
|
|
18416
18416
|
targetURL += '&searchedValue=' + options.search.searchedValue;
|
|
18417
18417
|
}
|
|
18418
18418
|
else {
|
|
18419
|
-
targetURL
|
|
18419
|
+
targetURL += '/' + options.startNode;
|
|
18420
|
+
if (options.options.Reach) {
|
|
18421
|
+
targetURL += '/?reach=' + options.options.Reach;
|
|
18422
|
+
}
|
|
18420
18423
|
}
|
|
18421
18424
|
let getDataPromise = new Promise((resolve, reject) => {
|
|
18422
18425
|
this.getToken().then(token => {
|
|
@@ -19150,7 +19153,7 @@ const HierarchizedPickerComponent = class {
|
|
|
19150
19153
|
userClick && onChange && onChange.call(treeToUpdate);
|
|
19151
19154
|
// ------ END ------
|
|
19152
19155
|
if (this.setValueOnClick) {
|
|
19153
|
-
this.editValue(node);
|
|
19156
|
+
this.editValue(node, userClick);
|
|
19154
19157
|
if (this.shownTree && userClick) {
|
|
19155
19158
|
await this.focusMainInput();
|
|
19156
19159
|
if (!this.theOptions.multiple) {
|
|
@@ -19275,7 +19278,7 @@ const HierarchizedPickerComponent = class {
|
|
|
19275
19278
|
}
|
|
19276
19279
|
}
|
|
19277
19280
|
// Changes the value of the component with passed node
|
|
19278
|
-
editValue(node) {
|
|
19281
|
+
editValue(node, userClick = false) {
|
|
19279
19282
|
if (!this.value) {
|
|
19280
19283
|
// Inits the component value as array in case of multiple parameter at TRUE
|
|
19281
19284
|
this.value = [];
|
|
@@ -19284,7 +19287,7 @@ const HierarchizedPickerComponent = class {
|
|
|
19284
19287
|
return item.nodeid == node.id;
|
|
19285
19288
|
});
|
|
19286
19289
|
// If the passed node already exists in the array of values, remove it
|
|
19287
|
-
if (result > -1) {
|
|
19290
|
+
if (userClick && result > -1) {
|
|
19288
19291
|
this.value.splice(result, 1);
|
|
19289
19292
|
} // Else, add the node to the array of values
|
|
19290
19293
|
else {
|