@sumaris-net/ngx-components 0.26.6 → 0.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/sumaris-net.ngx-components.umd.js +407 -432
- package/bundles/sumaris-net.ngx-components.umd.js.map +1 -1
- package/bundles/sumaris-net.ngx-components.umd.min.js +2 -2
- package/bundles/sumaris-net.ngx-components.umd.min.js.map +1 -1
- package/esm2015/src/app/core/graphql/graphql.service.js +1 -2
- package/esm2015/src/app/core/services/config.service.js +1 -1
- package/esm2015/src/app/core/services/platform.service.js +65 -84
- package/esm2015/src/app/shared/material/autocomplete/material.autocomplete.js +2 -4
- package/esm2015/src/app/shared/pipes/number-format.pipe.js +3 -3
- package/esm2015/src/app/shared/services/startable-service.class.js +12 -5
- package/fesm2015/sumaris-net.ngx-components.js +332 -364
- package/fesm2015/sumaris-net.ngx-components.js.map +1 -1
- package/package.json +2 -2
- package/src/app/core/services/platform.service.d.ts +3 -15
- package/src/app/shared/material/autocomplete/material.autocomplete.d.ts +0 -1
- package/src/app/shared/pipes/number-format.pipe.d.ts +1 -1
- package/src/app/shared/services/startable-service.class.d.ts +2 -1
- package/sumaris-net.ngx-components.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/cdk/table'), require('@angular/cdk/a11y'), require('@angular/cdk/overlay'), require('@angular/cdk/scrolling'), require('@angular/material/core'), require('@angular/material/table'), require('@angular/material/sort'), require('@angular/material/paginator'), require('@angular/material/form-field'), require('@angular/material/input'), require('@angular/material/checkbox'), require('@angular/material/expansion'), require('@angular/material/toolbar'), require('@angular/material/icon'), require('@angular/material/button'), require('@angular/material/menu'), require('@angular/material/select'), require('@angular/material/card'), require('@angular/material/tabs'), require('@angular/material/stepper'), require('@angular/material/list'), require('@angular/material/button-toggle'), require('@angular/material/progress-spinner'), require('@angular/material/progress-bar'), require('@angular/material/radio'), require('@angular/material/badge'), require('@angular/material/slide-toggle'), require('@angular/material/dialog'), require('@angular/material/autocomplete'), require('@angular/forms'), require('rxjs'), require('rxjs/operators'), require('@ngx-translate/core'), require('@ionic/angular'), require('moment'), require('@angular/material-moment-adapter'), require('@ionic-native/keyboard/ngx'), require('angular2-text-mask'), require('ngx-material-timepicker'), require('@angular/material/datepicker'), require('@angular/animations'), require('@angular/material/divider'), require('@angular/material/tooltip'), require('@angular/material/chips'), require('@angular/router'), require('@angular/platform-browser'), require('@angular/common/http'), require('ngx-color-picker'), require('@ionic-native/native-audio/ngx'), require('@ionic-native/vibration/ngx'), require('@ionic-native/audio-management/ngx'), require('@ionic-native/native-audio/ngx/index'), require('@ionic-native/vibration/ngx/index'), require('@ionic-native/audio-management/ngx/index'), require('uuid/v4'), require('@angular/cdk/drag-drop'), require('ngx-markdown'), require('tweetnacl'), require('@ionic/storage'), require('zone.js/dist/zone-error'), require('@ionic-native/splash-screen/ngx'), require('@ionic-native/network/ngx'), require('ionic-cache'), require('ionic-cache/dist/cache.service'), require('@ionic-native/network/ngx/index'), require('@ionic-native/splash-screen/ngx/index'), require('@ionic-native/status-bar/ngx'), require('@angular/cdk/platform'), require('@ionic-native/in-app-browser/ngx'), require('@apollo/client/core'), require('apollo-angular'), require('@apollo/client/link/ws'), require('@apollo/client/utilities'), require('@apollo/client/link/retry'), require('apollo-link-queue'), require('apollo-link-serialize'), require('apollo-link-logger'), require('apollo-angular/http'), require('apollo3-cache-persist'), require('@ionic-native/downloader/ngx'), require('@ionic-native/status-bar/ngx/index'), require('@ionic-native/keyboard/ngx/index'), require('@ionic-native/in-app-browser/ngx/index'), require('@ionic-native/downloader/ngx/index'), require('@e-is/ngx-material-table'), require('@angular/cdk/collections'), require('ngx-jdenticon'), require('tweetnacl-util'), require('scrypt-async'), require('hammerjs')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define('@sumaris-net/ngx-components', ['exports', '@angular/core', '@angular/common', '@angular/cdk/table', '@angular/cdk/a11y', '@angular/cdk/overlay', '@angular/cdk/scrolling', '@angular/material/core', '@angular/material/table', '@angular/material/sort', '@angular/material/paginator', '@angular/material/form-field', '@angular/material/input', '@angular/material/checkbox', '@angular/material/expansion', '@angular/material/toolbar', '@angular/material/icon', '@angular/material/button', '@angular/material/menu', '@angular/material/select', '@angular/material/card', '@angular/material/tabs', '@angular/material/stepper', '@angular/material/list', '@angular/material/button-toggle', '@angular/material/progress-spinner', '@angular/material/progress-bar', '@angular/material/radio', '@angular/material/badge', '@angular/material/slide-toggle', '@angular/material/dialog', '@angular/material/autocomplete', '@angular/forms', 'rxjs', 'rxjs/operators', '@ngx-translate/core', '@ionic/angular', 'moment', '@angular/material-moment-adapter', '@ionic-native/keyboard/ngx', 'angular2-text-mask', 'ngx-material-timepicker', '@angular/material/datepicker', '@angular/animations', '@angular/material/divider', '@angular/material/tooltip', '@angular/material/chips', '@angular/router', '@angular/platform-browser', '@angular/common/http', 'ngx-color-picker', '@ionic-native/native-audio/ngx', '@ionic-native/vibration/ngx', '@ionic-native/audio-management/ngx', '@ionic-native/native-audio/ngx/index', '@ionic-native/vibration/ngx/index', '@ionic-native/audio-management/ngx/index', 'uuid/v4', '@angular/cdk/drag-drop', 'ngx-markdown', 'tweetnacl', '@ionic/storage', 'zone.js/dist/zone-error', '@ionic-native/splash-screen/ngx', '@ionic-native/network/ngx', 'ionic-cache', 'ionic-cache/dist/cache.service', '@ionic-native/network/ngx/index', '@ionic-native/splash-screen/ngx/index', '@ionic-native/status-bar/ngx', '@angular/cdk/platform', '@ionic-native/in-app-browser/ngx', '@apollo/client/core', 'apollo-angular', '@apollo/client/link/ws', '@apollo/client/utilities', '@apollo/client/link/retry', 'apollo-link-queue', 'apollo-link-serialize', 'apollo-link-logger', 'apollo-angular/http', 'apollo3-cache-persist', '@ionic-native/downloader/ngx', '@ionic-native/status-bar/ngx/index', '@ionic-native/keyboard/ngx/index', '@ionic-native/in-app-browser/ngx/index', '@ionic-native/downloader/ngx/index', '@e-is/ngx-material-table', '@angular/cdk/collections', 'ngx-jdenticon', 'tweetnacl-util', 'scrypt-async', 'hammerjs'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global[
|
|
5
|
-
}
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['sumaris-net'] = global['sumaris-net'] || {}, global['sumaris-net']['ngx-components'] = {}), global.ng.core, global.ng.common, global.ng.cdk.table, global.ng.cdk.a11y, global.ng.cdk.overlay, global.ng.cdk.scrolling, global.ng.material.core, global.ng.material.table, global.ng.material.sort, global.ng.material.paginator, global.ng.material.formField, global.ng.material.input, global.ng.material.checkbox, global.ng.material.expansion, global.ng.material.toolbar, global.ng.material.icon, global.ng.material.button, global.ng.material.menu, global.ng.material.select, global.ng.material.card, global.ng.material.tabs, global.ng.material.stepper, global.ng.material.list, global.ng.material.buttonToggle, global.ng.material.progressSpinner, global.ng.material.progressBar, global.ng.material.radio, global.ng.material.badge, global.ng.material.slideToggle, global.ng.material.dialog, global.ng.material.autocomplete, global.ng.forms, global.rxjs, global.rxjs.operators, global['ngx-translate'].core, global.ionic.angular, global.moment, global.ng.materialMomentAdapter, global['ionic-native'].keyboard.ngx, global['angular2-text-mask'], global['ngx-material-timepicker'], global.ng.material.datepicker, global.ng.animations, global.ng.material.divider, global.ng.material.tooltip, global.ng.material.chips, global.ng.router, global.ng.platformBrowser, global.ng.common.http, global['ngx-color-picker'], global['ionic-native']['native-audio'].ngx, global['ionic-native'].vibration.ngx, global['ionic-native']['audio-management'].ngx, global['ionic-native']['native-audio'].ngx.index, global['ionic-native'].vibration.ngx.index, global['ionic-native']['audio-management'].ngx.index, global.uuid.v4, global.ng.cdk.dragDrop, global['ngx-markdown'], global.tweetnacl, global.ionic.storage, null, global['ionic-native']['splash-screen'].ngx, global['ionic-native'].network.ngx, global['ionic-cache'], global['ionic-cache/dist/cache'].service, global['ionic-native'].network.ngx.index, global['ionic-native']['splash-screen'].ngx.index, global['ionic-native']['status-bar'].ngx, global.ng.cdk.platform, global['ionic-native']['in-app-browser'].ngx, global.apollo.client.core, global['apollo-angular'], global.apollo.client.link.ws, global.apollo.client.utilities, global.apollo.client.link.retry, global['apollo-link-queue'], global['apollo-link-serialize'], global['apollo-link-logger'], global['apollo-angular'].http, global['apollo3-cache-persist'], global.ngx$6, global['ionic-native']['status-bar'].ngx.index, global['ionic-native'].keyboard.ngx.index, global['ionic-native']['in-app-browser'].ngx.index, global.i18, global['e-is']['ngx-material-table'], global.ng.cdk.collections, global['ngx-jdenticon']));
|
|
5
|
+
}(this, (function (exports, i0, i1$4, table$1, a11y, overlay, scrolling, i1$3, table, sort$1, paginator, formField, input, checkbox, expansion, toolbar, icon, button, menu, select, card, tabs, stepper, list, buttonToggle, progressSpinner, progressBar, radio, badge, slideToggle, i2, autocomplete, i1, rxjs, operators, i1$2, i1$5, momentImported, i1$1, ngx, angular2TextMask, ngxMaterialTimepicker, datepicker, animations, divider, tooltip, chips, i3, i1$6, i2$1, ngxColorPicker, ngx$2, ngx$3, ngx$1, i2$2, i3$1, i4, uuidv4Imported, dragDrop, ngxMarkdown, tweetnacl, i3$2, zoneError, ngx$5, ngx$4, ionicCache, i6, i9, i10, ngx$7, i2$4, ngx$8, core, i2$3, ws, utilities, retry, QueueLink, SerializingLink, loggerLink, i3$3, apollo3CachePersist, ngx$6, i14, i15, i17, i18, ngxMaterialTable, collections, ngxJdenticon) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -15,45 +15,22 @@
|
|
|
15
15
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
16
|
Object.defineProperty(n, k, d.get ? d : {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () {
|
|
18
|
+
get: function () {
|
|
19
|
+
return e[k];
|
|
20
|
+
}
|
|
19
21
|
});
|
|
20
22
|
}
|
|
21
23
|
});
|
|
22
24
|
}
|
|
23
|
-
n[
|
|
25
|
+
n['default'] = e;
|
|
24
26
|
return Object.freeze(n);
|
|
25
27
|
}
|
|
26
28
|
|
|
27
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
28
|
-
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
29
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
30
|
-
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
-
var i1__namespace$6 = /*#__PURE__*/_interopNamespace(i1);
|
|
32
|
-
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
33
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$5);
|
|
34
29
|
var momentImported__namespace = /*#__PURE__*/_interopNamespace(momentImported);
|
|
35
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1$1);
|
|
36
|
-
var i3__namespace$3 = /*#__PURE__*/_interopNamespace(i3);
|
|
37
|
-
var i1__namespace$5 = /*#__PURE__*/_interopNamespace(i1$6);
|
|
38
|
-
var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
39
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2$2);
|
|
40
|
-
var i3__namespace = /*#__PURE__*/_interopNamespace(i3$1);
|
|
41
|
-
var i4__namespace = /*#__PURE__*/_interopNamespace(i4);
|
|
42
30
|
var uuidv4Imported__namespace = /*#__PURE__*/_interopNamespace(uuidv4Imported);
|
|
43
|
-
var i3__namespace$1 = /*#__PURE__*/_interopNamespace(i3$2);
|
|
44
|
-
var i6__namespace = /*#__PURE__*/_interopNamespace(i6);
|
|
45
|
-
var i9__namespace = /*#__PURE__*/_interopNamespace(i9);
|
|
46
|
-
var i10__namespace = /*#__PURE__*/_interopNamespace(i10);
|
|
47
|
-
var i2__namespace$4 = /*#__PURE__*/_interopNamespace(i2$4);
|
|
48
|
-
var i2__namespace$3 = /*#__PURE__*/_interopNamespace(i2$3);
|
|
49
31
|
var QueueLink__default = /*#__PURE__*/_interopDefaultLegacy(QueueLink);
|
|
50
32
|
var SerializingLink__default = /*#__PURE__*/_interopDefaultLegacy(SerializingLink);
|
|
51
33
|
var loggerLink__default = /*#__PURE__*/_interopDefaultLegacy(loggerLink);
|
|
52
|
-
var i3__namespace$2 = /*#__PURE__*/_interopNamespace(i3$3);
|
|
53
|
-
var i14__namespace = /*#__PURE__*/_interopNamespace(i14);
|
|
54
|
-
var i15__namespace = /*#__PURE__*/_interopNamespace(i15);
|
|
55
|
-
var i17__namespace = /*#__PURE__*/_interopNamespace(i17);
|
|
56
|
-
var i18__namespace = /*#__PURE__*/_interopNamespace(i18);
|
|
57
34
|
|
|
58
35
|
var ENVIRONMENT = new i0.InjectionToken('ENV');
|
|
59
36
|
var Environment = /** @class */ (function () {
|
|
@@ -1157,19 +1134,19 @@
|
|
|
1157
1134
|
};
|
|
1158
1135
|
return MatAutocompleteConfigHolder;
|
|
1159
1136
|
}());
|
|
1160
|
-
var DEFAULT_VALUE_ACCESSOR
|
|
1137
|
+
var DEFAULT_VALUE_ACCESSOR = {
|
|
1161
1138
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
1162
1139
|
useExisting: i0.forwardRef(function () { return MatAutocompleteField; }),
|
|
1163
1140
|
multi: true
|
|
1164
1141
|
};
|
|
1165
|
-
var noop
|
|
1166
|
-
var ɵ0
|
|
1142
|
+
var noop = function () { };
|
|
1143
|
+
var ɵ0 = noop;
|
|
1167
1144
|
var MatAutocompleteField = /** @class */ (function () {
|
|
1168
1145
|
function MatAutocompleteField(cd, formGroupDir) {
|
|
1169
1146
|
this.cd = cd;
|
|
1170
1147
|
this.formGroupDir = formGroupDir;
|
|
1171
|
-
this._onChangeCallback = noop
|
|
1172
|
-
this._onTouchedCallback = noop
|
|
1148
|
+
this._onChangeCallback = noop;
|
|
1149
|
+
this._onTouchedCallback = noop;
|
|
1173
1150
|
this._subscription = new rxjs.Subscription();
|
|
1174
1151
|
this._filter$ = new rxjs.BehaviorSubject(undefined);
|
|
1175
1152
|
this._reload$ = new rxjs.Subject();
|
|
@@ -1199,7 +1176,6 @@
|
|
|
1199
1176
|
this.onDropButtonClick = new i0.EventEmitter(true);
|
|
1200
1177
|
this.onKeydownEscape = new i0.EventEmitter();
|
|
1201
1178
|
this.onKeyupEnter = new i0.EventEmitter();
|
|
1202
|
-
this.onKeydownTab = new i0.EventEmitter();
|
|
1203
1179
|
}
|
|
1204
1180
|
Object.defineProperty(MatAutocompleteField.prototype, "itemCount", {
|
|
1205
1181
|
get: function () {
|
|
@@ -1833,8 +1809,8 @@
|
|
|
1833
1809
|
{ type: i0.Component, args: [{
|
|
1834
1810
|
// eslint-disable-next-line @angular-eslint/component-selector
|
|
1835
1811
|
selector: 'mat-autocomplete-field',
|
|
1836
|
-
template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field *ngIf=\"_readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n [title]=\"displayValue\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- readonly -->\n <ng-container>\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\n </ng-container>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n\n <ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- Basic select -->\n <mat-select #matSelect\n *ngIf=\"!searchable; else searchableTemplate\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n [tabindex]=\"_tabindex\"\n [panelClass]=\"classList\"\n [style.width]=\"panelWidth\"\n (focus)=\"filterMatSelectFocusEvent($event)\"\n (blur)=\"filterMatSelectBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keydown.tab)=\"onKeydownTab.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\"\n [required]=\"required\">\n <mat-select-trigger>{{ displayWith(value) }}</mat-select-trigger>\n\n <!-- header -->\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as isLast\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n </ion-col>\n </ion-row>\n\n <!-- None option -->\n <mat-option *ngIf=\"!required\" class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding\">\n <ion-col class=\"ion-no-padding\">\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <ng-container *ngIf=\"$filteredItems | async; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <!-- options -->\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text>{{item | propertyGet: path }}</ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initMatSelectInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n </mat-select>\n\n\n <!--\n NOTE :\n - \"selectInputContent($event) || onFocus.emit($event)\" : call onFocus only when to the input is empty (nothing to select)\n -->\n <ng-template #searchableTemplate>\n <input matInput #matInputText type=\"text\"\n [matAutocomplete]=\"autocomplete\"\n [matAutocompletePosition]=\"matAutocompletePosition\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [appAutofocus]=\"autofocus\"\n [tabindex]=\"_tabindex\"\n [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keydown.tab)=\"onKeydownTab.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.opened && onDropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autocomplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\n [class.cdk-visually-hidden]=\"!searchable\"\n [panelWidth]=\"panelWidth\">\n\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as last\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n <ion-text color=\"light\" *ngIf=\"last && itemCount; let count \" class=\"ion-float-end ion-padding-end\"><i>{{'COMMON.RESULT_COUNT'|translate: {count: count} }}</i></ion-text>\n </ion-col>\n </ion-row>\n\n <ng-container *ngIf=\"$filteredItems | async; else loadingTemplate; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text [innerHTML]=\"item | propertyGet: path | highlight: { search: formControl.value, withAccent: highlightAccent }\"></ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initAutocompleteInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n\n <!-- Loading spinner -->\n <ng-template #loadingTemplate>\n <mat-option *ngIf=\"(matInputText.value | strLength) >= suggestLengthThreshold; else waitMoreCharacterTemplate\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-template>\n\n <!-- Need more characters -->\n <ng-template #waitMoreCharacterTemplate>\n <mat-option class=\"ion-padding text-italic\" disabled>\n <ion-label>\n {{'INFO.PLEASE_TYPE_MORE_CHARACTERS'|translate:{minLength: suggestLengthThreshold} }}\n </ion-label>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n\n </ng-template>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n <ng-content select=\"[matError]\"></ng-content>\n\n </mat-form-field>\n </ng-template>\n </ion-col>\n <ion-col size=\"auto\" class=\"ion-align-self-center\">\n <ng-content select=\"[matAfter]\"></ng-content>\n </ion-col>\n </ion-row>\n\n</ion-grid>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n\n\n<ng-template #matSuffixTemplate>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"searchable\"\n (click)=\"onDropButtonClick.emit($event)\"\n [hidden]=\"disabled\">\n <mat-icon class=\"large select-arrow\">arrow_drop_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button tabindex=\"-1\"\n *ngIf=\"enabled && mobile && !searchable && !multiple\"\n [title]=\"'COMMON.BTN_SEARCH'|translate\"\n (click)=\"toggleSearch($event)\">\n <mat-icon>search</mat-icon>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
1837
|
-
providers: [DEFAULT_VALUE_ACCESSOR
|
|
1812
|
+
template: "<ion-grid class=\"ion-no-padding\">\n <ion-row>\n <ion-col class=\"ion-no-padding\">\n <mat-form-field *ngIf=\"_readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n [title]=\"displayValue\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- readonly -->\n <ng-container>\n <input matInput hidden type=\"text\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\" readonly>\n <ion-text>{{displayWith(value)}}</ion-text>\n </ng-container>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n </mat-form-field>\n\n <ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"disabled\"\n [title]=\"displayValue\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <!-- Basic select -->\n <mat-select #matSelect\n *ngIf=\"!searchable; else searchableTemplate\"\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\"\n [tabindex]=\"_tabindex\"\n [panelClass]=\"classList\"\n [style.width]=\"panelWidth\"\n (focus)=\"filterMatSelectFocusEvent($event)\"\n (blur)=\"filterMatSelectBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n [compareWith]=\"compareWith\"\n [multiple]=\"multiple\"\n [required]=\"required\">\n <mat-select-trigger>{{ displayWith(value) }}</mat-select-trigger>\n\n <!-- header -->\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as isLast\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n </ion-col>\n </ion-row>\n\n <!-- None option -->\n <mat-option *ngIf=\"!required\" class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding\">\n <ion-col class=\"ion-no-padding\">\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <ng-container *ngIf=\"$filteredItems | async; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <!-- options -->\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text>{{item | propertyGet: path }}</ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initMatSelectInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n </mat-select>\n\n\n <!--\n NOTE :\n - \"selectInputContent($event) || onFocus.emit($event)\" : call onFocus only when to the input is empty (nothing to select)\n -->\n <ng-template #searchableTemplate>\n <input matInput #matInputText type=\"text\"\n [matAutocomplete]=\"autocomplete\"\n [matAutocompletePosition]=\"matAutocompletePosition\"\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [appAutofocus]=\"autofocus\"\n [tabindex]=\"_tabindex\"\n [required]=\"required\"\n (click)=\"onClick.emit($event)\"\n (focus)=\"filterInputTextFocusInEvent($event)\"\n (blur)=\"filterInputTextBlurEvent($event)\"\n (keydown.escape)=\"onKeydownEscape.emit($event)\"\n (keyup.enter)=\"onKeyupEnter.emit($event)\"\n (keyup.arrowdown)=\"!autocomplete.opened && onDropButtonClick.emit($event)\">\n\n <!-- autocomplete -->\n <mat-autocomplete #autocomplete=\"matAutocomplete\"\n autoActiveFirstOption\n [displayWith]=\"displayWith\"\n [class]=\"classList\"\n [class.cdk-visually-hidden]=\"!searchable\"\n [panelWidth]=\"panelWidth\">\n\n <ion-row class=\"mat-autocomplete-header ion-no-padding\">\n <ion-col *ngFor=\"let attr of displayAttributes; index as i; last as last\" [size]=\"displayColumnSizes[i]\">\n <ion-label [innerHTML]=\"displayColumnNames[i] | translate\"></ion-label>\n <ion-text color=\"light\" *ngIf=\"last && itemCount; let count \" class=\"ion-float-end ion-padding-end\"><i>{{'COMMON.RESULT_COUNT'|translate: {count: count} }}</i></ion-text>\n </ion-col>\n </ion-row>\n\n <ng-container *ngIf=\"$filteredItems | async; else loadingTemplate; let items\">\n <!-- No item option -->\n <mat-option *ngIf=\"items | isEmptyArray\" class=\"ion-padding text-italic\" disabled>\n <ion-label>{{noResultMessage | translate}}</ion-label>\n </mat-option>\n\n <mat-option *ngFor=\"let item of items\" [value]=\"item\" class=\"ion-no-padding\">\n <ion-row [classList]=\"item.classList\">\n <ion-col *ngFor=\"let path of displayAttributes; index as i;\"\n [size]=\"displayColumnSizes[i]\">\n <ion-text [innerHTML]=\"item | propertyGet: path | highlight: { search: formControl.value, withAccent: highlightAccent }\"></ion-text>\n </ion-col>\n </ion-row>\n </mat-option>\n\n <!-- More item -->\n <mat-option *ngIf=\"_moreItemsCount\" (ngInit)=\"_initAutocompleteInfiniteScroll()\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-container>\n\n <!-- Loading spinner -->\n <ng-template #loadingTemplate>\n <mat-option *ngIf=\"(matInputText.value | strLength) >= suggestLengthThreshold; else waitMoreCharacterTemplate\"\n class=\"ion-padding\" disabled>\n <ion-skeleton-text [animated]=\"true\" style=\"width: 100%\"></ion-skeleton-text>\n </mat-option>\n </ng-template>\n\n <!-- Need more characters -->\n <ng-template #waitMoreCharacterTemplate>\n <mat-option class=\"ion-padding text-italic\" disabled>\n <ion-label>\n {{'INFO.PLEASE_TYPE_MORE_CHARACTERS'|translate:{minLength: suggestLengthThreshold} }}\n </ion-label>\n </mat-option>\n </ng-template>\n </mat-autocomplete>\n\n </ng-template>\n\n <div matSuffix>\n <ng-container *ngTemplateOutlet=\"matSuffixTemplate\"></ng-container>\n </div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n <ng-content select=\"[matError]\"></ng-content>\n\n </mat-form-field>\n </ng-template>\n </ion-col>\n <ion-col size=\"auto\" class=\"ion-align-self-center\">\n <ng-content select=\"[matAfter]\"></ng-content>\n </ion-col>\n </ion-row>\n\n</ion-grid>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n\n\n<ng-template #matSuffixTemplate>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"searchable\"\n (click)=\"onDropButtonClick.emit($event)\"\n [hidden]=\"disabled\">\n <mat-icon class=\"large select-arrow\">arrow_drop_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button tabindex=\"-1\"\n *ngIf=\"enabled && mobile && !searchable && !multiple\"\n [title]=\"'COMMON.BTN_SEARCH'|translate\"\n (click)=\"toggleSearch($event)\">\n <mat-icon>search</mat-icon>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <ng-content select=\"[matSuffix]\"></ng-content>\n</ng-template>\n",
|
|
1813
|
+
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
1838
1814
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
1839
1815
|
styles: [":host{display:inline-block;position:relative}:host.ion-text-wrap ion-label{white-space:normal!important}button[hidden]{display:none}mat-icon.select-arrow{color:rgba(0,0,0,.47);font-size:150%}.fact-scroll-viewport{height:100%;width:100%}.fact-item{height:54px;display:flex}.fact-item .fact-date{min-width:100px;text-align:center;font-size:24pt}.fact-item .fact-date,.fact-item .fact-text{height:100%;align-items:center;justify-content:center;display:flex}.fact-item .fact-text{border-radius:10px}cdk-virtual-scroll-viewport{border:1px solid #000}cdk-virtual-scroll-viewport li{list-style:none}"]
|
|
1840
1816
|
},] }
|
|
@@ -1885,7 +1861,6 @@
|
|
|
1885
1861
|
onDropButtonClick: [{ type: i0.Output, args: ['dropButtonClick',] }],
|
|
1886
1862
|
onKeydownEscape: [{ type: i0.Output, args: ['keydown.escape',] }],
|
|
1887
1863
|
onKeyupEnter: [{ type: i0.Output, args: ['keyup.enter',] }],
|
|
1888
|
-
onKeydownTab: [{ type: i0.Output, args: ['keydown.tab',] }],
|
|
1889
1864
|
matSelect: [{ type: i0.ViewChild, args: ['matSelect',] }],
|
|
1890
1865
|
matInputText: [{ type: i0.ViewChild, args: ['matInputText',] }],
|
|
1891
1866
|
matAutocomplete: [{ type: i0.ViewChild, args: [autocomplete.MatAutocomplete,] }],
|
|
@@ -1913,7 +1888,7 @@
|
|
|
1913
1888
|
};
|
|
1914
1889
|
return DateFormatPipe;
|
|
1915
1890
|
}());
|
|
1916
|
-
DateFormatPipe.ɵprov =
|
|
1891
|
+
DateFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFormatPipe_Factory() { return new DateFormatPipe(i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateFormatPipe, providedIn: "root" });
|
|
1917
1892
|
DateFormatPipe.decorators = [
|
|
1918
1893
|
{ type: i0.Pipe, args: [{
|
|
1919
1894
|
name: 'dateFormat'
|
|
@@ -1925,7 +1900,7 @@
|
|
|
1925
1900
|
{ type: i1$2.TranslateService }
|
|
1926
1901
|
]; };
|
|
1927
1902
|
|
|
1928
|
-
var moment
|
|
1903
|
+
var moment = momentImported__namespace;
|
|
1929
1904
|
var DateDiffDurationPipe = /** @class */ (function () {
|
|
1930
1905
|
function DateDiffDurationPipe(dateAdapter, translate) {
|
|
1931
1906
|
var _this = this;
|
|
@@ -1942,10 +1917,10 @@
|
|
|
1942
1917
|
return this.format(startDate, endDate);
|
|
1943
1918
|
};
|
|
1944
1919
|
DateDiffDurationPipe.prototype.format = function (startDate, endDate) {
|
|
1945
|
-
var duration = moment
|
|
1920
|
+
var duration = moment.duration(endDate.diff(startDate));
|
|
1946
1921
|
if (duration.asMinutes() < 0)
|
|
1947
1922
|
return '';
|
|
1948
|
-
var timeDuration = moment
|
|
1923
|
+
var timeDuration = moment(0)
|
|
1949
1924
|
.hour(duration.hours())
|
|
1950
1925
|
.minute(duration.minutes());
|
|
1951
1926
|
var days = Math.floor(duration.asDays());
|
|
@@ -1953,7 +1928,7 @@
|
|
|
1953
1928
|
};
|
|
1954
1929
|
return DateDiffDurationPipe;
|
|
1955
1930
|
}());
|
|
1956
|
-
DateDiffDurationPipe.ɵprov =
|
|
1931
|
+
DateDiffDurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateDiffDurationPipe_Factory() { return new DateDiffDurationPipe(i0.ɵɵinject(i1$3.DateAdapter), i0.ɵɵinject(i1$2.TranslateService)); }, token: DateDiffDurationPipe, providedIn: "root" });
|
|
1957
1932
|
DateDiffDurationPipe.decorators = [
|
|
1958
1933
|
{ type: i0.Pipe, args: [{
|
|
1959
1934
|
name: 'dateDiffDuration'
|
|
@@ -1975,7 +1950,7 @@
|
|
|
1975
1950
|
};
|
|
1976
1951
|
return DateFromNowPipe;
|
|
1977
1952
|
}());
|
|
1978
|
-
DateFromNowPipe.ɵprov =
|
|
1953
|
+
DateFromNowPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DateFromNowPipe_Factory() { return new DateFromNowPipe(i0.ɵɵinject(i1$1.MomentDateAdapter)); }, token: DateFromNowPipe, providedIn: "root" });
|
|
1979
1954
|
DateFromNowPipe.decorators = [
|
|
1980
1955
|
{ type: i0.Pipe, args: [{
|
|
1981
1956
|
name: 'dateFromNow'
|
|
@@ -2044,7 +2019,7 @@
|
|
|
2044
2019
|
value *= -1;
|
|
2045
2020
|
}
|
|
2046
2021
|
}
|
|
2047
|
-
var degrees = roundFloat
|
|
2022
|
+
var degrees = roundFloat(value, opts.maxDecimals).toString();
|
|
2048
2023
|
// Add sign
|
|
2049
2024
|
var sign = negative ? '-' : '+';
|
|
2050
2025
|
if (opts.placeholderChar) {
|
|
@@ -2095,7 +2070,7 @@
|
|
|
2095
2070
|
}
|
|
2096
2071
|
var degrees = Math.trunc(value);
|
|
2097
2072
|
var minutes = Math.trunc((value - degrees) * 60);
|
|
2098
|
-
var seconds = roundFloat
|
|
2073
|
+
var seconds = roundFloat(((value - degrees) * 60 - minutes) * 60, opts.maxDecimals);
|
|
2099
2074
|
while (seconds >= 60) {
|
|
2100
2075
|
seconds -= 60;
|
|
2101
2076
|
minutes += 1;
|
|
@@ -2163,7 +2138,7 @@
|
|
|
2163
2138
|
}
|
|
2164
2139
|
}
|
|
2165
2140
|
var degrees = Math.trunc(value);
|
|
2166
|
-
var minutes = roundFloat
|
|
2141
|
+
var minutes = roundFloat((value - degrees) * 60, opts.maxDecimals);
|
|
2167
2142
|
while (minutes >= 60) {
|
|
2168
2143
|
minutes -= 60;
|
|
2169
2144
|
degrees += 1;
|
|
@@ -2214,15 +2189,15 @@
|
|
|
2214
2189
|
return NaN;
|
|
2215
2190
|
}
|
|
2216
2191
|
if (pattern === 'DD')
|
|
2217
|
-
return roundFloat
|
|
2192
|
+
return roundFloat(degrees, maxDecimals);
|
|
2218
2193
|
var minutes = (pattern === 'DDMMSS' || pattern === 'DDMM') && parts[1] && parseFloat(parts[1].replace(/,/g, '.')) || 0;
|
|
2219
2194
|
var seconds = (pattern === 'DDMMSS') && parts[2] && parseFloat(parts[2].replace(/,/g, '.')) || 0;
|
|
2220
2195
|
var direction = ((pattern === 'DDMMSS') && parts[3]) || ((pattern === 'DDMM') && parts[2]) || undefined;
|
|
2221
2196
|
var sign = (direction && (direction === 's' || direction === 'S' || direction === 'w' || direction === 'W')) ? -1 : 1;
|
|
2222
2197
|
degrees = sign * (degrees + minutes / 60 + seconds / (60 * 60));
|
|
2223
|
-
return roundFloat
|
|
2198
|
+
return roundFloat(degrees, maxDecimals);
|
|
2224
2199
|
}
|
|
2225
|
-
function roundFloat
|
|
2200
|
+
function roundFloat(input, maxDecimals) {
|
|
2226
2201
|
if (maxDecimals > 0) {
|
|
2227
2202
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
2228
2203
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -2245,7 +2220,7 @@
|
|
|
2245
2220
|
};
|
|
2246
2221
|
return LatLongFormatPipe;
|
|
2247
2222
|
}());
|
|
2248
|
-
LatLongFormatPipe.ɵprov =
|
|
2223
|
+
LatLongFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatLongFormatPipe_Factory() { return new LatLongFormatPipe(); }, token: LatLongFormatPipe, providedIn: "root" });
|
|
2249
2224
|
LatLongFormatPipe.decorators = [
|
|
2250
2225
|
{ type: i0.Pipe, args: [{
|
|
2251
2226
|
name: 'latLongFormat'
|
|
@@ -2258,7 +2233,7 @@
|
|
|
2258
2233
|
}
|
|
2259
2234
|
return LatitudeFormatPipe;
|
|
2260
2235
|
}());
|
|
2261
|
-
LatitudeFormatPipe.ɵprov =
|
|
2236
|
+
LatitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LatitudeFormatPipe_Factory() { return new LatitudeFormatPipe(); }, token: LatitudeFormatPipe, providedIn: "root" });
|
|
2262
2237
|
LatitudeFormatPipe.decorators = [
|
|
2263
2238
|
{ type: i0.Pipe, args: [{
|
|
2264
2239
|
name: 'latitudeFormat'
|
|
@@ -2271,7 +2246,7 @@
|
|
|
2271
2246
|
}
|
|
2272
2247
|
return LongitudeFormatPipe;
|
|
2273
2248
|
}());
|
|
2274
|
-
LongitudeFormatPipe.ɵprov =
|
|
2249
|
+
LongitudeFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function LongitudeFormatPipe_Factory() { return new LongitudeFormatPipe(); }, token: LongitudeFormatPipe, providedIn: "root" });
|
|
2275
2250
|
LongitudeFormatPipe.decorators = [
|
|
2276
2251
|
{ type: i0.Pipe, args: [{
|
|
2277
2252
|
name: 'longitudeFormat'
|
|
@@ -2282,11 +2257,11 @@
|
|
|
2282
2257
|
var NumberFormatPipe = /** @class */ (function () {
|
|
2283
2258
|
function NumberFormatPipe() {
|
|
2284
2259
|
}
|
|
2285
|
-
NumberFormatPipe.prototype.transform = function (val) {
|
|
2260
|
+
NumberFormatPipe.prototype.transform = function (val, numberFormatOptions) {
|
|
2286
2261
|
// Format the output to display any way you want here.
|
|
2287
2262
|
// For instance:
|
|
2288
2263
|
if (val !== undefined && val !== null) {
|
|
2289
|
-
return val.toLocaleString(
|
|
2264
|
+
return val.toLocaleString(undefined, numberFormatOptions);
|
|
2290
2265
|
}
|
|
2291
2266
|
else {
|
|
2292
2267
|
return '';
|
|
@@ -2294,7 +2269,7 @@
|
|
|
2294
2269
|
};
|
|
2295
2270
|
return NumberFormatPipe;
|
|
2296
2271
|
}());
|
|
2297
|
-
NumberFormatPipe.ɵprov =
|
|
2272
|
+
NumberFormatPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function NumberFormatPipe_Factory() { return new NumberFormatPipe(); }, token: NumberFormatPipe, providedIn: "root" });
|
|
2298
2273
|
NumberFormatPipe.decorators = [
|
|
2299
2274
|
{ type: i0.Pipe, args: [{
|
|
2300
2275
|
name: 'numberFormat'
|
|
@@ -2337,7 +2312,7 @@
|
|
|
2337
2312
|
};
|
|
2338
2313
|
return HighlightPipe;
|
|
2339
2314
|
}());
|
|
2340
|
-
HighlightPipe.ɵprov =
|
|
2315
|
+
HighlightPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function HighlightPipe_Factory() { return new HighlightPipe(); }, token: HighlightPipe, providedIn: "root" });
|
|
2341
2316
|
HighlightPipe.decorators = [
|
|
2342
2317
|
{ type: i0.Pipe, args: [{
|
|
2343
2318
|
name: 'highlight'
|
|
@@ -2405,7 +2380,7 @@
|
|
|
2405
2380
|
{ type: i0.Pipe, args: [{ name: 'fileSize' },] }
|
|
2406
2381
|
];
|
|
2407
2382
|
|
|
2408
|
-
var moment$
|
|
2383
|
+
var moment$1 = momentImported__namespace;
|
|
2409
2384
|
var DATE_UNIX_TIMESTAMP = 'X';
|
|
2410
2385
|
var DATE_UNIX_MS_TIMESTAMP = 'x';
|
|
2411
2386
|
var DateUtils = /** @class */ (function () {
|
|
@@ -2440,32 +2415,32 @@
|
|
|
2440
2415
|
if (!value || momentImported.isMoment(value))
|
|
2441
2416
|
return value;
|
|
2442
2417
|
// Parse the input value, as a ISO date time
|
|
2443
|
-
var date = moment$
|
|
2418
|
+
var date = moment$1(value, DATE_ISO_PATTERN);
|
|
2444
2419
|
if (date.isValid())
|
|
2445
2420
|
return date;
|
|
2446
2421
|
// Not valid: trying to convert from unix timestamp
|
|
2447
2422
|
if (typeof value === 'string') {
|
|
2448
2423
|
console.warn('Wrong date format - Trying to convert from local time: ' + value);
|
|
2449
2424
|
if (value.length === 10) {
|
|
2450
|
-
return moment$
|
|
2425
|
+
return moment$1(value, DATE_UNIX_TIMESTAMP);
|
|
2451
2426
|
}
|
|
2452
2427
|
else if (value.length === 13) {
|
|
2453
|
-
return moment$
|
|
2428
|
+
return moment$1(value, DATE_UNIX_MS_TIMESTAMP);
|
|
2454
2429
|
}
|
|
2455
2430
|
}
|
|
2456
2431
|
console.warn('Unable to parse date: ' + value);
|
|
2457
2432
|
return undefined;
|
|
2458
2433
|
}
|
|
2459
2434
|
function fromUnixTimestamp(timeInSec) {
|
|
2460
|
-
return moment$
|
|
2435
|
+
return moment$1(timeInSec, DATE_UNIX_TIMESTAMP);
|
|
2461
2436
|
}
|
|
2462
2437
|
function fromUnixMsTimestamp(timeInMs) {
|
|
2463
|
-
return moment$
|
|
2438
|
+
return moment$1(timeInMs, DATE_UNIX_MS_TIMESTAMP);
|
|
2464
2439
|
}
|
|
2465
2440
|
function toDuration(value, unit) {
|
|
2466
2441
|
if (!value)
|
|
2467
2442
|
return undefined;
|
|
2468
|
-
var duration = moment$
|
|
2443
|
+
var duration = moment$1.duration(value, unit);
|
|
2469
2444
|
// fix 990+ ms
|
|
2470
2445
|
if (duration.milliseconds() >= 990) {
|
|
2471
2446
|
duration.add(1000 - duration.milliseconds(), 'ms');
|
|
@@ -2495,7 +2470,7 @@
|
|
|
2495
2470
|
};
|
|
2496
2471
|
return DurationPipe;
|
|
2497
2472
|
}());
|
|
2498
|
-
DurationPipe.ɵprov =
|
|
2473
|
+
DurationPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DurationPipe_Factory() { return new DurationPipe(i0.ɵɵinject(i1$2.TranslateService)); }, token: DurationPipe, providedIn: "root" });
|
|
2499
2474
|
DurationPipe.decorators = [
|
|
2500
2475
|
{ type: i0.Pipe, args: [{
|
|
2501
2476
|
name: 'duration'
|
|
@@ -2519,7 +2494,7 @@
|
|
|
2519
2494
|
};
|
|
2520
2495
|
return MathAbsPipe;
|
|
2521
2496
|
}());
|
|
2522
|
-
MathAbsPipe.ɵprov =
|
|
2497
|
+
MathAbsPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MathAbsPipe_Factory() { return new MathAbsPipe(); }, token: MathAbsPipe, providedIn: "root" });
|
|
2523
2498
|
MathAbsPipe.decorators = [
|
|
2524
2499
|
{ type: i0.Pipe, args: [{
|
|
2525
2500
|
name: 'mathAbs'
|
|
@@ -2534,7 +2509,7 @@
|
|
|
2534
2509
|
};
|
|
2535
2510
|
return EvenPipe;
|
|
2536
2511
|
}());
|
|
2537
|
-
EvenPipe.ɵprov =
|
|
2512
|
+
EvenPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function EvenPipe_Factory() { return new EvenPipe(); }, token: EvenPipe, providedIn: "root" });
|
|
2538
2513
|
EvenPipe.decorators = [
|
|
2539
2514
|
{ type: i0.Pipe, args: [{
|
|
2540
2515
|
name: 'even'
|
|
@@ -2549,7 +2524,7 @@
|
|
|
2549
2524
|
};
|
|
2550
2525
|
return OddPipe;
|
|
2551
2526
|
}());
|
|
2552
|
-
OddPipe.ɵprov =
|
|
2527
|
+
OddPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function OddPipe_Factory() { return new OddPipe(); }, token: OddPipe, providedIn: "root" });
|
|
2553
2528
|
OddPipe.decorators = [
|
|
2554
2529
|
{ type: i0.Pipe, args: [{
|
|
2555
2530
|
name: 'odd'
|
|
@@ -2681,7 +2656,7 @@
|
|
|
2681
2656
|
};
|
|
2682
2657
|
return MapGetPipe;
|
|
2683
2658
|
}());
|
|
2684
|
-
MapGetPipe.ɵprov =
|
|
2659
|
+
MapGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapGetPipe_Factory() { return new MapGetPipe(); }, token: MapGetPipe, providedIn: "root" });
|
|
2685
2660
|
MapGetPipe.decorators = [
|
|
2686
2661
|
{ type: i0.Pipe, args: [{
|
|
2687
2662
|
name: 'mapGet'
|
|
@@ -2698,7 +2673,7 @@
|
|
|
2698
2673
|
};
|
|
2699
2674
|
return MapKeysPipe;
|
|
2700
2675
|
}());
|
|
2701
|
-
MapKeysPipe.ɵprov =
|
|
2676
|
+
MapKeysPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapKeysPipe_Factory() { return new MapKeysPipe(); }, token: MapKeysPipe, providedIn: "root" });
|
|
2702
2677
|
MapKeysPipe.decorators = [
|
|
2703
2678
|
{ type: i0.Pipe, args: [{
|
|
2704
2679
|
name: 'mapKeys'
|
|
@@ -2715,7 +2690,7 @@
|
|
|
2715
2690
|
};
|
|
2716
2691
|
return MapValuesPipe;
|
|
2717
2692
|
}());
|
|
2718
|
-
MapValuesPipe.ɵprov =
|
|
2693
|
+
MapValuesPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function MapValuesPipe_Factory() { return new MapValuesPipe(); }, token: MapValuesPipe, providedIn: "root" });
|
|
2719
2694
|
MapValuesPipe.decorators = [
|
|
2720
2695
|
{ type: i0.Pipe, args: [{
|
|
2721
2696
|
name: 'mapValues'
|
|
@@ -2731,7 +2706,7 @@
|
|
|
2731
2706
|
};
|
|
2732
2707
|
return IsNotNilOrBlankPipe;
|
|
2733
2708
|
}());
|
|
2734
|
-
IsNotNilOrBlankPipe.ɵprov =
|
|
2709
|
+
IsNotNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotNilOrBlankPipe_Factory() { return new IsNotNilOrBlankPipe(); }, token: IsNotNilOrBlankPipe, providedIn: "root" });
|
|
2735
2710
|
IsNotNilOrBlankPipe.decorators = [
|
|
2736
2711
|
{ type: i0.Pipe, args: [{
|
|
2737
2712
|
name: 'isNotNilOrBlank'
|
|
@@ -2746,7 +2721,7 @@
|
|
|
2746
2721
|
};
|
|
2747
2722
|
return IsNilOrBlankPipe;
|
|
2748
2723
|
}());
|
|
2749
|
-
IsNilOrBlankPipe.ɵprov =
|
|
2724
|
+
IsNilOrBlankPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNilOrBlankPipe_Factory() { return new IsNilOrBlankPipe(); }, token: IsNilOrBlankPipe, providedIn: "root" });
|
|
2750
2725
|
IsNilOrBlankPipe.decorators = [
|
|
2751
2726
|
{ type: i0.Pipe, args: [{
|
|
2752
2727
|
name: 'isNilOrBlank'
|
|
@@ -2761,7 +2736,7 @@
|
|
|
2761
2736
|
};
|
|
2762
2737
|
return ToStringPipe;
|
|
2763
2738
|
}());
|
|
2764
|
-
ToStringPipe.ɵprov =
|
|
2739
|
+
ToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToStringPipe_Factory() { return new ToStringPipe(); }, token: ToStringPipe, providedIn: "root" });
|
|
2765
2740
|
ToStringPipe.decorators = [
|
|
2766
2741
|
{ type: i0.Pipe, args: [{
|
|
2767
2742
|
name: 'toString'
|
|
@@ -2776,7 +2751,7 @@
|
|
|
2776
2751
|
};
|
|
2777
2752
|
return StrLengthPipe;
|
|
2778
2753
|
}());
|
|
2779
|
-
StrLengthPipe.ɵprov =
|
|
2754
|
+
StrLengthPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function StrLengthPipe_Factory() { return new StrLengthPipe(); }, token: StrLengthPipe, providedIn: "root" });
|
|
2780
2755
|
StrLengthPipe.decorators = [
|
|
2781
2756
|
{ type: i0.Pipe, args: [{
|
|
2782
2757
|
name: 'strLength'
|
|
@@ -2829,7 +2804,7 @@
|
|
|
2829
2804
|
};
|
|
2830
2805
|
return TranslateContextService;
|
|
2831
2806
|
}());
|
|
2832
|
-
TranslateContextService.ɵprov =
|
|
2807
|
+
TranslateContextService.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextService_Factory() { return new TranslateContextService(i0.ɵɵinject(i1$2.TranslateService)); }, token: TranslateContextService, providedIn: "root" });
|
|
2833
2808
|
TranslateContextService.decorators = [
|
|
2834
2809
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
2835
2810
|
];
|
|
@@ -2846,7 +2821,7 @@
|
|
|
2846
2821
|
};
|
|
2847
2822
|
return TranslateContextPipe;
|
|
2848
2823
|
}());
|
|
2849
|
-
TranslateContextPipe.ɵprov =
|
|
2824
|
+
TranslateContextPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslateContextPipe_Factory() { return new TranslateContextPipe(i0.ɵɵinject(TranslateContextService)); }, token: TranslateContextPipe, providedIn: "root" });
|
|
2850
2825
|
TranslateContextPipe.decorators = [
|
|
2851
2826
|
{ type: i0.Pipe, args: [{
|
|
2852
2827
|
name: 'translateContext'
|
|
@@ -2866,7 +2841,7 @@
|
|
|
2866
2841
|
};
|
|
2867
2842
|
return TranslatablePipe;
|
|
2868
2843
|
}());
|
|
2869
|
-
TranslatablePipe.ɵprov =
|
|
2844
|
+
TranslatablePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function TranslatablePipe_Factory() { return new TranslatablePipe(); }, token: TranslatablePipe, providedIn: "root" });
|
|
2870
2845
|
TranslatablePipe.decorators = [
|
|
2871
2846
|
{ type: i0.Pipe, args: [{
|
|
2872
2847
|
name: 'translatable'
|
|
@@ -2886,7 +2861,7 @@
|
|
|
2886
2861
|
};
|
|
2887
2862
|
return PropertyGetPipe;
|
|
2888
2863
|
}());
|
|
2889
|
-
PropertyGetPipe.ɵprov =
|
|
2864
|
+
PropertyGetPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PropertyGetPipe_Factory() { return new PropertyGetPipe(); }, token: PropertyGetPipe, providedIn: "root" });
|
|
2890
2865
|
PropertyGetPipe.decorators = [
|
|
2891
2866
|
{ type: i0.Pipe, args: [{
|
|
2892
2867
|
name: 'propertyGet'
|
|
@@ -2912,14 +2887,14 @@
|
|
|
2912
2887
|
ngInit: [{ type: i0.Output }]
|
|
2913
2888
|
};
|
|
2914
2889
|
|
|
2915
|
-
var moment$
|
|
2890
|
+
var moment$2 = momentImported__namespace;
|
|
2916
2891
|
// @dynamic
|
|
2917
2892
|
var SharedValidators = /** @class */ (function () {
|
|
2918
2893
|
function SharedValidators() {
|
|
2919
2894
|
}
|
|
2920
2895
|
SharedValidators.validDate = function (control) {
|
|
2921
2896
|
var value = control.value;
|
|
2922
|
-
var date = !value || moment$
|
|
2897
|
+
var date = !value || moment$2.isMoment(value) ? value : moment$2(control.value, DATE_ISO_PATTERN);
|
|
2923
2898
|
if (date && (!date.isValid() || date.year() < 1970)) {
|
|
2924
2899
|
return { validDate: true };
|
|
2925
2900
|
}
|
|
@@ -4045,7 +4020,7 @@
|
|
|
4045
4020
|
};
|
|
4046
4021
|
return FormErrorTranslator;
|
|
4047
4022
|
}());
|
|
4048
|
-
FormErrorTranslator.ɵprov =
|
|
4023
|
+
FormErrorTranslator.ɵprov = i0.ɵɵdefineInjectable({ factory: function FormErrorTranslator_Factory() { return new FormErrorTranslator(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(APP_FORM_ERROR_I18N_KEYS, 8)); }, token: FormErrorTranslator, providedIn: "root" });
|
|
4049
4024
|
FormErrorTranslator.decorators = [
|
|
4050
4025
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
4051
4026
|
];
|
|
@@ -4327,9 +4302,9 @@
|
|
|
4327
4302
|
var hour = parseInt(durationParts[0] || '0');
|
|
4328
4303
|
var minute = parseInt(durationParts[1] || '0');
|
|
4329
4304
|
var value = hour + (minute + 0.5) / 60;
|
|
4330
|
-
return roundFloat(value, maxDecimals);
|
|
4305
|
+
return roundFloat$1(value, maxDecimals);
|
|
4331
4306
|
}
|
|
4332
|
-
function roundFloat(input, maxDecimals) {
|
|
4307
|
+
function roundFloat$1(input, maxDecimals) {
|
|
4333
4308
|
if (maxDecimals > 0) {
|
|
4334
4309
|
var powDecimal = Math.pow(10, maxDecimals);
|
|
4335
4310
|
return Math.trunc(input * powDecimal + 0.5) / powDecimal;
|
|
@@ -4353,9 +4328,9 @@
|
|
|
4353
4328
|
DD: [/[+-]/, /\d/, /\d/, /\d/, '.', /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, /\d/, '°']
|
|
4354
4329
|
}
|
|
4355
4330
|
};
|
|
4356
|
-
var noop$
|
|
4331
|
+
var noop$1 = function () {
|
|
4357
4332
|
};
|
|
4358
|
-
var ɵ0$
|
|
4333
|
+
var ɵ0$1 = noop$1;
|
|
4359
4334
|
var MatLatLongField = /** @class */ (function () {
|
|
4360
4335
|
function MatLatLongField(platform, translate, formBuilder, cd, formGroupDir) {
|
|
4361
4336
|
this.platform = platform;
|
|
@@ -4363,8 +4338,8 @@
|
|
|
4363
4338
|
this.formBuilder = formBuilder;
|
|
4364
4339
|
this.cd = cd;
|
|
4365
4340
|
this.formGroupDir = formGroupDir;
|
|
4366
|
-
this._onChangeCallback = noop$
|
|
4367
|
-
this._onTouchedCallback = noop$
|
|
4341
|
+
this._onChangeCallback = noop$1;
|
|
4342
|
+
this._onTouchedCallback = noop$1;
|
|
4368
4343
|
this._subscription = new rxjs.Subscription();
|
|
4369
4344
|
this.disabling = false;
|
|
4370
4345
|
this.writing = false;
|
|
@@ -4715,14 +4690,14 @@
|
|
|
4715
4690
|
},] }
|
|
4716
4691
|
];
|
|
4717
4692
|
|
|
4718
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
4693
|
+
var DEFAULT_VALUE_ACCESSOR$1 = {
|
|
4719
4694
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
4720
4695
|
useExisting: i0.forwardRef(function () { return MatDate; }),
|
|
4721
4696
|
multi: true
|
|
4722
4697
|
};
|
|
4723
|
-
var DAY_MASK
|
|
4724
|
-
var noop$
|
|
4725
|
-
var ɵ0$
|
|
4698
|
+
var DAY_MASK = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
4699
|
+
var noop$2 = function () { };
|
|
4700
|
+
var ɵ0$2 = noop$2;
|
|
4726
4701
|
var MatDate = /** @class */ (function () {
|
|
4727
4702
|
function MatDate(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
4728
4703
|
this.dateAdapter = dateAdapter;
|
|
@@ -4731,12 +4706,12 @@
|
|
|
4731
4706
|
this.cd = cd;
|
|
4732
4707
|
this.keyboard = keyboard;
|
|
4733
4708
|
this.formGroupDir = formGroupDir;
|
|
4734
|
-
this._onChangeCallback = noop$
|
|
4735
|
-
this._onTouchedCallback = noop$
|
|
4709
|
+
this._onChangeCallback = noop$2;
|
|
4710
|
+
this._onTouchedCallback = noop$2;
|
|
4736
4711
|
this._subscription = new rxjs.Subscription();
|
|
4737
4712
|
this.writing = true;
|
|
4738
4713
|
this.disabling = false;
|
|
4739
|
-
this.dayMask = DAY_MASK
|
|
4714
|
+
this.dayMask = DAY_MASK;
|
|
4740
4715
|
this.disabled = false;
|
|
4741
4716
|
this.floatLabel = 'auto';
|
|
4742
4717
|
this.readonly = false;
|
|
@@ -5005,7 +4980,7 @@
|
|
|
5005
4980
|
selector: 'mat-date-field',
|
|
5006
4981
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dayControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dayControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n\n <!-- Hide the final control -->\n <input matInput type=\"text\"\n [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n (click)=\"openDatePicker($event, datePicker)\"\n [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"writeValue(null)\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('validDate')\" translate>ERROR.FIELD_NOT_VALID_DATE</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateIsAfter')\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('dateRange')\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMaxDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngIf=\"!formControl.hasError('dateRange') && formControl.hasError('dateMinDuration')\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngIf=\"formControl.hasError('msg')\">{{formControl.errors.msg}}</mat-error>\n </mat-form-field>\n\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n\n <ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n </ng-template>\n\n <ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n </ng-template>\n\n</ng-template>\n\n",
|
|
5007
4982
|
providers: [
|
|
5008
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
4983
|
+
DEFAULT_VALUE_ACCESSOR$1,
|
|
5009
4984
|
],
|
|
5010
4985
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5011
4986
|
styles: [":host{display:inline-block;width:100%;position:relative}:host [no-padding]{--ion-grid-column-padding:0}:host [nowrap]{flex-wrap:nowrap}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md,mat-form-field ion-datetime{padding:0!important}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
|
|
@@ -5038,17 +5013,17 @@
|
|
|
5038
5013
|
matInputs: [{ type: i0.ViewChildren, args: ['matInput',] }]
|
|
5039
5014
|
};
|
|
5040
5015
|
|
|
5041
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5016
|
+
var DEFAULT_VALUE_ACCESSOR$2 = {
|
|
5042
5017
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5043
5018
|
useExisting: i0.forwardRef(function () { return MatDateTime; }),
|
|
5044
5019
|
multi: true
|
|
5045
5020
|
};
|
|
5046
5021
|
var DAY_MASK$1 = [/\d/, /\d/, '/', /\d/, /\d/, '/', /\d/, /\d/, /\d/, /\d/];
|
|
5047
5022
|
var HOUR_REGEXP = /^[012][0-9][:][012345][0-9]$/;
|
|
5048
|
-
var HOUR_MASK
|
|
5049
|
-
var noop$
|
|
5023
|
+
var HOUR_MASK = [/[012]/, /\d/, ':', /[012345]/, /\d/];
|
|
5024
|
+
var noop$3 = function () {
|
|
5050
5025
|
};
|
|
5051
|
-
var ɵ0$
|
|
5026
|
+
var ɵ0$3 = noop$3;
|
|
5052
5027
|
var MatDateTime = /** @class */ (function () {
|
|
5053
5028
|
function MatDateTime(platform, dateAdapter, translate, formBuilder, keyboard, cd, formGroupDir) {
|
|
5054
5029
|
this.platform = platform;
|
|
@@ -5058,14 +5033,14 @@
|
|
|
5058
5033
|
this.keyboard = keyboard;
|
|
5059
5034
|
this.cd = cd;
|
|
5060
5035
|
this.formGroupDir = formGroupDir;
|
|
5061
|
-
this._onChangeCallback = noop$
|
|
5062
|
-
this._onTouchedCallback = noop$
|
|
5036
|
+
this._onChangeCallback = noop$3;
|
|
5037
|
+
this._onTouchedCallback = noop$3;
|
|
5063
5038
|
this._subscription = new rxjs.Subscription();
|
|
5064
5039
|
this.writing = true;
|
|
5065
5040
|
this.disabling = false;
|
|
5066
5041
|
this._readonly = false;
|
|
5067
5042
|
this.dayMask = DAY_MASK$1;
|
|
5068
|
-
this.hourMask = HOUR_MASK
|
|
5043
|
+
this.hourMask = HOUR_MASK;
|
|
5069
5044
|
this.floatLabel = 'auto';
|
|
5070
5045
|
this.compact = false;
|
|
5071
5046
|
this.placeholderChar = DEFAULT_PLACEHOLDER_CHAR;
|
|
@@ -5421,7 +5396,7 @@
|
|
|
5421
5396
|
selector: 'mat-date-time-field',
|
|
5422
5397
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled\">\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput hidden type=\"text\"\n readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{formControl.value|dateFormat: {pattern: displayPattern} }}</ion-text>\n</mat-form-field>\n\n<!-- writable + time -->\n<ng-template #writable >\n <ion-grid class=\"ion-no-padding\">\n <ion-row class=\"ion-no-padding no-wrap\" nowrap>\n\n <!-- day -->\n <ion-col class=\"day ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n\n <mat-label>{{placeholder}}</mat-label>\n\n <div matPrefix>\n <ng-container *ngTemplateOutlet=\"matPrefixTemplate\"></ng-container>\n </div>\n\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"dateFormControl\"\n [textMask]=\"{mask: dayMask, keepCharPositions: true, placeholderChar: placeholderChar}\"\n [placeholder]=\"'COMMON.DATE_PLACEHOLDER'|translate\"\n (blur)=\"checkIfTouched()\"\n (keyup.arrowdown)=\"openDatePicker($event, datePicker)\"\n (keyup.escape)=\"preventEvent($event)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n [appAutofocus]=\"autofocus\">\n <input matInput #matInput autocomplete=\"off\" type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"dateFormControl\"\n (click)=\"openDatePickerIfMobile($event, datePicker)\"\n [required]=\"required\"\n [tabindex]=\"tabindex\"\n readonly>\n <input matInput type=\"text\" [formControl]=\"formControl\"\n hidden\n [matDatepicker]=\"datePicker\"\n (dateChange)=\"onDatePickerChange($event)\">\n\n <button type=\"button\" mat-icon-button tabindex=\"-1\" matSuffix #datePickerButton2 (click)=\"openDatePicker($event, datePicker)\" [disabled]=\"formControl.disabled\">\n <div *ngIf=\"mobile; then iconDate; else iconDesktop\"></div>\n </button>\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clear()\"\n [hidden]=\"formControl.disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n </mat-form-field>\n <mat-datepicker #datePicker\n [touchUi]=\"mobile\"\n [disabled]=\"formControl.disabled\"\n [startAt]=\"startDate\"></mat-datepicker>\n <div class=\"mat-form-field-subscript mat-form-field-subscript-wrapper\" >\n <!-- errors -->\n <ng-container [ngSwitch]=\"formControl.touched && formControl.errors|mapKeys|arrayFirst\">\n <mat-error *ngSwitchCase=\"'required'\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngSwitchCase=\"'validDate'\" translate>ERROR.FIELD_NOT_VALID_DATE_TIME</mat-error>\n <mat-error *ngSwitchCase=\"'dateIsAfter'\">{{'ERROR.FIELD_NOT_VALID_DATE_AFTER' | translate: formControl.errors.dateIsAfter }}</mat-error>\n <mat-error *ngSwitchCase=\"'dateRange'\" translate>ERROR.FIELD_NOT_VALID_DATE_RANGE</mat-error>\n <mat-error *ngSwitchCase=\"'dateMaxDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MAX_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'dateMinDuration'\" translate>ERROR.FIELD_NOT_VALID_DATE_MIN_DURATION</mat-error>\n <mat-error *ngSwitchCase=\"'msg'\">{{(formControl.errors.msg?.key || formControl.errors.msg) | translate: formControl.errors.msg?.params}}</mat-error>\n </ng-container>\n <ng-content select=\"mat-error\"></ng-content>\n\n <!-- mat hint -->\n <div class=\"mat-form-field-hint-wrapper\" [class.cdk-visually-hidden]=\"formControl.invalid\">\n <div class=\"mat-form-field-hint-spacer\"></div>\n <ng-content select=\"mat-hint\"></ng-content>\n </div>\n </div>\n\n </ion-col>\n\n <!-- hour -->\n <ion-col class=\"hour ion-no-padding\">\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-invalid]=\"formControl.touched && (timeFormControl.invalid || formControl.invalid)\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n <input matInput #matInput type=\"text\"\n *ngIf=\"!mobile\"\n [formControl]=\"timeFormControl\"\n autocomplete=\"off\"\n min=\"0\" max=\"23\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.TIME_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keyup.arrowdown)=\"openTimePicker($event)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n <input matInput #matInput type=\"text\"\n *ngIf=\"mobile\"\n [formControl]=\"timeFormControl\"\n (click)=\"openTimePickerIfMobile($event)\"\n readonly>\n\n <input matInput type=\"text\"\n [formControl]=\"timeFormControl\"\n hidden\n [ngxTimepicker]=\"timePicker\"\n [format]=\"24\">\n\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && !mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePicker($event)\" >\n <mat-icon>keyboard_arrow_down</mat-icon>\n </button>\n <button matSuffix type=\"button\" mat-icon-button\n tabindex=\"-1\"\n *ngIf=\"!compact && mobile\"\n [disabled]=\"formControl.disabled\"\n (click)=\"openTimePickerIfMobile($event)\">\n <mat-icon>access_time</mat-icon>\n </button>\n\n <ngx-material-timepicker #timePicker [@.disabled]=\"true\"\n (timeSet)=\"onTimePickerChange($event)\"\n [ESC]=\"!mobile\"\n [defaultTime]=\"'00:00'\"\n [cancelBtnTmpl]=\"timePickerCancelButton\"\n [confirmBtnTmpl]=\"timePickerOkButton\"\n [preventOverlayClick]=\"mobile\"\n [enableKeyboardInput]=\"false\"\n [disableAnimation]=\"true\">\n <!-- cancel button -->\n <ng-template #timePickerCancelButton>\n <ion-button fill=\"clear\" color=\"dark\">\n <ion-label translate>COMMON.BTN_CANCEL</ion-label>\n </ion-button>\n </ng-template>\n\n <!-- confirm button -->\n <ng-template #timePickerOkButton>\n <ion-button fill=\"solid\" color=\"tertiary\">\n <ion-label translate>COMMON.BTN_VALIDATE</ion-label>\n </ion-button>\n </ng-template>\n\n </ngx-material-timepicker>\n </mat-form-field>\n </ion-col>\n </ion-row>\n </ion-grid>\n\n\n</ng-template>\n\n<ng-template #iconDesktop>\n <mat-icon>keyboard_arrow_down</mat-icon>\n</ng-template>\n\n<ng-template #iconDate>\n <mat-icon>date_range</mat-icon>\n</ng-template>\n\n<ng-template #matPrefixTemplate>\n <ng-content select=\"[matPrefix]\"></ng-content>\n</ng-template>\n",
|
|
5423
5398
|
providers: [
|
|
5424
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
5399
|
+
DEFAULT_VALUE_ACCESSOR$2,
|
|
5425
5400
|
],
|
|
5426
5401
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
5427
5402
|
styles: [":host{display:inline-block;width:100%;position:relative;--ion-grid-column-padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}mat-form-field .datetime-md{padding:0!important}ion-row.no-wrap{flex-wrap:nowrap}ion-col.day{min-width:100px}ion-col.day .mat-form-field-subscript-wrapper{overflow:visible;right:-64px;width:calc(100% + 64px)}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}ion-col.day .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}ion-col.hour{min-width:55px;max-width:65px}ion-col.hour mat-form-field{width:100%}ion-col.hour mat-form-field input[type=text],ion-col.hour mat-form-field mat-label{text-align:left;min-width:50px}mat-form-field.mat-form-field-disabled ion-col.day{min-width:100px}.hour .mat-form-field-label{max-width:40px}.hour mat-form-field.mat-form-field-should-float .mat-form-field-placeholder{max-width:inherit}mat-error{text-align:right;width:100%}"]
|
|
@@ -5460,10 +5435,10 @@
|
|
|
5460
5435
|
useExisting: i0.forwardRef(function () { return MatDateShort; }),
|
|
5461
5436
|
multi: true
|
|
5462
5437
|
};
|
|
5463
|
-
var DAY_MASK = [/\d/, /\d/, /\d/, /\d/];
|
|
5464
|
-
var noop$
|
|
5438
|
+
var DAY_MASK$2 = [/\d/, /\d/, /\d/, /\d/];
|
|
5439
|
+
var noop$4 = function () {
|
|
5465
5440
|
};
|
|
5466
|
-
var ɵ0$
|
|
5441
|
+
var ɵ0$4 = noop$4;
|
|
5467
5442
|
var MatDateShort = /** @class */ (function () {
|
|
5468
5443
|
function MatDateShort(platform, dateAdapter, translate, formBuilder, cd, keyboard, formGroupDir) {
|
|
5469
5444
|
this.dateAdapter = dateAdapter;
|
|
@@ -5472,11 +5447,11 @@
|
|
|
5472
5447
|
this.cd = cd;
|
|
5473
5448
|
this.keyboard = keyboard;
|
|
5474
5449
|
this.formGroupDir = formGroupDir;
|
|
5475
|
-
this._onChangeCallback = noop$
|
|
5476
|
-
this._onTouchedCallback = noop$
|
|
5450
|
+
this._onChangeCallback = noop$4;
|
|
5451
|
+
this._onTouchedCallback = noop$4;
|
|
5477
5452
|
this.writing = true;
|
|
5478
5453
|
this.disabling = false;
|
|
5479
|
-
this.dayMask = DAY_MASK;
|
|
5454
|
+
this.dayMask = DAY_MASK$2;
|
|
5480
5455
|
this.disabled = false;
|
|
5481
5456
|
this.floatLabel = 'auto';
|
|
5482
5457
|
this.readonly = false;
|
|
@@ -5824,16 +5799,16 @@
|
|
|
5824
5799
|
},] }
|
|
5825
5800
|
];
|
|
5826
5801
|
|
|
5827
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
5802
|
+
var DEFAULT_VALUE_ACCESSOR$4 = {
|
|
5828
5803
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
5829
5804
|
useExisting: i0.forwardRef(function () { return MatDuration; }),
|
|
5830
5805
|
multi: true
|
|
5831
5806
|
};
|
|
5832
5807
|
var HOUR_TIME_PATTERN = /[0-9]\d\d:[0-5]\d/;
|
|
5833
|
-
var HOUR_MASK = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5834
|
-
var noop$
|
|
5808
|
+
var HOUR_MASK$1 = [/\d/, /\d/, /\d/, ':', /[0-5]/, /\d/];
|
|
5809
|
+
var noop$5 = function () {
|
|
5835
5810
|
};
|
|
5836
|
-
var ɵ0$5 = noop$
|
|
5811
|
+
var ɵ0$5 = noop$5;
|
|
5837
5812
|
var MatDuration = /** @class */ (function () {
|
|
5838
5813
|
function MatDuration(platform, dateAdapter, translate, formBuilder, cd, formGroupDir) {
|
|
5839
5814
|
this.dateAdapter = dateAdapter;
|
|
@@ -5842,11 +5817,11 @@
|
|
|
5842
5817
|
this.cd = cd;
|
|
5843
5818
|
this.formGroupDir = formGroupDir;
|
|
5844
5819
|
this._subscription = new rxjs.Subscription();
|
|
5845
|
-
this._onChangeCallback = noop$
|
|
5846
|
-
this._onTouchedCallback = noop$
|
|
5820
|
+
this._onChangeCallback = noop$5;
|
|
5821
|
+
this._onTouchedCallback = noop$5;
|
|
5847
5822
|
this.writing = true;
|
|
5848
5823
|
this.disabling = false;
|
|
5849
|
-
this.hourMask = HOUR_MASK;
|
|
5824
|
+
this.hourMask = HOUR_MASK$1;
|
|
5850
5825
|
this.disabled = false;
|
|
5851
5826
|
this.floatLabel = 'auto';
|
|
5852
5827
|
this.readonly = false;
|
|
@@ -6039,7 +6014,7 @@
|
|
|
6039
6014
|
selector: 'mat-duration-field',
|
|
6040
6015
|
template: "<!-- readonly -->\n<mat-form-field *ngIf=\"readonly else writable\">\n <input matInput hidden type=\"text\" readonly=\"true\" [formControl]=\"formControl\">\n <ion-text>{{ formControl.value|duration }}</ion-text>\n</mat-form-field>\n\n<!-- writable -->\n<ng-template #writable>\n <mat-form-field [floatLabel]=\"floatLabel\"\n [class.mat-form-field-disabled]=\"formControl.disabled\"\n [class.mat-form-field-invalid]=\"formControl.touched && formControl.invalid\">\n <mat-label *ngIf=\"placeholder && floatLabel != 'never'\" translate>COMMON.TIME</mat-label>\n\n <div matPrefix><ng-content select=\"[matPrefix]\"></ng-content></div>\n\n <input matInput #matInput type=\"text\"\n autocomplete=\"off\"\n [formControl]=\"textControl\"\n [textMask]=\"{mask: hourMask, keepCharPositions: true, placeholderChar: placeholderChar, guide: true}\"\n [placeholder]=\"'COMMON.DURATION_PLACEHOLDER'|translate\"\n [required]=\"required\"\n (keydown.tab)=\"moveCaretToSeparator($event, true)\"\n (keydown.shift.tab)=\"moveCaretToSeparator($event, false)\"\n (keyup.escape)=\"preventEvent($event)\"\n (blur)=\"checkIfTouched()\"\n [tabindex]=\"tabindex !== undefined ? tabindex+1 : undefined\">\n\n\n <!-- errors -->\n <mat-error *ngIf=\"!formControl.hasError('required') && textControl.hasError('pattern')\" translate>ERROR.FIELD_NOT_VALID_PATTERN</mat-error>\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('min')\">\n {{(compact ? 'ERROR.FIELD_MIN_COMPACT' : 'ERROR.FIELD_MIN') | translate:formControl.errors.min }}</mat-error>\n <mat-error *ngIf=\"formControl.hasError('max')\">\n {{(compact ? 'ERROR.FIELD_MAX_COMPACT' : 'ERROR.FIELD_MAX') | translate:formControl.errors.max }}</mat-error>\n\n <ng-content select=\"mat-error\"></ng-content>\n </mat-form-field>\n</ng-template>\n\n",
|
|
6041
6016
|
providers: [
|
|
6042
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6017
|
+
DEFAULT_VALUE_ACCESSOR$4,
|
|
6043
6018
|
],
|
|
6044
6019
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6045
6020
|
styles: [":host{display:inline-block;min-width:140px;position:relative;--ion-grid-column-padding:0}:host,mat-form-field{width:100%}mat-form-field .mat-form-field-subscript-wrapper{overflow:visible;top:100%}mat-form-field .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper{display:flex}mat-form-field .mat-form-field-subscript-wrapper .mat-form-field-hint-wrapper .mat-form-field-hint-spacer{flex:1 0 1em}mat-error{text-align:right;width:100%}"]
|
|
@@ -6099,22 +6074,22 @@
|
|
|
6099
6074
|
},] }
|
|
6100
6075
|
];
|
|
6101
6076
|
|
|
6102
|
-
var DEFAULT_VALUE_ACCESSOR$
|
|
6077
|
+
var DEFAULT_VALUE_ACCESSOR$5 = {
|
|
6103
6078
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6104
6079
|
useExisting: i0.forwardRef(function () { return MatBooleanField; }),
|
|
6105
6080
|
multi: true
|
|
6106
6081
|
};
|
|
6107
|
-
var noop$
|
|
6082
|
+
var noop$6 = function () {
|
|
6108
6083
|
};
|
|
6109
|
-
var ɵ0$
|
|
6084
|
+
var ɵ0$6 = noop$6;
|
|
6110
6085
|
var MatBooleanField = /** @class */ (function () {
|
|
6111
6086
|
function MatBooleanField(translate, formBuilder, cd, formGroupDir) {
|
|
6112
6087
|
this.translate = translate;
|
|
6113
6088
|
this.formBuilder = formBuilder;
|
|
6114
6089
|
this.cd = cd;
|
|
6115
6090
|
this.formGroupDir = formGroupDir;
|
|
6116
|
-
this._onChangeCallback = noop$
|
|
6117
|
-
this._onTouchedCallback = noop$
|
|
6091
|
+
this._onChangeCallback = noop$6;
|
|
6092
|
+
this._onTouchedCallback = noop$6;
|
|
6118
6093
|
this._writing = false;
|
|
6119
6094
|
this.showRadio = false;
|
|
6120
6095
|
this.disabled = false;
|
|
@@ -6300,7 +6275,7 @@
|
|
|
6300
6275
|
selector: 'mat-boolean-field',
|
|
6301
6276
|
template: "<mat-form-field *ngIf=\"readonly; else writable\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-form-field-disabled {{classList}}\">\n <input matInput hidden type=\"text\" readonly\n [placeholder]=\"placeholder\"\n [formControl]=\"formControl\">\n <ion-text>{{(formControl.value == null && 'COMMON.EMPTY_OPTION' || (formControl.value === true && yesLabel) || noLabel) | translate }}</ion-text>\n</mat-form-field>\n\n<ng-template #writable>\n <ng-container [ngSwitch]=\"style\">\n\n <!-- Radio -->\n <mat-form-field *ngSwitchCase=\"'radio'\"\n [floatLabel]=\"showRadio && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-radio {{classList}}\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n <span [hidden]=\"showRadio\">({{yesLabel|translate}}/{{'COMMON.NO'|translate}})</span>\n </mat-label>\n\n <input matInput #fakeInput type=\"text\" readonly=\"true\"\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <!-- radio button -->\n <mat-radio-group [hidden]=\"!showRadio\"\n [formControl]=\"formControl\"\n (change)=\"onRadioValueChanged($event)\">\n <mat-radio-button #yesButton [value]=\"true\">\n <span>{{yesLabel|translate}}</span>\n </mat-radio-button> \n <mat-radio-button #noButton [value]=\"false\">\n <span>{{noLabel|translate}}</span>\n </mat-radio-button>\n </mat-radio-group>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n\n <!-- Checkbox -->\n <mat-form-field *ngSwitchCase=\"'checkbox'\"\n [floatLabel]=\"floatLabel\"\n class=\"mat-boolean-field mat-boolean-field-checkbox {{classList}}\">\n <mat-label *ngIf=\"placeholder && !showRadio\">\n {{placeholder}}\n </mat-label>\n\n <input matInput #matInput\n [formControl]=\"formControl\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showRadio\"\n [tabindex]=\"tabindex\">\n\n <ion-label> </ion-label>\n\n <!-- checkbox, when compact -->\n <mat-checkbox #checkboxButton\n [formControl]=\"formControl\"\n (change)=\"onCheckboxValueChanged($event)\"\n [indeterminate]=\"value===undefined\"\n [hidden]=\"!showRadio\"\n [tabindex]=\"tabindex\">\n </mat-checkbox>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n\n <!-- Buttons -->\n <mat-form-field *ngSwitchCase=\"'button'\"\n [floatLabel]=\"floatLabel === 'never' ? 'never' : 'always'\"\n class=\"mat-boolean-field mat-boolean-field-button {{classList}}\">\n <input matInput type=\"text\" hidden\n [formControl]=\"formControl\"\n [placeholder]=\"placeholder\"\n [required]=\"required\">\n <div class=\"mat-form-field-buttons\"\n [style.--buttons-col-count]=\"buttonsColCount\"\n *ngIf=\"!formControl.disabled; else disabledLabel\">\n <!-- yes -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex\"\n (click)=\"writeValue(true, $event)\"\n (keyup.enter)=\"writeValue(true, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === true) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && yesIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{yesLabel|translate}}\n </ion-button>\n\n <!-- No button -->\n <ion-button class=\"mat-form-field-button\"\n [tabindex]=\"_tabindex !== undefined ? (_tabindex + 1) : undefined\"\n (click)=\"writeValue(false, $event)\"\n (keyup.enter)=\"writeValue(false, $event)\"\n [color]=\"_value == null ? 'tertiary' : (_value === false) ? 'accent' : 'light'\">\n <ion-icon *ngIf=\"showButtonIcons && noIcon; let icon\" slot=\"start\" [name]=\"icon\"></ion-icon>\n {{noLabel|translate}}\n </ion-button>\n </div>\n <ng-template #disabledLabel>\n <ion-label><i translate>COMMON.EMPTY_OPTION</i></ion-label>\n </ng-template>\n\n <div matSuffix #injectMatSuffix></div>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n </mat-form-field>\n </ng-container>\n\n <div class=\"cdk-visually-hidden\">\n <div #suffix><ng-content select=\"[matSuffix]\"></ng-content></div>\n </div>\n\n</ng-template>\n\n\n",
|
|
6302
6277
|
providers: [
|
|
6303
|
-
DEFAULT_VALUE_ACCESSOR$
|
|
6278
|
+
DEFAULT_VALUE_ACCESSOR$5
|
|
6304
6279
|
],
|
|
6305
6280
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
6306
6281
|
styles: [":host{width:100%}.mat-form-field.mat-boolean-field-radio{margin-top:-2px}.mat-form-field.mat-boolean-field-button{margin-top:-4px}.mat-form-field .mat-form-field-buttons{width:100%;display:flex;flex-flow:row wrap;justify-content:flex-start;align-items:center}.mat-form-field .mat-form-field-buttons .mat-form-field-button{--flex-basis:calc(100% / var(--buttons-col-count, 2));flex:0 1 var(--flex-basis);max-width:min(var(--flex-basis),150px);white-space:normal;padding:0 2px;height:40px}"]
|
|
@@ -6389,7 +6364,6 @@
|
|
|
6389
6364
|
return MatNumpadEvent;
|
|
6390
6365
|
}(KeyboardEvent));
|
|
6391
6366
|
|
|
6392
|
-
exports.AnimationState = void 0;
|
|
6393
6367
|
(function (AnimationState) {
|
|
6394
6368
|
AnimationState["ENTER"] = "enter";
|
|
6395
6369
|
AnimationState["ENTER_INPUT"] = "enter-input";
|
|
@@ -6557,7 +6531,7 @@
|
|
|
6557
6531
|
};
|
|
6558
6532
|
return MatNumpadDomService;
|
|
6559
6533
|
}());
|
|
6560
|
-
MatNumpadDomService.ɵprov =
|
|
6534
|
+
MatNumpadDomService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatNumpadDomService_Factory() { return new MatNumpadDomService(i0.ɵɵinject(i0.ComponentFactoryResolver), i0.ɵɵinject(i0.ApplicationRef), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1$4.DOCUMENT, 8)); }, token: MatNumpadDomService, providedIn: "root" });
|
|
6561
6535
|
MatNumpadDomService.decorators = [
|
|
6562
6536
|
{ type: i0.Injectable, args: [{
|
|
6563
6537
|
providedIn: 'root'
|
|
@@ -6963,7 +6937,7 @@
|
|
|
6963
6937
|
},] }
|
|
6964
6938
|
];
|
|
6965
6939
|
|
|
6966
|
-
var DEFAULT_VALUE_ACCESSOR = {
|
|
6940
|
+
var DEFAULT_VALUE_ACCESSOR$6 = {
|
|
6967
6941
|
provide: i1.NG_VALUE_ACCESSOR,
|
|
6968
6942
|
useExisting: i0.forwardRef(function () { return MatSwipeField; }),
|
|
6969
6943
|
multi: true
|
|
@@ -7283,7 +7257,7 @@
|
|
|
7283
7257
|
{ type: i0.Component, args: [{
|
|
7284
7258
|
selector: 'mat-swipe-field',
|
|
7285
7259
|
template: "<mat-form-field [floatLabel]=\"showSlides && (!floatLabel || floatLabel === 'auto') ? 'always': floatLabel\"\n [class]=\"classList\"\n [class.mat-form-field-disabled]=\"disabled\">\n <mat-label *ngIf=\"placeholder && floatLabel!=='never'\">\n {{placeholder}}\n </mat-label>\n <input matInput #fakeInput type=\"text\"\n [formControl]=\"formControl\"\n [readonly]=\"true\"\n (focus)=\"_onFocusFakeInput($event)\"\n [required]=\"required\"\n [class.cdk-visually-hidden]=\"showSlides\"\n [tabindex]=\"tabindex\">\n\n <div class=\"slides-container\" [class.hidden]=\"!showSlides\">\n <ion-slides #slides\n [options]=\"slidesOptions\"\n (ionSlidesDidLoad)=\"slidesLoaded()\"\n (ionSlideReachStart)=\"reachStart(true)\"\n (ionSlideReachEnd)=\"reachEnd(true)\"\n (ionSlideNextEnd)=\"reachStart(false)\"\n (ionSlidePrevEnd)=\"reachEnd(false)\"\n (ionSlideDidChange)=\"slideChanged()\"\n >\n <ion-slide *ngFor=\"let item of $items | async\">\n <ion-label>{{ displayWith(item) }}</ion-label>\n </ion-slide>\n\n </ion-slides>\n </div>\n\n <button #prevButton\n mat-icon-button\n type=\"button\"\n class=\"button-prev\"\n [hidden]=\"!showSlides\"\n [disabled]=\"previousDisabled\"\n (click)=\"previous()\">\n <mat-icon>chevron_left</mat-icon>\n </button>\n <button #nextButton\n mat-icon-button\n type=\"button\"\n class=\"button-next\"\n [hidden]=\"!showSlides\"\n [disabled]=\"nextDisabled\"\n (click)=\"next()\">\n <mat-icon>chevron_right</mat-icon>\n </button>\n\n <button matSuffix mat-icon-button tabindex=\"-1\"\n type=\"button\"\n *ngIf=\"clearable\"\n (click)=\"clearValue($event)\"\n [hidden]=\"disabled || !formControl.value\">\n <mat-icon>close</mat-icon>\n </button>\n\n <mat-error *ngIf=\"formControl.hasError('required')\" translate>ERROR.FIELD_REQUIRED</mat-error>\n <mat-error *ngIf=\"formControl.hasError('entity')\" translate>ERROR.FIELD_INVALID</mat-error>\n\n</mat-form-field>\n",
|
|
7286
|
-
providers: [DEFAULT_VALUE_ACCESSOR],
|
|
7260
|
+
providers: [DEFAULT_VALUE_ACCESSOR$6],
|
|
7287
7261
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
7288
7262
|
styles: [":host{display:inline-block;width:100%;position:relative}input.hidden{display:none}.slides-container .swiper-slide{font-size:16px!important}.slides-container.hidden{visibility:hidden;height:0!important}.button-next,.button-prev{position:absolute;top:calc(50% - 20px);z-index:10}.button-prev{left:0;right:auto}.button-next{left:auto;right:0}"]
|
|
7289
7263
|
},] }
|
|
@@ -7925,7 +7899,7 @@
|
|
|
7925
7899
|
};
|
|
7926
7900
|
return ProgressBarService;
|
|
7927
7901
|
}());
|
|
7928
|
-
ProgressBarService.ɵprov =
|
|
7902
|
+
ProgressBarService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ProgressBarService_Factory() { return new ProgressBarService(); }, token: ProgressBarService, providedIn: "root" });
|
|
7929
7903
|
ProgressBarService.decorators = [
|
|
7930
7904
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7931
7905
|
];
|
|
@@ -7972,7 +7946,7 @@
|
|
|
7972
7946
|
};
|
|
7973
7947
|
return AppGestureConfig;
|
|
7974
7948
|
}(i1$6.HammerGestureConfig));
|
|
7975
|
-
AppGestureConfig.ɵprov =
|
|
7949
|
+
AppGestureConfig.ɵprov = i0.ɵɵdefineInjectable({ factory: function AppGestureConfig_Factory() { return new AppGestureConfig(); }, token: AppGestureConfig, providedIn: "root" });
|
|
7976
7950
|
AppGestureConfig.decorators = [
|
|
7977
7951
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
7978
7952
|
];
|
|
@@ -8237,7 +8211,7 @@
|
|
|
8237
8211
|
};
|
|
8238
8212
|
return MatPaginatorI18n;
|
|
8239
8213
|
}(paginator.MatPaginatorIntl));
|
|
8240
|
-
MatPaginatorI18n.ɵprov =
|
|
8214
|
+
MatPaginatorI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatPaginatorI18n_Factory() { return new MatPaginatorI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatPaginatorI18n, providedIn: "root" });
|
|
8241
8215
|
MatPaginatorI18n.decorators = [
|
|
8242
8216
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8243
8217
|
];
|
|
@@ -8329,17 +8303,17 @@
|
|
|
8329
8303
|
return rgbArrayToHex(rgb.map(function (v) { return 255 - v; }));
|
|
8330
8304
|
}
|
|
8331
8305
|
|
|
8332
|
-
var noop = function () {
|
|
8306
|
+
var noop$7 = function () {
|
|
8333
8307
|
};
|
|
8334
|
-
var ɵ0$
|
|
8308
|
+
var ɵ0$7 = noop$7;
|
|
8335
8309
|
var AppFormField = /** @class */ (function () {
|
|
8336
8310
|
function AppFormField(translate, cd, injector, formGroupDir) {
|
|
8337
8311
|
this.translate = translate;
|
|
8338
8312
|
this.cd = cd;
|
|
8339
8313
|
this.injector = injector;
|
|
8340
8314
|
this.formGroupDir = formGroupDir;
|
|
8341
|
-
this._onChangeCallback = noop;
|
|
8342
|
-
this._onTouchedCallback = noop;
|
|
8315
|
+
this._onChangeCallback = noop$7;
|
|
8316
|
+
this._onTouchedCallback = noop$7;
|
|
8343
8317
|
this.readonly = false;
|
|
8344
8318
|
this.compact = false;
|
|
8345
8319
|
this.floatLabel = 'auto';
|
|
@@ -8539,13 +8513,14 @@
|
|
|
8539
8513
|
};
|
|
8540
8514
|
|
|
8541
8515
|
var StartableService = /** @class */ (function () {
|
|
8542
|
-
function StartableService(
|
|
8516
|
+
function StartableService(prerequisiteService) {
|
|
8543
8517
|
this.onStart = new rxjs.Subject();
|
|
8544
8518
|
this._debug = false;
|
|
8519
|
+
this._startByReadyFunction = true; // should start when calling ready() ?
|
|
8545
8520
|
this._data = null;
|
|
8546
8521
|
this._started = false;
|
|
8547
|
-
this._startPrerequisite =
|
|
8548
|
-
? function () { return
|
|
8522
|
+
this._startPrerequisite = prerequisiteService
|
|
8523
|
+
? function () { return prerequisiteService.ready(); }
|
|
8549
8524
|
: function () { return Promise.resolve(); };
|
|
8550
8525
|
}
|
|
8551
8526
|
StartableService.prototype.start = function () {
|
|
@@ -8630,9 +8605,15 @@
|
|
|
8630
8605
|
configurable: true
|
|
8631
8606
|
});
|
|
8632
8607
|
StartableService.prototype.ready = function () {
|
|
8608
|
+
var _this = this;
|
|
8633
8609
|
if (this._started)
|
|
8634
8610
|
return Promise.resolve(this._data);
|
|
8635
|
-
|
|
8611
|
+
if (this._startPromise)
|
|
8612
|
+
return this._startPromise;
|
|
8613
|
+
if (this._startByReadyFunction)
|
|
8614
|
+
return this.start();
|
|
8615
|
+
return waitFor(function () { return _this._started; })
|
|
8616
|
+
.then(function () { return _this._data; });
|
|
8636
8617
|
};
|
|
8637
8618
|
StartableService.prototype.ngOnStop = function () {
|
|
8638
8619
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -8876,7 +8857,7 @@
|
|
|
8876
8857
|
};
|
|
8877
8858
|
return AudioProvider;
|
|
8878
8859
|
}(StartableService));
|
|
8879
|
-
AudioProvider.ɵprov =
|
|
8860
|
+
AudioProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function AudioProvider_Factory() { return new AudioProvider(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$2.NativeAudio, 8), i0.ɵɵinject(i3$1.Vibration, 8), i0.ɵɵinject(i4.AudioManagement, 8)); }, token: AudioProvider, providedIn: "root" });
|
|
8880
8861
|
AudioProvider.decorators = [
|
|
8881
8862
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
8882
8863
|
];
|
|
@@ -8976,7 +8957,7 @@
|
|
|
8976
8957
|
};
|
|
8977
8958
|
return Hotkeys;
|
|
8978
8959
|
}());
|
|
8979
|
-
Hotkeys.ɵprov =
|
|
8960
|
+
Hotkeys.ɵprov = i0.ɵɵdefineInjectable({ factory: function Hotkeys_Factory() { return new Hotkeys(i0.ɵɵinject(i1$6.EventManager), i0.ɵɵinject(i2.MatDialog), i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.ModalController)); }, token: Hotkeys, providedIn: "root" });
|
|
8980
8961
|
Hotkeys.decorators = [
|
|
8981
8962
|
{ type: i0.Injectable, args: [{
|
|
8982
8963
|
providedIn: 'root'
|
|
@@ -9180,7 +9161,7 @@
|
|
|
9180
9161
|
return Base64ImageReader;
|
|
9181
9162
|
}());
|
|
9182
9163
|
|
|
9183
|
-
var uuidv4
|
|
9164
|
+
var uuidv4 = uuidv4Imported__namespace;
|
|
9184
9165
|
var FileService = /** @class */ (function () {
|
|
9185
9166
|
function FileService(platform,
|
|
9186
9167
|
//private transfer: FileTransfer,
|
|
@@ -9226,7 +9207,7 @@
|
|
|
9226
9207
|
lastSlashIndex = source.lastIndexOf('/');
|
|
9227
9208
|
if (lastSlashIndex === -1)
|
|
9228
9209
|
throw new Error('Invalid URL: ' + source);
|
|
9229
|
-
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4
|
|
9210
|
+
fileName = lastSlashIndex < (source.length - 1) && source.substring(lastSlashIndex + 1) || uuidv4();
|
|
9230
9211
|
if (!(responseType === 'file' && this.canUseFileSystem)) return [3 /*break*/, 4];
|
|
9231
9212
|
console.warn("WARN: [file] Fetching image {" + source + "} in local file...");
|
|
9232
9213
|
targetFilePath = this._imageDirectory + fileName;
|
|
@@ -9289,7 +9270,7 @@
|
|
|
9289
9270
|
};
|
|
9290
9271
|
return FileService;
|
|
9291
9272
|
}());
|
|
9292
|
-
FileService.ɵprov =
|
|
9273
|
+
FileService.ɵprov = i0.ɵɵdefineInjectable({ factory: function FileService_Factory() { return new FileService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT)); }, token: FileService, providedIn: "root" });
|
|
9293
9274
|
FileService.decorators = [
|
|
9294
9275
|
{ type: i0.Injectable, args: [{
|
|
9295
9276
|
providedIn: 'root',
|
|
@@ -9456,7 +9437,7 @@
|
|
|
9456
9437
|
Base58.alphabet = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';
|
|
9457
9438
|
|
|
9458
9439
|
var scrypt = require('scrypt-async');
|
|
9459
|
-
var sha256
|
|
9440
|
+
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
9460
9441
|
var sha512 = require('hash.js/lib/hash/sha/512');
|
|
9461
9442
|
var nacl = {
|
|
9462
9443
|
sign: tweetnacl.sign,
|
|
@@ -9562,7 +9543,7 @@
|
|
|
9562
9543
|
* Hash (using SHA256) a message
|
|
9563
9544
|
*/
|
|
9564
9545
|
CryptoService.prototype.sha256 = function (message) {
|
|
9565
|
-
return sha256
|
|
9546
|
+
return sha256().update(message).digest('hex');
|
|
9566
9547
|
};
|
|
9567
9548
|
/**
|
|
9568
9549
|
* Hash (using SHA512) a message
|
|
@@ -9576,7 +9557,7 @@
|
|
|
9576
9557
|
};
|
|
9577
9558
|
return CryptoService;
|
|
9578
9559
|
}());
|
|
9579
|
-
CryptoService.ɵprov =
|
|
9560
|
+
CryptoService.ɵprov = i0.ɵɵdefineInjectable({ factory: function CryptoService_Factory() { return new CryptoService(); }, token: CryptoService, providedIn: "root" });
|
|
9580
9561
|
CryptoService.decorators = [
|
|
9581
9562
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
9582
9563
|
];
|
|
@@ -10997,7 +10978,7 @@
|
|
|
10997
10978
|
};
|
|
10998
10979
|
return LocalSettingsService;
|
|
10999
10980
|
}(StartableService));
|
|
11000
|
-
LocalSettingsService.ɵprov =
|
|
10981
|
+
LocalSettingsService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsService_Factory() { return new LocalSettingsService(i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_SETTINGS, 8), i0.ɵɵinject(APP_LOCAL_SETTINGS_OPTIONS, 8)); }, token: LocalSettingsService, providedIn: "root" });
|
|
11001
10982
|
LocalSettingsService.decorators = [
|
|
11002
10983
|
{ type: i0.Injectable, args: [{
|
|
11003
10984
|
providedIn: 'root',
|
|
@@ -11802,7 +11783,7 @@
|
|
|
11802
11783
|
};
|
|
11803
11784
|
return NetworkService;
|
|
11804
11785
|
}(StartableService));
|
|
11805
|
-
NetworkService.ɵprov =
|
|
11786
|
+
NetworkService.ɵprov = i0.ɵɵdefineInjectable({ factory: function NetworkService_Factory() { return new NetworkService(i0.ɵɵinject(i1$4.DOCUMENT), i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(CryptoService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i2$1.HttpClient), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i9.Network, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i1$2.TranslateService, 8), i0.ɵɵinject(i1$5.ToastController, 8)); }, token: NetworkService, providedIn: "root" });
|
|
11806
11787
|
NetworkService.decorators = [
|
|
11807
11788
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
11808
11789
|
];
|
|
@@ -11822,7 +11803,7 @@
|
|
|
11822
11803
|
{ type: i1$5.ToastController, decorators: [{ type: i0.Optional }] }
|
|
11823
11804
|
]; };
|
|
11824
11805
|
|
|
11825
|
-
var ErrorCodes
|
|
11806
|
+
var ErrorCodes = {
|
|
11826
11807
|
UNKNOWN_ERROR: 0,
|
|
11827
11808
|
LOAD_ACCOUNT_ERROR: 1,
|
|
11828
11809
|
BAD_PASSWORD: 2,
|
|
@@ -12230,7 +12211,7 @@
|
|
|
12230
12211
|
case 13:
|
|
12231
12212
|
err_1 = _a.sent();
|
|
12232
12213
|
console.error(err_1);
|
|
12233
|
-
throw { code: ErrorCodes
|
|
12214
|
+
throw { code: ErrorCodes.ENTITY_STORAGE_MIGRATION_FAILED, message: 'ERROR.ENTITY_STORAGE_MIGRATION_FAILED', details: err_1 };
|
|
12234
12215
|
case 14:
|
|
12235
12216
|
// Emit update event
|
|
12236
12217
|
if (!opts || opts.emitEvent !== false) {
|
|
@@ -13004,7 +12985,7 @@
|
|
|
13004
12985
|
}(StartableService));
|
|
13005
12986
|
EntitiesStorage.TRASH_PREFIX = 'Trash#';
|
|
13006
12987
|
EntitiesStorage.REMOTE_PREFIX = 'Remote#';
|
|
13007
|
-
EntitiesStorage.ɵprov =
|
|
12988
|
+
EntitiesStorage.ɵprov = i0.ɵɵdefineInjectable({ factory: function EntitiesStorage_Factory() { return new EntitiesStorage(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(ProgressBarService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_LOCAL_STORAGE_TYPE_POLICIES, 8)); }, token: EntitiesStorage, providedIn: "root" });
|
|
13008
12989
|
EntitiesStorage.decorators = [
|
|
13009
12990
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
13010
12991
|
];
|
|
@@ -13121,10 +13102,10 @@
|
|
|
13121
13102
|
function referentialsToString(values, properties, separator) {
|
|
13122
13103
|
return (values || []).map(function (v) { return referentialToString(v, properties); }).join(separator || ', ');
|
|
13123
13104
|
}
|
|
13124
|
-
var ɵ0$
|
|
13105
|
+
var ɵ0$8 = StatusIds.ENABLE, ɵ1 = StatusIds.DISABLE, ɵ2 = StatusIds.TEMPORARY;
|
|
13125
13106
|
var StatusList = Object.freeze([
|
|
13126
13107
|
{
|
|
13127
|
-
id: ɵ0$
|
|
13108
|
+
id: ɵ0$8,
|
|
13128
13109
|
icon: 'checkmark',
|
|
13129
13110
|
label: 'REFERENTIAL.STATUS_ENUM.ENABLE'
|
|
13130
13111
|
},
|
|
@@ -13427,7 +13408,7 @@
|
|
|
13427
13408
|
(data.lastName || '')) || '';
|
|
13428
13409
|
}
|
|
13429
13410
|
|
|
13430
|
-
var uuidv4 = uuidv4Imported__namespace;
|
|
13411
|
+
var uuidv4$1 = uuidv4Imported__namespace;
|
|
13431
13412
|
var _global = typeof global !== 'undefined' ? global : (typeof window !== 'undefined' ? window : {});
|
|
13432
13413
|
var NativeWebSocket = _global.WebSocket || _global.MozWebSocket;
|
|
13433
13414
|
/**
|
|
@@ -13471,7 +13452,7 @@
|
|
|
13471
13452
|
// Skip if not tracked
|
|
13472
13453
|
if (!context || !context.tracked)
|
|
13473
13454
|
return forward(operation);
|
|
13474
|
-
var id = context.serializationKey || uuidv4();
|
|
13455
|
+
var id = context.serializationKey || uuidv4$1();
|
|
13475
13456
|
console.debug("[apollo-tracker-link] Watching tracked query {" + operation.operationName + "#" + id + "}");
|
|
13476
13457
|
// Clean context, before calling JSON.stringify (remove unused attributes)
|
|
13477
13458
|
var cleanContext = Object.assign(Object.assign({}, context), { optimisticResponse: null, cache: null });
|
|
@@ -14080,7 +14061,6 @@
|
|
|
14080
14061
|
.append('Authorization', authorization);
|
|
14081
14062
|
//.append('X-App-Name', environment.name)
|
|
14082
14063
|
//.append('X-App-Version', environment.version)
|
|
14083
|
-
;
|
|
14084
14064
|
// Use the setContext method to set the HTTP headers.
|
|
14085
14065
|
operation.setContext(Object.assign(Object.assign({}, operation.getContext()), { headers: headers }));
|
|
14086
14066
|
// Call the next link in the middleware chain.
|
|
@@ -14106,14 +14086,14 @@
|
|
|
14106
14086
|
mutationLinks = void 0;
|
|
14107
14087
|
// Add queue to store tracked queries, when offline
|
|
14108
14088
|
if (enableTrackMutationQueries) {
|
|
14109
|
-
serializingLink = new SerializingLink__default[
|
|
14089
|
+
serializingLink = new SerializingLink__default['default']();
|
|
14110
14090
|
trackerLink = createTrackerLink({
|
|
14111
14091
|
storage: storage,
|
|
14112
14092
|
onNetworkStatusChange: this._networkStatusChanged$,
|
|
14113
14093
|
debounce: 1000,
|
|
14114
14094
|
debug: true
|
|
14115
14095
|
});
|
|
14116
|
-
queueLink_1 = new QueueLink__default[
|
|
14096
|
+
queueLink_1 = new QueueLink__default['default']();
|
|
14117
14097
|
this._subscription.add(this._networkStatusChanged$
|
|
14118
14098
|
.subscribe(function (type) {
|
|
14119
14099
|
// Network is offline: start buffering into queue
|
|
@@ -14128,7 +14108,7 @@
|
|
|
14128
14108
|
}
|
|
14129
14109
|
}));
|
|
14130
14110
|
mutationLinks = [
|
|
14131
|
-
loggerLink__default[
|
|
14111
|
+
loggerLink__default['default'],
|
|
14132
14112
|
queueLink_1,
|
|
14133
14113
|
trackerLink,
|
|
14134
14114
|
queueLink_1,
|
|
@@ -14237,7 +14217,7 @@
|
|
|
14237
14217
|
(err.networkError && ((err.networkError.error && this.toAppError(err.networkError.error))
|
|
14238
14218
|
|| this.toAppError(err.networkError)
|
|
14239
14219
|
|| (err.networkError.error && this.createAppErrorByCode(err.networkError.error.status))
|
|
14240
|
-
|| this.createAppErrorByCode(ErrorCodes
|
|
14220
|
+
|| this.createAppErrorByCode(ErrorCodes.UNKNOWN_NETWORK_ERROR)))
|
|
14241
14221
|
// If graphQL: try to convert the first error found
|
|
14242
14222
|
|| (err.graphQLErrors && err.graphQLErrors.length && this.toAppError(err.graphQLErrors[0]))
|
|
14243
14223
|
|| this.toAppError(err)
|
|
@@ -14245,7 +14225,7 @@
|
|
|
14245
14225
|
|| (err.graphQLErrors && err.graphQLErrors[0])
|
|
14246
14226
|
|| err;
|
|
14247
14227
|
console.error('[graphql] ' + (error && error.message || error), error.stack || '');
|
|
14248
|
-
if (error && error.code === ErrorCodes
|
|
14228
|
+
if (error && error.code === ErrorCodes.UNKNOWN_NETWORK_ERROR && err.networkError && err.networkError.message) {
|
|
14249
14229
|
console.error('[graphql] original error: ' + err.networkError.message);
|
|
14250
14230
|
this.onNetworkError.next(error);
|
|
14251
14231
|
}
|
|
@@ -14281,7 +14261,7 @@
|
|
|
14281
14261
|
return 'ERROR.UNAUTHORIZED';
|
|
14282
14262
|
case ServerErrorCodes.FORBIDDEN:
|
|
14283
14263
|
return 'ERROR.FORBIDDEN';
|
|
14284
|
-
case ErrorCodes
|
|
14264
|
+
case ErrorCodes.UNKNOWN_NETWORK_ERROR:
|
|
14285
14265
|
return 'ERROR.UNKNOWN_NETWORK_ERROR';
|
|
14286
14266
|
case ServerErrorCodes.BAD_UPDATE_DATE:
|
|
14287
14267
|
return 'ERROR.BAD_UPDATE_DATE';
|
|
@@ -14310,7 +14290,7 @@
|
|
|
14310
14290
|
};
|
|
14311
14291
|
return GraphqlService;
|
|
14312
14292
|
}(StartableService));
|
|
14313
|
-
GraphqlService.ɵprov =
|
|
14293
|
+
GraphqlService.ɵprov = i0.ɵɵdefineInjectable({ factory: function GraphqlService_Factory() { return new GraphqlService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$3.Apollo), i0.ɵɵinject(i3$3.HttpLink), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(CryptoService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_GRAPHQL_TYPE_POLICIES, 8)); }, token: GraphqlService, providedIn: "root" });
|
|
14314
14294
|
GraphqlService.decorators = [
|
|
14315
14295
|
{ type: i0.Injectable, args: [{
|
|
14316
14296
|
providedIn: 'root'
|
|
@@ -14327,7 +14307,7 @@
|
|
|
14327
14307
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_GRAPHQL_TYPE_POLICIES,] }] }
|
|
14328
14308
|
]; };
|
|
14329
14309
|
|
|
14330
|
-
var sha256 = require('hash.js/lib/hash/sha/256');
|
|
14310
|
+
var sha256$1 = require('hash.js/lib/hash/sha/256');
|
|
14331
14311
|
var BaseGraphqlServiceOptions = /** @class */ (function () {
|
|
14332
14312
|
function BaseGraphqlServiceOptions() {
|
|
14333
14313
|
}
|
|
@@ -14494,8 +14474,8 @@
|
|
|
14494
14474
|
};
|
|
14495
14475
|
/* -- protected methods -- */
|
|
14496
14476
|
BaseGraphqlService.prototype.computeMutableWatchQueryId = function (opts) {
|
|
14497
|
-
var queryName = opts.queryName || sha256().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
14498
|
-
var variablesKey = opts.variables && sha256().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
14477
|
+
var queryName = opts.queryName || sha256$1().update(JSON.stringify(opts.query)).digest('hex').substring(0, 8);
|
|
14478
|
+
var variablesKey = opts.variables && sha256$1().update(JSON.stringify(opts.variables)).digest('hex').substring(0, 8) || '';
|
|
14499
14479
|
return [queryName, opts.arrayFieldName, variablesKey].join('|');
|
|
14500
14480
|
};
|
|
14501
14481
|
BaseGraphqlService.prototype.findMutableWatchQueries = function (opts) {
|
|
@@ -14561,17 +14541,17 @@
|
|
|
14561
14541
|
/* ------------------------------------
|
|
14562
14542
|
* GraphQL queries
|
|
14563
14543
|
* ------------------------------------*/
|
|
14564
|
-
var Fragments
|
|
14565
|
-
account: core.gql(templateObject_1
|
|
14544
|
+
var Fragments = {
|
|
14545
|
+
account: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "], ["\n fragment AccountFragment on AccountVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n settings {\n id\n locale\n latLongFormat\n content\n nonce\n updateDate\n __typename\n }\n department {\n id\n label\n name\n __typename\n }\n __typename\n }\n "])))
|
|
14566
14546
|
};
|
|
14567
14547
|
// Load account query
|
|
14568
|
-
var LoadQuery
|
|
14548
|
+
var LoadQuery = core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"], ["\n query Account {\n data: account {\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14569
14549
|
// Check email query
|
|
14570
|
-
var IsEmailExistsQuery = core.gql(templateObject_3
|
|
14550
|
+
var IsEmailExistsQuery = core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"], ["\n query IsEmailExists($email: String, $hash: String){\n isEmailExists(email: $email, hash: $hash)\n }\n"])));
|
|
14571
14551
|
// Save (create or update) account mutation
|
|
14572
|
-
var SaveMutation
|
|
14552
|
+
var SaveMutation = core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation SaveAccount($data:AccountVOInput){\n data: saveAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14573
14553
|
// Create account mutation
|
|
14574
|
-
var CreateMutation = core.gql(templateObject_5
|
|
14554
|
+
var CreateMutation = core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"], ["\n mutation CreateAccount($data:AccountVOInput){\n data: createAccount(account: $data){\n ...AccountFragment\n }\n }\n ", "\n"])), Fragments.account);
|
|
14575
14555
|
// Sent confirmation email
|
|
14576
14556
|
var SendConfirmEmailMutation = core.gql(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"], ["\n mutation sendAccountConfirmationEmail($email:String, $locale:String){\n sendAccountConfirmationEmail(email: $email, locale: $locale)\n }\n"])));
|
|
14577
14557
|
// Confirm account email
|
|
@@ -14960,7 +14940,7 @@
|
|
|
14960
14940
|
error_3 = _b.sent();
|
|
14961
14941
|
console.error(error_3);
|
|
14962
14942
|
this.resetData();
|
|
14963
|
-
throw { code: ErrorCodes
|
|
14943
|
+
throw { code: ErrorCodes.UNKNOWN_ERROR, message: 'ERROR.SCRYPT_ERROR' };
|
|
14964
14944
|
case 4:
|
|
14965
14945
|
// Store pubkey+keypair
|
|
14966
14946
|
this._data.pubkey = Base58.encode(keypair.publicKey);
|
|
@@ -14996,7 +14976,7 @@
|
|
|
14996
14976
|
return [3 /*break*/, 18];
|
|
14997
14977
|
case 11:
|
|
14998
14978
|
err_1 = _b.sent();
|
|
14999
|
-
if (!(err_1 && +(err_1.code) === ErrorCodes
|
|
14979
|
+
if (!(err_1 && +(err_1.code) === ErrorCodes.LOAD_ACCOUNT_ERROR)) return [3 /*break*/, 17];
|
|
15000
14980
|
if (!(data.username.indexOf('@') !== -1)) return [3 /*break*/, 16];
|
|
15001
14981
|
isEmailExists = void 0;
|
|
15002
14982
|
_b.label = 12;
|
|
@@ -15012,12 +14992,12 @@
|
|
|
15012
14992
|
case 15:
|
|
15013
14993
|
// Email not exists (no account)
|
|
15014
14994
|
if (!isEmailExists) {
|
|
15015
|
-
throw { code: ErrorCodes
|
|
14995
|
+
throw { code: ErrorCodes.UNKNOWN_ACCOUNT_EMAIL, message: 'ERROR.UNKNOWN_ACCOUNT_EMAIL' };
|
|
15016
14996
|
}
|
|
15017
14997
|
_b.label = 16;
|
|
15018
14998
|
case 16:
|
|
15019
14999
|
// Email exists, so error = 'bad password'
|
|
15020
|
-
throw { code: ErrorCodes
|
|
15000
|
+
throw { code: ErrorCodes.BAD_PASSWORD, message: 'ERROR.BAD_PASSWORD' };
|
|
15021
15001
|
case 17: throw err_1; // resend the first error
|
|
15022
15002
|
case 18:
|
|
15023
15003
|
_b.trys.push([18, 20, , 21]);
|
|
@@ -15189,8 +15169,8 @@
|
|
|
15189
15169
|
_b.label = 3;
|
|
15190
15170
|
case 3: return [3 /*break*/, 6];
|
|
15191
15171
|
case 4: return [4 /*yield*/, this.graphql.query({
|
|
15192
|
-
query: LoadQuery
|
|
15193
|
-
error: { code: ErrorCodes
|
|
15172
|
+
query: LoadQuery,
|
|
15173
|
+
error: { code: ErrorCodes.LOAD_ACCOUNT_ERROR, message: 'ERROR.LOAD_ACCOUNT_ERROR' },
|
|
15194
15174
|
fetchPolicy: opts && opts.fetchPolicy || 'no-cache' || undefined
|
|
15195
15175
|
})];
|
|
15196
15176
|
case 5:
|
|
@@ -15228,7 +15208,7 @@
|
|
|
15228
15208
|
case 1:
|
|
15229
15209
|
isEmailExists = _b.sent();
|
|
15230
15210
|
if (isEmailExists) {
|
|
15231
|
-
throw { code: ErrorCodes
|
|
15211
|
+
throw { code: ErrorCodes.EMAIL_ALREADY_REGISTERED, message: 'ERROR.EMAIL_ALREADY_REGISTERED' };
|
|
15232
15212
|
}
|
|
15233
15213
|
return [2 /*return*/];
|
|
15234
15214
|
}
|
|
@@ -15278,7 +15258,7 @@
|
|
|
15278
15258
|
locale: locale
|
|
15279
15259
|
},
|
|
15280
15260
|
error: {
|
|
15281
|
-
code: ErrorCodes
|
|
15261
|
+
code: ErrorCodes.SENT_CONFIRMATION_EMAIL_FAILED,
|
|
15282
15262
|
message: 'ERROR.SENT_ACCOUNT_CONFIRMATION_EMAIL_FAILED'
|
|
15283
15263
|
}
|
|
15284
15264
|
})];
|
|
@@ -15301,7 +15281,7 @@
|
|
|
15301
15281
|
code: code
|
|
15302
15282
|
},
|
|
15303
15283
|
error: {
|
|
15304
|
-
code: ErrorCodes
|
|
15284
|
+
code: ErrorCodes.CONFIRM_EMAIL_FAILED,
|
|
15305
15285
|
message: 'ERROR.CONFIRM_ACCOUNT_EMAIL_FAILED'
|
|
15306
15286
|
}
|
|
15307
15287
|
})];
|
|
@@ -15324,7 +15304,7 @@
|
|
|
15324
15304
|
interval: 10
|
|
15325
15305
|
},
|
|
15326
15306
|
error: {
|
|
15327
|
-
code: ErrorCodes
|
|
15307
|
+
code: ErrorCodes.SUBSCRIBE_ACCOUNT_ERROR,
|
|
15328
15308
|
message: 'ERROR.ACCOUNT.SUBSCRIBE_ACCOUNT_ERROR'
|
|
15329
15309
|
}
|
|
15330
15310
|
}).subscribe({
|
|
@@ -15478,7 +15458,7 @@
|
|
|
15478
15458
|
throw error_6;
|
|
15479
15459
|
console.error(error_6);
|
|
15480
15460
|
throw {
|
|
15481
|
-
code: ErrorCodes
|
|
15461
|
+
code: ErrorCodes.LOAD_ACCOUNT_ERROR,
|
|
15482
15462
|
message: 'ERROR.LOAD_ACCOUNT_ERROR'
|
|
15483
15463
|
};
|
|
15484
15464
|
case 4: return [2 /*return*/];
|
|
@@ -15652,7 +15632,7 @@
|
|
|
15652
15632
|
case 1:
|
|
15653
15633
|
existingAccount = _b.sent();
|
|
15654
15634
|
if (!existingAccount || !existingAccount.updateDate) {
|
|
15655
|
-
throw { code: ErrorCodes
|
|
15635
|
+
throw { code: ErrorCodes.ACCOUNT_NOT_EXISTS, message: 'ERROR.ACCOUNT_NOT_EXISTS' };
|
|
15656
15636
|
}
|
|
15657
15637
|
this.copyIdAndUpdateDate(existingAccount, account);
|
|
15658
15638
|
_b.label = 2;
|
|
@@ -15661,10 +15641,10 @@
|
|
|
15661
15641
|
// User not allow to change his profiles
|
|
15662
15642
|
delete json.profiles;
|
|
15663
15643
|
return [4 /*yield*/, this.graphql.mutate({
|
|
15664
|
-
mutation: isNew ? CreateMutation : SaveMutation
|
|
15644
|
+
mutation: isNew ? CreateMutation : SaveMutation,
|
|
15665
15645
|
variables: { data: json },
|
|
15666
15646
|
error: {
|
|
15667
|
-
code: ErrorCodes
|
|
15647
|
+
code: ErrorCodes.SAVE_ACCOUNT_ERROR,
|
|
15668
15648
|
message: 'ERROR.SAVE_ACCOUNT_ERROR'
|
|
15669
15649
|
}
|
|
15670
15650
|
})];
|
|
@@ -15692,7 +15672,7 @@
|
|
|
15692
15672
|
if (counter > 4) {
|
|
15693
15673
|
if (this._debug)
|
|
15694
15674
|
console.debug("[account] Failed to authentication on pod (after " + counter + " attempts)");
|
|
15695
|
-
throw { code: ErrorCodes
|
|
15675
|
+
throw { code: ErrorCodes.AUTH_SERVER_ERROR, message: 'ERROR.AUTH_SERVER_ERROR' };
|
|
15696
15676
|
}
|
|
15697
15677
|
if (!token) return [3 /*break*/, 2];
|
|
15698
15678
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -15701,7 +15681,7 @@
|
|
|
15701
15681
|
token: token
|
|
15702
15682
|
},
|
|
15703
15683
|
error: {
|
|
15704
|
-
code: ErrorCodes
|
|
15684
|
+
code: ErrorCodes.UNAUTHORIZED,
|
|
15705
15685
|
message: 'ERROR.UNAUTHORIZED'
|
|
15706
15686
|
},
|
|
15707
15687
|
fetchPolicy: 'no-cache'
|
|
@@ -15718,7 +15698,7 @@
|
|
|
15718
15698
|
_b.label = 2;
|
|
15719
15699
|
case 2:
|
|
15720
15700
|
challengeError = {
|
|
15721
|
-
code: ErrorCodes
|
|
15701
|
+
code: ErrorCodes.AUTH_CHALLENGE_ERROR,
|
|
15722
15702
|
message: 'ERROR.AUTH_CHALLENGE_ERROR'
|
|
15723
15703
|
};
|
|
15724
15704
|
return [4 /*yield*/, this.graphql.query({
|
|
@@ -15760,7 +15740,7 @@
|
|
|
15760
15740
|
};
|
|
15761
15741
|
return AccountService;
|
|
15762
15742
|
}(BaseGraphqlService));
|
|
15763
|
-
AccountService.ɵprov =
|
|
15743
|
+
AccountService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountService_Factory() { return new AccountService(i0.ɵɵinject(CryptoService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(FileService), i0.ɵɵinject(ENVIRONMENT)); }, token: AccountService, providedIn: "root" });
|
|
15764
15744
|
AccountService.decorators = [
|
|
15765
15745
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
15766
15746
|
];
|
|
@@ -15773,7 +15753,7 @@
|
|
|
15773
15753
|
{ type: FileService },
|
|
15774
15754
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
15775
15755
|
]; };
|
|
15776
|
-
var templateObject_1
|
|
15756
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10;
|
|
15777
15757
|
|
|
15778
15758
|
var Software_1, Configuration_1;
|
|
15779
15759
|
// @dynamic
|
|
@@ -16025,13 +16005,13 @@
|
|
|
16025
16005
|
/* ------------------------------------
|
|
16026
16006
|
* GraphQL queries
|
|
16027
16007
|
* ------------------------------------*/
|
|
16028
|
-
var Fragments = {
|
|
16029
|
-
config: core.gql(templateObject_1$
|
|
16008
|
+
var Fragments$1 = {
|
|
16009
|
+
config: core.gql(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "], ["\n fragment ConfigFragment on ConfigurationVO {\n id\n label\n name\n description\n comments\n properties\n smallLogo\n largeLogo\n backgroundImages\n partners {\n id\n label\n name\n logo\n siteUrl\n __typename\n }\n updateDate\n creationDate\n statusId\n __typename\n }\n "])))
|
|
16030
16010
|
};
|
|
16031
|
-
var LoadQuery = core.gql(templateObject_2$
|
|
16011
|
+
var LoadQuery$1 = core.gql(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"], ["\nquery Configuration{\n data: configuration{\n ...ConfigFragment\n }\n}\n ", "\n"])), Fragments$1.config);
|
|
16032
16012
|
// Save (create or update) account mutation
|
|
16033
|
-
var SaveMutation = core.gql(templateObject_3$
|
|
16034
|
-
var ClearCache = core.gql(templateObject_4$
|
|
16013
|
+
var SaveMutation$1 = core.gql(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject(["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"], ["\n mutation SaveConfiguration($data: ConfigurationVOInput){\n data: saveConfiguration(config: $data){\n ...ConfigFragment\n }\n }\n ", "\n"])), Fragments$1.config);
|
|
16014
|
+
var ClearCache = core.gql(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject(["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"], ["\n query ClearCache($name: String) {\n clearCache(name: $name)\n }\n"])));
|
|
16035
16015
|
var CacheStatistics = core.gql(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n query CacheStatistics {\n cacheStatistics\n }\n"], ["\n query CacheStatistics {\n cacheStatistics\n }\n"])));
|
|
16036
16016
|
var APP_CONFIG_OPTIONS = new i0.InjectionToken('defaultOptions');
|
|
16037
16017
|
var ConfigService = /** @class */ (function (_super) {
|
|
@@ -16142,12 +16122,12 @@
|
|
|
16142
16122
|
case 0:
|
|
16143
16123
|
now = Date.now();
|
|
16144
16124
|
console.debug('[config] Loading Pod configuration...');
|
|
16145
|
-
query = opts && opts.query || LoadQuery;
|
|
16125
|
+
query = opts && opts.query || LoadQuery$1;
|
|
16146
16126
|
variables = opts && opts.variables || undefined;
|
|
16147
16127
|
return [4 /*yield*/, this.graphql.query({
|
|
16148
16128
|
query: query,
|
|
16149
16129
|
variables: variables,
|
|
16150
|
-
error: { code: ErrorCodes
|
|
16130
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16151
16131
|
fetchPolicy: opts && opts.fetchPolicy || undefined /*default*/
|
|
16152
16132
|
})];
|
|
16153
16133
|
case 1:
|
|
@@ -16181,12 +16161,12 @@
|
|
|
16181
16161
|
console.debug('[config] Saving Pod configuration...', config);
|
|
16182
16162
|
json = config.asObject();
|
|
16183
16163
|
return [4 /*yield*/, this.graphql.mutate({
|
|
16184
|
-
mutation: SaveMutation,
|
|
16164
|
+
mutation: SaveMutation$1,
|
|
16185
16165
|
variables: {
|
|
16186
16166
|
data: json
|
|
16187
16167
|
},
|
|
16188
16168
|
error: {
|
|
16189
|
-
code: ErrorCodes
|
|
16169
|
+
code: ErrorCodes.SAVE_CONFIG_ERROR,
|
|
16190
16170
|
message: 'ERROR.SAVE_CONFIG_ERROR'
|
|
16191
16171
|
}
|
|
16192
16172
|
})];
|
|
@@ -16221,7 +16201,7 @@
|
|
|
16221
16201
|
return [4 /*yield*/, this.graphql.query({
|
|
16222
16202
|
query: CacheStatistics,
|
|
16223
16203
|
variables: null,
|
|
16224
|
-
error: { code: ErrorCodes
|
|
16204
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16225
16205
|
fetchPolicy: 'network-only'
|
|
16226
16206
|
})];
|
|
16227
16207
|
case 1:
|
|
@@ -16245,7 +16225,7 @@
|
|
|
16245
16225
|
return [4 /*yield*/, this.graphql.query({
|
|
16246
16226
|
query: ClearCache,
|
|
16247
16227
|
variables: variables,
|
|
16248
|
-
error: { code: ErrorCodes
|
|
16228
|
+
error: { code: ErrorCodes.LOAD_CONFIG_ERROR, message: 'ERROR.LOAD_CONFIG_ERROR' },
|
|
16249
16229
|
fetchPolicy: 'network-only'
|
|
16250
16230
|
})];
|
|
16251
16231
|
case 1:
|
|
@@ -16445,7 +16425,7 @@
|
|
|
16445
16425
|
};
|
|
16446
16426
|
return ConfigService;
|
|
16447
16427
|
}(BaseGraphqlService));
|
|
16448
|
-
ConfigService.ɵprov =
|
|
16428
|
+
ConfigService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ConfigService_Factory() { return new ConfigService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(GraphqlService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(NetworkService), i0.ɵɵinject(FileService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(APP_CONFIG_OPTIONS, 8)); }, token: ConfigService, providedIn: "root" });
|
|
16449
16429
|
ConfigService.decorators = [
|
|
16450
16430
|
{ type: i0.Injectable, args: [{
|
|
16451
16431
|
providedIn: 'root',
|
|
@@ -16463,44 +16443,38 @@
|
|
|
16463
16443
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] },
|
|
16464
16444
|
{ type: undefined, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_CONFIG_OPTIONS,] }] }
|
|
16465
16445
|
]; };
|
|
16466
|
-
var templateObject_1$
|
|
16446
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5$1;
|
|
16467
16447
|
|
|
16468
|
-
var moment$
|
|
16469
|
-
var PlatformService = /** @class */ (function () {
|
|
16448
|
+
var moment$4 = momentImported__namespace;
|
|
16449
|
+
var PlatformService = /** @class */ (function (_super) {
|
|
16450
|
+
__extends(PlatformService, _super);
|
|
16470
16451
|
function PlatformService(platform, cdkPlatform, toastController, translate, dateAdapter, entitiesStorage, settings, networkService, accountService, configService, cache, storage, audioProvider, environment, statusBar, keyboard, splashScreen, browser, downloader) {
|
|
16471
|
-
this
|
|
16472
|
-
|
|
16473
|
-
|
|
16474
|
-
|
|
16475
|
-
|
|
16476
|
-
|
|
16477
|
-
|
|
16478
|
-
|
|
16479
|
-
|
|
16480
|
-
|
|
16481
|
-
|
|
16482
|
-
|
|
16483
|
-
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
if (
|
|
16452
|
+
var _this = _super.call(this, platform) || this;
|
|
16453
|
+
_this.platform = platform;
|
|
16454
|
+
_this.cdkPlatform = cdkPlatform;
|
|
16455
|
+
_this.toastController = toastController;
|
|
16456
|
+
_this.translate = translate;
|
|
16457
|
+
_this.dateAdapter = dateAdapter;
|
|
16458
|
+
_this.entitiesStorage = entitiesStorage;
|
|
16459
|
+
_this.settings = settings;
|
|
16460
|
+
_this.networkService = networkService;
|
|
16461
|
+
_this.accountService = accountService;
|
|
16462
|
+
_this.configService = configService;
|
|
16463
|
+
_this.cache = cache;
|
|
16464
|
+
_this.storage = storage;
|
|
16465
|
+
_this.audioProvider = audioProvider;
|
|
16466
|
+
_this.environment = environment;
|
|
16467
|
+
_this.statusBar = statusBar;
|
|
16468
|
+
_this.keyboard = keyboard;
|
|
16469
|
+
_this.splashScreen = splashScreen;
|
|
16470
|
+
_this.browser = browser;
|
|
16471
|
+
_this.downloader = downloader;
|
|
16472
|
+
_this._downloadingJobs = new Map();
|
|
16473
|
+
_this._debug = !environment.production;
|
|
16474
|
+
if (_this._debug)
|
|
16494
16475
|
console.debug('[platform] Creating service');
|
|
16495
|
-
|
|
16476
|
+
return _this;
|
|
16496
16477
|
}
|
|
16497
|
-
Object.defineProperty(PlatformService.prototype, "started", {
|
|
16498
|
-
get: function () {
|
|
16499
|
-
return this._started;
|
|
16500
|
-
},
|
|
16501
|
-
enumerable: false,
|
|
16502
|
-
configurable: true
|
|
16503
|
-
});
|
|
16504
16478
|
Object.defineProperty(PlatformService.prototype, "mobile", {
|
|
16505
16479
|
get: function () {
|
|
16506
16480
|
return isNotNil(this._mobile) ? this._mobile : this.platform.is('mobile');
|
|
@@ -16523,7 +16497,7 @@
|
|
|
16523
16497
|
};
|
|
16524
16498
|
Object.defineProperty(PlatformService.prototype, "canDownload", {
|
|
16525
16499
|
get: function () {
|
|
16526
|
-
return this.
|
|
16500
|
+
return isNotNil(this.downloader);
|
|
16527
16501
|
},
|
|
16528
16502
|
enumerable: false,
|
|
16529
16503
|
configurable: true
|
|
@@ -16534,80 +16508,81 @@
|
|
|
16534
16508
|
PlatformService.prototype.height = function () {
|
|
16535
16509
|
return this.platform.height();
|
|
16536
16510
|
};
|
|
16537
|
-
PlatformService.prototype.
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16598
|
-
|
|
16599
|
-
|
|
16600
|
-
|
|
16601
|
-
|
|
16602
|
-
|
|
16603
|
-
|
|
16604
|
-
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16610
|
-
|
|
16511
|
+
PlatformService.prototype.ngOnStart = function () {
|
|
16512
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16513
|
+
var now, forage, err_1;
|
|
16514
|
+
var _this = this;
|
|
16515
|
+
return __generator(this, function (_b) {
|
|
16516
|
+
switch (_b.label) {
|
|
16517
|
+
case 0:
|
|
16518
|
+
now = Date.now();
|
|
16519
|
+
this.accountService.tokenType = undefined;
|
|
16520
|
+
console.info('[platform] Starting platform...');
|
|
16521
|
+
_b.label = 1;
|
|
16522
|
+
case 1:
|
|
16523
|
+
_b.trys.push([1, 6, , 7]);
|
|
16524
|
+
this._mobile = this.platform.is('mobile');
|
|
16525
|
+
this._cordova = this.platform.is('cordova');
|
|
16526
|
+
this._android = this.platform.is('android');
|
|
16527
|
+
this.configureCordovaPlugins(this._mobile);
|
|
16528
|
+
this.touchUi = this._mobile || this.platform.is('tablet') || this.platform.is('phablet');
|
|
16529
|
+
// Force mobile in settings
|
|
16530
|
+
if (this._mobile) {
|
|
16531
|
+
this.settings.mobile = this._mobile;
|
|
16532
|
+
this.settings.touchUi = this.touchUi;
|
|
16533
|
+
}
|
|
16534
|
+
// Configure translation
|
|
16535
|
+
return [4 /*yield*/, this.configureTranslate()];
|
|
16536
|
+
case 2:
|
|
16537
|
+
// Configure translation
|
|
16538
|
+
_b.sent();
|
|
16539
|
+
return [4 /*yield*/, this.storageReady()];
|
|
16540
|
+
case 3:
|
|
16541
|
+
forage = _b.sent();
|
|
16542
|
+
return [4 /*yield*/, this.migrateStorage(forage)];
|
|
16543
|
+
case 4:
|
|
16544
|
+
_b.sent();
|
|
16545
|
+
// Start root services
|
|
16546
|
+
return [4 /*yield*/, Promise.all([
|
|
16547
|
+
this.entitiesStorage.ready(),
|
|
16548
|
+
this.cache.ready().then(function () { return _this.configureCache(); }),
|
|
16549
|
+
this.settings.ready(),
|
|
16550
|
+
this.networkService.ready(),
|
|
16551
|
+
this.audioProvider.ready()
|
|
16552
|
+
])];
|
|
16553
|
+
case 5:
|
|
16554
|
+
// Start root services
|
|
16555
|
+
_b.sent();
|
|
16556
|
+
console.info("[platform] Starting platform [OK] {mobile: " + this._mobile + ", touchUi: " + this.touchUi + ", downloader: " + this.canDownload + "} in " + (Date.now() - now) + "ms");
|
|
16557
|
+
// Update cache configuration when network changed
|
|
16558
|
+
this.networkService.onNetworkStatusChanges
|
|
16559
|
+
.pipe(operators.skip(1)) // Skip the first event (behavior subject send event immediately)
|
|
16560
|
+
.subscribe(function (type) { return _this.configureCache(type !== 'none'); });
|
|
16561
|
+
// Update authentication type
|
|
16562
|
+
this.configService.config
|
|
16563
|
+
.pipe(operators.map(function (config) { return config === null || config === void 0 ? void 0 : config.getProperty(CORE_CONFIG_OPTIONS.AUTH_TOKEN_TYPE); }), operators.filter(isNotNilOrBlank), operators.distinctUntilChanged())
|
|
16564
|
+
.subscribe(function (tokenType) {
|
|
16565
|
+
console.info("[platform] Using auth token type {" + tokenType + "}");
|
|
16566
|
+
_this.accountService.tokenType = tokenType;
|
|
16567
|
+
});
|
|
16568
|
+
// Hide the splashscreen (if mobile) - after 1s
|
|
16569
|
+
if (this.mobile) {
|
|
16570
|
+
setTimeout(function () {
|
|
16571
|
+
var _a;
|
|
16572
|
+
(_a = _this.splashScreen) === null || _a === void 0 ? void 0 : _a.hide();
|
|
16573
|
+
// Play startup sound
|
|
16574
|
+
_this.audioProvider.playStartupSound();
|
|
16575
|
+
}, 1000);
|
|
16576
|
+
}
|
|
16577
|
+
return [3 /*break*/, 7];
|
|
16578
|
+
case 6:
|
|
16579
|
+
err_1 = _b.sent();
|
|
16580
|
+
// Manage startup error
|
|
16581
|
+
return [2 /*return*/, this.onStartupError(err_1)];
|
|
16582
|
+
case 7: return [2 /*return*/];
|
|
16583
|
+
}
|
|
16584
|
+
});
|
|
16585
|
+
});
|
|
16611
16586
|
};
|
|
16612
16587
|
PlatformService.prototype.open = function (url, target, features, replace) {
|
|
16613
16588
|
console.info("[platform] Opening link: " + url);
|
|
@@ -16690,16 +16665,16 @@
|
|
|
16690
16665
|
}
|
|
16691
16666
|
// config moment lib
|
|
16692
16667
|
try {
|
|
16693
|
-
moment$
|
|
16668
|
+
moment$4.locale(event.lang);
|
|
16694
16669
|
console.debug('[platform] Use locale {' + event.lang + '}');
|
|
16695
16670
|
}
|
|
16696
16671
|
// If error, fallback to en
|
|
16697
16672
|
catch (err) {
|
|
16698
|
-
moment$
|
|
16673
|
+
moment$4.locale('en');
|
|
16699
16674
|
console.warn('[platform] Unknown local for moment lib. Using default [en]');
|
|
16700
16675
|
}
|
|
16701
16676
|
// Config date adapter
|
|
16702
|
-
_this.dateAdapter.setLocale(moment$
|
|
16677
|
+
_this.dateAdapter.setLocale(moment$4.locale());
|
|
16703
16678
|
}
|
|
16704
16679
|
});
|
|
16705
16680
|
this.settings.onChange.subscribe(function (data) {
|
|
@@ -16720,22 +16695,22 @@
|
|
|
16720
16695
|
});
|
|
16721
16696
|
};
|
|
16722
16697
|
PlatformService.prototype.configureCache = function (online) {
|
|
16723
|
-
online =
|
|
16698
|
+
online = toBoolean(online, this.cache.isOnline());
|
|
16724
16699
|
var cacheTTL = online ? 3600 /* 1h */ : 3600 * 24 * 30; /* 1 month */
|
|
16725
|
-
console.info("[platform] Configuring cache [OK] {online: " + online + "
|
|
16700
|
+
console.info("[platform] Configuring cache [OK] {online: " + online + ", timeToLive: " + cacheTTL / 3600 + "h, offlineInvalidate: false}");
|
|
16726
16701
|
this.cache.setDefaultTTL(cacheTTL);
|
|
16727
16702
|
this.cache.setOfflineInvalidate(false); // Do not invalidate cache when offline
|
|
16728
16703
|
};
|
|
16729
16704
|
PlatformService.prototype.storageReady = function () {
|
|
16730
16705
|
return __awaiter(this, void 0, void 0, function () {
|
|
16731
16706
|
var forage, driver;
|
|
16732
|
-
return __generator(this, function (
|
|
16733
|
-
switch (
|
|
16707
|
+
return __generator(this, function (_b) {
|
|
16708
|
+
switch (_b.label) {
|
|
16734
16709
|
case 0:
|
|
16735
16710
|
console.info("[platform] Starting storage...");
|
|
16736
16711
|
return [4 /*yield*/, this.storage.ready()];
|
|
16737
16712
|
case 1:
|
|
16738
|
-
forage =
|
|
16713
|
+
forage = _b.sent();
|
|
16739
16714
|
driver = forage.driver();
|
|
16740
16715
|
if (isNil(driver)) {
|
|
16741
16716
|
console.error('[platform] NO DRIVER DEFINED IN STORAGE. Local storage cannot be used !');
|
|
@@ -16750,9 +16725,9 @@
|
|
|
16750
16725
|
};
|
|
16751
16726
|
PlatformService.prototype.migrateStorage = function (forage) {
|
|
16752
16727
|
return __awaiter(this, void 0, void 0, function () {
|
|
16753
|
-
var canMigrate, oldForage, keys, now, toast_1, duration,
|
|
16754
|
-
return __generator(this, function (
|
|
16755
|
-
switch (
|
|
16728
|
+
var canMigrate, oldForage, keys, now, toast_1, duration, err_2;
|
|
16729
|
+
return __generator(this, function (_b) {
|
|
16730
|
+
switch (_b.label) {
|
|
16756
16731
|
case 0:
|
|
16757
16732
|
canMigrate = forage &&
|
|
16758
16733
|
((forage.driver() === 'cordovaSQLiteDriver' && (forage.supports(forage.INDEXEDDB) || forage.supports(forage.WEBSQL))) ||
|
|
@@ -16766,13 +16741,13 @@
|
|
|
16766
16741
|
});
|
|
16767
16742
|
return [4 /*yield*/, oldForage.keys()];
|
|
16768
16743
|
case 1:
|
|
16769
|
-
keys =
|
|
16744
|
+
keys = _b.sent();
|
|
16770
16745
|
if (!isEmptyArray(keys)) return [3 /*break*/, 3];
|
|
16771
16746
|
// Drop the old instance (not need anymore)
|
|
16772
16747
|
console.debug("[platform] Old storage is empty: dropping unused instance {name: '" + forage.config().name + "', driver: '" + oldForage.driver() + "'}");
|
|
16773
16748
|
return [4 /*yield*/, oldForage.dropInstance()];
|
|
16774
16749
|
case 2:
|
|
16775
|
-
|
|
16750
|
+
_b.sent();
|
|
16776
16751
|
return [3 /*break*/, 12];
|
|
16777
16752
|
case 3:
|
|
16778
16753
|
now = Date.now();
|
|
@@ -16780,13 +16755,13 @@
|
|
|
16780
16755
|
return [4 /*yield*/, this.showToast({ message: 'INFO.DATA_MIGRATION_STARTED',
|
|
16781
16756
|
duration: 30000 })];
|
|
16782
16757
|
case 4:
|
|
16783
|
-
toast_1 =
|
|
16784
|
-
|
|
16758
|
+
toast_1 = _b.sent();
|
|
16759
|
+
_b.label = 5;
|
|
16785
16760
|
case 5:
|
|
16786
|
-
|
|
16761
|
+
_b.trys.push([5, 9, , 12]);
|
|
16787
16762
|
return [4 /*yield*/, StorageUtils.copy(oldForage, forage, { keys: keys, deleteAfterCopy: false })];
|
|
16788
16763
|
case 6:
|
|
16789
|
-
|
|
16764
|
+
_b.sent();
|
|
16790
16765
|
duration = Date.now() - now;
|
|
16791
16766
|
setTimeout(function () { return toast_1.dismiss(); }, Math.max(2000 - duration, 0));
|
|
16792
16767
|
return [4 /*yield*/, this.showToast({ message: 'INFO.DATA_MIGRATION_SUCCEED',
|
|
@@ -16794,26 +16769,26 @@
|
|
|
16794
16769
|
showCloseButton: true
|
|
16795
16770
|
})];
|
|
16796
16771
|
case 7:
|
|
16797
|
-
|
|
16772
|
+
_b.sent();
|
|
16798
16773
|
console.info('[platform] Starting storage migration [OK]');
|
|
16799
16774
|
// Drop the old instance
|
|
16800
16775
|
console.info("[platform] Drop old storage {name: '" + forage.config().name + "', driver: '" + oldForage.driver() + "'}");
|
|
16801
16776
|
return [4 /*yield*/, oldForage.dropInstance()];
|
|
16802
16777
|
case 8:
|
|
16803
|
-
|
|
16778
|
+
_b.sent();
|
|
16804
16779
|
return [3 /*break*/, 12];
|
|
16805
16780
|
case 9:
|
|
16806
|
-
|
|
16807
|
-
console.error(
|
|
16781
|
+
err_2 = _b.sent();
|
|
16782
|
+
console.error(err_2 && err_2.message || err_2, err_2);
|
|
16808
16783
|
return [4 /*yield*/, toast_1.dismiss()];
|
|
16809
16784
|
case 10:
|
|
16810
|
-
|
|
16785
|
+
_b.sent();
|
|
16811
16786
|
return [4 /*yield*/, this.showToast({ message: 'ERROR.DATA_MIGRATION_FAILED',
|
|
16812
16787
|
type: 'error',
|
|
16813
16788
|
showCloseButton: true
|
|
16814
16789
|
})];
|
|
16815
16790
|
case 11:
|
|
16816
|
-
|
|
16791
|
+
_b.sent();
|
|
16817
16792
|
return [3 /*break*/, 12];
|
|
16818
16793
|
case 12: return [2 /*return*/];
|
|
16819
16794
|
}
|
|
@@ -16829,8 +16804,8 @@
|
|
|
16829
16804
|
PlatformService.prototype.onStartupError = function (err) {
|
|
16830
16805
|
return __awaiter(this, void 0, void 0, function () {
|
|
16831
16806
|
var message, detailsMessage;
|
|
16832
|
-
return __generator(this, function (
|
|
16833
|
-
switch (
|
|
16807
|
+
return __generator(this, function (_b) {
|
|
16808
|
+
switch (_b.label) {
|
|
16834
16809
|
case 0:
|
|
16835
16810
|
console.error('[platform] Failed starting the platform! ', err);
|
|
16836
16811
|
message = err && err.message || err;
|
|
@@ -16842,14 +16817,14 @@
|
|
|
16842
16817
|
if (!this.translate) return [3 /*break*/, 2];
|
|
16843
16818
|
return [4 /*yield*/, this.translate.get(message).toPromise()];
|
|
16844
16819
|
case 1:
|
|
16845
|
-
message =
|
|
16820
|
+
message = _b.sent();
|
|
16846
16821
|
if (err && err.code) {
|
|
16847
16822
|
message += " {code: " + err.code + "}";
|
|
16848
16823
|
}
|
|
16849
16824
|
return [3 /*break*/, 3];
|
|
16850
16825
|
case 2:
|
|
16851
16826
|
message = "Fatal error: Please contact your administrator.\n\n{code: " + (err && err.code || 'null') + ", message: \"" + message + "\"}";
|
|
16852
|
-
|
|
16827
|
+
_b.label = 3;
|
|
16853
16828
|
case 3:
|
|
16854
16829
|
if (!this.toastController) return [3 /*break*/, 5];
|
|
16855
16830
|
if (detailsMessage) {
|
|
@@ -16862,7 +16837,7 @@
|
|
|
16862
16837
|
message: message
|
|
16863
16838
|
})];
|
|
16864
16839
|
case 4:
|
|
16865
|
-
|
|
16840
|
+
_b.sent();
|
|
16866
16841
|
return [3 /*break*/, 6];
|
|
16867
16842
|
case 5:
|
|
16868
16843
|
if (window) {
|
|
@@ -16876,15 +16851,15 @@
|
|
|
16876
16851
|
if (err && err.details)
|
|
16877
16852
|
console.error('cause', err.details);
|
|
16878
16853
|
}
|
|
16879
|
-
|
|
16854
|
+
_b.label = 6;
|
|
16880
16855
|
case 6: return [2 /*return*/];
|
|
16881
16856
|
}
|
|
16882
16857
|
});
|
|
16883
16858
|
});
|
|
16884
16859
|
};
|
|
16885
16860
|
return PlatformService;
|
|
16886
|
-
}());
|
|
16887
|
-
PlatformService.ɵprov =
|
|
16861
|
+
}(StartableService));
|
|
16862
|
+
PlatformService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PlatformService_Factory() { return new PlatformService(i0.ɵɵinject(i1$5.Platform), i0.ɵɵinject(i2$4.Platform), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$1.MomentDateAdapter), i0.ɵɵinject(EntitiesStorage), i0.ɵɵinject(LocalSettingsService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(AccountService), i0.ɵɵinject(ConfigService), i0.ɵɵinject(i6.CacheService), i0.ɵɵinject(i3$2.Storage), i0.ɵɵinject(AudioProvider), i0.ɵɵinject(ENVIRONMENT), i0.ɵɵinject(i14.StatusBar, 8), i0.ɵɵinject(i15.Keyboard, 8), i0.ɵɵinject(i10.SplashScreen, 8), i0.ɵɵinject(i17.InAppBrowser, 8), i0.ɵɵinject(i18.Downloader, 8)); }, token: PlatformService, providedIn: "root" });
|
|
16888
16863
|
PlatformService.decorators = [
|
|
16889
16864
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16890
16865
|
];
|
|
@@ -16982,7 +16957,7 @@
|
|
|
16982
16957
|
};
|
|
16983
16958
|
return MatStepperI18n;
|
|
16984
16959
|
}(stepper.MatStepperIntl));
|
|
16985
|
-
MatStepperI18n.ɵprov =
|
|
16960
|
+
MatStepperI18n.ɵprov = i0.ɵɵdefineInjectable({ factory: function MatStepperI18n_Factory() { return new MatStepperI18n(i0.ɵɵinject(i1$2.TranslateService)); }, token: MatStepperI18n, providedIn: "root" });
|
|
16986
16961
|
MatStepperI18n.decorators = [
|
|
16987
16962
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
16988
16963
|
];
|
|
@@ -18174,7 +18149,7 @@
|
|
|
18174
18149
|
return 1;
|
|
18175
18150
|
}
|
|
18176
18151
|
}
|
|
18177
|
-
var ɵ0$
|
|
18152
|
+
var ɵ0$9 = function (defaultStateSize) { return [
|
|
18178
18153
|
Math.round((rgbArrayMap.red[0] - 50) / defaultStateSize),
|
|
18179
18154
|
Math.round((255 - rgbArrayMap.red[1]) / defaultStateSize),
|
|
18180
18155
|
Math.round((255 - rgbArrayMap.red[2]) / defaultStateSize)
|
|
@@ -18182,7 +18157,7 @@
|
|
|
18182
18157
|
var SCALE_OPTIONS_DEFAULT = {
|
|
18183
18158
|
startColor: rgbArrayMap.red,
|
|
18184
18159
|
startStates: [0, 2, 3],
|
|
18185
|
-
startStepsFn: ɵ0$
|
|
18160
|
+
startStepsFn: ɵ0$9
|
|
18186
18161
|
};
|
|
18187
18162
|
/**
|
|
18188
18163
|
* Internal function, that create a colors scale, using iteration
|
|
@@ -18274,24 +18249,24 @@
|
|
|
18274
18249
|
return result;
|
|
18275
18250
|
}
|
|
18276
18251
|
|
|
18277
|
-
var EntityTestClass
|
|
18252
|
+
var EntityTestClass = /** @class */ (function () {
|
|
18278
18253
|
function EntityTestClass() {
|
|
18279
18254
|
}
|
|
18280
18255
|
return EntityTestClass;
|
|
18281
18256
|
}());
|
|
18282
|
-
var FAKE_ENTITIES
|
|
18257
|
+
var FAKE_ENTITIES = [
|
|
18283
18258
|
{ id: 1, label: 'AAA', name: 'Item A', description: 'Very long description A', comments: 'Very very long comments... again for A' },
|
|
18284
18259
|
{ id: 2, label: 'BBB', name: 'Item B', description: 'Very long description B', comments: 'Very very long comments... again for B' },
|
|
18285
18260
|
{ id: 3, label: 'CCC', name: 'Item C', description: 'Very long description C', comments: 'Very very long comments... again for C' }
|
|
18286
18261
|
];
|
|
18287
|
-
function deepCopy
|
|
18262
|
+
function deepCopy(values, size) {
|
|
18288
18263
|
if (isNil(size)) {
|
|
18289
|
-
return (values || FAKE_ENTITIES
|
|
18264
|
+
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18290
18265
|
}
|
|
18291
18266
|
var result = [];
|
|
18292
18267
|
var i = 1;
|
|
18293
18268
|
while (result.length < size) {
|
|
18294
|
-
result = result.concat((values || FAKE_ENTITIES
|
|
18269
|
+
result = result.concat((values || FAKE_ENTITIES).map(function (entity) {
|
|
18295
18270
|
var name = entity.name + ' #' + i;
|
|
18296
18271
|
return Object.assign(Object.assign({}, entity), { id: i++, name: name });
|
|
18297
18272
|
}));
|
|
@@ -18301,7 +18276,7 @@
|
|
|
18301
18276
|
var AutocompleteTestPage = /** @class */ (function () {
|
|
18302
18277
|
function AutocompleteTestPage(formBuilder) {
|
|
18303
18278
|
this.formBuilder = formBuilder;
|
|
18304
|
-
this._items = deepCopy
|
|
18279
|
+
this._items = deepCopy(FAKE_ENTITIES, 100);
|
|
18305
18280
|
this.$items = new rxjs.BehaviorSubject(undefined);
|
|
18306
18281
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18307
18282
|
this.memoryHide = false;
|
|
@@ -18346,7 +18321,7 @@
|
|
|
18346
18321
|
});
|
|
18347
18322
|
// From items
|
|
18348
18323
|
this.autocompleteFields.add('entity-items-large', {
|
|
18349
|
-
items: FAKE_ENTITIES
|
|
18324
|
+
items: FAKE_ENTITIES.slice(),
|
|
18350
18325
|
attributes: ['label', 'name', 'description', 'comments'],
|
|
18351
18326
|
displayWith: this.entityToString
|
|
18352
18327
|
});
|
|
@@ -18359,12 +18334,12 @@
|
|
|
18359
18334
|
var _this = this;
|
|
18360
18335
|
return __generator(this, function (_a) {
|
|
18361
18336
|
data = {
|
|
18362
|
-
entity: deepCopy
|
|
18337
|
+
entity: deepCopy(FAKE_ENTITIES)[0],
|
|
18363
18338
|
// This item is NOT in the items list => i should be displayed anyway
|
|
18364
18339
|
missingEntity: {
|
|
18365
18340
|
id: -1, label: '??', name: 'Missing item'
|
|
18366
18341
|
},
|
|
18367
|
-
disableEntity: deepCopy
|
|
18342
|
+
disableEntity: deepCopy(FAKE_ENTITIES)[2]
|
|
18368
18343
|
};
|
|
18369
18344
|
this.form.setValue(data);
|
|
18370
18345
|
// Load observables
|
|
@@ -18562,13 +18537,13 @@
|
|
|
18562
18537
|
{ type: Array, decorators: [{ type: i0.Optional }, { type: i0.Inject, args: [APP_TESTING_PAGES,] }] }
|
|
18563
18538
|
]; };
|
|
18564
18539
|
|
|
18565
|
-
var moment$
|
|
18540
|
+
var moment$5 = momentImported__namespace;
|
|
18566
18541
|
var SwipeTestPage = /** @class */ (function () {
|
|
18567
18542
|
function SwipeTestPage(formBuilder, dateFormatPipe) {
|
|
18568
18543
|
this.formBuilder = formBuilder;
|
|
18569
18544
|
this.dateFormatPipe = dateFormatPipe;
|
|
18570
18545
|
this.$dates = new rxjs.BehaviorSubject(undefined);
|
|
18571
|
-
this._today = moment$
|
|
18546
|
+
this._today = moment$5().startOf('day');
|
|
18572
18547
|
this.form = formBuilder.group({
|
|
18573
18548
|
empty: [null, i1.Validators.required],
|
|
18574
18549
|
date: [null, i1.Validators.compose([i1.Validators.required, SharedValidators.validDate])],
|
|
@@ -18582,7 +18557,7 @@
|
|
|
18582
18557
|
var _this = this;
|
|
18583
18558
|
var dates = [];
|
|
18584
18559
|
for (var d = 0; d < 7; d++) {
|
|
18585
|
-
dates[d] = moment$
|
|
18560
|
+
dates[d] = moment$5(this._today).add(d - 3, 'day');
|
|
18586
18561
|
}
|
|
18587
18562
|
this.$dates.next(dates);
|
|
18588
18563
|
this.loadData();
|
|
@@ -18629,7 +18604,7 @@
|
|
|
18629
18604
|
{ type: DateFormatPipe }
|
|
18630
18605
|
]; };
|
|
18631
18606
|
|
|
18632
|
-
var moment = momentImported__namespace;
|
|
18607
|
+
var moment$6 = momentImported__namespace;
|
|
18633
18608
|
var DateTimeTestPage = /** @class */ (function () {
|
|
18634
18609
|
function DateTimeTestPage(platform, formBuilder, cd) {
|
|
18635
18610
|
this.platform = platform;
|
|
@@ -18665,7 +18640,7 @@
|
|
|
18665
18640
|
var now, data;
|
|
18666
18641
|
var _this = this;
|
|
18667
18642
|
return __generator(this, function (_a) {
|
|
18668
|
-
now = moment();
|
|
18643
|
+
now = moment$6();
|
|
18669
18644
|
data = {
|
|
18670
18645
|
empty: toDateISOString(now.clone().add(2, 'hours')),
|
|
18671
18646
|
enable: toDateISOString(now),
|
|
@@ -18730,23 +18705,23 @@
|
|
|
18730
18705
|
{ type: i0.ChangeDetectorRef }
|
|
18731
18706
|
]; };
|
|
18732
18707
|
|
|
18733
|
-
var EntityTestClass = /** @class */ (function () {
|
|
18708
|
+
var EntityTestClass$1 = /** @class */ (function () {
|
|
18734
18709
|
function EntityTestClass() {
|
|
18735
18710
|
}
|
|
18736
18711
|
return EntityTestClass;
|
|
18737
18712
|
}());
|
|
18738
|
-
var FAKE_ENTITIES = [
|
|
18713
|
+
var FAKE_ENTITIES$1 = [
|
|
18739
18714
|
{ id: 1, label: 'AAA', name: 'Item A' },
|
|
18740
18715
|
{ id: 2, label: 'BBB', name: 'Item B' },
|
|
18741
18716
|
{ id: 3, label: 'CCC', name: 'Item C' }
|
|
18742
18717
|
];
|
|
18743
|
-
function deepCopy(values) {
|
|
18744
|
-
return (values || FAKE_ENTITIES).map(function (entity) { return Object.assign({}, entity); });
|
|
18718
|
+
function deepCopy$1(values) {
|
|
18719
|
+
return (values || FAKE_ENTITIES$1).map(function (entity) { return Object.assign({}, entity); });
|
|
18745
18720
|
}
|
|
18746
18721
|
var ChipsTestPage = /** @class */ (function () {
|
|
18747
18722
|
function ChipsTestPage(formBuilder) {
|
|
18748
18723
|
this.formBuilder = formBuilder;
|
|
18749
|
-
this._items = deepCopy(FAKE_ENTITIES);
|
|
18724
|
+
this._items = deepCopy$1(FAKE_ENTITIES$1);
|
|
18750
18725
|
this._$items = new rxjs.BehaviorSubject(undefined);
|
|
18751
18726
|
this.autocompleteFields = new MatAutocompleteConfigHolder();
|
|
18752
18727
|
this.form = formBuilder.group({
|
|
@@ -18766,7 +18741,7 @@
|
|
|
18766
18741
|
});
|
|
18767
18742
|
// From items
|
|
18768
18743
|
this.autocompleteFields.add('entity-items', {
|
|
18769
|
-
items: FAKE_ENTITIES.slice(),
|
|
18744
|
+
items: FAKE_ENTITIES$1.slice(),
|
|
18770
18745
|
attributes: ['label', 'name'],
|
|
18771
18746
|
displayWith: this.entityToString
|
|
18772
18747
|
});
|
|
@@ -18789,8 +18764,8 @@
|
|
|
18789
18764
|
data = {
|
|
18790
18765
|
entity: [],
|
|
18791
18766
|
// THis item is NOT in the items list => i should be displayed anyway
|
|
18792
|
-
entityInitial: FAKE_ENTITIES.slice(1, 2),
|
|
18793
|
-
disableEntity: FAKE_ENTITIES.slice(1, 2)
|
|
18767
|
+
entityInitial: FAKE_ENTITIES$1.slice(1, 2),
|
|
18768
|
+
disableEntity: FAKE_ENTITIES$1.slice(1, 2)
|
|
18794
18769
|
};
|
|
18795
18770
|
this.form.setValue(data);
|
|
18796
18771
|
return [2 /*return*/];
|
|
@@ -18800,7 +18775,7 @@
|
|
|
18800
18775
|
ChipsTestPage.prototype.loadItems = function () {
|
|
18801
18776
|
return __awaiter(this, void 0, void 0, function () {
|
|
18802
18777
|
return __generator(this, function (_a) {
|
|
18803
|
-
this._$items.next(deepCopy(FAKE_ENTITIES));
|
|
18778
|
+
this._$items.next(deepCopy$1(FAKE_ENTITIES$1));
|
|
18804
18779
|
return [2 /*return*/];
|
|
18805
18780
|
});
|
|
18806
18781
|
});
|
|
@@ -18849,7 +18824,7 @@
|
|
|
18849
18824
|
},] }
|
|
18850
18825
|
];
|
|
18851
18826
|
|
|
18852
|
-
var routes
|
|
18827
|
+
var routes = [
|
|
18853
18828
|
{
|
|
18854
18829
|
path: '',
|
|
18855
18830
|
pathMatch: 'full',
|
|
@@ -18904,7 +18879,7 @@
|
|
|
18904
18879
|
i1.ReactiveFormsModule,
|
|
18905
18880
|
SharedMaterialModule,
|
|
18906
18881
|
i1$2.TranslateModule.forChild(),
|
|
18907
|
-
i3.RouterModule.forChild(routes
|
|
18882
|
+
i3.RouterModule.forChild(routes)
|
|
18908
18883
|
],
|
|
18909
18884
|
declarations: [
|
|
18910
18885
|
MaterialTestingPage,
|
|
@@ -20039,7 +20014,7 @@
|
|
|
20039
20014
|
};
|
|
20040
20015
|
return UserSettingsValidatorService;
|
|
20041
20016
|
}(AppValidatorService));
|
|
20042
|
-
UserSettingsValidatorService.ɵprov =
|
|
20017
|
+
UserSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserSettingsValidatorService_Factory() { return new UserSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder)); }, token: UserSettingsValidatorService, providedIn: "root" });
|
|
20043
20018
|
UserSettingsValidatorService.decorators = [
|
|
20044
20019
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20045
20020
|
];
|
|
@@ -20087,7 +20062,7 @@
|
|
|
20087
20062
|
};
|
|
20088
20063
|
return AccountValidatorService;
|
|
20089
20064
|
}(AppValidatorService));
|
|
20090
|
-
AccountValidatorService.ɵprov =
|
|
20065
|
+
AccountValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountValidatorService_Factory() { return new AccountValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountService)); }, token: AccountValidatorService, providedIn: "root" });
|
|
20091
20066
|
AccountValidatorService.decorators = [
|
|
20092
20067
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20093
20068
|
];
|
|
@@ -20684,7 +20659,7 @@
|
|
|
20684
20659
|
};
|
|
20685
20660
|
return LocalSettingsValidatorService;
|
|
20686
20661
|
}(AppValidatorService));
|
|
20687
|
-
LocalSettingsValidatorService.ɵprov =
|
|
20662
|
+
LocalSettingsValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LocalSettingsValidatorService_Factory() { return new LocalSettingsValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(NetworkService)); }, token: LocalSettingsValidatorService, providedIn: "root" });
|
|
20688
20663
|
LocalSettingsValidatorService.decorators = [
|
|
20689
20664
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
20690
20665
|
];
|
|
@@ -21466,7 +21441,7 @@
|
|
|
21466
21441
|
};
|
|
21467
21442
|
return IsOnFieldModePipe;
|
|
21468
21443
|
}());
|
|
21469
|
-
IsOnFieldModePipe.ɵprov =
|
|
21444
|
+
IsOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsOnFieldModePipe_Factory() { return new IsOnFieldModePipe(); }, token: IsOnFieldModePipe, providedIn: "root" });
|
|
21470
21445
|
IsOnFieldModePipe.decorators = [
|
|
21471
21446
|
{ type: i0.Pipe, args: [{
|
|
21472
21447
|
name: 'isOnField'
|
|
@@ -21481,7 +21456,7 @@
|
|
|
21481
21456
|
};
|
|
21482
21457
|
return IsNotOnFieldModePipe;
|
|
21483
21458
|
}());
|
|
21484
|
-
IsNotOnFieldModePipe.ɵprov =
|
|
21459
|
+
IsNotOnFieldModePipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsNotOnFieldModePipe_Factory() { return new IsNotOnFieldModePipe(); }, token: IsNotOnFieldModePipe, providedIn: "root" });
|
|
21485
21460
|
IsNotOnFieldModePipe.decorators = [
|
|
21486
21461
|
{ type: i0.Pipe, args: [{
|
|
21487
21462
|
name: 'isNotOnField'
|
|
@@ -21499,7 +21474,7 @@
|
|
|
21499
21474
|
};
|
|
21500
21475
|
return PersonToStringPipe;
|
|
21501
21476
|
}());
|
|
21502
|
-
PersonToStringPipe.ɵprov =
|
|
21477
|
+
PersonToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonToStringPipe_Factory() { return new PersonToStringPipe(); }, token: PersonToStringPipe, providedIn: "root" });
|
|
21503
21478
|
PersonToStringPipe.decorators = [
|
|
21504
21479
|
{ type: i0.Pipe, args: [{
|
|
21505
21480
|
name: 'personToString'
|
|
@@ -21911,7 +21886,7 @@
|
|
|
21911
21886
|
};
|
|
21912
21887
|
return IsLoginAccountPipe;
|
|
21913
21888
|
}());
|
|
21914
|
-
IsLoginAccountPipe.ɵprov =
|
|
21889
|
+
IsLoginAccountPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function IsLoginAccountPipe_Factory() { return new IsLoginAccountPipe(); }, token: IsLoginAccountPipe, providedIn: "root" });
|
|
21915
21890
|
IsLoginAccountPipe.decorators = [
|
|
21916
21891
|
{ type: i0.Pipe, args: [{
|
|
21917
21892
|
name: 'isLogin'
|
|
@@ -21926,7 +21901,7 @@
|
|
|
21926
21901
|
};
|
|
21927
21902
|
return AccountToStringPipe;
|
|
21928
21903
|
}());
|
|
21929
|
-
AccountToStringPipe.ɵprov =
|
|
21904
|
+
AccountToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function AccountToStringPipe_Factory() { return new AccountToStringPipe(); }, token: AccountToStringPipe, providedIn: "root" });
|
|
21930
21905
|
AccountToStringPipe.decorators = [
|
|
21931
21906
|
{ type: i0.Pipe, args: [{
|
|
21932
21907
|
name: 'accountToString'
|
|
@@ -21944,7 +21919,7 @@
|
|
|
21944
21919
|
};
|
|
21945
21920
|
return DepartmentToStringPipe;
|
|
21946
21921
|
}());
|
|
21947
|
-
DepartmentToStringPipe.ɵprov =
|
|
21922
|
+
DepartmentToStringPipe.ɵprov = i0.ɵɵdefineInjectable({ factory: function DepartmentToStringPipe_Factory() { return new DepartmentToStringPipe(); }, token: DepartmentToStringPipe, providedIn: "root" });
|
|
21948
21923
|
DepartmentToStringPipe.decorators = [
|
|
21949
21924
|
{ type: i0.Pipe, args: [{
|
|
21950
21925
|
name: 'departmentToString'
|
|
@@ -21979,7 +21954,7 @@
|
|
|
21979
21954
|
};
|
|
21980
21955
|
return MenuService;
|
|
21981
21956
|
}());
|
|
21982
|
-
MenuService.ɵprov =
|
|
21957
|
+
MenuService.ɵprov = i0.ɵɵdefineInjectable({ factory: function MenuService_Factory() { return new MenuService(); }, token: MenuService, providedIn: "root" });
|
|
21983
21958
|
MenuService.decorators = [
|
|
21984
21959
|
{ type: i0.Injectable, args: [{
|
|
21985
21960
|
providedIn: 'root'
|
|
@@ -22558,7 +22533,7 @@
|
|
|
22558
22533
|
};
|
|
22559
22534
|
return AuthGuardService;
|
|
22560
22535
|
}());
|
|
22561
|
-
AuthGuardService.ɵprov =
|
|
22536
|
+
AuthGuardService.ɵprov = i0.ɵɵdefineInjectable({ factory: function AuthGuardService_Factory() { return new AuthGuardService(i0.ɵɵinject(AccountService), i0.ɵɵinject(i1$5.ModalController), i0.ɵɵinject(i3.Router), i0.ɵɵinject(ENVIRONMENT)); }, token: AuthGuardService, providedIn: "root" });
|
|
22562
22537
|
AuthGuardService.decorators = [
|
|
22563
22538
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
22564
22539
|
];
|
|
@@ -22609,7 +22584,7 @@
|
|
|
22609
22584
|
query: query,
|
|
22610
22585
|
variables: { id: id },
|
|
22611
22586
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22612
|
-
error: { code: ErrorCodes
|
|
22587
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22613
22588
|
})
|
|
22614
22589
|
.pipe(operators.map(function (_b) {
|
|
22615
22590
|
var data = _b.data;
|
|
@@ -22631,7 +22606,7 @@
|
|
|
22631
22606
|
query: query,
|
|
22632
22607
|
variables: { id: id },
|
|
22633
22608
|
fetchPolicy: opts && opts.fetchPolicy || undefined,
|
|
22634
|
-
error: { code: ErrorCodes
|
|
22609
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' }
|
|
22635
22610
|
})];
|
|
22636
22611
|
case 1:
|
|
22637
22612
|
data = (_b.sent()).data;
|
|
@@ -22667,7 +22642,7 @@
|
|
|
22667
22642
|
totalFieldName: withTotal ? 'total' : undefined,
|
|
22668
22643
|
insertFilterFn: filter && filter.asFilterFn(),
|
|
22669
22644
|
variables: variables,
|
|
22670
|
-
error: { code: ErrorCodes
|
|
22645
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'REFERENTIAL.ERROR.LOAD_DATA_ERROR' },
|
|
22671
22646
|
fetchPolicy: opts && opts.fetchPolicy || undefined
|
|
22672
22647
|
})
|
|
22673
22648
|
.pipe(operators.map(function (_b) {
|
|
@@ -22709,7 +22684,7 @@
|
|
|
22709
22684
|
return [4 /*yield*/, this.graphql.query({
|
|
22710
22685
|
query: query,
|
|
22711
22686
|
variables: variables,
|
|
22712
|
-
error: { code: ErrorCodes
|
|
22687
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.LOAD_DATA_ERROR' },
|
|
22713
22688
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22714
22689
|
})];
|
|
22715
22690
|
case 1:
|
|
@@ -22757,7 +22732,7 @@
|
|
|
22757
22732
|
variables: {
|
|
22758
22733
|
filter: filter && filter.asPodObject()
|
|
22759
22734
|
},
|
|
22760
|
-
error: { code: ErrorCodes
|
|
22735
|
+
error: { code: ErrorCodes.LOAD_DATA_ERROR, message: 'ERROR.COUNT_DATA_ERROR' },
|
|
22761
22736
|
fetchPolicy: opts && opts.fetchPolicy || 'network-only'
|
|
22762
22737
|
})];
|
|
22763
22738
|
case 3:
|
|
@@ -22799,7 +22774,7 @@
|
|
|
22799
22774
|
variables: {
|
|
22800
22775
|
data: json
|
|
22801
22776
|
},
|
|
22802
|
-
error: { code: ErrorCodes
|
|
22777
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22803
22778
|
update: function (proxy, _b) {
|
|
22804
22779
|
var data = _b.data;
|
|
22805
22780
|
var savedEntities = data && data.data;
|
|
@@ -22866,7 +22841,7 @@
|
|
|
22866
22841
|
variables: {
|
|
22867
22842
|
data: json
|
|
22868
22843
|
},
|
|
22869
|
-
error: { code: ErrorCodes
|
|
22844
|
+
error: { code: ErrorCodes.SAVE_DATA_ERROR, message: 'ERROR.SAVE_DATA_ERROR' },
|
|
22870
22845
|
update: function (cache, _b) {
|
|
22871
22846
|
var data = _b.data;
|
|
22872
22847
|
// Update entity
|
|
@@ -22924,7 +22899,7 @@
|
|
|
22924
22899
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22925
22900
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22926
22901
|
variables: { ids: ids },
|
|
22927
|
-
error: { code: ErrorCodes
|
|
22902
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22928
22903
|
update: function (cache, res) {
|
|
22929
22904
|
// Remove from cache
|
|
22930
22905
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -22977,7 +22952,7 @@
|
|
|
22977
22952
|
refetchQueries: this.getRefetchQueriesForMutation(opts),
|
|
22978
22953
|
awaitRefetchQueries: opts && opts.awaitRefetchQueries,
|
|
22979
22954
|
variables: { id: id },
|
|
22980
|
-
error: { code: ErrorCodes
|
|
22955
|
+
error: { code: ErrorCodes.DELETE_DATA_ERROR, message: 'ERROR.DELETE_DATA_ERROR' },
|
|
22981
22956
|
update: function (proxy, res) {
|
|
22982
22957
|
// Remove from cache
|
|
22983
22958
|
if (_this.watchQueriesUpdatePolicy === 'update-cache') {
|
|
@@ -23016,7 +22991,7 @@
|
|
|
23016
22991
|
query: opts && opts.query || this.subscriptions.listenChanges,
|
|
23017
22992
|
variables: variables,
|
|
23018
22993
|
error: {
|
|
23019
|
-
code: ErrorCodes
|
|
22994
|
+
code: ErrorCodes.SUBSCRIBE_DATA_ERROR,
|
|
23020
22995
|
message: 'ERROR.SUBSCRIBE_DATA_ERROR'
|
|
23021
22996
|
}
|
|
23022
22997
|
})
|
|
@@ -23225,7 +23200,7 @@
|
|
|
23225
23200
|
if (this._debug)
|
|
23226
23201
|
invalidRows.forEach(function (row) { return AppTableUtils.logRowErrors(row, "[table-datasource] " + _this._logTypeName + " row #" + row.id); });
|
|
23227
23202
|
// Stop with an error
|
|
23228
|
-
throw { code: ErrorCodes
|
|
23203
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
23229
23204
|
}
|
|
23230
23205
|
this._editingRowCount = 0;
|
|
23231
23206
|
data = void 0;
|
|
@@ -24179,14 +24154,14 @@
|
|
|
24179
24154
|
case 0:
|
|
24180
24155
|
opts = Object.assign({ keepEditing: this.keepEditedRowOnSave }, opts);
|
|
24181
24156
|
if (this.readOnly) {
|
|
24182
|
-
throw { code: ErrorCodes
|
|
24157
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
24183
24158
|
}
|
|
24184
24159
|
this.resetError();
|
|
24185
24160
|
// Keep edited row id (should be done BEFORE confirmEditCreate() )
|
|
24186
24161
|
this.previouslyEditedRowId = opts.keepEditing && ((_a = this.editedRow) === null || _a === void 0 ? void 0 : _a.editing) ? this.editedRow.id : undefined;
|
|
24187
24162
|
previouslyEditedData = isNotNil(this.previouslyEditedRowId) && this.editedRow.currentData || ((_b = this.singleSelectedRow) === null || _b === void 0 ? void 0 : _b.currentData);
|
|
24188
24163
|
if (!this.confirmEditCreate()) {
|
|
24189
|
-
throw { code: ErrorCodes
|
|
24164
|
+
throw { code: ErrorCodes.TABLE_INVALID_ROW_ERROR, message: 'ERROR.TABLE_INVALID_ROW_ERROR' };
|
|
24190
24165
|
}
|
|
24191
24166
|
// Mark as saving
|
|
24192
24167
|
this.markAsSaving();
|
|
@@ -24339,7 +24314,7 @@
|
|
|
24339
24314
|
switch (_d.label) {
|
|
24340
24315
|
case 0:
|
|
24341
24316
|
if (this.readOnly) {
|
|
24342
|
-
throw { code: ErrorCodes
|
|
24317
|
+
throw { code: ErrorCodes.TABLE_READ_ONLY, message: 'ERROR.TABLE_READ_ONLY' };
|
|
24343
24318
|
}
|
|
24344
24319
|
if (event === null || event === void 0 ? void 0 : event.defaultPrevented)
|
|
24345
24320
|
return [2 /*return*/, 0]; // SKip
|
|
@@ -26030,7 +26005,7 @@
|
|
|
26030
26005
|
case 4:
|
|
26031
26006
|
data = _b.sent();
|
|
26032
26007
|
if (!data)
|
|
26033
|
-
throw { code: ErrorCodes
|
|
26008
|
+
throw { code: ErrorCodes.DATA_NOT_FOUND_ERROR, message: 'ERROR.DATA_NO_FOUND' };
|
|
26034
26009
|
this._usageMode = this.computeUsageMode(data);
|
|
26035
26010
|
return [4 /*yield*/, this.onEntityLoaded(data, opts)];
|
|
26036
26011
|
case 5:
|
|
@@ -26771,10 +26746,10 @@
|
|
|
26771
26746
|
exports.UserEventFilter = __decorate([
|
|
26772
26747
|
EntityClass({ typename: 'UserEventVO' })
|
|
26773
26748
|
], exports.UserEventFilter);
|
|
26774
|
-
var SaveQuery = core.gql(templateObject_1$
|
|
26775
|
-
var LoadAllQuery = core.gql(templateObject_2$
|
|
26776
|
-
var DeleteByIdsMutation = core.gql(templateObject_3$
|
|
26777
|
-
var LoadAllWithContentQuery = core.gql(templateObject_4$
|
|
26749
|
+
var SaveQuery = core.gql(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n mutation SaveUserEvent($data: UserEventVOInput){\n data: saveUserEvent(userEvent: $data){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
26750
|
+
var LoadAllQuery = core.gql(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"], ["\n query UserEvents($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...LightUserEventFragment\n }\n }\n ", "\n"])), SocialFragments.lightUserEvent);
|
|
26751
|
+
var DeleteByIdsMutation = core.gql(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"], ["\n mutation DeleteUserEvents($ids:[Int]){\n deleteUserEvents(ids: $ids)\n }\n"])));
|
|
26752
|
+
var LoadAllWithContentQuery = core.gql(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"], ["\n query UserEventsWithContent($filter: UserEventFilterVOInput, $page: PageInput){\n data: userEvents(filter: $filter, page: $page){\n ...UserEventFragment\n }\n }\n ", "\n"])), SocialFragments.userEvent);
|
|
26778
26753
|
var UserEventService = /** @class */ (function (_super) {
|
|
26779
26754
|
__extends(UserEventService, _super);
|
|
26780
26755
|
function UserEventService(graphql, accountService, network, translate, toastController, environment) {
|
|
@@ -27095,7 +27070,7 @@
|
|
|
27095
27070
|
};
|
|
27096
27071
|
return UserEventService;
|
|
27097
27072
|
}(BaseGraphqlService));
|
|
27098
|
-
UserEventService.ɵprov =
|
|
27073
|
+
UserEventService.ɵprov = i0.ɵɵdefineInjectable({ factory: function UserEventService_Factory() { return new UserEventService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(AccountService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(i1$2.TranslateService), i0.ɵɵinject(i1$5.ToastController), i0.ɵɵinject(ENVIRONMENT)); }, token: UserEventService, providedIn: "root" });
|
|
27099
27074
|
UserEventService.decorators = [
|
|
27100
27075
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27101
27076
|
];
|
|
@@ -27107,7 +27082,7 @@
|
|
|
27107
27082
|
{ type: i1$5.ToastController },
|
|
27108
27083
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [ENVIRONMENT,] }] }
|
|
27109
27084
|
]; };
|
|
27110
|
-
var templateObject_1$
|
|
27085
|
+
var templateObject_1$3, templateObject_2$3, templateObject_3$2, templateObject_4$2;
|
|
27111
27086
|
|
|
27112
27087
|
var ICONS_MAP = {
|
|
27113
27088
|
DEBUG_DATA: { matIcon: 'bug_report' },
|
|
@@ -27370,16 +27345,16 @@
|
|
|
27370
27345
|
], exports.PersonFilter);
|
|
27371
27346
|
|
|
27372
27347
|
var PersonFragments = {
|
|
27373
|
-
person: core.gql(templateObject_1 || (templateObject_1 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
|
|
27348
|
+
person: core.gql(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"], ["fragment PersonFragment on PersonVO {\n id\n firstName\n lastName\n email\n pubkey\n avatar\n statusId\n updateDate\n creationDate\n profiles\n username\n usernameExtranet\n department {\n id\n label\n name\n logo\n __typename\n }\n __typename\n }"])))
|
|
27374
27349
|
};
|
|
27375
27350
|
// Load persons query
|
|
27376
27351
|
var PersonQueries = {
|
|
27377
|
-
loadAll: core.gql(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
27378
|
-
loadAllWithTotal: core.gql(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
|
|
27352
|
+
loadAll: core.gql(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""], ["\n query Persons($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
27353
|
+
loadAllWithTotal: core.gql(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""], ["\n query PersonsWithTotal($offset: Int, $size: Int, $sortBy: String, $sortDirection: String, $filter: PersonFilterVOInput){\n data: persons(filter: $filter, offset: $offset, size: $size, sortBy: $sortBy, sortDirection: $sortDirection){\n ...PersonFragment\n }\n total: personsCount(filter: $filter)\n }\n ", ""])), PersonFragments.person)
|
|
27379
27354
|
};
|
|
27380
27355
|
var PersonMutations = {
|
|
27381
|
-
saveAll: core.gql(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
27382
|
-
deleteAll: core.gql(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
|
|
27356
|
+
saveAll: core.gql(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""], ["\n mutation savePersons($data:[PersonVOInput]){\n data: savePersons(persons: $data){\n ...PersonFragment\n }\n }\n ", ""])), PersonFragments.person),
|
|
27357
|
+
deleteAll: core.gql(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"], ["\n mutation deletePersons($ids:[Int]){\n deletePersons(ids: $ids)\n }"])))
|
|
27383
27358
|
};
|
|
27384
27359
|
var PersonService = /** @class */ (function (_super_1) {
|
|
27385
27360
|
__extends(PersonService, _super_1);
|
|
@@ -27503,7 +27478,7 @@
|
|
|
27503
27478
|
};
|
|
27504
27479
|
return PersonService;
|
|
27505
27480
|
}(BaseEntityService));
|
|
27506
|
-
PersonService.ɵprov =
|
|
27481
|
+
PersonService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonService_Factory() { return new PersonService(i0.ɵɵinject(GraphqlService), i0.ɵɵinject(PlatformService), i0.ɵɵinject(NetworkService), i0.ɵɵinject(EntitiesStorage)); }, token: PersonService, providedIn: "root" });
|
|
27507
27482
|
PersonService.decorators = [
|
|
27508
27483
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27509
27484
|
];
|
|
@@ -27513,7 +27488,7 @@
|
|
|
27513
27488
|
{ type: NetworkService },
|
|
27514
27489
|
{ type: EntitiesStorage }
|
|
27515
27490
|
]; };
|
|
27516
|
-
var templateObject_1, templateObject_2, templateObject_3, templateObject_4, templateObject_5;
|
|
27491
|
+
var templateObject_1$4, templateObject_2$4, templateObject_3$3, templateObject_4$3, templateObject_5$2;
|
|
27517
27492
|
|
|
27518
27493
|
var PersonValidatorService = /** @class */ (function () {
|
|
27519
27494
|
function PersonValidatorService(formBuilder, accountValidatorService) {
|
|
@@ -27536,7 +27511,7 @@
|
|
|
27536
27511
|
};
|
|
27537
27512
|
return PersonValidatorService;
|
|
27538
27513
|
}());
|
|
27539
|
-
PersonValidatorService.ɵprov =
|
|
27514
|
+
PersonValidatorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PersonValidatorService_Factory() { return new PersonValidatorService(i0.ɵɵinject(i1.FormBuilder), i0.ɵɵinject(AccountValidatorService)); }, token: PersonValidatorService, providedIn: "root" });
|
|
27540
27515
|
PersonValidatorService.decorators = [
|
|
27541
27516
|
{ type: i0.Injectable, args: [{ providedIn: 'root' },] }
|
|
27542
27517
|
];
|
|
@@ -27759,16 +27734,16 @@
|
|
|
27759
27734
|
];
|
|
27760
27735
|
AdminModule.ctorParameters = function () { return []; };
|
|
27761
27736
|
|
|
27762
|
-
var ɵ0 = {
|
|
27737
|
+
var ɵ0$a = {
|
|
27763
27738
|
profile: 'ADMIN'
|
|
27764
27739
|
};
|
|
27765
|
-
var routes = [
|
|
27740
|
+
var routes$1 = [
|
|
27766
27741
|
{
|
|
27767
27742
|
path: 'users',
|
|
27768
27743
|
pathMatch: 'full',
|
|
27769
27744
|
component: UsersPage,
|
|
27770
27745
|
canActivate: [AuthGuardService],
|
|
27771
|
-
data: ɵ0
|
|
27746
|
+
data: ɵ0$a
|
|
27772
27747
|
}
|
|
27773
27748
|
];
|
|
27774
27749
|
var AdminRoutingModule = /** @class */ (function () {
|
|
@@ -27781,13 +27756,13 @@
|
|
|
27781
27756
|
imports: [
|
|
27782
27757
|
SharedRoutingModule,
|
|
27783
27758
|
AdminModule,
|
|
27784
|
-
i3.RouterModule.forChild(routes)
|
|
27759
|
+
i3.RouterModule.forChild(routes$1)
|
|
27785
27760
|
],
|
|
27786
27761
|
exports: [i3.RouterModule]
|
|
27787
27762
|
},] }
|
|
27788
27763
|
];
|
|
27789
27764
|
|
|
27790
|
-
var ErrorCodes = {
|
|
27765
|
+
var ErrorCodes$2 = {
|
|
27791
27766
|
LOAD_PERSONS_ERROR: 100,
|
|
27792
27767
|
SAVE_PERSONS_ERROR: 101,
|
|
27793
27768
|
DELETE_PERSONS_ERROR: 102,
|
|
@@ -27897,7 +27872,7 @@
|
|
|
27897
27872
|
exports.EntityStore = EntityStore;
|
|
27898
27873
|
exports.EntityUtils = EntityUtils;
|
|
27899
27874
|
exports.Environment = Environment;
|
|
27900
|
-
exports.ErrorCodes = ErrorCodes;
|
|
27875
|
+
exports.ErrorCodes = ErrorCodes$2;
|
|
27901
27876
|
exports.EvenPipe = EvenPipe;
|
|
27902
27877
|
exports.FileService = FileService;
|
|
27903
27878
|
exports.FileSizePipe = FileSizePipe;
|
|
@@ -27907,7 +27882,7 @@
|
|
|
27907
27882
|
exports.FormErrorTranslatePipe = FormErrorTranslatePipe;
|
|
27908
27883
|
exports.FormErrorTranslator = FormErrorTranslator;
|
|
27909
27884
|
exports.FormFieldValuesHolder = FormFieldValuesHolder;
|
|
27910
|
-
exports.Fragments = Fragments;
|
|
27885
|
+
exports.Fragments = Fragments$1;
|
|
27911
27886
|
exports.GraphqlService = GraphqlService;
|
|
27912
27887
|
exports.HAMMER_PRESS_TIME = HAMMER_PRESS_TIME;
|
|
27913
27888
|
exports.HAMMER_TAP_TIME = HAMMER_TAP_TIME;
|
|
@@ -28155,20 +28130,20 @@
|
|
|
28155
28130
|
exports.waitFor = waitFor;
|
|
28156
28131
|
exports.waitIdle = waitIdle;
|
|
28157
28132
|
exports.waitWhilePending = waitWhilePending;
|
|
28158
|
-
exports
|
|
28159
|
-
exports
|
|
28160
|
-
exports
|
|
28161
|
-
exports
|
|
28162
|
-
exports
|
|
28163
|
-
exports
|
|
28164
|
-
exports
|
|
28165
|
-
exports
|
|
28166
|
-
exports
|
|
28167
|
-
exports
|
|
28168
|
-
exports
|
|
28169
|
-
exports
|
|
28133
|
+
exports.ɵ0 = ɵ0$5;
|
|
28134
|
+
exports.ɵa = CustomReuseStrategy;
|
|
28135
|
+
exports.ɵb = MatNumpadDomService;
|
|
28136
|
+
exports.ɵc = SharedMatBadgeIconModule;
|
|
28137
|
+
exports.ɵd = MatBadgeIconDirective;
|
|
28138
|
+
exports.ɵe = isFocusableElement;
|
|
28139
|
+
exports.ɵf = MatBadgeIconTestPage;
|
|
28140
|
+
exports.ɵg = RegisterForm;
|
|
28141
|
+
exports.ɵh = AccountValidatorService;
|
|
28142
|
+
exports.ɵi = RegisterModal;
|
|
28143
|
+
exports.ɵj = UserSettingsValidatorService;
|
|
28144
|
+
exports.ɵk = LocalSettingsValidatorService;
|
|
28170
28145
|
|
|
28171
28146
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
28172
28147
|
|
|
28173
|
-
}));
|
|
28148
|
+
})));
|
|
28174
28149
|
//# sourceMappingURL=sumaris-net.ngx-components.umd.js.map
|