@gravitee/ui-particles-angular 16.0.0 → 16.0.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.
|
@@ -7366,7 +7366,9 @@ class GioFormSelectionInlineCardHarness extends ComponentHarness {
|
|
|
7366
7366
|
}
|
|
7367
7367
|
async getValue() {
|
|
7368
7368
|
const host = await this.host();
|
|
7369
|
-
|
|
7369
|
+
// Fallback to keep for Angular 19 compatibility. Can be removed when all projects are on Angular 20+
|
|
7370
|
+
const value = (await host.getAttribute('value')) ?? (await host.getAttribute('ng-reflect-value'));
|
|
7371
|
+
return value ?? null;
|
|
7370
7372
|
}
|
|
7371
7373
|
async isSelected() {
|
|
7372
7374
|
return (await this.host()).hasClass('selected');
|
|
@@ -7399,7 +7401,6 @@ class GioFormSelectionInlineHarness extends ComponentHarness {
|
|
|
7399
7401
|
constructor() {
|
|
7400
7402
|
super(...arguments);
|
|
7401
7403
|
this.getCards = this.locatorForAll(GioFormSelectionInlineCardHarness);
|
|
7402
|
-
this.getCardByValue = (value) => this.locatorFor(`gio-form-selection-inline-card[value="${value}"]`)();
|
|
7403
7404
|
}
|
|
7404
7405
|
static { this.hostSelector = 'gio-form-selection-inline'; }
|
|
7405
7406
|
/**
|
|
@@ -7412,6 +7413,18 @@ class GioFormSelectionInlineHarness extends ComponentHarness {
|
|
|
7412
7413
|
static with(options = {}) {
|
|
7413
7414
|
return new HarnessPredicate(GioFormSelectionInlineHarness, options);
|
|
7414
7415
|
}
|
|
7416
|
+
async getCardByValue(value) {
|
|
7417
|
+
const primaryLocator = await this.locatorForOptional(`gio-form-selection-inline-card[value="${value}"]`)();
|
|
7418
|
+
if (primaryLocator) {
|
|
7419
|
+
return primaryLocator;
|
|
7420
|
+
}
|
|
7421
|
+
// Fallback to keep for Angular 19 compatibility. Can be removed when all projects are on Angular 20+
|
|
7422
|
+
const secondaryLocator = await this.locatorForOptional(`gio-form-selection-inline-card[ng-reflect-value="${value}"]`)();
|
|
7423
|
+
if (secondaryLocator) {
|
|
7424
|
+
return secondaryLocator;
|
|
7425
|
+
}
|
|
7426
|
+
throw new Error(`No card found with value or ng-reflect-value "${value}"`);
|
|
7427
|
+
}
|
|
7415
7428
|
async getSelectedValue() {
|
|
7416
7429
|
const cards = await this.getCards();
|
|
7417
7430
|
const cardsAttr = await parallel(() => cards.map(async (row) => ({ class: await row.isSelected(), value: await row.getValue() })));
|