@skyux/modals 7.18.0 → 7.19.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.
Files changed (2) hide show
  1. package/documentation.json +529 -2
  2. package/package.json +5 -5
@@ -20,7 +20,9 @@
20
20
  "SkyModalConfigurationInterface": "interface-skymodalconfigurationinterface",
21
21
  "SkyConfirmButtonStyleType": "type-alias-skyconfirmbuttonstyletype",
22
22
  "SkyConfirmHarness": "class-skyconfirmharness",
23
- "SkyConfirmButtonHarnessFilters": "interface-skyconfirmbuttonharnessfilters"
23
+ "SkyModalHarness": "class-skymodalharness",
24
+ "SkyConfirmButtonHarnessFilters": "interface-skyconfirmbuttonharnessfilters",
25
+ "SkyModalHarnessFilters": "interface-skymodalharnessfilters"
24
26
  },
25
27
  "typedoc": {
26
28
  "id": 0,
@@ -3553,6 +3555,398 @@
3553
3555
  }
3554
3556
  ]
3555
3557
  },
3558
+ {
3559
+ "id": 377,
3560
+ "name": "SkyModalHarness",
3561
+ "kind": 128,
3562
+ "kindString": "Class",
3563
+ "flags": {},
3564
+ "comment": {
3565
+ "shortText": "Harness for interacting with a modal component in tests."
3566
+ },
3567
+ "children": [
3568
+ {
3569
+ "id": 392,
3570
+ "name": "getAriaDescribedBy",
3571
+ "kind": 2048,
3572
+ "kindString": "Method",
3573
+ "flags": {
3574
+ "isPublic": true
3575
+ },
3576
+ "sources": [
3577
+ {
3578
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3579
+ "line": 31,
3580
+ "character": 15
3581
+ }
3582
+ ],
3583
+ "signatures": [
3584
+ {
3585
+ "id": 393,
3586
+ "name": "getAriaDescribedBy",
3587
+ "kind": 4096,
3588
+ "kindString": "Call signature",
3589
+ "flags": {},
3590
+ "comment": {
3591
+ "shortText": "Gets the aria-describedBy property of the modal"
3592
+ },
3593
+ "type": {
3594
+ "type": "reference",
3595
+ "typeArguments": [
3596
+ {
3597
+ "type": "intrinsic",
3598
+ "name": "string"
3599
+ }
3600
+ ],
3601
+ "qualifiedName": "Promise",
3602
+ "package": "typescript",
3603
+ "name": "Promise"
3604
+ }
3605
+ }
3606
+ ]
3607
+ },
3608
+ {
3609
+ "id": 394,
3610
+ "name": "getAriaLabelledBy",
3611
+ "kind": 2048,
3612
+ "kindString": "Method",
3613
+ "flags": {
3614
+ "isPublic": true
3615
+ },
3616
+ "sources": [
3617
+ {
3618
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3619
+ "line": 38,
3620
+ "character": 15
3621
+ }
3622
+ ],
3623
+ "signatures": [
3624
+ {
3625
+ "id": 395,
3626
+ "name": "getAriaLabelledBy",
3627
+ "kind": 4096,
3628
+ "kindString": "Call signature",
3629
+ "flags": {},
3630
+ "comment": {
3631
+ "shortText": "Gets the aria-labelledBy property of the modal"
3632
+ },
3633
+ "type": {
3634
+ "type": "reference",
3635
+ "typeArguments": [
3636
+ {
3637
+ "type": "intrinsic",
3638
+ "name": "string"
3639
+ }
3640
+ ],
3641
+ "qualifiedName": "Promise",
3642
+ "package": "typescript",
3643
+ "name": "Promise"
3644
+ }
3645
+ }
3646
+ ]
3647
+ },
3648
+ {
3649
+ "id": 396,
3650
+ "name": "getAriaRole",
3651
+ "kind": 2048,
3652
+ "kindString": "Method",
3653
+ "flags": {
3654
+ "isPublic": true
3655
+ },
3656
+ "sources": [
3657
+ {
3658
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3659
+ "line": 45,
3660
+ "character": 15
3661
+ }
3662
+ ],
3663
+ "signatures": [
3664
+ {
3665
+ "id": 397,
3666
+ "name": "getAriaRole",
3667
+ "kind": 4096,
3668
+ "kindString": "Call signature",
3669
+ "flags": {},
3670
+ "comment": {
3671
+ "shortText": "Gets the role of the modal."
3672
+ },
3673
+ "type": {
3674
+ "type": "reference",
3675
+ "typeArguments": [
3676
+ {
3677
+ "type": "intrinsic",
3678
+ "name": "string"
3679
+ }
3680
+ ],
3681
+ "qualifiedName": "Promise",
3682
+ "package": "typescript",
3683
+ "name": "Promise"
3684
+ }
3685
+ }
3686
+ ]
3687
+ },
3688
+ {
3689
+ "id": 398,
3690
+ "name": "getSize",
3691
+ "kind": 2048,
3692
+ "kindString": "Method",
3693
+ "flags": {
3694
+ "isPublic": true
3695
+ },
3696
+ "sources": [
3697
+ {
3698
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3699
+ "line": 52,
3700
+ "character": 15
3701
+ }
3702
+ ],
3703
+ "signatures": [
3704
+ {
3705
+ "id": 399,
3706
+ "name": "getSize",
3707
+ "kind": 4096,
3708
+ "kindString": "Call signature",
3709
+ "flags": {},
3710
+ "comment": {
3711
+ "shortText": "Gets the modal size."
3712
+ },
3713
+ "type": {
3714
+ "type": "reference",
3715
+ "typeArguments": [
3716
+ {
3717
+ "type": "intrinsic",
3718
+ "name": "string"
3719
+ }
3720
+ ],
3721
+ "qualifiedName": "Promise",
3722
+ "package": "typescript",
3723
+ "name": "Promise"
3724
+ }
3725
+ }
3726
+ ]
3727
+ },
3728
+ {
3729
+ "id": 400,
3730
+ "name": "getWrapperClass",
3731
+ "kind": 2048,
3732
+ "kindString": "Method",
3733
+ "flags": {
3734
+ "isPublic": true
3735
+ },
3736
+ "sources": [
3737
+ {
3738
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3739
+ "line": 75,
3740
+ "character": 15
3741
+ }
3742
+ ],
3743
+ "signatures": [
3744
+ {
3745
+ "id": 401,
3746
+ "name": "getWrapperClass",
3747
+ "kind": 4096,
3748
+ "kindString": "Call signature",
3749
+ "flags": {},
3750
+ "comment": {
3751
+ "shortText": "Gets the wrapper class of the modal."
3752
+ },
3753
+ "type": {
3754
+ "type": "reference",
3755
+ "typeArguments": [
3756
+ {
3757
+ "type": "intrinsic",
3758
+ "name": "string"
3759
+ }
3760
+ ],
3761
+ "qualifiedName": "Promise",
3762
+ "package": "typescript",
3763
+ "name": "Promise"
3764
+ }
3765
+ }
3766
+ ]
3767
+ },
3768
+ {
3769
+ "id": 407,
3770
+ "name": "host",
3771
+ "kind": 2048,
3772
+ "kindString": "Method",
3773
+ "flags": {},
3774
+ "sources": [
3775
+ {
3776
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
3777
+ "line": 40,
3778
+ "character": 4
3779
+ }
3780
+ ],
3781
+ "signatures": [
3782
+ {
3783
+ "id": 408,
3784
+ "name": "host",
3785
+ "kind": 4096,
3786
+ "kindString": "Call signature",
3787
+ "flags": {},
3788
+ "comment": {
3789
+ "shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
3790
+ },
3791
+ "type": {
3792
+ "type": "reference",
3793
+ "typeArguments": [
3794
+ {
3795
+ "type": "reference",
3796
+ "qualifiedName": "TestElement",
3797
+ "package": "@angular/cdk",
3798
+ "name": "TestElement"
3799
+ }
3800
+ ],
3801
+ "qualifiedName": "Promise",
3802
+ "package": "typescript",
3803
+ "name": "Promise"
3804
+ },
3805
+ "inheritedFrom": {
3806
+ "type": "reference",
3807
+ "name": "SkyComponentHarness.host"
3808
+ }
3809
+ }
3810
+ ],
3811
+ "inheritedFrom": {
3812
+ "type": "reference",
3813
+ "name": "SkyComponentHarness.host"
3814
+ }
3815
+ },
3816
+ {
3817
+ "id": 402,
3818
+ "name": "isFullPage",
3819
+ "kind": 2048,
3820
+ "kindString": "Method",
3821
+ "flags": {
3822
+ "isPublic": true
3823
+ },
3824
+ "sources": [
3825
+ {
3826
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3827
+ "line": 82,
3828
+ "character": 15
3829
+ }
3830
+ ],
3831
+ "signatures": [
3832
+ {
3833
+ "id": 403,
3834
+ "name": "isFullPage",
3835
+ "kind": 4096,
3836
+ "kindString": "Call signature",
3837
+ "flags": {},
3838
+ "comment": {
3839
+ "shortText": "Whether the modal is full page."
3840
+ },
3841
+ "type": {
3842
+ "type": "reference",
3843
+ "typeArguments": [
3844
+ {
3845
+ "type": "intrinsic",
3846
+ "name": "boolean"
3847
+ }
3848
+ ],
3849
+ "qualifiedName": "Promise",
3850
+ "package": "typescript",
3851
+ "name": "Promise"
3852
+ }
3853
+ }
3854
+ ]
3855
+ },
3856
+ {
3857
+ "id": 379,
3858
+ "name": "with",
3859
+ "kind": 2048,
3860
+ "kindString": "Method",
3861
+ "flags": {
3862
+ "isPublic": true,
3863
+ "isStatic": true
3864
+ },
3865
+ "sources": [
3866
+ {
3867
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3868
+ "line": 22,
3869
+ "character": 16
3870
+ }
3871
+ ],
3872
+ "signatures": [
3873
+ {
3874
+ "id": 380,
3875
+ "name": "with",
3876
+ "kind": 4096,
3877
+ "kindString": "Call signature",
3878
+ "flags": {},
3879
+ "comment": {
3880
+ "shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyModalHarness` that meets certain criteria"
3881
+ },
3882
+ "parameters": [
3883
+ {
3884
+ "id": 381,
3885
+ "name": "filters",
3886
+ "kind": 32768,
3887
+ "kindString": "Parameter",
3888
+ "flags": {},
3889
+ "type": {
3890
+ "type": "reference",
3891
+ "id": 427,
3892
+ "name": "SkyModalHarnessFilters"
3893
+ }
3894
+ }
3895
+ ],
3896
+ "type": {
3897
+ "type": "reference",
3898
+ "typeArguments": [
3899
+ {
3900
+ "type": "reference",
3901
+ "id": 377,
3902
+ "name": "SkyModalHarness"
3903
+ }
3904
+ ],
3905
+ "qualifiedName": "HarnessPredicate",
3906
+ "package": "@angular/cdk",
3907
+ "name": "HarnessPredicate"
3908
+ }
3909
+ }
3910
+ ]
3911
+ }
3912
+ ],
3913
+ "groups": [
3914
+ {
3915
+ "title": "Constructors",
3916
+ "kind": 512,
3917
+ "children": [
3918
+ 387
3919
+ ]
3920
+ },
3921
+ {
3922
+ "title": "Methods",
3923
+ "kind": 2048,
3924
+ "children": [
3925
+ 392,
3926
+ 394,
3927
+ 396,
3928
+ 398,
3929
+ 400,
3930
+ 407,
3931
+ 402,
3932
+ 379
3933
+ ]
3934
+ }
3935
+ ],
3936
+ "sources": [
3937
+ {
3938
+ "fileName": "projects/modals/src/testing/modal/modal-harness.ts",
3939
+ "line": 9,
3940
+ "character": 13
3941
+ }
3942
+ ],
3943
+ "extendedTypes": [
3944
+ {
3945
+ "type": "reference",
3946
+ "name": "SkyComponentHarness"
3947
+ }
3948
+ ]
3949
+ },
3556
3950
  {
3557
3951
  "id": 373,
3558
3952
  "name": "SkyConfirmButtonHarnessFilters",
@@ -3686,6 +4080,134 @@
3686
4080
  "name": "Omit"
3687
4081
  }
3688
4082
  ]
4083
+ },
4084
+ {
4085
+ "id": 427,
4086
+ "name": "SkyModalHarnessFilters",
4087
+ "kind": 256,
4088
+ "kindString": "Interface",
4089
+ "flags": {},
4090
+ "comment": {
4091
+ "shortText": "A set of criteria that can be used to filter a list of SkyModalHarness instances."
4092
+ },
4093
+ "children": [
4094
+ {
4095
+ "id": 430,
4096
+ "name": "ancestor",
4097
+ "kind": 1024,
4098
+ "kindString": "Property",
4099
+ "flags": {
4100
+ "isOptional": true
4101
+ },
4102
+ "comment": {
4103
+ "shortText": "Only find instances that are nested under an element with the given selector."
4104
+ },
4105
+ "sources": [
4106
+ {
4107
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
4108
+ "line": 28,
4109
+ "character": 4
4110
+ }
4111
+ ],
4112
+ "type": {
4113
+ "type": "intrinsic",
4114
+ "name": "string"
4115
+ },
4116
+ "inheritedFrom": {
4117
+ "type": "reference",
4118
+ "name": "SkyHarnessFilters.ancestor"
4119
+ }
4120
+ },
4121
+ {
4122
+ "id": 428,
4123
+ "name": "dataSkyId",
4124
+ "kind": 1024,
4125
+ "kindString": "Property",
4126
+ "flags": {
4127
+ "isOptional": true
4128
+ },
4129
+ "comment": {
4130
+ "shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
4131
+ },
4132
+ "sources": [
4133
+ {
4134
+ "fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
4135
+ "line": 11,
4136
+ "character": 2
4137
+ }
4138
+ ],
4139
+ "type": {
4140
+ "type": "union",
4141
+ "types": [
4142
+ {
4143
+ "type": "intrinsic",
4144
+ "name": "string"
4145
+ },
4146
+ {
4147
+ "type": "reference",
4148
+ "qualifiedName": "RegExp",
4149
+ "package": "typescript",
4150
+ "name": "RegExp"
4151
+ }
4152
+ ]
4153
+ },
4154
+ "inheritedFrom": {
4155
+ "type": "reference",
4156
+ "name": "SkyHarnessFilters.dataSkyId"
4157
+ }
4158
+ },
4159
+ {
4160
+ "id": 429,
4161
+ "name": "selector",
4162
+ "kind": 1024,
4163
+ "kindString": "Property",
4164
+ "flags": {
4165
+ "isOptional": true
4166
+ },
4167
+ "comment": {
4168
+ "shortText": "Only find instances whose host element matches the given selector."
4169
+ },
4170
+ "sources": [
4171
+ {
4172
+ "fileName": "node_modules/@angular/cdk/testing/index.d.ts",
4173
+ "line": 26,
4174
+ "character": 4
4175
+ }
4176
+ ],
4177
+ "type": {
4178
+ "type": "intrinsic",
4179
+ "name": "string"
4180
+ },
4181
+ "inheritedFrom": {
4182
+ "type": "reference",
4183
+ "name": "SkyHarnessFilters.selector"
4184
+ }
4185
+ }
4186
+ ],
4187
+ "groups": [
4188
+ {
4189
+ "title": "Properties",
4190
+ "kind": 1024,
4191
+ "children": [
4192
+ 430,
4193
+ 428,
4194
+ 429
4195
+ ]
4196
+ }
4197
+ ],
4198
+ "sources": [
4199
+ {
4200
+ "fileName": "projects/modals/src/testing/modal/modal-harness-filters.ts",
4201
+ "line": 7,
4202
+ "character": 17
4203
+ }
4204
+ ],
4205
+ "extendedTypes": [
4206
+ {
4207
+ "type": "reference",
4208
+ "name": "SkyHarnessFilters"
4209
+ }
4210
+ ]
3689
4211
  }
3690
4212
  ],
3691
4213
  "groups": [
@@ -3778,7 +4300,7 @@
3778
4300
  {
3779
4301
  "fileName": "modal-demo-modal.component.html",
3780
4302
  "filePath": "/projects/modals/documentation/code-examples/modal/modal-demo-modal.component.html",
3781
- "rawContents": "<form [formGroup]=\"demoForm\" (submit)=\"saveForm()\">\n <sky-modal>\n <sky-modal-header> Modal title </sky-modal-header>\n <sky-modal-content>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"myInput.id\">\n An input inside a modal\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"value1\"\n type=\"text\"\n skyId\n #myInput=\"skyId\"\n />\n </sky-input-box>\n </sky-modal-content>\n <sky-modal-footer>\n <button\n class=\"sky-btn sky-btn-primary sky-margin-inline-sm\"\n type=\"submit\"\n >\n Save\n </button>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"cancelForm()\">\n Cancel\n </button>\n </sky-modal-footer>\n </sky-modal>\n</form>\n"
4303
+ "rawContents": "<form [formGroup]=\"demoForm\" (submit)=\"saveForm()\">\n <sky-modal data-sky-id=\"modal-demo\">\n <sky-modal-header> Modal title </sky-modal-header>\n <sky-modal-content>\n <sky-input-box>\n <label class=\"sky-control-label\" [for]=\"myInput.id\">\n An input inside a modal\n </label>\n <input\n class=\"sky-form-control\"\n formControlName=\"value1\"\n type=\"text\"\n skyId\n #myInput=\"skyId\"\n />\n </sky-input-box>\n </sky-modal-content>\n <sky-modal-footer>\n <button\n class=\"sky-btn sky-btn-primary sky-margin-inline-sm\"\n type=\"submit\"\n >\n Save\n </button>\n <button class=\"sky-btn sky-btn-link\" type=\"button\" (click)=\"cancelForm()\">\n Cancel\n </button>\n </sky-modal-footer>\n </sky-modal>\n</form>\n"
3782
4304
  },
3783
4305
  {
3784
4306
  "fileName": "modal-demo-modal.component.ts",
@@ -3790,6 +4312,11 @@
3790
4312
  "filePath": "/projects/modals/documentation/code-examples/modal/modal-demo.component.html",
3791
4313
  "rawContents": "<button\n class=\"sky-btn sky-btn-default\"\n type=\"button\"\n (click)=\"onOpenModalClick()\"\n>\n Open modal demo\n</button>\n<div *ngIf=\"demoValue\">The user entered {{ demoValue }}</div>\n"
3792
4314
  },
4315
+ {
4316
+ "fileName": "modal-demo.component.spec.ts",
4317
+ "filePath": "/projects/modals/documentation/code-examples/modal/modal-demo.component.spec.ts",
4318
+ "rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyWaitService } from '@skyux/indicators';\nimport { SkyModalService } from '@skyux/modals';\nimport { SkyModalHarness } from '@skyux/modals/testing';\n\nimport { Observable, of } from 'rxjs';\n\nimport { ModalDemoDataService } from './modal-demo-data.service';\nimport { ModalDemoComponent } from './modal-demo.component';\nimport { ModalDemoModule } from './modal-demo.module';\n\nclass mockWaitSvc {\n public blockingWrap(data: unknown): Observable<unknown> {\n return of(data);\n }\n}\n\ndescribe('Basic modal', async () => {\n async function setupTest(): Promise<{\n modalHarness: SkyModalHarness;\n fixture: ComponentFixture<ModalDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(ModalDemoComponent);\n fixture.componentInstance.onOpenModalClick();\n fixture.detectChanges();\n\n const loader = TestbedHarnessEnvironment.documentRootLoader(fixture);\n const modalHarness = await loader.getHarness(\n SkyModalHarness.with({\n dataSkyId: 'modal-demo',\n })\n );\n\n return { modalHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [ModalDemoModule],\n providers: [\n SkyModalService,\n { provide: SkyWaitService, useClass: mockWaitSvc },\n ModalDemoDataService,\n ],\n });\n });\n\n it('should open the correct modal', async () => {\n const { modalHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n\n await expectAsync(modalHarness.getAriaRole()).toBeResolvedTo('dialog');\n await expectAsync(modalHarness.getSize()).toBeResolvedTo('medium');\n await expectAsync(modalHarness.isFullPage()).toBeResolvedTo(false);\n });\n});\n"
4319
+ },
3793
4320
  {
3794
4321
  "fileName": "modal-demo.component.ts",
3795
4322
  "filePath": "/projects/modals/documentation/code-examples/modal/modal-demo.component.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skyux/modals",
3
- "version": "7.18.0",
3
+ "version": "7.19.0",
4
4
  "author": "Blackbaud, Inc.",
5
5
  "keywords": [
6
6
  "blackbaud",
@@ -44,10 +44,10 @@
44
44
  "@angular/common": "^14.2.11",
45
45
  "@angular/core": "^14.2.11",
46
46
  "@angular/router": "^14.2.11",
47
- "@skyux/core": "7.18.0",
48
- "@skyux/i18n": "7.18.0",
49
- "@skyux/indicators": "7.18.0",
50
- "@skyux/theme": "7.18.0"
47
+ "@skyux/core": "7.19.0",
48
+ "@skyux/i18n": "7.19.0",
49
+ "@skyux/indicators": "7.19.0",
50
+ "@skyux/theme": "7.19.0"
51
51
  },
52
52
  "dependencies": {
53
53
  "tslib": "^2.3.1"