@smartsoft001/angular 1.1.686 → 1.1.691
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/smartsoft001-angular.umd.js +1710 -1645
- package/bundles/smartsoft001-angular.umd.js.map +1 -1
- package/esm2015/lib/components/details/base/base.component.js +9 -4
- package/esm2015/lib/components/details/details.component.js +20 -4
- package/esm2015/lib/factories/form/form.factory.js +24 -9
- package/esm2015/lib/services/details/details.service.js +29 -0
- package/esm2015/lib/services/index.js +2 -1
- package/esm2015/lib/services/services.module.js +4 -2
- package/esm2015/smartsoft001-angular.js +133 -132
- package/fesm2015/smartsoft001-angular.js +1335 -1273
- package/fesm2015/smartsoft001-angular.js.map +1 -1
- package/lib/components/details/base/base.component.d.ts +3 -1
- package/lib/components/details/details.component.d.ts +5 -2
- package/lib/factories/form/form.factory.d.ts +5 -2
- package/lib/pipes/pipes.module.d.ts +1 -1
- package/lib/services/details/details.service.d.ts +7 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +5 -5
- package/smartsoft001-angular.d.ts +132 -131
- package/smartsoft001-angular.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('@angular/core'), require('@angular/forms'), require('lodash'), require('rxjs/operators'), require('@smartsoft001/models'), require('@smartsoft001/utils'), require('jwt-decode'), require('ngx-cookie'), require('@ionic/angular'), require('@angular/common'), require('@ionic/storage'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@smartsoft001/angular', ['exports', 'reflect-metadata', '@angular/core', '@angular/forms', 'lodash', 'rxjs/operators', '@smartsoft001/models', '@smartsoft001/utils', 'jwt-decode', 'ngx-cookie', '@ionic/angular', '@angular/common', '@ionic/storage', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.smartsoft001 = global.smartsoft001 || {}, global.smartsoft001.angular = {}), null, global.ng.core, global.ng.forms, global._, global.rxjs.operators, global.models, global.utils, global.decode, global.ngxCookie, global.i1, global.ng.common, global.storage, global.ng.common.http, global.
|
|
5
|
-
})(this, (function (exports, reflectMetadata, i0, forms, _, operators, models, utils, decode, ngxCookie, i1, common, storage, http,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('reflect-metadata'), require('@angular/core'), require('@angular/forms'), require('lodash'), require('rxjs/operators'), require('@smartsoft001/models'), require('@smartsoft001/utils'), require('jwt-decode'), require('ngx-cookie'), require('@ionic/angular'), require('@angular/common'), require('@ionic/storage'), require('@ngx-translate/core'), require('@angular/common/http'), require('@ionic-native/fingerprint-aio/ngx'), require('@capacitor/core'), require('moment'), require('lodash-decorators'), require('rxjs'), require('@angular/router'), require('ng2-charts'), require('@angular/material/table'), require('@angular/material/sort'), require('ngx-color-picker'), require('@angular/cdk/drag-drop'), require('ngx-editor'), require('ng-lazyload-image'), require('@angular/material/stepper'), require('@angular/material/button'), require('@angular/material/datepicker'), require('@angular/material/core'), require('@angular/material-moment-adapter'), require('@ngrx/effects'), require('@ngrx/store'), require('@ngrx/router-store'), require('@ionic/core'), require('guid-typescript')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@smartsoft001/angular', ['exports', 'reflect-metadata', '@angular/core', '@angular/forms', 'lodash', 'rxjs/operators', '@smartsoft001/models', '@smartsoft001/utils', 'jwt-decode', 'ngx-cookie', '@ionic/angular', '@angular/common', '@ionic/storage', '@ngx-translate/core', '@angular/common/http', '@ionic-native/fingerprint-aio/ngx', '@capacitor/core', 'moment', 'lodash-decorators', 'rxjs', '@angular/router', 'ng2-charts', '@angular/material/table', '@angular/material/sort', 'ngx-color-picker', '@angular/cdk/drag-drop', 'ngx-editor', 'ng-lazyload-image', '@angular/material/stepper', '@angular/material/button', '@angular/material/datepicker', '@angular/material/core', '@angular/material-moment-adapter', '@ngrx/effects', '@ngrx/store', '@ngrx/router-store', '@ionic/core', 'guid-typescript'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.smartsoft001 = global.smartsoft001 || {}, global.smartsoft001.angular = {}), null, global.ng.core, global.ng.forms, global._, global.rxjs.operators, global.models, global.utils, global.decode, global.ngxCookie, global.i1, global.ng.common, global.storage, global.core, global.ng.common.http, global.ngx, global.core$1, global.moment$1, global.lodashDecorators, global.rxjs, global.ng.router, global.ng2Charts, global.ng.material.table, global.ng.material.sort, global.ngxColorPicker, global.ng.cdk.dragDrop, global.ngxEditor, global.ngLazyloadImage, global.ng.material.stepper, global.ng.material.button, global.ng.material.datepicker, global.ng.material.core, global.ng.materialMomentAdapter, global.effects, global.store, global.routerStore, global.core$3, global.guidTypescript));
|
|
5
|
+
})(this, (function (exports, reflectMetadata, i0, forms, _, operators, models, utils, decode, ngxCookie, i1, common, storage, core, http, ngx, core$1, moment$1, lodashDecorators, rxjs, router, ng2Charts, table, sort, ngxColorPicker, dragDrop, ngxEditor, ngLazyloadImage, stepper, button, datepicker, core$2, materialMomentAdapter, effects, store, routerStore, core$3, guidTypescript) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -256,16 +256,10 @@
|
|
|
256
256
|
r[k] = a[j];
|
|
257
257
|
return r;
|
|
258
258
|
}
|
|
259
|
-
function __spreadArray(to, from
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
if (!ar)
|
|
264
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
265
|
-
ar[i] = from[i];
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
259
|
+
function __spreadArray(to, from) {
|
|
260
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
261
|
+
to[j] = from[i];
|
|
262
|
+
return to;
|
|
269
263
|
}
|
|
270
264
|
function __await(v) {
|
|
271
265
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -536,173 +530,48 @@
|
|
|
536
530
|
}());
|
|
537
531
|
var MODEL_VALIDATORS_PROVIDER = new i0.InjectionToken("MODEL_VALIDATORS_PROVIDER");
|
|
538
532
|
|
|
539
|
-
var
|
|
540
|
-
|
|
541
|
-
|
|
533
|
+
var SmartFormGroup = /** @class */ (function (_super) {
|
|
534
|
+
__extends(SmartFormGroup, _super);
|
|
535
|
+
function SmartFormGroup() {
|
|
536
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
542
537
|
}
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
};
|
|
546
|
-
ToastService.prototype.removeLockError = function () {
|
|
547
|
-
--ToastService.lockError;
|
|
548
|
-
};
|
|
549
|
-
ToastService.prototype.error = function (config) {
|
|
550
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
551
|
-
var toast;
|
|
552
|
-
return __generator(this, function (_a) {
|
|
553
|
-
switch (_a.label) {
|
|
554
|
-
case 0:
|
|
555
|
-
if (ToastService.lockError)
|
|
556
|
-
return [2 /*return*/];
|
|
557
|
-
return [4 /*yield*/, this.toastCtrl.create({
|
|
558
|
-
position: 'bottom',
|
|
559
|
-
header: config.title,
|
|
560
|
-
message: config.message,
|
|
561
|
-
duration: config.duration ? config.duration : 2000,
|
|
562
|
-
buttons: config.buttons ? config.buttons.map(function (b) {
|
|
563
|
-
return {
|
|
564
|
-
text: b.text,
|
|
565
|
-
side: b.position,
|
|
566
|
-
role: 'cancel',
|
|
567
|
-
handler: b.handler
|
|
568
|
-
};
|
|
569
|
-
}) : null
|
|
570
|
-
})];
|
|
571
|
-
case 1:
|
|
572
|
-
toast = _a.sent();
|
|
573
|
-
return [4 /*yield*/, toast.present()];
|
|
574
|
-
case 2:
|
|
575
|
-
_a.sent();
|
|
576
|
-
return [2 /*return*/];
|
|
577
|
-
}
|
|
578
|
-
});
|
|
579
|
-
});
|
|
580
|
-
};
|
|
581
|
-
ToastService.prototype.info = function (config) {
|
|
582
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
583
|
-
var toast;
|
|
584
|
-
return __generator(this, function (_a) {
|
|
585
|
-
switch (_a.label) {
|
|
586
|
-
case 0: return [4 /*yield*/, this.toastCtrl.create({
|
|
587
|
-
position: 'bottom',
|
|
588
|
-
header: config.title,
|
|
589
|
-
message: config.message,
|
|
590
|
-
duration: config.duration ? config.duration : 2000,
|
|
591
|
-
buttons: config.buttons ? config.buttons.map(function (b) {
|
|
592
|
-
return {
|
|
593
|
-
text: b.text,
|
|
594
|
-
side: b.position,
|
|
595
|
-
handler: b.handler
|
|
596
|
-
};
|
|
597
|
-
}) : null
|
|
598
|
-
})];
|
|
599
|
-
case 1:
|
|
600
|
-
toast = _a.sent();
|
|
601
|
-
return [4 /*yield*/, toast.present()];
|
|
602
|
-
case 2:
|
|
603
|
-
_a.sent();
|
|
604
|
-
return [2 /*return*/];
|
|
605
|
-
}
|
|
606
|
-
});
|
|
607
|
-
});
|
|
538
|
+
SmartFormGroup.create = function () {
|
|
539
|
+
return new SmartFormGroup({});
|
|
608
540
|
};
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
];
|
|
616
|
-
/**
|
|
617
|
-
* @type {function(): !Array<(null|{
|
|
618
|
-
* type: ?,
|
|
619
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
620
|
-
* })>}
|
|
621
|
-
* @nocollapse
|
|
622
|
-
*/
|
|
623
|
-
ToastService.ctorParameters = function () { return [
|
|
624
|
-
{ type: i1.ToastController }
|
|
625
|
-
]; };
|
|
626
|
-
|
|
627
|
-
var ErrorService = /** @class */ (function () {
|
|
628
|
-
function ErrorService(toastService, translateService) {
|
|
629
|
-
this.toastService = toastService;
|
|
630
|
-
this.translateService = translateService;
|
|
631
|
-
}
|
|
632
|
-
ErrorService.prototype.log = function (obj) {
|
|
633
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
634
|
-
var message;
|
|
635
|
-
return __generator(this, function (_a) {
|
|
636
|
-
switch (_a.label) {
|
|
637
|
-
case 0:
|
|
638
|
-
message = '';
|
|
639
|
-
if (!(obj instanceof http.HttpErrorResponse)) return [3 /*break*/, 2];
|
|
640
|
-
if (!(obj.error && obj.error.details === 'Invalid username or password')) return [3 /*break*/, 2];
|
|
641
|
-
return [4 /*yield*/, this.translateService.get('ERRORS.invalidUsernameOrPassword').toPromise()];
|
|
642
|
-
case 1:
|
|
643
|
-
message = _a.sent();
|
|
644
|
-
_a.label = 2;
|
|
645
|
-
case 2:
|
|
646
|
-
if (!!message) return [3 /*break*/, 4];
|
|
647
|
-
return [4 /*yield*/, this.translateService.get('ERRORS.other').toPromise()];
|
|
648
|
-
case 3:
|
|
649
|
-
message = _a.sent();
|
|
650
|
-
_a.label = 4;
|
|
651
|
-
case 4:
|
|
652
|
-
console.error(obj);
|
|
653
|
-
return [4 /*yield*/, this.toastService.error({ message: message })];
|
|
654
|
-
case 5:
|
|
655
|
-
_a.sent();
|
|
656
|
-
return [2 /*return*/];
|
|
657
|
-
}
|
|
658
|
-
});
|
|
541
|
+
SmartFormGroup.prototype.setForm = function (form) {
|
|
542
|
+
var _this = this;
|
|
543
|
+
Object.keys(form.controls).forEach(function (key) {
|
|
544
|
+
if (_this.controls[key])
|
|
545
|
+
_this.removeControl(key);
|
|
546
|
+
_this.addControl(key, form.controls[key]);
|
|
659
547
|
});
|
|
660
548
|
};
|
|
661
|
-
return
|
|
662
|
-
}());
|
|
663
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
664
|
-
ErrorService.decorators = [
|
|
665
|
-
{ type: i0.Injectable }
|
|
666
|
-
];
|
|
667
|
-
/**
|
|
668
|
-
* @type {function(): !Array<(null|{
|
|
669
|
-
* type: ?,
|
|
670
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
671
|
-
* })>}
|
|
672
|
-
* @nocollapse
|
|
673
|
-
*/
|
|
674
|
-
ErrorService.ctorParameters = function () { return [
|
|
675
|
-
{ type: ToastService },
|
|
676
|
-
{ type: core.TranslateService }
|
|
677
|
-
]; };
|
|
549
|
+
return SmartFormGroup;
|
|
550
|
+
}(forms.FormGroup));
|
|
678
551
|
|
|
679
|
-
var
|
|
680
|
-
function
|
|
681
|
-
this.
|
|
552
|
+
var DetailsService = /** @class */ (function () {
|
|
553
|
+
function DetailsService() {
|
|
554
|
+
this.init();
|
|
682
555
|
}
|
|
683
|
-
Object.defineProperty(
|
|
684
|
-
get: function () {
|
|
685
|
-
return this.platform.is('capacitor');
|
|
686
|
-
},
|
|
687
|
-
enumerable: false,
|
|
688
|
-
configurable: true
|
|
689
|
-
});
|
|
690
|
-
Object.defineProperty(HardwareService.prototype, "isMobileWeb", {
|
|
556
|
+
Object.defineProperty(DetailsService.prototype, "$root", {
|
|
691
557
|
get: function () {
|
|
692
|
-
return this.
|
|
558
|
+
return this._root;
|
|
693
559
|
},
|
|
694
560
|
enumerable: false,
|
|
695
561
|
configurable: true
|
|
696
562
|
});
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
callback();
|
|
700
|
-
});
|
|
563
|
+
DetailsService.prototype.init = function () {
|
|
564
|
+
this._root = null;
|
|
701
565
|
};
|
|
702
|
-
|
|
566
|
+
DetailsService.prototype.setRoot = function (obj, force) {
|
|
567
|
+
if (force === void 0) { force = false; }
|
|
568
|
+
if (!this._root || force)
|
|
569
|
+
this._root = obj;
|
|
570
|
+
};
|
|
571
|
+
return DetailsService;
|
|
703
572
|
}());
|
|
704
573
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
705
|
-
|
|
574
|
+
DetailsService.decorators = [
|
|
706
575
|
{ type: i0.Injectable }
|
|
707
576
|
];
|
|
708
577
|
/**
|
|
@@ -712,268 +581,309 @@
|
|
|
712
581
|
* })>}
|
|
713
582
|
* @nocollapse
|
|
714
583
|
*/
|
|
715
|
-
|
|
716
|
-
{ type: i1.Platform }
|
|
717
|
-
]; };
|
|
584
|
+
DetailsService.ctorParameters = function () { return []; };
|
|
718
585
|
|
|
719
|
-
var
|
|
720
|
-
function
|
|
721
|
-
this.
|
|
722
|
-
this.
|
|
586
|
+
var FormFactory = /** @class */ (function () {
|
|
587
|
+
function FormFactory(fb, authService, detailsService, validatorsProvider) {
|
|
588
|
+
this.fb = fb;
|
|
589
|
+
this.authService = authService;
|
|
590
|
+
this.detailsService = detailsService;
|
|
591
|
+
this.validatorsProvider = validatorsProvider;
|
|
723
592
|
}
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
593
|
+
FormFactory.checkModelMeta = function (obj) {
|
|
594
|
+
if (!obj)
|
|
595
|
+
throw new Error("You should set object as param");
|
|
596
|
+
if (!Reflect.hasMetadata(models.SYMBOL_MODEL, obj.constructor))
|
|
597
|
+
throw new Error("You should mark class with @Model decorator");
|
|
727
598
|
};
|
|
728
|
-
|
|
729
|
-
return
|
|
730
|
-
var modalOptions, modal;
|
|
731
|
-
return __generator(this, function (_b) {
|
|
732
|
-
switch (_b.label) {
|
|
733
|
-
case 0:
|
|
734
|
-
modalOptions = {
|
|
735
|
-
component: options.component,
|
|
736
|
-
componentProps: options.props,
|
|
737
|
-
cssClass: options.cssClass ? options.cssClass : [],
|
|
738
|
-
backdropDismiss: options.backdropDismiss
|
|
739
|
-
};
|
|
740
|
-
if (options.mode === "bottom") {
|
|
741
|
-
modalOptions.cssClass.push('smart-modal-bottom');
|
|
742
|
-
}
|
|
743
|
-
return [4 /*yield*/, this.modalCtrl.create(modalOptions)];
|
|
744
|
-
case 1:
|
|
745
|
-
modal = _b.sent();
|
|
746
|
-
return [4 /*yield*/, modal.present()];
|
|
747
|
-
case 2:
|
|
748
|
-
_b.sent();
|
|
749
|
-
return [2 /*return*/, modal];
|
|
750
|
-
}
|
|
751
|
-
});
|
|
752
|
-
});
|
|
599
|
+
FormFactory.getOptions = function (obj, key) {
|
|
600
|
+
return Reflect.getMetadata(models.SYMBOL_FIELD, obj, key);
|
|
753
601
|
};
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
return
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
});
|
|
602
|
+
FormFactory.getOptionsFromMode = function (options, mode) {
|
|
603
|
+
var result = options;
|
|
604
|
+
if (!mode)
|
|
605
|
+
return result;
|
|
606
|
+
if (mode === "create" && ___namespace.isObject(options.create)) {
|
|
607
|
+
result = Object.assign(Object.assign({}, options), options.create);
|
|
608
|
+
}
|
|
609
|
+
else if (mode === "update" && ___namespace.isObject(options.update)) {
|
|
610
|
+
result = Object.assign(Object.assign({}, options), options.update);
|
|
611
|
+
}
|
|
612
|
+
return result;
|
|
766
613
|
};
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
770
|
-
ModalService.decorators = [
|
|
771
|
-
{ type: i0.Injectable }
|
|
772
|
-
];
|
|
773
|
-
/**
|
|
774
|
-
* @type {function(): !Array<(null|{
|
|
775
|
-
* type: ?,
|
|
776
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
777
|
-
* })>}
|
|
778
|
-
* @nocollapse
|
|
779
|
-
*/
|
|
780
|
-
ModalService.ctorParameters = function () { return [
|
|
781
|
-
{ type: i1.ModalController },
|
|
782
|
-
{ type: i1.NavParams, decorators: [{ type: i0.Optional }] }
|
|
783
|
-
]; };
|
|
784
|
-
|
|
785
|
-
var DynamicComponentLoader = /** @class */ (function () {
|
|
786
|
-
function DynamicComponentLoader(resolver, injector) {
|
|
787
|
-
this.resolver = resolver;
|
|
788
|
-
this.injector = injector;
|
|
789
|
-
}
|
|
790
|
-
DynamicComponentLoader.prototype.getComponentsWithFactories = function (options) {
|
|
614
|
+
FormFactory.prototype.create = function (obj, ops) {
|
|
615
|
+
if (ops === void 0) { ops = {}; }
|
|
791
616
|
return __awaiter(this, void 0, void 0, function () {
|
|
792
|
-
var
|
|
617
|
+
var result, fields, enabledDefinitions, _loop_1, this_1, index, rootCheck;
|
|
793
618
|
var _this = this;
|
|
794
|
-
return __generator(this, function (
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
619
|
+
return __generator(this, function (_l) {
|
|
620
|
+
switch (_l.label) {
|
|
621
|
+
case 0:
|
|
622
|
+
FormFactory.checkModelMeta(obj);
|
|
623
|
+
result = SmartFormGroup.create();
|
|
624
|
+
fields = models.getModelFieldsWithOptions(obj).filter(function (field) {
|
|
625
|
+
var _a, _b;
|
|
626
|
+
return (!ops.mode ||
|
|
627
|
+
(ops.mode === "create" && field.options.create) ||
|
|
628
|
+
(ops.mode === "update" && field.options.update) ||
|
|
629
|
+
(ops.mode === "multiUpdate" && ((_b = (_a = field.options) === null || _a === void 0 ? void 0 : _a.update) === null || _b === void 0 ? void 0 : _b.multi)) ||
|
|
630
|
+
(ops.mode !== "create" &&
|
|
631
|
+
ops.mode !== "update" &&
|
|
632
|
+
field.options.customs &&
|
|
633
|
+
field.options.customs.some(function (custom) { return custom.mode === ops.mode; })));
|
|
634
|
+
});
|
|
635
|
+
enabledDefinitions = [];
|
|
636
|
+
_loop_1 = function (index) {
|
|
637
|
+
var field, control, options, indexField, _m, _o, providerResult, confirmControl;
|
|
638
|
+
return __generator(this, function (_p) {
|
|
639
|
+
switch (_p.label) {
|
|
640
|
+
case 0:
|
|
641
|
+
field = fields[index];
|
|
642
|
+
control = null;
|
|
643
|
+
options = FormFactory.getOptionsFromMode(field.options, ops.mode);
|
|
644
|
+
if (options.permissions && !this_1.authService.expectPermissions(options.permissions)) {
|
|
645
|
+
return [2 /*return*/, "continue"];
|
|
646
|
+
}
|
|
647
|
+
if (!(field.options.type === models.FieldType.object)) return [3 /*break*/, 2];
|
|
648
|
+
return [4 /*yield*/, this_1.create(obj[field.key], Object.assign(Object.assign({}, ops), { root: ops.root ? ops.root : result }))];
|
|
649
|
+
case 1:
|
|
650
|
+
control = _p.sent();
|
|
651
|
+
return [3 /*break*/, 8];
|
|
652
|
+
case 2:
|
|
653
|
+
if (!(field.options.type === models.FieldType.array)) return [3 /*break*/, 7];
|
|
654
|
+
control = this_1.fb.array([]);
|
|
655
|
+
if (!obj[field.key]) return [3 /*break*/, 6];
|
|
656
|
+
indexField = 0;
|
|
657
|
+
_p.label = 3;
|
|
658
|
+
case 3:
|
|
659
|
+
if (!(indexField < obj[field.key].length)) return [3 /*break*/, 6];
|
|
660
|
+
_o = (_m = control).push;
|
|
661
|
+
return [4 /*yield*/, this_1.create(obj[field.key][indexField], Object.assign(Object.assign({}, ops), { root: ops.root ? ops.root : result }))];
|
|
662
|
+
case 4:
|
|
663
|
+
_o.apply(_m, [_p.sent()]);
|
|
664
|
+
_p.label = 5;
|
|
665
|
+
case 5:
|
|
666
|
+
indexField++;
|
|
667
|
+
return [3 /*break*/, 3];
|
|
668
|
+
case 6: return [3 /*break*/, 8];
|
|
669
|
+
case 7:
|
|
670
|
+
control = this_1.createControl(obj, field, options.required);
|
|
671
|
+
_p.label = 8;
|
|
672
|
+
case 8:
|
|
673
|
+
this_1.setValidators(field.key, control, options, result, ops.uniqueProvider);
|
|
674
|
+
if (!this_1.validatorsProvider) return [3 /*break*/, 10];
|
|
675
|
+
return [4 /*yield*/, this_1.validatorsProvider.get({
|
|
676
|
+
key: field.key,
|
|
677
|
+
instance: obj,
|
|
678
|
+
type: obj.constructor,
|
|
679
|
+
base: {
|
|
680
|
+
validators: control.validator,
|
|
681
|
+
asyncValidators: control.asyncValidator
|
|
682
|
+
}
|
|
683
|
+
})];
|
|
684
|
+
case 9:
|
|
685
|
+
providerResult = _p.sent();
|
|
686
|
+
control.setValidators(providerResult.validators);
|
|
687
|
+
control.setAsyncValidators(providerResult.asyncValidators);
|
|
688
|
+
_p.label = 10;
|
|
689
|
+
case 10:
|
|
690
|
+
result.addControl(field.key, control);
|
|
691
|
+
if (options.confirm && options.type === models.FieldType.object) {
|
|
692
|
+
throw Error("Object not supported confirms");
|
|
693
|
+
}
|
|
694
|
+
if (options.confirm) {
|
|
695
|
+
confirmControl = this_1.fb.control(null, [
|
|
696
|
+
forms.Validators.required,
|
|
697
|
+
function (a) {
|
|
698
|
+
if (a.value !== result.controls[field.key].value) {
|
|
699
|
+
return {
|
|
700
|
+
confirm: true,
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
return null;
|
|
704
|
+
},
|
|
705
|
+
]);
|
|
706
|
+
result.addControl(field.key + "Confirm", confirmControl);
|
|
707
|
+
}
|
|
708
|
+
if (options.enabled) {
|
|
709
|
+
enabledDefinitions.push({
|
|
710
|
+
key: field.key,
|
|
711
|
+
control: control,
|
|
712
|
+
enabled: options.enabled
|
|
713
|
+
});
|
|
714
|
+
}
|
|
715
|
+
return [2 /*return*/];
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
};
|
|
719
|
+
this_1 = this;
|
|
720
|
+
index = 0;
|
|
721
|
+
_l.label = 1;
|
|
862
722
|
case 1:
|
|
863
|
-
|
|
864
|
-
return [
|
|
723
|
+
if (!(index < fields.length)) return [3 /*break*/, 4];
|
|
724
|
+
return [5 /*yield**/, _loop_1(index)];
|
|
725
|
+
case 2:
|
|
726
|
+
_l.sent();
|
|
727
|
+
_l.label = 3;
|
|
728
|
+
case 3:
|
|
729
|
+
index++;
|
|
730
|
+
return [3 /*break*/, 1];
|
|
731
|
+
case 4:
|
|
732
|
+
rootCheck = null;
|
|
733
|
+
if (enabledDefinitions.some(function (d) {
|
|
734
|
+
var _a;
|
|
735
|
+
return ((_a = d === null || d === void 0 ? void 0 : d.enabled) === null || _a === void 0 ? void 0 : _a.criteria) &&
|
|
736
|
+
Object.keys(d.enabled.criteria).some(function (k) { return k.indexOf(utils.SPECIFICATION_ROOT_KEY) === 0; });
|
|
737
|
+
}) && ops.root) {
|
|
738
|
+
rootCheck = ops.root;
|
|
739
|
+
}
|
|
740
|
+
(rootCheck ? rootCheck : result).valueChanges.pipe(operators.tap(function () {
|
|
741
|
+
enabledDefinitions.forEach(function (def) {
|
|
742
|
+
var enabled = utils.SpecificationService.valid(result.value, def.enabled, {
|
|
743
|
+
$root: rootCheck === null || rootCheck === void 0 ? void 0 : rootCheck.value
|
|
744
|
+
});
|
|
745
|
+
def.control['__smartDisabled'] = !enabled;
|
|
746
|
+
});
|
|
747
|
+
}), operators.delay(0)).subscribe(function () {
|
|
748
|
+
if (rootCheck)
|
|
749
|
+
_this.detailsService.setRoot(rootCheck.value, true);
|
|
750
|
+
enabledDefinitions.forEach(function (def) {
|
|
751
|
+
if (!def.control['__smartDisabled'] && !result.controls[def.key]) {
|
|
752
|
+
result.addControl(def.key, def.control);
|
|
753
|
+
result.updateValueAndValidity();
|
|
754
|
+
}
|
|
755
|
+
else if (def.control['__smartDisabled'] && result.controls[def.key]) {
|
|
756
|
+
result.removeControl(def.key);
|
|
757
|
+
result.updateValueAndValidity();
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
});
|
|
761
|
+
return [2 /*return*/, result];
|
|
865
762
|
}
|
|
866
763
|
});
|
|
867
764
|
});
|
|
868
765
|
};
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
* @type {function(): !Array<(null|{
|
|
877
|
-
* type: ?,
|
|
878
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
879
|
-
* })>}
|
|
880
|
-
* @nocollapse
|
|
881
|
-
*/
|
|
882
|
-
PopoverService.ctorParameters = function () { return [
|
|
883
|
-
{ type: i1.PopoverController }
|
|
884
|
-
]; };
|
|
885
|
-
|
|
886
|
-
var StyleService = /** @class */ (function () {
|
|
887
|
-
function StyleService(platform, platformId) {
|
|
888
|
-
this.platform = platform;
|
|
889
|
-
this.platformId = platformId;
|
|
890
|
-
}
|
|
891
|
-
StyleService.create = function (platform, platformId, el, style) {
|
|
892
|
-
var result = new StyleService(platform, platformId);
|
|
893
|
-
result.init(el, style);
|
|
894
|
-
return result;
|
|
895
|
-
};
|
|
896
|
-
StyleService.prototype.init = function (el, style) {
|
|
897
|
-
this._elementRef = el;
|
|
898
|
-
this.set(style);
|
|
899
|
-
};
|
|
900
|
-
StyleService.prototype.set = function (style) {
|
|
901
|
-
if (!style)
|
|
902
|
-
style = {};
|
|
903
|
-
if (!StyleService.style)
|
|
904
|
-
StyleService.style = {};
|
|
905
|
-
StyleService.style = Object.assign(Object.assign({}, StyleService.style), style);
|
|
906
|
-
this.execute();
|
|
907
|
-
};
|
|
908
|
-
StyleService.prototype.execute = function () {
|
|
909
|
-
this.setColor('primary');
|
|
910
|
-
this.setColor('secondary');
|
|
911
|
-
this.setColor('tertiary');
|
|
912
|
-
this.setColor('success');
|
|
913
|
-
this.setColor('warning');
|
|
914
|
-
this.setColor('danger');
|
|
915
|
-
this.setColor('dark');
|
|
916
|
-
this.setColor('medium');
|
|
917
|
-
this.setColor('light');
|
|
918
|
-
this.setFont();
|
|
919
|
-
this.setButton();
|
|
920
|
-
this.setMobileBreakpoint();
|
|
921
|
-
};
|
|
922
|
-
StyleService.prototype.setColor = function (name) {
|
|
923
|
-
this.setProperty("--smart-color-" + name, "color-" + name);
|
|
924
|
-
this.setProperty("--smart-color-" + name + "-rgb", "color-" + name + "-rgb");
|
|
925
|
-
this.setProperty("--smart-color-" + name + "-contrast", "color-" + name + "-contrast");
|
|
926
|
-
this.setProperty("--smart-color-" + name + "-contrast-rgb", "color-" + name + "-contrast-rgb");
|
|
927
|
-
this.setProperty("--smart-color-" + name + "-shade", "color-" + name + "-shade");
|
|
928
|
-
this.setProperty("--smart-color-" + name + "-tint", "color-" + name + "-tint");
|
|
929
|
-
this.setProperty("--ion-color-" + name, "color-" + name);
|
|
930
|
-
this.setProperty("--ion-color-" + name + "-rgb", "color-" + name + "-rgb");
|
|
931
|
-
this.setProperty("--ion-color-" + name + "-contrast", "color-" + name + "-contrast");
|
|
932
|
-
this.setProperty("--ion-color-" + name + "-contrast-rgb", "color-" + name + "-contrast-rgb");
|
|
933
|
-
this.setProperty("--ion-color-" + name + "-shade", "color-" + name + "-shade");
|
|
934
|
-
this.setProperty("--ion-color-" + name + "-tint", "color-" + name + "-tint");
|
|
935
|
-
};
|
|
936
|
-
StyleService.prototype.setProperty = function (property, type) {
|
|
937
|
-
if (!StyleService.style[type])
|
|
938
|
-
return;
|
|
939
|
-
var native = this._elementRef.nativeElement;
|
|
940
|
-
native.style.setProperty(property, StyleService.style[type]);
|
|
941
|
-
};
|
|
942
|
-
StyleService.prototype.setFont = function () {
|
|
943
|
-
if (common.isPlatformBrowser(this.platformId) && this.platform.is('ios')) {
|
|
944
|
-
this.setProperty('--ion-font-family', 'ios-font');
|
|
945
|
-
this.setProperty('--default-font-weight', 'ios-font-weight');
|
|
946
|
-
this.setProperty('--default-font-style', 'ios-font-style');
|
|
766
|
+
FormFactory.prototype.setValidators = function (key, control, options, form, uniqueProvider) {
|
|
767
|
+
var _this = this;
|
|
768
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
769
|
+
var result = [];
|
|
770
|
+
var asyncResult = [];
|
|
771
|
+
if (options.required) {
|
|
772
|
+
result.push(forms.Validators.required);
|
|
947
773
|
}
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
774
|
+
if (options.type === models.FieldType.email) {
|
|
775
|
+
result.push(function (c) {
|
|
776
|
+
if (!c.value)
|
|
777
|
+
return;
|
|
778
|
+
var reg = new RegExp("^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$");
|
|
779
|
+
if (reg.test(c.value))
|
|
780
|
+
return null;
|
|
781
|
+
return { email: true };
|
|
782
|
+
});
|
|
952
783
|
}
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
784
|
+
if (options.type === models.FieldType.phoneNumber) {
|
|
785
|
+
result.push(function (c) {
|
|
786
|
+
if (!c.value)
|
|
787
|
+
return;
|
|
788
|
+
var reg = new RegExp("^((\\+91-?)|0)?[0-9]{9}$");
|
|
789
|
+
if (reg.test(c.value))
|
|
790
|
+
return null;
|
|
791
|
+
return { phoneNumber: true };
|
|
792
|
+
});
|
|
957
793
|
}
|
|
794
|
+
if (options.type === models.FieldType.pesel) {
|
|
795
|
+
result.push(function (c) {
|
|
796
|
+
if (!c.value)
|
|
797
|
+
return;
|
|
798
|
+
if (utils.PeselService.isValid(c.value))
|
|
799
|
+
return null;
|
|
800
|
+
return { pesel: true };
|
|
801
|
+
});
|
|
802
|
+
}
|
|
803
|
+
if ((_a = options.possibilities) === null || _a === void 0 ? void 0 : _a.minLength) {
|
|
804
|
+
result.push(forms.Validators.minLength((_b = options.possibilities) === null || _b === void 0 ? void 0 : _b.minLength));
|
|
805
|
+
}
|
|
806
|
+
if ((_c = options.possibilities) === null || _c === void 0 ? void 0 : _c.maxLength) {
|
|
807
|
+
result.push(forms.Validators.maxLength((_d = options.possibilities) === null || _d === void 0 ? void 0 : _d.maxLength));
|
|
808
|
+
}
|
|
809
|
+
if (((_e = options.possibilities) === null || _e === void 0 ? void 0 : _e.min) || ((_f = options.possibilities) === null || _f === void 0 ? void 0 : _f.min) === 0) {
|
|
810
|
+
result.push(forms.Validators.min((_g = options.possibilities) === null || _g === void 0 ? void 0 : _g.min));
|
|
811
|
+
}
|
|
812
|
+
if (((_h = options.possibilities) === null || _h === void 0 ? void 0 : _h.max) || ((_j = options.possibilities) === null || _j === void 0 ? void 0 : _j.max) === 0) {
|
|
813
|
+
result.push(forms.Validators.max((_k = options.possibilities) === null || _k === void 0 ? void 0 : _k.max));
|
|
814
|
+
}
|
|
815
|
+
if (options.unique && uniqueProvider) {
|
|
816
|
+
asyncResult.push(function (c) { return __awaiter(_this, void 0, void 0, function () {
|
|
817
|
+
var record;
|
|
818
|
+
var _l;
|
|
819
|
+
return __generator(this, function (_m) {
|
|
820
|
+
switch (_m.label) {
|
|
821
|
+
case 0:
|
|
822
|
+
record = (_l = {},
|
|
823
|
+
_l[key] = options.type === models.FieldType.int ? c.value : "'" + c.value + "'",
|
|
824
|
+
_l);
|
|
825
|
+
if (form.value && options.unique.withFields) {
|
|
826
|
+
options.unique.withFields.forEach(function (fieldKey) {
|
|
827
|
+
record[fieldKey] = form.value[fieldKey];
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
return [4 /*yield*/, uniqueProvider(record)];
|
|
831
|
+
case 1:
|
|
832
|
+
if (_m.sent())
|
|
833
|
+
return [2 /*return*/, null];
|
|
834
|
+
return [2 /*return*/, {
|
|
835
|
+
invalidUnique: true
|
|
836
|
+
}];
|
|
837
|
+
}
|
|
838
|
+
});
|
|
839
|
+
}); });
|
|
840
|
+
}
|
|
841
|
+
control.setValidators(result);
|
|
842
|
+
control.setAsyncValidators(asyncResult);
|
|
958
843
|
};
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
844
|
+
FormFactory.prototype.createControl = function (obj, field, required) {
|
|
845
|
+
var result;
|
|
846
|
+
var zipCodeValidator = function (c) {
|
|
847
|
+
if (c.value && utils.ZipCodeService.isInvalid(c.value)) {
|
|
848
|
+
return {
|
|
849
|
+
invalidZipCode: true,
|
|
850
|
+
};
|
|
851
|
+
}
|
|
852
|
+
return null;
|
|
853
|
+
};
|
|
854
|
+
switch (field.options.type) {
|
|
855
|
+
case models.FieldType.address:
|
|
856
|
+
result = this.fb.group({
|
|
857
|
+
city: ["", required ? [forms.Validators.required] : null],
|
|
858
|
+
street: ["", required ? [forms.Validators.required] : null],
|
|
859
|
+
buildingNumber: ["", required ? [forms.Validators.required] : null],
|
|
860
|
+
flatNumber: [""],
|
|
861
|
+
zipCode: [
|
|
862
|
+
"",
|
|
863
|
+
required
|
|
864
|
+
? [forms.Validators.required, zipCodeValidator]
|
|
865
|
+
: [zipCodeValidator],
|
|
866
|
+
],
|
|
867
|
+
});
|
|
868
|
+
break;
|
|
869
|
+
default:
|
|
870
|
+
result = this.fb.control(null);
|
|
871
|
+
break;
|
|
872
|
+
}
|
|
873
|
+
var value = obj[field.key]
|
|
874
|
+
? obj[field.key]
|
|
875
|
+
: field.options.defaltValue
|
|
876
|
+
? field.options.defaltValue()
|
|
877
|
+
: null;
|
|
878
|
+
if (value)
|
|
879
|
+
result.setValue(value);
|
|
880
|
+
result.updateValueAndValidity();
|
|
881
|
+
return result;
|
|
971
882
|
};
|
|
972
|
-
return
|
|
883
|
+
return FormFactory;
|
|
973
884
|
}());
|
|
974
|
-
StyleService.style = null;
|
|
975
885
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
976
|
-
|
|
886
|
+
FormFactory.decorators = [
|
|
977
887
|
{ type: i0.Injectable }
|
|
978
888
|
];
|
|
979
889
|
/**
|
|
@@ -983,329 +893,339 @@
|
|
|
983
893
|
* })>}
|
|
984
894
|
* @nocollapse
|
|
985
895
|
*/
|
|
986
|
-
|
|
987
|
-
{ type:
|
|
988
|
-
{ type:
|
|
896
|
+
FormFactory.ctorParameters = function () { return [
|
|
897
|
+
{ type: forms.FormBuilder },
|
|
898
|
+
{ type: AuthService },
|
|
899
|
+
{ type: DetailsService },
|
|
900
|
+
{ type: IModelValidatorsProvider, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MODEL_VALIDATORS_PROVIDER,] }] }
|
|
989
901
|
]; };
|
|
990
902
|
|
|
991
|
-
var
|
|
992
|
-
|
|
993
|
-
'ios', 'ipad'
|
|
994
|
-
];
|
|
995
|
-
var FingerprintService = /** @class */ (function () {
|
|
996
|
-
function FingerprintService(platform, faio, translateService, storageService) {
|
|
997
|
-
this.platform = platform;
|
|
998
|
-
this.faio = faio;
|
|
999
|
-
this.translateService = translateService;
|
|
1000
|
-
this.storageService = storageService;
|
|
903
|
+
var SharedFactoriesModule = /** @class */ (function () {
|
|
904
|
+
function SharedFactoriesModule() {
|
|
1001
905
|
}
|
|
1002
|
-
|
|
1003
|
-
return FingerprintService.set || !!this.storageService.getItem('FINGERPINT_SET');
|
|
1004
|
-
};
|
|
1005
|
-
FingerprintService.prototype.setData = function (data) {
|
|
1006
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1007
|
-
var _a;
|
|
1008
|
-
var _this = this;
|
|
1009
|
-
return __generator(this, function (_b) {
|
|
1010
|
-
switch (_b.label) {
|
|
1011
|
-
case 0:
|
|
1012
|
-
_a = !this.isSet() && FINGERPRINT_PLATFORMS.some(function (p) { return _this.platform.is(p); });
|
|
1013
|
-
if (!_a) return [3 /*break*/, 2];
|
|
1014
|
-
return [4 /*yield*/, this.faio.isAvailable()];
|
|
1015
|
-
case 1:
|
|
1016
|
-
_a = (_b.sent());
|
|
1017
|
-
_b.label = 2;
|
|
1018
|
-
case 2:
|
|
1019
|
-
if (!_a) return [3 /*break*/, 4];
|
|
1020
|
-
return [4 /*yield*/, this.faio.registerBiometricSecret({
|
|
1021
|
-
secret: JSON.stringify(data)
|
|
1022
|
-
})];
|
|
1023
|
-
case 3:
|
|
1024
|
-
_b.sent();
|
|
1025
|
-
this.storageService.setItem('FINGERPINT_SET', "1");
|
|
1026
|
-
FingerprintService.set = true;
|
|
1027
|
-
return [2 /*return*/];
|
|
1028
|
-
case 4: return [2 /*return*/];
|
|
1029
|
-
}
|
|
1030
|
-
});
|
|
1031
|
-
});
|
|
1032
|
-
};
|
|
1033
|
-
FingerprintService.prototype.clearData = function () {
|
|
1034
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1035
|
-
return __generator(this, function (_a) {
|
|
1036
|
-
this.storageService.removeItem('FINGERPINT_SET');
|
|
1037
|
-
FingerprintService.set = false;
|
|
1038
|
-
return [2 /*return*/];
|
|
1039
|
-
});
|
|
1040
|
-
});
|
|
1041
|
-
};
|
|
1042
|
-
FingerprintService.prototype.getDate = function (options) {
|
|
1043
|
-
if (options === void 0) { options = {}; }
|
|
1044
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1045
|
-
var data;
|
|
1046
|
-
return __generator(this, function (_a) {
|
|
1047
|
-
switch (_a.label) {
|
|
1048
|
-
case 0:
|
|
1049
|
-
if (!options.force && !this.isSet())
|
|
1050
|
-
return [2 /*return*/, null];
|
|
1051
|
-
FingerprintService.set = true;
|
|
1052
|
-
return [4 /*yield*/, this.faio.loadBiometricSecret({
|
|
1053
|
-
title: this.translateService.instant('APP.signIn'),
|
|
1054
|
-
cancelButtonTitle: this.translateService.instant('cancel')
|
|
1055
|
-
})];
|
|
1056
|
-
case 1:
|
|
1057
|
-
data = _a.sent();
|
|
1058
|
-
// // to tests
|
|
1059
|
-
// const data = localStorage.getItem('TEST_FINGERPINT');
|
|
1060
|
-
return [2 /*return*/, JSON.parse(data)];
|
|
1061
|
-
}
|
|
1062
|
-
});
|
|
1063
|
-
});
|
|
1064
|
-
};
|
|
1065
|
-
return FingerprintService;
|
|
906
|
+
return SharedFactoriesModule;
|
|
1066
907
|
}());
|
|
1067
|
-
FingerprintService.set = false;
|
|
1068
908
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1069
|
-
|
|
1070
|
-
{ type: i0.
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
*/
|
|
1079
|
-
FingerprintService.ctorParameters = function () { return [
|
|
1080
|
-
{ type: i1.Platform },
|
|
1081
|
-
{ type: ngx.FingerprintAIO },
|
|
1082
|
-
{ type: core.TranslateService },
|
|
1083
|
-
{ type: StorageService }
|
|
1084
|
-
]; };
|
|
1085
|
-
|
|
1086
|
-
var Camera = core$1.Plugins.Camera;
|
|
1087
|
-
var CameraService = /** @class */ (function () {
|
|
1088
|
-
function CameraService() {
|
|
1089
|
-
}
|
|
1090
|
-
CameraService.prototype.getCapture = function (options) {
|
|
1091
|
-
if (options === void 0) { options = {}; }
|
|
1092
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1093
|
-
var image;
|
|
1094
|
-
return __generator(this, function (_a) {
|
|
1095
|
-
switch (_a.label) {
|
|
1096
|
-
case 0: return [4 /*yield*/, Camera.getPhoto({
|
|
1097
|
-
quality: options.quality ? options.quality : 100,
|
|
1098
|
-
resultType: core$1.CameraResultType.Base64
|
|
1099
|
-
})];
|
|
1100
|
-
case 1:
|
|
1101
|
-
image = _a.sent();
|
|
1102
|
-
return [2 /*return*/, {
|
|
1103
|
-
data: image.base64String,
|
|
1104
|
-
exif: image.exif
|
|
1105
|
-
}];
|
|
1106
|
-
}
|
|
1107
|
-
});
|
|
1108
|
-
});
|
|
1109
|
-
};
|
|
1110
|
-
return CameraService;
|
|
1111
|
-
}());
|
|
1112
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1113
|
-
CameraService.decorators = [
|
|
1114
|
-
{ type: i0.Injectable }
|
|
909
|
+
SharedFactoriesModule.decorators = [
|
|
910
|
+
{ type: i0.NgModule, args: [{
|
|
911
|
+
imports: [
|
|
912
|
+
forms.ReactiveFormsModule
|
|
913
|
+
],
|
|
914
|
+
providers: [
|
|
915
|
+
FormFactory
|
|
916
|
+
]
|
|
917
|
+
},] }
|
|
1115
918
|
];
|
|
1116
919
|
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
this.http = http;
|
|
1122
|
-
}
|
|
1123
|
-
FileService.prototype.upload = function (file, callback) {
|
|
1124
|
-
var formData = new FormData();
|
|
1125
|
-
formData.append('file', file, file.name);
|
|
1126
|
-
return this.http.post(this.config.apiUrl + '/attachments', formData, {
|
|
1127
|
-
reportProgress: true,
|
|
1128
|
-
observe: 'events'
|
|
1129
|
-
}).pipe(operators.map(function (event) {
|
|
1130
|
-
if (event.type === http.HttpEventType.UploadProgress) {
|
|
1131
|
-
var percentDone = Math.round(100 * event.loaded / event.total);
|
|
1132
|
-
return percentDone;
|
|
1133
|
-
}
|
|
1134
|
-
if (event.type === http.HttpEventType.Response) {
|
|
1135
|
-
if (callback)
|
|
1136
|
-
callback(event.body);
|
|
1137
|
-
return 100;
|
|
1138
|
-
}
|
|
1139
|
-
}));
|
|
1140
|
-
};
|
|
1141
|
-
FileService.prototype.download = function (id) {
|
|
1142
|
-
window.open(this.getUrl(id), '_blank').focus();
|
|
1143
|
-
};
|
|
1144
|
-
FileService.prototype.delete = function (id) {
|
|
1145
|
-
return this.http.delete(this.config.apiUrl + '/attachments/' + id).toPromise();
|
|
1146
|
-
};
|
|
1147
|
-
FileService.prototype.getUrl = function (id) {
|
|
1148
|
-
return this.config.apiUrl + '/attachments/' + id;
|
|
920
|
+
function setDefaultTranslationsAndLang(service) {
|
|
921
|
+
var map = {
|
|
922
|
+
'pl': TRANSLATE_DATA_PL,
|
|
923
|
+
'eng': TRANSLATE_DATA_ENG
|
|
1149
924
|
};
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
/**
|
|
1157
|
-
* @type {function(): !Array<(null|{
|
|
1158
|
-
* type: ?,
|
|
1159
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1160
|
-
* })>}
|
|
1161
|
-
* @nocollapse
|
|
1162
|
-
*/
|
|
1163
|
-
FileService.ctorParameters = function () { return [
|
|
1164
|
-
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [FILE_SERVICE_CONFIG,] }] },
|
|
1165
|
-
{ type: http.HttpClient }
|
|
1166
|
-
]; };
|
|
1167
|
-
|
|
1168
|
-
var CalendarService = /** @class */ (function () {
|
|
1169
|
-
function CalendarService() {
|
|
1170
|
-
var _this = this;
|
|
1171
|
-
this.state = {
|
|
1172
|
-
date: moment__namespace().add(2, 'year'),
|
|
1173
|
-
calendar: [
|
|
1174
|
-
{
|
|
1175
|
-
dates: null,
|
|
1176
|
-
monthName: null,
|
|
1177
|
-
number: null,
|
|
1178
|
-
year: null
|
|
1179
|
-
}
|
|
1180
|
-
]
|
|
1181
|
-
};
|
|
1182
|
-
this.setState = function (nextState) {
|
|
1183
|
-
_this.state = Object.assign(Object.assign({}, _this.state), nextState);
|
|
1184
|
-
};
|
|
1185
|
-
//this service is a singleton therefore its constructor will only
|
|
1186
|
-
//be called once during the application life cycle
|
|
1187
|
-
this.initCalendar();
|
|
925
|
+
Object.keys(map).forEach(function (key) {
|
|
926
|
+
service.setTranslation(key, map[key], true);
|
|
927
|
+
});
|
|
928
|
+
if (!service.currentLang) {
|
|
929
|
+
var lang = service.getBrowserLang();
|
|
930
|
+
service.use(lang);
|
|
1188
931
|
}
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
932
|
+
}
|
|
933
|
+
var TRANSLATE_DATA_ENG = {
|
|
934
|
+
details: 'details',
|
|
935
|
+
admin: 'admin',
|
|
936
|
+
add: 'add',
|
|
937
|
+
change: 'change',
|
|
938
|
+
confirm: 'confirm',
|
|
939
|
+
cancel: 'cancel',
|
|
940
|
+
delete: 'delete',
|
|
941
|
+
undo: 'undo',
|
|
942
|
+
search: 'search',
|
|
943
|
+
page: 'page',
|
|
944
|
+
filters: 'filters',
|
|
945
|
+
or: 'or',
|
|
946
|
+
signInQuicklyWith: 'sign in quickly with',
|
|
947
|
+
selected: "selected",
|
|
948
|
+
select: "select",
|
|
949
|
+
show: "show",
|
|
950
|
+
download: "download",
|
|
951
|
+
play: "play",
|
|
952
|
+
writeHere: "write here",
|
|
953
|
+
next: 'next',
|
|
954
|
+
prev: 'prev',
|
|
955
|
+
edit: "edit",
|
|
956
|
+
save: "save",
|
|
957
|
+
noResults: "no results",
|
|
958
|
+
CALENDAR: {
|
|
959
|
+
DAY_OF_WEEK: {
|
|
960
|
+
Mon: 'Mon',
|
|
961
|
+
Tue: 'Tue',
|
|
962
|
+
Wed: 'Wed',
|
|
963
|
+
Thu: 'Thu',
|
|
964
|
+
Fri: 'Fri',
|
|
965
|
+
Sat: 'Sat',
|
|
966
|
+
Sun: 'Sun',
|
|
967
|
+
},
|
|
968
|
+
MONTH: {
|
|
969
|
+
January: "January",
|
|
970
|
+
February: "February",
|
|
971
|
+
March: "March",
|
|
972
|
+
April: "April",
|
|
973
|
+
May: "May",
|
|
974
|
+
June: "June",
|
|
975
|
+
July: "July",
|
|
976
|
+
August: "August",
|
|
977
|
+
September: "September",
|
|
978
|
+
October: "October",
|
|
979
|
+
November: "November",
|
|
980
|
+
December: "December"
|
|
981
|
+
},
|
|
982
|
+
Today: "Today",
|
|
983
|
+
LastSevenDays: "Last 7 days",
|
|
984
|
+
ThisMonth: "This month",
|
|
985
|
+
Yesterday: "Yesterday",
|
|
986
|
+
LastThirtyDays: "Last 30 days",
|
|
987
|
+
LastMonth: "Last month"
|
|
988
|
+
},
|
|
989
|
+
OBJECT: {
|
|
990
|
+
deleted: 'object deleted',
|
|
991
|
+
confirmDelete: 'confirm delete object'
|
|
992
|
+
},
|
|
993
|
+
APP: {
|
|
994
|
+
logout: 'log out',
|
|
995
|
+
signIn: 'sign in',
|
|
996
|
+
logged: 'logged'
|
|
997
|
+
},
|
|
998
|
+
MODEL: {
|
|
999
|
+
body: 'body',
|
|
1000
|
+
buildingNumber: 'building number',
|
|
1001
|
+
city: 'city',
|
|
1002
|
+
date: 'date',
|
|
1003
|
+
disabled: 'disabled',
|
|
1004
|
+
email: 'email',
|
|
1005
|
+
file: 'file',
|
|
1006
|
+
firstName: 'first name',
|
|
1007
|
+
flatNumber: 'flat number',
|
|
1008
|
+
lastName: 'last name',
|
|
1009
|
+
password: 'password',
|
|
1010
|
+
passwordConfirm: 'confirm password',
|
|
1011
|
+
passwordReset: 'reset password',
|
|
1012
|
+
permissions: 'permissions',
|
|
1013
|
+
price: 'price',
|
|
1014
|
+
send: 'send',
|
|
1015
|
+
street: 'street',
|
|
1016
|
+
username: 'user name',
|
|
1017
|
+
zipCode: 'zip code',
|
|
1018
|
+
},
|
|
1019
|
+
INPUT: {
|
|
1020
|
+
ERRORS: {
|
|
1021
|
+
required: 'field is required',
|
|
1022
|
+
requires: 'fields are required',
|
|
1023
|
+
invalidNip: 'Invalid nip format',
|
|
1024
|
+
invalidUnique: 'Invalid unique value',
|
|
1025
|
+
invalidFileType: 'Invalid file type',
|
|
1026
|
+
confirm: 'bad confirmed',
|
|
1027
|
+
invalidEmailFormat: "invalid email format",
|
|
1028
|
+
invalidPhoneNumberFormat: "invalid phone number (000000000)",
|
|
1029
|
+
invalidPeselFormat: "invalid pesel",
|
|
1030
|
+
invalidMinLength: "min length",
|
|
1031
|
+
invalidMaxLength: "max length",
|
|
1032
|
+
invalidMin: 'min value',
|
|
1033
|
+
invalidMax: 'max value',
|
|
1034
|
+
upperLetters: "upper letters",
|
|
1035
|
+
lowerLetters: "lower letters",
|
|
1036
|
+
symbols: "string"
|
|
1037
|
+
},
|
|
1038
|
+
'PASSWORD-STRENGTH': {
|
|
1039
|
+
poor: 'poor',
|
|
1040
|
+
notGood: 'not ood',
|
|
1041
|
+
good: 'good'
|
|
1199
1042
|
}
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1043
|
+
},
|
|
1044
|
+
ERRORS: {
|
|
1045
|
+
invalidUsernameOrPassword: 'Invalid username or password',
|
|
1046
|
+
other: 'Error'
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
var TRANSLATE_DATA_PL = {
|
|
1050
|
+
details: 'szczegóły',
|
|
1051
|
+
admin: 'administrator',
|
|
1052
|
+
add: 'dodaj',
|
|
1053
|
+
change: 'zmień',
|
|
1054
|
+
confirm: 'potwierdź',
|
|
1055
|
+
cancel: 'anuluj',
|
|
1056
|
+
delete: 'usuń',
|
|
1057
|
+
undo: 'cofnij',
|
|
1058
|
+
search: 'wyszukaj',
|
|
1059
|
+
page: 'strona',
|
|
1060
|
+
filters: 'filtry',
|
|
1061
|
+
or: 'lub',
|
|
1062
|
+
signInQuicklyWith: 'szybko zaloguj się za pomocą',
|
|
1063
|
+
selected: "wybrano",
|
|
1064
|
+
select: "wybierz",
|
|
1065
|
+
show: "pokaż",
|
|
1066
|
+
download: "pobierz",
|
|
1067
|
+
play: "włącz",
|
|
1068
|
+
writeHere: "napisz tutaj",
|
|
1069
|
+
next: 'dalej',
|
|
1070
|
+
prev: 'wstecz',
|
|
1071
|
+
edit: "edycja",
|
|
1072
|
+
save: "zapisz",
|
|
1073
|
+
noResults: "brak wyników",
|
|
1074
|
+
CALENDAR: {
|
|
1075
|
+
DAY_OF_WEEK: {
|
|
1076
|
+
Mon: 'Pon',
|
|
1077
|
+
Tue: 'Wto',
|
|
1078
|
+
Wed: 'Śro',
|
|
1079
|
+
Thu: 'Czw',
|
|
1080
|
+
Fri: 'Pio',
|
|
1081
|
+
Sat: 'Sob',
|
|
1082
|
+
Sun: 'Nie',
|
|
1083
|
+
},
|
|
1084
|
+
MONTH: {
|
|
1085
|
+
January: "Styczeń",
|
|
1086
|
+
February: "Luty",
|
|
1087
|
+
March: "Marzec",
|
|
1088
|
+
April: "Kwiecień",
|
|
1089
|
+
May: "Maj",
|
|
1090
|
+
June: "Czerwiec",
|
|
1091
|
+
July: "Lipiec",
|
|
1092
|
+
August: "Sierpień",
|
|
1093
|
+
September: "Wrzesień",
|
|
1094
|
+
October: "Październik",
|
|
1095
|
+
November: "Listopad",
|
|
1096
|
+
December: "Grudzień"
|
|
1097
|
+
},
|
|
1098
|
+
Today: "Dzisiaj",
|
|
1099
|
+
LastSevenDays: "Ostatnie 7 dnii",
|
|
1100
|
+
ThisMonth: "Ten miesiąc",
|
|
1101
|
+
Yesterday: "Wczoraj",
|
|
1102
|
+
LastThirtyDays: "Ostatnie 30 dni",
|
|
1103
|
+
LastMonth: "Ostatni miesiąc"
|
|
1104
|
+
},
|
|
1105
|
+
OBJECT: {
|
|
1106
|
+
deleted: 'obiekt został usunięty',
|
|
1107
|
+
confirmDelete: 'potwierdź usunięcie'
|
|
1108
|
+
},
|
|
1109
|
+
APP: {
|
|
1110
|
+
logout: 'wyloguj się',
|
|
1111
|
+
logged: 'zalogowany',
|
|
1112
|
+
signIn: 'zaloguj się'
|
|
1113
|
+
},
|
|
1114
|
+
MODEL: {
|
|
1115
|
+
body: 'treść',
|
|
1116
|
+
buildingNumber: 'numer budynku',
|
|
1117
|
+
city: 'miasto',
|
|
1118
|
+
date: 'data',
|
|
1119
|
+
disabled: 'nieaktywny',
|
|
1120
|
+
email: 'email',
|
|
1121
|
+
file: 'plik',
|
|
1122
|
+
firstName: 'imię',
|
|
1123
|
+
flatNumber: 'numer lokalu',
|
|
1124
|
+
lastName: 'nazwisko',
|
|
1125
|
+
password: 'hasło',
|
|
1126
|
+
passwordConfirm: 'powtórz hasło',
|
|
1127
|
+
passwordReset: 'Nie pamiętam hasła',
|
|
1128
|
+
permissions: 'uprawnienia',
|
|
1129
|
+
price: 'cena',
|
|
1130
|
+
send: 'wyślij',
|
|
1131
|
+
street: 'ulica',
|
|
1132
|
+
username: 'nazwa użytkownika',
|
|
1133
|
+
zipCode: 'kod pocztowy',
|
|
1134
|
+
},
|
|
1135
|
+
INPUT: {
|
|
1136
|
+
ERRORS: {
|
|
1137
|
+
required: 'to pole jest wymagane',
|
|
1138
|
+
requires: 'te pola są wymagane',
|
|
1139
|
+
invalidNip: 'niepoprawny format nip',
|
|
1140
|
+
invalidUnique: 'wartość jest już w systemie',
|
|
1141
|
+
confirm: 'źle powtórzone',
|
|
1142
|
+
invalidEmailFormat: "niepoprawny adres email",
|
|
1143
|
+
invalidFileType: 'niepoprawny format pliku',
|
|
1144
|
+
invalidPhoneNumberFormat: "niepoprawny numer telefonu (000000000)",
|
|
1145
|
+
invalidPeselFormat: "niepoprawny numer pesel",
|
|
1146
|
+
invalidMinLength: "minimalna długość",
|
|
1147
|
+
invalidMaxLength: "maksymalna długość",
|
|
1148
|
+
invalidMin: "minimalna wartość",
|
|
1149
|
+
invalidMax: "maksymalna wartość",
|
|
1150
|
+
upperLetters: "duże litery",
|
|
1151
|
+
lowerLetters: "małe litery",
|
|
1152
|
+
symbols: "znaki specjalne"
|
|
1153
|
+
},
|
|
1154
|
+
'PASSWORD-STRENGTH': {
|
|
1155
|
+
poor: 'bardzo słabe',
|
|
1156
|
+
notGood: 'słabe',
|
|
1157
|
+
good: 'dobre'
|
|
1235
1158
|
}
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
var number = moment__namespace(date).format('MM');
|
|
1243
|
-
var monthLength = date.daysInMonth();
|
|
1244
|
-
var totalDatesInMonth = this.generateMonthDates(firstDay, monthLength);
|
|
1245
|
-
var emptyCellsBeforeFirstDay = Array(firstDay.weekday()).fill(null);
|
|
1246
|
-
var dates = __spreadArray(__spreadArray([], __read(emptyCellsBeforeFirstDay)), __read(totalDatesInMonth));
|
|
1247
|
-
return {
|
|
1248
|
-
dates: dates,
|
|
1249
|
-
monthName: monthName,
|
|
1250
|
-
number: number,
|
|
1251
|
-
year: year
|
|
1252
|
-
};
|
|
1253
|
-
};
|
|
1254
|
-
CalendarService.prototype.generateMonthDates = function (firstDay, length) {
|
|
1255
|
-
return Array(length).fill(null).map(function (v, i) { return moment__namespace(firstDay).add(i, 'day'); });
|
|
1256
|
-
};
|
|
1257
|
-
return CalendarService;
|
|
1258
|
-
}());
|
|
1259
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1260
|
-
CalendarService.decorators = [
|
|
1261
|
-
{ type: i0.Injectable }
|
|
1262
|
-
];
|
|
1263
|
-
/**
|
|
1264
|
-
* @type {function(): !Array<(null|{
|
|
1265
|
-
* type: ?,
|
|
1266
|
-
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1267
|
-
* })>}
|
|
1268
|
-
* @nocollapse
|
|
1269
|
-
*/
|
|
1270
|
-
CalendarService.ctorParameters = function () { return []; };
|
|
1159
|
+
},
|
|
1160
|
+
ERRORS: {
|
|
1161
|
+
invalidUsernameOrPassword: 'Niepoprawna nazwa użytkownika, lub hasło',
|
|
1162
|
+
other: 'Wystąpił błąd'
|
|
1163
|
+
}
|
|
1164
|
+
};
|
|
1271
1165
|
|
|
1272
|
-
var
|
|
1273
|
-
function
|
|
1274
|
-
this.
|
|
1275
|
-
this.alertController = alertController;
|
|
1276
|
-
this.toastController = toastController;
|
|
1166
|
+
var ToastService = /** @class */ (function () {
|
|
1167
|
+
function ToastService(toastCtrl) {
|
|
1168
|
+
this.toastCtrl = toastCtrl;
|
|
1277
1169
|
}
|
|
1278
|
-
|
|
1170
|
+
ToastService.prototype.addLockError = function () {
|
|
1171
|
+
++ToastService.lockError;
|
|
1172
|
+
};
|
|
1173
|
+
ToastService.prototype.removeLockError = function () {
|
|
1174
|
+
--ToastService.lockError;
|
|
1175
|
+
};
|
|
1176
|
+
ToastService.prototype.error = function (config) {
|
|
1279
1177
|
return __awaiter(this, void 0, void 0, function () {
|
|
1280
|
-
var
|
|
1178
|
+
var toast;
|
|
1281
1179
|
return __generator(this, function (_a) {
|
|
1282
1180
|
switch (_a.label) {
|
|
1283
|
-
case 0:
|
|
1284
|
-
|
|
1285
|
-
|
|
1181
|
+
case 0:
|
|
1182
|
+
if (ToastService.lockError)
|
|
1183
|
+
return [2 /*return*/];
|
|
1184
|
+
return [4 /*yield*/, this.toastCtrl.create({
|
|
1185
|
+
position: 'bottom',
|
|
1186
|
+
header: config.title,
|
|
1187
|
+
message: config.message,
|
|
1188
|
+
duration: config.duration ? config.duration : 2000,
|
|
1189
|
+
buttons: config.buttons ? config.buttons.map(function (b) {
|
|
1190
|
+
return {
|
|
1191
|
+
text: b.text,
|
|
1192
|
+
side: b.position,
|
|
1193
|
+
role: 'cancel',
|
|
1194
|
+
handler: b.handler
|
|
1195
|
+
};
|
|
1196
|
+
}) : null
|
|
1197
|
+
})];
|
|
1286
1198
|
case 1:
|
|
1287
|
-
|
|
1288
|
-
return [4 /*yield*/,
|
|
1199
|
+
toast = _a.sent();
|
|
1200
|
+
return [4 /*yield*/, toast.present()];
|
|
1289
1201
|
case 2:
|
|
1290
1202
|
_a.sent();
|
|
1291
|
-
return [2 /*return
|
|
1203
|
+
return [2 /*return*/];
|
|
1292
1204
|
}
|
|
1293
1205
|
});
|
|
1294
1206
|
});
|
|
1295
1207
|
};
|
|
1296
|
-
|
|
1208
|
+
ToastService.prototype.info = function (config) {
|
|
1297
1209
|
return __awaiter(this, void 0, void 0, function () {
|
|
1298
|
-
var
|
|
1210
|
+
var toast;
|
|
1299
1211
|
return __generator(this, function (_a) {
|
|
1300
1212
|
switch (_a.label) {
|
|
1301
|
-
case 0: return [4 /*yield*/, this.
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1213
|
+
case 0: return [4 /*yield*/, this.toastCtrl.create({
|
|
1214
|
+
position: 'bottom',
|
|
1215
|
+
header: config.title,
|
|
1216
|
+
message: config.message,
|
|
1217
|
+
duration: config.duration ? config.duration : 2000,
|
|
1218
|
+
buttons: config.buttons ? config.buttons.map(function (b) {
|
|
1219
|
+
return {
|
|
1220
|
+
text: b.text,
|
|
1221
|
+
side: b.position,
|
|
1222
|
+
handler: b.handler
|
|
1223
|
+
};
|
|
1224
|
+
}) : null
|
|
1305
1225
|
})];
|
|
1306
1226
|
case 1:
|
|
1307
|
-
|
|
1308
|
-
return [4 /*yield*/,
|
|
1227
|
+
toast = _a.sent();
|
|
1228
|
+
return [4 /*yield*/, toast.present()];
|
|
1309
1229
|
case 2:
|
|
1310
1230
|
_a.sent();
|
|
1311
1231
|
return [2 /*return*/];
|
|
@@ -1313,53 +1233,11 @@
|
|
|
1313
1233
|
});
|
|
1314
1234
|
});
|
|
1315
1235
|
};
|
|
1316
|
-
|
|
1317
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1318
|
-
var alert;
|
|
1319
|
-
return __generator(this, function (_a) {
|
|
1320
|
-
switch (_a.label) {
|
|
1321
|
-
case 0: return [4 /*yield*/, this.alertController.create({
|
|
1322
|
-
header: heading,
|
|
1323
|
-
message: msg,
|
|
1324
|
-
buttons: [
|
|
1325
|
-
{
|
|
1326
|
-
text: btnText,
|
|
1327
|
-
}
|
|
1328
|
-
]
|
|
1329
|
-
})];
|
|
1330
|
-
case 1:
|
|
1331
|
-
alert = _a.sent();
|
|
1332
|
-
return [4 /*yield*/, alert.present()];
|
|
1333
|
-
case 2:
|
|
1334
|
-
_a.sent();
|
|
1335
|
-
alert.onDidDismiss().then(function () { callback(); });
|
|
1336
|
-
return [2 /*return*/];
|
|
1337
|
-
}
|
|
1338
|
-
});
|
|
1339
|
-
});
|
|
1340
|
-
};
|
|
1341
|
-
UIService.prototype.showToast = function (msg, duration) {
|
|
1342
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1343
|
-
var toast;
|
|
1344
|
-
return __generator(this, function (_a) {
|
|
1345
|
-
switch (_a.label) {
|
|
1346
|
-
case 0: return [4 /*yield*/, this.toastController.create({
|
|
1347
|
-
message: msg,
|
|
1348
|
-
color: 'dark',
|
|
1349
|
-
duration: duration || 2000
|
|
1350
|
-
})];
|
|
1351
|
-
case 1:
|
|
1352
|
-
toast = _a.sent();
|
|
1353
|
-
toast.present();
|
|
1354
|
-
return [2 /*return*/, toast];
|
|
1355
|
-
}
|
|
1356
|
-
});
|
|
1357
|
-
});
|
|
1358
|
-
};
|
|
1359
|
-
return UIService;
|
|
1236
|
+
return ToastService;
|
|
1360
1237
|
}());
|
|
1238
|
+
ToastService.lockError = 0;
|
|
1361
1239
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1362
|
-
|
|
1240
|
+
ToastService.decorators = [
|
|
1363
1241
|
{ type: i0.Injectable }
|
|
1364
1242
|
];
|
|
1365
1243
|
/**
|
|
@@ -1369,36 +1247,48 @@
|
|
|
1369
1247
|
* })>}
|
|
1370
1248
|
* @nocollapse
|
|
1371
1249
|
*/
|
|
1372
|
-
|
|
1373
|
-
{ type: i1.LoadingController },
|
|
1374
|
-
{ type: i1.AlertController },
|
|
1250
|
+
ToastService.ctorParameters = function () { return [
|
|
1375
1251
|
{ type: i1.ToastController }
|
|
1376
1252
|
]; };
|
|
1377
1253
|
|
|
1378
|
-
var
|
|
1379
|
-
function
|
|
1380
|
-
this.
|
|
1254
|
+
var ErrorService = /** @class */ (function () {
|
|
1255
|
+
function ErrorService(toastService, translateService) {
|
|
1256
|
+
this.toastService = toastService;
|
|
1257
|
+
this.translateService = translateService;
|
|
1381
1258
|
}
|
|
1382
|
-
|
|
1259
|
+
ErrorService.prototype.log = function (obj) {
|
|
1383
1260
|
return __awaiter(this, void 0, void 0, function () {
|
|
1384
|
-
var
|
|
1261
|
+
var message;
|
|
1385
1262
|
return __generator(this, function (_a) {
|
|
1386
1263
|
switch (_a.label) {
|
|
1387
|
-
case 0:
|
|
1264
|
+
case 0:
|
|
1265
|
+
message = '';
|
|
1266
|
+
if (!(obj instanceof http.HttpErrorResponse)) return [3 /*break*/, 2];
|
|
1267
|
+
if (!(obj.error && obj.error.details === 'Invalid username or password')) return [3 /*break*/, 2];
|
|
1268
|
+
return [4 /*yield*/, this.translateService.get('ERRORS.invalidUsernameOrPassword').toPromise()];
|
|
1388
1269
|
case 1:
|
|
1389
|
-
|
|
1390
|
-
|
|
1270
|
+
message = _a.sent();
|
|
1271
|
+
_a.label = 2;
|
|
1391
1272
|
case 2:
|
|
1273
|
+
if (!!message) return [3 /*break*/, 4];
|
|
1274
|
+
return [4 /*yield*/, this.translateService.get('ERRORS.other').toPromise()];
|
|
1275
|
+
case 3:
|
|
1276
|
+
message = _a.sent();
|
|
1277
|
+
_a.label = 4;
|
|
1278
|
+
case 4:
|
|
1279
|
+
console.error(obj);
|
|
1280
|
+
return [4 /*yield*/, this.toastService.error({ message: message })];
|
|
1281
|
+
case 5:
|
|
1392
1282
|
_a.sent();
|
|
1393
1283
|
return [2 /*return*/];
|
|
1394
1284
|
}
|
|
1395
1285
|
});
|
|
1396
1286
|
});
|
|
1397
1287
|
};
|
|
1398
|
-
return
|
|
1288
|
+
return ErrorService;
|
|
1399
1289
|
}());
|
|
1400
1290
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1401
|
-
|
|
1291
|
+
ErrorService.decorators = [
|
|
1402
1292
|
{ type: i0.Injectable }
|
|
1403
1293
|
];
|
|
1404
1294
|
/**
|
|
@@ -1408,174 +1298,104 @@
|
|
|
1408
1298
|
* })>}
|
|
1409
1299
|
* @nocollapse
|
|
1410
1300
|
*/
|
|
1411
|
-
|
|
1412
|
-
{ type:
|
|
1301
|
+
ErrorService.ctorParameters = function () { return [
|
|
1302
|
+
{ type: ToastService },
|
|
1303
|
+
{ type: core.TranslateService }
|
|
1413
1304
|
]; };
|
|
1414
1305
|
|
|
1415
|
-
var
|
|
1416
|
-
function
|
|
1417
|
-
|
|
1418
|
-
return SharedServicesModule;
|
|
1419
|
-
}());
|
|
1420
|
-
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1421
|
-
SharedServicesModule.decorators = [
|
|
1422
|
-
{ type: i0.NgModule, args: [{
|
|
1423
|
-
imports: [
|
|
1424
|
-
i1.IonicModule,
|
|
1425
|
-
core.TranslateModule.forChild(),
|
|
1426
|
-
ngxCookie.CookieModule.forRoot(),
|
|
1427
|
-
],
|
|
1428
|
-
providers: [
|
|
1429
|
-
ToastService,
|
|
1430
|
-
ErrorService,
|
|
1431
|
-
HardwareService,
|
|
1432
|
-
ModalService,
|
|
1433
|
-
DynamicComponentLoader,
|
|
1434
|
-
PopoverService,
|
|
1435
|
-
StorageService,
|
|
1436
|
-
StyleService,
|
|
1437
|
-
AuthService,
|
|
1438
|
-
FingerprintService,
|
|
1439
|
-
ngx.FingerprintAIO,
|
|
1440
|
-
CameraService,
|
|
1441
|
-
FileService,
|
|
1442
|
-
CalendarService,
|
|
1443
|
-
UIService,
|
|
1444
|
-
AlertService
|
|
1445
|
-
],
|
|
1446
|
-
},] }
|
|
1447
|
-
];
|
|
1448
|
-
|
|
1449
|
-
/**
|
|
1450
|
-
* Only to use in smart-page
|
|
1451
|
-
* @requires PageComponent
|
|
1452
|
-
*/
|
|
1453
|
-
var MenuService = /** @class */ (function () {
|
|
1454
|
-
function MenuService(menuCtrl, resolver) {
|
|
1455
|
-
this.menuCtrl = menuCtrl;
|
|
1456
|
-
this.resolver = resolver;
|
|
1457
|
-
this._openedEnd = false;
|
|
1458
|
-
this._menuItemsSource = new rxjs.BehaviorSubject([]);
|
|
1459
|
-
this.menuItems$ = this._menuItemsSource.asObservable();
|
|
1306
|
+
var HardwareService = /** @class */ (function () {
|
|
1307
|
+
function HardwareService(platform) {
|
|
1308
|
+
this.platform = platform;
|
|
1460
1309
|
}
|
|
1461
|
-
Object.defineProperty(
|
|
1462
|
-
/**
|
|
1463
|
-
* @desc checking if the menu is open (menu on the right side of the screen)
|
|
1464
|
-
*/
|
|
1310
|
+
Object.defineProperty(HardwareService.prototype, "isMobile", {
|
|
1465
1311
|
get: function () {
|
|
1466
|
-
return this.
|
|
1312
|
+
return this.platform.is('capacitor');
|
|
1467
1313
|
},
|
|
1468
1314
|
enumerable: false,
|
|
1469
1315
|
configurable: true
|
|
1470
1316
|
});
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1317
|
+
Object.defineProperty(HardwareService.prototype, "isMobileWeb", {
|
|
1318
|
+
get: function () {
|
|
1319
|
+
return this.platform.is('mobileweb');
|
|
1320
|
+
},
|
|
1321
|
+
enumerable: false,
|
|
1322
|
+
configurable: true
|
|
1323
|
+
});
|
|
1324
|
+
HardwareService.prototype.onBackButtonClick = function (callback) {
|
|
1325
|
+
return core$1.App.addListener('backButton', function () {
|
|
1326
|
+
callback();
|
|
1476
1327
|
});
|
|
1477
|
-
this._menuItemsSource.next(items);
|
|
1478
|
-
};
|
|
1479
|
-
MenuService.prototype.setMenuItems = function (items) {
|
|
1480
|
-
this._menuItemsSource.next(items);
|
|
1481
1328
|
};
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1329
|
+
return HardwareService;
|
|
1330
|
+
}());
|
|
1331
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1332
|
+
HardwareService.decorators = [
|
|
1333
|
+
{ type: i0.Injectable }
|
|
1334
|
+
];
|
|
1335
|
+
/**
|
|
1336
|
+
* @type {function(): !Array<(null|{
|
|
1337
|
+
* type: ?,
|
|
1338
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1339
|
+
* })>}
|
|
1340
|
+
* @nocollapse
|
|
1341
|
+
*/
|
|
1342
|
+
HardwareService.ctorParameters = function () { return [
|
|
1343
|
+
{ type: i1.Platform }
|
|
1344
|
+
]; };
|
|
1345
|
+
|
|
1346
|
+
var ModalService = /** @class */ (function () {
|
|
1347
|
+
function ModalService(modalCtrl, navParams) {
|
|
1348
|
+
this.modalCtrl = modalCtrl;
|
|
1349
|
+
this.navParams = navParams;
|
|
1350
|
+
}
|
|
1351
|
+
ModalService.prototype.getParam = function (key) {
|
|
1352
|
+
var _a;
|
|
1353
|
+
return (_a = this.navParams) === null || _a === void 0 ? void 0 : _a.get(key);
|
|
1498
1354
|
};
|
|
1499
|
-
|
|
1500
|
-
* @desc open menu (menu on the right side of the screen)
|
|
1501
|
-
* @param {object} options - use options
|
|
1502
|
-
* @param {class} options.component - angular component to render
|
|
1503
|
-
* @param {class} options.injector - angular injector to use in component
|
|
1504
|
-
*/
|
|
1505
|
-
MenuService.prototype.openEnd = function (options) {
|
|
1355
|
+
ModalService.prototype.show = function (options) {
|
|
1506
1356
|
return __awaiter(this, void 0, void 0, function () {
|
|
1507
|
-
var
|
|
1357
|
+
var modalOptions, modal;
|
|
1508
1358
|
return __generator(this, function (_b) {
|
|
1509
1359
|
switch (_b.label) {
|
|
1510
1360
|
case 0:
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1361
|
+
modalOptions = {
|
|
1362
|
+
component: options.component,
|
|
1363
|
+
componentProps: options.props,
|
|
1364
|
+
cssClass: options.cssClass ? options.cssClass : [],
|
|
1365
|
+
backdropDismiss: options.backdropDismiss
|
|
1366
|
+
};
|
|
1367
|
+
if (options.mode === "bottom") {
|
|
1368
|
+
modalOptions.cssClass.push('smart-modal-bottom');
|
|
1517
1369
|
}
|
|
1518
|
-
return [4 /*yield*/, this.
|
|
1370
|
+
return [4 /*yield*/, this.modalCtrl.create(modalOptions)];
|
|
1519
1371
|
case 1:
|
|
1520
|
-
_b.sent();
|
|
1521
|
-
return [4 /*yield*/,
|
|
1372
|
+
modal = _b.sent();
|
|
1373
|
+
return [4 /*yield*/, modal.present()];
|
|
1522
1374
|
case 2:
|
|
1523
1375
|
_b.sent();
|
|
1524
|
-
return [2 /*return
|
|
1376
|
+
return [2 /*return*/, modal];
|
|
1525
1377
|
}
|
|
1526
1378
|
});
|
|
1527
1379
|
});
|
|
1528
1380
|
};
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
*/
|
|
1532
|
-
MenuService.prototype.closeStart = function () {
|
|
1381
|
+
ModalService.prototype.dismiss = function (data) {
|
|
1382
|
+
if (data === void 0) { data = null; }
|
|
1533
1383
|
return __awaiter(this, void 0, void 0, function () {
|
|
1534
1384
|
return __generator(this, function (_b) {
|
|
1535
1385
|
switch (_b.label) {
|
|
1536
|
-
case 0:
|
|
1537
|
-
this._openedEnd = false;
|
|
1538
|
-
return [4 /*yield*/, this.menuCtrl.close("start")];
|
|
1386
|
+
case 0: return [4 /*yield*/, this.modalCtrl.dismiss(data)];
|
|
1539
1387
|
case 1:
|
|
1540
|
-
_b.sent();
|
|
1541
|
-
return [4 /*yield*/, this.menuCtrl.enable(false, "start")];
|
|
1542
|
-
case 2:
|
|
1543
1388
|
_b.sent();
|
|
1544
1389
|
return [2 /*return*/];
|
|
1545
1390
|
}
|
|
1546
1391
|
});
|
|
1547
1392
|
});
|
|
1548
1393
|
};
|
|
1549
|
-
|
|
1550
|
-
* @desc close menu (menu on the right side of the screen)
|
|
1551
|
-
*/
|
|
1552
|
-
MenuService.prototype.closeEnd = function () {
|
|
1553
|
-
var _a;
|
|
1554
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
1555
|
-
return __generator(this, function (_b) {
|
|
1556
|
-
switch (_b.label) {
|
|
1557
|
-
case 0:
|
|
1558
|
-
this._openedEnd = false;
|
|
1559
|
-
return [4 /*yield*/, this.menuCtrl.close("end")];
|
|
1560
|
-
case 1:
|
|
1561
|
-
_b.sent();
|
|
1562
|
-
return [4 /*yield*/, this.menuCtrl.enable(false, "end")];
|
|
1563
|
-
case 2:
|
|
1564
|
-
_b.sent();
|
|
1565
|
-
(_a = this._endContainer) === null || _a === void 0 ? void 0 : _a.clear();
|
|
1566
|
-
return [2 /*return*/];
|
|
1567
|
-
}
|
|
1568
|
-
});
|
|
1569
|
-
});
|
|
1570
|
-
};
|
|
1571
|
-
return MenuService;
|
|
1394
|
+
return ModalService;
|
|
1572
1395
|
}());
|
|
1573
|
-
/** @nocollapse */ MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(i0__namespace.ɵɵinject(i1__namespace.MenuController), i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver)); }, token: MenuService, providedIn: "root" });
|
|
1574
1396
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1575
|
-
|
|
1576
|
-
{ type: i0.Injectable
|
|
1577
|
-
providedIn: "root",
|
|
1578
|
-
},] }
|
|
1397
|
+
ModalService.decorators = [
|
|
1398
|
+
{ type: i0.Injectable }
|
|
1579
1399
|
];
|
|
1580
1400
|
/**
|
|
1581
1401
|
* @type {function(): !Array<(null|{
|
|
@@ -1584,355 +1404,181 @@
|
|
|
1584
1404
|
* })>}
|
|
1585
1405
|
* @nocollapse
|
|
1586
1406
|
*/
|
|
1587
|
-
|
|
1588
|
-
{ type: i1.
|
|
1589
|
-
{ type: i0.
|
|
1407
|
+
ModalService.ctorParameters = function () { return [
|
|
1408
|
+
{ type: i1.ModalController },
|
|
1409
|
+
{ type: i1.NavParams, decorators: [{ type: i0.Optional }] }
|
|
1590
1410
|
]; };
|
|
1591
1411
|
|
|
1592
|
-
var
|
|
1593
|
-
function
|
|
1594
|
-
this.
|
|
1412
|
+
var DynamicComponentLoader = /** @class */ (function () {
|
|
1413
|
+
function DynamicComponentLoader(resolver, injector) {
|
|
1414
|
+
this.resolver = resolver;
|
|
1415
|
+
this.injector = injector;
|
|
1595
1416
|
}
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
var
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1417
|
+
DynamicComponentLoader.prototype.getComponentsWithFactories = function (options) {
|
|
1418
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1419
|
+
var components, result;
|
|
1420
|
+
var _this = this;
|
|
1421
|
+
return __generator(this, function (_a) {
|
|
1422
|
+
components = [];
|
|
1423
|
+
components = options.components.filter(function (comp) { return !DynamicComponentLoader.declaredComponents.some(function (dec) { return dec.component === comp; }); }) || [];
|
|
1424
|
+
result = options.components.map(function (c) {
|
|
1425
|
+
var factory = _this.resolver.resolveComponentFactory(c);
|
|
1426
|
+
if (!factory) {
|
|
1427
|
+
factory = DynamicComponentLoader.declaredComponents.find(function (x) { return x.component === c; }).factory;
|
|
1428
|
+
}
|
|
1429
|
+
return {
|
|
1430
|
+
component: c,
|
|
1431
|
+
factory: factory,
|
|
1432
|
+
};
|
|
1602
1433
|
});
|
|
1603
|
-
|
|
1604
|
-
return;
|
|
1605
|
-
}
|
|
1606
|
-
}
|
|
1607
|
-
AppService._endButtonsSource$.next(utils.ArrayService.addItem(AppService._endButtonsSource$.value, button));
|
|
1608
|
-
};
|
|
1609
|
-
AppService.prototype.removeEndButton = function (buttonOrId) {
|
|
1610
|
-
if (typeof buttonOrId === 'object') {
|
|
1611
|
-
var button = buttonOrId.id ?
|
|
1612
|
-
AppService._endButtonsSource$.value.find(function (e) { return e.id === buttonOrId.id; })
|
|
1613
|
-
: buttonOrId;
|
|
1614
|
-
AppService._endButtonsSource$.next(utils.ArrayService.removeItem(AppService._endButtonsSource$.value, button));
|
|
1615
|
-
return;
|
|
1616
|
-
}
|
|
1617
|
-
AppService._endButtonsSource$.next(__spreadArray([], __read(AppService._endButtonsSource$.value.filter(function (e) { return e.id !== buttonOrId; }))));
|
|
1434
|
+
DynamicComponentLoader.declaredComponents = __spreadArray(__spreadArray([], __read(DynamicComponentLoader.declaredComponents)), __read(result));
|
|
1435
|
+
return [2 /*return*/, result];
|
|
1436
|
+
});
|
|
1437
|
+
});
|
|
1618
1438
|
};
|
|
1619
|
-
return
|
|
1439
|
+
return DynamicComponentLoader;
|
|
1620
1440
|
}());
|
|
1621
|
-
|
|
1622
|
-
/** @nocollapse */ AppService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppService_Factory() { return new AppService(); }, token: AppService, providedIn: "root" });
|
|
1441
|
+
DynamicComponentLoader.declaredComponents = [];
|
|
1623
1442
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1624
|
-
|
|
1625
|
-
{ type: i0.Injectable
|
|
1626
|
-
providedIn: 'root'
|
|
1627
|
-
},] }
|
|
1443
|
+
DynamicComponentLoader.decorators = [
|
|
1444
|
+
{ type: i0.Injectable }
|
|
1628
1445
|
];
|
|
1446
|
+
/**
|
|
1447
|
+
* @type {function(): !Array<(null|{
|
|
1448
|
+
* type: ?,
|
|
1449
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1450
|
+
* })>}
|
|
1451
|
+
* @nocollapse
|
|
1452
|
+
*/
|
|
1453
|
+
DynamicComponentLoader.ctorParameters = function () { return [
|
|
1454
|
+
{ type: i0.ComponentFactoryResolver },
|
|
1455
|
+
{ type: i0.Injector }
|
|
1456
|
+
]; };
|
|
1629
1457
|
|
|
1630
|
-
var
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1458
|
+
var PopoverService = /** @class */ (function () {
|
|
1459
|
+
function PopoverService(popoverCtrl) {
|
|
1460
|
+
this.popoverCtrl = popoverCtrl;
|
|
1634
1461
|
}
|
|
1635
|
-
|
|
1636
|
-
return
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1462
|
+
PopoverService.prototype.close = function () {
|
|
1463
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1464
|
+
return __generator(this, function (_a) {
|
|
1465
|
+
switch (_a.label) {
|
|
1466
|
+
case 0: return [4 /*yield*/, this.popoverCtrl.dismiss()];
|
|
1467
|
+
case 1:
|
|
1468
|
+
_a.sent();
|
|
1469
|
+
return [2 /*return*/];
|
|
1470
|
+
}
|
|
1471
|
+
});
|
|
1644
1472
|
});
|
|
1645
1473
|
};
|
|
1646
|
-
return
|
|
1647
|
-
}(
|
|
1474
|
+
return PopoverService;
|
|
1475
|
+
}());
|
|
1476
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1477
|
+
PopoverService.decorators = [
|
|
1478
|
+
{ type: i0.Injectable }
|
|
1479
|
+
];
|
|
1480
|
+
/**
|
|
1481
|
+
* @type {function(): !Array<(null|{
|
|
1482
|
+
* type: ?,
|
|
1483
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1484
|
+
* })>}
|
|
1485
|
+
* @nocollapse
|
|
1486
|
+
*/
|
|
1487
|
+
PopoverService.ctorParameters = function () { return [
|
|
1488
|
+
{ type: i1.PopoverController }
|
|
1489
|
+
]; };
|
|
1648
1490
|
|
|
1649
|
-
var
|
|
1650
|
-
function
|
|
1651
|
-
this.
|
|
1652
|
-
this.
|
|
1653
|
-
this.validatorsProvider = validatorsProvider;
|
|
1491
|
+
var StyleService = /** @class */ (function () {
|
|
1492
|
+
function StyleService(platform, platformId) {
|
|
1493
|
+
this.platform = platform;
|
|
1494
|
+
this.platformId = platformId;
|
|
1654
1495
|
}
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
throw new Error("You should mark class with @Model decorator");
|
|
1496
|
+
StyleService.create = function (platform, platformId, el, style) {
|
|
1497
|
+
var result = new StyleService(platform, platformId);
|
|
1498
|
+
result.init(el, style);
|
|
1499
|
+
return result;
|
|
1660
1500
|
};
|
|
1661
|
-
|
|
1662
|
-
|
|
1501
|
+
StyleService.prototype.init = function (el, style) {
|
|
1502
|
+
this._elementRef = el;
|
|
1503
|
+
this.set(style);
|
|
1663
1504
|
};
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1505
|
+
StyleService.prototype.set = function (style) {
|
|
1506
|
+
if (!style)
|
|
1507
|
+
style = {};
|
|
1508
|
+
if (!StyleService.style)
|
|
1509
|
+
StyleService.style = {};
|
|
1510
|
+
StyleService.style = Object.assign(Object.assign({}, StyleService.style), style);
|
|
1511
|
+
this.execute();
|
|
1512
|
+
};
|
|
1513
|
+
StyleService.prototype.execute = function () {
|
|
1514
|
+
this.setColor('primary');
|
|
1515
|
+
this.setColor('secondary');
|
|
1516
|
+
this.setColor('tertiary');
|
|
1517
|
+
this.setColor('success');
|
|
1518
|
+
this.setColor('warning');
|
|
1519
|
+
this.setColor('danger');
|
|
1520
|
+
this.setColor('dark');
|
|
1521
|
+
this.setColor('medium');
|
|
1522
|
+
this.setColor('light');
|
|
1523
|
+
this.setFont();
|
|
1524
|
+
this.setButton();
|
|
1525
|
+
this.setMobileBreakpoint();
|
|
1526
|
+
};
|
|
1527
|
+
StyleService.prototype.setColor = function (name) {
|
|
1528
|
+
this.setProperty("--smart-color-" + name, "color-" + name);
|
|
1529
|
+
this.setProperty("--smart-color-" + name + "-rgb", "color-" + name + "-rgb");
|
|
1530
|
+
this.setProperty("--smart-color-" + name + "-contrast", "color-" + name + "-contrast");
|
|
1531
|
+
this.setProperty("--smart-color-" + name + "-contrast-rgb", "color-" + name + "-contrast-rgb");
|
|
1532
|
+
this.setProperty("--smart-color-" + name + "-shade", "color-" + name + "-shade");
|
|
1533
|
+
this.setProperty("--smart-color-" + name + "-tint", "color-" + name + "-tint");
|
|
1534
|
+
this.setProperty("--ion-color-" + name, "color-" + name);
|
|
1535
|
+
this.setProperty("--ion-color-" + name + "-rgb", "color-" + name + "-rgb");
|
|
1536
|
+
this.setProperty("--ion-color-" + name + "-contrast", "color-" + name + "-contrast");
|
|
1537
|
+
this.setProperty("--ion-color-" + name + "-contrast-rgb", "color-" + name + "-contrast-rgb");
|
|
1538
|
+
this.setProperty("--ion-color-" + name + "-shade", "color-" + name + "-shade");
|
|
1539
|
+
this.setProperty("--ion-color-" + name + "-tint", "color-" + name + "-tint");
|
|
1540
|
+
};
|
|
1541
|
+
StyleService.prototype.setProperty = function (property, type) {
|
|
1542
|
+
if (!StyleService.style[type])
|
|
1543
|
+
return;
|
|
1544
|
+
var native = this._elementRef.nativeElement;
|
|
1545
|
+
native.style.setProperty(property, StyleService.style[type]);
|
|
1546
|
+
};
|
|
1547
|
+
StyleService.prototype.setFont = function () {
|
|
1548
|
+
if (common.isPlatformBrowser(this.platformId) && this.platform.is('ios')) {
|
|
1549
|
+
this.setProperty('--ion-font-family', 'ios-font');
|
|
1550
|
+
this.setProperty('--default-font-weight', 'ios-font-weight');
|
|
1551
|
+
this.setProperty('--default-font-style', 'ios-font-style');
|
|
1670
1552
|
}
|
|
1671
|
-
else if (
|
|
1672
|
-
|
|
1553
|
+
else if (common.isPlatformBrowser(this.platformId) && this.platform.is("android")) {
|
|
1554
|
+
this.setProperty('--ion-font-family', 'md-font');
|
|
1555
|
+
this.setProperty('--default-font-weight', 'md-font-weight');
|
|
1556
|
+
this.setProperty('--default-font-style', 'md-font-style');
|
|
1557
|
+
}
|
|
1558
|
+
else {
|
|
1559
|
+
this.setProperty('--ion-font-family', 'font');
|
|
1560
|
+
this.setProperty('--default-font-weight', 'font-weight');
|
|
1561
|
+
this.setProperty('--default-font-style', 'font-style');
|
|
1673
1562
|
}
|
|
1674
|
-
return result;
|
|
1675
1563
|
};
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
result = SmartFormGroup.create();
|
|
1685
|
-
fields = models.getModelFieldsWithOptions(obj).filter(function (field) {
|
|
1686
|
-
var _a, _b;
|
|
1687
|
-
return (!ops.mode ||
|
|
1688
|
-
(ops.mode === "create" && field.options.create) ||
|
|
1689
|
-
(ops.mode === "update" && field.options.update) ||
|
|
1690
|
-
(ops.mode === "multiUpdate" && ((_b = (_a = field.options) === null || _a === void 0 ? void 0 : _a.update) === null || _b === void 0 ? void 0 : _b.multi)) ||
|
|
1691
|
-
(ops.mode !== "create" &&
|
|
1692
|
-
ops.mode !== "update" &&
|
|
1693
|
-
field.options.customs &&
|
|
1694
|
-
field.options.customs.some(function (custom) { return custom.mode === ops.mode; })));
|
|
1695
|
-
});
|
|
1696
|
-
enabledDefinitions = [];
|
|
1697
|
-
_loop_1 = function (index) {
|
|
1698
|
-
var field, control, options, indexField, _m, _o, providerResult, confirmControl;
|
|
1699
|
-
return __generator(this, function (_p) {
|
|
1700
|
-
switch (_p.label) {
|
|
1701
|
-
case 0:
|
|
1702
|
-
field = fields[index];
|
|
1703
|
-
control = null;
|
|
1704
|
-
options = FormFactory.getOptionsFromMode(field.options, ops.mode);
|
|
1705
|
-
if (options.permissions && !this_1.authService.expectPermissions(options.permissions)) {
|
|
1706
|
-
return [2 /*return*/, "continue"];
|
|
1707
|
-
}
|
|
1708
|
-
if (!(field.options.type === models.FieldType.object)) return [3 /*break*/, 2];
|
|
1709
|
-
return [4 /*yield*/, this_1.create(obj[field.key], ops)];
|
|
1710
|
-
case 1:
|
|
1711
|
-
control = _p.sent();
|
|
1712
|
-
return [3 /*break*/, 8];
|
|
1713
|
-
case 2:
|
|
1714
|
-
if (!(field.options.type === models.FieldType.array)) return [3 /*break*/, 7];
|
|
1715
|
-
control = this_1.fb.array([]);
|
|
1716
|
-
if (!obj[field.key]) return [3 /*break*/, 6];
|
|
1717
|
-
indexField = 0;
|
|
1718
|
-
_p.label = 3;
|
|
1719
|
-
case 3:
|
|
1720
|
-
if (!(indexField < obj[field.key].length)) return [3 /*break*/, 6];
|
|
1721
|
-
_o = (_m = control).push;
|
|
1722
|
-
return [4 /*yield*/, this_1.create(obj[field.key][indexField], ops)];
|
|
1723
|
-
case 4:
|
|
1724
|
-
_o.apply(_m, [_p.sent()]);
|
|
1725
|
-
_p.label = 5;
|
|
1726
|
-
case 5:
|
|
1727
|
-
indexField++;
|
|
1728
|
-
return [3 /*break*/, 3];
|
|
1729
|
-
case 6: return [3 /*break*/, 8];
|
|
1730
|
-
case 7:
|
|
1731
|
-
control = this_1.createControl(obj, field, options.required);
|
|
1732
|
-
_p.label = 8;
|
|
1733
|
-
case 8:
|
|
1734
|
-
this_1.setValidators(field.key, control, options, result, ops.uniqueProvider);
|
|
1735
|
-
if (!this_1.validatorsProvider) return [3 /*break*/, 10];
|
|
1736
|
-
return [4 /*yield*/, this_1.validatorsProvider.get({
|
|
1737
|
-
key: field.key,
|
|
1738
|
-
instance: obj,
|
|
1739
|
-
type: obj.constructor,
|
|
1740
|
-
base: {
|
|
1741
|
-
validators: control.validator,
|
|
1742
|
-
asyncValidators: control.asyncValidator
|
|
1743
|
-
}
|
|
1744
|
-
})];
|
|
1745
|
-
case 9:
|
|
1746
|
-
providerResult = _p.sent();
|
|
1747
|
-
control.setValidators(providerResult.validators);
|
|
1748
|
-
control.setAsyncValidators(providerResult.asyncValidators);
|
|
1749
|
-
_p.label = 10;
|
|
1750
|
-
case 10:
|
|
1751
|
-
result.addControl(field.key, control);
|
|
1752
|
-
if (options.confirm && options.type === models.FieldType.object) {
|
|
1753
|
-
throw Error("Object not supported confirms");
|
|
1754
|
-
}
|
|
1755
|
-
if (options.confirm) {
|
|
1756
|
-
confirmControl = this_1.fb.control(null, [
|
|
1757
|
-
forms.Validators.required,
|
|
1758
|
-
function (a) {
|
|
1759
|
-
if (a.value !== result.controls[field.key].value) {
|
|
1760
|
-
return {
|
|
1761
|
-
confirm: true,
|
|
1762
|
-
};
|
|
1763
|
-
}
|
|
1764
|
-
return null;
|
|
1765
|
-
},
|
|
1766
|
-
]);
|
|
1767
|
-
result.addControl(field.key + "Confirm", confirmControl);
|
|
1768
|
-
}
|
|
1769
|
-
if (options.enabled) {
|
|
1770
|
-
enabledDefinitions.push({
|
|
1771
|
-
key: field.key,
|
|
1772
|
-
control: control,
|
|
1773
|
-
enabled: options.enabled
|
|
1774
|
-
});
|
|
1775
|
-
}
|
|
1776
|
-
return [2 /*return*/];
|
|
1777
|
-
}
|
|
1778
|
-
});
|
|
1779
|
-
};
|
|
1780
|
-
this_1 = this;
|
|
1781
|
-
index = 0;
|
|
1782
|
-
_l.label = 1;
|
|
1783
|
-
case 1:
|
|
1784
|
-
if (!(index < fields.length)) return [3 /*break*/, 4];
|
|
1785
|
-
return [5 /*yield**/, _loop_1(index)];
|
|
1786
|
-
case 2:
|
|
1787
|
-
_l.sent();
|
|
1788
|
-
_l.label = 3;
|
|
1789
|
-
case 3:
|
|
1790
|
-
index++;
|
|
1791
|
-
return [3 /*break*/, 1];
|
|
1792
|
-
case 4:
|
|
1793
|
-
result.valueChanges.pipe(operators.tap(function (value) {
|
|
1794
|
-
enabledDefinitions.forEach(function (def) {
|
|
1795
|
-
var enabled = utils.SpecificationService.valid(value, def.enabled);
|
|
1796
|
-
def.control['__smartDisabled'] = !enabled;
|
|
1797
|
-
});
|
|
1798
|
-
}), operators.delay(0)).subscribe(function (value) {
|
|
1799
|
-
enabledDefinitions.forEach(function (def) {
|
|
1800
|
-
if (!def.control['__smartDisabled'] && !result.controls[def.key]) {
|
|
1801
|
-
result.addControl(def.key, def.control);
|
|
1802
|
-
result.updateValueAndValidity();
|
|
1803
|
-
}
|
|
1804
|
-
else if (def.control['__smartDisabled'] && result.controls[def.key]) {
|
|
1805
|
-
result.removeControl(def.key);
|
|
1806
|
-
result.updateValueAndValidity();
|
|
1807
|
-
}
|
|
1808
|
-
});
|
|
1809
|
-
});
|
|
1810
|
-
return [2 /*return*/, result];
|
|
1811
|
-
}
|
|
1812
|
-
});
|
|
1813
|
-
});
|
|
1814
|
-
};
|
|
1815
|
-
FormFactory.prototype.setValidators = function (key, control, options, form, uniqueProvider) {
|
|
1816
|
-
var _this = this;
|
|
1817
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1818
|
-
var result = [];
|
|
1819
|
-
var asyncResult = [];
|
|
1820
|
-
if (options.required) {
|
|
1821
|
-
result.push(forms.Validators.required);
|
|
1822
|
-
}
|
|
1823
|
-
if (options.type === models.FieldType.email) {
|
|
1824
|
-
result.push(function (c) {
|
|
1825
|
-
if (!c.value)
|
|
1826
|
-
return;
|
|
1827
|
-
var reg = new RegExp("^([a-zA-Z0-9_\\.\\-])+\\@(([a-zA-Z0-9\\-])+\\.)+([a-zA-Z0-9]{2,4})+$");
|
|
1828
|
-
if (reg.test(c.value))
|
|
1829
|
-
return null;
|
|
1830
|
-
return { email: true };
|
|
1831
|
-
});
|
|
1832
|
-
}
|
|
1833
|
-
if (options.type === models.FieldType.phoneNumber) {
|
|
1834
|
-
result.push(function (c) {
|
|
1835
|
-
if (!c.value)
|
|
1836
|
-
return;
|
|
1837
|
-
var reg = new RegExp("^((\\+91-?)|0)?[0-9]{9}$");
|
|
1838
|
-
if (reg.test(c.value))
|
|
1839
|
-
return null;
|
|
1840
|
-
return { phoneNumber: true };
|
|
1841
|
-
});
|
|
1842
|
-
}
|
|
1843
|
-
if (options.type === models.FieldType.pesel) {
|
|
1844
|
-
result.push(function (c) {
|
|
1845
|
-
if (!c.value)
|
|
1846
|
-
return;
|
|
1847
|
-
if (utils.PeselService.isValid(c.value))
|
|
1848
|
-
return null;
|
|
1849
|
-
return { pesel: true };
|
|
1850
|
-
});
|
|
1851
|
-
}
|
|
1852
|
-
if ((_a = options.possibilities) === null || _a === void 0 ? void 0 : _a.minLength) {
|
|
1853
|
-
result.push(forms.Validators.minLength((_b = options.possibilities) === null || _b === void 0 ? void 0 : _b.minLength));
|
|
1854
|
-
}
|
|
1855
|
-
if ((_c = options.possibilities) === null || _c === void 0 ? void 0 : _c.maxLength) {
|
|
1856
|
-
result.push(forms.Validators.maxLength((_d = options.possibilities) === null || _d === void 0 ? void 0 : _d.maxLength));
|
|
1857
|
-
}
|
|
1858
|
-
if (((_e = options.possibilities) === null || _e === void 0 ? void 0 : _e.min) || ((_f = options.possibilities) === null || _f === void 0 ? void 0 : _f.min) === 0) {
|
|
1859
|
-
result.push(forms.Validators.min((_g = options.possibilities) === null || _g === void 0 ? void 0 : _g.min));
|
|
1860
|
-
}
|
|
1861
|
-
if (((_h = options.possibilities) === null || _h === void 0 ? void 0 : _h.max) || ((_j = options.possibilities) === null || _j === void 0 ? void 0 : _j.max) === 0) {
|
|
1862
|
-
result.push(forms.Validators.max((_k = options.possibilities) === null || _k === void 0 ? void 0 : _k.max));
|
|
1863
|
-
}
|
|
1864
|
-
if (options.unique && uniqueProvider) {
|
|
1865
|
-
asyncResult.push(function (c) { return __awaiter(_this, void 0, void 0, function () {
|
|
1866
|
-
var record;
|
|
1867
|
-
var _l;
|
|
1868
|
-
return __generator(this, function (_m) {
|
|
1869
|
-
switch (_m.label) {
|
|
1870
|
-
case 0:
|
|
1871
|
-
record = (_l = {},
|
|
1872
|
-
_l[key] = options.type === models.FieldType.int ? c.value : "'" + c.value + "'",
|
|
1873
|
-
_l);
|
|
1874
|
-
if (form.value && options.unique.withFields) {
|
|
1875
|
-
options.unique.withFields.forEach(function (fieldKey) {
|
|
1876
|
-
record[fieldKey] = form.value[fieldKey];
|
|
1877
|
-
});
|
|
1878
|
-
}
|
|
1879
|
-
return [4 /*yield*/, uniqueProvider(record)];
|
|
1880
|
-
case 1:
|
|
1881
|
-
if (_m.sent())
|
|
1882
|
-
return [2 /*return*/, null];
|
|
1883
|
-
return [2 /*return*/, {
|
|
1884
|
-
invalidUnique: true
|
|
1885
|
-
}];
|
|
1886
|
-
}
|
|
1887
|
-
});
|
|
1888
|
-
}); });
|
|
1889
|
-
}
|
|
1890
|
-
control.setValidators(result);
|
|
1891
|
-
control.setAsyncValidators(asyncResult);
|
|
1564
|
+
StyleService.prototype.setButton = function () {
|
|
1565
|
+
this.setProperty('--smart-button-height', 'button-height');
|
|
1566
|
+
this.setProperty('--smart-button-min-width', 'button-min-width');
|
|
1567
|
+
this.setProperty('--smart-button-padding-right', 'button-padding-right');
|
|
1568
|
+
this.setProperty('--smart-button-padding-left', 'button-padding-left');
|
|
1569
|
+
this.setProperty('--smart-button-padding-top', 'button-padding-top');
|
|
1570
|
+
this.setProperty('--smart-button-padding-bottom', 'button-padding-bottom');
|
|
1571
|
+
this.setProperty('--smart-button-icon-size', 'button-icon-size');
|
|
1892
1572
|
};
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
if (c.value && utils.ZipCodeService.isInvalid(c.value)) {
|
|
1897
|
-
return {
|
|
1898
|
-
invalidZipCode: true,
|
|
1899
|
-
};
|
|
1900
|
-
}
|
|
1901
|
-
return null;
|
|
1902
|
-
};
|
|
1903
|
-
switch (field.options.type) {
|
|
1904
|
-
case models.FieldType.address:
|
|
1905
|
-
result = this.fb.group({
|
|
1906
|
-
city: ["", required ? [forms.Validators.required] : null],
|
|
1907
|
-
street: ["", required ? [forms.Validators.required] : null],
|
|
1908
|
-
buildingNumber: ["", required ? [forms.Validators.required] : null],
|
|
1909
|
-
flatNumber: [""],
|
|
1910
|
-
zipCode: [
|
|
1911
|
-
"",
|
|
1912
|
-
required
|
|
1913
|
-
? [forms.Validators.required, zipCodeValidator]
|
|
1914
|
-
: [zipCodeValidator],
|
|
1915
|
-
],
|
|
1916
|
-
});
|
|
1917
|
-
break;
|
|
1918
|
-
default:
|
|
1919
|
-
result = this.fb.control(null);
|
|
1920
|
-
break;
|
|
1921
|
-
}
|
|
1922
|
-
var value = obj[field.key]
|
|
1923
|
-
? obj[field.key]
|
|
1924
|
-
: field.options.defaltValue
|
|
1925
|
-
? field.options.defaltValue()
|
|
1926
|
-
: null;
|
|
1927
|
-
if (value)
|
|
1928
|
-
result.setValue(value);
|
|
1929
|
-
result.updateValueAndValidity();
|
|
1930
|
-
return result;
|
|
1573
|
+
StyleService.prototype.setMobileBreakpoint = function () {
|
|
1574
|
+
this.setProperty('--phone-breakpoint', 'phone-breakpoint');
|
|
1575
|
+
this.setProperty('--tablet-breakpoint', 'tablet-breakpoint');
|
|
1931
1576
|
};
|
|
1932
|
-
return
|
|
1577
|
+
return StyleService;
|
|
1933
1578
|
}());
|
|
1579
|
+
StyleService.style = null;
|
|
1934
1580
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1935
|
-
|
|
1581
|
+
StyleService.decorators = [
|
|
1936
1582
|
{ type: i0.Injectable }
|
|
1937
1583
|
];
|
|
1938
1584
|
/**
|
|
@@ -1942,274 +1588,469 @@
|
|
|
1942
1588
|
* })>}
|
|
1943
1589
|
* @nocollapse
|
|
1944
1590
|
*/
|
|
1945
|
-
|
|
1946
|
-
{ type:
|
|
1947
|
-
{ type:
|
|
1948
|
-
{ type: IModelValidatorsProvider, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [MODEL_VALIDATORS_PROVIDER,] }] }
|
|
1591
|
+
StyleService.ctorParameters = function () { return [
|
|
1592
|
+
{ type: i1.Platform },
|
|
1593
|
+
{ type: Object, decorators: [{ type: i0.Inject, args: [i0.PLATFORM_ID,] }] }
|
|
1949
1594
|
]; };
|
|
1950
1595
|
|
|
1951
|
-
var
|
|
1952
|
-
|
|
1596
|
+
var FINGERPRINT_PLATFORMS = [
|
|
1597
|
+
'android',
|
|
1598
|
+
'ios', 'ipad'
|
|
1599
|
+
];
|
|
1600
|
+
var FingerprintService = /** @class */ (function () {
|
|
1601
|
+
function FingerprintService(platform, faio, translateService, storageService) {
|
|
1602
|
+
this.platform = platform;
|
|
1603
|
+
this.faio = faio;
|
|
1604
|
+
this.translateService = translateService;
|
|
1605
|
+
this.storageService = storageService;
|
|
1953
1606
|
}
|
|
1954
|
-
|
|
1607
|
+
FingerprintService.prototype.isSet = function () {
|
|
1608
|
+
return FingerprintService.set || !!this.storageService.getItem('FINGERPINT_SET');
|
|
1609
|
+
};
|
|
1610
|
+
FingerprintService.prototype.setData = function (data) {
|
|
1611
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1612
|
+
var _a;
|
|
1613
|
+
var _this = this;
|
|
1614
|
+
return __generator(this, function (_b) {
|
|
1615
|
+
switch (_b.label) {
|
|
1616
|
+
case 0:
|
|
1617
|
+
_a = !this.isSet() && FINGERPRINT_PLATFORMS.some(function (p) { return _this.platform.is(p); });
|
|
1618
|
+
if (!_a) return [3 /*break*/, 2];
|
|
1619
|
+
return [4 /*yield*/, this.faio.isAvailable()];
|
|
1620
|
+
case 1:
|
|
1621
|
+
_a = (_b.sent());
|
|
1622
|
+
_b.label = 2;
|
|
1623
|
+
case 2:
|
|
1624
|
+
if (!_a) return [3 /*break*/, 4];
|
|
1625
|
+
return [4 /*yield*/, this.faio.registerBiometricSecret({
|
|
1626
|
+
secret: JSON.stringify(data)
|
|
1627
|
+
})];
|
|
1628
|
+
case 3:
|
|
1629
|
+
_b.sent();
|
|
1630
|
+
this.storageService.setItem('FINGERPINT_SET', "1");
|
|
1631
|
+
FingerprintService.set = true;
|
|
1632
|
+
return [2 /*return*/];
|
|
1633
|
+
case 4: return [2 /*return*/];
|
|
1634
|
+
}
|
|
1635
|
+
});
|
|
1636
|
+
});
|
|
1637
|
+
};
|
|
1638
|
+
FingerprintService.prototype.clearData = function () {
|
|
1639
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1640
|
+
return __generator(this, function (_a) {
|
|
1641
|
+
this.storageService.removeItem('FINGERPINT_SET');
|
|
1642
|
+
FingerprintService.set = false;
|
|
1643
|
+
return [2 /*return*/];
|
|
1644
|
+
});
|
|
1645
|
+
});
|
|
1646
|
+
};
|
|
1647
|
+
FingerprintService.prototype.getDate = function (options) {
|
|
1648
|
+
if (options === void 0) { options = {}; }
|
|
1649
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1650
|
+
var data;
|
|
1651
|
+
return __generator(this, function (_a) {
|
|
1652
|
+
switch (_a.label) {
|
|
1653
|
+
case 0:
|
|
1654
|
+
if (!options.force && !this.isSet())
|
|
1655
|
+
return [2 /*return*/, null];
|
|
1656
|
+
FingerprintService.set = true;
|
|
1657
|
+
return [4 /*yield*/, this.faio.loadBiometricSecret({
|
|
1658
|
+
title: this.translateService.instant('APP.signIn'),
|
|
1659
|
+
cancelButtonTitle: this.translateService.instant('cancel')
|
|
1660
|
+
})];
|
|
1661
|
+
case 1:
|
|
1662
|
+
data = _a.sent();
|
|
1663
|
+
// // to tests
|
|
1664
|
+
// const data = localStorage.getItem('TEST_FINGERPINT');
|
|
1665
|
+
return [2 /*return*/, JSON.parse(data)];
|
|
1666
|
+
}
|
|
1667
|
+
});
|
|
1668
|
+
});
|
|
1669
|
+
};
|
|
1670
|
+
return FingerprintService;
|
|
1955
1671
|
}());
|
|
1672
|
+
FingerprintService.set = false;
|
|
1956
1673
|
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1957
|
-
|
|
1958
|
-
{ type: i0.
|
|
1959
|
-
imports: [
|
|
1960
|
-
forms.ReactiveFormsModule
|
|
1961
|
-
],
|
|
1962
|
-
providers: [
|
|
1963
|
-
FormFactory
|
|
1964
|
-
]
|
|
1965
|
-
},] }
|
|
1674
|
+
FingerprintService.decorators = [
|
|
1675
|
+
{ type: i0.Injectable }
|
|
1966
1676
|
];
|
|
1677
|
+
/**
|
|
1678
|
+
* @type {function(): !Array<(null|{
|
|
1679
|
+
* type: ?,
|
|
1680
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1681
|
+
* })>}
|
|
1682
|
+
* @nocollapse
|
|
1683
|
+
*/
|
|
1684
|
+
FingerprintService.ctorParameters = function () { return [
|
|
1685
|
+
{ type: i1.Platform },
|
|
1686
|
+
{ type: ngx.FingerprintAIO },
|
|
1687
|
+
{ type: core.TranslateService },
|
|
1688
|
+
{ type: StorageService }
|
|
1689
|
+
]; };
|
|
1967
1690
|
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
'eng': TRANSLATE_DATA_ENG
|
|
1972
|
-
};
|
|
1973
|
-
Object.keys(map).forEach(function (key) {
|
|
1974
|
-
service.setTranslation(key, map[key], true);
|
|
1975
|
-
});
|
|
1976
|
-
if (!service.currentLang) {
|
|
1977
|
-
var lang = service.getBrowserLang();
|
|
1978
|
-
service.use(lang);
|
|
1691
|
+
var Camera = core$1.Plugins.Camera;
|
|
1692
|
+
var CameraService = /** @class */ (function () {
|
|
1693
|
+
function CameraService() {
|
|
1979
1694
|
}
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
Fri: 'Fri',
|
|
2013
|
-
Sat: 'Sat',
|
|
2014
|
-
Sun: 'Sun',
|
|
2015
|
-
},
|
|
2016
|
-
MONTH: {
|
|
2017
|
-
January: "January",
|
|
2018
|
-
February: "February",
|
|
2019
|
-
March: "March",
|
|
2020
|
-
April: "April",
|
|
2021
|
-
May: "May",
|
|
2022
|
-
June: "June",
|
|
2023
|
-
July: "July",
|
|
2024
|
-
August: "August",
|
|
2025
|
-
September: "September",
|
|
2026
|
-
October: "October",
|
|
2027
|
-
November: "November",
|
|
2028
|
-
December: "December"
|
|
2029
|
-
},
|
|
2030
|
-
Today: "Today",
|
|
2031
|
-
LastSevenDays: "Last 7 days",
|
|
2032
|
-
ThisMonth: "This month",
|
|
2033
|
-
Yesterday: "Yesterday",
|
|
2034
|
-
LastThirtyDays: "Last 30 days",
|
|
2035
|
-
LastMonth: "Last month"
|
|
2036
|
-
},
|
|
2037
|
-
OBJECT: {
|
|
2038
|
-
deleted: 'object deleted',
|
|
2039
|
-
confirmDelete: 'confirm delete object'
|
|
2040
|
-
},
|
|
2041
|
-
APP: {
|
|
2042
|
-
logout: 'log out',
|
|
2043
|
-
signIn: 'sign in',
|
|
2044
|
-
logged: 'logged'
|
|
2045
|
-
},
|
|
2046
|
-
MODEL: {
|
|
2047
|
-
body: 'body',
|
|
2048
|
-
buildingNumber: 'building number',
|
|
2049
|
-
city: 'city',
|
|
2050
|
-
date: 'date',
|
|
2051
|
-
disabled: 'disabled',
|
|
2052
|
-
email: 'email',
|
|
2053
|
-
file: 'file',
|
|
2054
|
-
firstName: 'first name',
|
|
2055
|
-
flatNumber: 'flat number',
|
|
2056
|
-
lastName: 'last name',
|
|
2057
|
-
password: 'password',
|
|
2058
|
-
passwordConfirm: 'confirm password',
|
|
2059
|
-
passwordReset: 'reset password',
|
|
2060
|
-
permissions: 'permissions',
|
|
2061
|
-
price: 'price',
|
|
2062
|
-
send: 'send',
|
|
2063
|
-
street: 'street',
|
|
2064
|
-
username: 'user name',
|
|
2065
|
-
zipCode: 'zip code',
|
|
2066
|
-
},
|
|
2067
|
-
INPUT: {
|
|
2068
|
-
ERRORS: {
|
|
2069
|
-
required: 'field is required',
|
|
2070
|
-
requires: 'fields are required',
|
|
2071
|
-
invalidNip: 'Invalid nip format',
|
|
2072
|
-
invalidUnique: 'Invalid unique value',
|
|
2073
|
-
invalidFileType: 'Invalid file type',
|
|
2074
|
-
confirm: 'bad confirmed',
|
|
2075
|
-
invalidEmailFormat: "invalid email format",
|
|
2076
|
-
invalidPhoneNumberFormat: "invalid phone number (000000000)",
|
|
2077
|
-
invalidPeselFormat: "invalid pesel",
|
|
2078
|
-
invalidMinLength: "min length",
|
|
2079
|
-
invalidMaxLength: "max length",
|
|
2080
|
-
invalidMin: 'min value',
|
|
2081
|
-
invalidMax: 'max value',
|
|
2082
|
-
upperLetters: "upper letters",
|
|
2083
|
-
lowerLetters: "lower letters",
|
|
2084
|
-
symbols: "string"
|
|
2085
|
-
},
|
|
2086
|
-
'PASSWORD-STRENGTH': {
|
|
2087
|
-
poor: 'poor',
|
|
2088
|
-
notGood: 'not ood',
|
|
2089
|
-
good: 'good'
|
|
2090
|
-
}
|
|
2091
|
-
},
|
|
2092
|
-
ERRORS: {
|
|
2093
|
-
invalidUsernameOrPassword: 'Invalid username or password',
|
|
2094
|
-
other: 'Error'
|
|
1695
|
+
CameraService.prototype.getCapture = function (options) {
|
|
1696
|
+
if (options === void 0) { options = {}; }
|
|
1697
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1698
|
+
var image;
|
|
1699
|
+
return __generator(this, function (_a) {
|
|
1700
|
+
switch (_a.label) {
|
|
1701
|
+
case 0: return [4 /*yield*/, Camera.getPhoto({
|
|
1702
|
+
quality: options.quality ? options.quality : 100,
|
|
1703
|
+
resultType: core$1.CameraResultType.Base64
|
|
1704
|
+
})];
|
|
1705
|
+
case 1:
|
|
1706
|
+
image = _a.sent();
|
|
1707
|
+
return [2 /*return*/, {
|
|
1708
|
+
data: image.base64String,
|
|
1709
|
+
exif: image.exif
|
|
1710
|
+
}];
|
|
1711
|
+
}
|
|
1712
|
+
});
|
|
1713
|
+
});
|
|
1714
|
+
};
|
|
1715
|
+
return CameraService;
|
|
1716
|
+
}());
|
|
1717
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1718
|
+
CameraService.decorators = [
|
|
1719
|
+
{ type: i0.Injectable }
|
|
1720
|
+
];
|
|
1721
|
+
|
|
1722
|
+
var FILE_SERVICE_CONFIG = new i0.InjectionToken('FILE_SERVICE_CONFIG');
|
|
1723
|
+
var FileService = /** @class */ (function () {
|
|
1724
|
+
function FileService(config, http) {
|
|
1725
|
+
this.config = config;
|
|
1726
|
+
this.http = http;
|
|
2095
1727
|
}
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
download
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
}
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
lastName: 'nazwisko',
|
|
2173
|
-
password: 'hasło',
|
|
2174
|
-
passwordConfirm: 'powtórz hasło',
|
|
2175
|
-
passwordReset: 'Nie pamiętam hasła',
|
|
2176
|
-
permissions: 'uprawnienia',
|
|
2177
|
-
price: 'cena',
|
|
2178
|
-
send: 'wyślij',
|
|
2179
|
-
street: 'ulica',
|
|
2180
|
-
username: 'nazwa użytkownika',
|
|
2181
|
-
zipCode: 'kod pocztowy',
|
|
2182
|
-
},
|
|
2183
|
-
INPUT: {
|
|
2184
|
-
ERRORS: {
|
|
2185
|
-
required: 'to pole jest wymagane',
|
|
2186
|
-
requires: 'te pola są wymagane',
|
|
2187
|
-
invalidNip: 'niepoprawny format nip',
|
|
2188
|
-
invalidUnique: 'wartość jest już w systemie',
|
|
2189
|
-
confirm: 'źle powtórzone',
|
|
2190
|
-
invalidEmailFormat: "niepoprawny adres email",
|
|
2191
|
-
invalidFileType: 'niepoprawny format pliku',
|
|
2192
|
-
invalidPhoneNumberFormat: "niepoprawny numer telefonu (000000000)",
|
|
2193
|
-
invalidPeselFormat: "niepoprawny numer pesel",
|
|
2194
|
-
invalidMinLength: "minimalna długość",
|
|
2195
|
-
invalidMaxLength: "maksymalna długość",
|
|
2196
|
-
invalidMin: "minimalna wartość",
|
|
2197
|
-
invalidMax: "maksymalna wartość",
|
|
2198
|
-
upperLetters: "duże litery",
|
|
2199
|
-
lowerLetters: "małe litery",
|
|
2200
|
-
symbols: "znaki specjalne"
|
|
2201
|
-
},
|
|
2202
|
-
'PASSWORD-STRENGTH': {
|
|
2203
|
-
poor: 'bardzo słabe',
|
|
2204
|
-
notGood: 'słabe',
|
|
2205
|
-
good: 'dobre'
|
|
1728
|
+
FileService.prototype.upload = function (file, callback) {
|
|
1729
|
+
var formData = new FormData();
|
|
1730
|
+
formData.append('file', file, file.name);
|
|
1731
|
+
return this.http.post(this.config.apiUrl + '/attachments', formData, {
|
|
1732
|
+
reportProgress: true,
|
|
1733
|
+
observe: 'events'
|
|
1734
|
+
}).pipe(operators.map(function (event) {
|
|
1735
|
+
if (event.type === http.HttpEventType.UploadProgress) {
|
|
1736
|
+
var percentDone = Math.round(100 * event.loaded / event.total);
|
|
1737
|
+
return percentDone;
|
|
1738
|
+
}
|
|
1739
|
+
if (event.type === http.HttpEventType.Response) {
|
|
1740
|
+
if (callback)
|
|
1741
|
+
callback(event.body);
|
|
1742
|
+
return 100;
|
|
1743
|
+
}
|
|
1744
|
+
}));
|
|
1745
|
+
};
|
|
1746
|
+
FileService.prototype.download = function (id) {
|
|
1747
|
+
window.open(this.getUrl(id), '_blank').focus();
|
|
1748
|
+
};
|
|
1749
|
+
FileService.prototype.delete = function (id) {
|
|
1750
|
+
return this.http.delete(this.config.apiUrl + '/attachments/' + id).toPromise();
|
|
1751
|
+
};
|
|
1752
|
+
FileService.prototype.getUrl = function (id) {
|
|
1753
|
+
return this.config.apiUrl + '/attachments/' + id;
|
|
1754
|
+
};
|
|
1755
|
+
return FileService;
|
|
1756
|
+
}());
|
|
1757
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1758
|
+
FileService.decorators = [
|
|
1759
|
+
{ type: i0.Injectable }
|
|
1760
|
+
];
|
|
1761
|
+
/**
|
|
1762
|
+
* @type {function(): !Array<(null|{
|
|
1763
|
+
* type: ?,
|
|
1764
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1765
|
+
* })>}
|
|
1766
|
+
* @nocollapse
|
|
1767
|
+
*/
|
|
1768
|
+
FileService.ctorParameters = function () { return [
|
|
1769
|
+
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [FILE_SERVICE_CONFIG,] }] },
|
|
1770
|
+
{ type: http.HttpClient }
|
|
1771
|
+
]; };
|
|
1772
|
+
|
|
1773
|
+
var CalendarService = /** @class */ (function () {
|
|
1774
|
+
function CalendarService() {
|
|
1775
|
+
var _this = this;
|
|
1776
|
+
this.state = {
|
|
1777
|
+
date: moment__namespace().add(2, 'year'),
|
|
1778
|
+
calendar: [
|
|
1779
|
+
{
|
|
1780
|
+
dates: null,
|
|
1781
|
+
monthName: null,
|
|
1782
|
+
number: null,
|
|
1783
|
+
year: null
|
|
1784
|
+
}
|
|
1785
|
+
]
|
|
1786
|
+
};
|
|
1787
|
+
this.setState = function (nextState) {
|
|
1788
|
+
_this.state = Object.assign(Object.assign({}, _this.state), nextState);
|
|
1789
|
+
};
|
|
1790
|
+
//this service is a singleton therefore its constructor will only
|
|
1791
|
+
//be called once during the application life cycle
|
|
1792
|
+
this.initCalendar();
|
|
1793
|
+
}
|
|
1794
|
+
CalendarService.prototype.getCalendar = function () {
|
|
1795
|
+
return __spreadArray([], __read(this.state.calendar));
|
|
1796
|
+
};
|
|
1797
|
+
CalendarService.prototype.generatePrevMonths = function () {
|
|
1798
|
+
var calendar = this.state.calendar;
|
|
1799
|
+
var date = moment__namespace(calendar[0].year + '-' + calendar[0].number + '-01');
|
|
1800
|
+
var dateYearAgo = date.clone().subtract(1, 'year');
|
|
1801
|
+
while (date.isSameOrAfter(dateYearAgo)) {
|
|
1802
|
+
date = date.clone().subtract(1, 'month');
|
|
1803
|
+
calendar.unshift(this.generateMonth(date));
|
|
2206
1804
|
}
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
1805
|
+
};
|
|
1806
|
+
CalendarService.prototype.generateNextMonths = function () {
|
|
1807
|
+
var calendar = this.state.calendar;
|
|
1808
|
+
var dateString = calendar[calendar.length - 1].year + '-' + calendar[calendar.length - 1].number + '-01';
|
|
1809
|
+
var date = moment__namespace(dateString);
|
|
1810
|
+
var dateYearNext = date.clone().add(1, 'year');
|
|
1811
|
+
while (date.isSameOrBefore(dateYearNext)) {
|
|
1812
|
+
date = date.clone().add(1, 'month');
|
|
1813
|
+
calendar.push(this.generateMonth(date));
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1816
|
+
CalendarService.prototype.initCalendar = function () {
|
|
1817
|
+
var date = this.state.date;
|
|
1818
|
+
var firstMonth = this.generateMonth(date);
|
|
1819
|
+
var calendar = [firstMonth];
|
|
1820
|
+
var currentDate = moment__namespace().clone();
|
|
1821
|
+
var dateYearAgo = currentDate.clone().subtract(2, 'year');
|
|
1822
|
+
while (date.isSameOrAfter(dateYearAgo)) { // creating one year calendar
|
|
1823
|
+
calendar.unshift(this.previousMonth());
|
|
1824
|
+
}
|
|
1825
|
+
this.state.date = moment__namespace();
|
|
1826
|
+
var currentMonthIndex = calendar.length - 13;
|
|
1827
|
+
calendar[currentMonthIndex].dates = calendar[currentMonthIndex].dates.filter(this.filterFutureDates);
|
|
1828
|
+
this.setState({ calendar: calendar });
|
|
1829
|
+
};
|
|
1830
|
+
CalendarService.prototype.previousMonth = function () {
|
|
1831
|
+
var date = this.state.date;
|
|
1832
|
+
var newDate = date.subtract(1, 'month');
|
|
1833
|
+
var m = this.generateMonth(newDate);
|
|
1834
|
+
this.setState({ date: newDate });
|
|
1835
|
+
return m;
|
|
1836
|
+
};
|
|
1837
|
+
CalendarService.prototype.filterFutureDates = function (date) {
|
|
1838
|
+
if (!date) {
|
|
1839
|
+
return true;
|
|
1840
|
+
}
|
|
1841
|
+
return date.isSameOrBefore(moment__namespace());
|
|
1842
|
+
};
|
|
1843
|
+
CalendarService.prototype.generateMonth = function (date) {
|
|
1844
|
+
var firstDay = moment__namespace(date).startOf('month');
|
|
1845
|
+
var monthName = moment__namespace(date).format('MMMM');
|
|
1846
|
+
var year = moment__namespace(date).format('YYYY');
|
|
1847
|
+
var number = moment__namespace(date).format('MM');
|
|
1848
|
+
var monthLength = date.daysInMonth();
|
|
1849
|
+
var totalDatesInMonth = this.generateMonthDates(firstDay, monthLength);
|
|
1850
|
+
var emptyCellsBeforeFirstDay = Array(firstDay.weekday()).fill(null);
|
|
1851
|
+
var dates = __spreadArray(__spreadArray([], __read(emptyCellsBeforeFirstDay)), __read(totalDatesInMonth));
|
|
1852
|
+
return {
|
|
1853
|
+
dates: dates,
|
|
1854
|
+
monthName: monthName,
|
|
1855
|
+
number: number,
|
|
1856
|
+
year: year
|
|
1857
|
+
};
|
|
1858
|
+
};
|
|
1859
|
+
CalendarService.prototype.generateMonthDates = function (firstDay, length) {
|
|
1860
|
+
return Array(length).fill(null).map(function (v, i) { return moment__namespace(firstDay).add(i, 'day'); });
|
|
1861
|
+
};
|
|
1862
|
+
return CalendarService;
|
|
1863
|
+
}());
|
|
1864
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1865
|
+
CalendarService.decorators = [
|
|
1866
|
+
{ type: i0.Injectable }
|
|
1867
|
+
];
|
|
1868
|
+
/**
|
|
1869
|
+
* @type {function(): !Array<(null|{
|
|
1870
|
+
* type: ?,
|
|
1871
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1872
|
+
* })>}
|
|
1873
|
+
* @nocollapse
|
|
1874
|
+
*/
|
|
1875
|
+
CalendarService.ctorParameters = function () { return []; };
|
|
1876
|
+
|
|
1877
|
+
var UIService = /** @class */ (function () {
|
|
1878
|
+
function UIService(loadingController, alertController, toastController) {
|
|
1879
|
+
this.loadingController = loadingController;
|
|
1880
|
+
this.alertController = alertController;
|
|
1881
|
+
this.toastController = toastController;
|
|
1882
|
+
}
|
|
1883
|
+
UIService.prototype.showLoading = function (msg) {
|
|
1884
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1885
|
+
var loader;
|
|
1886
|
+
return __generator(this, function (_a) {
|
|
1887
|
+
switch (_a.label) {
|
|
1888
|
+
case 0: return [4 /*yield*/, this.loadingController.create({
|
|
1889
|
+
message: msg || 'loading...',
|
|
1890
|
+
})];
|
|
1891
|
+
case 1:
|
|
1892
|
+
loader = _a.sent();
|
|
1893
|
+
return [4 /*yield*/, loader.present()];
|
|
1894
|
+
case 2:
|
|
1895
|
+
_a.sent();
|
|
1896
|
+
return [2 /*return*/, loader];
|
|
1897
|
+
}
|
|
1898
|
+
});
|
|
1899
|
+
});
|
|
1900
|
+
};
|
|
1901
|
+
UIService.prototype.showSimpleAlert = function (msg, heading) {
|
|
1902
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1903
|
+
var alert;
|
|
1904
|
+
return __generator(this, function (_a) {
|
|
1905
|
+
switch (_a.label) {
|
|
1906
|
+
case 0: return [4 /*yield*/, this.alertController.create({
|
|
1907
|
+
header: heading || 'Alert',
|
|
1908
|
+
message: msg,
|
|
1909
|
+
buttons: ['OK']
|
|
1910
|
+
})];
|
|
1911
|
+
case 1:
|
|
1912
|
+
alert = _a.sent();
|
|
1913
|
+
return [4 /*yield*/, alert.present()];
|
|
1914
|
+
case 2:
|
|
1915
|
+
_a.sent();
|
|
1916
|
+
return [2 /*return*/];
|
|
1917
|
+
}
|
|
1918
|
+
});
|
|
1919
|
+
});
|
|
1920
|
+
};
|
|
1921
|
+
UIService.prototype.showAlertWithDismissCallback = function (heading, msg, btnText, callback) {
|
|
1922
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1923
|
+
var alert;
|
|
1924
|
+
return __generator(this, function (_a) {
|
|
1925
|
+
switch (_a.label) {
|
|
1926
|
+
case 0: return [4 /*yield*/, this.alertController.create({
|
|
1927
|
+
header: heading,
|
|
1928
|
+
message: msg,
|
|
1929
|
+
buttons: [
|
|
1930
|
+
{
|
|
1931
|
+
text: btnText,
|
|
1932
|
+
}
|
|
1933
|
+
]
|
|
1934
|
+
})];
|
|
1935
|
+
case 1:
|
|
1936
|
+
alert = _a.sent();
|
|
1937
|
+
return [4 /*yield*/, alert.present()];
|
|
1938
|
+
case 2:
|
|
1939
|
+
_a.sent();
|
|
1940
|
+
alert.onDidDismiss().then(function () { callback(); });
|
|
1941
|
+
return [2 /*return*/];
|
|
1942
|
+
}
|
|
1943
|
+
});
|
|
1944
|
+
});
|
|
1945
|
+
};
|
|
1946
|
+
UIService.prototype.showToast = function (msg, duration) {
|
|
1947
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1948
|
+
var toast;
|
|
1949
|
+
return __generator(this, function (_a) {
|
|
1950
|
+
switch (_a.label) {
|
|
1951
|
+
case 0: return [4 /*yield*/, this.toastController.create({
|
|
1952
|
+
message: msg,
|
|
1953
|
+
color: 'dark',
|
|
1954
|
+
duration: duration || 2000
|
|
1955
|
+
})];
|
|
1956
|
+
case 1:
|
|
1957
|
+
toast = _a.sent();
|
|
1958
|
+
toast.present();
|
|
1959
|
+
return [2 /*return*/, toast];
|
|
1960
|
+
}
|
|
1961
|
+
});
|
|
1962
|
+
});
|
|
1963
|
+
};
|
|
1964
|
+
return UIService;
|
|
1965
|
+
}());
|
|
1966
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
1967
|
+
UIService.decorators = [
|
|
1968
|
+
{ type: i0.Injectable }
|
|
1969
|
+
];
|
|
1970
|
+
/**
|
|
1971
|
+
* @type {function(): !Array<(null|{
|
|
1972
|
+
* type: ?,
|
|
1973
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
1974
|
+
* })>}
|
|
1975
|
+
* @nocollapse
|
|
1976
|
+
*/
|
|
1977
|
+
UIService.ctorParameters = function () { return [
|
|
1978
|
+
{ type: i1.LoadingController },
|
|
1979
|
+
{ type: i1.AlertController },
|
|
1980
|
+
{ type: i1.ToastController }
|
|
1981
|
+
]; };
|
|
1982
|
+
|
|
1983
|
+
var AlertService = /** @class */ (function () {
|
|
1984
|
+
function AlertService(alertCtrl) {
|
|
1985
|
+
this.alertCtrl = alertCtrl;
|
|
1986
|
+
}
|
|
1987
|
+
AlertService.prototype.show = function (options) {
|
|
1988
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1989
|
+
var alert;
|
|
1990
|
+
return __generator(this, function (_a) {
|
|
1991
|
+
switch (_a.label) {
|
|
1992
|
+
case 0: return [4 /*yield*/, this.alertCtrl.create(options)];
|
|
1993
|
+
case 1:
|
|
1994
|
+
alert = _a.sent();
|
|
1995
|
+
return [4 /*yield*/, alert.present()];
|
|
1996
|
+
case 2:
|
|
1997
|
+
_a.sent();
|
|
1998
|
+
return [2 /*return*/];
|
|
1999
|
+
}
|
|
2000
|
+
});
|
|
2001
|
+
});
|
|
2002
|
+
};
|
|
2003
|
+
return AlertService;
|
|
2004
|
+
}());
|
|
2005
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2006
|
+
AlertService.decorators = [
|
|
2007
|
+
{ type: i0.Injectable }
|
|
2008
|
+
];
|
|
2009
|
+
/**
|
|
2010
|
+
* @type {function(): !Array<(null|{
|
|
2011
|
+
* type: ?,
|
|
2012
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
2013
|
+
* })>}
|
|
2014
|
+
* @nocollapse
|
|
2015
|
+
*/
|
|
2016
|
+
AlertService.ctorParameters = function () { return [
|
|
2017
|
+
{ type: i1.AlertController }
|
|
2018
|
+
]; };
|
|
2019
|
+
|
|
2020
|
+
var SharedServicesModule = /** @class */ (function () {
|
|
2021
|
+
function SharedServicesModule() {
|
|
2211
2022
|
}
|
|
2212
|
-
|
|
2023
|
+
return SharedServicesModule;
|
|
2024
|
+
}());
|
|
2025
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2026
|
+
SharedServicesModule.decorators = [
|
|
2027
|
+
{ type: i0.NgModule, args: [{
|
|
2028
|
+
imports: [
|
|
2029
|
+
i1.IonicModule,
|
|
2030
|
+
core.TranslateModule.forChild(),
|
|
2031
|
+
ngxCookie.CookieModule.forRoot(),
|
|
2032
|
+
],
|
|
2033
|
+
providers: [
|
|
2034
|
+
ToastService,
|
|
2035
|
+
ErrorService,
|
|
2036
|
+
HardwareService,
|
|
2037
|
+
ModalService,
|
|
2038
|
+
DynamicComponentLoader,
|
|
2039
|
+
PopoverService,
|
|
2040
|
+
StorageService,
|
|
2041
|
+
StyleService,
|
|
2042
|
+
AuthService,
|
|
2043
|
+
FingerprintService,
|
|
2044
|
+
ngx.FingerprintAIO,
|
|
2045
|
+
CameraService,
|
|
2046
|
+
FileService,
|
|
2047
|
+
CalendarService,
|
|
2048
|
+
UIService,
|
|
2049
|
+
AlertService,
|
|
2050
|
+
DetailsService
|
|
2051
|
+
],
|
|
2052
|
+
},] }
|
|
2053
|
+
];
|
|
2213
2054
|
|
|
2214
2055
|
var EnumToListPipe = /** @class */ (function () {
|
|
2215
2056
|
function EnumToListPipe() {
|
|
@@ -2579,6 +2420,149 @@
|
|
|
2579
2420
|
*/
|
|
2580
2421
|
AccordionHeaderComponent.ctorParameters = function () { return []; };
|
|
2581
2422
|
|
|
2423
|
+
/**
|
|
2424
|
+
* Only to use in smart-page
|
|
2425
|
+
* @requires PageComponent
|
|
2426
|
+
*/
|
|
2427
|
+
var MenuService = /** @class */ (function () {
|
|
2428
|
+
function MenuService(menuCtrl, resolver) {
|
|
2429
|
+
this.menuCtrl = menuCtrl;
|
|
2430
|
+
this.resolver = resolver;
|
|
2431
|
+
this._openedEnd = false;
|
|
2432
|
+
this._menuItemsSource = new rxjs.BehaviorSubject([]);
|
|
2433
|
+
this.menuItems$ = this._menuItemsSource.asObservable();
|
|
2434
|
+
}
|
|
2435
|
+
Object.defineProperty(MenuService.prototype, "openedEnd", {
|
|
2436
|
+
/**
|
|
2437
|
+
* @desc checking if the menu is open (menu on the right side of the screen)
|
|
2438
|
+
*/
|
|
2439
|
+
get: function () {
|
|
2440
|
+
return this._openedEnd;
|
|
2441
|
+
},
|
|
2442
|
+
enumerable: false,
|
|
2443
|
+
configurable: true
|
|
2444
|
+
});
|
|
2445
|
+
MenuService.prototype.changeMenuItemByRoute = function (route, changes) {
|
|
2446
|
+
var items = this._menuItemsSource.value.map(function (i) {
|
|
2447
|
+
if (i.route === route)
|
|
2448
|
+
return Object.assign(Object.assign({}, i), changes);
|
|
2449
|
+
return i;
|
|
2450
|
+
});
|
|
2451
|
+
this._menuItemsSource.next(items);
|
|
2452
|
+
};
|
|
2453
|
+
MenuService.prototype.setMenuItems = function (items) {
|
|
2454
|
+
this._menuItemsSource.next(items);
|
|
2455
|
+
};
|
|
2456
|
+
/**
|
|
2457
|
+
* @private
|
|
2458
|
+
*/
|
|
2459
|
+
MenuService.prototype.init = function (endContainer) {
|
|
2460
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2461
|
+
return __generator(this, function (_b) {
|
|
2462
|
+
switch (_b.label) {
|
|
2463
|
+
case 0:
|
|
2464
|
+
this._endContainer = endContainer;
|
|
2465
|
+
return [4 /*yield*/, this.menuCtrl.close("end")];
|
|
2466
|
+
case 1:
|
|
2467
|
+
_b.sent();
|
|
2468
|
+
return [2 /*return*/];
|
|
2469
|
+
}
|
|
2470
|
+
});
|
|
2471
|
+
});
|
|
2472
|
+
};
|
|
2473
|
+
/**
|
|
2474
|
+
* @desc open menu (menu on the right side of the screen)
|
|
2475
|
+
* @param {object} options - use options
|
|
2476
|
+
* @param {class} options.component - angular component to render
|
|
2477
|
+
* @param {class} options.injector - angular injector to use in component
|
|
2478
|
+
*/
|
|
2479
|
+
MenuService.prototype.openEnd = function (options) {
|
|
2480
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2481
|
+
var resolver, factory;
|
|
2482
|
+
return __generator(this, function (_b) {
|
|
2483
|
+
switch (_b.label) {
|
|
2484
|
+
case 0:
|
|
2485
|
+
this._openedEnd = true;
|
|
2486
|
+
if (this._endContainer) {
|
|
2487
|
+
resolver = options.injector.get(i0.ComponentFactoryResolver);
|
|
2488
|
+
this._endContainer.clear();
|
|
2489
|
+
factory = resolver.resolveComponentFactory(options.component);
|
|
2490
|
+
this._endContainer.createComponent(factory, 0, options.injector);
|
|
2491
|
+
}
|
|
2492
|
+
return [4 /*yield*/, this.menuCtrl.enable(true, "end")];
|
|
2493
|
+
case 1:
|
|
2494
|
+
_b.sent();
|
|
2495
|
+
return [4 /*yield*/, this.menuCtrl.open("end")];
|
|
2496
|
+
case 2:
|
|
2497
|
+
_b.sent();
|
|
2498
|
+
return [2 /*return*/];
|
|
2499
|
+
}
|
|
2500
|
+
});
|
|
2501
|
+
});
|
|
2502
|
+
};
|
|
2503
|
+
/**
|
|
2504
|
+
* @desc close menu (menu on the left side of the screen)
|
|
2505
|
+
*/
|
|
2506
|
+
MenuService.prototype.closeStart = function () {
|
|
2507
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2508
|
+
return __generator(this, function (_b) {
|
|
2509
|
+
switch (_b.label) {
|
|
2510
|
+
case 0:
|
|
2511
|
+
this._openedEnd = false;
|
|
2512
|
+
return [4 /*yield*/, this.menuCtrl.close("start")];
|
|
2513
|
+
case 1:
|
|
2514
|
+
_b.sent();
|
|
2515
|
+
return [4 /*yield*/, this.menuCtrl.enable(false, "start")];
|
|
2516
|
+
case 2:
|
|
2517
|
+
_b.sent();
|
|
2518
|
+
return [2 /*return*/];
|
|
2519
|
+
}
|
|
2520
|
+
});
|
|
2521
|
+
});
|
|
2522
|
+
};
|
|
2523
|
+
/**
|
|
2524
|
+
* @desc close menu (menu on the right side of the screen)
|
|
2525
|
+
*/
|
|
2526
|
+
MenuService.prototype.closeEnd = function () {
|
|
2527
|
+
var _a;
|
|
2528
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2529
|
+
return __generator(this, function (_b) {
|
|
2530
|
+
switch (_b.label) {
|
|
2531
|
+
case 0:
|
|
2532
|
+
this._openedEnd = false;
|
|
2533
|
+
return [4 /*yield*/, this.menuCtrl.close("end")];
|
|
2534
|
+
case 1:
|
|
2535
|
+
_b.sent();
|
|
2536
|
+
return [4 /*yield*/, this.menuCtrl.enable(false, "end")];
|
|
2537
|
+
case 2:
|
|
2538
|
+
_b.sent();
|
|
2539
|
+
(_a = this._endContainer) === null || _a === void 0 ? void 0 : _a.clear();
|
|
2540
|
+
return [2 /*return*/];
|
|
2541
|
+
}
|
|
2542
|
+
});
|
|
2543
|
+
});
|
|
2544
|
+
};
|
|
2545
|
+
return MenuService;
|
|
2546
|
+
}());
|
|
2547
|
+
/** @nocollapse */ MenuService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(i0__namespace.ɵɵinject(i1__namespace.MenuController), i0__namespace.ɵɵinject(i0__namespace.ComponentFactoryResolver)); }, token: MenuService, providedIn: "root" });
|
|
2548
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
2549
|
+
MenuService.decorators = [
|
|
2550
|
+
{ type: i0.Injectable, args: [{
|
|
2551
|
+
providedIn: "root",
|
|
2552
|
+
},] }
|
|
2553
|
+
];
|
|
2554
|
+
/**
|
|
2555
|
+
* @type {function(): !Array<(null|{
|
|
2556
|
+
* type: ?,
|
|
2557
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
2558
|
+
* })>}
|
|
2559
|
+
* @nocollapse
|
|
2560
|
+
*/
|
|
2561
|
+
MenuService.ctorParameters = function () { return [
|
|
2562
|
+
{ type: i1.MenuController },
|
|
2563
|
+
{ type: i0.ComponentFactoryResolver }
|
|
2564
|
+
]; };
|
|
2565
|
+
|
|
2582
2566
|
var AppBaseComponent = /** @class */ (function () {
|
|
2583
2567
|
function AppBaseComponent(router, cd, elementRef, styleService, menuService, authService, platformId, document) {
|
|
2584
2568
|
this.router = router;
|
|
@@ -3343,8 +3327,9 @@
|
|
|
3343
3327
|
|
|
3344
3328
|
var DetailsComponent = /** @class */ (function (_super) {
|
|
3345
3329
|
__extends(DetailsComponent, _super);
|
|
3346
|
-
function DetailsComponent() {
|
|
3347
|
-
var _this = _super.
|
|
3330
|
+
function DetailsComponent(cd, moduleRef, cfr, detailsService) {
|
|
3331
|
+
var _this = _super.call(this, cd, moduleRef, cfr) || this;
|
|
3332
|
+
_this.detailsService = detailsService;
|
|
3348
3333
|
_this._subscription = new rxjs.Subscription();
|
|
3349
3334
|
_this.dynamicContents = new i0.QueryList();
|
|
3350
3335
|
return _this;
|
|
@@ -3357,6 +3342,7 @@
|
|
|
3357
3342
|
var _this = this;
|
|
3358
3343
|
this._options = val;
|
|
3359
3344
|
this._subscription.add(this._options.item$.subscribe(function (item) {
|
|
3345
|
+
_this.detailsService.setRoot(item);
|
|
3360
3346
|
_this.item = item;
|
|
3361
3347
|
}));
|
|
3362
3348
|
this.refreshDynamicInstance();
|
|
@@ -3382,6 +3368,19 @@
|
|
|
3382
3368
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
3383
3369
|
},] }
|
|
3384
3370
|
];
|
|
3371
|
+
/**
|
|
3372
|
+
* @type {function(): !Array<(null|{
|
|
3373
|
+
* type: ?,
|
|
3374
|
+
* decorators: (undefined|!Array<{type: !Function, args: (undefined|!Array<?>)}>),
|
|
3375
|
+
* })>}
|
|
3376
|
+
* @nocollapse
|
|
3377
|
+
*/
|
|
3378
|
+
DetailsComponent.ctorParameters = function () { return [
|
|
3379
|
+
{ type: i0.ChangeDetectorRef },
|
|
3380
|
+
{ type: i0.NgModuleRef },
|
|
3381
|
+
{ type: i0.ComponentFactoryResolver },
|
|
3382
|
+
{ type: DetailsService }
|
|
3383
|
+
]; };
|
|
3385
3384
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
3386
3385
|
DetailsComponent.propDecorators = {
|
|
3387
3386
|
options: [{ type: i0.Input }],
|
|
@@ -3390,8 +3389,9 @@
|
|
|
3390
3389
|
};
|
|
3391
3390
|
|
|
3392
3391
|
var DetailsBaseComponent = /** @class */ (function () {
|
|
3393
|
-
function DetailsBaseComponent(authService) {
|
|
3392
|
+
function DetailsBaseComponent(authService, detailsService) {
|
|
3394
3393
|
this.authService = authService;
|
|
3394
|
+
this.detailsService = detailsService;
|
|
3395
3395
|
}
|
|
3396
3396
|
Object.defineProperty(DetailsBaseComponent.prototype, "fields", {
|
|
3397
3397
|
get: function () {
|
|
@@ -3442,7 +3442,9 @@
|
|
|
3442
3442
|
else
|
|
3443
3443
|
result = utils.ObjectService.createByType(item, obj.type);
|
|
3444
3444
|
var removeFields = enabledDefinitions.filter(function (def) {
|
|
3445
|
-
return utils.SpecificationService.invalid(result, def.spec
|
|
3445
|
+
return utils.SpecificationService.invalid(result, def.spec, {
|
|
3446
|
+
$root: _this.detailsService.$root
|
|
3447
|
+
});
|
|
3446
3448
|
}).map(function (def) { return def.key; });
|
|
3447
3449
|
_this._fields = _this._fields.filter(function (f) { return !removeFields.some(function (rf) { return rf === f.key; }); });
|
|
3448
3450
|
return result;
|
|
@@ -3487,7 +3489,8 @@
|
|
|
3487
3489
|
* @nocollapse
|
|
3488
3490
|
*/
|
|
3489
3491
|
DetailsBaseComponent.ctorParameters = function () { return [
|
|
3490
|
-
{ type: AuthService }
|
|
3492
|
+
{ type: AuthService },
|
|
3493
|
+
{ type: DetailsService }
|
|
3491
3494
|
]; };
|
|
3492
3495
|
/** @type {!Object<string, !Array<{type: !Function, args: (undefined|!Array<?>)}>>} */
|
|
3493
3496
|
DetailsBaseComponent.propDecorators = {
|
|
@@ -3940,6 +3943,66 @@
|
|
|
3940
3943
|
rowClassExist: [{ type: i0.HostBinding, args: ['class.row',] }]
|
|
3941
3944
|
};
|
|
3942
3945
|
|
|
3946
|
+
var NgrxStoreService = /** @class */ (function () {
|
|
3947
|
+
function NgrxStoreService() {
|
|
3948
|
+
}
|
|
3949
|
+
NgrxStoreService.addReducer = function (key, reducer) {
|
|
3950
|
+
if (!NgrxStoreService._reducers[key]) {
|
|
3951
|
+
NgrxStoreService._reducers[key] = reducer;
|
|
3952
|
+
NgrxStoreService.store.addReducer(key, reducer);
|
|
3953
|
+
console.log(NgrxStoreService.name + " register reducer " + key);
|
|
3954
|
+
}
|
|
3955
|
+
};
|
|
3956
|
+
NgrxStoreService.prototype.connect = function (store) {
|
|
3957
|
+
NgrxStoreService.store = store;
|
|
3958
|
+
};
|
|
3959
|
+
return NgrxStoreService;
|
|
3960
|
+
}());
|
|
3961
|
+
NgrxStoreService._reducers = {};
|
|
3962
|
+
NgrxStoreService.store = undefined;
|
|
3963
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
3964
|
+
NgrxStoreService.decorators = [
|
|
3965
|
+
{ type: i0.Injectable }
|
|
3966
|
+
];
|
|
3967
|
+
|
|
3968
|
+
var AppService = /** @class */ (function () {
|
|
3969
|
+
function AppService() {
|
|
3970
|
+
this.endButtons$ = AppService._endButtonsSource$.asObservable();
|
|
3971
|
+
}
|
|
3972
|
+
AppService.prototype.addEndButton = function (button) {
|
|
3973
|
+
if (button.id) {
|
|
3974
|
+
var exist_1 = AppService._endButtonsSource$.value.find(function (e) { return e.id === button.id; });
|
|
3975
|
+
if (exist_1) {
|
|
3976
|
+
Object.keys(button).filter(function (k) { return k !== 'id'; }).forEach(function (key) {
|
|
3977
|
+
exist_1[key] = button[key];
|
|
3978
|
+
});
|
|
3979
|
+
AppService._endButtonsSource$.next(__spreadArray([], __read(AppService._endButtonsSource$.value)));
|
|
3980
|
+
return;
|
|
3981
|
+
}
|
|
3982
|
+
}
|
|
3983
|
+
AppService._endButtonsSource$.next(utils.ArrayService.addItem(AppService._endButtonsSource$.value, button));
|
|
3984
|
+
};
|
|
3985
|
+
AppService.prototype.removeEndButton = function (buttonOrId) {
|
|
3986
|
+
if (typeof buttonOrId === 'object') {
|
|
3987
|
+
var button = buttonOrId.id ?
|
|
3988
|
+
AppService._endButtonsSource$.value.find(function (e) { return e.id === buttonOrId.id; })
|
|
3989
|
+
: buttonOrId;
|
|
3990
|
+
AppService._endButtonsSource$.next(utils.ArrayService.removeItem(AppService._endButtonsSource$.value, button));
|
|
3991
|
+
return;
|
|
3992
|
+
}
|
|
3993
|
+
AppService._endButtonsSource$.next(__spreadArray([], __read(AppService._endButtonsSource$.value.filter(function (e) { return e.id !== buttonOrId; }))));
|
|
3994
|
+
};
|
|
3995
|
+
return AppService;
|
|
3996
|
+
}());
|
|
3997
|
+
AppService._endButtonsSource$ = new rxjs.BehaviorSubject([]);
|
|
3998
|
+
/** @nocollapse */ AppService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function AppService_Factory() { return new AppService(); }, token: AppService, providedIn: "root" });
|
|
3999
|
+
/** @type {!Array<{type: !Function, args: (undefined|!Array<?>)}>} */
|
|
4000
|
+
AppService.decorators = [
|
|
4001
|
+
{ type: i0.Injectable, args: [{
|
|
4002
|
+
providedIn: 'root'
|
|
4003
|
+
},] }
|
|
4004
|
+
];
|
|
4005
|
+
|
|
3943
4006
|
var InputComponent = /** @class */ (function () {
|
|
3944
4007
|
function InputComponent(componentFactoryResolver, injector) {
|
|
3945
4008
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
@@ -8494,6 +8557,7 @@
|
|
|
8494
8557
|
exports.DetailsComponent = DetailsComponent;
|
|
8495
8558
|
exports.DetailsDirective = DetailsDirective;
|
|
8496
8559
|
exports.DetailsPage = DetailsPage;
|
|
8560
|
+
exports.DetailsService = DetailsService;
|
|
8497
8561
|
exports.DetailsStandardComponent = DetailsStandardComponent;
|
|
8498
8562
|
exports.DynamicComponent = DynamicComponent;
|
|
8499
8563
|
exports.DynamicComponentLoader = DynamicComponentLoader;
|
|
@@ -8616,171 +8680,172 @@
|
|
|
8616
8680
|
exports.modalFromBottomLeaveAnimation = modalFromBottomLeaveAnimation;
|
|
8617
8681
|
exports["ɵa"] = SharedFactoriesModule;
|
|
8618
8682
|
exports["ɵb"] = FormFactory;
|
|
8619
|
-
exports["ɵba"] =
|
|
8620
|
-
exports["ɵbb"] =
|
|
8621
|
-
exports["ɵbc"] =
|
|
8622
|
-
exports["ɵbd"] =
|
|
8623
|
-
exports["ɵbe"] =
|
|
8624
|
-
exports["ɵbf"] =
|
|
8625
|
-
exports["ɵbg"] =
|
|
8626
|
-
exports["ɵbh"] =
|
|
8627
|
-
exports["ɵbi"] =
|
|
8628
|
-
exports["ɵbj"] =
|
|
8629
|
-
exports["ɵbk"] =
|
|
8630
|
-
exports["ɵbl"] =
|
|
8631
|
-
exports["ɵbm"] =
|
|
8632
|
-
exports["ɵbn"] =
|
|
8633
|
-
exports["ɵbo"] =
|
|
8634
|
-
exports["ɵbp"] =
|
|
8635
|
-
exports["ɵbq"] =
|
|
8636
|
-
exports["ɵbr"] =
|
|
8637
|
-
exports["ɵbs"] =
|
|
8638
|
-
exports["ɵbt"] =
|
|
8639
|
-
exports["ɵbu"] =
|
|
8640
|
-
exports["ɵbv"] =
|
|
8641
|
-
exports["ɵbw"] =
|
|
8642
|
-
exports["ɵbx"] =
|
|
8643
|
-
exports["ɵby"] =
|
|
8644
|
-
exports["ɵbz"] =
|
|
8683
|
+
exports["ɵba"] = FileUrlPipe;
|
|
8684
|
+
exports["ɵbb"] = ListHeaderPipe;
|
|
8685
|
+
exports["ɵbc"] = IModelLabelProvider;
|
|
8686
|
+
exports["ɵbd"] = MODEL_LABEL_PROVIDER;
|
|
8687
|
+
exports["ɵbe"] = ModelLabelPipe;
|
|
8688
|
+
exports["ɵbf"] = APP_COMPONENTS;
|
|
8689
|
+
exports["ɵbg"] = ACCORDION_COMPONENTS;
|
|
8690
|
+
exports["ɵbh"] = BUTTON_COMPONENTS;
|
|
8691
|
+
exports["ɵbi"] = CARD_COMPONENTS;
|
|
8692
|
+
exports["ɵbj"] = CHART_COMPONENTS;
|
|
8693
|
+
exports["ɵbk"] = DETAILS_COMPONENTS;
|
|
8694
|
+
exports["ɵbl"] = DETAIL_COMPONENTS;
|
|
8695
|
+
exports["ɵbm"] = FORM_COMPONENTS;
|
|
8696
|
+
exports["ɵbn"] = INPUT_COMPONENTS;
|
|
8697
|
+
exports["ɵbo"] = LIST_COMPONENTS;
|
|
8698
|
+
exports["ɵbp"] = LOADER_COMPONENTS;
|
|
8699
|
+
exports["ɵbq"] = PAGE_COMPONENTS;
|
|
8700
|
+
exports["ɵbr"] = SEARCHBAR_COMPONENTS;
|
|
8701
|
+
exports["ɵbs"] = TABS_COMPONENTS;
|
|
8702
|
+
exports["ɵbt"] = GRID_COMPONENTS;
|
|
8703
|
+
exports["ɵbu"] = INFO_COMPONENTS;
|
|
8704
|
+
exports["ɵbv"] = DATE_RANGE_COMPONENTS;
|
|
8705
|
+
exports["ɵbw"] = DATE_EDIT_COMPONENTS;
|
|
8706
|
+
exports["ɵbx"] = DYNAMIC_COMPONENTS;
|
|
8707
|
+
exports["ɵby"] = COMPONENTS$1;
|
|
8708
|
+
exports["ɵbz"] = IMPORTS;
|
|
8645
8709
|
exports["ɵc"] = IModelValidatorsProvider;
|
|
8646
|
-
exports["ɵca"] =
|
|
8647
|
-
exports["ɵcb"] =
|
|
8648
|
-
exports["ɵcc"] =
|
|
8649
|
-
exports["ɵcd"] =
|
|
8650
|
-
exports["ɵce"] =
|
|
8651
|
-
exports["ɵcf"] =
|
|
8652
|
-
exports["ɵcg"] =
|
|
8653
|
-
exports["ɵch"] =
|
|
8654
|
-
exports["ɵci"] =
|
|
8655
|
-
exports["ɵcj"] =
|
|
8656
|
-
exports["ɵck"] =
|
|
8657
|
-
exports["ɵcl"] =
|
|
8658
|
-
exports["ɵcm"] =
|
|
8659
|
-
exports["ɵcn"] =
|
|
8660
|
-
exports["ɵco"] =
|
|
8661
|
-
exports["ɵcp"] =
|
|
8662
|
-
exports["ɵcq"] =
|
|
8663
|
-
exports["ɵcr"] =
|
|
8664
|
-
exports["ɵcs"] =
|
|
8665
|
-
exports["ɵct"] =
|
|
8666
|
-
exports["ɵcu"] =
|
|
8667
|
-
exports["ɵcv"] =
|
|
8668
|
-
exports["ɵcw"] =
|
|
8669
|
-
exports["ɵcx"] =
|
|
8670
|
-
exports["ɵcy"] =
|
|
8671
|
-
exports["ɵcz"] =
|
|
8710
|
+
exports["ɵca"] = SharedComponentsModule;
|
|
8711
|
+
exports["ɵcb"] = FormStandardComponent;
|
|
8712
|
+
exports["ɵcc"] = FormBaseComponent;
|
|
8713
|
+
exports["ɵcd"] = BaseComponent;
|
|
8714
|
+
exports["ɵce"] = FormStepperComponent;
|
|
8715
|
+
exports["ɵcf"] = FormComponent;
|
|
8716
|
+
exports["ɵcg"] = DynamicContentDirective;
|
|
8717
|
+
exports["ɵch"] = IModelExportProvider;
|
|
8718
|
+
exports["ɵci"] = MODEL_EXPORT_PROVIDER;
|
|
8719
|
+
exports["ɵcj"] = IModelImportProvider;
|
|
8720
|
+
exports["ɵck"] = MODEL_IMPORT_PROVIDER;
|
|
8721
|
+
exports["ɵcl"] = AppSplitPanelComponent;
|
|
8722
|
+
exports["ɵcm"] = AppBaseComponent;
|
|
8723
|
+
exports["ɵcn"] = MenuService;
|
|
8724
|
+
exports["ɵco"] = PageStandardComponent;
|
|
8725
|
+
exports["ɵcp"] = PageBaseComponent;
|
|
8726
|
+
exports["ɵcq"] = AppService;
|
|
8727
|
+
exports["ɵcr"] = PageComponent;
|
|
8728
|
+
exports["ɵcs"] = InputComponent;
|
|
8729
|
+
exports["ɵct"] = InputIntComponent;
|
|
8730
|
+
exports["ɵcu"] = InputBaseComponent;
|
|
8731
|
+
exports["ɵcv"] = BaseComponent;
|
|
8732
|
+
exports["ɵcw"] = InputErrorComponent;
|
|
8733
|
+
exports["ɵcx"] = InputTextComponent;
|
|
8734
|
+
exports["ɵcy"] = InputPasswordComponent;
|
|
8735
|
+
exports["ɵcz"] = InputFlagComponent;
|
|
8672
8736
|
exports["ɵd"] = MODEL_VALIDATORS_PROVIDER;
|
|
8673
|
-
exports["ɵda"] =
|
|
8674
|
-
exports["ɵdb"] =
|
|
8675
|
-
exports["ɵdc"] =
|
|
8676
|
-
exports["ɵdd"] =
|
|
8677
|
-
exports["ɵde"] =
|
|
8678
|
-
exports["ɵdf"] =
|
|
8679
|
-
exports["ɵdg"] =
|
|
8680
|
-
exports["ɵdh"] =
|
|
8681
|
-
exports["ɵdi"] =
|
|
8682
|
-
exports["ɵdj"] =
|
|
8683
|
-
exports["ɵdk"] =
|
|
8684
|
-
exports["ɵdl"] =
|
|
8685
|
-
exports["ɵdm"] =
|
|
8686
|
-
exports["ɵdn"] =
|
|
8687
|
-
exports["ɵdo"] =
|
|
8688
|
-
exports["ɵdp"] =
|
|
8689
|
-
exports["ɵdq"] =
|
|
8690
|
-
exports["ɵdr"] =
|
|
8691
|
-
exports["ɵds"] =
|
|
8692
|
-
exports["ɵdt"] =
|
|
8693
|
-
exports["ɵdu"] =
|
|
8694
|
-
exports["ɵdv"] =
|
|
8695
|
-
exports["ɵdw"] =
|
|
8696
|
-
exports["ɵdx"] =
|
|
8697
|
-
exports["ɵdy"] =
|
|
8698
|
-
exports["ɵdz"] =
|
|
8737
|
+
exports["ɵda"] = InputEnumComponent;
|
|
8738
|
+
exports["ɵdb"] = InputEmailComponent;
|
|
8739
|
+
exports["ɵdc"] = InputCurrencyComponent;
|
|
8740
|
+
exports["ɵdd"] = MY_FORMATS;
|
|
8741
|
+
exports["ɵde"] = InputDateComponent;
|
|
8742
|
+
exports["ɵdf"] = InputDateWithEditComponent;
|
|
8743
|
+
exports["ɵdg"] = InputFileComponent;
|
|
8744
|
+
exports["ɵdh"] = InputRadioComponent;
|
|
8745
|
+
exports["ɵdi"] = InputPossibilitiesBaseComponent;
|
|
8746
|
+
exports["ɵdj"] = IModelPossibilitiesProvider;
|
|
8747
|
+
exports["ɵdk"] = MODEL_POSSIBILITIES_PROVIDER;
|
|
8748
|
+
exports["ɵdl"] = InputNipComponent;
|
|
8749
|
+
exports["ɵdm"] = InputStringsComponent;
|
|
8750
|
+
exports["ɵdn"] = InputLongTextComponent;
|
|
8751
|
+
exports["ɵdo"] = InputAddressComponent;
|
|
8752
|
+
exports["ɵdp"] = InputObjectComponent;
|
|
8753
|
+
exports["ɵdq"] = InputColorComponent;
|
|
8754
|
+
exports["ɵdr"] = InputLogoComponent;
|
|
8755
|
+
exports["ɵds"] = InputCheckComponent;
|
|
8756
|
+
exports["ɵdt"] = InputIntsComponent;
|
|
8757
|
+
exports["ɵdu"] = InputPhoneNumberComponent;
|
|
8758
|
+
exports["ɵdv"] = InputPeselComponent;
|
|
8759
|
+
exports["ɵdw"] = InputArrayComponent;
|
|
8760
|
+
exports["ɵdx"] = InputPdfComponent;
|
|
8761
|
+
exports["ɵdy"] = InputFileBaseComponent;
|
|
8762
|
+
exports["ɵdz"] = InputVideoComponent;
|
|
8699
8763
|
exports["ɵe"] = AuthService;
|
|
8700
|
-
exports["ɵea"] =
|
|
8701
|
-
exports["ɵeb"] =
|
|
8702
|
-
exports["ɵec"] =
|
|
8703
|
-
exports["ɵed"] =
|
|
8704
|
-
exports["ɵee"] =
|
|
8705
|
-
exports["ɵef"] =
|
|
8706
|
-
exports["ɵeg"] =
|
|
8707
|
-
exports["ɵeh"] =
|
|
8708
|
-
exports["ɵei"] =
|
|
8709
|
-
exports["ɵej"] =
|
|
8710
|
-
exports["ɵek"] =
|
|
8711
|
-
exports["ɵel"] =
|
|
8712
|
-
exports["ɵem"] =
|
|
8713
|
-
exports["ɵen"] =
|
|
8714
|
-
exports["ɵeo"] =
|
|
8715
|
-
exports["ɵep"] =
|
|
8716
|
-
exports["ɵeq"] =
|
|
8717
|
-
exports["ɵer"] =
|
|
8718
|
-
exports["ɵes"] =
|
|
8719
|
-
exports["ɵet"] =
|
|
8720
|
-
exports["ɵeu"] =
|
|
8721
|
-
exports["ɵev"] =
|
|
8722
|
-
exports["ɵew"] =
|
|
8723
|
-
exports["ɵex"] =
|
|
8724
|
-
exports["ɵey"] =
|
|
8725
|
-
exports["ɵez"] =
|
|
8764
|
+
exports["ɵea"] = InputAttachmentComponent;
|
|
8765
|
+
exports["ɵeb"] = InputDateRangeComponent;
|
|
8766
|
+
exports["ɵec"] = InputImageComponent;
|
|
8767
|
+
exports["ɵed"] = InputFloatComponent;
|
|
8768
|
+
exports["ɵee"] = ButtonComponent;
|
|
8769
|
+
exports["ɵef"] = ButtonStandardComponent;
|
|
8770
|
+
exports["ɵeg"] = ButtonBaseComponent;
|
|
8771
|
+
exports["ɵeh"] = CardComponent;
|
|
8772
|
+
exports["ɵei"] = ListComponent;
|
|
8773
|
+
exports["ɵej"] = ListMobileComponent;
|
|
8774
|
+
exports["ɵek"] = ListBaseComponent;
|
|
8775
|
+
exports["ɵel"] = ListDesktopComponent;
|
|
8776
|
+
exports["ɵem"] = ListMasonryGridComponent;
|
|
8777
|
+
exports["ɵen"] = LoaderComponent;
|
|
8778
|
+
exports["ɵeo"] = DetailComponent;
|
|
8779
|
+
exports["ɵep"] = DetailTextComponent;
|
|
8780
|
+
exports["ɵeq"] = DetailBaseComponent;
|
|
8781
|
+
exports["ɵer"] = DetailFlagComponent;
|
|
8782
|
+
exports["ɵes"] = DetailEnumComponent;
|
|
8783
|
+
exports["ɵet"] = DetailEmailComponent;
|
|
8784
|
+
exports["ɵeu"] = DetailAddressComponent;
|
|
8785
|
+
exports["ɵev"] = DetailObjectComponent;
|
|
8786
|
+
exports["ɵew"] = DetailColorComponent;
|
|
8787
|
+
exports["ɵex"] = DetailLogoComponent;
|
|
8788
|
+
exports["ɵey"] = DetailArrayComponent;
|
|
8789
|
+
exports["ɵez"] = DetailPdfComponent;
|
|
8726
8790
|
exports["ɵf"] = StorageService;
|
|
8727
|
-
exports["ɵfa"] =
|
|
8728
|
-
exports["ɵfb"] =
|
|
8729
|
-
exports["ɵfc"] =
|
|
8730
|
-
exports["ɵfd"] =
|
|
8731
|
-
exports["ɵfe"] =
|
|
8732
|
-
exports["ɵff"] =
|
|
8733
|
-
exports["ɵfg"] =
|
|
8734
|
-
exports["ɵfh"] =
|
|
8735
|
-
exports["ɵfi"] =
|
|
8736
|
-
exports["ɵfj"] =
|
|
8737
|
-
exports["ɵfk"] =
|
|
8738
|
-
exports["ɵfl"] =
|
|
8739
|
-
exports["ɵfm"] =
|
|
8740
|
-
exports["ɵfn"] =
|
|
8741
|
-
exports["ɵfo"] =
|
|
8742
|
-
exports["ɵfp"] =
|
|
8743
|
-
exports["ɵfq"] =
|
|
8744
|
-
exports["ɵfr"] =
|
|
8745
|
-
exports["ɵfs"] =
|
|
8746
|
-
exports["ɵft"] =
|
|
8747
|
-
exports["ɵfu"] =
|
|
8748
|
-
exports["ɵfv"] =
|
|
8749
|
-
exports["ɵfw"] =
|
|
8750
|
-
exports["ɵfx"] =
|
|
8751
|
-
exports["ɵfy"] =
|
|
8752
|
-
exports["ɵfz"] =
|
|
8753
|
-
exports["ɵg"] =
|
|
8754
|
-
exports["ɵga"] =
|
|
8755
|
-
exports["ɵgb"] =
|
|
8756
|
-
exports["ɵgc"] =
|
|
8757
|
-
exports["ɵgd"] =
|
|
8758
|
-
exports["ɵge"] =
|
|
8759
|
-
exports["ɵgf"] =
|
|
8760
|
-
exports["ɵgg"] =
|
|
8761
|
-
exports["ɵgh"] =
|
|
8762
|
-
exports["ɵgi"] =
|
|
8763
|
-
exports["ɵgj"] =
|
|
8764
|
-
exports["ɵgk"] =
|
|
8765
|
-
exports["
|
|
8766
|
-
exports["
|
|
8767
|
-
exports["
|
|
8768
|
-
exports["
|
|
8769
|
-
exports["
|
|
8770
|
-
exports["
|
|
8771
|
-
exports["
|
|
8772
|
-
exports["
|
|
8773
|
-
exports["
|
|
8774
|
-
exports["
|
|
8775
|
-
exports["
|
|
8776
|
-
exports["
|
|
8777
|
-
exports["
|
|
8778
|
-
exports["
|
|
8779
|
-
exports["
|
|
8780
|
-
exports["
|
|
8781
|
-
exports["
|
|
8782
|
-
exports["
|
|
8783
|
-
exports["
|
|
8791
|
+
exports["ɵfa"] = DetailVideoComponent;
|
|
8792
|
+
exports["ɵfb"] = DetailAttachmentComponent;
|
|
8793
|
+
exports["ɵfc"] = DetailDateRangeComponent;
|
|
8794
|
+
exports["ɵfd"] = DetailImageComponent;
|
|
8795
|
+
exports["ɵfe"] = DetailsComponent;
|
|
8796
|
+
exports["ɵff"] = DetailsStandardComponent;
|
|
8797
|
+
exports["ɵfg"] = DetailsBaseComponent;
|
|
8798
|
+
exports["ɵfh"] = SearchbarComponent;
|
|
8799
|
+
exports["ɵfi"] = TabsComponent;
|
|
8800
|
+
exports["ɵfj"] = TabComponent;
|
|
8801
|
+
exports["ɵfk"] = AccordionComponent;
|
|
8802
|
+
exports["ɵfl"] = AccordionHeaderComponent;
|
|
8803
|
+
exports["ɵfm"] = AccordionBodyComponent;
|
|
8804
|
+
exports["ɵfn"] = ChartComponent;
|
|
8805
|
+
exports["ɵfo"] = ChartLineComponent;
|
|
8806
|
+
exports["ɵfp"] = ChartBaseComponent;
|
|
8807
|
+
exports["ɵfq"] = ChartBarComponent;
|
|
8808
|
+
exports["ɵfr"] = GridComponent;
|
|
8809
|
+
exports["ɵfs"] = GridRowComponent;
|
|
8810
|
+
exports["ɵft"] = GridColumnComponent;
|
|
8811
|
+
exports["ɵfu"] = DynamicComponent;
|
|
8812
|
+
exports["ɵfv"] = PasswordStrengthComponent;
|
|
8813
|
+
exports["ɵfw"] = InfoComponent;
|
|
8814
|
+
exports["ɵfx"] = InfoModalComponent;
|
|
8815
|
+
exports["ɵfy"] = DateRangeComponent;
|
|
8816
|
+
exports["ɵfz"] = DateRangeModalComponent;
|
|
8817
|
+
exports["ɵg"] = DetailsService;
|
|
8818
|
+
exports["ɵga"] = DateEditComponent;
|
|
8819
|
+
exports["ɵgb"] = ErrorContextComponent;
|
|
8820
|
+
exports["ɵgc"] = ExportComponent;
|
|
8821
|
+
exports["ɵgd"] = PagingComponent;
|
|
8822
|
+
exports["ɵge"] = ImportComponent;
|
|
8823
|
+
exports["ɵgf"] = SharedDirectivesModule;
|
|
8824
|
+
exports["ɵgg"] = DetailsDirective;
|
|
8825
|
+
exports["ɵgh"] = DateValidator;
|
|
8826
|
+
exports["ɵgi"] = SharedPagesModule;
|
|
8827
|
+
exports["ɵgj"] = DetailsPage;
|
|
8828
|
+
exports["ɵgk"] = NgrxStoreService;
|
|
8829
|
+
exports["ɵgl"] = ErrorEffects;
|
|
8830
|
+
exports["ɵh"] = SharedServicesModule;
|
|
8831
|
+
exports["ɵi"] = ToastService;
|
|
8832
|
+
exports["ɵj"] = ErrorService;
|
|
8833
|
+
exports["ɵk"] = HardwareService;
|
|
8834
|
+
exports["ɵl"] = ModalService;
|
|
8835
|
+
exports["ɵm"] = DynamicComponentLoader;
|
|
8836
|
+
exports["ɵn"] = PopoverService;
|
|
8837
|
+
exports["ɵo"] = StyleService;
|
|
8838
|
+
exports["ɵp"] = FingerprintService;
|
|
8839
|
+
exports["ɵq"] = CameraService;
|
|
8840
|
+
exports["ɵr"] = FILE_SERVICE_CONFIG;
|
|
8841
|
+
exports["ɵs"] = FileService;
|
|
8842
|
+
exports["ɵt"] = CalendarService;
|
|
8843
|
+
exports["ɵu"] = UIService;
|
|
8844
|
+
exports["ɵv"] = AlertService;
|
|
8845
|
+
exports["ɵw"] = PIPES;
|
|
8846
|
+
exports["ɵx"] = SharedPipesModule;
|
|
8847
|
+
exports["ɵy"] = EnumToListPipe;
|
|
8848
|
+
exports["ɵz"] = ListCellPipe;
|
|
8784
8849
|
|
|
8785
8850
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
8786
8851
|
|