@skyux/progress-indicator 5.5.0-beta.0 → 5.6.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.
Files changed (19) hide show
  1. package/bundles/skyux-progress-indicator.umd.js +31 -31
  2. package/documentation.json +42 -42
  3. package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js +1 -1
  4. package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js.map +1 -1
  5. package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js +1 -1
  6. package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js.map +1 -1
  7. package/esm2015/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js +1 -1
  8. package/esm2015/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js.map +1 -1
  9. package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js +2 -2
  10. package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js.map +1 -1
  11. package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js +2 -2
  12. package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js.map +1 -1
  13. package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js +1 -1
  14. package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js.map +1 -1
  15. package/fesm2015/skyux-progress-indicator.js +19 -19
  16. package/fesm2015/skyux-progress-indicator.js.map +1 -1
  17. package/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.d.ts +1 -1
  18. package/lib/modules/progress-indicator/progress-indicator.component.d.ts +1 -1
  19. package/package.json +12 -11
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/theme'), require('rxjs'), require('rxjs/operators'), require('@skyux/core')) :
3
- typeof define === 'function' && define.amd ? define('@skyux/progress-indicator', ['exports', '@angular/core', '@angular/common', '@skyux/i18n', '@skyux/indicators', '@skyux/theme', 'rxjs', 'rxjs/operators', '@skyux/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["progress-indicator"] = {}), global.ng.core, global.ng.common, global.i4, global.i2, global.i1, global.rxjs, global.rxjs.operators, global.i1$1));
5
- })(this, (function (exports, i0, i3, i4, i2, i1, rxjs, operators, i1$1) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/core'), require('@skyux/i18n'), require('@skyux/indicators'), require('@skyux/theme'), require('rxjs'), require('rxjs/operators'), require('@skyux/core')) :
3
+ typeof define === 'function' && define.amd ? define('@skyux/progress-indicator', ['exports', '@angular/common', '@angular/core', '@skyux/i18n', '@skyux/indicators', '@skyux/theme', 'rxjs', 'rxjs/operators', '@skyux/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.skyux = global.skyux || {}, global.skyux["progress-indicator"] = {}), global.ng.common, global.ng.core, global.i4, global.i2, global.i1, global.rxjs, global.rxjs.operators, global.i1$1));
5
+ })(this, (function (exports, i3, i0, i4, i2, i1, rxjs, operators, i1$1) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -22,8 +22,8 @@
22
22
  return Object.freeze(n);
23
23
  }
24
24
 
25
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
25
  var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
26
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
27
  var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
28
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
29
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
@@ -279,20 +279,19 @@
279
279
  }] } });
280
280
 
281
281
  /**
282
- * @deprecated Use `SkyProgressIndicatorDisplayModeType` instead.
283
- * @internal
282
+ * Allows the consumer to decide whether the button's action should be completed successfully.
283
+ * The handler is provided with all nav button types.
284
284
  */
285
- exports.SkyProgressIndicatorDisplayMode = void 0;
286
- (function (SkyProgressIndicatorDisplayMode) {
287
- /**
288
- * Specifies a vertical layout for the progress indicator.
289
- */
290
- SkyProgressIndicatorDisplayMode[SkyProgressIndicatorDisplayMode["Vertical"] = 0] = "Vertical";
285
+ var SkyProgressIndicatorActionClickProgressHandler = /** @class */ (function () {
291
286
  /**
292
- * Specifies a horizontal layout for the progress indicator.
287
+ *
288
+ * @param advance Advances the progress indicator to the next step.
293
289
  */
294
- SkyProgressIndicatorDisplayMode[SkyProgressIndicatorDisplayMode["Horizontal"] = 1] = "Horizontal";
295
- })(exports.SkyProgressIndicatorDisplayMode || (exports.SkyProgressIndicatorDisplayMode = {}));
290
+ function SkyProgressIndicatorActionClickProgressHandler(advance) {
291
+ this.advance = advance;
292
+ }
293
+ return SkyProgressIndicatorActionClickProgressHandler;
294
+ }());
296
295
 
297
296
  exports.SkyProgressIndicatorMessageType = void 0;
298
297
  (function (SkyProgressIndicatorMessageType) {
@@ -322,6 +321,22 @@
322
321
  SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["GoTo"] = 4] = "GoTo";
323
322
  })(exports.SkyProgressIndicatorMessageType || (exports.SkyProgressIndicatorMessageType = {}));
324
323
 
324
+ /**
325
+ * @deprecated Use `SkyProgressIndicatorDisplayModeType` instead.
326
+ * @internal
327
+ */
328
+ exports.SkyProgressIndicatorDisplayMode = void 0;
329
+ (function (SkyProgressIndicatorDisplayMode) {
330
+ /**
331
+ * Specifies a vertical layout for the progress indicator.
332
+ */
333
+ SkyProgressIndicatorDisplayMode[SkyProgressIndicatorDisplayMode["Vertical"] = 0] = "Vertical";
334
+ /**
335
+ * Specifies a horizontal layout for the progress indicator.
336
+ */
337
+ SkyProgressIndicatorDisplayMode[SkyProgressIndicatorDisplayMode["Horizontal"] = 1] = "Horizontal";
338
+ })(exports.SkyProgressIndicatorDisplayMode || (exports.SkyProgressIndicatorDisplayMode = {}));
339
+
325
340
  var SkyProgressIndicatorComponent = /** @class */ (function () {
326
341
  function SkyProgressIndicatorComponent(changeDetector, windowRef) {
327
342
  this.changeDetector = changeDetector;
@@ -666,21 +681,6 @@
666
681
  args: [SkyProgressIndicatorItemComponent]
667
682
  }] } });
668
683
 
669
- /**
670
- * Allows the consumer to decide whether the button's action should be completed successfully.
671
- * The handler is provided with all nav button types.
672
- */
673
- var SkyProgressIndicatorActionClickProgressHandler = /** @class */ (function () {
674
- /**
675
- *
676
- * @param advance Advances the progress indicator to the next step.
677
- */
678
- function SkyProgressIndicatorActionClickProgressHandler(advance) {
679
- this.advance = advance;
680
- }
681
- return SkyProgressIndicatorActionClickProgressHandler;
682
- }());
683
-
684
684
  /**
685
685
  * Displays a button to navigate the steps in modal wizards. We recommend against using it in
686
686
  * passive progress indicators and waterfall progress indicators.
@@ -395,7 +395,7 @@
395
395
  "sources": [
396
396
  {
397
397
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.module.ts",
398
- "line": 49,
398
+ "line": 40,
399
399
  "character": 13
400
400
  }
401
401
  ]
@@ -832,7 +832,7 @@
832
832
  "sources": [
833
833
  {
834
834
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
835
- "line": 196,
835
+ "line": 188,
836
836
  "character": 2
837
837
  }
838
838
  ],
@@ -903,7 +903,7 @@
903
903
  "sources": [
904
904
  {
905
905
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
906
- "line": 118,
906
+ "line": 110,
907
907
  "character": 9
908
908
  }
909
909
  ],
@@ -933,7 +933,7 @@
933
933
  "sources": [
934
934
  {
935
935
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
936
- "line": 120,
936
+ "line": 112,
937
937
  "character": 13
938
938
  }
939
939
  ],
@@ -974,7 +974,7 @@
974
974
  "sources": [
975
975
  {
976
976
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
977
- "line": 53,
977
+ "line": 45,
978
978
  "character": 13
979
979
  }
980
980
  ],
@@ -1049,7 +1049,7 @@
1049
1049
  "sources": [
1050
1050
  {
1051
1051
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1052
- "line": 146,
1052
+ "line": 138,
1053
1053
  "character": 13
1054
1054
  }
1055
1055
  ],
@@ -1116,7 +1116,7 @@
1116
1116
  "sources": [
1117
1117
  {
1118
1118
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1119
- "line": 71,
1119
+ "line": 63,
1120
1120
  "character": 13
1121
1121
  }
1122
1122
  ],
@@ -1189,7 +1189,7 @@
1189
1189
  "sources": [
1190
1190
  {
1191
1191
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1192
- "line": 154,
1192
+ "line": 146,
1193
1193
  "character": 13
1194
1194
  }
1195
1195
  ],
@@ -1234,7 +1234,7 @@
1234
1234
  "sources": [
1235
1235
  {
1236
1236
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1237
- "line": 90,
1237
+ "line": 82,
1238
1238
  "character": 13
1239
1239
  }
1240
1240
  ],
@@ -1310,7 +1310,7 @@
1310
1310
  "sources": [
1311
1311
  {
1312
1312
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1313
- "line": 106,
1313
+ "line": 98,
1314
1314
  "character": 13
1315
1315
  }
1316
1316
  ],
@@ -1371,7 +1371,7 @@
1371
1371
  "sources": [
1372
1372
  {
1373
1373
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1374
- "line": 207,
1374
+ "line": 199,
1375
1375
  "character": 9
1376
1376
  }
1377
1377
  ],
@@ -1408,7 +1408,7 @@
1408
1408
  "sources": [
1409
1409
  {
1410
1410
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1411
- "line": 228,
1411
+ "line": 220,
1412
1412
  "character": 9
1413
1413
  }
1414
1414
  ],
@@ -1445,7 +1445,7 @@
1445
1445
  "sources": [
1446
1446
  {
1447
1447
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1448
- "line": 201,
1448
+ "line": 193,
1449
1449
  "character": 9
1450
1450
  }
1451
1451
  ],
@@ -1482,7 +1482,7 @@
1482
1482
  "sources": [
1483
1483
  {
1484
1484
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1485
- "line": 233,
1485
+ "line": 225,
1486
1486
  "character": 9
1487
1487
  }
1488
1488
  ],
@@ -1557,7 +1557,7 @@
1557
1557
  "sources": [
1558
1558
  {
1559
1559
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator.component.ts",
1560
- "line": 41,
1560
+ "line": 33,
1561
1561
  "character": 13
1562
1562
  }
1563
1563
  ],
@@ -1615,7 +1615,7 @@
1615
1615
  "sources": [
1616
1616
  {
1617
1617
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1618
- "line": 195,
1618
+ "line": 189,
1619
1619
  "character": 2
1620
1620
  }
1621
1621
  ],
@@ -1699,7 +1699,7 @@
1699
1699
  "sources": [
1700
1700
  {
1701
1701
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1702
- "line": 148,
1702
+ "line": 142,
1703
1703
  "character": 9
1704
1704
  }
1705
1705
  ],
@@ -1750,7 +1750,7 @@
1750
1750
  "sources": [
1751
1751
  {
1752
1752
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1753
- "line": 46,
1753
+ "line": 40,
1754
1754
  "character": 9
1755
1755
  }
1756
1756
  ],
@@ -1770,7 +1770,7 @@
1770
1770
  "sources": [
1771
1771
  {
1772
1772
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1773
- "line": 173,
1773
+ "line": 167,
1774
1774
  "character": 13
1775
1775
  }
1776
1776
  ],
@@ -1811,7 +1811,7 @@
1811
1811
  "sources": [
1812
1812
  {
1813
1813
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1814
- "line": 54,
1814
+ "line": 48,
1815
1815
  "character": 13
1816
1816
  }
1817
1817
  ],
@@ -1886,7 +1886,7 @@
1886
1886
  "sources": [
1887
1887
  {
1888
1888
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1889
- "line": 150,
1889
+ "line": 144,
1890
1890
  "character": 13
1891
1891
  }
1892
1892
  ],
@@ -1927,7 +1927,7 @@
1927
1927
  "sources": [
1928
1928
  {
1929
1929
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
1930
- "line": 71,
1930
+ "line": 65,
1931
1931
  "character": 13
1932
1932
  }
1933
1933
  ],
@@ -2000,7 +2000,7 @@
2000
2000
  "sources": [
2001
2001
  {
2002
2002
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
2003
- "line": 177,
2003
+ "line": 171,
2004
2004
  "character": 13
2005
2005
  }
2006
2006
  ],
@@ -2067,7 +2067,7 @@
2067
2067
  "sources": [
2068
2068
  {
2069
2069
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
2070
- "line": 98,
2070
+ "line": 92,
2071
2071
  "character": 13
2072
2072
  }
2073
2073
  ],
@@ -2142,7 +2142,7 @@
2142
2142
  "sources": [
2143
2143
  {
2144
2144
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
2145
- "line": 200,
2145
+ "line": 194,
2146
2146
  "character": 9
2147
2147
  }
2148
2148
  ],
@@ -2179,7 +2179,7 @@
2179
2179
  "sources": [
2180
2180
  {
2181
2181
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
2182
- "line": 208,
2182
+ "line": 202,
2183
2183
  "character": 9
2184
2184
  }
2185
2185
  ],
@@ -2216,7 +2216,7 @@
2216
2216
  "sources": [
2217
2217
  {
2218
2218
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
2219
- "line": 214,
2219
+ "line": 208,
2220
2220
  "character": 9
2221
2221
  }
2222
2222
  ],
@@ -2291,7 +2291,7 @@
2291
2291
  "sources": [
2292
2292
  {
2293
2293
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts",
2294
- "line": 38,
2294
+ "line": 32,
2295
2295
  "character": 13
2296
2296
  }
2297
2297
  ],
@@ -2343,7 +2343,7 @@
2343
2343
  "sources": [
2344
2344
  {
2345
2345
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2346
- "line": 56,
2346
+ "line": 55,
2347
2347
  "character": 2
2348
2348
  }
2349
2349
  ],
@@ -2409,7 +2409,7 @@
2409
2409
  "sources": [
2410
2410
  {
2411
2411
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2412
- "line": 45,
2412
+ "line": 44,
2413
2413
  "character": 9
2414
2414
  }
2415
2415
  ],
@@ -2445,7 +2445,7 @@
2445
2445
  "sources": [
2446
2446
  {
2447
2447
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2448
- "line": 52,
2448
+ "line": 51,
2449
2449
  "character": 9
2450
2450
  }
2451
2451
  ],
@@ -2486,7 +2486,7 @@
2486
2486
  "sources": [
2487
2487
  {
2488
2488
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2489
- "line": 31,
2489
+ "line": 30,
2490
2490
  "character": 13
2491
2491
  }
2492
2492
  ],
@@ -2559,7 +2559,7 @@
2559
2559
  "sources": [
2560
2560
  {
2561
2561
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2562
- "line": 64,
2562
+ "line": 63,
2563
2563
  "character": 9
2564
2564
  }
2565
2565
  ],
@@ -2596,7 +2596,7 @@
2596
2596
  "sources": [
2597
2597
  {
2598
2598
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2599
- "line": 68,
2599
+ "line": 67,
2600
2600
  "character": 9
2601
2601
  }
2602
2602
  ],
@@ -2650,7 +2650,7 @@
2650
2650
  "sources": [
2651
2651
  {
2652
2652
  "fileName": "projects/progress-indicator/src/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts",
2653
- "line": 25,
2653
+ "line": 24,
2654
2654
  "character": 13
2655
2655
  }
2656
2656
  ],
@@ -3167,7 +3167,7 @@
3167
3167
  {
3168
3168
  "fileName": "progress-indicator-passive-demo.module.ts",
3169
3169
  "filePath": "/projects/progress-indicator/documentation/code-examples/passive-indicator/basic/progress-indicator-passive-demo.module.ts",
3170
- "rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { SkyProgressIndicatorModule } from '@skyux/progress-indicator';\n\nimport { SkyProgressIndicatorPassiveDemoComponent } from './progress-indicator-passive-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyProgressIndicatorModule],\n exports: [SkyProgressIndicatorPassiveDemoComponent],\n declarations: [SkyProgressIndicatorPassiveDemoComponent],\n})\nexport class SkyProgressIndicatorPassiveDemoModule {}\n"
3170
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyProgressIndicatorModule } from '@skyux/progress-indicator';\n\nimport { SkyProgressIndicatorPassiveDemoComponent } from './progress-indicator-passive-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyProgressIndicatorModule],\n exports: [SkyProgressIndicatorPassiveDemoComponent],\n declarations: [SkyProgressIndicatorPassiveDemoComponent],\n})\nexport class SkyProgressIndicatorPassiveDemoModule {}\n"
3171
3171
  },
3172
3172
  {
3173
3173
  "fileName": "progress-indicator-waterfall-demo-context.ts",
@@ -3182,7 +3182,7 @@
3182
3182
  {
3183
3183
  "fileName": "progress-indicator-waterfall-demo-form.component.ts",
3184
3184
  "filePath": "/projects/progress-indicator/documentation/code-examples/waterfall-indicator/basic/progress-indicator-waterfall-demo-form.component.ts",
3185
- "rawContents": "import { Component } from '@angular/core';\n\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport { SkyProgressIndicatorWaterfallDemoContext } from './progress-indicator-waterfall-demo-context';\n\n@Component({\n selector: 'app-progress-indicator-waterfall-horizontal-demo',\n templateUrl: './progress-indicator-waterfall-demo-form.component.html',\n})\nexport class SkyProgressIndicatorWaterfallDemoFormComponent {\n constructor(\n public instance: SkyModalInstance,\n public context: SkyProgressIndicatorWaterfallDemoContext\n ) {}\n\n public submit(): void {\n this.instance.close(undefined, 'save');\n }\n}\n"
3185
+ "rawContents": "import { Component } from '@angular/core';\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport { SkyProgressIndicatorWaterfallDemoContext } from './progress-indicator-waterfall-demo-context';\n\n@Component({\n selector: 'app-progress-indicator-waterfall-horizontal-demo',\n templateUrl: './progress-indicator-waterfall-demo-form.component.html',\n})\nexport class SkyProgressIndicatorWaterfallDemoFormComponent {\n constructor(\n public instance: SkyModalInstance,\n public context: SkyProgressIndicatorWaterfallDemoContext\n ) {}\n\n public submit(): void {\n this.instance.close(undefined, 'save');\n }\n}\n"
3186
3186
  },
3187
3187
  {
3188
3188
  "fileName": "progress-indicator-waterfall-demo.component.html",
@@ -3192,12 +3192,12 @@
3192
3192
  {
3193
3193
  "fileName": "progress-indicator-waterfall-demo.component.ts",
3194
3194
  "filePath": "/projects/progress-indicator/documentation/code-examples/waterfall-indicator/basic/progress-indicator-waterfall-demo.component.ts",
3195
- "rawContents": "import {\n Component,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n} from '@angular/core';\n\nimport { SkyModalService, SkyModalCloseArgs } from '@skyux/modals';\n\nimport {\n SkyProgressIndicatorChange,\n SkyProgressIndicatorMessageType,\n} from '@skyux/progress-indicator';\n\nimport { Subject } from 'rxjs';\n\nimport { take } from 'rxjs/operators';\n\nimport { SkyProgressIndicatorWaterfallDemoContext } from './progress-indicator-waterfall-demo-context';\n\nimport { SkyProgressIndicatorWaterfallDemoFormComponent } from './progress-indicator-waterfall-demo-form.component';\n\n@Component({\n selector: 'app-waterfall-indicator-docs',\n templateUrl: './progress-indicator-waterfall-demo.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WaterfallIndicatorDocsComponent {\n public activeIndex = 0;\n\n public progressMessageStream = new Subject<SkyProgressIndicatorMessageType>();\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n private modal: SkyModalService\n ) {}\n\n public configureConnection(isProgress: boolean): void {\n this.openModalForm(\n {\n title: 'Configure connection',\n buttonText: 'Submit connection settings',\n },\n isProgress\n );\n }\n\n public setServer(isProgress: boolean): void {\n this.openModalForm(\n {\n title: 'Select remote server',\n buttonText: 'Submit server choice',\n },\n isProgress\n );\n }\n\n public testConnection(isProgress: boolean): void {\n this.openModalForm(\n {\n title: 'Connection confirmed.',\n buttonText: 'OK',\n },\n isProgress\n );\n }\n\n public alertMessage(message: string): void {\n alert(message);\n }\n\n public updateIndex(changes: SkyProgressIndicatorChange): void {\n this.activeIndex = changes.activeIndex;\n this.changeDetector.detectChanges();\n }\n\n public resetClicked(): void {\n this.progressMessageStream.next(SkyProgressIndicatorMessageType.Reset);\n }\n\n private progress(): void {\n this.progressMessageStream.next(SkyProgressIndicatorMessageType.Progress);\n }\n\n private openModalForm(\n context: SkyProgressIndicatorWaterfallDemoContext,\n isProgress: boolean\n ): void {\n const modalForm = this.modal.open(\n SkyProgressIndicatorWaterfallDemoFormComponent,\n [\n {\n provide: SkyProgressIndicatorWaterfallDemoContext,\n useValue: context,\n },\n ]\n );\n\n modalForm.closed.pipe(take(1)).subscribe((args: SkyModalCloseArgs) => {\n if (args.reason === 'save' && isProgress) {\n this.progress();\n }\n });\n }\n}\n"
3195
+ "rawContents": "import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n} from '@angular/core';\nimport { SkyModalCloseArgs, SkyModalService } from '@skyux/modals';\nimport {\n SkyProgressIndicatorChange,\n SkyProgressIndicatorMessageType,\n} from '@skyux/progress-indicator';\n\nimport { Subject } from 'rxjs';\nimport { take } from 'rxjs/operators';\n\nimport { SkyProgressIndicatorWaterfallDemoContext } from './progress-indicator-waterfall-demo-context';\nimport { SkyProgressIndicatorWaterfallDemoFormComponent } from './progress-indicator-waterfall-demo-form.component';\n\n@Component({\n selector: 'app-waterfall-indicator-docs',\n templateUrl: './progress-indicator-waterfall-demo.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WaterfallIndicatorDocsComponent {\n public activeIndex = 0;\n\n public progressMessageStream = new Subject<SkyProgressIndicatorMessageType>();\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n private modal: SkyModalService\n ) {}\n\n public configureConnection(isProgress: boolean): void {\n this.openModalForm(\n {\n title: 'Configure connection',\n buttonText: 'Submit connection settings',\n },\n isProgress\n );\n }\n\n public setServer(isProgress: boolean): void {\n this.openModalForm(\n {\n title: 'Select remote server',\n buttonText: 'Submit server choice',\n },\n isProgress\n );\n }\n\n public testConnection(isProgress: boolean): void {\n this.openModalForm(\n {\n title: 'Connection confirmed.',\n buttonText: 'OK',\n },\n isProgress\n );\n }\n\n public alertMessage(message: string): void {\n alert(message);\n }\n\n public updateIndex(changes: SkyProgressIndicatorChange): void {\n this.activeIndex = changes.activeIndex;\n this.changeDetector.detectChanges();\n }\n\n public resetClicked(): void {\n this.progressMessageStream.next(SkyProgressIndicatorMessageType.Reset);\n }\n\n private progress(): void {\n this.progressMessageStream.next(SkyProgressIndicatorMessageType.Progress);\n }\n\n private openModalForm(\n context: SkyProgressIndicatorWaterfallDemoContext,\n isProgress: boolean\n ): void {\n const modalForm = this.modal.open(\n SkyProgressIndicatorWaterfallDemoFormComponent,\n [\n {\n provide: SkyProgressIndicatorWaterfallDemoContext,\n useValue: context,\n },\n ]\n );\n\n modalForm.closed.pipe(take(1)).subscribe((args: SkyModalCloseArgs) => {\n if (args.reason === 'save' && isProgress) {\n this.progress();\n }\n });\n }\n}\n"
3196
3196
  },
3197
3197
  {
3198
3198
  "fileName": "progress-indicator-waterfall-demo.module.ts",
3199
3199
  "filePath": "/projects/progress-indicator/documentation/code-examples/waterfall-indicator/basic/progress-indicator-waterfall-demo.module.ts",
3200
- "rawContents": "import { CommonModule } from '@angular/common';\n\nimport { NgModule } from '@angular/core';\n\nimport { SkyModalModule } from '@skyux/modals';\n\nimport { SkyProgressIndicatorModule } from '@skyux/progress-indicator';\n\nimport { WaterfallIndicatorDocsComponent } from './progress-indicator-waterfall-demo.component';\n\nimport { SkyProgressIndicatorWaterfallDemoFormComponent } from './progress-indicator-waterfall-demo-form.component';\n\n@NgModule({\n imports: [CommonModule, SkyProgressIndicatorModule, SkyModalModule],\n exports: [WaterfallIndicatorDocsComponent],\n declarations: [\n WaterfallIndicatorDocsComponent,\n SkyProgressIndicatorWaterfallDemoFormComponent,\n ],\n entryComponents: [\n WaterfallIndicatorDocsComponent,\n SkyProgressIndicatorWaterfallDemoFormComponent,\n ],\n})\nexport class SkyProgressIndicatorPassiveDemoModule {}\n"
3200
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { SkyModalModule } from '@skyux/modals';\nimport { SkyProgressIndicatorModule } from '@skyux/progress-indicator';\n\nimport { SkyProgressIndicatorWaterfallDemoFormComponent } from './progress-indicator-waterfall-demo-form.component';\nimport { WaterfallIndicatorDocsComponent } from './progress-indicator-waterfall-demo.component';\n\n@NgModule({\n imports: [CommonModule, SkyProgressIndicatorModule, SkyModalModule],\n exports: [WaterfallIndicatorDocsComponent],\n declarations: [\n WaterfallIndicatorDocsComponent,\n SkyProgressIndicatorWaterfallDemoFormComponent,\n ],\n entryComponents: [\n WaterfallIndicatorDocsComponent,\n SkyProgressIndicatorWaterfallDemoFormComponent,\n ],\n})\nexport class SkyProgressIndicatorPassiveDemoModule {}\n"
3201
3201
  },
3202
3202
  {
3203
3203
  "fileName": "wizard-demo-modal.component.html",
@@ -3207,7 +3207,7 @@
3207
3207
  {
3208
3208
  "fileName": "wizard-demo-modal.component.ts",
3209
3209
  "filePath": "/projects/progress-indicator/documentation/code-examples/wizard/basic/wizard-demo-modal.component.ts",
3210
- "rawContents": "import { Component, OnInit } from '@angular/core';\n\nimport { FormBuilder, FormGroup } from '@angular/forms';\n\nimport { SkyModalInstance } from '@skyux/modals';\n\nimport {\n SkyProgressIndicatorActionClickArgs,\n SkyProgressIndicatorChange,\n SkyProgressIndicatorDisplayMode,\n} from '@skyux/progress-indicator';\n\n@Component({\n selector: 'app-wizard-demo-modal',\n templateUrl: './wizard-demo-modal.component.html',\n})\nexport class WizardDemoModalComponent implements OnInit {\n public activeIndex = 0;\n\n public displayMode = SkyProgressIndicatorDisplayMode.Horizontal;\n\n public myForm: FormGroup;\n\n public title = 'Wizard example';\n\n public get requirementsMet(): boolean {\n switch (this.activeIndex) {\n case 0:\n return !!this.myForm.get('requiredValue1').value;\n case 1:\n return !!this.myForm.get('requiredValue2').value;\n default:\n return false;\n }\n }\n\n constructor(\n private formBuilder: FormBuilder,\n public instance: SkyModalInstance\n ) {}\n\n public ngOnInit() {\n this.myForm = this.formBuilder.group({\n requiredValue1: undefined,\n requiredValue2: undefined,\n });\n }\n\n public onCancelClick(): void {\n this.instance.cancel();\n }\n\n public onSaveClick(args: SkyProgressIndicatorActionClickArgs): void {\n args.progressHandler.advance();\n this.instance.save();\n }\n\n public updateIndex(changes: SkyProgressIndicatorChange): void {\n this.activeIndex = changes.activeIndex;\n }\n}\n"
3210
+ "rawContents": "import { Component, OnInit } from '@angular/core';\nimport { FormBuilder, FormGroup } from '@angular/forms';\nimport { SkyModalInstance } from '@skyux/modals';\nimport {\n SkyProgressIndicatorActionClickArgs,\n SkyProgressIndicatorChange,\n SkyProgressIndicatorDisplayMode,\n} from '@skyux/progress-indicator';\n\n@Component({\n selector: 'app-wizard-demo-modal',\n templateUrl: './wizard-demo-modal.component.html',\n})\nexport class WizardDemoModalComponent implements OnInit {\n public activeIndex = 0;\n\n public displayMode = SkyProgressIndicatorDisplayMode.Horizontal;\n\n public myForm: FormGroup;\n\n public title = 'Wizard example';\n\n public get requirementsMet(): boolean {\n switch (this.activeIndex) {\n case 0:\n return !!this.myForm.get('requiredValue1').value;\n case 1:\n return !!this.myForm.get('requiredValue2').value;\n default:\n return false;\n }\n }\n\n constructor(\n private formBuilder: FormBuilder,\n public instance: SkyModalInstance\n ) {}\n\n public ngOnInit() {\n this.myForm = this.formBuilder.group({\n requiredValue1: undefined,\n requiredValue2: undefined,\n });\n }\n\n public onCancelClick(): void {\n this.instance.cancel();\n }\n\n public onSaveClick(args: SkyProgressIndicatorActionClickArgs): void {\n args.progressHandler.advance();\n this.instance.save();\n }\n\n public updateIndex(changes: SkyProgressIndicatorChange): void {\n this.activeIndex = changes.activeIndex;\n }\n}\n"
3211
3211
  },
3212
3212
  {
3213
3213
  "fileName": "wizard-demo.component.html",
@@ -3217,12 +3217,12 @@
3217
3217
  {
3218
3218
  "fileName": "wizard-demo.component.ts",
3219
3219
  "filePath": "/projects/progress-indicator/documentation/code-examples/wizard/basic/wizard-demo.component.ts",
3220
- "rawContents": "import { ChangeDetectionStrategy, Component } from '@angular/core';\n\nimport { SkyModalService } from '@skyux/modals';\n\nimport { WizardDemoModalComponent } from './wizard-demo-modal.component';\n\n@Component({\n selector: 'app-wizard-demo',\n templateUrl: './wizard-demo.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardDemoComponent {\n constructor(private modal: SkyModalService) {}\n\n public openWizard(): void {\n this.modal.open(WizardDemoModalComponent);\n }\n}\n"
3220
+ "rawContents": "import { ChangeDetectionStrategy, Component } from '@angular/core';\nimport { SkyModalService } from '@skyux/modals';\n\nimport { WizardDemoModalComponent } from './wizard-demo-modal.component';\n\n@Component({\n selector: 'app-wizard-demo',\n templateUrl: './wizard-demo.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class WizardDemoComponent {\n constructor(private modal: SkyModalService) {}\n\n public openWizard(): void {\n this.modal.open(WizardDemoModalComponent);\n }\n}\n"
3221
3221
  },
3222
3222
  {
3223
3223
  "fileName": "wizard-demo.module.ts",
3224
3224
  "filePath": "/projects/progress-indicator/documentation/code-examples/wizard/basic/wizard-demo.module.ts",
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"
3225
+ "rawContents": "import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { SkyCheckboxModule } from '@skyux/forms';\nimport { SkyModalModule } from '@skyux/modals';\nimport { SkyProgressIndicatorModule } from '@skyux/progress-indicator';\n\nimport { WizardDemoModalComponent } from './wizard-demo-modal.component';\nimport { WizardDemoComponent } from './wizard-demo.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"
3226
3226
  }
3227
3227
  ]
3228
3228
  }
@@ -1,9 +1,9 @@
1
1
  import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Optional, Output, } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import { distinctUntilChanged, takeUntil } from 'rxjs/operators';
4
+ import { SkyProgressIndicatorComponent } from '../progress-indicator.component';
4
5
  import { SkyProgressIndicatorActionClickProgressHandler } from '../types/progress-indicator-action-click-progress-handler';
5
6
  import { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';
6
- import { SkyProgressIndicatorComponent } from '../progress-indicator.component';
7
7
  import * as i0 from "@angular/core";
8
8
  import * as i1 from "../progress-indicator.component";
9
9
  import * as i2 from "@angular/common";
@@ -1 +1 @@
1
- {"version":3,"file":"progress-indicator-nav-button.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts","../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.html"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,KAAK,EAEL,QAAQ,EACR,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,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,CAAC;YAC5B,OAAO;SACR;QAED,wEAAwE;QACxE,IACE,UAAU,KAAK,MAAM;YACrB,UAAU;YACV,IAAI,CAAC,iBAAiB,CAAC,eAAe,EACtC;YACA,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,OAAO;SACR;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACxB,CAAC;;oIArPU,sCAAsC;wHAAtC,sCAAsC,gPCrCnD,+VAcA;4FDuBa,sCAAsC;kBALlD,SAAS;mBAAC;oBACT,QAAQ,EAAE,mCAAmC;oBAC7C,WAAW,EAAE,gDAAgD;oBAC7D,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;0BAgKI,QAAQ;4CAvJJ,UAAU;sBADhB,KAAK;gBASK,UAAU;sBADpB,KAAK;gBAkBK,QAAQ;sBADlB,KAAK;gBA4BK,iBAAiB;sBAD3B,KAAK;gBAmDC,WAAW;sBADjB,MAAM","sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Optional,\n Output,\n} from '@angular/core';\n\nimport { Subject } from 'rxjs';\n\nimport { distinctUntilChanged, takeUntil } from 'rxjs/operators';\n\nimport { SkyProgressIndicatorActionClickArgs } from '../types/progress-indicator-action-click-args';\n\nimport { SkyProgressIndicatorActionClickProgressHandler } from '../types/progress-indicator-action-click-progress-handler';\n\nimport { SkyProgressIndicatorChange } from '../types/progress-indicator-change';\n\nimport { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';\n\nimport { SkyProgressIndicatorNavButtonType } from '../types/progress-indicator-nav-button-type';\n\nimport { SkyProgressIndicatorComponent } from '../progress-indicator.component';\n\n/**\n * Displays a button to navigate the steps in modal wizards. We recommend against using it in\n * passive progress indicators and waterfall progress indicators.\n */\n@Component({\n selector: 'sky-progress-indicator-nav-button',\n templateUrl: './progress-indicator-nav-button.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyProgressIndicatorNavButtonComponent\n implements AfterViewInit, OnDestroy\n{\n /**\n * Specifies the label to display on the nav button.\n * @default \"Next\"\n */\n @Input()\n public buttonText: string;\n\n /**\n * Specifies the type of nav button to include.\n * The valid options are `\"finish\"`, `\"next\"`, `\"previous\"`, and `\"reset\"`.\n * @default \"next\"\n */\n @Input()\n public set buttonType(value: SkyProgressIndicatorNavButtonType) {\n this._buttonType = value;\n }\n\n public get buttonType(): SkyProgressIndicatorNavButtonType {\n if (this._buttonType === undefined) {\n return 'next';\n }\n\n return this._buttonType;\n }\n\n /**\n * Indicates whether to disable the nav button.\n * @default false\n */\n @Input()\n public set disabled(value: boolean) {\n this._disabled = value;\n this.changeDetector.markForCheck();\n }\n\n public get disabled(): boolean {\n const buttonType = this.buttonType;\n const activeIndex = this.lastProgressChange.activeIndex;\n const isLastStep =\n activeIndex === this.lastProgressChange.itemStatuses.length - 1;\n\n if (buttonType === 'previous' && activeIndex === 0) {\n return true;\n }\n\n if (buttonType === 'next' && isLastStep) {\n return true;\n }\n\n return this._disabled || false;\n }\n\n /**\n * Specifies the progress indicator component to associate with the nav button.\n * @required\n */\n @Input()\n public set progressIndicator(value: SkyProgressIndicatorComponent) {\n this._progressIndicator = value;\n\n if (value) {\n if (this.buttonType === 'finish') {\n // The `hasFinishButton` field was added to support legacy API.\n // Some implementations only include a next button; we cannot\n // assume that every implementation includes both a finish button and a next button.\n this._progressIndicator.hasFinishButton = true;\n }\n\n this._progressIndicator.progressChanges\n .pipe(distinctUntilChanged(), takeUntil(this.ngUnsubscribe))\n .subscribe((change: SkyProgressIndicatorChange) => {\n this.lastProgressChange = change;\n this.updateButtonVisibility(change);\n });\n } else {\n if (!this.parentTimeout) {\n this.parentTimeout = window.setTimeout(() => {\n /* istanbul ignore else */\n if (!this.progressIndicator) {\n throw new Error(\n 'The `<sky-progress-indicator-nav-button>` component requires a reference to ' +\n 'the `<sky-progress-indicator>` component it controls. For example:\\n' +\n '<sky-progress-indicator\\n' +\n ' #myProgressIndicator\\n' +\n '>\\n' +\n '</sky-progress-indicator>\\n' +\n '<sky-progress-indicator-nav-button\\n' +\n ' [progressIndicator]=\"myProgressIndicator\"\\n' +\n '>\\n' +\n '</sky-progress-indicator-nav-button>'\n );\n }\n }, 50);\n }\n }\n }\n\n public get progressIndicator(): SkyProgressIndicatorComponent {\n return this._progressIndicator;\n }\n\n /**\n * Fires when users select the nav button and emits a `SkyProgressIndicatorActionClickArgs`\n * object that is passed into the callback function to allow consumers to decide whether\n * the button’s action should complete successfully.\n */\n @Output()\n public actionClick = new EventEmitter<SkyProgressIndicatorActionClickArgs>();\n\n public get cssClassNames(): string {\n const buttonType = this.buttonType;\n\n const classNames = [`sky-progress-indicator-nav-button-${this.buttonType}`];\n\n switch (buttonType) {\n case 'next':\n case 'finish':\n classNames.push('sky-btn-primary');\n break;\n\n case 'reset':\n classNames.push('sky-btn-link');\n break;\n\n default:\n classNames.push('sky-btn-default');\n break;\n }\n\n return classNames.join(' ');\n }\n\n public get buttonLabelResourceString(): string {\n return `skyux_progress_indicator_navigator_${this.buttonType}`;\n }\n\n public set isVisible(value: boolean) {\n this._isVisible = value;\n this.changeDetector.markForCheck();\n }\n\n public get isVisible(): boolean {\n return this._isVisible || false;\n }\n\n private lastProgressChange: SkyProgressIndicatorChange;\n private ngUnsubscribe = new Subject<void>();\n private parentTimeout: number;\n\n private _buttonType: SkyProgressIndicatorNavButtonType;\n private _disabled: boolean;\n private _isVisible: boolean;\n private _progressIndicator: SkyProgressIndicatorComponent;\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n @Optional() private parentComponent: SkyProgressIndicatorComponent\n ) {}\n\n public ngAfterViewInit(): void {\n if (!this.progressIndicator && this.parentComponent) {\n this.progressIndicator = this.parentComponent;\n } else if (!this.progressIndicator) {\n this.progressIndicator = undefined;\n }\n }\n\n public ngOnDestroy(): void {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n this.actionClick.complete();\n }\n\n public onClick(event: MouseEvent): void {\n event.preventDefault();\n\n let type: SkyProgressIndicatorMessageType;\n\n switch (this.buttonType) {\n case 'finish':\n type = SkyProgressIndicatorMessageType.Finish;\n break;\n\n case 'next':\n type = SkyProgressIndicatorMessageType.Progress;\n break;\n\n case 'previous':\n type = SkyProgressIndicatorMessageType.Regress;\n break;\n\n case 'reset':\n type = SkyProgressIndicatorMessageType.Reset;\n break;\n\n default:\n break;\n }\n\n // If the consumer has subscribed to the `actionClick` event,\n // allow them to decide when to advance to the next step.\n if (this.actionClick.observers.length > 0) {\n this.actionClick.emit({\n event,\n progressHandler: new SkyProgressIndicatorActionClickProgressHandler(\n () => {\n this.progressIndicator.sendMessage({ type });\n }\n ),\n });\n } else {\n this.progressIndicator.sendMessage({ type });\n }\n }\n\n private updateButtonVisibility(change: SkyProgressIndicatorChange): void {\n const isLastStep = change.activeIndex === change.itemStatuses.length - 1;\n const buttonType = this.buttonType;\n\n // Hide the button if all steps are complete\n // (except for the reset button)\n if (buttonType !== 'reset' && change.isComplete) {\n this.isVisible = false;\n return;\n }\n\n if (buttonType === 'finish') {\n this.isVisible = isLastStep;\n return;\n }\n\n // Hide the next button on the last step only if a finish button exists.\n if (\n buttonType === 'next' &&\n isLastStep &&\n this.progressIndicator.hasFinishButton\n ) {\n this.isVisible = false;\n return;\n }\n\n this.isVisible = true;\n }\n}\n","<button\n *ngIf=\"isVisible\"\n class=\"sky-btn\"\n type=\"button\"\n [disabled]=\"disabled\"\n [ngClass]=\"cssClassNames\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-compact': 'default',\n 'sky-btn-link': 'modern'\n }\"\n (click)=\"onClick($event)\"\n>\n {{ buttonText || (buttonLabelResourceString | skyLibResources) }}\n</button>\n"]}
1
+ {"version":3,"file":"progress-indicator-nav-button.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.ts","../../../../../../../../../libs/components/progress-indicator/src/lib/modules/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QAChC,IAAI,UAAU,KAAK,OAAO,IAAI,MAAM,CAAC,UAAU,EAAE;YAC/C,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,OAAO;SACR;QAED,IAAI,UAAU,KAAK,QAAQ,EAAE;YAC3B,IAAI,CAAC,SAAS,GAAG,UAAU,CAAC;YAC5B,OAAO;SACR;QAED,wEAAwE;QACxE,IACE,UAAU,KAAK,MAAM;YACrB,UAAU;YACV,IAAI,CAAC,iBAAiB,CAAC,eAAe,EACtC;YACA,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,OAAO;SACR;QAED,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACxB,CAAC;;oIArPU,sCAAsC;wHAAtC,sCAAsC,gPC/BnD,+VAcA;4FDiBa,sCAAsC;kBALlD,SAAS;mBAAC;oBACT,QAAQ,EAAE,mCAAmC;oBAC7C,WAAW,EAAE,gDAAgD;oBAC7D,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;0BAgKI,QAAQ;4CAvJJ,UAAU;sBADhB,KAAK;gBASK,UAAU;sBADpB,KAAK;gBAkBK,QAAQ;sBADlB,KAAK;gBA4BK,iBAAiB;sBAD3B,KAAK;gBAmDC,WAAW;sBADjB,MAAM","sourcesContent":["import {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Optional,\n Output,\n} from '@angular/core';\n\nimport { Subject } from 'rxjs';\nimport { distinctUntilChanged, takeUntil } from 'rxjs/operators';\n\nimport { SkyProgressIndicatorComponent } from '../progress-indicator.component';\nimport { SkyProgressIndicatorActionClickArgs } from '../types/progress-indicator-action-click-args';\nimport { SkyProgressIndicatorActionClickProgressHandler } from '../types/progress-indicator-action-click-progress-handler';\nimport { SkyProgressIndicatorChange } from '../types/progress-indicator-change';\nimport { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';\nimport { SkyProgressIndicatorNavButtonType } from '../types/progress-indicator-nav-button-type';\n\n/**\n * Displays a button to navigate the steps in modal wizards. We recommend against using it in\n * passive progress indicators and waterfall progress indicators.\n */\n@Component({\n selector: 'sky-progress-indicator-nav-button',\n templateUrl: './progress-indicator-nav-button.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyProgressIndicatorNavButtonComponent\n implements AfterViewInit, OnDestroy\n{\n /**\n * Specifies the label to display on the nav button.\n * @default \"Next\"\n */\n @Input()\n public buttonText: string;\n\n /**\n * Specifies the type of nav button to include.\n * The valid options are `\"finish\"`, `\"next\"`, `\"previous\"`, and `\"reset\"`.\n * @default \"next\"\n */\n @Input()\n public set buttonType(value: SkyProgressIndicatorNavButtonType) {\n this._buttonType = value;\n }\n\n public get buttonType(): SkyProgressIndicatorNavButtonType {\n if (this._buttonType === undefined) {\n return 'next';\n }\n\n return this._buttonType;\n }\n\n /**\n * Indicates whether to disable the nav button.\n * @default false\n */\n @Input()\n public set disabled(value: boolean) {\n this._disabled = value;\n this.changeDetector.markForCheck();\n }\n\n public get disabled(): boolean {\n const buttonType = this.buttonType;\n const activeIndex = this.lastProgressChange.activeIndex;\n const isLastStep =\n activeIndex === this.lastProgressChange.itemStatuses.length - 1;\n\n if (buttonType === 'previous' && activeIndex === 0) {\n return true;\n }\n\n if (buttonType === 'next' && isLastStep) {\n return true;\n }\n\n return this._disabled || false;\n }\n\n /**\n * Specifies the progress indicator component to associate with the nav button.\n * @required\n */\n @Input()\n public set progressIndicator(value: SkyProgressIndicatorComponent) {\n this._progressIndicator = value;\n\n if (value) {\n if (this.buttonType === 'finish') {\n // The `hasFinishButton` field was added to support legacy API.\n // Some implementations only include a next button; we cannot\n // assume that every implementation includes both a finish button and a next button.\n this._progressIndicator.hasFinishButton = true;\n }\n\n this._progressIndicator.progressChanges\n .pipe(distinctUntilChanged(), takeUntil(this.ngUnsubscribe))\n .subscribe((change: SkyProgressIndicatorChange) => {\n this.lastProgressChange = change;\n this.updateButtonVisibility(change);\n });\n } else {\n if (!this.parentTimeout) {\n this.parentTimeout = window.setTimeout(() => {\n /* istanbul ignore else */\n if (!this.progressIndicator) {\n throw new Error(\n 'The `<sky-progress-indicator-nav-button>` component requires a reference to ' +\n 'the `<sky-progress-indicator>` component it controls. For example:\\n' +\n '<sky-progress-indicator\\n' +\n ' #myProgressIndicator\\n' +\n '>\\n' +\n '</sky-progress-indicator>\\n' +\n '<sky-progress-indicator-nav-button\\n' +\n ' [progressIndicator]=\"myProgressIndicator\"\\n' +\n '>\\n' +\n '</sky-progress-indicator-nav-button>'\n );\n }\n }, 50);\n }\n }\n }\n\n public get progressIndicator(): SkyProgressIndicatorComponent {\n return this._progressIndicator;\n }\n\n /**\n * Fires when users select the nav button and emits a `SkyProgressIndicatorActionClickArgs`\n * object that is passed into the callback function to allow consumers to decide whether\n * the button’s action should complete successfully.\n */\n @Output()\n public actionClick = new EventEmitter<SkyProgressIndicatorActionClickArgs>();\n\n public get cssClassNames(): string {\n const buttonType = this.buttonType;\n\n const classNames = [`sky-progress-indicator-nav-button-${this.buttonType}`];\n\n switch (buttonType) {\n case 'next':\n case 'finish':\n classNames.push('sky-btn-primary');\n break;\n\n case 'reset':\n classNames.push('sky-btn-link');\n break;\n\n default:\n classNames.push('sky-btn-default');\n break;\n }\n\n return classNames.join(' ');\n }\n\n public get buttonLabelResourceString(): string {\n return `skyux_progress_indicator_navigator_${this.buttonType}`;\n }\n\n public set isVisible(value: boolean) {\n this._isVisible = value;\n this.changeDetector.markForCheck();\n }\n\n public get isVisible(): boolean {\n return this._isVisible || false;\n }\n\n private lastProgressChange: SkyProgressIndicatorChange;\n private ngUnsubscribe = new Subject<void>();\n private parentTimeout: number;\n\n private _buttonType: SkyProgressIndicatorNavButtonType;\n private _disabled: boolean;\n private _isVisible: boolean;\n private _progressIndicator: SkyProgressIndicatorComponent;\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n @Optional() private parentComponent: SkyProgressIndicatorComponent\n ) {}\n\n public ngAfterViewInit(): void {\n if (!this.progressIndicator && this.parentComponent) {\n this.progressIndicator = this.parentComponent;\n } else if (!this.progressIndicator) {\n this.progressIndicator = undefined;\n }\n }\n\n public ngOnDestroy(): void {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n this.actionClick.complete();\n }\n\n public onClick(event: MouseEvent): void {\n event.preventDefault();\n\n let type: SkyProgressIndicatorMessageType;\n\n switch (this.buttonType) {\n case 'finish':\n type = SkyProgressIndicatorMessageType.Finish;\n break;\n\n case 'next':\n type = SkyProgressIndicatorMessageType.Progress;\n break;\n\n case 'previous':\n type = SkyProgressIndicatorMessageType.Regress;\n break;\n\n case 'reset':\n type = SkyProgressIndicatorMessageType.Reset;\n break;\n\n default:\n break;\n }\n\n // If the consumer has subscribed to the `actionClick` event,\n // allow them to decide when to advance to the next step.\n if (this.actionClick.observers.length > 0) {\n this.actionClick.emit({\n event,\n progressHandler: new SkyProgressIndicatorActionClickProgressHandler(\n () => {\n this.progressIndicator.sendMessage({ type });\n }\n ),\n });\n } else {\n this.progressIndicator.sendMessage({ type });\n }\n }\n\n private updateButtonVisibility(change: SkyProgressIndicatorChange): void {\n const isLastStep = change.activeIndex === change.itemStatuses.length - 1;\n const buttonType = this.buttonType;\n\n // Hide the button if all steps are complete\n // (except for the reset button)\n if (buttonType !== 'reset' && change.isComplete) {\n this.isVisible = false;\n return;\n }\n\n if (buttonType === 'finish') {\n this.isVisible = isLastStep;\n return;\n }\n\n // Hide the next button on the last step only if a finish button exists.\n if (\n buttonType === 'next' &&\n isLastStep &&\n this.progressIndicator.hasFinishButton\n ) {\n this.isVisible = false;\n return;\n }\n\n this.isVisible = true;\n }\n}\n","<button\n *ngIf=\"isVisible\"\n class=\"sky-btn\"\n type=\"button\"\n [disabled]=\"disabled\"\n [ngClass]=\"cssClassNames\"\n [skyThemeClass]=\"{\n 'sky-margin-inline-compact': 'default',\n 'sky-btn-link': 'modern'\n }\"\n (click)=\"onClick($event)\"\n>\n {{ buttonText || (buttonLabelResourceString | skyLibResources) }}\n</button>\n"]}
@@ -1,6 +1,6 @@
1
1
  import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, Input, Output, } from '@angular/core';
2
- import { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';
3
2
  import { SkyProgressIndicatorComponent } from '../progress-indicator.component';
3
+ import { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Displays a button to mark all items in the progress indicator as incomplete and set the
@@ -1 +1 @@
1
- {"version":3,"file":"progress-indicator-reset-button.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts","../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;AAE3F,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;;AAEhF;;;;GAIG;AAMH,MAAM,OAAO,wCAAwC;IA+BnD,YAAoB,cAAiC;QAAjC,mBAAc,GAAd,cAAc,CAAmB;QATrD;;;WAGG;QAEI,eAAU,GAAG,IAAI,YAAY,EAAO,CAAC;QAK1C,OAAO,CAAC,IAAI,CACV,iFAAiF;YAC/E,2FAA2F;YAC3F,8BAA8B,CACjC,CAAC;IACJ,CAAC;IApCD;;;OAGG;IACH,IACW,QAAQ,CAAC,KAAc;QAChC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IACjC,CAAC;IA0BM,WAAW;QAChB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAEvB,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC;YACjC,IAAI,EAAE,+BAA+B,CAAC,KAAK;SAC5C,CAAC,CAAC;IACL,CAAC;;sIAjDU,wCAAwC;0HAAxC,wCAAwC,4LCxBrD,+JAQA;4FDgBa,wCAAwC;kBALpD,SAAS;mBAAC;oBACT,QAAQ,EAAE,qCAAqC;oBAC/C,WAAW,EAAE,kDAAkD;oBAC/D,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;wGAOY,QAAQ;sBADlB,KAAK;gBAeC,iBAAiB;sBADvB,KAAK;gBAQC,UAAU;sBADhB,MAAM","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\n\nimport { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';\n\nimport { SkyProgressIndicatorComponent } from '../progress-indicator.component';\n\n/**\n * Displays a button to mark all items in the progress indicator as incomplete and set the\n * first item as the active item. The steps after the active item remain incomplete until\n * users reach them in their sequential order.\n */\n@Component({\n selector: 'sky-progress-indicator-reset-button',\n templateUrl: './progress-indicator-reset-button.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyProgressIndicatorResetButtonComponent implements OnDestroy {\n /**\n * Indicates whether to disable the reset button.\n * @default false\n */\n @Input()\n public set disabled(value: boolean) {\n this._disabled = value;\n this.changeDetector.markForCheck();\n }\n\n public get disabled(): boolean {\n return this._disabled || false;\n }\n\n /**\n * Specifies the progress indicator component to associate with the reset button.\n * @required\n */\n @Input()\n public progressIndicator: SkyProgressIndicatorComponent;\n\n /**\n * Fires when users select the reset button that marks all items as incomplete and sets the\n * first item as the active item.\n */\n @Output()\n public resetClick = new EventEmitter<any>();\n\n private _disabled: boolean;\n\n constructor(private changeDetector: ChangeDetectorRef) {\n console.warn(\n '[Deprecation warning] The `<sky-progress-indicator-reset-button>` component is ' +\n 'deprecated. Please use the `<sky-progress-indicator-nav-button>` component instead, with ' +\n '`buttonType` set to \"reset\".'\n );\n }\n\n public ngOnDestroy(): void {\n this.resetClick.complete();\n }\n\n public onClick(): void {\n this.resetClick.emit();\n\n this.progressIndicator.sendMessage({\n type: SkyProgressIndicatorMessageType.Reset,\n });\n }\n}\n","<button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"onClick()\"\n>\n <ng-content></ng-content>\n</button>\n"]}
1
+ {"version":3,"file":"progress-indicator-reset-button.component.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.ts","../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.html"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,KAAK,EAEL,MAAM,GACP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,6BAA6B,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,0CAA0C,CAAC;;AAE3F;;;;GAIG;AAMH,MAAM,OAAO,wCAAwC;IA+BnD,YAAoB,cAAiC;QAAjC,mBAAc,GAAd,cAAc,CAAmB;QATrD;;;WAGG;QAEI,eAAU,GAAG,IAAI,YAAY,EAAO,CAAC;QAK1C,OAAO,CAAC,IAAI,CACV,iFAAiF;YAC/E,2FAA2F;YAC3F,8BAA8B,CACjC,CAAC;IACJ,CAAC;IApCD;;;OAGG;IACH,IACW,QAAQ,CAAC,KAAc;QAChC,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,cAAc,CAAC,YAAY,EAAE,CAAC;IACrC,CAAC;IAED,IAAW,QAAQ;QACjB,OAAO,IAAI,CAAC,SAAS,IAAI,KAAK,CAAC;IACjC,CAAC;IA0BM,WAAW;QAChB,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,CAAC;IAC7B,CAAC;IAEM,OAAO;QACZ,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;QAEvB,IAAI,CAAC,iBAAiB,CAAC,WAAW,CAAC;YACjC,IAAI,EAAE,+BAA+B,CAAC,KAAK;SAC5C,CAAC,CAAC;IACL,CAAC;;sIAjDU,wCAAwC;0HAAxC,wCAAwC,4LCvBrD,+JAQA;4FDea,wCAAwC;kBALpD,SAAS;mBAAC;oBACT,QAAQ,EAAE,qCAAqC;oBAC/C,WAAW,EAAE,kDAAkD;oBAC/D,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;wGAOY,QAAQ;sBADlB,KAAK;gBAeC,iBAAiB;sBADvB,KAAK;gBAQC,UAAU;sBADhB,MAAM","sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnDestroy,\n Output,\n} from '@angular/core';\n\nimport { SkyProgressIndicatorComponent } from '../progress-indicator.component';\nimport { SkyProgressIndicatorMessageType } from '../types/progress-indicator-message-type';\n\n/**\n * Displays a button to mark all items in the progress indicator as incomplete and set the\n * first item as the active item. The steps after the active item remain incomplete until\n * users reach them in their sequential order.\n */\n@Component({\n selector: 'sky-progress-indicator-reset-button',\n templateUrl: './progress-indicator-reset-button.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyProgressIndicatorResetButtonComponent implements OnDestroy {\n /**\n * Indicates whether to disable the reset button.\n * @default false\n */\n @Input()\n public set disabled(value: boolean) {\n this._disabled = value;\n this.changeDetector.markForCheck();\n }\n\n public get disabled(): boolean {\n return this._disabled || false;\n }\n\n /**\n * Specifies the progress indicator component to associate with the reset button.\n * @required\n */\n @Input()\n public progressIndicator: SkyProgressIndicatorComponent;\n\n /**\n * Fires when users select the reset button that marks all items as incomplete and sets the\n * first item as the active item.\n */\n @Output()\n public resetClick = new EventEmitter<any>();\n\n private _disabled: boolean;\n\n constructor(private changeDetector: ChangeDetectorRef) {\n console.warn(\n '[Deprecation warning] The `<sky-progress-indicator-reset-button>` component is ' +\n 'deprecated. Please use the `<sky-progress-indicator-nav-button>` component instead, with ' +\n '`buttonType` set to \"reset\".'\n );\n }\n\n public ngOnDestroy(): void {\n this.resetClick.complete();\n }\n\n public onClick(): void {\n this.resetClick.emit();\n\n this.progressIndicator.sendMessage({\n type: SkyProgressIndicatorMessageType.Reset,\n });\n }\n}\n","<button\n class=\"sky-btn sky-btn-link\"\n type=\"button\"\n [disabled]=\"disabled\"\n (click)=\"onClick()\"\n>\n <ng-content></ng-content>\n</button>\n"]}
@@ -1,7 +1,7 @@
1
1
  import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, Optional, } from '@angular/core';
2
2
  import { SkyThemeService } from '@skyux/theme';
3
- import { takeUntil } from 'rxjs/operators';
4
3
  import { Subject } from 'rxjs';
4
+ import { takeUntil } from 'rxjs/operators';
5
5
  import { SkyProgressIndicatorItemStatus } from '../types/progress-indicator-item-status';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@skyux/theme";