source: trip-planner-front/node_modules/@angular/cdk/esm2015/stepper/stepper.js@ bdd6491

Last change on this file since bdd6491 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 63.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { FocusKeyManager } from '@angular/cdk/a11y';
9import { Directionality } from '@angular/cdk/bidi';
10import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
11import { ENTER, hasModifierKey, SPACE } from '@angular/cdk/keycodes';
12import { DOCUMENT } from '@angular/common';
13import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, ElementRef, EventEmitter, forwardRef, Inject, InjectionToken, Input, Optional, Output, QueryList, TemplateRef, ViewChild, ViewEncapsulation, } from '@angular/core';
14import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
15import { of as observableOf, Subject } from 'rxjs';
16import { startWith, takeUntil } from 'rxjs/operators';
17import { CdkStepHeader } from './step-header';
18import { CdkStepLabel } from './step-label';
19/** Used to generate unique ID for each stepper component. */
20let nextId = 0;
21/** Change event emitted on selection changes. */
22export class StepperSelectionEvent {
23}
24/** Enum to represent the different states of the steps. */
25export const STEP_STATE = {
26 NUMBER: 'number',
27 EDIT: 'edit',
28 DONE: 'done',
29 ERROR: 'error'
30};
31/** InjectionToken that can be used to specify the global stepper options. */
32export const STEPPER_GLOBAL_OPTIONS = new InjectionToken('STEPPER_GLOBAL_OPTIONS');
33export class CdkStep {
34 constructor(_stepper, stepperOptions) {
35 this._stepper = _stepper;
36 /** Whether user has attempted to move away from the step. */
37 this.interacted = false;
38 /** Emits when the user has attempted to move away from the step. */
39 this.interactedStream = new EventEmitter();
40 this._editable = true;
41 this._optional = false;
42 this._completedOverride = null;
43 this._customError = null;
44 this._stepperOptions = stepperOptions ? stepperOptions : {};
45 this._displayDefaultIndicatorType = this._stepperOptions.displayDefaultIndicatorType !== false;
46 }
47 /** Whether the user can return to this step once it has been marked as completed. */
48 get editable() {
49 return this._editable;
50 }
51 set editable(value) {
52 this._editable = coerceBooleanProperty(value);
53 }
54 /** Whether the completion of step is optional. */
55 get optional() {
56 return this._optional;
57 }
58 set optional(value) {
59 this._optional = coerceBooleanProperty(value);
60 }
61 /** Whether step is marked as completed. */
62 get completed() {
63 return this._completedOverride == null ? this._getDefaultCompleted() : this._completedOverride;
64 }
65 set completed(value) {
66 this._completedOverride = coerceBooleanProperty(value);
67 }
68 _getDefaultCompleted() {
69 return this.stepControl ? this.stepControl.valid && this.interacted : this.interacted;
70 }
71 /** Whether step has an error. */
72 get hasError() {
73 return this._customError == null ? this._getDefaultError() : this._customError;
74 }
75 set hasError(value) {
76 this._customError = coerceBooleanProperty(value);
77 }
78 _getDefaultError() {
79 return this.stepControl && this.stepControl.invalid && this.interacted;
80 }
81 /** Selects this step component. */
82 select() {
83 this._stepper.selected = this;
84 }
85 /** Resets the step to its initial state. Note that this includes resetting form data. */
86 reset() {
87 this.interacted = false;
88 if (this._completedOverride != null) {
89 this._completedOverride = false;
90 }
91 if (this._customError != null) {
92 this._customError = false;
93 }
94 if (this.stepControl) {
95 this.stepControl.reset();
96 }
97 }
98 ngOnChanges() {
99 // Since basically all inputs of the MatStep get proxied through the view down to the
100 // underlying MatStepHeader, we have to make sure that change detection runs correctly.
101 this._stepper._stateChanged();
102 }
103 _markAsInteracted() {
104 if (!this.interacted) {
105 this.interacted = true;
106 this.interactedStream.emit(this);
107 }
108 }
109 /** Determines whether the error state can be shown. */
110 _showError() {
111 var _a;
112 // We want to show the error state either if the user opted into/out of it using the
113 // global options, or if they've explicitly set it through the `hasError` input.
114 return (_a = this._stepperOptions.showError) !== null && _a !== void 0 ? _a : this._customError != null;
115 }
116}
117CdkStep.decorators = [
118 { type: Component, args: [{
119 selector: 'cdk-step',
120 exportAs: 'cdkStep',
121 template: '<ng-template><ng-content></ng-content></ng-template>',
122 encapsulation: ViewEncapsulation.None,
123 changeDetection: ChangeDetectionStrategy.OnPush
124 },] }
125];
126CdkStep.ctorParameters = () => [
127 { type: CdkStepper, decorators: [{ type: Inject, args: [forwardRef(() => CdkStepper),] }] },
128 { type: undefined, decorators: [{ type: Optional }, { type: Inject, args: [STEPPER_GLOBAL_OPTIONS,] }] }
129];
130CdkStep.propDecorators = {
131 stepLabel: [{ type: ContentChild, args: [CdkStepLabel,] }],
132 content: [{ type: ViewChild, args: [TemplateRef, { static: true },] }],
133 stepControl: [{ type: Input }],
134 interactedStream: [{ type: Output, args: ['interacted',] }],
135 label: [{ type: Input }],
136 errorMessage: [{ type: Input }],
137 ariaLabel: [{ type: Input, args: ['aria-label',] }],
138 ariaLabelledby: [{ type: Input, args: ['aria-labelledby',] }],
139 state: [{ type: Input }],
140 editable: [{ type: Input }],
141 optional: [{ type: Input }],
142 completed: [{ type: Input }],
143 hasError: [{ type: Input }]
144};
145export class CdkStepper {
146 constructor(_dir, _changeDetectorRef, _elementRef,
147 /**
148 * @deprecated No longer in use, to be removed.
149 * @breaking-change 13.0.0
150 */
151 _document) {
152 this._dir = _dir;
153 this._changeDetectorRef = _changeDetectorRef;
154 this._elementRef = _elementRef;
155 /** Emits when the component is destroyed. */
156 this._destroyed = new Subject();
157 /** Steps that belong to the current stepper, excluding ones from nested steppers. */
158 this.steps = new QueryList();
159 /** List of step headers sorted based on their DOM order. */
160 this._sortedHeaders = new QueryList();
161 this._linear = false;
162 this._selectedIndex = 0;
163 /** Event emitted when the selected step has changed. */
164 this.selectionChange = new EventEmitter();
165 /**
166 * @deprecated To be turned into a private property. Use `orientation` instead.
167 * @breaking-change 13.0.0
168 */
169 this._orientation = 'horizontal';
170 this._groupId = nextId++;
171 }
172 /** Whether the validity of previous steps should be checked or not. */
173 get linear() {
174 return this._linear;
175 }
176 set linear(value) {
177 this._linear = coerceBooleanProperty(value);
178 }
179 /** The index of the selected step. */
180 get selectedIndex() {
181 return this._selectedIndex;
182 }
183 set selectedIndex(index) {
184 var _a;
185 const newIndex = coerceNumberProperty(index);
186 if (this.steps && this._steps) {
187 // Ensure that the index can't be out of bounds.
188 if (!this._isValidIndex(index) && (typeof ngDevMode === 'undefined' || ngDevMode)) {
189 throw Error('cdkStepper: Cannot assign out-of-bounds value to `selectedIndex`.');
190 }
191 (_a = this.selected) === null || _a === void 0 ? void 0 : _a._markAsInteracted();
192 if (this._selectedIndex !== newIndex && !this._anyControlsInvalidOrPending(newIndex) &&
193 (newIndex >= this._selectedIndex || this.steps.toArray()[newIndex].editable)) {
194 this._updateSelectedItemIndex(index);
195 }
196 }
197 else {
198 this._selectedIndex = newIndex;
199 }
200 }
201 /** The step that is selected. */
202 get selected() {
203 return this.steps ? this.steps.toArray()[this.selectedIndex] : undefined;
204 }
205 set selected(step) {
206 this.selectedIndex = (step && this.steps) ? this.steps.toArray().indexOf(step) : -1;
207 }
208 /** Orientation of the stepper. */
209 get orientation() { return this._orientation; }
210 set orientation(value) {
211 // This is a protected method so that `MatSteppter` can hook into it.
212 this._orientation = value;
213 if (this._keyManager) {
214 this._keyManager.withVerticalOrientation(value === 'vertical');
215 }
216 }
217 ngAfterContentInit() {
218 this._steps.changes
219 .pipe(startWith(this._steps), takeUntil(this._destroyed))
220 .subscribe((steps) => {
221 this.steps.reset(steps.filter(step => step._stepper === this));
222 this.steps.notifyOnChanges();
223 });
224 }
225 ngAfterViewInit() {
226 // If the step headers are defined outside of the `ngFor` that renders the steps, like in the
227 // Material stepper, they won't appear in the `QueryList` in the same order as they're
228 // rendered in the DOM which will lead to incorrect keyboard navigation. We need to sort
229 // them manually to ensure that they're correct. Alternatively, we can change the Material
230 // template to inline the headers in the `ngFor`, but that'll result in a lot of
231 // code duplciation. See #23539.
232 this._stepHeader.changes
233 .pipe(startWith(this._stepHeader), takeUntil(this._destroyed))
234 .subscribe((headers) => {
235 this._sortedHeaders.reset(headers.toArray().sort((a, b) => {
236 const documentPosition = a._elementRef.nativeElement.compareDocumentPosition(b._elementRef.nativeElement);
237 // `compareDocumentPosition` returns a bitmask so we have to use a bitwise operator.
238 // https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
239 // tslint:disable-next-line:no-bitwise
240 return documentPosition & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
241 }));
242 this._sortedHeaders.notifyOnChanges();
243 });
244 // Note that while the step headers are content children by default, any components that
245 // extend this one might have them as view children. We initialize the keyboard handling in
246 // AfterViewInit so we're guaranteed for both view and content children to be defined.
247 this._keyManager = new FocusKeyManager(this._sortedHeaders)
248 .withWrap()
249 .withHomeAndEnd()
250 .withVerticalOrientation(this._orientation === 'vertical');
251 (this._dir ? this._dir.change : observableOf())
252 .pipe(startWith(this._layoutDirection()), takeUntil(this._destroyed))
253 .subscribe(direction => this._keyManager.withHorizontalOrientation(direction));
254 this._keyManager.updateActiveItem(this._selectedIndex);
255 // No need to `takeUntil` here, because we're the ones destroying `steps`.
256 this.steps.changes.subscribe(() => {
257 if (!this.selected) {
258 this._selectedIndex = Math.max(this._selectedIndex - 1, 0);
259 }
260 });
261 // The logic which asserts that the selected index is within bounds doesn't run before the
262 // steps are initialized, because we don't how many steps there are yet so we may have an
263 // invalid index on init. If that's the case, auto-correct to the default so we don't throw.
264 if (!this._isValidIndex(this._selectedIndex)) {
265 this._selectedIndex = 0;
266 }
267 }
268 ngOnDestroy() {
269 this.steps.destroy();
270 this._sortedHeaders.destroy();
271 this._destroyed.next();
272 this._destroyed.complete();
273 }
274 /** Selects and focuses the next step in list. */
275 next() {
276 this.selectedIndex = Math.min(this._selectedIndex + 1, this.steps.length - 1);
277 }
278 /** Selects and focuses the previous step in list. */
279 previous() {
280 this.selectedIndex = Math.max(this._selectedIndex - 1, 0);
281 }
282 /** Resets the stepper to its initial state. Note that this includes clearing form data. */
283 reset() {
284 this._updateSelectedItemIndex(0);
285 this.steps.forEach(step => step.reset());
286 this._stateChanged();
287 }
288 /** Returns a unique id for each step label element. */
289 _getStepLabelId(i) {
290 return `cdk-step-label-${this._groupId}-${i}`;
291 }
292 /** Returns unique id for each step content element. */
293 _getStepContentId(i) {
294 return `cdk-step-content-${this._groupId}-${i}`;
295 }
296 /** Marks the component to be change detected. */
297 _stateChanged() {
298 this._changeDetectorRef.markForCheck();
299 }
300 /** Returns position state of the step with the given index. */
301 _getAnimationDirection(index) {
302 const position = index - this._selectedIndex;
303 if (position < 0) {
304 return this._layoutDirection() === 'rtl' ? 'next' : 'previous';
305 }
306 else if (position > 0) {
307 return this._layoutDirection() === 'rtl' ? 'previous' : 'next';
308 }
309 return 'current';
310 }
311 /** Returns the type of icon to be displayed. */
312 _getIndicatorType(index, state = STEP_STATE.NUMBER) {
313 const step = this.steps.toArray()[index];
314 const isCurrentStep = this._isCurrentStep(index);
315 return step._displayDefaultIndicatorType ? this._getDefaultIndicatorLogic(step, isCurrentStep) :
316 this._getGuidelineLogic(step, isCurrentStep, state);
317 }
318 _getDefaultIndicatorLogic(step, isCurrentStep) {
319 if (step._showError() && step.hasError && !isCurrentStep) {
320 return STEP_STATE.ERROR;
321 }
322 else if (!step.completed || isCurrentStep) {
323 return STEP_STATE.NUMBER;
324 }
325 else {
326 return step.editable ? STEP_STATE.EDIT : STEP_STATE.DONE;
327 }
328 }
329 _getGuidelineLogic(step, isCurrentStep, state = STEP_STATE.NUMBER) {
330 if (step._showError() && step.hasError && !isCurrentStep) {
331 return STEP_STATE.ERROR;
332 }
333 else if (step.completed && !isCurrentStep) {
334 return STEP_STATE.DONE;
335 }
336 else if (step.completed && isCurrentStep) {
337 return state;
338 }
339 else if (step.editable && isCurrentStep) {
340 return STEP_STATE.EDIT;
341 }
342 else {
343 return state;
344 }
345 }
346 _isCurrentStep(index) {
347 return this._selectedIndex === index;
348 }
349 /** Returns the index of the currently-focused step header. */
350 _getFocusIndex() {
351 return this._keyManager ? this._keyManager.activeItemIndex : this._selectedIndex;
352 }
353 _updateSelectedItemIndex(newIndex) {
354 const stepsArray = this.steps.toArray();
355 this.selectionChange.emit({
356 selectedIndex: newIndex,
357 previouslySelectedIndex: this._selectedIndex,
358 selectedStep: stepsArray[newIndex],
359 previouslySelectedStep: stepsArray[this._selectedIndex],
360 });
361 // If focus is inside the stepper, move it to the next header, otherwise it may become
362 // lost when the active step content is hidden. We can't be more granular with the check
363 // (e.g. checking whether focus is inside the active step), because we don't have a
364 // reference to the elements that are rendering out the content.
365 this._containsFocus() ? this._keyManager.setActiveItem(newIndex) :
366 this._keyManager.updateActiveItem(newIndex);
367 this._selectedIndex = newIndex;
368 this._stateChanged();
369 }
370 _onKeydown(event) {
371 const hasModifier = hasModifierKey(event);
372 const keyCode = event.keyCode;
373 const manager = this._keyManager;
374 if (manager.activeItemIndex != null && !hasModifier &&
375 (keyCode === SPACE || keyCode === ENTER)) {
376 this.selectedIndex = manager.activeItemIndex;
377 event.preventDefault();
378 }
379 else {
380 manager.onKeydown(event);
381 }
382 }
383 _anyControlsInvalidOrPending(index) {
384 if (this._linear && index >= 0) {
385 return this.steps.toArray().slice(0, index).some(step => {
386 const control = step.stepControl;
387 const isIncomplete = control ? (control.invalid || control.pending || !step.interacted) : !step.completed;
388 return isIncomplete && !step.optional && !step._completedOverride;
389 });
390 }
391 return false;
392 }
393 _layoutDirection() {
394 return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
395 }
396 /** Checks whether the stepper contains the focused element. */
397 _containsFocus() {
398 const stepperElement = this._elementRef.nativeElement;
399 const focusedElement = _getFocusedElementPierceShadowDom();
400 return stepperElement === focusedElement || stepperElement.contains(focusedElement);
401 }
402 /** Checks whether the passed-in index is a valid step index. */
403 _isValidIndex(index) {
404 return index > -1 && (!this.steps || index < this.steps.length);
405 }
406}
407CdkStepper.decorators = [
408 { type: Directive, args: [{
409 selector: '[cdkStepper]',
410 exportAs: 'cdkStepper',
411 },] }
412];
413CdkStepper.ctorParameters = () => [
414 { type: Directionality, decorators: [{ type: Optional }] },
415 { type: ChangeDetectorRef },
416 { type: ElementRef },
417 { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
418];
419CdkStepper.propDecorators = {
420 _steps: [{ type: ContentChildren, args: [CdkStep, { descendants: true },] }],
421 _stepHeader: [{ type: ContentChildren, args: [CdkStepHeader, { descendants: true },] }],
422 linear: [{ type: Input }],
423 selectedIndex: [{ type: Input }],
424 selected: [{ type: Input }],
425 selectionChange: [{ type: Output }],
426 orientation: [{ type: Input }]
427};
428//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9jZGsvc3RlcHBlci9zdGVwcGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVILE9BQU8sRUFBa0IsZUFBZSxFQUFDLE1BQU0sbUJBQW1CLENBQUM7QUFDbkUsT0FBTyxFQUFZLGNBQWMsRUFBQyxNQUFNLG1CQUFtQixDQUFDO0FBQzVELE9BQU8sRUFFTCxxQkFBcUIsRUFDckIsb0JBQW9CLEVBRXJCLE1BQU0sdUJBQXVCLENBQUM7QUFDL0IsT0FBTyxFQUFDLEtBQUssRUFBRSxjQUFjLEVBQUUsS0FBSyxFQUFDLE1BQU0sdUJBQXVCLENBQUM7QUFDbkUsT0FBTyxFQUFDLFFBQVEsRUFBQyxNQUFNLGlCQUFpQixDQUFDO0FBQ3pDLE9BQU8sRUFFTCx1QkFBdUIsRUFDdkIsaUJBQWlCLEVBQ2pCLFNBQVMsRUFDVCxZQUFZLEVBQ1osZUFBZSxFQUNmLFNBQVMsRUFDVCxVQUFVLEVBQ1YsWUFBWSxFQUNaLFVBQVUsRUFDVixNQUFNLEVBQ04sY0FBYyxFQUNkLEtBQUssRUFHTCxRQUFRLEVBQ1IsTUFBTSxFQUNOLFNBQVMsRUFDVCxXQUFXLEVBQ1gsU0FBUyxFQUNULGlCQUFpQixHQUVsQixNQU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HJpc3RpbmUob3B0cz86IGFueSk6IHZvaWQ7XG4gIG1hcmtBc1RvdWNoZWQob3B0cz86IGFueSk6IHZvaWQ7XG4gIG1hcmtBc1VudG91Y2hlZChvcHRzPzogYW55KTogdm9pZDtcbiAgcGF0Y2hWYWx1ZSh2YWx1ZTogYW55LCBvcHRpb25zPzogT2JqZWN0KTogdm9pZDtcbiAgcmVzZXQodmFsdWU/OiBhbnksIG9wdGlvbnM/OiBPYmplY3QpOiB2b2lkO1xuICBzZXRBc3luY1ZhbGlkYXRvcnMobmV3VmFsaWRhdG9yOiAoY29udHJvbDogYW55KSA9PiBhbnkgfFxuICAgICgoY29udHJvbDogYW55KSA9PiBhbnkpW10gfCBudWxsKTogdm9pZDtcbiAgc2V0RXJyb3JzKGVycm9yczoge1trZXk6IHN0cmluZ106IGFueX0gfCBudWxsLCBvcHRzPzogYW55KTogdm9pZDtcbiAgc2V0UGFyZW50KHBhcmVudDogYW55KTogdm9pZDtcbiAgc2V0VmFsaWRhdG9ycyhuZXdWYWxpZGF0b3I6IChjb250cm9sOiBhbnkpID0+IGFueSB8XG4gICAgKChjb250cm9sOiBhbnkpID0+IGFueSlbXSB8IG51bGwpOiB2b2lkO1xuICBzZXRWYWx1ZSh2YWx1ZTogYW55LCBvcHRpb25zPzogT2JqZWN0KTogdm9pZDtcbiAgdXBkYXRlVmFsdWVBbmRWYWxpZGl0eShvcHRzPzogYW55KTogdm9pZDtcbiAgcGF0Y2hWYWx1ZSh2YWx1ZTogYW55LCBvcHRpb25zPzogYW55KTogdm9pZDtcbiAgcmVzZXQoZm9ybVN0YXRlPzogYW55LCBvcHRpb25zPzogYW55KTogdm9pZDtcbiAgc2V0VmFsdWUodmFsdWU6IGFueSwgb3B0aW9ucz86IGFueSk6IHZvaWQ7XG59XG4iXX0=
Note: See TracBrowser for help on using the repository browser.