reneco-hierarchized-picker 0.4.2-beta.3 → 0.4.2-beta.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.
@@ -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
- fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
18332
- fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
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');
@@ -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
- fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
64
- fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
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');
@@ -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
- 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;
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');
@@ -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
- fullpathPropFromNode = (_b = getPropertyFromNode(value, 'Properties')) === null || _b === void 0 ? void 0 : _b.System_FullPath;
18328
- fullpathTranslatedPropFromNode = (_c = getPropertyFromNode(value, 'fullpathTranslated')[options.language]) === null || _c === void 0 ? void 0 : _c.translated_fullpath;
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');