@startinblox/components-ds4go 3.0.1 → 3.0.2
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/index.js
CHANGED
|
@@ -2456,7 +2456,7 @@ let b = class extends $ {
|
|
|
2456
2456
|
});
|
|
2457
2457
|
}
|
|
2458
2458
|
async _afterAttach() {
|
|
2459
|
-
return this.dspConnector = this.orbit?.
|
|
2459
|
+
return this.dspConnector = this.orbit?.components.find((t) => t.type === "dsp-connector"), Promise.resolve();
|
|
2460
2460
|
}
|
|
2461
2461
|
_showMoreResults() {
|
|
2462
2462
|
this.spliceLength += Math.floor((window.innerWidth - 800) / 354);
|
|
@@ -2557,7 +2557,7 @@ let b = class extends $ {
|
|
|
2557
2557
|
a && a.loadData();
|
|
2558
2558
|
}
|
|
2559
2559
|
this.bundleName = "", this.bundleDescription = "", this.selectedFacts = [];
|
|
2560
|
-
const i = this.orbit?.
|
|
2560
|
+
const i = this.orbit?.components.find((s) => s.type === "fact-bundle");
|
|
2561
2561
|
document.dispatchEvent(
|
|
2562
2562
|
new CustomEvent("save", {
|
|
2563
2563
|
detail: { resource: { "@id": i?.defaultDataSrc } },
|
|
@@ -2876,9 +2876,7 @@ let N = class extends $ {
|
|
|
2876
2876
|
keywords: ["factbundles"]
|
|
2877
2877
|
}), this.menuComponent = document.querySelector(
|
|
2878
2878
|
`[uniq="${this.orbit?.getComponent("menu")?.uniq}"]`
|
|
2879
|
-
), this.bundleCreationComponent = this.orbit?.
|
|
2880
|
-
"fact-bundle-creation"
|
|
2881
|
-
), Promise.resolve();
|
|
2879
|
+
), this.bundleCreationComponent = this.orbit?.components.find((e) => e.type === "fact-bundle-creation"), Promise.resolve();
|
|
2882
2880
|
}
|
|
2883
2881
|
_search(e) {
|
|
2884
2882
|
e.preventDefault(), this.search = e.detail, this.filterCount = this.search.filter((t) => t.name !== "search").length;
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ export class SolidFactBundle extends OrbitComponent {
|
|
|
73
73
|
|
|
74
74
|
async _afterAttach() {
|
|
75
75
|
// use this.dspConnector.instance to reach the connector
|
|
76
|
-
this.dspConnector = this.orbit?.
|
|
76
|
+
this.dspConnector = this.orbit?.components.find((c) => c.type === "dsp-connector");
|
|
77
77
|
|
|
78
78
|
return Promise.resolve();
|
|
79
79
|
}
|
|
@@ -288,7 +288,7 @@ export class SolidFactBundle extends OrbitComponent {
|
|
|
288
288
|
this.bundleDescription = "";
|
|
289
289
|
this.selectedFacts = [];
|
|
290
290
|
|
|
291
|
-
const factbundleComponent: any = this.orbit?.
|
|
291
|
+
const factbundleComponent: any = this.orbit?.components.find((c) => c.type === "fact-bundle");
|
|
292
292
|
|
|
293
293
|
document.dispatchEvent(
|
|
294
294
|
new CustomEvent("save", {
|
|
@@ -95,9 +95,7 @@ export class SolidFactBundle extends OrbitComponent {
|
|
|
95
95
|
`[uniq="${this.orbit?.getComponent("menu")?.uniq}"]`,
|
|
96
96
|
);
|
|
97
97
|
|
|
98
|
-
this.bundleCreationComponent = this.orbit?.
|
|
99
|
-
"fact-bundle-creation",
|
|
100
|
-
);
|
|
98
|
+
this.bundleCreationComponent = this.orbit?.components.find((c) => c.type === "fact-bundle-creation");
|
|
101
99
|
|
|
102
100
|
return Promise.resolve();
|
|
103
101
|
}
|