@skyux/progress-indicator 5.0.3 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. package/README.md +6 -4
  2. package/documentation.json +123 -14
  3. package/esm2015/index.js +18 -0
  4. package/esm2015/index.js.map +1 -0
  5. package/esm2015/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js +74 -0
  6. package/esm2015/lib/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js.map +1 -0
  7. package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js +223 -0
  8. package/esm2015/lib/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js.map +1 -0
  9. package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js +59 -0
  10. package/esm2015/lib/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js.map +1 -0
  11. package/esm2015/{modules → lib/modules}/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js +3 -2
  12. package/esm2015/lib/modules/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.js.map +1 -0
  13. package/esm2015/{modules → lib/modules}/progress-indicator/progress-indicator-title/progress-indicator-title.component.js +1 -1
  14. package/esm2015/lib/modules/progress-indicator/progress-indicator-title/progress-indicator-title.component.js.map +1 -0
  15. package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js +317 -0
  16. package/esm2015/lib/modules/progress-indicator/progress-indicator.component.js.map +1 -0
  17. package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js +65 -0
  18. package/esm2015/lib/modules/progress-indicator/progress-indicator.module.js.map +1 -0
  19. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-args.js +2 -0
  20. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-args.js.map +1 -0
  21. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js +14 -0
  22. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js.map +1 -0
  23. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-change.js +2 -0
  24. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-change.js.map +1 -0
  25. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.js +2 -0
  26. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.js.map +1 -0
  27. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-item-status.js +20 -0
  28. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-item-status.js.map +1 -0
  29. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message-type.js +28 -0
  30. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message-type.js.map +1 -0
  31. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message.js +2 -0
  32. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-message.js.map +1 -0
  33. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-mode.js +16 -0
  34. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-mode.js.map +1 -0
  35. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.js +2 -0
  36. package/esm2015/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.js.map +1 -0
  37. package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js +50 -0
  38. package/esm2015/lib/modules/shared/sky-progress-indicator-resources.module.js.map +1 -0
  39. package/esm2015/skyux-progress-indicator.js +2 -2
  40. package/esm2015/skyux-progress-indicator.js.map +1 -0
  41. package/fesm2015/skyux-progress-indicator.js +1 -1
  42. package/fesm2015/skyux-progress-indicator.js.map +1 -1
  43. package/index.d.ts +15 -0
  44. package/{modules → lib/modules}/progress-indicator/progress-indicator-item/progress-indicator-item.component.d.ts +0 -0
  45. package/{modules → lib/modules}/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.d.ts +0 -0
  46. package/{modules → lib/modules}/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.d.ts +0 -0
  47. package/{modules → lib/modules}/progress-indicator/progress-indicator-status-marker/progress-indicator-status-marker.component.d.ts +0 -0
  48. package/{modules → lib/modules}/progress-indicator/progress-indicator-title/progress-indicator-title.component.d.ts +0 -0
  49. package/{modules → lib/modules}/progress-indicator/progress-indicator.component.d.ts +0 -0
  50. package/{modules → lib/modules}/progress-indicator/progress-indicator.module.d.ts +0 -0
  51. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-action-click-args.d.ts +0 -0
  52. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-action-click-progress-handler.d.ts +0 -0
  53. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-change.d.ts +0 -0
  54. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-display-mode-type.d.ts +0 -0
  55. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-item-status.d.ts +0 -0
  56. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-message-type.d.ts +0 -0
  57. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-message.d.ts +0 -0
  58. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-mode.d.ts +0 -0
  59. package/{modules → lib/modules}/progress-indicator/types/progress-indicator-nav-button-type.d.ts +0 -0
  60. package/{modules → lib/modules}/shared/sky-progress-indicator-resources.module.d.ts +0 -0
  61. package/package.json +18 -4
  62. package/skyux-progress-indicator.d.ts +1 -1
  63. package/LICENSE +0 -21
  64. package/esm2015/modules/progress-indicator/progress-indicator-item/progress-indicator-item.component.js +0 -74
  65. package/esm2015/modules/progress-indicator/progress-indicator-nav-button/progress-indicator-nav-button.component.js +0 -222
  66. package/esm2015/modules/progress-indicator/progress-indicator-reset-button/progress-indicator-reset-button.component.js +0 -58
  67. package/esm2015/modules/progress-indicator/progress-indicator.component.js +0 -316
  68. package/esm2015/modules/progress-indicator/progress-indicator.module.js +0 -65
  69. package/esm2015/modules/progress-indicator/types/progress-indicator-action-click-args.js +0 -2
  70. package/esm2015/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.js +0 -14
  71. package/esm2015/modules/progress-indicator/types/progress-indicator-change.js +0 -2
  72. package/esm2015/modules/progress-indicator/types/progress-indicator-display-mode-type.js +0 -2
  73. package/esm2015/modules/progress-indicator/types/progress-indicator-item-status.js +0 -20
  74. package/esm2015/modules/progress-indicator/types/progress-indicator-message-type.js +0 -28
  75. package/esm2015/modules/progress-indicator/types/progress-indicator-message.js +0 -2
  76. package/esm2015/modules/progress-indicator/types/progress-indicator-mode.js +0 -16
  77. package/esm2015/modules/progress-indicator/types/progress-indicator-nav-button-type.js +0 -2
  78. package/esm2015/modules/shared/sky-progress-indicator-resources.module.js +0 -50
  79. package/esm2015/public-api.js +0 -18
  80. package/public-api.d.ts +0 -15
@@ -0,0 +1,317 @@
1
+ import { ChangeDetectionStrategy, Component, ContentChildren, EventEmitter, Input, Output, QueryList, ChangeDetectorRef, } from '@angular/core';
2
+ import { SkyAppWindowRef } from '@skyux/core';
3
+ import { Subject } from 'rxjs';
4
+ import { delay, takeUntil } from 'rxjs/operators';
5
+ import { SkyProgressIndicatorItemComponent } from './progress-indicator-item/progress-indicator-item.component';
6
+ import { SkyProgressIndicatorDisplayMode } from './types/progress-indicator-mode';
7
+ import { SkyProgressIndicatorItemStatus } from './types/progress-indicator-item-status';
8
+ import { SkyProgressIndicatorMessageType } from './types/progress-indicator-message-type';
9
+ import * as i0 from "@angular/core";
10
+ import * as i1 from "@skyux/core";
11
+ import * as i2 from "./progress-indicator-status-marker/progress-indicator-status-marker.component";
12
+ import * as i3 from "@angular/common";
13
+ export class SkyProgressIndicatorComponent {
14
+ constructor(changeDetector, windowRef) {
15
+ this.changeDetector = changeDetector;
16
+ this.windowRef = windowRef;
17
+ /**
18
+ * Fires when the progress indicator changes the status of an item.
19
+ */
20
+ this.progressChanges = new EventEmitter();
21
+ this.initialized = false;
22
+ this.ngUnsubscribe = new Subject();
23
+ this._messageStream = new Subject();
24
+ }
25
+ /**
26
+ * Specifies whether to display the progress indicator vertically or horizontally.
27
+ * For [passive progress indicators](https://developer.blackbaud.com/skyux-progress-indicator/docs/passive-indicator)
28
+ * and [waterfall progress indicators](https://developer.blackbaud.com/skyux/components/progress-indicator/waterfall-progress-indicator),
29
+ * use the vertical display mode. For [modal wizards](https://developer.blackbaud.com/skyux/components/wizard),
30
+ * use the horizontal display mode.
31
+ * @default "vertical"
32
+ */
33
+ set displayMode(value) {
34
+ this._displayMode = value;
35
+ }
36
+ get displayMode() {
37
+ if (this._displayMode === undefined) {
38
+ return 'vertical';
39
+ }
40
+ return this._displayMode;
41
+ }
42
+ /**
43
+ * Indicates whether the progress indicator is passive. Passive progress indicators inform users of
44
+ * progress that concerns them but that they are not responsible for, and they must use the vertical display mode.
45
+ * @default false
46
+ */
47
+ set isPassive(value) {
48
+ this._isPassive = value;
49
+ }
50
+ get isPassive() {
51
+ // Currently, passive mode is not supported for horizontal displays.
52
+ if (this.displayModeResolved === 'horizontal') {
53
+ return false;
54
+ }
55
+ return this._isPassive || false;
56
+ }
57
+ /**
58
+ * Specifies an observable of `SkyProgressIndicatorMessage` that determines the status to
59
+ * display for items in the progress indicator. The message stream is a queue of
60
+ * commanding messages to change the state of the progress indicator based on the message type.
61
+ */
62
+ set messageStream(value) {
63
+ this._messageStream = value;
64
+ this.subscribeToMessageStream();
65
+ }
66
+ /**
67
+ * Specifies the index for the item to make active when the progress indicator
68
+ * loads. All steps that precede the active item are marked as complete, and all steps
69
+ * that follow the active item are marked as incomplete.
70
+ */
71
+ set startingIndex(value) {
72
+ this._startingIndex = value;
73
+ }
74
+ get startingIndex() {
75
+ return this._startingIndex || 0;
76
+ }
77
+ get cssClassNames() {
78
+ const classNames = [
79
+ `sky-progress-indicator-mode-${this.displayModeResolved}`,
80
+ ];
81
+ if (this.isPassive) {
82
+ classNames.push('sky-progress-indicator-passive');
83
+ }
84
+ return classNames.join(' ');
85
+ }
86
+ /**
87
+ * Returns the newly-supported string union type value to be used by the template.
88
+ * @internal
89
+ */
90
+ get displayModeResolved() {
91
+ switch (this.displayMode) {
92
+ case SkyProgressIndicatorDisplayMode.Vertical:
93
+ case 'vertical':
94
+ return 'vertical';
95
+ default:
96
+ return 'horizontal';
97
+ }
98
+ }
99
+ get hasFinishButton() {
100
+ return this._hasFinishButton || false;
101
+ }
102
+ set hasFinishButton(value) {
103
+ this._hasFinishButton = value;
104
+ }
105
+ get itemStatuses() {
106
+ if (!this.itemComponents) {
107
+ return [];
108
+ }
109
+ return this.itemComponents.map((c) => c.status);
110
+ }
111
+ get activeIndex() {
112
+ return this._activeIndex || 0;
113
+ }
114
+ set activeIndex(value) {
115
+ const lastIndex = this.itemComponents.length - 1;
116
+ let newIndex = value;
117
+ if (value > lastIndex) {
118
+ newIndex = lastIndex;
119
+ }
120
+ else if (value < 0) {
121
+ newIndex = 0;
122
+ }
123
+ this._activeIndex = newIndex;
124
+ }
125
+ ngOnInit() {
126
+ this.initialized = true;
127
+ this.subscribeToMessageStream();
128
+ }
129
+ ngAfterContentInit() {
130
+ this.activeIndex = this.startingIndex;
131
+ this.updateSteps();
132
+ // Note: The delay here is to ensure all change detection on the items has finished. Without
133
+ // the delay we receive a changed before checked error for vertical progress indicators
134
+ this.itemComponents.changes
135
+ .pipe(takeUntil(this.ngUnsubscribe), delay(0))
136
+ .subscribe(() => {
137
+ this.updateSteps();
138
+ this.notifyChange();
139
+ });
140
+ // Wait for item components' change detection to complete
141
+ // before notifying changes to the consumer.
142
+ this.windowRef.nativeWindow.setTimeout(() => {
143
+ this.notifyChange();
144
+ });
145
+ }
146
+ ngOnDestroy() {
147
+ this.ngUnsubscribe.next();
148
+ this.ngUnsubscribe.complete();
149
+ }
150
+ sendMessage(message) {
151
+ this._messageStream.next(message);
152
+ }
153
+ gotoNextStep() {
154
+ const nextIndex = this.activeIndex + 1;
155
+ const lastIndex = this.itemComponents.length - 1;
156
+ if (nextIndex > lastIndex) {
157
+ return;
158
+ }
159
+ this.gotoStep(nextIndex);
160
+ }
161
+ gotoPreviousStep() {
162
+ const previousIndex = this.activeIndex - 1;
163
+ if (previousIndex < 0) {
164
+ return;
165
+ }
166
+ this.gotoStep(previousIndex);
167
+ }
168
+ gotoStep(index) {
169
+ this.activeIndex = index;
170
+ this.updateSteps();
171
+ this.notifyChange();
172
+ }
173
+ finishSteps() {
174
+ this.activeIndex = this.itemComponents.length - 1;
175
+ this.itemComponents.forEach((component) => {
176
+ component.status = SkyProgressIndicatorItemStatus.Complete;
177
+ });
178
+ this.notifyChange({
179
+ isComplete: true,
180
+ });
181
+ }
182
+ resetSteps() {
183
+ this.gotoStep(0);
184
+ }
185
+ updateSteps() {
186
+ if (this.activeIndex > this.itemComponents.length - 1) {
187
+ this.activeIndex--;
188
+ }
189
+ const activeIndex = this.activeIndex;
190
+ const isPassive = this.isPassive;
191
+ const isVertical = this.displayModeResolved === 'vertical';
192
+ this.itemComponents.forEach((component, i) => {
193
+ // Set visibility.
194
+ component.isVisible = activeIndex === i || isVertical;
195
+ // Set status.
196
+ let status;
197
+ if (activeIndex === i) {
198
+ if (isPassive) {
199
+ status = SkyProgressIndicatorItemStatus.Pending;
200
+ }
201
+ else {
202
+ status = SkyProgressIndicatorItemStatus.Active;
203
+ }
204
+ }
205
+ else if (activeIndex > i) {
206
+ status = SkyProgressIndicatorItemStatus.Complete;
207
+ }
208
+ else {
209
+ status = SkyProgressIndicatorItemStatus.Incomplete;
210
+ }
211
+ component.status = status;
212
+ // Show or hide the status markers.
213
+ component.showStatusMarker = isVertical;
214
+ // Show or hide the step number.
215
+ if (isPassive) {
216
+ component.hideStepNumber();
217
+ }
218
+ else {
219
+ component.showStepNumber(i + 1);
220
+ }
221
+ // If we're in passive mode, don't show titles for incomplete items.
222
+ component.showTitle = !(isPassive && activeIndex < i);
223
+ });
224
+ }
225
+ handleIncomingMessage(message) {
226
+ const value = message;
227
+ let type;
228
+ // Prints a deprecation warning if the consumer provides only `SkyProgressIndicatorMessageType`.
229
+ if (value.type === undefined) {
230
+ console.warn("[Deprecation warning] The progress indicator component's `messageStream` input is set " +
231
+ 'to `Subject<SkyProgressIndicatorMessageType>`. We will remove this deprecated type in ' +
232
+ 'the next major version release. Instead, set the `messageStream` input to a value of ' +
233
+ '`Subject<SkyProgressIndicatorMessage>`.');
234
+ type = value;
235
+ }
236
+ else {
237
+ type = value.type;
238
+ }
239
+ switch (type) {
240
+ case SkyProgressIndicatorMessageType.Progress:
241
+ this.gotoNextStep();
242
+ break;
243
+ case SkyProgressIndicatorMessageType.Regress:
244
+ this.gotoPreviousStep();
245
+ break;
246
+ case SkyProgressIndicatorMessageType.Finish:
247
+ this.finishSteps();
248
+ break;
249
+ case SkyProgressIndicatorMessageType.Reset:
250
+ this.resetSteps();
251
+ break;
252
+ case SkyProgressIndicatorMessageType.GoTo:
253
+ if (!value.data || value.data.activeIndex === undefined) {
254
+ console.warn('A message type of `SkyProgressIndicatorMessageType.GoTo` was passed to the progress ' +
255
+ 'indicator, but no step index was provided. You can pass the desired active ' +
256
+ 'index via:\n' +
257
+ '{\n' +
258
+ ' type: SkyProgressIndicatorMessageType.GoTo,\n' +
259
+ ' data: { activeIndex: 0 }\n' +
260
+ '}');
261
+ return;
262
+ }
263
+ this.gotoStep(value.data.activeIndex);
264
+ break;
265
+ default:
266
+ break;
267
+ }
268
+ // Update the view after a message is received.
269
+ this.changeDetector.markForCheck();
270
+ }
271
+ subscribeToMessageStream() {
272
+ if (this.initialized) {
273
+ if (this.messageStreamSub) {
274
+ this.messageStreamSub.unsubscribe();
275
+ this.messageStreamSub = undefined;
276
+ }
277
+ if (this._messageStream) {
278
+ this.messageStreamSub = this._messageStream
279
+ .pipe(takeUntil(this.ngUnsubscribe))
280
+ .subscribe((message) => {
281
+ this.handleIncomingMessage(message);
282
+ });
283
+ }
284
+ }
285
+ }
286
+ notifyChange(change) {
287
+ this.progressChanges.next(Object.assign({}, {
288
+ activeIndex: this.activeIndex,
289
+ itemStatuses: this.itemStatuses,
290
+ }, change));
291
+ }
292
+ }
293
+ SkyProgressIndicatorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.SkyAppWindowRef }], target: i0.ɵɵFactoryTarget.Component });
294
+ SkyProgressIndicatorComponent.ɵcmp = i0.ɵɵ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, 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: i2.SkyProgressIndicatorStatusMarkerComponent, selector: "sky-progress-indicator-status-marker", inputs: ["displayMode", "status"] }], directives: [{ type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
295
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorComponent, decorators: [{
296
+ type: Component,
297
+ args: [{
298
+ selector: 'sky-progress-indicator',
299
+ templateUrl: './progress-indicator.component.html',
300
+ styleUrls: ['./progress-indicator.component.scss'],
301
+ changeDetection: ChangeDetectionStrategy.OnPush,
302
+ }]
303
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1.SkyAppWindowRef }]; }, propDecorators: { displayMode: [{
304
+ type: Input
305
+ }], isPassive: [{
306
+ type: Input
307
+ }], messageStream: [{
308
+ type: Input
309
+ }], startingIndex: [{
310
+ type: Input
311
+ }], progressChanges: [{
312
+ type: Output
313
+ }], itemComponents: [{
314
+ type: ContentChildren,
315
+ args: [SkyProgressIndicatorItemComponent]
316
+ }] } });
317
+ //# sourceMappingURL=progress-indicator.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator.component.js","sourceRoot":"","sources":["../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator.component.ts","../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator.component.html"],"names":[],"mappings":"AAAA,OAAO,EAEL,uBAAuB,EACvB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,KAAK,EAGL,MAAM,EACN,SAAS,EACT,iBAAiB,GAClB,MAAM,eAAe,CAAC;AAEvB,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,OAAO,EAAE,OAAO,EAAgB,MAAM,MAAM,CAAC;AAE7C,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAElD,OAAO,EAAE,iCAAiC,EAAE,MAAM,6DAA6D,CAAC;AAIhH,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAIlF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AAIxF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;;;;;AAQ1F,MAAM,OAAO,6BAA6B;IA2JxC,YACU,cAAiC,EACjC,SAA0B;QAD1B,mBAAc,GAAd,cAAc,CAAmB;QACjC,cAAS,GAAT,SAAS,CAAiB;QApFpC;;WAEG;QAEI,oBAAe,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C,CAAC;oBAClD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;sIAaY,WAAW;sBADrB,KAAK;gBAmBK,SAAS;sBADnB,KAAK;gBAoBK,aAAa;sBADvB,KAAK;gBAiBK,aAAa;sBADvB,KAAK;gBAaC,eAAe;sBADrB,MAAM;gBA8CC,cAAc;sBADrB,eAAe;uBAAC,iCAAiC","sourcesContent":["import {\n AfterContentInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n EventEmitter,\n Input,\n OnInit,\n OnDestroy,\n Output,\n QueryList,\n ChangeDetectorRef,\n} from '@angular/core';\n\nimport { SkyAppWindowRef } from '@skyux/core';\n\nimport { Subject, Subscription } from 'rxjs';\n\nimport { delay, takeUntil } from 'rxjs/operators';\n\nimport { SkyProgressIndicatorItemComponent } from './progress-indicator-item/progress-indicator-item.component';\n\nimport { SkyProgressIndicatorChange } from './types/progress-indicator-change';\n\nimport { SkyProgressIndicatorDisplayMode } from './types/progress-indicator-mode';\n\nimport { SkyProgressIndicatorDisplayModeType } from './types/progress-indicator-display-mode-type';\n\nimport { SkyProgressIndicatorItemStatus } from './types/progress-indicator-item-status';\n\nimport { SkyProgressIndicatorMessage } from './types/progress-indicator-message';\n\nimport { SkyProgressIndicatorMessageType } from './types/progress-indicator-message-type';\n\n@Component({\n selector: 'sky-progress-indicator',\n templateUrl: './progress-indicator.component.html',\n styleUrls: ['./progress-indicator.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SkyProgressIndicatorComponent\n implements OnInit, AfterContentInit, OnDestroy\n{\n /**\n * Specifies whether to display the progress indicator vertically or horizontally.\n * For [passive progress indicators](https://developer.blackbaud.com/skyux-progress-indicator/docs/passive-indicator)\n * and [waterfall progress indicators](https://developer.blackbaud.com/skyux/components/progress-indicator/waterfall-progress-indicator),\n * use the vertical display mode. For [modal wizards](https://developer.blackbaud.com/skyux/components/wizard),\n * use the horizontal display mode.\n * @default \"vertical\"\n */\n @Input()\n public set displayMode(value: SkyProgressIndicatorDisplayModeType) {\n this._displayMode = value;\n }\n\n public get displayMode(): SkyProgressIndicatorDisplayModeType {\n if (this._displayMode === undefined) {\n return 'vertical';\n }\n\n return this._displayMode;\n }\n\n /**\n * Indicates whether the progress indicator is passive. Passive progress indicators inform users of\n * progress that concerns them but that they are not responsible for, and they must use the vertical display mode.\n * @default false\n */\n @Input()\n public set isPassive(value: boolean) {\n this._isPassive = value;\n }\n\n public get isPassive(): boolean {\n // Currently, passive mode is not supported for horizontal displays.\n if (this.displayModeResolved === 'horizontal') {\n return false;\n }\n\n return this._isPassive || false;\n }\n\n /**\n * Specifies an observable of `SkyProgressIndicatorMessage` that determines the status to\n * display for items in the progress indicator. The message stream is a queue of\n * commanding messages to change the state of the progress indicator based on the message type.\n */\n @Input()\n public set messageStream(\n value: Subject<\n SkyProgressIndicatorMessage | SkyProgressIndicatorMessageType\n >\n ) {\n this._messageStream = value;\n\n this.subscribeToMessageStream();\n }\n\n /**\n * Specifies the index for the item to make active when the progress indicator\n * loads. All steps that precede the active item are marked as complete, and all steps\n * that follow the active item are marked as incomplete.\n */\n @Input()\n public set startingIndex(value: number) {\n this._startingIndex = value;\n }\n\n public get startingIndex(): number {\n return this._startingIndex || 0;\n }\n\n /**\n * Fires when the progress indicator changes the status of an item.\n */\n @Output()\n public progressChanges = new EventEmitter<SkyProgressIndicatorChange>();\n\n public get cssClassNames(): string {\n const classNames = [\n `sky-progress-indicator-mode-${this.displayModeResolved}`,\n ];\n\n if (this.isPassive) {\n classNames.push('sky-progress-indicator-passive');\n }\n\n return classNames.join(' ');\n }\n\n /**\n * Returns the newly-supported string union type value to be used by the template.\n * @internal\n */\n public get displayModeResolved(): 'vertical' | 'horizontal' {\n switch (this.displayMode) {\n case SkyProgressIndicatorDisplayMode.Vertical:\n case 'vertical':\n return 'vertical';\n default:\n return 'horizontal';\n }\n }\n\n public get hasFinishButton(): boolean {\n return this._hasFinishButton || false;\n }\n\n public set hasFinishButton(value: boolean) {\n this._hasFinishButton = value;\n }\n\n public get itemStatuses(): SkyProgressIndicatorItemStatus[] {\n if (!this.itemComponents) {\n return [];\n }\n\n return this.itemComponents.map((c) => c.status);\n }\n\n @ContentChildren(SkyProgressIndicatorItemComponent)\n private itemComponents: QueryList<SkyProgressIndicatorItemComponent>;\n\n private get activeIndex(): number {\n return this._activeIndex || 0;\n }\n\n private set activeIndex(value: number) {\n const lastIndex = this.itemComponents.length - 1;\n\n let newIndex = value;\n\n if (value > lastIndex) {\n newIndex = lastIndex;\n } else if (value < 0) {\n newIndex = 0;\n }\n\n this._activeIndex = newIndex;\n }\n\n private messageStreamSub: Subscription | undefined;\n private initialized = false;\n private ngUnsubscribe = new Subject<void>();\n\n private _activeIndex: number;\n private _displayMode: SkyProgressIndicatorDisplayModeType;\n private _hasFinishButton: boolean;\n private _isPassive: boolean;\n private _messageStream = new Subject<\n SkyProgressIndicatorMessage | SkyProgressIndicatorMessageType\n >();\n private _startingIndex: number;\n\n constructor(\n private changeDetector: ChangeDetectorRef,\n private windowRef: SkyAppWindowRef\n ) {}\n\n public ngOnInit(): void {\n this.initialized = true;\n\n this.subscribeToMessageStream();\n }\n\n public ngAfterContentInit(): void {\n this.activeIndex = this.startingIndex;\n\n this.updateSteps();\n\n // Note: The delay here is to ensure all change detection on the items has finished. Without\n // the delay we receive a changed before checked error for vertical progress indicators\n this.itemComponents.changes\n .pipe(takeUntil(this.ngUnsubscribe), delay(0))\n .subscribe(() => {\n this.updateSteps();\n this.notifyChange();\n });\n\n // Wait for item components' change detection to complete\n // before notifying changes to the consumer.\n this.windowRef.nativeWindow.setTimeout(() => {\n this.notifyChange();\n });\n }\n\n public ngOnDestroy(): void {\n this.ngUnsubscribe.next();\n this.ngUnsubscribe.complete();\n }\n\n public sendMessage(message: SkyProgressIndicatorMessage): void {\n this._messageStream.next(message);\n }\n\n private gotoNextStep(): void {\n const nextIndex = this.activeIndex + 1;\n const lastIndex = this.itemComponents.length - 1;\n\n if (nextIndex > lastIndex) {\n return;\n }\n\n this.gotoStep(nextIndex);\n }\n\n private gotoPreviousStep(): void {\n const previousIndex = this.activeIndex - 1;\n\n if (previousIndex < 0) {\n return;\n }\n\n this.gotoStep(previousIndex);\n }\n\n private gotoStep(index: number): void {\n this.activeIndex = index;\n this.updateSteps();\n this.notifyChange();\n }\n\n private finishSteps(): void {\n this.activeIndex = this.itemComponents.length - 1;\n\n this.itemComponents.forEach((component) => {\n component.status = SkyProgressIndicatorItemStatus.Complete;\n });\n\n this.notifyChange({\n isComplete: true,\n });\n }\n\n private resetSteps(): void {\n this.gotoStep(0);\n }\n\n private updateSteps(): void {\n if (this.activeIndex > this.itemComponents.length - 1) {\n this.activeIndex--;\n }\n\n const activeIndex = this.activeIndex;\n const isPassive = this.isPassive;\n const isVertical = this.displayModeResolved === 'vertical';\n\n this.itemComponents.forEach((component, i) => {\n // Set visibility.\n component.isVisible = activeIndex === i || isVertical;\n\n // Set status.\n let status: SkyProgressIndicatorItemStatus;\n if (activeIndex === i) {\n if (isPassive) {\n status = SkyProgressIndicatorItemStatus.Pending;\n } else {\n status = SkyProgressIndicatorItemStatus.Active;\n }\n } else if (activeIndex > i) {\n status = SkyProgressIndicatorItemStatus.Complete;\n } else {\n status = SkyProgressIndicatorItemStatus.Incomplete;\n }\n\n component.status = status;\n\n // Show or hide the status markers.\n component.showStatusMarker = isVertical;\n\n // Show or hide the step number.\n if (isPassive) {\n component.hideStepNumber();\n } else {\n component.showStepNumber(i + 1);\n }\n\n // If we're in passive mode, don't show titles for incomplete items.\n component.showTitle = !(isPassive && activeIndex < i);\n });\n }\n\n private handleIncomingMessage(\n message: SkyProgressIndicatorMessage | SkyProgressIndicatorMessageType\n ): void {\n const value: any = message;\n\n let type: SkyProgressIndicatorMessageType;\n\n // Prints a deprecation warning if the consumer provides only `SkyProgressIndicatorMessageType`.\n if (value.type === undefined) {\n console.warn(\n \"[Deprecation warning] The progress indicator component's `messageStream` input is set \" +\n 'to `Subject<SkyProgressIndicatorMessageType>`. We will remove this deprecated type in ' +\n 'the next major version release. Instead, set the `messageStream` input to a value of ' +\n '`Subject<SkyProgressIndicatorMessage>`.'\n );\n\n type = value;\n } else {\n type = value.type;\n }\n\n switch (type) {\n case SkyProgressIndicatorMessageType.Progress:\n this.gotoNextStep();\n break;\n\n case SkyProgressIndicatorMessageType.Regress:\n this.gotoPreviousStep();\n break;\n\n case SkyProgressIndicatorMessageType.Finish:\n this.finishSteps();\n break;\n\n case SkyProgressIndicatorMessageType.Reset:\n this.resetSteps();\n break;\n\n case SkyProgressIndicatorMessageType.GoTo:\n if (!value.data || value.data.activeIndex === undefined) {\n console.warn(\n 'A message type of `SkyProgressIndicatorMessageType.GoTo` was passed to the progress ' +\n 'indicator, but no step index was provided. You can pass the desired active ' +\n 'index via:\\n' +\n '{\\n' +\n ' type: SkyProgressIndicatorMessageType.GoTo,\\n' +\n ' data: { activeIndex: 0 }\\n' +\n '}'\n );\n return;\n }\n\n this.gotoStep(value.data.activeIndex);\n break;\n\n default:\n break;\n }\n\n // Update the view after a message is received.\n this.changeDetector.markForCheck();\n }\n\n private subscribeToMessageStream(): void {\n if (this.initialized) {\n if (this.messageStreamSub) {\n this.messageStreamSub.unsubscribe();\n this.messageStreamSub = undefined;\n }\n\n if (this._messageStream) {\n this.messageStreamSub = this._messageStream\n .pipe(takeUntil(this.ngUnsubscribe))\n .subscribe((message) => {\n this.handleIncomingMessage(message);\n });\n }\n }\n }\n\n private notifyChange(change?: SkyProgressIndicatorChange): void {\n this.progressChanges.next(\n Object.assign(\n {},\n {\n activeIndex: this.activeIndex,\n itemStatuses: this.itemStatuses,\n },\n change\n )\n );\n }\n}\n","<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"]}
@@ -0,0 +1,65 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { SkyI18nModule } from '@skyux/i18n';
4
+ import { SkyIconModule } from '@skyux/indicators';
5
+ import { SkyThemeModule } from '@skyux/theme';
6
+ import { SkyProgressIndicatorResourcesModule } from '../shared/sky-progress-indicator-resources.module';
7
+ import { SkyProgressIndicatorComponent } from './progress-indicator.component';
8
+ import { SkyProgressIndicatorItemComponent } from './progress-indicator-item/progress-indicator-item.component';
9
+ import { SkyProgressIndicatorNavButtonComponent } from './progress-indicator-nav-button/progress-indicator-nav-button.component';
10
+ import { SkyProgressIndicatorResetButtonComponent } from './progress-indicator-reset-button/progress-indicator-reset-button.component';
11
+ import { SkyProgressIndicatorStatusMarkerComponent } from './progress-indicator-status-marker/progress-indicator-status-marker.component';
12
+ import { SkyProgressIndicatorTitleComponent } from './progress-indicator-title/progress-indicator-title.component';
13
+ import * as i0 from "@angular/core";
14
+ export class SkyProgressIndicatorModule {
15
+ }
16
+ SkyProgressIndicatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
17
+ SkyProgressIndicatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorModule, declarations: [SkyProgressIndicatorComponent,
18
+ SkyProgressIndicatorItemComponent,
19
+ SkyProgressIndicatorNavButtonComponent,
20
+ SkyProgressIndicatorResetButtonComponent,
21
+ SkyProgressIndicatorStatusMarkerComponent,
22
+ SkyProgressIndicatorTitleComponent], imports: [CommonModule,
23
+ SkyI18nModule,
24
+ SkyIconModule,
25
+ SkyProgressIndicatorResourcesModule,
26
+ SkyThemeModule], exports: [SkyProgressIndicatorComponent,
27
+ SkyProgressIndicatorItemComponent,
28
+ SkyProgressIndicatorNavButtonComponent,
29
+ SkyProgressIndicatorResetButtonComponent,
30
+ SkyProgressIndicatorTitleComponent] });
31
+ SkyProgressIndicatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorModule, imports: [[
32
+ CommonModule,
33
+ SkyI18nModule,
34
+ SkyIconModule,
35
+ SkyProgressIndicatorResourcesModule,
36
+ SkyThemeModule,
37
+ ]] });
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SkyProgressIndicatorModule, decorators: [{
39
+ type: NgModule,
40
+ args: [{
41
+ declarations: [
42
+ SkyProgressIndicatorComponent,
43
+ SkyProgressIndicatorItemComponent,
44
+ SkyProgressIndicatorNavButtonComponent,
45
+ SkyProgressIndicatorResetButtonComponent,
46
+ SkyProgressIndicatorStatusMarkerComponent,
47
+ SkyProgressIndicatorTitleComponent,
48
+ ],
49
+ imports: [
50
+ CommonModule,
51
+ SkyI18nModule,
52
+ SkyIconModule,
53
+ SkyProgressIndicatorResourcesModule,
54
+ SkyThemeModule,
55
+ ],
56
+ exports: [
57
+ SkyProgressIndicatorComponent,
58
+ SkyProgressIndicatorItemComponent,
59
+ SkyProgressIndicatorNavButtonComponent,
60
+ SkyProgressIndicatorResetButtonComponent,
61
+ SkyProgressIndicatorTitleComponent,
62
+ ],
63
+ }]
64
+ }] });
65
+ //# sourceMappingURL=progress-indicator.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator.module.js","sourceRoot":"","sources":["../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/progress-indicator.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,OAAO,EAAE,mCAAmC,EAAE,MAAM,mDAAmD,CAAC;AAExG,OAAO,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAE/E,OAAO,EAAE,iCAAiC,EAAE,MAAM,6DAA6D,CAAC;AAEhH,OAAO,EAAE,sCAAsC,EAAE,MAAM,yEAAyE,CAAC;AAEjI,OAAO,EAAE,wCAAwC,EAAE,MAAM,6EAA6E,CAAC;AAEvI,OAAO,EAAE,yCAAyC,EAAE,MAAM,+EAA+E,CAAC;AAE1I,OAAO,EAAE,kCAAkC,EAAE,MAAM,+DAA+D,CAAC;;AA0BnH,MAAM,OAAO,0BAA0B;;wHAA1B,0BAA0B;yHAA1B,0BAA0B,iBAtBnC,6BAA6B;QAC7B,iCAAiC;QACjC,sCAAsC;QACtC,wCAAwC;QACxC,yCAAyC;QACzC,kCAAkC,aAGlC,YAAY;QACZ,aAAa;QACb,aAAa;QACb,mCAAmC;QACnC,cAAc,aAGd,6BAA6B;QAC7B,iCAAiC;QACjC,sCAAsC;QACtC,wCAAwC;QACxC,kCAAkC;yHAGzB,0BAA0B,YAf5B;YACP,YAAY;YACZ,aAAa;YACb,aAAa;YACb,mCAAmC;YACnC,cAAc;SACf;4FASU,0BAA0B;kBAxBtC,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,6BAA6B;wBAC7B,iCAAiC;wBACjC,sCAAsC;wBACtC,wCAAwC;wBACxC,yCAAyC;wBACzC,kCAAkC;qBACnC;oBACD,OAAO,EAAE;wBACP,YAAY;wBACZ,aAAa;wBACb,aAAa;wBACb,mCAAmC;wBACnC,cAAc;qBACf;oBACD,OAAO,EAAE;wBACP,6BAA6B;wBAC7B,iCAAiC;wBACjC,sCAAsC;wBACtC,wCAAwC;wBACxC,kCAAkC;qBACnC;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\n\nimport { CommonModule } from '@angular/common';\n\nimport { SkyI18nModule } from '@skyux/i18n';\n\nimport { SkyIconModule } from '@skyux/indicators';\n\nimport { SkyThemeModule } from '@skyux/theme';\n\nimport { SkyProgressIndicatorResourcesModule } from '../shared/sky-progress-indicator-resources.module';\n\nimport { SkyProgressIndicatorComponent } from './progress-indicator.component';\n\nimport { SkyProgressIndicatorItemComponent } from './progress-indicator-item/progress-indicator-item.component';\n\nimport { SkyProgressIndicatorNavButtonComponent } from './progress-indicator-nav-button/progress-indicator-nav-button.component';\n\nimport { SkyProgressIndicatorResetButtonComponent } from './progress-indicator-reset-button/progress-indicator-reset-button.component';\n\nimport { SkyProgressIndicatorStatusMarkerComponent } from './progress-indicator-status-marker/progress-indicator-status-marker.component';\n\nimport { SkyProgressIndicatorTitleComponent } from './progress-indicator-title/progress-indicator-title.component';\n\n@NgModule({\n declarations: [\n SkyProgressIndicatorComponent,\n SkyProgressIndicatorItemComponent,\n SkyProgressIndicatorNavButtonComponent,\n SkyProgressIndicatorResetButtonComponent,\n SkyProgressIndicatorStatusMarkerComponent,\n SkyProgressIndicatorTitleComponent,\n ],\n imports: [\n CommonModule,\n SkyI18nModule,\n SkyIconModule,\n SkyProgressIndicatorResourcesModule,\n SkyThemeModule,\n ],\n exports: [\n SkyProgressIndicatorComponent,\n SkyProgressIndicatorItemComponent,\n SkyProgressIndicatorNavButtonComponent,\n SkyProgressIndicatorResetButtonComponent,\n SkyProgressIndicatorTitleComponent,\n ],\n})\nexport class SkyProgressIndicatorModule {}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=progress-indicator-action-click-args.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-action-click-args.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-action-click-args.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyProgressIndicatorActionClickProgressHandler } from './progress-indicator-action-click-progress-handler';\n\n/**\n * The arguments passed to the `actionClick` event handler.\n */\nexport interface SkyProgressIndicatorActionClickArgs {\n /**\n * The progress handler object that allows consumers to trigger step advancement manually.\n */\n progressHandler: SkyProgressIndicatorActionClickProgressHandler;\n\n /**\n * The mouse event from the user click.\n */\n event: MouseEvent;\n}\n"]}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Allows the consumer to decide whether the button's action should be completed successfully.
3
+ * The handler is provided with all nav button types.
4
+ */
5
+ export class SkyProgressIndicatorActionClickProgressHandler {
6
+ /**
7
+ *
8
+ * @param advance Advances the progress indicator to the next step.
9
+ */
10
+ constructor(advance) {
11
+ this.advance = advance;
12
+ }
13
+ }
14
+ //# sourceMappingURL=progress-indicator-action-click-progress-handler.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-action-click-progress-handler.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-action-click-progress-handler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,OAAO,8CAA8C;IACzD;;;OAGG;IACH,YAA4B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;IAAG,CAAC;CAClD","sourcesContent":["/**\n * Allows the consumer to decide whether the button's action should be completed successfully.\n * The handler is provided with all nav button types.\n */\nexport class SkyProgressIndicatorActionClickProgressHandler {\n /**\n *\n * @param advance Advances the progress indicator to the next step.\n */\n constructor(public readonly advance: Function) {}\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=progress-indicator-change.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-change.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-change.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyProgressIndicatorItemStatus } from './progress-indicator-item-status';\n\nexport interface SkyProgressIndicatorChange {\n /**\n * Specifies the active item.\n */\n activeIndex?: number;\n\n /**\n * Indicates whether the progress indicator is complete.\n */\n isComplete?: boolean;\n\n /**\n * Specifies an array with the status of each item.\n */\n itemStatuses?: SkyProgressIndicatorItemStatus[];\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=progress-indicator-display-mode-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-display-mode-type.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-display-mode-type.ts"],"names":[],"mappings":"","sourcesContent":["export type SkyProgressIndicatorDisplayModeType =\n | 0\n | 1\n | 'vertical'\n | 'horizontal';\n"]}
@@ -0,0 +1,20 @@
1
+ export var SkyProgressIndicatorItemStatus;
2
+ (function (SkyProgressIndicatorItemStatus) {
3
+ /**
4
+ * Indicates the item is active.
5
+ */
6
+ SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Active"] = 0] = "Active";
7
+ /**
8
+ * Indicates the item is complete.
9
+ */
10
+ SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Complete"] = 1] = "Complete";
11
+ /**
12
+ * Indicates the item is incomplete.
13
+ */
14
+ SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Incomplete"] = 2] = "Incomplete";
15
+ /**
16
+ * Indicates the item is pending.
17
+ */
18
+ SkyProgressIndicatorItemStatus[SkyProgressIndicatorItemStatus["Pending"] = 3] = "Pending";
19
+ })(SkyProgressIndicatorItemStatus || (SkyProgressIndicatorItemStatus = {}));
20
+ //# sourceMappingURL=progress-indicator-item-status.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-item-status.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-item-status.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,8BAoBX;AApBD,WAAY,8BAA8B;IACxC;;OAEG;IACH,uFAAU,CAAA;IAEV;;OAEG;IACH,2FAAQ,CAAA;IAER;;OAEG;IACH,+FAAU,CAAA;IAEV;;OAEG;IACH,yFAAO,CAAA;AACT,CAAC,EApBW,8BAA8B,KAA9B,8BAA8B,QAoBzC","sourcesContent":["export enum SkyProgressIndicatorItemStatus {\n /**\n * Indicates the item is active.\n */\n Active = 0,\n\n /**\n * Indicates the item is complete.\n */\n Complete,\n\n /**\n * Indicates the item is incomplete.\n */\n Incomplete,\n\n /**\n * Indicates the item is pending.\n */\n Pending,\n}\n"]}
@@ -0,0 +1,28 @@
1
+ export var SkyProgressIndicatorMessageType;
2
+ (function (SkyProgressIndicatorMessageType) {
3
+ /**
4
+ * Indicates that the current step is complete.
5
+ * This completes the active item and moves to the next item.
6
+ */
7
+ SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Progress"] = 0] = "Progress";
8
+ /**
9
+ * Indicates that progress should return to the previous step.
10
+ * This moves from the active item to the item that precedes it.
11
+ */
12
+ SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Regress"] = 1] = "Regress";
13
+ /**
14
+ * Indicates that progress is incomplete.
15
+ * This marks all items as incomplete and sets the first item as the active item.
16
+ */
17
+ SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Reset"] = 2] = "Reset";
18
+ /**
19
+ * Indicates that progress is complete.
20
+ * This marks all items as complete and sets the last item as the active item.
21
+ */
22
+ SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["Finish"] = 3] = "Finish";
23
+ /**
24
+ * Indicates that progress should move to the item indicated by the `data.activeIndex` property.
25
+ */
26
+ SkyProgressIndicatorMessageType[SkyProgressIndicatorMessageType["GoTo"] = 4] = "GoTo";
27
+ })(SkyProgressIndicatorMessageType || (SkyProgressIndicatorMessageType = {}));
28
+ //# sourceMappingURL=progress-indicator-message-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-message-type.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-message-type.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,+BA6BX;AA7BD,WAAY,+BAA+B;IACzC;;;OAGG;IACH,6FAAY,CAAA;IAEZ;;;OAGG;IACH,2FAAW,CAAA;IAEX;;;OAGG;IACH,uFAAS,CAAA;IAET;;;OAGG;IACH,yFAAU,CAAA;IAEV;;OAEG;IACH,qFAAQ,CAAA;AACV,CAAC,EA7BW,+BAA+B,KAA/B,+BAA+B,QA6B1C","sourcesContent":["export enum SkyProgressIndicatorMessageType {\n /**\n * Indicates that the current step is complete.\n * This completes the active item and moves to the next item.\n */\n Progress = 0,\n\n /**\n * Indicates that progress should return to the previous step.\n * This moves from the active item to the item that precedes it.\n */\n Regress = 1,\n\n /**\n * Indicates that progress is incomplete.\n * This marks all items as incomplete and sets the first item as the active item.\n */\n Reset = 2,\n\n /**\n * Indicates that progress is complete.\n * This marks all items as complete and sets the last item as the active item.\n */\n Finish = 3,\n\n /**\n * Indicates that progress should move to the item indicated by the `data.activeIndex` property.\n */\n GoTo = 4,\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=progress-indicator-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-message.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-message.ts"],"names":[],"mappings":"","sourcesContent":["import { SkyProgressIndicatorMessageType } from './progress-indicator-message-type';\n\nexport interface SkyProgressIndicatorMessage {\n /**\n * Indicates the type of state change for the progress indicator.\n */\n type: SkyProgressIndicatorMessageType;\n\n /**\n * Used in conjunction with SkyProgressIndicatorMessageType.GoTo\n * to travel to a specific step by specifying an index number on the `data.activeIndex` property.\n */\n data?: {\n activeIndex?: number;\n\n // Allow any other data to be passed.\n [key: string]: any;\n };\n}\n"]}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * @deprecated Use `SkyProgressIndicatorDisplayModeType` instead.
3
+ * @internal
4
+ */
5
+ export var SkyProgressIndicatorDisplayMode;
6
+ (function (SkyProgressIndicatorDisplayMode) {
7
+ /**
8
+ * Specifies a vertical layout for the progress indicator.
9
+ */
10
+ SkyProgressIndicatorDisplayMode[SkyProgressIndicatorDisplayMode["Vertical"] = 0] = "Vertical";
11
+ /**
12
+ * Specifies a horizontal layout for the progress indicator.
13
+ */
14
+ SkyProgressIndicatorDisplayMode[SkyProgressIndicatorDisplayMode["Horizontal"] = 1] = "Horizontal";
15
+ })(SkyProgressIndicatorDisplayMode || (SkyProgressIndicatorDisplayMode = {}));
16
+ //# sourceMappingURL=progress-indicator-mode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-mode.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-mode.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAN,IAAY,+BAUX;AAVD,WAAY,+BAA+B;IACzC;;OAEG;IACH,6FAAY,CAAA;IAEZ;;OAEG;IACH,iGAAU,CAAA;AACZ,CAAC,EAVW,+BAA+B,KAA/B,+BAA+B,QAU1C","sourcesContent":["/**\n * @deprecated Use `SkyProgressIndicatorDisplayModeType` instead.\n * @internal\n */\nexport enum SkyProgressIndicatorDisplayMode {\n /**\n * Specifies a vertical layout for the progress indicator.\n */\n Vertical = 0,\n\n /**\n * Specifies a horizontal layout for the progress indicator.\n */\n Horizontal,\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=progress-indicator-nav-button-type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-indicator-nav-button-type.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/progress-indicator/src/lib/modules/progress-indicator/types/progress-indicator-nav-button-type.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Specifies the nav button type. The valid options are `finish`, `next`, `previous`, and `reset`.\n */\nexport type SkyProgressIndicatorNavButtonType =\n | 'finish'\n | 'next'\n | 'previous'\n | 'reset';\n"]}