@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/index.js CHANGED
@@ -1 +1 @@
1
- import "./index-DQ-N8-vz.js";
1
+ import "./index-Cr3kKhks.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/components-ds4go",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Startin'blox DS4GO",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -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-division type="h4"
184
- ><div>${msg("Technical informations")}</div></tems-division
185
- >
186
- ${this.contracts && this.contracts.length > 0
187
- ? html`${this.contracts.map(
188
- (contract: ContractDefinition) =>
189
- html`<ds4go-contract-modal-part
190
- .contract=${contract}
191
- .assets=${this.assets}
192
- .policies=${this.policies}
193
- ></ds4go-contract-modal-part>`,
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.slice(0, 3).map(fact => fact["@id"]).join(", "),
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("Set bundle informations")}
433
+ label=${msg("Next")}
428
434
  @click=${this._nextStep}
429
435
  ></tems-button>`
430
436
  : html`<div class="flex">