@startinblox/components-ds4go 3.2.0 → 3.2.1

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
@@ -4819,33 +4819,31 @@ let X = class extends T {
4819
4819
  </div>
4820
4820
  </div></tems-division
4821
4821
  >
4822
- <tems-button
4823
- @click=${this._toggleTechnicalInfo}
4824
- type="outline-gray"
4825
- label=${this.showTechnicalInfo ? l("Hide Technical Informations") : l("Show Technical Informations")}
4826
- ></tems-button>
4827
- ${this.showTechnicalInfo ? p`
4828
- <tems-division type="h4"
4829
- >${l("Technical informations")}</tems-division
4830
- >
4831
- ${this.contracts && this.contracts.length > 0 ? p`${this.contracts.map(
4822
+ ${this.contracts && this.contracts.length > 0 || this.negotiations && this.negotiations.length > 0 ? p`<tems-button
4823
+ @click=${this._toggleTechnicalInfo}
4824
+ type="outline-gray"
4825
+ label=${this.showTechnicalInfo ? l("Hide Technical Informations") : l("Show Technical Informations")}
4826
+ ></tems-button>
4827
+ ${this.showTechnicalInfo ? p`<tems-division type="h4"
4828
+ >${l("Technical informations")}</tems-division
4829
+ >
4830
+ ${this.contracts && this.contracts.length > 0 ? p`${this.contracts.map(
4832
4831
  (t) => p`<ds4go-contract-modal-part
4833
- .contract=${t}
4834
- .assets=${this.assets}
4835
- .policies=${this.policies}
4836
- ></ds4go-contract-modal-part>`
4832
+ .contract=${t}
4833
+ .assets=${this.assets}
4834
+ .policies=${this.policies}
4835
+ ></ds4go-contract-modal-part>`
4837
4836
  )}` : d}
4838
- ` : d}
4839
- ${this.negotiations && this.negotiations.length > 0 ? p`<ds4go-negotiations-modal-part
4840
- .negotiations=${this.negotiations}
4841
- .assets=${this.assets}
4842
- .type=${"PROVIDER"}
4843
- ></ds4go-negotiations-modal-part>
4844
- <ds4go-negotiations-modal-part
4845
- .negotiations=${this.negotiations}
4846
- .assets=${this.assets}
4847
- .type=${"CONSUMER"}
4848
- ></ds4go-negotiations-modal-part>` : d}
4837
+ ${this.negotiations && this.negotiations.length > 0 ? p`<ds4go-negotiations-modal-part
4838
+ .negotiations=${this.negotiations}
4839
+ .assets=${this.assets}
4840
+ .type=${"PROVIDER"}
4841
+ ></ds4go-negotiations-modal-part>
4842
+ <ds4go-negotiations-modal-part
4843
+ .negotiations=${this.negotiations}
4844
+ .assets=${this.assets}
4845
+ .type=${"CONSUMER"}
4846
+ ></ds4go-negotiations-modal-part>` : d}` : d}` : d}
4849
4847
  </div>
4850
4848
  </div>
4851
4849
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@startinblox/components-ds4go",
3
- "version": "3.2.0",
3
+ "version": "3.2.1",
4
4
  "description": "Startin'blox DS4GO",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -188,41 +188,42 @@ export class Ds4goFactBundleModal extends OrbitComponent {
188
188
  </div>
189
189
  </div></tems-division
190
190
  >
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
- `
214
- : nothing}
215
- ${this.negotiations && this.negotiations.length > 0
216
- ? html`<ds4go-negotiations-modal-part
217
- .negotiations=${this.negotiations}
218
- .assets=${this.assets}
219
- .type=${"PROVIDER"}
220
- ></ds4go-negotiations-modal-part>
221
- <ds4go-negotiations-modal-part
222
- .negotiations=${this.negotiations}
223
- .assets=${this.assets}
224
- .type=${"CONSUMER"}
225
- ></ds4go-negotiations-modal-part>`
191
+ ${(this.contracts && this.contracts.length > 0) ||
192
+ (this.negotiations && this.negotiations.length > 0)
193
+ ? html`<tems-button
194
+ @click=${this._toggleTechnicalInfo}
195
+ type="outline-gray"
196
+ label=${this.showTechnicalInfo
197
+ ? msg("Hide Technical Informations")
198
+ : msg("Show Technical Informations")}
199
+ ></tems-button>
200
+ ${this.showTechnicalInfo
201
+ ? html`<tems-division type="h4"
202
+ >${msg("Technical informations")}</tems-division
203
+ >
204
+ ${this.contracts && this.contracts.length > 0
205
+ ? html`${this.contracts.map(
206
+ (contract: ContractDefinition) =>
207
+ html`<ds4go-contract-modal-part
208
+ .contract=${contract}
209
+ .assets=${this.assets}
210
+ .policies=${this.policies}
211
+ ></ds4go-contract-modal-part>`,
212
+ )}`
213
+ : nothing}
214
+ ${this.negotiations && this.negotiations.length > 0
215
+ ? html`<ds4go-negotiations-modal-part
216
+ .negotiations=${this.negotiations}
217
+ .assets=${this.assets}
218
+ .type=${"PROVIDER"}
219
+ ></ds4go-negotiations-modal-part>
220
+ <ds4go-negotiations-modal-part
221
+ .negotiations=${this.negotiations}
222
+ .assets=${this.assets}
223
+ .type=${"CONSUMER"}
224
+ ></ds4go-negotiations-modal-part>`
225
+ : nothing}`
226
+ : nothing}`
226
227
  : nothing}
227
228
  </div>
228
229
  </div>