1 | import { __extends, __awaiter, __generator, __assign } from 'tslib';
|
2 | import { HostListener, Directive, ElementRef, Injectable, Inject, NgZone, defineInjectable, inject, Optional, Component, ChangeDetectionStrategy, ChangeDetectorRef, InjectionToken, ApplicationRef, Injector, ViewContainerRef, ComponentFactoryResolver, Attribute, SkipSelf, Output, EventEmitter, ViewChild, ContentChild, TemplateRef, IterableDiffers, APP_INITIALIZER, NgModule } from '@angular/core';
|
3 | import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
4 | import { DOCUMENT, Location, LocationStrategy, CommonModule } from '@angular/common';
|
5 | import { UrlSerializer, Router, NavigationStart, ActivatedRoute, ChildrenOutletContexts, PRIMARY_OUTLET, RouterLink } from '@angular/router';
|
6 | import { isPlatform, getPlatforms, LIFECYCLE_WILL_ENTER, LIFECYCLE_DID_ENTER, LIFECYCLE_WILL_LEAVE, LIFECYCLE_DID_LEAVE, LIFECYCLE_WILL_UNLOAD, actionSheetController, alertController, loadingController, menuController, pickerController, modalController, popoverController, toastController } from '@ionic/core';
|
7 | import { Subject, fromEvent, BehaviorSubject } from 'rxjs';
|
8 | import { filter, switchMap, distinctUntilChanged } from 'rxjs/operators';
|
9 | import { applyPolyfills, defineCustomElements } from '@ionic/core/loader';
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 | var raf = ( |
17 |
|
18 |
|
19 |
|
20 | function (h) {
|
21 | if (typeof __zone_symbol__requestAnimationFrame === 'function') {
|
22 | return __zone_symbol__requestAnimationFrame(h);
|
23 | }
|
24 | if (typeof requestAnimationFrame === 'function') {
|
25 | return requestAnimationFrame(h);
|
26 | }
|
27 | return setTimeout(h);
|
28 | });
|
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 | var ValueAccessor = (function () {
|
35 | function ValueAccessor(el) {
|
36 | this.el = el;
|
37 | this.onChange = ( |
38 |
|
39 |
|
40 | function () { });
|
41 | this.onTouched = ( |
42 |
|
43 |
|
44 | function () { });
|
45 | }
|
46 | |
47 |
|
48 |
|
49 |
|
50 | ValueAccessor.prototype.writeValue = |
51 |
|
52 |
|
53 |
|
54 | function (value) {
|
55 | this.el.nativeElement.value = this.lastValue = value == null ? '' : value;
|
56 | setIonicClasses(this.el);
|
57 | };
|
58 | |
59 |
|
60 |
|
61 |
|
62 |
|
63 | ValueAccessor.prototype.handleChangeEvent = |
64 |
|
65 |
|
66 |
|
67 |
|
68 | function (el, value) {
|
69 | if (el === this.el.nativeElement) {
|
70 | if (value !== this.lastValue) {
|
71 | this.lastValue = value;
|
72 | this.onChange(value);
|
73 | }
|
74 | setIonicClasses(this.el);
|
75 | }
|
76 | };
|
77 | |
78 |
|
79 |
|
80 |
|
81 | ValueAccessor.prototype._handleBlurEvent = |
82 |
|
83 |
|
84 |
|
85 | function (el) {
|
86 | if (el === this.el.nativeElement) {
|
87 | this.onTouched();
|
88 | setIonicClasses(this.el);
|
89 | }
|
90 | };
|
91 | |
92 |
|
93 |
|
94 |
|
95 | ValueAccessor.prototype.registerOnChange = |
96 |
|
97 |
|
98 |
|
99 | function (fn) {
|
100 | this.onChange = fn;
|
101 | };
|
102 | |
103 |
|
104 |
|
105 |
|
106 | ValueAccessor.prototype.registerOnTouched = |
107 |
|
108 |
|
109 |
|
110 | function (fn) {
|
111 | this.onTouched = fn;
|
112 | };
|
113 | |
114 |
|
115 |
|
116 |
|
117 | ValueAccessor.prototype.setDisabledState = |
118 |
|
119 |
|
120 |
|
121 | function (isDisabled) {
|
122 | this.el.nativeElement.disabled = isDisabled;
|
123 | };
|
124 | ValueAccessor.propDecorators = {
|
125 | _handleBlurEvent: [{ type: HostListener, args: ['ionBlur', ['$event.target'],] }]
|
126 | };
|
127 | return ValueAccessor;
|
128 | }());
|
129 |
|
130 | var setIonicClasses = ( |
131 |
|
132 |
|
133 |
|
134 | function (element) {
|
135 | raf(( |
136 |
|
137 |
|
138 | function () {
|
139 |
|
140 | var input = ( (element.nativeElement));
|
141 |
|
142 | var classes = getClasses(input);
|
143 | setClasses(input, classes);
|
144 |
|
145 | var item = input.closest('ion-item');
|
146 | if (item) {
|
147 | setClasses(item, classes);
|
148 | }
|
149 | }));
|
150 | });
|
151 |
|
152 | var getClasses = ( |
153 |
|
154 |
|
155 |
|
156 | function (element) {
|
157 |
|
158 | var classList = element.classList;
|
159 |
|
160 | var classes = [];
|
161 | for (var i = 0; i < classList.length; i++) {
|
162 |
|
163 | var item = classList.item(i);
|
164 | if (item !== null && startsWith(item, 'ng-')) {
|
165 | classes.push("ion-" + item.substr(3));
|
166 | }
|
167 | }
|
168 | return classes;
|
169 | });
|
170 |
|
171 | var setClasses = ( |
172 |
|
173 |
|
174 |
|
175 |
|
176 | function (element, classes) {
|
177 |
|
178 | var classList = element.classList;
|
179 | [
|
180 | 'ion-valid',
|
181 | 'ion-invalid',
|
182 | 'ion-touched',
|
183 | 'ion-untouched',
|
184 | 'ion-dirty',
|
185 | 'ion-pristine'
|
186 | ].forEach(( |
187 |
|
188 |
|
189 |
|
190 | function (c) { return classList.remove(c); }));
|
191 | classes.forEach(( |
192 |
|
193 |
|
194 |
|
195 | function (c) { return classList.add(c); }));
|
196 | });
|
197 |
|
198 | var startsWith = ( |
199 |
|
200 |
|
201 |
|
202 |
|
203 | function (input, search) {
|
204 | return input.substr(0, search.length) === search;
|
205 | });
|
206 |
|
207 |
|
208 |
|
209 |
|
210 |
|
211 | var BooleanValueAccessor = (function (_super) {
|
212 | __extends(BooleanValueAccessor, _super);
|
213 | function BooleanValueAccessor(el) {
|
214 | return _super.call(this, el) || this;
|
215 | }
|
216 | |
217 |
|
218 |
|
219 |
|
220 | BooleanValueAccessor.prototype.writeValue = |
221 |
|
222 |
|
223 |
|
224 | function (value) {
|
225 | this.el.nativeElement.checked = this.lastValue = value == null ? false : value;
|
226 | setIonicClasses(this.el);
|
227 | };
|
228 | |
229 |
|
230 |
|
231 |
|
232 | BooleanValueAccessor.prototype._handleIonChange = |
233 |
|
234 |
|
235 |
|
236 | function (el) {
|
237 | this.handleChangeEvent(el, el.checked);
|
238 | };
|
239 | BooleanValueAccessor.decorators = [
|
240 | { type: Directive, args: [{
|
241 |
|
242 | selector: 'ion-checkbox,ion-toggle',
|
243 | providers: [
|
244 | {
|
245 | provide: NG_VALUE_ACCESSOR,
|
246 | useExisting: BooleanValueAccessor,
|
247 | multi: true
|
248 | }
|
249 | ]
|
250 | },] },
|
251 | ];
|
252 |
|
253 | BooleanValueAccessor.ctorParameters = function () { return [
|
254 | { type: ElementRef }
|
255 | ]; };
|
256 | BooleanValueAccessor.propDecorators = {
|
257 | _handleIonChange: [{ type: HostListener, args: ['ionChange', ['$event.target'],] }]
|
258 | };
|
259 | return BooleanValueAccessor;
|
260 | }(ValueAccessor));
|
261 |
|
262 |
|
263 |
|
264 |
|
265 |
|
266 | var NumericValueAccessor = (function (_super) {
|
267 | __extends(NumericValueAccessor, _super);
|
268 | function NumericValueAccessor(el) {
|
269 | return _super.call(this, el) || this;
|
270 | }
|
271 | |
272 |
|
273 |
|
274 |
|
275 | NumericValueAccessor.prototype._handleIonChange = |
276 |
|
277 |
|
278 |
|
279 | function (el) {
|
280 | this.handleChangeEvent(el, el.value);
|
281 | };
|
282 | |
283 |
|
284 |
|
285 |
|
286 | NumericValueAccessor.prototype.registerOnChange = |
287 |
|
288 |
|
289 |
|
290 | function (fn) {
|
291 | _super.prototype.registerOnChange.call(this, ( |
292 |
|
293 |
|
294 |
|
295 | function (value) {
|
296 | fn(value === '' ? null : parseFloat(value));
|
297 | }));
|
298 | };
|
299 | NumericValueAccessor.decorators = [
|
300 | { type: Directive, args: [{
|
301 |
|
302 | selector: 'ion-input[type=number]',
|
303 | providers: [
|
304 | {
|
305 | provide: NG_VALUE_ACCESSOR,
|
306 | useExisting: NumericValueAccessor,
|
307 | multi: true
|
308 | }
|
309 | ]
|
310 | },] },
|
311 | ];
|
312 |
|
313 | NumericValueAccessor.ctorParameters = function () { return [
|
314 | { type: ElementRef }
|
315 | ]; };
|
316 | NumericValueAccessor.propDecorators = {
|
317 | _handleIonChange: [{ type: HostListener, args: ['ionChange', ['$event.target'],] }]
|
318 | };
|
319 | return NumericValueAccessor;
|
320 | }(ValueAccessor));
|
321 |
|
322 |
|
323 |
|
324 |
|
325 |
|
326 | var RadioValueAccessor = (function (_super) {
|
327 | __extends(RadioValueAccessor, _super);
|
328 | function RadioValueAccessor(el) {
|
329 | return _super.call(this, el) || this;
|
330 | }
|
331 | |
332 |
|
333 |
|
334 |
|
335 | RadioValueAccessor.prototype._handleIonSelect = |
336 |
|
337 |
|
338 |
|
339 | function (el) {
|
340 | this.handleChangeEvent(el, el.checked);
|
341 | };
|
342 | RadioValueAccessor.decorators = [
|
343 | { type: Directive, args: [{
|
344 |
|
345 | selector: 'ion-radio',
|
346 | providers: [
|
347 | {
|
348 | provide: NG_VALUE_ACCESSOR,
|
349 | useExisting: RadioValueAccessor,
|
350 | multi: true
|
351 | }
|
352 | ]
|
353 | },] },
|
354 | ];
|
355 |
|
356 | RadioValueAccessor.ctorParameters = function () { return [
|
357 | { type: ElementRef }
|
358 | ]; };
|
359 | RadioValueAccessor.propDecorators = {
|
360 | _handleIonSelect: [{ type: HostListener, args: ['ionSelect', ['$event.target'],] }]
|
361 | };
|
362 | return RadioValueAccessor;
|
363 | }(ValueAccessor));
|
364 |
|
365 |
|
366 |
|
367 |
|
368 |
|
369 | var SelectValueAccessor = (function (_super) {
|
370 | __extends(SelectValueAccessor, _super);
|
371 | function SelectValueAccessor(el) {
|
372 | return _super.call(this, el) || this;
|
373 | }
|
374 | |
375 |
|
376 |
|
377 |
|
378 | SelectValueAccessor.prototype._handleChangeEvent = |
379 |
|
380 |
|
381 |
|
382 | function (el) {
|
383 | this.handleChangeEvent(el, el.value);
|
384 | };
|
385 | SelectValueAccessor.decorators = [
|
386 | { type: Directive, args: [{
|
387 |
|
388 | selector: 'ion-range, ion-select, ion-radio-group, ion-segment, ion-datetime',
|
389 | providers: [
|
390 | {
|
391 | provide: NG_VALUE_ACCESSOR,
|
392 | useExisting: SelectValueAccessor,
|
393 | multi: true
|
394 | }
|
395 | ]
|
396 | },] },
|
397 | ];
|
398 |
|
399 | SelectValueAccessor.ctorParameters = function () { return [
|
400 | { type: ElementRef }
|
401 | ]; };
|
402 | SelectValueAccessor.propDecorators = {
|
403 | _handleChangeEvent: [{ type: HostListener, args: ['ionChange', ['$event.target'],] }]
|
404 | };
|
405 | return SelectValueAccessor;
|
406 | }(ValueAccessor));
|
407 |
|
408 |
|
409 |
|
410 |
|
411 |
|
412 | var TextValueAccessor = (function (_super) {
|
413 | __extends(TextValueAccessor, _super);
|
414 | function TextValueAccessor(el) {
|
415 | return _super.call(this, el) || this;
|
416 | }
|
417 | |
418 |
|
419 |
|
420 |
|
421 | TextValueAccessor.prototype._handleInputEvent = |
422 |
|
423 |
|
424 |
|
425 | function (el) {
|
426 | this.handleChangeEvent(el, el.value);
|
427 | };
|
428 | TextValueAccessor.decorators = [
|
429 | { type: Directive, args: [{
|
430 |
|
431 | selector: 'ion-input:not([type=number]),ion-textarea,ion-searchbar',
|
432 | providers: [
|
433 | {
|
434 | provide: NG_VALUE_ACCESSOR,
|
435 | useExisting: TextValueAccessor,
|
436 | multi: true
|
437 | }
|
438 | ]
|
439 | },] },
|
440 | ];
|
441 |
|
442 | TextValueAccessor.ctorParameters = function () { return [
|
443 | { type: ElementRef }
|
444 | ]; };
|
445 | TextValueAccessor.propDecorators = {
|
446 | _handleInputEvent: [{ type: HostListener, args: ['ionChange', ['$event.target'],] }]
|
447 | };
|
448 | return TextValueAccessor;
|
449 | }(ValueAccessor));
|
450 |
|
451 |
|
452 |
|
453 |
|
454 |
|
455 | var Platform = (function () {
|
456 | function Platform(doc, zone) {
|
457 | var _this = this;
|
458 | this.doc = doc;
|
459 | |
460 |
|
461 |
|
462 | this.backButton = ( (new Subject()));
|
463 | |
464 |
|
465 |
|
466 |
|
467 |
|
468 |
|
469 | this.pause = new Subject();
|
470 | |
471 |
|
472 |
|
473 |
|
474 |
|
475 | this.resume = new Subject();
|
476 | |
477 |
|
478 |
|
479 |
|
480 |
|
481 | this.resize = new Subject();
|
482 | zone.run(( |
483 |
|
484 |
|
485 | function () {
|
486 | _this.win = doc.defaultView;
|
487 | _this.backButton.subscribeWithPriority = ( |
488 |
|
489 |
|
490 |
|
491 |
|
492 | function (priority, callback) {
|
493 | return this.subscribe(( |
494 |
|
495 |
|
496 |
|
497 | function (ev) { return (ev.register(priority, ( |
498 |
|
499 |
|
500 | function () { return zone.run(callback); }))); }));
|
501 | });
|
502 | proxyEvent(_this.pause, doc, 'pause');
|
503 | proxyEvent(_this.resume, doc, 'resume');
|
504 | proxyEvent(_this.backButton, doc, 'ionBackButton');
|
505 | proxyEvent(_this.resize, _this.win, 'resize');
|
506 |
|
507 | var readyResolve;
|
508 | _this._readyPromise = new Promise(( |
509 |
|
510 |
|
511 |
|
512 | function (res) { readyResolve = res; }));
|
513 | if (_this.win && _this.win['cordova']) {
|
514 | doc.addEventListener('deviceready', ( |
515 |
|
516 |
|
517 | function () {
|
518 | readyResolve('cordova');
|
519 | }), { once: true });
|
520 | }
|
521 | else {
|
522 | ( (readyResolve))('dom');
|
523 | }
|
524 | }));
|
525 | }
|
526 | |
527 |
|
528 |
|
529 |
|
530 |
|
531 |
|
532 |
|
533 |
|
534 |
|
535 |
|
536 |
|
537 |
|
538 |
|
539 |
|
540 |
|
541 |
|
542 |
|
543 |
|
544 |
|
545 |
|
546 |
|
547 |
|
548 |
|
549 |
|
550 |
|
551 |
|
552 |
|
553 |
|
554 |
|
555 |
|
556 |
|
557 |
|
558 |
|
559 |
|
560 |
|
561 |
|
562 |
|
563 |
|
564 |
|
565 |
|
566 |
|
567 |
|
568 | |
569 |
|
570 |
|
571 |
|
572 |
|
573 |
|
574 |
|
575 |
|
576 |
|
577 |
|
578 |
|
579 |
|
580 |
|
581 |
|
582 |
|
583 |
|
584 |
|
585 |
|
586 |
|
587 |
|
588 |
|
589 |
|
590 |
|
591 |
|
592 |
|
593 |
|
594 |
|
595 |
|
596 |
|
597 |
|
598 |
|
599 |
|
600 |
|
601 |
|
602 |
|
603 |
|
604 |
|
605 |
|
606 |
|
607 |
|
608 |
|
609 |
|
610 |
|
611 | Platform.prototype.is = |
612 |
|
613 |
|
614 |
|
615 |
|
616 |
|
617 |
|
618 |
|
619 |
|
620 |
|
621 |
|
622 |
|
623 |
|
624 |
|
625 |
|
626 |
|
627 |
|
628 |
|
629 |
|
630 |
|
631 |
|
632 |
|
633 |
|
634 |
|
635 |
|
636 |
|
637 |
|
638 |
|
639 |
|
640 |
|
641 |
|
642 |
|
643 |
|
644 |
|
645 |
|
646 |
|
647 |
|
648 |
|
649 |
|
650 |
|
651 |
|
652 |
|
653 |
|
654 | function (platformName) {
|
655 | return isPlatform(this.win, platformName);
|
656 | };
|
657 | |
658 |
|
659 |
|
660 |
|
661 |
|
662 |
|
663 |
|
664 |
|
665 |
|
666 |
|
667 |
|
668 |
|
669 |
|
670 |
|
671 |
|
672 |
|
673 |
|
674 |
|
675 |
|
676 | |
677 |
|
678 |
|
679 |
|
680 |
|
681 |
|
682 |
|
683 |
|
684 |
|
685 |
|
686 |
|
687 |
|
688 |
|
689 |
|
690 |
|
691 |
|
692 |
|
693 |
|
694 |
|
695 | Platform.prototype.platforms = |
696 |
|
697 |
|
698 |
|
699 |
|
700 |
|
701 |
|
702 |
|
703 |
|
704 |
|
705 |
|
706 |
|
707 |
|
708 |
|
709 |
|
710 |
|
711 |
|
712 |
|
713 |
|
714 | function () {
|
715 | return getPlatforms(this.win);
|
716 | };
|
717 | |
718 |
|
719 |
|
720 |
|
721 |
|
722 |
|
723 |
|
724 |
|
725 |
|
726 |
|
727 |
|
728 |
|
729 |
|
730 |
|
731 |
|
732 |
|
733 |
|
734 |
|
735 |
|
736 |
|
737 |
|
738 |
|
739 |
|
740 |
|
741 |
|
742 |
|
743 |
|
744 |
|
745 |
|
746 | |
747 |
|
748 |
|
749 |
|
750 |
|
751 |
|
752 |
|
753 |
|
754 |
|
755 |
|
756 |
|
757 |
|
758 |
|
759 |
|
760 |
|
761 |
|
762 |
|
763 |
|
764 |
|
765 |
|
766 |
|
767 |
|
768 |
|
769 |
|
770 |
|
771 |
|
772 |
|
773 |
|
774 |
|
775 |
|
776 | Platform.prototype.ready = |
777 |
|
778 |
|
779 |
|
780 |
|
781 |
|
782 |
|
783 |
|
784 |
|
785 |
|
786 |
|
787 |
|
788 |
|
789 |
|
790 |
|
791 |
|
792 |
|
793 |
|
794 |
|
795 |
|
796 |
|
797 |
|
798 |
|
799 |
|
800 |
|
801 |
|
802 |
|
803 |
|
804 |
|
805 |
|
806 | function () {
|
807 | return this._readyPromise;
|
808 | };
|
809 | Object.defineProperty(Platform.prototype, "isRTL", {
|
810 | |
811 |
|
812 |
|
813 |
|
814 |
|
815 |
|
816 | get: /**
|
817 | * Returns if this app is using right-to-left language direction or not.
|
818 | * We recommend the app's `index.html` file already has the correct `dir`
|
819 | * attribute value set, such as `<html dir="ltr">` or `<html dir="rtl">`.
|
820 | * [W3C: Structural markup and right-to-left text in HTML](http://www.w3.org/International/questions/qa-html-dir)
|
821 | * @return {?}
|
822 | */
|
823 | function () {
|
824 | return this.doc.dir === 'rtl';
|
825 | },
|
826 | enumerable: true,
|
827 | configurable: true
|
828 | });
|
829 | |
830 |
|
831 |
|
832 | |
833 |
|
834 |
|
835 |
|
836 |
|
837 | Platform.prototype.getQueryParam = |
838 |
|
839 |
|
840 |
|
841 |
|
842 | function (key) {
|
843 | return readQueryParam(this.win.location.href, key);
|
844 | };
|
845 | |
846 |
|
847 |
|
848 | |
849 |
|
850 |
|
851 |
|
852 | Platform.prototype.isLandscape = |
853 |
|
854 |
|
855 |
|
856 | function () {
|
857 | return !this.isPortrait();
|
858 | };
|
859 | |
860 |
|
861 |
|
862 | |
863 |
|
864 |
|
865 |
|
866 | Platform.prototype.isPortrait = |
867 |
|
868 |
|
869 |
|
870 | function () {
|
871 | return this.win.matchMedia && this.win.matchMedia('(orientation: portrait)').matches;
|
872 | };
|
873 | |
874 |
|
875 |
|
876 |
|
877 | Platform.prototype.testUserAgent = |
878 |
|
879 |
|
880 |
|
881 | function (expression) {
|
882 |
|
883 | var nav = this.win.navigator;
|
884 | return !!(nav && nav.userAgent && nav.userAgent.indexOf(expression) >= 0);
|
885 | };
|
886 | |
887 |
|
888 |
|
889 | |
890 |
|
891 |
|
892 |
|
893 | Platform.prototype.url = |
894 |
|
895 |
|
896 |
|
897 | function () {
|
898 | return this.win.location.href;
|
899 | };
|
900 | |
901 |
|
902 |
|
903 | |
904 |
|
905 |
|
906 |
|
907 | Platform.prototype.width = |
908 |
|
909 |
|
910 |
|
911 | function () {
|
912 | return this.win.innerWidth;
|
913 | };
|
914 | |
915 |
|
916 |
|
917 | |
918 |
|
919 |
|
920 |
|
921 | Platform.prototype.height = |
922 |
|
923 |
|
924 |
|
925 | function () {
|
926 | return this.win.innerHeight;
|
927 | };
|
928 | Platform.decorators = [
|
929 | { type: Injectable, args: [{
|
930 | providedIn: 'root',
|
931 | },] },
|
932 | ];
|
933 |
|
934 | Platform.ctorParameters = function () { return [
|
935 | { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] },
|
936 | { type: NgZone }
|
937 | ]; };
|
938 | Platform.ngInjectableDef = defineInjectable({ factory: function Platform_Factory() { return new Platform(inject(DOCUMENT), inject(NgZone)); }, token: Platform, providedIn: "root" });
|
939 | return Platform;
|
940 | }());
|
941 |
|
942 | var readQueryParam = ( |
943 |
|
944 |
|
945 |
|
946 |
|
947 | function (url, key) {
|
948 | key = key.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
|
949 |
|
950 | var regex = new RegExp('[\\?&]' + key + '=([^&#]*)');
|
951 |
|
952 | var results = regex.exec(url);
|
953 | return results ? decodeURIComponent(results[1].replace(/\+/g, ' ')) : null;
|
954 | });
|
955 |
|
956 | var proxyEvent = ( |
957 |
|
958 |
|
959 |
|
960 |
|
961 |
|
962 |
|
963 | function (emitter, el, eventName) {
|
964 | if ((( (el)))) {
|
965 | el.addEventListener(eventName, ( |
966 |
|
967 |
|
968 |
|
969 | function (ev) {
|
970 |
|
971 | emitter.next(ev != null ? ( ((( (ev))).detail)) : undefined);
|
972 | }));
|
973 | }
|
974 | });
|
975 |
|
976 |
|
977 |
|
978 |
|
979 |
|
980 | var NavController = (function () {
|
981 | function NavController(platform, location, serializer, router) {
|
982 | var _this = this;
|
983 | this.location = location;
|
984 | this.serializer = serializer;
|
985 | this.router = router;
|
986 | this.direction = DEFAULT_DIRECTION;
|
987 | this.animated = DEFAULT_ANIMATED;
|
988 | this.guessDirection = 'forward';
|
989 | this.lastNavId = -1;
|
990 |
|
991 | if (router) {
|
992 | router.events.subscribe(( |
993 |
|
994 |
|
995 |
|
996 | function (ev) {
|
997 | if (ev instanceof NavigationStart) {
|
998 |
|
999 | var id = (ev.restoredState) ? ev.restoredState.navigationId : ev.id;
|
1000 | _this.guessDirection = id < _this.lastNavId ? 'back' : 'forward';
|
1001 | _this.guessAnimation = !ev.restoredState ? _this.guessDirection : undefined;
|
1002 | _this.lastNavId = _this.guessDirection === 'forward' ? ev.id : id;
|
1003 | }
|
1004 | }));
|
1005 | }
|
1006 |
|
1007 | platform.backButton.subscribeWithPriority(0, ( |
1008 |
|
1009 |
|
1010 | function () { return _this.pop(); }));
|
1011 | }
|
1012 | |
1013 |
|
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 |
|
1023 |
|
1024 |
|
1025 | |
1026 |
|
1027 |
|
1028 |
|
1029 |
|
1030 |
|
1031 |
|
1032 |
|
1033 |
|
1034 |
|
1035 |
|
1036 |
|
1037 |
|
1038 |
|
1039 |
|
1040 |
|
1041 | NavController.prototype.navigateForward = |
1042 |
|
1043 |
|
1044 |
|
1045 |
|
1046 |
|
1047 |
|
1048 |
|
1049 |
|
1050 |
|
1051 |
|
1052 |
|
1053 |
|
1054 |
|
1055 |
|
1056 |
|
1057 | function (url, options) {
|
1058 | if (options === void 0) { options = {}; }
|
1059 | this.setDirection('forward', options.animated, options.animationDirection);
|
1060 | return this.navigate(url, options);
|
1061 | };
|
1062 | |
1063 |
|
1064 |
|
1065 |
|
1066 |
|
1067 |
|
1068 |
|
1069 |
|
1070 |
|
1071 |
|
1072 |
|
1073 |
|
1074 |
|
1075 |
|
1076 |
|
1077 |
|
1078 |
|
1079 |
|
1080 | |
1081 |
|
1082 |
|
1083 |
|
1084 |
|
1085 |
|
1086 |
|
1087 |
|
1088 |
|
1089 |
|
1090 |
|
1091 |
|
1092 |
|
1093 |
|
1094 |
|
1095 |
|
1096 |
|
1097 |
|
1098 |
|
1099 |
|
1100 |
|
1101 | NavController.prototype.navigateBack = |
1102 |
|
1103 |
|
1104 |
|
1105 |
|
1106 |
|
1107 |
|
1108 |
|
1109 |
|
1110 |
|
1111 |
|
1112 |
|
1113 |
|
1114 |
|
1115 |
|
1116 |
|
1117 |
|
1118 |
|
1119 |
|
1120 |
|
1121 |
|
1122 | function (url, options) {
|
1123 | if (options === void 0) { options = {}; }
|
1124 | this.setDirection('back', options.animated, options.animationDirection);
|
1125 | return this.navigate(url, options);
|
1126 | };
|
1127 | |
1128 |
|
1129 |
|
1130 |
|
1131 |
|
1132 |
|
1133 |
|
1134 |
|
1135 |
|
1136 |
|
1137 |
|
1138 |
|
1139 |
|
1140 |
|
1141 |
|
1142 |
|
1143 |
|
1144 |
|
1145 | |
1146 |
|
1147 |
|
1148 |
|
1149 |
|
1150 |
|
1151 |
|
1152 |
|
1153 |
|
1154 |
|
1155 |
|
1156 |
|
1157 |
|
1158 |
|
1159 |
|
1160 |
|
1161 |
|
1162 |
|
1163 |
|
1164 |
|
1165 |
|
1166 | NavController.prototype.navigateRoot = |
1167 |
|
1168 |
|
1169 |
|
1170 |
|
1171 |
|
1172 |
|
1173 |
|
1174 |
|
1175 |
|
1176 |
|
1177 |
|
1178 |
|
1179 |
|
1180 |
|
1181 |
|
1182 |
|
1183 |
|
1184 |
|
1185 |
|
1186 |
|
1187 | function (url, options) {
|
1188 | if (options === void 0) { options = {}; }
|
1189 | this.setDirection('root', options.animated, options.animationDirection);
|
1190 | return this.navigate(url, options);
|
1191 | };
|
1192 | |
1193 |
|
1194 |
|
1195 |
|
1196 |
|
1197 | |
1198 |
|
1199 |
|
1200 |
|
1201 |
|
1202 |
|
1203 |
|
1204 | NavController.prototype.back = |
1205 |
|
1206 |
|
1207 |
|
1208 |
|
1209 |
|
1210 |
|
1211 | function (options) {
|
1212 | if (options === void 0) { options = { animated: true, animationDirection: 'back' }; }
|
1213 | this.setDirection('back', options.animated, options.animationDirection);
|
1214 | return this.location.back();
|
1215 | };
|
1216 | |
1217 |
|
1218 |
|
1219 |
|
1220 |
|
1221 |
|
1222 | |
1223 |
|
1224 |
|
1225 |
|
1226 |
|
1227 |
|
1228 |
|
1229 | NavController.prototype.pop = |
1230 |
|
1231 |
|
1232 |
|
1233 |
|
1234 |
|
1235 |
|
1236 | function () {
|
1237 | return __awaiter(this, void 0, void 0, function () {
|
1238 | var outlet;
|
1239 | return __generator(this, function (_a) {
|
1240 | switch (_a.label) {
|
1241 | case 0:
|
1242 | outlet = this.topOutlet;
|
1243 | _a.label = 1;
|
1244 | case 1:
|
1245 | if (!outlet) return [3 , 3];
|
1246 | return [4 , outlet.pop()];
|
1247 | case 2:
|
1248 | if (_a.sent()) {
|
1249 | return [3 , 3];
|
1250 | }
|
1251 | else {
|
1252 | outlet = outlet.parentOutlet;
|
1253 | }
|
1254 | return [3 , 1];
|
1255 | case 3: return [2 ];
|
1256 | }
|
1257 | });
|
1258 | });
|
1259 | };
|
1260 | |
1261 |
|
1262 |
|
1263 |
|
1264 |
|
1265 |
|
1266 |
|
1267 | |
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 |
|
1275 |
|
1276 |
|
1277 |
|
1278 | NavController.prototype.setDirection = |
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 | function (direction, animated, animationDirection) {
|
1290 | this.direction = direction;
|
1291 | this.animated = getAnimation(direction, animated, animationDirection);
|
1292 | };
|
1293 | |
1294 |
|
1295 |
|
1296 | |
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 | NavController.prototype.setTopOutlet = |
1302 |
|
1303 |
|
1304 |
|
1305 |
|
1306 | function (outlet) {
|
1307 | this.topOutlet = outlet;
|
1308 | };
|
1309 | |
1310 |
|
1311 |
|
1312 | |
1313 |
|
1314 |
|
1315 |
|
1316 | NavController.prototype.consumeTransition = |
1317 |
|
1318 |
|
1319 |
|
1320 | function () {
|
1321 |
|
1322 | var direction = 'root';
|
1323 |
|
1324 | var animation;
|
1325 | if (this.direction === 'auto') {
|
1326 | direction = this.guessDirection;
|
1327 | animation = this.guessAnimation;
|
1328 | }
|
1329 | else {
|
1330 | animation = this.animated;
|
1331 | direction = this.direction;
|
1332 | }
|
1333 | this.direction = DEFAULT_DIRECTION;
|
1334 | this.animated = DEFAULT_ANIMATED;
|
1335 | return {
|
1336 | direction: direction,
|
1337 | animation: animation
|
1338 | };
|
1339 | };
|
1340 | |
1341 |
|
1342 |
|
1343 |
|
1344 |
|
1345 |
|
1346 | NavController.prototype.navigate = |
1347 |
|
1348 |
|
1349 |
|
1350 |
|
1351 |
|
1352 | function (url, options) {
|
1353 | if (Array.isArray(url)) {
|
1354 | return ( (this.router)).navigate(url, options);
|
1355 | }
|
1356 | else {
|
1357 | |
1358 |
|
1359 |
|
1360 |
|
1361 |
|
1362 |
|
1363 |
|
1364 | var urlTree = this.serializer.parse(url.toString());
|
1365 | if (options.queryParams !== undefined) {
|
1366 | urlTree.queryParams = __assign({}, options.queryParams);
|
1367 | }
|
1368 | if (options.fragment !== undefined) {
|
1369 | urlTree.fragment = options.fragment;
|
1370 | }
|
1371 | |
1372 |
|
1373 |
|
1374 |
|
1375 |
|
1376 | return ( (this.router)).navigateByUrl(urlTree, options);
|
1377 | }
|
1378 | };
|
1379 | NavController.decorators = [
|
1380 | { type: Injectable, args: [{
|
1381 | providedIn: 'root',
|
1382 | },] },
|
1383 | ];
|
1384 |
|
1385 | NavController.ctorParameters = function () { return [
|
1386 | { type: Platform },
|
1387 | { type: Location },
|
1388 | { type: UrlSerializer },
|
1389 | { type: Router, decorators: [{ type: Optional }] }
|
1390 | ]; };
|
1391 | NavController.ngInjectableDef = defineInjectable({ factory: function NavController_Factory() { return new NavController(inject(Platform), inject(Location), inject(UrlSerializer), inject(Router, 8)); }, token: NavController, providedIn: "root" });
|
1392 | return NavController;
|
1393 | }());
|
1394 |
|
1395 | var getAnimation = ( |
1396 |
|
1397 |
|
1398 |
|
1399 |
|
1400 |
|
1401 | function (direction, animated, animationDirection) {
|
1402 | if (animated === false) {
|
1403 | return undefined;
|
1404 | }
|
1405 | if (animationDirection !== undefined) {
|
1406 | return animationDirection;
|
1407 | }
|
1408 | if (direction === 'forward' || direction === 'back') {
|
1409 | return direction;
|
1410 | }
|
1411 | else if (direction === 'root' && animated === true) {
|
1412 | return 'forward';
|
1413 | }
|
1414 | return undefined;
|
1415 | });
|
1416 |
|
1417 | var DEFAULT_DIRECTION = 'auto';
|
1418 |
|
1419 | var DEFAULT_ANIMATED = undefined;
|
1420 |
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 |
|
1426 | var proxyInputs = ( |
1427 |
|
1428 |
|
1429 |
|
1430 |
|
1431 | function (Cmp, inputs) {
|
1432 |
|
1433 | var Prototype = Cmp.prototype;
|
1434 | inputs.forEach(( |
1435 |
|
1436 |
|
1437 |
|
1438 | function (item) {
|
1439 | Object.defineProperty(Prototype, item, {
|
1440 | get: /**
|
1441 | * @return {?}
|
1442 | */
|
1443 | function () { return this.el[item]; },
|
1444 | set: /**
|
1445 | * @param {?} val
|
1446 | * @return {?}
|
1447 | */
|
1448 | function (val) {
|
1449 | var _this = this;
|
1450 | this.z.runOutsideAngular(( |
1451 |
|
1452 |
|
1453 | function () { return _this.el[item] = val; }));
|
1454 | },
|
1455 | });
|
1456 | }));
|
1457 | });
|
1458 |
|
1459 | var proxyMethods = ( |
1460 |
|
1461 |
|
1462 |
|
1463 |
|
1464 | function (Cmp, methods) {
|
1465 |
|
1466 | var Prototype = Cmp.prototype;
|
1467 | methods.forEach(( |
1468 |
|
1469 |
|
1470 |
|
1471 | function (methodName) {
|
1472 | Prototype[methodName] = ( |
1473 |
|
1474 |
|
1475 | function () {
|
1476 | var _this = this;
|
1477 |
|
1478 | var args = arguments;
|
1479 | return this.z.runOutsideAngular(( |
1480 |
|
1481 |
|
1482 | function () { return _this.el[methodName].apply(_this.el, args); }));
|
1483 | });
|
1484 | }));
|
1485 | });
|
1486 |
|
1487 | var proxyOutputs = ( |
1488 |
|
1489 |
|
1490 |
|
1491 |
|
1492 |
|
1493 | function (instance, el, events) {
|
1494 | events.forEach(( |
1495 |
|
1496 |
|
1497 |
|
1498 | function (eventName) { return instance[eventName] = fromEvent(el, eventName); }));
|
1499 | });
|
1500 |
|
1501 |
|
1502 |
|
1503 |
|
1504 |
|
1505 | var IonApp = (function () {
|
1506 | function IonApp(c, r, z) {
|
1507 | this.z = z;
|
1508 | c.detach();
|
1509 | this.el = r.nativeElement;
|
1510 | }
|
1511 | IonApp.decorators = [
|
1512 | { type: Component, args: [{ selector: 'ion-app', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
1513 | ];
|
1514 |
|
1515 | IonApp.ctorParameters = function () { return [
|
1516 | { type: ChangeDetectorRef },
|
1517 | { type: ElementRef },
|
1518 | { type: NgZone }
|
1519 | ]; };
|
1520 | return IonApp;
|
1521 | }());
|
1522 | var IonAvatar = (function () {
|
1523 | function IonAvatar(c, r, z) {
|
1524 | this.z = z;
|
1525 | c.detach();
|
1526 | this.el = r.nativeElement;
|
1527 | }
|
1528 | IonAvatar.decorators = [
|
1529 | { type: Component, args: [{ selector: 'ion-avatar', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
1530 | ];
|
1531 |
|
1532 | IonAvatar.ctorParameters = function () { return [
|
1533 | { type: ChangeDetectorRef },
|
1534 | { type: ElementRef },
|
1535 | { type: NgZone }
|
1536 | ]; };
|
1537 | return IonAvatar;
|
1538 | }());
|
1539 | var IonBackButton = (function () {
|
1540 | function IonBackButton(c, r, z) {
|
1541 | this.z = z;
|
1542 | c.detach();
|
1543 | this.el = r.nativeElement;
|
1544 | }
|
1545 | IonBackButton.decorators = [
|
1546 | { type: Component, args: [{ selector: 'ion-back-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'text', 'type'] },] },
|
1547 | ];
|
1548 |
|
1549 | IonBackButton.ctorParameters = function () { return [
|
1550 | { type: ChangeDetectorRef },
|
1551 | { type: ElementRef },
|
1552 | { type: NgZone }
|
1553 | ]; };
|
1554 | return IonBackButton;
|
1555 | }());
|
1556 | proxyInputs(IonBackButton, ['color', 'defaultHref', 'disabled', 'icon', 'mode', 'text', 'type']);
|
1557 | var IonBackdrop = (function () {
|
1558 | function IonBackdrop(c, r, z) {
|
1559 | this.z = z;
|
1560 | c.detach();
|
1561 | this.el = r.nativeElement;
|
1562 | proxyOutputs(this, this.el, ['ionBackdropTap']);
|
1563 | }
|
1564 | IonBackdrop.decorators = [
|
1565 | { type: Component, args: [{ selector: 'ion-backdrop', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['stopPropagation', 'tappable', 'visible'] },] },
|
1566 | ];
|
1567 |
|
1568 | IonBackdrop.ctorParameters = function () { return [
|
1569 | { type: ChangeDetectorRef },
|
1570 | { type: ElementRef },
|
1571 | { type: NgZone }
|
1572 | ]; };
|
1573 | return IonBackdrop;
|
1574 | }());
|
1575 | proxyInputs(IonBackdrop, ['stopPropagation', 'tappable', 'visible']);
|
1576 | var IonBadge = (function () {
|
1577 | function IonBadge(c, r, z) {
|
1578 | this.z = z;
|
1579 | c.detach();
|
1580 | this.el = r.nativeElement;
|
1581 | }
|
1582 | IonBadge.decorators = [
|
1583 | { type: Component, args: [{ selector: 'ion-badge', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
1584 | ];
|
1585 |
|
1586 | IonBadge.ctorParameters = function () { return [
|
1587 | { type: ChangeDetectorRef },
|
1588 | { type: ElementRef },
|
1589 | { type: NgZone }
|
1590 | ]; };
|
1591 | return IonBadge;
|
1592 | }());
|
1593 | proxyInputs(IonBadge, ['color', 'mode']);
|
1594 | var IonButton = (function () {
|
1595 | function IonButton(c, r, z) {
|
1596 | this.z = z;
|
1597 | c.detach();
|
1598 | this.el = r.nativeElement;
|
1599 | proxyOutputs(this, this.el, ['ionFocus', 'ionBlur']);
|
1600 | }
|
1601 | IonButton.decorators = [
|
1602 | { type: Component, args: [{ selector: 'ion-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['buttonType', 'color', 'disabled', 'download', 'expand', 'fill', 'href', 'mode', 'rel', 'routerDirection', 'shape', 'size', 'strong', 'target', 'type'] },] },
|
1603 | ];
|
1604 |
|
1605 | IonButton.ctorParameters = function () { return [
|
1606 | { type: ChangeDetectorRef },
|
1607 | { type: ElementRef },
|
1608 | { type: NgZone }
|
1609 | ]; };
|
1610 | return IonButton;
|
1611 | }());
|
1612 | proxyInputs(IonButton, ['buttonType', 'color', 'disabled', 'download', 'expand', 'fill', 'href', 'mode', 'rel', 'routerDirection', 'shape', 'size', 'strong', 'target', 'type']);
|
1613 | var IonButtons = (function () {
|
1614 | function IonButtons(c, r, z) {
|
1615 | this.z = z;
|
1616 | c.detach();
|
1617 | this.el = r.nativeElement;
|
1618 | }
|
1619 | IonButtons.decorators = [
|
1620 | { type: Component, args: [{ selector: 'ion-buttons', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['collapse'] },] },
|
1621 | ];
|
1622 |
|
1623 | IonButtons.ctorParameters = function () { return [
|
1624 | { type: ChangeDetectorRef },
|
1625 | { type: ElementRef },
|
1626 | { type: NgZone }
|
1627 | ]; };
|
1628 | return IonButtons;
|
1629 | }());
|
1630 | proxyInputs(IonButtons, ['collapse']);
|
1631 | var IonCard = (function () {
|
1632 | function IonCard(c, r, z) {
|
1633 | this.z = z;
|
1634 | c.detach();
|
1635 | this.el = r.nativeElement;
|
1636 | }
|
1637 | IonCard.decorators = [
|
1638 | { type: Component, args: [{ selector: 'ion-card', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['button', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerDirection', 'target', 'type'] },] },
|
1639 | ];
|
1640 |
|
1641 | IonCard.ctorParameters = function () { return [
|
1642 | { type: ChangeDetectorRef },
|
1643 | { type: ElementRef },
|
1644 | { type: NgZone }
|
1645 | ]; };
|
1646 | return IonCard;
|
1647 | }());
|
1648 | proxyInputs(IonCard, ['button', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerDirection', 'target', 'type']);
|
1649 | var IonCardContent = (function () {
|
1650 | function IonCardContent(c, r, z) {
|
1651 | this.z = z;
|
1652 | c.detach();
|
1653 | this.el = r.nativeElement;
|
1654 | }
|
1655 | IonCardContent.decorators = [
|
1656 | { type: Component, args: [{ selector: 'ion-card-content', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['mode'] },] },
|
1657 | ];
|
1658 |
|
1659 | IonCardContent.ctorParameters = function () { return [
|
1660 | { type: ChangeDetectorRef },
|
1661 | { type: ElementRef },
|
1662 | { type: NgZone }
|
1663 | ]; };
|
1664 | return IonCardContent;
|
1665 | }());
|
1666 | proxyInputs(IonCardContent, ['mode']);
|
1667 | var IonCardHeader = (function () {
|
1668 | function IonCardHeader(c, r, z) {
|
1669 | this.z = z;
|
1670 | c.detach();
|
1671 | this.el = r.nativeElement;
|
1672 | }
|
1673 | IonCardHeader.decorators = [
|
1674 | { type: Component, args: [{ selector: 'ion-card-header', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'translucent'] },] },
|
1675 | ];
|
1676 |
|
1677 | IonCardHeader.ctorParameters = function () { return [
|
1678 | { type: ChangeDetectorRef },
|
1679 | { type: ElementRef },
|
1680 | { type: NgZone }
|
1681 | ]; };
|
1682 | return IonCardHeader;
|
1683 | }());
|
1684 | proxyInputs(IonCardHeader, ['color', 'mode', 'translucent']);
|
1685 | var IonCardSubtitle = (function () {
|
1686 | function IonCardSubtitle(c, r, z) {
|
1687 | this.z = z;
|
1688 | c.detach();
|
1689 | this.el = r.nativeElement;
|
1690 | }
|
1691 | IonCardSubtitle.decorators = [
|
1692 | { type: Component, args: [{ selector: 'ion-card-subtitle', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
1693 | ];
|
1694 |
|
1695 | IonCardSubtitle.ctorParameters = function () { return [
|
1696 | { type: ChangeDetectorRef },
|
1697 | { type: ElementRef },
|
1698 | { type: NgZone }
|
1699 | ]; };
|
1700 | return IonCardSubtitle;
|
1701 | }());
|
1702 | proxyInputs(IonCardSubtitle, ['color', 'mode']);
|
1703 | var IonCardTitle = (function () {
|
1704 | function IonCardTitle(c, r, z) {
|
1705 | this.z = z;
|
1706 | c.detach();
|
1707 | this.el = r.nativeElement;
|
1708 | }
|
1709 | IonCardTitle.decorators = [
|
1710 | { type: Component, args: [{ selector: 'ion-card-title', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
1711 | ];
|
1712 |
|
1713 | IonCardTitle.ctorParameters = function () { return [
|
1714 | { type: ChangeDetectorRef },
|
1715 | { type: ElementRef },
|
1716 | { type: NgZone }
|
1717 | ]; };
|
1718 | return IonCardTitle;
|
1719 | }());
|
1720 | proxyInputs(IonCardTitle, ['color', 'mode']);
|
1721 | var IonCheckbox = (function () {
|
1722 | function IonCheckbox(c, r, z) {
|
1723 | this.z = z;
|
1724 | c.detach();
|
1725 | this.el = r.nativeElement;
|
1726 | proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
|
1727 | }
|
1728 | IonCheckbox.decorators = [
|
1729 | { type: Component, args: [{ selector: 'ion-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['checked', 'color', 'disabled', 'indeterminate', 'mode', 'name', 'value'] },] },
|
1730 | ];
|
1731 |
|
1732 | IonCheckbox.ctorParameters = function () { return [
|
1733 | { type: ChangeDetectorRef },
|
1734 | { type: ElementRef },
|
1735 | { type: NgZone }
|
1736 | ]; };
|
1737 | return IonCheckbox;
|
1738 | }());
|
1739 | proxyInputs(IonCheckbox, ['checked', 'color', 'disabled', 'indeterminate', 'mode', 'name', 'value']);
|
1740 | var IonChip = (function () {
|
1741 | function IonChip(c, r, z) {
|
1742 | this.z = z;
|
1743 | c.detach();
|
1744 | this.el = r.nativeElement;
|
1745 | }
|
1746 | IonChip.decorators = [
|
1747 | { type: Component, args: [{ selector: 'ion-chip', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'outline'] },] },
|
1748 | ];
|
1749 |
|
1750 | IonChip.ctorParameters = function () { return [
|
1751 | { type: ChangeDetectorRef },
|
1752 | { type: ElementRef },
|
1753 | { type: NgZone }
|
1754 | ]; };
|
1755 | return IonChip;
|
1756 | }());
|
1757 | proxyInputs(IonChip, ['color', 'mode', 'outline']);
|
1758 | var IonCol = (function () {
|
1759 | function IonCol(c, r, z) {
|
1760 | this.z = z;
|
1761 | c.detach();
|
1762 | this.el = r.nativeElement;
|
1763 | }
|
1764 | IonCol.decorators = [
|
1765 | { type: Component, args: [{ selector: 'ion-col', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['offset', 'offsetLg', 'offsetMd', 'offsetSm', 'offsetXl', 'offsetXs', 'pull', 'pullLg', 'pullMd', 'pullSm', 'pullXl', 'pullXs', 'push', 'pushLg', 'pushMd', 'pushSm', 'pushXl', 'pushXs', 'size', 'sizeLg', 'sizeMd', 'sizeSm', 'sizeXl', 'sizeXs'] },] },
|
1766 | ];
|
1767 |
|
1768 | IonCol.ctorParameters = function () { return [
|
1769 | { type: ChangeDetectorRef },
|
1770 | { type: ElementRef },
|
1771 | { type: NgZone }
|
1772 | ]; };
|
1773 | return IonCol;
|
1774 | }());
|
1775 | proxyInputs(IonCol, ['offset', 'offsetLg', 'offsetMd', 'offsetSm', 'offsetXl', 'offsetXs', 'pull', 'pullLg', 'pullMd', 'pullSm', 'pullXl', 'pullXs', 'push', 'pushLg', 'pushMd', 'pushSm', 'pushXl', 'pushXs', 'size', 'sizeLg', 'sizeMd', 'sizeSm', 'sizeXl', 'sizeXs']);
|
1776 | var IonContent = (function () {
|
1777 | function IonContent(c, r, z) {
|
1778 | this.z = z;
|
1779 | c.detach();
|
1780 | this.el = r.nativeElement;
|
1781 | proxyOutputs(this, this.el, ['ionScrollStart', 'ionScroll', 'ionScrollEnd']);
|
1782 | }
|
1783 | IonContent.decorators = [
|
1784 | { type: Component, args: [{ selector: 'ion-content', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'forceOverscroll', 'fullscreen', 'scrollEvents', 'scrollX', 'scrollY'] },] },
|
1785 | ];
|
1786 |
|
1787 | IonContent.ctorParameters = function () { return [
|
1788 | { type: ChangeDetectorRef },
|
1789 | { type: ElementRef },
|
1790 | { type: NgZone }
|
1791 | ]; };
|
1792 | return IonContent;
|
1793 | }());
|
1794 | proxyMethods(IonContent, ['getScrollElement', 'scrollToTop', 'scrollToBottom', 'scrollByPoint', 'scrollToPoint']);
|
1795 | proxyInputs(IonContent, ['color', 'forceOverscroll', 'fullscreen', 'scrollEvents', 'scrollX', 'scrollY']);
|
1796 | var IonDatetime = (function () {
|
1797 | function IonDatetime(c, r, z) {
|
1798 | this.z = z;
|
1799 | c.detach();
|
1800 | this.el = r.nativeElement;
|
1801 | proxyOutputs(this, this.el, ['ionCancel', 'ionChange', 'ionFocus', 'ionBlur']);
|
1802 | }
|
1803 | IonDatetime.decorators = [
|
1804 | { type: Component, args: [{ selector: 'ion-datetime', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['cancelText', 'dayNames', 'dayShortNames', 'dayValues', 'disabled', 'displayFormat', 'doneText', 'hourValues', 'max', 'min', 'minuteValues', 'mode', 'monthNames', 'monthShortNames', 'monthValues', 'name', 'pickerFormat', 'pickerOptions', 'placeholder', 'readonly', 'value', 'yearValues'] },] },
|
1805 | ];
|
1806 |
|
1807 | IonDatetime.ctorParameters = function () { return [
|
1808 | { type: ChangeDetectorRef },
|
1809 | { type: ElementRef },
|
1810 | { type: NgZone }
|
1811 | ]; };
|
1812 | return IonDatetime;
|
1813 | }());
|
1814 | proxyMethods(IonDatetime, ['open']);
|
1815 | proxyInputs(IonDatetime, ['cancelText', 'dayNames', 'dayShortNames', 'dayValues', 'disabled', 'displayFormat', 'doneText', 'hourValues', 'max', 'min', 'minuteValues', 'mode', 'monthNames', 'monthShortNames', 'monthValues', 'name', 'pickerFormat', 'pickerOptions', 'placeholder', 'readonly', 'value', 'yearValues']);
|
1816 | var IonFab = (function () {
|
1817 | function IonFab(c, r, z) {
|
1818 | this.z = z;
|
1819 | c.detach();
|
1820 | this.el = r.nativeElement;
|
1821 | }
|
1822 | IonFab.decorators = [
|
1823 | { type: Component, args: [{ selector: 'ion-fab', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['activated', 'edge', 'horizontal', 'vertical'] },] },
|
1824 | ];
|
1825 |
|
1826 | IonFab.ctorParameters = function () { return [
|
1827 | { type: ChangeDetectorRef },
|
1828 | { type: ElementRef },
|
1829 | { type: NgZone }
|
1830 | ]; };
|
1831 | return IonFab;
|
1832 | }());
|
1833 | proxyMethods(IonFab, ['close']);
|
1834 | proxyInputs(IonFab, ['activated', 'edge', 'horizontal', 'vertical']);
|
1835 | var IonFabButton = (function () {
|
1836 | function IonFabButton(c, r, z) {
|
1837 | this.z = z;
|
1838 | c.detach();
|
1839 | this.el = r.nativeElement;
|
1840 | proxyOutputs(this, this.el, ['ionFocus', 'ionBlur']);
|
1841 | }
|
1842 | IonFabButton.decorators = [
|
1843 | { type: Component, args: [{ selector: 'ion-fab-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['activated', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerDirection', 'show', 'size', 'target', 'translucent', 'type'] },] },
|
1844 | ];
|
1845 |
|
1846 | IonFabButton.ctorParameters = function () { return [
|
1847 | { type: ChangeDetectorRef },
|
1848 | { type: ElementRef },
|
1849 | { type: NgZone }
|
1850 | ]; };
|
1851 | return IonFabButton;
|
1852 | }());
|
1853 | proxyInputs(IonFabButton, ['activated', 'color', 'disabled', 'download', 'href', 'mode', 'rel', 'routerDirection', 'show', 'size', 'target', 'translucent', 'type']);
|
1854 | var IonFabList = (function () {
|
1855 | function IonFabList(c, r, z) {
|
1856 | this.z = z;
|
1857 | c.detach();
|
1858 | this.el = r.nativeElement;
|
1859 | }
|
1860 | IonFabList.decorators = [
|
1861 | { type: Component, args: [{ selector: 'ion-fab-list', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['activated', 'side'] },] },
|
1862 | ];
|
1863 |
|
1864 | IonFabList.ctorParameters = function () { return [
|
1865 | { type: ChangeDetectorRef },
|
1866 | { type: ElementRef },
|
1867 | { type: NgZone }
|
1868 | ]; };
|
1869 | return IonFabList;
|
1870 | }());
|
1871 | proxyInputs(IonFabList, ['activated', 'side']);
|
1872 | var IonFooter = (function () {
|
1873 | function IonFooter(c, r, z) {
|
1874 | this.z = z;
|
1875 | c.detach();
|
1876 | this.el = r.nativeElement;
|
1877 | }
|
1878 | IonFooter.decorators = [
|
1879 | { type: Component, args: [{ selector: 'ion-footer', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['mode', 'translucent'] },] },
|
1880 | ];
|
1881 |
|
1882 | IonFooter.ctorParameters = function () { return [
|
1883 | { type: ChangeDetectorRef },
|
1884 | { type: ElementRef },
|
1885 | { type: NgZone }
|
1886 | ]; };
|
1887 | return IonFooter;
|
1888 | }());
|
1889 | proxyInputs(IonFooter, ['mode', 'translucent']);
|
1890 | var IonGrid = (function () {
|
1891 | function IonGrid(c, r, z) {
|
1892 | this.z = z;
|
1893 | c.detach();
|
1894 | this.el = r.nativeElement;
|
1895 | }
|
1896 | IonGrid.decorators = [
|
1897 | { type: Component, args: [{ selector: 'ion-grid', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['fixed'] },] },
|
1898 | ];
|
1899 |
|
1900 | IonGrid.ctorParameters = function () { return [
|
1901 | { type: ChangeDetectorRef },
|
1902 | { type: ElementRef },
|
1903 | { type: NgZone }
|
1904 | ]; };
|
1905 | return IonGrid;
|
1906 | }());
|
1907 | proxyInputs(IonGrid, ['fixed']);
|
1908 | var IonHeader = (function () {
|
1909 | function IonHeader(c, r, z) {
|
1910 | this.z = z;
|
1911 | c.detach();
|
1912 | this.el = r.nativeElement;
|
1913 | }
|
1914 | IonHeader.decorators = [
|
1915 | { type: Component, args: [{ selector: 'ion-header', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['collapse', 'mode', 'translucent'] },] },
|
1916 | ];
|
1917 |
|
1918 | IonHeader.ctorParameters = function () { return [
|
1919 | { type: ChangeDetectorRef },
|
1920 | { type: ElementRef },
|
1921 | { type: NgZone }
|
1922 | ]; };
|
1923 | return IonHeader;
|
1924 | }());
|
1925 | proxyInputs(IonHeader, ['collapse', 'mode', 'translucent']);
|
1926 | var IonIcon = (function () {
|
1927 | function IonIcon(c, r, z) {
|
1928 | this.z = z;
|
1929 | c.detach();
|
1930 | this.el = r.nativeElement;
|
1931 | }
|
1932 | IonIcon.decorators = [
|
1933 | { type: Component, args: [{ selector: 'ion-icon', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['ariaLabel', 'color', 'flipRtl', 'icon', 'ios', 'lazy', 'md', 'mode', 'name', 'size', 'src'] },] },
|
1934 | ];
|
1935 |
|
1936 | IonIcon.ctorParameters = function () { return [
|
1937 | { type: ChangeDetectorRef },
|
1938 | { type: ElementRef },
|
1939 | { type: NgZone }
|
1940 | ]; };
|
1941 | return IonIcon;
|
1942 | }());
|
1943 | proxyInputs(IonIcon, ['ariaLabel', 'color', 'flipRtl', 'icon', 'ios', 'lazy', 'md', 'mode', 'name', 'size', 'src']);
|
1944 | var IonImg = (function () {
|
1945 | function IonImg(c, r, z) {
|
1946 | this.z = z;
|
1947 | c.detach();
|
1948 | this.el = r.nativeElement;
|
1949 | proxyOutputs(this, this.el, ['ionImgWillLoad', 'ionImgDidLoad', 'ionError']);
|
1950 | }
|
1951 | IonImg.decorators = [
|
1952 | { type: Component, args: [{ selector: 'ion-img', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['alt', 'src'] },] },
|
1953 | ];
|
1954 |
|
1955 | IonImg.ctorParameters = function () { return [
|
1956 | { type: ChangeDetectorRef },
|
1957 | { type: ElementRef },
|
1958 | { type: NgZone }
|
1959 | ]; };
|
1960 | return IonImg;
|
1961 | }());
|
1962 | proxyInputs(IonImg, ['alt', 'src']);
|
1963 | var IonInfiniteScroll = (function () {
|
1964 | function IonInfiniteScroll(c, r, z) {
|
1965 | this.z = z;
|
1966 | c.detach();
|
1967 | this.el = r.nativeElement;
|
1968 | proxyOutputs(this, this.el, ['ionInfinite']);
|
1969 | }
|
1970 | IonInfiniteScroll.decorators = [
|
1971 | { type: Component, args: [{ selector: 'ion-infinite-scroll', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['disabled', 'position', 'threshold'] },] },
|
1972 | ];
|
1973 |
|
1974 | IonInfiniteScroll.ctorParameters = function () { return [
|
1975 | { type: ChangeDetectorRef },
|
1976 | { type: ElementRef },
|
1977 | { type: NgZone }
|
1978 | ]; };
|
1979 | return IonInfiniteScroll;
|
1980 | }());
|
1981 | proxyMethods(IonInfiniteScroll, ['complete']);
|
1982 | proxyInputs(IonInfiniteScroll, ['disabled', 'position', 'threshold']);
|
1983 | var IonInfiniteScrollContent = (function () {
|
1984 | function IonInfiniteScrollContent(c, r, z) {
|
1985 | this.z = z;
|
1986 | c.detach();
|
1987 | this.el = r.nativeElement;
|
1988 | }
|
1989 | IonInfiniteScrollContent.decorators = [
|
1990 | { type: Component, args: [{ selector: 'ion-infinite-scroll-content', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['loadingSpinner', 'loadingText'] },] },
|
1991 | ];
|
1992 |
|
1993 | IonInfiniteScrollContent.ctorParameters = function () { return [
|
1994 | { type: ChangeDetectorRef },
|
1995 | { type: ElementRef },
|
1996 | { type: NgZone }
|
1997 | ]; };
|
1998 | return IonInfiniteScrollContent;
|
1999 | }());
|
2000 | proxyInputs(IonInfiniteScrollContent, ['loadingSpinner', 'loadingText']);
|
2001 | var IonInput = (function () {
|
2002 | function IonInput(c, r, z) {
|
2003 | this.z = z;
|
2004 | c.detach();
|
2005 | this.el = r.nativeElement;
|
2006 | proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionBlur', 'ionFocus']);
|
2007 | }
|
2008 | IonInput.decorators = [
|
2009 | { type: Component, args: [{ selector: 'ion-input', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['accept', 'autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearInput', 'clearOnEdit', 'color', 'debounce', 'disabled', 'inputmode', 'max', 'maxlength', 'min', 'minlength', 'mode', 'multiple', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'size', 'spellcheck', 'step', 'type', 'value'] },] },
|
2010 | ];
|
2011 |
|
2012 | IonInput.ctorParameters = function () { return [
|
2013 | { type: ChangeDetectorRef },
|
2014 | { type: ElementRef },
|
2015 | { type: NgZone }
|
2016 | ]; };
|
2017 | return IonInput;
|
2018 | }());
|
2019 | proxyMethods(IonInput, ['setFocus', 'getInputElement']);
|
2020 | proxyInputs(IonInput, ['accept', 'autocapitalize', 'autocomplete', 'autocorrect', 'autofocus', 'clearInput', 'clearOnEdit', 'color', 'debounce', 'disabled', 'inputmode', 'max', 'maxlength', 'min', 'minlength', 'mode', 'multiple', 'name', 'pattern', 'placeholder', 'readonly', 'required', 'size', 'spellcheck', 'step', 'type', 'value']);
|
2021 | var IonItem = (function () {
|
2022 | function IonItem(c, r, z) {
|
2023 | this.z = z;
|
2024 | c.detach();
|
2025 | this.el = r.nativeElement;
|
2026 | }
|
2027 | IonItem.decorators = [
|
2028 | { type: Component, args: [{ selector: 'ion-item', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['button', 'color', 'detail', 'detailIcon', 'disabled', 'download', 'href', 'lines', 'mode', 'rel', 'routerDirection', 'target', 'type'] },] },
|
2029 | ];
|
2030 |
|
2031 | IonItem.ctorParameters = function () { return [
|
2032 | { type: ChangeDetectorRef },
|
2033 | { type: ElementRef },
|
2034 | { type: NgZone }
|
2035 | ]; };
|
2036 | return IonItem;
|
2037 | }());
|
2038 | proxyInputs(IonItem, ['button', 'color', 'detail', 'detailIcon', 'disabled', 'download', 'href', 'lines', 'mode', 'rel', 'routerDirection', 'target', 'type']);
|
2039 | var IonItemDivider = (function () {
|
2040 | function IonItemDivider(c, r, z) {
|
2041 | this.z = z;
|
2042 | c.detach();
|
2043 | this.el = r.nativeElement;
|
2044 | }
|
2045 | IonItemDivider.decorators = [
|
2046 | { type: Component, args: [{ selector: 'ion-item-divider', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'sticky'] },] },
|
2047 | ];
|
2048 |
|
2049 | IonItemDivider.ctorParameters = function () { return [
|
2050 | { type: ChangeDetectorRef },
|
2051 | { type: ElementRef },
|
2052 | { type: NgZone }
|
2053 | ]; };
|
2054 | return IonItemDivider;
|
2055 | }());
|
2056 | proxyInputs(IonItemDivider, ['color', 'mode', 'sticky']);
|
2057 | var IonItemGroup = (function () {
|
2058 | function IonItemGroup(c, r, z) {
|
2059 | this.z = z;
|
2060 | c.detach();
|
2061 | this.el = r.nativeElement;
|
2062 | }
|
2063 | IonItemGroup.decorators = [
|
2064 | { type: Component, args: [{ selector: 'ion-item-group', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
2065 | ];
|
2066 |
|
2067 | IonItemGroup.ctorParameters = function () { return [
|
2068 | { type: ChangeDetectorRef },
|
2069 | { type: ElementRef },
|
2070 | { type: NgZone }
|
2071 | ]; };
|
2072 | return IonItemGroup;
|
2073 | }());
|
2074 | var IonItemOption = (function () {
|
2075 | function IonItemOption(c, r, z) {
|
2076 | this.z = z;
|
2077 | c.detach();
|
2078 | this.el = r.nativeElement;
|
2079 | }
|
2080 | IonItemOption.decorators = [
|
2081 | { type: Component, args: [{ selector: 'ion-item-option', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'disabled', 'download', 'expandable', 'href', 'mode', 'rel', 'target', 'type'] },] },
|
2082 | ];
|
2083 |
|
2084 | IonItemOption.ctorParameters = function () { return [
|
2085 | { type: ChangeDetectorRef },
|
2086 | { type: ElementRef },
|
2087 | { type: NgZone }
|
2088 | ]; };
|
2089 | return IonItemOption;
|
2090 | }());
|
2091 | proxyInputs(IonItemOption, ['color', 'disabled', 'download', 'expandable', 'href', 'mode', 'rel', 'target', 'type']);
|
2092 | var IonItemOptions = (function () {
|
2093 | function IonItemOptions(c, r, z) {
|
2094 | this.z = z;
|
2095 | c.detach();
|
2096 | this.el = r.nativeElement;
|
2097 | proxyOutputs(this, this.el, ['ionSwipe']);
|
2098 | }
|
2099 | IonItemOptions.decorators = [
|
2100 | { type: Component, args: [{ selector: 'ion-item-options', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['side'] },] },
|
2101 | ];
|
2102 |
|
2103 | IonItemOptions.ctorParameters = function () { return [
|
2104 | { type: ChangeDetectorRef },
|
2105 | { type: ElementRef },
|
2106 | { type: NgZone }
|
2107 | ]; };
|
2108 | return IonItemOptions;
|
2109 | }());
|
2110 | proxyInputs(IonItemOptions, ['side']);
|
2111 | var IonItemSliding = (function () {
|
2112 | function IonItemSliding(c, r, z) {
|
2113 | this.z = z;
|
2114 | c.detach();
|
2115 | this.el = r.nativeElement;
|
2116 | proxyOutputs(this, this.el, ['ionDrag']);
|
2117 | }
|
2118 | IonItemSliding.decorators = [
|
2119 | { type: Component, args: [{ selector: 'ion-item-sliding', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['disabled'] },] },
|
2120 | ];
|
2121 |
|
2122 | IonItemSliding.ctorParameters = function () { return [
|
2123 | { type: ChangeDetectorRef },
|
2124 | { type: ElementRef },
|
2125 | { type: NgZone }
|
2126 | ]; };
|
2127 | return IonItemSliding;
|
2128 | }());
|
2129 | proxyMethods(IonItemSliding, ['getOpenAmount', 'getSlidingRatio', 'open', 'close', 'closeOpened']);
|
2130 | proxyInputs(IonItemSliding, ['disabled']);
|
2131 | var IonLabel = (function () {
|
2132 | function IonLabel(c, r, z) {
|
2133 | this.z = z;
|
2134 | c.detach();
|
2135 | this.el = r.nativeElement;
|
2136 | }
|
2137 | IonLabel.decorators = [
|
2138 | { type: Component, args: [{ selector: 'ion-label', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'position'] },] },
|
2139 | ];
|
2140 |
|
2141 | IonLabel.ctorParameters = function () { return [
|
2142 | { type: ChangeDetectorRef },
|
2143 | { type: ElementRef },
|
2144 | { type: NgZone }
|
2145 | ]; };
|
2146 | return IonLabel;
|
2147 | }());
|
2148 | proxyInputs(IonLabel, ['color', 'mode', 'position']);
|
2149 | var IonList = (function () {
|
2150 | function IonList(c, r, z) {
|
2151 | this.z = z;
|
2152 | c.detach();
|
2153 | this.el = r.nativeElement;
|
2154 | }
|
2155 | IonList.decorators = [
|
2156 | { type: Component, args: [{ selector: 'ion-list', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['inset', 'lines', 'mode'] },] },
|
2157 | ];
|
2158 |
|
2159 | IonList.ctorParameters = function () { return [
|
2160 | { type: ChangeDetectorRef },
|
2161 | { type: ElementRef },
|
2162 | { type: NgZone }
|
2163 | ]; };
|
2164 | return IonList;
|
2165 | }());
|
2166 | proxyMethods(IonList, ['closeSlidingItems']);
|
2167 | proxyInputs(IonList, ['inset', 'lines', 'mode']);
|
2168 | var IonListHeader = (function () {
|
2169 | function IonListHeader(c, r, z) {
|
2170 | this.z = z;
|
2171 | c.detach();
|
2172 | this.el = r.nativeElement;
|
2173 | }
|
2174 | IonListHeader.decorators = [
|
2175 | { type: Component, args: [{ selector: 'ion-list-header', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
2176 | ];
|
2177 |
|
2178 | IonListHeader.ctorParameters = function () { return [
|
2179 | { type: ChangeDetectorRef },
|
2180 | { type: ElementRef },
|
2181 | { type: NgZone }
|
2182 | ]; };
|
2183 | return IonListHeader;
|
2184 | }());
|
2185 | proxyInputs(IonListHeader, ['color', 'mode']);
|
2186 | var IonMenu = (function () {
|
2187 | function IonMenu(c, r, z) {
|
2188 | this.z = z;
|
2189 | c.detach();
|
2190 | this.el = r.nativeElement;
|
2191 | proxyOutputs(this, this.el, ['ionWillOpen', 'ionWillClose', 'ionDidOpen', 'ionDidClose']);
|
2192 | }
|
2193 | IonMenu.decorators = [
|
2194 | { type: Component, args: [{ selector: 'ion-menu', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['contentId', 'disabled', 'maxEdgeStart', 'menuId', 'side', 'swipeGesture', 'type'] },] },
|
2195 | ];
|
2196 |
|
2197 | IonMenu.ctorParameters = function () { return [
|
2198 | { type: ChangeDetectorRef },
|
2199 | { type: ElementRef },
|
2200 | { type: NgZone }
|
2201 | ]; };
|
2202 | return IonMenu;
|
2203 | }());
|
2204 | proxyMethods(IonMenu, ['isOpen', 'isActive', 'open', 'close', 'toggle', 'setOpen']);
|
2205 | proxyInputs(IonMenu, ['contentId', 'disabled', 'maxEdgeStart', 'menuId', 'side', 'swipeGesture', 'type']);
|
2206 | var IonMenuButton = (function () {
|
2207 | function IonMenuButton(c, r, z) {
|
2208 | this.z = z;
|
2209 | c.detach();
|
2210 | this.el = r.nativeElement;
|
2211 | }
|
2212 | IonMenuButton.decorators = [
|
2213 | { type: Component, args: [{ selector: 'ion-menu-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['autoHide', 'color', 'disabled', 'menu', 'type'] },] },
|
2214 | ];
|
2215 |
|
2216 | IonMenuButton.ctorParameters = function () { return [
|
2217 | { type: ChangeDetectorRef },
|
2218 | { type: ElementRef },
|
2219 | { type: NgZone }
|
2220 | ]; };
|
2221 | return IonMenuButton;
|
2222 | }());
|
2223 | proxyInputs(IonMenuButton, ['autoHide', 'color', 'disabled', 'menu', 'type']);
|
2224 | var IonMenuToggle = (function () {
|
2225 | function IonMenuToggle(c, r, z) {
|
2226 | this.z = z;
|
2227 | c.detach();
|
2228 | this.el = r.nativeElement;
|
2229 | }
|
2230 | IonMenuToggle.decorators = [
|
2231 | { type: Component, args: [{ selector: 'ion-menu-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['autoHide', 'menu'] },] },
|
2232 | ];
|
2233 |
|
2234 | IonMenuToggle.ctorParameters = function () { return [
|
2235 | { type: ChangeDetectorRef },
|
2236 | { type: ElementRef },
|
2237 | { type: NgZone }
|
2238 | ]; };
|
2239 | return IonMenuToggle;
|
2240 | }());
|
2241 | proxyInputs(IonMenuToggle, ['autoHide', 'menu']);
|
2242 | var IonNav = (function () {
|
2243 | function IonNav(c, r, z) {
|
2244 | this.z = z;
|
2245 | c.detach();
|
2246 | this.el = r.nativeElement;
|
2247 | proxyOutputs(this, this.el, ['ionNavWillChange', 'ionNavDidChange']);
|
2248 | }
|
2249 | IonNav.decorators = [
|
2250 | { type: Component, args: [{ selector: 'ion-nav', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['animated', 'animation', 'root', 'rootParams', 'swipeGesture'] },] },
|
2251 | ];
|
2252 |
|
2253 | IonNav.ctorParameters = function () { return [
|
2254 | { type: ChangeDetectorRef },
|
2255 | { type: ElementRef },
|
2256 | { type: NgZone }
|
2257 | ]; };
|
2258 | return IonNav;
|
2259 | }());
|
2260 | proxyMethods(IonNav, ['push', 'insert', 'insertPages', 'pop', 'popTo', 'popToRoot', 'removeIndex', 'setRoot', 'setPages', 'getActive', 'getByIndex', 'canGoBack', 'getPrevious']);
|
2261 | proxyInputs(IonNav, ['animated', 'animation', 'root', 'rootParams', 'swipeGesture']);
|
2262 | var IonNavLink = (function () {
|
2263 | function IonNavLink(c, r, z) {
|
2264 | this.z = z;
|
2265 | c.detach();
|
2266 | this.el = r.nativeElement;
|
2267 | }
|
2268 | IonNavLink.decorators = [
|
2269 | { type: Component, args: [{ selector: 'ion-nav-link', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['component', 'componentProps', 'routerDirection'] },] },
|
2270 | ];
|
2271 |
|
2272 | IonNavLink.ctorParameters = function () { return [
|
2273 | { type: ChangeDetectorRef },
|
2274 | { type: ElementRef },
|
2275 | { type: NgZone }
|
2276 | ]; };
|
2277 | return IonNavLink;
|
2278 | }());
|
2279 | proxyInputs(IonNavLink, ['component', 'componentProps', 'routerDirection']);
|
2280 | var IonNavPop = (function () {
|
2281 | function IonNavPop(c, r, z) {
|
2282 | this.z = z;
|
2283 | c.detach();
|
2284 | this.el = r.nativeElement;
|
2285 | }
|
2286 | IonNavPop.decorators = [
|
2287 | { type: Component, args: [{ selector: 'ion-nav-pop', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
2288 | ];
|
2289 |
|
2290 | IonNavPop.ctorParameters = function () { return [
|
2291 | { type: ChangeDetectorRef },
|
2292 | { type: ElementRef },
|
2293 | { type: NgZone }
|
2294 | ]; };
|
2295 | return IonNavPop;
|
2296 | }());
|
2297 | var IonNavPush = (function () {
|
2298 | function IonNavPush(c, r, z) {
|
2299 | this.z = z;
|
2300 | c.detach();
|
2301 | this.el = r.nativeElement;
|
2302 | }
|
2303 | IonNavPush.decorators = [
|
2304 | { type: Component, args: [{ selector: 'ion-nav-push', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['component', 'componentProps'] },] },
|
2305 | ];
|
2306 |
|
2307 | IonNavPush.ctorParameters = function () { return [
|
2308 | { type: ChangeDetectorRef },
|
2309 | { type: ElementRef },
|
2310 | { type: NgZone }
|
2311 | ]; };
|
2312 | return IonNavPush;
|
2313 | }());
|
2314 | proxyInputs(IonNavPush, ['component', 'componentProps']);
|
2315 | var IonNavSetRoot = (function () {
|
2316 | function IonNavSetRoot(c, r, z) {
|
2317 | this.z = z;
|
2318 | c.detach();
|
2319 | this.el = r.nativeElement;
|
2320 | }
|
2321 | IonNavSetRoot.decorators = [
|
2322 | { type: Component, args: [{ selector: 'ion-nav-set-root', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['component', 'componentProps'] },] },
|
2323 | ];
|
2324 |
|
2325 | IonNavSetRoot.ctorParameters = function () { return [
|
2326 | { type: ChangeDetectorRef },
|
2327 | { type: ElementRef },
|
2328 | { type: NgZone }
|
2329 | ]; };
|
2330 | return IonNavSetRoot;
|
2331 | }());
|
2332 | proxyInputs(IonNavSetRoot, ['component', 'componentProps']);
|
2333 | var IonNote = (function () {
|
2334 | function IonNote(c, r, z) {
|
2335 | this.z = z;
|
2336 | c.detach();
|
2337 | this.el = r.nativeElement;
|
2338 | }
|
2339 | IonNote.decorators = [
|
2340 | { type: Component, args: [{ selector: 'ion-note', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
2341 | ];
|
2342 |
|
2343 | IonNote.ctorParameters = function () { return [
|
2344 | { type: ChangeDetectorRef },
|
2345 | { type: ElementRef },
|
2346 | { type: NgZone }
|
2347 | ]; };
|
2348 | return IonNote;
|
2349 | }());
|
2350 | proxyInputs(IonNote, ['color', 'mode']);
|
2351 | var IonProgressBar = (function () {
|
2352 | function IonProgressBar(c, r, z) {
|
2353 | this.z = z;
|
2354 | c.detach();
|
2355 | this.el = r.nativeElement;
|
2356 | }
|
2357 | IonProgressBar.decorators = [
|
2358 | { type: Component, args: [{ selector: 'ion-progress-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['buffer', 'color', 'mode', 'reversed', 'type', 'value'] },] },
|
2359 | ];
|
2360 |
|
2361 | IonProgressBar.ctorParameters = function () { return [
|
2362 | { type: ChangeDetectorRef },
|
2363 | { type: ElementRef },
|
2364 | { type: NgZone }
|
2365 | ]; };
|
2366 | return IonProgressBar;
|
2367 | }());
|
2368 | proxyInputs(IonProgressBar, ['buffer', 'color', 'mode', 'reversed', 'type', 'value']);
|
2369 | var IonRadio = (function () {
|
2370 | function IonRadio(c, r, z) {
|
2371 | this.z = z;
|
2372 | c.detach();
|
2373 | this.el = r.nativeElement;
|
2374 | proxyOutputs(this, this.el, ['ionSelect', 'ionFocus', 'ionBlur']);
|
2375 | }
|
2376 | IonRadio.decorators = [
|
2377 | { type: Component, args: [{ selector: 'ion-radio', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['checked', 'color', 'disabled', 'mode', 'name', 'value'] },] },
|
2378 | ];
|
2379 |
|
2380 | IonRadio.ctorParameters = function () { return [
|
2381 | { type: ChangeDetectorRef },
|
2382 | { type: ElementRef },
|
2383 | { type: NgZone }
|
2384 | ]; };
|
2385 | return IonRadio;
|
2386 | }());
|
2387 | proxyInputs(IonRadio, ['checked', 'color', 'disabled', 'mode', 'name', 'value']);
|
2388 | var IonRadioGroup = (function () {
|
2389 | function IonRadioGroup(c, r, z) {
|
2390 | this.z = z;
|
2391 | c.detach();
|
2392 | this.el = r.nativeElement;
|
2393 | proxyOutputs(this, this.el, ['ionChange']);
|
2394 | }
|
2395 | IonRadioGroup.decorators = [
|
2396 | { type: Component, args: [{ selector: 'ion-radio-group', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['allowEmptySelection', 'name', 'value'] },] },
|
2397 | ];
|
2398 |
|
2399 | IonRadioGroup.ctorParameters = function () { return [
|
2400 | { type: ChangeDetectorRef },
|
2401 | { type: ElementRef },
|
2402 | { type: NgZone }
|
2403 | ]; };
|
2404 | return IonRadioGroup;
|
2405 | }());
|
2406 | proxyInputs(IonRadioGroup, ['allowEmptySelection', 'name', 'value']);
|
2407 | var IonRange = (function () {
|
2408 | function IonRange(c, r, z) {
|
2409 | this.z = z;
|
2410 | c.detach();
|
2411 | this.el = r.nativeElement;
|
2412 | proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
|
2413 | }
|
2414 | IonRange.decorators = [
|
2415 | { type: Component, args: [{ selector: 'ion-range', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'debounce', 'disabled', 'dualKnobs', 'max', 'min', 'mode', 'name', 'pin', 'snaps', 'step', 'ticks', 'value'] },] },
|
2416 | ];
|
2417 |
|
2418 | IonRange.ctorParameters = function () { return [
|
2419 | { type: ChangeDetectorRef },
|
2420 | { type: ElementRef },
|
2421 | { type: NgZone }
|
2422 | ]; };
|
2423 | return IonRange;
|
2424 | }());
|
2425 | proxyInputs(IonRange, ['color', 'debounce', 'disabled', 'dualKnobs', 'max', 'min', 'mode', 'name', 'pin', 'snaps', 'step', 'ticks', 'value']);
|
2426 | var IonRefresher = (function () {
|
2427 | function IonRefresher(c, r, z) {
|
2428 | this.z = z;
|
2429 | c.detach();
|
2430 | this.el = r.nativeElement;
|
2431 | proxyOutputs(this, this.el, ['ionRefresh', 'ionPull', 'ionStart']);
|
2432 | }
|
2433 | IonRefresher.decorators = [
|
2434 | { type: Component, args: [{ selector: 'ion-refresher', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['closeDuration', 'disabled', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration'] },] },
|
2435 | ];
|
2436 |
|
2437 | IonRefresher.ctorParameters = function () { return [
|
2438 | { type: ChangeDetectorRef },
|
2439 | { type: ElementRef },
|
2440 | { type: NgZone }
|
2441 | ]; };
|
2442 | return IonRefresher;
|
2443 | }());
|
2444 | proxyMethods(IonRefresher, ['complete', 'cancel', 'getProgress']);
|
2445 | proxyInputs(IonRefresher, ['closeDuration', 'disabled', 'pullFactor', 'pullMax', 'pullMin', 'snapbackDuration']);
|
2446 | var IonRefresherContent = (function () {
|
2447 | function IonRefresherContent(c, r, z) {
|
2448 | this.z = z;
|
2449 | c.detach();
|
2450 | this.el = r.nativeElement;
|
2451 | }
|
2452 | IonRefresherContent.decorators = [
|
2453 | { type: Component, args: [{ selector: 'ion-refresher-content', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['pullingIcon', 'pullingText', 'refreshingSpinner', 'refreshingText'] },] },
|
2454 | ];
|
2455 |
|
2456 | IonRefresherContent.ctorParameters = function () { return [
|
2457 | { type: ChangeDetectorRef },
|
2458 | { type: ElementRef },
|
2459 | { type: NgZone }
|
2460 | ]; };
|
2461 | return IonRefresherContent;
|
2462 | }());
|
2463 | proxyInputs(IonRefresherContent, ['pullingIcon', 'pullingText', 'refreshingSpinner', 'refreshingText']);
|
2464 | var IonReorder = (function () {
|
2465 | function IonReorder(c, r, z) {
|
2466 | this.z = z;
|
2467 | c.detach();
|
2468 | this.el = r.nativeElement;
|
2469 | }
|
2470 | IonReorder.decorators = [
|
2471 | { type: Component, args: [{ selector: 'ion-reorder', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
2472 | ];
|
2473 |
|
2474 | IonReorder.ctorParameters = function () { return [
|
2475 | { type: ChangeDetectorRef },
|
2476 | { type: ElementRef },
|
2477 | { type: NgZone }
|
2478 | ]; };
|
2479 | return IonReorder;
|
2480 | }());
|
2481 | var IonReorderGroup = (function () {
|
2482 | function IonReorderGroup(c, r, z) {
|
2483 | this.z = z;
|
2484 | c.detach();
|
2485 | this.el = r.nativeElement;
|
2486 | proxyOutputs(this, this.el, ['ionItemReorder']);
|
2487 | }
|
2488 | IonReorderGroup.decorators = [
|
2489 | { type: Component, args: [{ selector: 'ion-reorder-group', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['disabled'] },] },
|
2490 | ];
|
2491 |
|
2492 | IonReorderGroup.ctorParameters = function () { return [
|
2493 | { type: ChangeDetectorRef },
|
2494 | { type: ElementRef },
|
2495 | { type: NgZone }
|
2496 | ]; };
|
2497 | return IonReorderGroup;
|
2498 | }());
|
2499 | proxyMethods(IonReorderGroup, ['complete']);
|
2500 | proxyInputs(IonReorderGroup, ['disabled']);
|
2501 | var IonRippleEffect = (function () {
|
2502 | function IonRippleEffect(c, r, z) {
|
2503 | this.z = z;
|
2504 | c.detach();
|
2505 | this.el = r.nativeElement;
|
2506 | }
|
2507 | IonRippleEffect.decorators = [
|
2508 | { type: Component, args: [{ selector: 'ion-ripple-effect', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['type'] },] },
|
2509 | ];
|
2510 |
|
2511 | IonRippleEffect.ctorParameters = function () { return [
|
2512 | { type: ChangeDetectorRef },
|
2513 | { type: ElementRef },
|
2514 | { type: NgZone }
|
2515 | ]; };
|
2516 | return IonRippleEffect;
|
2517 | }());
|
2518 | proxyMethods(IonRippleEffect, ['addRipple']);
|
2519 | proxyInputs(IonRippleEffect, ['type']);
|
2520 | var IonRow = (function () {
|
2521 | function IonRow(c, r, z) {
|
2522 | this.z = z;
|
2523 | c.detach();
|
2524 | this.el = r.nativeElement;
|
2525 | }
|
2526 | IonRow.decorators = [
|
2527 | { type: Component, args: [{ selector: 'ion-row', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
2528 | ];
|
2529 |
|
2530 | IonRow.ctorParameters = function () { return [
|
2531 | { type: ChangeDetectorRef },
|
2532 | { type: ElementRef },
|
2533 | { type: NgZone }
|
2534 | ]; };
|
2535 | return IonRow;
|
2536 | }());
|
2537 | var IonSearchbar = (function () {
|
2538 | function IonSearchbar(c, r, z) {
|
2539 | this.z = z;
|
2540 | c.detach();
|
2541 | this.el = r.nativeElement;
|
2542 | proxyOutputs(this, this.el, ['ionInput', 'ionChange', 'ionCancel', 'ionClear', 'ionBlur', 'ionFocus']);
|
2543 | }
|
2544 | IonSearchbar.decorators = [
|
2545 | { type: Component, args: [{ selector: 'ion-searchbar', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['animated', 'autocomplete', 'autocorrect', 'cancelButtonIcon', 'cancelButtonText', 'clearIcon', 'color', 'debounce', 'disabled', 'inputmode', 'mode', 'placeholder', 'searchIcon', 'showCancelButton', 'spellcheck', 'type', 'value'] },] },
|
2546 | ];
|
2547 |
|
2548 | IonSearchbar.ctorParameters = function () { return [
|
2549 | { type: ChangeDetectorRef },
|
2550 | { type: ElementRef },
|
2551 | { type: NgZone }
|
2552 | ]; };
|
2553 | return IonSearchbar;
|
2554 | }());
|
2555 | proxyMethods(IonSearchbar, ['setFocus', 'getInputElement']);
|
2556 | proxyInputs(IonSearchbar, ['animated', 'autocomplete', 'autocorrect', 'cancelButtonIcon', 'cancelButtonText', 'clearIcon', 'color', 'debounce', 'disabled', 'inputmode', 'mode', 'placeholder', 'searchIcon', 'showCancelButton', 'spellcheck', 'type', 'value']);
|
2557 | var IonSegment = (function () {
|
2558 | function IonSegment(c, r, z) {
|
2559 | this.z = z;
|
2560 | c.detach();
|
2561 | this.el = r.nativeElement;
|
2562 | proxyOutputs(this, this.el, ['ionChange']);
|
2563 | }
|
2564 | IonSegment.decorators = [
|
2565 | { type: Component, args: [{ selector: 'ion-segment', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'disabled', 'mode', 'scrollable', 'value'] },] },
|
2566 | ];
|
2567 |
|
2568 | IonSegment.ctorParameters = function () { return [
|
2569 | { type: ChangeDetectorRef },
|
2570 | { type: ElementRef },
|
2571 | { type: NgZone }
|
2572 | ]; };
|
2573 | return IonSegment;
|
2574 | }());
|
2575 | proxyInputs(IonSegment, ['color', 'disabled', 'mode', 'scrollable', 'value']);
|
2576 | var IonSegmentButton = (function () {
|
2577 | function IonSegmentButton(c, r, z) {
|
2578 | this.z = z;
|
2579 | c.detach();
|
2580 | this.el = r.nativeElement;
|
2581 | proxyOutputs(this, this.el, ['ionSelect']);
|
2582 | }
|
2583 | IonSegmentButton.decorators = [
|
2584 | { type: Component, args: [{ selector: 'ion-segment-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['checked', 'disabled', 'layout', 'mode', 'type', 'value'] },] },
|
2585 | ];
|
2586 |
|
2587 | IonSegmentButton.ctorParameters = function () { return [
|
2588 | { type: ChangeDetectorRef },
|
2589 | { type: ElementRef },
|
2590 | { type: NgZone }
|
2591 | ]; };
|
2592 | return IonSegmentButton;
|
2593 | }());
|
2594 | proxyInputs(IonSegmentButton, ['checked', 'disabled', 'layout', 'mode', 'type', 'value']);
|
2595 | var IonSelect = (function () {
|
2596 | function IonSelect(c, r, z) {
|
2597 | this.z = z;
|
2598 | c.detach();
|
2599 | this.el = r.nativeElement;
|
2600 | proxyOutputs(this, this.el, ['ionChange', 'ionCancel', 'ionFocus', 'ionBlur']);
|
2601 | }
|
2602 | IonSelect.decorators = [
|
2603 | { type: Component, args: [{ selector: 'ion-select', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['cancelText', 'compareWith', 'disabled', 'interface', 'interfaceOptions', 'mode', 'multiple', 'name', 'okText', 'placeholder', 'selectedText', 'value'] },] },
|
2604 | ];
|
2605 |
|
2606 | IonSelect.ctorParameters = function () { return [
|
2607 | { type: ChangeDetectorRef },
|
2608 | { type: ElementRef },
|
2609 | { type: NgZone }
|
2610 | ]; };
|
2611 | return IonSelect;
|
2612 | }());
|
2613 | proxyMethods(IonSelect, ['open']);
|
2614 | proxyInputs(IonSelect, ['cancelText', 'compareWith', 'disabled', 'interface', 'interfaceOptions', 'mode', 'multiple', 'name', 'okText', 'placeholder', 'selectedText', 'value']);
|
2615 | var IonSelectOption = (function () {
|
2616 | function IonSelectOption(c, r, z) {
|
2617 | this.z = z;
|
2618 | c.detach();
|
2619 | this.el = r.nativeElement;
|
2620 | }
|
2621 | IonSelectOption.decorators = [
|
2622 | { type: Component, args: [{ selector: 'ion-select-option', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['disabled', 'selected', 'value'] },] },
|
2623 | ];
|
2624 |
|
2625 | IonSelectOption.ctorParameters = function () { return [
|
2626 | { type: ChangeDetectorRef },
|
2627 | { type: ElementRef },
|
2628 | { type: NgZone }
|
2629 | ]; };
|
2630 | return IonSelectOption;
|
2631 | }());
|
2632 | proxyInputs(IonSelectOption, ['disabled', 'selected', 'value']);
|
2633 | var IonSkeletonText = (function () {
|
2634 | function IonSkeletonText(c, r, z) {
|
2635 | this.z = z;
|
2636 | c.detach();
|
2637 | this.el = r.nativeElement;
|
2638 | }
|
2639 | IonSkeletonText.decorators = [
|
2640 | { type: Component, args: [{ selector: 'ion-skeleton-text', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['animated', 'width'] },] },
|
2641 | ];
|
2642 |
|
2643 | IonSkeletonText.ctorParameters = function () { return [
|
2644 | { type: ChangeDetectorRef },
|
2645 | { type: ElementRef },
|
2646 | { type: NgZone }
|
2647 | ]; };
|
2648 | return IonSkeletonText;
|
2649 | }());
|
2650 | proxyInputs(IonSkeletonText, ['animated', 'width']);
|
2651 | var IonSlide = (function () {
|
2652 | function IonSlide(c, r, z) {
|
2653 | this.z = z;
|
2654 | c.detach();
|
2655 | this.el = r.nativeElement;
|
2656 | }
|
2657 | IonSlide.decorators = [
|
2658 | { type: Component, args: [{ selector: 'ion-slide', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
2659 | ];
|
2660 |
|
2661 | IonSlide.ctorParameters = function () { return [
|
2662 | { type: ChangeDetectorRef },
|
2663 | { type: ElementRef },
|
2664 | { type: NgZone }
|
2665 | ]; };
|
2666 | return IonSlide;
|
2667 | }());
|
2668 | var IonSlides = (function () {
|
2669 | function IonSlides(c, r, z) {
|
2670 | this.z = z;
|
2671 | c.detach();
|
2672 | this.el = r.nativeElement;
|
2673 | proxyOutputs(this, this.el, ['ionSlidesDidLoad', 'ionSlideTap', 'ionSlideDoubleTap', 'ionSlideWillChange', 'ionSlideDidChange', 'ionSlideNextStart', 'ionSlidePrevStart', 'ionSlideNextEnd', 'ionSlidePrevEnd', 'ionSlideTransitionStart', 'ionSlideTransitionEnd', 'ionSlideDrag', 'ionSlideReachStart', 'ionSlideReachEnd', 'ionSlideTouchStart', 'ionSlideTouchEnd']);
|
2674 | }
|
2675 | IonSlides.decorators = [
|
2676 | { type: Component, args: [{ selector: 'ion-slides', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['mode', 'options', 'pager', 'scrollbar'] },] },
|
2677 | ];
|
2678 |
|
2679 | IonSlides.ctorParameters = function () { return [
|
2680 | { type: ChangeDetectorRef },
|
2681 | { type: ElementRef },
|
2682 | { type: NgZone }
|
2683 | ]; };
|
2684 | return IonSlides;
|
2685 | }());
|
2686 | proxyMethods(IonSlides, ['update', 'updateAutoHeight', 'slideTo', 'slideNext', 'slidePrev', 'getActiveIndex', 'getPreviousIndex', 'length', 'isEnd', 'isBeginning', 'startAutoplay', 'stopAutoplay', 'lockSwipeToNext', 'lockSwipeToPrev', 'lockSwipes', 'getSwiper']);
|
2687 | proxyInputs(IonSlides, ['mode', 'options', 'pager', 'scrollbar']);
|
2688 | var IonSpinner = (function () {
|
2689 | function IonSpinner(c, r, z) {
|
2690 | this.z = z;
|
2691 | c.detach();
|
2692 | this.el = r.nativeElement;
|
2693 | }
|
2694 | IonSpinner.decorators = [
|
2695 | { type: Component, args: [{ selector: 'ion-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'duration', 'name', 'paused'] },] },
|
2696 | ];
|
2697 |
|
2698 | IonSpinner.ctorParameters = function () { return [
|
2699 | { type: ChangeDetectorRef },
|
2700 | { type: ElementRef },
|
2701 | { type: NgZone }
|
2702 | ]; };
|
2703 | return IonSpinner;
|
2704 | }());
|
2705 | proxyInputs(IonSpinner, ['color', 'duration', 'name', 'paused']);
|
2706 | var IonSplitPane = (function () {
|
2707 | function IonSplitPane(c, r, z) {
|
2708 | this.z = z;
|
2709 | c.detach();
|
2710 | this.el = r.nativeElement;
|
2711 | proxyOutputs(this, this.el, ['ionSplitPaneVisible']);
|
2712 | }
|
2713 | IonSplitPane.decorators = [
|
2714 | { type: Component, args: [{ selector: 'ion-split-pane', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['contentId', 'disabled', 'when'] },] },
|
2715 | ];
|
2716 |
|
2717 | IonSplitPane.ctorParameters = function () { return [
|
2718 | { type: ChangeDetectorRef },
|
2719 | { type: ElementRef },
|
2720 | { type: NgZone }
|
2721 | ]; };
|
2722 | return IonSplitPane;
|
2723 | }());
|
2724 | proxyInputs(IonSplitPane, ['contentId', 'disabled', 'when']);
|
2725 | var IonTabBar = (function () {
|
2726 | function IonTabBar(c, r, z) {
|
2727 | this.z = z;
|
2728 | c.detach();
|
2729 | this.el = r.nativeElement;
|
2730 | }
|
2731 | IonTabBar.decorators = [
|
2732 | { type: Component, args: [{ selector: 'ion-tab-bar', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode', 'selectedTab', 'translucent'] },] },
|
2733 | ];
|
2734 |
|
2735 | IonTabBar.ctorParameters = function () { return [
|
2736 | { type: ChangeDetectorRef },
|
2737 | { type: ElementRef },
|
2738 | { type: NgZone }
|
2739 | ]; };
|
2740 | return IonTabBar;
|
2741 | }());
|
2742 | proxyInputs(IonTabBar, ['color', 'mode', 'selectedTab', 'translucent']);
|
2743 | var IonTabButton = (function () {
|
2744 | function IonTabButton(c, r, z) {
|
2745 | this.z = z;
|
2746 | c.detach();
|
2747 | this.el = r.nativeElement;
|
2748 | }
|
2749 | IonTabButton.decorators = [
|
2750 | { type: Component, args: [{ selector: 'ion-tab-button', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['disabled', 'download', 'href', 'layout', 'mode', 'rel', 'selected', 'tab', 'target'] },] },
|
2751 | ];
|
2752 |
|
2753 | IonTabButton.ctorParameters = function () { return [
|
2754 | { type: ChangeDetectorRef },
|
2755 | { type: ElementRef },
|
2756 | { type: NgZone }
|
2757 | ]; };
|
2758 | return IonTabButton;
|
2759 | }());
|
2760 | proxyInputs(IonTabButton, ['disabled', 'download', 'href', 'layout', 'mode', 'rel', 'selected', 'tab', 'target']);
|
2761 | var IonText = (function () {
|
2762 | function IonText(c, r, z) {
|
2763 | this.z = z;
|
2764 | c.detach();
|
2765 | this.el = r.nativeElement;
|
2766 | }
|
2767 | IonText.decorators = [
|
2768 | { type: Component, args: [{ selector: 'ion-text', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
2769 | ];
|
2770 |
|
2771 | IonText.ctorParameters = function () { return [
|
2772 | { type: ChangeDetectorRef },
|
2773 | { type: ElementRef },
|
2774 | { type: NgZone }
|
2775 | ]; };
|
2776 | return IonText;
|
2777 | }());
|
2778 | proxyInputs(IonText, ['color', 'mode']);
|
2779 | var IonTextarea = (function () {
|
2780 | function IonTextarea(c, r, z) {
|
2781 | this.z = z;
|
2782 | c.detach();
|
2783 | this.el = r.nativeElement;
|
2784 | proxyOutputs(this, this.el, ['ionChange', 'ionInput', 'ionBlur', 'ionFocus']);
|
2785 | }
|
2786 | IonTextarea.decorators = [
|
2787 | { type: Component, args: [{ selector: 'ion-textarea', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['autoGrow', 'autocapitalize', 'autofocus', 'clearOnEdit', 'color', 'cols', 'debounce', 'disabled', 'maxlength', 'minlength', 'mode', 'name', 'placeholder', 'readonly', 'required', 'rows', 'spellcheck', 'value', 'wrap'] },] },
|
2788 | ];
|
2789 |
|
2790 | IonTextarea.ctorParameters = function () { return [
|
2791 | { type: ChangeDetectorRef },
|
2792 | { type: ElementRef },
|
2793 | { type: NgZone }
|
2794 | ]; };
|
2795 | return IonTextarea;
|
2796 | }());
|
2797 | proxyMethods(IonTextarea, ['setFocus', 'getInputElement']);
|
2798 | proxyInputs(IonTextarea, ['autoGrow', 'autocapitalize', 'autofocus', 'clearOnEdit', 'color', 'cols', 'debounce', 'disabled', 'maxlength', 'minlength', 'mode', 'name', 'placeholder', 'readonly', 'required', 'rows', 'spellcheck', 'value', 'wrap']);
|
2799 | var IonThumbnail = (function () {
|
2800 | function IonThumbnail(c, r, z) {
|
2801 | this.z = z;
|
2802 | c.detach();
|
2803 | this.el = r.nativeElement;
|
2804 | }
|
2805 | IonThumbnail.decorators = [
|
2806 | { type: Component, args: [{ selector: 'ion-thumbnail', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>' },] },
|
2807 | ];
|
2808 |
|
2809 | IonThumbnail.ctorParameters = function () { return [
|
2810 | { type: ChangeDetectorRef },
|
2811 | { type: ElementRef },
|
2812 | { type: NgZone }
|
2813 | ]; };
|
2814 | return IonThumbnail;
|
2815 | }());
|
2816 | var IonTitle = (function () {
|
2817 | function IonTitle(c, r, z) {
|
2818 | this.z = z;
|
2819 | c.detach();
|
2820 | this.el = r.nativeElement;
|
2821 | }
|
2822 | IonTitle.decorators = [
|
2823 | { type: Component, args: [{ selector: 'ion-title', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'size'] },] },
|
2824 | ];
|
2825 |
|
2826 | IonTitle.ctorParameters = function () { return [
|
2827 | { type: ChangeDetectorRef },
|
2828 | { type: ElementRef },
|
2829 | { type: NgZone }
|
2830 | ]; };
|
2831 | return IonTitle;
|
2832 | }());
|
2833 | proxyInputs(IonTitle, ['color', 'size']);
|
2834 | var IonToggle = (function () {
|
2835 | function IonToggle(c, r, z) {
|
2836 | this.z = z;
|
2837 | c.detach();
|
2838 | this.el = r.nativeElement;
|
2839 | proxyOutputs(this, this.el, ['ionChange', 'ionFocus', 'ionBlur']);
|
2840 | }
|
2841 | IonToggle.decorators = [
|
2842 | { type: Component, args: [{ selector: 'ion-toggle', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['checked', 'color', 'disabled', 'mode', 'name', 'value'] },] },
|
2843 | ];
|
2844 |
|
2845 | IonToggle.ctorParameters = function () { return [
|
2846 | { type: ChangeDetectorRef },
|
2847 | { type: ElementRef },
|
2848 | { type: NgZone }
|
2849 | ]; };
|
2850 | return IonToggle;
|
2851 | }());
|
2852 | proxyInputs(IonToggle, ['checked', 'color', 'disabled', 'mode', 'name', 'value']);
|
2853 | var IonToolbar = (function () {
|
2854 | function IonToolbar(c, r, z) {
|
2855 | this.z = z;
|
2856 | c.detach();
|
2857 | this.el = r.nativeElement;
|
2858 | }
|
2859 | IonToolbar.decorators = [
|
2860 | { type: Component, args: [{ selector: 'ion-toolbar', changeDetection: ChangeDetectionStrategy.OnPush, template: '<ng-content></ng-content>', inputs: ['color', 'mode'] },] },
|
2861 | ];
|
2862 |
|
2863 | IonToolbar.ctorParameters = function () { return [
|
2864 | { type: ChangeDetectorRef },
|
2865 | { type: ElementRef },
|
2866 | { type: NgZone }
|
2867 | ]; };
|
2868 | return IonToolbar;
|
2869 | }());
|
2870 | proxyInputs(IonToolbar, ['color', 'mode']);
|
2871 |
|
2872 |
|
2873 |
|
2874 |
|
2875 |
|
2876 | var Config = (function () {
|
2877 | function Config() {
|
2878 | }
|
2879 | |
2880 |
|
2881 |
|
2882 |
|
2883 |
|
2884 | Config.prototype.get = |
2885 |
|
2886 |
|
2887 |
|
2888 |
|
2889 | function (key, fallback) {
|
2890 |
|
2891 | var c = getConfig();
|
2892 | if (c) {
|
2893 | return c.get(key, fallback);
|
2894 | }
|
2895 | return null;
|
2896 | };
|
2897 | |
2898 |
|
2899 |
|
2900 |
|
2901 |
|
2902 | Config.prototype.getBoolean = |
2903 |
|
2904 |
|
2905 |
|
2906 |
|
2907 | function (key, fallback) {
|
2908 |
|
2909 | var c = getConfig();
|
2910 | if (c) {
|
2911 | return c.getBoolean(key, fallback);
|
2912 | }
|
2913 | return false;
|
2914 | };
|
2915 | |
2916 |
|
2917 |
|
2918 |
|
2919 |
|
2920 | Config.prototype.getNumber = |
2921 |
|
2922 |
|
2923 |
|
2924 |
|
2925 | function (key, fallback) {
|
2926 |
|
2927 | var c = getConfig();
|
2928 | if (c) {
|
2929 | return c.getNumber(key, fallback);
|
2930 | }
|
2931 | return 0;
|
2932 | };
|
2933 | |
2934 |
|
2935 |
|
2936 |
|
2937 |
|
2938 | Config.prototype.set = |
2939 |
|
2940 |
|
2941 |
|
2942 |
|
2943 | function (key, value) {
|
2944 | console.warn("[DEPRECATION][Config]: The Config.set() method is deprecated and will be removed in Ionic Framework 6.0. Please see https://ionicframework.com/docs/angular/config for alternatives.");
|
2945 |
|
2946 | var c = getConfig();
|
2947 | if (c) {
|
2948 | c.set(key, value);
|
2949 | }
|
2950 | };
|
2951 | Config.decorators = [
|
2952 | { type: Injectable, args: [{
|
2953 | providedIn: 'root'
|
2954 | },] },
|
2955 | ];
|
2956 | Config.ngInjectableDef = defineInjectable({ factory: function Config_Factory() { return new Config(); }, token: Config, providedIn: "root" });
|
2957 | return Config;
|
2958 | }());
|
2959 |
|
2960 | var ConfigToken = new InjectionToken('USERCONFIG');
|
2961 |
|
2962 | var getConfig = ( |
2963 |
|
2964 |
|
2965 | function () {
|
2966 | if (typeof (( (window))) !== 'undefined') {
|
2967 |
|
2968 | var Ionic = (( (( (window))))).Ionic;
|
2969 | if (Ionic && Ionic.config) {
|
2970 | return Ionic.config;
|
2971 | }
|
2972 | }
|
2973 | return null;
|
2974 | });
|
2975 |
|
2976 |
|
2977 |
|
2978 |
|
2979 |
|
2980 |
|
2981 |
|
2982 |
|
2983 |
|
2984 |
|
2985 |
|
2986 |
|
2987 |
|
2988 |
|
2989 |
|
2990 |
|
2991 |
|
2992 |
|
2993 |
|
2994 |
|
2995 |
|
2996 |
|
2997 |
|
2998 |
|
2999 |
|
3000 | var |
3001 |
|
3002 |
|
3003 |
|
3004 |
|
3005 |
|
3006 |
|
3007 |
|
3008 |
|
3009 |
|
3010 |
|
3011 |
|
3012 |
|
3013 |
|
3014 |
|
3015 |
|
3016 |
|
3017 |
|
3018 |
|
3019 |
|
3020 | NavParams = (function () {
|
3021 | function NavParams(data) {
|
3022 | if (data === void 0) { data = {}; }
|
3023 | this.data = data;
|
3024 | }
|
3025 | |
3026 |
|
3027 |
|
3028 |
|
3029 |
|
3030 |
|
3031 |
|
3032 |
|
3033 |
|
3034 |
|
3035 |
|
3036 |
|
3037 |
|
3038 |
|
3039 |
|
3040 |
|
3041 | |
3042 |
|
3043 |
|
3044 |
|
3045 |
|
3046 |
|
3047 |
|
3048 |
|
3049 |
|
3050 |
|
3051 |
|
3052 |
|
3053 |
|
3054 |
|
3055 |
|
3056 |
|
3057 |
|
3058 | NavParams.prototype.get = |
3059 |
|
3060 |
|
3061 |
|
3062 |
|
3063 |
|
3064 |
|
3065 |
|
3066 |
|
3067 |
|
3068 |
|
3069 |
|
3070 |
|
3071 |
|
3072 |
|
3073 |
|
3074 |
|
3075 | function (param) {
|
3076 | return this.data[param];
|
3077 | };
|
3078 | return NavParams;
|
3079 | }());
|
3080 |
|
3081 |
|
3082 |
|
3083 |
|
3084 |
|
3085 | var AngularDelegate = (function () {
|
3086 | function AngularDelegate(zone, appRef) {
|
3087 | this.zone = zone;
|
3088 | this.appRef = appRef;
|
3089 | }
|
3090 | |
3091 |
|
3092 |
|
3093 |
|
3094 |
|
3095 |
|
3096 | AngularDelegate.prototype.create = |
3097 |
|
3098 |
|
3099 |
|
3100 |
|
3101 |
|
3102 | function (resolver, injector, location) {
|
3103 | return new AngularFrameworkDelegate(resolver, injector, location, this.appRef, this.zone);
|
3104 | };
|
3105 | AngularDelegate.decorators = [
|
3106 | { type: Injectable },
|
3107 | ];
|
3108 |
|
3109 | AngularDelegate.ctorParameters = function () { return [
|
3110 | { type: NgZone },
|
3111 | { type: ApplicationRef }
|
3112 | ]; };
|
3113 | return AngularDelegate;
|
3114 | }());
|
3115 | var AngularFrameworkDelegate = (function () {
|
3116 | function AngularFrameworkDelegate(resolver, injector, location, appRef, zone) {
|
3117 | this.resolver = resolver;
|
3118 | this.injector = injector;
|
3119 | this.location = location;
|
3120 | this.appRef = appRef;
|
3121 | this.zone = zone;
|
3122 | this.elRefMap = new WeakMap();
|
3123 | this.elEventsMap = new WeakMap();
|
3124 | }
|
3125 | |
3126 |
|
3127 |
|
3128 |
|
3129 |
|
3130 |
|
3131 |
|
3132 | AngularFrameworkDelegate.prototype.attachViewToDom = |
3133 |
|
3134 |
|
3135 |
|
3136 |
|
3137 |
|
3138 |
|
3139 | function (container, component, params, cssClasses) {
|
3140 | var _this = this;
|
3141 | return this.zone.run(( |
3142 |
|
3143 |
|
3144 | function () {
|
3145 | return new Promise(( |
3146 |
|
3147 |
|
3148 |
|
3149 | function (resolve) {
|
3150 |
|
3151 | var el = attachView(_this.zone, _this.resolver, _this.injector, _this.location, _this.appRef, _this.elRefMap, _this.elEventsMap, container, component, params, cssClasses);
|
3152 | resolve(el);
|
3153 | }));
|
3154 | }));
|
3155 | };
|
3156 | |
3157 |
|
3158 |
|
3159 |
|
3160 |
|
3161 | AngularFrameworkDelegate.prototype.removeViewFromDom = |
3162 |
|
3163 |
|
3164 |
|
3165 |
|
3166 | function (_container, component) {
|
3167 | var _this = this;
|
3168 | return this.zone.run(( |
3169 |
|
3170 |
|
3171 | function () {
|
3172 | return new Promise(( |
3173 |
|
3174 |
|
3175 |
|
3176 | function (resolve) {
|
3177 |
|
3178 | var componentRef = _this.elRefMap.get(component);
|
3179 | if (componentRef) {
|
3180 | componentRef.destroy();
|
3181 | _this.elRefMap.delete(component);
|
3182 |
|
3183 | var unbindEvents = _this.elEventsMap.get(component);
|
3184 | if (unbindEvents) {
|
3185 | unbindEvents();
|
3186 | _this.elEventsMap.delete(component);
|
3187 | }
|
3188 | }
|
3189 | resolve();
|
3190 | }));
|
3191 | }));
|
3192 | };
|
3193 | return AngularFrameworkDelegate;
|
3194 | }());
|
3195 |
|
3196 | var attachView = ( |
3197 |
|
3198 |
|
3199 |
|
3200 |
|
3201 |
|
3202 |
|
3203 |
|
3204 |
|
3205 |
|
3206 |
|
3207 |
|
3208 |
|
3209 |
|
3210 | function (zone, resolver, injector, location, appRef, elRefMap, elEventsMap, container, component, params, cssClasses) {
|
3211 |
|
3212 | var factory = resolver.resolveComponentFactory(component);
|
3213 |
|
3214 | var childInjector = Injector.create({
|
3215 | providers: getProviders(params),
|
3216 | parent: injector
|
3217 | });
|
3218 |
|
3219 | var componentRef = (location)
|
3220 | ? location.createComponent(factory, location.length, childInjector)
|
3221 | : factory.create(childInjector);
|
3222 |
|
3223 | var instance = componentRef.instance;
|
3224 |
|
3225 | var hostElement = componentRef.location.nativeElement;
|
3226 | if (params) {
|
3227 | Object.assign(instance, params);
|
3228 | }
|
3229 | if (cssClasses) {
|
3230 | for (var _i = 0, cssClasses_1 = cssClasses; _i < cssClasses_1.length; _i++) {
|
3231 | var clazz = cssClasses_1[_i];
|
3232 | hostElement.classList.add(clazz);
|
3233 | }
|
3234 | }
|
3235 |
|
3236 | var unbindEvents = bindLifecycleEvents(zone, instance, hostElement);
|
3237 | container.appendChild(hostElement);
|
3238 | if (!location) {
|
3239 | appRef.attachView(componentRef.hostView);
|
3240 | }
|
3241 | componentRef.changeDetectorRef.reattach();
|
3242 | elRefMap.set(hostElement, componentRef);
|
3243 | elEventsMap.set(hostElement, unbindEvents);
|
3244 | return hostElement;
|
3245 | });
|
3246 |
|
3247 | var LIFECYCLES = [
|
3248 | LIFECYCLE_WILL_ENTER,
|
3249 | LIFECYCLE_DID_ENTER,
|
3250 | LIFECYCLE_WILL_LEAVE,
|
3251 | LIFECYCLE_DID_LEAVE,
|
3252 | LIFECYCLE_WILL_UNLOAD
|
3253 | ];
|
3254 |
|
3255 | var bindLifecycleEvents = ( |
3256 |
|
3257 |
|
3258 |
|
3259 |
|
3260 |
|
3261 | function (zone, instance, element) {
|
3262 | return zone.run(( |
3263 |
|
3264 |
|
3265 | function () {
|
3266 |
|
3267 | var unregisters = LIFECYCLES
|
3268 | .filter(( |
3269 |
|
3270 |
|
3271 |
|
3272 | function (eventName) { return typeof instance[eventName] === 'function'; }))
|
3273 | .map(( |
3274 |
|
3275 |
|
3276 |
|
3277 | function (eventName) {
|
3278 |
|
3279 | var handler = ( |
3280 |
|
3281 |
|
3282 |
|
3283 | function (ev) { return instance[eventName](ev.detail); });
|
3284 | element.addEventListener(eventName, handler);
|
3285 | return ( |
3286 |
|
3287 |
|
3288 | function () { return element.removeEventListener(eventName, handler); });
|
3289 | }));
|
3290 | return ( |
3291 |
|
3292 |
|
3293 | function () { return unregisters.forEach(( |
3294 |
|
3295 |
|
3296 |
|
3297 | function (fn) { return fn(); })); });
|
3298 | }));
|
3299 | });
|
3300 |
|
3301 | var NavParamsToken = new InjectionToken('NavParamsToken');
|
3302 |
|
3303 | var getProviders = ( |
3304 |
|
3305 |
|
3306 |
|
3307 | function (params) {
|
3308 | return [
|
3309 | {
|
3310 | provide: NavParamsToken, useValue: params
|
3311 | },
|
3312 | {
|
3313 | provide: NavParams, useFactory: provideNavParamsInjectable, deps: [NavParamsToken]
|
3314 | }
|
3315 | ];
|
3316 | });
|
3317 |
|
3318 | var provideNavParamsInjectable = ( |
3319 |
|
3320 |
|
3321 |
|
3322 | function (params) {
|
3323 | return new NavParams(params);
|
3324 | });
|
3325 |
|
3326 |
|
3327 |
|
3328 |
|
3329 |
|
3330 |
|
3331 | var insertView = ( |
3332 |
|
3333 |
|
3334 |
|
3335 |
|
3336 |
|
3337 | function (views, view, direction) {
|
3338 | if (direction === 'root') {
|
3339 | return setRoot(views, view);
|
3340 | }
|
3341 | else if (direction === 'forward') {
|
3342 | return setForward(views, view);
|
3343 | }
|
3344 | else {
|
3345 | return setBack(views, view);
|
3346 | }
|
3347 | });
|
3348 |
|
3349 | var setRoot = ( |
3350 |
|
3351 |
|
3352 |
|
3353 |
|
3354 | function (views, view) {
|
3355 | views = views.filter(( |
3356 |
|
3357 |
|
3358 |
|
3359 | function (v) { return v.stackId !== view.stackId; }));
|
3360 | views.push(view);
|
3361 | return views;
|
3362 | });
|
3363 |
|
3364 | var setForward = ( |
3365 |
|
3366 |
|
3367 |
|
3368 |
|
3369 | function (views, view) {
|
3370 |
|
3371 | var index = views.indexOf(view);
|
3372 | if (index >= 0) {
|
3373 | views = views.filter(( |
3374 |
|
3375 |
|
3376 |
|
3377 | function (v) { return v.stackId !== view.stackId || v.id <= view.id; }));
|
3378 | }
|
3379 | else {
|
3380 | views.push(view);
|
3381 | }
|
3382 | return views;
|
3383 | });
|
3384 |
|
3385 | var setBack = ( |
3386 |
|
3387 |
|
3388 |
|
3389 |
|
3390 | function (views, view) {
|
3391 |
|
3392 | var index = views.indexOf(view);
|
3393 | if (index >= 0) {
|
3394 | return views.filter(( |
3395 |
|
3396 |
|
3397 |
|
3398 | function (v) { return v.stackId !== view.stackId || v.id <= view.id; }));
|
3399 | }
|
3400 | else {
|
3401 | return setRoot(views, view);
|
3402 | }
|
3403 | });
|
3404 |
|
3405 | var getUrl = ( |
3406 |
|
3407 |
|
3408 |
|
3409 |
|
3410 | function (router, activatedRoute) {
|
3411 |
|
3412 | var urlTree = router.createUrlTree(['.'], { relativeTo: activatedRoute });
|
3413 | return router.serializeUrl(urlTree);
|
3414 | });
|
3415 |
|
3416 | var isTabSwitch = ( |
3417 |
|
3418 |
|
3419 |
|
3420 |
|
3421 | function (enteringView, leavingView) {
|
3422 | if (!leavingView) {
|
3423 | return true;
|
3424 | }
|
3425 | return enteringView.stackId !== leavingView.stackId;
|
3426 | });
|
3427 |
|
3428 | var computeStackId = ( |
3429 |
|
3430 |
|
3431 |
|
3432 |
|
3433 | function (prefixUrl, url) {
|
3434 | if (!prefixUrl) {
|
3435 | return undefined;
|
3436 | }
|
3437 |
|
3438 | var segments = toSegments(url);
|
3439 | for (var i = 0; i < segments.length; i++) {
|
3440 | if (i >= prefixUrl.length) {
|
3441 | return segments[i];
|
3442 | }
|
3443 | if (segments[i] !== prefixUrl[i]) {
|
3444 | return undefined;
|
3445 | }
|
3446 | }
|
3447 | return undefined;
|
3448 | });
|
3449 |
|
3450 | var toSegments = ( |
3451 |
|
3452 |
|
3453 |
|
3454 | function (path) {
|
3455 | return path
|
3456 | .split('/')
|
3457 | .map(( |
3458 |
|
3459 |
|
3460 |
|
3461 | function (s) { return s.trim(); }))
|
3462 | .filter(( |
3463 |
|
3464 |
|
3465 |
|
3466 | function (s) { return s !== ''; }));
|
3467 | });
|
3468 |
|
3469 | var destroyView = ( |
3470 |
|
3471 |
|
3472 |
|
3473 | function (view) {
|
3474 | if (view) {
|
3475 |
|
3476 | view.ref.destroy();
|
3477 | view.unlistenEvents();
|
3478 | }
|
3479 | });
|
3480 |
|
3481 |
|
3482 |
|
3483 |
|
3484 |
|
3485 | var StackController = (function () {
|
3486 | function StackController(tabsPrefix, containerEl, router, navCtrl, zone, location) {
|
3487 | this.containerEl = containerEl;
|
3488 | this.router = router;
|
3489 | this.navCtrl = navCtrl;
|
3490 | this.zone = zone;
|
3491 | this.location = location;
|
3492 | this.views = [];
|
3493 | this.skipTransition = false;
|
3494 | this.nextId = 0;
|
3495 | this.tabsPrefix = tabsPrefix !== undefined ? toSegments(tabsPrefix) : undefined;
|
3496 | }
|
3497 | |
3498 |
|
3499 |
|
3500 |
|
3501 |
|
3502 | StackController.prototype.createView = |
3503 |
|
3504 |
|
3505 |
|
3506 |
|
3507 | function (ref, activatedRoute) {
|
3508 |
|
3509 | var url = getUrl(this.router, activatedRoute);
|
3510 |
|
3511 | var element = ( ((ref && ref.location && ref.location.nativeElement)));
|
3512 |
|
3513 | var unlistenEvents = bindLifecycleEvents(this.zone, ref.instance, element);
|
3514 | return {
|
3515 | id: this.nextId++,
|
3516 | stackId: computeStackId(this.tabsPrefix, url),
|
3517 | unlistenEvents: unlistenEvents,
|
3518 | element: element,
|
3519 | ref: ref,
|
3520 | url: url,
|
3521 | };
|
3522 | };
|
3523 | |
3524 |
|
3525 |
|
3526 |
|
3527 | StackController.prototype.getExistingView = |
3528 |
|
3529 |
|
3530 |
|
3531 | function (activatedRoute) {
|
3532 |
|
3533 | var activatedUrlKey = getUrl(this.router, activatedRoute);
|
3534 |
|
3535 | var view = this.views.find(( |
3536 |
|
3537 |
|
3538 |
|
3539 | function (vw) { return vw.url === activatedUrlKey; }));
|
3540 | if (view) {
|
3541 | view.ref.changeDetectorRef.reattach();
|
3542 | }
|
3543 | return view;
|
3544 | };
|
3545 | |
3546 |
|
3547 |
|
3548 |
|
3549 | StackController.prototype.setActive = |
3550 |
|
3551 |
|
3552 |
|
3553 | function (enteringView) {
|
3554 | var _this = this;
|
3555 | var _a = this.navCtrl.consumeTransition(), direction = _a.direction, animation = _a.animation;
|
3556 |
|
3557 | var leavingView = this.activeView;
|
3558 |
|
3559 | var tabSwitch = isTabSwitch(enteringView, leavingView);
|
3560 | if (tabSwitch) {
|
3561 | direction = 'back';
|
3562 | animation = undefined;
|
3563 | }
|
3564 |
|
3565 | var viewsSnapshot = this.views.slice();
|
3566 |
|
3567 | var currentNavigation;
|
3568 |
|
3569 | var router = (( (this.router)));
|
3570 |
|
3571 | if (router.getCurrentNavigation) {
|
3572 | currentNavigation = router.getCurrentNavigation();
|
3573 |
|
3574 | }
|
3575 | else if (router.navigations &&
|
3576 | router.navigations.value) {
|
3577 | currentNavigation = router.navigations.value;
|
3578 | }
|
3579 | |
3580 |
|
3581 |
|
3582 |
|
3583 |
|
3584 |
|
3585 |
|
3586 | if (currentNavigation &&
|
3587 | currentNavigation.extras &&
|
3588 | currentNavigation.extras.replaceUrl) {
|
3589 | if (this.views.length > 0) {
|
3590 | this.views.splice(-1, 1);
|
3591 | }
|
3592 | }
|
3593 |
|
3594 | var reused = this.views.includes(enteringView);
|
3595 |
|
3596 | var views = this.insertView(enteringView, direction);
|
3597 |
|
3598 |
|
3599 |
|
3600 | if (!reused) {
|
3601 | enteringView.ref.changeDetectorRef.detectChanges();
|
3602 | }
|
3603 |
|
3604 | return this.zone.runOutsideAngular(( |
3605 |
|
3606 |
|
3607 | function () {
|
3608 | return _this.wait(( |
3609 |
|
3610 |
|
3611 | function () {
|
3612 |
|
3613 |
|
3614 | if (leavingView) {
|
3615 | leavingView.ref.changeDetectorRef.detach();
|
3616 | }
|
3617 |
|
3618 | enteringView.ref.changeDetectorRef.reattach();
|
3619 | return _this.transition(enteringView, leavingView, animation, _this.canGoBack(1), false)
|
3620 | .then(( |
3621 |
|
3622 |
|
3623 | function () { return cleanupAsync(enteringView, views, viewsSnapshot, _this.location); }))
|
3624 | .then(( |
3625 |
|
3626 |
|
3627 | function () { return ({
|
3628 | enteringView: enteringView,
|
3629 | direction: direction,
|
3630 | animation: animation,
|
3631 | tabSwitch: tabSwitch
|
3632 | }); }));
|
3633 | }));
|
3634 | }));
|
3635 | };
|
3636 | |
3637 |
|
3638 |
|
3639 |
|
3640 |
|
3641 | StackController.prototype.canGoBack = |
3642 |
|
3643 |
|
3644 |
|
3645 |
|
3646 | function (deep, stackId) {
|
3647 | if (stackId === void 0) { stackId = this.getActiveStackId(); }
|
3648 | return this.getStack(stackId).length > deep;
|
3649 | };
|
3650 | |
3651 |
|
3652 |
|
3653 |
|
3654 |
|
3655 | StackController.prototype.pop = |
3656 |
|
3657 |
|
3658 |
|
3659 |
|
3660 | function (deep, stackId) {
|
3661 | var _this = this;
|
3662 | if (stackId === void 0) { stackId = this.getActiveStackId(); }
|
3663 | return this.zone.run(( |
3664 |
|
3665 |
|
3666 | function () {
|
3667 |
|
3668 | var views = _this.getStack(stackId);
|
3669 | if (views.length <= deep) {
|
3670 | return Promise.resolve(false);
|
3671 | }
|
3672 |
|
3673 | var view = views[views.length - deep - 1];
|
3674 |
|
3675 | var url = view.url;
|
3676 |
|
3677 | var viewSavedData = view.savedData;
|
3678 | if (viewSavedData) {
|
3679 |
|
3680 | var primaryOutlet = viewSavedData.get('primary');
|
3681 | if (primaryOutlet &&
|
3682 | primaryOutlet.route &&
|
3683 | primaryOutlet.route._routerState &&
|
3684 | primaryOutlet.route._routerState.snapshot &&
|
3685 | primaryOutlet.route._routerState.snapshot.url) {
|
3686 | url = primaryOutlet.route._routerState.snapshot.url;
|
3687 | }
|
3688 | }
|
3689 | return _this.navCtrl.navigateBack(url, view.savedExtras).then(( |
3690 |
|
3691 |
|
3692 | function () { return true; }));
|
3693 | }));
|
3694 | };
|
3695 | |
3696 |
|
3697 |
|
3698 | StackController.prototype.startBackTransition = |
3699 |
|
3700 |
|
3701 | function () {
|
3702 | var _this = this;
|
3703 |
|
3704 | var leavingView = this.activeView;
|
3705 | if (leavingView) {
|
3706 |
|
3707 | var views = this.getStack(leavingView.stackId);
|
3708 |
|
3709 | var enteringView_1 = views[views.length - 2];
|
3710 | return this.wait(( |
3711 |
|
3712 |
|
3713 | function () {
|
3714 | return _this.transition(enteringView_1,
|
3715 | leavingView,
|
3716 | 'back', _this.canGoBack(2), true);
|
3717 | }));
|
3718 | }
|
3719 | return Promise.resolve();
|
3720 | };
|
3721 | |
3722 |
|
3723 |
|
3724 |
|
3725 | StackController.prototype.endBackTransition = |
3726 |
|
3727 |
|
3728 |
|
3729 | function (shouldComplete) {
|
3730 | if (shouldComplete) {
|
3731 | this.skipTransition = true;
|
3732 | this.pop(1);
|
3733 | }
|
3734 | else if (this.activeView) {
|
3735 | cleanup(this.activeView, this.views, this.views, this.location);
|
3736 | }
|
3737 | };
|
3738 | |
3739 |
|
3740 |
|
3741 |
|
3742 | StackController.prototype.getLastUrl = |
3743 |
|
3744 |
|
3745 |
|
3746 | function (stackId) {
|
3747 |
|
3748 | var views = this.getStack(stackId);
|
3749 | return views.length > 0 ? views[views.length - 1] : undefined;
|
3750 | };
|
3751 | |
3752 |
|
3753 |
|
3754 | StackController.prototype.getActiveStackId = |
3755 |
|
3756 |
|
3757 | function () {
|
3758 | return this.activeView ? this.activeView.stackId : undefined;
|
3759 | };
|
3760 | |
3761 |
|
3762 |
|
3763 | StackController.prototype.destroy = |
3764 |
|
3765 |
|
3766 | function () {
|
3767 | this.containerEl = ( (undefined));
|
3768 | this.views.forEach(destroyView);
|
3769 | this.activeView = undefined;
|
3770 | this.views = [];
|
3771 | };
|
3772 | |
3773 |
|
3774 |
|
3775 |
|
3776 |
|
3777 | StackController.prototype.getStack = |
3778 |
|
3779 |
|
3780 |
|
3781 |
|
3782 | function (stackId) {
|
3783 | return this.views.filter(( |
3784 |
|
3785 |
|
3786 |
|
3787 | function (v) { return v.stackId === stackId; }));
|
3788 | };
|
3789 | |
3790 |
|
3791 |
|
3792 |
|
3793 |
|
3794 |
|
3795 | StackController.prototype.insertView = |
3796 |
|
3797 |
|
3798 |
|
3799 |
|
3800 |
|
3801 | function (enteringView, direction) {
|
3802 | this.activeView = enteringView;
|
3803 | this.views = insertView(this.views, enteringView, direction);
|
3804 | return this.views.slice();
|
3805 | };
|
3806 | |
3807 |
|
3808 |
|
3809 |
|
3810 |
|
3811 |
|
3812 |
|
3813 |
|
3814 |
|
3815 | StackController.prototype.transition = |
3816 |
|
3817 |
|
3818 |
|
3819 |
|
3820 |
|
3821 |
|
3822 |
|
3823 |
|
3824 | function (enteringView, leavingView, direction, showGoBack, progressAnimation) {
|
3825 | if (this.skipTransition) {
|
3826 | this.skipTransition = false;
|
3827 | return Promise.resolve(false);
|
3828 | }
|
3829 | if (leavingView === enteringView) {
|
3830 | return Promise.resolve(false);
|
3831 | }
|
3832 |
|
3833 | var enteringEl = enteringView ? enteringView.element : undefined;
|
3834 |
|
3835 | var leavingEl = leavingView ? leavingView.element : undefined;
|
3836 |
|
3837 | var containerEl = this.containerEl;
|
3838 | if (enteringEl && enteringEl !== leavingEl) {
|
3839 | enteringEl.classList.add('ion-page');
|
3840 | enteringEl.classList.add('ion-page-invisible');
|
3841 | if (enteringEl.parentElement !== containerEl) {
|
3842 | containerEl.appendChild(enteringEl);
|
3843 | }
|
3844 | if ((( (containerEl))).commit) {
|
3845 | return containerEl.commit(enteringEl, leavingEl, {
|
3846 | deepWait: true,
|
3847 | duration: direction === undefined ? 0 : undefined,
|
3848 | direction: direction,
|
3849 | showGoBack: showGoBack,
|
3850 | progressAnimation: progressAnimation
|
3851 | });
|
3852 | }
|
3853 | }
|
3854 | return Promise.resolve(false);
|
3855 | };
|
3856 | |
3857 |
|
3858 |
|
3859 |
|
3860 |
|
3861 |
|
3862 | StackController.prototype.wait = |
3863 |
|
3864 |
|
3865 |
|
3866 |
|
3867 |
|
3868 | function (task) {
|
3869 | return __awaiter(this, void 0, void 0, function () {
|
3870 | var promise;
|
3871 | return __generator(this, function (_a) {
|
3872 | switch (_a.label) {
|
3873 | case 0:
|
3874 | if (!(this.runningTask !== undefined)) return [3 , 2];
|
3875 | return [4 , this.runningTask];
|
3876 | case 1:
|
3877 | _a.sent();
|
3878 | this.runningTask = undefined;
|
3879 | _a.label = 2;
|
3880 | case 2:
|
3881 | promise = this.runningTask = task();
|
3882 | return [2 , promise];
|
3883 | }
|
3884 | });
|
3885 | });
|
3886 | };
|
3887 | return StackController;
|
3888 | }());
|
3889 |
|
3890 | var cleanupAsync = ( |
3891 |
|
3892 |
|
3893 |
|
3894 |
|
3895 |
|
3896 |
|
3897 | function (activeRoute, views, viewsSnapshot, location) {
|
3898 | if (typeof (( (requestAnimationFrame))) === 'function') {
|
3899 | return new Promise(( |
3900 |
|
3901 |
|
3902 |
|
3903 | function (resolve) {
|
3904 | requestAnimationFrame(( |
3905 |
|
3906 |
|
3907 | function () {
|
3908 | cleanup(activeRoute, views, viewsSnapshot, location);
|
3909 | resolve();
|
3910 | }));
|
3911 | }));
|
3912 | }
|
3913 | return Promise.resolve();
|
3914 | });
|
3915 |
|
3916 | var cleanup = ( |
3917 |
|
3918 |
|
3919 |
|
3920 |
|
3921 |
|
3922 |
|
3923 | function (activeRoute, views, viewsSnapshot, location) {
|
3924 | viewsSnapshot
|
3925 | .filter(( |
3926 |
|
3927 |
|
3928 |
|
3929 | function (view) { return !views.includes(view); }))
|
3930 | .forEach(destroyView);
|
3931 | views.forEach(( |
3932 |
|
3933 |
|
3934 |
|
3935 | function (view) {
|
3936 | |
3937 |
|
3938 |
|
3939 |
|
3940 |
|
3941 |
|
3942 |
|
3943 |
|
3944 |
|
3945 |
|
3946 | var locationWithoutParams = location.path().split('?')[0];
|
3947 |
|
3948 | var locationWithoutFragment = locationWithoutParams.split('#')[0];
|
3949 | if (view !== activeRoute && view.url !== locationWithoutFragment) {
|
3950 |
|
3951 | var element = view.element;
|
3952 | element.setAttribute('aria-hidden', 'true');
|
3953 | element.classList.add('ion-page-hidden');
|
3954 | view.ref.changeDetectorRef.detach();
|
3955 | }
|
3956 | }));
|
3957 | });
|
3958 |
|
3959 |
|
3960 |
|
3961 |
|
3962 |
|
3963 | var IonRouterOutlet = (function () {
|
3964 | function IonRouterOutlet(parentContexts, location, resolver, name, tabs, config, navCtrl, commonLocation, elementRef, router, zone, activatedRoute, parentOutlet) {
|
3965 | this.parentContexts = parentContexts;
|
3966 | this.location = location;
|
3967 | this.resolver = resolver;
|
3968 | this.config = config;
|
3969 | this.navCtrl = navCtrl;
|
3970 | this.parentOutlet = parentOutlet;
|
3971 | this.activated = null;
|
3972 | this.activatedView = null;
|
3973 | this._activatedRoute = null;
|
3974 |
|
3975 | this.proxyMap = new WeakMap();
|
3976 |
|
3977 | this.currentActivatedRoute$ = new BehaviorSubject(null);
|
3978 | this.stackEvents = new EventEmitter();
|
3979 | this.activateEvents = new EventEmitter();
|
3980 | this.deactivateEvents = new EventEmitter();
|
3981 | this.nativeEl = elementRef.nativeElement;
|
3982 | this.name = name || PRIMARY_OUTLET;
|
3983 | this.tabsPrefix = tabs === 'true' ? getUrl(router, activatedRoute) : undefined;
|
3984 | this.stackCtrl = new StackController(this.tabsPrefix, this.nativeEl, router, navCtrl, zone, commonLocation);
|
3985 | parentContexts.onChildOutletCreated(this.name, ( (this)));
|
3986 | }
|
3987 | Object.defineProperty(IonRouterOutlet.prototype, "animated", {
|
3988 | set: /**
|
3989 | * @param {?} animated
|
3990 | * @return {?}
|
3991 | */
|
3992 | function (animated) {
|
3993 | this.nativeEl.animated = animated;
|
3994 | },
|
3995 | enumerable: true,
|
3996 | configurable: true
|
3997 | });
|
3998 | Object.defineProperty(IonRouterOutlet.prototype, "swipeGesture", {
|
3999 | set: /**
|
4000 | * @param {?} swipe
|
4001 | * @return {?}
|
4002 | */
|
4003 | function (swipe) {
|
4004 | var _this = this;
|
4005 | this._swipeGesture = swipe;
|
4006 | this.nativeEl.swipeHandler = swipe ? {
|
4007 | canStart: ( |
4008 |
|
4009 |
|
4010 | function () { return _this.stackCtrl.canGoBack(1); }),
|
4011 | onStart: ( |
4012 |
|
4013 |
|
4014 | function () { return _this.stackCtrl.startBackTransition(); }),
|
4015 | onEnd: ( |
4016 |
|
4017 |
|
4018 |
|
4019 | function (shouldContinue) { return _this.stackCtrl.endBackTransition(shouldContinue); })
|
4020 | } : undefined;
|
4021 | },
|
4022 | enumerable: true,
|
4023 | configurable: true
|
4024 | });
|
4025 | |
4026 |
|
4027 |
|
4028 | IonRouterOutlet.prototype.ngOnDestroy = |
4029 |
|
4030 |
|
4031 | function () {
|
4032 | this.stackCtrl.destroy();
|
4033 | };
|
4034 | |
4035 |
|
4036 |
|
4037 | IonRouterOutlet.prototype.getContext = |
4038 |
|
4039 |
|
4040 | function () {
|
4041 | return this.parentContexts.getContext(this.name);
|
4042 | };
|
4043 | |
4044 |
|
4045 |
|
4046 | IonRouterOutlet.prototype.ngOnInit = |
4047 |
|
4048 |
|
4049 | function () {
|
4050 | var _this = this;
|
4051 | if (!this.activated) {
|
4052 |
|
4053 |
|
4054 |
|
4055 | var context = this.getContext();
|
4056 | if (context && context.route) {
|
4057 | this.activateWith(context.route, context.resolver || null);
|
4058 | }
|
4059 | }
|
4060 | if ((( (this.nativeEl))).componentOnReady) {
|
4061 | this.nativeEl.componentOnReady().then(( |
4062 |
|
4063 |
|
4064 | function () {
|
4065 | if (_this._swipeGesture === undefined) {
|
4066 | _this.swipeGesture = _this.config.getBoolean('swipeBackEnabled', (( (_this.nativeEl))).mode === 'ios');
|
4067 | }
|
4068 | }));
|
4069 | }
|
4070 | };
|
4071 | Object.defineProperty(IonRouterOutlet.prototype, "isActivated", {
|
4072 | get: /**
|
4073 | * @return {?}
|
4074 | */
|
4075 | function () {
|
4076 | return !!this.activated;
|
4077 | },
|
4078 | enumerable: true,
|
4079 | configurable: true
|
4080 | });
|
4081 | Object.defineProperty(IonRouterOutlet.prototype, "component", {
|
4082 | get: /**
|
4083 | * @return {?}
|
4084 | */
|
4085 | function () {
|
4086 | if (!this.activated) {
|
4087 | throw new Error('Outlet is not activated');
|
4088 | }
|
4089 | return this.activated.instance;
|
4090 | },
|
4091 | enumerable: true,
|
4092 | configurable: true
|
4093 | });
|
4094 | Object.defineProperty(IonRouterOutlet.prototype, "activatedRoute", {
|
4095 | get: /**
|
4096 | * @return {?}
|
4097 | */
|
4098 | function () {
|
4099 | if (!this.activated) {
|
4100 | throw new Error('Outlet is not activated');
|
4101 | }
|
4102 | return ( (this._activatedRoute));
|
4103 | },
|
4104 | enumerable: true,
|
4105 | configurable: true
|
4106 | });
|
4107 | Object.defineProperty(IonRouterOutlet.prototype, "activatedRouteData", {
|
4108 | get: /**
|
4109 | * @return {?}
|
4110 | */
|
4111 | function () {
|
4112 | if (this._activatedRoute) {
|
4113 | return this._activatedRoute.snapshot.data;
|
4114 | }
|
4115 | return {};
|
4116 | },
|
4117 | enumerable: true,
|
4118 | configurable: true
|
4119 | });
|
4120 | |
4121 |
|
4122 |
|
4123 | |
4124 |
|
4125 |
|
4126 |
|
4127 | IonRouterOutlet.prototype.detach = |
4128 |
|
4129 |
|
4130 |
|
4131 | function () {
|
4132 | throw new Error('incompatible reuse strategy');
|
4133 | };
|
4134 | |
4135 |
|
4136 |
|
4137 | |
4138 |
|
4139 |
|
4140 |
|
4141 |
|
4142 |
|
4143 | IonRouterOutlet.prototype.attach = |
4144 |
|
4145 |
|
4146 |
|
4147 |
|
4148 |
|
4149 | function (_ref, _activatedRoute) {
|
4150 | throw new Error('incompatible reuse strategy');
|
4151 | };
|
4152 | |
4153 |
|
4154 |
|
4155 | IonRouterOutlet.prototype.deactivate = |
4156 |
|
4157 |
|
4158 | function () {
|
4159 | if (this.activated) {
|
4160 | if (this.activatedView) {
|
4161 | this.activatedView.savedData = new Map(( (this.getContext())).children['contexts']);
|
4162 | |
4163 |
|
4164 |
|
4165 |
|
4166 | this.activatedView.savedExtras = {};
|
4167 |
|
4168 | var context = ( (this.getContext()));
|
4169 | if (context.route) {
|
4170 |
|
4171 | var contextSnapshot = context.route.snapshot;
|
4172 | this.activatedView.savedExtras.queryParams = contextSnapshot.queryParams;
|
4173 | this.activatedView.savedExtras.fragment = contextSnapshot.fragment;
|
4174 | }
|
4175 | }
|
4176 |
|
4177 | var c = this.component;
|
4178 | this.activatedView = null;
|
4179 | this.activated = null;
|
4180 | this._activatedRoute = null;
|
4181 | this.deactivateEvents.emit(c);
|
4182 | }
|
4183 | };
|
4184 | |
4185 |
|
4186 |
|
4187 |
|
4188 |
|
4189 | IonRouterOutlet.prototype.activateWith = |
4190 |
|
4191 |
|
4192 |
|
4193 |
|
4194 | function (activatedRoute, resolver) {
|
4195 | var _this = this;
|
4196 | if (this.isActivated) {
|
4197 | throw new Error('Cannot activate an already activated outlet');
|
4198 | }
|
4199 | this._activatedRoute = activatedRoute;
|
4200 |
|
4201 | var cmpRef;
|
4202 |
|
4203 | var enteringView = this.stackCtrl.getExistingView(activatedRoute);
|
4204 | if (enteringView) {
|
4205 | cmpRef = this.activated = enteringView.ref;
|
4206 |
|
4207 | var saved = enteringView.savedData;
|
4208 | if (saved) {
|
4209 |
|
4210 |
|
4211 | var context = ( (this.getContext()));
|
4212 | context.children['contexts'] = saved;
|
4213 | }
|
4214 |
|
4215 | this.updateActivatedRouteProxy(cmpRef.instance, activatedRoute);
|
4216 | }
|
4217 | else {
|
4218 |
|
4219 | var snapshot = (( (activatedRoute)))._futureSnapshot;
|
4220 |
|
4221 | var component = ( (( (snapshot.routeConfig)).component));
|
4222 | resolver = resolver || this.resolver;
|
4223 |
|
4224 | var factory = resolver.resolveComponentFactory(component);
|
4225 |
|
4226 | var childContexts = this.parentContexts.getOrCreateContext(this.name).children;
|
4227 |
|
4228 |
|
4229 |
|
4230 | var component$ = new BehaviorSubject(null);
|
4231 |
|
4232 | var activatedRouteProxy = this.createActivatedRouteProxy(component$, activatedRoute);
|
4233 |
|
4234 | var injector = new OutletInjector(activatedRouteProxy, childContexts, this.location.injector);
|
4235 | cmpRef = this.activated = this.location.createComponent(factory, this.location.length, injector);
|
4236 |
|
4237 | component$.next(cmpRef.instance);
|
4238 |
|
4239 |
|
4240 | enteringView = this.stackCtrl.createView(this.activated, activatedRoute);
|
4241 |
|
4242 | this.proxyMap.set(cmpRef.instance, activatedRouteProxy);
|
4243 | this.currentActivatedRoute$.next({ component: cmpRef.instance, activatedRoute: activatedRoute });
|
4244 | }
|
4245 | this.activatedView = enteringView;
|
4246 | this.stackCtrl.setActive(enteringView).then(( |
4247 |
|
4248 |
|
4249 |
|
4250 | function (data) {
|
4251 | _this.navCtrl.setTopOutlet(_this);
|
4252 | _this.activateEvents.emit(cmpRef.instance);
|
4253 | _this.stackEvents.emit(data);
|
4254 | }));
|
4255 | };
|
4256 | |
4257 |
|
4258 |
|
4259 | |
4260 |
|
4261 |
|
4262 |
|
4263 |
|
4264 |
|
4265 | IonRouterOutlet.prototype.canGoBack = |
4266 |
|
4267 |
|
4268 |
|
4269 |
|
4270 |
|
4271 | function (deep, stackId) {
|
4272 | if (deep === void 0) { deep = 1; }
|
4273 | return this.stackCtrl.canGoBack(deep, stackId);
|
4274 | };
|
4275 | |
4276 |
|
4277 |
|
4278 | |
4279 |
|
4280 |
|
4281 |
|
4282 |
|
4283 |
|
4284 | IonRouterOutlet.prototype.pop = |
4285 |
|
4286 |
|
4287 |
|
4288 |
|
4289 |
|
4290 | function (deep, stackId) {
|
4291 | if (deep === void 0) { deep = 1; }
|
4292 | return this.stackCtrl.pop(deep, stackId);
|
4293 | };
|
4294 | |
4295 |
|
4296 |
|
4297 | |
4298 |
|
4299 |
|
4300 |
|
4301 |
|
4302 | IonRouterOutlet.prototype.getLastUrl = |
4303 |
|
4304 |
|
4305 |
|
4306 |
|
4307 | function (stackId) {
|
4308 |
|
4309 | var active = this.stackCtrl.getLastUrl(stackId);
|
4310 | return active ? active.url : undefined;
|
4311 | };
|
4312 | |
4313 |
|
4314 |
|
4315 | |
4316 |
|
4317 |
|
4318 |
|
4319 | IonRouterOutlet.prototype.getActiveStackId = |
4320 |
|
4321 |
|
4322 |
|
4323 | function () {
|
4324 | return this.stackCtrl.getActiveStackId();
|
4325 | };
|
4326 | |
4327 |
|
4328 |
|
4329 |
|
4330 | |
4331 |
|
4332 |
|
4333 |
|
4334 |
|
4335 |
|
4336 |
|
4337 |
|
4338 | IonRouterOutlet.prototype.createActivatedRouteProxy = |
4339 |
|
4340 |
|
4341 |
|
4342 |
|
4343 |
|
4344 |
|
4345 |
|
4346 | function (component$, activatedRoute) {
|
4347 |
|
4348 | var proxy = new ActivatedRoute();
|
4349 | proxy._futureSnapshot = (( (activatedRoute)))._futureSnapshot;
|
4350 | proxy._routerState = (( (activatedRoute)))._routerState;
|
4351 | proxy.snapshot = activatedRoute.snapshot;
|
4352 | proxy.outlet = activatedRoute.outlet;
|
4353 | proxy.component = activatedRoute.component;
|
4354 |
|
4355 | (( (proxy)))._paramMap = this.proxyObservable(component$, 'paramMap');
|
4356 | (( (proxy)))._queryParamMap = this.proxyObservable(component$, 'queryParamMap');
|
4357 | proxy.url = this.proxyObservable(component$, 'url');
|
4358 | proxy.params = this.proxyObservable(component$, 'params');
|
4359 | proxy.queryParams = this.proxyObservable(component$, 'queryParams');
|
4360 | proxy.fragment = this.proxyObservable(component$, 'fragment');
|
4361 | proxy.data = this.proxyObservable(component$, 'data');
|
4362 | return ( (proxy));
|
4363 | };
|
4364 | |
4365 |
|
4366 |
|
4367 | |
4368 |
|
4369 |
|
4370 |
|
4371 |
|
4372 |
|
4373 |
|
4374 | IonRouterOutlet.prototype.proxyObservable = |
4375 |
|
4376 |
|
4377 |
|
4378 |
|
4379 |
|
4380 |
|
4381 | function (component$, path) {
|
4382 | var _this = this;
|
4383 | return component$.pipe(
|
4384 |
|
4385 | filter(( |
4386 |
|
4387 |
|
4388 |
|
4389 | function (component) { return !!component; })), switchMap(( |
4390 |
|
4391 |
|
4392 |
|
4393 | function (component) {
|
4394 | return _this.currentActivatedRoute$.pipe(filter(( |
4395 |
|
4396 |
|
4397 |
|
4398 | function (current) { return current !== null && current.component === component; })), switchMap(( |
4399 |
|
4400 |
|
4401 |
|
4402 | function (current) { return current && (( (current.activatedRoute)))[path]; })), distinctUntilChanged());
|
4403 | })));
|
4404 | };
|
4405 | |
4406 |
|
4407 |
|
4408 | |
4409 |
|
4410 |
|
4411 |
|
4412 |
|
4413 |
|
4414 |
|
4415 | IonRouterOutlet.prototype.updateActivatedRouteProxy = |
4416 |
|
4417 |
|
4418 |
|
4419 |
|
4420 |
|
4421 |
|
4422 | function (component, activatedRoute) {
|
4423 |
|
4424 | var proxy = this.proxyMap.get(component);
|
4425 | if (!proxy) {
|
4426 | throw new Error("Could not find activated route proxy for view");
|
4427 | }
|
4428 | (( (proxy)))._futureSnapshot = (( (activatedRoute)))._futureSnapshot;
|
4429 | (( (proxy)))._routerState = (( (activatedRoute)))._routerState;
|
4430 | proxy.snapshot = activatedRoute.snapshot;
|
4431 | proxy.outlet = activatedRoute.outlet;
|
4432 | proxy.component = activatedRoute.component;
|
4433 | this.currentActivatedRoute$.next({ component: component, activatedRoute: activatedRoute });
|
4434 | };
|
4435 | IonRouterOutlet.decorators = [
|
4436 | { type: Directive, args: [{
|
4437 | selector: 'ion-router-outlet',
|
4438 | exportAs: 'outlet',
|
4439 | inputs: ['animated', 'swipeGesture']
|
4440 | },] },
|
4441 | ];
|
4442 |
|
4443 | IonRouterOutlet.ctorParameters = function () { return [
|
4444 | { type: ChildrenOutletContexts },
|
4445 | { type: ViewContainerRef },
|
4446 | { type: ComponentFactoryResolver },
|
4447 | { type: String, decorators: [{ type: Attribute, args: ['name',] }] },
|
4448 | { type: String, decorators: [{ type: Optional }, { type: Attribute, args: ['tabs',] }] },
|
4449 | { type: Config },
|
4450 | { type: NavController },
|
4451 | { type: Location },
|
4452 | { type: ElementRef },
|
4453 | { type: Router },
|
4454 | { type: NgZone },
|
4455 | { type: ActivatedRoute },
|
4456 | { type: IonRouterOutlet, decorators: [{ type: SkipSelf }, { type: Optional }] }
|
4457 | ]; };
|
4458 | IonRouterOutlet.propDecorators = {
|
4459 | stackEvents: [{ type: Output }],
|
4460 | activateEvents: [{ type: Output, args: ['activate',] }],
|
4461 | deactivateEvents: [{ type: Output, args: ['deactivate',] }]
|
4462 | };
|
4463 | return IonRouterOutlet;
|
4464 | }());
|
4465 | var OutletInjector = (function () {
|
4466 | function OutletInjector(route, childContexts, parent) {
|
4467 | this.route = route;
|
4468 | this.childContexts = childContexts;
|
4469 | this.parent = parent;
|
4470 | }
|
4471 | |
4472 |
|
4473 |
|
4474 |
|
4475 |
|
4476 | OutletInjector.prototype.get = |
4477 |
|
4478 |
|
4479 |
|
4480 |
|
4481 | function (token, notFoundValue) {
|
4482 | if (token === ActivatedRoute) {
|
4483 | return this.route;
|
4484 | }
|
4485 | if (token === ChildrenOutletContexts) {
|
4486 | return this.childContexts;
|
4487 | }
|
4488 |
|
4489 | return this.parent.get(token, notFoundValue);
|
4490 | };
|
4491 | return OutletInjector;
|
4492 | }());
|
4493 |
|
4494 |
|
4495 |
|
4496 |
|
4497 |
|
4498 | var IonTabs = (function () {
|
4499 | function IonTabs(navCtrl) {
|
4500 | this.navCtrl = navCtrl;
|
4501 | this.ionTabsWillChange = new EventEmitter();
|
4502 | this.ionTabsDidChange = new EventEmitter();
|
4503 | }
|
4504 | |
4505 |
|
4506 |
|
4507 | |
4508 |
|
4509 |
|
4510 |
|
4511 |
|
4512 | IonTabs.prototype.onPageSelected = |
4513 |
|
4514 |
|
4515 |
|
4516 |
|
4517 | function (detail) {
|
4518 |
|
4519 | var stackId = detail.enteringView.stackId;
|
4520 | if (detail.tabSwitch && stackId !== undefined) {
|
4521 | if (this.tabBar) {
|
4522 | this.tabBar.selectedTab = stackId;
|
4523 | }
|
4524 | this.ionTabsWillChange.emit({ tab: stackId });
|
4525 | this.ionTabsDidChange.emit({ tab: stackId });
|
4526 | }
|
4527 | };
|
4528 | |
4529 |
|
4530 |
|
4531 |
|
4532 | IonTabs.prototype.select = |
4533 |
|
4534 |
|
4535 |
|
4536 | function (tab) {
|
4537 |
|
4538 | var alreadySelected = this.outlet.getActiveStackId() === tab;
|
4539 |
|
4540 | var href = this.outlet.tabsPrefix + "/" + tab;
|
4541 |
|
4542 | var url = alreadySelected
|
4543 | ? href
|
4544 | : this.outlet.getLastUrl(tab) || href;
|
4545 | return this.navCtrl.navigateRoot(url, {
|
4546 | animated: true,
|
4547 | animationDirection: 'back'
|
4548 | });
|
4549 | };
|
4550 | |
4551 |
|
4552 |
|
4553 | IonTabs.prototype.getSelected = |
4554 |
|
4555 |
|
4556 | function () {
|
4557 | return this.outlet.getActiveStackId();
|
4558 | };
|
4559 | IonTabs.decorators = [
|
4560 | { type: Component, args: [{
|
4561 | selector: 'ion-tabs',
|
4562 | template: "\n <ng-content select=\"[slot=top]\"></ng-content>\n <div class=\"tabs-inner\">\n <ion-router-outlet #outlet tabs=\"true\" (stackEvents)=\"onPageSelected($event)\"></ion-router-outlet>\n </div>\n <ng-content></ng-content>",
|
4563 | styles: ["\n :host {\n display: flex;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n\n flex-direction: column;\n\n width: 100%;\n height: 100%;\n\n contain: layout size style;\n z-index: $z-index-page-container;\n }\n .tabs-inner {\n position: relative;\n\n flex: 1;\n\n contain: layout size style;\n }"
|
4564 | ]
|
4565 | },] },
|
4566 | ];
|
4567 |
|
4568 | IonTabs.ctorParameters = function () { return [
|
4569 | { type: NavController }
|
4570 | ]; };
|
4571 | IonTabs.propDecorators = {
|
4572 | outlet: [{ type: ViewChild, args: ['outlet', { read: IonRouterOutlet },] }],
|
4573 | tabBar: [{ type: ContentChild, args: [IonTabBar,] }],
|
4574 | ionTabsWillChange: [{ type: Output }],
|
4575 | ionTabsDidChange: [{ type: Output }],
|
4576 | select: [{ type: HostListener, args: ['ionTabButtonClick', ['$event.detail.tab'],] }]
|
4577 | };
|
4578 | return IonTabs;
|
4579 | }());
|
4580 |
|
4581 |
|
4582 |
|
4583 |
|
4584 |
|
4585 | var IonBackButtonDelegate = (function () {
|
4586 | function IonBackButtonDelegate(routerOutlet, navCtrl) {
|
4587 | this.routerOutlet = routerOutlet;
|
4588 | this.navCtrl = navCtrl;
|
4589 | }
|
4590 | |
4591 |
|
4592 |
|
4593 | |
4594 |
|
4595 |
|
4596 |
|
4597 |
|
4598 | IonBackButtonDelegate.prototype.onClick = |
4599 |
|
4600 |
|
4601 |
|
4602 |
|
4603 | function (ev) {
|
4604 | if (this.routerOutlet && this.routerOutlet.canGoBack()) {
|
4605 | this.routerOutlet.pop();
|
4606 | ev.preventDefault();
|
4607 | }
|
4608 | else if (this.defaultHref != null) {
|
4609 | this.navCtrl.navigateBack(this.defaultHref);
|
4610 | ev.preventDefault();
|
4611 | }
|
4612 | };
|
4613 | IonBackButtonDelegate.decorators = [
|
4614 | { type: Directive, args: [{
|
4615 | selector: 'ion-back-button',
|
4616 | inputs: ['defaultHref']
|
4617 | },] },
|
4618 | ];
|
4619 |
|
4620 | IonBackButtonDelegate.ctorParameters = function () { return [
|
4621 | { type: IonRouterOutlet, decorators: [{ type: Optional }] },
|
4622 | { type: NavController }
|
4623 | ]; };
|
4624 | IonBackButtonDelegate.propDecorators = {
|
4625 | onClick: [{ type: HostListener, args: ['click', ['$event'],] }]
|
4626 | };
|
4627 | return IonBackButtonDelegate;
|
4628 | }());
|
4629 |
|
4630 |
|
4631 |
|
4632 |
|
4633 |
|
4634 | var NavDelegate = (function () {
|
4635 | function NavDelegate(ref, resolver, injector, angularDelegate, location) {
|
4636 | ref.nativeElement.delegate = angularDelegate.create(resolver, injector, location);
|
4637 | }
|
4638 | NavDelegate.decorators = [
|
4639 | { type: Directive, args: [{
|
4640 | selector: 'ion-nav',
|
4641 | },] },
|
4642 | ];
|
4643 |
|
4644 | NavDelegate.ctorParameters = function () { return [
|
4645 | { type: ElementRef },
|
4646 | { type: ComponentFactoryResolver },
|
4647 | { type: Injector },
|
4648 | { type: AngularDelegate },
|
4649 | { type: ViewContainerRef }
|
4650 | ]; };
|
4651 | return NavDelegate;
|
4652 | }());
|
4653 |
|
4654 |
|
4655 |
|
4656 |
|
4657 |
|
4658 | var RouterLinkDelegate = (function () {
|
4659 | function RouterLinkDelegate(locationStrategy, navCtrl, elementRef, router, routerLink) {
|
4660 | this.locationStrategy = locationStrategy;
|
4661 | this.navCtrl = navCtrl;
|
4662 | this.elementRef = elementRef;
|
4663 | this.router = router;
|
4664 | this.routerLink = routerLink;
|
4665 | this.routerDirection = 'forward';
|
4666 | }
|
4667 | |
4668 |
|
4669 |
|
4670 | RouterLinkDelegate.prototype.ngOnInit = |
4671 |
|
4672 |
|
4673 | function () {
|
4674 | this.updateTargetUrlAndHref();
|
4675 | };
|
4676 | |
4677 |
|
4678 |
|
4679 | RouterLinkDelegate.prototype.ngOnChanges = |
4680 |
|
4681 |
|
4682 | function () {
|
4683 | this.updateTargetUrlAndHref();
|
4684 | };
|
4685 | |
4686 |
|
4687 |
|
4688 | RouterLinkDelegate.prototype.ngOnDestroy = |
4689 |
|
4690 |
|
4691 | function () {
|
4692 | if (this.subscription) {
|
4693 | this.subscription.unsubscribe();
|
4694 | }
|
4695 | };
|
4696 | |
4697 |
|
4698 |
|
4699 |
|
4700 | RouterLinkDelegate.prototype.updateTargetUrlAndHref = |
4701 |
|
4702 |
|
4703 |
|
4704 | function () {
|
4705 | if (this.routerLink) {
|
4706 |
|
4707 | var href = this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));
|
4708 | this.elementRef.nativeElement.href = href;
|
4709 | }
|
4710 | };
|
4711 | |
4712 |
|
4713 |
|
4714 | |
4715 |
|
4716 |
|
4717 |
|
4718 |
|
4719 | RouterLinkDelegate.prototype.onClick = |
4720 |
|
4721 |
|
4722 |
|
4723 |
|
4724 | function (ev) {
|
4725 | this.navCtrl.setDirection(this.routerDirection);
|
4726 | ev.preventDefault();
|
4727 | };
|
4728 | RouterLinkDelegate.decorators = [
|
4729 | { type: Directive, args: [{
|
4730 | selector: '[routerLink]',
|
4731 | inputs: ['routerDirection']
|
4732 | },] },
|
4733 | ];
|
4734 |
|
4735 | RouterLinkDelegate.ctorParameters = function () { return [
|
4736 | { type: LocationStrategy },
|
4737 | { type: NavController },
|
4738 | { type: ElementRef },
|
4739 | { type: Router },
|
4740 | { type: RouterLink, decorators: [{ type: Optional }] }
|
4741 | ]; };
|
4742 | RouterLinkDelegate.propDecorators = {
|
4743 | onClick: [{ type: HostListener, args: ['click', ['$event'],] }]
|
4744 | };
|
4745 | return RouterLinkDelegate;
|
4746 | }());
|
4747 |
|
4748 |
|
4749 |
|
4750 |
|
4751 |
|
4752 |
|
4753 |
|
4754 |
|
4755 | var VirtualFooter = (function () {
|
4756 | function VirtualFooter(templateRef) {
|
4757 | this.templateRef = templateRef;
|
4758 | }
|
4759 | VirtualFooter.decorators = [
|
4760 | { type: Directive, args: [{ selector: '[virtualFooter]' },] },
|
4761 | ];
|
4762 |
|
4763 | VirtualFooter.ctorParameters = function () { return [
|
4764 | { type: TemplateRef }
|
4765 | ]; };
|
4766 | return VirtualFooter;
|
4767 | }());
|
4768 |
|
4769 |
|
4770 |
|
4771 |
|
4772 |
|
4773 |
|
4774 |
|
4775 |
|
4776 | var VirtualHeader = (function () {
|
4777 | function VirtualHeader(templateRef) {
|
4778 | this.templateRef = templateRef;
|
4779 | }
|
4780 | VirtualHeader.decorators = [
|
4781 | { type: Directive, args: [{ selector: '[virtualHeader]' },] },
|
4782 | ];
|
4783 |
|
4784 | VirtualHeader.ctorParameters = function () { return [
|
4785 | { type: TemplateRef }
|
4786 | ]; };
|
4787 | return VirtualHeader;
|
4788 | }());
|
4789 |
|
4790 |
|
4791 |
|
4792 |
|
4793 |
|
4794 |
|
4795 |
|
4796 |
|
4797 | var VirtualItem = (function () {
|
4798 | function VirtualItem(templateRef, viewContainer) {
|
4799 | this.templateRef = templateRef;
|
4800 | this.viewContainer = viewContainer;
|
4801 | }
|
4802 | VirtualItem.decorators = [
|
4803 | { type: Directive, args: [{ selector: '[virtualItem]' },] },
|
4804 | ];
|
4805 |
|
4806 | VirtualItem.ctorParameters = function () { return [
|
4807 | { type: TemplateRef },
|
4808 | { type: ViewContainerRef }
|
4809 | ]; };
|
4810 | return VirtualItem;
|
4811 | }());
|
4812 |
|
4813 |
|
4814 |
|
4815 |
|
4816 |
|
4817 | var IonVirtualScroll = (function () {
|
4818 | function IonVirtualScroll(z, iterableDiffers, elementRef) {
|
4819 | this.z = z;
|
4820 | this.iterableDiffers = iterableDiffers;
|
4821 | this.refMap = new WeakMap();
|
4822 | this.el = ( (elementRef.nativeElement));
|
4823 | this.el.nodeRender = this.nodeRender.bind(this);
|
4824 | }
|
4825 | |
4826 |
|
4827 |
|
4828 |
|
4829 | IonVirtualScroll.prototype.ngOnChanges = |
4830 |
|
4831 |
|
4832 |
|
4833 | function (changes) {
|
4834 | if (this.trackBy && 'items' in changes) {
|
4835 |
|
4836 |
|
4837 | var value = changes['items'].currentValue;
|
4838 | if (this.differ === undefined && value != null) {
|
4839 | try {
|
4840 | this.differ = this.iterableDiffers.find(value).create(this.trackBy);
|
4841 | }
|
4842 | catch (e) {
|
4843 | throw new Error("Cannot find a differ supporting object '" + value + "'. VirtualScroll only supports binding to Iterables such as Arrays.");
|
4844 | }
|
4845 | }
|
4846 | }
|
4847 | };
|
4848 | |
4849 |
|
4850 |
|
4851 | IonVirtualScroll.prototype.ngDoCheck = |
4852 |
|
4853 |
|
4854 | function () {
|
4855 |
|
4856 |
|
4857 | var changes = this.differ !== undefined && this.items ? this.differ.diff(this.items) : null;
|
4858 | if (changes === null) {
|
4859 | return;
|
4860 | }
|
4861 |
|
4862 | this.checkRange(0);
|
4863 | };
|
4864 | |
4865 |
|
4866 |
|
4867 |
|
4868 |
|
4869 |
|
4870 |
|
4871 | IonVirtualScroll.prototype.nodeRender = |
4872 |
|
4873 |
|
4874 |
|
4875 |
|
4876 |
|
4877 |
|
4878 | function (el, cell, index) {
|
4879 | var _this = this;
|
4880 | return this.z.run(( |
4881 |
|
4882 |
|
4883 | function () {
|
4884 |
|
4885 | var node;
|
4886 | if (!el) {
|
4887 | node = _this.itmTmp.viewContainer.createEmbeddedView(_this.getComponent(cell.type), { $implicit: cell.value, index: index }, index);
|
4888 | el = getElement(node);
|
4889 | _this.refMap.set(el, node);
|
4890 | }
|
4891 | else {
|
4892 | node = ( (_this.refMap.get(el)));
|
4893 |
|
4894 | var ctx = node.context;
|
4895 | ctx.$implicit = cell.value;
|
4896 | ctx.index = cell.index;
|
4897 | }
|
4898 |
|
4899 | node.detectChanges();
|
4900 | return el;
|
4901 | }));
|
4902 | };
|
4903 | |
4904 |
|
4905 |
|
4906 |
|
4907 |
|
4908 | IonVirtualScroll.prototype.getComponent = |
4909 |
|
4910 |
|
4911 |
|
4912 |
|
4913 | function (type) {
|
4914 | switch (type) {
|
4915 | case 'item': return this.itmTmp.templateRef;
|
4916 | case 'header': return this.hdrTmp.templateRef;
|
4917 | case 'footer': return this.ftrTmp.templateRef;
|
4918 | }
|
4919 | throw new Error('template for virtual item was not provided');
|
4920 | };
|
4921 | IonVirtualScroll.decorators = [
|
4922 | { type: Component, args: [{
|
4923 | selector: 'ion-virtual-scroll',
|
4924 | template: '<ng-content></ng-content>',
|
4925 | changeDetection: ChangeDetectionStrategy.OnPush,
|
4926 | inputs: [
|
4927 | 'approxItemHeight',
|
4928 | 'approxHeaderHeight',
|
4929 | 'approxFooterHeight',
|
4930 | 'headerFn',
|
4931 | 'footerFn',
|
4932 | 'items',
|
4933 | 'itemHeight',
|
4934 | 'headerHeight',
|
4935 | 'footerHeight',
|
4936 | 'trackBy'
|
4937 | ]
|
4938 | },] },
|
4939 | ];
|
4940 |
|
4941 | IonVirtualScroll.ctorParameters = function () { return [
|
4942 | { type: NgZone },
|
4943 | { type: IterableDiffers },
|
4944 | { type: ElementRef }
|
4945 | ]; };
|
4946 | IonVirtualScroll.propDecorators = {
|
4947 | itmTmp: [{ type: ContentChild, args: [VirtualItem,] }],
|
4948 | hdrTmp: [{ type: ContentChild, args: [VirtualHeader,] }],
|
4949 | ftrTmp: [{ type: ContentChild, args: [VirtualFooter,] }]
|
4950 | };
|
4951 | return IonVirtualScroll;
|
4952 | }());
|
4953 |
|
4954 | var getElement = ( |
4955 |
|
4956 |
|
4957 |
|
4958 | function (view) {
|
4959 |
|
4960 | var rootNodes = view.rootNodes;
|
4961 | for (var i = 0; i < rootNodes.length; i++) {
|
4962 | if (rootNodes[i].nodeType === 1) {
|
4963 | return rootNodes[i];
|
4964 | }
|
4965 | }
|
4966 | throw new Error('virtual element was not created');
|
4967 | });
|
4968 | proxyInputs(IonVirtualScroll, [
|
4969 | 'approxItemHeight',
|
4970 | 'approxHeaderHeight',
|
4971 | 'approxFooterHeight',
|
4972 | 'headerFn',
|
4973 | 'footerFn',
|
4974 | 'items',
|
4975 | 'itemHeight',
|
4976 | 'headerHeight',
|
4977 | 'footerHeight'
|
4978 | ]);
|
4979 | proxyMethods(IonVirtualScroll, [
|
4980 | 'checkEnd',
|
4981 | 'checkRange',
|
4982 | 'positionForItem'
|
4983 | ]);
|
4984 |
|
4985 |
|
4986 |
|
4987 |
|
4988 |
|
4989 | var CssUtilsDeprecations = (function () {
|
4990 | function CssUtilsDeprecations(ref) {
|
4991 |
|
4992 | var el = (( (ref.nativeElement)));
|
4993 |
|
4994 | var attributes = Array.from(el.attributes)
|
4995 | .map(( |
4996 |
|
4997 |
|
4998 |
|
4999 | function (a) { return a.name; }))
|
5000 | .filter(( |
5001 |
|
5002 |
|
5003 |
|
5004 | function (n) { return DEPRECATED_ATTRIBUTES.includes(n); }));
|
5005 | if (attributes.length > 0) {
|
5006 | console.warn("[DEPRECATED][CSS] Ionic CSS attributes are deprecated.\nReplace:\n'<" + el.tagName.toLowerCase() + " " + attributes.map(( |
5007 |
|
5008 |
|
5009 |
|
5010 | function (n) { return "" + n; })).join(' ') + ">'\n\nWith:\n'<" + el.tagName.toLowerCase() + " class=\"" + attributes.map(( |
5011 |
|
5012 |
|
5013 |
|
5014 | function (n) { return "ion-" + n; })).join(' ') + "\">'\n ");
|
5015 | }
|
5016 | }
|
5017 | CssUtilsDeprecations.decorators = [
|
5018 | { type: Directive, args: [{
|
5019 | selector: '[align-self-start], [align-self-end], [align-self-center], [align-self-stretch], [align-self-baseline], [align-self-auto], [wrap-reverse], [justify-content-start], [justify-content-center], [justify-content-end], [justify-content-around], [justify-content-between], [justify-content-evenly], [align-items-start], [align-items-center], [align-items-end], [align-items-stretch], [align-items-baseline], [float-left], [float-right], [float-start], [float-end], [float-sm-left], [float-sm-right], [float-sm-start], [float-sm-end], [float-md-left], [float-md-right], [float-md-start], [float-md-end], [float-lg-left], [float-lg-right], [float-lg-start], [float-lg-end], [float-xl-left], [float-xl-right], [float-xl-start], [float-xl-end], [text-center], [text-justify], [text-start], [text-end], [text-left], [text-right], [text-nowrap], [text-wrap], [text-sm-center], [text-sm-justify], [text-sm-start], [text-sm-end], [text-sm-left], [text-sm-right], [text-sm-nowrap], [text-sm-wrap], [text-md-center], [text-md-justify], [text-md-start], [text-md-end], [text-md-left], [text-md-right], [text-md-nowrap], [text-md-wrap], [text-lg-center], [text-lg-justify], [text-lg-start], [text-lg-end], [text-lg-left], [text-lg-right], [text-lg-nowrap], [text-lg-wrap], [text-xl-center], [text-xl-justify], [text-xl-start], [text-xl-end], [text-xl-left], [text-xl-right], [text-xl-nowrap], [text-xl-wrap], [text-uppercase], [text-lowercase], [text-capitalize], [text-sm-uppercase], [text-sm-lowercase], [text-sm-capitalize], [text-md-uppercase], [text-md-lowercase], [text-md-capitalize], [text-lg-uppercase], [text-lg-lowercase], [text-lg-capitalize], [text-xl-uppercase], [text-xl-lowercase], [text-xl-capitalize], [no-padding], [padding], [padding-top], [padding-bottom], [padding-start], [padding-end], [padding-vertical], [padding-horizontal], [no-margin], [margin], [margin-top], [margin-bottom], [margin-start], [margin-end], [margin-vertical], [margin-horizontal]',
|
5020 | },] },
|
5021 | ];
|
5022 |
|
5023 | CssUtilsDeprecations.ctorParameters = function () { return [
|
5024 | { type: ElementRef }
|
5025 | ]; };
|
5026 | return CssUtilsDeprecations;
|
5027 | }());
|
5028 |
|
5029 | var DEPRECATED_ATTRIBUTES = [
|
5030 | 'align-self-start',
|
5031 | 'align-self-end',
|
5032 | 'align-self-center',
|
5033 | 'align-self-stretch',
|
5034 | 'align-self-baseline',
|
5035 | 'align-self-auto',
|
5036 | 'wrap-reverse',
|
5037 | 'justify-content-start',
|
5038 | 'justify-content-center',
|
5039 | 'justify-content-end',
|
5040 | 'justify-content-around',
|
5041 | 'justify-content-between',
|
5042 | 'justify-content-evenly',
|
5043 | 'align-items-start',
|
5044 | 'align-items-center',
|
5045 | 'align-items-end',
|
5046 | 'align-items-stretch',
|
5047 | 'align-items-baseline',
|
5048 | 'float-left',
|
5049 | 'float-right',
|
5050 | 'float-start',
|
5051 | 'float-end',
|
5052 | 'float-sm-left',
|
5053 | 'float-sm-right',
|
5054 | 'float-sm-start',
|
5055 | 'float-sm-end',
|
5056 | 'float-md-left',
|
5057 | 'float-md-right',
|
5058 | 'float-md-start',
|
5059 | 'float-md-end',
|
5060 | 'float-lg-left',
|
5061 | 'float-lg-right',
|
5062 | 'float-lg-start',
|
5063 | 'float-lg-end',
|
5064 | 'float-xl-left',
|
5065 | 'float-xl-right',
|
5066 | 'float-xl-start',
|
5067 | 'float-xl-end',
|
5068 | 'text-center',
|
5069 | 'text-justify',
|
5070 | 'text-start',
|
5071 | 'text-end',
|
5072 | 'text-left',
|
5073 | 'text-right',
|
5074 | 'text-nowrap',
|
5075 | 'text-wrap',
|
5076 | 'text-sm-center',
|
5077 | 'text-sm-justify',
|
5078 | 'text-sm-start',
|
5079 | 'text-sm-end',
|
5080 | 'text-sm-left',
|
5081 | 'text-sm-right',
|
5082 | 'text-sm-nowrap',
|
5083 | 'text-sm-wrap',
|
5084 | 'text-md-center',
|
5085 | 'text-md-justify',
|
5086 | 'text-md-start',
|
5087 | 'text-md-end',
|
5088 | 'text-md-left',
|
5089 | 'text-md-right',
|
5090 | 'text-md-nowrap',
|
5091 | 'text-md-wrap',
|
5092 | 'text-lg-center',
|
5093 | 'text-lg-justify',
|
5094 | 'text-lg-start',
|
5095 | 'text-lg-end',
|
5096 | 'text-lg-left',
|
5097 | 'text-lg-right',
|
5098 | 'text-lg-nowrap',
|
5099 | 'text-lg-wrap',
|
5100 | 'text-xl-center',
|
5101 | 'text-xl-justify',
|
5102 | 'text-xl-start',
|
5103 | 'text-xl-end',
|
5104 | 'text-xl-left',
|
5105 | 'text-xl-right',
|
5106 | 'text-xl-nowrap',
|
5107 | 'text-xl-wrap',
|
5108 | 'text-uppercase',
|
5109 | 'text-lowercase',
|
5110 | 'text-capitalize',
|
5111 | 'text-sm-uppercase',
|
5112 | 'text-sm-lowercase',
|
5113 | 'text-sm-capitalize',
|
5114 | 'text-md-uppercase',
|
5115 | 'text-md-lowercase',
|
5116 | 'text-md-capitalize',
|
5117 | 'text-lg-uppercase',
|
5118 | 'text-lg-lowercase',
|
5119 | 'text-lg-capitalize',
|
5120 | 'text-xl-uppercase',
|
5121 | 'text-xl-lowercase',
|
5122 | 'text-xl-capitalize',
|
5123 | 'no-padding',
|
5124 | 'padding',
|
5125 | 'padding-top',
|
5126 | 'padding-bottom',
|
5127 | 'padding-start',
|
5128 | 'padding-end',
|
5129 | 'padding-vertical',
|
5130 | 'padding-horizontal',
|
5131 | 'no-margin',
|
5132 | 'margin',
|
5133 | 'margin-top',
|
5134 | 'margin-bottom',
|
5135 | 'margin-start',
|
5136 | 'margin-end',
|
5137 | 'margin-vertical',
|
5138 | 'margin-horizontal'
|
5139 | ];
|
5140 |
|
5141 |
|
5142 |
|
5143 |
|
5144 |
|
5145 |
|
5146 |
|
5147 |
|
5148 | var |
5149 |
|
5150 |
|
5151 | OverlayBaseController = (function () {
|
5152 | function OverlayBaseController(ctrl) {
|
5153 | this.ctrl = ctrl;
|
5154 | }
|
5155 | |
5156 |
|
5157 |
|
5158 | |
5159 |
|
5160 |
|
5161 |
|
5162 |
|
5163 | OverlayBaseController.prototype.create = |
5164 |
|
5165 |
|
5166 |
|
5167 |
|
5168 | function (opts) {
|
5169 |
|
5170 | return this.ctrl.create(( ((opts || {}))));
|
5171 | };
|
5172 | |
5173 |
|
5174 |
|
5175 | |
5176 |
|
5177 |
|
5178 |
|
5179 |
|
5180 |
|
5181 |
|
5182 | OverlayBaseController.prototype.dismiss = |
5183 |
|
5184 |
|
5185 |
|
5186 |
|
5187 |
|
5188 |
|
5189 | function (data, role, id) {
|
5190 | return this.ctrl.dismiss(data, role, id);
|
5191 | };
|
5192 | |
5193 |
|
5194 |
|
5195 | |
5196 |
|
5197 |
|
5198 |
|
5199 | OverlayBaseController.prototype.getTop = |
5200 |
|
5201 |
|
5202 |
|
5203 | function () {
|
5204 | return this.ctrl.getTop();
|
5205 | };
|
5206 | return OverlayBaseController;
|
5207 | }());
|
5208 |
|
5209 |
|
5210 |
|
5211 |
|
5212 |
|
5213 | var ActionSheetController = (function (_super) {
|
5214 | __extends(ActionSheetController, _super);
|
5215 | function ActionSheetController() {
|
5216 | return _super.call(this, actionSheetController) || this;
|
5217 | }
|
5218 | ActionSheetController.decorators = [
|
5219 | { type: Injectable, args: [{
|
5220 | providedIn: 'root',
|
5221 | },] },
|
5222 | ];
|
5223 |
|
5224 | ActionSheetController.ctorParameters = function () { return []; };
|
5225 | ActionSheetController.ngInjectableDef = defineInjectable({ factory: function ActionSheetController_Factory() { return new ActionSheetController(); }, token: ActionSheetController, providedIn: "root" });
|
5226 | return ActionSheetController;
|
5227 | }(OverlayBaseController));
|
5228 |
|
5229 |
|
5230 |
|
5231 |
|
5232 |
|
5233 | var AlertController = (function (_super) {
|
5234 | __extends(AlertController, _super);
|
5235 | function AlertController() {
|
5236 | return _super.call(this, alertController) || this;
|
5237 | }
|
5238 | AlertController.decorators = [
|
5239 | { type: Injectable, args: [{
|
5240 | providedIn: 'root',
|
5241 | },] },
|
5242 | ];
|
5243 |
|
5244 | AlertController.ctorParameters = function () { return []; };
|
5245 | AlertController.ngInjectableDef = defineInjectable({ factory: function AlertController_Factory() { return new AlertController(); }, token: AlertController, providedIn: "root" });
|
5246 | return AlertController;
|
5247 | }(OverlayBaseController));
|
5248 |
|
5249 |
|
5250 |
|
5251 |
|
5252 |
|
5253 | var Events = (function () {
|
5254 | function Events() {
|
5255 | this.c = new Map();
|
5256 | console.warn("[DEPRECATION][Events]: The Events provider is deprecated and it will be removed in the next major release.\n - Use \"Observables\" for a similar pub/sub architecture: https://angular.io/guide/observables\n - Use \"Redux\" for advanced state management: https://ngrx.io");
|
5257 | }
|
5258 | |
5259 |
|
5260 |
|
5261 |
|
5262 |
|
5263 |
|
5264 | |
5265 |
|
5266 |
|
5267 |
|
5268 |
|
5269 |
|
5270 |
|
5271 | Events.prototype.subscribe = |
5272 |
|
5273 |
|
5274 |
|
5275 |
|
5276 |
|
5277 |
|
5278 | function (topic) {
|
5279 | var handlers = [];
|
5280 | for (var _i = 1; _i < arguments.length; _i++) {
|
5281 | handlers[_i - 1] = arguments[_i];
|
5282 | }
|
5283 |
|
5284 | var topics = this.c.get(topic);
|
5285 | if (!topics) {
|
5286 | this.c.set(topic, topics = []);
|
5287 | }
|
5288 | topics.push.apply(topics, handlers);
|
5289 | };
|
5290 | |
5291 |
|
5292 |
|
5293 |
|
5294 |
|
5295 |
|
5296 |
|
5297 |
|
5298 | |
5299 |
|
5300 |
|
5301 |
|
5302 |
|
5303 |
|
5304 |
|
5305 |
|
5306 | Events.prototype.unsubscribe = |
5307 |
|
5308 |
|
5309 |
|
5310 |
|
5311 |
|
5312 |
|
5313 |
|
5314 | function (topic, handler) {
|
5315 | if (!handler) {
|
5316 | return this.c.delete(topic);
|
5317 | }
|
5318 |
|
5319 | var topics = this.c.get(topic);
|
5320 | if (!topics) {
|
5321 | return false;
|
5322 | }
|
5323 |
|
5324 |
|
5325 | var index = topics.indexOf(handler);
|
5326 | if (index < 0) {
|
5327 |
|
5328 | return false;
|
5329 | }
|
5330 | topics.splice(index, 1);
|
5331 | if (topics.length === 0) {
|
5332 | this.c.delete(topic);
|
5333 | }
|
5334 | return true;
|
5335 | };
|
5336 | |
5337 |
|
5338 |
|
5339 |
|
5340 |
|
5341 |
|
5342 | |
5343 |
|
5344 |
|
5345 |
|
5346 |
|
5347 |
|
5348 |
|
5349 | Events.prototype.publish = |
5350 |
|
5351 |
|
5352 |
|
5353 |
|
5354 |
|
5355 |
|
5356 | function (topic) {
|
5357 | var args = [];
|
5358 | for (var _i = 1; _i < arguments.length; _i++) {
|
5359 | args[_i - 1] = arguments[_i];
|
5360 | }
|
5361 |
|
5362 | var topics = this.c.get(topic);
|
5363 | if (!topics) {
|
5364 | return null;
|
5365 | }
|
5366 | return topics.map(( |
5367 |
|
5368 |
|
5369 |
|
5370 | function (handler) {
|
5371 | try {
|
5372 | return handler.apply(void 0, args);
|
5373 | }
|
5374 | catch (e) {
|
5375 | console.error(e);
|
5376 | return null;
|
5377 | }
|
5378 | }));
|
5379 | };
|
5380 | Events.decorators = [
|
5381 | { type: Injectable, args: [{
|
5382 | providedIn: 'root',
|
5383 | },] },
|
5384 | ];
|
5385 |
|
5386 | Events.ctorParameters = function () { return []; };
|
5387 | Events.ngInjectableDef = defineInjectable({ factory: function Events_Factory() { return new Events(); }, token: Events, providedIn: "root" });
|
5388 | return Events;
|
5389 | }());
|
5390 |
|
5391 |
|
5392 |
|
5393 |
|
5394 |
|
5395 | var LoadingController = (function (_super) {
|
5396 | __extends(LoadingController, _super);
|
5397 | function LoadingController() {
|
5398 | return _super.call(this, loadingController) || this;
|
5399 | }
|
5400 | LoadingController.decorators = [
|
5401 | { type: Injectable, args: [{
|
5402 | providedIn: 'root',
|
5403 | },] },
|
5404 | ];
|
5405 |
|
5406 | LoadingController.ctorParameters = function () { return []; };
|
5407 | LoadingController.ngInjectableDef = defineInjectable({ factory: function LoadingController_Factory() { return new LoadingController(); }, token: LoadingController, providedIn: "root" });
|
5408 | return LoadingController;
|
5409 | }(OverlayBaseController));
|
5410 |
|
5411 |
|
5412 |
|
5413 |
|
5414 |
|
5415 | var MenuController = (function () {
|
5416 | function MenuController() {
|
5417 | }
|
5418 | |
5419 |
|
5420 |
|
5421 |
|
5422 |
|
5423 | |
5424 |
|
5425 |
|
5426 |
|
5427 |
|
5428 | MenuController.prototype.open = |
5429 |
|
5430 |
|
5431 |
|
5432 |
|
5433 | function (menuId) {
|
5434 | return menuController.open(menuId);
|
5435 | };
|
5436 | |
5437 |
|
5438 |
|
5439 |
|
5440 |
|
5441 |
|
5442 |
|
5443 | |
5444 |
|
5445 |
|
5446 |
|
5447 |
|
5448 |
|
5449 |
|
5450 | MenuController.prototype.close = |
5451 |
|
5452 |
|
5453 |
|
5454 |
|
5455 |
|
5456 |
|
5457 | function (menuId) {
|
5458 | return menuController.close(menuId);
|
5459 | };
|
5460 | |
5461 |
|
5462 |
|
5463 |
|
5464 |
|
5465 |
|
5466 | |
5467 |
|
5468 |
|
5469 |
|
5470 |
|
5471 |
|
5472 | MenuController.prototype.toggle = |
5473 |
|
5474 |
|
5475 |
|
5476 |
|
5477 |
|
5478 | function (menuId) {
|
5479 | return menuController.toggle(menuId);
|
5480 | };
|
5481 | |
5482 |
|
5483 |
|
5484 |
|
5485 |
|
5486 |
|
5487 |
|
5488 |
|
5489 | |
5490 |
|
5491 |
|
5492 |
|
5493 |
|
5494 |
|
5495 |
|
5496 |
|
5497 |
|
5498 | MenuController.prototype.enable = |
5499 |
|
5500 |
|
5501 |
|
5502 |
|
5503 |
|
5504 |
|
5505 |
|
5506 |
|
5507 | function (shouldEnable, menuId) {
|
5508 | return menuController.enable(shouldEnable, menuId);
|
5509 | };
|
5510 | |
5511 |
|
5512 |
|
5513 |
|
5514 |
|
5515 |
|
5516 |
|
5517 | |
5518 |
|
5519 |
|
5520 |
|
5521 |
|
5522 |
|
5523 |
|
5524 | MenuController.prototype.swipeEnable = |
5525 |
|
5526 |
|
5527 |
|
5528 |
|
5529 |
|
5530 |
|
5531 | function (shouldEnable, menuId) {
|
5532 | console.warn('[DEPRECATED][ion-menu-controller] swipeEnable() is deprecated. Use MenuController.swipeGesture() instead');
|
5533 | return this.swipeGesture(shouldEnable, menuId);
|
5534 | };
|
5535 | |
5536 |
|
5537 |
|
5538 |
|
5539 |
|
5540 |
|
5541 | |
5542 |
|
5543 |
|
5544 |
|
5545 |
|
5546 |
|
5547 | MenuController.prototype.swipeGesture = |
5548 |
|
5549 |
|
5550 |
|
5551 |
|
5552 |
|
5553 | function (shouldEnable, menuId) {
|
5554 | return menuController.swipeGesture(shouldEnable, menuId);
|
5555 | };
|
5556 | |
5557 |
|
5558 |
|
5559 |
|
5560 |
|
5561 | |
5562 |
|
5563 |
|
5564 |
|
5565 |
|
5566 | MenuController.prototype.isOpen = |
5567 |
|
5568 |
|
5569 |
|
5570 |
|
5571 | function (menuId) {
|
5572 | return menuController.isOpen(menuId);
|
5573 | };
|
5574 | |
5575 |
|
5576 |
|
5577 |
|
5578 | |
5579 |
|
5580 |
|
5581 |
|
5582 | MenuController.prototype.isEnabled = |
5583 |
|
5584 |
|
5585 |
|
5586 | function (menuId) {
|
5587 | return menuController.isEnabled(menuId);
|
5588 | };
|
5589 | |
5590 |
|
5591 |
|
5592 |
|
5593 |
|
5594 |
|
5595 |
|
5596 |
|
5597 |
|
5598 | |
5599 |
|
5600 |
|
5601 |
|
5602 |
|
5603 |
|
5604 |
|
5605 |
|
5606 |
|
5607 | MenuController.prototype.get = |
5608 |
|
5609 |
|
5610 |
|
5611 |
|
5612 |
|
5613 |
|
5614 |
|
5615 |
|
5616 | function (menuId) {
|
5617 | return menuController.get(menuId);
|
5618 | };
|
5619 | |
5620 |
|
5621 |
|
5622 | |
5623 |
|
5624 |
|
5625 | MenuController.prototype.getOpen = |
5626 |
|
5627 |
|
5628 | function () {
|
5629 | return menuController.getOpen();
|
5630 | };
|
5631 | |
5632 |
|
5633 |
|
5634 | |
5635 |
|
5636 |
|
5637 | MenuController.prototype.getMenus = |
5638 |
|
5639 |
|
5640 | function () {
|
5641 | return menuController.getMenus();
|
5642 | };
|
5643 | MenuController.decorators = [
|
5644 | { type: Injectable, args: [{
|
5645 | providedIn: 'root',
|
5646 | },] },
|
5647 | ];
|
5648 | MenuController.ngInjectableDef = defineInjectable({ factory: function MenuController_Factory() { return new MenuController(); }, token: MenuController, providedIn: "root" });
|
5649 | return MenuController;
|
5650 | }());
|
5651 |
|
5652 |
|
5653 |
|
5654 |
|
5655 |
|
5656 | var PickerController = (function (_super) {
|
5657 | __extends(PickerController, _super);
|
5658 | function PickerController() {
|
5659 | return _super.call(this, pickerController) || this;
|
5660 | }
|
5661 | PickerController.decorators = [
|
5662 | { type: Injectable, args: [{
|
5663 | providedIn: 'root',
|
5664 | },] },
|
5665 | ];
|
5666 |
|
5667 | PickerController.ctorParameters = function () { return []; };
|
5668 | PickerController.ngInjectableDef = defineInjectable({ factory: function PickerController_Factory() { return new PickerController(); }, token: PickerController, providedIn: "root" });
|
5669 | return PickerController;
|
5670 | }(OverlayBaseController));
|
5671 |
|
5672 |
|
5673 |
|
5674 |
|
5675 |
|
5676 | var ModalController = (function (_super) {
|
5677 | __extends(ModalController, _super);
|
5678 | function ModalController(angularDelegate, resolver, injector) {
|
5679 | var _this = _super.call(this, modalController) || this;
|
5680 | _this.angularDelegate = angularDelegate;
|
5681 | _this.resolver = resolver;
|
5682 | _this.injector = injector;
|
5683 | return _this;
|
5684 | }
|
5685 | |
5686 |
|
5687 |
|
5688 |
|
5689 | ModalController.prototype.create = |
5690 |
|
5691 |
|
5692 |
|
5693 | function (opts) {
|
5694 | return _super.prototype.create.call(this, __assign({}, opts, { delegate: this.angularDelegate.create(this.resolver, this.injector) }));
|
5695 | };
|
5696 | ModalController.decorators = [
|
5697 | { type: Injectable },
|
5698 | ];
|
5699 |
|
5700 | ModalController.ctorParameters = function () { return [
|
5701 | { type: AngularDelegate },
|
5702 | { type: ComponentFactoryResolver },
|
5703 | { type: Injector }
|
5704 | ]; };
|
5705 | return ModalController;
|
5706 | }(OverlayBaseController));
|
5707 |
|
5708 |
|
5709 |
|
5710 |
|
5711 |
|
5712 | var PopoverController = (function (_super) {
|
5713 | __extends(PopoverController, _super);
|
5714 | function PopoverController(angularDelegate, resolver, injector) {
|
5715 | var _this = _super.call(this, popoverController) || this;
|
5716 | _this.angularDelegate = angularDelegate;
|
5717 | _this.resolver = resolver;
|
5718 | _this.injector = injector;
|
5719 | return _this;
|
5720 | }
|
5721 | |
5722 |
|
5723 |
|
5724 |
|
5725 | PopoverController.prototype.create = |
5726 |
|
5727 |
|
5728 |
|
5729 | function (opts) {
|
5730 | return _super.prototype.create.call(this, __assign({}, opts, { delegate: this.angularDelegate.create(this.resolver, this.injector) }));
|
5731 | };
|
5732 | PopoverController.decorators = [
|
5733 | { type: Injectable },
|
5734 | ];
|
5735 |
|
5736 | PopoverController.ctorParameters = function () { return [
|
5737 | { type: AngularDelegate },
|
5738 | { type: ComponentFactoryResolver },
|
5739 | { type: Injector }
|
5740 | ]; };
|
5741 | return PopoverController;
|
5742 | }(OverlayBaseController));
|
5743 |
|
5744 |
|
5745 |
|
5746 |
|
5747 |
|
5748 | var ToastController = (function (_super) {
|
5749 | __extends(ToastController, _super);
|
5750 | function ToastController() {
|
5751 | return _super.call(this, toastController) || this;
|
5752 | }
|
5753 | ToastController.decorators = [
|
5754 | { type: Injectable, args: [{
|
5755 | providedIn: 'root',
|
5756 | },] },
|
5757 | ];
|
5758 |
|
5759 | ToastController.ctorParameters = function () { return []; };
|
5760 | ToastController.ngInjectableDef = defineInjectable({ factory: function ToastController_Factory() { return new ToastController(); }, token: ToastController, providedIn: "root" });
|
5761 | return ToastController;
|
5762 | }(OverlayBaseController));
|
5763 |
|
5764 |
|
5765 |
|
5766 |
|
5767 |
|
5768 | var DomController = (function () {
|
5769 | function DomController() {
|
5770 | }
|
5771 | |
5772 |
|
5773 |
|
5774 |
|
5775 | |
5776 |
|
5777 |
|
5778 |
|
5779 |
|
5780 |
|
5781 | DomController.prototype.read = |
5782 |
|
5783 |
|
5784 |
|
5785 |
|
5786 |
|
5787 | function (cb) {
|
5788 | getQueue().read(cb);
|
5789 | };
|
5790 | |
5791 |
|
5792 |
|
5793 |
|
5794 | |
5795 |
|
5796 |
|
5797 |
|
5798 |
|
5799 |
|
5800 | DomController.prototype.write = |
5801 |
|
5802 |
|
5803 |
|
5804 |
|
5805 |
|
5806 | function (cb) {
|
5807 | getQueue().write(cb);
|
5808 | };
|
5809 | DomController.decorators = [
|
5810 | { type: Injectable, args: [{
|
5811 | providedIn: 'root',
|
5812 | },] },
|
5813 | ];
|
5814 | DomController.ngInjectableDef = defineInjectable({ factory: function DomController_Factory() { return new DomController(); }, token: DomController, providedIn: "root" });
|
5815 | return DomController;
|
5816 | }());
|
5817 |
|
5818 | var getQueue = ( |
5819 |
|
5820 |
|
5821 | function () {
|
5822 |
|
5823 | var win = typeof (( (window))) !== 'undefined' ? window : ( (null));
|
5824 | if (win != null) {
|
5825 |
|
5826 | var Ionic = win.Ionic;
|
5827 | if (Ionic && Ionic.queue) {
|
5828 | return Ionic.queue;
|
5829 | }
|
5830 | return {
|
5831 | read: ( |
5832 |
|
5833 |
|
5834 |
|
5835 | function (cb) { return win.requestAnimationFrame(cb); }),
|
5836 | write: ( |
5837 |
|
5838 |
|
5839 |
|
5840 | function (cb) { return win.requestAnimationFrame(cb); })
|
5841 | };
|
5842 | }
|
5843 | return {
|
5844 | read: ( |
5845 |
|
5846 |
|
5847 |
|
5848 | function (cb) { return cb(); }),
|
5849 | write: ( |
5850 |
|
5851 |
|
5852 |
|
5853 | function (cb) { return cb(); })
|
5854 | };
|
5855 | });
|
5856 |
|
5857 |
|
5858 |
|
5859 |
|
5860 |
|
5861 | var IonicRouteStrategy = (function () {
|
5862 | function IonicRouteStrategy() {
|
5863 | }
|
5864 | |
5865 |
|
5866 |
|
5867 |
|
5868 | IonicRouteStrategy.prototype.shouldDetach = |
5869 |
|
5870 |
|
5871 |
|
5872 | function (_route) {
|
5873 | return false;
|
5874 | };
|
5875 | |
5876 |
|
5877 |
|
5878 |
|
5879 | IonicRouteStrategy.prototype.shouldAttach = |
5880 |
|
5881 |
|
5882 |
|
5883 | function (_route) {
|
5884 | return false;
|
5885 | };
|
5886 | |
5887 |
|
5888 |
|
5889 |
|
5890 |
|
5891 | IonicRouteStrategy.prototype.store = |
5892 |
|
5893 |
|
5894 |
|
5895 |
|
5896 | function (_route, _detachedTree) {
|
5897 | return;
|
5898 | };
|
5899 | |
5900 |
|
5901 |
|
5902 |
|
5903 | IonicRouteStrategy.prototype.retrieve = |
5904 |
|
5905 |
|
5906 |
|
5907 | function (_route) {
|
5908 | return null;
|
5909 | };
|
5910 | |
5911 |
|
5912 |
|
5913 |
|
5914 |
|
5915 | IonicRouteStrategy.prototype.shouldReuseRoute = |
5916 |
|
5917 |
|
5918 |
|
5919 |
|
5920 | function (future, curr) {
|
5921 | if (future.routeConfig !== curr.routeConfig) {
|
5922 | return false;
|
5923 | }
|
5924 |
|
5925 |
|
5926 | var futureParams = future.params;
|
5927 |
|
5928 | var currentParams = curr.params;
|
5929 |
|
5930 | var keysA = Object.keys(futureParams);
|
5931 |
|
5932 | var keysB = Object.keys(currentParams);
|
5933 | if (keysA.length !== keysB.length) {
|
5934 | return false;
|
5935 | }
|
5936 |
|
5937 | for (var _i = 0, keysA_1 = keysA; _i < keysA_1.length; _i++) {
|
5938 | var key = keysA_1[_i];
|
5939 | if (currentParams[key] !== futureParams[key]) {
|
5940 | return false;
|
5941 | }
|
5942 | }
|
5943 | return true;
|
5944 | };
|
5945 | return IonicRouteStrategy;
|
5946 | }());
|
5947 |
|
5948 |
|
5949 |
|
5950 |
|
5951 |
|
5952 |
|
5953 | var didInitialize = false;
|
5954 |
|
5955 | var appInitialize = ( |
5956 |
|
5957 |
|
5958 |
|
5959 |
|
5960 |
|
5961 | function (config, doc, zone) {
|
5962 | return ( |
5963 |
|
5964 |
|
5965 | function () {
|
5966 |
|
5967 | var win = ( (doc.defaultView));
|
5968 | if (win) {
|
5969 | if (didInitialize) {
|
5970 | console.warn('Ionic Angular was already initialized. Make sure IonicModule.forRoot() is just called once.');
|
5971 | }
|
5972 | didInitialize = true;
|
5973 |
|
5974 | var Ionic = win.Ionic = win.Ionic || {};
|
5975 | Ionic.config = __assign({}, config, { _zoneGate: ( |
5976 |
|
5977 |
|
5978 |
|
5979 | function (h) { return zone.run(h); }) });
|
5980 |
|
5981 | var aelFn_1 = '__zone_symbol__addEventListener' in (( (doc.body)))
|
5982 | ? '__zone_symbol__addEventListener'
|
5983 | : 'addEventListener';
|
5984 | return applyPolyfills().then(( |
5985 |
|
5986 |
|
5987 | function () {
|
5988 | return defineCustomElements(win, {
|
5989 | exclude: ['ion-tabs', 'ion-tab'],
|
5990 | syncQueue: true,
|
5991 | raf: raf,
|
5992 | jmp: ( |
5993 |
|
5994 |
|
5995 |
|
5996 | function (h) { return zone.runOutsideAngular(h); }),
|
5997 | ael: |
5998 |
|
5999 |
|
6000 |
|
6001 |
|
6002 |
|
6003 |
|
6004 | function (elm, eventName, cb, opts) {
|
6005 | (( (elm)))[aelFn_1](eventName, cb, opts);
|
6006 | },
|
6007 | rel: |
6008 |
|
6009 |
|
6010 |
|
6011 |
|
6012 |
|
6013 |
|
6014 | function (elm, eventName, cb, opts) {
|
6015 | elm.removeEventListener(eventName, cb, opts);
|
6016 | }
|
6017 | });
|
6018 | }));
|
6019 | }
|
6020 | });
|
6021 | });
|
6022 |
|
6023 |
|
6024 |
|
6025 |
|
6026 |
|
6027 |
|
6028 | var DECLARATIONS = [
|
6029 |
|
6030 | IonApp,
|
6031 | IonAvatar,
|
6032 | IonBackButton,
|
6033 | IonBackdrop,
|
6034 | IonBadge,
|
6035 | IonButton,
|
6036 | IonButtons,
|
6037 | IonCard,
|
6038 | IonCardContent,
|
6039 | IonCardHeader,
|
6040 | IonCardSubtitle,
|
6041 | IonCardTitle,
|
6042 | IonCheckbox,
|
6043 | IonChip,
|
6044 | IonCol,
|
6045 | IonContent,
|
6046 | IonDatetime,
|
6047 | IonFab,
|
6048 | IonFabButton,
|
6049 | IonFabList,
|
6050 | IonFooter,
|
6051 | IonGrid,
|
6052 | IonHeader,
|
6053 | IonIcon,
|
6054 | IonImg,
|
6055 | IonInfiniteScroll,
|
6056 | IonInfiniteScrollContent,
|
6057 | IonInput,
|
6058 | IonItem,
|
6059 | IonItemDivider,
|
6060 | IonItemGroup,
|
6061 | IonItemOption,
|
6062 | IonItemOptions,
|
6063 | IonItemSliding,
|
6064 | IonLabel,
|
6065 | IonList,
|
6066 | IonListHeader,
|
6067 | IonMenu,
|
6068 | IonMenuButton,
|
6069 | IonMenuToggle,
|
6070 | IonNav,
|
6071 | IonNavLink,
|
6072 | IonNavPop,
|
6073 | IonNavPush,
|
6074 | IonNavSetRoot,
|
6075 | IonNote,
|
6076 | IonProgressBar,
|
6077 | IonRadio,
|
6078 | IonRadioGroup,
|
6079 | IonRange,
|
6080 | IonRefresher,
|
6081 | IonRefresherContent,
|
6082 | IonReorder,
|
6083 | IonReorderGroup,
|
6084 | IonRippleEffect,
|
6085 | IonRow,
|
6086 | IonSearchbar,
|
6087 | IonSegment,
|
6088 | IonSegmentButton,
|
6089 | IonSelect,
|
6090 | IonSelectOption,
|
6091 | IonSkeletonText,
|
6092 | IonSlide,
|
6093 | IonSlides,
|
6094 | IonSpinner,
|
6095 | IonSplitPane,
|
6096 | IonTabBar,
|
6097 | IonTabButton,
|
6098 | IonText,
|
6099 | IonTextarea,
|
6100 | IonThumbnail,
|
6101 | IonToggle,
|
6102 | IonToolbar,
|
6103 | IonTitle,
|
6104 | IonTabs,
|
6105 |
|
6106 | BooleanValueAccessor,
|
6107 | NumericValueAccessor,
|
6108 | RadioValueAccessor,
|
6109 | SelectValueAccessor,
|
6110 | TextValueAccessor,
|
6111 |
|
6112 | IonRouterOutlet,
|
6113 | IonBackButtonDelegate,
|
6114 | NavDelegate,
|
6115 | RouterLinkDelegate,
|
6116 |
|
6117 | VirtualFooter,
|
6118 | VirtualHeader,
|
6119 | VirtualItem,
|
6120 | IonVirtualScroll,
|
6121 |
|
6122 | CssUtilsDeprecations
|
6123 | ];
|
6124 | var IonicModule = (function () {
|
6125 | function IonicModule() {
|
6126 | }
|
6127 | |
6128 |
|
6129 |
|
6130 |
|
6131 | IonicModule.forRoot = |
6132 |
|
6133 |
|
6134 |
|
6135 | function (config) {
|
6136 | return {
|
6137 | ngModule: IonicModule,
|
6138 | providers: [
|
6139 | {
|
6140 | provide: ConfigToken,
|
6141 | useValue: config
|
6142 | },
|
6143 | {
|
6144 | provide: APP_INITIALIZER,
|
6145 | useFactory: appInitialize,
|
6146 | multi: true,
|
6147 | deps: [
|
6148 | ConfigToken,
|
6149 | DOCUMENT,
|
6150 | NgZone
|
6151 | ]
|
6152 | }
|
6153 | ]
|
6154 | };
|
6155 | };
|
6156 | IonicModule.decorators = [
|
6157 | { type: NgModule, args: [{
|
6158 | declarations: DECLARATIONS,
|
6159 | exports: DECLARATIONS,
|
6160 | providers: [AngularDelegate, ModalController, PopoverController],
|
6161 | imports: [CommonModule]
|
6162 | },] },
|
6163 | ];
|
6164 | return IonicModule;
|
6165 | }());
|
6166 |
|
6167 | export { ActionSheetController, AlertController, AngularDelegate, BooleanValueAccessor, Config, CssUtilsDeprecations, DomController, Events, IonApp, IonAvatar, IonBackButton, IonBackButtonDelegate, IonBackdrop, IonBadge, IonButton, IonButtons, IonCard, IonCardContent, IonCardHeader, IonCardSubtitle, IonCardTitle, IonCheckbox, IonChip, IonCol, IonContent, IonDatetime, IonFab, IonFabButton, IonFabList, IonFooter, IonGrid, IonHeader, IonIcon, IonImg, IonInfiniteScroll, IonInfiniteScrollContent, IonInput, IonItem, IonItemDivider, IonItemGroup, IonItemOption, IonItemOptions, IonItemSliding, IonLabel, IonList, IonListHeader, IonMenu, IonMenuButton, IonMenuToggle, IonNav, IonNavLink, IonNavPop, IonNavPush, IonNavSetRoot, IonNote, IonProgressBar, IonRadio, IonRadioGroup, IonRange, IonRefresher, IonRefresherContent, IonReorder, IonReorderGroup, IonRippleEffect, IonRouterOutlet, IonRow, IonSearchbar, IonSegment, IonSegmentButton, IonSelect, IonSelectOption, IonSkeletonText, IonSlide, IonSlides, IonSpinner, IonSplitPane, IonTabBar, IonTabButton, IonTabs, IonText, IonTextarea, IonThumbnail, IonTitle, IonToggle, IonToolbar, IonVirtualScroll, IonicModule, IonicRouteStrategy, LoadingController, MenuController, ModalController, NavController, NavDelegate, NavParams, NumericValueAccessor, PickerController, Platform, PopoverController, RadioValueAccessor, RouterLinkDelegate, SelectValueAccessor, TextValueAccessor, ToastController, VirtualFooter, VirtualHeader, VirtualItem, ConfigToken as ɵa, ValueAccessor as ɵb, OverlayBaseController as ɵd, appInitialize as ɵe };
|