@skyux/forms 13.0.0-alpha.8 → 13.0.0-beta.0
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.
|
@@ -621,7 +621,6 @@ class SkyCheckboxGroupHarness extends SkyComponentHarness {
|
|
|
621
621
|
* @internal
|
|
622
622
|
*/
|
|
623
623
|
static { this.hostSelector = 'sky-checkbox-group'; }
|
|
624
|
-
#getCheckboxes = this.locatorForAll(SkyCheckboxHarness);
|
|
625
624
|
#getHeading = this.locatorFor('.sky-checkbox-group-heading');
|
|
626
625
|
#getHeadingWrapper = this.locatorFor('.sky-checkbox-group-legend');
|
|
627
626
|
#getHintText = this.locatorForOptional('.sky-checkbox-group-hint-text');
|
|
@@ -644,10 +643,19 @@ class SkyCheckboxGroupHarness extends SkyComponentHarness {
|
|
|
644
643
|
await (await this.#getHelpInline()).click();
|
|
645
644
|
}
|
|
646
645
|
/**
|
|
647
|
-
* Gets
|
|
646
|
+
* Gets a specific checkbox based on the filter criteria.
|
|
647
|
+
* @param filter The filter criteria.
|
|
648
648
|
*/
|
|
649
|
-
async
|
|
650
|
-
return await this
|
|
649
|
+
async getCheckbox(filter) {
|
|
650
|
+
return await this.locatorFor(SkyCheckboxHarness.with(filter))();
|
|
651
|
+
}
|
|
652
|
+
/**
|
|
653
|
+
* Gets an array of checkboxes based on the filter criteria.
|
|
654
|
+
* If no filter is provided, returns all checkboxes.
|
|
655
|
+
* @param filter The optional filter criteria.
|
|
656
|
+
*/
|
|
657
|
+
async getCheckboxes(filters) {
|
|
658
|
+
return await this.locatorForAll(SkyCheckboxHarness.with(filters || {}))();
|
|
651
659
|
}
|
|
652
660
|
/**
|
|
653
661
|
* Gets the help popover content.
|
|
@@ -1614,7 +1622,6 @@ class SkyRadioGroupHarness extends SkyComponentHarness {
|
|
|
1614
1622
|
#getLegendH4 = this.locatorForOptional('legend h4');
|
|
1615
1623
|
#getLegendH5 = this.locatorForOptional('legend h5');
|
|
1616
1624
|
#getLegendHeading = this.locatorForOptional('legend h3,h4,h5,.sky-radio-group-heading-text');
|
|
1617
|
-
#getRadioButtons = this.locatorForAll(SkyRadioHarness);
|
|
1618
1625
|
/**
|
|
1619
1626
|
* Gets a `HarnessPredicate` that can be used to search for a
|
|
1620
1627
|
* `SkyRadioGroupHarness` that meets certain criteria.
|
|
@@ -1701,10 +1708,19 @@ class SkyRadioGroupHarness extends SkyComponentHarness {
|
|
|
1701
1708
|
return (await hintText?.text())?.trim() ?? '';
|
|
1702
1709
|
}
|
|
1703
1710
|
/**
|
|
1704
|
-
* Gets
|
|
1711
|
+
* Gets a specific radio button based on the filter criteria.
|
|
1712
|
+
* @param filter The filter criteria.
|
|
1705
1713
|
*/
|
|
1706
|
-
async
|
|
1707
|
-
return await this
|
|
1714
|
+
async getRadioButton(filter) {
|
|
1715
|
+
return await this.locatorFor(SkyRadioHarness.with(filter))();
|
|
1716
|
+
}
|
|
1717
|
+
/**
|
|
1718
|
+
* Gets an array of radio buttons based on the filter criteria.
|
|
1719
|
+
* If no filter is provided, returns all radio buttons.
|
|
1720
|
+
* @param filters The optional filter criteria.
|
|
1721
|
+
*/
|
|
1722
|
+
async getRadioButtons(filters) {
|
|
1723
|
+
return await this.locatorForAll(SkyRadioHarness.with(filters || {}))();
|
|
1708
1724
|
}
|
|
1709
1725
|
/**
|
|
1710
1726
|
* Whether the radio group is required.
|
|
@@ -1838,20 +1854,19 @@ class SkySelectionBoxGridHarness extends SkyComponentHarness {
|
|
|
1838
1854
|
return SkySelectionBoxGridHarness.getDataSkyIdPredicate(filters);
|
|
1839
1855
|
}
|
|
1840
1856
|
/**
|
|
1841
|
-
* Gets a
|
|
1857
|
+
* Gets a specific selection box based on the filter criteria.
|
|
1858
|
+
* @param filter The filter criteria.
|
|
1842
1859
|
*/
|
|
1843
1860
|
async getSelectionBox(filter) {
|
|
1844
1861
|
return await this.locatorFor(SkySelectionBoxHarness.with(filter))();
|
|
1845
1862
|
}
|
|
1846
1863
|
/**
|
|
1847
|
-
* Gets an array of selection boxes.
|
|
1864
|
+
* Gets an array of selection boxes based on the filter criteria.
|
|
1865
|
+
* If no filter is provided, returns all selection boxes.
|
|
1866
|
+
* @param filters The optional filter criteria.
|
|
1848
1867
|
*/
|
|
1849
1868
|
async getSelectionBoxes(filters) {
|
|
1850
|
-
|
|
1851
|
-
if (filters && items.length === 0) {
|
|
1852
|
-
throw new Error(`Unable to find any selection boxes with filter(s): ${JSON.stringify(filters)}`);
|
|
1853
|
-
}
|
|
1854
|
-
return items;
|
|
1869
|
+
return await this.locatorForAll(SkySelectionBoxHarness.with(filters || {}))();
|
|
1855
1870
|
}
|
|
1856
1871
|
}
|
|
1857
1872
|
|