@startinblox/components-ds4go 3.1.4 → 3.1.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/{custom-getter-ZPFnoSjt-BCNOlbJZ-CHZXhUca.js → custom-getter-ZPFnoSjt-BCNOlbJZ-DrLZW_TM.js} +1 -1
- package/dist/{index-DQ-N8-vz.js → index-Cr3kKhks.js} +3679 -3664
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/src/components/modal/ds4go-fact-bundle-modal.ts +31 -12
- package/src/components/solid-fact-bundle-creation.ts +8 -2
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import "./index-
|
|
1
|
+
import "./index-Cr3kKhks.js";
|
package/package.json
CHANGED
|
@@ -58,6 +58,14 @@ export class Ds4goFactBundleModal extends OrbitComponent {
|
|
|
58
58
|
@state()
|
|
59
59
|
negotiations: ExtendedContractNegotiation[] = [];
|
|
60
60
|
|
|
61
|
+
@state()
|
|
62
|
+
showTechnicalInfo = false;
|
|
63
|
+
|
|
64
|
+
_toggleTechnicalInfo(e: Event) {
|
|
65
|
+
e.preventDefault();
|
|
66
|
+
this.showTechnicalInfo = !this.showTechnicalInfo;
|
|
67
|
+
}
|
|
68
|
+
|
|
61
69
|
_getResource = new Task(this, {
|
|
62
70
|
task: async () => {
|
|
63
71
|
if (!this.object) return;
|
|
@@ -180,18 +188,29 @@ export class Ds4goFactBundleModal extends OrbitComponent {
|
|
|
180
188
|
</div>
|
|
181
189
|
</div></tems-division
|
|
182
190
|
>
|
|
183
|
-
<tems-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
191
|
+
<tems-button
|
|
192
|
+
@click=${this._toggleTechnicalInfo}
|
|
193
|
+
type="outline-gray"
|
|
194
|
+
label=${this.showTechnicalInfo
|
|
195
|
+
? msg("Hide Technical Informations")
|
|
196
|
+
: msg("Show Technical Informations")}
|
|
197
|
+
></tems-button>
|
|
198
|
+
${this.showTechnicalInfo
|
|
199
|
+
? html`
|
|
200
|
+
<tems-division type="h4"
|
|
201
|
+
>${msg("Technical informations")}</tems-division
|
|
202
|
+
>
|
|
203
|
+
${this.contracts && this.contracts.length > 0
|
|
204
|
+
? html`${this.contracts.map(
|
|
205
|
+
(contract: ContractDefinition) =>
|
|
206
|
+
html`<ds4go-contract-modal-part
|
|
207
|
+
.contract=${contract}
|
|
208
|
+
.assets=${this.assets}
|
|
209
|
+
.policies=${this.policies}
|
|
210
|
+
></ds4go-contract-modal-part>`,
|
|
211
|
+
)}`
|
|
212
|
+
: nothing}
|
|
213
|
+
`
|
|
195
214
|
: nothing}
|
|
196
215
|
${this.negotiations && this.negotiations.length > 0
|
|
197
216
|
? html`<ds4go-negotiations-modal-part
|
|
@@ -153,6 +153,9 @@ export class SolidFactBundle extends OrbitComponent {
|
|
|
153
153
|
this.spliceLength =
|
|
154
154
|
Math.floor((window.innerWidth - 800) / 354) *
|
|
155
155
|
Math.floor((window.innerHeight - 255) / 500);
|
|
156
|
+
if (this.spliceLength < 5) {
|
|
157
|
+
this._showAllResults();
|
|
158
|
+
}
|
|
156
159
|
}
|
|
157
160
|
|
|
158
161
|
if (factsWithoutSelected.length > 0) {
|
|
@@ -254,7 +257,10 @@ export class SolidFactBundle extends OrbitComponent {
|
|
|
254
257
|
offeredAccess: "40",
|
|
255
258
|
pricingTier: "premium",
|
|
256
259
|
"dcat:endpointUrl": newFactBundleId,
|
|
257
|
-
previewLinks: this.selectedFacts
|
|
260
|
+
previewLinks: this.selectedFacts
|
|
261
|
+
.slice(0, 3)
|
|
262
|
+
.map((fact) => fact["@id"])
|
|
263
|
+
.join(", "),
|
|
258
264
|
"dsif:pricing": {
|
|
259
265
|
"dsif:costPerAPICall": 0.15,
|
|
260
266
|
"dsif:setupFee": 50,
|
|
@@ -424,7 +430,7 @@ export class SolidFactBundle extends OrbitComponent {
|
|
|
424
430
|
? html`<tems-button
|
|
425
431
|
type="primary"
|
|
426
432
|
disabled=${this.selectedFacts.length === 0 || nothing}
|
|
427
|
-
label=${msg("
|
|
433
|
+
label=${msg("Next")}
|
|
428
434
|
@click=${this._nextStep}
|
|
429
435
|
></tems-button>`
|
|
430
436
|
: html`<div class="flex">
|