reneco-hierarchized-picker 0.4.2-beta.3 → 0.4.2-beta.5
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 +11 -4
- package/dist/collection/features/tree/tree-utils.js +11 -4
- package/dist/custom-elements/index.js +11 -4
- package/dist/esm/reneco-hierarchized-picker_2.entry.js +11 -4
- package/dist/esm-es5/reneco-hierarchized-picker_2.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-7cf81d75.entry.js → p-0854c67d.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/{p-31f8b534.system.entry.js → p-66a01206.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/package.json +1 -1
|
@@ -18319,17 +18319,23 @@ function fillTreeWithObject(tree, myObject, searched, options, depth = 0) {
|
|
|
18319
18319
|
const searchResultPresentsUnMatched = options.searchResultPresentsUnMatched;
|
|
18320
18320
|
if (myObject && myObject.length) {
|
|
18321
18321
|
myObject.forEach(value => {
|
|
18322
|
-
var _a, _b, _c;
|
|
18322
|
+
var _a, _b, _c, _d, _e;
|
|
18323
18323
|
let keyPropFromNode = null;
|
|
18324
18324
|
let valueTranslatedPropFromNode = null;
|
|
18325
18325
|
let fullpathPropFromNode = null;
|
|
18326
18326
|
let fullpathTranslatedPropFromNode = null;
|
|
18327
|
-
// TODO Not sure this is correct in the latest versions, may require review during 2025
|
|
18328
18327
|
if (options.origin == "classification") {
|
|
18329
18328
|
keyPropFromNode = getPropertyFromNode(value, 'ID');
|
|
18330
18329
|
valueTranslatedPropFromNode = (_a = getPropertyFromNode(value, 'Translations')[options.language]) === null || _a === void 0 ? void 0 : _a.translated_name;
|
|
18331
|
-
|
|
18332
|
-
|
|
18330
|
+
// TODO Not sure this is correct in the latest versions, may require review during second half of 2025
|
|
18331
|
+
if (searched) {
|
|
18332
|
+
fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
|
|
18333
|
+
fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
|
|
18334
|
+
}
|
|
18335
|
+
else {
|
|
18336
|
+
fullpathPropFromNode = (_d = getPropertyFromNode(value, 'Properties')) === null || _d === void 0 ? void 0 : _d.System_Fullpath;
|
|
18337
|
+
fullpathTranslatedPropFromNode = (_e = getPropertyFromNode(value, 'Translations')[options.language]) === null || _e === void 0 ? void 0 : _e.translated_fullpath;
|
|
18338
|
+
}
|
|
18333
18339
|
}
|
|
18334
18340
|
else {
|
|
18335
18341
|
keyPropFromNode = getPropertyFromNode(value, 'key');
|
|
@@ -18341,6 +18347,7 @@ function fillTreeWithObject(tree, myObject, searched, options, depth = 0) {
|
|
|
18341
18347
|
const deprecated = getPropertyFromNode(value, 'deprecated', false);
|
|
18342
18348
|
const objToPush = {
|
|
18343
18349
|
id: keyPropFromNode,
|
|
18350
|
+
nodeid: keyPropFromNode,
|
|
18344
18351
|
depth,
|
|
18345
18352
|
text: valueTranslatedPropFromNode,
|
|
18346
18353
|
fullpath: fullpathPropFromNode,
|
|
@@ -51,17 +51,23 @@ export function fillTreeWithObject(tree, myObject, searched, options, depth = 0)
|
|
|
51
51
|
const searchResultPresentsUnMatched = options.searchResultPresentsUnMatched;
|
|
52
52
|
if (myObject && myObject.length) {
|
|
53
53
|
myObject.forEach(value => {
|
|
54
|
-
var _a, _b, _c;
|
|
54
|
+
var _a, _b, _c, _d, _e;
|
|
55
55
|
let keyPropFromNode = null;
|
|
56
56
|
let valueTranslatedPropFromNode = null;
|
|
57
57
|
let fullpathPropFromNode = null;
|
|
58
58
|
let fullpathTranslatedPropFromNode = null;
|
|
59
|
-
// TODO Not sure this is correct in the latest versions, may require review during 2025
|
|
60
59
|
if (options.origin == "classification") {
|
|
61
60
|
keyPropFromNode = getPropertyFromNode(value, 'ID');
|
|
62
61
|
valueTranslatedPropFromNode = (_a = getPropertyFromNode(value, 'Translations')[options.language]) === null || _a === void 0 ? void 0 : _a.translated_name;
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
// TODO Not sure this is correct in the latest versions, may require review during second half of 2025
|
|
63
|
+
if (searched) {
|
|
64
|
+
fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
|
|
65
|
+
fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
fullpathPropFromNode = (_d = getPropertyFromNode(value, 'Properties')) === null || _d === void 0 ? void 0 : _d.System_Fullpath;
|
|
69
|
+
fullpathTranslatedPropFromNode = (_e = getPropertyFromNode(value, 'Translations')[options.language]) === null || _e === void 0 ? void 0 : _e.translated_fullpath;
|
|
70
|
+
}
|
|
65
71
|
}
|
|
66
72
|
else {
|
|
67
73
|
keyPropFromNode = getPropertyFromNode(value, 'key');
|
|
@@ -73,6 +79,7 @@ export function fillTreeWithObject(tree, myObject, searched, options, depth = 0)
|
|
|
73
79
|
const deprecated = getPropertyFromNode(value, 'deprecated', false);
|
|
74
80
|
const objToPush = {
|
|
75
81
|
id: keyPropFromNode,
|
|
82
|
+
nodeid: keyPropFromNode,
|
|
76
83
|
depth,
|
|
77
84
|
text: valueTranslatedPropFromNode,
|
|
78
85
|
fullpath: fullpathPropFromNode,
|
|
@@ -18316,17 +18316,23 @@ function fillTreeWithObject(tree, myObject, searched, options, depth = 0) {
|
|
|
18316
18316
|
const searchResultPresentsUnMatched = options.searchResultPresentsUnMatched;
|
|
18317
18317
|
if (myObject && myObject.length) {
|
|
18318
18318
|
myObject.forEach(value => {
|
|
18319
|
-
var _a, _b, _c;
|
|
18319
|
+
var _a, _b, _c, _d, _e;
|
|
18320
18320
|
let keyPropFromNode = null;
|
|
18321
18321
|
let valueTranslatedPropFromNode = null;
|
|
18322
18322
|
let fullpathPropFromNode = null;
|
|
18323
18323
|
let fullpathTranslatedPropFromNode = null;
|
|
18324
|
-
// TODO Not sure this is correct in the latest versions, may require review during 2025
|
|
18325
18324
|
if (options.origin == "classification") {
|
|
18326
18325
|
keyPropFromNode = getPropertyFromNode(value, 'ID');
|
|
18327
18326
|
valueTranslatedPropFromNode = (_a = getPropertyFromNode(value, 'Translations')[options.language]) === null || _a === void 0 ? void 0 : _a.translated_name;
|
|
18328
|
-
|
|
18329
|
-
|
|
18327
|
+
// TODO Not sure this is correct in the latest versions, may require review during second half of 2025
|
|
18328
|
+
if (searched) {
|
|
18329
|
+
fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
|
|
18330
|
+
fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
|
|
18331
|
+
}
|
|
18332
|
+
else {
|
|
18333
|
+
fullpathPropFromNode = (_d = getPropertyFromNode(value, 'Properties')) === null || _d === void 0 ? void 0 : _d.System_Fullpath;
|
|
18334
|
+
fullpathTranslatedPropFromNode = (_e = getPropertyFromNode(value, 'Translations')[options.language]) === null || _e === void 0 ? void 0 : _e.translated_fullpath;
|
|
18335
|
+
}
|
|
18330
18336
|
}
|
|
18331
18337
|
else {
|
|
18332
18338
|
keyPropFromNode = getPropertyFromNode(value, 'key');
|
|
@@ -18338,6 +18344,7 @@ function fillTreeWithObject(tree, myObject, searched, options, depth = 0) {
|
|
|
18338
18344
|
const deprecated = getPropertyFromNode(value, 'deprecated', false);
|
|
18339
18345
|
const objToPush = {
|
|
18340
18346
|
id: keyPropFromNode,
|
|
18347
|
+
nodeid: keyPropFromNode,
|
|
18341
18348
|
depth,
|
|
18342
18349
|
text: valueTranslatedPropFromNode,
|
|
18343
18350
|
fullpath: fullpathPropFromNode,
|
|
@@ -18315,17 +18315,23 @@ function fillTreeWithObject(tree, myObject, searched, options, depth = 0) {
|
|
|
18315
18315
|
const searchResultPresentsUnMatched = options.searchResultPresentsUnMatched;
|
|
18316
18316
|
if (myObject && myObject.length) {
|
|
18317
18317
|
myObject.forEach(value => {
|
|
18318
|
-
var _a, _b, _c;
|
|
18318
|
+
var _a, _b, _c, _d, _e;
|
|
18319
18319
|
let keyPropFromNode = null;
|
|
18320
18320
|
let valueTranslatedPropFromNode = null;
|
|
18321
18321
|
let fullpathPropFromNode = null;
|
|
18322
18322
|
let fullpathTranslatedPropFromNode = null;
|
|
18323
|
-
// TODO Not sure this is correct in the latest versions, may require review during 2025
|
|
18324
18323
|
if (options.origin == "classification") {
|
|
18325
18324
|
keyPropFromNode = getPropertyFromNode(value, 'ID');
|
|
18326
18325
|
valueTranslatedPropFromNode = (_a = getPropertyFromNode(value, 'Translations')[options.language]) === null || _a === void 0 ? void 0 : _a.translated_name;
|
|
18327
|
-
|
|
18328
|
-
|
|
18326
|
+
// TODO Not sure this is correct in the latest versions, may require review during second half of 2025
|
|
18327
|
+
if (searched) {
|
|
18328
|
+
fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
|
|
18329
|
+
fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
|
|
18330
|
+
}
|
|
18331
|
+
else {
|
|
18332
|
+
fullpathPropFromNode = (_d = getPropertyFromNode(value, 'Properties')) === null || _d === void 0 ? void 0 : _d.System_Fullpath;
|
|
18333
|
+
fullpathTranslatedPropFromNode = (_e = getPropertyFromNode(value, 'Translations')[options.language]) === null || _e === void 0 ? void 0 : _e.translated_fullpath;
|
|
18334
|
+
}
|
|
18329
18335
|
}
|
|
18330
18336
|
else {
|
|
18331
18337
|
keyPropFromNode = getPropertyFromNode(value, 'key');
|
|
@@ -18337,6 +18343,7 @@ function fillTreeWithObject(tree, myObject, searched, options, depth = 0) {
|
|
|
18337
18343
|
const deprecated = getPropertyFromNode(value, 'deprecated', false);
|
|
18338
18344
|
const objToPush = {
|
|
18339
18345
|
id: keyPropFromNode,
|
|
18346
|
+
nodeid: keyPropFromNode,
|
|
18340
18347
|
depth,
|
|
18341
18348
|
text: valueTranslatedPropFromNode,
|
|
18342
18349
|
fullpath: fullpathPropFromNode,
|