@skyux/layout 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.
- package/fesm2022/skyux-layout-testing.mjs +29 -35
- package/fesm2022/skyux-layout-testing.mjs.map +1 -1
- package/fesm2022/skyux-layout.mjs +83 -124
- package/fesm2022/skyux-layout.mjs.map +1 -1
- package/index.d.ts +17 -31
- package/package.json +11 -11
- package/testing/index.d.ts +25 -10
|
@@ -297,7 +297,7 @@ class SkyDescriptionListTermHarness extends ComponentHarness {
|
|
|
297
297
|
/**
|
|
298
298
|
* Harness for interacting with a description list content component in tests.
|
|
299
299
|
*/
|
|
300
|
-
class SkyDescriptionListContentHarness extends
|
|
300
|
+
class SkyDescriptionListContentHarness extends ComponentHarness {
|
|
301
301
|
/**
|
|
302
302
|
* @internal
|
|
303
303
|
*/
|
|
@@ -368,6 +368,9 @@ class SkyDescriptionListHarness extends SkyComponentHarness {
|
|
|
368
368
|
static with(filters) {
|
|
369
369
|
return SkyDescriptionListHarness.getDataSkyIdPredicate(filters);
|
|
370
370
|
}
|
|
371
|
+
/**
|
|
372
|
+
* Gets the description list content items.
|
|
373
|
+
*/
|
|
371
374
|
async getContent() {
|
|
372
375
|
const items = await this.#getContentEls();
|
|
373
376
|
if (items.length === 0) {
|
|
@@ -745,23 +748,19 @@ class SkyToolbarSectionHarness extends SkyComponentHarness {
|
|
|
745
748
|
return SkyToolbarSectionHarness.getDataSkyIdPredicate(filters);
|
|
746
749
|
}
|
|
747
750
|
/**
|
|
748
|
-
* Gets a
|
|
751
|
+
* Gets a specific toolbar item based on the filter criteria.
|
|
752
|
+
* @param filter The filter criteria.
|
|
749
753
|
*/
|
|
750
754
|
async getItem(filter) {
|
|
751
755
|
return await this.locatorFor(SkyToolbarItemHarness.with(filter))();
|
|
752
756
|
}
|
|
753
757
|
/**
|
|
754
|
-
* Gets an array of
|
|
758
|
+
* Gets an array of toolbar items based on the filter criteria.
|
|
759
|
+
* If no filter is provided, returns all toolbar items.
|
|
760
|
+
* @param filters The optional filter criteria.
|
|
755
761
|
*/
|
|
756
762
|
async getItems(filters) {
|
|
757
|
-
|
|
758
|
-
if (items.length === 0) {
|
|
759
|
-
if (filters) {
|
|
760
|
-
throw new Error(`Unable to find any toolbar section items with filter(s): ${JSON.stringify(filters)}`);
|
|
761
|
-
}
|
|
762
|
-
throw new Error('Unable to find any toolbar section items.');
|
|
763
|
-
}
|
|
764
|
-
return items;
|
|
763
|
+
return await this.locatorForAll(SkyToolbarItemHarness.with(filters || {}))();
|
|
765
764
|
}
|
|
766
765
|
/**
|
|
767
766
|
* Gets the harness to interact with the toolbar's view actions.
|
|
@@ -792,42 +791,34 @@ class SkyToolbarHarness extends SkyComponentHarness {
|
|
|
792
791
|
return SkyToolbarHarness.getDataSkyIdPredicate(filters);
|
|
793
792
|
}
|
|
794
793
|
/**
|
|
795
|
-
* Gets a
|
|
794
|
+
* Gets a specific toolbar item based on the filter criteria.
|
|
795
|
+
* @param filter The filter criteria.
|
|
796
796
|
*/
|
|
797
797
|
async getItem(filter) {
|
|
798
798
|
return await this.locatorFor(SkyToolbarItemHarness.with(filter))();
|
|
799
799
|
}
|
|
800
800
|
/**
|
|
801
|
-
* Gets an array of
|
|
801
|
+
* Gets an array of toolbar items based on the filter criteria.
|
|
802
|
+
* If no filter is provided, returns all toolbar items.
|
|
803
|
+
* @param filters The optional filter criteria.
|
|
802
804
|
*/
|
|
803
805
|
async getItems(filters) {
|
|
804
|
-
|
|
805
|
-
if (items.length === 0) {
|
|
806
|
-
if (filters) {
|
|
807
|
-
throw new Error(`Unable to find any toolbar items with filter(s): ${JSON.stringify(filters)}`);
|
|
808
|
-
}
|
|
809
|
-
throw new Error('Unable to find any toolbar items.');
|
|
810
|
-
}
|
|
811
|
-
return items;
|
|
806
|
+
return await this.locatorForAll(SkyToolbarItemHarness.with(filters || {}))();
|
|
812
807
|
}
|
|
813
808
|
/**
|
|
814
|
-
* Gets a
|
|
809
|
+
* Gets a specific toolbar section based on the filter criteria.
|
|
810
|
+
* @param filter The filter criteria.
|
|
815
811
|
*/
|
|
816
812
|
async getSection(filter) {
|
|
817
813
|
return await this.locatorFor(SkyToolbarSectionHarness.with(filter))();
|
|
818
814
|
}
|
|
819
815
|
/**
|
|
820
|
-
* Gets an array of
|
|
816
|
+
* Gets an array of toolbar sections based on the filter criteria.
|
|
817
|
+
* If no filter is provided, returns all toolbar sections.
|
|
818
|
+
* @param filters The optional filter criteria.
|
|
821
819
|
*/
|
|
822
820
|
async getSections(filters) {
|
|
823
|
-
|
|
824
|
-
if (sections.length === 0) {
|
|
825
|
-
if (filters) {
|
|
826
|
-
throw new Error(`Unable to find any toolbar sections with filter(s): ${JSON.stringify(filters)}`);
|
|
827
|
-
}
|
|
828
|
-
throw new Error('Unable to find any toolbar sections.');
|
|
829
|
-
}
|
|
830
|
-
return sections;
|
|
821
|
+
return await this.locatorForAll(SkyToolbarSectionHarness.with(filters || {}))();
|
|
831
822
|
}
|
|
832
823
|
/**
|
|
833
824
|
* Gets the harness to interact with the toolbar's view actions.
|
|
@@ -911,16 +902,19 @@ class SkyActionButtonContainerHarness extends SkyComponentHarness {
|
|
|
911
902
|
return SkyActionButtonContainerHarness.getDataSkyIdPredicate(filters);
|
|
912
903
|
}
|
|
913
904
|
/**
|
|
914
|
-
* Gets
|
|
905
|
+
* Gets a specific action button based on the filter criteria.
|
|
906
|
+
* @param filter The filter criteria.
|
|
915
907
|
*/
|
|
916
908
|
async getActionButton(filter) {
|
|
917
909
|
return await this.locatorFor(SkyActionButtonHarness.with(filter))();
|
|
918
910
|
}
|
|
919
911
|
/**
|
|
920
|
-
* Gets
|
|
912
|
+
* Gets an array of action buttons based on the filter criteria.
|
|
913
|
+
* If no filter is provided, returns all action buttons.
|
|
914
|
+
* @param filters The optional filter criteria.
|
|
921
915
|
*/
|
|
922
|
-
async getActionButtons() {
|
|
923
|
-
return await this.locatorForAll(SkyActionButtonHarness)();
|
|
916
|
+
async getActionButtons(filters) {
|
|
917
|
+
return await this.locatorForAll(SkyActionButtonHarness.with(filters || {}))();
|
|
924
918
|
}
|
|
925
919
|
/**
|
|
926
920
|
* Gets the alignment of the buttons inside the container.
|