@skyux/layout 7.20.0 → 7.21.1
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 +405 -4
- package/esm2020/testing/box/box-harness.filters.mjs +2 -0
- package/esm2020/testing/box/box-harness.mjs +40 -0
- package/esm2020/testing/public-api.mjs +3 -1
- package/fesm2015/skyux-layout-testing.mjs +47 -2
- package/fesm2015/skyux-layout-testing.mjs.map +1 -1
- package/fesm2020/skyux-layout-testing.mjs +40 -1
- package/fesm2020/skyux-layout-testing.mjs.map +1 -1
- package/package.json +9 -9
- package/testing/box/box-harness.d.ts +27 -0
- package/testing/box/box-harness.filters.d.ts +6 -0
- package/testing/public-api.d.ts +2 -0
package/documentation.json
CHANGED
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
"SkyDescriptionListModeType": "type-alias-skydescriptionlistmodetype",
|
|
66
66
|
"SkyFluidGridGutterSizeType": "type-alias-skyfluidgridguttersizetype",
|
|
67
67
|
"SkyPageLayoutType": "type-alias-skypagelayouttype",
|
|
68
|
-
"SkyTextExpandRepeaterListStyleType": "type-alias-skytextexpandrepeaterliststyletype"
|
|
68
|
+
"SkyTextExpandRepeaterListStyleType": "type-alias-skytextexpandrepeaterliststyletype",
|
|
69
|
+
"SkyBoxHarness": "class-skyboxharness",
|
|
70
|
+
"SkyBoxHarnessFilters": "interface-skyboxharnessfilters"
|
|
69
71
|
},
|
|
70
72
|
"typedoc": {
|
|
71
73
|
"id": 0,
|
|
@@ -8950,7 +8952,7 @@
|
|
|
8950
8952
|
},
|
|
8951
8953
|
"sources": [
|
|
8952
8954
|
{
|
|
8953
|
-
"fileName": "src/lib/modules/action-button/action-button-permalink.ts",
|
|
8955
|
+
"fileName": "libs/components/layout/src/lib/modules/action-button/action-button-permalink.ts",
|
|
8954
8956
|
"line": 25,
|
|
8955
8957
|
"character": 4
|
|
8956
8958
|
}
|
|
@@ -8982,7 +8984,7 @@
|
|
|
8982
8984
|
},
|
|
8983
8985
|
"sources": [
|
|
8984
8986
|
{
|
|
8985
|
-
"fileName": "src/lib/modules/action-button/action-button-permalink.ts",
|
|
8987
|
+
"fileName": "libs/components/layout/src/lib/modules/action-button/action-button-permalink.ts",
|
|
8986
8988
|
"line": 26,
|
|
8987
8989
|
"character": 4
|
|
8988
8990
|
}
|
|
@@ -9308,6 +9310,400 @@
|
|
|
9308
9310
|
}
|
|
9309
9311
|
]
|
|
9310
9312
|
}
|
|
9313
|
+
},
|
|
9314
|
+
{
|
|
9315
|
+
"id": 639,
|
|
9316
|
+
"name": "SkyBoxHarness",
|
|
9317
|
+
"kind": 128,
|
|
9318
|
+
"kindString": "Class",
|
|
9319
|
+
"flags": {},
|
|
9320
|
+
"children": [
|
|
9321
|
+
{
|
|
9322
|
+
"id": 653,
|
|
9323
|
+
"name": "getAriaLabel",
|
|
9324
|
+
"kind": 2048,
|
|
9325
|
+
"kindString": "Method",
|
|
9326
|
+
"flags": {
|
|
9327
|
+
"isPublic": true
|
|
9328
|
+
},
|
|
9329
|
+
"sources": [
|
|
9330
|
+
{
|
|
9331
|
+
"fileName": "projects/layout/src/testing/box/box-harness.ts",
|
|
9332
|
+
"line": 27,
|
|
9333
|
+
"character": 15
|
|
9334
|
+
}
|
|
9335
|
+
],
|
|
9336
|
+
"signatures": [
|
|
9337
|
+
{
|
|
9338
|
+
"id": 654,
|
|
9339
|
+
"name": "getAriaLabel",
|
|
9340
|
+
"kind": 4096,
|
|
9341
|
+
"kindString": "Call signature",
|
|
9342
|
+
"flags": {},
|
|
9343
|
+
"comment": {
|
|
9344
|
+
"shortText": "Gets the aria-label property of the box"
|
|
9345
|
+
},
|
|
9346
|
+
"type": {
|
|
9347
|
+
"type": "reference",
|
|
9348
|
+
"typeArguments": [
|
|
9349
|
+
{
|
|
9350
|
+
"type": "intrinsic",
|
|
9351
|
+
"name": "string"
|
|
9352
|
+
}
|
|
9353
|
+
],
|
|
9354
|
+
"qualifiedName": "Promise",
|
|
9355
|
+
"package": "typescript",
|
|
9356
|
+
"name": "Promise"
|
|
9357
|
+
}
|
|
9358
|
+
}
|
|
9359
|
+
]
|
|
9360
|
+
},
|
|
9361
|
+
{
|
|
9362
|
+
"id": 655,
|
|
9363
|
+
"name": "getAriaLabelledby",
|
|
9364
|
+
"kind": 2048,
|
|
9365
|
+
"kindString": "Method",
|
|
9366
|
+
"flags": {
|
|
9367
|
+
"isPublic": true
|
|
9368
|
+
},
|
|
9369
|
+
"sources": [
|
|
9370
|
+
{
|
|
9371
|
+
"fileName": "projects/layout/src/testing/box/box-harness.ts",
|
|
9372
|
+
"line": 34,
|
|
9373
|
+
"character": 15
|
|
9374
|
+
}
|
|
9375
|
+
],
|
|
9376
|
+
"signatures": [
|
|
9377
|
+
{
|
|
9378
|
+
"id": 656,
|
|
9379
|
+
"name": "getAriaLabelledby",
|
|
9380
|
+
"kind": 4096,
|
|
9381
|
+
"kindString": "Call signature",
|
|
9382
|
+
"flags": {},
|
|
9383
|
+
"comment": {
|
|
9384
|
+
"shortText": "Gets the aria-labelledby property of the box"
|
|
9385
|
+
},
|
|
9386
|
+
"type": {
|
|
9387
|
+
"type": "reference",
|
|
9388
|
+
"typeArguments": [
|
|
9389
|
+
{
|
|
9390
|
+
"type": "intrinsic",
|
|
9391
|
+
"name": "string"
|
|
9392
|
+
}
|
|
9393
|
+
],
|
|
9394
|
+
"qualifiedName": "Promise",
|
|
9395
|
+
"package": "typescript",
|
|
9396
|
+
"name": "Promise"
|
|
9397
|
+
}
|
|
9398
|
+
}
|
|
9399
|
+
]
|
|
9400
|
+
},
|
|
9401
|
+
{
|
|
9402
|
+
"id": 657,
|
|
9403
|
+
"name": "getAriaRole",
|
|
9404
|
+
"kind": 2048,
|
|
9405
|
+
"kindString": "Method",
|
|
9406
|
+
"flags": {
|
|
9407
|
+
"isPublic": true
|
|
9408
|
+
},
|
|
9409
|
+
"sources": [
|
|
9410
|
+
{
|
|
9411
|
+
"fileName": "projects/layout/src/testing/box/box-harness.ts",
|
|
9412
|
+
"line": 41,
|
|
9413
|
+
"character": 15
|
|
9414
|
+
}
|
|
9415
|
+
],
|
|
9416
|
+
"signatures": [
|
|
9417
|
+
{
|
|
9418
|
+
"id": 658,
|
|
9419
|
+
"name": "getAriaRole",
|
|
9420
|
+
"kind": 4096,
|
|
9421
|
+
"kindString": "Call signature",
|
|
9422
|
+
"flags": {},
|
|
9423
|
+
"comment": {
|
|
9424
|
+
"shortText": "Gets the aria-role property of the box"
|
|
9425
|
+
},
|
|
9426
|
+
"type": {
|
|
9427
|
+
"type": "reference",
|
|
9428
|
+
"typeArguments": [
|
|
9429
|
+
{
|
|
9430
|
+
"type": "intrinsic",
|
|
9431
|
+
"name": "string"
|
|
9432
|
+
}
|
|
9433
|
+
],
|
|
9434
|
+
"qualifiedName": "Promise",
|
|
9435
|
+
"package": "typescript",
|
|
9436
|
+
"name": "Promise"
|
|
9437
|
+
}
|
|
9438
|
+
}
|
|
9439
|
+
]
|
|
9440
|
+
},
|
|
9441
|
+
{
|
|
9442
|
+
"id": 662,
|
|
9443
|
+
"name": "host",
|
|
9444
|
+
"kind": 2048,
|
|
9445
|
+
"kindString": "Method",
|
|
9446
|
+
"flags": {},
|
|
9447
|
+
"sources": [
|
|
9448
|
+
{
|
|
9449
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
9450
|
+
"line": 40,
|
|
9451
|
+
"character": 4
|
|
9452
|
+
}
|
|
9453
|
+
],
|
|
9454
|
+
"signatures": [
|
|
9455
|
+
{
|
|
9456
|
+
"id": 663,
|
|
9457
|
+
"name": "host",
|
|
9458
|
+
"kind": 4096,
|
|
9459
|
+
"kindString": "Call signature",
|
|
9460
|
+
"flags": {},
|
|
9461
|
+
"comment": {
|
|
9462
|
+
"shortText": "Gets a `Promise` for the `TestElement` representing the host element of the component."
|
|
9463
|
+
},
|
|
9464
|
+
"type": {
|
|
9465
|
+
"type": "reference",
|
|
9466
|
+
"typeArguments": [
|
|
9467
|
+
{
|
|
9468
|
+
"type": "reference",
|
|
9469
|
+
"qualifiedName": "TestElement",
|
|
9470
|
+
"package": "@angular/cdk",
|
|
9471
|
+
"name": "TestElement"
|
|
9472
|
+
}
|
|
9473
|
+
],
|
|
9474
|
+
"qualifiedName": "Promise",
|
|
9475
|
+
"package": "typescript",
|
|
9476
|
+
"name": "Promise"
|
|
9477
|
+
},
|
|
9478
|
+
"inheritedFrom": {
|
|
9479
|
+
"type": "reference",
|
|
9480
|
+
"name": "SkyComponentHarness.host"
|
|
9481
|
+
}
|
|
9482
|
+
}
|
|
9483
|
+
],
|
|
9484
|
+
"inheritedFrom": {
|
|
9485
|
+
"type": "reference",
|
|
9486
|
+
"name": "SkyComponentHarness.host"
|
|
9487
|
+
}
|
|
9488
|
+
},
|
|
9489
|
+
{
|
|
9490
|
+
"id": 641,
|
|
9491
|
+
"name": "with",
|
|
9492
|
+
"kind": 2048,
|
|
9493
|
+
"kindString": "Method",
|
|
9494
|
+
"flags": {
|
|
9495
|
+
"isPublic": true,
|
|
9496
|
+
"isStatic": true
|
|
9497
|
+
},
|
|
9498
|
+
"sources": [
|
|
9499
|
+
{
|
|
9500
|
+
"fileName": "projects/layout/src/testing/box/box-harness.ts",
|
|
9501
|
+
"line": 18,
|
|
9502
|
+
"character": 16
|
|
9503
|
+
}
|
|
9504
|
+
],
|
|
9505
|
+
"signatures": [
|
|
9506
|
+
{
|
|
9507
|
+
"id": 642,
|
|
9508
|
+
"name": "with",
|
|
9509
|
+
"kind": 4096,
|
|
9510
|
+
"kindString": "Call signature",
|
|
9511
|
+
"flags": {},
|
|
9512
|
+
"comment": {
|
|
9513
|
+
"shortText": "Gets a `HarnessPredicate` that can be used to search for a\n`SkyBoxHarness` that meets certain criteria"
|
|
9514
|
+
},
|
|
9515
|
+
"parameters": [
|
|
9516
|
+
{
|
|
9517
|
+
"id": 643,
|
|
9518
|
+
"name": "filters",
|
|
9519
|
+
"kind": 32768,
|
|
9520
|
+
"kindString": "Parameter",
|
|
9521
|
+
"flags": {},
|
|
9522
|
+
"type": {
|
|
9523
|
+
"type": "reference",
|
|
9524
|
+
"id": 682,
|
|
9525
|
+
"name": "SkyBoxHarnessFilters"
|
|
9526
|
+
}
|
|
9527
|
+
}
|
|
9528
|
+
],
|
|
9529
|
+
"type": {
|
|
9530
|
+
"type": "reference",
|
|
9531
|
+
"typeArguments": [
|
|
9532
|
+
{
|
|
9533
|
+
"type": "reference",
|
|
9534
|
+
"id": 639,
|
|
9535
|
+
"name": "SkyBoxHarness"
|
|
9536
|
+
}
|
|
9537
|
+
],
|
|
9538
|
+
"qualifiedName": "HarnessPredicate",
|
|
9539
|
+
"package": "@angular/cdk",
|
|
9540
|
+
"name": "HarnessPredicate"
|
|
9541
|
+
}
|
|
9542
|
+
}
|
|
9543
|
+
]
|
|
9544
|
+
}
|
|
9545
|
+
],
|
|
9546
|
+
"groups": [
|
|
9547
|
+
{
|
|
9548
|
+
"title": "Constructors",
|
|
9549
|
+
"kind": 512,
|
|
9550
|
+
"children": [
|
|
9551
|
+
649
|
|
9552
|
+
]
|
|
9553
|
+
},
|
|
9554
|
+
{
|
|
9555
|
+
"title": "Methods",
|
|
9556
|
+
"kind": 2048,
|
|
9557
|
+
"children": [
|
|
9558
|
+
653,
|
|
9559
|
+
655,
|
|
9560
|
+
657,
|
|
9561
|
+
662,
|
|
9562
|
+
641
|
|
9563
|
+
]
|
|
9564
|
+
}
|
|
9565
|
+
],
|
|
9566
|
+
"sources": [
|
|
9567
|
+
{
|
|
9568
|
+
"fileName": "projects/layout/src/testing/box/box-harness.ts",
|
|
9569
|
+
"line": 6,
|
|
9570
|
+
"character": 13
|
|
9571
|
+
}
|
|
9572
|
+
],
|
|
9573
|
+
"extendedTypes": [
|
|
9574
|
+
{
|
|
9575
|
+
"type": "reference",
|
|
9576
|
+
"name": "SkyComponentHarness"
|
|
9577
|
+
}
|
|
9578
|
+
]
|
|
9579
|
+
},
|
|
9580
|
+
{
|
|
9581
|
+
"id": 682,
|
|
9582
|
+
"name": "SkyBoxHarnessFilters",
|
|
9583
|
+
"kind": 256,
|
|
9584
|
+
"kindString": "Interface",
|
|
9585
|
+
"flags": {},
|
|
9586
|
+
"comment": {
|
|
9587
|
+
"shortText": "A set of criteria that can be used to filter a list of `SkyBoxHarness` instances."
|
|
9588
|
+
},
|
|
9589
|
+
"children": [
|
|
9590
|
+
{
|
|
9591
|
+
"id": 685,
|
|
9592
|
+
"name": "ancestor",
|
|
9593
|
+
"kind": 1024,
|
|
9594
|
+
"kindString": "Property",
|
|
9595
|
+
"flags": {
|
|
9596
|
+
"isOptional": true
|
|
9597
|
+
},
|
|
9598
|
+
"comment": {
|
|
9599
|
+
"shortText": "Only find instances that are nested under an element with the given selector."
|
|
9600
|
+
},
|
|
9601
|
+
"sources": [
|
|
9602
|
+
{
|
|
9603
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
9604
|
+
"line": 28,
|
|
9605
|
+
"character": 4
|
|
9606
|
+
}
|
|
9607
|
+
],
|
|
9608
|
+
"type": {
|
|
9609
|
+
"type": "intrinsic",
|
|
9610
|
+
"name": "string"
|
|
9611
|
+
},
|
|
9612
|
+
"inheritedFrom": {
|
|
9613
|
+
"type": "reference",
|
|
9614
|
+
"name": "SkyHarnessFilters.ancestor"
|
|
9615
|
+
}
|
|
9616
|
+
},
|
|
9617
|
+
{
|
|
9618
|
+
"id": 683,
|
|
9619
|
+
"name": "dataSkyId",
|
|
9620
|
+
"kind": 1024,
|
|
9621
|
+
"kindString": "Property",
|
|
9622
|
+
"flags": {
|
|
9623
|
+
"isOptional": true
|
|
9624
|
+
},
|
|
9625
|
+
"comment": {
|
|
9626
|
+
"shortText": "Only find instances whose `data-sky-id` attribute matches the given value."
|
|
9627
|
+
},
|
|
9628
|
+
"sources": [
|
|
9629
|
+
{
|
|
9630
|
+
"fileName": "libs/components/core/testing/src/shared/harness-filters.ts",
|
|
9631
|
+
"line": 11,
|
|
9632
|
+
"character": 2
|
|
9633
|
+
}
|
|
9634
|
+
],
|
|
9635
|
+
"type": {
|
|
9636
|
+
"type": "union",
|
|
9637
|
+
"types": [
|
|
9638
|
+
{
|
|
9639
|
+
"type": "intrinsic",
|
|
9640
|
+
"name": "string"
|
|
9641
|
+
},
|
|
9642
|
+
{
|
|
9643
|
+
"type": "reference",
|
|
9644
|
+
"qualifiedName": "RegExp",
|
|
9645
|
+
"package": "typescript",
|
|
9646
|
+
"name": "RegExp"
|
|
9647
|
+
}
|
|
9648
|
+
]
|
|
9649
|
+
},
|
|
9650
|
+
"inheritedFrom": {
|
|
9651
|
+
"type": "reference",
|
|
9652
|
+
"name": "SkyHarnessFilters.dataSkyId"
|
|
9653
|
+
}
|
|
9654
|
+
},
|
|
9655
|
+
{
|
|
9656
|
+
"id": 684,
|
|
9657
|
+
"name": "selector",
|
|
9658
|
+
"kind": 1024,
|
|
9659
|
+
"kindString": "Property",
|
|
9660
|
+
"flags": {
|
|
9661
|
+
"isOptional": true
|
|
9662
|
+
},
|
|
9663
|
+
"comment": {
|
|
9664
|
+
"shortText": "Only find instances whose host element matches the given selector."
|
|
9665
|
+
},
|
|
9666
|
+
"sources": [
|
|
9667
|
+
{
|
|
9668
|
+
"fileName": "node_modules/@angular/cdk/testing/index.d.ts",
|
|
9669
|
+
"line": 26,
|
|
9670
|
+
"character": 4
|
|
9671
|
+
}
|
|
9672
|
+
],
|
|
9673
|
+
"type": {
|
|
9674
|
+
"type": "intrinsic",
|
|
9675
|
+
"name": "string"
|
|
9676
|
+
},
|
|
9677
|
+
"inheritedFrom": {
|
|
9678
|
+
"type": "reference",
|
|
9679
|
+
"name": "SkyHarnessFilters.selector"
|
|
9680
|
+
}
|
|
9681
|
+
}
|
|
9682
|
+
],
|
|
9683
|
+
"groups": [
|
|
9684
|
+
{
|
|
9685
|
+
"title": "Properties",
|
|
9686
|
+
"kind": 1024,
|
|
9687
|
+
"children": [
|
|
9688
|
+
685,
|
|
9689
|
+
683,
|
|
9690
|
+
684
|
|
9691
|
+
]
|
|
9692
|
+
}
|
|
9693
|
+
],
|
|
9694
|
+
"sources": [
|
|
9695
|
+
{
|
|
9696
|
+
"fileName": "projects/layout/src/testing/box/box-harness.filters.ts",
|
|
9697
|
+
"line": 7,
|
|
9698
|
+
"character": 17
|
|
9699
|
+
}
|
|
9700
|
+
],
|
|
9701
|
+
"extendedTypes": [
|
|
9702
|
+
{
|
|
9703
|
+
"type": "reference",
|
|
9704
|
+
"name": "SkyHarnessFilters"
|
|
9705
|
+
}
|
|
9706
|
+
]
|
|
9311
9707
|
}
|
|
9312
9708
|
],
|
|
9313
9709
|
"groups": [
|
|
@@ -9390,7 +9786,12 @@
|
|
|
9390
9786
|
{
|
|
9391
9787
|
"fileName": "box-demo.component.html",
|
|
9392
9788
|
"filePath": "/projects/layout/documentation/code-examples/box/basic/box-demo.component.html",
|
|
9393
|
-
"rawContents": "<sky-box>\n <sky-box-header>\n <h2 class=\"sky-font-heading-2\">Box header</h2>\n </sky-box-header>\n <sky-box-controls>\n <sky-dropdown buttonType=\"context-menu\" label=\"Box demo context menu\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button type=\"button\">Action 1</button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button type=\"button\">Action 2</button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </sky-box-controls>\n <sky-box-content>\n <p>Box content</p>\n </sky-box-content>\n</sky-box>\n"
|
|
9789
|
+
"rawContents": "<sky-box data-sky-id=\"box-demo\" [ariaLabel]=\"'boxDemo'\">\n <sky-box-header>\n <h2 class=\"sky-font-heading-2\">Box header</h2>\n </sky-box-header>\n <sky-box-controls>\n <sky-dropdown buttonType=\"context-menu\" label=\"Box demo context menu\">\n <sky-dropdown-menu>\n <sky-dropdown-item>\n <button type=\"button\">Action 1</button>\n </sky-dropdown-item>\n <sky-dropdown-item>\n <button type=\"button\">Action 2</button>\n </sky-dropdown-item>\n </sky-dropdown-menu>\n </sky-dropdown>\n </sky-box-controls>\n <sky-box-content>\n <p>Box content</p>\n </sky-box-content>\n</sky-box>\n"
|
|
9790
|
+
},
|
|
9791
|
+
{
|
|
9792
|
+
"fileName": "box-demo.component.spec.ts",
|
|
9793
|
+
"filePath": "/projects/layout/documentation/code-examples/box/basic/box-demo.component.spec.ts",
|
|
9794
|
+
"rawContents": "import { TestbedHarnessEnvironment } from '@angular/cdk/testing/testbed';\nimport { ComponentFixture, TestBed } from '@angular/core/testing';\nimport { SkyBoxHarness } from '@skyux/layout/testing';\n\nimport { BoxDemoComponent } from './box-demo.component';\nimport { BoxDemoModule } from './box-demo.module';\n\ndescribe('Basic box', async () => {\n async function setupTest(): Promise<{\n boxHarness: SkyBoxHarness;\n fixture: ComponentFixture<BoxDemoComponent>;\n }> {\n const fixture = TestBed.createComponent(BoxDemoComponent);\n const loader = TestbedHarnessEnvironment.loader(fixture);\n const boxHarness = await loader.getHarness(\n SkyBoxHarness.with({\n dataSkyId: 'box-demo',\n })\n );\n\n return { boxHarness, fixture };\n }\n\n beforeEach(() => {\n TestBed.configureTestingModule({\n imports: [BoxDemoModule],\n });\n });\n\n it('should display the correct box', async () => {\n const { boxHarness, fixture } = await setupTest();\n\n fixture.detectChanges();\n\n await expectAsync(boxHarness.getAriaLabel()).toBeResolvedTo('boxDemo');\n });\n});\n"
|
|
9394
9795
|
},
|
|
9395
9796
|
{
|
|
9396
9797
|
"fileName": "box-demo.component.ts",
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm94LWhhcm5lc3MuZmlsdGVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9sYXlvdXQvdGVzdGluZy9zcmMvYm94L2JveC1oYXJuZXNzLmZpbHRlcnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IFNreUhhcm5lc3NGaWx0ZXJzIH0gZnJvbSAnQHNreXV4L2NvcmUvdGVzdGluZyc7XG5cbi8qKlxuICogQSBzZXQgb2YgY3JpdGVyaWEgdGhhdCBjYW4gYmUgdXNlZCB0byBmaWx0ZXIgYSBsaXN0IG9mIGBTa3lCb3hIYXJuZXNzYCBpbnN0YW5jZXMuXG4gKi9cbi8vIGVzbGludC1kaXNhYmxlLW5leHQtbGluZSBAdHlwZXNjcmlwdC1lc2xpbnQvbm8tZW1wdHktaW50ZXJmYWNlXG5leHBvcnQgaW50ZXJmYWNlIFNreUJveEhhcm5lc3NGaWx0ZXJzIGV4dGVuZHMgU2t5SGFybmVzc0ZpbHRlcnMge31cbiJdfQ==
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
var _SkyBoxHarness_getBox;
|
|
2
|
+
import { __classPrivateFieldGet } from "tslib";
|
|
3
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
4
|
+
export class SkyBoxHarness extends SkyComponentHarness {
|
|
5
|
+
constructor() {
|
|
6
|
+
super(...arguments);
|
|
7
|
+
_SkyBoxHarness_getBox.set(this, this.locatorFor('.sky-box'));
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
11
|
+
* `SkyBoxHarness` that meets certain criteria
|
|
12
|
+
*/
|
|
13
|
+
static with(filters) {
|
|
14
|
+
return SkyBoxHarness.getDataSkyIdPredicate(filters);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Gets the aria-label property of the box
|
|
18
|
+
*/
|
|
19
|
+
async getAriaLabel() {
|
|
20
|
+
return (await __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-label');
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Gets the aria-labelledby property of the box
|
|
24
|
+
*/
|
|
25
|
+
async getAriaLabelledby() {
|
|
26
|
+
return (await __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-labelledby');
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Gets the aria-role property of the box
|
|
30
|
+
*/
|
|
31
|
+
async getAriaRole() {
|
|
32
|
+
return (await __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('role');
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
_SkyBoxHarness_getBox = new WeakMap();
|
|
36
|
+
/**
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
SkyBoxHarness.hostSelector = 'sky-box';
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm94LWhhcm5lc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbXBvbmVudHMvbGF5b3V0L3Rlc3Rpbmcvc3JjL2JveC9ib3gtaGFybmVzcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBSTFELE1BQU0sT0FBTyxhQUFjLFNBQVEsbUJBQW1CO0lBQXREOztRQU1FLGdDQUFVLElBQUksQ0FBQyxVQUFVLENBQUMsVUFBVSxDQUFDLEVBQUM7SUFnQ3hDLENBQUM7SUE5QkM7OztPQUdHO0lBQ0ksTUFBTSxDQUFDLElBQUksQ0FDaEIsT0FBNkI7UUFFN0IsT0FBTyxhQUFhLENBQUMscUJBQXFCLENBQUMsT0FBTyxDQUFDLENBQUM7SUFDdEQsQ0FBQztJQUVEOztPQUVHO0lBQ0ksS0FBSyxDQUFDLFlBQVk7UUFDdkIsT0FBTyxDQUFDLE1BQU0sdUJBQUEsSUFBSSw2QkFBUSxNQUFaLElBQUksQ0FBVSxDQUFDLENBQUMsWUFBWSxDQUFDLFlBQVksQ0FBQyx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
export * from './card-fixture';
|
|
3
3
|
export * from './page-summary-fixture';
|
|
4
|
-
|
|
4
|
+
export * from './box/box-harness';
|
|
5
|
+
export * from './box/box-harness.filters';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tcG9uZW50cy9sYXlvdXQvdGVzdGluZy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsZ0JBQWdCLENBQUM7QUFDL0IsY0FBYyx3QkFBd0IsQ0FBQztBQUV2QyxjQUFjLG1CQUFtQixDQUFDO0FBQ2xDLGNBQWMsMkJBQTJCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2FjdGlvbi1idXR0b24tZml4dHVyZSc7XG5leHBvcnQgKiBmcm9tICcuL2NhcmQtZml4dHVyZSc7XG5leHBvcnQgKiBmcm9tICcuL3BhZ2Utc3VtbWFyeS1maXh0dXJlJztcblxuZXhwb3J0ICogZnJvbSAnLi9ib3gvYm94LWhhcm5lc3MnO1xuZXhwb3J0ICogZnJvbSAnLi9ib3gvYm94LWhhcm5lc3MuZmlsdGVycyc7XG4iXX0=
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
1
|
+
import { __classPrivateFieldSet, __classPrivateFieldGet, __awaiter } from 'tslib';
|
|
2
2
|
import { By } from '@angular/platform-browser';
|
|
3
3
|
import { SkyAppTestUtility } from '@skyux-sdk/testing';
|
|
4
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
4
5
|
|
|
5
6
|
var _SkyActionButtonFixture_debugEl;
|
|
6
7
|
/**
|
|
@@ -145,9 +146,53 @@ class SkyPageSummaryFixture {
|
|
|
145
146
|
}
|
|
146
147
|
_SkyPageSummaryFixture_debugEl = new WeakMap();
|
|
147
148
|
|
|
149
|
+
var _SkyBoxHarness_getBox;
|
|
150
|
+
class SkyBoxHarness extends SkyComponentHarness {
|
|
151
|
+
constructor() {
|
|
152
|
+
super(...arguments);
|
|
153
|
+
_SkyBoxHarness_getBox.set(this, this.locatorFor('.sky-box'));
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
157
|
+
* `SkyBoxHarness` that meets certain criteria
|
|
158
|
+
*/
|
|
159
|
+
static with(filters) {
|
|
160
|
+
return SkyBoxHarness.getDataSkyIdPredicate(filters);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Gets the aria-label property of the box
|
|
164
|
+
*/
|
|
165
|
+
getAriaLabel() {
|
|
166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
167
|
+
return (yield __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-label');
|
|
168
|
+
});
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Gets the aria-labelledby property of the box
|
|
172
|
+
*/
|
|
173
|
+
getAriaLabelledby() {
|
|
174
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
175
|
+
return (yield __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-labelledby');
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* Gets the aria-role property of the box
|
|
180
|
+
*/
|
|
181
|
+
getAriaRole() {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
return (yield __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('role');
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
_SkyBoxHarness_getBox = new WeakMap();
|
|
188
|
+
/**
|
|
189
|
+
* @internal
|
|
190
|
+
*/
|
|
191
|
+
SkyBoxHarness.hostSelector = 'sky-box';
|
|
192
|
+
|
|
148
193
|
/**
|
|
149
194
|
* Generated bundle index. Do not edit.
|
|
150
195
|
*/
|
|
151
196
|
|
|
152
|
-
export { SkyActionButtonFixture, SkyCardFixture, SkyPageSummaryFixture };
|
|
197
|
+
export { SkyActionButtonFixture, SkyBoxHarness, SkyCardFixture, SkyPageSummaryFixture };
|
|
153
198
|
//# sourceMappingURL=skyux-layout-testing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-layout-testing.mjs","sources":["../../../../../libs/components/layout/testing/src/action-button-fixture.ts","../../../../../libs/components/layout/testing/src/card-fixture.ts","../../../../../libs/components/layout/testing/src/page-summary-fixture.ts","../../../../../libs/components/layout/testing/src/skyux-layout-testing.ts"],"sourcesContent":["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 action button component.\n * @internal\n */\nexport class SkyActionButtonFixture {\n /**\n * The action button's current header text.\n */\n public get headerText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('.sky-action-button-header'))\n );\n }\n\n /**\n * The action button's current details text.\n */\n public get detailsText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-action-button-details'))\n );\n }\n\n /**\n * The action button's current 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 /* istanbul ignore next */\n return undefined;\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-action-button'\n );\n }\n\n /**\n * Clicks the action button.\n */\n public actionClick(): void {\n this.#debugEl\n .query(By.css('.sky-action-button'))\n .triggerEventHandler('click', {});\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 avatar component.\n * @internal\n */\nexport class SkyCardFixture {\n /**\n * The card's current title.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-title'))\n );\n }\n\n /**\n * The card's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-content'))\n );\n }\n\n /**\n * A flag indicating whether the user can select the card.\n */\n public get selectable(): boolean {\n return !!this.#debugEl.query(By.css('.sky-card-check'));\n }\n\n /**\n * A flag indicating whether the card is currently selected. If the card\n * is not selectable, an error is thrown.\n */\n public get selected(): boolean {\n if (this.selectable) {\n return this.#getCheckInputEl().nativeElement.checked;\n }\n\n throw new Error('The card is not selectable.');\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-card'\n );\n }\n\n /**\n * Selects the card.\n */\n public select(): void {\n if (!this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n /**\n * Deselects the card.\n */\n public deselect(): void {\n if (this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n #clickCheckLabelEl(): void {\n this.#debugEl\n .query(By.css('.sky-card-check label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n #getCheckInputEl(): DebugElement {\n return this.#debugEl.query(\n By.css('.sky-card-check .sky-checkbox-wrapper input')\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 page summary component.\n * @internal\n */\nexport class SkyPageSummaryFixture {\n /**\n * The page summary's current title text.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-title .sky-page-summary-title')\n )\n );\n }\n\n /**\n * The page summary's current subtitle text.\n */\n public get subtitleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-subtitle .sky-page-summary-subtitle')\n )\n );\n }\n\n /**\n * The page summary's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-content .sky-page-summary-content')\n )\n );\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-page-summary'\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;AAGG;MACU,sBAAsB,CAAA;IAuCjC,WAAY,CAAA,OAA8B,EAAE,SAAiB,EAAA;QAF7D,+BAAuB,CAAA,GAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGrB,QAAA,sBAAA,CAAA,IAAI,EAAA,+BAAA,EAAY,iBAAiB,CAAC,uBAAuB,CACvD,OAAO,EACP,SAAS,EACT,mBAAmB,CACpB,MAAA,CAAC;KACH;AA5CD;;AAEG;AACH,IAAA,IAAW,UAAU,GAAA;QACnB,OAAO,iBAAiB,CAAC,OAAO,CAC9B,sBAAA,CAAA,IAAI,uCAAS,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CACzD,CAAC;KACH;AAED;;AAEG;AACH,IAAA,IAAW,WAAW,GAAA;QACpB,OAA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,CAAC,CAC7D,CACF,CAAC;KACH;AAWF,CAAA;;;ACpDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"skyux-layout-testing.mjs","sources":["../../../../../libs/components/layout/testing/src/action-button-fixture.ts","../../../../../libs/components/layout/testing/src/card-fixture.ts","../../../../../libs/components/layout/testing/src/page-summary-fixture.ts","../../../../../libs/components/layout/testing/src/box/box-harness.ts","../../../../../libs/components/layout/testing/src/skyux-layout-testing.ts"],"sourcesContent":["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 action button component.\n * @internal\n */\nexport class SkyActionButtonFixture {\n /**\n * The action button's current header text.\n */\n public get headerText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('.sky-action-button-header'))\n );\n }\n\n /**\n * The action button's current details text.\n */\n public get detailsText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-action-button-details'))\n );\n }\n\n /**\n * The action button's current 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 /* istanbul ignore next */\n return undefined;\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-action-button'\n );\n }\n\n /**\n * Clicks the action button.\n */\n public actionClick(): void {\n this.#debugEl\n .query(By.css('.sky-action-button'))\n .triggerEventHandler('click', {});\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 avatar component.\n * @internal\n */\nexport class SkyCardFixture {\n /**\n * The card's current title.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-title'))\n );\n }\n\n /**\n * The card's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-content'))\n );\n }\n\n /**\n * A flag indicating whether the user can select the card.\n */\n public get selectable(): boolean {\n return !!this.#debugEl.query(By.css('.sky-card-check'));\n }\n\n /**\n * A flag indicating whether the card is currently selected. If the card\n * is not selectable, an error is thrown.\n */\n public get selected(): boolean {\n if (this.selectable) {\n return this.#getCheckInputEl().nativeElement.checked;\n }\n\n throw new Error('The card is not selectable.');\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-card'\n );\n }\n\n /**\n * Selects the card.\n */\n public select(): void {\n if (!this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n /**\n * Deselects the card.\n */\n public deselect(): void {\n if (this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n #clickCheckLabelEl(): void {\n this.#debugEl\n .query(By.css('.sky-card-check label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n #getCheckInputEl(): DebugElement {\n return this.#debugEl.query(\n By.css('.sky-card-check .sky-checkbox-wrapper input')\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 page summary component.\n * @internal\n */\nexport class SkyPageSummaryFixture {\n /**\n * The page summary's current title text.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-title .sky-page-summary-title')\n )\n );\n }\n\n /**\n * The page summary's current subtitle text.\n */\n public get subtitleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-subtitle .sky-page-summary-subtitle')\n )\n );\n }\n\n /**\n * The page summary's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-content .sky-page-summary-content')\n )\n );\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-page-summary'\n );\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyBoxHarnessFilters } from './box-harness.filters';\n\nexport class SkyBoxHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-box';\n\n #getBox = this.locatorFor('.sky-box');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyBoxHarness` that meets certain criteria\n */\n public static with(\n filters: SkyBoxHarnessFilters\n ): HarnessPredicate<SkyBoxHarness> {\n return SkyBoxHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets the aria-label property of the box\n */\n public async getAriaLabel(): Promise<string | null> {\n return (await this.#getBox()).getAttribute('aria-label');\n }\n\n /**\n * Gets the aria-labelledby property of the box\n */\n public async getAriaLabelledby(): Promise<string | null> {\n return (await this.#getBox()).getAttribute('aria-labelledby');\n }\n\n /**\n * Gets the aria-role property of the box\n */\n public async getAriaRole(): Promise<string | null> {\n return (await this.#getBox()).getAttribute('role');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;;;AAGG;MACU,sBAAsB,CAAA;IAuCjC,WAAY,CAAA,OAA8B,EAAE,SAAiB,EAAA;QAF7D,+BAAuB,CAAA,GAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CA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SACpD,CAAA,CAAA;AAAA,KAAA;;;AApCD;;AAEG;AACW,aAAY,CAAA,YAAA,GAAG,SAAS;;ACTxC;;AAEG;;;;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
2
2
|
import { By } from '@angular/platform-browser';
|
|
3
3
|
import { SkyAppTestUtility } from '@skyux-sdk/testing';
|
|
4
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
4
5
|
|
|
5
6
|
var _SkyActionButtonFixture_debugEl;
|
|
6
7
|
/**
|
|
@@ -145,9 +146,47 @@ class SkyPageSummaryFixture {
|
|
|
145
146
|
}
|
|
146
147
|
_SkyPageSummaryFixture_debugEl = new WeakMap();
|
|
147
148
|
|
|
149
|
+
var _SkyBoxHarness_getBox;
|
|
150
|
+
class SkyBoxHarness extends SkyComponentHarness {
|
|
151
|
+
constructor() {
|
|
152
|
+
super(...arguments);
|
|
153
|
+
_SkyBoxHarness_getBox.set(this, this.locatorFor('.sky-box'));
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
157
|
+
* `SkyBoxHarness` that meets certain criteria
|
|
158
|
+
*/
|
|
159
|
+
static with(filters) {
|
|
160
|
+
return SkyBoxHarness.getDataSkyIdPredicate(filters);
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Gets the aria-label property of the box
|
|
164
|
+
*/
|
|
165
|
+
async getAriaLabel() {
|
|
166
|
+
return (await __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-label');
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Gets the aria-labelledby property of the box
|
|
170
|
+
*/
|
|
171
|
+
async getAriaLabelledby() {
|
|
172
|
+
return (await __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('aria-labelledby');
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Gets the aria-role property of the box
|
|
176
|
+
*/
|
|
177
|
+
async getAriaRole() {
|
|
178
|
+
return (await __classPrivateFieldGet(this, _SkyBoxHarness_getBox, "f").call(this)).getAttribute('role');
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
_SkyBoxHarness_getBox = new WeakMap();
|
|
182
|
+
/**
|
|
183
|
+
* @internal
|
|
184
|
+
*/
|
|
185
|
+
SkyBoxHarness.hostSelector = 'sky-box';
|
|
186
|
+
|
|
148
187
|
/**
|
|
149
188
|
* Generated bundle index. Do not edit.
|
|
150
189
|
*/
|
|
151
190
|
|
|
152
|
-
export { SkyActionButtonFixture, SkyCardFixture, SkyPageSummaryFixture };
|
|
191
|
+
export { SkyActionButtonFixture, SkyBoxHarness, SkyCardFixture, SkyPageSummaryFixture };
|
|
153
192
|
//# sourceMappingURL=skyux-layout-testing.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skyux-layout-testing.mjs","sources":["../../../../../libs/components/layout/testing/src/action-button-fixture.ts","../../../../../libs/components/layout/testing/src/card-fixture.ts","../../../../../libs/components/layout/testing/src/page-summary-fixture.ts","../../../../../libs/components/layout/testing/src/skyux-layout-testing.ts"],"sourcesContent":["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 action button component.\n * @internal\n */\nexport class SkyActionButtonFixture {\n /**\n * The action button's current header text.\n */\n public get headerText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('.sky-action-button-header'))\n );\n }\n\n /**\n * The action button's current details text.\n */\n public get detailsText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-action-button-details'))\n );\n }\n\n /**\n * The action button's current 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 /* istanbul ignore next */\n return undefined;\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-action-button'\n );\n }\n\n /**\n * Clicks the action button.\n */\n public actionClick(): void {\n this.#debugEl\n .query(By.css('.sky-action-button'))\n .triggerEventHandler('click', {});\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 avatar component.\n * @internal\n */\nexport class SkyCardFixture {\n /**\n * The card's current title.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-title'))\n );\n }\n\n /**\n * The card's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-content'))\n );\n }\n\n /**\n * A flag indicating whether the user can select the card.\n */\n public get selectable(): boolean {\n return !!this.#debugEl.query(By.css('.sky-card-check'));\n }\n\n /**\n * A flag indicating whether the card is currently selected. If the card\n * is not selectable, an error is thrown.\n */\n public get selected(): boolean {\n if (this.selectable) {\n return this.#getCheckInputEl().nativeElement.checked;\n }\n\n throw new Error('The card is not selectable.');\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-card'\n );\n }\n\n /**\n * Selects the card.\n */\n public select(): void {\n if (!this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n /**\n * Deselects the card.\n */\n public deselect(): void {\n if (this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n #clickCheckLabelEl(): void {\n this.#debugEl\n .query(By.css('.sky-card-check label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n #getCheckInputEl(): DebugElement {\n return this.#debugEl.query(\n By.css('.sky-card-check .sky-checkbox-wrapper input')\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 page summary component.\n * @internal\n */\nexport class SkyPageSummaryFixture {\n /**\n * The page summary's current title text.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-title .sky-page-summary-title')\n )\n );\n }\n\n /**\n * The page summary's current subtitle text.\n */\n public get subtitleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-subtitle .sky-page-summary-subtitle')\n )\n );\n }\n\n /**\n * The page summary's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-content .sky-page-summary-content')\n )\n );\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-page-summary'\n );\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA;;;AAGG;MACU,sBAAsB,CAAA;IAuCjC,WAAY,CAAA,OAA8B,EAAE,SAAiB,EAAA;QAF7D,+BAAuB,CAAA,GAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGrB,QAAA,sBAAA,CAAA,IAAI,EAAA,+BAAA,EAAY,iBAAiB,CAAC,uBAAuB,CACvD,OAAO,EACP,SAAS,EACT,mBAAmB,CACpB,MAAA,CAAC;KACH;AA5CD;;AAEG;AACH,IAAA,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,CAAA,IAAI,sCAAS,CAAC,KAAK,CACjB,EAAE,CAAC,GAAG,CAAC,sDAAsD,CAAC,CAC/D,CACF,CAAC;KACH;AAED;;AAEG;AACH,IAAA,IAAW,WAAW,GAAA;AACpB,QAAA,OAAO,iBAAiB,CAAC,OAAO,CAC9B,sBAAA,CAAA,IAAI,sCAAS,CAAC,KAAK,CACjB,EAAE,CAAC,GAAG,CAAC,oDAAoD,CAAC,CAC7D,CACF,CAAC;KACH;AAWF,CAAA;;;ACpDD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"skyux-layout-testing.mjs","sources":["../../../../../libs/components/layout/testing/src/action-button-fixture.ts","../../../../../libs/components/layout/testing/src/card-fixture.ts","../../../../../libs/components/layout/testing/src/page-summary-fixture.ts","../../../../../libs/components/layout/testing/src/box/box-harness.ts","../../../../../libs/components/layout/testing/src/skyux-layout-testing.ts"],"sourcesContent":["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 action button component.\n * @internal\n */\nexport class SkyActionButtonFixture {\n /**\n * The action button's current header text.\n */\n public get headerText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('.sky-action-button-header'))\n );\n }\n\n /**\n * The action button's current details text.\n */\n public get detailsText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-action-button-details'))\n );\n }\n\n /**\n * The action button's current 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 /* istanbul ignore next */\n return undefined;\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-action-button'\n );\n }\n\n /**\n * Clicks the action button.\n */\n public actionClick(): void {\n this.#debugEl\n .query(By.css('.sky-action-button'))\n .triggerEventHandler('click', {});\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 avatar component.\n * @internal\n */\nexport class SkyCardFixture {\n /**\n * The card's current title.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-title'))\n );\n }\n\n /**\n * The card's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(By.css('sky-card-content'))\n );\n }\n\n /**\n * A flag indicating whether the user can select the card.\n */\n public get selectable(): boolean {\n return !!this.#debugEl.query(By.css('.sky-card-check'));\n }\n\n /**\n * A flag indicating whether the card is currently selected. If the card\n * is not selectable, an error is thrown.\n */\n public get selected(): boolean {\n if (this.selectable) {\n return this.#getCheckInputEl().nativeElement.checked;\n }\n\n throw new Error('The card is not selectable.');\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-card'\n );\n }\n\n /**\n * Selects the card.\n */\n public select(): void {\n if (!this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n /**\n * Deselects the card.\n */\n public deselect(): void {\n if (this.selected) {\n this.#clickCheckLabelEl();\n }\n }\n\n #clickCheckLabelEl(): void {\n this.#debugEl\n .query(By.css('.sky-card-check label.sky-checkbox-wrapper'))\n .nativeElement.click();\n }\n\n #getCheckInputEl(): DebugElement {\n return this.#debugEl.query(\n By.css('.sky-card-check .sky-checkbox-wrapper input')\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 page summary component.\n * @internal\n */\nexport class SkyPageSummaryFixture {\n /**\n * The page summary's current title text.\n */\n public get titleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-title .sky-page-summary-title')\n )\n );\n }\n\n /**\n * The page summary's current subtitle text.\n */\n public get subtitleText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-subtitle .sky-page-summary-subtitle')\n )\n );\n }\n\n /**\n * The page summary's current content text.\n */\n public get contentText(): string | undefined {\n return SkyAppTestUtility.getText(\n this.#debugEl.query(\n By.css('sky-page-summary-content .sky-page-summary-content')\n )\n );\n }\n\n #debugEl: DebugElement;\n\n constructor(fixture: ComponentFixture<any>, skyTestId: string) {\n this.#debugEl = SkyAppTestUtility.getDebugElementByTestId(\n fixture,\n skyTestId,\n 'sky-page-summary'\n );\n }\n}\n","import { HarnessPredicate } from '@angular/cdk/testing';\nimport { SkyComponentHarness } from '@skyux/core/testing';\n\nimport { SkyBoxHarnessFilters } from './box-harness.filters';\n\nexport class SkyBoxHarness extends SkyComponentHarness {\n /**\n * @internal\n */\n public static hostSelector = 'sky-box';\n\n #getBox = this.locatorFor('.sky-box');\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a\n * `SkyBoxHarness` that meets certain criteria\n */\n public static with(\n filters: SkyBoxHarnessFilters\n ): HarnessPredicate<SkyBoxHarness> {\n return SkyBoxHarness.getDataSkyIdPredicate(filters);\n }\n\n /**\n * Gets the aria-label property of the box\n */\n public async getAriaLabel(): Promise<string | null> {\n return (await this.#getBox()).getAttribute('aria-label');\n }\n\n /**\n * Gets the aria-labelledby property of the box\n */\n public async getAriaLabelledby(): Promise<string | null> {\n return (await this.#getBox()).getAttribute('aria-labelledby');\n }\n\n /**\n * Gets the aria-role property of the box\n */\n public async getAriaRole(): Promise<string | null> {\n return (await this.#getBox()).getAttribute('role');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;;;AAGG;MACU,sBAAsB,CAAA;IAuCjC,WAAY,CAAA,OAA8B,EAAE,SAAiB,EAAA;QAF7D,+BAAuB,CAAA,GAAA,CAAA,IAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAGrB,QAAA,sBAAA,CAAA,IAAI,EAAA,+BAAA,EAAY,iBAAiB,CAAC,uBAAuB,CACvD,OAAO,EACP,SAAS,EACT,mBAAmB,CACpB,MAAA,CAAC;KACH;AA5CD;;AAEG;AACH,IAAA,IAAW,UAAU,GAAA;AACnB,QAAA,OAAO,iBAAiB,CAAC,OAAO,CAC9B,sBAAA,CAAA,IAAI,uCAAS,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CACzD,CAAC;KACH;AAED;;AAEG;AACH,IAAA,IAAW,WAAW,GAAA;AACpB,QAAA,OAAO,iBAAiB,CAAC,OAAO,CAC9B,sBAAA,CAAA,IAAI,uCAAS,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC,CACzD,CAAC;KACH;AAED;;AAEG;AACH,IAAA,IAAW,QAAQ,GAAA;AACjB,QAAA,MAAM,SAAS,GAAG,sBAAA,CAAA,IAAI,EAAA,+BAAA,EAAA,GAAA,CAAS,CAAC,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,CAAC,aAAa;AACxE,aAAA,SAAS,CAAC;AAEb,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YAChD,MAAM,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAE9B,IAAI,GAAG,CAAC,OAAO,CA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AiB,GAAA;AAC5B,QAAA,OAAO,CAAC,MAAM,sBAAA,CAAA,IAAI,6BAAQ,CAAZ,IAAA,CAAA,IAAI,CAAU,EAAE,YAAY,CAAC,iBAAiB,CAAC,CAAC;KAC/D;AAED;;AAEG;AACI,IAAA,MAAM,WAAW,GAAA;AACtB,QAAA,OAAO,CAAC,MAAM,sBAAA,CAAA,IAAI,6BAAQ,CAAZ,IAAA,CAAA,IAAI,CAAU,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;KACpD;;;AApCD;;AAEG;AACW,aAAY,CAAA,YAAA,GAAG,SAAS;;ACTxC;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/layout",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.21.1",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"blackbaud",
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@angular/forms": "^14.2.11",
|
|
48
48
|
"@angular/platform-browser": "^14.2.11",
|
|
49
49
|
"@angular/router": "^14.2.11",
|
|
50
|
-
"@skyux-sdk/testing": "7.
|
|
51
|
-
"@skyux/core": "7.
|
|
52
|
-
"@skyux/forms": "7.
|
|
53
|
-
"@skyux/i18n": "7.
|
|
54
|
-
"@skyux/indicators": "7.
|
|
55
|
-
"@skyux/modals": "7.
|
|
56
|
-
"@skyux/router": "7.
|
|
57
|
-
"@skyux/theme": "7.
|
|
50
|
+
"@skyux-sdk/testing": "7.21.1",
|
|
51
|
+
"@skyux/core": "7.21.1",
|
|
52
|
+
"@skyux/forms": "7.21.1",
|
|
53
|
+
"@skyux/i18n": "7.21.1",
|
|
54
|
+
"@skyux/indicators": "7.21.1",
|
|
55
|
+
"@skyux/modals": "7.21.1",
|
|
56
|
+
"@skyux/router": "7.21.1",
|
|
57
|
+
"@skyux/theme": "7.21.1"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"tslib": "^2.3.1"
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { SkyComponentHarness } from '@skyux/core/testing';
|
|
3
|
+
import { SkyBoxHarnessFilters } from './box-harness.filters';
|
|
4
|
+
export declare class SkyBoxHarness extends SkyComponentHarness {
|
|
5
|
+
#private;
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
*/
|
|
9
|
+
static hostSelector: string;
|
|
10
|
+
/**
|
|
11
|
+
* Gets a `HarnessPredicate` that can be used to search for a
|
|
12
|
+
* `SkyBoxHarness` that meets certain criteria
|
|
13
|
+
*/
|
|
14
|
+
static with(filters: SkyBoxHarnessFilters): HarnessPredicate<SkyBoxHarness>;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the aria-label property of the box
|
|
17
|
+
*/
|
|
18
|
+
getAriaLabel(): Promise<string | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Gets the aria-labelledby property of the box
|
|
21
|
+
*/
|
|
22
|
+
getAriaLabelledby(): Promise<string | null>;
|
|
23
|
+
/**
|
|
24
|
+
* Gets the aria-role property of the box
|
|
25
|
+
*/
|
|
26
|
+
getAriaRole(): Promise<string | null>;
|
|
27
|
+
}
|