reneco-hierarchized-picker 0.2.3 → 0.2.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.cjs.entry.js +6 -3
- package/dist/collection/components/hierarchized-picker/hierarchized-picker.js +6 -3
- package/dist/custom-elements/index.js +6 -3
- package/dist/esm/reneco-hierarchized-picker.entry.js +6 -3
- package/dist/esm-es5/reneco-hierarchized-picker.entry.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-a478841a.system.entry.js → p-5f6cc9fa.system.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/p-73168a50.system.js +1 -1
- package/dist/reneco-hierarchized-picker/{p-2fa85a00.entry.js → p-b0bb0c75.entry.js} +1 -1
- package/dist/reneco-hierarchized-picker/reneco-hierarchized-picker.esm.js +1 -1
- package/package.json +1 -1
|
@@ -18486,6 +18486,7 @@ const HierarchizedPickerComponent = class {
|
|
|
18486
18486
|
this.translateDataForTree(dataToLoad);
|
|
18487
18487
|
if (this.theOptions.openTreeWhenLoaded) {
|
|
18488
18488
|
this.showTree("modale");
|
|
18489
|
+
setTimeout(() => { this.focusSearchInput(); }, 200);
|
|
18489
18490
|
}
|
|
18490
18491
|
}
|
|
18491
18492
|
}
|
|
@@ -18650,15 +18651,17 @@ const HierarchizedPickerComponent = class {
|
|
|
18650
18651
|
if (this.theOptions.origin != 'thesaurus' || !dataToLoad)
|
|
18651
18652
|
return;
|
|
18652
18653
|
this.mylog('Translate from Thesaurus ! (' + this.theOptions.source + ')', dataToLoad);
|
|
18653
|
-
let fillTreeWithObject = (tree,
|
|
18654
|
-
if (
|
|
18655
|
-
|
|
18654
|
+
let fillTreeWithObject = (tree, myobject, depth = 0) => {
|
|
18655
|
+
if (myobject && myobject.length) {
|
|
18656
|
+
myobject.forEach((value, _index) => {
|
|
18656
18657
|
let keyPropFromNode = this.getPropertyFromNode(value, 'key');
|
|
18657
18658
|
let valueTranslatedPropFromNode = this.getPropertyFromNode(value, 'valueTranslated');
|
|
18658
18659
|
let fullpathPropFromNode = this.getPropertyFromNode(value, 'fullpath');
|
|
18659
18660
|
let fullpathTranslatedPropFromNode = this.getPropertyFromNode(value, 'fullpathTranslated');
|
|
18660
18661
|
let childrenPropFromNode = this.getPropertyFromNode(value, 'children', false);
|
|
18661
18662
|
let deprecated = this.getPropertyFromNode(value, 'deprecated', false);
|
|
18663
|
+
// Quick fix until I fully understand what is going on ...
|
|
18664
|
+
childrenPropFromNode = childrenPropFromNode.filter(subvalue => this.getPropertyFromNode(subvalue, 'fullpath').includes(fullpathPropFromNode));
|
|
18662
18665
|
let objToPush = {
|
|
18663
18666
|
id: keyPropFromNode,
|
|
18664
18667
|
depth: depth,
|
|
@@ -709,6 +709,7 @@ export class HierarchizedPickerComponent {
|
|
|
709
709
|
this.translateDataForTree(dataToLoad);
|
|
710
710
|
if (this.theOptions.openTreeWhenLoaded) {
|
|
711
711
|
this.showTree("modale");
|
|
712
|
+
setTimeout(() => { this.focusSearchInput(); }, 200);
|
|
712
713
|
}
|
|
713
714
|
}
|
|
714
715
|
}
|
|
@@ -873,15 +874,17 @@ export class HierarchizedPickerComponent {
|
|
|
873
874
|
if (this.theOptions.origin != 'thesaurus' || !dataToLoad)
|
|
874
875
|
return;
|
|
875
876
|
this.mylog('Translate from Thesaurus ! (' + this.theOptions.source + ')', dataToLoad);
|
|
876
|
-
let fillTreeWithObject = (tree,
|
|
877
|
-
if (
|
|
878
|
-
|
|
877
|
+
let fillTreeWithObject = (tree, myobject, depth = 0) => {
|
|
878
|
+
if (myobject && myobject.length) {
|
|
879
|
+
myobject.forEach((value, _index) => {
|
|
879
880
|
let keyPropFromNode = this.getPropertyFromNode(value, 'key');
|
|
880
881
|
let valueTranslatedPropFromNode = this.getPropertyFromNode(value, 'valueTranslated');
|
|
881
882
|
let fullpathPropFromNode = this.getPropertyFromNode(value, 'fullpath');
|
|
882
883
|
let fullpathTranslatedPropFromNode = this.getPropertyFromNode(value, 'fullpathTranslated');
|
|
883
884
|
let childrenPropFromNode = this.getPropertyFromNode(value, 'children', false);
|
|
884
885
|
let deprecated = this.getPropertyFromNode(value, 'deprecated', false);
|
|
886
|
+
// Quick fix until I fully understand what is going on ...
|
|
887
|
+
childrenPropFromNode = childrenPropFromNode.filter(subvalue => this.getPropertyFromNode(subvalue, 'fullpath').includes(fullpathPropFromNode));
|
|
885
888
|
let objToPush = {
|
|
886
889
|
id: keyPropFromNode,
|
|
887
890
|
depth: depth,
|
|
@@ -18484,6 +18484,7 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18484
18484
|
this.translateDataForTree(dataToLoad);
|
|
18485
18485
|
if (this.theOptions.openTreeWhenLoaded) {
|
|
18486
18486
|
this.showTree("modale");
|
|
18487
|
+
setTimeout(() => { this.focusSearchInput(); }, 200);
|
|
18487
18488
|
}
|
|
18488
18489
|
}
|
|
18489
18490
|
}
|
|
@@ -18648,15 +18649,17 @@ const HierarchizedPickerComponent = class extends HTMLElement {
|
|
|
18648
18649
|
if (this.theOptions.origin != 'thesaurus' || !dataToLoad)
|
|
18649
18650
|
return;
|
|
18650
18651
|
this.mylog('Translate from Thesaurus ! (' + this.theOptions.source + ')', dataToLoad);
|
|
18651
|
-
let fillTreeWithObject = (tree,
|
|
18652
|
-
if (
|
|
18653
|
-
|
|
18652
|
+
let fillTreeWithObject = (tree, myobject, depth = 0) => {
|
|
18653
|
+
if (myobject && myobject.length) {
|
|
18654
|
+
myobject.forEach((value, _index) => {
|
|
18654
18655
|
let keyPropFromNode = this.getPropertyFromNode(value, 'key');
|
|
18655
18656
|
let valueTranslatedPropFromNode = this.getPropertyFromNode(value, 'valueTranslated');
|
|
18656
18657
|
let fullpathPropFromNode = this.getPropertyFromNode(value, 'fullpath');
|
|
18657
18658
|
let fullpathTranslatedPropFromNode = this.getPropertyFromNode(value, 'fullpathTranslated');
|
|
18658
18659
|
let childrenPropFromNode = this.getPropertyFromNode(value, 'children', false);
|
|
18659
18660
|
let deprecated = this.getPropertyFromNode(value, 'deprecated', false);
|
|
18661
|
+
// Quick fix until I fully understand what is going on ...
|
|
18662
|
+
childrenPropFromNode = childrenPropFromNode.filter(subvalue => this.getPropertyFromNode(subvalue, 'fullpath').includes(fullpathPropFromNode));
|
|
18660
18663
|
let objToPush = {
|
|
18661
18664
|
id: keyPropFromNode,
|
|
18662
18665
|
depth: depth,
|
|
@@ -18482,6 +18482,7 @@ const HierarchizedPickerComponent = class {
|
|
|
18482
18482
|
this.translateDataForTree(dataToLoad);
|
|
18483
18483
|
if (this.theOptions.openTreeWhenLoaded) {
|
|
18484
18484
|
this.showTree("modale");
|
|
18485
|
+
setTimeout(() => { this.focusSearchInput(); }, 200);
|
|
18485
18486
|
}
|
|
18486
18487
|
}
|
|
18487
18488
|
}
|
|
@@ -18646,15 +18647,17 @@ const HierarchizedPickerComponent = class {
|
|
|
18646
18647
|
if (this.theOptions.origin != 'thesaurus' || !dataToLoad)
|
|
18647
18648
|
return;
|
|
18648
18649
|
this.mylog('Translate from Thesaurus ! (' + this.theOptions.source + ')', dataToLoad);
|
|
18649
|
-
let fillTreeWithObject = (tree,
|
|
18650
|
-
if (
|
|
18651
|
-
|
|
18650
|
+
let fillTreeWithObject = (tree, myobject, depth = 0) => {
|
|
18651
|
+
if (myobject && myobject.length) {
|
|
18652
|
+
myobject.forEach((value, _index) => {
|
|
18652
18653
|
let keyPropFromNode = this.getPropertyFromNode(value, 'key');
|
|
18653
18654
|
let valueTranslatedPropFromNode = this.getPropertyFromNode(value, 'valueTranslated');
|
|
18654
18655
|
let fullpathPropFromNode = this.getPropertyFromNode(value, 'fullpath');
|
|
18655
18656
|
let fullpathTranslatedPropFromNode = this.getPropertyFromNode(value, 'fullpathTranslated');
|
|
18656
18657
|
let childrenPropFromNode = this.getPropertyFromNode(value, 'children', false);
|
|
18657
18658
|
let deprecated = this.getPropertyFromNode(value, 'deprecated', false);
|
|
18659
|
+
// Quick fix until I fully understand what is going on ...
|
|
18660
|
+
childrenPropFromNode = childrenPropFromNode.filter(subvalue => this.getPropertyFromNode(subvalue, 'fullpath').includes(fullpathPropFromNode));
|
|
18658
18661
|
let objToPush = {
|
|
18659
18662
|
id: keyPropFromNode,
|
|
18660
18663
|
depth: depth,
|