@skyux/forms 11.3.0 → 11.4.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/documentation.json +3362 -826
- package/esm2022/lib/modules/form-error/form-errors.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio-group.component.mjs +3 -3
- package/esm2022/lib/modules/radio/radio.component.mjs +3 -3
- package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +5 -5
- package/esm2022/testing/public-api.mjs +4 -1
- package/esm2022/testing/radio/radio-group-harness-filters.mjs +2 -0
- package/esm2022/testing/radio/radio-group-harness.mjs +152 -0
- package/esm2022/testing/radio/radio-harness-filters.mjs +2 -0
- package/esm2022/testing/radio/radio-harness.mjs +147 -0
- package/esm2022/testing/radio/radio-label-harness.mjs +19 -0
- package/fesm2022/skyux-forms-testing.mjs +311 -1
- package/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +10 -10
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/package.json +9 -9
- package/testing/public-api.d.ts +5 -0
- package/testing/radio/radio-group-harness-filters.d.ts +7 -0
- package/testing/radio/radio-group-harness.d.ts +69 -0
- package/testing/radio/radio-harness-filters.d.ts +7 -0
- package/testing/radio/radio-harness.d.ts +79 -0
- package/testing/radio/radio-label-harness.d.ts +16 -0
|
@@ -684,9 +684,319 @@ class SkyRadioFixture {
|
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
|
|
687
|
+
/**
|
|
688
|
+
* Harness for interacting with a radio label component in tests.
|
|
689
|
+
* @internal
|
|
690
|
+
*/
|
|
691
|
+
class SkyRadioLabelHarness extends ComponentHarness {
|
|
692
|
+
/**
|
|
693
|
+
* @internal
|
|
694
|
+
*/
|
|
695
|
+
static { this.hostSelector = 'sky-radio-label'; }
|
|
696
|
+
#getLabelContent = this.locatorFor('.sky-switch-label');
|
|
697
|
+
/**
|
|
698
|
+
* Gets the text content of the radio label.
|
|
699
|
+
*/
|
|
700
|
+
async getText() {
|
|
701
|
+
return (await this.#getLabelContent()).text();
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Harness for interacting with a radio button component in tests.
|
|
707
|
+
*/
|
|
708
|
+
class SkyRadioHarness extends SkyComponentHarness {
|
|
709
|
+
/**
|
|
710
|
+
* @internal
|
|
711
|
+
*/
|
|
712
|
+
static { this.hostSelector = 'sky-radio'; }
|
|
713
|
+
#getHintText = this.locatorForOptional('.sky-radio-hint-text');
|
|
714
|
+
#getInput = this.locatorFor('input.sky-radio-input');
|
|
715
|
+
#getLabel = this.locatorForOptional(SkyRadioLabelHarness);
|
|
716
|
+
#getLabelText = this.locatorForOptional('span.sky-switch-label.sky-radio-label-text');
|
|
717
|
+
/**
|
|
718
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
719
|
+
* `SkyRadioHarness` that meets certain criteria.
|
|
720
|
+
*/
|
|
721
|
+
static with(filters) {
|
|
722
|
+
return SkyRadioHarness.getDataSkyIdPredicate(filters);
|
|
723
|
+
}
|
|
724
|
+
/**
|
|
725
|
+
* Blurs the radio button.
|
|
726
|
+
*/
|
|
727
|
+
async blur() {
|
|
728
|
+
return (await this.#getInput()).blur();
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Puts the radio button in a checked state if it is currently unchecked.
|
|
732
|
+
*/
|
|
733
|
+
async check() {
|
|
734
|
+
if (await this.isDisabled()) {
|
|
735
|
+
throw new Error('Could not check the radio button because it is disabled.');
|
|
736
|
+
}
|
|
737
|
+
else if (!(await this.isChecked())) {
|
|
738
|
+
await (await this.#getInput()).click();
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* Clicks the help inline button.
|
|
743
|
+
*/
|
|
744
|
+
async clickHelpInline() {
|
|
745
|
+
return (await this.#getHelpInline()).click();
|
|
746
|
+
}
|
|
747
|
+
/**
|
|
748
|
+
* Focuses the radio button.
|
|
749
|
+
*/
|
|
750
|
+
async focus() {
|
|
751
|
+
return (await this.#getInput()).focus();
|
|
752
|
+
}
|
|
753
|
+
/**
|
|
754
|
+
* Gets the radio button's aria-label.
|
|
755
|
+
*/
|
|
756
|
+
async getAriaLabel() {
|
|
757
|
+
return (await this.#getInput()).getAttribute('aria-label');
|
|
758
|
+
}
|
|
759
|
+
/**
|
|
760
|
+
* Gets the radio button's aria-labelledby.
|
|
761
|
+
*/
|
|
762
|
+
async getAriaLabelledby() {
|
|
763
|
+
return (await this.#getInput()).getAttribute('aria-labelledby');
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Gets the help popover content.
|
|
767
|
+
*/
|
|
768
|
+
async getHelpPopoverContent() {
|
|
769
|
+
const content = await (await this.#getHelpInline()).getPopoverContent();
|
|
770
|
+
/* istanbul ignore if */
|
|
771
|
+
if (typeof content === 'object') {
|
|
772
|
+
throw Error('Unexpected template ref');
|
|
773
|
+
}
|
|
774
|
+
return content;
|
|
775
|
+
}
|
|
776
|
+
/**
|
|
777
|
+
* Gets the help popover title.
|
|
778
|
+
*/
|
|
779
|
+
async getHelpPopoverTitle() {
|
|
780
|
+
return await (await this.#getHelpInline()).getPopoverTitle();
|
|
781
|
+
}
|
|
782
|
+
/**
|
|
783
|
+
* Gets the radio button's hint text.
|
|
784
|
+
*/
|
|
785
|
+
async getHintText() {
|
|
786
|
+
const hintText = await this.#getHintText();
|
|
787
|
+
return (await hintText?.text())?.trim() ?? '';
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Whether the label is hidden. Only supported when using the `labelText` input to set the label.
|
|
791
|
+
*/
|
|
792
|
+
async getLabelHidden() {
|
|
793
|
+
const labelText = await this.#getLabelText();
|
|
794
|
+
const label = await this.#getLabel();
|
|
795
|
+
if (label) {
|
|
796
|
+
throw new Error('`labelIsHidden` is only supported when setting the radio label via the `labelText` input.');
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
return !!(await labelText?.hasClass('sky-screen-reader-only'));
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
/**
|
|
803
|
+
* Gets the radio button's label text. If the label is set via `labelText` and `labelHidden` is true,
|
|
804
|
+
* the text will still be returned.
|
|
805
|
+
*/
|
|
806
|
+
async getLabelText() {
|
|
807
|
+
const labelText = await this.#getLabelText();
|
|
808
|
+
if (labelText) {
|
|
809
|
+
return labelText.text();
|
|
810
|
+
}
|
|
811
|
+
else {
|
|
812
|
+
return (await this.#getLabel())?.getText();
|
|
813
|
+
}
|
|
814
|
+
}
|
|
815
|
+
/**
|
|
816
|
+
* Gets the radio button's name.
|
|
817
|
+
*/
|
|
818
|
+
async getName() {
|
|
819
|
+
return (await this.#getInput()).getAttribute('name');
|
|
820
|
+
}
|
|
821
|
+
/**
|
|
822
|
+
* Whether the radio button is checked.
|
|
823
|
+
*/
|
|
824
|
+
async isChecked() {
|
|
825
|
+
return (await this.#getInput()).getProperty('checked');
|
|
826
|
+
}
|
|
827
|
+
/**
|
|
828
|
+
* Whether the radio button is disabled.
|
|
829
|
+
*/
|
|
830
|
+
async isDisabled() {
|
|
831
|
+
const disabled = await (await this.#getInput()).getAttribute('disabled');
|
|
832
|
+
return disabled !== null;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Whether the radio button is focused.
|
|
836
|
+
*/
|
|
837
|
+
async isFocused() {
|
|
838
|
+
return (await this.#getInput()).isFocused();
|
|
839
|
+
}
|
|
840
|
+
async #getHelpInline() {
|
|
841
|
+
const harness = await this.locatorForOptional(SkyHelpInlineHarness)();
|
|
842
|
+
if (harness) {
|
|
843
|
+
return harness;
|
|
844
|
+
}
|
|
845
|
+
throw Error('No help inline found.');
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* Harness for interacting with a radio group component in tests.
|
|
851
|
+
*/
|
|
852
|
+
class SkyRadioGroupHarness extends SkyComponentHarness {
|
|
853
|
+
/**
|
|
854
|
+
* @internal
|
|
855
|
+
*/
|
|
856
|
+
static { this.hostSelector = 'sky-radio-group'; }
|
|
857
|
+
#getH3 = this.locatorForOptional('legend h3');
|
|
858
|
+
#getH4 = this.locatorForOptional('legend h4');
|
|
859
|
+
#getH5 = this.locatorForOptional('legend h5');
|
|
860
|
+
#getHeading = this.locatorFor('.sky-control-label');
|
|
861
|
+
#getHeadingText = this.locatorForOptional('legend .sky-radio-group-heading-text');
|
|
862
|
+
#getHintText = this.locatorForOptional('.sky-radio-group-hint-text');
|
|
863
|
+
#getRadioButtons = this.locatorForAll(SkyRadioHarness);
|
|
864
|
+
/**
|
|
865
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
866
|
+
* `SkyRadioGroupHarness` that meets certain criteria.
|
|
867
|
+
*/
|
|
868
|
+
static with(filters) {
|
|
869
|
+
return SkyRadioGroupHarness.getDataSkyIdPredicate(filters);
|
|
870
|
+
}
|
|
871
|
+
/**
|
|
872
|
+
* Clicks the help inline button.
|
|
873
|
+
*/
|
|
874
|
+
async clickHelpInline() {
|
|
875
|
+
return (await this.#getHelpInline()).click();
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Whether the heading is hidden.
|
|
879
|
+
*/
|
|
880
|
+
async getHeadingHidden() {
|
|
881
|
+
return (await this.#getHeading()).hasClass('sky-screen-reader-only');
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* The semantic heading level used for the radio group. Returns undefined if heading level is not set.
|
|
885
|
+
*/
|
|
886
|
+
async getHeadingLevel() {
|
|
887
|
+
const h3 = await this.#getH3();
|
|
888
|
+
const h4 = await this.#getH4();
|
|
889
|
+
const h5 = await this.#getH5();
|
|
890
|
+
if (h3) {
|
|
891
|
+
return 3;
|
|
892
|
+
}
|
|
893
|
+
else if (h4) {
|
|
894
|
+
return 4;
|
|
895
|
+
}
|
|
896
|
+
else if (h5) {
|
|
897
|
+
return 5;
|
|
898
|
+
}
|
|
899
|
+
else {
|
|
900
|
+
return undefined;
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* The heading style used for the radio group.
|
|
905
|
+
*/
|
|
906
|
+
async getHeadingStyle() {
|
|
907
|
+
const headingOrLabel = (await this.#getH3()) ||
|
|
908
|
+
(await this.#getH4()) ||
|
|
909
|
+
(await this.#getH5()) ||
|
|
910
|
+
(await this.#getHeadingText());
|
|
911
|
+
const isHeadingStyle3 = await headingOrLabel?.hasClass('sky-font-heading-3');
|
|
912
|
+
const isHeadingStyle4 = await headingOrLabel?.hasClass('sky-font-heading-4');
|
|
913
|
+
if (isHeadingStyle3) {
|
|
914
|
+
return 3;
|
|
915
|
+
}
|
|
916
|
+
else if (isHeadingStyle4) {
|
|
917
|
+
return 4;
|
|
918
|
+
}
|
|
919
|
+
else {
|
|
920
|
+
return 5;
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
/**
|
|
924
|
+
* Gets the radio group's heading text. If `headingHidden` is true,
|
|
925
|
+
* the text will still be returned.
|
|
926
|
+
*/
|
|
927
|
+
async getHeadingText() {
|
|
928
|
+
return (await this.#getHeading()).text();
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Gets the help popover content.
|
|
932
|
+
*/
|
|
933
|
+
async getHelpPopoverContent() {
|
|
934
|
+
const content = await (await this.#getHelpInline()).getPopoverContent();
|
|
935
|
+
/* istanbul ignore if */
|
|
936
|
+
if (typeof content === 'object') {
|
|
937
|
+
throw Error('Unexpected template ref');
|
|
938
|
+
}
|
|
939
|
+
return content;
|
|
940
|
+
}
|
|
941
|
+
/**
|
|
942
|
+
* Gets the help popover title.
|
|
943
|
+
*/
|
|
944
|
+
async getHelpPopoverTitle() {
|
|
945
|
+
return await (await this.#getHelpInline()).getPopoverTitle();
|
|
946
|
+
}
|
|
947
|
+
/**
|
|
948
|
+
* Gets the radio group's hint text.
|
|
949
|
+
*/
|
|
950
|
+
async getHintText() {
|
|
951
|
+
const hintText = await this.#getHintText();
|
|
952
|
+
return (await hintText?.text())?.trim() ?? '';
|
|
953
|
+
}
|
|
954
|
+
/**
|
|
955
|
+
* Gets an array of harnesses for the radio buttons in the radio group.
|
|
956
|
+
*/
|
|
957
|
+
async getRadioButtons() {
|
|
958
|
+
return await this.#getRadioButtons();
|
|
959
|
+
}
|
|
960
|
+
/**
|
|
961
|
+
* Whether the radio group is required.
|
|
962
|
+
*/
|
|
963
|
+
async getRequired() {
|
|
964
|
+
const heading = await this.#getHeading();
|
|
965
|
+
return await heading.hasClass('sky-control-label-required');
|
|
966
|
+
}
|
|
967
|
+
/**
|
|
968
|
+
* Whether the radio group is stacked.
|
|
969
|
+
*/
|
|
970
|
+
async getStacked() {
|
|
971
|
+
const host = await this.host();
|
|
972
|
+
const heading = (await this.#getH3()) || (await this.#getH4()) || (await this.#getH5());
|
|
973
|
+
const label = await this.#getHeadingText();
|
|
974
|
+
return (((await host.hasClass('sky-margin-stacked-lg')) && !!label) ||
|
|
975
|
+
((await host.hasClass('sky-margin-stacked-xl')) && !!heading));
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Whether the radio group has errors.
|
|
979
|
+
*/
|
|
980
|
+
async hasError(errorName) {
|
|
981
|
+
return (await this.#getFormErrors()).hasError(errorName);
|
|
982
|
+
}
|
|
983
|
+
async #getFormErrors() {
|
|
984
|
+
return await this.locatorFor(SkyFormErrorsHarness)();
|
|
985
|
+
}
|
|
986
|
+
async #getHelpInline() {
|
|
987
|
+
const harness = await this.locatorForOptional(SkyHelpInlineHarness.with({
|
|
988
|
+
ancestor: '.sky-radio-group > .sky-radio-group-label-wrapper',
|
|
989
|
+
}))();
|
|
990
|
+
if (harness) {
|
|
991
|
+
return harness;
|
|
992
|
+
}
|
|
993
|
+
throw Error('No help inline found.');
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
|
|
687
997
|
/**
|
|
688
998
|
* Generated bundle index. Do not edit.
|
|
689
999
|
*/
|
|
690
1000
|
|
|
691
|
-
export { SkyCharacterCounterIndicatorHarness, SkyCheckboxFixture, SkyCheckboxHarness, SkyCheckboxLabelHarness, SkyFormErrorHarness, SkyFormErrorsHarness, SkyInputBoxHarness, SkyRadioFixture };
|
|
1001
|
+
export { SkyCharacterCounterIndicatorHarness, SkyCheckboxFixture, SkyCheckboxHarness, SkyCheckboxLabelHarness, SkyFormErrorHarness, SkyFormErrorsHarness, SkyInputBoxHarness, SkyRadioFixture, SkyRadioGroupHarness, SkyRadioHarness, SkyRadioLabelHarness };
|
|
692
1002
|
//# sourceMappingURL=skyux-forms-testing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-forms-testing.mjs","sources":["../../../../../libs/components/forms/testing/src/character-counter/character-counter-indicator-harness.ts","../../../../../libs/components/forms/testing/src/form-error/form-error-harness.ts","../../../../../libs/components/forms/testing/src/form-error/form-errors-harness.ts","../../../../../libs/components/forms/testing/src/input-box/input-box-harness.ts","../../../../../libs/components/forms/testing/src/checkbox-fixture.ts","../../../../../libs/components/forms/testing/src/checkbox/checkbox-label-harness.ts","../../../../../libs/components/forms/testing/src/checkbox/checkbox-label-text-label.harness.ts","../../../../../libs/components/forms/testing/src/checkbox/checkbox-harness.ts","../../../../../libs/components/forms/testing/src/radio-fixture.ts","../../../../../libs/components/forms/testing/src/skyux-forms-testing.ts"],"sourcesContent":["import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyCharacterCounterIndicatorHarnessFilters } from './character-counter-indicator-harness-filters';\n\ntype LabelParts = {\n count: number;\n limit: number;\n};\n\n/**\n * Harness for interacting with a character counter indicator component in tests.\n */\nexport class SkyCharacterCounterIndicatorHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-character-counter-indicator';\n\n #getLabel = this.locatorFor('.sky-character-count-label');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyCharacterCounterIndicatorHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyCharacterCounterIndicatorHarnessFilters,\n ): HarnessPredicate<SkyCharacterCounterIndicatorHarness> {\n return SkyCharacterCounterIndicatorHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets the current character count.\n */\n public async getCharacterCount(): Promise<number> {\n return (await this.#getLabelParts()).count;\n }\n\n /**\n * Gets the character counter limit.\n */\n public async getCharacterCountLimit(): Promise<number> {\n return (await this.#getLabelParts()).limit;\n }\n\n /**\n * Indicates whether the character counter is in an error state because the current character\n * count is greater than the limit.\n */\n public async isOverLimit(): Promise<boolean> {\n return (await this.#getLabel()).hasClass('sky-error-label');\n }\n\n async #getLabelParts(): Promise<LabelParts> {\n const label = await this.#getLabel();\n const textParts = (await label.text()).split('/');\n\n let labelParts: LabelParts | undefined;\n\n if (textParts.length === 2) {\n labelParts = {\n count: +textParts[0].trim(),\n limit: +textParts[1].trim(),\n };\n }\n\n if (labelParts && !isNaN(labelParts.count) && !isNaN(labelParts.limit)) {\n return labelParts;\n }\n\n throw new Error(\n 'The character counter indicator does not contain text in the expected format.',\n );\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyFormErrorHarnessFilters } from './form-error-harness.filters';\n\nexport class SkyFormErrorHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-form-error';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyFormErrorHarness` that meets certain criteria\n */\n public static with(\n filters: SkyFormErrorHarnessFilters,\n ): HarnessPredicate<SkyFormErrorHarness> {\n return SkyFormErrorHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets the error name.\n */\n public async getErrorName(): Promise<string | null> {\n return (await this.host()).getAttribute('errorName');\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyFormErrorHarness } from './form-error-harness';\nimport { SkyFormErrorsHarnessFilters } from './form-errors-harness.filters';\n\nexport class SkyFormErrorsHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-form-errors';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyFormErrorsHarness` that meets certain criteria\n */\n public static with(\n filters: SkyFormErrorsHarnessFilters,\n ): HarnessPredicate<SkyFormErrorsHarness> {\n return SkyFormErrorsHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets a list of all errors fired.\n */\n public async getFormErrors(): Promise<{ errorName: string | null }[]> {\n const formErrorHarnesses = await this.locatorForAll(\n SkyFormErrorHarness.with({}),\n )();\n\n return Promise.all(\n formErrorHarnesses.map(async (formError) => {\n return { errorName: await formError.getErrorName() };\n }),\n );\n }\n\n /**\n * Whether an error with the given name has fired.\n */\n public async hasError(errorName: string): Promise<boolean> {\n const formErrors = await this.getFormErrors();\n return formErrors.some((error) => {\n return error.errorName === errorName;\n });\n }\n}\n","import { HarnessPredicate, TestElement } from '@angular/cdk/testing';\nimport { TemplateRef } from '@angular/core';\nimport { SkyQueryableComponentHarness } from '@skyux/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\nimport { SkyStatusIndicatorHarness } from '@skyux/indicators/testing';\nimport { SkyPopoverHarness } from '@skyux/popovers/testing';\n\nimport { SkyCharacterCounterIndicatorHarness } from '../character-counter/character-counter-indicator-harness';\nimport { SkyFormErrorsHarness } from '../form-error/form-errors-harness';\n\nimport { SkyInputBoxHarnessFilters } from './input-box-harness-filters';\n\n/**\n * Harness for interacting with an input box component in tests.\n */\nexport class SkyInputBoxHarness extends SkyQueryableComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-input-box';\n\n #getHintText = this.locatorForOptional('.sky-input-box-hint-text');\n #getLabel = this.locatorForOptional('.sky-control-label');\n #getWrapper = this.locatorFor('.sky-input-box');\n\n async #getFormError(): Promise<SkyFormErrorsHarness> {\n return this.locatorFor(SkyFormErrorsHarness)();\n }\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyInputBoxHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyInputBoxHarnessFilters,\n ): HarnessPredicate<SkyInputBoxHarness> {\n return SkyInputBoxHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n return (await this.#getHelpInline()).click();\n }\n\n /**\n * Gets the character counter indicator for the input box or throws an error if\n * a character limit is not specified.\n */\n public async getCharacterCounter(): Promise<SkyCharacterCounterIndicatorHarness> {\n const characterCounter = await this.locatorForOptional(\n new HarnessPredicate(SkyCharacterCounterIndicatorHarness, {\n ancestor: '.sky-input-box-label-wrapper',\n }),\n )();\n\n if (!characterCounter) {\n throw new Error(\n 'The input box does not have a character limit specified.',\n );\n }\n\n return characterCounter;\n }\n\n /**\n * Gets a list of status indicator harnesses for errors not automatically\n * handled by input box.\n */\n public async getCustomErrors(): Promise<SkyStatusIndicatorHarness[]> {\n const errors = await this.locatorForAll(\n new HarnessPredicate(SkyStatusIndicatorHarness, {\n selector:\n 'sky-status-indicator:not(sky-form-error sky-status-indicator)',\n }),\n )();\n\n return errors;\n }\n\n /**\n * Whether the custom error is triggered.\n */\n public async hasCustomFormError(errorName: string): Promise<boolean> {\n return (await this.#getFormError()).hasError(errorName);\n }\n\n /**\n * Whether the required field is empty.\n */\n public async hasRequiredError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('required');\n }\n\n /**\n * Whether the field has more characters than allowed.\n */\n public async hasMaxLengthError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('maxlength');\n }\n\n /**\n * Whether the field has fewer characters than allowed.\n */\n public async hasMinLengthError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('minlength');\n }\n\n /**\n * Whether the field is set to an invalid email address.\n */\n public async hasEmailError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('email');\n }\n\n /**\n * Whether the field is set to an invalid URL.\n */\n public async hasUrlError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('url');\n }\n\n /**\n * Whether the field is set to an invalid date.\n */\n public async hasInvalidDateError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('invalidDate');\n }\n\n /**\n * Whether the field is set to an invalid minimum date.\n */\n public async hasMinDateError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('minDate');\n }\n\n /**\n * Whether the field is set to an invalid maximum date.\n */\n public async hasMaxDateError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('maxDate');\n }\n\n /**\n * Whether the field is set to an invalid phone number.\n */\n public async hasPhoneFieldError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('phone');\n }\n\n /**\n * Whether the field is set to an invalid time.\n */\n public async hasTimeError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('time');\n }\n\n /**\n * Indicates whether the input box has disabled styles applied.\n */\n public async getDisabled(): Promise<boolean> {\n const wrapper = await this.#getWrapper();\n\n return wrapper.hasClass('sky-input-box-disabled');\n }\n\n /**\n * Gets the text for the input box label.\n */\n public async getLabelText(): Promise<string> {\n const label = await this.#getLabel();\n\n return this.#getElementTextOrDefault(label);\n }\n\n /**\n * Gets the help popover for the input box or throws an error if\n * the help popover is not configured.\n */\n public async getHelpPopover(): Promise<SkyPopoverHarness> {\n const helpPopover = await this.locatorForOptional(\n new HarnessPredicate(SkyPopoverHarness, {\n ancestor: '.sky-control-help',\n }),\n )();\n\n if (!helpPopover) {\n throw new Error('The input box does not have a help popover configured.');\n }\n\n return helpPopover;\n }\n\n /**2\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<\n TemplateRef<unknown> | string | undefined\n > {\n return await (await this.#getHelpInline()).getPopoverContent();\n }\n\n /**\n * Gets the help popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (await this.#getHelpInline()).getPopoverTitle();\n }\n\n /**\n * Gets the hint text for the input box.\n */\n public async getHintText(): Promise<string> {\n const hintText = await this.#getHintText();\n\n return this.#getElementTextOrDefault(hintText);\n }\n\n /**\n * Indicates whether the input box has stacked styles applied.\n */\n public async getStacked(): Promise<boolean> {\n const host = await this.host();\n\n return host.hasClass('sky-margin-stacked-lg');\n }\n\n async #getElementTextOrDefault(el: TestElement | null): Promise<string> {\n return (await el?.text())?.trim() ?? '';\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(SkyHelpInlineHarness)();\n\n if (harness) {\n return harness;\n }\n\n throw Error('No help inline found.');\n }\n}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX checkbox component.\n * @internal\n * @deprecated Use `SkyCheckboxHarness` instead.\n */\nexport class SkyCheckboxFixture {\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-checkbox',\n );\n }\n\n /**\n * A flag indicating whether the checkbox is currently selected.\n */\n public get selected(): boolean {\n return this.#getCheckboxInputEl().nativeElement.checked;\n }\n\n /**\n * The checkbox's label\n */\n public get labelText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('label.sky-checkbox-wrapper')),\n );\n }\n\n /**\n * The checkbox's icon type\n */\n public get iconType(): string | undefined {\n const classList = this.#debugEl.query(By.css('.fa.sky-icon'))?.nativeElement\n .classList;\n\n for (let i = 0, n = classList?.length; i < n; i++) {\n const cls = classList.item(i);\n\n if (cls.indexOf('fa-') === 0) {\n return cls.substr(3);\n }\n }\n return;\n }\n\n /**\n * The checkbox's type.\n */\n public get checkboxType(): string | undefined {\n const classList = this.#getCheckboxBoxEl().nativeElement.classList;\n\n if (classList.contains('sky-switch-control-danger')) {\n return 'danger';\n }\n\n if (classList.contains('sky-switch-control-info')) {\n return 'info';\n }\n\n if (classList.contains('sky-switch-control-success')) {\n return 'success';\n }\n\n if (classList.contains('sky-switch-control-warning')) {\n return 'warning';\n }\n\n return undefined;\n }\n\n /**\n * A flag indicating whether the checkbox is currently disabled.\n */\n public get disabled(): boolean {\n return this.#getCheckboxInputEl().nativeElement.disabled;\n }\n\n /**\n * Selects the checkbox.\n */\n public select(): void {\n if (!this.selected) {\n this.#clickCheckboxLabelEl();\n }\n }\n\n /**\n * Deselects the checkbox.\n */\n public deselect(): void {\n if (this.selected) {\n this.#clickCheckboxLabelEl();\n }\n }\n\n #clickCheckboxLabelEl(): void {\n this.#debugEl\n .query(By.css('label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n #getCheckboxInputEl(): DebugElement {\n return this.#debugEl.query(By.css('.sky-checkbox-wrapper input'));\n }\n\n #getCheckboxBoxEl(): DebugElement {\n return this.#debugEl.query(By.css('label.sky-checkbox-wrapper span'));\n }\n}\n","import { ComponentHarness } from '@angular/cdk/testing';\n\n/**\n * Harness for interacting with a checkbox label component in tests.\n * @internal\n */\nexport class SkyCheckboxLabelHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox-label';\n\n #getLabelContent = this.locatorFor('.sky-switch-label');\n\n /**\n * Gets the text content of the checkbox label.\n */\n public async getText(): Promise<string> {\n return (await this.#getLabelContent()).text();\n }\n}\n","import { ComponentHarness } from '@angular/cdk/testing';\n\n/**\n * Harness for interacting with a `labelText` checkbox label component in tests.\n * @internal\n */\nexport class SkyCheckboxLabelTextLabelHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox-label-text-label';\n\n #getLabelContent = this.locatorForOptional('.sky-switch-label');\n\n /**\n * Gets the text content of the `labelText` checkbox label.\n */\n public async getText(): Promise<string | undefined> {\n return (await this.#getLabelContent())?.text();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { TemplateRef } from '@angular/core';\nimport { SkyComponentHarness } from '@skyux/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\n\nimport { SkyFormErrorsHarness } from '../form-error/form-errors-harness';\n\nimport { SkyCheckboxHarnessFilters } from './checkbox-harness-filters';\nimport { SkyCheckboxLabelHarness } from './checkbox-label-harness';\nimport { SkyCheckboxLabelTextLabelHarness } from './checkbox-label-text-label.harness';\n\n/**\n * Harness for interacting with a checkbox component in tests.\n * @internal\n */\nexport class SkyCheckboxHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox';\n\n #getHintText = this.locatorForOptional('.sky-checkbox-hint-text');\n\n #getInput = this.locatorFor('input.sky-checkbox-input');\n\n #getLabel = this.locatorForOptional(SkyCheckboxLabelHarness);\n\n #getLabelTextLabel = this.locatorForOptional(\n SkyCheckboxLabelTextLabelHarness,\n );\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyCheckboxHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyCheckboxHarnessFilters,\n ): HarnessPredicate<SkyCheckboxHarness> {\n return SkyCheckboxHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Blurs the checkbox.\n */\n public async blur(): Promise<void> {\n return (await this.#getInput()).blur();\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n return (await this.#getHelpInline()).click();\n }\n\n /**\n * Puts the checkbox in a checked state by toggling it if it is currently unchecked, or doing nothing if it is already checked.\n */\n public async check(): Promise<void> {\n if (!(await this.isChecked())) {\n await this.#toggle();\n }\n }\n\n /**\n * Focuses the checkbox.\n */\n public async focus(): Promise<void> {\n return (await this.#getInput()).focus();\n }\n\n /**\n * Gets the checkbox's aria-label.\n */\n public async getAriaLabel(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('aria-label');\n }\n\n /**\n * Gets the checkbox's aria-labelledby.\n */\n public async getAriaLabelledby(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('aria-labelledby');\n }\n\n /**\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<\n TemplateRef<unknown> | string | undefined\n > {\n return await (await this.#getHelpInline()).getPopoverContent();\n }\n\n /**\n * Gets the help popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (await this.#getHelpInline()).getPopoverTitle();\n }\n\n /**\n * Gets the checkbox's label text. If the label is set via `labelText` and `labelHidden` is true,\n * the text will still be returned.\n */\n public async getLabelText(): Promise<string | undefined> {\n const labelTextLabel = await this.#getLabelTextLabel();\n const label = await this.#getLabel();\n\n if (labelTextLabel) {\n const text = await labelTextLabel.getText();\n const ariaLabel = await this.getAriaLabel();\n\n // if labelText is set, ariaLabel will never return null\n return text || ariaLabel!;\n } else {\n return label?.getText();\n }\n }\n\n /**\n * Whether the label is hidden. Only supported when using the `labelText` input to set the label.\n */\n public async getLabelHidden(): Promise<boolean> {\n const labelTextLabel = await this.#getLabelTextLabel();\n const label = await this.#getLabel();\n\n if (label) {\n throw new Error(\n '`labelIsHidden` is only supported when setting the checkbox label via the `labelText` input.',\n );\n } else {\n return !(await labelTextLabel?.getText());\n }\n }\n\n /**\n * Gets the checkbox's hint text.\n */\n public async getHintText(): Promise<string> {\n const hintText = await this.#getHintText();\n\n return (await hintText?.text())?.trim() ?? '';\n }\n\n /**\n * Gets the checkbox's name.\n */\n public async getName(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('name');\n }\n\n /**\n * Gets the checkbox's value.\n */\n public async getValue(): Promise<string | null> {\n return (await this.#getInput()).getProperty<string | null>('value');\n }\n\n /**\n * Whether the checkbox displays custom error.\n */\n public async hasCustomError(errorName: string): Promise<boolean> {\n return (await this.#getFormErrors()).hasError(errorName);\n }\n\n /**\n * Whether the checkbox displays an error that it is required.\n */\n public async hasRequiredError(): Promise<boolean> {\n return (await this.#getFormErrors()).hasError('required');\n }\n\n /**\n * Whether the checkbox is checked.\n */\n public async isChecked(): Promise<boolean> {\n return (await this.#getInput()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether the checkbox is disabled.\n */\n public async isDisabled(): Promise<boolean> {\n const disabled = await (await this.#getInput()).getAttribute('disabled');\n return disabled !== null;\n }\n\n /**\n * Whether the checkbox is focused.\n */\n public async isFocused(): Promise<boolean> {\n return (await this.#getInput()).isFocused();\n }\n\n /**\n * Whether the checkbox is required.\n */\n public async isRequired(): Promise<boolean> {\n const value = await (await this.#getInput()).getAttribute('required');\n return value !== null;\n }\n\n /**\n * Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.\n */\n public async uncheck(): Promise<void> {\n if (await this.isChecked()) {\n await this.#toggle();\n }\n }\n\n async #getFormErrors(): Promise<SkyFormErrorsHarness> {\n return await this.locatorFor(SkyFormErrorsHarness)();\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(SkyHelpInlineHarness)();\n\n if (harness) {\n return harness;\n }\n\n throw Error('No help inline found.');\n }\n\n async #toggle(): Promise<void> {\n if (await this.isDisabled()) {\n throw new Error('Could not toggle the checkbox because it is disabled.');\n } else {\n await (await this.#getInput()).click();\n }\n }\n}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX radio buttons within a radio group.\n * @internal\n */\nexport class SkyRadioFixture {\n #debugEl: DebugElement;\n #fixture: ComponentFixture<any>;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#fixture = fixture;\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-radio-group',\n );\n }\n\n /**\n * The selected radio button value.\n */\n public get value(): string {\n const selectedRadio = this.#debugEl.query(\n By.css('sky-radio input:checked'),\n );\n const selectedValue = selectedRadio && selectedRadio.nativeElement.value;\n\n return selectedValue;\n }\n\n /**\n * Set the selected radio button value.\n */\n public set value(value: string) {\n const allRadioInputs = this.#getAllRadioInputEls();\n\n allRadioInputs.forEach((input, index) => {\n if (input.nativeElement.value === value) {\n input.nativeElement.checked = true;\n } else {\n input.nativeElement.checked = false;\n }\n });\n }\n\n /**\n * A flag indicating if every radio button in the radio group is disabled.\n */\n public get disabled(): boolean {\n const allRadioButtons = this.#getAllSkyRadioButtonEls();\n\n for (let i = 0; i < allRadioButtons.length; i++) {\n if (!this.#radioButtonDisabled(i)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Set the disabled value for all radio buttons.\n */\n public set disabled(value: boolean) {\n const allRadioButtons = this.#getAllSkyRadioButtonEls();\n\n allRadioButtons.forEach((button, index) => {\n this.#setRadioButtonDisabled(index, value);\n });\n }\n\n #getAllSkyRadioButtonEls(): DebugElement[] {\n return this.#debugEl.queryAll(By.css('.sky-radio-group sky-radio'));\n }\n\n #getAllRadioInputEls(): DebugElement[] {\n return this.#debugEl.queryAll(By.css('.sky-radio-group sky-radio input'));\n }\n\n #getRadioButtonInputEl(index: number): DebugElement | undefined {\n const allRadioInputs = this.#getAllRadioInputEls();\n\n if (allRadioInputs && allRadioInputs[index]) {\n return allRadioInputs[index];\n }\n /* istanbul ignore next */\n return;\n }\n\n #radioButtonDisabled(index: number): boolean {\n const radioButton = this.#getRadioButtonInputEl(index);\n\n return radioButton && radioButton.nativeElement.disabled;\n }\n\n #setRadioButtonDisabled(index: number, value: boolean): void {\n const radioButton = this.#getRadioButtonInputEl(index);\n\n /* istanbul ignore else */\n if (radioButton) {\n radioButton.nativeElement.disabled = value;\n\n this.#fixture.detectChanges();\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAUA;;AAEG;AACG,MAAO,mCAAoC,SAAQ,mBAAmB,CAAA;AAC1E;;AAEG;aACW,IAAY,CAAA,YAAA,GAAG,iCAAiC,CAAC,EAAA;AAE/D,IAAA,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAE1D;;;AAGG;IACI,OAAO,IAAI,CAChB,OAAmD,EAAA;AAEnD,QAAA,OAAO,mCAAmC,CAA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,GAAG,CAAC,4BAA4B,CAAC,CAAC,CAAC;KACrE;IAED,oBAAoB,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,kCAAkC,CAAC,CAAC,CAAC;KAC3E;AAED,IAAA,sBAAsB,CAAC,KAAa,EAAA;AAClC,QAAA,MAAM,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,CAAC;AAEnD,QAAA,IAAI,cAAc,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE;AAC3C,YAAA,OAAO,cAAc,CAAC,KAAK,CAAC,CAAC;SAC9B;;QAED,OAAO;KACR;AAED,IAAA,oBAAoB,CAAC,KAAa,EAAA;QAChC,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;AAEvD,QAAA,OAAO,WAAW,IAAI,WAAW,CAAC,aAAa,CAAC,QAAQ,CAAC;KAC1D;IAED,uBAAuB,CAAC,KAAa,EAAE,KAAc,EAAA;QACnD,MAAM,WAAW,GAAG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC,CAAC;;QAGvD,IAAI,WAAW,EAAE;AACf,YAAA,WAAW,CAAC,aAAa,CAAC,QAAQ,GAAG,KAAK,CAAC;AAE3C,YAAA,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;SAC/B;KACF;AACF;;AC5GD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"skyux-forms-testing.mjs","sources":["../../../../../libs/components/forms/testing/src/character-counter/character-counter-indicator-harness.ts","../../../../../libs/components/forms/testing/src/form-error/form-error-harness.ts","../../../../../libs/components/forms/testing/src/form-error/form-errors-harness.ts","../../../../../libs/components/forms/testing/src/input-box/input-box-harness.ts","../../../../../libs/components/forms/testing/src/checkbox-fixture.ts","../../../../../libs/components/forms/testing/src/checkbox/checkbox-label-harness.ts","../../../../../libs/components/forms/testing/src/checkbox/checkbox-label-text-label.harness.ts","../../../../../libs/components/forms/testing/src/checkbox/checkbox-harness.ts","../../../../../libs/components/forms/testing/src/radio-fixture.ts","../../../../../libs/components/forms/testing/src/radio/radio-label-harness.ts","../../../../../libs/components/forms/testing/src/radio/radio-harness.ts","../../../../../libs/components/forms/testing/src/radio/radio-group-harness.ts","../../../../../libs/components/forms/testing/src/skyux-forms-testing.ts"],"sourcesContent":["import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyCharacterCounterIndicatorHarnessFilters } from './character-counter-indicator-harness-filters';\n\ntype LabelParts = {\n count: number;\n limit: number;\n};\n\n/**\n * Harness for interacting with a character counter indicator component in tests.\n */\nexport class SkyCharacterCounterIndicatorHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-character-counter-indicator';\n\n #getLabel = this.locatorFor('.sky-character-count-label');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyCharacterCounterIndicatorHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyCharacterCounterIndicatorHarnessFilters,\n ): HarnessPredicate<SkyCharacterCounterIndicatorHarness> {\n return SkyCharacterCounterIndicatorHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets the current character count.\n */\n public async getCharacterCount(): Promise<number> {\n return (await this.#getLabelParts()).count;\n }\n\n /**\n * Gets the character counter limit.\n */\n public async getCharacterCountLimit(): Promise<number> {\n return (await this.#getLabelParts()).limit;\n }\n\n /**\n * Indicates whether the character counter is in an error state because the current character\n * count is greater than the limit.\n */\n public async isOverLimit(): Promise<boolean> {\n return (await this.#getLabel()).hasClass('sky-error-label');\n }\n\n async #getLabelParts(): Promise<LabelParts> {\n const label = await this.#getLabel();\n const textParts = (await label.text()).split('/');\n\n let labelParts: LabelParts | undefined;\n\n if (textParts.length === 2) {\n labelParts = {\n count: +textParts[0].trim(),\n limit: +textParts[1].trim(),\n };\n }\n\n if (labelParts && !isNaN(labelParts.count) && !isNaN(labelParts.limit)) {\n return labelParts;\n }\n\n throw new Error(\n 'The character counter indicator does not contain text in the expected format.',\n );\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyFormErrorHarnessFilters } from './form-error-harness.filters';\n\nexport class SkyFormErrorHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-form-error';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyFormErrorHarness` that meets certain criteria\n */\n public static with(\n filters: SkyFormErrorHarnessFilters,\n ): HarnessPredicate<SkyFormErrorHarness> {\n return SkyFormErrorHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets the error name.\n */\n public async getErrorName(): Promise<string | null> {\n return (await this.host()).getAttribute('errorName');\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyFormErrorHarness } from './form-error-harness';\nimport { SkyFormErrorsHarnessFilters } from './form-errors-harness.filters';\n\nexport class SkyFormErrorsHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-form-errors';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyFormErrorsHarness` that meets certain criteria\n */\n public static with(\n filters: SkyFormErrorsHarnessFilters,\n ): HarnessPredicate<SkyFormErrorsHarness> {\n return SkyFormErrorsHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets a list of all errors fired.\n */\n public async getFormErrors(): Promise<{ errorName: string | null }[]> {\n const formErrorHarnesses = await this.locatorForAll(\n SkyFormErrorHarness.with({}),\n )();\n\n return Promise.all(\n formErrorHarnesses.map(async (formError) => {\n return { errorName: await formError.getErrorName() };\n }),\n );\n }\n\n /**\n * Whether an error with the given name has fired.\n */\n public async hasError(errorName: string): Promise<boolean> {\n const formErrors = await this.getFormErrors();\n return formErrors.some((error) => {\n return error.errorName === errorName;\n });\n }\n}\n","import { HarnessPredicate, TestElement } from '@angular/cdk/testing';\nimport { TemplateRef } from '@angular/core';\nimport { SkyQueryableComponentHarness } from '@skyux/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\nimport { SkyStatusIndicatorHarness } from '@skyux/indicators/testing';\nimport { SkyPopoverHarness } from '@skyux/popovers/testing';\n\nimport { SkyCharacterCounterIndicatorHarness } from '../character-counter/character-counter-indicator-harness';\nimport { SkyFormErrorsHarness } from '../form-error/form-errors-harness';\n\nimport { SkyInputBoxHarnessFilters } from './input-box-harness-filters';\n\n/**\n * Harness for interacting with an input box component in tests.\n */\nexport class SkyInputBoxHarness extends SkyQueryableComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-input-box';\n\n #getHintText = this.locatorForOptional('.sky-input-box-hint-text');\n #getLabel = this.locatorForOptional('.sky-control-label');\n #getWrapper = this.locatorFor('.sky-input-box');\n\n async #getFormError(): Promise<SkyFormErrorsHarness> {\n return this.locatorFor(SkyFormErrorsHarness)();\n }\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyInputBoxHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyInputBoxHarnessFilters,\n ): HarnessPredicate<SkyInputBoxHarness> {\n return SkyInputBoxHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n return (await this.#getHelpInline()).click();\n }\n\n /**\n * Gets the character counter indicator for the input box or throws an error if\n * a character limit is not specified.\n */\n public async getCharacterCounter(): Promise<SkyCharacterCounterIndicatorHarness> {\n const characterCounter = await this.locatorForOptional(\n new HarnessPredicate(SkyCharacterCounterIndicatorHarness, {\n ancestor: '.sky-input-box-label-wrapper',\n }),\n )();\n\n if (!characterCounter) {\n throw new Error(\n 'The input box does not have a character limit specified.',\n );\n }\n\n return characterCounter;\n }\n\n /**\n * Gets a list of status indicator harnesses for errors not automatically\n * handled by input box.\n */\n public async getCustomErrors(): Promise<SkyStatusIndicatorHarness[]> {\n const errors = await this.locatorForAll(\n new HarnessPredicate(SkyStatusIndicatorHarness, {\n selector:\n 'sky-status-indicator:not(sky-form-error sky-status-indicator)',\n }),\n )();\n\n return errors;\n }\n\n /**\n * Whether the custom error is triggered.\n */\n public async hasCustomFormError(errorName: string): Promise<boolean> {\n return (await this.#getFormError()).hasError(errorName);\n }\n\n /**\n * Whether the required field is empty.\n */\n public async hasRequiredError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('required');\n }\n\n /**\n * Whether the field has more characters than allowed.\n */\n public async hasMaxLengthError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('maxlength');\n }\n\n /**\n * Whether the field has fewer characters than allowed.\n */\n public async hasMinLengthError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('minlength');\n }\n\n /**\n * Whether the field is set to an invalid email address.\n */\n public async hasEmailError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('email');\n }\n\n /**\n * Whether the field is set to an invalid URL.\n */\n public async hasUrlError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('url');\n }\n\n /**\n * Whether the field is set to an invalid date.\n */\n public async hasInvalidDateError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('invalidDate');\n }\n\n /**\n * Whether the field is set to an invalid minimum date.\n */\n public async hasMinDateError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('minDate');\n }\n\n /**\n * Whether the field is set to an invalid maximum date.\n */\n public async hasMaxDateError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('maxDate');\n }\n\n /**\n * Whether the field is set to an invalid phone number.\n */\n public async hasPhoneFieldError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('phone');\n }\n\n /**\n * Whether the field is set to an invalid time.\n */\n public async hasTimeError(): Promise<boolean> {\n return (await this.#getFormError()).hasError('time');\n }\n\n /**\n * Indicates whether the input box has disabled styles applied.\n */\n public async getDisabled(): Promise<boolean> {\n const wrapper = await this.#getWrapper();\n\n return wrapper.hasClass('sky-input-box-disabled');\n }\n\n /**\n * Gets the text for the input box label.\n */\n public async getLabelText(): Promise<string> {\n const label = await this.#getLabel();\n\n return this.#getElementTextOrDefault(label);\n }\n\n /**\n * Gets the help popover for the input box or throws an error if\n * the help popover is not configured.\n */\n public async getHelpPopover(): Promise<SkyPopoverHarness> {\n const helpPopover = await this.locatorForOptional(\n new HarnessPredicate(SkyPopoverHarness, {\n ancestor: '.sky-control-help',\n }),\n )();\n\n if (!helpPopover) {\n throw new Error('The input box does not have a help popover configured.');\n }\n\n return helpPopover;\n }\n\n /**2\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<\n TemplateRef<unknown> | string | undefined\n > {\n return await (await this.#getHelpInline()).getPopoverContent();\n }\n\n /**\n * Gets the help popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (await this.#getHelpInline()).getPopoverTitle();\n }\n\n /**\n * Gets the hint text for the input box.\n */\n public async getHintText(): Promise<string> {\n const hintText = await this.#getHintText();\n\n return this.#getElementTextOrDefault(hintText);\n }\n\n /**\n * Indicates whether the input box has stacked styles applied.\n */\n public async getStacked(): Promise<boolean> {\n const host = await this.host();\n\n return host.hasClass('sky-margin-stacked-lg');\n }\n\n async #getElementTextOrDefault(el: TestElement | null): Promise<string> {\n return (await el?.text())?.trim() ?? '';\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(SkyHelpInlineHarness)();\n\n if (harness) {\n return harness;\n }\n\n throw Error('No help inline found.');\n }\n}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX checkbox component.\n * @internal\n * @deprecated Use `SkyCheckboxHarness` instead.\n */\nexport class SkyCheckboxFixture {\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-checkbox',\n );\n }\n\n /**\n * A flag indicating whether the checkbox is currently selected.\n */\n public get selected(): boolean {\n return this.#getCheckboxInputEl().nativeElement.checked;\n }\n\n /**\n * The checkbox's label\n */\n public get labelText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('label.sky-checkbox-wrapper')),\n );\n }\n\n /**\n * The checkbox's icon type\n */\n public get iconType(): string | undefined {\n const classList = this.#debugEl.query(By.css('.fa.sky-icon'))?.nativeElement\n .classList;\n\n for (let i = 0, n = classList?.length; i < n; i++) {\n const cls = classList.item(i);\n\n if (cls.indexOf('fa-') === 0) {\n return cls.substr(3);\n }\n }\n return;\n }\n\n /**\n * The checkbox's type.\n */\n public get checkboxType(): string | undefined {\n const classList = this.#getCheckboxBoxEl().nativeElement.classList;\n\n if (classList.contains('sky-switch-control-danger')) {\n return 'danger';\n }\n\n if (classList.contains('sky-switch-control-info')) {\n return 'info';\n }\n\n if (classList.contains('sky-switch-control-success')) {\n return 'success';\n }\n\n if (classList.contains('sky-switch-control-warning')) {\n return 'warning';\n }\n\n return undefined;\n }\n\n /**\n * A flag indicating whether the checkbox is currently disabled.\n */\n public get disabled(): boolean {\n return this.#getCheckboxInputEl().nativeElement.disabled;\n }\n\n /**\n * Selects the checkbox.\n */\n public select(): void {\n if (!this.selected) {\n this.#clickCheckboxLabelEl();\n }\n }\n\n /**\n * Deselects the checkbox.\n */\n public deselect(): void {\n if (this.selected) {\n this.#clickCheckboxLabelEl();\n }\n }\n\n #clickCheckboxLabelEl(): void {\n this.#debugEl\n .query(By.css('label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n #getCheckboxInputEl(): DebugElement {\n return this.#debugEl.query(By.css('.sky-checkbox-wrapper input'));\n }\n\n #getCheckboxBoxEl(): DebugElement {\n return this.#debugEl.query(By.css('label.sky-checkbox-wrapper span'));\n }\n}\n","import { ComponentHarness } from '@angular/cdk/testing';\n\n/**\n * Harness for interacting with a checkbox label component in tests.\n * @internal\n */\nexport class SkyCheckboxLabelHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox-label';\n\n #getLabelContent = this.locatorFor('.sky-switch-label');\n\n /**\n * Gets the text content of the checkbox label.\n */\n public async getText(): Promise<string> {\n return (await this.#getLabelContent()).text();\n }\n}\n","import { ComponentHarness } from '@angular/cdk/testing';\n\n/**\n * Harness for interacting with a `labelText` checkbox label component in tests.\n * @internal\n */\nexport class SkyCheckboxLabelTextLabelHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox-label-text-label';\n\n #getLabelContent = this.locatorForOptional('.sky-switch-label');\n\n /**\n * Gets the text content of the `labelText` checkbox label.\n */\n public async getText(): Promise<string | undefined> {\n return (await this.#getLabelContent())?.text();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { TemplateRef } from '@angular/core';\nimport { SkyComponentHarness } from '@skyux/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\n\nimport { SkyFormErrorsHarness } from '../form-error/form-errors-harness';\n\nimport { SkyCheckboxHarnessFilters } from './checkbox-harness-filters';\nimport { SkyCheckboxLabelHarness } from './checkbox-label-harness';\nimport { SkyCheckboxLabelTextLabelHarness } from './checkbox-label-text-label.harness';\n\n/**\n * Harness for interacting with a checkbox component in tests.\n * @internal\n */\nexport class SkyCheckboxHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox';\n\n #getHintText = this.locatorForOptional('.sky-checkbox-hint-text');\n\n #getInput = this.locatorFor('input.sky-checkbox-input');\n\n #getLabel = this.locatorForOptional(SkyCheckboxLabelHarness);\n\n #getLabelTextLabel = this.locatorForOptional(\n SkyCheckboxLabelTextLabelHarness,\n );\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyCheckboxHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyCheckboxHarnessFilters,\n ): HarnessPredicate<SkyCheckboxHarness> {\n return SkyCheckboxHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Blurs the checkbox.\n */\n public async blur(): Promise<void> {\n return (await this.#getInput()).blur();\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n return (await this.#getHelpInline()).click();\n }\n\n /**\n * Puts the checkbox in a checked state by toggling it if it is currently unchecked, or doing nothing if it is already checked.\n */\n public async check(): Promise<void> {\n if (!(await this.isChecked())) {\n await this.#toggle();\n }\n }\n\n /**\n * Focuses the checkbox.\n */\n public async focus(): Promise<void> {\n return (await this.#getInput()).focus();\n }\n\n /**\n * Gets the checkbox's aria-label.\n */\n public async getAriaLabel(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('aria-label');\n }\n\n /**\n * Gets the checkbox's aria-labelledby.\n */\n public async getAriaLabelledby(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('aria-labelledby');\n }\n\n /**\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<\n TemplateRef<unknown> | string | undefined\n > {\n return await (await this.#getHelpInline()).getPopoverContent();\n }\n\n /**\n * Gets the help popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (await this.#getHelpInline()).getPopoverTitle();\n }\n\n /**\n * Gets the checkbox's label text. If the label is set via `labelText` and `labelHidden` is true,\n * the text will still be returned.\n */\n public async getLabelText(): Promise<string | undefined> {\n const labelTextLabel = await this.#getLabelTextLabel();\n const label = await this.#getLabel();\n\n if (labelTextLabel) {\n const text = await labelTextLabel.getText();\n const ariaLabel = await this.getAriaLabel();\n\n // if labelText is set, ariaLabel will never return null\n return text || ariaLabel!;\n } else {\n return label?.getText();\n }\n }\n\n /**\n * Whether the label is hidden. Only supported when using the `labelText` input to set the label.\n */\n public async getLabelHidden(): Promise<boolean> {\n const labelTextLabel = await this.#getLabelTextLabel();\n const label = await this.#getLabel();\n\n if (label) {\n throw new Error(\n '`labelIsHidden` is only supported when setting the checkbox label via the `labelText` input.',\n );\n } else {\n return !(await labelTextLabel?.getText());\n }\n }\n\n /**\n * Gets the checkbox's hint text.\n */\n public async getHintText(): Promise<string> {\n const hintText = await this.#getHintText();\n\n return (await hintText?.text())?.trim() ?? '';\n }\n\n /**\n * Gets the checkbox's name.\n */\n public async getName(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('name');\n }\n\n /**\n * Gets the checkbox's value.\n */\n public async getValue(): Promise<string | null> {\n return (await this.#getInput()).getProperty<string | null>('value');\n }\n\n /**\n * Whether the checkbox displays custom error.\n */\n public async hasCustomError(errorName: string): Promise<boolean> {\n return (await this.#getFormErrors()).hasError(errorName);\n }\n\n /**\n * Whether the checkbox displays an error that it is required.\n */\n public async hasRequiredError(): Promise<boolean> {\n return (await this.#getFormErrors()).hasError('required');\n }\n\n /**\n * Whether the checkbox is checked.\n */\n public async isChecked(): Promise<boolean> {\n return (await this.#getInput()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether the checkbox is disabled.\n */\n public async isDisabled(): Promise<boolean> {\n const disabled = await (await this.#getInput()).getAttribute('disabled');\n return disabled !== null;\n }\n\n /**\n * Whether the checkbox is focused.\n */\n public async isFocused(): Promise<boolean> {\n return (await this.#getInput()).isFocused();\n }\n\n /**\n * Whether the checkbox is required.\n */\n public async isRequired(): Promise<boolean> {\n const value = await (await this.#getInput()).getAttribute('required');\n return value !== null;\n }\n\n /**\n * Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.\n */\n public async uncheck(): Promise<void> {\n if (await this.isChecked()) {\n await this.#toggle();\n }\n }\n\n async #getFormErrors(): Promise<SkyFormErrorsHarness> {\n return await this.locatorFor(SkyFormErrorsHarness)();\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(SkyHelpInlineHarness)();\n\n if (harness) {\n return harness;\n }\n\n throw Error('No help inline found.');\n }\n\n async #toggle(): Promise<void> {\n if (await this.isDisabled()) {\n throw new Error('Could not toggle the checkbox because it is disabled.');\n } else {\n await (await this.#getInput()).click();\n }\n }\n}\n","import { DebugElement } from '@angular/core';\nimport { ComponentFixture } from '@angular/core/testing';\nimport { By } from '@angular/platform-browser';\nimport { SkyAppTestUtility } from '@skyux-sdk/testing';\n\n/**\n * Allows interaction with a SKY UX radio buttons within a radio group.\n * @internal\n */\nexport class SkyRadioFixture {\n #debugEl: DebugElement;\n #fixture: ComponentFixture<any>;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#fixture = fixture;\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-radio-group',\n );\n }\n\n /**\n * The selected radio button value.\n */\n public get value(): string {\n const selectedRadio = this.#debugEl.query(\n By.css('sky-radio input:checked'),\n );\n const selectedValue = selectedRadio && selectedRadio.nativeElement.value;\n\n return selectedValue;\n }\n\n /**\n * Set the selected radio button value.\n */\n public set value(value: string) {\n const allRadioInputs = this.#getAllRadioInputEls();\n\n allRadioInputs.forEach((input, index) => {\n if (input.nativeElement.value === value) {\n input.nativeElement.checked = true;\n } else {\n input.nativeElement.checked = false;\n }\n });\n }\n\n /**\n * A flag indicating if every radio button in the radio group is disabled.\n */\n public get disabled(): boolean {\n const allRadioButtons = this.#getAllSkyRadioButtonEls();\n\n for (let i = 0; i < allRadioButtons.length; i++) {\n if (!this.#radioButtonDisabled(i)) {\n return false;\n }\n }\n return true;\n }\n\n /**\n * Set the disabled value for all radio buttons.\n */\n public set disabled(value: boolean) {\n const allRadioButtons = this.#getAllSkyRadioButtonEls();\n\n allRadioButtons.forEach((button, index) => {\n this.#setRadioButtonDisabled(index, value);\n });\n }\n\n #getAllSkyRadioButtonEls(): DebugElement[] {\n return this.#debugEl.queryAll(By.css('.sky-radio-group sky-radio'));\n }\n\n #getAllRadioInputEls(): DebugElement[] {\n return this.#debugEl.queryAll(By.css('.sky-radio-group sky-radio input'));\n }\n\n #getRadioButtonInputEl(index: number): DebugElement | undefined {\n const allRadioInputs = this.#getAllRadioInputEls();\n\n if (allRadioInputs && allRadioInputs[index]) {\n return allRadioInputs[index];\n }\n /* istanbul ignore next */\n return;\n }\n\n #radioButtonDisabled(index: number): boolean {\n const radioButton = this.#getRadioButtonInputEl(index);\n\n return radioButton && radioButton.nativeElement.disabled;\n }\n\n #setRadioButtonDisabled(index: number, value: boolean): void {\n const radioButton = this.#getRadioButtonInputEl(index);\n\n /* istanbul ignore else */\n if (radioButton) {\n radioButton.nativeElement.disabled = value;\n\n this.#fixture.detectChanges();\n }\n }\n}\n","import { ComponentHarness } from '@angular/cdk/testing';\n\n/**\n * Harness for interacting with a radio label component in tests.\n * @internal\n */\nexport class SkyRadioLabelHarness extends ComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-radio-label';\n\n #getLabelContent = this.locatorFor('.sky-switch-label');\n\n /**\n * Gets the text content of the radio label.\n */\n public async getText(): Promise<string> {\n return (await this.#getLabelContent()).text();\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\n\nimport { SkyRadioHarnessFilters } from './radio-harness-filters';\nimport { SkyRadioLabelHarness } from './radio-label-harness';\n\n/**\n * Harness for interacting with a radio button component in tests.\n */\nexport class SkyRadioHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-radio';\n\n #getHintText = this.locatorForOptional('.sky-radio-hint-text');\n\n #getInput = this.locatorFor('input.sky-radio-input');\n\n #getLabel = this.locatorForOptional(SkyRadioLabelHarness);\n\n #getLabelText = this.locatorForOptional(\n 'span.sky-switch-label.sky-radio-label-text',\n );\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyRadioHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyRadioHarnessFilters,\n ): HarnessPredicate<SkyRadioHarness> {\n return SkyRadioHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Blurs the radio button.\n */\n public async blur(): Promise<void> {\n return (await this.#getInput()).blur();\n }\n\n /**\n * Puts the radio button in a checked state if it is currently unchecked.\n */\n public async check(): Promise<void> {\n if (await this.isDisabled()) {\n throw new Error(\n 'Could not check the radio button because it is disabled.',\n );\n } else if (!(await this.isChecked())) {\n await (await this.#getInput()).click();\n }\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n return (await this.#getHelpInline()).click();\n }\n\n /**\n * Focuses the radio button.\n */\n public async focus(): Promise<void> {\n return (await this.#getInput()).focus();\n }\n\n /**\n * Gets the radio button's aria-label.\n */\n public async getAriaLabel(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('aria-label');\n }\n\n /**\n * Gets the radio button's aria-labelledby.\n */\n public async getAriaLabelledby(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('aria-labelledby');\n }\n\n /**\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<string | undefined> {\n const content = await (await this.#getHelpInline()).getPopoverContent();\n\n /* istanbul ignore if */\n if (typeof content === 'object') {\n throw Error('Unexpected template ref');\n }\n\n return content;\n }\n\n /**\n * Gets the help popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (await this.#getHelpInline()).getPopoverTitle();\n }\n\n /**\n * Gets the radio button's hint text.\n */\n public async getHintText(): Promise<string> {\n const hintText = await this.#getHintText();\n\n return (await hintText?.text())?.trim() ?? '';\n }\n\n /**\n * Whether the label is hidden. Only supported when using the `labelText` input to set the label.\n */\n public async getLabelHidden(): Promise<boolean> {\n const labelText = await this.#getLabelText();\n const label = await this.#getLabel();\n\n if (label) {\n throw new Error(\n '`labelIsHidden` is only supported when setting the radio label via the `labelText` input.',\n );\n } else {\n return !!(await labelText?.hasClass('sky-screen-reader-only'));\n }\n }\n\n /**\n * Gets the radio button's label text. If the label is set via `labelText` and `labelHidden` is true,\n * the text will still be returned.\n */\n public async getLabelText(): Promise<string | undefined> {\n const labelText = await this.#getLabelText();\n\n if (labelText) {\n return labelText.text();\n } else {\n return (await this.#getLabel())?.getText();\n }\n }\n\n /**\n * Gets the radio button's name.\n */\n public async getName(): Promise<string | null> {\n return (await this.#getInput()).getAttribute('name');\n }\n\n /**\n * Whether the radio button is checked.\n */\n public async isChecked(): Promise<boolean> {\n return (await this.#getInput()).getProperty<boolean>('checked');\n }\n\n /**\n * Whether the radio button is disabled.\n */\n public async isDisabled(): Promise<boolean> {\n const disabled = await (await this.#getInput()).getAttribute('disabled');\n return disabled !== null;\n }\n\n /**\n * Whether the radio button is focused.\n */\n public async isFocused(): Promise<boolean> {\n return (await this.#getInput()).isFocused();\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(SkyHelpInlineHarness)();\n\n if (harness) {\n return harness;\n }\n\n throw Error('No help inline found.');\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport {\n SkyRadioGroupHeadingLevel,\n SkyRadioGroupHeadingStyle,\n} from '@skyux/forms';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\n\nimport { SkyFormErrorsHarness } from '../form-error/form-errors-harness';\n\nimport { SkyRadioGroupHarnessFilters } from './radio-group-harness-filters';\nimport { SkyRadioHarness } from './radio-harness';\n\n/**\n * Harness for interacting with a radio group component in tests.\n */\nexport class SkyRadioGroupHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-radio-group';\n\n #getH3 = this.locatorForOptional('legend h3');\n #getH4 = this.locatorForOptional('legend h4');\n #getH5 = this.locatorForOptional('legend h5');\n #getHeading = this.locatorFor('.sky-control-label');\n #getHeadingText = this.locatorForOptional(\n 'legend .sky-radio-group-heading-text',\n );\n #getHintText = this.locatorForOptional('.sky-radio-group-hint-text');\n #getRadioButtons = this.locatorForAll(SkyRadioHarness);\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyRadioGroupHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyRadioGroupHarnessFilters,\n ): HarnessPredicate<SkyRadioGroupHarness> {\n return SkyRadioGroupHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Clicks the help inline button.\n */\n public async clickHelpInline(): Promise<void> {\n return (await this.#getHelpInline()).click();\n }\n\n /**\n * Whether the heading is hidden.\n */\n public async getHeadingHidden(): Promise<boolean> {\n return (await this.#getHeading()).hasClass('sky-screen-reader-only');\n }\n\n /**\n * The semantic heading level used for the radio group. Returns undefined if heading level is not set.\n */\n public async getHeadingLevel(): Promise<\n SkyRadioGroupHeadingLevel | undefined\n > {\n const h3 = await this.#getH3();\n const h4 = await this.#getH4();\n const h5 = await this.#getH5();\n\n if (h3) {\n return 3;\n } else if (h4) {\n return 4;\n } else if (h5) {\n return 5;\n } else {\n return undefined;\n }\n }\n\n /**\n * The heading style used for the radio group.\n */\n public async getHeadingStyle(): Promise<SkyRadioGroupHeadingStyle> {\n const headingOrLabel =\n (await this.#getH3()) ||\n (await this.#getH4()) ||\n (await this.#getH5()) ||\n (await this.#getHeadingText());\n\n const isHeadingStyle3 =\n await headingOrLabel?.hasClass('sky-font-heading-3');\n const isHeadingStyle4 =\n await headingOrLabel?.hasClass('sky-font-heading-4');\n\n if (isHeadingStyle3) {\n return 3;\n } else if (isHeadingStyle4) {\n return 4;\n } else {\n return 5;\n }\n }\n\n /**\n * Gets the radio group's heading text. If `headingHidden` is true,\n * the text will still be returned.\n */\n public async getHeadingText(): Promise<string | undefined> {\n return (await this.#getHeading()).text();\n }\n\n /**\n * Gets the help popover content.\n */\n public async getHelpPopoverContent(): Promise<string | undefined> {\n const content = await (await this.#getHelpInline()).getPopoverContent();\n\n /* istanbul ignore if */\n if (typeof content === 'object') {\n throw Error('Unexpected template ref');\n }\n\n return content;\n }\n\n /**\n * Gets the help popover title.\n */\n public async getHelpPopoverTitle(): Promise<string | undefined> {\n return await (await this.#getHelpInline()).getPopoverTitle();\n }\n\n /**\n * Gets the radio group's hint text.\n */\n public async getHintText(): Promise<string> {\n const hintText = await this.#getHintText();\n\n return (await hintText?.text())?.trim() ?? '';\n }\n\n /**\n * Gets an array of harnesses for the radio buttons in the radio group.\n */\n public async getRadioButtons(): Promise<SkyRadioHarness[]> {\n return await this.#getRadioButtons();\n }\n\n /**\n * Whether the radio group is required.\n */\n public async getRequired(): Promise<boolean> {\n const heading = await this.#getHeading();\n\n return await heading.hasClass('sky-control-label-required');\n }\n\n /**\n * Whether the radio group is stacked.\n */\n public async getStacked(): Promise<boolean> {\n const host = await this.host();\n const heading =\n (await this.#getH3()) || (await this.#getH4()) || (await this.#getH5());\n const label = await this.#getHeadingText();\n\n return (\n ((await host.hasClass('sky-margin-stacked-lg')) && !!label) ||\n ((await host.hasClass('sky-margin-stacked-xl')) && !!heading)\n );\n }\n\n /**\n * Whether the radio group has errors.\n */\n public async hasError(errorName: string): Promise<boolean> {\n return (await this.#getFormErrors()).hasError(errorName);\n }\n\n async #getFormErrors(): Promise<SkyFormErrorsHarness> {\n return await this.locatorFor(SkyFormErrorsHarness)();\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(\n SkyHelpInlineHarness.with({\n ancestor: '.sky-radio-group > .sky-radio-group-label-wrapper',\n }),\n )();\n\n if (harness) {\n return harness;\n }\n\n throw Error('No help inline found.');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;AAUA;;AAEG;AACG,MAAO,mCAAoC,SAAQ,mBAAmB,CAAA;AAC1E;;AAEG;aACW,IAAY,CAAA,YAAA,GAAG,iCAAiC,CAAC,EAAA;AAE/D,IAAA,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,4BAA4B,CAAC,CAAC;AAE1D;;;AAGG;IACI,OAAO,IAAI,CAChB,OAAmD,EAAA;AAEnD,QAAA,OAAO,mCAAmC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;KAC3E;AAED;;AAEG;AACI,IAAA,MAAM,iB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