@skyux/progress-indicator 5.0.3 → 5.5.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/README.md +6 -4
- package/documentation.json +123 -14
- package/esm2015/index.js +18 -0
- package/esm2015/index.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js +74 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js +223 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js +59 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js.map +1 -0
- package/esm2015/{modules → lib/modules}/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js +3 -2
- package/esm2015/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js.map +1 -0
- package/esm2015/{modules → lib/modules}/progress-indicator/progress-indicator-title/progress-indicator-title.component.js +1 -1
- package/esm2015/lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js +317 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js +65 -0
- package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-args.js +2 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-args.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js +14 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-change.js +2 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-change.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.js +2 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-item-status.js +20 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-item-status.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message-type.js +28 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message-type.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message.js +2 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-mode.js +16 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-mode.js.map +1 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.js +2 -0
- package/esm2015/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.js.map +1 -0
- package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js +50 -0
- package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js.map +1 -0
- package/esm2015/skyux-progress-indicator.js +2 -2
- package/esm2015/skyux-progress-indicator.js.map +1 -0
- package/fesm2015/skyux-progress-indicator.js +1 -1
- package/fesm2015/skyux-progress-indicator.js.map +1 -1
- package/index.d.ts +15 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator-item/progress-indicator-item.component.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator-title/progress-indicator-title.component.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator.component.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/progress-indicator.module.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-action-click-args.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-action-click-progress-handler.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-change.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-display-mode-type.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-item-status.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-message-type.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-message.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-mode.d.ts +0 -0
- package/{modules → lib/modules}/progress-indicator/types/progress-indicator-nav-button-type.d.ts +0 -0
- package/{modules → lib/modules}/shared/sky-progress-indicator-resources.module.d.ts +0 -0
- package/package.json +18 -4
- package/skyux-progress-indicator.d.ts +1 -1
- package/LICENSE +0 -21
- package/esm2015/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js +0 -74
- package/esm2015/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js +0 -222
- package/esm2015/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js +0 -58
- package/esm2015/modules/progress-indicator/progress-indicator.component.js +0 -316
- package/esm2015/modules/progress-indicator/progress-indicator.module.js +0 -65
- package/esm2015/modules/progress-indicator/types/progress-indicator-action-click-args.js +0 -2
- package/esm2015/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js +0 -14
- package/esm2015/modules/progress-indicator/types/progress-indicator-change.js +0 -2
- package/esm2015/modules/progress-indicator/types/progress-indicator-display-mode-type.js +0 -2
- package/esm2015/modules/progress-indicator/types/progress-indicator-item-status.js +0 -20
- package/esm2015/modules/progress-indicator/types/progress-indicator-message-type.js +0 -28
- package/esm2015/modules/progress-indicator/types/progress-indicator-message.js +0 -2
- package/esm2015/modules/progress-indicator/types/progress-indicator-mode.js +0 -16
- package/esm2015/modules/progress-indicator/types/progress-indicator-nav-button-type.js +0 -2
- package/esm2015/modules/shared/sky-progress-indicator-resources.module.js +0 -50
- package/esm2015/public-api.js +0 -18
- package/public-api.d.ts +0 -15
package/README.md
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
#
|
|
1
|
+
# progress-indicator
|
|
2
2
|
|
|
3
|
-
[
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
This library was generated with [Nx](https://nx.dev).
|
|
4
|
+
|
|
5
|
+
## Running unit tests
|
|
6
|
+
|
|
7
|
+
Run `nx test progress-indicator` to execute the unit tests.
|
package/documentation.json
CHANGED
|
@@ -285,6 +285,8 @@
|
|
|
285
285
|
},
|
|
286
286
|
"type": {
|
|
287
287
|
"type": "reference",
|
|
288
|
+
"qualifiedName": "Function",
|
|
289
|
+
"package": "typescript",
|
|
288
290
|
"name": "Function"
|
|
289
291
|
}
|
|
290
292
|
}
|
|
@@ -308,6 +310,8 @@
|
|
|
308
310
|
},
|
|
309
311
|
"type": {
|
|
310
312
|
"type": "reference",
|
|
313
|
+
"qualifiedName": "Function",
|
|
314
|
+
"package": "typescript",
|
|
311
315
|
"name": "Function"
|
|
312
316
|
}
|
|
313
317
|
}
|
|
@@ -347,6 +351,8 @@
|
|
|
347
351
|
"name": "NgModule",
|
|
348
352
|
"type": {
|
|
349
353
|
"type": "reference",
|
|
354
|
+
"qualifiedName": "NgModuleDecorator",
|
|
355
|
+
"package": "@angular/core",
|
|
350
356
|
"name": "NgModule"
|
|
351
357
|
},
|
|
352
358
|
"arguments": {
|
|
@@ -408,6 +414,8 @@
|
|
|
408
414
|
"name": "Component",
|
|
409
415
|
"type": {
|
|
410
416
|
"type": "reference",
|
|
417
|
+
"qualifiedName": "ComponentDecorator",
|
|
418
|
+
"package": "@angular/core",
|
|
411
419
|
"name": "Component"
|
|
412
420
|
},
|
|
413
421
|
"arguments": {
|
|
@@ -445,6 +453,8 @@
|
|
|
445
453
|
"flags": {},
|
|
446
454
|
"type": {
|
|
447
455
|
"type": "reference",
|
|
456
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
457
|
+
"package": "@angular/core",
|
|
448
458
|
"name": "ChangeDetectorRef"
|
|
449
459
|
}
|
|
450
460
|
}
|
|
@@ -542,6 +552,8 @@
|
|
|
542
552
|
"name": "Input",
|
|
543
553
|
"type": {
|
|
544
554
|
"type": "reference",
|
|
555
|
+
"qualifiedName": "InputDecorator",
|
|
556
|
+
"package": "@angular/core",
|
|
545
557
|
"name": "Input"
|
|
546
558
|
},
|
|
547
559
|
"arguments": {}
|
|
@@ -801,6 +813,8 @@
|
|
|
801
813
|
"name": "Component",
|
|
802
814
|
"type": {
|
|
803
815
|
"type": "reference",
|
|
816
|
+
"qualifiedName": "ComponentDecorator",
|
|
817
|
+
"package": "@angular/core",
|
|
804
818
|
"name": "Component"
|
|
805
819
|
},
|
|
806
820
|
"arguments": {
|
|
@@ -838,6 +852,8 @@
|
|
|
838
852
|
"flags": {},
|
|
839
853
|
"type": {
|
|
840
854
|
"type": "reference",
|
|
855
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
856
|
+
"package": "@angular/core",
|
|
841
857
|
"name": "ChangeDetectorRef"
|
|
842
858
|
}
|
|
843
859
|
},
|
|
@@ -877,6 +893,8 @@
|
|
|
877
893
|
"name": "Output",
|
|
878
894
|
"type": {
|
|
879
895
|
"type": "reference",
|
|
896
|
+
"qualifiedName": "OutputDecorator",
|
|
897
|
+
"package": "@angular/core",
|
|
880
898
|
"name": "Output"
|
|
881
899
|
},
|
|
882
900
|
"arguments": {}
|
|
@@ -898,6 +916,8 @@
|
|
|
898
916
|
"name": "SkyProgressIndicatorChange"
|
|
899
917
|
}
|
|
900
918
|
],
|
|
919
|
+
"qualifiedName": "EventEmitter",
|
|
920
|
+
"package": "@angular/core",
|
|
901
921
|
"name": "EventEmitter"
|
|
902
922
|
},
|
|
903
923
|
"defaultValue": "..."
|
|
@@ -944,6 +964,8 @@
|
|
|
944
964
|
"name": "Input",
|
|
945
965
|
"type": {
|
|
946
966
|
"type": "reference",
|
|
967
|
+
"qualifiedName": "InputDecorator",
|
|
968
|
+
"package": "@angular/core",
|
|
947
969
|
"name": "Input"
|
|
948
970
|
},
|
|
949
971
|
"arguments": {}
|
|
@@ -964,7 +986,13 @@
|
|
|
964
986
|
"kindString": "Get signature",
|
|
965
987
|
"flags": {},
|
|
966
988
|
"comment": {
|
|
967
|
-
"shortText": "Specifies whether to display the progress indicator vertically or horizontally.\nFor [passive progress indicators](https://developer.blackbaud.com/skyux-progress-indicator/docs/passive-indicator)\nand [waterfall progress indicators](https://developer.blackbaud.com/skyux/components/progress-indicator/waterfall-progress-indicator),\nuse the vertical display mode. For [modal wizards](https://developer.blackbaud.com/skyux/components/wizard),\nuse the horizontal display mode."
|
|
989
|
+
"shortText": "Specifies whether to display the progress indicator vertically or horizontally.\nFor [passive progress indicators](https://developer.blackbaud.com/skyux-progress-indicator/docs/passive-indicator)\nand [waterfall progress indicators](https://developer.blackbaud.com/skyux/components/progress-indicator/waterfall-progress-indicator),\nuse the vertical display mode. For [modal wizards](https://developer.blackbaud.com/skyux/components/wizard),\nuse the horizontal display mode.",
|
|
990
|
+
"tags": [
|
|
991
|
+
{
|
|
992
|
+
"tag": "default",
|
|
993
|
+
"text": "\"vertical\"\n"
|
|
994
|
+
}
|
|
995
|
+
]
|
|
968
996
|
},
|
|
969
997
|
"type": {
|
|
970
998
|
"type": "reference",
|
|
@@ -1078,6 +1106,8 @@
|
|
|
1078
1106
|
"name": "Input",
|
|
1079
1107
|
"type": {
|
|
1080
1108
|
"type": "reference",
|
|
1109
|
+
"qualifiedName": "InputDecorator",
|
|
1110
|
+
"package": "@angular/core",
|
|
1081
1111
|
"name": "Input"
|
|
1082
1112
|
},
|
|
1083
1113
|
"arguments": {}
|
|
@@ -1098,7 +1128,13 @@
|
|
|
1098
1128
|
"kindString": "Get signature",
|
|
1099
1129
|
"flags": {},
|
|
1100
1130
|
"comment": {
|
|
1101
|
-
"shortText": "Indicates whether the progress indicator is passive. Passive progress indicators inform users of\nprogress that concerns them but that they are not responsible for, and they must use the vertical display mode."
|
|
1131
|
+
"shortText": "Indicates whether the progress indicator is passive. Passive progress indicators inform users of\nprogress that concerns them but that they are not responsible for, and they must use the vertical display mode.",
|
|
1132
|
+
"tags": [
|
|
1133
|
+
{
|
|
1134
|
+
"tag": "default",
|
|
1135
|
+
"text": "false\n"
|
|
1136
|
+
}
|
|
1137
|
+
]
|
|
1102
1138
|
},
|
|
1103
1139
|
"type": {
|
|
1104
1140
|
"type": "intrinsic",
|
|
@@ -1188,6 +1224,8 @@
|
|
|
1188
1224
|
"name": "Input",
|
|
1189
1225
|
"type": {
|
|
1190
1226
|
"type": "reference",
|
|
1227
|
+
"qualifiedName": "InputDecorator",
|
|
1228
|
+
"package": "@angular/core",
|
|
1191
1229
|
"name": "Input"
|
|
1192
1230
|
},
|
|
1193
1231
|
"arguments": {}
|
|
@@ -1236,6 +1274,8 @@
|
|
|
1236
1274
|
]
|
|
1237
1275
|
}
|
|
1238
1276
|
],
|
|
1277
|
+
"qualifiedName": "Subject",
|
|
1278
|
+
"package": "rxjs",
|
|
1239
1279
|
"name": "Subject"
|
|
1240
1280
|
}
|
|
1241
1281
|
}
|
|
@@ -1260,6 +1300,8 @@
|
|
|
1260
1300
|
"name": "Input",
|
|
1261
1301
|
"type": {
|
|
1262
1302
|
"type": "reference",
|
|
1303
|
+
"qualifiedName": "InputDecorator",
|
|
1304
|
+
"package": "@angular/core",
|
|
1263
1305
|
"name": "Input"
|
|
1264
1306
|
},
|
|
1265
1307
|
"arguments": {}
|
|
@@ -1522,14 +1564,20 @@
|
|
|
1522
1564
|
"implementedTypes": [
|
|
1523
1565
|
{
|
|
1524
1566
|
"type": "reference",
|
|
1567
|
+
"qualifiedName": "OnInit",
|
|
1568
|
+
"package": "@angular/core",
|
|
1525
1569
|
"name": "OnInit"
|
|
1526
1570
|
},
|
|
1527
1571
|
{
|
|
1528
1572
|
"type": "reference",
|
|
1573
|
+
"qualifiedName": "AfterContentInit",
|
|
1574
|
+
"package": "@angular/core",
|
|
1529
1575
|
"name": "AfterContentInit"
|
|
1530
1576
|
},
|
|
1531
1577
|
{
|
|
1532
1578
|
"type": "reference",
|
|
1579
|
+
"qualifiedName": "OnDestroy",
|
|
1580
|
+
"package": "@angular/core",
|
|
1533
1581
|
"name": "OnDestroy"
|
|
1534
1582
|
}
|
|
1535
1583
|
]
|
|
@@ -1548,6 +1596,8 @@
|
|
|
1548
1596
|
"name": "Component",
|
|
1549
1597
|
"type": {
|
|
1550
1598
|
"type": "reference",
|
|
1599
|
+
"qualifiedName": "ComponentDecorator",
|
|
1600
|
+
"package": "@angular/core",
|
|
1551
1601
|
"name": "Component"
|
|
1552
1602
|
},
|
|
1553
1603
|
"arguments": {
|
|
@@ -1585,6 +1635,8 @@
|
|
|
1585
1635
|
"flags": {},
|
|
1586
1636
|
"type": {
|
|
1587
1637
|
"type": "reference",
|
|
1638
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
1639
|
+
"package": "@angular/core",
|
|
1588
1640
|
"name": "ChangeDetectorRef"
|
|
1589
1641
|
}
|
|
1590
1642
|
},
|
|
@@ -1599,6 +1651,8 @@
|
|
|
1599
1651
|
"name": "Optional",
|
|
1600
1652
|
"type": {
|
|
1601
1653
|
"type": "reference",
|
|
1654
|
+
"qualifiedName": "OptionalDecorator",
|
|
1655
|
+
"package": "@angular/core",
|
|
1602
1656
|
"name": "Optional"
|
|
1603
1657
|
},
|
|
1604
1658
|
"arguments": {}
|
|
@@ -1635,6 +1689,8 @@
|
|
|
1635
1689
|
"name": "Output",
|
|
1636
1690
|
"type": {
|
|
1637
1691
|
"type": "reference",
|
|
1692
|
+
"qualifiedName": "OutputDecorator",
|
|
1693
|
+
"package": "@angular/core",
|
|
1638
1694
|
"name": "Output"
|
|
1639
1695
|
},
|
|
1640
1696
|
"arguments": {}
|
|
@@ -1656,6 +1712,8 @@
|
|
|
1656
1712
|
"name": "SkyProgressIndicatorActionClickArgs"
|
|
1657
1713
|
}
|
|
1658
1714
|
],
|
|
1715
|
+
"qualifiedName": "EventEmitter",
|
|
1716
|
+
"package": "@angular/core",
|
|
1659
1717
|
"name": "EventEmitter"
|
|
1660
1718
|
},
|
|
1661
1719
|
"defaultValue": "..."
|
|
@@ -1682,6 +1740,8 @@
|
|
|
1682
1740
|
"name": "Input",
|
|
1683
1741
|
"type": {
|
|
1684
1742
|
"type": "reference",
|
|
1743
|
+
"qualifiedName": "InputDecorator",
|
|
1744
|
+
"package": "@angular/core",
|
|
1685
1745
|
"name": "Input"
|
|
1686
1746
|
},
|
|
1687
1747
|
"arguments": {}
|
|
@@ -1741,6 +1801,8 @@
|
|
|
1741
1801
|
"name": "Input",
|
|
1742
1802
|
"type": {
|
|
1743
1803
|
"type": "reference",
|
|
1804
|
+
"qualifiedName": "InputDecorator",
|
|
1805
|
+
"package": "@angular/core",
|
|
1744
1806
|
"name": "Input"
|
|
1745
1807
|
},
|
|
1746
1808
|
"arguments": {}
|
|
@@ -1761,7 +1823,13 @@
|
|
|
1761
1823
|
"kindString": "Get signature",
|
|
1762
1824
|
"flags": {},
|
|
1763
1825
|
"comment": {
|
|
1764
|
-
"shortText": "Specifies the type of nav button to include.\nThe valid options are `\"finish\"`, `\"next\"`, `\"previous\"`, and `\"reset\"`."
|
|
1826
|
+
"shortText": "Specifies the type of nav button to include.\nThe valid options are `\"finish\"`, `\"next\"`, `\"previous\"`, and `\"reset\"`.",
|
|
1827
|
+
"tags": [
|
|
1828
|
+
{
|
|
1829
|
+
"tag": "default",
|
|
1830
|
+
"text": "\"next\"\n"
|
|
1831
|
+
}
|
|
1832
|
+
]
|
|
1765
1833
|
},
|
|
1766
1834
|
"type": {
|
|
1767
1835
|
"type": "reference",
|
|
@@ -1849,6 +1917,8 @@
|
|
|
1849
1917
|
"name": "Input",
|
|
1850
1918
|
"type": {
|
|
1851
1919
|
"type": "reference",
|
|
1920
|
+
"qualifiedName": "InputDecorator",
|
|
1921
|
+
"package": "@angular/core",
|
|
1852
1922
|
"name": "Input"
|
|
1853
1923
|
},
|
|
1854
1924
|
"arguments": {}
|
|
@@ -1869,7 +1939,13 @@
|
|
|
1869
1939
|
"kindString": "Get signature",
|
|
1870
1940
|
"flags": {},
|
|
1871
1941
|
"comment": {
|
|
1872
|
-
"shortText": "Indicates whether to disable the nav button."
|
|
1942
|
+
"shortText": "Indicates whether to disable the nav button.",
|
|
1943
|
+
"tags": [
|
|
1944
|
+
{
|
|
1945
|
+
"tag": "default",
|
|
1946
|
+
"text": "false\n"
|
|
1947
|
+
}
|
|
1948
|
+
]
|
|
1873
1949
|
},
|
|
1874
1950
|
"type": {
|
|
1875
1951
|
"type": "intrinsic",
|
|
@@ -1981,6 +2057,8 @@
|
|
|
1981
2057
|
"name": "Input",
|
|
1982
2058
|
"type": {
|
|
1983
2059
|
"type": "reference",
|
|
2060
|
+
"qualifiedName": "InputDecorator",
|
|
2061
|
+
"package": "@angular/core",
|
|
1984
2062
|
"name": "Input"
|
|
1985
2063
|
},
|
|
1986
2064
|
"arguments": {}
|
|
@@ -2001,7 +2079,13 @@
|
|
|
2001
2079
|
"kindString": "Get signature",
|
|
2002
2080
|
"flags": {},
|
|
2003
2081
|
"comment": {
|
|
2004
|
-
"shortText": "Specifies the progress indicator component to associate with the nav button."
|
|
2082
|
+
"shortText": "Specifies the progress indicator component to associate with the nav button.",
|
|
2083
|
+
"tags": [
|
|
2084
|
+
{
|
|
2085
|
+
"tag": "required",
|
|
2086
|
+
"text": "\n"
|
|
2087
|
+
}
|
|
2088
|
+
]
|
|
2005
2089
|
},
|
|
2006
2090
|
"type": {
|
|
2007
2091
|
"type": "reference",
|
|
@@ -2152,6 +2236,8 @@
|
|
|
2152
2236
|
"flags": {},
|
|
2153
2237
|
"type": {
|
|
2154
2238
|
"type": "reference",
|
|
2239
|
+
"qualifiedName": "MouseEvent",
|
|
2240
|
+
"package": "typescript",
|
|
2155
2241
|
"name": "MouseEvent"
|
|
2156
2242
|
}
|
|
2157
2243
|
}
|
|
@@ -2212,10 +2298,14 @@
|
|
|
2212
2298
|
"implementedTypes": [
|
|
2213
2299
|
{
|
|
2214
2300
|
"type": "reference",
|
|
2301
|
+
"qualifiedName": "AfterViewInit",
|
|
2302
|
+
"package": "@angular/core",
|
|
2215
2303
|
"name": "AfterViewInit"
|
|
2216
2304
|
},
|
|
2217
2305
|
{
|
|
2218
2306
|
"type": "reference",
|
|
2307
|
+
"qualifiedName": "OnDestroy",
|
|
2308
|
+
"package": "@angular/core",
|
|
2219
2309
|
"name": "OnDestroy"
|
|
2220
2310
|
}
|
|
2221
2311
|
]
|
|
@@ -2234,6 +2324,8 @@
|
|
|
2234
2324
|
"name": "Component",
|
|
2235
2325
|
"type": {
|
|
2236
2326
|
"type": "reference",
|
|
2327
|
+
"qualifiedName": "ComponentDecorator",
|
|
2328
|
+
"package": "@angular/core",
|
|
2237
2329
|
"name": "Component"
|
|
2238
2330
|
},
|
|
2239
2331
|
"arguments": {
|
|
@@ -2271,6 +2363,8 @@
|
|
|
2271
2363
|
"flags": {},
|
|
2272
2364
|
"type": {
|
|
2273
2365
|
"type": "reference",
|
|
2366
|
+
"qualifiedName": "ChangeDetectorRef",
|
|
2367
|
+
"package": "@angular/core",
|
|
2274
2368
|
"name": "ChangeDetectorRef"
|
|
2275
2369
|
}
|
|
2276
2370
|
}
|
|
@@ -2305,6 +2399,8 @@
|
|
|
2305
2399
|
"name": "Input",
|
|
2306
2400
|
"type": {
|
|
2307
2401
|
"type": "reference",
|
|
2402
|
+
"qualifiedName": "InputDecorator",
|
|
2403
|
+
"package": "@angular/core",
|
|
2308
2404
|
"name": "Input"
|
|
2309
2405
|
},
|
|
2310
2406
|
"arguments": {}
|
|
@@ -2339,6 +2435,8 @@
|
|
|
2339
2435
|
"name": "Output",
|
|
2340
2436
|
"type": {
|
|
2341
2437
|
"type": "reference",
|
|
2438
|
+
"qualifiedName": "OutputDecorator",
|
|
2439
|
+
"package": "@angular/core",
|
|
2342
2440
|
"name": "Output"
|
|
2343
2441
|
},
|
|
2344
2442
|
"arguments": {}
|
|
@@ -2359,6 +2457,8 @@
|
|
|
2359
2457
|
"name": "any"
|
|
2360
2458
|
}
|
|
2361
2459
|
],
|
|
2460
|
+
"qualifiedName": "EventEmitter",
|
|
2461
|
+
"package": "@angular/core",
|
|
2362
2462
|
"name": "EventEmitter"
|
|
2363
2463
|
},
|
|
2364
2464
|
"defaultValue": "..."
|
|
@@ -2376,6 +2476,8 @@
|
|
|
2376
2476
|
"name": "Input",
|
|
2377
2477
|
"type": {
|
|
2378
2478
|
"type": "reference",
|
|
2479
|
+
"qualifiedName": "InputDecorator",
|
|
2480
|
+
"package": "@angular/core",
|
|
2379
2481
|
"name": "Input"
|
|
2380
2482
|
},
|
|
2381
2483
|
"arguments": {}
|
|
@@ -2396,7 +2498,13 @@
|
|
|
2396
2498
|
"kindString": "Get signature",
|
|
2397
2499
|
"flags": {},
|
|
2398
2500
|
"comment": {
|
|
2399
|
-
"shortText": "Indicates whether to disable the reset button."
|
|
2501
|
+
"shortText": "Indicates whether to disable the reset button.",
|
|
2502
|
+
"tags": [
|
|
2503
|
+
{
|
|
2504
|
+
"tag": "default",
|
|
2505
|
+
"text": "false\n"
|
|
2506
|
+
}
|
|
2507
|
+
]
|
|
2400
2508
|
},
|
|
2401
2509
|
"type": {
|
|
2402
2510
|
"type": "intrinsic",
|
|
@@ -2549,6 +2657,8 @@
|
|
|
2549
2657
|
"implementedTypes": [
|
|
2550
2658
|
{
|
|
2551
2659
|
"type": "reference",
|
|
2660
|
+
"qualifiedName": "OnDestroy",
|
|
2661
|
+
"package": "@angular/core",
|
|
2552
2662
|
"name": "OnDestroy"
|
|
2553
2663
|
}
|
|
2554
2664
|
]
|
|
@@ -2567,6 +2677,8 @@
|
|
|
2567
2677
|
"name": "Component",
|
|
2568
2678
|
"type": {
|
|
2569
2679
|
"type": "reference",
|
|
2680
|
+
"qualifiedName": "ComponentDecorator",
|
|
2681
|
+
"package": "@angular/core",
|
|
2570
2682
|
"name": "Component"
|
|
2571
2683
|
},
|
|
2572
2684
|
"arguments": {
|
|
@@ -2642,6 +2754,8 @@
|
|
|
2642
2754
|
],
|
|
2643
2755
|
"type": {
|
|
2644
2756
|
"type": "reference",
|
|
2757
|
+
"qualifiedName": "MouseEvent",
|
|
2758
|
+
"package": "typescript",
|
|
2645
2759
|
"name": "MouseEvent"
|
|
2646
2760
|
}
|
|
2647
2761
|
},
|
|
@@ -2830,7 +2944,7 @@
|
|
|
2830
2944
|
},
|
|
2831
2945
|
"sources": [
|
|
2832
2946
|
{
|
|
2833
|
-
"fileName": "
|
|
2947
|
+
"fileName": "lib/modules/progress-indicator/types/progress-indicator-message.ts",
|
|
2834
2948
|
"line": 14,
|
|
2835
2949
|
"character": 4
|
|
2836
2950
|
}
|
|
@@ -3033,18 +3147,13 @@
|
|
|
3033
3147
|
],
|
|
3034
3148
|
"sources": [
|
|
3035
3149
|
{
|
|
3036
|
-
"fileName": "
|
|
3150
|
+
"fileName": "index.ts",
|
|
3037
3151
|
"line": 1,
|
|
3038
3152
|
"character": 0
|
|
3039
3153
|
}
|
|
3040
3154
|
]
|
|
3041
3155
|
},
|
|
3042
3156
|
"codeExamples": [
|
|
3043
|
-
{
|
|
3044
|
-
"fileName": ".eslintrc.json",
|
|
3045
|
-
"filePath": "/projects/progress-indicator/documentation/code-examples/.eslintrc.json",
|
|
3046
|
-
"rawContents": "{\n \"extends\": [\"../../.eslintrc.json\"],\n \"overrides\": [\n {\n \"files\": [\"*.ts\"],\n \"rules\": {\n \"@angular-eslint/directive-selector\": [\n \"error\",\n {\n \"type\": \"attribute\",\n \"prefix\": \"app\",\n \"style\": \"camelCase\"\n }\n ],\n \"@angular-eslint/component-selector\": [\n \"error\",\n {\n \"type\": \"element\",\n \"prefix\": \"app\",\n \"style\": \"kebab-case\"\n }\n ]\n }\n }\n ]\n}\n"
|
|
3047
|
-
},
|
|
3048
3157
|
{
|
|
3049
3158
|
"fileName": "progress-indicator-passive-demo.component.html",
|
|
3050
3159
|
"filePath": "/projects/progress-indicator/documentation/code-examples/passive-indicator/basic/progress-indicator-passive-demo.component.html",
|
|
@@ -3116,4 +3225,4 @@
|
|
|
3116
3225
|
"rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { SkyCheckboxModule } from '@skyux/forms';\n\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { SkyProgressIndicatorModule } from '@skyux/progress-indicator';\n\nimport { WizardDemoComponent } from './wizard-demo.component';\n\nimport { WizardDemoModalComponent } from './wizard-demo-modal.component';\n\n@NgModule({\n imports: [\n CommonModule,\n ReactiveFormsModule,\n SkyCheckboxModule,\n SkyModalModule,\n SkyProgressIndicatorModule,\n ],\n exports: [WizardDemoComponent],\n declarations: [WizardDemoComponent, WizardDemoModalComponent],\n entryComponents: [WizardDemoModalComponent],\n})\nexport class SkyProgressIndicatorPassiveDemoModule {}\n"
|
|
3117
3226
|
}
|
|
3118
3227
|
]
|
|
3119
|
-
}
|
|
3228
|
+
}
|
package/esm2015/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './lib/modules/progress-indicator/progress-indicator.module';
|
|
2
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-action-click-args';
|
|
3
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler';
|
|
4
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-change';
|
|
5
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-display-mode-type';
|
|
6
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-item-status';
|
|
7
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-message';
|
|
8
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-message-type';
|
|
9
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-mode';
|
|
10
|
+
export * from './lib/modules/progress-indicator/types/progress-indicator-nav-button-type';
|
|
11
|
+
// Components and directives must be exported to support Angular's "partial" Ivy compiler.
|
|
12
|
+
// Obscure names are used to indicate types are not part of public API.
|
|
13
|
+
export { SkyProgressIndicatorItemComponent as λ1 } from './lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component';
|
|
14
|
+
export { SkyProgressIndicatorComponent as λ2 } from './lib/modules/progress-indicator/progress-indicator.component';
|
|
15
|
+
export { SkyProgressIndicatorNavButtonComponent as λ3 } from './lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component';
|
|
16
|
+
export { SkyProgressIndicatorResetButtonComponent as λ4 } from './lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component';
|
|
17
|
+
export { SkyProgressIndicatorTitleComponent as λ5 } from './lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component';
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../libs/components/progress-indicator/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6EAA6E,CAAC;AAC5F,cAAc,yFAAyF,CAAC;AACxG,cAAc,kEAAkE,CAAC;AACjF,cAAc,6EAA6E,CAAC;AAC5F,cAAc,uEAAuE,CAAC;AACtF,cAAc,mEAAmE,CAAC;AAClF,cAAc,wEAAwE,CAAC;AACvF,cAAc,gEAAgE,CAAC;AAC/E,cAAc,2EAA2E,CAAC;AAE1F,0FAA0F;AAC1F,uEAAuE;AACvE,OAAO,EAAE,iCAAiC,IAAI,EAAE,EAAE,MAAM,4FAA4F,CAAC;AACrJ,OAAO,EAAE,6BAA6B,IAAI,EAAE,EAAE,MAAM,+DAA+D,CAAC;AACpH,OAAO,EAAE,sCAAsC,IAAI,EAAE,EAAE,MAAM,wGAAwG,CAAC;AACtK,OAAO,EAAE,wCAAwC,IAAI,EAAE,EAAE,MAAM,4GAA4G,CAAC;AAC5K,OAAO,EAAE,kCAAkC,IAAI,EAAE,EAAE,MAAM,8FAA8F,CAAC","sourcesContent":["export * from './lib/modules/progress-indicator/progress-indicator.module';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-action-click-args';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-change';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-display-mode-type';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-item-status';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-message';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-message-type';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-mode';\nexport * from './lib/modules/progress-indicator/types/progress-indicator-nav-button-type';\n\n// Components and directives must be exported to support Angular's \"partial\" Ivy compiler.\n// Obscure names are used to indicate types are not part of public API.\nexport { SkyProgressIndicatorItemComponent as λ1 } from './lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component';\nexport { SkyProgressIndicatorComponent as λ2 } from './lib/modules/progress-indicator/progress-indicator.component';\nexport { SkyProgressIndicatorNavButtonComponent as λ3 } from './lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component';\nexport { SkyProgressIndicatorResetButtonComponent as λ4 } from './lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component';\nexport { SkyProgressIndicatorTitleComponent as λ5 } from './lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component';\n"]}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, } from '@angular/core';
|
|
2
|
+
import { SkyProgressIndicatorItemStatus } from '../types/progress-indicator-item-status';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../progress-indicator-status-marker/progress-indicator-status-marker.component";
|
|
5
|
+
import * as i2 from "@angular/common";
|
|
6
|
+
import * as i3 from "@skyux/theme";
|
|
7
|
+
/**
|
|
8
|
+
* Specifies a step to include in the progress indicator. Each step requires a label,
|
|
9
|
+
* and you can also specify step details within the `sky-progress-indicator-item` element.
|
|
10
|
+
*/
|
|
11
|
+
export class SkyProgressIndicatorItemComponent {
|
|
12
|
+
constructor(changeDetector) {
|
|
13
|
+
this.changeDetector = changeDetector;
|
|
14
|
+
this.isVisible = false;
|
|
15
|
+
this.showStatusMarker = true;
|
|
16
|
+
this.showTitle = true;
|
|
17
|
+
}
|
|
18
|
+
get formattedTitle() {
|
|
19
|
+
return `${this.titlePrefix}${this.title}`;
|
|
20
|
+
}
|
|
21
|
+
get status() {
|
|
22
|
+
/* istanbul ignore next */
|
|
23
|
+
if (this._status === undefined) {
|
|
24
|
+
return SkyProgressIndicatorItemStatus.Incomplete;
|
|
25
|
+
}
|
|
26
|
+
return this._status;
|
|
27
|
+
}
|
|
28
|
+
set status(value) {
|
|
29
|
+
if (value === this._status) {
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
this._status = value;
|
|
33
|
+
this.changeDetector.markForCheck();
|
|
34
|
+
}
|
|
35
|
+
get statusName() {
|
|
36
|
+
let name;
|
|
37
|
+
/* tslint:disable-next-line:switch-default */
|
|
38
|
+
switch (this.status) {
|
|
39
|
+
case SkyProgressIndicatorItemStatus.Active:
|
|
40
|
+
name = 'active';
|
|
41
|
+
break;
|
|
42
|
+
case SkyProgressIndicatorItemStatus.Complete:
|
|
43
|
+
name = 'complete';
|
|
44
|
+
break;
|
|
45
|
+
case SkyProgressIndicatorItemStatus.Incomplete:
|
|
46
|
+
name = 'incomplete';
|
|
47
|
+
break;
|
|
48
|
+
case SkyProgressIndicatorItemStatus.Pending:
|
|
49
|
+
name = 'pending';
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
return name;
|
|
53
|
+
}
|
|
54
|
+
showStepNumber(step) {
|
|
55
|
+
this.titlePrefix = `${step} - `;
|
|
56
|
+
}
|
|
57
|
+
hideStepNumber() {
|
|
58
|
+
this.titlePrefix = '';
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
SkyProgressIndicatorItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorItemComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
62
|
+
SkyProgressIndicatorItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorItemComponent, selector: "sky-progress-indicator-item", inputs: { title: "title" }, ngImport: i0, template: "<div\n *ngIf=\"isVisible\"\n class=\"sky-progress-indicator-item\"\n [ngClass]=\"'sky-progress-indicator-item-status-' + statusName\"\n>\n <sky-progress-indicator-status-marker\n *ngIf=\"showStatusMarker\"\n [status]=\"status\"\n >\n </sky-progress-indicator-status-marker>\n\n <div class=\"sky-progress-indicator-item-content\">\n <div\n *ngIf=\"showTitle\"\n aria-level=\"2\"\n class=\"sky-progress-indicator-item-heading\"\n role=\"heading\"\n [ngClass]=\"{\n 'sky-deemphasized': statusName === 'pending'\n }\"\n [skyThemeClass]=\"{\n 'sky-font-display-3': 'modern'\n }\"\n >\n {{ formattedTitle }}\n </div>\n <div class=\"sky-progress-indicator-item-body\">\n <ng-template [ngIf]=\"statusName !== 'incomplete'\">\n <ng-content></ng-content>\n </ng-template>\n </div>\n </div>\n</div>\n", styles: [".sky-progress-indicator-item{display:flex;margin-bottom:-1px}.sky-progress-indicator-item-content{flex:1 1 100%}.sky-progress-indicator-item-body{min-height:20px;padding-top:10px;padding-bottom:30px}.sky-progress-indicator-item-status-incomplete .sky-progress-indicator-item-body{padding:0}:host-context(.sky-theme-modern) .sky-progress-indicator-item{margin:0}:host-context(.sky-theme-modern) .sky-progress-indicator-item-body{padding:20px 0 30px}:host-context(.sky-theme-modern) .sky-progress-indicator-item-body:empty{padding:0}.sky-theme-modern .sky-progress-indicator-item{margin:0}.sky-theme-modern .sky-progress-indicator-item-body{padding:20px 0 30px}.sky-theme-modern .sky-progress-indicator-item-body:empty{padding:0}\n"], components: [{ type: i1.SkyProgressIndicatorStatusMarkerComponent, selector: "sky-progress-indicator-status-marker", inputs: ["displayMode", "status"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorItemComponent, decorators: [{
|
|
64
|
+
type: Component,
|
|
65
|
+
args: [{
|
|
66
|
+
selector: 'sky-progress-indicator-item',
|
|
67
|
+
templateUrl: './progress-indicator-item.component.html',
|
|
68
|
+
styleUrls: ['./progress-indicator-item.component.scss'],
|
|
69
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
70
|
+
}]
|
|
71
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { title: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}] } });
|
|
74
|
+
//# sourceMappingURL=progress-indicator-item.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progress-indicator-item.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.ts","../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,KAAK,GACN,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,8BAA8B,EAAE,MAAM,yCAAyC,CAAC;;;;;AAEzF;;;GAGG;AAOH,MAAM,OAAO,iCAAiC;IA+D5C,YAAoB,cAAiC;QAAjC,mBAAc,GAAd,cAAc,CAAmB;QAR9C,cAAS,GAAG,KAAK,CAAC;QAClB,qBAAgB,GAAG,IAAI,CAAC;QACxB,cAAS,GAAG,IAAI,CAAC;IAMgC,CAAC;IAvDzD,IAAW,cAAc;QACvB,OAAO,GAAG,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC;IAC5C,CAAC;IAED,IAAW,MAAM;QACf,0BAA0B;QAC1B,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,EAAE;YAC9B,OAAO,8BAA8B,CAAC,UAAU,CAAC;SAClD;QAED,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAW,MAAM,CAAC,KAAqC;QACrD,IAAI,KAAK,KAAK,IAAI,CAAC,OAAO,EAAE;YAC1B,OAAO;SACR;QAED,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QACrB,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAED,IAAW,UAAU;QACnB,IAAI,IAAY,CAAC;QAEjB,6CAA6C;QAC7C,QAAQ,IAAI,CAAC,MAAM,EAAE;YACnB,KAAK,8BAA8B,CAAC,MAAM;gBACxC,IAAI,GAAG,QAAQ,CAAC;gBAChB,MAAM;YAER,KAAK,8BAA8B,CAAC,QAAQ;gBAC1C,IAAI,GAAG,UAAU,CAAC;gBAClB,MAAM;YAER,KAAK,8BAA8B,CAAC,UAAU;gBAC5C,IAAI,GAAG,YAAY,CAAC;gBACpB,MAAM;YAER,KAAK,8BAA8B,CAAC,OAAO;gBACzC,IAAI,GAAG,SAAS,CAAC;gBACjB,MAAM;SACT;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAYM,cAAc,CAAC,IAAY;QAChC,IAAI,CAAC,WAAW,GAAG,GAAG,IAAI,KAAK,CAAC;IAClC,CAAC;IAEM,cAAc;QACnB,IAAI,CAAC,WAAW,GAAG,EAAE,CAAC;IACxB,CAAC;;+HAvEU,iCAAiC;mHAAjC,iCAAiC,+FCnB9C,g4BAiCA;4FDda,iCAAiC;kBAN7C,SAAS;mBAAC;oBACT,QAAQ,EAAE,6BAA6B;oBACvC,WAAW,EAAE,0CAA0C;oBACvD,SAAS,EAAE,CAAC,0CAA0C,CAAC;oBACvD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;wGAOQ,KAAK;sBADX,KAAK","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n} from '@angular/core';\n\nimport { SkyProgressIndicatorItemStatus } from '../types/progress-indicator-item-status';\n\n/**\n * Specifies a step to include in the progress indicator. Each step requires a label,\n * and you can also specify step details within the `sky-progress-indicator-item` element.\n */\n@Component({\n selector: 'sky-progress-indicator-item',\n templateUrl: './progress-indicator-item.component.html',\n styleUrls: ['./progress-indicator-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyProgressIndicatorItemComponent {\n /**\n * Specifies a step label for the step in the progress indicator.\n * @required\n */\n @Input()\n public title: string;\n\n public get formattedTitle(): string {\n return `${this.titlePrefix}${this.title}`;\n }\n\n public get status(): SkyProgressIndicatorItemStatus {\n /* istanbul ignore next */\n if (this._status === undefined) {\n return SkyProgressIndicatorItemStatus.Incomplete;\n }\n\n return this._status;\n }\n\n public set status(value: SkyProgressIndicatorItemStatus) {\n if (value === this._status) {\n return;\n }\n\n this._status = value;\n this.changeDetector.markForCheck();\n }\n\n public get statusName(): string {\n let name: string;\n\n /* tslint:disable-next-line:switch-default */\n switch (this.status) {\n case SkyProgressIndicatorItemStatus.Active:\n name = 'active';\n break;\n\n case SkyProgressIndicatorItemStatus.Complete:\n name = 'complete';\n break;\n\n case SkyProgressIndicatorItemStatus.Incomplete:\n name = 'incomplete';\n break;\n\n case SkyProgressIndicatorItemStatus.Pending:\n name = 'pending';\n break;\n }\n\n return name;\n }\n\n public isVisible = false;\n public showStatusMarker = true;\n public showTitle = true;\n\n private titlePrefix: string;\n\n private _status: SkyProgressIndicatorItemStatus;\n\n constructor(private changeDetector: ChangeDetectorRef) {}\n\n public showStepNumber(step: number): void {\n this.titlePrefix = `${step} - `;\n }\n\n public hideStepNumber(): void {\n this.titlePrefix = '';\n }\n}\n","<div\n *ngIf=\"isVisible\"\n class=\"sky-progress-indicator-item\"\n [ngClass]=\"'sky-progress-indicator-item-status-' + statusName\"\n>\n <sky-progress-indicator-status-marker\n *ngIf=\"showStatusMarker\"\n [status]=\"status\"\n >\n </sky-progress-indicator-status-marker>\n\n <div class=\"sky-progress-indicator-item-content\">\n <div\n *ngIf=\"showTitle\"\n aria-level=\"2\"\n class=\"sky-progress-indicator-item-heading\"\n role=\"heading\"\n [ngClass]=\"{\n 'sky-deemphasized': statusName === 'pending'\n }\"\n [skyThemeClass]=\"{\n 'sky-font-display-3': 'modern'\n }\"\n >\n {{ formattedTitle }}\n </div>\n <div class=\"sky-progress-indicator-item-body\">\n <ng-template [ngIf]=\"statusName !== 'incomplete'\">\n <ng-content></ng-content>\n </ng-template>\n </div>\n </div>\n</div>\n"]}
|