@skyux/forms 11.5.0 → 11.6.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 +4196 -1174
- package/esm2022/lib/modules/checkbox/checkbox-group.component.mjs +3 -3
- package/esm2022/lib/modules/shared/sky-forms-resources.module.mjs +2 -2
- package/esm2022/testing/checkbox/checkbox-group-harness-filters.mjs +2 -0
- package/esm2022/testing/checkbox/checkbox-group-harness.mjs +158 -0
- package/esm2022/testing/checkbox/checkbox-harness.mjs +9 -3
- package/esm2022/testing/public-api.mjs +2 -1
- package/fesm2022/skyux-forms-testing.mjs +163 -3
- package/fesm2022/skyux-forms-testing.mjs.map +1 -1
- package/fesm2022/skyux-forms.mjs +3 -3
- package/fesm2022/skyux-forms.mjs.map +1 -1
- package/package.json +9 -9
- package/testing/checkbox/checkbox-group-harness-filters.d.ts +7 -0
- package/testing/checkbox/checkbox-group-harness.d.ts +73 -0
- package/testing/checkbox/checkbox-harness.d.ts +5 -3
- package/testing/public-api.d.ts +2 -0
|
@@ -419,7 +419,6 @@ class SkyCheckboxLabelTextLabelHarness extends ComponentHarness {
|
|
|
419
419
|
|
|
420
420
|
/**
|
|
421
421
|
* Harness for interacting with a checkbox component in tests.
|
|
422
|
-
* @internal
|
|
423
422
|
*/
|
|
424
423
|
class SkyCheckboxHarness extends SkyComponentHarness {
|
|
425
424
|
/**
|
|
@@ -479,7 +478,8 @@ class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
479
478
|
* Gets the help popover content.
|
|
480
479
|
*/
|
|
481
480
|
async getHelpPopoverContent() {
|
|
482
|
-
|
|
481
|
+
const content = await (await this.#getHelpInline()).getPopoverContent();
|
|
482
|
+
return content;
|
|
483
483
|
}
|
|
484
484
|
/**
|
|
485
485
|
* Gets the help popover title.
|
|
@@ -574,6 +574,12 @@ class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
574
574
|
const value = await (await this.#getInput()).getAttribute('required');
|
|
575
575
|
return value !== null;
|
|
576
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Whether the checkbox is stacked.
|
|
579
|
+
*/
|
|
580
|
+
async isStacked() {
|
|
581
|
+
return await (await this.host()).hasClass('sky-margin-stacked-lg');
|
|
582
|
+
}
|
|
577
583
|
/**
|
|
578
584
|
* Puts the checkbox in an unchecked state by toggling it if it is currently checked, or doing nothing if it is already unchecked.
|
|
579
585
|
*/
|
|
@@ -602,6 +608,160 @@ class SkyCheckboxHarness extends SkyComponentHarness {
|
|
|
602
608
|
}
|
|
603
609
|
}
|
|
604
610
|
|
|
611
|
+
/**
|
|
612
|
+
* Harness for interacting with a checkbox group component in tests.
|
|
613
|
+
*/
|
|
614
|
+
class SkyCheckboxGroupHarness extends SkyComponentHarness {
|
|
615
|
+
/**
|
|
616
|
+
* @internal
|
|
617
|
+
*/
|
|
618
|
+
static { this.hostSelector = 'sky-checkbox-group'; }
|
|
619
|
+
#getCheckboxes = this.locatorForAll(SkyCheckboxHarness);
|
|
620
|
+
#getHeading = this.locatorFor('.sky-control-label');
|
|
621
|
+
#getHeadingWrapper = this.locatorFor('.sky-control-label span');
|
|
622
|
+
#getHintText = this.locatorForOptional('.sky-checkbox-group-hint-text');
|
|
623
|
+
#getLegendDefault = this.locatorForOptional('legend .sky-checkbox-group-heading-text');
|
|
624
|
+
#getLegendH3 = this.locatorForOptional('legend h3');
|
|
625
|
+
#getLegendH4 = this.locatorForOptional('legend h4');
|
|
626
|
+
#getLegendH5 = this.locatorForOptional('legend h5');
|
|
627
|
+
#getLegendHeading = this.locatorFor('legend h3,h4,h5,.sky-checkbox-group-heading-text');
|
|
628
|
+
/**
|
|
629
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
630
|
+
* `SkyCheckboxGroupHarness` that meets certain criteria.
|
|
631
|
+
*/
|
|
632
|
+
static with(filters) {
|
|
633
|
+
return SkyCheckboxGroupHarness.getDataSkyIdPredicate(filters);
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Clicks the help inline button.
|
|
637
|
+
*/
|
|
638
|
+
async clickHelpInline() {
|
|
639
|
+
return (await this.#getHelpInline()).click();
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Gets an array of harnesses for the checkboxes in the checkbox group.
|
|
643
|
+
*/
|
|
644
|
+
async getCheckboxes() {
|
|
645
|
+
return await this.#getCheckboxes();
|
|
646
|
+
}
|
|
647
|
+
/**
|
|
648
|
+
* Gets the help popover content.
|
|
649
|
+
*/
|
|
650
|
+
async getHelpPopoverContent() {
|
|
651
|
+
const content = await (await this.#getHelpInline()).getPopoverContent();
|
|
652
|
+
return content;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* Gets the help popover title.
|
|
656
|
+
*/
|
|
657
|
+
async getHelpPopoverTitle() {
|
|
658
|
+
return await (await this.#getHelpInline()).getPopoverTitle();
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Gets the checkbox group's heading text. If `headingHidden` is true,
|
|
662
|
+
* the text will still be returned.
|
|
663
|
+
*/
|
|
664
|
+
async getHeadingText() {
|
|
665
|
+
return (await this.#getLegendHeading()).text();
|
|
666
|
+
}
|
|
667
|
+
/**
|
|
668
|
+
* Gets the checkbox group's hint text.
|
|
669
|
+
*/
|
|
670
|
+
async getHintText() {
|
|
671
|
+
const hintText = await this.#getHintText();
|
|
672
|
+
return (await hintText?.text())?.trim() ?? '';
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Whether the heading is hidden.
|
|
676
|
+
*/
|
|
677
|
+
async getHeadingHidden() {
|
|
678
|
+
return (await this.#getHeading()).hasClass('sky-screen-reader-only');
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* The semantic heading level used for the checkbox group. Returns undefined if heading level is not set.
|
|
682
|
+
*/
|
|
683
|
+
async getHeadingLevel() {
|
|
684
|
+
const heading = await this.#getLegendHeading();
|
|
685
|
+
const h3 = await heading.matchesSelector('h3');
|
|
686
|
+
const h4 = await heading.matchesSelector('h4');
|
|
687
|
+
const h5 = await heading.matchesSelector('h5');
|
|
688
|
+
if (h3) {
|
|
689
|
+
return 3;
|
|
690
|
+
}
|
|
691
|
+
else if (h4) {
|
|
692
|
+
return 4;
|
|
693
|
+
}
|
|
694
|
+
else if (h5) {
|
|
695
|
+
return 5;
|
|
696
|
+
}
|
|
697
|
+
else {
|
|
698
|
+
return undefined;
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
/**
|
|
702
|
+
* The heading style used for the checkbox group.
|
|
703
|
+
*/
|
|
704
|
+
async getHeadingStyle() {
|
|
705
|
+
const heading = await this.#getLegendHeading();
|
|
706
|
+
const isHeadingStyle3 = await heading.hasClass('sky-font-heading-3');
|
|
707
|
+
const isHeadingStyle4 = await heading.hasClass('sky-font-heading-4');
|
|
708
|
+
if (isHeadingStyle3) {
|
|
709
|
+
return 3;
|
|
710
|
+
}
|
|
711
|
+
else if (isHeadingStyle4) {
|
|
712
|
+
return 4;
|
|
713
|
+
}
|
|
714
|
+
else {
|
|
715
|
+
return 5;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* Whether the checkbox group is required.
|
|
720
|
+
*/
|
|
721
|
+
async getRequired() {
|
|
722
|
+
const headingWrapper = await this.#getHeadingWrapper();
|
|
723
|
+
return await headingWrapper.hasClass('sky-control-label-required');
|
|
724
|
+
}
|
|
725
|
+
/**
|
|
726
|
+
* Whether the checkbox group is stacked.
|
|
727
|
+
*/
|
|
728
|
+
async getStacked() {
|
|
729
|
+
const host = await this.host();
|
|
730
|
+
const heading = (await this.#getLegendH3()) ||
|
|
731
|
+
(await this.#getLegendH4()) ||
|
|
732
|
+
(await this.#getLegendH5());
|
|
733
|
+
const label = await this.#getLegendDefault();
|
|
734
|
+
return (((await host.hasClass('sky-margin-stacked-lg')) && !!label) ||
|
|
735
|
+
((await host.hasClass('sky-margin-stacked-xl')) && !!heading));
|
|
736
|
+
}
|
|
737
|
+
/**
|
|
738
|
+
* Whether all the checkboxes in a required group are unchecked.
|
|
739
|
+
*/
|
|
740
|
+
async hasRequiredError() {
|
|
741
|
+
return (await this.#getFormErrors()).hasError('required');
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Whether the checkbox group has errors.
|
|
745
|
+
*/
|
|
746
|
+
async hasError(errorName) {
|
|
747
|
+
return (await this.#getFormErrors()).hasError(errorName);
|
|
748
|
+
}
|
|
749
|
+
async #getFormErrors() {
|
|
750
|
+
return await this.locatorFor(SkyFormErrorsHarness.with({
|
|
751
|
+
dataSkyId: 'checkbox-group-form-errors',
|
|
752
|
+
}))();
|
|
753
|
+
}
|
|
754
|
+
async #getHelpInline() {
|
|
755
|
+
const harness = await this.locatorForOptional(SkyHelpInlineHarness.with({
|
|
756
|
+
ancestor: '.sky-checkbox-group > .sky-control-label',
|
|
757
|
+
}))();
|
|
758
|
+
if (harness) {
|
|
759
|
+
return harness;
|
|
760
|
+
}
|
|
761
|
+
throw Error('No help inline found.');
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
|
|
605
765
|
/**
|
|
606
766
|
* Allows interaction with a SKY UX radio buttons within a radio group.
|
|
607
767
|
* @internal
|
|
@@ -998,5 +1158,5 @@ class SkyRadioGroupHarness extends SkyComponentHarness {
|
|
|
998
1158
|
* Generated bundle index. Do not edit.
|
|
999
1159
|
*/
|
|
1000
1160
|
|
|
1001
|
-
export { SkyCharacterCounterIndicatorHarness, SkyCheckboxFixture, SkyCheckboxHarness, SkyCheckboxLabelHarness, SkyFormErrorHarness, SkyFormErrorsHarness, SkyInputBoxHarness, SkyRadioFixture, SkyRadioGroupHarness, SkyRadioHarness, SkyRadioLabelHarness };
|
|
1161
|
+
export { SkyCharacterCounterIndicatorHarness, SkyCheckboxFixture, SkyCheckboxGroupHarness, SkyCheckboxHarness, SkyCheckboxLabelHarness, SkyFormErrorHarness, SkyFormErrorsHarness, SkyInputBoxHarness, SkyRadioFixture, SkyRadioGroupHarness, SkyRadioHarness, SkyRadioLabelHarness };
|
|
1002
1162
|
//# 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/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,iBAAiB,GAAA;QAC5B,OAAO,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC;KAC5C;AAED;;AAEG;AACI,IAAA,MAAM,sBAAsB,GAAA;QACjC,OAAO,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC;KAC5C;AAED;;;AAGG;AACI,IAAA,MAAM,WAAW,GAAA;AACtB,QAAA,OAAO,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;KAC7D;AAED,IAAA,MAAM,cAAc,GAAA;AAClB,QAAA,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;AACrC,QAAA,MAAM,SAAS,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;AAElD,QAAA,IAAI,UAAkC,CAAC;AAEvC,QAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;AAC1B,YAAA,UAAU,GAAG;gBACX,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;gBAC3B,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;aAC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CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,EAC7D;KACH;AAED;;AAEG;IACI,MAAM,QAAQ,CAAC,SAAiB,EAAA;AACrC,QAAA,OAAO,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;KAC1D;AAED,IAAA,MAAM,cAAc,GAAA;QAClB,OAAO,MAAM,IAAI,CAAC,UAAU,CAAC,oBAAoB,CAAC,EAAE,CAAC;KACtD;AAED,IAAA,MAAM,cAAc,GAAA;QAClB,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAC3C,oBAAoB,CAAC,IAAI,CAAC;AACxB,YAAA,QAAQ,EAAE,mDAAmD;SAC9D,CAAC,CACH,EAAE,CAAC;QAEJ,IAAI,OAAO,EAAE;AACX,YAAA,OAAO,OAAO,CAAC;SAChB;AAED,QAAA,MAAM,KAAK,CAAC,uBAAuB,CAAC,CAAC;KACtC;;;AClMH;;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/checkbox/checkbox-group-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 { 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 */\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<string | undefined> {\n const content = await (await this.#getHelpInline()).getPopoverContent();\n\n return content as string | undefined;\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 * Whether the checkbox is stacked.\n */\n public async isStacked(): Promise<boolean> {\n return await (await this.host()).hasClass('sky-margin-stacked-lg');\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 { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n// eslint-disable-next-line @nx/enforce-module-boundaries\nimport {\n SkyCheckboxGroupHeadingLevel,\n SkyCheckboxGroupHeadingStyle,\n} from '@skyux/forms';\nimport { SkyHelpInlineHarness } from '@skyux/help-inline/testing';\n\nimport { SkyFormErrorsHarness } from '../form-error/form-errors-harness';\n\nimport { SkyCheckboxGroupHarnessFilters } from './checkbox-group-harness-filters';\nimport { SkyCheckboxHarness } from './checkbox-harness';\n\n/**\n * Harness for interacting with a checkbox group component in tests.\n */\nexport class SkyCheckboxGroupHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-checkbox-group';\n\n #getCheckboxes = this.locatorForAll(SkyCheckboxHarness);\n #getHeading = this.locatorFor('.sky-control-label');\n #getHeadingWrapper = this.locatorFor('.sky-control-label span');\n #getHintText = this.locatorForOptional('.sky-checkbox-group-hint-text');\n #getLegendDefault = this.locatorForOptional(\n 'legend .sky-checkbox-group-heading-text',\n );\n #getLegendH3 = this.locatorForOptional('legend h3');\n #getLegendH4 = this.locatorForOptional('legend h4');\n #getLegendH5 = this.locatorForOptional('legend h5');\n #getLegendHeading = this.locatorFor(\n 'legend h3,h4,h5,.sky-checkbox-group-heading-text',\n );\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyCheckboxGroupHarness` that meets certain criteria.\n */\n public static with(\n filters: SkyCheckboxGroupHarnessFilters,\n ): HarnessPredicate<SkyCheckboxGroupHarness> {\n return SkyCheckboxGroupHarness.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 an array of harnesses for the checkboxes in the checkbox group.\n */\n public async getCheckboxes(): Promise<SkyCheckboxHarness[]> {\n return await this.#getCheckboxes();\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 return content as string | undefined;\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 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.#getLegendHeading()).text();\n }\n\n /**\n * Gets the checkbox 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 * 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 checkbox group. Returns undefined if heading level is not set.\n */\n public async getHeadingLevel(): Promise<\n SkyCheckboxGroupHeadingLevel | undefined\n > {\n const heading = await this.#getLegendHeading();\n const h3 = await heading.matchesSelector('h3');\n const h4 = await heading.matchesSelector('h4');\n const h5 = await heading.matchesSelector('h5');\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 checkbox group.\n */\n public async getHeadingStyle(): Promise<SkyCheckboxGroupHeadingStyle> {\n const heading = await this.#getLegendHeading();\n\n const isHeadingStyle3 = await heading.hasClass('sky-font-heading-3');\n const isHeadingStyle4 = await heading.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 * Whether the checkbox group is required.\n */\n public async getRequired(): Promise<boolean> {\n const headingWrapper = await this.#getHeadingWrapper();\n\n return await headingWrapper.hasClass('sky-control-label-required');\n }\n\n /**\n * Whether the checkbox group is stacked.\n */\n public async getStacked(): Promise<boolean> {\n const host = await this.host();\n const heading =\n (await this.#getLegendH3()) ||\n (await this.#getLegendH4()) ||\n (await this.#getLegendH5());\n const label = await this.#getLegendDefault();\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 all the checkboxes in a required group are unchecked.\n */\n public async hasRequiredError(): Promise<boolean> {\n return (await this.#getFormErrors()).hasError('required');\n }\n\n /**\n * Whether the checkbox 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(\n SkyFormErrorsHarness.with({\n dataSkyId: 'checkbox-group-form-errors',\n }),\n )();\n }\n\n async #getHelpInline(): Promise<SkyHelpInlineHarness> {\n const harness = await this.locatorForOptional(\n SkyHelpInlineHarness.with({\n ancestor: '.sky-checkbox-group > .sky-control-label',\n }),\n )();\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 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,iBAAiB,GAAA;QAC5B,OAAO,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC;KAC5C;AAED;;AAEG;AACI,IAAA,MAAM,sBAAsB,GAAA;QACjC,OAAO,CAAC,MAAM,IAAI,CAAC,cAAc,EAAE,EAAE,KAAK,CAAC;KAC5C;AAED;;;AAGG;AACI,IAAA,MAAM,WAAW,GAAA;AACtB,QAAA,OAAO,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,EAAE,QAAQ,CAAC,iBAAiB,CAAC,CAAC;KAC7D;AAED,IAAA,MAAM,cAAc,GAAA;AAClB,QAAA,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,SAAS,EAAE,CAAC;AACrC,QAAA,MAAM,SAAS,GAAG,CAAC,MAAM,KAAK,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;AAElD,QAAA,IAAI,UAAkC,CAAC;AAEvC,QAAA,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;AAC1B,YAAA,UAAU,GAAG;gBACX,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;gBAC3B,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;a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kB,CAC3C,oBAAoB,CAAC,IAAI,CAAC;AACxB,YAAA,QAAQ,EAAE,mDAAmD;SAC9D,CAAC,CACH,EAAE,CAAC;QAEJ,IAAI,OAAO,EAAE;AACX,YAAA,OAAO,OAAO,CAAC;SAChB;AAED,QAAA,MAAM,KAAK,CAAC,uBAAuB,CAAC,CAAC;KACtC;;;AClMH;;AAEG;;;;"}
|
package/fesm2022/skyux-forms.mjs
CHANGED
|
@@ -33,7 +33,6 @@ const RESOURCES = {
|
|
|
33
33
|
skyux_character_count_over_limit: {
|
|
34
34
|
message: 'You are over the character limit.',
|
|
35
35
|
},
|
|
36
|
-
skyux_checkbox_group_required: { message: 'Required' },
|
|
37
36
|
skyux_form_error_character_count: {
|
|
38
37
|
message: 'Limit {0} to {1} character(s).',
|
|
39
38
|
},
|
|
@@ -70,6 +69,7 @@ const RESOURCES = {
|
|
|
70
69
|
skyux_form_error_required: { message: '{0} is required.' },
|
|
71
70
|
skyux_form_error_time: { message: 'Select or enter a valid time.' },
|
|
72
71
|
skyux_form_error_url: { message: 'Enter a URL with a valid format.' },
|
|
72
|
+
skyux_form_group_required: { message: 'Required' },
|
|
73
73
|
skyux_file_attachment_button_label_choose_file: { message: 'Attach file' },
|
|
74
74
|
skyux_file_attachment_button_label_choose_file_label: {
|
|
75
75
|
message: 'Attach file for',
|
|
@@ -599,7 +599,7 @@ class SkyCheckboxGroupComponent {
|
|
|
599
599
|
multi: true,
|
|
600
600
|
},
|
|
601
601
|
{ provide: SKY_FORM_ERRORS_ENABLED, useValue: true },
|
|
602
|
-
], ngImport: i0, template: "<fieldset\n class=\"sky-checkbox-group\"\n [attr.aria-invalid]=\"!!formGroup?.errors\"\n [attr.aria-describedby]=\"hintText ? hintTextEl.id : undefined\"\n [attr.aria-errormessage]=\"\n headingText && formGroup?.errors ? errorId : undefined\n \"\n>\n <legend\n class=\"sky-control-label\"\n [ngClass]=\"{\n 'sky-screen-reader-only': headingHidden,\n 'sky-margin-stacked-xs': !!hintText,\n 'sky-margin-stacked-sm': !hintText\n }\"\n >\n <span\n class=\"sky-margin-inline-xs\"\n [ngClass]=\"{\n 'sky-control-label-required': required\n }\"\n >\n @
|
|
602
|
+
], ngImport: i0, template: "<fieldset\n class=\"sky-checkbox-group\"\n [attr.aria-invalid]=\"!!formGroup?.errors\"\n [attr.aria-describedby]=\"hintText ? hintTextEl.id : undefined\"\n [attr.aria-errormessage]=\"\n headingText && formGroup?.errors ? errorId : undefined\n \"\n>\n <legend\n class=\"sky-control-label\"\n [ngClass]=\"{\n 'sky-screen-reader-only': headingHidden,\n 'sky-margin-stacked-xs': !!hintText,\n 'sky-margin-stacked-sm': !hintText\n }\"\n >\n <span\n class=\"sky-margin-inline-xs\"\n [ngClass]=\"{\n 'sky-control-label-required': required\n }\"\n >\n @switch (headingLevel) {\n @case (3) {\n <h3 [class]=\"headingClass\">{{ headingText }}</h3>\n }\n @case (4) {\n <h4 [class]=\"headingClass\">{{ headingText }}</h4>\n }\n @case (5) {\n <h5 [class]=\"headingClass\">{{ headingText }}</h5>\n }\n @default {\n <span [class]=\"'sky-checkbox-group-heading-text ' + headingClass\">{{\n headingText\n }}</span>\n }\n }\n </span>\n @if (required) {\n <span class=\"sky-screen-reader-only\">{{\n 'skyux_form_group_required' | skyLibResources\n }}</span>\n }\n @if (helpPopoverContent || helpKey) {\n <sky-help-inline\n [helpKey]=\"helpKey\"\n [labelText]=\"headingText\"\n [popoverTitle]=\"helpPopoverTitle\"\n [popoverContent]=\"helpPopoverContent\"\n />\n }\n </legend>\n <div\n #hintTextEl=\"skyId\"\n skyId\n [ngClass]=\"{\n 'sky-font-deemphasized sky-margin-stacked-lg sky-checkbox-group-hint-text':\n !!hintText\n }\"\n >\n {{ hintText }}\n </div>\n <span class=\"sky-checkbox-group-inline sky-switch-icon-group\">\n <ng-content select=\"sky-checkbox[icon]\" />\n </span>\n <span class=\"sky-checkbox-group-stacked\">\n <ng-content select=\"sky-checkbox\" />\n </span>\n</fieldset>\n<sky-form-errors\n [id]=\"errorId\"\n [attr.data-sky-id]=\"formErrorsDataId\"\n [errors]=\"formGroup?.errors\"\n [labelText]=\"headingText\"\n [touched]=\"formGroup?.touched\"\n [dirty]=\"formGroup?.dirty\"\n>\n <ng-content select=\"sky-form-error\" />\n</sky-form-errors>\n", styles: [":host{display:block}.sky-control-label h3,.sky-control-label h4,.sky-control-label h5{margin:0;display:inline-block}.sky-control-label span{line-height:1.1}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: SkyFormErrorsModule }, { kind: "component", type: SkyFormErrorsComponent, selector: "sky-form-errors", inputs: ["errors", "labelText", "touched", "dirty"] }, { kind: "ngmodule", type: SkyFormsResourcesModule }, { kind: "pipe", type: i1$1.SkyLibResourcesPipe, name: "skyLibResources" }, { kind: "ngmodule", type: SkyHelpInlineModule }, { kind: "component", type: i4.λ1, selector: "sky-help-inline", inputs: ["ariaControls", "ariaExpanded", "ariaLabel", "helpKey", "labelledBy", "labelText", "popoverContent", "popoverTitle"], outputs: ["actionClick"] }, { kind: "ngmodule", type: SkyIdModule }, { kind: "directive", type: i1$3.λ2, selector: "[skyId]", exportAs: ["skyId"] }] }); }
|
|
603
603
|
}
|
|
604
604
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImport: i0, type: SkyCheckboxGroupComponent, decorators: [{
|
|
605
605
|
type: Component,
|
|
@@ -616,7 +616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.5", ngImpor
|
|
|
616
616
|
multi: true,
|
|
617
617
|
},
|
|
618
618
|
{ provide: SKY_FORM_ERRORS_ENABLED, useValue: true },
|
|
619
|
-
], template: "<fieldset\n class=\"sky-checkbox-group\"\n [attr.aria-invalid]=\"!!formGroup?.errors\"\n [attr.aria-describedby]=\"hintText ? hintTextEl.id : undefined\"\n [attr.aria-errormessage]=\"\n headingText && formGroup?.errors ? errorId : undefined\n \"\n>\n <legend\n class=\"sky-control-label\"\n [ngClass]=\"{\n 'sky-screen-reader-only': headingHidden,\n 'sky-margin-stacked-xs': !!hintText,\n 'sky-margin-stacked-sm': !hintText\n }\"\n >\n <span\n class=\"sky-margin-inline-xs\"\n [ngClass]=\"{\n 'sky-control-label-required': required\n }\"\n >\n @
|
|
619
|
+
], template: "<fieldset\n class=\"sky-checkbox-group\"\n [attr.aria-invalid]=\"!!formGroup?.errors\"\n [attr.aria-describedby]=\"hintText ? hintTextEl.id : undefined\"\n [attr.aria-errormessage]=\"\n headingText && formGroup?.errors ? errorId : undefined\n \"\n>\n <legend\n class=\"sky-control-label\"\n [ngClass]=\"{\n 'sky-screen-reader-only': headingHidden,\n 'sky-margin-stacked-xs': !!hintText,\n 'sky-margin-stacked-sm': !hintText\n }\"\n >\n <span\n class=\"sky-margin-inline-xs\"\n [ngClass]=\"{\n 'sky-control-label-required': required\n }\"\n >\n @switch (headingLevel) {\n @case (3) {\n <h3 [class]=\"headingClass\">{{ headingText }}</h3>\n }\n @case (4) {\n <h4 [class]=\"headingClass\">{{ headingText }}</h4>\n }\n @case (5) {\n <h5 [class]=\"headingClass\">{{ headingText }}</h5>\n }\n @default {\n <span [class]=\"'sky-checkbox-group-heading-text ' + headingClass\">{{\n headingText\n }}</span>\n }\n }\n </span>\n @if (required) {\n <span class=\"sky-screen-reader-only\">{{\n 'skyux_form_group_required' | skyLibResources\n }}</span>\n }\n @if (helpPopoverContent || helpKey) {\n <sky-help-inline\n [helpKey]=\"helpKey\"\n [labelText]=\"headingText\"\n [popoverTitle]=\"helpPopoverTitle\"\n [popoverContent]=\"helpPopoverContent\"\n />\n }\n </legend>\n <div\n #hintTextEl=\"skyId\"\n skyId\n [ngClass]=\"{\n 'sky-font-deemphasized sky-margin-stacked-lg sky-checkbox-group-hint-text':\n !!hintText\n }\"\n >\n {{ hintText }}\n </div>\n <span class=\"sky-checkbox-group-inline sky-switch-icon-group\">\n <ng-content select=\"sky-checkbox[icon]\" />\n </span>\n <span class=\"sky-checkbox-group-stacked\">\n <ng-content select=\"sky-checkbox\" />\n </span>\n</fieldset>\n<sky-form-errors\n [id]=\"errorId\"\n [attr.data-sky-id]=\"formErrorsDataId\"\n [errors]=\"formGroup?.errors\"\n [labelText]=\"headingText\"\n [touched]=\"formGroup?.touched\"\n [dirty]=\"formGroup?.dirty\"\n>\n <ng-content select=\"sky-form-error\" />\n</sky-form-errors>\n", styles: [":host{display:block}.sky-control-label h3,.sky-control-label h4,.sky-control-label h5{margin:0;display:inline-block}.sky-control-label span{line-height:1.1}\n"] }]
|
|
620
620
|
}], propDecorators: { helpPopoverContent: [{
|
|
621
621
|
type: Input
|
|
622
622
|
}], helpPopoverTitle: [{
|