@skyux/progress-indicator 5.7.2 → 6.0.0-beta.2

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 (64) hide show
  1. package/esm2020/index.mjs +18 -0
  2. package/esm2020/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.mjs +69 -0
  3. package/esm2020/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.mjs +219 -0
  4. package/esm2020/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.mjs +55 -0
  5. package/esm2020/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.mjs +81 -0
  6. package/esm2020/lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component.mjs +15 -0
  7. package/esm2020/lib/modules/progress-indicator/progress-indicator.component.mjs +312 -0
  8. package/esm2020/lib/modules/progress-indicator/progress-indicator.module.mjs +65 -0
  9. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-action-click-args.mjs +2 -0
  10. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.mjs +14 -0
  11. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-change.mjs +2 -0
  12. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.mjs +2 -0
  13. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-item-status.mjs +20 -0
  14. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-message-type.mjs +28 -0
  15. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-message.mjs +2 -0
  16. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-mode.mjs +16 -0
  17. package/esm2020/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.mjs +2 -0
  18. package/esm2020/lib/modules/shared/sky-progress-indicator-resources.module.mjs +50 -0
  19. package/esm2020/skyux-progress-indicator.mjs +5 -0
  20. package/fesm2015/skyux-progress-indicator.mjs +905 -0
  21. package/fesm2015/skyux-progress-indicator.mjs.map +1 -0
  22. package/{fesm2015/skyux-progress-indicator.js → fesm2020/skyux-progress-indicator.mjs} +36 -62
  23. package/fesm2020/skyux-progress-indicator.mjs.map +1 -0
  24. package/package.json +29 -13
  25. package/bundles/skyux-progress-indicator.umd.js +0 -1075
  26. package/esm2015/index.js +0 -18
  27. package/esm2015/index.js.map +0 -1
  28. package/esm2015/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js +0 -74
  29. package/esm2015/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js.map +0 -1
  30. package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js +0 -223
  31. package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js.map +0 -1
  32. package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js +0 -59
  33. package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js.map +0 -1
  34. package/esm2015/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js +0 -84
  35. package/esm2015/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js.map +0 -1
  36. package/esm2015/lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component.js +0 -20
  37. package/esm2015/lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component.js.map +0 -1
  38. package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js +0 -317
  39. package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js.map +0 -1
  40. package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js +0 -65
  41. package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js.map +0 -1
  42. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-args.js +0 -2
  43. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-args.js.map +0 -1
  44. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js +0 -14
  45. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js.map +0 -1
  46. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-change.js +0 -2
  47. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-change.js.map +0 -1
  48. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.js +0 -2
  49. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.js.map +0 -1
  50. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-item-status.js +0 -20
  51. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-item-status.js.map +0 -1
  52. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message-type.js +0 -28
  53. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message-type.js.map +0 -1
  54. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message.js +0 -2
  55. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message.js.map +0 -1
  56. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-mode.js +0 -16
  57. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-mode.js.map +0 -1
  58. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.js +0 -2
  59. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.js.map +0 -1
  60. package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js +0 -50
  61. package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js.map +0 -1
  62. package/esm2015/skyux-progress-indicator.js +0 -5
  63. package/esm2015/skyux-progress-indicator.js.map +0 -1
  64. package/fesm2015/skyux-progress-indicator.js.map +0 -1
@@ -1,1075 +0,0 @@
1
- (function (global, factory) {
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
-
7
- function _interopNamespace(e) {
8
- if (e && e.__esModule) return e;
9
- var n = Object.create(null);
10
- if (e) {
11
- Object.keys(e).forEach(function (k) {
12
- if (k !== 'default') {
13
- var d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: function () { return e[k]; }
17
- });
18
- }
19
- });
20
- }
21
- n["default"] = e;
22
- return Object.freeze(n);
23
- }
24
-
25
- var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
26
- var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
27
- var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
- var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
30
- var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
31
-
32
- /**
33
- * NOTICE: DO NOT MODIFY THIS FILE!
34
- * The contents of this file were automatically generated by
35
- * the 'ng generate @skyux/i18n:lib-resources-module lib/modules/shared/sky-progress-indicator' schematic.
36
- * To update this file, simply rerun the command.
37
- */
38
- var RESOURCES = {
39
- 'EN-US': {
40
- skyux_progress_indicator_navigator_finish: { message: 'Finish' },
41
- skyux_progress_indicator_navigator_next: { message: 'Next' },
42
- skyux_progress_indicator_navigator_previous: { message: 'Previous' },
43
- skyux_progress_indicator_navigator_reset: { message: 'Reset' },
44
- },
45
- };
46
- var SkyProgressIndicatorResourcesProvider = /** @class */ (function () {
47
- function SkyProgressIndicatorResourcesProvider() {
48
- }
49
- SkyProgressIndicatorResourcesProvider.prototype.getString = function (localeInfo, name) {
50
- return i4.getLibStringForLocale(RESOURCES, localeInfo.locale, name);
51
- };
52
- return SkyProgressIndicatorResourcesProvider;
53
- }());
54
- /**
55
- * Import into any component library module that needs to use resource strings.
56
- */
57
- var SkyProgressIndicatorResourcesModule = /** @class */ (function () {
58
- function SkyProgressIndicatorResourcesModule() {
59
- }
60
- return SkyProgressIndicatorResourcesModule;
61
- }());
62
- SkyProgressIndicatorResourcesModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorResourcesModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
63
- SkyProgressIndicatorResourcesModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorResourcesModule, exports: [i4.SkyI18nModule] });
64
- SkyProgressIndicatorResourcesModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorResourcesModule, providers: [
65
- {
66
- provide: i4.SKY_LIB_RESOURCES_PROVIDERS,
67
- useClass: SkyProgressIndicatorResourcesProvider,
68
- multi: true,
69
- },
70
- ], imports: [i4.SkyI18nModule] });
71
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorResourcesModule, decorators: [{
72
- type: i0.NgModule,
73
- args: [{
74
- exports: [i4.SkyI18nModule],
75
- providers: [
76
- {
77
- provide: i4.SKY_LIB_RESOURCES_PROVIDERS,
78
- useClass: SkyProgressIndicatorResourcesProvider,
79
- multi: true,
80
- },
81
- ],
82
- }]
83
- }] });
84
-
85
- exports.SkyProgressIndicatorItemStatus = void 0;
86
- (function (SkyProgressIndicatorItemStatus) {
87
- /**
88
- * Indicates the item is active.
89
- */
90
- SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Active"] = 0] = "Active";
91
- /**
92
- * Indicates the item is complete.
93
- */
94
- SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Complete"] = 1] = "Complete";
95
- /**
96
- * Indicates the item is incomplete.
97
- */
98
- SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Incomplete"] = 2] = "Incomplete";
99
- /**
100
- * Indicates the item is pending.
101
- */
102
- SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Pending"] = 3] = "Pending";
103
- })(exports.SkyProgressIndicatorItemStatus || (exports.SkyProgressIndicatorItemStatus = {}));
104
-
105
- /**
106
- * Specifies the content to display in the status marker.
107
- * @internal
108
- */
109
- var SkyProgressIndicatorStatusMarkerComponent = /** @class */ (function () {
110
- function SkyProgressIndicatorStatusMarkerComponent(changeDetector, themeSvc) {
111
- var _this = this;
112
- this.changeDetector = changeDetector;
113
- this.ngUnsubscribe = new rxjs.Subject();
114
- // Update icons when theme changes.
115
- themeSvc === null || themeSvc === void 0 ? void 0 : themeSvc.settingsChange.pipe(operators.takeUntil(this.ngUnsubscribe)).subscribe(function () {
116
- _this.changeDetector.markForCheck();
117
- });
118
- }
119
- Object.defineProperty(SkyProgressIndicatorStatusMarkerComponent.prototype, "displayMode", {
120
- get: function () {
121
- if (this._displayMode === undefined) {
122
- return 'vertical';
123
- }
124
- return this._displayMode;
125
- },
126
- set: function (value) {
127
- this._displayMode = value;
128
- },
129
- enumerable: false,
130
- configurable: true
131
- });
132
- Object.defineProperty(SkyProgressIndicatorStatusMarkerComponent.prototype, "status", {
133
- set: function (value) {
134
- this._status = value;
135
- this.changeDetector.markForCheck();
136
- },
137
- enumerable: false,
138
- configurable: true
139
- });
140
- Object.defineProperty(SkyProgressIndicatorStatusMarkerComponent.prototype, "cssClassNames", {
141
- get: function () {
142
- var classNames = [
143
- "sky-progress-indicator-status-marker-mode-" + this.displayMode,
144
- "sky-progress-indicator-status-marker-status-" + this.statusName,
145
- ];
146
- return classNames.join(' ');
147
- },
148
- enumerable: false,
149
- configurable: true
150
- });
151
- Object.defineProperty(SkyProgressIndicatorStatusMarkerComponent.prototype, "statusName", {
152
- get: function () {
153
- var name;
154
- /* tslint:disable-next-line:switch-default */
155
- switch (this._status) {
156
- case exports.SkyProgressIndicatorItemStatus.Active:
157
- name = 'active';
158
- break;
159
- case exports.SkyProgressIndicatorItemStatus.Complete:
160
- name = 'complete';
161
- break;
162
- case exports.SkyProgressIndicatorItemStatus.Incomplete:
163
- name = 'incomplete';
164
- break;
165
- case exports.SkyProgressIndicatorItemStatus.Pending:
166
- name = 'pending';
167
- break;
168
- }
169
- return name;
170
- },
171
- enumerable: false,
172
- configurable: true
173
- });
174
- SkyProgressIndicatorStatusMarkerComponent.prototype.ngOnDestroy = function () {
175
- this.ngUnsubscribe.next();
176
- this.ngUnsubscribe.complete();
177
- };
178
- return SkyProgressIndicatorStatusMarkerComponent;
179
- }());
180
- SkyProgressIndicatorStatusMarkerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorStatusMarkerComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace.SkyThemeService, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
181
- SkyProgressIndicatorStatusMarkerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorStatusMarkerComponent, selector: "sky-progress-indicator-status-marker", inputs: { displayMode: "displayMode", status: "status" }, ngImport: i0__namespace, template: "<div\n class=\"sky-progress-indicator-status-marker\"\n role=\"presentation\"\n [ngClass]=\"cssClassNames\"\n>\n <div\n *skyThemeIf=\"'default'\"\n class=\"sky-progress-indicator-status-marker-icon\"\n >\n <sky-icon *ngIf=\"statusName === 'complete'\" icon=\"check\"> </sky-icon>\n </div>\n <div *skyThemeIf=\"'modern'\" class=\"sky-progress-indicator-status-marker-icon\">\n <sky-icon *ngIf=\"statusName === 'complete'\" icon=\"check\" iconType=\"skyux\">\n </sky-icon>\n </div>\n <div class=\"sky-progress-indicator-status-marker-line\"></div>\n</div>\n", styles: [".sky-progress-indicator-status-marker{display:flex;height:100%}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical{flex-basis:15px;flex-grow:0;flex-direction:column;margin-right:15px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon{margin-top:1px;width:15px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon>::ng-deep sky-icon{margin-left:-1px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-line{margin:0 auto;width:1px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal{flex-direction:row;width:100%;padding-left:5px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-icon{height:15px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-line{margin:auto 0;height:1px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-icon{border:0;margin-right:5px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-active .sky-progress-indicator-status-marker-icon{position:relative}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-active .sky-progress-indicator-status-marker-icon:before{content:\"\";display:block;width:5px;height:1px;background-color:#5a9936;position:absolute;left:-7px;top:5px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-incomplete .sky-progress-indicator-status-marker-icon{position:relative}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-incomplete .sky-progress-indicator-status-marker-icon:before{content:\"\";display:block;width:5px;height:1px;background-color:#cdcfd2;position:absolute;left:-7px;top:5px}.sky-progress-indicator-status-marker-icon{border-radius:15px;border:2px solid #cdcfd2;flex:0 0 15px}.sky-progress-indicator-status-marker-line{background-color:#cdcfd2;flex:1 0 auto}.sky-progress-indicator-status-marker-status-active .sky-progress-indicator-status-marker-icon{background-color:#5a9936;border-color:transparent}.sky-progress-indicator-status-marker-status-pending .sky-progress-indicator-status-marker-icon{border-color:#5a9936}.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-icon{border-color:transparent;color:#5a9936;margin-top:0}.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-icon>::ng-deep sky-icon{display:inline-flex;vertical-align:top}.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-line{background-color:#5a9936}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical{position:relative;top:3px;margin-right:20px}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon{width:17px}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-icon{height:17px;top:1px}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker-icon{border-radius:17px;flex:0 0 17px}.sky-theme-modern .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical{position:relative;top:3px;margin-right:20px}.sky-theme-modern .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon{width:17px}.sky-theme-modern .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-icon{height:17px;top:1px}.sky-theme-modern .sky-progress-indicator-status-marker-icon{border-radius:17px;flex:0 0 17px}\n"], components: [{ type: i2__namespace.λ4, selector: "sky-icon", inputs: ["icon", "iconType", "size", "fixedWidth", "variant"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.λ3, selector: "[skyThemeIf]", inputs: ["skyThemeIf"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
182
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorStatusMarkerComponent, decorators: [{
183
- type: i0.Component,
184
- args: [{
185
- selector: 'sky-progress-indicator-status-marker',
186
- template: "<div\n class=\"sky-progress-indicator-status-marker\"\n role=\"presentation\"\n [ngClass]=\"cssClassNames\"\n>\n <div\n *skyThemeIf=\"'default'\"\n class=\"sky-progress-indicator-status-marker-icon\"\n >\n <sky-icon *ngIf=\"statusName === 'complete'\" icon=\"check\"> </sky-icon>\n </div>\n <div *skyThemeIf=\"'modern'\" class=\"sky-progress-indicator-status-marker-icon\">\n <sky-icon *ngIf=\"statusName === 'complete'\" icon=\"check\" iconType=\"skyux\">\n </sky-icon>\n </div>\n <div class=\"sky-progress-indicator-status-marker-line\"></div>\n</div>\n",
187
- styles: [".sky-progress-indicator-status-marker{display:flex;height:100%}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical{flex-basis:15px;flex-grow:0;flex-direction:column;margin-right:15px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon{margin-top:1px;width:15px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon>::ng-deep sky-icon{margin-left:-1px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-line{margin:0 auto;width:1px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal{flex-direction:row;width:100%;padding-left:5px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-icon{height:15px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-line{margin:auto 0;height:1px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-icon{border:0;margin-right:5px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-active .sky-progress-indicator-status-marker-icon{position:relative}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-active .sky-progress-indicator-status-marker-icon:before{content:\"\";display:block;width:5px;height:1px;background-color:#5a9936;position:absolute;left:-7px;top:5px}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-incomplete .sky-progress-indicator-status-marker-icon{position:relative}.sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal.sky-progress-indicator-status-marker-status-incomplete .sky-progress-indicator-status-marker-icon:before{content:\"\";display:block;width:5px;height:1px;background-color:#cdcfd2;position:absolute;left:-7px;top:5px}.sky-progress-indicator-status-marker-icon{border-radius:15px;border:2px solid #cdcfd2;flex:0 0 15px}.sky-progress-indicator-status-marker-line{background-color:#cdcfd2;flex:1 0 auto}.sky-progress-indicator-status-marker-status-active .sky-progress-indicator-status-marker-icon{background-color:#5a9936;border-color:transparent}.sky-progress-indicator-status-marker-status-pending .sky-progress-indicator-status-marker-icon{border-color:#5a9936}.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-icon{border-color:transparent;color:#5a9936;margin-top:0}.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-icon>::ng-deep sky-icon{display:inline-flex;vertical-align:top}.sky-progress-indicator-status-marker-status-complete .sky-progress-indicator-status-marker-line{background-color:#5a9936}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical{position:relative;top:3px;margin-right:20px}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon{width:17px}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-icon{height:17px;top:1px}:host-context(.sky-theme-modern) .sky-progress-indicator-status-marker-icon{border-radius:17px;flex:0 0 17px}.sky-theme-modern .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical{position:relative;top:3px;margin-right:20px}.sky-theme-modern .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-vertical .sky-progress-indicator-status-marker-icon{width:17px}.sky-theme-modern .sky-progress-indicator-status-marker.sky-progress-indicator-status-marker-mode-horizontal .sky-progress-indicator-status-marker-icon{height:17px;top:1px}.sky-theme-modern .sky-progress-indicator-status-marker-icon{border-radius:17px;flex:0 0 17px}\n"],
188
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
189
- }]
190
- }], ctorParameters: function () {
191
- return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace.SkyThemeService, decorators: [{
192
- type: i0.Optional
193
- }] }];
194
- }, propDecorators: { displayMode: [{
195
- type: i0.Input
196
- }], status: [{
197
- type: i0.Input
198
- }] } });
199
-
200
- /**
201
- * Specifies a step to include in the progress indicator. Each step requires a label,
202
- * and you can also specify step details within the `sky-progress-indicator-item` element.
203
- */
204
- var SkyProgressIndicatorItemComponent = /** @class */ (function () {
205
- function SkyProgressIndicatorItemComponent(changeDetector) {
206
- this.changeDetector = changeDetector;
207
- this.isVisible = false;
208
- this.showStatusMarker = true;
209
- this.showTitle = true;
210
- }
211
- Object.defineProperty(SkyProgressIndicatorItemComponent.prototype, "formattedTitle", {
212
- get: function () {
213
- return "" + this.titlePrefix + this.title;
214
- },
215
- enumerable: false,
216
- configurable: true
217
- });
218
- Object.defineProperty(SkyProgressIndicatorItemComponent.prototype, "status", {
219
- get: function () {
220
- /* istanbul ignore next */
221
- if (this._status === undefined) {
222
- return exports.SkyProgressIndicatorItemStatus.Incomplete;
223
- }
224
- return this._status;
225
- },
226
- set: function (value) {
227
- if (value === this._status) {
228
- return;
229
- }
230
- this._status = value;
231
- this.changeDetector.markForCheck();
232
- },
233
- enumerable: false,
234
- configurable: true
235
- });
236
- Object.defineProperty(SkyProgressIndicatorItemComponent.prototype, "statusName", {
237
- get: function () {
238
- var name;
239
- /* tslint:disable-next-line:switch-default */
240
- switch (this.status) {
241
- case exports.SkyProgressIndicatorItemStatus.Active:
242
- name = 'active';
243
- break;
244
- case exports.SkyProgressIndicatorItemStatus.Complete:
245
- name = 'complete';
246
- break;
247
- case exports.SkyProgressIndicatorItemStatus.Incomplete:
248
- name = 'incomplete';
249
- break;
250
- case exports.SkyProgressIndicatorItemStatus.Pending:
251
- name = 'pending';
252
- break;
253
- }
254
- return name;
255
- },
256
- enumerable: false,
257
- configurable: true
258
- });
259
- SkyProgressIndicatorItemComponent.prototype.showStepNumber = function (step) {
260
- this.titlePrefix = step + " - ";
261
- };
262
- SkyProgressIndicatorItemComponent.prototype.hideStepNumber = function () {
263
- this.titlePrefix = '';
264
- };
265
- return SkyProgressIndicatorItemComponent;
266
- }());
267
- SkyProgressIndicatorItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorItemComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
268
- SkyProgressIndicatorItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorItemComponent, selector: "sky-progress-indicator-item", inputs: { title: "title" }, ngImport: i0__namespace, 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: SkyProgressIndicatorStatusMarkerComponent, selector: "sky-progress-indicator-status-marker", inputs: ["displayMode", "status"] }], directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
269
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorItemComponent, decorators: [{
270
- type: i0.Component,
271
- args: [{
272
- selector: 'sky-progress-indicator-item',
273
- 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",
274
- 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"],
275
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
276
- }]
277
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { title: [{
278
- type: i0.Input
279
- }] } });
280
-
281
- /**
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
- */
285
- var SkyProgressIndicatorActionClickProgressHandler = /** @class */ (function () {
286
- /**
287
- *
288
- * @param advance Advances the progress indicator to the next step.
289
- */
290
- function SkyProgressIndicatorActionClickProgressHandler(advance) {
291
- this.advance = advance;
292
- }
293
- return SkyProgressIndicatorActionClickProgressHandler;
294
- }());
295
-
296
- exports.SkyProgressIndicatorMessageType = void 0;
297
- (function (SkyProgressIndicatorMessageType) {
298
- /**
299
- * Indicates that the current step is complete.
300
- * This completes the active item and moves to the next item.
301
- */
302
- SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Progress"] = 0] = "Progress";
303
- /**
304
- * Indicates that progress should return to the previous step.
305
- * This moves from the active item to the item that precedes it.
306
- */
307
- SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Regress"] = 1] = "Regress";
308
- /**
309
- * Indicates that progress is incomplete.
310
- * This marks all items as incomplete and sets the first item as the active item.
311
- */
312
- SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Reset"] = 2] = "Reset";
313
- /**
314
- * Indicates that progress is complete.
315
- * This marks all items as complete and sets the last item as the active item.
316
- */
317
- SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Finish"] = 3] = "Finish";
318
- /**
319
- * Indicates that progress should move to the item indicated by the `data.activeIndex` property.
320
- */
321
- SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["GoTo"] = 4] = "GoTo";
322
- })(exports.SkyProgressIndicatorMessageType || (exports.SkyProgressIndicatorMessageType = {}));
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
-
340
- var SkyProgressIndicatorComponent = /** @class */ (function () {
341
- function SkyProgressIndicatorComponent(changeDetector, windowRef) {
342
- this.changeDetector = changeDetector;
343
- this.windowRef = windowRef;
344
- /**
345
- * Fires when the progress indicator changes the status of an item.
346
- */
347
- this.progressChanges = new i0.EventEmitter();
348
- this.initialized = false;
349
- this.ngUnsubscribe = new rxjs.Subject();
350
- this._messageStream = new rxjs.Subject();
351
- }
352
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "displayMode", {
353
- get: function () {
354
- if (this._displayMode === undefined) {
355
- return 'vertical';
356
- }
357
- return this._displayMode;
358
- },
359
- /**
360
- * Specifies whether to display the progress indicator vertically or horizontally.
361
- * For [passive progress indicators](https://developer.blackbaud.com/skyux-progress-indicator/docs/passive-indicator)
362
- * and [waterfall progress indicators](https://developer.blackbaud.com/skyux/components/progress-indicator/waterfall-progress-indicator),
363
- * use the vertical display mode. For [modal wizards](https://developer.blackbaud.com/skyux/components/wizard),
364
- * use the horizontal display mode.
365
- * @default "vertical"
366
- */
367
- set: function (value) {
368
- this._displayMode = value;
369
- },
370
- enumerable: false,
371
- configurable: true
372
- });
373
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "isPassive", {
374
- get: function () {
375
- // Currently, passive mode is not supported for horizontal displays.
376
- if (this.displayModeResolved === 'horizontal') {
377
- return false;
378
- }
379
- return this._isPassive || false;
380
- },
381
- /**
382
- * Indicates whether the progress indicator is passive. Passive progress indicators inform users of
383
- * progress that concerns them but that they are not responsible for, and they must use the vertical display mode.
384
- * @default false
385
- */
386
- set: function (value) {
387
- this._isPassive = value;
388
- },
389
- enumerable: false,
390
- configurable: true
391
- });
392
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "messageStream", {
393
- /**
394
- * Specifies an observable of `SkyProgressIndicatorMessage` that determines the status to
395
- * display for items in the progress indicator. The message stream is a queue of
396
- * commanding messages to change the state of the progress indicator based on the message type.
397
- */
398
- set: function (value) {
399
- this._messageStream = value;
400
- this.subscribeToMessageStream();
401
- },
402
- enumerable: false,
403
- configurable: true
404
- });
405
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "startingIndex", {
406
- get: function () {
407
- return this._startingIndex || 0;
408
- },
409
- /**
410
- * Specifies the index for the item to make active when the progress indicator
411
- * loads. All steps that precede the active item are marked as complete, and all steps
412
- * that follow the active item are marked as incomplete.
413
- */
414
- set: function (value) {
415
- this._startingIndex = value;
416
- },
417
- enumerable: false,
418
- configurable: true
419
- });
420
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "cssClassNames", {
421
- get: function () {
422
- var classNames = [
423
- "sky-progress-indicator-mode-" + this.displayModeResolved,
424
- ];
425
- if (this.isPassive) {
426
- classNames.push('sky-progress-indicator-passive');
427
- }
428
- return classNames.join(' ');
429
- },
430
- enumerable: false,
431
- configurable: true
432
- });
433
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "displayModeResolved", {
434
- /**
435
- * Returns the newly-supported string union type value to be used by the template.
436
- * @internal
437
- */
438
- get: function () {
439
- switch (this.displayMode) {
440
- case exports.SkyProgressIndicatorDisplayMode.Vertical:
441
- case 'vertical':
442
- return 'vertical';
443
- default:
444
- return 'horizontal';
445
- }
446
- },
447
- enumerable: false,
448
- configurable: true
449
- });
450
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "hasFinishButton", {
451
- get: function () {
452
- return this._hasFinishButton || false;
453
- },
454
- set: function (value) {
455
- this._hasFinishButton = value;
456
- },
457
- enumerable: false,
458
- configurable: true
459
- });
460
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "itemStatuses", {
461
- get: function () {
462
- if (!this.itemComponents) {
463
- return [];
464
- }
465
- return this.itemComponents.map(function (c) { return c.status; });
466
- },
467
- enumerable: false,
468
- configurable: true
469
- });
470
- Object.defineProperty(SkyProgressIndicatorComponent.prototype, "activeIndex", {
471
- get: function () {
472
- return this._activeIndex || 0;
473
- },
474
- set: function (value) {
475
- var lastIndex = this.itemComponents.length - 1;
476
- var newIndex = value;
477
- if (value > lastIndex) {
478
- newIndex = lastIndex;
479
- }
480
- else if (value < 0) {
481
- newIndex = 0;
482
- }
483
- this._activeIndex = newIndex;
484
- },
485
- enumerable: false,
486
- configurable: true
487
- });
488
- SkyProgressIndicatorComponent.prototype.ngOnInit = function () {
489
- this.initialized = true;
490
- this.subscribeToMessageStream();
491
- };
492
- SkyProgressIndicatorComponent.prototype.ngAfterContentInit = function () {
493
- var _this = this;
494
- this.activeIndex = this.startingIndex;
495
- this.updateSteps();
496
- // Note: The delay here is to ensure all change detection on the items has finished. Without
497
- // the delay we receive a changed before checked error for vertical progress indicators
498
- this.itemComponents.changes
499
- .pipe(operators.takeUntil(this.ngUnsubscribe), operators.delay(0))
500
- .subscribe(function () {
501
- _this.updateSteps();
502
- _this.notifyChange();
503
- });
504
- // Wait for item components' change detection to complete
505
- // before notifying changes to the consumer.
506
- this.windowRef.nativeWindow.setTimeout(function () {
507
- _this.notifyChange();
508
- });
509
- };
510
- SkyProgressIndicatorComponent.prototype.ngOnDestroy = function () {
511
- this.ngUnsubscribe.next();
512
- this.ngUnsubscribe.complete();
513
- };
514
- SkyProgressIndicatorComponent.prototype.sendMessage = function (message) {
515
- this._messageStream.next(message);
516
- };
517
- SkyProgressIndicatorComponent.prototype.gotoNextStep = function () {
518
- var nextIndex = this.activeIndex + 1;
519
- var lastIndex = this.itemComponents.length - 1;
520
- if (nextIndex > lastIndex) {
521
- return;
522
- }
523
- this.gotoStep(nextIndex);
524
- };
525
- SkyProgressIndicatorComponent.prototype.gotoPreviousStep = function () {
526
- var previousIndex = this.activeIndex - 1;
527
- if (previousIndex < 0) {
528
- return;
529
- }
530
- this.gotoStep(previousIndex);
531
- };
532
- SkyProgressIndicatorComponent.prototype.gotoStep = function (index) {
533
- this.activeIndex = index;
534
- this.updateSteps();
535
- this.notifyChange();
536
- };
537
- SkyProgressIndicatorComponent.prototype.finishSteps = function () {
538
- this.activeIndex = this.itemComponents.length - 1;
539
- this.itemComponents.forEach(function (component) {
540
- component.status = exports.SkyProgressIndicatorItemStatus.Complete;
541
- });
542
- this.notifyChange({
543
- isComplete: true,
544
- });
545
- };
546
- SkyProgressIndicatorComponent.prototype.resetSteps = function () {
547
- this.gotoStep(0);
548
- };
549
- SkyProgressIndicatorComponent.prototype.updateSteps = function () {
550
- if (this.activeIndex > this.itemComponents.length - 1) {
551
- this.activeIndex--;
552
- }
553
- var activeIndex = this.activeIndex;
554
- var isPassive = this.isPassive;
555
- var isVertical = this.displayModeResolved === 'vertical';
556
- this.itemComponents.forEach(function (component, i) {
557
- // Set visibility.
558
- component.isVisible = activeIndex === i || isVertical;
559
- // Set status.
560
- var status;
561
- if (activeIndex === i) {
562
- if (isPassive) {
563
- status = exports.SkyProgressIndicatorItemStatus.Pending;
564
- }
565
- else {
566
- status = exports.SkyProgressIndicatorItemStatus.Active;
567
- }
568
- }
569
- else if (activeIndex > i) {
570
- status = exports.SkyProgressIndicatorItemStatus.Complete;
571
- }
572
- else {
573
- status = exports.SkyProgressIndicatorItemStatus.Incomplete;
574
- }
575
- component.status = status;
576
- // Show or hide the status markers.
577
- component.showStatusMarker = isVertical;
578
- // Show or hide the step number.
579
- if (isPassive) {
580
- component.hideStepNumber();
581
- }
582
- else {
583
- component.showStepNumber(i + 1);
584
- }
585
- // If we're in passive mode, don't show titles for incomplete items.
586
- component.showTitle = !(isPassive && activeIndex < i);
587
- });
588
- };
589
- SkyProgressIndicatorComponent.prototype.handleIncomingMessage = function (message) {
590
- var value = message;
591
- var type;
592
- // Prints a deprecation warning if the consumer provides only `SkyProgressIndicatorMessageType`.
593
- if (value.type === undefined) {
594
- console.warn("[Deprecation warning] The progress indicator component's `messageStream` input is set " +
595
- 'to `Subject<SkyProgressIndicatorMessageType>`. We will remove this deprecated type in ' +
596
- 'the next major version release. Instead, set the `messageStream` input to a value of ' +
597
- '`Subject<SkyProgressIndicatorMessage>`.');
598
- type = value;
599
- }
600
- else {
601
- type = value.type;
602
- }
603
- switch (type) {
604
- case exports.SkyProgressIndicatorMessageType.Progress:
605
- this.gotoNextStep();
606
- break;
607
- case exports.SkyProgressIndicatorMessageType.Regress:
608
- this.gotoPreviousStep();
609
- break;
610
- case exports.SkyProgressIndicatorMessageType.Finish:
611
- this.finishSteps();
612
- break;
613
- case exports.SkyProgressIndicatorMessageType.Reset:
614
- this.resetSteps();
615
- break;
616
- case exports.SkyProgressIndicatorMessageType.GoTo:
617
- if (!value.data || value.data.activeIndex === undefined) {
618
- console.warn('A message type of `SkyProgressIndicatorMessageType.GoTo` was passed to the progress ' +
619
- 'indicator, but no step index was provided. You can pass the desired active ' +
620
- 'index via:\n' +
621
- '{\n' +
622
- ' type: SkyProgressIndicatorMessageType.GoTo,\n' +
623
- ' data: { activeIndex: 0 }\n' +
624
- '}');
625
- return;
626
- }
627
- this.gotoStep(value.data.activeIndex);
628
- break;
629
- default:
630
- break;
631
- }
632
- // Update the view after a message is received.
633
- this.changeDetector.markForCheck();
634
- };
635
- SkyProgressIndicatorComponent.prototype.subscribeToMessageStream = function () {
636
- var _this = this;
637
- if (this.initialized) {
638
- if (this.messageStreamSub) {
639
- this.messageStreamSub.unsubscribe();
640
- this.messageStreamSub = undefined;
641
- }
642
- if (this._messageStream) {
643
- this.messageStreamSub = this._messageStream
644
- .pipe(operators.takeUntil(this.ngUnsubscribe))
645
- .subscribe(function (message) {
646
- _this.handleIncomingMessage(message);
647
- });
648
- }
649
- }
650
- };
651
- SkyProgressIndicatorComponent.prototype.notifyChange = function (change) {
652
- this.progressChanges.next(Object.assign({}, {
653
- activeIndex: this.activeIndex,
654
- itemStatuses: this.itemStatuses,
655
- }, change));
656
- };
657
- return SkyProgressIndicatorComponent;
658
- }());
659
- SkyProgressIndicatorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$1.SkyAppWindowRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
660
- SkyProgressIndicatorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorComponent, selector: "sky-progress-indicator", inputs: { displayMode: "displayMode", isPassive: "isPassive", messageStream: "messageStream", startingIndex: "startingIndex" }, outputs: { progressChanges: "progressChanges" }, queries: [{ propertyName: "itemComponents", predicate: SkyProgressIndicatorItemComponent }], ngImport: i0__namespace, template: "<div class=\"sky-progress-indicator\" [ngClass]=\"cssClassNames\">\n <div\n *ngIf=\"displayModeResolved === 'horizontal'\"\n class=\"sky-progress-indicator-horizontal-status-markers\"\n >\n <sky-progress-indicator-status-marker\n *ngFor=\"let status of itemStatuses\"\n [displayMode]=\"displayModeResolved\"\n [status]=\"status\"\n >\n </sky-progress-indicator-status-marker>\n </div>\n <ng-content></ng-content>\n</div>\n", styles: [".sky-progress-indicator ::ng-deep sky-progress-indicator-item:last-of-type .sky-progress-indicator-status-marker-line{display:none}.sky-progress-indicator-mode-vertical{max-width:400px;min-width:250px;margin:0 auto}.sky-progress-indicator-mode-vertical ::ng-deep .sky-progress-indicator-item-body{text-align:center;margin-left:-30px}.sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-nav-button,.sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-reset-button{display:block;padding-top:30px;padding-left:15px}::ng-deep .sky-popover ::ng-deep .sky-progress-indicator-mode-vertical{min-width:auto}.sky-progress-indicator-mode-horizontal ::ng-deep .sky-progress-indicator-item-heading{font-weight:600;font-size:16px}.sky-progress-indicator-horizontal-status-markers{display:flex;margin-bottom:10px}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker{flex-basis:45px;flex-grow:0}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker:first-of-type{margin-left:-5px}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker:first-of-type .sky-progress-indicator-status-marker .sky-progress-indicator-status-marker-icon:before{display:none!important}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker:last-of-type .sky-progress-indicator-status-marker-line{display:none}:host-context(.sky-theme-modern) .sky-progress-indicator-mode-horizontal ::ng-deep .sky-progress-indicator-item-heading{font-weight:inherit;font-size:inherit}:host-context(.sky-theme-modern) .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-nav-button,:host-context(.sky-theme-modern) .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-reset-button{padding:0;margin:60px 0 0;text-align:center}.sky-theme-modern .sky-progress-indicator-mode-horizontal ::ng-deep .sky-progress-indicator-item-heading{font-weight:inherit;font-size:inherit}.sky-theme-modern .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-nav-button,.sky-theme-modern .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-reset-button{padding:0;margin:60px 0 0;text-align:center}\n"], components: [{ type: SkyProgressIndicatorStatusMarkerComponent, selector: "sky-progress-indicator-status-marker", inputs: ["displayMode", "status"] }], directives: [{ type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
661
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorComponent, decorators: [{
662
- type: i0.Component,
663
- args: [{
664
- selector: 'sky-progress-indicator',
665
- template: "<div class=\"sky-progress-indicator\" [ngClass]=\"cssClassNames\">\n <div\n *ngIf=\"displayModeResolved === 'horizontal'\"\n class=\"sky-progress-indicator-horizontal-status-markers\"\n >\n <sky-progress-indicator-status-marker\n *ngFor=\"let status of itemStatuses\"\n [displayMode]=\"displayModeResolved\"\n [status]=\"status\"\n >\n </sky-progress-indicator-status-marker>\n </div>\n <ng-content></ng-content>\n</div>\n",
666
- styles: [".sky-progress-indicator ::ng-deep sky-progress-indicator-item:last-of-type .sky-progress-indicator-status-marker-line{display:none}.sky-progress-indicator-mode-vertical{max-width:400px;min-width:250px;margin:0 auto}.sky-progress-indicator-mode-vertical ::ng-deep .sky-progress-indicator-item-body{text-align:center;margin-left:-30px}.sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-nav-button,.sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-reset-button{display:block;padding-top:30px;padding-left:15px}::ng-deep .sky-popover ::ng-deep .sky-progress-indicator-mode-vertical{min-width:auto}.sky-progress-indicator-mode-horizontal ::ng-deep .sky-progress-indicator-item-heading{font-weight:600;font-size:16px}.sky-progress-indicator-horizontal-status-markers{display:flex;margin-bottom:10px}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker{flex-basis:45px;flex-grow:0}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker:first-of-type{margin-left:-5px}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker:first-of-type .sky-progress-indicator-status-marker .sky-progress-indicator-status-marker-icon:before{display:none!important}.sky-progress-indicator-horizontal-status-markers ::ng-deep sky-progress-indicator-status-marker:last-of-type .sky-progress-indicator-status-marker-line{display:none}:host-context(.sky-theme-modern) .sky-progress-indicator-mode-horizontal ::ng-deep .sky-progress-indicator-item-heading{font-weight:inherit;font-size:inherit}:host-context(.sky-theme-modern) .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-nav-button,:host-context(.sky-theme-modern) .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-reset-button{padding:0;margin:60px 0 0;text-align:center}.sky-theme-modern .sky-progress-indicator-mode-horizontal ::ng-deep .sky-progress-indicator-item-heading{font-weight:inherit;font-size:inherit}.sky-theme-modern .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-nav-button,.sky-theme-modern .sky-progress-indicator-mode-vertical ::ng-deep sky-progress-indicator-reset-button{padding:0;margin:60px 0 0;text-align:center}\n"],
667
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
668
- }]
669
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.SkyAppWindowRef }]; }, propDecorators: { displayMode: [{
670
- type: i0.Input
671
- }], isPassive: [{
672
- type: i0.Input
673
- }], messageStream: [{
674
- type: i0.Input
675
- }], startingIndex: [{
676
- type: i0.Input
677
- }], progressChanges: [{
678
- type: i0.Output
679
- }], itemComponents: [{
680
- type: i0.ContentChildren,
681
- args: [SkyProgressIndicatorItemComponent]
682
- }] } });
683
-
684
- /**
685
- * Displays a button to navigate the steps in modal wizards. We recommend against using it in
686
- * passive progress indicators and waterfall progress indicators.
687
- */
688
- var SkyProgressIndicatorNavButtonComponent = /** @class */ (function () {
689
- function SkyProgressIndicatorNavButtonComponent(changeDetector, parentComponent) {
690
- this.changeDetector = changeDetector;
691
- this.parentComponent = parentComponent;
692
- /**
693
- * Fires when users select the nav button and emits a `SkyProgressIndicatorActionClickArgs`
694
- * object that is passed into the callback function to allow consumers to decide whether
695
- * the button’s action should complete successfully.
696
- */
697
- this.actionClick = new i0.EventEmitter();
698
- this.ngUnsubscribe = new rxjs.Subject();
699
- }
700
- Object.defineProperty(SkyProgressIndicatorNavButtonComponent.prototype, "buttonType", {
701
- get: function () {
702
- if (this._buttonType === undefined) {
703
- return 'next';
704
- }
705
- return this._buttonType;
706
- },
707
- /**
708
- * Specifies the type of nav button to include.
709
- * The valid options are `"finish"`, `"next"`, `"previous"`, and `"reset"`.
710
- * @default "next"
711
- */
712
- set: function (value) {
713
- this._buttonType = value;
714
- },
715
- enumerable: false,
716
- configurable: true
717
- });
718
- Object.defineProperty(SkyProgressIndicatorNavButtonComponent.prototype, "disabled", {
719
- get: function () {
720
- var buttonType = this.buttonType;
721
- var activeIndex = this.lastProgressChange.activeIndex;
722
- var isLastStep = activeIndex === this.lastProgressChange.itemStatuses.length - 1;
723
- if (buttonType === 'previous' && activeIndex === 0) {
724
- return true;
725
- }
726
- if (buttonType === 'next' && isLastStep) {
727
- return true;
728
- }
729
- return this._disabled || false;
730
- },
731
- /**
732
- * Indicates whether to disable the nav button.
733
- * @default false
734
- */
735
- set: function (value) {
736
- this._disabled = value;
737
- this.changeDetector.markForCheck();
738
- },
739
- enumerable: false,
740
- configurable: true
741
- });
742
- Object.defineProperty(SkyProgressIndicatorNavButtonComponent.prototype, "progressIndicator", {
743
- get: function () {
744
- return this._progressIndicator;
745
- },
746
- /**
747
- * Specifies the progress indicator component to associate with the nav button.
748
- * @required
749
- */
750
- set: function (value) {
751
- var _this = this;
752
- this._progressIndicator = value;
753
- if (value) {
754
- if (this.buttonType === 'finish') {
755
- // The `hasFinishButton` field was added to support legacy API.
756
- // Some implementations only include a next button; we cannot
757
- // assume that every implementation includes both a finish button and a next button.
758
- this._progressIndicator.hasFinishButton = true;
759
- }
760
- this._progressIndicator.progressChanges
761
- .pipe(operators.distinctUntilChanged(), operators.takeUntil(this.ngUnsubscribe))
762
- .subscribe(function (change) {
763
- _this.lastProgressChange = change;
764
- _this.updateButtonVisibility(change);
765
- });
766
- }
767
- else {
768
- if (!this.parentTimeout) {
769
- this.parentTimeout = window.setTimeout(function () {
770
- /* istanbul ignore else */
771
- if (!_this.progressIndicator) {
772
- throw new Error('The `<sky-progress-indicator-nav-button>` component requires a reference to ' +
773
- 'the `<sky-progress-indicator>` component it controls. For example:\n' +
774
- '<sky-progress-indicator\n' +
775
- ' #myProgressIndicator\n' +
776
- '>\n' +
777
- '</sky-progress-indicator>\n' +
778
- '<sky-progress-indicator-nav-button\n' +
779
- ' [progressIndicator]="myProgressIndicator"\n' +
780
- '>\n' +
781
- '</sky-progress-indicator-nav-button>');
782
- }
783
- }, 50);
784
- }
785
- }
786
- },
787
- enumerable: false,
788
- configurable: true
789
- });
790
- Object.defineProperty(SkyProgressIndicatorNavButtonComponent.prototype, "cssClassNames", {
791
- get: function () {
792
- var buttonType = this.buttonType;
793
- var classNames = ["sky-progress-indicator-nav-button-" + this.buttonType];
794
- switch (buttonType) {
795
- case 'next':
796
- case 'finish':
797
- classNames.push('sky-btn-primary');
798
- break;
799
- case 'reset':
800
- classNames.push('sky-btn-link');
801
- break;
802
- default:
803
- classNames.push('sky-btn-default');
804
- break;
805
- }
806
- return classNames.join(' ');
807
- },
808
- enumerable: false,
809
- configurable: true
810
- });
811
- Object.defineProperty(SkyProgressIndicatorNavButtonComponent.prototype, "buttonLabelResourceString", {
812
- get: function () {
813
- return "skyux_progress_indicator_navigator_" + this.buttonType;
814
- },
815
- enumerable: false,
816
- configurable: true
817
- });
818
- Object.defineProperty(SkyProgressIndicatorNavButtonComponent.prototype, "isVisible", {
819
- get: function () {
820
- return this._isVisible || false;
821
- },
822
- set: function (value) {
823
- this._isVisible = value;
824
- this.changeDetector.markForCheck();
825
- },
826
- enumerable: false,
827
- configurable: true
828
- });
829
- SkyProgressIndicatorNavButtonComponent.prototype.ngAfterViewInit = function () {
830
- if (!this.progressIndicator && this.parentComponent) {
831
- this.progressIndicator = this.parentComponent;
832
- }
833
- else if (!this.progressIndicator) {
834
- this.progressIndicator = undefined;
835
- }
836
- };
837
- SkyProgressIndicatorNavButtonComponent.prototype.ngOnDestroy = function () {
838
- this.ngUnsubscribe.next();
839
- this.ngUnsubscribe.complete();
840
- this.actionClick.complete();
841
- };
842
- SkyProgressIndicatorNavButtonComponent.prototype.onClick = function (event) {
843
- var _this = this;
844
- event.preventDefault();
845
- var type;
846
- switch (this.buttonType) {
847
- case 'finish':
848
- type = exports.SkyProgressIndicatorMessageType.Finish;
849
- break;
850
- case 'next':
851
- type = exports.SkyProgressIndicatorMessageType.Progress;
852
- break;
853
- case 'previous':
854
- type = exports.SkyProgressIndicatorMessageType.Regress;
855
- break;
856
- case 'reset':
857
- type = exports.SkyProgressIndicatorMessageType.Reset;
858
- break;
859
- default:
860
- break;
861
- }
862
- // If the consumer has subscribed to the `actionClick` event,
863
- // allow them to decide when to advance to the next step.
864
- if (this.actionClick.observers.length > 0) {
865
- this.actionClick.emit({
866
- event: event,
867
- progressHandler: new SkyProgressIndicatorActionClickProgressHandler(function () {
868
- _this.progressIndicator.sendMessage({ type: type });
869
- }),
870
- });
871
- }
872
- else {
873
- this.progressIndicator.sendMessage({ type: type });
874
- }
875
- };
876
- SkyProgressIndicatorNavButtonComponent.prototype.updateButtonVisibility = function (change) {
877
- var isLastStep = change.activeIndex === change.itemStatuses.length - 1;
878
- var buttonType = this.buttonType;
879
- // Hide the button if all steps are complete
880
- // (except for the reset button)
881
- if (buttonType !== 'reset' && change.isComplete) {
882
- this.isVisible = false;
883
- return;
884
- }
885
- if (buttonType === 'finish') {
886
- this.isVisible = isLastStep;
887
- return;
888
- }
889
- // Hide the next button on the last step only if a finish button exists.
890
- if (buttonType === 'next' &&
891
- isLastStep &&
892
- this.progressIndicator.hasFinishButton) {
893
- this.isVisible = false;
894
- return;
895
- }
896
- this.isVisible = true;
897
- };
898
- return SkyProgressIndicatorNavButtonComponent;
899
- }());
900
- SkyProgressIndicatorNavButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorNavButtonComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: SkyProgressIndicatorComponent, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
901
- SkyProgressIndicatorNavButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorNavButtonComponent, selector: "sky-progress-indicator-nav-button", inputs: { buttonText: "buttonText", buttonType: "buttonType", disabled: "disabled", progressIndicator: "progressIndicator" }, outputs: { actionClick: "actionClick" }, ngImport: i0__namespace, template: "<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", directives: [{ type: i3__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], pipes: { "skyLibResources": i4__namespace.SkyLibResourcesPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
902
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorNavButtonComponent, decorators: [{
903
- type: i0.Component,
904
- args: [{
905
- selector: 'sky-progress-indicator-nav-button',
906
- template: "<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",
907
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
908
- }]
909
- }], ctorParameters: function () {
910
- return [{ type: i0__namespace.ChangeDetectorRef }, { type: SkyProgressIndicatorComponent, decorators: [{
911
- type: i0.Optional
912
- }] }];
913
- }, propDecorators: { buttonText: [{
914
- type: i0.Input
915
- }], buttonType: [{
916
- type: i0.Input
917
- }], disabled: [{
918
- type: i0.Input
919
- }], progressIndicator: [{
920
- type: i0.Input
921
- }], actionClick: [{
922
- type: i0.Output
923
- }] } });
924
-
925
- /**
926
- * Displays a button to mark all items in the progress indicator as incomplete and set the
927
- * first item as the active item. The steps after the active item remain incomplete until
928
- * users reach them in their sequential order.
929
- */
930
- var SkyProgressIndicatorResetButtonComponent = /** @class */ (function () {
931
- function SkyProgressIndicatorResetButtonComponent(changeDetector) {
932
- this.changeDetector = changeDetector;
933
- /**
934
- * Fires when users select the reset button that marks all items as incomplete and sets the
935
- * first item as the active item.
936
- */
937
- this.resetClick = new i0.EventEmitter();
938
- console.warn('[Deprecation warning] The `<sky-progress-indicator-reset-button>` component is ' +
939
- 'deprecated. Please use the `<sky-progress-indicator-nav-button>` component instead, with ' +
940
- '`buttonType` set to "reset".');
941
- }
942
- Object.defineProperty(SkyProgressIndicatorResetButtonComponent.prototype, "disabled", {
943
- get: function () {
944
- return this._disabled || false;
945
- },
946
- /**
947
- * Indicates whether to disable the reset button.
948
- * @default false
949
- */
950
- set: function (value) {
951
- this._disabled = value;
952
- this.changeDetector.markForCheck();
953
- },
954
- enumerable: false,
955
- configurable: true
956
- });
957
- SkyProgressIndicatorResetButtonComponent.prototype.ngOnDestroy = function () {
958
- this.resetClick.complete();
959
- };
960
- SkyProgressIndicatorResetButtonComponent.prototype.onClick = function () {
961
- this.resetClick.emit();
962
- this.progressIndicator.sendMessage({
963
- type: exports.SkyProgressIndicatorMessageType.Reset,
964
- });
965
- };
966
- return SkyProgressIndicatorResetButtonComponent;
967
- }());
968
- SkyProgressIndicatorResetButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorResetButtonComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
969
- SkyProgressIndicatorResetButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorResetButtonComponent, selector: "sky-progress-indicator-reset-button", inputs: { disabled: "disabled", progressIndicator: "progressIndicator" }, outputs: { resetClick: "resetClick" }, ngImport: i0__namespace, template: "<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", changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
970
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorResetButtonComponent, decorators: [{
971
- type: i0.Component,
972
- args: [{
973
- selector: 'sky-progress-indicator-reset-button',
974
- template: "<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",
975
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
976
- }]
977
- }], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { disabled: [{
978
- type: i0.Input
979
- }], progressIndicator: [{
980
- type: i0.Input
981
- }], resetClick: [{
982
- type: i0.Output
983
- }] } });
984
-
985
- /**
986
- * Specifies a header to display above the progress indicator.
987
- */
988
- var SkyProgressIndicatorTitleComponent = /** @class */ (function () {
989
- function SkyProgressIndicatorTitleComponent() {
990
- }
991
- return SkyProgressIndicatorTitleComponent;
992
- }());
993
- SkyProgressIndicatorTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorTitleComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
994
- SkyProgressIndicatorTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.16", type: SkyProgressIndicatorTitleComponent, selector: "sky-progress-indicator-title", ngImport: i0__namespace, template: "<div\n aria-level=\"1\"\n class=\"sky-progress-indicator-title\"\n role=\"heading\"\n [skyThemeClass]=\"{\n 'sky-section-heading': 'default',\n 'sky-font-heading-1': 'modern'\n }\"\n>\n <ng-content></ng-content>\n</div>\n", styles: [".sky-progress-indicator-title{line-height:1.1;margin:0 0 30px;text-align:center}:host-context(.sky-theme-modern) .sky-progress-indicator-title{line-height:inherit;margin:0 0 60px}.sky-theme-modern .sky-progress-indicator-title{line-height:inherit;margin:0 0 60px}\n"], directives: [{ type: i1__namespace.λ2, selector: "[skyThemeClass]", inputs: ["class", "skyThemeClass"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
995
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorTitleComponent, decorators: [{
996
- type: i0.Component,
997
- args: [{
998
- selector: 'sky-progress-indicator-title',
999
- template: "<div\n aria-level=\"1\"\n class=\"sky-progress-indicator-title\"\n role=\"heading\"\n [skyThemeClass]=\"{\n 'sky-section-heading': 'default',\n 'sky-font-heading-1': 'modern'\n }\"\n>\n <ng-content></ng-content>\n</div>\n",
1000
- styles: [".sky-progress-indicator-title{line-height:1.1;margin:0 0 30px;text-align:center}:host-context(.sky-theme-modern) .sky-progress-indicator-title{line-height:inherit;margin:0 0 60px}.sky-theme-modern .sky-progress-indicator-title{line-height:inherit;margin:0 0 60px}\n"],
1001
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
1002
- }]
1003
- }] });
1004
-
1005
- var SkyProgressIndicatorModule = /** @class */ (function () {
1006
- function SkyProgressIndicatorModule() {
1007
- }
1008
- return SkyProgressIndicatorModule;
1009
- }());
1010
- SkyProgressIndicatorModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
1011
- SkyProgressIndicatorModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorModule, declarations: [SkyProgressIndicatorComponent,
1012
- SkyProgressIndicatorItemComponent,
1013
- SkyProgressIndicatorNavButtonComponent,
1014
- SkyProgressIndicatorResetButtonComponent,
1015
- SkyProgressIndicatorStatusMarkerComponent,
1016
- SkyProgressIndicatorTitleComponent], imports: [i3.CommonModule,
1017
- i4.SkyI18nModule,
1018
- i2.SkyIconModule,
1019
- SkyProgressIndicatorResourcesModule,
1020
- i1.SkyThemeModule], exports: [SkyProgressIndicatorComponent,
1021
- SkyProgressIndicatorItemComponent,
1022
- SkyProgressIndicatorNavButtonComponent,
1023
- SkyProgressIndicatorResetButtonComponent,
1024
- SkyProgressIndicatorTitleComponent] });
1025
- SkyProgressIndicatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorModule, imports: [[
1026
- i3.CommonModule,
1027
- i4.SkyI18nModule,
1028
- i2.SkyIconModule,
1029
- SkyProgressIndicatorResourcesModule,
1030
- i1.SkyThemeModule,
1031
- ]] });
1032
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SkyProgressIndicatorModule, decorators: [{
1033
- type: i0.NgModule,
1034
- args: [{
1035
- declarations: [
1036
- SkyProgressIndicatorComponent,
1037
- SkyProgressIndicatorItemComponent,
1038
- SkyProgressIndicatorNavButtonComponent,
1039
- SkyProgressIndicatorResetButtonComponent,
1040
- SkyProgressIndicatorStatusMarkerComponent,
1041
- SkyProgressIndicatorTitleComponent,
1042
- ],
1043
- imports: [
1044
- i3.CommonModule,
1045
- i4.SkyI18nModule,
1046
- i2.SkyIconModule,
1047
- SkyProgressIndicatorResourcesModule,
1048
- i1.SkyThemeModule,
1049
- ],
1050
- exports: [
1051
- SkyProgressIndicatorComponent,
1052
- SkyProgressIndicatorItemComponent,
1053
- SkyProgressIndicatorNavButtonComponent,
1054
- SkyProgressIndicatorResetButtonComponent,
1055
- SkyProgressIndicatorTitleComponent,
1056
- ],
1057
- }]
1058
- }] });
1059
-
1060
- /**
1061
- * Generated bundle index. Do not edit.
1062
- */
1063
-
1064
- exports.SkyProgressIndicatorActionClickProgressHandler = SkyProgressIndicatorActionClickProgressHandler;
1065
- exports.SkyProgressIndicatorModule = SkyProgressIndicatorModule;
1066
- exports["λ1"] = SkyProgressIndicatorItemComponent;
1067
- exports["λ2"] = SkyProgressIndicatorComponent;
1068
- exports["λ3"] = SkyProgressIndicatorNavButtonComponent;
1069
- exports["λ4"] = SkyProgressIndicatorResetButtonComponent;
1070
- exports["λ5"] = SkyProgressIndicatorTitleComponent;
1071
-
1072
- Object.defineProperty(exports, '__esModule', { value: true });
1073
-
1074
- }));
1075
- //# sourceMappingURL=skyux-progress-indicator.umd.js.map